@abgov/react-components 6.3.0-alpha.3 → 6.3.0-alpha.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/experimental/form/form-summary.d.ts +1 -1
- package/experimental/form/form.d.ts +2 -2
- package/experimental/form/task-list.d.ts +2 -2
- package/experimental/form/task.d.ts +1 -1
- package/experimental/resizable-panel/ResizablePanel.d.ts +1 -1
- package/experimental.js +1 -1
- package/experimental.js.map +1 -1
- package/experimental.mjs +2 -2
- package/experimental.mjs.map +1 -1
- package/{icon-BPmPItnm.js → icon-CK55b563.js} +5 -4
- package/icon-CK55b563.js.map +1 -0
- package/{icon-BNGrU_R_.mjs → icon-CoYGOp1V.mjs} +5 -4
- package/icon-CoYGOp1V.mjs.map +1 -0
- package/index.d.ts +0 -1
- package/index.js +68 -71
- package/index.js.map +1 -1
- package/index.mjs +68 -71
- package/index.mjs.map +1 -1
- package/lib/accordion/accordion.d.ts +4 -4
- package/lib/app-header/app-header.d.ts +5 -4
- package/lib/app-header-menu/app-header-menu.d.ts +1 -1
- package/lib/badge/badge.d.ts +3 -2
- package/lib/block/block.d.ts +1 -1
- package/lib/button/button.d.ts +4 -4
- package/lib/button-group/button-group.d.ts +2 -1
- package/lib/calendar/calendar.d.ts +3 -2
- package/lib/callout/callout.d.ts +1 -1
- package/lib/card/card-actions.d.ts +3 -2
- package/lib/card/card-content.d.ts +3 -2
- package/lib/card/card-group.d.ts +3 -2
- package/lib/card/card-image.d.ts +3 -2
- package/lib/card/card.d.ts +2 -1
- package/lib/checkbox/checkbox.d.ts +7 -6
- package/lib/chip/chip.d.ts +6 -6
- package/lib/circular-progress/circular-progress.d.ts +1 -1
- package/lib/container/container.d.ts +2 -2
- package/lib/date-picker/date-picker.d.ts +6 -5
- package/lib/details/details.d.ts +2 -2
- package/lib/divider/divider.d.ts +1 -1
- package/lib/drawer/drawer.d.ts +6 -6
- package/lib/dropdown/dropdown-item.d.ts +2 -2
- package/lib/dropdown/dropdown.d.ts +9 -8
- package/lib/fieldset/fieldset.d.ts +4 -4
- package/lib/file-upload-card/file-upload-card.d.ts +2 -2
- package/lib/file-upload-input/file-upload-input.d.ts +2 -2
- package/lib/filter-chip/filter-chip.d.ts +3 -3
- package/lib/footer/footer.d.ts +2 -2
- package/lib/footer-meta-section/footer-meta-section.d.ts +1 -1
- package/lib/footer-nav-section/footer-nav-section.d.ts +1 -1
- package/lib/form-item/form-item.d.ts +2 -1
- package/lib/form-step/form-step.d.ts +1 -1
- package/lib/form-stepper/form-stepper.d.ts +2 -2
- package/lib/grid/grid.d.ts +2 -1
- package/lib/hero-banner/hero-banner-actions.d.ts +2 -1
- package/lib/hero-banner/hero-banner.d.ts +3 -2
- package/lib/icon/icon.d.ts +6 -4
- package/lib/icon-button/icon-button.d.ts +4 -3
- package/lib/input/input.d.ts +8 -7
- package/lib/link/link.d.ts +1 -1
- package/lib/link-button/link-button.d.ts +1 -1
- package/lib/microsite-header/microsite-header.d.ts +4 -3
- package/lib/modal/modal.d.ts +6 -6
- package/lib/notification/notification.d.ts +2 -2
- package/lib/one-column-layout/one-column-layout.d.ts +2 -2
- package/lib/page-block/page-block.d.ts +2 -2
- package/lib/pages/pages.d.ts +2 -2
- package/lib/pagination/pagination.d.ts +2 -2
- package/lib/popover/popover.d.ts +4 -4
- package/lib/radio-group/radio-group.d.ts +5 -4
- package/lib/radio-group/radio.d.ts +8 -8
- package/lib/side-menu/side-menu.d.ts +2 -2
- package/lib/side-menu-group/side-menu-group.d.ts +2 -2
- package/lib/side-menu-heading/side-menu-heading.d.ts +1 -1
- package/lib/skeleton/skeleton.d.ts +1 -1
- package/lib/spacer/spacer.d.ts +1 -1
- package/lib/spinner/spinner.d.ts +3 -2
- package/lib/tab/tab.d.ts +3 -2
- package/lib/table/table-sort-header.d.ts +2 -1
- package/lib/table/table.d.ts +3 -3
- package/lib/tabs/tabs.d.ts +3 -3
- package/lib/text/text.d.ts +2 -2
- package/lib/textarea/textarea.d.ts +5 -4
- package/lib/three-column-layout/three-column-layout.d.ts +1 -1
- package/lib/tooltip/tooltip.d.ts +2 -2
- package/lib/two-column-layout/two-column-layout.d.ts +1 -1
- package/package.json +4 -4
- package/icon-BNGrU_R_.mjs.map +0 -1
- package/icon-BPmPItnm.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { GoabAccordionHeadingSize, GoabAccordionIconPosition, Margins } from '@abgov/ui-components-common';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ReactNode, JSX } from 'react';
|
|
3
3
|
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
|
-
ref: React.RefObject<HTMLElement>;
|
|
6
|
-
open?:
|
|
5
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
6
|
+
open?: string;
|
|
7
7
|
headingsize?: GoabAccordionHeadingSize;
|
|
8
8
|
heading: string;
|
|
9
9
|
secondarytext?: string;
|
|
@@ -12,7 +12,7 @@ interface WCProps extends Margins {
|
|
|
12
12
|
testid?: string;
|
|
13
13
|
iconposition?: GoabAccordionIconPosition;
|
|
14
14
|
}
|
|
15
|
-
declare
|
|
15
|
+
declare module "react" {
|
|
16
16
|
namespace JSX {
|
|
17
17
|
interface IntrinsicElements {
|
|
18
18
|
"goa-accordion": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
|
|
2
3
|
interface WCProps {
|
|
3
4
|
heading?: string;
|
|
4
5
|
url?: string;
|
|
5
6
|
maxcontentwidth?: string;
|
|
6
7
|
fullmenubreakpoint?: number;
|
|
7
|
-
hasmenuclickhandler?:
|
|
8
|
-
ref: React.RefObject<HTMLElement>;
|
|
8
|
+
hasmenuclickhandler?: string;
|
|
9
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
9
10
|
testid?: string;
|
|
10
11
|
}
|
|
11
|
-
declare
|
|
12
|
+
declare module "react" {
|
|
12
13
|
namespace JSX {
|
|
13
14
|
interface IntrinsicElements {
|
|
14
15
|
"goa-app-header": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -12,7 +12,7 @@ export interface GoabAppHeaderMenuProps {
|
|
|
12
12
|
testId?: string;
|
|
13
13
|
children?: ReactNode;
|
|
14
14
|
}
|
|
15
|
-
declare
|
|
15
|
+
declare module "react" {
|
|
16
16
|
namespace JSX {
|
|
17
17
|
interface IntrinsicElements {
|
|
18
18
|
"goa-app-header-menu": WCProps & React.HTMLAttributes<HTMLElement>;
|
package/lib/badge/badge.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
import { GoabBadgeType, Margins } from '@abgov/ui-components-common';
|
|
2
3
|
|
|
3
4
|
interface WCProps extends Margins {
|
|
4
5
|
type: GoabBadgeType;
|
|
5
|
-
icon?:
|
|
6
|
+
icon?: string;
|
|
6
7
|
content?: string;
|
|
7
8
|
arialabel?: string;
|
|
8
9
|
testid?: string;
|
|
9
10
|
}
|
|
10
|
-
declare
|
|
11
|
+
declare module "react" {
|
|
11
12
|
namespace JSX {
|
|
12
13
|
interface IntrinsicElements {
|
|
13
14
|
"goa-badge": WCProps & React.HTMLAttributes<HTMLElement>;
|
package/lib/block/block.d.ts
CHANGED
package/lib/button/button.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { GoabButtonSize, GoabButtonType, GoabButtonVariant, GoabIconType, Margins } from '@abgov/ui-components-common';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ReactNode, JSX } from 'react';
|
|
3
3
|
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
5
|
type?: GoabButtonType;
|
|
6
6
|
size?: GoabButtonSize;
|
|
7
7
|
variant?: GoabButtonVariant;
|
|
8
|
-
disabled?:
|
|
8
|
+
disabled?: string;
|
|
9
9
|
leadingicon?: string;
|
|
10
10
|
trailingicon?: string;
|
|
11
11
|
width?: string;
|
|
12
12
|
testid?: string;
|
|
13
|
-
ref: React.RefObject<HTMLElement>;
|
|
13
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
14
14
|
}
|
|
15
|
-
declare
|
|
15
|
+
declare module "react" {
|
|
16
16
|
namespace JSX {
|
|
17
17
|
interface IntrinsicElements {
|
|
18
18
|
"goa-button": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
import { GoabButtonGroupAlignment, GoabButtonGroupGap, Margins } from '@abgov/ui-components-common';
|
|
2
3
|
|
|
3
4
|
interface WCProps extends Margins {
|
|
@@ -5,7 +6,7 @@ interface WCProps extends Margins {
|
|
|
5
6
|
gap?: GoabButtonGroupGap;
|
|
6
7
|
testid?: string;
|
|
7
8
|
}
|
|
8
|
-
declare
|
|
9
|
+
declare module "react" {
|
|
9
10
|
namespace JSX {
|
|
10
11
|
interface IntrinsicElements {
|
|
11
12
|
"goa-button-group": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { GoabCalendarOnChangeDetail, Margins } from '@abgov/ui-components-common';
|
|
2
|
+
import { JSX } from 'react';
|
|
2
3
|
|
|
3
4
|
interface WCProps extends Margins {
|
|
4
|
-
ref: React.RefObject<HTMLElement>;
|
|
5
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
5
6
|
name?: string;
|
|
6
7
|
value?: string;
|
|
7
8
|
min?: string;
|
|
8
9
|
max?: string;
|
|
9
10
|
testid?: string;
|
|
10
11
|
}
|
|
11
|
-
declare
|
|
12
|
+
declare module "react" {
|
|
12
13
|
namespace JSX {
|
|
13
14
|
interface IntrinsicElements {
|
|
14
15
|
"goa-calendar": WCProps & React.HTMLAttributes<HTMLElement>;
|
package/lib/callout/callout.d.ts
CHANGED
package/lib/card/card-group.d.ts
CHANGED
package/lib/card/card-image.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
|
|
2
3
|
interface WCProps {
|
|
3
4
|
src: string;
|
|
4
5
|
height: string;
|
|
5
6
|
}
|
|
6
|
-
declare
|
|
7
|
+
declare module "react" {
|
|
7
8
|
namespace JSX {
|
|
8
9
|
interface IntrinsicElements {
|
|
9
10
|
"goa-card-image": WCProps & React.HTMLAttributes<HTMLElement>;
|
package/lib/card/card.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
import { Margins } from '@abgov/ui-components-common';
|
|
2
3
|
|
|
3
4
|
interface WCProps extends Margins {
|
|
@@ -6,7 +7,7 @@ interface WCProps extends Margins {
|
|
|
6
7
|
children: React.ReactNode;
|
|
7
8
|
testid?: string;
|
|
8
9
|
}
|
|
9
|
-
declare
|
|
10
|
+
declare module "react" {
|
|
10
11
|
namespace JSX {
|
|
11
12
|
interface IntrinsicElements {
|
|
12
13
|
"goa-card": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
import { GoabCheckboxOnChangeDetail, Margins } from '@abgov/ui-components-common';
|
|
2
3
|
|
|
3
|
-
declare
|
|
4
|
+
declare module "react" {
|
|
4
5
|
namespace JSX {
|
|
5
6
|
interface IntrinsicElements {
|
|
6
7
|
"goa-checkbox": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -8,14 +9,14 @@ declare global {
|
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
11
|
interface WCProps extends Margins {
|
|
11
|
-
ref: React.RefObject<HTMLElement>;
|
|
12
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
12
13
|
id?: string;
|
|
13
14
|
name: string;
|
|
14
|
-
checked
|
|
15
|
-
disabled?:
|
|
16
|
-
error?:
|
|
15
|
+
checked?: string;
|
|
16
|
+
disabled?: string;
|
|
17
|
+
error?: string;
|
|
17
18
|
text?: string;
|
|
18
|
-
value?: string | number
|
|
19
|
+
value?: string | number;
|
|
19
20
|
arialabel?: string;
|
|
20
21
|
description?: string | React.ReactNode;
|
|
21
22
|
maxwidth?: string;
|
package/lib/chip/chip.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { GoabChipTheme, GoabChipVariant, Margins } from '@abgov/ui-components-common';
|
|
2
2
|
|
|
3
3
|
interface WCProps extends Margins {
|
|
4
|
-
ref: React.RefObject<HTMLElement>;
|
|
5
|
-
leadingicon
|
|
6
|
-
icontheme
|
|
7
|
-
error
|
|
8
|
-
deletable
|
|
4
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
5
|
+
leadingicon?: string;
|
|
6
|
+
icontheme?: GoabChipTheme;
|
|
7
|
+
error?: string;
|
|
8
|
+
deletable?: string;
|
|
9
9
|
content: string;
|
|
10
10
|
variant?: GoabChipVariant;
|
|
11
11
|
testid?: string;
|
|
12
12
|
}
|
|
13
|
-
declare
|
|
13
|
+
declare module "react" {
|
|
14
14
|
namespace JSX {
|
|
15
15
|
interface IntrinsicElements {
|
|
16
16
|
"goa-chip": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactNode, JSX } from 'react';
|
|
2
2
|
import { GoabContainerAccent, GoabContainerPadding, GoabContainerType, GoabContainerWidth, Margins } from '@abgov/ui-components-common';
|
|
3
3
|
|
|
4
4
|
interface WCProps extends Margins {
|
|
@@ -9,7 +9,7 @@ interface WCProps extends Margins {
|
|
|
9
9
|
maxwidth?: string;
|
|
10
10
|
testid?: string;
|
|
11
11
|
}
|
|
12
|
-
declare
|
|
12
|
+
declare module "react" {
|
|
13
13
|
namespace JSX {
|
|
14
14
|
interface IntrinsicElements {
|
|
15
15
|
"goa-container": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { GoabDatePickerOnChangeDetail, Margins } from '@abgov/ui-components-common';
|
|
2
|
+
import { JSX } from 'react';
|
|
2
3
|
|
|
3
4
|
interface WCProps extends Margins {
|
|
4
|
-
ref: React.RefObject<HTMLElement>;
|
|
5
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
5
6
|
name?: string;
|
|
6
7
|
value?: string;
|
|
7
|
-
error?:
|
|
8
|
+
error?: string;
|
|
8
9
|
min?: string;
|
|
9
10
|
max?: string;
|
|
10
|
-
relative?:
|
|
11
|
-
disabled?:
|
|
11
|
+
relative?: string;
|
|
12
|
+
disabled?: string;
|
|
12
13
|
testid?: string;
|
|
13
14
|
}
|
|
14
|
-
declare
|
|
15
|
+
declare module "react" {
|
|
15
16
|
namespace JSX {
|
|
16
17
|
interface IntrinsicElements {
|
|
17
18
|
"goa-date-picker": WCProps & React.HTMLAttributes<HTMLElement>;
|
package/lib/details/details.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ import { Margins } from '@abgov/ui-components-common';
|
|
|
3
3
|
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
5
|
heading: string;
|
|
6
|
-
open?:
|
|
6
|
+
open?: string;
|
|
7
7
|
maxwidth?: string;
|
|
8
8
|
testid?: string;
|
|
9
9
|
}
|
|
10
|
-
declare
|
|
10
|
+
declare module "react" {
|
|
11
11
|
namespace JSX {
|
|
12
12
|
interface IntrinsicElements {
|
|
13
13
|
"goa-details": WCProps & React.HTMLAttributes<HTMLElement>;
|
package/lib/divider/divider.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Margins } from '@abgov/ui-components-common';
|
|
|
3
3
|
interface WCProps extends Margins {
|
|
4
4
|
testid?: string;
|
|
5
5
|
}
|
|
6
|
-
declare
|
|
6
|
+
declare module "react" {
|
|
7
7
|
namespace JSX {
|
|
8
8
|
interface IntrinsicElements {
|
|
9
9
|
"goa-divider": WCProps & React.HTMLAttributes<HTMLElement>;
|
package/lib/drawer/drawer.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { GoabDrawerPosition, GoabDrawerSize } from '@abgov/ui-components-common';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ReactNode, JSX } from 'react';
|
|
3
3
|
|
|
4
4
|
interface WCProps {
|
|
5
|
-
open: boolean | undefined;
|
|
6
5
|
position: GoabDrawerPosition;
|
|
6
|
+
open?: boolean;
|
|
7
7
|
heading?: string;
|
|
8
8
|
maxsize?: GoabDrawerSize;
|
|
9
9
|
testid?: string;
|
|
10
|
-
ref: React.RefObject<HTMLElement>;
|
|
10
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
11
11
|
}
|
|
12
|
-
declare
|
|
12
|
+
declare module "react" {
|
|
13
13
|
namespace JSX {
|
|
14
14
|
interface IntrinsicElements {
|
|
15
15
|
"goa-drawer": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -17,8 +17,8 @@ declare global {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
export interface GoabDrawerProps {
|
|
20
|
-
open: boolean;
|
|
21
20
|
position: GoabDrawerPosition;
|
|
21
|
+
open?: boolean;
|
|
22
22
|
heading?: string | ReactNode;
|
|
23
23
|
maxSize?: GoabDrawerSize;
|
|
24
24
|
testId?: string;
|
|
@@ -26,5 +26,5 @@ export interface GoabDrawerProps {
|
|
|
26
26
|
children: ReactNode;
|
|
27
27
|
onClose: () => void;
|
|
28
28
|
}
|
|
29
|
-
export declare function GoabDrawer({
|
|
29
|
+
export declare function GoabDrawer({ position, open, heading, maxSize, testId, actions, children, onClose, }: GoabDrawerProps): JSX.Element;
|
|
30
30
|
export default GoabDrawer;
|
|
@@ -7,7 +7,7 @@ interface WCProps {
|
|
|
7
7
|
mount?: GoabDropdownItemMountType;
|
|
8
8
|
name?: string;
|
|
9
9
|
}
|
|
10
|
-
declare
|
|
10
|
+
declare module "react" {
|
|
11
11
|
namespace JSX {
|
|
12
12
|
interface IntrinsicElements {
|
|
13
13
|
"goa-dropdown-item": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -23,5 +23,5 @@ export interface GoabDropdownItemProps {
|
|
|
23
23
|
name?: string;
|
|
24
24
|
}
|
|
25
25
|
export declare function GoabDropdownOption(props: GoabDropdownItemProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
export declare function GoabDropdownItem({ value, label, filter, name, mountType }: GoabDropdownItemProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare function GoabDropdownItem({ value, label, filter, name, mountType, }: GoabDropdownItemProps): import("react/jsx-runtime").JSX.Element;
|
|
27
27
|
export {};
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
import { GoabDropdownOnChangeDetail, GoabIconType, Margins } from '@abgov/ui-components-common';
|
|
2
3
|
|
|
3
4
|
interface WCProps extends Margins {
|
|
4
|
-
ref: React.
|
|
5
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
5
6
|
arialabel?: string;
|
|
6
7
|
arialabelledby?: string;
|
|
7
|
-
disabled?:
|
|
8
|
-
error?:
|
|
9
|
-
filterable?:
|
|
8
|
+
disabled?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
filterable?: string;
|
|
10
11
|
leadingicon?: string;
|
|
11
12
|
maxheight?: string;
|
|
12
|
-
multiselect?:
|
|
13
|
+
multiselect?: string;
|
|
13
14
|
name?: string;
|
|
14
|
-
native?:
|
|
15
|
+
native?: string;
|
|
15
16
|
placeholder?: string;
|
|
16
17
|
value?: string;
|
|
17
18
|
width?: string;
|
|
18
|
-
relative?:
|
|
19
|
+
relative?: string;
|
|
19
20
|
id?: string;
|
|
20
21
|
testid?: string;
|
|
21
22
|
}
|
|
22
|
-
declare
|
|
23
|
+
declare module "react" {
|
|
23
24
|
namespace JSX {
|
|
24
25
|
interface IntrinsicElements {
|
|
25
26
|
"goa-dropdown": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -2,14 +2,14 @@ import { Margins, GoabFielsetOnContinueDetail } from '@abgov/ui-components-commo
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
|
-
ref?: React.
|
|
5
|
+
ref?: React.RefObject<HTMLElement | null>;
|
|
6
6
|
id: string;
|
|
7
7
|
heading?: string;
|
|
8
8
|
buttontext?: string;
|
|
9
|
-
last?:
|
|
10
|
-
first?:
|
|
9
|
+
last?: string;
|
|
10
|
+
first?: string;
|
|
11
11
|
}
|
|
12
|
-
declare
|
|
12
|
+
declare module "react" {
|
|
13
13
|
namespace JSX {
|
|
14
14
|
interface IntrinsicElements {
|
|
15
15
|
"goa-public-form-page": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GoabFileUploadOnCancelDetail, GoabFileUploadOnDeleteDetail } from '@abgov/ui-components-common';
|
|
2
2
|
|
|
3
3
|
interface WCProps {
|
|
4
|
-
ref: React.
|
|
4
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
5
5
|
filename: string;
|
|
6
6
|
size: number;
|
|
7
7
|
type?: string;
|
|
@@ -9,7 +9,7 @@ interface WCProps {
|
|
|
9
9
|
error?: string;
|
|
10
10
|
testid?: string;
|
|
11
11
|
}
|
|
12
|
-
declare
|
|
12
|
+
declare module "react" {
|
|
13
13
|
namespace JSX {
|
|
14
14
|
interface IntrinsicElements {
|
|
15
15
|
"goa-file-upload-card": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { GoabFileUploadInputOnSelectFileDetail, GoabFileUploadInputVariant } from '@abgov/ui-components-common';
|
|
2
2
|
|
|
3
3
|
interface WCProps {
|
|
4
|
-
ref: React.
|
|
4
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
5
5
|
variant?: GoabFileUploadInputVariant;
|
|
6
6
|
accept?: string;
|
|
7
7
|
maxfilesize?: string;
|
|
8
8
|
testid?: string;
|
|
9
9
|
}
|
|
10
|
-
declare
|
|
10
|
+
declare module "react" {
|
|
11
11
|
namespace JSX {
|
|
12
12
|
interface IntrinsicElements {
|
|
13
13
|
"goa-file-upload-input": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Margins, GoabFilterChipTheme } from '@abgov/ui-components-common';
|
|
2
2
|
|
|
3
3
|
interface WCProps extends Margins {
|
|
4
|
-
ref: React.RefObject<HTMLElement>;
|
|
4
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
5
5
|
icontheme: GoabFilterChipTheme;
|
|
6
|
-
error
|
|
6
|
+
error?: string;
|
|
7
7
|
content: string;
|
|
8
8
|
testid?: string;
|
|
9
9
|
}
|
|
10
|
-
declare
|
|
10
|
+
declare module "react" {
|
|
11
11
|
namespace JSX {
|
|
12
12
|
interface IntrinsicElements {
|
|
13
13
|
"goa-filter-chip": WCProps & React.HTMLAttributes<HTMLElement>;
|
package/lib/footer/footer.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactNode, JSX } from 'react';
|
|
2
2
|
|
|
3
3
|
interface WCProps {
|
|
4
4
|
maxcontentwidth?: string;
|
|
5
5
|
testid?: string;
|
|
6
6
|
url?: string;
|
|
7
7
|
}
|
|
8
|
-
declare
|
|
8
|
+
declare module "react" {
|
|
9
9
|
namespace JSX {
|
|
10
10
|
interface IntrinsicElements {
|
|
11
11
|
"goa-app-footer": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
import { GoabFormItemLabelSize, GoabFormItemRequirement, Margins } from '@abgov/ui-components-common';
|
|
2
3
|
|
|
3
4
|
interface WCProps extends Margins {
|
|
@@ -10,7 +11,7 @@ interface WCProps extends Margins {
|
|
|
10
11
|
id?: string;
|
|
11
12
|
testid?: string;
|
|
12
13
|
}
|
|
13
|
-
declare
|
|
14
|
+
declare module "react" {
|
|
14
15
|
namespace JSX {
|
|
15
16
|
interface IntrinsicElements {
|
|
16
17
|
"goa-form-item": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -2,11 +2,11 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { GoabFormStepperOnChangeDetail, Margins } from '@abgov/ui-components-common';
|
|
3
3
|
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
|
-
ref?: React.
|
|
5
|
+
ref?: React.RefObject<HTMLElement | null>;
|
|
6
6
|
step?: number;
|
|
7
7
|
testid?: string;
|
|
8
8
|
}
|
|
9
|
-
declare
|
|
9
|
+
declare module "react" {
|
|
10
10
|
namespace JSX {
|
|
11
11
|
interface IntrinsicElements {
|
|
12
12
|
"goa-form-stepper": WCProps & React.HTMLAttributes<HTMLElement>;
|
package/lib/grid/grid.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
import { Margins, Spacing } from '@abgov/ui-components-common';
|
|
2
3
|
|
|
3
4
|
interface WCProps extends Margins {
|
|
@@ -5,7 +6,7 @@ interface WCProps extends Margins {
|
|
|
5
6
|
minchildwidth: string;
|
|
6
7
|
testid?: string;
|
|
7
8
|
}
|
|
8
|
-
declare
|
|
9
|
+
declare module "react" {
|
|
9
10
|
namespace JSX {
|
|
10
11
|
interface IntrinsicElements {
|
|
11
12
|
"goa-grid": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
|
|
2
3
|
interface WCProps {
|
|
3
4
|
heading: string;
|
|
4
5
|
backgroundurl?: string;
|
|
@@ -8,7 +9,7 @@ interface WCProps {
|
|
|
8
9
|
textcolor?: string;
|
|
9
10
|
testid?: string;
|
|
10
11
|
}
|
|
11
|
-
declare
|
|
12
|
+
declare module "react" {
|
|
12
13
|
namespace JSX {
|
|
13
14
|
interface IntrinsicElements {
|
|
14
15
|
"goa-hero-banner": WCProps & React.HTMLAttributes<HTMLElement>;
|
package/lib/icon/icon.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
import { GoabIconFilledType, GoabIconSize, GoabIconTheme, GoabIconType, Margins } from '@abgov/ui-components-common';
|
|
2
3
|
|
|
3
4
|
interface IonIconProps {
|
|
@@ -5,14 +6,14 @@ interface IonIconProps {
|
|
|
5
6
|
}
|
|
6
7
|
interface IonIconElement extends HTMLElement {
|
|
7
8
|
}
|
|
8
|
-
declare
|
|
9
|
+
declare module "react" {
|
|
9
10
|
namespace JSX {
|
|
10
11
|
interface IntrinsicElements {
|
|
11
12
|
"ion-icon": IonIconProps & React.HTMLAttributes<IonIconElement>;
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
|
-
declare
|
|
16
|
+
declare module "react" {
|
|
16
17
|
namespace JSX {
|
|
17
18
|
interface IntrinsicElements {
|
|
18
19
|
"goa-icon": WCProps & React.HTMLAttributes<IonIconElement>;
|
|
@@ -23,7 +24,7 @@ export interface GoabIconProps extends Margins {
|
|
|
23
24
|
type: GoabIconType;
|
|
24
25
|
size?: GoabIconSize;
|
|
25
26
|
theme?: GoabIconTheme;
|
|
26
|
-
inverted?: string;
|
|
27
|
+
inverted?: string | boolean;
|
|
27
28
|
fillColor?: string;
|
|
28
29
|
opacity?: number;
|
|
29
30
|
title?: string;
|
|
@@ -41,5 +42,6 @@ interface WCProps extends Margins {
|
|
|
41
42
|
arialabel?: string;
|
|
42
43
|
testid?: string;
|
|
43
44
|
}
|
|
44
|
-
export declare function GoabIcon({ type, theme, size, inverted,
|
|
45
|
+
export declare function GoabIcon({ type, theme, size, inverted, // TODO: change to boolean only
|
|
46
|
+
fillColor, opacity, title, ariaLabel, mt, mr, mb, ml, testId, }: GoabIconProps): JSX.Element;
|
|
45
47
|
export {};
|