@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 +1,72 @@
1
- import { GoabTextAreaCountBy, GoabTextAreaOnChangeDetail, GoabTextAreaOnKeyPressDetail, GoabTextAreaOnBlurDetail, Margins, DataAttributes } from '@abgov/ui-components-common';
1
+ import { GoabTextAreaCountBy, GoabTextAreaOnChangeDetail, GoabTextAreaOnKeyPressDetail, GoabTextAreaOnBlurDetail, GoabTextAreaSize, Margins, DataAttributes } from '@abgov/ui-components-common';
2
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
+ }
3
30
  export interface GoabTextAreaProps extends Margins, DataAttributes {
31
+ /** @required Name of the input value that is received in the change event. */
4
32
  name: string;
33
+ /** Bound to the current value of the textarea. */
5
34
  value?: string;
35
+ /** Sets the id attribute on the textarea element. */
6
36
  id?: string;
37
+ /** Text displayed within the textarea when no value is set. */
7
38
  placeholder?: string;
39
+ /** Sets the number of visible text rows. @default 3 */
8
40
  rows?: number;
41
+ /** Sets the input to an error state. */
9
42
  error?: boolean;
43
+ /** Sets the input to a read only state. */
10
44
  readOnly?: boolean;
45
+ /** Sets the input to a disabled state. */
11
46
  disabled?: boolean;
47
+ /** Sets the width of the text area. @default "100%" */
12
48
  width?: string;
49
+ /** Sets the maximum width of the text area. @default "60ch" */
13
50
  maxWidth?: string;
51
+ /** Sets a data-testid attribute for automated testing. */
14
52
  testId?: string;
53
+ /** Defines how the text will be translated for the screen reader. If not specified it will fall back to the name. */
15
54
  ariaLabel?: string;
55
+ /** Counting interval for characters or words, specifying whether to count every character or word. */
16
56
  countBy?: GoabTextAreaCountBy;
57
+ /** Maximum number of characters or words allowed. */
17
58
  maxCount?: number;
59
+ /** Specifies the autocomplete attribute for the textarea input. */
18
60
  autoComplete?: string;
61
+ /** Sets the visual size variant of the text area. */
62
+ size?: GoabTextAreaSize;
63
+ /** Callback fired when the value of the textarea changes. */
19
64
  onChange?: (event: GoabTextAreaOnChangeDetail) => void;
65
+ /** Callback fired when a key is pressed within the textarea. */
20
66
  onKeyPress?: (event: GoabTextAreaOnKeyPressDetail) => void;
67
+ /** Callback fired when the textarea loses focus. */
21
68
  onBlur?: (event: GoabTextAreaOnBlurDetail) => void;
22
69
  }
70
+ /** A multi-line field where users can input and edit text. */
23
71
  export declare function GoabTextArea({ readOnly, disabled, error, onChange, onKeyPress, onBlur, ...rest }: GoabTextAreaProps): JSX.Element;
24
72
  export default GoabTextArea;
@@ -12,15 +12,25 @@ declare module "react" {
12
12
  }
13
13
  }
14
14
  export interface GoabThreeColumnLayoutProps {
15
+ /** Main content rendered in the center column. */
16
+ children: ReactNode;
17
+ /** Sets the width of the left column. */
15
18
  leftColumnWidth?: string;
19
+ /** Sets the width of the right column. */
16
20
  rightColumnWidth?: string;
21
+ /** Sets the maximum width of the content area. */
17
22
  maxContentWidth?: string;
23
+ /** Content rendered in the page header slot. */
18
24
  header?: ReactNode;
25
+ /** Content rendered in the page footer slot. */
19
26
  footer?: ReactNode;
27
+ /** Content rendered in the navigation slot. */
20
28
  nav?: ReactNode;
29
+ /** @deprecated Use sideMenu instead. Content rendered in the side menu slot. */
21
30
  sidebar?: ReactNode;
31
+ /** Content rendered in the side menu slot. */
22
32
  sideMenu?: ReactNode;
23
- children: ReactNode;
24
33
  }
34
+ /** Organizes page content in three responsive columns. */
25
35
  export declare function GoabThreeColumnLayout(props: GoabThreeColumnLayoutProps): import("react/jsx-runtime").JSX.Element;
26
36
  export default GoabThreeColumnLayout;
@@ -15,12 +15,19 @@ declare module "react" {
15
15
  }
16
16
  }
17
17
  export interface GoabTooltipProps extends Margins, DataAttributes {
18
+ /** Position of the tooltip with respect to the child element. @default "top" */
18
19
  position?: GoabTooltipPosition;
20
+ /** The content of the tooltip. Accepts a string or a ReactNode. */
19
21
  content?: string | ReactNode;
22
+ /** Horizontal alignment of the tooltip relative to the child element. @default "center" */
20
23
  hAlign?: GoabTooltipHorizontalAlignment;
24
+ /** Sets a data-testid attribute for automated testing. */
21
25
  testId?: string;
26
+ /** Sets the maximum width of the tooltip. Must use 'px' unit. */
22
27
  maxWidth?: string;
28
+ /** The element that triggers the tooltip on hover or focus. */
23
29
  children?: ReactNode;
24
30
  }
31
+ /** A small popover that displays more information about an item. */
25
32
  export declare function GoabTooltip({ content, children, ...rest }: GoabTooltipProps): JSX.Element;
26
33
  export default GoabTooltip;
@@ -11,12 +11,19 @@ declare module "react" {
11
11
  }
12
12
  }
13
13
  export interface GoabTwoColumnLayoutProps {
14
- navColumnWidth?: string;
15
- maxContentWidth?: string;
14
+ /** Content rendered in the page header slot. */
16
15
  header: ReactNode;
16
+ /** Content rendered in the page footer slot. */
17
17
  footer: ReactNode;
18
+ /** Content rendered in the navigation column slot. */
18
19
  nav: ReactNode;
20
+ /** @required Main content rendered in the body of the layout. */
19
21
  children: ReactNode;
22
+ /** Sets the width of the navigation column. */
23
+ navColumnWidth?: string;
24
+ /** Sets the maximum width of the content area. */
25
+ maxContentWidth?: string;
20
26
  }
27
+ /** Organizes page content in two responsive columns. */
21
28
  export declare function GoabTwoColumnLayout(props: GoabTwoColumnLayoutProps): import("react/jsx-runtime").JSX.Element;
22
29
  export default GoabTwoColumnLayout;
@@ -0,0 +1,47 @@
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
+ /** @required The application name displayed in the header. */
23
+ heading: string;
24
+ /** @required URL for the header link. Clicking the logo/heading navigates to this URL. */
25
+ url: string;
26
+ /** User's name displayed in the profile section. */
27
+ userName?: string;
28
+ /** Secondary text displayed below the user's name, such as role or email. */
29
+ userSecondaryText?: string;
30
+ /** Sets a data-testid attribute for automated testing. */
31
+ testId?: string;
32
+ /** Content rendered in the primary navigation slot. */
33
+ primaryContent?: ReactNode;
34
+ /** Content rendered in the secondary navigation slot. */
35
+ secondaryContent?: ReactNode;
36
+ /** Content rendered in the account/profile slot. */
37
+ accountContent?: ReactNode;
38
+ /** Controls whether the side menu is expanded or collapsed. */
39
+ open?: boolean;
40
+ /** Callback fired when the side menu is toggled open or closed. */
41
+ onToggle?: () => void;
42
+ /** Callback fired when a menu item is navigated, providing the target URL path. */
43
+ onNavigate?: (path: string) => void;
44
+ }
45
+ /** Side menu variant for worker applications. */
46
+ export declare function GoabWorkSideMenu({ heading, url, userName, userSecondaryText, testId, primaryContent, secondaryContent, accountContent, open, onToggle, onNavigate, }: GoabWorkSideMenuProps): JSX.Element;
47
+ export default GoabWorkSideMenu;
@@ -0,0 +1,30 @@
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
+ open?: boolean;
8
+ }
9
+ declare module "react" {
10
+ namespace JSX {
11
+ interface IntrinsicElements {
12
+ "goa-work-side-menu-group": WCProps & React.HTMLAttributes<HTMLElement>;
13
+ }
14
+ }
15
+ }
16
+ export interface GoabWorkSideMenuGroupProps {
17
+ /** @required The text displayed in the group heading. */
18
+ heading: string;
19
+ /** Icon displayed before the group label. When omitted, no icon is rendered and no space is reserved. */
20
+ icon?: GoabIconType;
21
+ /** Whether the group is open. */
22
+ open?: boolean;
23
+ /** Sets a data-testid attribute for automated testing. */
24
+ testId?: string;
25
+ /** Content rendered inside the group, typically WorkSideMenuItem components. */
26
+ children?: React.ReactNode;
27
+ }
28
+ /** Collapsible group of items within the work side menu. */
29
+ export declare function GoabWorkSideMenuGroup(props: GoabWorkSideMenuGroupProps): JSX.Element;
30
+ export default GoabWorkSideMenuGroup;
@@ -0,0 +1,44 @@
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
+ /** @required The text label displayed for the menu item. */
22
+ label: string;
23
+ /** The URL the menu item links to. When absent, renders as a button instead of a link. */
24
+ url?: string;
25
+ /** Badge text displayed alongside the menu item (e.g., notification count). */
26
+ badge?: string;
27
+ /** When true, indicates this is the currently active menu item. */
28
+ current?: boolean;
29
+ /** When true, displays a divider line above this menu item. */
30
+ divider?: boolean;
31
+ /** Icon displayed before the menu item label. */
32
+ icon?: string;
33
+ /** Sets a data-testid attribute for automated testing. */
34
+ testId?: string;
35
+ /** Sets the visual style of the badge. Use "emergency" for urgent items, "success" for positive status. @default "normal" */
36
+ type?: GoabWorkSideMenuItemType;
37
+ /** Content rendered inside the menu item. */
38
+ children?: React.ReactNode;
39
+ /** Content rendered inside the popover panel attached to this menu item. */
40
+ popoverContent?: React.ReactNode;
41
+ }
42
+ /** Individual menu item within the work side menu. */
43
+ export declare function GoabWorkSideMenuItem(props: GoabWorkSideMenuItemProps): JSX.Element;
44
+ export default GoabWorkSideMenuItem;
@@ -0,0 +1,40 @@
1
+ import { JSX } from 'react';
2
+ import { GoabWorkSideNotificationItemType, GoabWorkSideNotificationReadStatus, GoabWorkSideNotificationPriority } from '@abgov/ui-components-common';
3
+ interface WCProps {
4
+ type?: GoabWorkSideNotificationItemType;
5
+ timestamp?: string;
6
+ title?: string;
7
+ description: string;
8
+ "read-status"?: GoabWorkSideNotificationReadStatus;
9
+ priority?: GoabWorkSideNotificationPriority;
10
+ testid?: string;
11
+ ref: React.RefObject<HTMLElement | null>;
12
+ }
13
+ declare module "react" {
14
+ namespace JSX {
15
+ interface IntrinsicElements {
16
+ "goa-work-side-notification-item": WCProps & React.HTMLAttributes<HTMLElement>;
17
+ }
18
+ }
19
+ }
20
+ export interface GoabWorkSideNotificationItemProps {
21
+ /** @required The body text content of the notification card. */
22
+ description: string;
23
+ /** Sets the visual type/style of the notification item. @default "default" */
24
+ type?: GoabWorkSideNotificationItemType;
25
+ /** ISO timestamp string representing when the notification occurred. */
26
+ timestamp?: string;
27
+ /** Title text displayed in the notification card header. */
28
+ title?: string;
29
+ /** Indicates whether the notification has been read or is unread. @default "unread" */
30
+ readStatus?: GoabWorkSideNotificationReadStatus;
31
+ /** Sets the urgency level of the notification. @default "normal" */
32
+ priority?: GoabWorkSideNotificationPriority;
33
+ /** Sets a data-testid attribute for automated testing. */
34
+ testId?: string;
35
+ /** Callback fired when the notification item is clicked. */
36
+ onClick?: () => void;
37
+ }
38
+ /** Displays an individual notification item in the work-side notification panel. */
39
+ export declare function GoabWorkSideNotificationItem({ type, timestamp, title, description, readStatus, priority, testId, onClick, }: GoabWorkSideNotificationItemProps): JSX.Element;
40
+ export default GoabWorkSideNotificationItem;
@@ -0,0 +1,32 @@
1
+ import { ReactNode, JSX } from 'react';
2
+ import { GoabWorkSideNotificationActiveTabType } from '@abgov/ui-components-common';
3
+ interface WCProps {
4
+ heading?: string;
5
+ "active-tab"?: GoabWorkSideNotificationActiveTabType;
6
+ testid?: string;
7
+ ref: React.RefObject<HTMLElement | null>;
8
+ }
9
+ declare module "react" {
10
+ namespace JSX {
11
+ interface IntrinsicElements {
12
+ "goa-work-side-notification-panel": WCProps & React.HTMLAttributes<HTMLElement>;
13
+ }
14
+ }
15
+ }
16
+ export interface GoabWorkSideNotificationPanelProps {
17
+ /** Sets the panel heading text. @default "Notifications" */
18
+ heading?: string;
19
+ /** Sets the initially active tab. @default "unread" */
20
+ activeTab?: GoabWorkSideNotificationActiveTabType;
21
+ /** Sets a data-testid attribute for automated testing. */
22
+ testId?: string;
23
+ /** Notification item content rendered inside the panel. */
24
+ children?: ReactNode;
25
+ /** Callback fired when the "Mark all as read" button is clicked. */
26
+ onMarkAllRead?: () => void;
27
+ /** Callback fired when the "View all" button is clicked. */
28
+ onViewAll?: () => void;
29
+ }
30
+ /** Displays a panel of work-side notifications. */
31
+ export declare function GoabWorkSideNotificationPanel({ heading, activeTab, testId, children, onMarkAllRead, onViewAll, }: GoabWorkSideNotificationPanelProps): JSX.Element;
32
+ export default GoabWorkSideNotificationPanel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "6.11.0",
3
+ "version": "7.0.0-dev.10",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -29,11 +29,6 @@
29
29
  "import": "./index.mjs",
30
30
  "require": "./index.js",
31
31
  "types": "./index.d.ts"
32
- },
33
- "./experimental": {
34
- "import": "./experimental.mjs",
35
- "require": "./experimental.js",
36
- "types": "./experimental/index.d.ts"
37
32
  }
38
33
  }
39
34
  }
@@ -1,33 +0,0 @@
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 {};
@@ -1,43 +0,0 @@
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;
@@ -1,30 +0,0 @@
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;
@@ -1,33 +0,0 @@
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;
@@ -1,52 +0,0 @@
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;
@@ -1,43 +0,0 @@
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;
@@ -1,31 +0,0 @@
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;
@@ -1,26 +0,0 @@
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 {};