"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 { TimeField as AriaTimeField, type TimeFieldProps as AriaProps, type TimeValue, DateInput, DateSegment, Label, Text, FieldError, type ValidationResult, composeRenderProps, } from "./react-aria-runtime.js"; export { parseDate, parseDateTime, Time } from "./react-aria-runtime.js"; export interface TimeFieldProps extends Omit< AriaProps, "children" > { label: string; description?: string; errorMessage?: string | ((validation: ValidationResult) => string); } export function TimeField({ label, description, errorMessage, className, ...props }: TimeFieldProps) { return ( `ynr-time-field ynr-aria ${value ?? ""}`, )} > {(segment) => ( )} {description && ( {description} )} {errorMessage} ); }