@abgov/react-components 6.11.0 → 7.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 (86) hide show
  1. package/index.d.ts +5 -0
  2. package/index.js +3084 -1074
  3. package/index.js.map +1 -1
  4. package/index.mjs +3680 -1670
  5. package/index.mjs.map +1 -1
  6. package/lib/app-header/app-header.d.ts +5 -2
  7. package/lib/app-header-menu/app-header-menu.d.ts +8 -7
  8. package/lib/badge/badge.d.ts +23 -18
  9. package/lib/button/button.d.ts +23 -0
  10. package/lib/calendar/calendar.d.ts +17 -0
  11. package/lib/callout/callout.d.ts +21 -2
  12. package/lib/checkbox/checkbox.d.ts +30 -2
  13. package/lib/checkbox-list/checkbox-list.d.ts +11 -8
  14. package/lib/date-picker/date-picker.d.ts +22 -0
  15. package/lib/drawer/drawer.d.ts +16 -0
  16. package/lib/dropdown/dropdown-item.d.ts +15 -0
  17. package/lib/dropdown/dropdown.d.ts +34 -2
  18. package/lib/file-upload-card/file-upload-card.d.ts +18 -0
  19. package/lib/file-upload-input/file-upload-input.d.ts +16 -0
  20. package/lib/filter-chip/filter-chip.d.ts +21 -1
  21. package/lib/footer/footer.d.ts +13 -1
  22. package/lib/footer-meta-section/footer-meta-section.d.ts +10 -0
  23. package/lib/footer-nav-section/footer-nav-section.d.ts +12 -0
  24. package/lib/form-item/form-item.d.ts +24 -2
  25. package/lib/input/input.d.ts +43 -2
  26. package/lib/link/link.d.ts +22 -3
  27. package/lib/menu-button/menu-button.d.ts +9 -52
  28. package/lib/modal/modal.d.ts +24 -1
  29. package/lib/notification/notification.d.ts +21 -2
  30. package/lib/pagination/pagination.d.ts +16 -0
  31. package/lib/push-drawer/push-drawer.d.ts +7 -6
  32. package/lib/radio-group/radio-group.d.ts +24 -2
  33. package/lib/radio-group/radio.d.ts +24 -1
  34. package/lib/side-menu/side-menu.d.ts +12 -1
  35. package/lib/side-menu-group/side-menu-group.d.ts +14 -1
  36. package/lib/side-menu-heading/side-menu-heading.d.ts +13 -1
  37. package/lib/table/table-sort-header.d.ts +15 -2
  38. package/lib/table/table.d.ts +22 -2
  39. package/lib/tabs/tabs.d.ts +22 -2
  40. package/lib/textarea/textarea.d.ts +29 -1
  41. package/{experimental → lib}/work-side-menu/work-side-menu.d.ts +3 -2
  42. package/{experimental → lib}/work-side-menu-group/work-side-menu-group.d.ts +6 -4
  43. package/{experimental → lib}/work-side-menu-item/work-side-menu-item.d.ts +5 -4
  44. package/lib/work-side-notification-item/work-side-notification-item.d.ts +31 -0
  45. package/lib/work-side-notification-panel/work-side-notification-panel.d.ts +25 -0
  46. package/package.json +1 -6
  47. package/experimental/badge/badge.d.ts +0 -33
  48. package/experimental/button/button.d.ts +0 -43
  49. package/experimental/calendar/calendar.d.ts +0 -30
  50. package/experimental/callout/callout.d.ts +0 -33
  51. package/experimental/checkbox/checkbox.d.ts +0 -52
  52. package/experimental/date-picker/date-picker.d.ts +0 -43
  53. package/experimental/drawer/drawer.d.ts +0 -31
  54. package/experimental/dropdown/dropdown-item.d.ts +0 -26
  55. package/experimental/dropdown/dropdown.d.ts +0 -62
  56. package/experimental/file-upload-card/file-upload-card.d.ts +0 -32
  57. package/experimental/file-upload-input/file-upload-input.d.ts +0 -27
  58. package/experimental/filter-chip/filter-chip.d.ts +0 -31
  59. package/experimental/footer/footer.d.ts +0 -24
  60. package/experimental/footer-meta-section/footer-meta-section.d.ts +0 -18
  61. package/experimental/footer-nav-section/footer-nav-section.d.ts +0 -22
  62. package/experimental/form-hook.d.ts +0 -8
  63. package/experimental/form-item/form-item.d.ts +0 -46
  64. package/experimental/index.d.ts +0 -32
  65. package/experimental/input/input.d.ts +0 -124
  66. package/experimental/link/link.d.ts +0 -32
  67. package/experimental/modal/modal.d.ts +0 -44
  68. package/experimental/notification/notification.d.ts +0 -31
  69. package/experimental/pagination/pagination.d.ts +0 -29
  70. package/experimental/radio-group/radio-group.d.ts +0 -40
  71. package/experimental/radio-group/radio.d.ts +0 -42
  72. package/experimental/side-menu/side-menu.d.ts +0 -19
  73. package/experimental/side-menu-group/side-menu-group.d.ts +0 -24
  74. package/experimental/side-menu-heading/side-menu-heading.d.ts +0 -23
  75. package/experimental/table/table-sort-header.d.ts +0 -20
  76. package/experimental/table/table.d.ts +0 -30
  77. package/experimental/tabs/tabs.d.ts +0 -27
  78. package/experimental/textarea/textarea.d.ts +0 -53
  79. package/experimental.js +0 -1245
  80. package/experimental.js.map +0 -1
  81. package/experimental.mjs +0 -1245
  82. package/experimental.mjs.map +0 -1
  83. package/parseISO-BHUUf1QW.mjs +0 -1693
  84. package/parseISO-BHUUf1QW.mjs.map +0 -1
  85. package/parseISO-Dj57mwuH.js +0 -1692
  86. package/parseISO-Dj57mwuH.js.map +0 -1
@@ -2,11 +2,13 @@ import { JSX } from 'react';
2
2
  import { DataAttributes } from '@abgov/ui-components-common';
3
3
  interface WCProps {
4
4
  heading?: string;
5
+ secondarytext?: string;
5
6
  url?: string;
6
7
  maxcontentwidth?: string;
7
8
  fullmenubreakpoint?: number;
8
9
  hasmenuclickhandler?: string;
9
10
  testid?: string;
11
+ version?: string;
10
12
  }
11
13
  declare module "react" {
12
14
  namespace JSX {
@@ -19,6 +21,7 @@ declare module "react" {
19
21
  }
20
22
  export interface GoabAppHeaderProps extends DataAttributes {
21
23
  heading?: string;
24
+ secondaryText?: string;
22
25
  url?: string;
23
26
  maxContentWidth?: string;
24
27
  fullMenuBreakpoint?: number;
@@ -26,5 +29,5 @@ export interface GoabAppHeaderProps extends DataAttributes {
26
29
  onMenuClick?: () => void;
27
30
  testId?: string;
28
31
  }
29
- export declare function GoabAppHeader({ onMenuClick, children, ...rest }: GoabAppHeaderProps): JSX.Element;
30
- export default GoabAppHeader;
32
+ export declare function GoabAppHeader({ onMenuClick, children, secondaryText, ...rest }: GoabAppHeaderProps): JSX.Element;
33
+ export {};
@@ -5,12 +5,6 @@ interface WCProps {
5
5
  leadingicon?: GoabIconType;
6
6
  testid?: string;
7
7
  }
8
- export interface GoabAppHeaderMenuProps extends DataAttributes {
9
- heading: string;
10
- leadingIcon?: GoabIconType;
11
- testId?: string;
12
- children?: ReactNode;
13
- }
14
8
  declare module "react" {
15
9
  namespace JSX {
16
10
  interface IntrinsicElements {
@@ -18,5 +12,12 @@ declare module "react" {
18
12
  }
19
13
  }
20
14
  }
21
- export declare function GoabAppHeaderMenu({ children, ...rest }: GoabAppHeaderMenuProps): import("react/jsx-runtime").JSX.Element;
15
+ export interface GoabAppHeaderMenuProps extends DataAttributes {
16
+ heading: string;
17
+ leadingIcon?: GoabIconType;
18
+ testId?: string;
19
+ slotName?: string;
20
+ children?: ReactNode;
21
+ }
22
+ export declare function GoabAppHeaderMenu({ children, slotName, ...rest }: GoabAppHeaderMenuProps): import("react/jsx-runtime").JSX.Element;
22
23
  export default GoabAppHeaderMenu;
@@ -1,5 +1,23 @@
1
- import { DataAttributes, GoabBadgeType, GoabIconType, Margins } from '@abgov/ui-components-common';
1
+ import { DataAttributes, GoabBadgeEmphasis, GoabBadgeSize, GoabBadgeType, GoabIconType, Margins } from '@abgov/ui-components-common';
2
2
  import { JSX } from 'react';
3
+ interface WCProps extends Margins {
4
+ type: GoabBadgeType;
5
+ icon?: string;
6
+ content?: string;
7
+ arialabel?: string;
8
+ testid?: string;
9
+ icontype?: GoabIconType;
10
+ size?: GoabBadgeSize;
11
+ emphasis?: GoabBadgeEmphasis;
12
+ version?: string;
13
+ }
14
+ declare module "react" {
15
+ namespace JSX {
16
+ interface IntrinsicElements {
17
+ "goa-badge": WCProps & React.HTMLAttributes<HTMLElement>;
18
+ }
19
+ }
20
+ }
3
21
  export interface GoabBadgeProps extends Margins, DataAttributes {
4
22
  type: GoabBadgeType;
5
23
  icon?: boolean;
@@ -7,21 +25,8 @@ export interface GoabBadgeProps extends Margins, DataAttributes {
7
25
  testId?: string;
8
26
  ariaLabel?: string;
9
27
  iconType?: GoabIconType;
28
+ size?: GoabBadgeSize;
29
+ emphasis?: GoabBadgeEmphasis;
10
30
  }
11
- export declare function GoabBadge({ icon, iconType, ...rest }: GoabBadgeProps): JSX.Element;
12
- /**
13
- * @deprecated
14
- */
15
- export declare function GoabInfoBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoabBadgeProps): JSX.Element;
16
- /**
17
- * @deprecated
18
- */
19
- export declare function GoabSuccessBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoabBadgeProps): JSX.Element;
20
- /**
21
- * @deprecated
22
- */
23
- export declare function GoabImportantBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoabBadgeProps): JSX.Element;
24
- /**
25
- * @deprecated
26
- */
27
- export declare function GoabEmergencyBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoabBadgeProps): JSX.Element;
31
+ export declare function GoabBadge({ icon, iconType, size, emphasis, ...rest }: GoabBadgeProps): JSX.Element;
32
+ export {};
@@ -1,5 +1,28 @@
1
1
  import { ReactNode, JSX } from 'react';
2
2
  import { GoabButtonSize, GoabButtonType, GoabButtonVariant, GoabIconType, Margins, DataAttributes } from '@abgov/ui-components-common';
3
+ interface WCProps extends Margins {
4
+ type?: GoabButtonType;
5
+ size?: GoabButtonSize;
6
+ variant?: GoabButtonVariant;
7
+ disabled?: string;
8
+ leadingicon?: string;
9
+ trailingicon?: string;
10
+ width?: string;
11
+ testid?: string;
12
+ action?: string;
13
+ actionArgs?: string;
14
+ actionArg?: string;
15
+ version?: string;
16
+ }
17
+ declare module "react" {
18
+ namespace JSX {
19
+ interface IntrinsicElements {
20
+ "goa-button": WCProps & React.HTMLAttributes<HTMLElement> & {
21
+ ref: React.RefObject<HTMLElement | null>;
22
+ };
23
+ }
24
+ }
25
+ }
3
26
  export interface GoabButtonProps extends Margins, DataAttributes {
4
27
  type?: GoabButtonType;
5
28
  size?: GoabButtonSize;
@@ -1,5 +1,22 @@
1
1
  import { JSX } from 'react';
2
2
  import { DataAttributes, GoabCalendarOnChangeDetail, Margins } from '@abgov/ui-components-common';
3
+ interface WCProps extends Margins {
4
+ name?: string;
5
+ value?: string;
6
+ min?: string;
7
+ max?: string;
8
+ testid?: string;
9
+ version?: string;
10
+ }
11
+ declare module "react" {
12
+ namespace JSX {
13
+ interface IntrinsicElements {
14
+ "goa-calendar": WCProps & React.HTMLAttributes<HTMLElement> & {
15
+ ref: React.RefObject<HTMLElement | null>;
16
+ };
17
+ }
18
+ }
19
+ }
3
20
  export interface GoabCalendarProps extends Margins, DataAttributes {
4
21
  name?: string;
5
22
  value?: string;
@@ -1,13 +1,32 @@
1
- import { GoabCalloutAriaLive, GoabCalloutSize, GoabCalloutType, GoabCalloutIconTheme, Margins, DataAttributes } from '@abgov/ui-components-common';
1
+ import { GoabCalloutAriaLive, GoabCalloutEmphasis, GoabCalloutSize, GoabCalloutType, GoabCalloutIconTheme, Margins, DataAttributes } from '@abgov/ui-components-common';
2
+ interface WCProps extends Margins {
3
+ heading?: string;
4
+ type?: GoabCalloutType;
5
+ size?: GoabCalloutSize;
6
+ arialive?: GoabCalloutAriaLive;
7
+ maxwidth?: string;
8
+ icontheme?: GoabCalloutIconTheme;
9
+ emphasis?: GoabCalloutEmphasis;
10
+ testid?: string;
11
+ version?: string;
12
+ }
13
+ declare module "react" {
14
+ namespace JSX {
15
+ interface IntrinsicElements {
16
+ "goa-callout": WCProps & React.HTMLAttributes<HTMLElement>;
17
+ }
18
+ }
19
+ }
2
20
  export interface GoabCalloutProps extends Margins, DataAttributes {
3
21
  heading?: string;
4
22
  type?: GoabCalloutType;
5
23
  size?: GoabCalloutSize;
6
24
  iconTheme?: GoabCalloutIconTheme;
25
+ emphasis?: GoabCalloutEmphasis;
7
26
  maxWidth?: string;
8
27
  testId?: string;
9
28
  ariaLive?: GoabCalloutAriaLive;
10
29
  children?: React.ReactNode;
11
30
  }
12
- export declare const GoabCallout: ({ type, iconTheme, size, ariaLive, children, ...rest }: GoabCalloutProps) => import("react/jsx-runtime").JSX.Element;
31
+ export declare const GoabCallout: ({ type, iconTheme, size, ariaLive, emphasis, children, ...rest }: GoabCalloutProps) => import("react/jsx-runtime").JSX.Element;
13
32
  export default GoabCallout;
@@ -1,5 +1,32 @@
1
- import { DataAttributes, GoabCheckboxOnChangeDetail, Margins } from '@abgov/ui-components-common';
1
+ import { DataAttributes, GoabCheckboxOnChangeDetail, GoabCheckboxSize, Margins } from '@abgov/ui-components-common';
2
2
  import { JSX } from 'react';
3
+ declare module "react" {
4
+ namespace JSX {
5
+ interface IntrinsicElements {
6
+ "goa-checkbox": WCProps & React.HTMLAttributes<HTMLElement> & {
7
+ ref: React.RefObject<HTMLElement | null>;
8
+ };
9
+ }
10
+ }
11
+ }
12
+ interface WCProps extends Margins {
13
+ id?: string;
14
+ name: string;
15
+ checked?: string;
16
+ indeterminate?: string;
17
+ disabled?: string;
18
+ error?: string;
19
+ text?: string;
20
+ value?: string | number;
21
+ arialabel?: string;
22
+ description?: string | React.ReactNode;
23
+ reveal?: React.ReactNode;
24
+ revealarialabel?: string;
25
+ maxwidth?: string;
26
+ testid?: string;
27
+ size?: GoabCheckboxSize;
28
+ version?: string;
29
+ }
3
30
  export interface GoabCheckboxProps extends Margins, DataAttributes {
4
31
  id?: string;
5
32
  name: string;
@@ -16,8 +43,9 @@ export interface GoabCheckboxProps extends Margins, DataAttributes {
16
43
  reveal?: React.ReactNode;
17
44
  revealAriaLabel?: string;
18
45
  maxWidth?: string;
46
+ size?: GoabCheckboxSize;
19
47
  onChange?: (detail: GoabCheckboxOnChangeDetail) => void;
20
48
  }
21
49
  export type Props = GoabCheckboxProps;
22
- export declare function GoabCheckbox({ error, checked, indeterminate, disabled, value, description, reveal, onChange, name, children, ...rest }: GoabCheckboxProps): JSX.Element;
50
+ export declare function GoabCheckbox({ error, checked, indeterminate, disabled, value, description, reveal, onChange, name, children, size, ...rest }: GoabCheckboxProps): JSX.Element;
23
51
  export default GoabCheckbox;
@@ -1,12 +1,5 @@
1
1
  import { GoabCheckboxListOnChangeDetail, Margins } from '@abgov/ui-components-common';
2
2
  import { JSX } from 'react';
3
- declare module "react" {
4
- namespace JSX {
5
- interface IntrinsicElements {
6
- "goa-checkbox-list": WCProps & React.HTMLAttributes<HTMLElement>;
7
- }
8
- }
9
- }
10
3
  interface WCProps extends Margins {
11
4
  ref: React.RefObject<HTMLElement | null>;
12
5
  name: string;
@@ -15,6 +8,15 @@ interface WCProps extends Margins {
15
8
  error?: string;
16
9
  testid?: string;
17
10
  maxwidth?: string;
11
+ version?: string;
12
+ size?: string;
13
+ }
14
+ declare module "react" {
15
+ namespace JSX {
16
+ interface IntrinsicElements {
17
+ "goa-checkbox-list": WCProps & React.HTMLAttributes<HTMLElement>;
18
+ }
19
+ }
18
20
  }
19
21
  export interface GoabCheckboxListProps extends Margins {
20
22
  name: string;
@@ -23,8 +25,9 @@ export interface GoabCheckboxListProps extends Margins {
23
25
  error?: boolean;
24
26
  testId?: string;
25
27
  maxWidth?: string;
28
+ size?: "default" | "compact";
26
29
  children?: React.ReactNode;
27
30
  onChange?: (detail: GoabCheckboxListOnChangeDetail) => void;
28
31
  }
29
- export declare function GoabCheckboxList({ name, value, disabled, error, testId, maxWidth, children, onChange, mt, mr, mb, ml, }: GoabCheckboxListProps): JSX.Element;
32
+ export declare function GoabCheckboxList({ name, value, disabled, error, testId, maxWidth, size, children, onChange, mt, mr, mb, ml, }: GoabCheckboxListProps): JSX.Element;
30
33
  export default GoabCheckboxList;
@@ -1,5 +1,27 @@
1
1
  import { JSX } from 'react';
2
2
  import { GoabDatePickerInputType, GoabDatePickerOnChangeDetail, Margins, DataAttributes } from '@abgov/ui-components-common';
3
+ interface WCProps extends Margins {
4
+ name?: string;
5
+ value?: string;
6
+ error?: string;
7
+ min?: string;
8
+ max?: string;
9
+ type?: string;
10
+ relative?: string;
11
+ disabled?: string;
12
+ testid?: string;
13
+ width?: string;
14
+ version?: string;
15
+ }
16
+ declare module "react" {
17
+ namespace JSX {
18
+ interface IntrinsicElements {
19
+ "goa-date-picker": WCProps & React.HTMLAttributes<HTMLElement> & {
20
+ ref: React.RefObject<HTMLElement | null>;
21
+ };
22
+ }
23
+ }
24
+ }
3
25
  export interface GoabDatePickerProps extends Margins, DataAttributes {
4
26
  name?: string;
5
27
  value?: Date | string | undefined;
@@ -1,5 +1,21 @@
1
1
  import { ReactNode, JSX } from 'react';
2
2
  import { GoabDrawerPosition, GoabDrawerSize } from '@abgov/ui-components-common';
3
+ interface WCProps {
4
+ position: GoabDrawerPosition;
5
+ open?: boolean;
6
+ heading?: string;
7
+ maxsize?: GoabDrawerSize;
8
+ testid?: string;
9
+ ref: React.RefObject<HTMLElement | null>;
10
+ version?: string;
11
+ }
12
+ declare module "react" {
13
+ namespace JSX {
14
+ interface IntrinsicElements {
15
+ "goa-drawer": WCProps & React.HTMLAttributes<HTMLElement>;
16
+ }
17
+ }
18
+ }
3
19
  export interface GoabDrawerProps {
4
20
  position: GoabDrawerPosition;
5
21
  open?: boolean;
@@ -1,4 +1,18 @@
1
1
  import { GoabDropdownItemMountType } from '@abgov/ui-components-common';
2
+ interface WCProps {
3
+ value: string;
4
+ label?: string;
5
+ filter?: string;
6
+ mount?: GoabDropdownItemMountType;
7
+ name?: string;
8
+ }
9
+ declare module "react" {
10
+ namespace JSX {
11
+ interface IntrinsicElements {
12
+ "goa-dropdown-item": WCProps & React.HTMLAttributes<HTMLElement>;
13
+ }
14
+ }
15
+ }
2
16
  export interface GoabDropdownItemProps {
3
17
  value: string;
4
18
  label?: string;
@@ -9,3 +23,4 @@ export interface GoabDropdownItemProps {
9
23
  }
10
24
  export declare function GoabDropdownOption(props: GoabDropdownItemProps): import("react/jsx-runtime").JSX.Element;
11
25
  export declare function GoabDropdownItem({ value, label, filter, name, mountType, }: GoabDropdownItemProps): import("react/jsx-runtime").JSX.Element;
26
+ export {};
@@ -1,5 +1,36 @@
1
- import { GoabDropdownOnChangeDetail, GoabIconType, Margins, DataAttributes } from '@abgov/ui-components-common';
1
+ import { GoabDropdownOnChangeDetail, GoabDropdownSize, GoabIconType, Margins, DataAttributes } from '@abgov/ui-components-common';
2
2
  import { JSX } from 'react';
3
+ interface WCProps extends Margins {
4
+ arialabel?: string;
5
+ arialabelledby?: string;
6
+ disabled?: string;
7
+ error?: string;
8
+ filterable?: string;
9
+ leadingicon?: string;
10
+ maxheight?: string;
11
+ multiselect?: string;
12
+ name?: string;
13
+ native?: string;
14
+ placeholder?: string;
15
+ value?: string;
16
+ width?: string;
17
+ maxwidth?: string;
18
+ relative?: string;
19
+ id?: string;
20
+ autocomplete?: string;
21
+ testid?: string;
22
+ size?: GoabDropdownSize;
23
+ version?: string;
24
+ }
25
+ declare module "react" {
26
+ namespace JSX {
27
+ interface IntrinsicElements {
28
+ "goa-dropdown": WCProps & React.HTMLAttributes<HTMLElement> & {
29
+ ref: React.RefObject<HTMLElement | null>;
30
+ };
31
+ }
32
+ }
33
+ }
3
34
  export interface GoabDropdownProps extends Margins, DataAttributes {
4
35
  name?: string;
5
36
  value?: string[] | string;
@@ -20,10 +51,11 @@ export interface GoabDropdownProps extends Margins, DataAttributes {
20
51
  width?: string;
21
52
  maxWidth?: string;
22
53
  autoComplete?: string;
54
+ size?: GoabDropdownSize;
23
55
  /***
24
56
  * @deprecated This property has no effect and will be removed in a future version
25
57
  */
26
58
  relative?: boolean;
27
59
  }
28
- export declare function GoabDropdown({ value, onChange, disabled, error, filterable, multiselect, native, relative, children, ...rest }: GoabDropdownProps): JSX.Element;
60
+ export declare function GoabDropdown({ value, onChange, disabled, error, filterable, multiselect, native, relative, children, size, ...rest }: GoabDropdownProps): JSX.Element;
29
61
  export default GoabDropdown;
@@ -1,4 +1,22 @@
1
1
  import { DataAttributes, GoabFileUploadOnCancelDetail, GoabFileUploadOnDeleteDetail } from '@abgov/ui-components-common';
2
+ interface WCProps {
3
+ filename: string;
4
+ size: number;
5
+ type?: string;
6
+ progress?: number;
7
+ error?: string;
8
+ testid?: string;
9
+ version?: string;
10
+ }
11
+ declare module "react" {
12
+ namespace JSX {
13
+ interface IntrinsicElements {
14
+ "goa-file-upload-card": WCProps & React.HTMLAttributes<HTMLElement> & {
15
+ ref: React.RefObject<HTMLElement | null>;
16
+ };
17
+ }
18
+ }
19
+ }
2
20
  export interface GoabFileUploadCardProps extends DataAttributes {
3
21
  filename: string;
4
22
  size: number;
@@ -1,4 +1,20 @@
1
1
  import { DataAttributes, GoabFileUploadInputOnSelectFileDetail, GoabFileUploadInputVariant } from '@abgov/ui-components-common';
2
+ interface WCProps {
3
+ variant?: GoabFileUploadInputVariant;
4
+ accept?: string;
5
+ maxfilesize?: string;
6
+ testid?: string;
7
+ version?: string;
8
+ }
9
+ declare module "react" {
10
+ namespace JSX {
11
+ interface IntrinsicElements {
12
+ "goa-file-upload-input": WCProps & React.HTMLAttributes<HTMLElement> & {
13
+ ref: React.RefObject<HTMLElement | null>;
14
+ };
15
+ }
16
+ }
17
+ }
2
18
  export interface GoabFileUploadInputProps extends DataAttributes {
3
19
  variant?: GoabFileUploadInputVariant;
4
20
  accept?: string;
@@ -1,9 +1,29 @@
1
- import { DataAttributes, GoabFilterChipTheme, Margins } from '@abgov/ui-components-common';
1
+ import { DataAttributes, GoabFilterChipTheme, GoabIconType, Margins } from '@abgov/ui-components-common';
2
+ interface WCProps extends Margins {
3
+ icontheme: GoabFilterChipTheme;
4
+ error?: string;
5
+ content: string;
6
+ secondarytext?: string;
7
+ leadingicon?: GoabIconType;
8
+ testid?: string;
9
+ version?: string;
10
+ }
11
+ declare module "react" {
12
+ namespace JSX {
13
+ interface IntrinsicElements {
14
+ "goa-filter-chip": WCProps & React.HTMLAttributes<HTMLElement> & {
15
+ ref: React.RefObject<HTMLElement | null>;
16
+ };
17
+ }
18
+ }
19
+ }
2
20
  export interface GoabFilterChipProps extends Margins, DataAttributes {
3
21
  onClick?: () => void;
4
22
  iconTheme?: GoabFilterChipTheme;
5
23
  error?: boolean;
6
24
  content: string;
25
+ secondaryText?: string;
26
+ leadingIcon?: GoabIconType;
7
27
  testId?: string;
8
28
  }
9
29
  export declare const GoabFilterChip: ({ iconTheme, error, onClick, ...rest }: GoabFilterChipProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,23 @@
1
1
  import { ReactNode, JSX } from 'react';
2
2
  import { DataAttributes } from '@abgov/ui-components-common';
3
+ interface WCProps {
4
+ maxcontentwidth?: string;
5
+ testid?: string;
6
+ url?: string;
7
+ version?: string;
8
+ }
9
+ declare module "react" {
10
+ namespace JSX {
11
+ interface IntrinsicElements {
12
+ "goa-app-footer": WCProps & React.HTMLAttributes<HTMLElement>;
13
+ }
14
+ }
15
+ }
3
16
  export interface GoabAppFooterProps extends DataAttributes {
4
17
  maxContentWidth?: string;
5
18
  children?: ReactNode;
6
19
  testId?: string;
7
20
  url?: string;
8
21
  }
9
- export type FooterProps = GoabAppFooterProps;
10
22
  export declare function GoabAppFooter({ children, ...rest }: GoabAppFooterProps): JSX.Element;
11
23
  export default GoabAppFooter;
@@ -1,5 +1,15 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { DataAttributes } from '@abgov/ui-components-common';
3
+ interface WCProps {
4
+ testid?: string;
5
+ }
6
+ declare module "react" {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ "goa-app-footer-meta-section": WCProps & React.HTMLAttributes<HTMLElement>;
10
+ }
11
+ }
12
+ }
3
13
  export interface GoabAppFooterMetaSectionProps extends DataAttributes {
4
14
  testId?: string;
5
15
  children?: ReactNode;
@@ -1,5 +1,17 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { DataAttributes } from '@abgov/ui-components-common';
3
+ interface WCProps {
4
+ maxcolumncount?: number;
5
+ heading?: string;
6
+ testid?: string;
7
+ }
8
+ declare module "react" {
9
+ namespace JSX {
10
+ interface IntrinsicElements {
11
+ "goa-app-footer-nav-section": WCProps & React.HTMLAttributes<HTMLElement>;
12
+ }
13
+ }
14
+ }
3
15
  export interface GoabFooterNavSectionProps extends DataAttributes {
4
16
  maxColumnCount?: number;
5
17
  heading?: string;
@@ -1,5 +1,26 @@
1
- import { GoabFormItemLabelSize, GoabFormItemRequirement, Margins, DataAttributes } from '@abgov/ui-components-common';
1
+ import { GoabFormItemLabelSize, GoabFormItemRequirement, GoabFormItemType, Margins, DataAttributes } from '@abgov/ui-components-common';
2
2
  import { JSX } from 'react';
3
+ interface WCProps extends Margins {
4
+ label?: string;
5
+ labelsize?: GoabFormItemLabelSize;
6
+ requirement?: GoabFormItemRequirement;
7
+ error?: string;
8
+ helptext?: string;
9
+ maxwidth?: string;
10
+ "public-form-summary-order"?: number;
11
+ name?: string;
12
+ id?: string;
13
+ testid?: string;
14
+ type?: GoabFormItemType;
15
+ version?: string;
16
+ }
17
+ declare module "react" {
18
+ namespace JSX {
19
+ interface IntrinsicElements {
20
+ "goa-form-item": WCProps & React.HTMLAttributes<HTMLElement>;
21
+ }
22
+ }
23
+ }
3
24
  export interface GoabFormItemProps extends Margins, DataAttributes {
4
25
  label?: string;
5
26
  labelSize?: GoabFormItemLabelSize;
@@ -7,6 +28,7 @@ export interface GoabFormItemProps extends Margins, DataAttributes {
7
28
  error?: string | React.ReactNode;
8
29
  helpText?: string | React.ReactNode;
9
30
  maxWidth?: string;
31
+ type?: GoabFormItemType;
10
32
  /**
11
33
  * Public form: to arrange fields in the summary
12
34
  */
@@ -19,5 +41,5 @@ export interface GoabFormItemProps extends Margins, DataAttributes {
19
41
  testId?: string;
20
42
  id?: string;
21
43
  }
22
- export declare function GoabFormItem({ error, helpText, publicFormSummaryOrder, children, ...rest }: GoabFormItemProps): JSX.Element;
44
+ export declare function GoabFormItem({ error, helpText, publicFormSummaryOrder, children, type, ...rest }: GoabFormItemProps): JSX.Element;
23
45
  export default GoabFormItem;
@@ -1,8 +1,48 @@
1
1
  import { JSX } from 'react';
2
- import { GoabAutoCapitalize, GoabDate, GoabIconType, GoabInputOnBlurDetail, GoabInputOnChangeDetail, GoabInputOnFocusDetail, GoabInputOnKeyPressDetail, GoabInputType, Margins, DataAttributes } from '@abgov/ui-components-common';
2
+ import { GoabAutoCapitalize, GoabDate, GoabIconType, GoabInputOnBlurDetail, GoabInputOnChangeDetail, GoabInputOnFocusDetail, GoabInputOnKeyPressDetail, GoabInputSize, GoabInputType, Margins, DataAttributes } from '@abgov/ui-components-common';
3
3
  export interface IgnoreMe {
4
4
  ignore: string;
5
5
  }
6
+ interface WCProps extends Margins {
7
+ type?: GoabInputType;
8
+ name: string;
9
+ value?: string;
10
+ id?: string;
11
+ autocapitalize?: GoabAutoCapitalize;
12
+ autocomplete?: string;
13
+ debounce?: number;
14
+ placeholder?: string;
15
+ leadingicon?: string;
16
+ trailingicon?: string;
17
+ variant: string;
18
+ disabled?: string;
19
+ error?: string;
20
+ readonly?: string;
21
+ focused?: string;
22
+ handletrailingiconclick: string;
23
+ width?: string;
24
+ prefix?: string;
25
+ suffix?: string;
26
+ arialabel?: string;
27
+ testid?: string;
28
+ textalign?: string;
29
+ size?: GoabInputSize;
30
+ min?: string | number;
31
+ max?: string | number;
32
+ step?: number;
33
+ maxlength?: number;
34
+ trailingiconarialabel?: string;
35
+ version?: string;
36
+ }
37
+ declare module "react" {
38
+ namespace JSX {
39
+ interface IntrinsicElements {
40
+ "goa-input": WCProps & React.HTMLAttributes<HTMLInputElement> & {
41
+ ref?: React.RefObject<HTMLInputElement | null>;
42
+ };
43
+ }
44
+ }
45
+ }
6
46
  interface BaseProps extends Margins, DataAttributes {
7
47
  name: string;
8
48
  id?: string;
@@ -28,6 +68,7 @@ interface BaseProps extends Margins, DataAttributes {
28
68
  maxLength?: number;
29
69
  trailingIconAriaLabel?: string;
30
70
  textAlign?: "left" | "right";
71
+ size?: GoabInputSize;
31
72
  }
32
73
  type OnChange<T = string> = (detail: GoabInputOnChangeDetail<T>) => void;
33
74
  type OnFocus<T = string> = (detail: GoabInputOnFocusDetail<T>) => void;
@@ -63,7 +104,7 @@ interface GoabDateInputProps extends BaseProps {
63
104
  onBlur?: OnBlur<GoabDate>;
64
105
  onKeyPress?: OnKeyPress<GoabDate>;
65
106
  }
66
- export declare function GoabInput({ variant, textAlign, focused, disabled, readonly, error, leadingContent, trailingContent, onTrailingIconClick, onChange, onFocus, onBlur, onKeyPress, ...rest }: GoabInputProps & {
107
+ export declare function GoabInput({ variant, textAlign, size, focused, disabled, readonly, error, leadingContent, trailingContent, onTrailingIconClick, onChange, onFocus, onBlur, onKeyPress, ...rest }: GoabInputProps & {
67
108
  type?: GoabInputType;
68
109
  }): JSX.Element;
69
110
  export declare function GoabInputText(props: GoabInputProps): JSX.Element;