@abgov/react-components 5.4.0 → 6.0.0-alpha.1
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 +40 -43
- 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/divider/divider.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Margins } from
|
|
1
|
+
import { Margins } from '../../../../../dist/libs/common/index.d.ts';
|
|
2
|
+
|
|
2
3
|
interface WCProps extends Margins {
|
|
3
4
|
testid?: string;
|
|
4
5
|
}
|
|
@@ -9,8 +10,8 @@ declare global {
|
|
|
9
10
|
}
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
|
-
export interface
|
|
13
|
+
export interface GoabDividerProps extends Margins {
|
|
13
14
|
testId?: string;
|
|
14
15
|
}
|
|
15
|
-
export declare function
|
|
16
|
-
export default
|
|
16
|
+
export declare function GoabDivider(props: GoabDividerProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default GoabDivider;
|
package/lib/drawer/drawer.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { GoabDropdownItemMountType } from '../../../../../dist/libs/common/index.d.ts';
|
|
2
|
+
|
|
1
3
|
interface WCProps {
|
|
2
4
|
value: string;
|
|
3
5
|
label?: string;
|
|
4
6
|
filter?: string;
|
|
5
|
-
mount?:
|
|
7
|
+
mount?: GoabDropdownItemMountType;
|
|
6
8
|
name?: string;
|
|
7
9
|
}
|
|
8
|
-
export type DropdownItemMountType = "append" | "prepend" | "reset";
|
|
9
10
|
declare global {
|
|
10
11
|
namespace JSX {
|
|
11
12
|
interface IntrinsicElements {
|
|
@@ -13,14 +14,14 @@ declare global {
|
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
|
-
export interface
|
|
17
|
+
export interface GoabDropdownItemProps {
|
|
17
18
|
value: string;
|
|
18
19
|
label?: string;
|
|
19
20
|
filter?: string;
|
|
20
21
|
testId?: string;
|
|
21
|
-
mountType?:
|
|
22
|
+
mountType?: GoabDropdownItemMountType;
|
|
22
23
|
name?: string;
|
|
23
24
|
}
|
|
24
|
-
export declare function
|
|
25
|
-
export declare function
|
|
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
27
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Margins } from
|
|
2
|
-
|
|
1
|
+
import { GoabDropdownOnChangeDetail, GoabIconType, Margins } from '../../../../../dist/libs/common/index.d.ts';
|
|
2
|
+
|
|
3
3
|
interface WCProps extends Margins {
|
|
4
4
|
ref: React.MutableRefObject<HTMLElement | null>;
|
|
5
5
|
arialabel?: string;
|
|
@@ -26,10 +26,10 @@ declare global {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
export interface
|
|
29
|
+
export interface GoabDropdownProps extends Margins {
|
|
30
30
|
name?: string;
|
|
31
31
|
value?: string[] | string;
|
|
32
|
-
onChange
|
|
32
|
+
onChange: (detail: GoabDropdownOnChangeDetail) => void;
|
|
33
33
|
ariaLabel?: string;
|
|
34
34
|
ariaLabelledBy?: string;
|
|
35
35
|
id?: string;
|
|
@@ -37,7 +37,7 @@ export interface GoADropdownProps extends Margins {
|
|
|
37
37
|
disabled?: boolean;
|
|
38
38
|
error?: boolean;
|
|
39
39
|
filterable?: boolean;
|
|
40
|
-
leadingIcon?:
|
|
40
|
+
leadingIcon?: GoabIconType;
|
|
41
41
|
maxHeight?: string;
|
|
42
42
|
multiselect?: boolean;
|
|
43
43
|
native?: boolean;
|
|
@@ -46,5 +46,5 @@ export interface GoADropdownProps extends Margins {
|
|
|
46
46
|
width?: string;
|
|
47
47
|
relative?: boolean;
|
|
48
48
|
}
|
|
49
|
-
export declare function
|
|
50
|
-
export default
|
|
49
|
+
export declare function GoabDropdown(props: GoabDropdownProps): JSX.Element;
|
|
50
|
+
export default GoabDropdown;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Margins, GoabFielsetOnContinueDetail } from '../../../../../dist/libs/common/index.d.ts';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
3
4
|
interface WCProps extends Margins {
|
|
4
5
|
ref?: React.MutableRefObject<HTMLElement | null>;
|
|
5
6
|
id: string;
|
|
@@ -15,15 +16,15 @@ declare global {
|
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
|
-
interface
|
|
19
|
+
interface GoabFieldsetProps extends Margins {
|
|
19
20
|
id: string;
|
|
20
21
|
first?: boolean;
|
|
21
22
|
last?: boolean;
|
|
22
23
|
heading?: string;
|
|
23
24
|
buttonText?: string;
|
|
24
25
|
errors?: Record<string, string>;
|
|
25
|
-
onContinue?: (
|
|
26
|
+
onContinue?: (event: GoabFielsetOnContinueDetail) => boolean | void | undefined;
|
|
26
27
|
children: ReactNode;
|
|
27
28
|
}
|
|
28
|
-
export declare function
|
|
29
|
-
export default
|
|
29
|
+
export declare function GoabFieldset({ heading, buttonText, id, onContinue, children, mt, mr, mb, ml, first, last, }: GoabFieldsetProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export default GoabFieldset;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { GoabFileUploadOnCancelDetail, GoabFileUploadOnDeleteDetail } from '../../../../../dist/libs/common/index.d.ts';
|
|
2
|
+
|
|
1
3
|
interface WCProps {
|
|
2
4
|
ref: React.MutableRefObject<HTMLElement | null>;
|
|
3
5
|
filename: string;
|
|
@@ -14,15 +16,15 @@ declare global {
|
|
|
14
16
|
}
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
|
-
export interface
|
|
19
|
+
export interface GoabFileUploadCardProps {
|
|
18
20
|
filename: string;
|
|
19
21
|
size: number;
|
|
20
22
|
type?: string;
|
|
21
23
|
progress?: number;
|
|
24
|
+
testId: string;
|
|
22
25
|
error?: string;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
onCancel?: () => void;
|
|
26
|
+
onDelete?: (detail: GoabFileUploadOnDeleteDetail) => void;
|
|
27
|
+
onCancel?: (detail: GoabFileUploadOnCancelDetail) => void;
|
|
26
28
|
}
|
|
27
|
-
export declare function
|
|
28
|
-
export default
|
|
29
|
+
export declare function GoabFileUploadCard({ filename, size, type, progress, error, testId, onDelete, onCancel, }: GoabFileUploadCardProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export default GoabFileUploadCard;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { GoabFileUploadInputOnSelectFileDetail, GoabFileUploadInputVariant } from '../../../../../dist/libs/common/index.d.ts';
|
|
2
|
+
|
|
2
3
|
interface WCProps {
|
|
3
4
|
ref: React.MutableRefObject<HTMLElement | null>;
|
|
4
|
-
variant?:
|
|
5
|
+
variant?: GoabFileUploadInputVariant;
|
|
5
6
|
accept?: string;
|
|
6
7
|
maxfilesize?: string;
|
|
7
8
|
testid?: string;
|
|
@@ -13,12 +14,12 @@ declare global {
|
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
|
-
export interface
|
|
17
|
-
variant?:
|
|
17
|
+
export interface GoabFileUploadInputProps {
|
|
18
|
+
variant?: GoabFileUploadInputVariant;
|
|
18
19
|
accept?: string;
|
|
19
20
|
maxFileSize?: string;
|
|
20
21
|
testId?: string;
|
|
21
|
-
onSelectFile: (
|
|
22
|
+
onSelectFile: (detail: GoabFileUploadInputOnSelectFileDetail) => void;
|
|
22
23
|
}
|
|
23
|
-
export declare function
|
|
24
|
-
export default
|
|
24
|
+
export declare function GoabFileUploadInput({ variant, accept, maxFileSize, testId, onSelectFile, }: GoabFileUploadInputProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export default GoabFileUploadInput;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Margins } from
|
|
2
|
-
|
|
1
|
+
import { Margins, GoabFilterChipTheme } from '../../../../../dist/libs/common/index.d.ts';
|
|
2
|
+
|
|
3
3
|
interface WCProps extends Margins {
|
|
4
4
|
ref: React.RefObject<HTMLElement>;
|
|
5
|
-
icontheme:
|
|
5
|
+
icontheme: GoabFilterChipTheme;
|
|
6
6
|
error: boolean;
|
|
7
7
|
content: string;
|
|
8
8
|
}
|
|
@@ -15,7 +15,7 @@ declare global {
|
|
|
15
15
|
}
|
|
16
16
|
export interface GoAFilterChipProps extends Margins {
|
|
17
17
|
onClick?: () => void;
|
|
18
|
-
iconTheme?:
|
|
18
|
+
iconTheme?: GoabFilterChipTheme;
|
|
19
19
|
error?: boolean;
|
|
20
20
|
content: string;
|
|
21
21
|
testId?: string;
|
package/lib/footer/footer.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
2
3
|
interface WCProps {
|
|
3
4
|
maxcontentwidth?: string;
|
|
4
5
|
testid?: string;
|
|
@@ -10,11 +11,11 @@ declare global {
|
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
|
-
export interface
|
|
14
|
+
export interface GoabAppFooterProps {
|
|
14
15
|
maxContentWidth?: string;
|
|
15
16
|
children?: ReactNode;
|
|
16
17
|
testId?: string;
|
|
17
18
|
}
|
|
18
|
-
export type FooterProps =
|
|
19
|
-
export declare function
|
|
20
|
-
export default
|
|
19
|
+
export type FooterProps = GoabAppFooterProps;
|
|
20
|
+
export declare function GoabAppFooter({ maxContentWidth, children, testId, }: GoabAppFooterProps): JSX.Element;
|
|
21
|
+
export default GoabAppFooter;
|
|
@@ -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 GoabAppFooterMetaSectionProps {
|
|
13
14
|
testId?: string;
|
|
14
15
|
children?: ReactNode;
|
|
15
16
|
}
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export default GoAAppFooterMetaSection;
|
|
17
|
+
export declare function GoabAppFooterMetaSection({ testId, children, }: GoabAppFooterMetaSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default GoabAppFooterMetaSection;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
2
3
|
interface WCProps {
|
|
3
4
|
maxcolumncount?: number;
|
|
4
5
|
heading?: string;
|
|
@@ -11,11 +12,11 @@ declare global {
|
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
|
-
export interface
|
|
15
|
+
export interface GoabFooterNavSectionProps {
|
|
15
16
|
maxColumnCount?: number;
|
|
16
17
|
heading?: string;
|
|
17
18
|
testId?: string;
|
|
18
19
|
children?: ReactNode;
|
|
19
20
|
}
|
|
20
|
-
export declare function
|
|
21
|
-
export default
|
|
21
|
+
export declare function GoabAppFooterNavSection({ heading, maxColumnCount, testId, children, }: GoabFooterNavSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export default GoabAppFooterNavSection;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { Margins } from
|
|
2
|
-
|
|
3
|
-
export type GoAFormItemLabelSize = "regular" | "large";
|
|
1
|
+
import { GoabFormItemLabelSize, GoabFormItemRequirement, Margins } from '../../../../../dist/libs/common/index.d.ts';
|
|
2
|
+
|
|
4
3
|
interface WCProps extends Margins {
|
|
5
4
|
label?: string;
|
|
6
|
-
labelsize?:
|
|
7
|
-
requirement?:
|
|
5
|
+
labelsize?: GoabFormItemLabelSize;
|
|
6
|
+
requirement?: GoabFormItemRequirement;
|
|
8
7
|
error?: string;
|
|
9
8
|
helptext?: string;
|
|
10
9
|
maxwidth?: string;
|
|
@@ -18,16 +17,16 @@ declare global {
|
|
|
18
17
|
}
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
|
-
export interface
|
|
20
|
+
export interface GoabFormItemprops extends Margins {
|
|
22
21
|
label?: string;
|
|
23
|
-
labelSize?:
|
|
24
|
-
requirement?:
|
|
25
|
-
error?: React.ReactNode;
|
|
26
|
-
helpText?: React.ReactNode;
|
|
22
|
+
labelSize?: GoabFormItemLabelSize;
|
|
23
|
+
requirement?: GoabFormItemRequirement;
|
|
24
|
+
error?: string | React.ReactNode;
|
|
25
|
+
helpText?: string | React.ReactNode;
|
|
27
26
|
maxWidth?: string;
|
|
28
27
|
children?: React.ReactNode;
|
|
29
28
|
testId?: string;
|
|
30
29
|
id?: string;
|
|
31
30
|
}
|
|
32
|
-
export declare function
|
|
33
|
-
export default
|
|
31
|
+
export declare function GoabFormItem({ children, helpText, error, requirement, label, labelSize, maxWidth, mt, mr, mb, ml, testId, id, }: GoabFormItemprops): JSX.Element;
|
|
32
|
+
export default GoabFormItem;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { GoabFormStepStatus } from '../../../../../dist/libs/common/index.d.ts';
|
|
2
|
+
|
|
2
3
|
interface WCProps {
|
|
3
4
|
text: string;
|
|
4
|
-
status?:
|
|
5
|
+
status?: GoabFormStepStatus;
|
|
5
6
|
}
|
|
6
7
|
declare global {
|
|
7
8
|
namespace JSX {
|
|
@@ -10,10 +11,9 @@ declare global {
|
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
|
-
export interface
|
|
14
|
+
export interface GoabFormStepProps {
|
|
14
15
|
text: string;
|
|
15
|
-
status?:
|
|
16
|
+
status?: GoabFormStepStatus;
|
|
16
17
|
}
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export default GoAFormStep;
|
|
18
|
+
export declare function GoabFormStep(props: GoabFormStepProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export default GoabFormStep;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { Margins } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { GoabFormStepperOnChangeDetail, Margins } from '../../../../../dist/libs/common/index.d.ts';
|
|
3
|
+
|
|
3
4
|
interface WCProps extends Margins {
|
|
4
5
|
ref?: React.MutableRefObject<HTMLElement | null>;
|
|
5
6
|
step?: number;
|
|
@@ -12,12 +13,11 @@ declare global {
|
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
|
-
export interface
|
|
16
|
+
export interface GoabFormStepperProps extends Margins {
|
|
16
17
|
step?: number;
|
|
17
18
|
testId?: string;
|
|
18
19
|
children?: ReactNode;
|
|
19
|
-
onChange?: (
|
|
20
|
+
onChange?: (detail: GoabFormStepperOnChangeDetail) => void;
|
|
20
21
|
}
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export default GoAFormStepper;
|
|
22
|
+
export declare function GoabFormStepper({ testId, step, mt, mb, ml, mr, onChange, children, }: GoabFormStepperProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default GoabFormStepper;
|
package/lib/grid/grid.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Margins, Spacing } from
|
|
1
|
+
import { Margins, Spacing } from '../../../../../dist/libs/common/index.d.ts';
|
|
2
|
+
|
|
2
3
|
interface WCProps extends Margins {
|
|
3
4
|
gap?: Spacing;
|
|
4
5
|
minchildwidth: string;
|
|
@@ -11,11 +12,11 @@ declare global {
|
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
|
-
export interface
|
|
15
|
+
export interface GoabGridProps extends Margins {
|
|
15
16
|
gap?: Spacing;
|
|
16
17
|
minChildWidth: string;
|
|
17
18
|
testId?: string;
|
|
18
19
|
children?: React.ReactNode;
|
|
19
20
|
}
|
|
20
|
-
export declare function
|
|
21
|
-
export default
|
|
21
|
+
export declare function GoabGrid({ gap, minChildWidth, mt, mr, mb, ml, testId, children, }: GoabGridProps): JSX.Element;
|
|
22
|
+
export default GoabGrid;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type GoabHeroBannerActionsType = {
|
|
2
3
|
children?: React.ReactNode;
|
|
3
4
|
};
|
|
4
|
-
export declare function
|
|
5
|
-
export default
|
|
5
|
+
export declare function GoabHeroBannerActions({ children, }: GoabHeroBannerActionsType): JSX.Element;
|
|
6
|
+
export default GoabHeroBannerActions;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
interface WCProps {
|
|
2
3
|
heading: string;
|
|
3
4
|
backgroundurl?: string;
|
|
@@ -14,7 +15,7 @@ declare global {
|
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
|
-
export interface
|
|
18
|
+
export interface GoabHeroBannerProps {
|
|
18
19
|
heading: string;
|
|
19
20
|
backgroundUrl?: string;
|
|
20
21
|
minHeight?: string;
|
|
@@ -24,5 +25,5 @@ export interface GoAHeroBannerProps {
|
|
|
24
25
|
backgroundColor?: string;
|
|
25
26
|
textColor?: string;
|
|
26
27
|
}
|
|
27
|
-
export declare function
|
|
28
|
-
export default
|
|
28
|
+
export declare function GoabHeroBanner({ heading, backgroundUrl, minHeight, maxContentWidth, backgroundColor, textColor, children, testId, }: GoabHeroBannerProps): JSX.Element;
|
|
29
|
+
export default GoabHeroBanner;
|
package/lib/icon/icon.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Margins } from
|
|
2
|
-
|
|
1
|
+
import { GoabIconFilledType, GoabIconSize, GoabIconTheme, GoabIconType, Margins } from '../../../../../dist/libs/common/index.d.ts';
|
|
2
|
+
|
|
3
3
|
interface IonIconProps {
|
|
4
|
-
name:
|
|
4
|
+
name: GoabIconType | GoabIconFilledType;
|
|
5
5
|
}
|
|
6
6
|
interface IonIconElement extends HTMLElement {
|
|
7
7
|
}
|
|
@@ -19,17 +19,10 @@ declare global {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
export type IconSize = GoAIconSize;
|
|
27
|
-
export type IconVariant = GoAIconVariant;
|
|
28
|
-
export type IconTheme = GoAIconTheme;
|
|
29
|
-
export interface GoAIconProps extends Margins {
|
|
30
|
-
type: GoAIconType;
|
|
31
|
-
size?: GoAIconSize;
|
|
32
|
-
theme?: GoAIconTheme;
|
|
22
|
+
export interface GoabIconProps extends Margins {
|
|
23
|
+
type: GoabIconType;
|
|
24
|
+
size?: GoabIconSize;
|
|
25
|
+
theme?: GoabIconTheme;
|
|
33
26
|
inverted?: string;
|
|
34
27
|
fillColor?: string;
|
|
35
28
|
opacity?: number;
|
|
@@ -38,9 +31,9 @@ export interface GoAIconProps extends Margins {
|
|
|
38
31
|
testId?: string;
|
|
39
32
|
}
|
|
40
33
|
interface WCProps extends Margins {
|
|
41
|
-
type:
|
|
42
|
-
theme?:
|
|
43
|
-
size?:
|
|
34
|
+
type: GoabIconType;
|
|
35
|
+
theme?: GoabIconTheme;
|
|
36
|
+
size?: GoabIconSize;
|
|
44
37
|
inverted?: string;
|
|
45
38
|
fillcolor?: string;
|
|
46
39
|
opacity?: number;
|
|
@@ -48,5 +41,5 @@ interface WCProps extends Margins {
|
|
|
48
41
|
arialabel?: string;
|
|
49
42
|
testid?: string;
|
|
50
43
|
}
|
|
51
|
-
export declare function
|
|
44
|
+
export declare function GoabIcon({ type, theme, size, inverted, fillColor, opacity, title, ariaLabel, mt, mr, mb, ml, testId, }: GoabIconProps): JSX.Element;
|
|
52
45
|
export {};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { Margins } from
|
|
2
|
-
|
|
3
|
-
export type GoAIconButtonVariant = "color" | "nocolor" | "light" | "dark" | "destructive";
|
|
4
|
-
export type IconButtonVariant = GoAIconButtonVariant;
|
|
1
|
+
import { GoabIconButtonVariant, GoabIconSize, GoabIconType, Margins } from '../../../../../dist/libs/common/index.d.ts';
|
|
2
|
+
|
|
5
3
|
interface WCProps extends Margins {
|
|
6
4
|
ref: React.RefObject<HTMLElement>;
|
|
7
|
-
icon:
|
|
8
|
-
size?:
|
|
9
|
-
variant?:
|
|
5
|
+
icon: GoabIconType;
|
|
6
|
+
size?: GoabIconSize;
|
|
7
|
+
variant?: GoabIconButtonVariant;
|
|
10
8
|
title?: string;
|
|
11
9
|
disabled?: boolean;
|
|
12
10
|
arialabel?: string;
|
|
@@ -19,10 +17,10 @@ declare global {
|
|
|
19
17
|
}
|
|
20
18
|
}
|
|
21
19
|
}
|
|
22
|
-
export interface
|
|
23
|
-
icon:
|
|
24
|
-
size?:
|
|
25
|
-
variant?:
|
|
20
|
+
export interface GoabIconButtonProps extends Margins {
|
|
21
|
+
icon: GoabIconType;
|
|
22
|
+
size?: GoabIconSize;
|
|
23
|
+
variant?: GoabIconButtonVariant;
|
|
26
24
|
title?: string;
|
|
27
25
|
disabled?: boolean;
|
|
28
26
|
children?: React.ReactNode;
|
|
@@ -30,5 +28,5 @@ export interface GoAIconButtonProps extends Margins {
|
|
|
30
28
|
testId?: string;
|
|
31
29
|
ariaLabel?: string;
|
|
32
30
|
}
|
|
33
|
-
export declare function
|
|
31
|
+
export declare function GoabIconButton({ icon, disabled, variant, onClick, size, title, ariaLabel, testId, children, mt, mr, mb, ml, }: GoabIconButtonProps): JSX.Element;
|
|
34
32
|
export {};
|