@abgov/react-components 5.0.0 → 5.3.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 (79) hide show
  1. package/experimental/form/form-summary.d.ts +9 -0
  2. package/experimental/form/form.d.ts +35 -0
  3. package/experimental/form/task-list.d.ts +18 -0
  4. package/experimental/form/task.d.ts +18 -0
  5. package/experimental/form-hook.d.ts +8 -0
  6. package/experimental/index.d.ts +2 -0
  7. package/experimental/resizable-panel/ResizablePanel.d.ts +7 -0
  8. package/experimental/validators.d.ts +50 -0
  9. package/experimental.js +123 -0
  10. package/experimental.js.map +1 -0
  11. package/experimental.mjs +123 -0
  12. package/experimental.mjs.map +1 -0
  13. package/icon-1IRcN4Uf.js +38 -0
  14. package/icon-1IRcN4Uf.js.map +1 -0
  15. package/icon-DgSW1II3.mjs +39 -0
  16. package/icon-DgSW1II3.mjs.map +1 -0
  17. package/index.d.ts +4 -0
  18. package/index.js +229 -105
  19. package/index.js.map +1 -1
  20. package/index.mjs +217 -93
  21. package/index.mjs.map +1 -1
  22. package/lib/accordion/accordion.d.ts +5 -1
  23. package/lib/app-header/app-header.d.ts +5 -1
  24. package/lib/app-header-menu/app-header-menu.d.ts +1 -0
  25. package/lib/badge/badge.d.ts +1 -0
  26. package/lib/block/block.d.ts +1 -0
  27. package/lib/button/button.d.ts +1 -0
  28. package/lib/button-group/button-group.d.ts +1 -0
  29. package/lib/calendar/calendar.d.ts +1 -0
  30. package/lib/callout/callout.d.ts +5 -1
  31. package/lib/card/card-actions.d.ts +12 -0
  32. package/lib/card/card-content.d.ts +12 -0
  33. package/lib/card/card-group.d.ts +12 -0
  34. package/lib/card/card-image.d.ts +17 -0
  35. package/lib/card/card.d.ts +21 -0
  36. package/lib/card/index.d.ts +5 -0
  37. package/lib/checkbox/checkbox.d.ts +2 -1
  38. package/lib/chip/chip.d.ts +1 -0
  39. package/lib/circular-progress/circular-progress.d.ts +1 -0
  40. package/lib/container/container.d.ts +1 -0
  41. package/lib/date-picker/date-picker.d.ts +7 -2
  42. package/lib/details/details.d.ts +1 -0
  43. package/lib/divider/divider.d.ts +4 -1
  44. package/lib/drawer/drawer.d.ts +30 -0
  45. package/lib/dropdown/dropdown.d.ts +2 -1
  46. package/lib/fieldset/fieldset.d.ts +29 -0
  47. package/lib/file-upload-card/file-upload-card.d.ts +1 -0
  48. package/lib/file-upload-input/file-upload-input.d.ts +1 -0
  49. package/lib/footer/footer.d.ts +1 -0
  50. package/lib/footer-meta-section/footer-meta-section.d.ts +4 -1
  51. package/lib/footer-nav-section/footer-nav-section.d.ts +1 -0
  52. package/lib/form-item/form-item.d.ts +1 -0
  53. package/lib/form-stepper/form-stepper.d.ts +1 -0
  54. package/lib/grid/grid.d.ts +1 -0
  55. package/lib/hero-banner/hero-banner.d.ts +1 -0
  56. package/lib/icon-button/icon-button.d.ts +1 -0
  57. package/lib/input/input.d.ts +4 -3
  58. package/lib/link/link.d.ts +21 -0
  59. package/lib/link-button/link-button.d.ts +24 -0
  60. package/lib/microsite-header/microsite-header.d.ts +6 -2
  61. package/lib/modal/modal.d.ts +1 -0
  62. package/lib/notification/notification.d.ts +1 -0
  63. package/lib/page-block/page-block.d.ts +1 -0
  64. package/lib/pagination/pagination.d.ts +1 -0
  65. package/lib/popover/popover.d.ts +1 -0
  66. package/lib/radio-group/radio-group.d.ts +2 -1
  67. package/lib/side-menu/side-menu.d.ts +4 -1
  68. package/lib/side-menu-group/side-menu-group.d.ts +7 -2
  69. package/lib/side-menu-heading/side-menu-heading.d.ts +1 -0
  70. package/lib/skeleton/skeleton.d.ts +1 -0
  71. package/lib/spacer/spacer.d.ts +1 -0
  72. package/lib/spinner/spinner.d.ts +1 -0
  73. package/lib/table/table.d.ts +1 -0
  74. package/lib/tabs/tabs.d.ts +1 -0
  75. package/lib/text/text.d.ts +28 -0
  76. package/lib/textarea/textarea.d.ts +2 -1
  77. package/lib/tooltip/tooltip.d.ts +1 -0
  78. package/package.json +6 -1
  79. package/style.css +49 -0
@@ -1,6 +1,7 @@
1
1
  import { ReactNode } from "react";
2
2
  import { Margins } from "../../common/styling";
3
3
  export type GoAHeadingSize = "small" | "medium";
4
+ export type GoAIconPosition = "left" | "right";
4
5
  interface WCProps extends Margins {
5
6
  open?: boolean;
6
7
  headingSize?: GoAHeadingSize;
@@ -8,6 +9,8 @@ interface WCProps extends Margins {
8
9
  secondaryText?: string;
9
10
  headingContent?: ReactNode;
10
11
  maxwidth?: string;
12
+ testid?: string;
13
+ iconposition?: GoAIconPosition;
11
14
  }
12
15
  declare global {
13
16
  namespace JSX {
@@ -24,7 +27,8 @@ export interface GoAAccordionProps extends Margins {
24
27
  headingContent?: ReactNode;
25
28
  maxWidth?: string;
26
29
  testid?: string;
30
+ iconPosition?: GoAIconPosition;
27
31
  children: ReactNode;
28
32
  }
29
- export declare function GoAAccordion({ open, heading, headingSize, secondaryText, headingContent, maxWidth, testid, children, mt, mr, mb, ml, }: GoAAccordionProps): JSX.Element;
33
+ export declare function GoAAccordion({ open, heading, headingSize, secondaryText, headingContent, iconPosition, maxWidth, testid, children, mt, mr, mb, ml, }: GoAAccordionProps): JSX.Element;
30
34
  export default GoAAccordion;
@@ -3,6 +3,9 @@ interface WCProps {
3
3
  url?: string;
4
4
  maxcontentwidth?: string;
5
5
  fullmenubreakpoint?: number;
6
+ hasmenuclickhandler?: boolean;
7
+ ref: React.RefObject<HTMLElement>;
8
+ testid?: string;
6
9
  }
7
10
  declare global {
8
11
  namespace JSX {
@@ -17,7 +20,8 @@ export interface GoAAppHeaderProps {
17
20
  maxContentWidth?: string;
18
21
  fullMenuBreakpoint?: number;
19
22
  children?: React.ReactNode;
23
+ onMenuClick?: () => void;
20
24
  testId?: string;
21
25
  }
22
- export declare function GoAAppHeader({ heading, url, maxContentWidth, fullMenuBreakpoint, testId, children, }: GoAAppHeaderProps): JSX.Element;
26
+ export declare function GoAAppHeader({ heading, url, maxContentWidth, fullMenuBreakpoint, testId, children, onMenuClick, }: GoAAppHeaderProps): JSX.Element;
23
27
  export default GoAAppHeader;
@@ -3,6 +3,7 @@ import { GoAIconType } from "../icon/icon";
3
3
  interface WCProps {
4
4
  heading: string;
5
5
  leadingicon?: GoAIconType;
6
+ testid?: string;
6
7
  }
7
8
  export interface GoAAppHeaderMenuProps {
8
9
  heading: string;
@@ -5,6 +5,7 @@ interface WCProps extends Margins {
5
5
  icon?: boolean;
6
6
  content?: string;
7
7
  arialabel?: string;
8
+ testid?: string;
8
9
  }
9
10
  declare global {
10
11
  namespace JSX {
@@ -4,6 +4,7 @@ export interface WCProps extends Margins {
4
4
  gap?: Spacing;
5
5
  direction?: Direction;
6
6
  alignment?: Alignment;
7
+ testid?: string;
7
8
  }
8
9
  declare global {
9
10
  namespace JSX {
@@ -14,6 +14,7 @@ interface WCProps extends Margins {
14
14
  disabled?: boolean;
15
15
  leadingicon?: string;
16
16
  trailingicon?: string;
17
+ testid?: string;
17
18
  ref: React.RefObject<HTMLElement>;
18
19
  }
19
20
  declare global {
@@ -5,6 +5,7 @@ export type Gap = GoAButtonGroupGap;
5
5
  interface WCProps extends Margins {
6
6
  alignment: GoAButtonGroupAlignment;
7
7
  gap?: GoAButtonGroupGap;
8
+ testid?: string;
8
9
  }
9
10
  declare global {
10
11
  namespace JSX {
@@ -5,6 +5,7 @@ interface WCProps extends Margins {
5
5
  value?: string;
6
6
  min?: string;
7
7
  max?: string;
8
+ testid?: string;
8
9
  }
9
10
  declare global {
10
11
  namespace JSX {
@@ -2,12 +2,15 @@ import { Margins } from "../../common/styling";
2
2
  export type GoACalloutType = "important" | "information" | "event" | "success" | "emergency";
3
3
  export type GoACalloutSize = "medium" | "large";
4
4
  export type GoACalloutAriaLive = "off" | "polite" | "assertive";
5
+ export type GoACalloutIconTheme = "outline" | "filled";
5
6
  interface WCProps extends Margins {
6
7
  heading?: string;
7
8
  type?: GoACalloutType;
8
9
  size?: GoACalloutSize;
9
10
  maxwidth?: string;
10
11
  arialive?: GoACalloutAriaLive;
12
+ icontheme?: GoACalloutIconTheme;
13
+ testid?: string;
11
14
  }
12
15
  declare global {
13
16
  namespace JSX {
@@ -20,11 +23,12 @@ export interface GoACalloutProps extends Margins {
20
23
  heading?: string;
21
24
  type?: GoACalloutType;
22
25
  size?: GoACalloutSize;
26
+ iconTheme?: GoACalloutIconTheme;
23
27
  maxWidth?: string;
24
28
  testId?: string;
25
29
  ariaLive?: GoACalloutAriaLive;
26
30
  children?: React.ReactNode;
27
31
  }
28
32
  export type CalloutProps = GoACalloutProps;
29
- export declare const GoACallout: ({ heading, type, size, maxWidth, testId, ariaLive, children, mt, mr, mb, ml, }: GoACalloutProps) => import("react/jsx-runtime").JSX.Element;
33
+ export declare const GoACallout: ({ heading, type, iconTheme, size, maxWidth, testId, ariaLive, children, mt, mr, mb, ml, }: GoACalloutProps) => import("react/jsx-runtime").JSX.Element;
30
34
  export default GoACallout;
@@ -0,0 +1,12 @@
1
+ declare global {
2
+ namespace JSX {
3
+ interface IntrinsicElements {
4
+ "goa-card-actions": React.HTMLAttributes<HTMLElement>;
5
+ }
6
+ }
7
+ }
8
+ export interface GoACardActionsProps {
9
+ children?: React.ReactNode;
10
+ }
11
+ export declare function GoACardActions({ children }: GoACardActionsProps): JSX.Element;
12
+ export default GoACardActions;
@@ -0,0 +1,12 @@
1
+ declare global {
2
+ namespace JSX {
3
+ interface IntrinsicElements {
4
+ "goa-card-content": React.HTMLAttributes<HTMLElement>;
5
+ }
6
+ }
7
+ }
8
+ export interface GoACardContentProps {
9
+ children?: React.ReactNode;
10
+ }
11
+ export declare function GoACardContent({ children }: GoACardContentProps): JSX.Element;
12
+ export default GoACardContent;
@@ -0,0 +1,12 @@
1
+ declare global {
2
+ namespace JSX {
3
+ interface IntrinsicElements {
4
+ "goa-card-group": React.HTMLAttributes<HTMLElement>;
5
+ }
6
+ }
7
+ }
8
+ export interface GoACardGroupProps {
9
+ children?: React.ReactNode;
10
+ }
11
+ export declare function GoACardGroup({ children }: GoACardGroupProps): JSX.Element;
12
+ export default GoACardGroup;
@@ -0,0 +1,17 @@
1
+ interface WCProps {
2
+ src: string;
3
+ height: string;
4
+ }
5
+ declare global {
6
+ namespace JSX {
7
+ interface IntrinsicElements {
8
+ "goa-card-image": WCProps & React.HTMLAttributes<HTMLElement>;
9
+ }
10
+ }
11
+ }
12
+ export interface GoACardImageProps {
13
+ src: string;
14
+ height: string;
15
+ }
16
+ export declare function GoACardImage({ src, height }: GoACardImageProps): JSX.Element;
17
+ export default GoACardImage;
@@ -0,0 +1,21 @@
1
+ import { Margins } from "../../common/styling";
2
+ interface WCProps extends Margins {
3
+ elevation?: number;
4
+ width?: string;
5
+ children: React.ReactNode;
6
+ }
7
+ declare global {
8
+ namespace JSX {
9
+ interface IntrinsicElements {
10
+ "goa-card": WCProps & React.HTMLAttributes<HTMLElement>;
11
+ }
12
+ }
13
+ }
14
+ export interface GoACardProps extends Margins {
15
+ elevation?: number;
16
+ width?: string;
17
+ testId?: string;
18
+ children?: React.ReactNode;
19
+ }
20
+ export declare function GoACard({ elevation, width, mt, mr, mb, ml, testId, children, }: GoACardProps): JSX.Element;
21
+ export default GoACard;
@@ -0,0 +1,5 @@
1
+ export * from "./card-content";
2
+ export * from "./card-image";
3
+ export * from "./card-actions";
4
+ export * from "./card-group";
5
+ export * from "./card";
@@ -18,11 +18,12 @@ interface WCProps extends Margins {
18
18
  arialabel?: string;
19
19
  description?: string | React.ReactNode;
20
20
  maxwidth?: string;
21
+ testid?: string;
21
22
  }
22
23
  export interface GoACheckboxProps extends Margins {
23
24
  id?: string;
24
25
  name: string;
25
- checked: boolean;
26
+ checked?: boolean;
26
27
  disabled?: boolean;
27
28
  error?: boolean;
28
29
  text?: string;
@@ -9,6 +9,7 @@ interface WCProps extends Margins {
9
9
  deletable: boolean;
10
10
  content: string;
11
11
  variant?: GoAChipVariant;
12
+ testid?: string;
12
13
  }
13
14
  declare global {
14
15
  namespace JSX {
@@ -8,6 +8,7 @@ interface WCProps {
8
8
  message?: string;
9
9
  visible?: string;
10
10
  progress?: number;
11
+ testid?: string;
11
12
  }
12
13
  declare global {
13
14
  namespace JSX {
@@ -10,6 +10,7 @@ interface WCProps extends Margins {
10
10
  padding?: GoAContainerPadding;
11
11
  width?: GoAContainerWidth;
12
12
  maxwidth?: string;
13
+ testid?: string;
13
14
  }
14
15
  declare global {
15
16
  namespace JSX {
@@ -6,6 +6,9 @@ interface WCProps extends Margins {
6
6
  error?: boolean;
7
7
  min?: string;
8
8
  max?: string;
9
+ relative?: boolean;
10
+ disabled?: boolean;
11
+ testid?: string;
9
12
  }
10
13
  declare global {
11
14
  namespace JSX {
@@ -21,7 +24,9 @@ export interface GoADatePickerProps extends Margins {
21
24
  min?: Date;
22
25
  max?: Date;
23
26
  testId?: string;
24
- onChange: (name: string, value: Date) => void;
27
+ relative?: boolean;
28
+ disabled?: boolean;
29
+ onChange?: (name: string, value: Date | undefined) => void;
25
30
  }
26
- export declare function GoADatePicker({ name, value, error, min, max, testId, mt, mr, mb, ml, onChange, }: GoADatePickerProps): JSX.Element;
31
+ export declare function GoADatePicker({ name, value, error, min, max, testId, disabled, mt, mr, mb, ml, relative, onChange, }: GoADatePickerProps): JSX.Element;
27
32
  export default GoADatePicker;
@@ -4,6 +4,7 @@ interface WCProps extends Margins {
4
4
  heading: string;
5
5
  open?: boolean;
6
6
  maxwidth?: string;
7
+ testid?: string;
7
8
  }
8
9
  declare global {
9
10
  namespace JSX {
@@ -1,8 +1,11 @@
1
1
  import { Margins } from "../../common/styling";
2
+ interface WCProps extends Margins {
3
+ testid?: string;
4
+ }
2
5
  declare global {
3
6
  namespace JSX {
4
7
  interface IntrinsicElements {
5
- "goa-divider": Margins & React.HTMLAttributes<HTMLElement>;
8
+ "goa-divider": WCProps & React.HTMLAttributes<HTMLElement>;
6
9
  }
7
10
  }
8
11
  }
@@ -0,0 +1,30 @@
1
+ import { ReactNode } from "react";
2
+ type DrawerPosition = "bottom" | "left" | "right" | undefined;
3
+ type DrawerSizeUnit = "px" | "rem" | "ch" | "vh" | "vw";
4
+ type DrawerSize = `${number}${DrawerSizeUnit}` | undefined;
5
+ interface WCProps {
6
+ open: boolean | undefined;
7
+ position: DrawerPosition;
8
+ heading?: string;
9
+ maxsize?: DrawerSize;
10
+ testid?: string;
11
+ ref: React.RefObject<HTMLElement>;
12
+ }
13
+ declare global {
14
+ namespace JSX {
15
+ interface IntrinsicElements {
16
+ "goa-drawer": WCProps & React.HTMLAttributes<HTMLElement>;
17
+ }
18
+ }
19
+ }
20
+ export interface GoADrawerProps {
21
+ open: boolean;
22
+ position: DrawerPosition;
23
+ heading?: string;
24
+ maxSize?: DrawerSize;
25
+ testId?: string;
26
+ children: ReactNode;
27
+ onClose: () => void;
28
+ }
29
+ export declare function GoADrawer({ open, position, heading, maxSize, testId, children, onClose, }: GoADrawerProps): JSX.Element;
30
+ export default GoADrawer;
@@ -17,6 +17,7 @@ interface WCProps extends Margins {
17
17
  width?: string;
18
18
  relative?: boolean;
19
19
  id?: string;
20
+ testid?: string;
20
21
  }
21
22
  declare global {
22
23
  namespace JSX {
@@ -28,7 +29,7 @@ declare global {
28
29
  export interface GoADropdownProps extends Margins {
29
30
  name?: string;
30
31
  value?: string[] | string;
31
- onChange: (name: string, values: string[] | string) => void;
32
+ onChange?: (name: string, values: string[] | string) => void;
32
33
  ariaLabel?: string;
33
34
  ariaLabelledBy?: string;
34
35
  id?: string;
@@ -0,0 +1,29 @@
1
+ import { ReactNode } from "react";
2
+ import { Margins } from "../../common/styling";
3
+ interface WCProps extends Margins {
4
+ ref?: React.MutableRefObject<HTMLElement | null>;
5
+ id: string;
6
+ heading?: string;
7
+ buttontext?: string;
8
+ last?: boolean | null;
9
+ first?: boolean | null;
10
+ }
11
+ declare global {
12
+ namespace JSX {
13
+ interface IntrinsicElements {
14
+ "goa-fieldset": WCProps & React.HTMLAttributes<HTMLElement>;
15
+ }
16
+ }
17
+ }
18
+ interface GoAFieldsetProps extends Margins {
19
+ id: string;
20
+ first?: boolean;
21
+ last?: boolean;
22
+ heading?: string;
23
+ buttonText?: string;
24
+ errors?: Record<string, string>;
25
+ onContinue?: (el: HTMLElement, state: Record<string, string>) => boolean | void | undefined;
26
+ children: ReactNode;
27
+ }
28
+ export declare function GoAFieldset({ heading, buttonText, id, onContinue, children, mt, mr, mb, ml, first, last, }: GoAFieldsetProps): import("react/jsx-runtime").JSX.Element;
29
+ export default GoAFieldset;
@@ -5,6 +5,7 @@ interface WCProps {
5
5
  type?: string;
6
6
  progress?: number;
7
7
  error?: string;
8
+ testid?: string;
8
9
  }
9
10
  declare global {
10
11
  namespace JSX {
@@ -4,6 +4,7 @@ interface WCProps {
4
4
  variant?: GoAFileUploadInputVariant;
5
5
  accept?: string;
6
6
  maxfilesize?: string;
7
+ testid?: string;
7
8
  }
8
9
  declare global {
9
10
  namespace JSX {
@@ -1,6 +1,7 @@
1
1
  import { ReactNode } from "react";
2
2
  interface WCProps {
3
3
  maxcontentwidth?: string;
4
+ testid?: string;
4
5
  }
5
6
  declare global {
6
7
  namespace JSX {
@@ -1,8 +1,11 @@
1
1
  import { ReactNode } from "react";
2
+ interface WCProps {
3
+ testid?: string;
4
+ }
2
5
  declare global {
3
6
  namespace JSX {
4
7
  interface IntrinsicElements {
5
- "goa-app-footer-meta-section": React.HTMLAttributes<HTMLElement>;
8
+ "goa-app-footer-meta-section": WCProps & React.HTMLAttributes<HTMLElement>;
6
9
  }
7
10
  }
8
11
  }
@@ -2,6 +2,7 @@ import { ReactNode } from "react";
2
2
  interface WCProps {
3
3
  maxcolumncount?: number;
4
4
  heading?: string;
5
+ testid?: string;
5
6
  }
6
7
  declare global {
7
8
  namespace JSX {
@@ -9,6 +9,7 @@ interface WCProps extends Margins {
9
9
  helptext?: string;
10
10
  maxwidth?: string;
11
11
  id?: string;
12
+ testid?: string;
12
13
  }
13
14
  declare global {
14
15
  namespace JSX {
@@ -3,6 +3,7 @@ import { Margins } from "../../common/styling";
3
3
  interface WCProps extends Margins {
4
4
  ref?: React.MutableRefObject<HTMLElement | null>;
5
5
  step?: number;
6
+ testid?: string;
6
7
  }
7
8
  declare global {
8
9
  namespace JSX {
@@ -2,6 +2,7 @@ import { Margins, Spacing } from "../../common/styling";
2
2
  interface WCProps extends Margins {
3
3
  gap?: Spacing;
4
4
  minchildwidth: string;
5
+ testid?: string;
5
6
  }
6
7
  declare global {
7
8
  namespace JSX {
@@ -5,6 +5,7 @@ interface WCProps {
5
5
  maxcontentwidth?: string;
6
6
  backgroundcolor?: string;
7
7
  textcolor?: string;
8
+ testid?: string;
8
9
  }
9
10
  declare global {
10
11
  namespace JSX {
@@ -10,6 +10,7 @@ interface WCProps extends Margins {
10
10
  title?: string;
11
11
  disabled?: boolean;
12
12
  arialabel?: string;
13
+ testid?: string;
13
14
  }
14
15
  declare global {
15
16
  namespace JSX {
@@ -24,6 +24,7 @@ interface WCProps extends Margins {
24
24
  prefix?: string;
25
25
  suffix?: string;
26
26
  arialabel?: string;
27
+ testid?: string;
27
28
  min?: string | number;
28
29
  max?: string | number;
29
30
  step?: number;
@@ -64,7 +65,7 @@ type OnFocus<T = string> = (name: string, value: T) => void;
64
65
  type OnBlur<T = string> = (name: string, value: T) => void;
65
66
  type OnKeyPress<T = string> = (name: string, value: T, key: string) => void;
66
67
  export interface GoAInputProps extends BaseProps {
67
- onChange: OnChange<string>;
68
+ onChange?: OnChange<string>;
68
69
  value?: string;
69
70
  min?: number | string;
70
71
  max?: number | string;
@@ -74,7 +75,7 @@ export interface GoAInputProps extends BaseProps {
74
75
  onKeyPress?: OnKeyPress<string>;
75
76
  }
76
77
  interface GoANumberInputProps extends BaseProps {
77
- onChange: OnChange<number>;
78
+ onChange?: OnChange<number>;
78
79
  value?: number;
79
80
  min?: number;
80
81
  max?: number;
@@ -84,7 +85,7 @@ interface GoANumberInputProps extends BaseProps {
84
85
  onKeyPress?: OnKeyPress<number>;
85
86
  }
86
87
  interface GoADateInputProps extends BaseProps {
87
- onChange: OnChange<GoADate>;
88
+ onChange?: OnChange<GoADate>;
88
89
  value?: GoADate;
89
90
  min?: GoADate;
90
91
  max?: GoADate;
@@ -0,0 +1,21 @@
1
+ import { ReactNode } from "react";
2
+ import { Margins } from "../../common/styling";
3
+ import { GoAIconType } from "../icon/icon";
4
+ interface WCProps extends Margins {
5
+ leadingicon?: GoAIconType;
6
+ trailingicon?: GoAIconType;
7
+ }
8
+ declare global {
9
+ namespace JSX {
10
+ interface IntrinsicElements {
11
+ "goa-link": WCProps & React.HTMLAttributes<HTMLElement>;
12
+ }
13
+ }
14
+ }
15
+ interface GoALinkProps extends Margins {
16
+ leadingIcon?: GoAIconType;
17
+ trailingIcon?: GoAIconType;
18
+ children: ReactNode;
19
+ }
20
+ export declare function GoALink(props: GoALinkProps): import("react/jsx-runtime").JSX.Element;
21
+ export default GoALink;
@@ -0,0 +1,24 @@
1
+ import { ReactNode } from "react";
2
+ import { Margins } from "../../common/styling";
3
+ import { GoAIconType } from "../icon/icon";
4
+ export type GoALinkButtonType = "start" | "primary" | "secondary" | "tertiary";
5
+ interface WCProps extends Margins {
6
+ type?: GoALinkButtonType;
7
+ leadingicon?: GoAIconType;
8
+ trailingicon?: GoAIconType;
9
+ }
10
+ declare global {
11
+ namespace JSX {
12
+ interface IntrinsicElements {
13
+ "goa-link-button": WCProps & React.HTMLAttributes<HTMLElement>;
14
+ }
15
+ }
16
+ }
17
+ interface GoALinkButtonProps extends Margins {
18
+ type?: GoALinkButtonType;
19
+ leadingIcon?: GoAIconType;
20
+ trailingIcon?: GoAIconType;
21
+ children: ReactNode;
22
+ }
23
+ export declare function GoALinkButton({ type, ...props }: GoALinkButtonProps): import("react/jsx-runtime").JSX.Element;
24
+ export default GoALinkButton;
@@ -15,16 +15,20 @@ interface WCProps {
15
15
  maxcontentwidth?: string;
16
16
  feedbackurltarget?: GoALinkTarget;
17
17
  headerurltarget?: GoALinkTarget;
18
+ hasfeedbackhandler?: boolean;
19
+ ref: React.RefObject<HTMLElement>;
20
+ testid?: string;
18
21
  }
19
22
  export interface GoAHeaderProps {
20
23
  type: GoAServiceLevel;
21
- version?: string;
24
+ version?: React.ReactNode;
22
25
  feedbackUrl?: string;
23
26
  testId?: string;
24
27
  maxContentWidth?: string;
25
28
  feedbackUrlTarget?: GoALinkTarget;
26
29
  headerUrlTarget?: GoALinkTarget;
30
+ onFeedbackClick?: () => void;
27
31
  }
28
32
  export type HeaderProps = GoAHeaderProps;
29
- export declare function GoAMicrositeHeader({ type, version, feedbackUrl, maxContentWidth, feedbackUrlTarget, headerUrlTarget, testId, }: GoAHeaderProps): JSX.Element;
33
+ export declare function GoAMicrositeHeader({ type, version, feedbackUrl, maxContentWidth, feedbackUrlTarget, headerUrlTarget, testId, onFeedbackClick, }: GoAHeaderProps): JSX.Element;
30
34
  export default GoAMicrositeHeader;
@@ -13,6 +13,7 @@ interface WCProps {
13
13
  transition?: GoAModalTransition;
14
14
  calloutvariant?: GoAModalCalloutVariant;
15
15
  role?: GoAModalRole;
16
+ testid?: string;
16
17
  }
17
18
  declare global {
18
19
  namespace JSX {
@@ -7,6 +7,7 @@ interface WCProps {
7
7
  type: GoANotificationType;
8
8
  maxcontentwidth?: string;
9
9
  arialive?: GoAAriaLiveType;
10
+ testid?: string;
10
11
  }
11
12
  declare global {
12
13
  namespace JSX {
@@ -1,6 +1,7 @@
1
1
  import { ReactNode } from "react";
2
2
  interface WCProps {
3
3
  width: "full" | string;
4
+ testid?: string;
4
5
  }
5
6
  declare global {
6
7
  namespace JSX {
@@ -5,6 +5,7 @@ interface WCProps extends Margins {
5
5
  perpagecount?: number;
6
6
  pagenumber: number;
7
7
  variant?: "all" | "links-only";
8
+ testid?: string;
8
9
  }
9
10
  declare global {
10
11
  namespace JSX {
@@ -7,6 +7,7 @@ interface WCProps extends Margins {
7
7
  padded?: boolean;
8
8
  position?: GoAPosition;
9
9
  relative?: boolean;
10
+ testid?: string;
10
11
  }
11
12
  declare global {
12
13
  namespace JSX {
@@ -9,6 +9,7 @@ interface WCProps extends Margins {
9
9
  disabled?: boolean;
10
10
  error?: boolean;
11
11
  arialabel?: string;
12
+ testid?: string;
12
13
  }
13
14
  declare global {
14
15
  namespace JSX {
@@ -26,7 +27,7 @@ export interface GoARadioGroupProps extends Margins {
26
27
  error?: boolean;
27
28
  ariaLabel?: string;
28
29
  children?: React.ReactNode;
29
- onChange: (name: string, value: string) => void;
30
+ onChange?: (name: string, value: string) => void;
30
31
  }
31
32
  export declare function GoARadioGroup({ name, value, children, orientation, disabled, error, testId, ariaLabel, mt, mr, mb, ml, onChange, }: GoARadioGroupProps): JSX.Element;
32
33
  export default GoARadioGroup;