@abgov/ui-components-common 1.10.0-dev.4 → 1.10.0-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/common.d.ts +20 -4
- package/package.json +1 -1
package/lib/common.d.ts
CHANGED
|
@@ -3,19 +3,23 @@ export type GoabSpinnerSize = "small" | "medium" | "large" | "xlarge";
|
|
|
3
3
|
export type GoabRadioGroupOnChangeDetail = {
|
|
4
4
|
name: string;
|
|
5
5
|
value: string;
|
|
6
|
+
event: Event;
|
|
6
7
|
};
|
|
7
8
|
export type GoabCheckboxListOnChangeDetail = {
|
|
8
9
|
name: string;
|
|
9
10
|
value: string[];
|
|
11
|
+
event: Event;
|
|
10
12
|
};
|
|
11
13
|
export type GoabInputOnChangeDetail<T = string> = {
|
|
12
14
|
name: string;
|
|
13
15
|
value: T;
|
|
16
|
+
event: Event;
|
|
14
17
|
};
|
|
15
18
|
export type GoaInputOnBlurDetail = GoabInputOnBlurDetail;
|
|
16
19
|
export type GoabInputOnBlurDetail<T = string> = {
|
|
17
20
|
name: string;
|
|
18
21
|
value: T;
|
|
22
|
+
event: Event;
|
|
19
23
|
};
|
|
20
24
|
export type GoabInputOnFocusDetail<T = string> = GoabInputOnChangeDetail<T>;
|
|
21
25
|
export type GoabMenuButtonOnActionDetail = {
|
|
@@ -26,24 +30,29 @@ export type GoabInputOnKeyPressDetail<T = string> = {
|
|
|
26
30
|
name: string;
|
|
27
31
|
value: T;
|
|
28
32
|
key: T;
|
|
33
|
+
event: Event;
|
|
29
34
|
};
|
|
30
35
|
export type GoabFormStepperOnChangeDetail = {
|
|
31
36
|
step: number;
|
|
32
37
|
};
|
|
33
38
|
export type GoabFileUploadInputOnSelectFileDetail = {
|
|
34
39
|
file: File;
|
|
40
|
+
event: Event;
|
|
35
41
|
};
|
|
36
42
|
export type GoabFileUploadOnCancelDetail = {
|
|
37
43
|
filename: string;
|
|
44
|
+
event: Event;
|
|
38
45
|
};
|
|
39
46
|
export type GoabFileUploadOnDeleteDetail = {
|
|
40
47
|
filename: string;
|
|
48
|
+
event: Event;
|
|
41
49
|
};
|
|
42
50
|
export type GoabDropdownItemMountType = "append" | "prepend" | "reset";
|
|
43
51
|
export type GoabDropdownOnChangeDetail = {
|
|
44
52
|
name?: string;
|
|
45
53
|
value?: string;
|
|
46
54
|
values?: string[];
|
|
55
|
+
event: Event;
|
|
47
56
|
};
|
|
48
57
|
export type GoabDatePickerOnChangeDetail = {
|
|
49
58
|
name?: string;
|
|
@@ -52,6 +61,7 @@ export type GoabDatePickerOnChangeDetail = {
|
|
|
52
61
|
* @deprecated Use `valueStr` instead
|
|
53
62
|
*/
|
|
54
63
|
value: Date;
|
|
64
|
+
event: Event;
|
|
55
65
|
};
|
|
56
66
|
export type GoabDatePickerInputType = "calendar" | "input";
|
|
57
67
|
export type GoabChipVariant = "filter";
|
|
@@ -62,6 +72,7 @@ export type GoabCheckboxOnChangeDetail = {
|
|
|
62
72
|
value?: string;
|
|
63
73
|
checked: boolean;
|
|
64
74
|
binding: "value" | "check";
|
|
75
|
+
event: Event;
|
|
65
76
|
};
|
|
66
77
|
export type GoabCalendarOnChangeDetail = {
|
|
67
78
|
name?: string;
|
|
@@ -98,18 +109,23 @@ export type GoabTextAreaCountBy = "character" | "word" | "";
|
|
|
98
109
|
export type GoabTextAreaOnChangeDetail = {
|
|
99
110
|
name: string;
|
|
100
111
|
value: string;
|
|
112
|
+
event: Event;
|
|
101
113
|
};
|
|
102
114
|
export type GoabTextAreaOnKeyPressDetail = {
|
|
103
115
|
name: string;
|
|
104
116
|
value: string;
|
|
105
117
|
key: string;
|
|
118
|
+
event: Event;
|
|
106
119
|
};
|
|
107
120
|
export type GoabTextAreaOnBlurDetail = {
|
|
108
121
|
name: string;
|
|
109
122
|
value: string;
|
|
123
|
+
event: Event;
|
|
110
124
|
};
|
|
125
|
+
export type GoabTabsVariant = "default" | "segmented";
|
|
111
126
|
export interface GoabTabsProps {
|
|
112
127
|
initialTab?: number;
|
|
128
|
+
variant?: GoabTabsVariant;
|
|
113
129
|
}
|
|
114
130
|
export type GoabTabsOnChangeDetail = {
|
|
115
131
|
tab: number;
|
|
@@ -184,10 +200,10 @@ export type GoabModalCalloutVariant = "information" | "important" | "emergency"
|
|
|
184
200
|
export type GoabDate = Date | string;
|
|
185
201
|
export type GoabInputType = "text" | "password" | "email" | "number" | "date" | "datetime-local" | "month" | "range" | "search" | "tel" | "time" | "url" | "week";
|
|
186
202
|
export type GoabAutoCapitalize = "on" | "off" | "none" | "sentences" | "words" | "characters";
|
|
187
|
-
export type OnChange<T = string> = (name: string, value: T) => void;
|
|
188
|
-
export type OnFocus<T = string> = (name: string, value: T) => void;
|
|
189
|
-
export type OnBlur<T = string> = (name: string, value: T) => void;
|
|
190
|
-
export type OnKeyPress<T = string> = (name: string, value: T, key: string) => void;
|
|
203
|
+
export type OnChange<T = string> = (name: string, value: T, event: Event) => void;
|
|
204
|
+
export type OnFocus<T = string> = (name: string, value: T, event: Event) => void;
|
|
205
|
+
export type OnBlur<T = string> = (name: string, value: T, event: Event) => void;
|
|
206
|
+
export type OnKeyPress<T = string> = (name: string, value: T, key: string, event: Event) => void;
|
|
191
207
|
export interface GoabInputProps extends BaseProps {
|
|
192
208
|
onChange: OnChange<string>;
|
|
193
209
|
value?: string;
|