@abgov/react-components 7.5.0 → 8.0.0-dev.1

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 (39) hide show
  1. package/README.md +2 -4
  2. package/index.js +22 -73
  3. package/index.js.map +1 -1
  4. package/index.mjs +22 -73
  5. package/index.mjs.map +1 -1
  6. package/lib/accordion/accordion.d.ts +3 -3
  7. package/lib/app-header/app-header.d.ts +2 -11
  8. package/lib/badge/badge.d.ts +0 -1
  9. package/lib/button/button.d.ts +0 -1
  10. package/lib/button-group/button-group.d.ts +3 -3
  11. package/lib/calendar/calendar.d.ts +0 -1
  12. package/lib/callout/callout.d.ts +2 -6
  13. package/lib/checkbox/checkbox.d.ts +4 -5
  14. package/lib/checkbox-list/checkbox-list.d.ts +7 -5
  15. package/lib/data-grid/data-grid.d.ts +2 -2
  16. package/lib/date-picker/date-picker.d.ts +0 -1
  17. package/lib/drawer/drawer.d.ts +1 -2
  18. package/lib/dropdown/dropdown-item.d.ts +1 -1
  19. package/lib/dropdown/dropdown.d.ts +2 -3
  20. package/lib/file-upload-card/file-upload-card.d.ts +0 -1
  21. package/lib/file-upload-input/file-upload-input.d.ts +0 -1
  22. package/lib/filter-chip/filter-chip.d.ts +0 -1
  23. package/lib/footer/footer.d.ts +0 -4
  24. package/lib/form-item/form-item.d.ts +0 -1
  25. package/lib/input/input.d.ts +3 -4
  26. package/lib/modal/modal.d.ts +0 -1
  27. package/lib/notification/notification.d.ts +0 -1
  28. package/lib/pagination/pagination.d.ts +0 -1
  29. package/lib/push-drawer/push-drawer.d.ts +0 -1
  30. package/lib/radio-group/radio-group.d.ts +3 -4
  31. package/lib/radio-group/radio.d.ts +3 -4
  32. package/lib/side-menu/side-menu.d.ts +0 -1
  33. package/lib/side-menu-group/side-menu-group.d.ts +0 -1
  34. package/lib/side-menu-heading/side-menu-heading.d.ts +0 -1
  35. package/lib/table/table-sort-header.d.ts +0 -1
  36. package/lib/table/table.d.ts +0 -1
  37. package/lib/tabs/tabs.d.ts +0 -1
  38. package/lib/textarea/textarea.d.ts +4 -5
  39. package/package.json +1 -1
@@ -3,7 +3,7 @@ import { GoabAccordionHeadingSize, GoabAccordionIconPosition, GoabAccordionHeadi
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;
@@ -21,8 +21,8 @@ declare module "react" {
21
21
  }
22
22
  }
23
23
  export interface GoabAccordionProps extends Margins, DataAttributes {
24
- /** Sets the heading text. */
25
- heading?: string;
24
+ /** @required Sets the heading text. */
25
+ heading: string;
26
26
  /** Sets the state of the accordion container open or closed. */
27
27
  open?: boolean;
28
28
  /** Sets the heading size of the accordion container heading. @default "small" */
@@ -5,17 +5,12 @@ interface WCProps {
5
5
  secondarytext?: string;
6
6
  url?: string;
7
7
  maxcontentwidth?: string;
8
- fullmenubreakpoint?: number;
9
- hasmenuclickhandler?: string;
10
8
  testid?: string;
11
- version?: string;
12
9
  }
13
10
  declare module "react" {
14
11
  namespace JSX {
15
12
  interface IntrinsicElements {
16
- "goa-app-header": WCProps & React.HTMLAttributes<HTMLElement> & {
17
- ref: React.RefObject<HTMLElement | null>;
18
- };
13
+ "goa-app-header": WCProps & React.HTMLAttributes<HTMLElement>;
19
14
  }
20
15
  }
21
16
  }
@@ -28,12 +23,8 @@ export interface GoabAppHeaderProps extends DataAttributes {
28
23
  url?: string;
29
24
  /** Maximum width of the content area. */
30
25
  maxContentWidth?: string;
31
- /** Sets the breakpoint in px for the full menu to display. */
32
- fullMenuBreakpoint?: number;
33
26
  /** Content rendered inside the app header, typically navigation links. */
34
27
  children?: 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. */
36
- onMenuClick?: () => void;
37
28
  /** Sets a data-testid attribute for automated testing. */
38
29
  testId?: string;
39
30
  /** Banner content displayed above the header. */
@@ -46,5 +37,5 @@ export interface GoabAppHeaderProps extends DataAttributes {
46
37
  utilities?: ReactNode;
47
38
  }
48
39
  /** Provide structure to help users find their way around the service. */
49
- export declare function GoabAppHeader({ onMenuClick, children, secondaryText, banner, phase, navigation, utilities, ...rest }: GoabAppHeaderProps): JSX.Element;
40
+ export declare function GoabAppHeader({ children, secondaryText, banner, phase, navigation, utilities, ...rest }: GoabAppHeaderProps): JSX.Element;
50
41
  export {};
@@ -9,7 +9,6 @@ interface WCProps extends Margins {
9
9
  icontype?: GoabIconType;
10
10
  size?: GoabBadgeSize;
11
11
  emphasis?: GoabBadgeEmphasis;
12
- version?: string;
13
12
  }
14
13
  declare module "react" {
15
14
  namespace JSX {
@@ -13,7 +13,6 @@ interface WCProps extends Margins {
13
13
  action?: string;
14
14
  actionArgs?: string;
15
15
  actionArg?: string;
16
- version?: string;
17
16
  }
18
17
  declare module "react" {
19
18
  namespace JSX {
@@ -13,8 +13,8 @@ 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. */
17
- alignment: GoabButtonGroupAlignment;
16
+ /** Positions the button group in the page layout. @default "start" */
17
+ alignment?: GoabButtonGroupAlignment;
18
18
  /** Sets the spacing between buttons in the button group. @default "relaxed" */
19
19
  gap?: GoabButtonGroupGap;
20
20
  /** Sets a data-testid attribute for automated testing. */
@@ -23,5 +23,5 @@ export interface GoabButtonGroupProps extends Margins, DataAttributes {
23
23
  children?: React.ReactNode;
24
24
  }
25
25
  /** Display multiple related actions stacked or in a horizontal row to help with arrangement and spacing. */
26
- export declare function GoabButtonGroup({ children, ...rest }: GoabButtonGroupProps): JSX.Element;
26
+ export declare function GoabButtonGroup({ children, alignment, ...rest }: GoabButtonGroupProps): JSX.Element;
27
27
  export default GoabButtonGroup;
@@ -6,7 +6,6 @@ interface WCProps extends Margins {
6
6
  min?: string;
7
7
  max?: string;
8
8
  testid?: string;
9
- version?: string;
10
9
  }
11
10
  declare module "react" {
12
11
  namespace JSX {
@@ -1,14 +1,12 @@
1
- import { GoabCalloutAriaLive, GoabCalloutEmphasis, GoabCalloutSize, GoabCalloutType, GoabCalloutIconTheme, Margins, DataAttributes } from '@abgov/ui-components-common';
1
+ import { GoabCalloutAriaLive, GoabCalloutEmphasis, GoabCalloutType, GoabCalloutIconTheme, Margins, DataAttributes } from '@abgov/ui-components-common';
2
2
  interface WCProps extends Margins {
3
3
  heading?: string;
4
4
  type?: GoabCalloutType;
5
- size?: GoabCalloutSize;
6
5
  arialive?: GoabCalloutAriaLive;
7
6
  maxwidth?: string;
8
7
  icontheme?: GoabCalloutIconTheme;
9
8
  emphasis?: GoabCalloutEmphasis;
10
9
  testid?: string;
11
- version?: string;
12
10
  }
13
11
  declare module "react" {
14
12
  namespace JSX {
@@ -22,8 +20,6 @@ export interface GoabCalloutProps extends Margins, DataAttributes {
22
20
  heading?: string;
23
21
  /** Sets the context and colour of the callout. @default "information" */
24
22
  type?: GoabCalloutType;
25
- /** Sets the size of the callout. 'medium' has reduced padding and type size for compact areas. @default "large" */
26
- size?: GoabCalloutSize;
27
23
  /** Sets the icon theme. 'outline' for stroked icons, 'filled' for solid icons. @default "outline" */
28
24
  iconTheme?: GoabCalloutIconTheme;
29
25
  /** Sets the visual prominence. 'high' for full background, 'medium' for subtle, 'low' for minimal. @default "medium" */
@@ -38,5 +34,5 @@ export interface GoabCalloutProps extends Margins, DataAttributes {
38
34
  children?: React.ReactNode;
39
35
  }
40
36
  /** Communicate important information through a strong visual emphasis. */
41
- export declare const GoabCallout: ({ type, iconTheme, size, ariaLive, emphasis, children, ...rest }: GoabCalloutProps) => import("react/jsx-runtime").JSX.Element;
37
+ export declare const GoabCallout: ({ type, iconTheme, ariaLive, emphasis, children, ...rest }: GoabCalloutProps) => import("react/jsx-runtime").JSX.Element;
42
38
  export default GoabCallout;
@@ -11,7 +11,7 @@ declare module "react" {
11
11
  }
12
12
  interface WCProps extends Margins {
13
13
  id?: string;
14
- name: string;
14
+ name?: string;
15
15
  checked?: string;
16
16
  indeterminate?: string;
17
17
  disabled?: string;
@@ -25,11 +25,10 @@ interface WCProps extends Margins {
25
25
  maxwidth?: string;
26
26
  testid?: string;
27
27
  size?: GoabCheckboxSize;
28
- version?: string;
29
28
  }
30
29
  export interface GoabCheckboxProps extends Margins, DataAttributes {
31
- /** @required Unique name to identify the checkbox. */
32
- name: string;
30
+ /** Unique name to identify the checkbox. If omitted, a unique name is generated. */
31
+ name?: string;
33
32
  /** Sets a unique id for the checkbox element. */
34
33
  id?: string;
35
34
  /** Marks the checkbox item as selected. */
@@ -48,7 +47,7 @@ export interface GoabCheckboxProps extends Margins, DataAttributes {
48
47
  children?: React.ReactNode;
49
48
  /** Sets a data-testid attribute for automated testing. */
50
49
  testId?: string;
51
- /** Defines how the text will be translated for the screen reader. If not specified it will fall back to the name. */
50
+ /** Defines how the text will be translated for the screen reader. If not specified it will fall back to the checkbox text. */
52
51
  ariaLabel?: string;
53
52
  /** Additional description text displayed below the checkbox label. */
54
53
  description?: string | React.ReactNode;
@@ -2,14 +2,14 @@ import { GoabCheckboxListOnBlurDetail, GoabCheckboxListOnChangeDetail, GoabCheck
2
2
  import { JSX } from 'react';
3
3
  interface WCProps extends Margins {
4
4
  ref: React.RefObject<HTMLElement | null>;
5
- name: string;
5
+ name?: string;
6
6
  value?: string[];
7
7
  disabled?: string;
8
8
  error?: string;
9
9
  testid?: string;
10
10
  maxwidth?: string;
11
- version?: string;
12
11
  size?: string;
12
+ arialabel?: string;
13
13
  }
14
14
  declare module "react" {
15
15
  namespace JSX {
@@ -19,8 +19,8 @@ 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. */
23
- name: string;
22
+ /** The name for the checkbox list group. Used as group identifier in change events. If omitted, a unique name is generated. */
23
+ name?: string;
24
24
  /** Array of currently selected checkbox values. */
25
25
  value?: string[];
26
26
  /** Disables all checkboxes in the list. */
@@ -33,6 +33,8 @@ export interface GoabCheckboxListProps extends Margins {
33
33
  maxWidth?: string;
34
34
  /** Sets the size of the checkbox list. 'compact' reduces spacing between items. @default "default" */
35
35
  size?: "default" | "compact";
36
+ /** Defines how the input will be translated for the screen reader. */
37
+ ariaLabel?: string;
36
38
  /** Content rendered inside the checkbox list. */
37
39
  children?: React.ReactNode;
38
40
  /** Callback fired when the selected values change. */
@@ -43,5 +45,5 @@ export interface GoabCheckboxListProps extends Margins {
43
45
  onBlur?: (detail: GoabCheckboxListOnBlurDetail) => void;
44
46
  }
45
47
  /** A multiple selection input. */
46
- export declare function GoabCheckboxList({ name, value, disabled, error, testId, maxWidth, size, children, onChange, onFocus, onBlur, mt, mr, mb, ml, }: GoabCheckboxListProps): JSX.Element;
48
+ export declare function GoabCheckboxList({ name, value, disabled, error, testId, maxWidth, size, ariaLabel, children, onChange, onFocus, onBlur, mt, mr, mb, ml, }: GoabCheckboxListProps): JSX.Element;
47
49
  export default GoabCheckboxList;
@@ -12,8 +12,8 @@ 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";
15
+ /** Navigation mode. 'table' navigates like a table (up/down between rows), 'layout' allows wrapping between rows with left/right arrows. @default "table" */
16
+ keyboardNav?: "layout" | "table";
17
17
  /** Controls visibility of the keyboard navigation indicator icon. @default "visible" */
18
18
  keyboardIconVisibility?: "visible" | "hidden";
19
19
  /** Position of the keyboard navigation indicator icon. @default "left" */
@@ -11,7 +11,6 @@ interface WCProps extends Margins {
11
11
  disabled?: string;
12
12
  testid?: string;
13
13
  width?: string;
14
- version?: string;
15
14
  }
16
15
  declare module "react" {
17
16
  namespace JSX {
@@ -7,7 +7,6 @@ interface WCProps {
7
7
  maxsize?: GoabDrawerSize;
8
8
  testid?: string;
9
9
  ref: React.RefObject<HTMLElement | null>;
10
- version?: string;
11
10
  }
12
11
  declare module "react" {
13
12
  namespace JSX {
@@ -23,7 +22,7 @@ export interface GoabDrawerProps {
23
22
  children: ReactNode;
24
23
  /** @required Callback fired when the drawer requests to be closed. */
25
24
  onClose: () => void;
26
- /** Whether the drawer is open. */
25
+ /** Whether the drawer is open. @default false */
27
26
  open?: boolean;
28
27
  /** The heading text displayed at the top of the drawer. Accepts a string or a ReactNode for custom heading content. */
29
28
  heading?: string | ReactNode;
@@ -15,7 +15,7 @@ declare module "react" {
15
15
  }
16
16
  }
17
17
  export interface GoabDropdownItemProps {
18
- /** @required The value submitted when this item is selected. */
18
+ /** @required The value submitted when this item is selected. Set to an empty string (`""`) to make this item the default selected value. */
19
19
  value: string;
20
20
  /** Display label for the dropdown item. */
21
21
  label?: string;
@@ -21,7 +21,6 @@ interface WCProps extends Margins {
21
21
  autocomplete?: string;
22
22
  testid?: string;
23
23
  size?: GoabDropdownSize;
24
- version?: string;
25
24
  }
26
25
  declare module "react" {
27
26
  namespace JSX {
@@ -33,7 +32,7 @@ declare module "react" {
33
32
  }
34
33
  }
35
34
  export interface GoabDropdownProps extends Margins, DataAttributes {
36
- /** Identifier for the dropdown. Should be unique. */
35
+ /** Identifier for the dropdown. If omitted, a unique name is generated. */
37
36
  name?: string;
38
37
  /** The currently selected value(s) of the dropdown. */
39
38
  value?: string[] | string;
@@ -43,7 +42,7 @@ export interface GoabDropdownProps extends Margins, DataAttributes {
43
42
  onFocus?: (detail: GoabDropdownOnFocusDetail) => void;
44
43
  /** Callback fired when the dropdown loses focus. */
45
44
  onBlur?: (detail: GoabDropdownOnBlurDetail) => void;
46
- /** Defines how the selected value will be translated for the screen reader. If not specified it will fall back to the name. */
45
+ /** Defines how the selected value will be translated for the screen reader. */
47
46
  ariaLabel?: string;
48
47
  /** The aria-labelledby attribute identifies the element that labels the dropdown. Normally it is the id of the label. */
49
48
  ariaLabelledBy?: string;
@@ -6,7 +6,6 @@ interface WCProps {
6
6
  progress?: number;
7
7
  error?: string;
8
8
  testid?: string;
9
- version?: string;
10
9
  }
11
10
  declare module "react" {
12
11
  namespace JSX {
@@ -4,7 +4,6 @@ interface WCProps {
4
4
  accept?: string;
5
5
  maxfilesize?: string;
6
6
  testid?: string;
7
- version?: string;
8
7
  }
9
8
  declare module "react" {
10
9
  namespace JSX {
@@ -8,7 +8,6 @@ interface WCProps extends Margins {
8
8
  secondarytext?: string;
9
9
  leadingicon?: GoabIconType;
10
10
  testid?: string;
11
- version?: string;
12
11
  }
13
12
  declare module "react" {
14
13
  namespace JSX {
@@ -3,8 +3,6 @@ import { DataAttributes } from '@abgov/ui-components-common';
3
3
  interface WCProps {
4
4
  maxcontentwidth?: string;
5
5
  testid?: string;
6
- url?: string;
7
- version?: string;
8
6
  }
9
7
  declare module "react" {
10
8
  namespace JSX {
@@ -16,8 +14,6 @@ declare module "react" {
16
14
  export interface GoabAppFooterProps extends DataAttributes {
17
15
  /** The maximum width of the main content area. */
18
16
  maxContentWidth?: string;
19
- /** URL for the Government of Alberta logo link. Set to empty string to disable the link. @default "https://alberta.ca" */
20
- url?: string;
21
17
  /** Sets a data-testid attribute for automated testing. */
22
18
  testId?: string;
23
19
  /** Content rendered inside the footer, typically navigation and meta sections. */
@@ -12,7 +12,6 @@ interface WCProps extends Margins {
12
12
  id?: string;
13
13
  testid?: string;
14
14
  type?: GoabFormItemType;
15
- version?: string;
16
15
  }
17
16
  declare module "react" {
18
17
  namespace JSX {
@@ -2,7 +2,7 @@ import { JSX } from 'react';
2
2
  import { GoabAutoCapitalize, GoabDate, GoabIconType, GoabInputOnBlurDetail, GoabInputOnChangeDetail, GoabInputOnFocusDetail, GoabInputOnKeyPressDetail, GoabInputSize, GoabInputType, Margins, DataAttributes } from '@abgov/ui-components-common';
3
3
  interface WCProps extends Margins {
4
4
  type?: GoabInputType;
5
- name: string;
5
+ name?: string;
6
6
  value?: string;
7
7
  id?: string;
8
8
  autocapitalize?: GoabAutoCapitalize;
@@ -29,7 +29,6 @@ interface WCProps extends Margins {
29
29
  max?: string | number;
30
30
  step?: number;
31
31
  maxlength?: number;
32
- version?: string;
33
32
  trailingiconarialabel?: string;
34
33
  }
35
34
  declare module "react" {
@@ -42,8 +41,8 @@ declare module "react" {
42
41
  }
43
42
  }
44
43
  interface BaseProps extends Margins, DataAttributes {
45
- /** Name of input value that is received in event detail payloads. */
46
- name: string;
44
+ /** Name of input value that is received in event detail payloads. If omitted, a unique name is generated. */
45
+ name?: string;
47
46
  /** Sets the id attribute of the input element. */
48
47
  id?: string;
49
48
  /** Debounce delay in milliseconds before firing the change event. 0 means no debounce. */
@@ -14,7 +14,6 @@ interface WCProps {
14
14
  transition?: GoabModalTransition;
15
15
  calloutvariant?: GoabModalCalloutVariant;
16
16
  testid?: string;
17
- version?: string;
18
17
  }
19
18
  declare module "react" {
20
19
  namespace JSX {
@@ -7,7 +7,6 @@ interface WCProps {
7
7
  testid?: string;
8
8
  emphasis?: GoabNotificationEmphasis;
9
9
  compact?: string;
10
- version?: string;
11
10
  }
12
11
  declare module "react" {
13
12
  namespace JSX {
@@ -6,7 +6,6 @@ interface WCProps extends Margins {
6
6
  pagenumber: number;
7
7
  variant?: "all" | "links-only";
8
8
  testid?: string;
9
- version?: string;
10
9
  }
11
10
  declare module "react" {
12
11
  namespace JSX {
@@ -4,7 +4,6 @@ interface WCProps {
4
4
  heading?: string;
5
5
  width?: string;
6
6
  testid?: string;
7
- version?: string;
8
7
  ref: React.RefObject<HTMLElement | null>;
9
8
  }
10
9
  declare module "react" {
@@ -2,7 +2,7 @@ import { JSX } from 'react';
2
2
  import { GoabRadioGroupOnBlurDetail, GoabRadioGroupOnChangeDetail, GoabRadioGroupOnFocusDetail, GoabRadioGroupOrientation, GoabRadioGroupSize, Margins, DataAttributes } from '@abgov/ui-components-common';
3
3
  export * from './radio';
4
4
  interface WCProps extends Margins {
5
- name: string;
5
+ name?: string;
6
6
  value?: string;
7
7
  id?: string;
8
8
  orientation?: GoabRadioGroupOrientation;
@@ -11,7 +11,6 @@ interface WCProps extends Margins {
11
11
  arialabel?: string;
12
12
  testid?: string;
13
13
  size?: GoabRadioGroupSize;
14
- version?: string;
15
14
  }
16
15
  declare module "react" {
17
16
  namespace JSX {
@@ -23,8 +22,8 @@ declare module "react" {
23
22
  }
24
23
  }
25
24
  export interface GoabRadioGroupProps extends Margins, DataAttributes {
26
- /** @required The name for the radio group. Used for accessibility and change events. */
27
- name: string;
25
+ /** The name for the radio group. Used for accessibility and change events. If omitted, a unique name is generated. */
26
+ name?: string;
28
27
  /** The currently selected value in the radio group. */
29
28
  value?: string;
30
29
  /** The identifier for the radio group element. */
@@ -2,7 +2,7 @@ import { Margins } from '@abgov/ui-components-common';
2
2
  import { JSX } from 'react';
3
3
  interface WCProps extends Margins {
4
4
  name?: string;
5
- value?: string;
5
+ value: string;
6
6
  description?: string | React.ReactNode;
7
7
  reveal?: React.ReactNode;
8
8
  revealarialabel?: string;
@@ -13,7 +13,6 @@ interface WCProps extends Margins {
13
13
  error?: string;
14
14
  arialabel?: string;
15
15
  compact?: string;
16
- version?: string;
17
16
  }
18
17
  declare module "react" {
19
18
  namespace JSX {
@@ -23,8 +22,8 @@ declare module "react" {
23
22
  }
24
23
  }
25
24
  export interface GoabRadioItemProps extends Margins {
26
- /** The value of this radio option. Will be emitted when selected. */
27
- value?: string;
25
+ /** @required The value of this radio option. Will be emitted when selected. */
26
+ value: string;
28
27
  /** The display label for this radio option. Falls back to value if not provided. */
29
28
  label?: string;
30
29
  /** The name of the radio group. Inherited from the parent RadioGroup if not set. */
@@ -1,7 +1,6 @@
1
1
  import { ReactNode, JSX } from 'react';
2
2
  interface WCProps {
3
3
  testid?: string;
4
- version?: string;
5
4
  }
6
5
  declare module "react" {
7
6
  namespace JSX {
@@ -4,7 +4,6 @@ interface WCProps extends Margins {
4
4
  heading: string;
5
5
  icon?: GoabIconType;
6
6
  testid?: string;
7
- version?: string;
8
7
  }
9
8
  declare module "react" {
10
9
  namespace JSX {
@@ -3,7 +3,6 @@ import { ReactNode } from 'react';
3
3
  interface WCProps {
4
4
  testid?: string;
5
5
  icon?: GoabIconType;
6
- version?: string;
7
6
  }
8
7
  declare module "react" {
9
8
  namespace JSX {
@@ -4,7 +4,6 @@ interface WCProps {
4
4
  name?: string;
5
5
  direction?: GoabTableSortDirection;
6
6
  "sort-order"?: GoabTableSortOrder;
7
- version?: "1" | "2";
8
7
  }
9
8
  declare module "react" {
10
9
  namespace JSX {
@@ -7,7 +7,6 @@ interface WCProps extends Margins {
7
7
  "sort-mode"?: GoabTableSortMode;
8
8
  testid?: string;
9
9
  striped?: string;
10
- version?: string;
11
10
  }
12
11
  declare module "react" {
13
12
  namespace JSX {
@@ -7,7 +7,6 @@ interface WCProps {
7
7
  testid?: string;
8
8
  variant?: GoabTabsVariant;
9
9
  navigation?: GoabTabsNavigation;
10
- version?: string;
11
10
  orientation?: string;
12
11
  }
13
12
  declare module "react" {
@@ -1,7 +1,7 @@
1
1
  import { GoabTextAreaCountBy, GoabTextAreaOnChangeDetail, GoabTextAreaOnKeyPressDetail, GoabTextAreaOnBlurDetail, GoabTextAreaOnFocusDetail, GoabTextAreaSize, Margins, DataAttributes } from '@abgov/ui-components-common';
2
2
  import { JSX } from 'react';
3
3
  interface WCProps extends Margins {
4
- name: string;
4
+ name?: string;
5
5
  value?: string;
6
6
  placeholder?: string;
7
7
  rows?: number;
@@ -16,7 +16,6 @@ interface WCProps extends Margins {
16
16
  autocomplete?: string;
17
17
  testid?: string;
18
18
  size?: GoabTextAreaSize;
19
- version?: string;
20
19
  }
21
20
  declare module "react" {
22
21
  namespace JSX {
@@ -28,8 +27,8 @@ declare module "react" {
28
27
  }
29
28
  }
30
29
  export interface GoabTextAreaProps extends Margins, DataAttributes {
31
- /** @required Name of the input value that is received in the change event. */
32
- name: string;
30
+ /** Name of the input value that is received in the change event. If omitted, a unique name is generated. */
31
+ name?: string;
33
32
  /** Bound to the current value of the textarea. */
34
33
  value?: string;
35
34
  /** Sets the id attribute on the textarea element. */
@@ -50,7 +49,7 @@ export interface GoabTextAreaProps extends Margins, DataAttributes {
50
49
  maxWidth?: string;
51
50
  /** Sets a data-testid attribute for automated testing. */
52
51
  testId?: string;
53
- /** Defines how the text will be translated for the screen reader. If not specified it will fall back to the name. */
52
+ /** Defines how the text will be translated for the screen reader. */
54
53
  ariaLabel?: string;
55
54
  /** Counting interval for characters or words, specifying whether to count every character or word. */
56
55
  countBy?: GoabTextAreaCountBy;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "7.5.0",
3
+ "version": "8.0.0-dev.1",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"