-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathindex.d.ts
54 lines (52 loc) · 1.59 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
export interface PickerProps {
placeholder?: string;
format: string;
onChange: (unix: string, formatted: string) => void;
id?: string;
preSelected?: string;
customClass?: string;
inputTextAlign?: string;
containerClass?: string;
inputComponent?: React.Component | React.FC;
monthTitleEnable?: boolean;
cancelOnBackgroundClick?: boolean;
controlValue?: boolean;
newThemeColor?: string;
}
export interface RangePickerProps {
placeholderStart?: string;
placeholderEnd?: string;
format: string;
onChangeStart: (unix: string, formatted: string) => void;
onChangeEnd: (unix: string, formatted: string) => void;
idStart?: string;
idEnd?: string;
customClassStart?: string;
customClassEnd?: string;
inputTextAlign?: string;
containerClass?: string;
preSelectedStart?: string;
monthTitleEnable?: boolean;
cancelOnBackgroundClick?: boolean;
controlValue?: boolean;
renderPointer?: boolean;
pointer?: React.Component | React.FC;
inputComponent?: React.Component | React.FC;
newstringColor?: Theme;
}
export class DatePicker extends React.Component<PickerProps, any> {
props: PickerProps;
state: any;
}
export class DateTimePicker extends React.Component<PickerProps, any> {
props: PickerProps;
state: any;
}
export class DateRangePicker extends React.Component<RangePickerProps, any> {
props: RangePickerProps;
state: any;
}
export class DateTimeRangePicker extends React.Component<RangePickerProps, any> {
props: RangePickerProps;
state: any;
}