-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathindex.react.d.ts
43 lines (40 loc) · 1.07 KB
/
index.react.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
import React from 'react';
export interface AXADatepickerProps {
dataTestId?: string;
inputfield?: boolean;
value?: string;
defaultValue?: string;
onChange?: (event: InputEvent) => void;
onDateChange?: (date: Date) => void;
onFocus?: (event: FocusEvent) => void;
onBlur?: (event: FocusEvent) => void;
onInputfieldKeyUp?: (event: KeyboardEvent) => void;
locale?: string;
date?: Date;
year?: number;
month?: number;
day?: number;
/**
* Individual years need to be specified as numbers,
* date ranges need to be strings.
* This prop is required.
* Example: ['2010-2015', 2019, 2020]
*/
allowedyears: Array<string | number>;
placeholder?: string;
monthtitle?: string;
yeartitle?: string;
invalid?: boolean;
invaliddatetext?: string;
disabled?: boolean;
checkMark?: boolean;
label?: string;
required?: boolean;
className?: string;
name?: string;
}
declare function createAXADatepicker(
createElement: typeof React.createElement,
version?: string
): React.ComponentType<AXADatepickerProps>;
export default createAXADatepicker;