"use client"; // Adapted from Adobe React Spectrum starters (Apache-2.0). // Modified: owned composition, local runtime, scoped CSS and customization. // See THIRD_PARTY_NOTICES.md. import { ColorField as AriaColorField, type ColorFieldProps as AriaProps, Input, Label, Text, FieldError, type ValidationResult, composeRenderProps, } from "./react-aria-runtime.js"; export interface ColorFieldProps extends Omit { label: string; description?: string; errorMessage?: string | ((validation: ValidationResult) => string); placeholder?: string; } export function ColorField({ label, description, errorMessage, placeholder, className, ...props }: ColorFieldProps) { return ( `ynr-color-field ynr-aria ${value ?? ""}`, )} > {description && ( {description} )} {errorMessage} ); }