@abgov/ui-components-common 1.7.0 → 1.8.0-alpha.1
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 +9 -5
- package/package.json +1 -1
package/lib/common.d.ts
CHANGED
|
@@ -2,7 +2,11 @@ export type GoabSpinnerType = "infinite" | "progress";
|
|
|
2
2
|
export type GoabSpinnerSize = "small" | "medium" | "large" | "xlarge";
|
|
3
3
|
export type GoabRadioGroupOnChangeDetail = {
|
|
4
4
|
name: string;
|
|
5
|
-
value: string;
|
|
5
|
+
value: string | number | boolean;
|
|
6
|
+
};
|
|
7
|
+
export type GoabCheckboxListOnChangeDetail = {
|
|
8
|
+
name: string;
|
|
9
|
+
value: string[];
|
|
6
10
|
};
|
|
7
11
|
export type GoabInputOnChangeDetail<T = string> = {
|
|
8
12
|
name: string;
|
|
@@ -35,8 +39,8 @@ export type GoabFileUploadOnDeleteDetail = {
|
|
|
35
39
|
export type GoabDropdownItemMountType = "append" | "prepend" | "reset";
|
|
36
40
|
export type GoabDropdownOnChangeDetail = {
|
|
37
41
|
name?: string;
|
|
38
|
-
value?: string;
|
|
39
|
-
values?: string[];
|
|
42
|
+
value?: string | number;
|
|
43
|
+
values?: (string | number)[];
|
|
40
44
|
};
|
|
41
45
|
export type GoabDatePickerOnChangeDetail = {
|
|
42
46
|
name?: string;
|
|
@@ -48,7 +52,7 @@ export type GoabChipTheme = "outline" | "filled";
|
|
|
48
52
|
export type GoabFilterChipTheme = "outline" | "filled";
|
|
49
53
|
export type GoabCheckboxOnChangeDetail = {
|
|
50
54
|
name?: string;
|
|
51
|
-
value?: string;
|
|
55
|
+
value?: string | number | boolean;
|
|
52
56
|
checked: boolean;
|
|
53
57
|
binding: "value" | "check";
|
|
54
58
|
};
|
|
@@ -56,7 +60,7 @@ export type GoabCalendarOnChangeDetail = {
|
|
|
56
60
|
name?: string;
|
|
57
61
|
value: string;
|
|
58
62
|
};
|
|
59
|
-
export type GoabBadgeType = "information" | "success" | "important" | "emergency" | "dark" | "midtone" | "light";
|
|
63
|
+
export type GoabBadgeType = "information" | "success" | "important" | "emergency" | "dark" | "midtone" | "light" | "archived" | "aqua" | "black" | "blue" | "green" | "orange" | "pink" | "red" | "violet" | "white" | "yellow" | "aqua-light" | "black-light" | "blue-light" | "green-light" | "orange-light" | "pink-light" | "red-light" | "violet-light" | "yellow-light";
|
|
60
64
|
export type GoabPaginationVariant = "all" | "links-only";
|
|
61
65
|
export type GoabPaginationOnChangeDetail = {
|
|
62
66
|
page: number;
|