"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 { SearchField as AriaSearchField, type SearchFieldProps as AriaProps, Input, Group, Button, Label, Text, FieldError, type ValidationResult, composeRenderProps, } from "./react-aria-runtime.js"; export interface SearchFieldProps extends Omit { label: string; description?: string; errorMessage?: string | ((validation: ValidationResult) => string); placeholder?: string; } export function SearchField({ label, description, errorMessage, placeholder, className, ...props }: SearchFieldProps) { return ( `ynr-search-field ynr-aria ${value ?? ""}`, )} > {description && ( {description} )} {errorMessage} ); }