forked from axa-ch-webhub-cloud/pattern-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.react.d.ts
45 lines (40 loc) · 938 Bytes
/
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
44
45
import React from 'react';
export type Item = {
name: string;
value?: string;
selected?: boolean;
disabled?: boolean;
};
export type AXADropdownItem = {
value: string;
name: string;
label: string;
index: number;
};
export interface AXADropdownProps {
items: Array<Item>;
embedded?: boolean;
refId?: string;
label?: string;
required?: boolean;
invalid?: boolean;
error?: string;
native?: boolean;
onChange?: (item: AXADropdownItem) => void;
onFocus?: (event: FocusEvent) => void;
onBlur?: (event: FocusEvent) => void;
defaultTitle?: string;
value?: string;
checkMark?: boolean;
disabled?: boolean;
dataTestId?: string;
className?: string;
maxHeight?: string;
cropText?: boolean;
showValue?: boolean;
}
declare function createAXADropdown(
createElement: typeof React.createElement,
version?: string
): React.ComponentType<AXADropdownProps>;
export default createAXADropdown;