"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 { Calendar as PrimitiveCalendar, type CalendarProps as AriaProps, type DateValue, CalendarGrid, CalendarCell, Heading, Button, Text, composeRenderProps, } from "./react-aria-runtime.js"; export { parseDate, today, getLocalTimeZone } from "./react-aria-runtime.js"; // This compact composition renders one month at a time. export interface AriaCalendarProps extends Omit< AriaProps, "children" | "visibleDuration" > { errorMessage?: string; } export function AriaCalendar({ errorMessage, className, ...props }: AriaCalendarProps) { return ( `ynr-aria-calendar ynr-aria ${value ?? ""}`, )} >
{(date) => ( )} {errorMessage && ( {errorMessage} )}
); }