import { IBox, IInput } from '../../types'; export interface IDateField extends Omit { value: DateValue; onChange: (date: DateValue) => void; } export interface IDateInput extends IDateField { /** * Handler for when the date changes. */ onChange: (date: DateValue) => void; /** * The currently selected date. */ value: DateValue; /** * The maximum selectable date. */ maxDate?: Date; /** * The minimum selectable date. */ minDate?: Date; /** * Disables the date input. */ disabled?: boolean; /** * Makes the date input read-only. */ readOnly?: boolean; /** * Allows the date input to be clearable. */ isClearable?: boolean; /** * Placeholder text displayed in the date input. */ placeholder?: string; /** * sets the input mode for date picker */ mode?: 'day' | 'month' | 'year'; } export interface IDateRange extends Omit { /** * Handler for when the date range changes. */ onChange: (date: DateRangeValue | null) => void; /** * The currently selected date range. */ value: DateRangeValue | null; /** * The maximum selectable date. */ maxDate?: Date; /** * The minimum selectable date. */ minDate?: Date; /** * Disables the date input. */ disabled?: boolean; /** * Makes the date input read-only. */ readOnly?: boolean; /** * Allows the date input to be clearable. */ isClearable?: boolean; /** * Placeholder text displayed in the date input. */ placeholder?: string; } export declare type DateRangeValue = { start?: Date; end?: Date; } | null; export declare type DateValue = Date | null;