@abgov/react-components 7.0.0-dev.5 → 7.0.0-dev.6

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 (90) hide show
  1. package/index.js +57 -107
  2. package/index.js.map +1 -1
  3. package/index.mjs +57 -107
  4. package/index.mjs.map +1 -1
  5. package/lib/accordion/accordion.d.ts +13 -2
  6. package/lib/app-header/app-header.d.ts +9 -0
  7. package/lib/app-header-menu/app-header-menu.d.ts +6 -0
  8. package/lib/badge/badge.d.ts +9 -0
  9. package/lib/block/block.d.ts +9 -0
  10. package/lib/button/button.d.ts +14 -0
  11. package/lib/button-group/button-group.d.ts +5 -0
  12. package/lib/calendar/calendar.d.ts +8 -1
  13. package/lib/callout/callout.d.ts +10 -0
  14. package/lib/card/card-actions.d.ts +2 -0
  15. package/lib/card/card-content.d.ts +2 -0
  16. package/lib/card/card-group.d.ts +2 -0
  17. package/lib/card/card-image.d.ts +3 -0
  18. package/lib/card/card.d.ts +5 -0
  19. package/lib/checkbox/checkbox.d.ts +19 -1
  20. package/lib/checkbox-list/checkbox-list.d.ts +10 -0
  21. package/lib/chip/chip.d.ts +11 -2
  22. package/lib/circular-progress/circular-progress.d.ts +7 -0
  23. package/lib/container/container.d.ts +18 -5
  24. package/lib/data-grid/data-grid.d.ts +6 -1
  25. package/lib/date-picker/date-picker.d.ts +13 -4
  26. package/lib/details/details.d.ts +7 -1
  27. package/lib/divider/divider.d.ts +2 -0
  28. package/lib/drawer/drawer.d.ts +11 -2
  29. package/lib/dropdown/dropdown-item.d.ts +8 -0
  30. package/lib/dropdown/dropdown.d.ts +22 -3
  31. package/lib/file-upload-card/file-upload-card.d.ts +9 -0
  32. package/lib/file-upload-input/file-upload-input.d.ts +7 -1
  33. package/lib/filter-chip/filter-chip.d.ts +10 -2
  34. package/lib/footer/footer.d.ts +7 -2
  35. package/lib/footer-meta-section/footer-meta-section.d.ts +3 -0
  36. package/lib/footer-nav-section/footer-nav-section.d.ts +6 -1
  37. package/lib/form/fieldset.d.ts +7 -1
  38. package/lib/form/public-form-page.d.ts +13 -5
  39. package/lib/form/public-form-summary.d.ts +2 -0
  40. package/lib/form/public-form.d.ts +8 -1
  41. package/lib/form/public-subform-index.d.ts +7 -1
  42. package/lib/form/public-subform.d.ts +8 -1
  43. package/lib/form/task-list.d.ts +4 -1
  44. package/lib/form/task.d.ts +4 -1
  45. package/lib/form-item/form-item.d.ts +13 -6
  46. package/lib/form-step/form-step.d.ts +3 -0
  47. package/lib/form-stepper/form-stepper.d.ts +5 -0
  48. package/lib/grid/grid.d.ts +6 -1
  49. package/lib/hero-banner/hero-banner-actions.d.ts +2 -0
  50. package/lib/hero-banner/hero-banner.d.ts +9 -0
  51. package/lib/icon/icon.d.ts +10 -0
  52. package/lib/icon-button/icon-button.d.ts +18 -2
  53. package/lib/input/input.d.ts +47 -3
  54. package/lib/linear-progress/linear-progress.d.ts +6 -0
  55. package/lib/link/link.d.ts +11 -1
  56. package/lib/menu-button/menu-action.d.ts +5 -0
  57. package/lib/menu-button/menu-button.d.ts +11 -0
  58. package/lib/microsite-header/microsite-header.d.ts +9 -0
  59. package/lib/modal/modal.d.ts +10 -0
  60. package/lib/notification/notification.d.ts +9 -0
  61. package/lib/one-column-layout/one-column-layout.d.ts +2 -0
  62. package/lib/page-block/page-block.d.ts +4 -0
  63. package/lib/pages/pages.d.ts +3 -0
  64. package/lib/pagination/pagination.d.ts +9 -2
  65. package/lib/popover/popover.d.ts +11 -5
  66. package/lib/push-drawer/push-drawer.d.ts +10 -2
  67. package/lib/radio-group/radio-group.d.ts +12 -0
  68. package/lib/radio-group/radio.d.ts +14 -0
  69. package/lib/side-menu/side-menu.d.ts +4 -1
  70. package/lib/side-menu-group/side-menu-group.d.ts +5 -0
  71. package/lib/side-menu-heading/side-menu-heading.d.ts +7 -2
  72. package/lib/skeleton/skeleton.d.ts +7 -1
  73. package/lib/spacer/spacer.d.ts +4 -0
  74. package/lib/spinner/spinner.d.ts +6 -0
  75. package/lib/tab/tab.d.ts +6 -1
  76. package/lib/table/table-sort-header.d.ts +5 -0
  77. package/lib/table/table.d.ts +9 -0
  78. package/lib/tabs/tabs.d.ts +8 -1
  79. package/lib/temporary-notification-ctrl/temporary-notification-ctrl.d.ts +4 -0
  80. package/lib/text/text.d.ts +8 -1
  81. package/lib/textarea/textarea.d.ts +20 -0
  82. package/lib/three-column-layout/three-column-layout.d.ts +11 -1
  83. package/lib/tooltip/tooltip.d.ts +7 -0
  84. package/lib/two-column-layout/two-column-layout.d.ts +9 -2
  85. package/lib/work-side-menu/work-side-menu.d.ts +12 -0
  86. package/lib/work-side-menu-group/work-side-menu-group.d.ts +6 -0
  87. package/lib/work-side-menu-item/work-side-menu-item.d.ts +11 -0
  88. package/lib/work-side-notification-item/work-side-notification-item.d.ts +10 -1
  89. package/lib/work-side-notification-panel/work-side-notification-panel.d.ts +7 -0
  90. package/package.json +1 -1
@@ -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;
@@ -19,17 +19,29 @@ declare module "react" {
19
19
  }
20
20
  }
21
21
  export interface GoabWorkSideMenuProps {
22
+ /** @required The application name displayed in the header. */
22
23
  heading: string;
24
+ /** @required URL for the header link. Clicking the logo/heading navigates to this URL. */
23
25
  url: string;
26
+ /** User's name displayed in the profile section. */
24
27
  userName?: string;
28
+ /** Secondary text displayed below the user's name, such as role or email. */
25
29
  userSecondaryText?: string;
30
+ /** Sets a data-testid attribute for automated testing. */
26
31
  testId?: string;
32
+ /** Content rendered in the primary navigation slot. */
27
33
  primaryContent?: ReactNode;
34
+ /** Content rendered in the secondary navigation slot. */
28
35
  secondaryContent?: ReactNode;
36
+ /** Content rendered in the account/profile slot. */
29
37
  accountContent?: ReactNode;
38
+ /** Controls whether the side menu is expanded or collapsed. */
30
39
  open?: boolean;
40
+ /** Callback fired when the side menu is toggled open or closed. */
31
41
  onToggle?: () => void;
42
+ /** Callback fired when a menu item is navigated, providing the target URL path. */
32
43
  onNavigate?: (path: string) => void;
33
44
  }
45
+ /** Side menu variant for worker applications. */
34
46
  export declare function GoabWorkSideMenu({ heading, url, userName, userSecondaryText, testId, primaryContent, secondaryContent, accountContent, open, onToggle, onNavigate, }: GoabWorkSideMenuProps): JSX.Element;
35
47
  export default GoabWorkSideMenu;
@@ -14,11 +14,17 @@ declare module "react" {
14
14
  }
15
15
  }
16
16
  export interface GoabWorkSideMenuGroupProps {
17
+ /** @required The text displayed in the group heading. */
17
18
  heading: string;
19
+ /** Icon displayed before the group label. When omitted, no icon is rendered and no space is reserved. */
18
20
  icon?: GoabIconType;
21
+ /** Whether the group is open. */
19
22
  open?: boolean;
23
+ /** Sets a data-testid attribute for automated testing. */
20
24
  testId?: string;
25
+ /** Content rendered inside the group, typically WorkSideMenuItem components. */
21
26
  children?: React.ReactNode;
22
27
  }
28
+ /** Collapsible group of items within the work side menu. */
23
29
  export declare function GoabWorkSideMenuGroup(props: GoabWorkSideMenuGroupProps): JSX.Element;
24
30
  export default GoabWorkSideMenuGroup;
@@ -18,16 +18,27 @@ declare module "react" {
18
18
  }
19
19
  }
20
20
  export interface GoabWorkSideMenuItemProps {
21
+ /** @required The text label displayed for the menu item. */
21
22
  label: string;
23
+ /** The URL the menu item links to. When absent, renders as a button instead of a link. */
22
24
  url?: string;
25
+ /** Badge text displayed alongside the menu item (e.g., notification count). */
23
26
  badge?: string;
27
+ /** When true, indicates this is the currently active menu item. */
24
28
  current?: boolean;
29
+ /** When true, displays a divider line above this menu item. */
25
30
  divider?: boolean;
31
+ /** Icon displayed before the menu item label. */
26
32
  icon?: string;
33
+ /** Sets a data-testid attribute for automated testing. */
27
34
  testId?: string;
35
+ /** Sets the visual style of the badge. Use "emergency" for urgent items, "success" for positive status. @default "normal" */
28
36
  type?: GoabWorkSideMenuItemType;
37
+ /** Content rendered inside the menu item. */
29
38
  children?: React.ReactNode;
39
+ /** Content rendered inside the popover panel attached to this menu item. */
30
40
  popoverContent?: React.ReactNode;
31
41
  }
42
+ /** Individual menu item within the work side menu. */
32
43
  export declare function GoabWorkSideMenuItem(props: GoabWorkSideMenuItemProps): JSX.Element;
33
44
  export default GoabWorkSideMenuItem;
@@ -18,14 +18,23 @@ declare module "react" {
18
18
  }
19
19
  }
20
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" */
21
24
  type?: GoabWorkSideNotificationItemType;
25
+ /** ISO timestamp string representing when the notification occurred. */
22
26
  timestamp?: string;
27
+ /** Title text displayed in the notification card header. */
23
28
  title?: string;
24
- description: string;
29
+ /** Indicates whether the notification has been read or is unread. @default "unread" */
25
30
  readStatus?: GoabWorkSideNotificationReadStatus;
31
+ /** Sets the urgency level of the notification. @default "normal" */
26
32
  priority?: GoabWorkSideNotificationPriority;
33
+ /** Sets a data-testid attribute for automated testing. */
27
34
  testId?: string;
35
+ /** Callback fired when the notification item is clicked. */
28
36
  onClick?: () => void;
29
37
  }
38
+ /** Displays an individual notification item in the work-side notification panel. */
30
39
  export declare function GoabWorkSideNotificationItem({ type, timestamp, title, description, readStatus, priority, testId, onClick, }: GoabWorkSideNotificationItemProps): JSX.Element;
31
40
  export default GoabWorkSideNotificationItem;
@@ -14,12 +14,19 @@ declare module "react" {
14
14
  }
15
15
  }
16
16
  export interface GoabWorkSideNotificationPanelProps {
17
+ /** Sets the panel heading text. @default "Notifications" */
17
18
  heading?: string;
19
+ /** Sets the initially active tab. @default "unread" */
18
20
  activeTab?: GoabWorkSideNotificationActiveTabType;
21
+ /** Sets a data-testid attribute for automated testing. */
19
22
  testId?: string;
23
+ /** Notification item content rendered inside the panel. */
20
24
  children?: ReactNode;
25
+ /** Callback fired when the "Mark all as read" button is clicked. */
21
26
  onMarkAllRead?: () => void;
27
+ /** Callback fired when the "View all" button is clicked. */
22
28
  onViewAll?: () => void;
23
29
  }
30
+ /** Displays a panel of work-side notifications. */
24
31
  export declare function GoabWorkSideNotificationPanel({ heading, activeTab, testId, children, onMarkAllRead, onViewAll, }: GoabWorkSideNotificationPanelProps): JSX.Element;
25
32
  export default GoabWorkSideNotificationPanel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "7.0.0-dev.5",
3
+ "version": "7.0.0-dev.6",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"