@abgov/react-components 6.3.0-alpha.3 → 6.3.0-alpha.5

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 (88) hide show
  1. package/experimental/form/form-summary.d.ts +1 -1
  2. package/experimental/form/form.d.ts +2 -2
  3. package/experimental/form/task-list.d.ts +2 -2
  4. package/experimental/form/task.d.ts +1 -1
  5. package/experimental/resizable-panel/ResizablePanel.d.ts +1 -1
  6. package/experimental.js +1 -1
  7. package/experimental.js.map +1 -1
  8. package/experimental.mjs +2 -2
  9. package/experimental.mjs.map +1 -1
  10. package/{icon-BPmPItnm.js → icon-CK55b563.js} +5 -4
  11. package/icon-CK55b563.js.map +1 -0
  12. package/{icon-BNGrU_R_.mjs → icon-CoYGOp1V.mjs} +5 -4
  13. package/icon-CoYGOp1V.mjs.map +1 -0
  14. package/index.d.ts +0 -1
  15. package/index.js +68 -71
  16. package/index.js.map +1 -1
  17. package/index.mjs +68 -71
  18. package/index.mjs.map +1 -1
  19. package/lib/accordion/accordion.d.ts +4 -4
  20. package/lib/app-header/app-header.d.ts +5 -4
  21. package/lib/app-header-menu/app-header-menu.d.ts +1 -1
  22. package/lib/badge/badge.d.ts +3 -2
  23. package/lib/block/block.d.ts +1 -1
  24. package/lib/button/button.d.ts +4 -4
  25. package/lib/button-group/button-group.d.ts +2 -1
  26. package/lib/calendar/calendar.d.ts +3 -2
  27. package/lib/callout/callout.d.ts +1 -1
  28. package/lib/card/card-actions.d.ts +3 -2
  29. package/lib/card/card-content.d.ts +3 -2
  30. package/lib/card/card-group.d.ts +3 -2
  31. package/lib/card/card-image.d.ts +3 -2
  32. package/lib/card/card.d.ts +2 -1
  33. package/lib/checkbox/checkbox.d.ts +7 -6
  34. package/lib/chip/chip.d.ts +6 -6
  35. package/lib/circular-progress/circular-progress.d.ts +1 -1
  36. package/lib/container/container.d.ts +2 -2
  37. package/lib/date-picker/date-picker.d.ts +6 -5
  38. package/lib/details/details.d.ts +2 -2
  39. package/lib/divider/divider.d.ts +1 -1
  40. package/lib/drawer/drawer.d.ts +6 -6
  41. package/lib/dropdown/dropdown-item.d.ts +2 -2
  42. package/lib/dropdown/dropdown.d.ts +9 -8
  43. package/lib/fieldset/fieldset.d.ts +4 -4
  44. package/lib/file-upload-card/file-upload-card.d.ts +2 -2
  45. package/lib/file-upload-input/file-upload-input.d.ts +2 -2
  46. package/lib/filter-chip/filter-chip.d.ts +3 -3
  47. package/lib/footer/footer.d.ts +2 -2
  48. package/lib/footer-meta-section/footer-meta-section.d.ts +1 -1
  49. package/lib/footer-nav-section/footer-nav-section.d.ts +1 -1
  50. package/lib/form-item/form-item.d.ts +2 -1
  51. package/lib/form-step/form-step.d.ts +1 -1
  52. package/lib/form-stepper/form-stepper.d.ts +2 -2
  53. package/lib/grid/grid.d.ts +2 -1
  54. package/lib/hero-banner/hero-banner-actions.d.ts +2 -1
  55. package/lib/hero-banner/hero-banner.d.ts +3 -2
  56. package/lib/icon/icon.d.ts +6 -4
  57. package/lib/icon-button/icon-button.d.ts +4 -3
  58. package/lib/input/input.d.ts +8 -7
  59. package/lib/link/link.d.ts +1 -1
  60. package/lib/link-button/link-button.d.ts +1 -1
  61. package/lib/microsite-header/microsite-header.d.ts +4 -3
  62. package/lib/modal/modal.d.ts +6 -6
  63. package/lib/notification/notification.d.ts +2 -2
  64. package/lib/one-column-layout/one-column-layout.d.ts +2 -2
  65. package/lib/page-block/page-block.d.ts +2 -2
  66. package/lib/pages/pages.d.ts +2 -2
  67. package/lib/pagination/pagination.d.ts +2 -2
  68. package/lib/popover/popover.d.ts +4 -4
  69. package/lib/radio-group/radio-group.d.ts +5 -4
  70. package/lib/radio-group/radio.d.ts +8 -8
  71. package/lib/side-menu/side-menu.d.ts +2 -2
  72. package/lib/side-menu-group/side-menu-group.d.ts +2 -2
  73. package/lib/side-menu-heading/side-menu-heading.d.ts +1 -1
  74. package/lib/skeleton/skeleton.d.ts +1 -1
  75. package/lib/spacer/spacer.d.ts +1 -1
  76. package/lib/spinner/spinner.d.ts +3 -2
  77. package/lib/tab/tab.d.ts +3 -2
  78. package/lib/table/table-sort-header.d.ts +2 -1
  79. package/lib/table/table.d.ts +3 -3
  80. package/lib/tabs/tabs.d.ts +3 -3
  81. package/lib/text/text.d.ts +2 -2
  82. package/lib/textarea/textarea.d.ts +5 -4
  83. package/lib/three-column-layout/three-column-layout.d.ts +1 -1
  84. package/lib/tooltip/tooltip.d.ts +2 -2
  85. package/lib/two-column-layout/two-column-layout.d.ts +1 -1
  86. package/package.json +4 -4
  87. package/icon-BNGrU_R_.mjs.map +0 -1
  88. package/icon-BPmPItnm.js.map +0 -1
@@ -1,9 +1,9 @@
1
1
  import { GoabAccordionHeadingSize, GoabAccordionIconPosition, Margins } from '@abgov/ui-components-common';
2
- import { ReactNode } from 'react';
2
+ import { ReactNode, JSX } from 'react';
3
3
 
4
4
  interface WCProps extends Margins {
5
- ref: React.RefObject<HTMLElement>;
6
- open?: boolean;
5
+ ref: React.RefObject<HTMLElement | null>;
6
+ open?: string;
7
7
  headingsize?: GoabAccordionHeadingSize;
8
8
  heading: string;
9
9
  secondarytext?: string;
@@ -12,7 +12,7 @@ interface WCProps extends Margins {
12
12
  testid?: string;
13
13
  iconposition?: GoabAccordionIconPosition;
14
14
  }
15
- declare global {
15
+ declare module "react" {
16
16
  namespace JSX {
17
17
  interface IntrinsicElements {
18
18
  "goa-accordion": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -1,14 +1,15 @@
1
- /// <reference types="react" />
1
+ import { JSX } from 'react';
2
+
2
3
  interface WCProps {
3
4
  heading?: string;
4
5
  url?: string;
5
6
  maxcontentwidth?: string;
6
7
  fullmenubreakpoint?: number;
7
- hasmenuclickhandler?: boolean;
8
- ref: React.RefObject<HTMLElement>;
8
+ hasmenuclickhandler?: string;
9
+ ref: React.RefObject<HTMLElement | null>;
9
10
  testid?: string;
10
11
  }
11
- declare global {
12
+ declare module "react" {
12
13
  namespace JSX {
13
14
  interface IntrinsicElements {
14
15
  "goa-app-header": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -12,7 +12,7 @@ export interface GoabAppHeaderMenuProps {
12
12
  testId?: string;
13
13
  children?: ReactNode;
14
14
  }
15
- declare global {
15
+ declare module "react" {
16
16
  namespace JSX {
17
17
  interface IntrinsicElements {
18
18
  "goa-app-header-menu": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -1,13 +1,14 @@
1
+ import { JSX } from 'react';
1
2
  import { GoabBadgeType, Margins } from '@abgov/ui-components-common';
2
3
 
3
4
  interface WCProps extends Margins {
4
5
  type: GoabBadgeType;
5
- icon?: boolean;
6
+ icon?: string;
6
7
  content?: string;
7
8
  arialabel?: string;
8
9
  testid?: string;
9
10
  }
10
- declare global {
11
+ declare module "react" {
11
12
  namespace JSX {
12
13
  interface IntrinsicElements {
13
14
  "goa-badge": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -7,7 +7,7 @@ export interface WCProps extends Margins {
7
7
  alignment?: GoabBlockAlignment;
8
8
  testid?: string;
9
9
  }
10
- declare global {
10
+ declare module "react" {
11
11
  namespace JSX {
12
12
  interface IntrinsicElements {
13
13
  "goa-block": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -1,18 +1,18 @@
1
1
  import { GoabButtonSize, GoabButtonType, GoabButtonVariant, GoabIconType, Margins } from '@abgov/ui-components-common';
2
- import { ReactNode } from 'react';
2
+ import { ReactNode, JSX } from 'react';
3
3
 
4
4
  interface WCProps extends Margins {
5
5
  type?: GoabButtonType;
6
6
  size?: GoabButtonSize;
7
7
  variant?: GoabButtonVariant;
8
- disabled?: boolean;
8
+ disabled?: string;
9
9
  leadingicon?: string;
10
10
  trailingicon?: string;
11
11
  width?: string;
12
12
  testid?: string;
13
- ref: React.RefObject<HTMLElement>;
13
+ ref: React.RefObject<HTMLElement | null>;
14
14
  }
15
- declare global {
15
+ declare module "react" {
16
16
  namespace JSX {
17
17
  interface IntrinsicElements {
18
18
  "goa-button": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { GoabButtonGroupAlignment, GoabButtonGroupGap, Margins } from '@abgov/ui-components-common';
2
3
 
3
4
  interface WCProps extends Margins {
@@ -5,7 +6,7 @@ interface WCProps extends Margins {
5
6
  gap?: GoabButtonGroupGap;
6
7
  testid?: string;
7
8
  }
8
- declare global {
9
+ declare module "react" {
9
10
  namespace JSX {
10
11
  interface IntrinsicElements {
11
12
  "goa-button-group": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -1,14 +1,15 @@
1
1
  import { GoabCalendarOnChangeDetail, Margins } from '@abgov/ui-components-common';
2
+ import { JSX } from 'react';
2
3
 
3
4
  interface WCProps extends Margins {
4
- ref: React.RefObject<HTMLElement>;
5
+ ref: React.RefObject<HTMLElement | null>;
5
6
  name?: string;
6
7
  value?: string;
7
8
  min?: string;
8
9
  max?: string;
9
10
  testid?: string;
10
11
  }
11
- declare global {
12
+ declare module "react" {
12
13
  namespace JSX {
13
14
  interface IntrinsicElements {
14
15
  "goa-calendar": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -9,7 +9,7 @@ interface WCProps extends Margins {
9
9
  icontheme?: GoabCalloutIconTheme;
10
10
  testid?: string;
11
11
  }
12
- declare global {
12
+ declare module "react" {
13
13
  namespace JSX {
14
14
  interface IntrinsicElements {
15
15
  "goa-callout": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -1,5 +1,6 @@
1
- /// <reference types="react" />
2
- declare global {
1
+ import { JSX } from 'react';
2
+
3
+ declare module "react" {
3
4
  namespace JSX {
4
5
  interface IntrinsicElements {
5
6
  "goa-card-actions": React.HTMLAttributes<HTMLElement>;
@@ -1,5 +1,6 @@
1
- /// <reference types="react" />
2
- declare global {
1
+ import { JSX } from 'react';
2
+
3
+ declare module "react" {
3
4
  namespace JSX {
4
5
  interface IntrinsicElements {
5
6
  "goa-card-content": React.HTMLAttributes<HTMLElement>;
@@ -1,5 +1,6 @@
1
- /// <reference types="react" />
2
- declare global {
1
+ import { JSX } from 'react';
2
+
3
+ declare module "react" {
3
4
  namespace JSX {
4
5
  interface IntrinsicElements {
5
6
  "goa-card-group": React.HTMLAttributes<HTMLElement>;
@@ -1,9 +1,10 @@
1
- /// <reference types="react" />
1
+ import { JSX } from 'react';
2
+
2
3
  interface WCProps {
3
4
  src: string;
4
5
  height: string;
5
6
  }
6
- declare global {
7
+ declare module "react" {
7
8
  namespace JSX {
8
9
  interface IntrinsicElements {
9
10
  "goa-card-image": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { Margins } from '@abgov/ui-components-common';
2
3
 
3
4
  interface WCProps extends Margins {
@@ -6,7 +7,7 @@ interface WCProps extends Margins {
6
7
  children: React.ReactNode;
7
8
  testid?: string;
8
9
  }
9
- declare global {
10
+ declare module "react" {
10
11
  namespace JSX {
11
12
  interface IntrinsicElements {
12
13
  "goa-card": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -1,6 +1,7 @@
1
+ import { JSX } from 'react';
1
2
  import { GoabCheckboxOnChangeDetail, Margins } from '@abgov/ui-components-common';
2
3
 
3
- declare global {
4
+ declare module "react" {
4
5
  namespace JSX {
5
6
  interface IntrinsicElements {
6
7
  "goa-checkbox": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -8,14 +9,14 @@ declare global {
8
9
  }
9
10
  }
10
11
  interface WCProps extends Margins {
11
- ref: React.RefObject<HTMLElement>;
12
+ ref: React.RefObject<HTMLElement | null>;
12
13
  id?: string;
13
14
  name: string;
14
- checked: boolean;
15
- disabled?: boolean;
16
- error?: boolean;
15
+ checked?: string;
16
+ disabled?: string;
17
+ error?: string;
17
18
  text?: string;
18
- value?: string | number | boolean;
19
+ value?: string | number;
19
20
  arialabel?: string;
20
21
  description?: string | React.ReactNode;
21
22
  maxwidth?: string;
@@ -1,16 +1,16 @@
1
1
  import { GoabChipTheme, GoabChipVariant, Margins } from '@abgov/ui-components-common';
2
2
 
3
3
  interface WCProps extends Margins {
4
- ref: React.RefObject<HTMLElement>;
5
- leadingicon: string;
6
- icontheme: GoabChipTheme;
7
- error: boolean;
8
- deletable: boolean;
4
+ ref: React.RefObject<HTMLElement | null>;
5
+ leadingicon?: string;
6
+ icontheme?: GoabChipTheme;
7
+ error?: string;
8
+ deletable?: string;
9
9
  content: string;
10
10
  variant?: GoabChipVariant;
11
11
  testid?: string;
12
12
  }
13
- declare global {
13
+ declare module "react" {
14
14
  namespace JSX {
15
15
  interface IntrinsicElements {
16
16
  "goa-chip": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -8,7 +8,7 @@ interface WCProps {
8
8
  progress?: number;
9
9
  testid?: string;
10
10
  }
11
- declare global {
11
+ declare module "react" {
12
12
  namespace JSX {
13
13
  interface IntrinsicElements {
14
14
  "goa-circular-progress": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { ReactNode, JSX } from 'react';
2
2
  import { GoabContainerAccent, GoabContainerPadding, GoabContainerType, GoabContainerWidth, Margins } from '@abgov/ui-components-common';
3
3
 
4
4
  interface WCProps extends Margins {
@@ -9,7 +9,7 @@ interface WCProps extends Margins {
9
9
  maxwidth?: string;
10
10
  testid?: string;
11
11
  }
12
- declare global {
12
+ declare module "react" {
13
13
  namespace JSX {
14
14
  interface IntrinsicElements {
15
15
  "goa-container": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -1,17 +1,18 @@
1
1
  import { GoabDatePickerOnChangeDetail, Margins } from '@abgov/ui-components-common';
2
+ import { JSX } from 'react';
2
3
 
3
4
  interface WCProps extends Margins {
4
- ref: React.RefObject<HTMLElement>;
5
+ ref: React.RefObject<HTMLElement | null>;
5
6
  name?: string;
6
7
  value?: string;
7
- error?: boolean;
8
+ error?: string;
8
9
  min?: string;
9
10
  max?: string;
10
- relative?: boolean;
11
- disabled?: boolean;
11
+ relative?: string;
12
+ disabled?: string;
12
13
  testid?: string;
13
14
  }
14
- declare global {
15
+ declare module "react" {
15
16
  namespace JSX {
16
17
  interface IntrinsicElements {
17
18
  "goa-date-picker": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -3,11 +3,11 @@ import { Margins } from '@abgov/ui-components-common';
3
3
 
4
4
  interface WCProps extends Margins {
5
5
  heading: string;
6
- open?: boolean;
6
+ open?: string;
7
7
  maxwidth?: string;
8
8
  testid?: string;
9
9
  }
10
- declare global {
10
+ declare module "react" {
11
11
  namespace JSX {
12
12
  interface IntrinsicElements {
13
13
  "goa-details": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -3,7 +3,7 @@ import { Margins } from '@abgov/ui-components-common';
3
3
  interface WCProps extends Margins {
4
4
  testid?: string;
5
5
  }
6
- declare global {
6
+ declare module "react" {
7
7
  namespace JSX {
8
8
  interface IntrinsicElements {
9
9
  "goa-divider": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -1,15 +1,15 @@
1
1
  import { GoabDrawerPosition, GoabDrawerSize } from '@abgov/ui-components-common';
2
- import { ReactNode } from 'react';
2
+ import { ReactNode, JSX } from 'react';
3
3
 
4
4
  interface WCProps {
5
- open: boolean | undefined;
6
5
  position: GoabDrawerPosition;
6
+ open?: boolean;
7
7
  heading?: string;
8
8
  maxsize?: GoabDrawerSize;
9
9
  testid?: string;
10
- ref: React.RefObject<HTMLElement>;
10
+ ref: React.RefObject<HTMLElement | null>;
11
11
  }
12
- declare global {
12
+ declare module "react" {
13
13
  namespace JSX {
14
14
  interface IntrinsicElements {
15
15
  "goa-drawer": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -17,8 +17,8 @@ declare global {
17
17
  }
18
18
  }
19
19
  export interface GoabDrawerProps {
20
- open: boolean;
21
20
  position: GoabDrawerPosition;
21
+ open?: boolean;
22
22
  heading?: string | ReactNode;
23
23
  maxSize?: GoabDrawerSize;
24
24
  testId?: string;
@@ -26,5 +26,5 @@ export interface GoabDrawerProps {
26
26
  children: ReactNode;
27
27
  onClose: () => void;
28
28
  }
29
- export declare function GoabDrawer({ open, position, heading, maxSize, testId, actions, children, onClose, }: GoabDrawerProps): JSX.Element;
29
+ export declare function GoabDrawer({ position, open, heading, maxSize, testId, actions, children, onClose, }: GoabDrawerProps): JSX.Element;
30
30
  export default GoabDrawer;
@@ -7,7 +7,7 @@ interface WCProps {
7
7
  mount?: GoabDropdownItemMountType;
8
8
  name?: string;
9
9
  }
10
- declare global {
10
+ declare module "react" {
11
11
  namespace JSX {
12
12
  interface IntrinsicElements {
13
13
  "goa-dropdown-item": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -23,5 +23,5 @@ export interface GoabDropdownItemProps {
23
23
  name?: string;
24
24
  }
25
25
  export declare function GoabDropdownOption(props: GoabDropdownItemProps): import("react/jsx-runtime").JSX.Element;
26
- export declare function GoabDropdownItem({ value, label, filter, name, mountType }: GoabDropdownItemProps): import("react/jsx-runtime").JSX.Element;
26
+ export declare function GoabDropdownItem({ value, label, filter, name, mountType, }: GoabDropdownItemProps): import("react/jsx-runtime").JSX.Element;
27
27
  export {};
@@ -1,25 +1,26 @@
1
+ import { JSX } from 'react';
1
2
  import { GoabDropdownOnChangeDetail, GoabIconType, Margins } from '@abgov/ui-components-common';
2
3
 
3
4
  interface WCProps extends Margins {
4
- ref: React.MutableRefObject<HTMLElement | null>;
5
+ ref: React.RefObject<HTMLElement | null>;
5
6
  arialabel?: string;
6
7
  arialabelledby?: string;
7
- disabled?: boolean;
8
- error?: boolean;
9
- filterable?: boolean;
8
+ disabled?: string;
9
+ error?: string;
10
+ filterable?: string;
10
11
  leadingicon?: string;
11
12
  maxheight?: string;
12
- multiselect?: boolean;
13
+ multiselect?: string;
13
14
  name?: string;
14
- native?: boolean;
15
+ native?: string;
15
16
  placeholder?: string;
16
17
  value?: string;
17
18
  width?: string;
18
- relative?: boolean;
19
+ relative?: string;
19
20
  id?: string;
20
21
  testid?: string;
21
22
  }
22
- declare global {
23
+ declare module "react" {
23
24
  namespace JSX {
24
25
  interface IntrinsicElements {
25
26
  "goa-dropdown": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -2,14 +2,14 @@ import { Margins, GoabFielsetOnContinueDetail } from '@abgov/ui-components-commo
2
2
  import { ReactNode } from 'react';
3
3
 
4
4
  interface WCProps extends Margins {
5
- ref?: React.MutableRefObject<HTMLElement | null>;
5
+ ref?: React.RefObject<HTMLElement | null>;
6
6
  id: string;
7
7
  heading?: string;
8
8
  buttontext?: string;
9
- last?: boolean | null;
10
- first?: boolean | null;
9
+ last?: string;
10
+ first?: string;
11
11
  }
12
- declare global {
12
+ declare module "react" {
13
13
  namespace JSX {
14
14
  interface IntrinsicElements {
15
15
  "goa-public-form-page": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -1,7 +1,7 @@
1
1
  import { GoabFileUploadOnCancelDetail, GoabFileUploadOnDeleteDetail } from '@abgov/ui-components-common';
2
2
 
3
3
  interface WCProps {
4
- ref: React.MutableRefObject<HTMLElement | null>;
4
+ ref: React.RefObject<HTMLElement | null>;
5
5
  filename: string;
6
6
  size: number;
7
7
  type?: string;
@@ -9,7 +9,7 @@ interface WCProps {
9
9
  error?: string;
10
10
  testid?: string;
11
11
  }
12
- declare global {
12
+ declare module "react" {
13
13
  namespace JSX {
14
14
  interface IntrinsicElements {
15
15
  "goa-file-upload-card": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -1,13 +1,13 @@
1
1
  import { GoabFileUploadInputOnSelectFileDetail, GoabFileUploadInputVariant } from '@abgov/ui-components-common';
2
2
 
3
3
  interface WCProps {
4
- ref: React.MutableRefObject<HTMLElement | null>;
4
+ ref: React.RefObject<HTMLElement | null>;
5
5
  variant?: GoabFileUploadInputVariant;
6
6
  accept?: string;
7
7
  maxfilesize?: string;
8
8
  testid?: string;
9
9
  }
10
- declare global {
10
+ declare module "react" {
11
11
  namespace JSX {
12
12
  interface IntrinsicElements {
13
13
  "goa-file-upload-input": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -1,13 +1,13 @@
1
1
  import { Margins, GoabFilterChipTheme } from '@abgov/ui-components-common';
2
2
 
3
3
  interface WCProps extends Margins {
4
- ref: React.RefObject<HTMLElement>;
4
+ ref: React.RefObject<HTMLElement | null>;
5
5
  icontheme: GoabFilterChipTheme;
6
- error: boolean;
6
+ error?: string;
7
7
  content: string;
8
8
  testid?: string;
9
9
  }
10
- declare global {
10
+ declare module "react" {
11
11
  namespace JSX {
12
12
  interface IntrinsicElements {
13
13
  "goa-filter-chip": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -1,11 +1,11 @@
1
- import { ReactNode } from 'react';
1
+ import { ReactNode, JSX } from 'react';
2
2
 
3
3
  interface WCProps {
4
4
  maxcontentwidth?: string;
5
5
  testid?: string;
6
6
  url?: string;
7
7
  }
8
- declare global {
8
+ declare module "react" {
9
9
  namespace JSX {
10
10
  interface IntrinsicElements {
11
11
  "goa-app-footer": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
3
3
  interface WCProps {
4
4
  testid?: string;
5
5
  }
6
- declare global {
6
+ declare module "react" {
7
7
  namespace JSX {
8
8
  interface IntrinsicElements {
9
9
  "goa-app-footer-meta-section": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -5,7 +5,7 @@ interface WCProps {
5
5
  heading?: string;
6
6
  testid?: string;
7
7
  }
8
- declare global {
8
+ declare module "react" {
9
9
  namespace JSX {
10
10
  interface IntrinsicElements {
11
11
  "goa-app-footer-nav-section": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { GoabFormItemLabelSize, GoabFormItemRequirement, Margins } from '@abgov/ui-components-common';
2
3
 
3
4
  interface WCProps extends Margins {
@@ -10,7 +11,7 @@ interface WCProps extends Margins {
10
11
  id?: string;
11
12
  testid?: string;
12
13
  }
13
- declare global {
14
+ declare module "react" {
14
15
  namespace JSX {
15
16
  interface IntrinsicElements {
16
17
  "goa-form-item": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -4,7 +4,7 @@ interface WCProps {
4
4
  text: string;
5
5
  status?: GoabFormStepStatus;
6
6
  }
7
- declare global {
7
+ declare module "react" {
8
8
  namespace JSX {
9
9
  interface IntrinsicElements {
10
10
  "goa-form-step": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -2,11 +2,11 @@ import { ReactNode } from 'react';
2
2
  import { GoabFormStepperOnChangeDetail, Margins } from '@abgov/ui-components-common';
3
3
 
4
4
  interface WCProps extends Margins {
5
- ref?: React.MutableRefObject<HTMLElement | null>;
5
+ ref?: React.RefObject<HTMLElement | null>;
6
6
  step?: number;
7
7
  testid?: string;
8
8
  }
9
- declare global {
9
+ declare module "react" {
10
10
  namespace JSX {
11
11
  interface IntrinsicElements {
12
12
  "goa-form-stepper": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { Margins, Spacing } from '@abgov/ui-components-common';
2
3
 
3
4
  interface WCProps extends Margins {
@@ -5,7 +6,7 @@ interface WCProps extends Margins {
5
6
  minchildwidth: string;
6
7
  testid?: string;
7
8
  }
8
- declare global {
9
+ declare module "react" {
9
10
  namespace JSX {
10
11
  interface IntrinsicElements {
11
12
  "goa-grid": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -1,4 +1,5 @@
1
- /// <reference types="react" />
1
+ import { JSX } from 'react';
2
+
2
3
  export type GoabHeroBannerActionsType = {
3
4
  children?: React.ReactNode;
4
5
  };
@@ -1,4 +1,5 @@
1
- /// <reference types="react" />
1
+ import { JSX } from 'react';
2
+
2
3
  interface WCProps {
3
4
  heading: string;
4
5
  backgroundurl?: string;
@@ -8,7 +9,7 @@ interface WCProps {
8
9
  textcolor?: string;
9
10
  testid?: string;
10
11
  }
11
- declare global {
12
+ declare module "react" {
12
13
  namespace JSX {
13
14
  interface IntrinsicElements {
14
15
  "goa-hero-banner": WCProps & React.HTMLAttributes<HTMLElement>;
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { GoabIconFilledType, GoabIconSize, GoabIconTheme, GoabIconType, Margins } from '@abgov/ui-components-common';
2
3
 
3
4
  interface IonIconProps {
@@ -5,14 +6,14 @@ interface IonIconProps {
5
6
  }
6
7
  interface IonIconElement extends HTMLElement {
7
8
  }
8
- declare global {
9
+ declare module "react" {
9
10
  namespace JSX {
10
11
  interface IntrinsicElements {
11
12
  "ion-icon": IonIconProps & React.HTMLAttributes<IonIconElement>;
12
13
  }
13
14
  }
14
15
  }
15
- declare global {
16
+ declare module "react" {
16
17
  namespace JSX {
17
18
  interface IntrinsicElements {
18
19
  "goa-icon": WCProps & React.HTMLAttributes<IonIconElement>;
@@ -23,7 +24,7 @@ export interface GoabIconProps extends Margins {
23
24
  type: GoabIconType;
24
25
  size?: GoabIconSize;
25
26
  theme?: GoabIconTheme;
26
- inverted?: string;
27
+ inverted?: string | boolean;
27
28
  fillColor?: string;
28
29
  opacity?: number;
29
30
  title?: string;
@@ -41,5 +42,6 @@ interface WCProps extends Margins {
41
42
  arialabel?: string;
42
43
  testid?: string;
43
44
  }
44
- export declare function GoabIcon({ type, theme, size, inverted, fillColor, opacity, title, ariaLabel, mt, mr, mb, ml, testId, }: GoabIconProps): JSX.Element;
45
+ export declare function GoabIcon({ type, theme, size, inverted, // TODO: change to boolean only
46
+ fillColor, opacity, title, ariaLabel, mt, mr, mb, ml, testId, }: GoabIconProps): JSX.Element;
45
47
  export {};