@abgov/react-components 6.4.1 → 6.5.0-alpha.2
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/experimental/form/form.d.ts +1 -2
- package/experimental/form/task-list.d.ts +1 -2
- package/experimental/form/task.d.ts +1 -2
- package/experimental/resizable-panel/ResizablePanel.d.ts +0 -1
- package/experimental.js.map +1 -1
- package/experimental.mjs.map +1 -1
- package/icon-CK55b563.js.map +1 -1
- package/icon-CoYGOp1V.mjs.map +1 -1
- package/index.d.ts +4 -1
- package/index.js +238 -67
- package/index.js.map +1 -1
- package/index.mjs +239 -68
- package/index.mjs.map +1 -1
- package/lib/accordion/accordion.d.ts +1 -2
- package/lib/app-header/app-header.d.ts +0 -1
- package/lib/app-header-menu/app-header-menu.d.ts +1 -2
- package/lib/badge/badge.d.ts +1 -2
- package/lib/block/block.d.ts +1 -2
- package/lib/button/button.d.ts +1 -2
- package/lib/button-group/button-group.d.ts +1 -2
- package/lib/calendar/calendar.d.ts +1 -2
- package/lib/callout/callout.d.ts +0 -1
- package/lib/card/card-actions.d.ts +0 -1
- package/lib/card/card-content.d.ts +0 -1
- package/lib/card/card-group.d.ts +0 -1
- package/lib/card/card-image.d.ts +0 -1
- package/lib/card/card.d.ts +1 -2
- package/lib/checkbox/checkbox.d.ts +1 -2
- package/lib/chip/chip.d.ts +0 -1
- package/lib/circular-progress/circular-progress.d.ts +0 -1
- package/lib/container/container.d.ts +1 -2
- package/lib/date-picker/date-picker.d.ts +1 -2
- package/lib/details/details.d.ts +1 -2
- package/lib/divider/divider.d.ts +0 -1
- package/lib/drawer/drawer.d.ts +1 -2
- package/lib/dropdown/dropdown-item.d.ts +0 -1
- package/lib/dropdown/dropdown.d.ts +1 -2
- package/lib/file-upload-card/file-upload-card.d.ts +0 -1
- package/lib/file-upload-input/file-upload-input.d.ts +0 -1
- package/lib/filter-chip/filter-chip.d.ts +0 -1
- package/lib/footer/footer.d.ts +0 -1
- package/lib/footer-meta-section/footer-meta-section.d.ts +0 -1
- package/lib/footer-nav-section/footer-nav-section.d.ts +0 -1
- package/lib/form/fieldset.d.ts +25 -0
- package/lib/form/public-form-page.d.ts +59 -0
- package/lib/form/public-form-summary.d.ts +17 -0
- package/lib/form/public-form.d.ts +24 -0
- package/lib/form-item/form-item.d.ts +12 -3
- package/lib/form-step/form-step.d.ts +0 -1
- package/lib/form-stepper/form-stepper.d.ts +1 -2
- package/lib/grid/grid.d.ts +1 -2
- package/lib/hero-banner/hero-banner-actions.d.ts +0 -1
- package/lib/hero-banner/hero-banner.d.ts +0 -1
- package/lib/icon/icon.d.ts +1 -2
- package/lib/icon-button/icon-button.d.ts +1 -2
- package/lib/input/input.d.ts +4 -5
- package/lib/link/link.d.ts +1 -2
- package/lib/link-button/link-button.d.ts +1 -2
- package/lib/microsite-header/microsite-header.d.ts +1 -2
- package/lib/modal/modal.d.ts +1 -2
- package/lib/notification/notification.d.ts +0 -1
- package/lib/one-column-layout/one-column-layout.d.ts +0 -1
- package/lib/page-block/page-block.d.ts +0 -1
- package/lib/pages/pages.d.ts +1 -2
- package/lib/pagination/pagination.d.ts +0 -1
- package/lib/popover/popover.d.ts +1 -2
- package/lib/radio-group/radio-group.d.ts +5 -4
- package/lib/radio-group/radio.d.ts +1 -2
- package/lib/side-menu/side-menu.d.ts +0 -1
- package/lib/side-menu-group/side-menu-group.d.ts +1 -2
- package/lib/side-menu-heading/side-menu-heading.d.ts +1 -2
- package/lib/skeleton/skeleton.d.ts +0 -1
- package/lib/spacer/spacer.d.ts +0 -1
- package/lib/spinner/spinner.d.ts +1 -2
- package/lib/tab/tab.d.ts +0 -1
- package/lib/table/table-sort-header.d.ts +1 -2
- package/lib/table/table.d.ts +1 -2
- package/lib/tabs/tabs.d.ts +1 -2
- package/lib/text/text.d.ts +1 -2
- package/lib/textarea/textarea.d.ts +2 -3
- package/lib/three-column-layout/three-column-layout.d.ts +0 -1
- package/lib/tooltip/tooltip.d.ts +1 -2
- package/lib/two-column-layout/two-column-layout.d.ts +0 -1
- package/package.json +1 -1
- package/lib/fieldset/fieldset.d.ts +0 -30
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { GoabAccordionHeadingSize, GoabAccordionIconPosition, Margins } from '@abgov/ui-components-common';
|
|
2
1
|
import { ReactNode, JSX } from 'react';
|
|
3
|
-
|
|
2
|
+
import { GoabAccordionHeadingSize, GoabAccordionIconPosition, Margins } from '@abgov/ui-components-common';
|
|
4
3
|
interface WCProps extends Margins {
|
|
5
4
|
ref: React.RefObject<HTMLElement | null>;
|
|
6
5
|
open?: string;
|
package/lib/badge/badge.d.ts
CHANGED
package/lib/block/block.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
1
|
import { GoabBlockAlignment, GoabBlockDirection, Margins, Spacing } from '@abgov/ui-components-common';
|
|
3
|
-
|
|
2
|
+
import { ReactNode } from 'react';
|
|
4
3
|
export interface WCProps extends Margins {
|
|
5
4
|
gap?: Spacing;
|
|
6
5
|
direction?: GoabBlockDirection;
|
package/lib/button/button.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { GoabButtonSize, GoabButtonType, GoabButtonVariant, GoabIconType, Margins } from '@abgov/ui-components-common';
|
|
2
1
|
import { ReactNode, JSX } from 'react';
|
|
3
|
-
|
|
2
|
+
import { GoabButtonSize, GoabButtonType, GoabButtonVariant, GoabIconType, Margins } from '@abgov/ui-components-common';
|
|
4
3
|
interface WCProps extends Margins {
|
|
5
4
|
type?: GoabButtonType;
|
|
6
5
|
size?: GoabButtonSize;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { JSX } from 'react';
|
|
2
1
|
import { GoabButtonGroupAlignment, GoabButtonGroupGap, Margins } from '@abgov/ui-components-common';
|
|
3
|
-
|
|
2
|
+
import { JSX } from 'react';
|
|
4
3
|
interface WCProps extends Margins {
|
|
5
4
|
alignment: GoabButtonGroupAlignment;
|
|
6
5
|
gap?: GoabButtonGroupGap;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { GoabCalendarOnChangeDetail, Margins } from '@abgov/ui-components-common';
|
|
2
1
|
import { JSX } from 'react';
|
|
3
|
-
|
|
2
|
+
import { GoabCalendarOnChangeDetail, Margins } from '@abgov/ui-components-common';
|
|
4
3
|
interface WCProps extends Margins {
|
|
5
4
|
ref: React.RefObject<HTMLElement | null>;
|
|
6
5
|
name?: string;
|
package/lib/callout/callout.d.ts
CHANGED
package/lib/card/card-group.d.ts
CHANGED
package/lib/card/card-image.d.ts
CHANGED
package/lib/card/card.d.ts
CHANGED
package/lib/chip/chip.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ReactNode, JSX } from 'react';
|
|
2
1
|
import { GoabContainerAccent, GoabContainerPadding, GoabContainerType, GoabContainerWidth, Margins } from '@abgov/ui-components-common';
|
|
3
|
-
|
|
2
|
+
import { ReactNode, JSX } from 'react';
|
|
4
3
|
interface WCProps extends Margins {
|
|
5
4
|
type?: GoabContainerType;
|
|
6
5
|
accent?: GoabContainerAccent;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { GoabDatePickerOnChangeDetail, Margins } from '@abgov/ui-components-common';
|
|
2
1
|
import { JSX } from 'react';
|
|
3
|
-
|
|
2
|
+
import { GoabDatePickerOnChangeDetail, Margins } from '@abgov/ui-components-common';
|
|
4
3
|
interface WCProps extends Margins {
|
|
5
4
|
ref: React.RefObject<HTMLElement | null>;
|
|
6
5
|
name?: string;
|
package/lib/details/details.d.ts
CHANGED
package/lib/divider/divider.d.ts
CHANGED
package/lib/drawer/drawer.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { GoabDrawerPosition, GoabDrawerSize } from '@abgov/ui-components-common';
|
|
2
1
|
import { ReactNode, JSX } from 'react';
|
|
3
|
-
|
|
2
|
+
import { GoabDrawerPosition, GoabDrawerSize } from '@abgov/ui-components-common';
|
|
4
3
|
interface WCProps {
|
|
5
4
|
position: GoabDrawerPosition;
|
|
6
5
|
open?: boolean;
|
package/lib/footer/footer.d.ts
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { GoabFieldsetOnChangeDetail, GoabFieldsetOnContinueDetail, GoabFormDispatchOn, Margins } from '@abgov/ui-components-common';
|
|
3
|
+
interface WCProps extends Margins {
|
|
4
|
+
ref?: React.RefObject<HTMLElement | null>;
|
|
5
|
+
id?: string;
|
|
6
|
+
"section-title"?: string;
|
|
7
|
+
"dispatch-on"?: string;
|
|
8
|
+
}
|
|
9
|
+
declare module "react" {
|
|
10
|
+
namespace JSX {
|
|
11
|
+
interface IntrinsicElements {
|
|
12
|
+
"goa-fieldset": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
interface GoabFieldsetProps extends Margins {
|
|
17
|
+
id?: string;
|
|
18
|
+
sectionTitle?: string;
|
|
19
|
+
dispatchOn?: GoabFormDispatchOn;
|
|
20
|
+
onContinue?: (event: GoabFieldsetOnContinueDetail) => void;
|
|
21
|
+
onChange?: (event: GoabFieldsetOnChangeDetail) => void;
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export declare function GoabFieldset({ id, sectionTitle, dispatchOn, onContinue, onChange, children, }: GoabFieldsetProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export default GoabFieldset;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { GoabPublicFormPageButtonVisibility, GoabPublicFormPageOnFieldsetChangeDetail, GoabPublicFormPageOnCompleteDetail, GoabPublicFormPageStep, Margins } from '@abgov/ui-components-common';
|
|
3
|
+
interface WCProps extends Margins {
|
|
4
|
+
ref?: React.RefObject<HTMLElement | null>;
|
|
5
|
+
id?: string;
|
|
6
|
+
heading?: string;
|
|
7
|
+
"sub-heading"?: string;
|
|
8
|
+
"section-title"?: string;
|
|
9
|
+
"back-url"?: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
"button-text"?: string;
|
|
12
|
+
"button-visibility"?: string;
|
|
13
|
+
first?: boolean;
|
|
14
|
+
last?: boolean;
|
|
15
|
+
"summary-heading"?: string;
|
|
16
|
+
}
|
|
17
|
+
declare module "react" {
|
|
18
|
+
namespace JSX {
|
|
19
|
+
interface IntrinsicElements {
|
|
20
|
+
"goa-public-form-page": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
interface GoabPublicFormPageProps extends Margins {
|
|
25
|
+
id?: string;
|
|
26
|
+
heading?: string;
|
|
27
|
+
subHeading?: string;
|
|
28
|
+
summaryHeading?: string;
|
|
29
|
+
sectionTitle?: string;
|
|
30
|
+
backUrl?: string;
|
|
31
|
+
type?: GoabPublicFormPageStep;
|
|
32
|
+
buttonText?: string;
|
|
33
|
+
buttonVisibility?: GoabPublicFormPageButtonVisibility;
|
|
34
|
+
first?: boolean;
|
|
35
|
+
last?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Triggered when the form page continues to the next step
|
|
38
|
+
* @param event - The continue event details
|
|
39
|
+
*/
|
|
40
|
+
onContinue?: (event: Event) => void;
|
|
41
|
+
/**
|
|
42
|
+
* Triggered when the user clicks the back link
|
|
43
|
+
* @param event: The back event details
|
|
44
|
+
*/
|
|
45
|
+
onBack?: (event: Event) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Triggered when the form fieldset content changes
|
|
48
|
+
* @param event - The fieldset change event details
|
|
49
|
+
*/
|
|
50
|
+
onFieldsetChange?: (event: GoabPublicFormPageOnFieldsetChangeDetail) => void;
|
|
51
|
+
/**
|
|
52
|
+
* Triggered when the form is completed
|
|
53
|
+
* @param event - The complete event details
|
|
54
|
+
*/
|
|
55
|
+
onComplete?: (event: GoabPublicFormPageOnCompleteDetail) => void;
|
|
56
|
+
children: ReactNode;
|
|
57
|
+
}
|
|
58
|
+
export declare function GoabPublicFormPage({ id, heading, subHeading, summaryHeading, sectionTitle, backUrl, type, buttonText, buttonVisibility, first, last, onContinue, onBack, onFieldsetChange, onComplete, children, mt, mr, mb, ml, }: GoabPublicFormPageProps): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
export default GoabPublicFormPage;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface WCProps {
|
|
3
|
+
ref?: React.RefObject<HTMLElement | null>;
|
|
4
|
+
heading?: string;
|
|
5
|
+
}
|
|
6
|
+
declare module "react" {
|
|
7
|
+
namespace JSX {
|
|
8
|
+
interface IntrinsicElements {
|
|
9
|
+
"goa-public-form-summary": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
interface GoabPublicFormSummaryProps {
|
|
14
|
+
heading?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function GoabPublicFormSummary({ heading, }: GoabPublicFormSummaryProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default GoabPublicFormSummary;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { GoabFormState, GoabPublicFormStatus } from '@abgov/ui-components-common';
|
|
3
|
+
interface WCProps {
|
|
4
|
+
ref?: React.RefObject<HTMLElement | null>;
|
|
5
|
+
status?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
}
|
|
8
|
+
declare module "react" {
|
|
9
|
+
namespace JSX {
|
|
10
|
+
interface IntrinsicElements {
|
|
11
|
+
"goa-public-form": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
interface GoabPublicFormProps {
|
|
16
|
+
status?: GoabPublicFormStatus;
|
|
17
|
+
name?: string;
|
|
18
|
+
onInit?: (event: Event) => void;
|
|
19
|
+
onComplete?: (event: GoabFormState) => void;
|
|
20
|
+
onStateChange?: (event: GoabFormState) => void;
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export declare function GoabPublicForm({ status, name, onInit, onComplete, onStateChange, children, }: GoabPublicFormProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export default GoabPublicForm;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { JSX } from 'react';
|
|
2
1
|
import { GoabFormItemLabelSize, GoabFormItemRequirement, Margins } from '@abgov/ui-components-common';
|
|
3
|
-
|
|
2
|
+
import { JSX } from 'react';
|
|
4
3
|
interface WCProps extends Margins {
|
|
5
4
|
label?: string;
|
|
6
5
|
labelsize?: GoabFormItemLabelSize;
|
|
@@ -8,6 +7,8 @@ interface WCProps extends Margins {
|
|
|
8
7
|
error?: string;
|
|
9
8
|
helptext?: string;
|
|
10
9
|
maxwidth?: string;
|
|
10
|
+
"public-form-summary-order"?: number;
|
|
11
|
+
name?: string;
|
|
11
12
|
id?: string;
|
|
12
13
|
testid?: string;
|
|
13
14
|
}
|
|
@@ -25,9 +26,17 @@ export interface GoabFormItemProps extends Margins {
|
|
|
25
26
|
error?: string | React.ReactNode;
|
|
26
27
|
helpText?: string | React.ReactNode;
|
|
27
28
|
maxWidth?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Public form: to arrange fields in the summary
|
|
31
|
+
*/
|
|
32
|
+
publicFormSummaryOrder?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Public form: allow to override the label value within the form-summary to provide a shorter description of the value
|
|
35
|
+
*/
|
|
36
|
+
name?: string;
|
|
28
37
|
children?: React.ReactNode;
|
|
29
38
|
testId?: string;
|
|
30
39
|
id?: string;
|
|
31
40
|
}
|
|
32
|
-
export declare function GoabFormItem({ children, helpText, error, requirement, label, labelSize, maxWidth, mt, mr, mb, ml, testId, id, }: GoabFormItemProps): JSX.Element;
|
|
41
|
+
export declare function GoabFormItem({ children, helpText, error, requirement, label, labelSize, maxWidth, publicFormSummaryOrder, name, mt, mr, mb, ml, testId, id, }: GoabFormItemProps): JSX.Element;
|
|
33
42
|
export default GoabFormItem;
|
package/lib/grid/grid.d.ts
CHANGED
package/lib/icon/icon.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { JSX, ReactNode } from 'react';
|
|
2
1
|
import { GoabIconButtonVariant, GoabIconSize, GoabIconType, Margins } from '@abgov/ui-components-common';
|
|
3
|
-
|
|
2
|
+
import { JSX, ReactNode } from 'react';
|
|
4
3
|
interface WCProps extends Margins {
|
|
5
4
|
ref: React.RefObject<HTMLElement | null>;
|
|
6
5
|
icon: GoabIconType;
|
package/lib/input/input.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { GoabAutoCapitalize, GoabDate, GoabIconType, GoaInputOnBlurDetail, GoabInputOnChangeDetail, GoabInputOnFocusDetail, GoabInputOnKeyPressDetail, GoabInputType, Margins } from '@abgov/ui-components-common';
|
|
2
1
|
import { JSX } from 'react';
|
|
3
|
-
|
|
2
|
+
import { GoabAutoCapitalize, GoabDate, GoabIconType, GoaInputOnBlurDetail, GoabInputOnChangeDetail, GoabInputOnFocusDetail, GoabInputOnKeyPressDetail, GoabInputType, Margins } from '@abgov/ui-components-common';
|
|
4
3
|
export interface IgnoreMe {
|
|
5
4
|
ignore: string;
|
|
6
5
|
}
|
|
@@ -68,7 +67,7 @@ type OnFocus<T = string> = (detail: GoabInputOnFocusDetail<T>) => void;
|
|
|
68
67
|
type OnBlur<T = string> = (detail: GoaInputOnBlurDetail<T>) => void;
|
|
69
68
|
type OnKeyPress<T = string> = (detail: GoabInputOnKeyPressDetail<T>) => void;
|
|
70
69
|
export interface GoabInputProps extends BaseProps {
|
|
71
|
-
onChange
|
|
70
|
+
onChange?: OnChange<string>;
|
|
72
71
|
value?: string;
|
|
73
72
|
min?: number | string;
|
|
74
73
|
max?: number | string;
|
|
@@ -78,7 +77,7 @@ export interface GoabInputProps extends BaseProps {
|
|
|
78
77
|
onKeyPress?: OnKeyPress<string>;
|
|
79
78
|
}
|
|
80
79
|
interface GoabNumberInputProps extends BaseProps {
|
|
81
|
-
onChange
|
|
80
|
+
onChange?: OnChange<number>;
|
|
82
81
|
value?: number;
|
|
83
82
|
min?: number;
|
|
84
83
|
max?: number;
|
|
@@ -88,7 +87,7 @@ interface GoabNumberInputProps extends BaseProps {
|
|
|
88
87
|
onKeyPress?: OnKeyPress<number>;
|
|
89
88
|
}
|
|
90
89
|
interface GoabDateInputProps extends BaseProps {
|
|
91
|
-
onChange
|
|
90
|
+
onChange?: OnChange<GoabDate>;
|
|
92
91
|
value?: GoabDate;
|
|
93
92
|
min?: GoabDate;
|
|
94
93
|
max?: GoabDate;
|
package/lib/link/link.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { GoabIconType, Margins } from '@abgov/ui-components-common';
|
|
2
1
|
import { ReactNode } from 'react';
|
|
3
|
-
|
|
2
|
+
import { GoabIconType, Margins } from '@abgov/ui-components-common';
|
|
4
3
|
interface WCProps extends Margins {
|
|
5
4
|
leadingicon?: GoabIconType;
|
|
6
5
|
trailingicon?: GoabIconType;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { GoabIconType, GoabLinkButtonType, Margins } from '@abgov/ui-components-common';
|
|
2
1
|
import { ReactNode } from 'react';
|
|
3
|
-
|
|
2
|
+
import { GoabIconType, GoabLinkButtonType, Margins } from '@abgov/ui-components-common';
|
|
4
3
|
interface WCProps extends Margins {
|
|
5
4
|
type?: GoabLinkButtonType;
|
|
6
5
|
leadingicon?: GoabIconType;
|
package/lib/modal/modal.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ReactElement, ReactNode, RefObject, JSX } from 'react';
|
|
2
1
|
import { GoabModalCalloutVariant, GoabModalRole, GoabModalTransition } from '@abgov/ui-components-common';
|
|
3
|
-
|
|
2
|
+
import { ReactElement, ReactNode, RefObject, JSX } from 'react';
|
|
4
3
|
interface WCProps {
|
|
5
4
|
ref: RefObject<HTMLElement | null>;
|
|
6
5
|
heading?: ReactNode;
|
package/lib/pages/pages.d.ts
CHANGED
package/lib/popover/popover.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { GoabRadioGroupOnChangeDetail, GoabRadioGroupOrientation, Margins } from '@abgov/ui-components-common';
|
|
2
1
|
import { JSX } from 'react';
|
|
3
|
-
|
|
2
|
+
import { GoabRadioGroupOnChangeDetail, GoabRadioGroupOrientation, Margins } from '@abgov/ui-components-common';
|
|
4
3
|
export * from './radio';
|
|
5
4
|
interface WCProps extends Margins {
|
|
6
5
|
ref: React.RefObject<HTMLElement | null>;
|
|
7
6
|
name: string;
|
|
8
7
|
value?: string;
|
|
8
|
+
id?: string;
|
|
9
9
|
orientation?: GoabRadioGroupOrientation;
|
|
10
10
|
disabled?: string;
|
|
11
11
|
error?: string;
|
|
@@ -22,13 +22,14 @@ declare module "react" {
|
|
|
22
22
|
export interface GoabRadioGroupProps extends Margins {
|
|
23
23
|
name: string;
|
|
24
24
|
value?: string;
|
|
25
|
+
id?: string;
|
|
25
26
|
disabled?: boolean;
|
|
26
27
|
orientation?: GoabRadioGroupOrientation;
|
|
27
28
|
testId?: string;
|
|
28
29
|
error?: boolean;
|
|
29
30
|
ariaLabel?: string;
|
|
30
31
|
children?: React.ReactNode;
|
|
31
|
-
onChange
|
|
32
|
+
onChange?: (detail: GoabRadioGroupOnChangeDetail) => void;
|
|
32
33
|
}
|
|
33
|
-
export declare function GoabRadioGroup({ name, value, children, orientation, disabled, error, testId, ariaLabel, mt, mr, mb, ml, onChange, }: GoabRadioGroupProps): JSX.Element;
|
|
34
|
+
export declare function GoabRadioGroup({ name, value, children, orientation, disabled, error, id, testId, ariaLabel, mt, mr, mb, ml, onChange, }: GoabRadioGroupProps): JSX.Element;
|
|
34
35
|
export default GoabRadioGroup;
|