/// /// import { MaterialUiPickersDate } from '../typings/date'; import { OutterCalendarProps } from '../views/Calendar/Calendar'; import { ParsableDate } from '../constants/prop-types'; import { WrappedPurePickerProps } from '../Picker/WrappedPurePicker'; import { WrappedKeyboardPickerProps } from '../Picker/WrappedKeyboardPicker'; export declare type DatePickerView = 'year' | 'date' | 'month'; export interface BaseDatePickerProps extends OutterCalendarProps { /** * Min selectable date * @default Date(1900-01-01) */ minDate?: ParsableDate; /** * Max selectable date * @default Date(2200-01-01) */ maxDate?: ParsableDate; /** * Compare dates by the exact timestamp, instead of start/end of date * @default false */ strictCompareDates?: boolean; /** * Disable past dates * @default false */ disablePast?: boolean; /** * Disable future dates * @default false */ disableFuture?: boolean; /** * To animate scrolling to current year (using scrollIntoView) * @default false */ animateYearScrolling?: boolean; /** Callback firing on year change */ onYearChange?: (date: MaterialUiPickersDate) => void; } export interface DatePickerViewsProps extends BaseDatePickerProps { /** * Array of views to show * @type {Array<"year" | "date" | "month">} */ views?: DatePickerView[]; /** Open to DatePicker */ openTo?: DatePickerView; } export declare type DatePickerProps = WrappedPurePickerProps & DatePickerViewsProps; export declare type KeyboardDatePickerProps = WrappedKeyboardPickerProps & DatePickerViewsProps; export declare const DatePicker: import("react").FunctionComponent; export declare const KeyboardDatePicker: import("react").FunctionComponent, "okLabel" | "cancelLabel" | "clearLabel" | "todayLabel" | "clearable" | "showTodayButton" | "DialogProps"> & Pick, "PopoverProps"> & Pick & DatePickerViewsProps>;