@abgov/react-components 6.7.1-alpha.2 → 6.7.1-alpha.4
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/index.js +10 -3
- package/index.js.map +1 -1
- package/index.mjs +10 -3
- package/index.mjs.map +1 -1
- package/lib/dropdown/dropdown-item.d.ts +2 -2
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/radio-group/radio-group.d.ts +2 -2
- package/lib/radio-group/radio.d.ts +2 -2
- package/lib/tooltip/tooltip.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GoabDropdownItemMountType } from '@abgov/ui-components-common';
|
|
2
2
|
interface WCProps {
|
|
3
|
-
value: string;
|
|
3
|
+
value: string | number;
|
|
4
4
|
label?: string;
|
|
5
5
|
filter?: string;
|
|
6
6
|
mount?: GoabDropdownItemMountType;
|
|
@@ -14,7 +14,7 @@ declare module "react" {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
export interface GoabDropdownItemProps {
|
|
17
|
-
value: string;
|
|
17
|
+
value: string | number;
|
|
18
18
|
label?: string;
|
|
19
19
|
filter?: string;
|
|
20
20
|
testId?: string;
|
|
@@ -29,7 +29,7 @@ declare module "react" {
|
|
|
29
29
|
}
|
|
30
30
|
export interface GoabDropdownProps extends Margins {
|
|
31
31
|
name?: string;
|
|
32
|
-
value?: string[] | string;
|
|
32
|
+
value?: string[] | string | number;
|
|
33
33
|
onChange?: (detail: GoabDropdownOnChangeDetail) => void;
|
|
34
34
|
ariaLabel?: string;
|
|
35
35
|
ariaLabelledBy?: string;
|
|
@@ -4,7 +4,7 @@ export * from './radio';
|
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
5
|
ref: React.RefObject<HTMLElement | null>;
|
|
6
6
|
name: string;
|
|
7
|
-
value?: string;
|
|
7
|
+
value?: string | number | boolean;
|
|
8
8
|
id?: string;
|
|
9
9
|
orientation?: GoabRadioGroupOrientation;
|
|
10
10
|
disabled?: string;
|
|
@@ -21,7 +21,7 @@ declare module "react" {
|
|
|
21
21
|
}
|
|
22
22
|
export interface GoabRadioGroupProps extends Margins {
|
|
23
23
|
name: string;
|
|
24
|
-
value?: string;
|
|
24
|
+
value?: string | number | boolean;
|
|
25
25
|
id?: string;
|
|
26
26
|
disabled?: boolean;
|
|
27
27
|
orientation?: GoabRadioGroupOrientation;
|
|
@@ -2,7 +2,7 @@ import { Margins } from '@abgov/ui-components-common';
|
|
|
2
2
|
import { JSX } from 'react';
|
|
3
3
|
interface WCProps extends Margins {
|
|
4
4
|
name?: string;
|
|
5
|
-
value?: string;
|
|
5
|
+
value?: string | number | boolean;
|
|
6
6
|
description?: string | React.ReactNode;
|
|
7
7
|
reveal?: React.ReactNode;
|
|
8
8
|
revealarialabel?: string;
|
|
@@ -21,7 +21,7 @@ declare module "react" {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
export interface GoabRadioItemProps extends Margins {
|
|
24
|
-
value?: string;
|
|
24
|
+
value?: string | number | boolean;
|
|
25
25
|
label?: string;
|
|
26
26
|
name?: string;
|
|
27
27
|
description?: string | React.ReactNode;
|
package/lib/tooltip/tooltip.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ declare module "react" {
|
|
|
15
15
|
}
|
|
16
16
|
export interface GoabTooltipProps extends Margins {
|
|
17
17
|
position?: GoabTooltipPosition;
|
|
18
|
-
content?: string;
|
|
18
|
+
content?: string | ReactNode;
|
|
19
19
|
hAlign?: GoabTooltipHorizontalAlignment;
|
|
20
20
|
testId?: string;
|
|
21
21
|
children?: ReactNode;
|