@abgov/react-components 6.8.0-alpha.2 → 6.8.0-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 +1 -6
- package/index.js.map +1 -1
- package/index.mjs +1 -6
- 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/menu-button/menu-button.d.ts +2 -2
- package/lib/popover/popover.d.ts +1 -3
- package/lib/radio-group/radio-group.d.ts +2 -2
- package/lib/radio-group/radio.d.ts +2 -2
- 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;
|
|
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;
|
|
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;
|
|
33
33
|
onChange?: (detail: GoabDropdownOnChangeDetail) => void;
|
|
34
34
|
ariaLabel?: string;
|
|
35
35
|
ariaLabelledBy?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GoabButtonType } from '@abgov/ui-components-common';
|
|
1
|
+
import { GoabButtonType, GoabMenuButtonOnActionDetail } from '@abgov/ui-components-common';
|
|
2
2
|
import { ReactNode, JSX } from 'react';
|
|
3
3
|
/**
|
|
4
4
|
* Props definition for the `goab-menu-button` Web Component.
|
|
@@ -41,7 +41,7 @@ export interface GoabMenuButtonProps {
|
|
|
41
41
|
text: string;
|
|
42
42
|
type?: GoabButtonType;
|
|
43
43
|
testId?: string;
|
|
44
|
-
onAction?: (
|
|
44
|
+
onAction?: (detail: GoabMenuButtonOnActionDetail) => void;
|
|
45
45
|
children?: ReactNode;
|
|
46
46
|
}
|
|
47
47
|
/**
|
package/lib/popover/popover.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ interface WCProps extends Margins {
|
|
|
7
7
|
position?: GoabPopoverPosition;
|
|
8
8
|
relative?: string;
|
|
9
9
|
testid?: string;
|
|
10
|
-
tabindex?: number;
|
|
11
10
|
}
|
|
12
11
|
declare module "react" {
|
|
13
12
|
namespace JSX {
|
|
@@ -24,11 +23,10 @@ export interface GoabPopoverProps extends Margins {
|
|
|
24
23
|
padded?: boolean;
|
|
25
24
|
position?: GoabPopoverPosition;
|
|
26
25
|
children: ReactNode;
|
|
27
|
-
tabIndex?: number;
|
|
28
26
|
/***
|
|
29
27
|
* @deprecated This property has no effect and will be removed in a future version
|
|
30
28
|
*/
|
|
31
29
|
relative?: boolean;
|
|
32
30
|
}
|
|
33
|
-
export declare function GoabPopover({ target, testId, maxWidth, minWidth, padded, position, relative, children,
|
|
31
|
+
export declare function GoabPopover({ target, testId, maxWidth, minWidth, padded, position, relative, children, mt, mr, mb, ml, }: GoabPopoverProps): JSX.Element;
|
|
34
32
|
export default GoabPopover;
|
|
@@ -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;
|
|
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;
|
|
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;
|
|
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;
|
|
25
25
|
label?: string;
|
|
26
26
|
name?: string;
|
|
27
27
|
description?: string | React.ReactNode;
|