@abgov/react-components 5.4.1 → 6.0.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-summary.d.ts +2 -1
- package/experimental/form/form.d.ts +10 -21
- package/experimental/form/task-list.d.ts +6 -5
- package/experimental/form/task.d.ts +6 -5
- package/experimental/index.d.ts +2 -2
- package/experimental/resizable-panel/ResizablePanel.d.ts +2 -1
- package/experimental.js +4 -4
- package/experimental.js.map +1 -1
- package/experimental.mjs +4 -4
- package/experimental.mjs.map +1 -1
- package/{icon-1IRcN4Uf.js → icon-DmXlIizF.js} +3 -3
- package/icon-DmXlIizF.js.map +1 -0
- package/{icon-DgSW1II3.mjs → icon-iZ6Uu6WB.mjs} +3 -3
- package/icon-iZ6Uu6WB.mjs.map +1 -0
- package/index.d.ts +60 -61
- package/index.js +241 -257
- package/index.js.map +1 -1
- package/index.mjs +241 -257
- package/index.mjs.map +1 -1
- package/lib/accordion/accordion.d.ts +11 -12
- package/lib/app-header/app-header.d.ts +4 -3
- package/lib/app-header-menu/app-header-menu.d.ts +8 -7
- package/lib/badge/badge.d.ts +10 -10
- package/lib/block/block.d.ts +9 -9
- package/lib/button/button.d.ts +14 -20
- package/lib/button-group/button-group.d.ts +9 -11
- package/lib/calendar/calendar.d.ts +6 -5
- package/lib/callout/callout.d.ts +13 -17
- package/lib/card/card-actions.d.ts +4 -3
- package/lib/card/card-content.d.ts +4 -3
- package/lib/card/card-group.d.ts +4 -3
- package/lib/card/card-image.d.ts +4 -3
- package/lib/card/card.d.ts +6 -4
- package/lib/card/index.d.ts +5 -5
- package/lib/checkbox/checkbox.d.ts +7 -6
- package/lib/chip/chip.d.ts +9 -10
- package/lib/circular-progress/circular-progress.d.ts +9 -11
- package/lib/container/container.d.ts +14 -17
- package/lib/date-picker/date-picker.d.ts +6 -5
- package/lib/details/details.d.ts +6 -6
- package/lib/divider/divider.d.ts +5 -4
- package/lib/drawer/drawer.d.ts +2 -1
- package/lib/dropdown/dropdown-item.d.ts +7 -6
- package/lib/dropdown/dropdown.d.ts +7 -7
- package/lib/fieldset/fieldset.d.ts +7 -6
- package/lib/file-upload-card/file-upload-card.d.ts +8 -6
- package/lib/file-upload-input/file-upload-input.d.ts +8 -7
- package/lib/filter-chip/filter-chip.d.ts +4 -4
- package/lib/footer/footer.d.ts +6 -5
- package/lib/footer-meta-section/footer-meta-section.d.ts +5 -5
- package/lib/footer-nav-section/footer-nav-section.d.ts +5 -4
- package/lib/form-item/form-item.d.ts +11 -12
- package/lib/form-step/form-step.d.ts +7 -7
- package/lib/form-stepper/form-stepper.d.ts +7 -7
- package/lib/grid/grid.d.ts +5 -4
- package/lib/hero-banner/hero-banner-actions.d.ts +4 -3
- package/lib/hero-banner/hero-banner.d.ts +4 -3
- package/lib/icon/icon.d.ts +11 -18
- package/lib/icon-button/icon-button.d.ts +10 -12
- package/lib/input/input.d.ts +39 -42
- package/lib/link/link.d.ts +7 -7
- package/lib/link-button/link-button.d.ts +9 -10
- package/lib/microsite-header/microsite-header.d.ts +12 -14
- package/lib/modal/modal.d.ts +12 -17
- package/lib/notification/notification.d.ts +9 -11
- package/lib/one-column-layout/one-column-layout.d.ts +6 -5
- package/lib/page-block/page-block.d.ts +5 -4
- package/lib/pages/pages.d.ts +6 -5
- package/lib/pagination/pagination.d.ts +7 -6
- package/lib/popover/popover.d.ts +8 -8
- package/lib/radio-group/radio-group.d.ts +9 -9
- package/lib/radio-group/radio.d.ts +5 -4
- package/lib/side-menu/side-menu.d.ts +5 -5
- package/lib/side-menu-group/side-menu-group.d.ts +8 -8
- package/lib/side-menu-heading/side-menu-heading.d.ts +8 -7
- package/lib/skeleton/skeleton.d.ts +10 -12
- package/lib/spacer/spacer.d.ts +9 -9
- package/lib/spinner/spinner.d.ts +10 -10
- package/lib/tab/tab.d.ts +3 -3
- package/lib/table/table-sort-header.d.ts +7 -6
- package/lib/table/table.d.ts +10 -11
- package/lib/tabs/tabs.d.ts +7 -5
- package/lib/text/text.d.ts +11 -16
- package/lib/textarea/textarea.d.ts +9 -10
- package/lib/three-column-layout/three-column-layout.d.ts +5 -4
- package/lib/tooltip/tooltip.d.ts +10 -11
- package/lib/two-column-layout/two-column-layout.d.ts +5 -4
- package/package.json +2 -2
- package/common/styling.d.ts +0 -12
- package/icon-1IRcN4Uf.js.map +0 -1
- package/icon-DgSW1II3.mjs.map +0 -1
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type GoAIconPosition = "left" | "right";
|
|
1
|
+
import { GoabAccordionHeadingSize, GoabAccordionIconPosition, Margins } from '@abgov/ui-components-common';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
5
4
|
interface WCProps extends Margins {
|
|
6
5
|
ref: React.RefObject<HTMLElement>;
|
|
7
6
|
open?: boolean;
|
|
8
|
-
|
|
7
|
+
headingsize?: GoabAccordionHeadingSize;
|
|
9
8
|
heading: string;
|
|
10
|
-
|
|
9
|
+
secondarytext?: string;
|
|
11
10
|
headingContent?: ReactNode;
|
|
12
11
|
maxwidth?: string;
|
|
13
12
|
testid?: string;
|
|
14
|
-
iconposition?:
|
|
13
|
+
iconposition?: GoabAccordionIconPosition;
|
|
15
14
|
}
|
|
16
15
|
declare global {
|
|
17
16
|
namespace JSX {
|
|
@@ -20,17 +19,17 @@ declare global {
|
|
|
20
19
|
}
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
|
-
export interface
|
|
22
|
+
export interface GoabAccordionProps extends Margins {
|
|
24
23
|
open?: boolean;
|
|
25
|
-
headingSize?:
|
|
24
|
+
headingSize?: GoabAccordionHeadingSize;
|
|
26
25
|
secondaryText?: string;
|
|
27
26
|
heading: string;
|
|
28
27
|
headingContent?: ReactNode;
|
|
29
28
|
maxWidth?: string;
|
|
30
29
|
testid?: string;
|
|
31
|
-
iconPosition?:
|
|
30
|
+
iconPosition?: GoabAccordionIconPosition;
|
|
32
31
|
onChange?: (open: boolean) => void;
|
|
33
32
|
children: ReactNode;
|
|
34
33
|
}
|
|
35
|
-
export declare function
|
|
36
|
-
export default
|
|
34
|
+
export declare function GoabAccordion({ open, heading, headingSize, secondaryText, headingContent, iconPosition, maxWidth, testid, onChange, children, mt, mr, mb, ml, }: GoabAccordionProps): JSX.Element;
|
|
35
|
+
export default GoabAccordion;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
interface WCProps {
|
|
2
3
|
heading?: string;
|
|
3
4
|
url?: string;
|
|
@@ -14,7 +15,7 @@ declare global {
|
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
|
-
export interface
|
|
18
|
+
export interface GoabAppHeaderProps {
|
|
18
19
|
heading?: string;
|
|
19
20
|
url?: string;
|
|
20
21
|
maxContentWidth?: string;
|
|
@@ -23,5 +24,5 @@ export interface GoAAppHeaderProps {
|
|
|
23
24
|
onMenuClick?: () => void;
|
|
24
25
|
testId?: string;
|
|
25
26
|
}
|
|
26
|
-
export declare function
|
|
27
|
-
export default
|
|
27
|
+
export declare function GoabAppHeader({ heading, url, maxContentWidth, fullMenuBreakpoint, testId, children, onMenuClick, }: GoabAppHeaderProps): JSX.Element;
|
|
28
|
+
export default GoabAppHeader;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { GoabIconType } from '@abgov/ui-components-common';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
3
4
|
interface WCProps {
|
|
4
5
|
heading: string;
|
|
5
|
-
leadingicon?:
|
|
6
|
+
leadingicon?: GoabIconType;
|
|
6
7
|
testid?: string;
|
|
7
8
|
}
|
|
8
|
-
export interface
|
|
9
|
+
export interface GoabAppHeaderMenuProps {
|
|
9
10
|
heading: string;
|
|
10
|
-
leadingIcon?:
|
|
11
|
+
leadingIcon?: GoabIconType;
|
|
11
12
|
testId?: string;
|
|
12
13
|
children?: ReactNode;
|
|
13
14
|
}
|
|
@@ -18,5 +19,5 @@ declare global {
|
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
|
-
export declare function
|
|
22
|
-
export default
|
|
22
|
+
export declare function GoabAppHeaderMenu(props: GoabAppHeaderMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default GoabAppHeaderMenu;
|
package/lib/badge/badge.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Margins } from
|
|
2
|
-
|
|
1
|
+
import { GoabBadgeType, Margins } from '@abgov/ui-components-common';
|
|
2
|
+
|
|
3
3
|
interface WCProps extends Margins {
|
|
4
|
-
type:
|
|
4
|
+
type: GoabBadgeType;
|
|
5
5
|
icon?: boolean;
|
|
6
6
|
content?: string;
|
|
7
7
|
arialabel?: string;
|
|
@@ -14,28 +14,28 @@ declare global {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
export interface
|
|
18
|
-
type:
|
|
17
|
+
export interface GoabBadgeProps extends Margins {
|
|
18
|
+
type: GoabBadgeType;
|
|
19
19
|
icon?: boolean;
|
|
20
20
|
content?: string;
|
|
21
21
|
testId?: string;
|
|
22
22
|
ariaLabel?: string;
|
|
23
23
|
}
|
|
24
|
-
export declare function
|
|
24
|
+
export declare function GoabBadge({ type, content, icon, testId, mt, mr, mb, ml, ariaLabel, }: GoabBadgeProps): JSX.Element;
|
|
25
25
|
/**
|
|
26
26
|
* @deprecated
|
|
27
27
|
*/
|
|
28
|
-
export declare function
|
|
28
|
+
export declare function GoabInfoBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoabBadgeProps): JSX.Element;
|
|
29
29
|
/**
|
|
30
30
|
* @deprecated
|
|
31
31
|
*/
|
|
32
|
-
export declare function
|
|
32
|
+
export declare function GoabSuccessBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoabBadgeProps): JSX.Element;
|
|
33
33
|
/**
|
|
34
34
|
* @deprecated
|
|
35
35
|
*/
|
|
36
|
-
export declare function
|
|
36
|
+
export declare function GoabImportantBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoabBadgeProps): JSX.Element;
|
|
37
37
|
/**
|
|
38
38
|
* @deprecated
|
|
39
39
|
*/
|
|
40
|
-
export declare function
|
|
40
|
+
export declare function GoabEmergencyBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoabBadgeProps): JSX.Element;
|
|
41
41
|
export {};
|
package/lib/block/block.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { GoabBlockAlignment, GoabBlockDirection, Margins, Spacing } from '@abgov/ui-components-common';
|
|
3
|
+
|
|
3
4
|
export interface WCProps extends Margins {
|
|
4
5
|
gap?: Spacing;
|
|
5
|
-
direction?:
|
|
6
|
-
alignment?:
|
|
6
|
+
direction?: GoabBlockDirection;
|
|
7
|
+
alignment?: GoabBlockAlignment;
|
|
7
8
|
testid?: string;
|
|
8
9
|
}
|
|
9
10
|
declare global {
|
|
@@ -13,12 +14,11 @@ declare global {
|
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
|
-
export interface
|
|
17
|
+
export interface GoabBlockProps extends Margins {
|
|
17
18
|
gap?: Spacing;
|
|
18
|
-
direction?:
|
|
19
|
-
alignment?:
|
|
19
|
+
direction?: GoabBlockDirection;
|
|
20
|
+
alignment?: GoabBlockAlignment;
|
|
20
21
|
testId?: string;
|
|
21
22
|
children?: ReactNode;
|
|
22
23
|
}
|
|
23
|
-
export
|
|
24
|
-
export declare function GoABlock(props: GoABlockProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function GoabBlock(props: GoabBlockProps): import("react/jsx-runtime").JSX.Element;
|
package/lib/button/button.d.ts
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type GoAButtonType = "primary" | "submit" | "secondary" | "tertiary" | "start";
|
|
5
|
-
export type GoAButtonSize = "compact" | "normal";
|
|
6
|
-
export type GoAButtonVariant = "normal" | "destructive";
|
|
7
|
-
export type ButtonType = GoAButtonType;
|
|
8
|
-
export type ButtonSize = GoAButtonSize;
|
|
9
|
-
export type ButtonVariant = GoAButtonVariant;
|
|
1
|
+
import { GoabButtonSize, GoabButtonType, GoabButtonVariant, GoabIconType, Margins } from '@abgov/ui-components-common';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
10
4
|
interface WCProps extends Margins {
|
|
11
|
-
type?:
|
|
12
|
-
size?:
|
|
13
|
-
variant?:
|
|
5
|
+
type?: GoabButtonType;
|
|
6
|
+
size?: GoabButtonSize;
|
|
7
|
+
variant?: GoabButtonVariant;
|
|
14
8
|
disabled?: boolean;
|
|
15
9
|
leadingicon?: string;
|
|
16
10
|
trailingicon?: string;
|
|
@@ -25,17 +19,17 @@ declare global {
|
|
|
25
19
|
}
|
|
26
20
|
}
|
|
27
21
|
}
|
|
28
|
-
export interface
|
|
29
|
-
type?:
|
|
30
|
-
size?:
|
|
31
|
-
variant?:
|
|
22
|
+
export interface GoabButtonProps extends Margins {
|
|
23
|
+
type?: GoabButtonType;
|
|
24
|
+
size?: GoabButtonSize;
|
|
25
|
+
variant?: GoabButtonVariant;
|
|
32
26
|
disabled?: boolean;
|
|
33
|
-
leadingIcon?:
|
|
34
|
-
trailingIcon?:
|
|
27
|
+
leadingIcon?: GoabIconType;
|
|
28
|
+
trailingIcon?: GoabIconType;
|
|
35
29
|
width?: string;
|
|
36
30
|
onClick?: () => void;
|
|
37
31
|
testId?: string;
|
|
38
32
|
children?: ReactNode;
|
|
39
33
|
}
|
|
40
|
-
export declare function
|
|
41
|
-
export default
|
|
34
|
+
export declare function GoabButton({ disabled, type, size, variant, leadingIcon, trailingIcon, width, testId, children, onClick, mt, mr, mb, ml, }: GoabButtonProps): JSX.Element;
|
|
35
|
+
export default GoabButton;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { Margins } from
|
|
2
|
-
|
|
3
|
-
export type GoAButtonGroupGap = "relaxed" | "compact";
|
|
4
|
-
export type Gap = GoAButtonGroupGap;
|
|
1
|
+
import { GoabButtonGroupAlignment, GoabButtonGroupGap, Margins } from '@abgov/ui-components-common';
|
|
2
|
+
|
|
5
3
|
interface WCProps extends Margins {
|
|
6
|
-
alignment:
|
|
7
|
-
gap?:
|
|
4
|
+
alignment: GoabButtonGroupAlignment;
|
|
5
|
+
gap?: GoabButtonGroupGap;
|
|
8
6
|
testid?: string;
|
|
9
7
|
}
|
|
10
8
|
declare global {
|
|
@@ -14,11 +12,11 @@ declare global {
|
|
|
14
12
|
}
|
|
15
13
|
}
|
|
16
14
|
}
|
|
17
|
-
export interface
|
|
18
|
-
alignment:
|
|
19
|
-
gap?:
|
|
15
|
+
export interface GoabButtonGroupProps extends Margins {
|
|
16
|
+
alignment: GoabButtonGroupAlignment;
|
|
17
|
+
gap?: GoabButtonGroupGap;
|
|
20
18
|
testId?: string;
|
|
21
19
|
children?: React.ReactNode;
|
|
22
20
|
}
|
|
23
|
-
export declare function
|
|
24
|
-
export default
|
|
21
|
+
export declare function GoabButtonGroup({ alignment, gap, testId, children, mt, mr, mb, ml, }: GoabButtonGroupProps): JSX.Element;
|
|
22
|
+
export default GoabButtonGroup;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Margins } from
|
|
1
|
+
import { GoabCalendarOnChangeDetail, Margins } from '@abgov/ui-components-common';
|
|
2
|
+
|
|
2
3
|
interface WCProps extends Margins {
|
|
3
4
|
ref: React.RefObject<HTMLElement>;
|
|
4
5
|
name?: string;
|
|
@@ -14,13 +15,13 @@ declare global {
|
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
|
-
export interface
|
|
18
|
+
export interface GoabCalendarProps extends Margins {
|
|
18
19
|
name?: string;
|
|
19
20
|
value?: Date;
|
|
20
21
|
min?: Date;
|
|
21
22
|
max?: Date;
|
|
22
23
|
testId?: string;
|
|
23
|
-
onChange: (
|
|
24
|
+
onChange: (details: GoabCalendarOnChangeDetail) => void;
|
|
24
25
|
}
|
|
25
|
-
export declare function
|
|
26
|
-
export default
|
|
26
|
+
export declare function GoabCalendar({ name, value, min, max, testId, mt, mr, mb, ml, onChange, }: GoabCalendarProps): JSX.Element;
|
|
27
|
+
export default GoabCalendar;
|
package/lib/callout/callout.d.ts
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { Margins } from
|
|
2
|
-
|
|
3
|
-
export type GoACalloutSize = "medium" | "large";
|
|
4
|
-
export type GoACalloutAriaLive = "off" | "polite" | "assertive";
|
|
5
|
-
export type GoACalloutIconTheme = "outline" | "filled";
|
|
1
|
+
import { GoabCalloutAriaLive, GoabCalloutSize, GoabCalloutType, GoabCalloutIconTheme, Margins } from '@abgov/ui-components-common';
|
|
2
|
+
|
|
6
3
|
interface WCProps extends Margins {
|
|
7
4
|
heading?: string;
|
|
8
|
-
type?:
|
|
9
|
-
size?:
|
|
5
|
+
type?: GoabCalloutType;
|
|
6
|
+
size?: GoabCalloutSize;
|
|
7
|
+
arialive?: GoabCalloutAriaLive;
|
|
10
8
|
maxwidth?: string;
|
|
11
|
-
|
|
12
|
-
icontheme?: GoACalloutIconTheme;
|
|
9
|
+
icontheme?: GoabCalloutIconTheme;
|
|
13
10
|
testid?: string;
|
|
14
11
|
}
|
|
15
12
|
declare global {
|
|
@@ -19,16 +16,15 @@ declare global {
|
|
|
19
16
|
}
|
|
20
17
|
}
|
|
21
18
|
}
|
|
22
|
-
export interface
|
|
19
|
+
export interface GoabCalloutProps extends Margins {
|
|
23
20
|
heading?: string;
|
|
24
|
-
type?:
|
|
25
|
-
size?:
|
|
26
|
-
iconTheme?:
|
|
21
|
+
type?: GoabCalloutType;
|
|
22
|
+
size?: GoabCalloutSize;
|
|
23
|
+
iconTheme?: GoabCalloutIconTheme;
|
|
27
24
|
maxWidth?: string;
|
|
28
25
|
testId?: string;
|
|
29
|
-
ariaLive?:
|
|
26
|
+
ariaLive?: GoabCalloutAriaLive;
|
|
30
27
|
children?: React.ReactNode;
|
|
31
28
|
}
|
|
32
|
-
export type
|
|
33
|
-
export
|
|
34
|
-
export default GoACallout;
|
|
29
|
+
export declare const GoabCallout: ({ heading, type, iconTheme, size, maxWidth, testId, ariaLive, children, mt, mr, mb, ml, }: GoabCalloutProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export default GoabCallout;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare global {
|
|
2
3
|
namespace JSX {
|
|
3
4
|
interface IntrinsicElements {
|
|
@@ -5,8 +6,8 @@ declare global {
|
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
8
|
}
|
|
8
|
-
export interface
|
|
9
|
+
export interface GoabCardActionsProps {
|
|
9
10
|
children?: React.ReactNode;
|
|
10
11
|
}
|
|
11
|
-
export declare function
|
|
12
|
-
export default
|
|
12
|
+
export declare function GoabCardActions({ children }: GoabCardActionsProps): JSX.Element;
|
|
13
|
+
export default GoabCardActions;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare global {
|
|
2
3
|
namespace JSX {
|
|
3
4
|
interface IntrinsicElements {
|
|
@@ -5,8 +6,8 @@ declare global {
|
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
8
|
}
|
|
8
|
-
export interface
|
|
9
|
+
export interface GoabCardContentProps {
|
|
9
10
|
children?: React.ReactNode;
|
|
10
11
|
}
|
|
11
|
-
export declare function
|
|
12
|
-
export default
|
|
12
|
+
export declare function GoabCardContent({ children }: GoabCardContentProps): JSX.Element;
|
|
13
|
+
export default GoabCardContent;
|
package/lib/card/card-group.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare global {
|
|
2
3
|
namespace JSX {
|
|
3
4
|
interface IntrinsicElements {
|
|
@@ -5,8 +6,8 @@ declare global {
|
|
|
5
6
|
}
|
|
6
7
|
}
|
|
7
8
|
}
|
|
8
|
-
export interface
|
|
9
|
+
export interface GoabCardGroupProps {
|
|
9
10
|
children?: React.ReactNode;
|
|
10
11
|
}
|
|
11
|
-
export declare function
|
|
12
|
-
export default
|
|
12
|
+
export declare function GoabCardGroup({ children }: GoabCardGroupProps): JSX.Element;
|
|
13
|
+
export default GoabCardGroup;
|
package/lib/card/card-image.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
interface WCProps {
|
|
2
3
|
src: string;
|
|
3
4
|
height: string;
|
|
@@ -9,9 +10,9 @@ declare global {
|
|
|
9
10
|
}
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
|
-
export interface
|
|
13
|
+
export interface GoabCardImageProps {
|
|
13
14
|
src: string;
|
|
14
15
|
height: string;
|
|
15
16
|
}
|
|
16
|
-
export declare function
|
|
17
|
-
export default
|
|
17
|
+
export declare function GoabCardImage({ src, height }: GoabCardImageProps): JSX.Element;
|
|
18
|
+
export default GoabCardImage;
|
package/lib/card/card.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { Margins } from
|
|
1
|
+
import { Margins } from '@abgov/ui-components-common';
|
|
2
|
+
|
|
2
3
|
interface WCProps extends Margins {
|
|
3
4
|
elevation?: number;
|
|
4
5
|
width?: string;
|
|
5
6
|
children: React.ReactNode;
|
|
7
|
+
testid?: string;
|
|
6
8
|
}
|
|
7
9
|
declare global {
|
|
8
10
|
namespace JSX {
|
|
@@ -11,11 +13,11 @@ declare global {
|
|
|
11
13
|
}
|
|
12
14
|
}
|
|
13
15
|
}
|
|
14
|
-
export interface
|
|
16
|
+
export interface GoabCardProps extends Margins {
|
|
15
17
|
elevation?: number;
|
|
16
18
|
width?: string;
|
|
17
19
|
testId?: string;
|
|
18
20
|
children?: React.ReactNode;
|
|
19
21
|
}
|
|
20
|
-
export declare function
|
|
21
|
-
export default
|
|
22
|
+
export declare function GoabCard({ elevation, width, mt, mr, mb, ml, testId, children, }: GoabCardProps): JSX.Element;
|
|
23
|
+
export default GoabCard;
|
package/lib/card/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
1
|
+
export * from './card-content';
|
|
2
|
+
export * from './card-image';
|
|
3
|
+
export * from './card-actions';
|
|
4
|
+
export * from './card-group';
|
|
5
|
+
export * from './card';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Margins } from
|
|
1
|
+
import { GoabCheckboxOnChangeDetail, Margins } from '@abgov/ui-components-common';
|
|
2
|
+
|
|
2
3
|
declare global {
|
|
3
4
|
namespace JSX {
|
|
4
5
|
interface IntrinsicElements {
|
|
@@ -20,7 +21,7 @@ interface WCProps extends Margins {
|
|
|
20
21
|
maxwidth?: string;
|
|
21
22
|
testid?: string;
|
|
22
23
|
}
|
|
23
|
-
export interface
|
|
24
|
+
export interface GoabCheckboxProps extends Margins {
|
|
24
25
|
id?: string;
|
|
25
26
|
name: string;
|
|
26
27
|
checked?: boolean;
|
|
@@ -33,8 +34,8 @@ export interface GoACheckboxProps extends Margins {
|
|
|
33
34
|
ariaLabel?: string;
|
|
34
35
|
description?: string | React.ReactNode;
|
|
35
36
|
maxWidth?: string;
|
|
36
|
-
onChange?: (
|
|
37
|
+
onChange?: (detail: GoabCheckboxOnChangeDetail) => void;
|
|
37
38
|
}
|
|
38
|
-
export type Props =
|
|
39
|
-
export declare function
|
|
40
|
-
export default
|
|
39
|
+
export type Props = GoabCheckboxProps;
|
|
40
|
+
export declare function GoabCheckbox({ id, name, testId, error, disabled, checked, value, text, description, maxWidth, children, onChange, ariaLabel, mt, mr, mb, ml, }: GoabCheckboxProps): JSX.Element;
|
|
41
|
+
export default GoabCheckbox;
|
package/lib/chip/chip.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { Margins } from
|
|
2
|
-
|
|
3
|
-
export type GoAChipTheme = "outline" | "filled" | "sharp";
|
|
1
|
+
import { GoabChipTheme, GoabChipVariant, Margins } from '@abgov/ui-components-common';
|
|
2
|
+
|
|
4
3
|
interface WCProps extends Margins {
|
|
5
4
|
ref: React.RefObject<HTMLElement>;
|
|
6
5
|
leadingicon: string;
|
|
7
|
-
icontheme:
|
|
6
|
+
icontheme: GoabChipTheme;
|
|
8
7
|
error: boolean;
|
|
9
8
|
deletable: boolean;
|
|
10
9
|
content: string;
|
|
11
|
-
variant?:
|
|
10
|
+
variant?: GoabChipVariant;
|
|
12
11
|
testid?: string;
|
|
13
12
|
}
|
|
14
13
|
declare global {
|
|
@@ -18,15 +17,15 @@ declare global {
|
|
|
18
17
|
}
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
|
-
export interface
|
|
20
|
+
export interface GoabChipProps extends Margins {
|
|
22
21
|
onClick?: () => void;
|
|
23
22
|
deletable?: boolean;
|
|
24
23
|
leadingIcon?: string;
|
|
25
|
-
iconTheme?:
|
|
24
|
+
iconTheme?: GoabChipTheme;
|
|
26
25
|
error?: boolean;
|
|
27
26
|
content: string;
|
|
28
|
-
variant?:
|
|
27
|
+
variant?: GoabChipVariant;
|
|
29
28
|
testId?: string;
|
|
30
29
|
}
|
|
31
|
-
export declare const
|
|
32
|
-
export default
|
|
30
|
+
export declare const GoabChip: ({ leadingIcon, iconTheme, deletable, error, variant, content, onClick, mt, mr, mb, ml, testId, }: GoabChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export default GoabChip;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export type CircularProgressVariant = GoACircularProgressVariant;
|
|
4
|
-
export type CircularProgressSize = GoACircularProgressSize;
|
|
1
|
+
import { GoabCircularProgressSize, GoabCircularProgressVariant } from '@abgov/ui-components-common';
|
|
2
|
+
|
|
5
3
|
interface WCProps {
|
|
6
|
-
variant?:
|
|
7
|
-
size?:
|
|
4
|
+
variant?: GoabCircularProgressVariant;
|
|
5
|
+
size?: GoabCircularProgressSize;
|
|
8
6
|
message?: string;
|
|
9
7
|
visible?: string;
|
|
10
8
|
progress?: number;
|
|
@@ -17,13 +15,13 @@ declare global {
|
|
|
17
15
|
}
|
|
18
16
|
}
|
|
19
17
|
}
|
|
20
|
-
export interface
|
|
21
|
-
variant?:
|
|
22
|
-
size?:
|
|
18
|
+
export interface GoabCircularProgressProps {
|
|
19
|
+
variant?: GoabCircularProgressVariant;
|
|
20
|
+
size?: GoabCircularProgressSize;
|
|
23
21
|
message?: string;
|
|
24
22
|
visible?: boolean;
|
|
25
23
|
progress?: number;
|
|
26
24
|
testId?: string;
|
|
27
25
|
}
|
|
28
|
-
export declare const
|
|
29
|
-
export default
|
|
26
|
+
export declare const GoabCircularProgress: ({ visible, message, progress, variant, size, testId, }: GoabCircularProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export default GoabCircularProgress;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { Margins } from
|
|
3
|
-
|
|
4
|
-
export type GoAContainerAccent = "thick" | "thin" | "filled";
|
|
5
|
-
export type GoAContainerPadding = "relaxed" | "compact";
|
|
6
|
-
export type GoAContainerWidth = "full" | "content";
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { GoabContainerAccent, GoabContainerPadding, GoabContainerType, GoabContainerWidth, Margins } from '@abgov/ui-components-common';
|
|
3
|
+
|
|
7
4
|
interface WCProps extends Margins {
|
|
8
|
-
type?:
|
|
9
|
-
accent?:
|
|
10
|
-
padding?:
|
|
11
|
-
width?:
|
|
5
|
+
type?: GoabContainerType;
|
|
6
|
+
accent?: GoabContainerAccent;
|
|
7
|
+
padding?: GoabContainerPadding;
|
|
8
|
+
width?: GoabContainerWidth;
|
|
12
9
|
maxwidth?: string;
|
|
13
10
|
testid?: string;
|
|
14
11
|
}
|
|
@@ -19,17 +16,17 @@ declare global {
|
|
|
19
16
|
}
|
|
20
17
|
}
|
|
21
18
|
}
|
|
22
|
-
export interface
|
|
23
|
-
accent?:
|
|
24
|
-
type?:
|
|
19
|
+
export interface GoabContainerProps extends Margins {
|
|
20
|
+
accent?: GoabContainerAccent;
|
|
21
|
+
type?: GoabContainerType;
|
|
25
22
|
heading?: ReactNode;
|
|
26
23
|
title?: ReactNode;
|
|
27
|
-
padding?:
|
|
24
|
+
padding?: GoabContainerPadding;
|
|
28
25
|
actions?: ReactNode;
|
|
29
26
|
children?: ReactNode;
|
|
30
|
-
width?:
|
|
27
|
+
width?: GoabContainerWidth;
|
|
31
28
|
maxWidth?: string;
|
|
32
29
|
testId?: string;
|
|
33
30
|
}
|
|
34
|
-
export declare function
|
|
35
|
-
export default
|
|
31
|
+
export declare function GoabContainer({ accent, heading, title, padding, children, actions, type, width, maxWidth, mt, mr, mb, ml, testId, }: GoabContainerProps): JSX.Element;
|
|
32
|
+
export default GoabContainer;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Margins } from
|
|
1
|
+
import { GoabDatePickerOnChangeDetail, Margins } from '@abgov/ui-components-common';
|
|
2
|
+
|
|
2
3
|
interface WCProps extends Margins {
|
|
3
4
|
ref: React.RefObject<HTMLElement>;
|
|
4
5
|
name?: string;
|
|
@@ -17,7 +18,7 @@ declare global {
|
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
|
-
export interface
|
|
21
|
+
export interface GoabDatePickerProps extends Margins {
|
|
21
22
|
name?: string;
|
|
22
23
|
value?: Date;
|
|
23
24
|
error?: boolean;
|
|
@@ -26,7 +27,7 @@ export interface GoADatePickerProps extends Margins {
|
|
|
26
27
|
testId?: string;
|
|
27
28
|
relative?: boolean;
|
|
28
29
|
disabled?: boolean;
|
|
29
|
-
onChange
|
|
30
|
+
onChange: (detail: GoabDatePickerOnChangeDetail) => void;
|
|
30
31
|
}
|
|
31
|
-
export declare function
|
|
32
|
-
export default
|
|
32
|
+
export declare function GoabDatePicker({ name, value, error, min, max, testId, disabled, mt, mr, mb, ml, relative, onChange, }: GoabDatePickerProps): JSX.Element;
|
|
33
|
+
export default GoabDatePicker;
|
package/lib/details/details.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { Margins } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Margins } from '@abgov/ui-components-common';
|
|
3
|
+
|
|
3
4
|
interface WCProps extends Margins {
|
|
4
5
|
heading: string;
|
|
5
6
|
open?: boolean;
|
|
@@ -13,13 +14,12 @@ declare global {
|
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
|
-
export interface
|
|
17
|
+
export interface GoabDetailsProps extends Margins {
|
|
17
18
|
heading: string;
|
|
18
19
|
open?: boolean;
|
|
19
20
|
maxWidth?: string;
|
|
20
21
|
testId?: string;
|
|
21
22
|
children: ReactNode;
|
|
22
23
|
}
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export default GoADetails;
|
|
24
|
+
export declare function GoabDetails(props: GoabDetailsProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export default GoabDetails;
|