@abgov/react-components 6.10.0 → 6.11.0-dev.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/badge/badge.d.ts +33 -0
- package/experimental/button/button.d.ts +43 -0
- package/experimental/calendar/calendar.d.ts +30 -0
- package/experimental/callout/callout.d.ts +33 -0
- package/experimental/checkbox/checkbox.d.ts +52 -0
- package/experimental/date-picker/date-picker.d.ts +43 -0
- package/experimental/drawer/drawer.d.ts +31 -0
- package/experimental/dropdown/dropdown-item.d.ts +26 -0
- package/experimental/dropdown/dropdown.d.ts +62 -0
- package/experimental/file-upload-card/file-upload-card.d.ts +32 -0
- package/experimental/file-upload-input/file-upload-input.d.ts +27 -0
- package/experimental/filter-chip/filter-chip.d.ts +31 -0
- package/experimental/footer/footer.d.ts +24 -0
- package/experimental/footer-meta-section/footer-meta-section.d.ts +18 -0
- package/experimental/footer-nav-section/footer-nav-section.d.ts +22 -0
- package/experimental/form-item/form-item.d.ts +46 -0
- package/experimental/index.d.ts +30 -2
- package/experimental/input/input.d.ts +124 -0
- package/experimental/link/link.d.ts +32 -0
- package/experimental/modal/modal.d.ts +44 -0
- package/experimental/notification/notification.d.ts +31 -0
- package/experimental/pagination/pagination.d.ts +29 -0
- package/experimental/radio-group/radio-group.d.ts +40 -0
- package/experimental/radio-group/radio.d.ts +42 -0
- package/experimental/side-menu/side-menu.d.ts +19 -0
- package/experimental/side-menu-group/side-menu-group.d.ts +24 -0
- package/experimental/side-menu-heading/side-menu-heading.d.ts +23 -0
- package/experimental/table/table-sort-header.d.ts +20 -0
- package/experimental/table/table.d.ts +30 -0
- package/experimental/tabs/tabs.d.ts +27 -0
- package/experimental/textarea/textarea.d.ts +53 -0
- package/experimental/work-side-menu-group/work-side-menu-group.d.ts +22 -0
- package/experimental.js +1160 -64
- package/experimental.js.map +1 -1
- package/experimental.mjs +1163 -68
- package/experimental.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +176 -1753
- package/index.js.map +1 -1
- package/index.mjs +105 -1683
- package/index.mjs.map +1 -1
- package/lib/badge/badge.d.ts +0 -16
- package/lib/button/button.d.ts +0 -22
- package/lib/calendar/calendar.d.ts +0 -16
- package/lib/callout/callout.d.ts +0 -16
- package/lib/checkbox/checkbox.d.ts +0 -25
- package/lib/date-picker/date-picker.d.ts +0 -21
- package/lib/drawer/drawer.d.ts +0 -15
- package/lib/dropdown/dropdown-item.d.ts +0 -15
- package/lib/dropdown/dropdown.d.ts +0 -29
- package/lib/file-upload-card/file-upload-card.d.ts +0 -17
- package/lib/file-upload-input/file-upload-input.d.ts +0 -15
- package/lib/filter-chip/filter-chip.d.ts +0 -15
- package/lib/footer/footer.d.ts +0 -12
- package/lib/footer-meta-section/footer-meta-section.d.ts +0 -10
- package/lib/footer-nav-section/footer-nav-section.d.ts +0 -12
- package/lib/form-item/form-item.d.ts +0 -19
- package/lib/input/input.d.ts +0 -38
- package/lib/link/link.d.ts +0 -15
- package/lib/modal/modal.d.ts +1 -23
- package/lib/notification/notification.d.ts +0 -14
- package/lib/pagination/pagination.d.ts +0 -15
- package/lib/push-drawer/push-drawer.d.ts +26 -0
- package/lib/radio-group/radio-group.d.ts +0 -19
- package/lib/radio-group/radio.d.ts +0 -20
- package/lib/side-menu/side-menu.d.ts +0 -10
- package/lib/side-menu-group/side-menu-group.d.ts +0 -12
- package/lib/side-menu-heading/side-menu-heading.d.ts +0 -11
- package/lib/tab/tab.d.ts +3 -1
- package/lib/table/table-sort-header.d.ts +0 -11
- package/lib/table/table.d.ts +0 -14
- package/lib/tabs/tabs.d.ts +0 -14
- package/lib/textarea/textarea.d.ts +0 -25
- package/package.json +1 -1
- package/parseISO-BHUUf1QW.mjs +1693 -0
- package/parseISO-BHUUf1QW.mjs.map +1 -0
- package/parseISO-Dj57mwuH.js +1692 -0
- package/parseISO-Dj57mwuH.js.map +1 -0
- package/experimental/form/form-summary.d.ts +0 -10
- package/experimental/form/form.d.ts +0 -23
- package/experimental/resizable-panel/ResizablePanel.d.ts +0 -7
- package/icon-B3p90m2x.js +0 -75
- package/icon-B3p90m2x.js.map +0 -1
- package/icon-CCNDGfBO.mjs +0 -76
- package/icon-CCNDGfBO.mjs.map +0 -1
- package/style.css +0 -49
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DataAttributes, GoabBadgeEmphasis, GoabBadgeSize, GoabBadgeType, GoabxBadgeType, GoabIconType, Margins } from '@abgov/ui-components-common';
|
|
2
|
+
import { JSX } from 'react';
|
|
3
|
+
interface WCProps extends Margins {
|
|
4
|
+
type: GoabBadgeType;
|
|
5
|
+
icon?: string;
|
|
6
|
+
content?: string;
|
|
7
|
+
arialabel?: string;
|
|
8
|
+
testid?: string;
|
|
9
|
+
icontype?: GoabIconType;
|
|
10
|
+
size?: GoabBadgeSize;
|
|
11
|
+
emphasis?: GoabBadgeEmphasis;
|
|
12
|
+
version?: string;
|
|
13
|
+
}
|
|
14
|
+
declare module "react" {
|
|
15
|
+
namespace JSX {
|
|
16
|
+
interface IntrinsicElements {
|
|
17
|
+
"goa-badge": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export interface GoabxBadgeProps extends Margins, DataAttributes {
|
|
22
|
+
type: GoabxBadgeType;
|
|
23
|
+
icon?: boolean;
|
|
24
|
+
content?: string;
|
|
25
|
+
testId?: string;
|
|
26
|
+
ariaLabel?: string;
|
|
27
|
+
iconType?: GoabIconType;
|
|
28
|
+
size?: GoabBadgeSize;
|
|
29
|
+
emphasis?: GoabBadgeEmphasis;
|
|
30
|
+
version?: string;
|
|
31
|
+
}
|
|
32
|
+
export declare function GoabxBadge({ icon, iconType, size, emphasis, version, ...rest }: GoabxBadgeProps): JSX.Element;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ReactNode, JSX } from 'react';
|
|
2
|
+
import { GoabButtonSize, GoabButtonType, GoabButtonVariant, GoabIconType, Margins, DataAttributes } from '@abgov/ui-components-common';
|
|
3
|
+
interface WCProps extends Margins {
|
|
4
|
+
type?: GoabButtonType;
|
|
5
|
+
size?: GoabButtonSize;
|
|
6
|
+
variant?: GoabButtonVariant;
|
|
7
|
+
disabled?: string;
|
|
8
|
+
leadingicon?: string;
|
|
9
|
+
trailingicon?: string;
|
|
10
|
+
width?: string;
|
|
11
|
+
testid?: string;
|
|
12
|
+
action?: string;
|
|
13
|
+
actionArgs?: string;
|
|
14
|
+
actionArg?: string;
|
|
15
|
+
version?: string;
|
|
16
|
+
}
|
|
17
|
+
declare module "react" {
|
|
18
|
+
namespace JSX {
|
|
19
|
+
interface IntrinsicElements {
|
|
20
|
+
"goa-button": WCProps & React.HTMLAttributes<HTMLElement> & {
|
|
21
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export interface GoabxButtonProps extends Margins, DataAttributes {
|
|
27
|
+
type?: GoabButtonType;
|
|
28
|
+
size?: GoabButtonSize;
|
|
29
|
+
variant?: GoabButtonVariant;
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
leadingIcon?: GoabIconType;
|
|
32
|
+
trailingIcon?: GoabIconType;
|
|
33
|
+
width?: string;
|
|
34
|
+
onClick?: () => void;
|
|
35
|
+
testId?: string;
|
|
36
|
+
action?: string;
|
|
37
|
+
actionArgs?: Record<string, unknown>;
|
|
38
|
+
actionArg?: string;
|
|
39
|
+
version?: string;
|
|
40
|
+
children?: ReactNode;
|
|
41
|
+
}
|
|
42
|
+
export declare function GoabxButton({ disabled, onClick, actionArgs, actionArg, children, version, ...rest }: GoabxButtonProps): JSX.Element;
|
|
43
|
+
export default GoabxButton;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import { DataAttributes, GoabCalendarOnChangeDetail, Margins } from '@abgov/ui-components-common';
|
|
3
|
+
interface WCProps extends Margins {
|
|
4
|
+
name?: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
min?: string;
|
|
7
|
+
max?: string;
|
|
8
|
+
testid?: string;
|
|
9
|
+
version?: string;
|
|
10
|
+
}
|
|
11
|
+
declare module "react" {
|
|
12
|
+
namespace JSX {
|
|
13
|
+
interface IntrinsicElements {
|
|
14
|
+
"goa-calendar": WCProps & React.HTMLAttributes<HTMLElement> & {
|
|
15
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export interface GoabxCalendarProps extends Margins, DataAttributes {
|
|
21
|
+
name?: string;
|
|
22
|
+
value?: string;
|
|
23
|
+
min?: string;
|
|
24
|
+
max?: string;
|
|
25
|
+
testId?: string;
|
|
26
|
+
version?: string;
|
|
27
|
+
onChange: (details: GoabCalendarOnChangeDetail) => void;
|
|
28
|
+
}
|
|
29
|
+
export declare function GoabxCalendar({ min, max, onChange, name, version, ...rest }: GoabxCalendarProps): JSX.Element;
|
|
30
|
+
export default GoabxCalendar;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { GoabCalloutAriaLive, GoabCalloutEmphasis, GoabCalloutSize, GoabCalloutType, GoabCalloutIconTheme, Margins, DataAttributes } from '@abgov/ui-components-common';
|
|
2
|
+
interface WCProps extends Margins {
|
|
3
|
+
heading?: string;
|
|
4
|
+
type?: GoabCalloutType;
|
|
5
|
+
size?: GoabCalloutSize;
|
|
6
|
+
arialive?: GoabCalloutAriaLive;
|
|
7
|
+
maxwidth?: string;
|
|
8
|
+
icontheme?: GoabCalloutIconTheme;
|
|
9
|
+
emphasis?: GoabCalloutEmphasis;
|
|
10
|
+
testid?: string;
|
|
11
|
+
version?: string;
|
|
12
|
+
}
|
|
13
|
+
declare module "react" {
|
|
14
|
+
namespace JSX {
|
|
15
|
+
interface IntrinsicElements {
|
|
16
|
+
"goa-callout": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export interface GoabxCalloutProps extends Margins, DataAttributes {
|
|
21
|
+
heading?: string;
|
|
22
|
+
type?: GoabCalloutType;
|
|
23
|
+
size?: GoabCalloutSize;
|
|
24
|
+
iconTheme?: GoabCalloutIconTheme;
|
|
25
|
+
emphasis?: GoabCalloutEmphasis;
|
|
26
|
+
maxWidth?: string;
|
|
27
|
+
testId?: string;
|
|
28
|
+
ariaLive?: GoabCalloutAriaLive;
|
|
29
|
+
version?: string;
|
|
30
|
+
children?: React.ReactNode;
|
|
31
|
+
}
|
|
32
|
+
export declare const GoabxCallout: ({ type, iconTheme, size, ariaLive, emphasis, children, version, ...rest }: GoabxCalloutProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export default GoabxCallout;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { DataAttributes, GoabCheckboxOnChangeDetail, GoabCheckboxSize, Margins } from '@abgov/ui-components-common';
|
|
2
|
+
import { JSX } from 'react';
|
|
3
|
+
declare module "react" {
|
|
4
|
+
namespace JSX {
|
|
5
|
+
interface IntrinsicElements {
|
|
6
|
+
"goa-checkbox": WCProps & React.HTMLAttributes<HTMLElement> & {
|
|
7
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
interface WCProps extends Margins {
|
|
13
|
+
id?: string;
|
|
14
|
+
name: string;
|
|
15
|
+
checked?: string;
|
|
16
|
+
indeterminate?: string;
|
|
17
|
+
disabled?: string;
|
|
18
|
+
error?: string;
|
|
19
|
+
text?: string;
|
|
20
|
+
value?: string | number;
|
|
21
|
+
arialabel?: string;
|
|
22
|
+
description?: string | React.ReactNode;
|
|
23
|
+
reveal?: React.ReactNode;
|
|
24
|
+
revealarialabel?: string;
|
|
25
|
+
maxwidth?: string;
|
|
26
|
+
testid?: string;
|
|
27
|
+
size?: GoabCheckboxSize;
|
|
28
|
+
version?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface GoabxCheckboxProps extends Margins, DataAttributes {
|
|
31
|
+
id?: string;
|
|
32
|
+
name: string;
|
|
33
|
+
checked?: boolean;
|
|
34
|
+
indeterminate?: boolean;
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
error?: boolean;
|
|
37
|
+
text?: string;
|
|
38
|
+
value?: string | number | boolean;
|
|
39
|
+
children?: React.ReactNode;
|
|
40
|
+
testId?: string;
|
|
41
|
+
ariaLabel?: string;
|
|
42
|
+
description?: string | React.ReactNode;
|
|
43
|
+
reveal?: React.ReactNode;
|
|
44
|
+
revealAriaLabel?: string;
|
|
45
|
+
maxWidth?: string;
|
|
46
|
+
size?: GoabCheckboxSize;
|
|
47
|
+
version?: string;
|
|
48
|
+
onChange?: (detail: GoabCheckboxOnChangeDetail) => void;
|
|
49
|
+
}
|
|
50
|
+
export type Props = GoabxCheckboxProps;
|
|
51
|
+
export declare function GoabxCheckbox({ error, checked, indeterminate, disabled, value, description, reveal, onChange, name, children, size, version, ...rest }: GoabxCheckboxProps): JSX.Element;
|
|
52
|
+
export default GoabxCheckbox;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import { GoabDatePickerInputType, GoabDatePickerOnChangeDetail, Margins, DataAttributes } from '@abgov/ui-components-common';
|
|
3
|
+
interface WCProps extends Margins {
|
|
4
|
+
name?: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
min?: string;
|
|
8
|
+
max?: string;
|
|
9
|
+
type?: string;
|
|
10
|
+
relative?: string;
|
|
11
|
+
disabled?: string;
|
|
12
|
+
testid?: string;
|
|
13
|
+
width?: string;
|
|
14
|
+
version?: string;
|
|
15
|
+
}
|
|
16
|
+
declare module "react" {
|
|
17
|
+
namespace JSX {
|
|
18
|
+
interface IntrinsicElements {
|
|
19
|
+
"goa-date-picker": WCProps & React.HTMLAttributes<HTMLElement> & {
|
|
20
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export interface GoabxDatePickerProps extends Margins, DataAttributes {
|
|
26
|
+
name?: string;
|
|
27
|
+
value?: Date | string | undefined;
|
|
28
|
+
error?: boolean;
|
|
29
|
+
min?: Date | string;
|
|
30
|
+
max?: Date | string;
|
|
31
|
+
type?: GoabDatePickerInputType;
|
|
32
|
+
testId?: string;
|
|
33
|
+
/***
|
|
34
|
+
* @deprecated This property has no effect and will be removed in a future version
|
|
35
|
+
*/
|
|
36
|
+
relative?: boolean;
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
width?: string;
|
|
39
|
+
version?: string;
|
|
40
|
+
onChange?: (detail: GoabDatePickerOnChangeDetail) => void;
|
|
41
|
+
}
|
|
42
|
+
export declare function GoabxDatePicker({ value, error, min, max, disabled, relative, version, onChange, ...rest }: GoabxDatePickerProps): JSX.Element;
|
|
43
|
+
export default GoabxDatePicker;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ReactNode, JSX } from 'react';
|
|
2
|
+
import { GoabDrawerPosition, GoabDrawerSize } from '@abgov/ui-components-common';
|
|
3
|
+
interface WCProps {
|
|
4
|
+
position: GoabDrawerPosition;
|
|
5
|
+
open?: boolean;
|
|
6
|
+
heading?: string;
|
|
7
|
+
maxsize?: GoabDrawerSize;
|
|
8
|
+
testid?: string;
|
|
9
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
10
|
+
version?: string;
|
|
11
|
+
}
|
|
12
|
+
declare module "react" {
|
|
13
|
+
namespace JSX {
|
|
14
|
+
interface IntrinsicElements {
|
|
15
|
+
"goa-drawer": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export interface GoabxDrawerProps {
|
|
20
|
+
position: GoabDrawerPosition;
|
|
21
|
+
open?: boolean;
|
|
22
|
+
heading?: string | ReactNode;
|
|
23
|
+
maxSize?: GoabDrawerSize;
|
|
24
|
+
testId?: string;
|
|
25
|
+
actions?: ReactNode;
|
|
26
|
+
children: ReactNode;
|
|
27
|
+
onClose: () => void;
|
|
28
|
+
version?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare function GoabxDrawer({ position, open, heading, maxSize, testId, actions, children, onClose, version, }: GoabxDrawerProps): JSX.Element;
|
|
31
|
+
export default GoabxDrawer;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { GoabDropdownItemMountType } from '@abgov/ui-components-common';
|
|
2
|
+
interface WCProps {
|
|
3
|
+
value: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
filter?: string;
|
|
6
|
+
mount?: GoabDropdownItemMountType;
|
|
7
|
+
name?: string;
|
|
8
|
+
}
|
|
9
|
+
declare module "react" {
|
|
10
|
+
namespace JSX {
|
|
11
|
+
interface IntrinsicElements {
|
|
12
|
+
"goa-dropdown-item": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export interface GoabxDropdownItemProps {
|
|
17
|
+
value: string;
|
|
18
|
+
label?: string;
|
|
19
|
+
filter?: string;
|
|
20
|
+
testId?: string;
|
|
21
|
+
mountType?: GoabDropdownItemMountType;
|
|
22
|
+
name?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare function GoabxDropdownOption(props: GoabxDropdownItemProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare function GoabxDropdownItem({ value, label, filter, name, mountType, }: GoabxDropdownItemProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { GoabDropdownOnChangeDetail, GoabDropdownSize, GoabIconType, Margins, DataAttributes } from '@abgov/ui-components-common';
|
|
2
|
+
import { JSX } from 'react';
|
|
3
|
+
interface WCProps extends Margins {
|
|
4
|
+
arialabel?: string;
|
|
5
|
+
arialabelledby?: string;
|
|
6
|
+
disabled?: string;
|
|
7
|
+
error?: string;
|
|
8
|
+
filterable?: string;
|
|
9
|
+
leadingicon?: string;
|
|
10
|
+
maxheight?: string;
|
|
11
|
+
multiselect?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
native?: string;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
value?: string;
|
|
16
|
+
width?: string;
|
|
17
|
+
maxwidth?: string;
|
|
18
|
+
relative?: string;
|
|
19
|
+
id?: string;
|
|
20
|
+
autocomplete?: string;
|
|
21
|
+
testid?: string;
|
|
22
|
+
size?: GoabDropdownSize;
|
|
23
|
+
version?: string;
|
|
24
|
+
}
|
|
25
|
+
declare module "react" {
|
|
26
|
+
namespace JSX {
|
|
27
|
+
interface IntrinsicElements {
|
|
28
|
+
"goa-dropdown": WCProps & React.HTMLAttributes<HTMLElement> & {
|
|
29
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export interface GoabxDropdownProps extends Margins, DataAttributes {
|
|
35
|
+
name?: string;
|
|
36
|
+
value?: string[] | string;
|
|
37
|
+
onChange?: (detail: GoabDropdownOnChangeDetail) => void;
|
|
38
|
+
ariaLabel?: string;
|
|
39
|
+
ariaLabelledBy?: string;
|
|
40
|
+
id?: string;
|
|
41
|
+
children?: React.ReactNode;
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
error?: boolean;
|
|
44
|
+
filterable?: boolean;
|
|
45
|
+
leadingIcon?: GoabIconType;
|
|
46
|
+
maxHeight?: string;
|
|
47
|
+
multiselect?: boolean;
|
|
48
|
+
native?: boolean;
|
|
49
|
+
placeholder?: string;
|
|
50
|
+
testId?: string;
|
|
51
|
+
width?: string;
|
|
52
|
+
maxWidth?: string;
|
|
53
|
+
autoComplete?: string;
|
|
54
|
+
size?: GoabDropdownSize;
|
|
55
|
+
version?: string;
|
|
56
|
+
/***
|
|
57
|
+
* @deprecated This property has no effect and will be removed in a future version
|
|
58
|
+
*/
|
|
59
|
+
relative?: boolean;
|
|
60
|
+
}
|
|
61
|
+
export declare function GoabxDropdown({ value, onChange, disabled, error, filterable, multiselect, native, relative, children, size, version, ...rest }: GoabxDropdownProps): JSX.Element;
|
|
62
|
+
export default GoabxDropdown;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DataAttributes, GoabFileUploadOnCancelDetail, GoabFileUploadOnDeleteDetail } from '@abgov/ui-components-common';
|
|
2
|
+
interface WCProps {
|
|
3
|
+
filename: string;
|
|
4
|
+
size: number;
|
|
5
|
+
type?: string;
|
|
6
|
+
progress?: number;
|
|
7
|
+
error?: string;
|
|
8
|
+
testid?: string;
|
|
9
|
+
version?: string;
|
|
10
|
+
}
|
|
11
|
+
declare module "react" {
|
|
12
|
+
namespace JSX {
|
|
13
|
+
interface IntrinsicElements {
|
|
14
|
+
"goa-file-upload-card": WCProps & React.HTMLAttributes<HTMLElement> & {
|
|
15
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export interface GoabxFileUploadCardProps extends DataAttributes {
|
|
21
|
+
filename: string;
|
|
22
|
+
size: number;
|
|
23
|
+
type?: string;
|
|
24
|
+
progress?: number;
|
|
25
|
+
testId?: string;
|
|
26
|
+
error?: string;
|
|
27
|
+
onDelete?: (detail: GoabFileUploadOnDeleteDetail) => void;
|
|
28
|
+
onCancel?: (detail: GoabFileUploadOnCancelDetail) => void;
|
|
29
|
+
version?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function GoabxFileUploadCard({ onDelete, onCancel, filename, version, ...rest }: GoabxFileUploadCardProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export default GoabxFileUploadCard;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DataAttributes, GoabFileUploadInputOnSelectFileDetail, GoabFileUploadInputVariant } from '@abgov/ui-components-common';
|
|
2
|
+
interface WCProps {
|
|
3
|
+
variant?: GoabFileUploadInputVariant;
|
|
4
|
+
accept?: string;
|
|
5
|
+
maxfilesize?: string;
|
|
6
|
+
testid?: string;
|
|
7
|
+
version?: string;
|
|
8
|
+
}
|
|
9
|
+
declare module "react" {
|
|
10
|
+
namespace JSX {
|
|
11
|
+
interface IntrinsicElements {
|
|
12
|
+
"goa-file-upload-input": WCProps & React.HTMLAttributes<HTMLElement> & {
|
|
13
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export interface GoabxFileUploadInputProps extends DataAttributes {
|
|
19
|
+
variant?: GoabFileUploadInputVariant;
|
|
20
|
+
accept?: string;
|
|
21
|
+
maxFileSize?: string;
|
|
22
|
+
testId?: string;
|
|
23
|
+
onSelectFile: (detail: GoabFileUploadInputOnSelectFileDetail) => void;
|
|
24
|
+
version?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare function GoabxFileUploadInput({ onSelectFile, version, ...rest }: GoabxFileUploadInputProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export default GoabxFileUploadInput;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DataAttributes, GoabFilterChipTheme, GoabIconType, Margins } from '@abgov/ui-components-common';
|
|
2
|
+
interface WCProps extends Margins {
|
|
3
|
+
icontheme: GoabFilterChipTheme;
|
|
4
|
+
error?: string;
|
|
5
|
+
content: string;
|
|
6
|
+
secondarytext?: string;
|
|
7
|
+
leadingicon?: GoabIconType;
|
|
8
|
+
testid?: string;
|
|
9
|
+
version?: string;
|
|
10
|
+
}
|
|
11
|
+
declare module "react" {
|
|
12
|
+
namespace JSX {
|
|
13
|
+
interface IntrinsicElements {
|
|
14
|
+
"goa-filter-chip": WCProps & React.HTMLAttributes<HTMLElement> & {
|
|
15
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export interface GoabxFilterChipProps extends Margins, DataAttributes {
|
|
21
|
+
onClick?: () => void;
|
|
22
|
+
iconTheme?: GoabFilterChipTheme;
|
|
23
|
+
error?: boolean;
|
|
24
|
+
content: string;
|
|
25
|
+
secondaryText?: string;
|
|
26
|
+
leadingIcon?: GoabIconType;
|
|
27
|
+
testId?: string;
|
|
28
|
+
version?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const GoabxFilterChip: ({ iconTheme, error, onClick, version, ...rest }: GoabxFilterChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export default GoabxFilterChip;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReactNode, JSX } from 'react';
|
|
2
|
+
import { DataAttributes } from '@abgov/ui-components-common';
|
|
3
|
+
interface WCProps {
|
|
4
|
+
maxcontentwidth?: string;
|
|
5
|
+
testid?: string;
|
|
6
|
+
url?: string;
|
|
7
|
+
version?: string;
|
|
8
|
+
}
|
|
9
|
+
declare module "react" {
|
|
10
|
+
namespace JSX {
|
|
11
|
+
interface IntrinsicElements {
|
|
12
|
+
"goa-app-footer": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export interface GoabxAppFooterProps extends DataAttributes {
|
|
17
|
+
maxContentWidth?: string;
|
|
18
|
+
children?: ReactNode;
|
|
19
|
+
testId?: string;
|
|
20
|
+
url?: string;
|
|
21
|
+
version?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare function GoabxAppFooter({ children, ...rest }: GoabxAppFooterProps): JSX.Element;
|
|
24
|
+
export default GoabxAppFooter;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DataAttributes } from '@abgov/ui-components-common';
|
|
3
|
+
interface WCProps {
|
|
4
|
+
testid?: string;
|
|
5
|
+
}
|
|
6
|
+
declare module "react" {
|
|
7
|
+
namespace JSX {
|
|
8
|
+
interface IntrinsicElements {
|
|
9
|
+
"goa-app-footer-meta-section": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export interface GoabxAppFooterMetaSectionProps extends DataAttributes {
|
|
14
|
+
testId?: string;
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare function GoabxAppFooterMetaSection({ children, ...rest }: GoabxAppFooterMetaSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default GoabxAppFooterMetaSection;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DataAttributes } from '@abgov/ui-components-common';
|
|
3
|
+
interface WCProps {
|
|
4
|
+
maxcolumncount?: number;
|
|
5
|
+
heading?: string;
|
|
6
|
+
testid?: string;
|
|
7
|
+
}
|
|
8
|
+
declare module "react" {
|
|
9
|
+
namespace JSX {
|
|
10
|
+
interface IntrinsicElements {
|
|
11
|
+
"goa-app-footer-nav-section": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export interface GoabxFooterNavSectionProps extends DataAttributes {
|
|
16
|
+
maxColumnCount?: number;
|
|
17
|
+
heading?: string;
|
|
18
|
+
testId?: string;
|
|
19
|
+
children?: ReactNode;
|
|
20
|
+
}
|
|
21
|
+
export declare function GoabxAppFooterNavSection({ children, ...rest }: GoabxFooterNavSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export default GoabxAppFooterNavSection;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { GoabFormItemLabelSize, GoabFormItemRequirement, GoabFormItemType, Margins, DataAttributes } from '@abgov/ui-components-common';
|
|
2
|
+
import { JSX } from 'react';
|
|
3
|
+
interface WCProps extends Margins {
|
|
4
|
+
label?: string;
|
|
5
|
+
labelsize?: GoabFormItemLabelSize;
|
|
6
|
+
requirement?: GoabFormItemRequirement;
|
|
7
|
+
error?: string;
|
|
8
|
+
helptext?: string;
|
|
9
|
+
maxwidth?: string;
|
|
10
|
+
"public-form-summary-order"?: number;
|
|
11
|
+
name?: string;
|
|
12
|
+
id?: string;
|
|
13
|
+
testid?: string;
|
|
14
|
+
type?: GoabFormItemType;
|
|
15
|
+
version?: string;
|
|
16
|
+
}
|
|
17
|
+
declare module "react" {
|
|
18
|
+
namespace JSX {
|
|
19
|
+
interface IntrinsicElements {
|
|
20
|
+
"goa-form-item": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export interface GoabxFormItemProps extends Margins, DataAttributes {
|
|
25
|
+
label?: string;
|
|
26
|
+
labelSize?: GoabFormItemLabelSize;
|
|
27
|
+
requirement?: GoabFormItemRequirement;
|
|
28
|
+
error?: string | React.ReactNode;
|
|
29
|
+
helpText?: string | React.ReactNode;
|
|
30
|
+
maxWidth?: string;
|
|
31
|
+
type?: GoabFormItemType;
|
|
32
|
+
version?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Public form: to arrange fields in the summary
|
|
35
|
+
*/
|
|
36
|
+
publicFormSummaryOrder?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Public form: allow to override the label value within the form-summary to provide a shorter description of the value
|
|
39
|
+
*/
|
|
40
|
+
name?: string;
|
|
41
|
+
children?: React.ReactNode;
|
|
42
|
+
testId?: string;
|
|
43
|
+
id?: string;
|
|
44
|
+
}
|
|
45
|
+
export declare function GoabxFormItem({ error, helpText, publicFormSummaryOrder, children, type, version, ...rest }: GoabxFormItemProps): JSX.Element;
|
|
46
|
+
export default GoabxFormItem;
|
package/experimental/index.d.ts
CHANGED
|
@@ -1,4 +1,32 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from '
|
|
1
|
+
export * from './badge/badge';
|
|
2
|
+
export * from './button/button';
|
|
3
|
+
export * from './calendar/calendar';
|
|
4
|
+
export * from './callout/callout';
|
|
5
|
+
export * from './checkbox/checkbox';
|
|
6
|
+
export * from './date-picker/date-picker';
|
|
7
|
+
export * from './drawer/drawer';
|
|
8
|
+
export * from './dropdown/dropdown';
|
|
9
|
+
export * from './dropdown/dropdown-item';
|
|
10
|
+
export * from './file-upload-card/file-upload-card';
|
|
11
|
+
export * from './file-upload-input/file-upload-input';
|
|
12
|
+
export * from './filter-chip/filter-chip';
|
|
13
|
+
export * from './form-item/form-item';
|
|
14
|
+
export * from './footer/footer';
|
|
15
|
+
export * from './footer-meta-section/footer-meta-section';
|
|
16
|
+
export * from './footer-nav-section/footer-nav-section';
|
|
17
|
+
export * from './input/input';
|
|
18
|
+
export * from './link/link';
|
|
19
|
+
export * from './modal/modal';
|
|
20
|
+
export * from './notification/notification';
|
|
21
|
+
export * from './pagination/pagination';
|
|
22
|
+
export * from './radio-group/radio-group';
|
|
23
|
+
export * from './side-menu/side-menu';
|
|
24
|
+
export * from './side-menu-group/side-menu-group';
|
|
25
|
+
export * from './side-menu-heading/side-menu-heading';
|
|
26
|
+
export * from './table/table';
|
|
27
|
+
export * from './table/table-sort-header';
|
|
28
|
+
export * from './tabs/tabs';
|
|
29
|
+
export * from './textarea/textarea';
|
|
3
30
|
export * from './work-side-menu/work-side-menu';
|
|
4
31
|
export * from './work-side-menu-item/work-side-menu-item';
|
|
32
|
+
export * from './work-side-menu-group/work-side-menu-group';
|