@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
package/lib/input/input.d.ts
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export type GoADate = Date | string;
|
|
4
|
-
export type GoAInputType = "text" | "password" | "email" | "number" | "date" | "datetime-local" | "month" | "range" | "search" | "tel" | "time" | "url" | "week";
|
|
5
|
-
export type GoAAutoCapitalize = "on" | "off" | "none" | "sentences" | "words" | "characters";
|
|
1
|
+
import { GoabAutoCapitalize, GoabDate, GoabIconType, GoaInputOnBlurDetail, GoabInputOnChangeDetail, GoabInputOnFocusDetail, GoabInputOnKeyPressDetail, GoabInputType, Margins } from '@abgov/ui-components-common';
|
|
2
|
+
|
|
6
3
|
interface WCProps extends Margins {
|
|
7
4
|
ref?: React.MutableRefObject<HTMLInputElement | null>;
|
|
8
|
-
type?:
|
|
5
|
+
type?: GoabInputType;
|
|
9
6
|
name: string;
|
|
10
7
|
value?: string;
|
|
11
8
|
id?: string;
|
|
12
|
-
autocapitalize?:
|
|
9
|
+
autocapitalize?: GoabAutoCapitalize;
|
|
13
10
|
debounce?: number;
|
|
14
11
|
placeholder?: string;
|
|
15
12
|
leadingicon?: string;
|
|
@@ -42,10 +39,10 @@ interface BaseProps extends Margins {
|
|
|
42
39
|
id?: string;
|
|
43
40
|
debounce?: number;
|
|
44
41
|
disabled?: boolean;
|
|
45
|
-
autoCapitalize?:
|
|
42
|
+
autoCapitalize?: GoabAutoCapitalize;
|
|
46
43
|
placeholder?: string;
|
|
47
|
-
leadingIcon?:
|
|
48
|
-
trailingIcon?:
|
|
44
|
+
leadingIcon?: GoabIconType;
|
|
45
|
+
trailingIcon?: GoabIconType;
|
|
49
46
|
onTrailingIconClick?: () => void;
|
|
50
47
|
variant?: "goa" | "bare";
|
|
51
48
|
focused?: boolean;
|
|
@@ -60,12 +57,12 @@ interface BaseProps extends Margins {
|
|
|
60
57
|
trailingContent?: React.ReactNode;
|
|
61
58
|
maxLength?: number;
|
|
62
59
|
}
|
|
63
|
-
type OnChange<T = string> = (
|
|
64
|
-
type OnFocus<T = string> = (
|
|
65
|
-
type OnBlur<T = string> = (
|
|
66
|
-
type OnKeyPress<T = string> = (
|
|
67
|
-
export interface
|
|
68
|
-
onChange
|
|
60
|
+
type OnChange<T = string> = (detail: GoabInputOnChangeDetail<T>) => void;
|
|
61
|
+
type OnFocus<T = string> = (detail: GoabInputOnFocusDetail<T>) => void;
|
|
62
|
+
type OnBlur<T = string> = (detail: GoaInputOnBlurDetail<T>) => void;
|
|
63
|
+
type OnKeyPress<T = string> = (detail: GoabInputOnKeyPressDetail<T>) => void;
|
|
64
|
+
export interface GoabInputProps extends BaseProps {
|
|
65
|
+
onChange: OnChange<string>;
|
|
69
66
|
value?: string;
|
|
70
67
|
min?: number | string;
|
|
71
68
|
max?: number | string;
|
|
@@ -74,8 +71,8 @@ export interface GoAInputProps extends BaseProps {
|
|
|
74
71
|
onBlur?: OnBlur<string>;
|
|
75
72
|
onKeyPress?: OnKeyPress<string>;
|
|
76
73
|
}
|
|
77
|
-
interface
|
|
78
|
-
onChange
|
|
74
|
+
interface GoabNumberInputProps extends BaseProps {
|
|
75
|
+
onChange: OnChange<number>;
|
|
79
76
|
value?: number;
|
|
80
77
|
min?: number;
|
|
81
78
|
max?: number;
|
|
@@ -84,30 +81,30 @@ interface GoANumberInputProps extends BaseProps {
|
|
|
84
81
|
onBlur?: OnBlur<number>;
|
|
85
82
|
onKeyPress?: OnKeyPress<number>;
|
|
86
83
|
}
|
|
87
|
-
interface
|
|
88
|
-
onChange
|
|
89
|
-
value?:
|
|
90
|
-
min?:
|
|
91
|
-
max?:
|
|
84
|
+
interface GoabDateInputProps extends BaseProps {
|
|
85
|
+
onChange: OnChange<GoabDate>;
|
|
86
|
+
value?: GoabDate;
|
|
87
|
+
min?: GoabDate;
|
|
88
|
+
max?: GoabDate;
|
|
92
89
|
step?: number;
|
|
93
|
-
onFocus?: OnFocus<
|
|
94
|
-
onBlur?: OnBlur<
|
|
95
|
-
onKeyPress?: OnKeyPress<
|
|
90
|
+
onFocus?: OnFocus<GoabDate>;
|
|
91
|
+
onBlur?: OnBlur<GoabDate>;
|
|
92
|
+
onKeyPress?: OnKeyPress<GoabDate>;
|
|
96
93
|
}
|
|
97
|
-
export declare function
|
|
98
|
-
type?:
|
|
94
|
+
export declare function GoabInput({ id, debounce, name, type, autoCapitalize, leadingIcon, trailingIcon, variant, focused, disabled, readonly, value, placeholder, error, width, testId, min, max, step, prefix, suffix, ariaLabel, mt, mr, mb, ml, leadingContent, trailingContent, maxLength, onTrailingIconClick, onChange, onFocus, onBlur, onKeyPress, }: GoabInputProps & {
|
|
95
|
+
type?: GoabInputType;
|
|
99
96
|
}): JSX.Element;
|
|
100
|
-
export declare function
|
|
101
|
-
export declare function
|
|
102
|
-
export declare function
|
|
103
|
-
export declare function
|
|
104
|
-
export declare function
|
|
105
|
-
export declare function
|
|
106
|
-
export declare function
|
|
107
|
-
export declare function
|
|
108
|
-
export declare function
|
|
109
|
-
export declare function
|
|
110
|
-
export declare function
|
|
111
|
-
export declare function
|
|
112
|
-
export declare function
|
|
113
|
-
export default
|
|
97
|
+
export declare function GoabInputText(props: GoabInputProps): JSX.Element;
|
|
98
|
+
export declare function GoabInputPassword(props: GoabInputProps): JSX.Element;
|
|
99
|
+
export declare function GoabInputDate({ value, min, max, ...props }: GoabDateInputProps): JSX.Element;
|
|
100
|
+
export declare function GoabInputTime({ value, min, max, ...props }: GoabInputProps): JSX.Element;
|
|
101
|
+
export declare function GoabInputDateTime({ value, min, max, ...props }: GoabDateInputProps): JSX.Element;
|
|
102
|
+
export declare function GoabInputEmail(props: GoabInputProps): JSX.Element;
|
|
103
|
+
export declare function GoabInputSearch(props: GoabInputProps): JSX.Element;
|
|
104
|
+
export declare function GoabInputUrl(props: GoabInputProps): JSX.Element;
|
|
105
|
+
export declare function GoabInputTel(props: GoabInputProps): JSX.Element;
|
|
106
|
+
export declare function GoabInputFile(props: GoabInputProps): JSX.Element;
|
|
107
|
+
export declare function GoabInputMonth(props: GoabInputProps): JSX.Element;
|
|
108
|
+
export declare function GoabInputNumber({ min, max, value, ...props }: GoabNumberInputProps): JSX.Element;
|
|
109
|
+
export declare function GoabInputRange(props: GoabInputProps): JSX.Element;
|
|
110
|
+
export default GoabInput;
|
package/lib/link/link.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { GoabIconType, Margins } from '@abgov/ui-components-common';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
|
-
leadingicon?:
|
|
6
|
-
trailingicon?:
|
|
5
|
+
leadingicon?: GoabIconType;
|
|
6
|
+
trailingicon?: GoabIconType;
|
|
7
7
|
}
|
|
8
8
|
declare global {
|
|
9
9
|
namespace JSX {
|
|
@@ -13,8 +13,8 @@ declare global {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
interface GoALinkProps extends Margins {
|
|
16
|
-
leadingIcon?:
|
|
17
|
-
trailingIcon?:
|
|
16
|
+
leadingIcon?: GoabIconType;
|
|
17
|
+
trailingIcon?: GoabIconType;
|
|
18
18
|
children: ReactNode;
|
|
19
19
|
}
|
|
20
20
|
export declare function GoALink(props: GoALinkProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type GoALinkButtonType = "start" | "primary" | "secondary" | "tertiary";
|
|
1
|
+
import { GoabIconType, GoabLinkButtonType, Margins } from '@abgov/ui-components-common';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
5
4
|
interface WCProps extends Margins {
|
|
6
|
-
type?:
|
|
7
|
-
leadingicon?:
|
|
8
|
-
trailingicon?:
|
|
5
|
+
type?: GoabLinkButtonType;
|
|
6
|
+
leadingicon?: GoabIconType;
|
|
7
|
+
trailingicon?: GoabIconType;
|
|
9
8
|
}
|
|
10
9
|
declare global {
|
|
11
10
|
namespace JSX {
|
|
@@ -15,9 +14,9 @@ declare global {
|
|
|
15
14
|
}
|
|
16
15
|
}
|
|
17
16
|
interface GoALinkButtonProps extends Margins {
|
|
18
|
-
type?:
|
|
19
|
-
leadingIcon?:
|
|
20
|
-
trailingIcon?:
|
|
17
|
+
type?: GoabLinkButtonType;
|
|
18
|
+
leadingIcon?: GoabIconType;
|
|
19
|
+
trailingIcon?: GoabIconType;
|
|
21
20
|
children: ReactNode;
|
|
22
21
|
}
|
|
23
22
|
export declare function GoALinkButton({ type, ...props }: GoALinkButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { GoabLinkTarget, GoabServiceLevel } from '@abgov/ui-components-common';
|
|
2
|
+
|
|
1
3
|
declare global {
|
|
2
4
|
namespace JSX {
|
|
3
5
|
interface IntrinsicElements {
|
|
@@ -5,30 +7,26 @@ declare global {
|
|
|
5
7
|
}
|
|
6
8
|
}
|
|
7
9
|
}
|
|
8
|
-
export type GoAServiceLevel = "alpha" | "beta" | "live";
|
|
9
|
-
export type GoALinkTarget = "self" | "blank";
|
|
10
|
-
export type ServiceLevel = GoAServiceLevel;
|
|
11
10
|
interface WCProps {
|
|
12
|
-
type:
|
|
11
|
+
type: GoabServiceLevel;
|
|
13
12
|
version?: string;
|
|
14
13
|
feedbackurl?: string;
|
|
15
14
|
maxcontentwidth?: string;
|
|
16
|
-
feedbackurltarget?:
|
|
17
|
-
headerurltarget?:
|
|
15
|
+
feedbackurltarget?: GoabLinkTarget;
|
|
16
|
+
headerurltarget?: GoabLinkTarget;
|
|
18
17
|
hasfeedbackhandler?: boolean;
|
|
19
18
|
ref: React.RefObject<HTMLElement>;
|
|
20
19
|
testid?: string;
|
|
21
20
|
}
|
|
22
|
-
export interface
|
|
23
|
-
type:
|
|
24
|
-
version?: React.ReactNode;
|
|
21
|
+
export interface GoabHeaderProps {
|
|
22
|
+
type: GoabServiceLevel;
|
|
23
|
+
version?: string | React.ReactNode;
|
|
25
24
|
feedbackUrl?: string;
|
|
26
25
|
testId?: string;
|
|
27
26
|
maxContentWidth?: string;
|
|
28
|
-
feedbackUrlTarget?:
|
|
29
|
-
headerUrlTarget?:
|
|
27
|
+
feedbackUrlTarget?: GoabLinkTarget;
|
|
28
|
+
headerUrlTarget?: GoabLinkTarget;
|
|
30
29
|
onFeedbackClick?: () => void;
|
|
31
30
|
}
|
|
32
|
-
export type
|
|
33
|
-
export
|
|
34
|
-
export default GoAMicrositeHeader;
|
|
31
|
+
export declare function GoabMicrositeHeader({ type, version, feedbackUrl, maxContentWidth, feedbackUrlTarget, headerUrlTarget, testId, onFeedbackClick, }: GoabHeaderProps): JSX.Element;
|
|
32
|
+
export default GoabMicrositeHeader;
|
package/lib/modal/modal.d.ts
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import { ReactElement, ReactNode, RefObject } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export type GoAModalRole = "dialog" | "alertdialog";
|
|
5
|
-
export type ModalTransition = GoAModalTransition;
|
|
6
|
-
export type CalloutVariant = GoAModalCalloutVariant;
|
|
1
|
+
import { ReactElement, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { GoabModalCalloutVariant, GoabModalRole, GoabModalTransition } from '@abgov/ui-components-common';
|
|
3
|
+
|
|
7
4
|
interface WCProps {
|
|
8
5
|
ref: RefObject<HTMLElement>;
|
|
9
6
|
heading?: ReactNode;
|
|
10
7
|
open?: boolean;
|
|
11
8
|
maxwidth?: string;
|
|
12
9
|
closable?: boolean;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
role?: GoabModalRole;
|
|
11
|
+
transition?: GoabModalTransition;
|
|
12
|
+
calloutvariant?: GoabModalCalloutVariant;
|
|
16
13
|
testid?: string;
|
|
17
14
|
}
|
|
18
15
|
declare global {
|
|
@@ -22,19 +19,17 @@ declare global {
|
|
|
22
19
|
}
|
|
23
20
|
}
|
|
24
21
|
}
|
|
25
|
-
export interface
|
|
22
|
+
export interface GoabModalProps {
|
|
26
23
|
heading?: ReactNode;
|
|
27
24
|
maxWidth?: string;
|
|
28
25
|
actions?: ReactElement;
|
|
29
26
|
onClose?: () => void;
|
|
30
|
-
transition?:
|
|
27
|
+
transition?: GoabModalTransition;
|
|
31
28
|
children?: ReactNode;
|
|
32
29
|
open?: boolean;
|
|
33
|
-
calloutVariant?:
|
|
30
|
+
calloutVariant?: GoabModalCalloutVariant;
|
|
34
31
|
testId?: string;
|
|
35
|
-
role?:
|
|
36
|
-
width?: string;
|
|
37
|
-
type?: string;
|
|
32
|
+
role?: GoabModalRole;
|
|
38
33
|
}
|
|
39
|
-
export declare function
|
|
40
|
-
export default
|
|
34
|
+
export declare function GoabModal({ heading, children, maxWidth, open, actions, transition, calloutVariant, onClose, testId, role, }: GoabModalProps): JSX.Element;
|
|
35
|
+
export default GoabModal;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export type NotificationType = GoANotificationType;
|
|
4
|
-
export type AriaLiveType = GoAAriaLiveType;
|
|
1
|
+
import { GoabAriaLiveType, GoabNotificationType } from '@abgov/ui-components-common';
|
|
2
|
+
|
|
5
3
|
interface WCProps {
|
|
6
4
|
ref: React.RefObject<HTMLElement>;
|
|
7
|
-
type:
|
|
5
|
+
type: GoabNotificationType;
|
|
8
6
|
maxcontentwidth?: string;
|
|
9
|
-
arialive?:
|
|
7
|
+
arialive?: GoabAriaLiveType;
|
|
10
8
|
testid?: string;
|
|
11
9
|
}
|
|
12
10
|
declare global {
|
|
@@ -16,13 +14,13 @@ declare global {
|
|
|
16
14
|
}
|
|
17
15
|
}
|
|
18
16
|
}
|
|
19
|
-
export interface
|
|
20
|
-
type?:
|
|
21
|
-
ariaLive?:
|
|
17
|
+
export interface GoabNotificationProps {
|
|
18
|
+
type?: GoabNotificationType;
|
|
19
|
+
ariaLive?: GoabAriaLiveType;
|
|
22
20
|
maxContentWidth?: string;
|
|
23
21
|
children?: React.ReactNode;
|
|
24
22
|
onDismiss?: () => void;
|
|
25
23
|
testId?: string;
|
|
26
24
|
}
|
|
27
|
-
export declare const
|
|
28
|
-
export default
|
|
25
|
+
export declare const GoabNotification: ({ type, ariaLive, maxContentWidth, children, testId, onDismiss, }: GoabNotificationProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export default GoabNotification;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
2
3
|
declare global {
|
|
3
4
|
namespace JSX {
|
|
4
5
|
interface IntrinsicElements {
|
|
@@ -6,9 +7,9 @@ declare global {
|
|
|
6
7
|
}
|
|
7
8
|
}
|
|
8
9
|
}
|
|
9
|
-
export interface
|
|
10
|
+
export interface GoabPageProps {
|
|
10
11
|
children?: ReactNode;
|
|
11
12
|
}
|
|
12
|
-
export type PageProps =
|
|
13
|
-
export declare function
|
|
14
|
-
export default
|
|
13
|
+
export type PageProps = GoabPageProps;
|
|
14
|
+
export declare function GoabOneColumnLayout(props: GoabPageProps): JSX.Element;
|
|
15
|
+
export default GoabOneColumnLayout;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
2
3
|
interface WCProps {
|
|
3
4
|
width: "full" | string;
|
|
4
5
|
testid?: string;
|
|
@@ -10,11 +11,11 @@ declare global {
|
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
|
-
export interface
|
|
14
|
+
export interface GoabPageBlockProps {
|
|
14
15
|
width: "full" | string;
|
|
15
16
|
testId?: string;
|
|
16
17
|
children?: ReactNode;
|
|
17
18
|
}
|
|
18
|
-
export type PageBlockProps =
|
|
19
|
-
export declare function
|
|
19
|
+
export type PageBlockProps = GoabPageBlockProps;
|
|
20
|
+
export declare function GoabPageBlock(props: PageBlockProps): JSX.Element;
|
|
20
21
|
export {};
|
package/lib/pages/pages.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
|
current?: number;
|
|
5
6
|
}
|
|
@@ -10,9 +11,9 @@ declare global {
|
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
|
-
export interface
|
|
14
|
+
export interface GoabPagesProps extends Margins {
|
|
14
15
|
current?: number;
|
|
15
16
|
children?: ReactNode;
|
|
16
17
|
}
|
|
17
|
-
export declare function
|
|
18
|
-
export default
|
|
18
|
+
export declare function GoabPages(props: GoabPagesProps): JSX.Element;
|
|
19
|
+
export default GoabPages;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Margins } from
|
|
1
|
+
import { GoabPaginationOnChangeDetail, Margins } from '@abgov/ui-components-common';
|
|
2
|
+
|
|
2
3
|
interface WCProps extends Margins {
|
|
3
4
|
ref?: React.MutableRefObject<HTMLElement | undefined>;
|
|
4
5
|
itemcount: number;
|
|
@@ -14,14 +15,14 @@ declare global {
|
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
|
-
export interface
|
|
18
|
+
export interface GoabPaginationProps extends Margins {
|
|
18
19
|
itemCount: number;
|
|
19
20
|
perPageCount?: number;
|
|
20
21
|
pageNumber: number;
|
|
21
22
|
variant?: "all" | "links-only";
|
|
22
|
-
onChange: (
|
|
23
|
+
onChange: (detail: GoabPaginationOnChangeDetail) => void;
|
|
23
24
|
testId?: string;
|
|
24
25
|
}
|
|
25
|
-
export type PaginationProps =
|
|
26
|
-
export declare function
|
|
27
|
-
export default
|
|
26
|
+
export type PaginationProps = GoabPaginationProps;
|
|
27
|
+
export declare function GoabPagination({ onChange, ...props }: GoabPaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export default GoabPagination;
|
package/lib/popover/popover.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { Margins } from
|
|
3
|
-
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { GoabPopoverPosition, Margins } from '@abgov/ui-components-common';
|
|
3
|
+
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
5
|
maxwidth?: string;
|
|
6
6
|
minwidth?: string;
|
|
7
7
|
padded?: boolean;
|
|
8
|
-
position?:
|
|
8
|
+
position?: GoabPopoverPosition;
|
|
9
9
|
relative?: boolean;
|
|
10
10
|
testid?: string;
|
|
11
11
|
}
|
|
@@ -16,15 +16,15 @@ declare global {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
export interface
|
|
19
|
+
export interface GoabPopoverProps extends Margins {
|
|
20
20
|
target?: ReactNode;
|
|
21
21
|
testId?: string;
|
|
22
22
|
maxWidth?: string;
|
|
23
23
|
minWidth?: string;
|
|
24
24
|
padded?: boolean;
|
|
25
|
-
position?:
|
|
25
|
+
position?: GoabPopoverPosition;
|
|
26
26
|
children: ReactNode;
|
|
27
27
|
relative?: boolean;
|
|
28
28
|
}
|
|
29
|
-
export declare function
|
|
30
|
-
export default
|
|
29
|
+
export declare function GoabPopover({ target, testId, maxWidth, minWidth, padded, position, relative, children, mt, mr, mb, ml, }: GoabPopoverProps): JSX.Element;
|
|
30
|
+
export default GoabPopover;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Margins } from
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import { GoabRadioGroupOnChangeDetail, GoabRadioGroupOrientation, Margins } from '@abgov/ui-components-common';
|
|
2
|
+
|
|
3
|
+
export * from './radio';
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
5
|
ref: React.RefObject<HTMLElement>;
|
|
6
6
|
name: string;
|
|
7
7
|
value?: string;
|
|
8
|
-
orientation?:
|
|
8
|
+
orientation?: GoabRadioGroupOrientation;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
error?: boolean;
|
|
11
11
|
arialabel?: string;
|
|
@@ -18,16 +18,16 @@ declare global {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
export interface
|
|
21
|
+
export interface GoabRadioGroupProps extends Margins {
|
|
22
22
|
name: string;
|
|
23
23
|
value?: string;
|
|
24
24
|
disabled?: boolean;
|
|
25
|
-
orientation?:
|
|
25
|
+
orientation?: GoabRadioGroupOrientation;
|
|
26
26
|
testId?: string;
|
|
27
27
|
error?: boolean;
|
|
28
28
|
ariaLabel?: string;
|
|
29
29
|
children?: React.ReactNode;
|
|
30
|
-
onChange
|
|
30
|
+
onChange: (detail: GoabRadioGroupOnChangeDetail) => void;
|
|
31
31
|
}
|
|
32
|
-
export declare function
|
|
33
|
-
export default
|
|
32
|
+
export declare function GoabRadioGroup({ name, value, children, orientation, disabled, error, testId, ariaLabel, mt, mr, mb, ml, onChange, }: GoabRadioGroupProps): JSX.Element;
|
|
33
|
+
export default GoabRadioGroup;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Margins } from
|
|
1
|
+
import { Margins } from '@abgov/ui-components-common';
|
|
2
|
+
|
|
2
3
|
interface RadioItemProps extends Margins {
|
|
3
4
|
name?: string;
|
|
4
5
|
value?: string;
|
|
@@ -17,7 +18,7 @@ declare global {
|
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
|
-
export interface
|
|
21
|
+
export interface GoabRadioItemProps extends Margins {
|
|
21
22
|
value?: string;
|
|
22
23
|
label?: string;
|
|
23
24
|
name?: string;
|
|
@@ -30,5 +31,5 @@ export interface GoARadioItemProps extends Margins {
|
|
|
30
31
|
testId?: string;
|
|
31
32
|
ariaLabel?: string;
|
|
32
33
|
}
|
|
33
|
-
export declare function
|
|
34
|
-
export default
|
|
34
|
+
export declare function GoabRadioItem({ name, label, value, description, maxWidth, disabled, checked, error, testId, ariaLabel, children, mt, mr, mb, ml, }: GoabRadioItemProps): JSX.Element;
|
|
35
|
+
export default GoabRadioItem;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
2
3
|
interface WCProps {
|
|
3
4
|
testid?: string;
|
|
4
5
|
}
|
|
@@ -9,10 +10,9 @@ declare global {
|
|
|
9
10
|
}
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
|
-
export interface
|
|
13
|
+
export interface GoabSideMenuProps {
|
|
13
14
|
testId?: string;
|
|
14
15
|
children: ReactNode;
|
|
15
16
|
}
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export default GoASideMenu;
|
|
17
|
+
export declare function GoabSideMenu(props: GoabSideMenuProps): JSX.Element;
|
|
18
|
+
export default GoabSideMenu;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { GoabIconType, Margins } from '@abgov/ui-components-common';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
5
|
heading: string;
|
|
6
|
-
icon?:
|
|
6
|
+
icon?: GoabIconType;
|
|
7
7
|
testid?: string;
|
|
8
8
|
}
|
|
9
9
|
declare global {
|
|
@@ -13,11 +13,11 @@ declare global {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
16
|
+
export interface GoabSideMenuGroupProps extends Margins {
|
|
17
17
|
heading: string;
|
|
18
|
-
icon?:
|
|
18
|
+
icon?: GoabIconType;
|
|
19
19
|
testId?: string;
|
|
20
20
|
children?: ReactNode;
|
|
21
21
|
}
|
|
22
|
-
export declare function
|
|
23
|
-
export default
|
|
22
|
+
export declare function GoabSideMenuGroup(props: GoabSideMenuGroupProps): JSX.Element;
|
|
23
|
+
export default GoabSideMenuGroup;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { GoabIconType } from '@abgov/ui-components-common';
|
|
3
|
+
|
|
3
4
|
interface WCProps {
|
|
4
|
-
icon?: GoAIconType;
|
|
5
5
|
testid?: string;
|
|
6
|
+
icon?: GoabIconType;
|
|
6
7
|
}
|
|
7
8
|
declare global {
|
|
8
9
|
namespace JSX {
|
|
@@ -11,11 +12,11 @@ declare global {
|
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
|
-
export interface
|
|
15
|
+
export interface GoabSideMenuHeadingProps {
|
|
15
16
|
meta?: ReactNode;
|
|
16
|
-
icon?: GoAIconType;
|
|
17
17
|
testId?: string;
|
|
18
|
+
icon?: GoabIconType;
|
|
18
19
|
children?: ReactNode;
|
|
19
20
|
}
|
|
20
|
-
export declare function
|
|
21
|
-
export default
|
|
21
|
+
export declare function GoabSideMenuHeading(props: GoabSideMenuHeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export default GoabSideMenuHeading;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { Margins } from
|
|
2
|
-
|
|
3
|
-
export type GoASkeletonSize = 1 | 2 | 3 | 4;
|
|
4
|
-
export type SkeletonType = GoASkeletonType;
|
|
1
|
+
import { GoabSkeletonSize, GoabSkeletonType, Margins } from '@abgov/ui-components-common';
|
|
2
|
+
|
|
5
3
|
interface WCProps extends Margins {
|
|
6
4
|
maxwidth?: string;
|
|
7
|
-
size?:
|
|
5
|
+
size?: GoabSkeletonSize;
|
|
8
6
|
linecount?: number;
|
|
9
|
-
type:
|
|
7
|
+
type: GoabSkeletonType;
|
|
10
8
|
testid?: string;
|
|
11
9
|
}
|
|
12
10
|
declare global {
|
|
@@ -16,13 +14,13 @@ declare global {
|
|
|
16
14
|
}
|
|
17
15
|
}
|
|
18
16
|
}
|
|
19
|
-
export interface
|
|
17
|
+
export interface GoabSkeletonProps extends Margins {
|
|
20
18
|
maxWidth?: string;
|
|
21
|
-
size?:
|
|
19
|
+
size?: GoabSkeletonSize;
|
|
22
20
|
lineCount?: number;
|
|
23
|
-
type:
|
|
21
|
+
type: GoabSkeletonType;
|
|
24
22
|
testId?: string;
|
|
25
23
|
}
|
|
26
|
-
export type SkeletonProps =
|
|
27
|
-
export declare const
|
|
28
|
-
export default
|
|
24
|
+
export type SkeletonProps = GoabSkeletonProps;
|
|
25
|
+
export declare const GoabSkeleton: ({ maxWidth, size, lineCount, type, testId, mt, mr, mb, ml, }: GoabSkeletonProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export default GoabSkeleton;
|