@abgov/react-components 6.11.0 → 7.0.0-dev.10

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 (134) hide show
  1. package/index.d.ts +5 -0
  2. package/index.js +3736 -1776
  3. package/index.js.map +1 -1
  4. package/index.mjs +3676 -1716
  5. package/index.mjs.map +1 -1
  6. package/lib/accordion/accordion.d.ts +13 -2
  7. package/lib/app-header/app-header.d.ts +14 -2
  8. package/lib/app-header-menu/app-header-menu.d.ts +14 -7
  9. package/lib/badge/badge.d.ts +32 -18
  10. package/lib/block/block.d.ts +9 -0
  11. package/lib/button/button.d.ts +37 -0
  12. package/lib/button-group/button-group.d.ts +5 -0
  13. package/lib/calendar/calendar.d.ts +25 -1
  14. package/lib/callout/callout.d.ts +31 -2
  15. package/lib/card/card-actions.d.ts +2 -0
  16. package/lib/card/card-content.d.ts +2 -0
  17. package/lib/card/card-group.d.ts +2 -0
  18. package/lib/card/card-image.d.ts +3 -0
  19. package/lib/card/card.d.ts +5 -0
  20. package/lib/checkbox/checkbox.d.ts +49 -3
  21. package/lib/checkbox-list/checkbox-list.d.ts +21 -8
  22. package/lib/chip/chip.d.ts +11 -2
  23. package/lib/circular-progress/circular-progress.d.ts +7 -0
  24. package/lib/container/container.d.ts +18 -5
  25. package/lib/data-grid/data-grid.d.ts +6 -1
  26. package/lib/date-picker/date-picker.d.ts +35 -4
  27. package/lib/details/details.d.ts +7 -1
  28. package/lib/divider/divider.d.ts +2 -0
  29. package/lib/drawer/drawer.d.ts +27 -2
  30. package/lib/dropdown/dropdown-item.d.ts +23 -0
  31. package/lib/dropdown/dropdown.d.ts +56 -5
  32. package/lib/file-upload-card/file-upload-card.d.ts +27 -0
  33. package/lib/file-upload-input/file-upload-input.d.ts +23 -1
  34. package/lib/filter-chip/filter-chip.d.ts +31 -3
  35. package/lib/footer/footer.d.ts +20 -3
  36. package/lib/footer-meta-section/footer-meta-section.d.ts +13 -0
  37. package/lib/footer-nav-section/footer-nav-section.d.ts +18 -1
  38. package/lib/form/fieldset.d.ts +7 -1
  39. package/lib/form/public-form-page.d.ts +13 -5
  40. package/lib/form/public-form-summary.d.ts +2 -0
  41. package/lib/form/public-form.d.ts +8 -1
  42. package/lib/form/public-subform-index.d.ts +7 -1
  43. package/lib/form/public-subform.d.ts +8 -1
  44. package/lib/form/task-list.d.ts +4 -1
  45. package/lib/form/task.d.ts +4 -1
  46. package/lib/form-item/form-item.d.ts +37 -8
  47. package/lib/form-step/form-step.d.ts +3 -0
  48. package/lib/form-stepper/form-stepper.d.ts +5 -0
  49. package/lib/grid/grid.d.ts +6 -1
  50. package/lib/hero-banner/hero-banner-actions.d.ts +2 -0
  51. package/lib/hero-banner/hero-banner.d.ts +9 -0
  52. package/lib/icon/icon.d.ts +13 -0
  53. package/lib/icon-button/icon-button.d.ts +18 -2
  54. package/lib/input/input.d.ts +89 -4
  55. package/lib/linear-progress/linear-progress.d.ts +6 -0
  56. package/lib/link/link.d.ts +33 -4
  57. package/lib/menu-button/menu-action.d.ts +5 -0
  58. package/lib/menu-button/menu-button.d.ts +20 -52
  59. package/lib/microsite-header/microsite-header.d.ts +9 -0
  60. package/lib/modal/modal.d.ts +34 -1
  61. package/lib/notification/notification.d.ts +30 -2
  62. package/lib/one-column-layout/one-column-layout.d.ts +2 -0
  63. package/lib/page-block/page-block.d.ts +4 -0
  64. package/lib/pages/pages.d.ts +3 -0
  65. package/lib/pagination/pagination.d.ts +25 -2
  66. package/lib/popover/popover.d.ts +11 -5
  67. package/lib/push-drawer/push-drawer.d.ts +17 -8
  68. package/lib/radio-group/radio-group.d.ts +36 -2
  69. package/lib/radio-group/radio.d.ts +38 -1
  70. package/lib/side-menu/side-menu.d.ts +16 -2
  71. package/lib/side-menu-group/side-menu-group.d.ts +19 -1
  72. package/lib/side-menu-heading/side-menu-heading.d.ts +19 -2
  73. package/lib/skeleton/skeleton.d.ts +7 -1
  74. package/lib/spacer/spacer.d.ts +4 -0
  75. package/lib/spinner/spinner.d.ts +6 -0
  76. package/lib/tab/tab.d.ts +6 -1
  77. package/lib/table/table-sort-header.d.ts +20 -2
  78. package/lib/table/table.d.ts +31 -2
  79. package/lib/tabs/tabs.d.ts +29 -2
  80. package/lib/temporary-notification-ctrl/temporary-notification-ctrl.d.ts +4 -0
  81. package/lib/text/text.d.ts +8 -1
  82. package/lib/textarea/textarea.d.ts +49 -1
  83. package/lib/three-column-layout/three-column-layout.d.ts +11 -1
  84. package/lib/tooltip/tooltip.d.ts +7 -0
  85. package/lib/two-column-layout/two-column-layout.d.ts +9 -2
  86. package/lib/work-side-menu/work-side-menu.d.ts +47 -0
  87. package/lib/work-side-menu-group/work-side-menu-group.d.ts +30 -0
  88. package/lib/work-side-menu-item/work-side-menu-item.d.ts +44 -0
  89. package/lib/work-side-notification-item/work-side-notification-item.d.ts +40 -0
  90. package/lib/work-side-notification-panel/work-side-notification-panel.d.ts +32 -0
  91. package/package.json +1 -6
  92. package/experimental/badge/badge.d.ts +0 -33
  93. package/experimental/button/button.d.ts +0 -43
  94. package/experimental/calendar/calendar.d.ts +0 -30
  95. package/experimental/callout/callout.d.ts +0 -33
  96. package/experimental/checkbox/checkbox.d.ts +0 -52
  97. package/experimental/date-picker/date-picker.d.ts +0 -43
  98. package/experimental/drawer/drawer.d.ts +0 -31
  99. package/experimental/dropdown/dropdown-item.d.ts +0 -26
  100. package/experimental/dropdown/dropdown.d.ts +0 -62
  101. package/experimental/file-upload-card/file-upload-card.d.ts +0 -32
  102. package/experimental/file-upload-input/file-upload-input.d.ts +0 -27
  103. package/experimental/filter-chip/filter-chip.d.ts +0 -31
  104. package/experimental/footer/footer.d.ts +0 -24
  105. package/experimental/footer-meta-section/footer-meta-section.d.ts +0 -18
  106. package/experimental/footer-nav-section/footer-nav-section.d.ts +0 -22
  107. package/experimental/form-hook.d.ts +0 -8
  108. package/experimental/form-item/form-item.d.ts +0 -46
  109. package/experimental/index.d.ts +0 -32
  110. package/experimental/input/input.d.ts +0 -124
  111. package/experimental/link/link.d.ts +0 -32
  112. package/experimental/modal/modal.d.ts +0 -44
  113. package/experimental/notification/notification.d.ts +0 -31
  114. package/experimental/pagination/pagination.d.ts +0 -29
  115. package/experimental/radio-group/radio-group.d.ts +0 -40
  116. package/experimental/radio-group/radio.d.ts +0 -42
  117. package/experimental/side-menu/side-menu.d.ts +0 -19
  118. package/experimental/side-menu-group/side-menu-group.d.ts +0 -24
  119. package/experimental/side-menu-heading/side-menu-heading.d.ts +0 -23
  120. package/experimental/table/table-sort-header.d.ts +0 -20
  121. package/experimental/table/table.d.ts +0 -30
  122. package/experimental/tabs/tabs.d.ts +0 -27
  123. package/experimental/textarea/textarea.d.ts +0 -53
  124. package/experimental/work-side-menu/work-side-menu.d.ts +0 -34
  125. package/experimental/work-side-menu-group/work-side-menu-group.d.ts +0 -22
  126. package/experimental/work-side-menu-item/work-side-menu-item.d.ts +0 -32
  127. package/experimental.js +0 -1245
  128. package/experimental.js.map +0 -1
  129. package/experimental.mjs +0 -1245
  130. package/experimental.mjs.map +0 -1
  131. package/parseISO-BHUUf1QW.mjs +0 -1693
  132. package/parseISO-BHUUf1QW.mjs.map +0 -1
  133. package/parseISO-Dj57mwuH.js +0 -1692
  134. package/parseISO-Dj57mwuH.js.map +0 -1
@@ -1,62 +0,0 @@
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;
@@ -1,32 +0,0 @@
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;
@@ -1,27 +0,0 @@
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;
@@ -1,31 +0,0 @@
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;
@@ -1,24 +0,0 @@
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;
@@ -1,18 +0,0 @@
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;
@@ -1,22 +0,0 @@
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;
@@ -1,8 +0,0 @@
1
- type ContinueTo = (next: string) => void;
2
- type OnMount = (next: ContinueTo) => void;
3
- type SimpleForm = {
4
- onMount: OnMount;
5
- continueTo: ContinueTo;
6
- };
7
- export declare function useSimpleForm(): SimpleForm;
8
- export {};
@@ -1,46 +0,0 @@
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;
@@ -1,32 +0,0 @@
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';
30
- export * from './work-side-menu/work-side-menu';
31
- export * from './work-side-menu-item/work-side-menu-item';
32
- export * from './work-side-menu-group/work-side-menu-group';
@@ -1,124 +0,0 @@
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;
@@ -1,32 +0,0 @@
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;
@@ -1,44 +0,0 @@
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;
@@ -1,31 +0,0 @@
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;
@@ -1,29 +0,0 @@
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;
@@ -1,40 +0,0 @@
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;
@@ -1,42 +0,0 @@
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;
@@ -1,19 +0,0 @@
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;