import { DatePickerProps } from './types/DatePicker.props.ts'; import { MemoExoticComponent } from 'react'; /** * A date picker that combines a native `type="date"` text field with a * calendar popover. * * - Typing a valid `YYYY-MM-DD` date updates the calendar and calls `onChange`. * - Selecting a day in the calendar updates the input and closes the popover. * - Invalid or incomplete typed values are kept in the input but do not update * the selected date until they become valid. * - Opening the popover focuses the selected day (or today), and closing it * returns focus to the input. * * @example * ```tsx * const [date, setDate] = useState() * * ``` */ declare const DatePicker: MemoExoticComponent<({ value, defaultValue, onChange, calendarProps, id, disabled, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, calendarAriaLabel, onKeyDown, ...textFieldProps }: DatePickerProps) => import("react").JSX.Element>; export default DatePicker;