@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,24 +0,0 @@
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;
@@ -1,23 +0,0 @@
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;
@@ -1,20 +0,0 @@
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;
@@ -1,30 +0,0 @@
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;
@@ -1,27 +0,0 @@
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;
@@ -1,53 +0,0 @@
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;
@@ -1,34 +0,0 @@
1
- import { ReactNode, JSX } from 'react';
2
- interface WCProps {
3
- heading: string;
4
- url: string;
5
- "user-name"?: string;
6
- "user-secondary-text"?: string;
7
- testid?: string;
8
- primaryContent?: ReactNode;
9
- secondaryContent?: ReactNode;
10
- accountContent?: ReactNode;
11
- open?: boolean;
12
- ref: React.RefObject<HTMLElement | null>;
13
- }
14
- declare module "react" {
15
- namespace JSX {
16
- interface IntrinsicElements {
17
- "goa-work-side-menu": WCProps & React.HTMLAttributes<HTMLElement>;
18
- }
19
- }
20
- }
21
- export interface GoabWorkSideMenuProps {
22
- heading: string;
23
- url: string;
24
- userName?: string;
25
- userSecondaryText?: string;
26
- testId?: string;
27
- primaryContent?: ReactNode;
28
- secondaryContent?: ReactNode;
29
- accountContent?: ReactNode;
30
- open?: boolean;
31
- onToggle?: () => void;
32
- }
33
- export declare function GoabxWorkSideMenu({ heading, url, userName, userSecondaryText, testId, primaryContent, secondaryContent, accountContent, open, onToggle, }: GoabWorkSideMenuProps): JSX.Element;
34
- export default GoabxWorkSideMenu;
@@ -1,22 +0,0 @@
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;
@@ -1,32 +0,0 @@
1
- import { JSX } from 'react';
2
- import { GoabWorkSideMenuItemType } from '@abgov/ui-components-common';
3
- interface WCProps {
4
- label: string;
5
- url: string;
6
- badge?: string;
7
- current?: string;
8
- divider?: string;
9
- icon?: string;
10
- testid?: string;
11
- type?: GoabWorkSideMenuItemType;
12
- }
13
- declare module "react" {
14
- namespace JSX {
15
- interface IntrinsicElements {
16
- "goa-work-side-menu-item": WCProps & React.HTMLAttributes<HTMLElement>;
17
- }
18
- }
19
- }
20
- export interface GoabWorkSideMenuItemProps {
21
- label: string;
22
- url: string;
23
- badge?: string;
24
- current?: boolean;
25
- divider?: boolean;
26
- icon?: string;
27
- testId?: string;
28
- type?: GoabWorkSideMenuItemType;
29
- children?: React.ReactNode;
30
- }
31
- export declare function GoabxWorkSideMenuItem(props: GoabWorkSideMenuItemProps): JSX.Element;
32
- export default GoabxWorkSideMenuItem;