@abgov/react-components 6.10.0-dev.9 → 6.10.0

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 (67) hide show
  1. package/experimental.js +1 -1
  2. package/experimental.mjs +2 -2
  3. package/{icon-CK55b563.js → icon-B3p90m2x.js} +21 -26
  4. package/icon-B3p90m2x.js.map +1 -0
  5. package/{icon-CoYGOp1V.mjs → icon-CCNDGfBO.mjs} +22 -27
  6. package/icon-CCNDGfBO.mjs.map +1 -0
  7. package/index.d.ts +1 -0
  8. package/index.js +331 -759
  9. package/index.js.map +1 -1
  10. package/index.mjs +330 -757
  11. package/index.mjs.map +1 -1
  12. package/lib/accordion/accordion.d.ts +6 -5
  13. package/lib/app-header/app-header.d.ts +6 -4
  14. package/lib/app-header-menu/app-header-menu.d.ts +3 -3
  15. package/lib/badge/badge.d.ts +3 -3
  16. package/lib/block/block.d.ts +3 -3
  17. package/lib/button/button.d.ts +6 -5
  18. package/lib/button-group/button-group.d.ts +3 -3
  19. package/lib/calendar/calendar.d.ts +6 -5
  20. package/lib/callout/callout.d.ts +3 -3
  21. package/lib/card/card-actions.d.ts +3 -2
  22. package/lib/card/card-content.d.ts +3 -2
  23. package/lib/card/card-group.d.ts +3 -2
  24. package/lib/card/card-image.d.ts +3 -2
  25. package/lib/card/card.d.ts +3 -3
  26. package/lib/checkbox/checkbox.d.ts +6 -5
  27. package/lib/chip/chip.d.ts +6 -5
  28. package/lib/common/extract-props.d.ts +32 -0
  29. package/lib/container/container.d.ts +3 -3
  30. package/lib/data-grid/data-grid.d.ts +21 -0
  31. package/lib/date-picker/date-picker.d.ts +6 -5
  32. package/lib/details/details.d.ts +3 -3
  33. package/lib/dropdown/dropdown.d.ts +6 -5
  34. package/lib/file-upload-card/file-upload-card.d.ts +6 -5
  35. package/lib/file-upload-input/file-upload-input.d.ts +6 -5
  36. package/lib/filter-chip/filter-chip.d.ts +6 -5
  37. package/lib/footer/footer.d.ts +3 -2
  38. package/lib/footer-meta-section/footer-meta-section.d.ts +3 -2
  39. package/lib/footer-nav-section/footer-nav-section.d.ts +3 -2
  40. package/lib/form/fieldset.d.ts +7 -6
  41. package/lib/form/public-form-page.d.ts +6 -5
  42. package/lib/form/public-form-summary.d.ts +3 -3
  43. package/lib/form/public-form.d.ts +6 -5
  44. package/lib/form/public-subform-index.d.ts +3 -4
  45. package/lib/form/public-subform.d.ts +6 -5
  46. package/lib/form/task-list.d.ts +3 -3
  47. package/lib/form/task.d.ts +4 -4
  48. package/lib/form-item/form-item.d.ts +3 -3
  49. package/lib/icon/icon.d.ts +3 -14
  50. package/lib/icon-button/icon-button.d.ts +6 -5
  51. package/lib/input/input.d.ts +6 -5
  52. package/lib/link/link.d.ts +3 -3
  53. package/lib/link-button/link-button.d.ts +3 -3
  54. package/lib/menu-button/menu-action.d.ts +3 -3
  55. package/lib/menu-button/menu-button.d.ts +3 -3
  56. package/lib/popover/popover.d.ts +3 -3
  57. package/lib/radio-group/radio-group.d.ts +6 -5
  58. package/lib/tab/tab.d.ts +3 -1
  59. package/lib/table/table-sort-header.d.ts +3 -3
  60. package/lib/tabs/tabs.d.ts +4 -2
  61. package/lib/temporary-notification-ctrl/temporary-notification-ctrl.d.ts +6 -5
  62. package/lib/text/text.d.ts +3 -3
  63. package/lib/textarea/textarea.d.ts +6 -5
  64. package/lib/tooltip/tooltip.d.ts +3 -3
  65. package/package.json +1 -1
  66. package/icon-CK55b563.js.map +0 -1
  67. package/icon-CoYGOp1V.mjs.map +0 -1
@@ -1,6 +1,5 @@
1
- import { Margins, GoabFilterChipTheme } from '@abgov/ui-components-common';
1
+ import { DataAttributes, GoabFilterChipTheme, Margins } from '@abgov/ui-components-common';
2
2
  interface WCProps extends Margins {
3
- ref: React.RefObject<HTMLElement | null>;
4
3
  icontheme: GoabFilterChipTheme;
5
4
  error?: string;
6
5
  content: string;
@@ -9,16 +8,18 @@ interface WCProps extends Margins {
9
8
  declare module "react" {
10
9
  namespace JSX {
11
10
  interface IntrinsicElements {
12
- "goa-filter-chip": WCProps & React.HTMLAttributes<HTMLElement>;
11
+ "goa-filter-chip": WCProps & React.HTMLAttributes<HTMLElement> & {
12
+ ref: React.RefObject<HTMLElement | null>;
13
+ };
13
14
  }
14
15
  }
15
16
  }
16
- export interface GoabFilterChipProps extends Margins {
17
+ export interface GoabFilterChipProps extends Margins, DataAttributes {
17
18
  onClick?: () => void;
18
19
  iconTheme?: GoabFilterChipTheme;
19
20
  error?: boolean;
20
21
  content: string;
21
22
  testId?: string;
22
23
  }
23
- export declare const GoabFilterChip: ({ iconTheme, error, content, onClick, mt, mr, mb, ml, testId, }: GoabFilterChipProps) => import("react/jsx-runtime").JSX.Element;
24
+ export declare const GoabFilterChip: ({ iconTheme, error, onClick, ...rest }: GoabFilterChipProps) => import("react/jsx-runtime").JSX.Element;
24
25
  export default GoabFilterChip;
@@ -1,4 +1,5 @@
1
1
  import { ReactNode, JSX } from 'react';
2
+ import { DataAttributes } from '@abgov/ui-components-common';
2
3
  interface WCProps {
3
4
  maxcontentwidth?: string;
4
5
  testid?: string;
@@ -11,12 +12,12 @@ declare module "react" {
11
12
  }
12
13
  }
13
14
  }
14
- export interface GoabAppFooterProps {
15
+ export interface GoabAppFooterProps extends DataAttributes {
15
16
  maxContentWidth?: string;
16
17
  children?: ReactNode;
17
18
  testId?: string;
18
19
  url?: string;
19
20
  }
20
21
  export type FooterProps = GoabAppFooterProps;
21
- export declare function GoabAppFooter({ maxContentWidth, children, testId, url, }: GoabAppFooterProps): JSX.Element;
22
+ export declare function GoabAppFooter({ children, ...rest }: GoabAppFooterProps): JSX.Element;
22
23
  export default GoabAppFooter;
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+ import { DataAttributes } from '@abgov/ui-components-common';
2
3
  interface WCProps {
3
4
  testid?: string;
4
5
  }
@@ -9,9 +10,9 @@ declare module "react" {
9
10
  }
10
11
  }
11
12
  }
12
- export interface GoabAppFooterMetaSectionProps {
13
+ export interface GoabAppFooterMetaSectionProps extends DataAttributes {
13
14
  testId?: string;
14
15
  children?: ReactNode;
15
16
  }
16
- export declare function GoabAppFooterMetaSection({ testId, children, }: GoabAppFooterMetaSectionProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare function GoabAppFooterMetaSection({ children, ...rest }: GoabAppFooterMetaSectionProps): import("react/jsx-runtime").JSX.Element;
17
18
  export default GoabAppFooterMetaSection;
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+ import { DataAttributes } from '@abgov/ui-components-common';
2
3
  interface WCProps {
3
4
  maxcolumncount?: number;
4
5
  heading?: string;
@@ -11,11 +12,11 @@ declare module "react" {
11
12
  }
12
13
  }
13
14
  }
14
- export interface GoabFooterNavSectionProps {
15
+ export interface GoabFooterNavSectionProps extends DataAttributes {
15
16
  maxColumnCount?: number;
16
17
  heading?: string;
17
18
  testId?: string;
18
19
  children?: ReactNode;
19
20
  }
20
- export declare function GoabAppFooterNavSection({ heading, maxColumnCount, testId, children, }: GoabFooterNavSectionProps): import("react/jsx-runtime").JSX.Element;
21
+ export declare function GoabAppFooterNavSection({ children, ...rest }: GoabFooterNavSectionProps): import("react/jsx-runtime").JSX.Element;
21
22
  export default GoabAppFooterNavSection;
@@ -1,7 +1,6 @@
1
- import { ReactNode } from 'react';
2
- import { GoabFieldsetOnContinueDetail, GoabFormDispatchOn } from '@abgov/ui-components-common';
1
+ import { ReactNode, JSX } from 'react';
2
+ import { DataAttributes, GoabFieldsetOnContinueDetail, GoabFormDispatchOn } from '@abgov/ui-components-common';
3
3
  interface WCProps {
4
- ref?: React.RefObject<HTMLElement | null>;
5
4
  id?: string;
6
5
  "section-title"?: string;
7
6
  "dispatch-on"?: string;
@@ -9,16 +8,18 @@ interface WCProps {
9
8
  declare module "react" {
10
9
  namespace JSX {
11
10
  interface IntrinsicElements {
12
- "goa-fieldset": WCProps & React.HTMLAttributes<HTMLElement>;
11
+ "goa-fieldset": WCProps & React.HTMLAttributes<HTMLElement> & {
12
+ ref: React.RefObject<HTMLElement | null>;
13
+ };
13
14
  }
14
15
  }
15
16
  }
16
- interface GoabFieldsetProps {
17
+ interface GoabFieldsetProps extends DataAttributes {
17
18
  id?: string;
18
19
  sectionTitle?: string;
19
20
  dispatchOn?: GoabFormDispatchOn;
20
21
  onContinue?: (event: GoabFieldsetOnContinueDetail) => void;
21
22
  children: ReactNode;
22
23
  }
23
- export declare function GoabFieldset({ id, sectionTitle, dispatchOn, onContinue, children, }: GoabFieldsetProps): import("react/jsx-runtime").JSX.Element;
24
+ export declare function GoabFieldset({ onContinue, children, ...rest }: GoabFieldsetProps): JSX.Element;
24
25
  export default GoabFieldset;
@@ -1,7 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { GoabPublicFormPageButtonVisibility, GoabPublicFormPageStep, Margins } from '@abgov/ui-components-common';
2
+ import { GoabPublicFormPageButtonVisibility, GoabPublicFormPageStep, Margins, DataAttributes } from '@abgov/ui-components-common';
3
3
  interface WCProps extends Margins {
4
- ref?: React.RefObject<HTMLElement | null>;
5
4
  id?: string;
6
5
  heading?: string;
7
6
  "sub-heading"?: string;
@@ -15,11 +14,13 @@ interface WCProps extends Margins {
15
14
  declare module "react" {
16
15
  namespace JSX {
17
16
  interface IntrinsicElements {
18
- "goa-public-form-page": WCProps & React.HTMLAttributes<HTMLElement>;
17
+ "goa-public-form-page": WCProps & React.HTMLAttributes<HTMLElement> & {
18
+ ref: React.RefObject<HTMLElement | null>;
19
+ };
19
20
  }
20
21
  }
21
22
  }
22
- interface GoabPublicFormPageProps extends Margins {
23
+ interface GoabPublicFormPageProps extends Margins, DataAttributes {
23
24
  id?: string;
24
25
  heading?: string;
25
26
  subHeading?: string;
@@ -36,5 +37,5 @@ interface GoabPublicFormPageProps extends Margins {
36
37
  onContinue?: (event: Event) => void;
37
38
  children: ReactNode;
38
39
  }
39
- export declare function GoabPublicFormPage({ id, heading, subHeading, summaryHeading, sectionTitle, backUrl, type, buttonText, buttonVisibility, onContinue, children, mt, mr, mb, ml, }: GoabPublicFormPageProps): import("react/jsx-runtime").JSX.Element;
40
+ export declare function GoabPublicFormPage({ onContinue, children, ...rest }: GoabPublicFormPageProps): import("react/jsx-runtime").JSX.Element;
40
41
  export default GoabPublicFormPage;
@@ -1,5 +1,5 @@
1
+ import { DataAttributes } from '@abgov/ui-components-common';
1
2
  interface WCProps {
2
- ref?: React.RefObject<HTMLElement | null>;
3
3
  heading?: string;
4
4
  }
5
5
  declare module "react" {
@@ -9,8 +9,8 @@ declare module "react" {
9
9
  }
10
10
  }
11
11
  }
12
- interface GoabPublicFormSummaryProps {
12
+ interface GoabPublicFormSummaryProps extends DataAttributes {
13
13
  heading?: string;
14
14
  }
15
- export declare function GoabPublicFormSummary({ heading, }: GoabPublicFormSummaryProps): import("react/jsx-runtime").JSX.Element;
15
+ export declare function GoabPublicFormSummary({ heading, ...rest }: GoabPublicFormSummaryProps): import("react/jsx-runtime").JSX.Element;
16
16
  export default GoabPublicFormSummary;
@@ -1,18 +1,19 @@
1
1
  import { ReactNode } from 'react';
2
- import { GoabFormState, GoabPublicFormStatus } from '@abgov/ui-components-common';
2
+ import { DataAttributes, GoabFormState, GoabPublicFormStatus } from '@abgov/ui-components-common';
3
3
  interface WCProps {
4
- ref?: React.RefObject<HTMLElement | null>;
5
4
  status?: string;
6
5
  name?: string;
7
6
  }
8
7
  declare module "react" {
9
8
  namespace JSX {
10
9
  interface IntrinsicElements {
11
- "goa-public-form": WCProps & React.HTMLAttributes<HTMLElement>;
10
+ "goa-public-form": WCProps & React.HTMLAttributes<HTMLElement> & {
11
+ ref: React.RefObject<HTMLElement | null>;
12
+ };
12
13
  }
13
14
  }
14
15
  }
15
- interface GoabPublicFormProps {
16
+ interface GoabPublicFormProps extends DataAttributes {
16
17
  status?: GoabPublicFormStatus;
17
18
  name?: string;
18
19
  onInit?: (event: Event) => void;
@@ -20,5 +21,5 @@ interface GoabPublicFormProps {
20
21
  onStateChange?: (event: GoabFormState) => void;
21
22
  children: ReactNode;
22
23
  }
23
- export declare function GoabPublicForm({ status, name, onInit, onComplete, onStateChange, children, }: GoabPublicFormProps): import("react/jsx-runtime").JSX.Element;
24
+ export declare function GoabPublicForm({ onInit, onComplete, onStateChange, children, ...rest }: GoabPublicFormProps): import("react/jsx-runtime").JSX.Element;
24
25
  export default GoabPublicForm;
@@ -1,7 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { Margins } from '@abgov/ui-components-common';
2
+ import { Margins, DataAttributes } from '@abgov/ui-components-common';
3
3
  interface WCProps extends Margins {
4
- ref?: React.RefObject<HTMLElement | null>;
5
4
  heading?: string;
6
5
  "section-title"?: string;
7
6
  "action-button-text"?: string;
@@ -14,12 +13,12 @@ declare module "react" {
14
13
  }
15
14
  }
16
15
  }
17
- interface GoabPublicSubformIndexProps extends Margins {
16
+ interface GoabPublicSubformIndexProps extends Margins, DataAttributes {
18
17
  heading?: string;
19
18
  sectionTitle?: string;
20
19
  actionButtonText?: string;
21
20
  buttonVisibility?: "visible" | "hidden";
22
21
  children: ReactNode;
23
22
  }
24
- export declare function GoabPublicSubformIndex({ heading, sectionTitle, actionButtonText, buttonVisibility, children, mt, mr, mb, ml, }: GoabPublicSubformIndexProps): import("react/jsx-runtime").JSX.Element;
23
+ export declare function GoabPublicSubformIndex({ heading, sectionTitle, actionButtonText, buttonVisibility, children, ...rest }: GoabPublicSubformIndexProps): import("react/jsx-runtime").JSX.Element;
25
24
  export default GoabPublicSubformIndex;
@@ -1,7 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { Margins } from '@abgov/ui-components-common';
2
+ import { Margins, DataAttributes } from '@abgov/ui-components-common';
3
3
  interface WCProps extends Margins {
4
- ref?: React.RefObject<HTMLElement | null>;
5
4
  id?: string;
6
5
  name?: string;
7
6
  "continue-msg"?: string;
@@ -9,11 +8,13 @@ interface WCProps extends Margins {
9
8
  declare module "react" {
10
9
  namespace JSX {
11
10
  interface IntrinsicElements {
12
- "goa-public-subform": WCProps & React.HTMLAttributes<HTMLElement>;
11
+ "goa-public-subform": WCProps & React.HTMLAttributes<HTMLElement> & {
12
+ ref: React.RefObject<HTMLElement | null>;
13
+ };
13
14
  }
14
15
  }
15
16
  }
16
- interface GoabPublicSubformProps extends Margins {
17
+ interface GoabPublicSubformProps extends Margins, DataAttributes {
17
18
  id?: string;
18
19
  name?: string;
19
20
  continueMsg?: string;
@@ -21,5 +22,5 @@ interface GoabPublicSubformProps extends Margins {
21
22
  onStateChange?: (event: Event) => void;
22
23
  children: ReactNode;
23
24
  }
24
- export declare function GoabPublicSubform({ id, name, continueMsg, onInit, onStateChange, children, mt, mr, mb, ml, }: GoabPublicSubformProps): import("react/jsx-runtime").JSX.Element;
25
+ export declare function GoabPublicSubform({ id, name, continueMsg, onInit, onStateChange, children, ...rest }: GoabPublicSubformProps): import("react/jsx-runtime").JSX.Element;
25
26
  export default GoabPublicSubform;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { Margins } from '@abgov/ui-components-common';
2
+ import { Margins, DataAttributes } from '@abgov/ui-components-common';
3
3
  interface WCProps extends Margins {
4
4
  heading?: string;
5
5
  }
@@ -10,9 +10,9 @@ declare module "react" {
10
10
  }
11
11
  }
12
12
  }
13
- interface GoabPublicFormTaskListProps extends Margins {
13
+ interface GoabPublicFormTaskListProps extends Margins, DataAttributes {
14
14
  heading?: string;
15
15
  children: ReactNode;
16
16
  }
17
- export declare function GoabPublicFormTaskList({ heading, children, mt, mr, mb, ml, }: GoabPublicFormTaskListProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare function GoabPublicFormTaskList({ children, ...rest }: GoabPublicFormTaskListProps): import("react/jsx-runtime").JSX.Element;
18
18
  export default GoabPublicFormTaskList;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { GoabPublicFormTaskStatus } from '@abgov/ui-components-common';
2
+ import { DataAttributes, GoabPublicFormTaskStatus } from '@abgov/ui-components-common';
3
3
  interface WCProps {
4
4
  status?: GoabPublicFormTaskStatus;
5
5
  }
@@ -10,9 +10,9 @@ declare module "react" {
10
10
  }
11
11
  }
12
12
  }
13
- type GoabPublicFormTaskProps = {
13
+ interface GoabPublicFormTaskProps extends DataAttributes {
14
14
  status?: GoabPublicFormTaskStatus;
15
15
  children: ReactNode;
16
- };
17
- export declare function GoabPublicFormTask({ status, children }: GoabPublicFormTaskProps): import("react/jsx-runtime").JSX.Element;
16
+ }
17
+ export declare function GoabPublicFormTask({ status, children, ...rest }: GoabPublicFormTaskProps): import("react/jsx-runtime").JSX.Element;
18
18
  export default GoabPublicFormTask;
@@ -1,4 +1,4 @@
1
- import { GoabFormItemLabelSize, GoabFormItemRequirement, Margins } from '@abgov/ui-components-common';
1
+ import { GoabFormItemLabelSize, GoabFormItemRequirement, Margins, DataAttributes } from '@abgov/ui-components-common';
2
2
  import { JSX } from 'react';
3
3
  interface WCProps extends Margins {
4
4
  label?: string;
@@ -19,7 +19,7 @@ declare module "react" {
19
19
  }
20
20
  }
21
21
  }
22
- export interface GoabFormItemProps extends Margins {
22
+ export interface GoabFormItemProps extends Margins, DataAttributes {
23
23
  label?: string;
24
24
  labelSize?: GoabFormItemLabelSize;
25
25
  requirement?: GoabFormItemRequirement;
@@ -38,5 +38,5 @@ export interface GoabFormItemProps extends Margins {
38
38
  testId?: string;
39
39
  id?: string;
40
40
  }
41
- export declare function GoabFormItem({ children, helpText, error, requirement, label, labelSize, maxWidth, publicFormSummaryOrder, name, mt, mr, mb, ml, testId, id, }: GoabFormItemProps): JSX.Element;
41
+ export declare function GoabFormItem({ error, helpText, publicFormSummaryOrder, children, ...rest }: GoabFormItemProps): JSX.Element;
42
42
  export default GoabFormItem;
@@ -1,17 +1,7 @@
1
- import { GoabIconFilledType, GoabIconOverridesType, GoabIconSize, GoabIconTheme, GoabIconType, Margins } from '@abgov/ui-components-common';
1
+ import { GoabIconOverridesType, GoabIconSize, GoabIconTheme, GoabIconType, Margins, DataAttributes } from '@abgov/ui-components-common';
2
2
  import { JSX } from 'react';
3
- interface IonIconProps {
4
- name: GoabIconType | GoabIconFilledType;
5
- }
6
3
  interface IonIconElement extends HTMLElement {
7
4
  }
8
- declare module "react" {
9
- namespace JSX {
10
- interface IntrinsicElements {
11
- "ion-icon": IonIconProps & React.HTMLAttributes<IonIconElement>;
12
- }
13
- }
14
- }
15
5
  declare module "react" {
16
6
  namespace JSX {
17
7
  interface IntrinsicElements {
@@ -19,7 +9,7 @@ declare module "react" {
19
9
  }
20
10
  }
21
11
  }
22
- export interface GoabIconProps extends Margins {
12
+ export interface GoabIconProps extends Margins, DataAttributes {
23
13
  type: GoabIconType | GoabIconOverridesType;
24
14
  size?: GoabIconSize;
25
15
  theme?: GoabIconTheme;
@@ -41,6 +31,5 @@ interface WCProps extends Margins {
41
31
  arialabel?: string;
42
32
  testid?: string;
43
33
  }
44
- export declare function GoabIcon({ type, theme, size, inverted, // TODO: change to boolean only
45
- fillColor, opacity, title, ariaLabel, mt, mr, mb, ml, testId, }: GoabIconProps): JSX.Element;
34
+ export declare function GoabIcon({ inverted, ...rest }: GoabIconProps): JSX.Element;
46
35
  export {};
@@ -1,7 +1,6 @@
1
- import { GoabIconButtonVariant, GoabIconSize, GoabIconType, Margins } from '@abgov/ui-components-common';
1
+ import { GoabIconButtonVariant, GoabIconSize, GoabIconType, Margins, DataAttributes } from '@abgov/ui-components-common';
2
2
  import { JSX, ReactNode } from 'react';
3
3
  interface WCProps extends Margins {
4
- ref: React.RefObject<HTMLElement | null>;
5
4
  icon: GoabIconType;
6
5
  size?: GoabIconSize;
7
6
  variant?: GoabIconButtonVariant;
@@ -16,11 +15,13 @@ interface WCProps extends Margins {
16
15
  declare module "react" {
17
16
  namespace JSX {
18
17
  interface IntrinsicElements {
19
- "goa-icon-button": WCProps & React.HTMLAttributes<HTMLButtonElement>;
18
+ "goa-icon-button": WCProps & React.HTMLAttributes<HTMLButtonElement> & {
19
+ ref: React.RefObject<HTMLElement | null>;
20
+ };
20
21
  }
21
22
  }
22
23
  }
23
- export interface GoabIconButtonProps extends Margins {
24
+ export interface GoabIconButtonProps extends Margins, DataAttributes {
24
25
  icon: GoabIconType;
25
26
  size?: GoabIconSize;
26
27
  variant?: GoabIconButtonVariant;
@@ -34,5 +35,5 @@ export interface GoabIconButtonProps extends Margins {
34
35
  actionArg?: string;
35
36
  children?: ReactNode;
36
37
  }
37
- export declare function GoabIconButton({ icon, disabled, variant, onClick, size, title, ariaLabel, testId, children, mt, mr, mb, ml, action, actionArgs, actionArg, }: GoabIconButtonProps): JSX.Element;
38
+ export declare function GoabIconButton({ variant, size, disabled, onClick, actionArgs, actionArg, children, ...rest }: GoabIconButtonProps): JSX.Element;
38
39
  export {};
@@ -1,10 +1,9 @@
1
1
  import { JSX } from 'react';
2
- import { GoabAutoCapitalize, GoabDate, GoabIconType, GoabInputOnBlurDetail, GoabInputOnChangeDetail, GoabInputOnFocusDetail, GoabInputOnKeyPressDetail, GoabInputType, Margins } from '@abgov/ui-components-common';
2
+ import { GoabAutoCapitalize, GoabDate, GoabIconType, GoabInputOnBlurDetail, GoabInputOnChangeDetail, GoabInputOnFocusDetail, GoabInputOnKeyPressDetail, GoabInputType, Margins, DataAttributes } from '@abgov/ui-components-common';
3
3
  export interface IgnoreMe {
4
4
  ignore: string;
5
5
  }
6
6
  interface WCProps extends Margins {
7
- ref?: React.RefObject<HTMLInputElement | null>;
8
7
  type?: GoabInputType;
9
8
  name: string;
10
9
  value?: string;
@@ -36,11 +35,13 @@ interface WCProps extends Margins {
36
35
  declare module "react" {
37
36
  namespace JSX {
38
37
  interface IntrinsicElements {
39
- "goa-input": WCProps & React.HTMLAttributes<HTMLInputElement>;
38
+ "goa-input": WCProps & React.HTMLAttributes<HTMLInputElement> & {
39
+ ref?: React.RefObject<HTMLInputElement | null>;
40
+ };
40
41
  }
41
42
  }
42
43
  }
43
- interface BaseProps extends Margins {
44
+ interface BaseProps extends Margins, DataAttributes {
44
45
  name: string;
45
46
  id?: string;
46
47
  debounce?: number;
@@ -100,7 +101,7 @@ interface GoabDateInputProps extends BaseProps {
100
101
  onBlur?: OnBlur<GoabDate>;
101
102
  onKeyPress?: OnKeyPress<GoabDate>;
102
103
  }
103
- export declare function GoabInput({ id, debounce, name, type, autoCapitalize, autoComplete, leadingIcon, trailingIcon, variant, focused, disabled, readonly, value, placeholder, error, width, testId, min, max, step, prefix, suffix, ariaLabel, mt, mr, mb, ml, leadingContent, trailingContent, maxLength, trailingIconAriaLabel, textAlign, onTrailingIconClick, onChange, onFocus, onBlur, onKeyPress, }: GoabInputProps & {
104
+ export declare function GoabInput({ variant, textAlign, focused, disabled, readonly, error, leadingContent, trailingContent, onTrailingIconClick, onChange, onFocus, onBlur, onKeyPress, ...rest }: GoabInputProps & {
104
105
  type?: GoabInputType;
105
106
  }): JSX.Element;
106
107
  export declare function GoabInputText(props: GoabInputProps): JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { GoabIconType, Margins } from '@abgov/ui-components-common';
2
+ import { GoabIconType, Margins, DataAttributes } from '@abgov/ui-components-common';
3
3
  interface WCProps extends Margins {
4
4
  leadingicon?: GoabIconType;
5
5
  trailingicon?: GoabIconType;
@@ -15,7 +15,7 @@ declare module "react" {
15
15
  }
16
16
  }
17
17
  }
18
- interface GoabLinkProps extends Margins {
18
+ interface GoabLinkProps extends Margins, DataAttributes {
19
19
  leadingIcon?: GoabIconType;
20
20
  trailingIcon?: GoabIconType;
21
21
  action?: string;
@@ -24,5 +24,5 @@ interface GoabLinkProps extends Margins {
24
24
  testId?: string;
25
25
  children: ReactNode;
26
26
  }
27
- export declare function GoabLink(props: GoabLinkProps): import("react/jsx-runtime").JSX.Element;
27
+ export declare function GoabLink({ actionArgs, actionArg, children, ...rest }: GoabLinkProps): import("react/jsx-runtime").JSX.Element;
28
28
  export default GoabLink;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { GoabIconType, GoabLinkButtonType, Margins } from '@abgov/ui-components-common';
2
+ import { DataAttributes, GoabIconType, GoabLinkButtonType, Margins } from '@abgov/ui-components-common';
3
3
  interface WCProps extends Margins {
4
4
  type?: GoabLinkButtonType;
5
5
  leadingicon?: GoabIconType;
@@ -12,11 +12,11 @@ declare module "react" {
12
12
  }
13
13
  }
14
14
  }
15
- interface GoALinkButtonProps extends Margins {
15
+ interface GoALinkButtonProps extends Margins, DataAttributes {
16
16
  type?: GoabLinkButtonType;
17
17
  leadingIcon?: GoabIconType;
18
18
  trailingIcon?: GoabIconType;
19
19
  children: ReactNode;
20
20
  }
21
- export declare function GoALinkButton({ type, ...props }: GoALinkButtonProps): import("react/jsx-runtime").JSX.Element;
21
+ export declare function GoALinkButton({ type, children, ...rest }: GoALinkButtonProps): import("react/jsx-runtime").JSX.Element;
22
22
  export default GoALinkButton;
@@ -1,4 +1,4 @@
1
- import { GoabIconType } from '@abgov/ui-components-common';
1
+ import { DataAttributes, GoabIconType } from '@abgov/ui-components-common';
2
2
  import { JSX } from 'react';
3
3
  interface WCProps {
4
4
  text: string;
@@ -13,11 +13,11 @@ declare module "react" {
13
13
  }
14
14
  }
15
15
  }
16
- export interface GoabMenuActionProps {
16
+ export interface GoabMenuActionProps extends DataAttributes {
17
17
  text: string;
18
18
  action: string;
19
19
  icon?: GoabIconType;
20
20
  testId?: string;
21
21
  }
22
- export declare function GoabMenuAction({ text, icon, action, testId }: GoabMenuActionProps): JSX.Element;
22
+ export declare function GoabMenuAction(props: GoabMenuActionProps): JSX.Element;
23
23
  export default GoabMenuAction;
@@ -1,4 +1,4 @@
1
- import { GoabButtonType, GoabIconType, GoabMenuButtonOnActionDetail } from '@abgov/ui-components-common';
1
+ import { DataAttributes, GoabButtonType, GoabIconType, GoabMenuButtonOnActionDetail } from '@abgov/ui-components-common';
2
2
  import { ReactNode, JSX } from 'react';
3
3
  /**
4
4
  * Props definition for the `goab-menu-button` Web Component.
@@ -41,7 +41,7 @@ declare module "react" {
41
41
  * @property {Function} [onAction] - Callback function invoked when an action event is emitted by the component.
42
42
  * @property {ReactNode} [children] - Optional child elements to be rendered inside the button.
43
43
  */
44
- export interface GoabMenuButtonProps {
44
+ export interface GoabMenuButtonProps extends DataAttributes {
45
45
  text: string;
46
46
  type?: GoabButtonType;
47
47
  maxWidth?: string;
@@ -73,5 +73,5 @@ export interface GoabMenuButtonProps {
73
73
  * </GoabMenuButton>
74
74
  * ```
75
75
  */
76
- export declare function GoabMenuButton({ text, type, leadingIcon, maxWidth, testId, onAction, children, }: GoabMenuButtonProps): JSX.Element;
76
+ export declare function GoabMenuButton({ type, testId, onAction, children, ...rest }: GoabMenuButtonProps): JSX.Element;
77
77
  export default GoabMenuButton;
@@ -1,4 +1,4 @@
1
- import { GoabPopoverPosition, Margins } from '@abgov/ui-components-common';
1
+ import { DataAttributes, GoabPopoverPosition, Margins } from '@abgov/ui-components-common';
2
2
  import { ReactNode, JSX } from 'react';
3
3
  interface WCProps extends Margins {
4
4
  maxwidth?: string;
@@ -15,7 +15,7 @@ declare module "react" {
15
15
  }
16
16
  }
17
17
  }
18
- export interface GoabPopoverProps extends Margins {
18
+ export interface GoabPopoverProps extends Margins, DataAttributes {
19
19
  target?: ReactNode;
20
20
  testId?: string;
21
21
  maxWidth?: string;
@@ -28,5 +28,5 @@ export interface GoabPopoverProps extends Margins {
28
28
  */
29
29
  relative?: boolean;
30
30
  }
31
- export declare function GoabPopover({ target, testId, maxWidth, minWidth, padded, position, relative, children, mt, mr, mb, ml, }: GoabPopoverProps): JSX.Element;
31
+ export declare function GoabPopover({ target, padded, relative, children, ...rest }: GoabPopoverProps): JSX.Element;
32
32
  export default GoabPopover;
@@ -1,8 +1,7 @@
1
1
  import { JSX } from 'react';
2
- import { GoabRadioGroupOnChangeDetail, GoabRadioGroupOrientation, Margins } from '@abgov/ui-components-common';
2
+ import { GoabRadioGroupOnChangeDetail, GoabRadioGroupOrientation, Margins, DataAttributes } from '@abgov/ui-components-common';
3
3
  export * from './radio';
4
4
  interface WCProps extends Margins {
5
- ref: React.RefObject<HTMLElement | null>;
6
5
  name: string;
7
6
  value?: string;
8
7
  id?: string;
@@ -15,11 +14,13 @@ interface WCProps extends Margins {
15
14
  declare module "react" {
16
15
  namespace JSX {
17
16
  interface IntrinsicElements {
18
- "goa-radio-group": WCProps & React.HTMLAttributes<HTMLElement>;
17
+ "goa-radio-group": WCProps & React.HTMLAttributes<HTMLElement> & {
18
+ ref: React.RefObject<HTMLElement | null>;
19
+ };
19
20
  }
20
21
  }
21
22
  }
22
- export interface GoabRadioGroupProps extends Margins {
23
+ export interface GoabRadioGroupProps extends Margins, DataAttributes {
23
24
  name: string;
24
25
  value?: string;
25
26
  id?: string;
@@ -31,5 +32,5 @@ export interface GoabRadioGroupProps extends Margins {
31
32
  children?: React.ReactNode;
32
33
  onChange?: (detail: GoabRadioGroupOnChangeDetail) => void;
33
34
  }
34
- export declare function GoabRadioGroup({ name, value, children, orientation, disabled, error, id, testId, ariaLabel, mt, mr, mb, ml, onChange, }: GoabRadioGroupProps): JSX.Element;
35
+ export declare function GoabRadioGroup({ disabled, error, onChange, name, children, ...rest }: GoabRadioGroupProps): JSX.Element;
35
36
  export default GoabRadioGroup;
package/lib/tab/tab.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { JSX } from 'react';
2
2
  interface WCProps {
3
3
  heading?: React.ReactNode;
4
+ disabled?: string;
4
5
  }
5
6
  declare module "react" {
6
7
  namespace JSX {
@@ -11,7 +12,8 @@ declare module "react" {
11
12
  }
12
13
  export interface GoabTabItemProps {
13
14
  heading?: React.ReactNode;
15
+ disabled?: boolean;
14
16
  children?: React.ReactNode;
15
17
  }
16
- export declare function GoabTab({ heading, children }: GoabTabItemProps): JSX.Element;
18
+ export declare function GoabTab({ heading, disabled, children }: GoabTabItemProps): JSX.Element;
17
19
  export {};
@@ -1,4 +1,4 @@
1
- import { GoabTableSortDirection } from '@abgov/ui-components-common';
1
+ import { DataAttributes, GoabTableSortDirection } from '@abgov/ui-components-common';
2
2
  import { JSX } from 'react';
3
3
  interface WCProps {
4
4
  name?: string;
@@ -11,10 +11,10 @@ declare module "react" {
11
11
  }
12
12
  }
13
13
  }
14
- export interface GoabTableSortProps {
14
+ export interface GoabTableSortProps extends DataAttributes {
15
15
  name?: string;
16
16
  direction?: GoabTableSortDirection;
17
17
  children?: React.ReactNode;
18
18
  }
19
- export declare function GoabTableSortHeader({ name, direction, children, }: GoabTableSortProps): JSX.Element;
19
+ export declare function GoabTableSortHeader({ children, ...rest }: GoabTableSortProps): JSX.Element;
20
20
  export default GoabTableSortHeader;
@@ -1,10 +1,11 @@
1
1
  import { default as React, JSX } from 'react';
2
- import { GoabTabsOnChangeDetail } from '@abgov/ui-components-common';
2
+ import { GoabTabsOnChangeDetail, GoabTabsVariant } from '@abgov/ui-components-common';
3
3
  interface WCProps {
4
4
  initialtab?: number;
5
5
  ref: React.RefObject<HTMLElement | null>;
6
6
  onChange?: (tab: number) => void;
7
7
  testid?: string;
8
+ variant?: GoabTabsVariant;
8
9
  }
9
10
  declare module "react" {
10
11
  namespace JSX {
@@ -17,7 +18,8 @@ export interface GoabTabsProps {
17
18
  initialTab?: number;
18
19
  children?: React.ReactNode;
19
20
  testId?: string;
21
+ variant?: GoabTabsVariant;
20
22
  onChange?: (detail: GoabTabsOnChangeDetail) => void;
21
23
  }
22
- export declare function GoabTabs({ initialTab, children, testId, onChange, }: GoabTabsProps): JSX.Element;
24
+ export declare function GoabTabs({ initialTab, children, testId, variant, onChange, }: GoabTabsProps): JSX.Element;
23
25
  export default GoabTabs;