1 |
|
2 |
|
3 | import { MaterialUiPickersDate } from '../typings/date';
|
4 | import { OutterCalendarProps } from '../views/Calendar/Calendar';
|
5 | import { ParsableDate } from '../constants/prop-types';
|
6 | import { WithKeyboardInputProps, WithPureInputProps } from '../Picker/makePickerWithState';
|
7 | export declare type DatePickerView = 'year' | 'date' | 'month';
|
8 | export interface BaseDatePickerProps extends OutterCalendarProps {
|
9 | |
10 |
|
11 |
|
12 |
|
13 | minDate?: ParsableDate;
|
14 | |
15 |
|
16 |
|
17 |
|
18 | maxDate?: ParsableDate;
|
19 | |
20 |
|
21 |
|
22 |
|
23 | strictCompareDates?: boolean;
|
24 | |
25 |
|
26 |
|
27 |
|
28 | disablePast?: boolean;
|
29 | |
30 |
|
31 |
|
32 |
|
33 | disableFuture?: boolean;
|
34 | |
35 |
|
36 |
|
37 |
|
38 | animateYearScrolling?: boolean;
|
39 |
|
40 | onYearChange?: (date: MaterialUiPickersDate) => void;
|
41 | }
|
42 | export interface DatePickerViewsProps extends BaseDatePickerProps {
|
43 | |
44 |
|
45 |
|
46 |
|
47 | views?: DatePickerView[];
|
48 |
|
49 | openTo?: DatePickerView;
|
50 | }
|
51 | export declare type DatePickerProps = WithPureInputProps & DatePickerViewsProps;
|
52 | export declare type KeyboardDatePickerProps = WithKeyboardInputProps & DatePickerViewsProps;
|
53 | export declare const DatePicker: import("react").FC<DatePickerProps>;
|
54 | export declare const KeyboardDatePicker: import("react").FC<KeyboardDatePickerProps>;
|