"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 { RangeCalendar as AriaRangeCalendar, type RangeCalendarProps 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 RangeCalendarProps extends Omit< AriaProps, "children" | "visibleDuration" > { errorMessage?: string; } export function RangeCalendar({ errorMessage, className, ...props }: RangeCalendarProps) { return ( `ynr-range-calendar ynr-aria ${value ?? ""}`, )} >
{(date) => ( )} {errorMessage && ( {errorMessage} )}
); }