@abgov/react-components 7.4.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 (41) hide show
  1. package/README.md +2 -4
  2. package/index.js +26 -74
  3. package/index.js.map +1 -1
  4. package/index.mjs +26 -74
  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 +5 -3
  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 +3 -4
  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 +5 -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/icon/icon.d.ts +4 -1
  26. package/lib/input/input.d.ts +6 -4
  27. package/lib/modal/modal.d.ts +0 -1
  28. package/lib/notification/notification.d.ts +0 -1
  29. package/lib/pagination/pagination.d.ts +0 -1
  30. package/lib/push-drawer/push-drawer.d.ts +0 -1
  31. package/lib/radio-group/radio-group.d.ts +3 -4
  32. package/lib/radio-group/radio.d.ts +3 -4
  33. package/lib/side-menu/side-menu.d.ts +0 -1
  34. package/lib/side-menu-group/side-menu-group.d.ts +0 -1
  35. package/lib/side-menu-heading/side-menu-heading.d.ts +0 -1
  36. package/lib/table/table-sort-header.d.ts +0 -1
  37. package/lib/table/table.d.ts +0 -1
  38. package/lib/tabs/tabs.d.ts +0 -1
  39. package/lib/text/text.d.ts +1 -1
  40. package/lib/textarea/textarea.d.ts +4 -5
  41. package/package.json +1 -1
@@ -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.4.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"