@abgov/react-components 7.0.0-dev.1 → 7.0.0-dev.11

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 (91) 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 +13 -0
  52. package/lib/icon-button/icon-button.d.ts +18 -2
  53. package/lib/input/input.d.ts +48 -4
  54. package/lib/linear-progress/linear-progress.d.ts +6 -0
  55. package/lib/link/link.d.ts +11 -1
  56. package/lib/link-button/link-button.d.ts +3 -0
  57. package/lib/menu-button/menu-action.d.ts +5 -0
  58. package/lib/menu-button/menu-button.d.ts +11 -0
  59. package/lib/microsite-header/microsite-header.d.ts +9 -0
  60. package/lib/modal/modal.d.ts +10 -0
  61. package/lib/notification/notification.d.ts +9 -0
  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 +9 -2
  66. package/lib/popover/popover.d.ts +11 -5
  67. package/lib/push-drawer/push-drawer.d.ts +10 -2
  68. package/lib/radio-group/radio-group.d.ts +12 -0
  69. package/lib/radio-group/radio.d.ts +14 -0
  70. package/lib/side-menu/side-menu.d.ts +4 -1
  71. package/lib/side-menu-group/side-menu-group.d.ts +5 -0
  72. package/lib/side-menu-heading/side-menu-heading.d.ts +7 -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 +5 -0
  78. package/lib/table/table.d.ts +9 -0
  79. package/lib/tabs/tabs.d.ts +8 -1
  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 +20 -0
  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 +12 -0
  87. package/lib/work-side-menu-group/work-side-menu-group.d.ts +6 -0
  88. package/lib/work-side-menu-item/work-side-menu-item.d.ts +11 -0
  89. package/lib/work-side-notification-item/work-side-notification-item.d.ts +10 -1
  90. package/lib/work-side-notification-panel/work-side-notification-panel.d.ts +7 -0
  91. package/package.json +1 -1
@@ -3,7 +3,7 @@ import { GoabAccordionHeadingSize, GoabAccordionIconPosition, Margins, DataAttri
3
3
  interface WCProps extends Margins {
4
4
  open?: string;
5
5
  headingsize?: GoabAccordionHeadingSize;
6
- heading: string;
6
+ heading?: string;
7
7
  secondarytext?: string;
8
8
  headingContent?: ReactNode;
9
9
  maxwidth?: string;
@@ -20,16 +20,27 @@ declare module "react" {
20
20
  }
21
21
  }
22
22
  export interface GoabAccordionProps extends Margins, DataAttributes {
23
+ /** Sets the heading text. */
24
+ heading?: string;
25
+ /** Sets the state of the accordion container open or closed. */
23
26
  open?: boolean;
27
+ /** Sets the heading size of the accordion container heading. @default "small" */
24
28
  headingSize?: GoabAccordionHeadingSize;
29
+ /** Sets secondary text displayed alongside the heading. */
25
30
  secondaryText?: string;
26
- heading: string;
31
+ /** Sets content rendered within the accordion heading, alongside the heading text. */
27
32
  headingContent?: ReactNode;
33
+ /** Sets the maximum width of the accordion. @default "none" */
28
34
  maxWidth?: string;
35
+ /** Sets a data-testid attribute for automated testing. */
29
36
  testId?: string;
37
+ /** Sets the position of the expand/collapse icon. @default "left" */
30
38
  iconPosition?: GoabAccordionIconPosition;
39
+ /** Callback fired when the accordion is opened or closed. Receives the new open state as a boolean. */
31
40
  onChange?: (open: boolean) => void;
41
+ /** Content rendered inside the accordion body. */
32
42
  children?: ReactNode;
33
43
  }
44
+ /** Let users show and hide sections of related content on a page. */
34
45
  export declare function GoabAccordion({ open, onChange, headingContent, children, ...rest }: GoabAccordionProps): JSX.Element;
35
46
  export default GoabAccordion;
@@ -20,14 +20,23 @@ declare module "react" {
20
20
  }
21
21
  }
22
22
  export interface GoabAppHeaderProps extends DataAttributes {
23
+ /** Set the service name to display in the app header. */
23
24
  heading?: string;
25
+ /** V2 only: Secondary text displayed under the service name. */
24
26
  secondaryText?: string;
27
+ /** Set the URL to link from the alberta.ca logo. A full url is required. */
25
28
  url?: string;
29
+ /** Maximum width of the content area. */
26
30
  maxContentWidth?: string;
31
+ /** Sets the breakpoint in px for the full menu to display. */
27
32
  fullMenuBreakpoint?: number;
33
+ /** Content rendered inside the app header, typically navigation links. */
28
34
  children?: React.ReactNode;
35
+ /** Callback fired when the menu button is clicked. When provided, clicking the menu button dispatches a custom event instead of toggling the menu. */
29
36
  onMenuClick?: () => void;
37
+ /** Sets a data-testid attribute for automated testing. */
30
38
  testId?: string;
31
39
  }
40
+ /** Provide structure to help users find their way around the service. */
32
41
  export declare function GoabAppHeader({ onMenuClick, children, secondaryText, ...rest }: GoabAppHeaderProps): JSX.Element;
33
42
  export {};
@@ -13,11 +13,17 @@ declare module "react" {
13
13
  }
14
14
  }
15
15
  export interface GoabAppHeaderMenuProps extends DataAttributes {
16
+ /** @required The menu heading text displayed as the dropdown trigger. */
16
17
  heading: string;
18
+ /** Icon displayed before the heading text. */
17
19
  leadingIcon?: GoabIconType;
20
+ /** Sets a data-testid attribute for automated testing. */
18
21
  testId?: string;
22
+ /** Slot name used to place this menu in the correct slot of the parent component. */
19
23
  slotName?: string;
24
+ /** Content rendered inside the menu dropdown, typically navigation links. */
20
25
  children?: ReactNode;
21
26
  }
27
+ /** Menu items within the app header. */
22
28
  export declare function GoabAppHeaderMenu({ children, slotName, ...rest }: GoabAppHeaderMenuProps): import("react/jsx-runtime").JSX.Element;
23
29
  export default GoabAppHeaderMenu;
@@ -19,14 +19,23 @@ declare module "react" {
19
19
  }
20
20
  }
21
21
  export interface GoabBadgeProps extends Margins, DataAttributes {
22
+ /** @required Sets the context and colour of the badge. */
22
23
  type: GoabBadgeType;
24
+ /** @deprecated Use iconType instead. When true, displays an icon in the badge. */
23
25
  icon?: boolean;
26
+ /** Text label of the badge. */
24
27
  content?: string;
28
+ /** Sets a data-testid attribute for automated testing. */
25
29
  testId?: string;
30
+ /** Accessible label for screen readers. */
26
31
  ariaLabel?: string;
32
+ /** Icon type to display in the badge. */
27
33
  iconType?: GoabIconType;
34
+ /** Sets the size of the badge. @default "medium" */
28
35
  size?: GoabBadgeSize;
36
+ /** Sets the visual emphasis. 'subtle' for less prominent, 'strong' for more emphasis. @default "strong" */
29
37
  emphasis?: GoabBadgeEmphasis;
30
38
  }
39
+ /** Small labels which hold small amounts of information, system feedback, or states. */
31
40
  export declare function GoabBadge({ icon, iconType, size, emphasis, ...rest }: GoabBadgeProps): JSX.Element;
32
41
  export {};
@@ -17,13 +17,22 @@ declare module "react" {
17
17
  }
18
18
  }
19
19
  export interface GoabBlockProps extends Margins, DataAttributes {
20
+ /** Spacing between items. Uses design system spacing tokens. @default "m" */
20
21
  gap?: Spacing;
22
+ /** Stacking direction of child components. @default "row" */
21
23
  direction?: GoabBlockDirection;
24
+ /** Primary axis alignment of child components. @default "normal" */
22
25
  alignment?: GoabBlockAlignment;
26
+ /** Sets the minimum width of the block container. */
23
27
  minWidth?: string;
28
+ /** Sets the maximum width of the block container. */
24
29
  maxWidth?: string;
30
+ /** Sets the width of the block container. */
25
31
  width?: string;
32
+ /** Sets a data-testid attribute for automated testing. */
26
33
  testId?: string;
34
+ /** Content rendered inside the block container. */
27
35
  children?: ReactNode;
28
36
  }
37
+ /** Group components into a block with consistent space between. */
29
38
  export declare function GoabBlock({ testId, children, ...rest }: GoabBlockProps): import("react/jsx-runtime").JSX.Element;
@@ -24,19 +24,33 @@ declare module "react" {
24
24
  }
25
25
  }
26
26
  export interface GoabButtonProps extends Margins, DataAttributes {
27
+ /** Sets the visual style of the button. Use "primary" for main actions, "secondary" for alternative actions, "tertiary" for low-emphasis actions, "start" for prominent call-to-action buttons, and "text" for text-only buttons. @default "primary" */
27
28
  type?: GoabButtonType;
29
+ /** Controls the size of the button. Use "compact" for inline actions or space-constrained layouts. @default "normal" */
28
30
  size?: GoabButtonSize;
31
+ /** Sets the color variant for semantic meaning. Use "destructive" for delete or irreversible actions, "inverse" for light-colored text on dark backgrounds, and "dark" for dark text color on text buttons only. Note: "dark" has no effect on non-text button types. @default "normal" */
29
32
  variant?: GoabButtonVariant;
33
+ /** When true, prevents user interaction and applies disabled styling. */
30
34
  disabled?: boolean;
35
+ /** Icon displayed before the button text. */
31
36
  leadingIcon?: GoabIconType;
37
+ /** Icon displayed after the button text. */
32
38
  trailingIcon?: GoabIconType;
39
+ /** Sets a custom width for the button (e.g., "200px" or "100%"). */
33
40
  width?: string;
41
+ /** Callback fired when the button is clicked. */
34
42
  onClick?: () => void;
43
+ /** Sets a data-testid attribute for automated testing. */
35
44
  testId?: string;
45
+ /** Action identifier passed in click events for event delegation patterns. */
36
46
  action?: string;
47
+ /** Multiple argument values passed with the action in click events. */
37
48
  actionArgs?: Record<string, unknown>;
49
+ /** Single argument value passed with the action in click events. */
38
50
  actionArg?: string;
51
+ /** Content rendered inside the button. */
39
52
  children?: ReactNode;
40
53
  }
54
+ /** Carry out an important action or navigate to another page. */
41
55
  export declare function GoabButton({ disabled, onClick, actionArgs, actionArg, children, ...rest }: GoabButtonProps): JSX.Element;
42
56
  export default GoabButton;
@@ -13,10 +13,15 @@ declare module "react" {
13
13
  }
14
14
  }
15
15
  export interface GoabButtonGroupProps extends Margins, DataAttributes {
16
+ /** @required Positions the button group in the page layout. */
16
17
  alignment: GoabButtonGroupAlignment;
18
+ /** Sets the spacing between buttons in the button group. @default "relaxed" */
17
19
  gap?: GoabButtonGroupGap;
20
+ /** Sets a data-testid attribute for automated testing. */
18
21
  testId?: string;
22
+ /** Button components to render inside the group. */
19
23
  children?: React.ReactNode;
20
24
  }
25
+ /** Display multiple related actions stacked or in a horizontal row to help with arrangement and spacing. */
21
26
  export declare function GoabButtonGroup({ children, ...rest }: GoabButtonGroupProps): JSX.Element;
22
27
  export default GoabButtonGroup;
@@ -18,12 +18,19 @@ declare module "react" {
18
18
  }
19
19
  }
20
20
  export interface GoabCalendarProps extends Margins, DataAttributes {
21
+ /** @required Callback fired when the selected date changes. */
22
+ onChange: (details: GoabCalendarOnChangeDetail) => void;
23
+ /** Name identifier for the calendar, included in change events. */
21
24
  name?: string;
25
+ /** The currently selected date value in YYYY-MM-DD format. */
22
26
  value?: string;
27
+ /** The minimum selectable date in YYYY-MM-DD format. Defaults to 5 years in the past. */
23
28
  min?: string;
29
+ /** The maximum selectable date in YYYY-MM-DD format. Defaults to 5 years in the future. */
24
30
  max?: string;
31
+ /** Sets a data-testid attribute for automated testing. */
25
32
  testId?: string;
26
- onChange: (details: GoabCalendarOnChangeDetail) => void;
27
33
  }
34
+ /** Visual calendar for date selection. */
28
35
  export declare function GoabCalendar({ min, max, onChange, name, ...rest }: GoabCalendarProps): JSX.Element;
29
36
  export default GoabCalendar;
@@ -18,15 +18,25 @@ declare module "react" {
18
18
  }
19
19
  }
20
20
  export interface GoabCalloutProps extends Margins, DataAttributes {
21
+ /** Callout heading text. */
21
22
  heading?: string;
23
+ /** Sets the context and colour of the callout. @default "information" */
22
24
  type?: GoabCalloutType;
25
+ /** Sets the size of the callout. 'medium' has reduced padding and type size for compact areas. @default "large" */
23
26
  size?: GoabCalloutSize;
27
+ /** Sets the icon theme. 'outline' for stroked icons, 'filled' for solid icons. @default "outline" */
24
28
  iconTheme?: GoabCalloutIconTheme;
29
+ /** Sets the visual prominence. 'high' for full background, 'medium' for subtle, 'low' for minimal. @default "medium" */
25
30
  emphasis?: GoabCalloutEmphasis;
31
+ /** Sets the maximum width of the callout. */
26
32
  maxWidth?: string;
33
+ /** Sets a data-testid attribute for automated testing. */
27
34
  testId?: string;
35
+ /** Indicates how assistive technology should handle updates to the live region. @default "off" */
28
36
  ariaLive?: GoabCalloutAriaLive;
37
+ /** Content rendered inside the callout body. */
29
38
  children?: React.ReactNode;
30
39
  }
40
+ /** Communicate important information through a strong visual emphasis. */
31
41
  export declare const GoabCallout: ({ type, iconTheme, size, ariaLive, emphasis, children, ...rest }: GoabCalloutProps) => import("react/jsx-runtime").JSX.Element;
32
42
  export default GoabCallout;
@@ -8,7 +8,9 @@ declare module "react" {
8
8
  }
9
9
  }
10
10
  export interface GoabCardActionsProps extends DataAttributes {
11
+ /** Content rendered inside the card actions area, typically action buttons. */
11
12
  children?: React.ReactNode;
12
13
  }
14
+ /** A container that groups related content and actions. */
13
15
  export declare function GoabCardActions({ children, ...rest }: GoabCardActionsProps): JSX.Element;
14
16
  export default GoabCardActions;
@@ -8,7 +8,9 @@ declare module "react" {
8
8
  }
9
9
  }
10
10
  export interface GoabCardContentProps extends DataAttributes {
11
+ /** Content rendered inside the card content area. */
11
12
  children?: React.ReactNode;
12
13
  }
14
+ /** A container that groups related content and actions. */
13
15
  export declare function GoabCardContent({ children, ...rest }: GoabCardContentProps): JSX.Element;
14
16
  export default GoabCardContent;
@@ -8,7 +8,9 @@ declare module "react" {
8
8
  }
9
9
  }
10
10
  export interface GoabCardGroupProps extends DataAttributes {
11
+ /** Content rendered inside the card group, typically multiple Card components. */
11
12
  children?: React.ReactNode;
12
13
  }
14
+ /** A container that groups related content and actions. */
13
15
  export declare function GoabCardGroup({ children, ...rest }: GoabCardGroupProps): JSX.Element;
14
16
  export default GoabCardGroup;
@@ -12,8 +12,11 @@ declare module "react" {
12
12
  }
13
13
  }
14
14
  export interface GoabCardImageProps extends DataAttributes {
15
+ /** @required The URL of the image to display. */
15
16
  src: string;
17
+ /** @required Height of the image container. Accepts CSS values like "200px" or "100%". */
16
18
  height: string;
17
19
  }
20
+ /** A container that groups related content and actions. */
18
21
  export declare function GoabCardImage(props: GoabCardImageProps): JSX.Element;
19
22
  export default GoabCardImage;
@@ -14,10 +14,15 @@ declare module "react" {
14
14
  }
15
15
  }
16
16
  export interface GoabCardProps extends Margins, DataAttributes {
17
+ /** Adds a shadow to the card. 0 shows a border, 1-3 increase shadow intensity. */
17
18
  elevation?: number;
19
+ /** Sets the width of the card. @default "100%" */
18
20
  width?: string;
21
+ /** Sets a data-testid attribute for automated testing. */
19
22
  testId?: string;
23
+ /** Content rendered inside the card. */
20
24
  children?: React.ReactNode;
21
25
  }
26
+ /** A container that groups related content and actions. */
22
27
  export declare function GoabCard({ children, ...rest }: GoabCardProps): JSX.Element;
23
28
  export default GoabCard;
@@ -28,24 +28,42 @@ interface WCProps extends Margins {
28
28
  version?: string;
29
29
  }
30
30
  export interface GoabCheckboxProps extends Margins, DataAttributes {
31
- id?: string;
31
+ /** @required Unique name to identify the checkbox. */
32
32
  name: string;
33
+ /** Sets a unique id for the checkbox element. */
34
+ id?: string;
35
+ /** Marks the checkbox item as selected. */
33
36
  checked?: boolean;
37
+ /** Shows a mixed/partial selection state. Used for 'Select All' checkboxes when some items are selected. */
34
38
  indeterminate?: boolean;
39
+ /** Disable this control. It will not receive focus or events. */
35
40
  disabled?: boolean;
41
+ /** Shows an error on the checkbox item. */
36
42
  error?: boolean;
43
+ /** Label shown beside the checkbox. */
37
44
  text?: string;
45
+ /** The value binding. */
38
46
  value?: string | number | boolean;
47
+ /** Content rendered inside the checkbox label slot. */
39
48
  children?: React.ReactNode;
49
+ /** Sets a data-testid attribute for automated testing. */
40
50
  testId?: string;
51
+ /** Defines how the text will be translated for the screen reader. If not specified it will fall back to the name. */
41
52
  ariaLabel?: string;
53
+ /** Additional description text displayed below the checkbox label. */
42
54
  description?: string | React.ReactNode;
55
+ /** Content revealed when the checkbox is checked. */
43
56
  reveal?: React.ReactNode;
57
+ /** Text announced by screen readers when the reveal slot content is displayed. */
44
58
  revealAriaLabel?: string;
59
+ /** Sets the maximum width of the checkbox. */
45
60
  maxWidth?: string;
61
+ /** Sets the size of the checkbox. 'compact' reduces spacing for dense layouts. @default "default" */
46
62
  size?: GoabCheckboxSize;
63
+ /** Callback fired when the checkbox selection changes. */
47
64
  onChange?: (detail: GoabCheckboxOnChangeDetail) => void;
48
65
  }
49
66
  export type Props = GoabCheckboxProps;
67
+ /** Let the user select one or more options. */
50
68
  export declare function GoabCheckbox({ error, checked, indeterminate, disabled, value, description, reveal, onChange, name, children, size, ...rest }: GoabCheckboxProps): JSX.Element;
51
69
  export default GoabCheckbox;
@@ -19,15 +19,25 @@ declare module "react" {
19
19
  }
20
20
  }
21
21
  export interface GoabCheckboxListProps extends Margins {
22
+ /** @required The name for the checkbox list group. Used as group identifier in change events. */
22
23
  name: string;
24
+ /** Array of currently selected checkbox values. */
23
25
  value?: string[];
26
+ /** Disables all checkboxes in the list. */
24
27
  disabled?: boolean;
28
+ /** Shows an error state on all checkboxes in the list. */
25
29
  error?: boolean;
30
+ /** Sets a data-testid attribute for automated testing. */
26
31
  testId?: string;
32
+ /** Sets the maximum width of the checkbox list container. */
27
33
  maxWidth?: string;
34
+ /** Sets the size of the checkbox list. 'compact' reduces spacing between items. @default "default" */
28
35
  size?: "default" | "compact";
36
+ /** Content rendered inside the checkbox list. */
29
37
  children?: React.ReactNode;
38
+ /** Callback fired when the selected values change. */
30
39
  onChange?: (detail: GoabCheckboxListOnChangeDetail) => void;
31
40
  }
41
+ /** A multiple selection input. */
32
42
  export declare function GoabCheckboxList({ name, value, disabled, error, testId, maxWidth, size, children, onChange, mt, mr, mb, ml, }: GoabCheckboxListProps): JSX.Element;
33
43
  export default GoabCheckboxList;
@@ -18,14 +18,23 @@ declare module "react" {
18
18
  }
19
19
  }
20
20
  export interface GoabChipProps extends Margins, DataAttributes {
21
- onClick?: () => void;
21
+ /** @required @deprecated Use GoAFilterChip instead. The text content displayed in the chip. */
22
+ content: string;
23
+ /** @deprecated Use GoAFilterChip instead. When true, shows a delete icon and makes chip clickable. */
22
24
  deletable?: boolean;
25
+ /** @deprecated Use GoAFilterChip instead. Icon displayed at the start of the chip. */
23
26
  leadingIcon?: string;
27
+ /** @deprecated Use GoAFilterChip instead. The icon theme - outline or filled. */
24
28
  iconTheme?: GoabChipTheme;
29
+ /** @deprecated Use GoAFilterChip instead. Shows an error state on the chip. */
25
30
  error?: boolean;
26
- content: string;
31
+ /** @deprecated Use GoAFilterChip instead. The chip variant style. */
27
32
  variant?: GoabChipVariant;
33
+ /** @deprecated Use GoAFilterChip instead. Sets a data-testid attribute for automated testing. */
28
34
  testId?: string;
35
+ /** Callback fired when the chip is clicked or deleted. */
36
+ onClick?: () => void;
29
37
  }
38
+ /** Compact element for labels, tags, or selections. */
30
39
  export declare const GoabChip: ({ error, deletable, onClick, ...rest }: GoabChipProps) => import("react/jsx-runtime").JSX.Element;
31
40
  export default GoabChip;
@@ -15,12 +15,19 @@ declare module "react" {
15
15
  }
16
16
  }
17
17
  export interface GoabCircularProgressProps {
18
+ /** Controls the display mode. 'fullscreen' stretches across the full screen; 'inline' is used within content. @default "inline" */
18
19
  variant?: GoabCircularProgressVariant;
20
+ /** Sets the size of the progress indicator. @default "large" */
19
21
  size?: GoabCircularProgressSize;
22
+ /** Loading message displayed below the progress indicator. */
20
23
  message?: string;
24
+ /** Controls visibility of the progress indicator, allowing a fade transition to be applied. */
21
25
  visible?: boolean;
26
+ /** Sets the progress value (0–100). When omitted, an infinite spinner is shown. */
22
27
  progress?: number;
28
+ /** Sets a data-testid attribute for automated testing. */
23
29
  testId?: string;
24
30
  }
31
+ /** Provide feedback of progress to users while loading. */
25
32
  export declare const GoabCircularProgress: ({ visible, message, progress, variant, size, testId, }: GoabCircularProgressProps) => import("react/jsx-runtime").JSX.Element;
26
33
  export default GoabCircularProgress;
@@ -18,18 +18,31 @@ declare module "react" {
18
18
  }
19
19
  }
20
20
  export interface GoabContainerProps extends Margins, DataAttributes {
21
- accent?: GoabContainerAccent;
21
+ /** Sets the container and accent bar styling. @default "interactive" */
22
22
  type?: GoabContainerType;
23
- heading?: ReactNode;
24
- title?: ReactNode;
23
+ /** Sets the style of accent on the container. @default "filled" */
24
+ accent?: GoabContainerAccent;
25
+ /** Sets the amount of white space in the container. @default "relaxed" */
25
26
  padding?: GoabContainerPadding;
26
- actions?: ReactNode;
27
- children?: ReactNode;
27
+ /** Sets the width of the container. @default "full" */
28
28
  width?: GoabContainerWidth;
29
+ /** Sets the maximum width of the container. */
29
30
  maxWidth?: string;
31
+ /** Sets the minimum height of the container. */
30
32
  minHeight?: string;
33
+ /** Sets the maximum height of the container. */
31
34
  maxHeight?: string;
35
+ /** Sets a data-testid attribute for automated testing. */
32
36
  testId?: string;
37
+ /** Content rendered in the container's title/heading area. */
38
+ heading?: ReactNode;
39
+ /** @deprecated Use heading instead. Alias for the heading prop. */
40
+ title?: ReactNode;
41
+ /** Content rendered in the container's actions area, typically buttons or controls. */
42
+ actions?: ReactNode;
43
+ /** Content rendered inside the container body. */
44
+ children?: ReactNode;
33
45
  }
46
+ /** Group information, create hierarchy, and show related information. */
34
47
  export declare function GoabContainer({ heading, title, actions, children, ...rest }: GoabContainerProps): JSX.Element;
35
48
  export default GoabContainer;
@@ -12,10 +12,15 @@ declare module "react" {
12
12
  }
13
13
  }
14
14
  export interface GoabDataGridProps {
15
+ /** @required Navigation mode. 'table' navigates like a table (up/down between rows), 'layout' allows wrapping between rows with left/right arrows. */
16
+ keyboardNav: "layout" | "table";
17
+ /** Controls visibility of the keyboard navigation indicator icon. @default "visible" */
15
18
  keyboardIconVisibility?: "visible" | "hidden";
19
+ /** Position of the keyboard navigation indicator icon. @default "left" */
16
20
  keyboardIconPosition?: "left" | "right";
17
- keyboardNav: "layout" | "table";
21
+ /** Content rendered inside the data grid, typically rows and cells. */
18
22
  children?: React.ReactNode;
19
23
  }
24
+ /** Advanced table with sorting and selection. */
20
25
  export declare function GoabDataGrid({ keyboardIconVisibility, keyboardIconPosition, keyboardNav, children, }: GoabDataGridProps): import("react/jsx-runtime").JSX.Element;
21
26
  export default GoabDataGrid;
@@ -23,20 +23,29 @@ declare module "react" {
23
23
  }
24
24
  }
25
25
  export interface GoabDatePickerProps extends Margins, DataAttributes {
26
+ /** Sets the date picker type. 'calendar' shows a calendar popup, 'input' shows just a date input. @default "calendar" */
27
+ type?: GoabDatePickerInputType;
28
+ /** Name of the date field. */
26
29
  name?: string;
30
+ /** Value of the calendar date, as a Date object or an ISO date string (yyyy-mm-dd). */
27
31
  value?: Date | string | undefined;
32
+ /** Sets the input to an error state. */
28
33
  error?: boolean;
34
+ /** Minimum date value allowed. */
29
35
  min?: Date | string;
36
+ /** Maximum date value allowed. */
30
37
  max?: Date | string;
31
- type?: GoabDatePickerInputType;
38
+ /** Sets a data-testid attribute for automated testing. */
32
39
  testId?: string;
33
- /***
34
- * @deprecated This property has no effect and will be removed in a future version
35
- */
40
+ /** @deprecated This property has no effect and will be removed in a future version. */
36
41
  relative?: boolean;
42
+ /** Disables the date picker. */
37
43
  disabled?: boolean;
44
+ /** Sets the width of the date picker input. */
38
45
  width?: string;
46
+ /** Callback fired when the selected date changes. */
39
47
  onChange?: (detail: GoabDatePickerOnChangeDetail) => void;
40
48
  }
49
+ /** Lets users select a date through a calendar without the need to manually type it in a field. */
41
50
  export declare function GoabDatePicker({ value, error, min, max, disabled, relative, onChange, ...rest }: GoabDatePickerProps): JSX.Element;
42
51
  export default GoabDatePicker;
@@ -14,11 +14,17 @@ declare module "react" {
14
14
  }
15
15
  }
16
16
  export interface GoabDetailsProps extends Margins, DataAttributes {
17
+ /** @required The title heading. */
17
18
  heading: string;
19
+ /** @required Content rendered inside the details body. */
20
+ children: ReactNode;
21
+ /** Controls if details is expanded or not. */
18
22
  open?: boolean;
23
+ /** Sets the maximum width of the details. @default "75ch" */
19
24
  maxWidth?: string;
25
+ /** Sets a data-testid attribute for automated testing. */
20
26
  testId?: string;
21
- children: ReactNode;
22
27
  }
28
+ /** Let users reveal more detailed information when they need it. */
23
29
  export declare function GoabDetails({ open, children, ...rest }: GoabDetailsProps): import("react/jsx-runtime").JSX.Element;
24
30
  export default GoabDetails;
@@ -10,7 +10,9 @@ declare module "react" {
10
10
  }
11
11
  }
12
12
  export interface GoabDividerProps extends Margins {
13
+ /** Sets a data-testid attribute for automated testing. */
13
14
  testId?: string;
14
15
  }
16
+ /** Indicate a separation of layout, or to distinguish large chunks of information on a page. */
15
17
  export declare function GoabDivider(props: GoabDividerProps): import("react/jsx-runtime").JSX.Element;
16
18
  export default GoabDivider;
@@ -17,14 +17,23 @@ declare module "react" {
17
17
  }
18
18
  }
19
19
  export interface GoabDrawerProps {
20
+ /** @required The position of the drawer. */
20
21
  position: GoabDrawerPosition;
22
+ /** @required Content rendered inside the drawer body. */
23
+ children: ReactNode;
24
+ /** @required Callback fired when the drawer requests to be closed. */
25
+ onClose: () => void;
26
+ /** Whether the drawer is open. */
21
27
  open?: boolean;
28
+ /** The heading text displayed at the top of the drawer. Accepts a string or a ReactNode for custom heading content. */
22
29
  heading?: string | ReactNode;
30
+ /** Sets max height on bottom position, sets width on left and right position. */
23
31
  maxSize?: GoabDrawerSize;
32
+ /** Sets a data-testid attribute for automated testing. */
24
33
  testId?: string;
34
+ /** Action elements rendered in the drawer footer slot. */
25
35
  actions?: ReactNode;
26
- children: ReactNode;
27
- onClose: () => void;
28
36
  }
37
+ /** A panel that slides in from the side of the screen to display additional content or actions without navigating away from the current view. */
29
38
  export declare function GoabDrawer({ position, open, heading, maxSize, testId, actions, children, onClose, }: GoabDrawerProps): JSX.Element;
30
39
  export default GoabDrawer;
@@ -14,13 +14,21 @@ declare module "react" {
14
14
  }
15
15
  }
16
16
  export interface GoabDropdownItemProps {
17
+ /** @required The value submitted when this item is selected. */
17
18
  value: string;
19
+ /** Display label for the dropdown item. */
18
20
  label?: string;
21
+ /** Text used to filter and match this item in typeahead search. */
19
22
  filter?: string;
23
+ /** Sets a data-testid attribute for automated testing. */
20
24
  testId?: string;
25
+ /** Controls how the item is registered with the parent dropdown. */
21
26
  mountType?: GoabDropdownItemMountType;
27
+ /** @deprecated */
22
28
  name?: string;
23
29
  }
30
+ /** Present a list of options to the user to select from. */
24
31
  export declare function GoabDropdownOption(props: GoabDropdownItemProps): import("react/jsx-runtime").JSX.Element;
32
+ /** Present a list of options to the user to select from. */
25
33
  export declare function GoabDropdownItem({ value, label, filter, name, mountType, }: GoabDropdownItemProps): import("react/jsx-runtime").JSX.Element;
26
34
  export {};
@@ -32,30 +32,49 @@ declare module "react" {
32
32
  }
33
33
  }
34
34
  export interface GoabDropdownProps extends Margins, DataAttributes {
35
+ /** Identifier for the dropdown. Should be unique. */
35
36
  name?: string;
37
+ /** The currently selected value(s) of the dropdown. */
36
38
  value?: string[] | string;
39
+ /** Callback fired when the selected value changes. */
37
40
  onChange?: (detail: GoabDropdownOnChangeDetail) => void;
41
+ /** Defines how the selected value will be translated for the screen reader. If not specified it will fall back to the name. */
38
42
  ariaLabel?: string;
43
+ /** The aria-labelledby attribute identifies the element that labels the dropdown. Normally it is the id of the label. */
39
44
  ariaLabelledBy?: string;
45
+ /** The id attribute for the dropdown element. */
40
46
  id?: string;
47
+ /** Dropdown items rendered inside the dropdown. */
41
48
  children?: React.ReactNode;
49
+ /** Disables the dropdown control. */
42
50
  disabled?: boolean;
51
+ /** Shows an error state on the dropdown. */
43
52
  error?: boolean;
53
+ /** When true, allows filtering options by typing into the input field. */
44
54
  filterable?: boolean;
55
+ /** Icon shown to the left of the dropdown input. */
45
56
  leadingIcon?: GoabIconType;
57
+ /** Maximum height of the dropdown menu. Non-native only. @default "276px" */
46
58
  maxHeight?: string;
59
+ /** When true, allows multiple items to be selected. */
47
60
  multiselect?: boolean;
61
+ /** When true, renders the native select HTML element. */
48
62
  native?: boolean;
63
+ /** The text displayed in the dropdown before a selection is made. Non-native only. */
49
64
  placeholder?: string;
65
+ /** Sets a data-testid attribute for automated testing. */
50
66
  testId?: string;
67
+ /** Overrides the autosized menu width. Non-native only. */
51
68
  width?: string;
69
+ /** Sets the maximum width of the dropdown. Use a CSS unit (px, %, ch, rem, em). */
52
70
  maxWidth?: string;
71
+ /** Specifies the autocomplete attribute for the dropdown input. Native only. */
53
72
  autoComplete?: string;
73
+ /** Sets the size of the dropdown. Compact reduces height for dense layouts. */
54
74
  size?: GoabDropdownSize;
55
- /***
56
- * @deprecated This property has no effect and will be removed in a future version
57
- */
75
+ /** @deprecated This property has no effect and will be removed in a future version. */
58
76
  relative?: boolean;
59
77
  }
78
+ /** Present a list of options to the user to select from. */
60
79
  export declare function GoabDropdown({ value, onChange, disabled, error, filterable, multiselect, native, relative, children, size, ...rest }: GoabDropdownProps): JSX.Element;
61
80
  export default GoabDropdown;