/** * DateRange — a start and an end picked from one calendar (W2 §The Kit). * * Base UI ships no calendar, so the grid is ours; what it borrows is the * popover — anchoring, dismissal, Esc, and focus return — which is the part * that is actually hard to get right. */ import { Popover } from "@base-ui/react/popover"; import { type ComponentProps } from "react"; import { type KitStyled, type KitEngine, type KitRendered } from "../tokens.js"; interface DateRangeOwnProps extends KitStyled { label?: string; /** ISO yyyy-mm-dd. */ start?: string; end?: string; min?: string; max?: string; placeholder?: string; hint?: string; disabled?: boolean; /** Bound change handler; receives `{ start, end }` as ISO dates. */ onChange?: (range: { start: string; end: string; }) => void; } /** Plus any Base UI `` prop, handed straight to the popover. * `style` stays the Kit's own — it dresses the ROOT the label and hint share. */ export type DateRangeProps = DateRangeOwnProps & KitEngine, DateRangeOwnProps>; export declare function DateRange({ label: fieldLabel, start, end, min, max, placeholder, hint, disabled, onChange, style, children, pending, ...engine }: DateRangeProps & KitRendered): import("react").JSX.Element; export {};