@abgov/react-components 6.10.0 → 6.11.0-dev.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.
Files changed (84) hide show
  1. package/experimental/badge/badge.d.ts +33 -0
  2. package/experimental/button/button.d.ts +43 -0
  3. package/experimental/calendar/calendar.d.ts +30 -0
  4. package/experimental/callout/callout.d.ts +33 -0
  5. package/experimental/checkbox/checkbox.d.ts +52 -0
  6. package/experimental/date-picker/date-picker.d.ts +43 -0
  7. package/experimental/drawer/drawer.d.ts +31 -0
  8. package/experimental/dropdown/dropdown-item.d.ts +26 -0
  9. package/experimental/dropdown/dropdown.d.ts +62 -0
  10. package/experimental/file-upload-card/file-upload-card.d.ts +32 -0
  11. package/experimental/file-upload-input/file-upload-input.d.ts +27 -0
  12. package/experimental/filter-chip/filter-chip.d.ts +31 -0
  13. package/experimental/footer/footer.d.ts +24 -0
  14. package/experimental/footer-meta-section/footer-meta-section.d.ts +18 -0
  15. package/experimental/footer-nav-section/footer-nav-section.d.ts +22 -0
  16. package/experimental/form-item/form-item.d.ts +46 -0
  17. package/experimental/index.d.ts +30 -2
  18. package/experimental/input/input.d.ts +124 -0
  19. package/experimental/link/link.d.ts +32 -0
  20. package/experimental/modal/modal.d.ts +44 -0
  21. package/experimental/notification/notification.d.ts +31 -0
  22. package/experimental/pagination/pagination.d.ts +29 -0
  23. package/experimental/radio-group/radio-group.d.ts +40 -0
  24. package/experimental/radio-group/radio.d.ts +42 -0
  25. package/experimental/side-menu/side-menu.d.ts +19 -0
  26. package/experimental/side-menu-group/side-menu-group.d.ts +24 -0
  27. package/experimental/side-menu-heading/side-menu-heading.d.ts +23 -0
  28. package/experimental/table/table-sort-header.d.ts +20 -0
  29. package/experimental/table/table.d.ts +30 -0
  30. package/experimental/tabs/tabs.d.ts +27 -0
  31. package/experimental/textarea/textarea.d.ts +53 -0
  32. package/experimental/work-side-menu-group/work-side-menu-group.d.ts +22 -0
  33. package/experimental.js +1160 -64
  34. package/experimental.js.map +1 -1
  35. package/experimental.mjs +1163 -68
  36. package/experimental.mjs.map +1 -1
  37. package/index.js +139 -1753
  38. package/index.js.map +1 -1
  39. package/index.mjs +68 -1683
  40. package/index.mjs.map +1 -1
  41. package/lib/badge/badge.d.ts +0 -16
  42. package/lib/button/button.d.ts +0 -22
  43. package/lib/calendar/calendar.d.ts +0 -16
  44. package/lib/callout/callout.d.ts +0 -16
  45. package/lib/checkbox/checkbox.d.ts +0 -25
  46. package/lib/date-picker/date-picker.d.ts +0 -21
  47. package/lib/drawer/drawer.d.ts +0 -15
  48. package/lib/dropdown/dropdown-item.d.ts +0 -15
  49. package/lib/dropdown/dropdown.d.ts +0 -29
  50. package/lib/file-upload-card/file-upload-card.d.ts +0 -17
  51. package/lib/file-upload-input/file-upload-input.d.ts +0 -15
  52. package/lib/filter-chip/filter-chip.d.ts +0 -15
  53. package/lib/footer/footer.d.ts +0 -12
  54. package/lib/footer-meta-section/footer-meta-section.d.ts +0 -10
  55. package/lib/footer-nav-section/footer-nav-section.d.ts +0 -12
  56. package/lib/form-item/form-item.d.ts +0 -19
  57. package/lib/input/input.d.ts +0 -38
  58. package/lib/link/link.d.ts +0 -15
  59. package/lib/modal/modal.d.ts +1 -23
  60. package/lib/notification/notification.d.ts +0 -14
  61. package/lib/pagination/pagination.d.ts +0 -15
  62. package/lib/radio-group/radio-group.d.ts +0 -19
  63. package/lib/radio-group/radio.d.ts +0 -20
  64. package/lib/side-menu/side-menu.d.ts +0 -10
  65. package/lib/side-menu-group/side-menu-group.d.ts +0 -12
  66. package/lib/side-menu-heading/side-menu-heading.d.ts +0 -11
  67. package/lib/tab/tab.d.ts +3 -1
  68. package/lib/table/table-sort-header.d.ts +0 -11
  69. package/lib/table/table.d.ts +0 -14
  70. package/lib/tabs/tabs.d.ts +0 -14
  71. package/lib/textarea/textarea.d.ts +0 -25
  72. package/package.json +1 -1
  73. package/parseISO-BHUUf1QW.mjs +1693 -0
  74. package/parseISO-BHUUf1QW.mjs.map +1 -0
  75. package/parseISO-Dj57mwuH.js +1692 -0
  76. package/parseISO-Dj57mwuH.js.map +1 -0
  77. package/experimental/form/form-summary.d.ts +0 -10
  78. package/experimental/form/form.d.ts +0 -23
  79. package/experimental/resizable-panel/ResizablePanel.d.ts +0 -7
  80. package/icon-B3p90m2x.js +0 -75
  81. package/icon-B3p90m2x.js.map +0 -1
  82. package/icon-CCNDGfBO.mjs +0 -76
  83. package/icon-CCNDGfBO.mjs.map +0 -1
  84. package/style.css +0 -49
@@ -0,0 +1,124 @@
1
+ import { JSX } from 'react';
2
+ import { GoabAutoCapitalize, GoabDate, GoabIconType, GoabInputOnBlurDetail, GoabInputOnChangeDetail, GoabInputOnFocusDetail, GoabInputOnKeyPressDetail, GoabInputSize, GoabInputType, Margins, DataAttributes } from '@abgov/ui-components-common';
3
+ export interface IgnoreMe {
4
+ ignore: string;
5
+ }
6
+ interface WCProps extends Margins {
7
+ type?: GoabInputType;
8
+ name: string;
9
+ value?: string;
10
+ id?: string;
11
+ autocapitalize?: GoabAutoCapitalize;
12
+ autocomplete?: string;
13
+ debounce?: number;
14
+ placeholder?: string;
15
+ leadingicon?: string;
16
+ trailingicon?: string;
17
+ variant: string;
18
+ disabled?: string;
19
+ error?: string;
20
+ readonly?: string;
21
+ focused?: string;
22
+ handletrailingiconclick: string;
23
+ width?: string;
24
+ prefix?: string;
25
+ suffix?: string;
26
+ arialabel?: string;
27
+ testid?: string;
28
+ textalign?: string;
29
+ size?: GoabInputSize;
30
+ min?: string | number;
31
+ max?: string | number;
32
+ step?: number;
33
+ maxlength?: number;
34
+ trailingiconarialabel?: string;
35
+ version?: string;
36
+ }
37
+ declare module "react" {
38
+ namespace JSX {
39
+ interface IntrinsicElements {
40
+ "goa-input": WCProps & React.HTMLAttributes<HTMLInputElement> & {
41
+ ref?: React.RefObject<HTMLInputElement | null>;
42
+ };
43
+ }
44
+ }
45
+ }
46
+ interface BaseProps extends Margins, DataAttributes {
47
+ name: string;
48
+ id?: string;
49
+ debounce?: number;
50
+ disabled?: boolean;
51
+ autoCapitalize?: GoabAutoCapitalize;
52
+ autoComplete?: string;
53
+ placeholder?: string;
54
+ leadingIcon?: GoabIconType;
55
+ trailingIcon?: GoabIconType;
56
+ onTrailingIconClick?: () => void;
57
+ variant?: "goa" | "bare";
58
+ focused?: boolean;
59
+ readonly?: boolean;
60
+ error?: boolean;
61
+ width?: string;
62
+ prefix?: string;
63
+ suffix?: string;
64
+ testId?: string;
65
+ ariaLabel?: string;
66
+ leadingContent?: React.ReactNode;
67
+ trailingContent?: React.ReactNode;
68
+ maxLength?: number;
69
+ trailingIconAriaLabel?: string;
70
+ textAlign?: "left" | "right";
71
+ size?: GoabInputSize;
72
+ version?: string;
73
+ }
74
+ type OnChange<T = string> = (detail: GoabInputOnChangeDetail<T>) => void;
75
+ type OnFocus<T = string> = (detail: GoabInputOnFocusDetail<T>) => void;
76
+ type OnBlur<T = string> = (detail: GoabInputOnBlurDetail<T>) => void;
77
+ type OnKeyPress<T = string> = (detail: GoabInputOnKeyPressDetail<T>) => void;
78
+ export interface GoabxInputProps extends BaseProps {
79
+ onChange?: OnChange<string>;
80
+ value?: string;
81
+ min?: number | string;
82
+ max?: number | string;
83
+ step?: number;
84
+ onFocus?: OnFocus<string>;
85
+ onBlur?: OnBlur<string>;
86
+ onKeyPress?: OnKeyPress<string>;
87
+ }
88
+ interface GoabxNumberInputProps extends BaseProps {
89
+ onChange?: OnChange<number>;
90
+ value?: number;
91
+ min?: number;
92
+ max?: number;
93
+ step?: number;
94
+ onFocus?: OnFocus<number>;
95
+ onBlur?: OnBlur<number>;
96
+ onKeyPress?: OnKeyPress<number>;
97
+ }
98
+ interface GoabxDateInputProps extends BaseProps {
99
+ onChange?: OnChange<GoabDate>;
100
+ value?: GoabDate;
101
+ min?: GoabDate;
102
+ max?: GoabDate;
103
+ step?: number;
104
+ onFocus?: OnFocus<GoabDate>;
105
+ onBlur?: OnBlur<GoabDate>;
106
+ onKeyPress?: OnKeyPress<GoabDate>;
107
+ }
108
+ export declare function GoabxInput({ variant, textAlign, size, focused, disabled, readonly, error, leadingContent, trailingContent, onTrailingIconClick, onChange, onFocus, onBlur, onKeyPress, version, ...rest }: GoabxInputProps & {
109
+ type?: GoabInputType;
110
+ }): JSX.Element;
111
+ export declare function GoabxInputText(props: GoabxInputProps): JSX.Element;
112
+ export declare function GoabxInputPassword(props: GoabxInputProps): JSX.Element;
113
+ export declare function GoabxInputDate({ value, min, max, ...props }: GoabxDateInputProps): JSX.Element;
114
+ export declare function GoabxInputTime({ value, min, max, ...props }: GoabxInputProps): JSX.Element;
115
+ export declare function GoabxInputDateTime({ value, min, max, ...props }: GoabxDateInputProps): JSX.Element;
116
+ export declare function GoabxInputEmail(props: GoabxInputProps): JSX.Element;
117
+ export declare function GoabxInputSearch(props: GoabxInputProps): JSX.Element;
118
+ export declare function GoabxInputUrl(props: GoabxInputProps): JSX.Element;
119
+ export declare function GoabxInputTel(props: GoabxInputProps): JSX.Element;
120
+ export declare function GoabxInputFile(props: GoabxInputProps): JSX.Element;
121
+ export declare function GoabxInputMonth(props: GoabxInputProps): JSX.Element;
122
+ export declare function GoabxInputNumber({ min, max, value, textAlign, ...props }: GoabxNumberInputProps): JSX.Element;
123
+ export declare function GoabxInputRange(props: GoabxInputProps): JSX.Element;
124
+ export default GoabxInput;
@@ -0,0 +1,32 @@
1
+ import { ReactNode } from 'react';
2
+ import { GoabIconType, GoabLinkColor, GoabLinkSize, Margins, DataAttributes } from '@abgov/ui-components-common';
3
+ interface WCProps extends Margins {
4
+ leadingicon?: GoabIconType;
5
+ trailingicon?: GoabIconType;
6
+ action?: string;
7
+ actionArgs?: string;
8
+ actionArg?: string;
9
+ testid?: string;
10
+ color?: GoabLinkColor;
11
+ size?: GoabLinkSize;
12
+ }
13
+ declare module "react" {
14
+ namespace JSX {
15
+ interface IntrinsicElements {
16
+ "goa-link": WCProps & React.HTMLAttributes<HTMLElement>;
17
+ }
18
+ }
19
+ }
20
+ interface GoabxLinkProps extends Margins, DataAttributes {
21
+ leadingIcon?: GoabIconType;
22
+ trailingIcon?: GoabIconType;
23
+ action?: string;
24
+ actionArgs?: Record<string, unknown>;
25
+ actionArg?: string;
26
+ color?: GoabLinkColor;
27
+ size?: GoabLinkSize;
28
+ testId?: string;
29
+ children: ReactNode;
30
+ }
31
+ export declare function GoabxLink({ actionArgs, actionArg, color, size, children, ...rest }: GoabxLinkProps): import("react/jsx-runtime").JSX.Element;
32
+ export default GoabxLink;
@@ -0,0 +1,44 @@
1
+ import { GoabModalCalloutVariant, GoabModalRole, GoabModalTransition } from '@abgov/ui-components-common';
2
+ import { ReactElement, ReactNode, RefObject, JSX } from 'react';
3
+ interface WCProps {
4
+ ref: RefObject<HTMLElement | null>;
5
+ heading?: ReactNode;
6
+ open?: string;
7
+ maxwidth?: string;
8
+ closable: string;
9
+ /**
10
+ * @deprecated The role property is deprecated and will be removed in a future version.
11
+ * The modal will always use role="dialog".
12
+ */
13
+ role?: GoabModalRole;
14
+ transition?: GoabModalTransition;
15
+ calloutvariant?: GoabModalCalloutVariant;
16
+ testid?: string;
17
+ version?: string;
18
+ }
19
+ declare module "react" {
20
+ namespace JSX {
21
+ interface IntrinsicElements {
22
+ "goa-modal": WCProps & React.HTMLAttributes<HTMLElement>;
23
+ }
24
+ }
25
+ }
26
+ export interface GoabxModalProps {
27
+ heading?: ReactNode;
28
+ maxWidth?: string;
29
+ actions?: ReactElement<any>;
30
+ onClose?: () => void;
31
+ transition?: GoabModalTransition;
32
+ children?: ReactNode;
33
+ open?: boolean;
34
+ calloutVariant?: GoabModalCalloutVariant;
35
+ testId?: string;
36
+ version?: string;
37
+ /**
38
+ * @deprecated The role property is deprecated and will be removed in a future version.
39
+ * The modal will always use role="dialog".
40
+ */
41
+ role?: GoabModalRole;
42
+ }
43
+ export declare function GoabxModal({ heading, children, maxWidth, open, actions, transition, calloutVariant, onClose, testId, version, }: GoabxModalProps): JSX.Element;
44
+ export default GoabxModal;
@@ -0,0 +1,31 @@
1
+ import { GoabAriaLiveType, GoabNotificationEmphasis, GoabNotificationType } from '@abgov/ui-components-common';
2
+ interface WCProps {
3
+ ref: React.RefObject<HTMLElement | null>;
4
+ type: GoabNotificationType;
5
+ maxcontentwidth?: string;
6
+ arialive?: GoabAriaLiveType;
7
+ testid?: string;
8
+ emphasis?: GoabNotificationEmphasis;
9
+ compact?: string;
10
+ version?: string;
11
+ }
12
+ declare module "react" {
13
+ namespace JSX {
14
+ interface IntrinsicElements {
15
+ "goa-notification": WCProps & React.HTMLAttributes<HTMLButtonElement>;
16
+ }
17
+ }
18
+ }
19
+ export interface GoabxNotificationProps {
20
+ type?: GoabNotificationType;
21
+ ariaLive?: GoabAriaLiveType;
22
+ maxContentWidth?: string;
23
+ emphasis?: GoabNotificationEmphasis;
24
+ compact?: boolean;
25
+ children?: React.ReactNode;
26
+ onDismiss?: () => void;
27
+ testId?: string;
28
+ version?: string;
29
+ }
30
+ export declare const GoabxNotification: ({ type, emphasis, compact, ariaLive, maxContentWidth, children, testId, onDismiss, version, }: GoabxNotificationProps) => import("react/jsx-runtime").JSX.Element;
31
+ export default GoabxNotification;
@@ -0,0 +1,29 @@
1
+ import { GoabPaginationOnChangeDetail, Margins } from '@abgov/ui-components-common';
2
+ interface WCProps extends Margins {
3
+ ref?: React.RefObject<HTMLElement | null>;
4
+ itemcount: number;
5
+ perpagecount?: number;
6
+ pagenumber: number;
7
+ variant?: "all" | "links-only";
8
+ testid?: string;
9
+ version?: string;
10
+ }
11
+ declare module "react" {
12
+ namespace JSX {
13
+ interface IntrinsicElements {
14
+ "goa-pagination": WCProps & React.HTMLAttributes<HTMLElement>;
15
+ }
16
+ }
17
+ }
18
+ export interface GoabxPaginationProps extends Margins {
19
+ itemCount: number;
20
+ perPageCount?: number;
21
+ pageNumber: number;
22
+ variant?: "all" | "links-only";
23
+ onChange: (detail: GoabPaginationOnChangeDetail) => void;
24
+ testId?: string;
25
+ version?: string;
26
+ }
27
+ export type PaginationProps = GoabxPaginationProps;
28
+ export declare function GoabxPagination({ onChange, version, ...props }: GoabxPaginationProps): import("react/jsx-runtime").JSX.Element;
29
+ export default GoabxPagination;
@@ -0,0 +1,40 @@
1
+ import { JSX } from 'react';
2
+ import { GoabRadioGroupOnChangeDetail, GoabRadioGroupOrientation, GoabRadioGroupSize, Margins, DataAttributes } from '@abgov/ui-components-common';
3
+ export * from './radio';
4
+ interface WCProps extends Margins {
5
+ name: string;
6
+ value?: string;
7
+ id?: string;
8
+ orientation?: GoabRadioGroupOrientation;
9
+ disabled?: string;
10
+ error?: string;
11
+ arialabel?: string;
12
+ testid?: string;
13
+ size?: GoabRadioGroupSize;
14
+ version?: string;
15
+ }
16
+ declare module "react" {
17
+ namespace JSX {
18
+ interface IntrinsicElements {
19
+ "goa-radio-group": WCProps & React.HTMLAttributes<HTMLElement> & {
20
+ ref: React.RefObject<HTMLElement | null>;
21
+ };
22
+ }
23
+ }
24
+ }
25
+ export interface GoabxRadioGroupProps extends Margins, DataAttributes {
26
+ name: string;
27
+ value?: string;
28
+ id?: string;
29
+ disabled?: boolean;
30
+ orientation?: GoabRadioGroupOrientation;
31
+ size?: GoabRadioGroupSize;
32
+ testId?: string;
33
+ error?: boolean;
34
+ ariaLabel?: string;
35
+ children?: React.ReactNode;
36
+ version?: string;
37
+ onChange?: (detail: GoabRadioGroupOnChangeDetail) => void;
38
+ }
39
+ export declare function GoabxRadioGroup({ disabled, error, onChange, name, children, size, version, ...rest }: GoabxRadioGroupProps): JSX.Element;
40
+ export default GoabxRadioGroup;
@@ -0,0 +1,42 @@
1
+ import { Margins } from '@abgov/ui-components-common';
2
+ import { JSX } from 'react';
3
+ interface WCProps extends Margins {
4
+ name?: string;
5
+ value?: string;
6
+ description?: string | React.ReactNode;
7
+ reveal?: React.ReactNode;
8
+ revealarialabel?: string;
9
+ label?: string;
10
+ maxwidth?: string;
11
+ disabled?: string;
12
+ checked?: string;
13
+ error?: string;
14
+ arialabel?: string;
15
+ compact?: string;
16
+ version?: string;
17
+ }
18
+ declare module "react" {
19
+ namespace JSX {
20
+ interface IntrinsicElements {
21
+ "goa-radio-item": WCProps & React.HTMLAttributes<HTMLElement>;
22
+ }
23
+ }
24
+ }
25
+ export interface GoabxRadioItemProps extends Margins {
26
+ value?: string;
27
+ label?: string;
28
+ name?: string;
29
+ description?: string | React.ReactNode;
30
+ reveal?: React.ReactNode;
31
+ revealAriaLabel?: string;
32
+ maxWidth?: string;
33
+ disabled?: boolean;
34
+ checked?: boolean;
35
+ error?: boolean;
36
+ compact?: boolean;
37
+ children?: React.ReactNode;
38
+ ariaLabel?: string;
39
+ version?: string;
40
+ }
41
+ export declare function GoabxRadioItem({ name, label, value, description, reveal, revealAriaLabel, maxWidth, disabled, checked, error, compact, ariaLabel, children, version, mt, mr, mb, ml, }: GoabxRadioItemProps): JSX.Element;
42
+ export default GoabxRadioItem;
@@ -0,0 +1,19 @@
1
+ import { ReactNode, JSX } from 'react';
2
+ interface WCProps {
3
+ testid?: string;
4
+ version?: string;
5
+ }
6
+ declare module "react" {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ "goa-side-menu": WCProps & React.HTMLAttributes<HTMLElement>;
10
+ }
11
+ }
12
+ }
13
+ export interface GoabxSideMenuProps {
14
+ testId?: string;
15
+ children: ReactNode;
16
+ version?: string;
17
+ }
18
+ export declare function GoabxSideMenu({ testId, children, version, }: GoabxSideMenuProps): JSX.Element;
19
+ export default GoabxSideMenu;
@@ -0,0 +1,24 @@
1
+ import { ReactNode, JSX } from 'react';
2
+ import { GoabIconType, Margins } from '@abgov/ui-components-common';
3
+ interface WCProps extends Margins {
4
+ heading: string;
5
+ icon?: GoabIconType;
6
+ testid?: string;
7
+ version?: string;
8
+ }
9
+ declare module "react" {
10
+ namespace JSX {
11
+ interface IntrinsicElements {
12
+ "goa-side-menu-group": WCProps & React.HTMLAttributes<HTMLElement>;
13
+ }
14
+ }
15
+ }
16
+ export interface GoabxSideMenuGroupProps extends Margins {
17
+ heading: string;
18
+ icon?: GoabIconType;
19
+ testId?: string;
20
+ children?: ReactNode;
21
+ version?: string;
22
+ }
23
+ export declare function GoabxSideMenuGroup({ heading, icon, testId, children, mt, mr, mb, ml, version, }: GoabxSideMenuGroupProps): JSX.Element;
24
+ export default GoabxSideMenuGroup;
@@ -0,0 +1,23 @@
1
+ import { GoabIconType } from '@abgov/ui-components-common';
2
+ import { ReactNode } from 'react';
3
+ interface WCProps {
4
+ testid?: string;
5
+ icon?: GoabIconType;
6
+ version?: string;
7
+ }
8
+ declare module "react" {
9
+ namespace JSX {
10
+ interface IntrinsicElements {
11
+ "goa-side-menu-heading": WCProps & React.HTMLAttributes<HTMLElement>;
12
+ }
13
+ }
14
+ }
15
+ export interface GoabxSideMenuHeadingProps {
16
+ meta?: ReactNode;
17
+ testId?: string;
18
+ icon?: GoabIconType;
19
+ children?: ReactNode;
20
+ version?: string;
21
+ }
22
+ export declare function GoabxSideMenuHeading({ meta, testId, icon, children, version, }: GoabxSideMenuHeadingProps): import("react/jsx-runtime").JSX.Element;
23
+ export default GoabxSideMenuHeading;
@@ -0,0 +1,20 @@
1
+ import { DataAttributes, GoabTableSortDirection } from '@abgov/ui-components-common';
2
+ import { JSX } from 'react';
3
+ interface WCProps {
4
+ name?: string;
5
+ direction?: GoabTableSortDirection;
6
+ }
7
+ declare module "react" {
8
+ namespace JSX {
9
+ interface IntrinsicElements {
10
+ "goa-table-sort-header": WCProps & React.HTMLAttributes<HTMLElement>;
11
+ }
12
+ }
13
+ }
14
+ export interface GoabxTableSortProps extends DataAttributes {
15
+ name?: string;
16
+ direction?: GoabTableSortDirection;
17
+ children?: React.ReactNode;
18
+ }
19
+ export declare function GoabxTableSortHeader({ children, ...rest }: GoabxTableSortProps): JSX.Element;
20
+ export default GoabxTableSortHeader;
@@ -0,0 +1,30 @@
1
+ import { GoabTableOnSortDetail, GoabTableVariant, Margins } from '@abgov/ui-components-common';
2
+ import { ReactNode } from 'react';
3
+ interface WCProps extends Margins {
4
+ ref?: React.RefObject<HTMLElement | null>;
5
+ width?: string;
6
+ stickyheader?: string;
7
+ variant?: GoabTableVariant;
8
+ testid?: string;
9
+ striped?: string;
10
+ version?: string;
11
+ }
12
+ declare module "react" {
13
+ namespace JSX {
14
+ interface IntrinsicElements {
15
+ "goa-table": WCProps & React.HTMLAttributes<HTMLElement>;
16
+ }
17
+ }
18
+ }
19
+ export interface GoabxTableProps extends Margins {
20
+ width?: string;
21
+ onSort?: (detail: GoabTableOnSortDetail) => void;
22
+ variant?: GoabTableVariant;
23
+ striped?: boolean;
24
+ testId?: string;
25
+ version?: string;
26
+ children?: ReactNode;
27
+ }
28
+ export type TableProps = GoabxTableProps;
29
+ export declare function GoabxTable({ onSort, version, ...props }: GoabxTableProps): import("react/jsx-runtime").JSX.Element;
30
+ export default GoabxTable;
@@ -0,0 +1,27 @@
1
+ import { default as React, JSX } from 'react';
2
+ import { GoabTabsOnChangeDetail, GoabTabsVariant } from '@abgov/ui-components-common';
3
+ interface WCProps {
4
+ initialtab?: number;
5
+ ref: React.RefObject<HTMLElement | null>;
6
+ onChange?: (tab: number) => void;
7
+ testid?: string;
8
+ variant?: GoabTabsVariant;
9
+ version?: string;
10
+ }
11
+ declare module "react" {
12
+ namespace JSX {
13
+ interface IntrinsicElements {
14
+ "goa-tabs": WCProps & React.HTMLAttributes<HTMLElement>;
15
+ }
16
+ }
17
+ }
18
+ export interface GoabxTabsProps {
19
+ initialTab?: number;
20
+ children?: React.ReactNode;
21
+ testId?: string;
22
+ variant?: GoabTabsVariant;
23
+ onChange?: (detail: GoabTabsOnChangeDetail) => void;
24
+ version?: string;
25
+ }
26
+ export declare function GoabxTabs({ initialTab, children, testId, onChange, variant, version, }: GoabxTabsProps): JSX.Element;
27
+ export default GoabxTabs;
@@ -0,0 +1,53 @@
1
+ import { GoabTextAreaCountBy, GoabTextAreaOnChangeDetail, GoabTextAreaOnKeyPressDetail, GoabTextAreaOnBlurDetail, GoabTextAreaSize, Margins, DataAttributes } from '@abgov/ui-components-common';
2
+ import { JSX } from 'react';
3
+ interface WCProps extends Margins {
4
+ name: string;
5
+ value?: string;
6
+ placeholder?: string;
7
+ rows?: number;
8
+ error?: string;
9
+ readOnly?: string;
10
+ disabled?: string;
11
+ width?: string;
12
+ maxwidth?: string;
13
+ arialabel?: string;
14
+ countby?: GoabTextAreaCountBy;
15
+ maxcount?: number;
16
+ autocomplete?: string;
17
+ testid?: string;
18
+ size?: GoabTextAreaSize;
19
+ version?: string;
20
+ }
21
+ declare module "react" {
22
+ namespace JSX {
23
+ interface IntrinsicElements {
24
+ "goa-textarea": WCProps & React.HTMLAttributes<HTMLElement> & {
25
+ ref: React.Ref<HTMLTextAreaElement>;
26
+ };
27
+ }
28
+ }
29
+ }
30
+ export interface GoabxTextAreaProps extends Margins, DataAttributes {
31
+ name: string;
32
+ value?: string;
33
+ id?: string;
34
+ placeholder?: string;
35
+ rows?: number;
36
+ error?: boolean;
37
+ readOnly?: boolean;
38
+ disabled?: boolean;
39
+ width?: string;
40
+ maxWidth?: string;
41
+ testId?: string;
42
+ ariaLabel?: string;
43
+ countBy?: GoabTextAreaCountBy;
44
+ maxCount?: number;
45
+ autoComplete?: string;
46
+ size?: GoabTextAreaSize;
47
+ version?: string;
48
+ onChange?: (event: GoabTextAreaOnChangeDetail) => void;
49
+ onKeyPress?: (event: GoabTextAreaOnKeyPressDetail) => void;
50
+ onBlur?: (event: GoabTextAreaOnBlurDetail) => void;
51
+ }
52
+ export declare function GoabxTextArea({ readOnly, disabled, error, onChange, onKeyPress, onBlur, version, ...rest }: GoabxTextAreaProps): JSX.Element;
53
+ export default GoabxTextArea;
@@ -0,0 +1,22 @@
1
+ import { JSX } from 'react';
2
+ import { GoabIconType } from '@abgov/ui-components-common';
3
+ interface WCProps {
4
+ heading: string;
5
+ icon: GoabIconType;
6
+ testid?: string;
7
+ }
8
+ declare module "react" {
9
+ namespace JSX {
10
+ interface IntrinsicElements {
11
+ "goa-work-side-menu-group": WCProps & React.HTMLAttributes<HTMLElement>;
12
+ }
13
+ }
14
+ }
15
+ export interface GoabWorkSideMenuGroupProps {
16
+ heading: string;
17
+ icon: GoabIconType;
18
+ testId?: string;
19
+ children?: React.ReactNode;
20
+ }
21
+ export declare function GoabxWorkSideMenuGroup(props: GoabWorkSideMenuGroupProps): JSX.Element;
22
+ export default GoabxWorkSideMenuGroup;