@abgov/react-components 4.17.0-alpha.3 → 4.17.0-alpha.30

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 (78) hide show
  1. package/common/styling.d.ts +12 -9
  2. package/index.d.ts +56 -59
  3. package/index.js +24129 -0
  4. package/index.js.map +1 -0
  5. package/index.mjs +24129 -0
  6. package/index.mjs.map +1 -0
  7. package/lib/accordion/accordion.d.ts +28 -28
  8. package/lib/app-header/app-header.d.ts +23 -22
  9. package/lib/app-header-menu/app-header-menu.d.ts +21 -20
  10. package/lib/badge/badge.d.ts +40 -41
  11. package/lib/block/block.d.ts +23 -23
  12. package/lib/button/button.d.ts +38 -38
  13. package/lib/button-group/button-group.d.ts +23 -24
  14. package/lib/calendar/calendar.d.ts +25 -25
  15. package/lib/callout/callout.d.ts +25 -26
  16. package/lib/checkbox/checkbox.d.ts +37 -38
  17. package/lib/chip/chip.d.ts +28 -29
  18. package/lib/circular-progress/circular-progress.d.ts +28 -29
  19. package/lib/container/container.d.ts +32 -29
  20. package/lib/date-picker/date-picker.d.ts +27 -25
  21. package/lib/details/details.d.ts +22 -21
  22. package/lib/divider/divider.d.ts +13 -14
  23. package/lib/dropdown/dropdown-item.d.ts +23 -24
  24. package/lib/dropdown/dropdown.d.ts +49 -50
  25. package/lib/file-upload-card/file-upload-card.d.ts +27 -27
  26. package/lib/file-upload-input/file-upload-input.d.ts +23 -23
  27. package/lib/footer/footer.d.ts +19 -19
  28. package/lib/footer-meta-section/footer-meta-section.d.ts +15 -14
  29. package/lib/footer-nav-section/footer-nav-section.d.ts +20 -20
  30. package/lib/{form → form-item}/form-item.d.ts +30 -31
  31. package/lib/form-step/form-step.d.ts +19 -20
  32. package/lib/form-stepper/form-stepper.d.ts +22 -22
  33. package/lib/grid/grid.d.ts +20 -21
  34. package/lib/hero-banner/hero-banner-actions.d.ts +5 -6
  35. package/lib/hero-banner/hero-banner.d.ts +27 -28
  36. package/lib/icon/icon.d.ts +52 -42
  37. package/lib/icon-button/icon-button.d.ts +33 -32
  38. package/lib/input/input.d.ts +112 -116
  39. package/lib/microsite-header/microsite-header.d.ts +30 -31
  40. package/lib/modal/modal.d.ts +39 -36
  41. package/lib/notification/notification.d.ts +27 -28
  42. package/lib/one-column-layout/one-column-layout.d.ts +14 -14
  43. package/lib/page-block/page-block.d.ts +19 -18
  44. package/lib/pages/pages.d.ts +18 -18
  45. package/lib/pagination/pagination.d.ts +26 -27
  46. package/lib/popover/popover.d.ts +27 -27
  47. package/lib/radio-group/radio-group.d.ts +32 -33
  48. package/lib/radio-group/radio.d.ts +29 -30
  49. package/lib/side-menu/side-menu.d.ts +15 -14
  50. package/lib/side-menu-group/side-menu-group.d.ts +18 -17
  51. package/lib/side-menu-heading/side-menu-heading.d.ts +20 -19
  52. package/lib/skeleton/skeleton.d.ts +27 -28
  53. package/lib/spacer/spacer.d.ts +20 -21
  54. package/lib/spinner/spinner.d.ts +25 -26
  55. package/lib/tab/tab.d.ts +17 -18
  56. package/lib/table/table-sort-header.d.ts +19 -20
  57. package/lib/table/table.d.ts +27 -27
  58. package/lib/tabs/tabs.d.ts +17 -17
  59. package/lib/textarea/textarea.d.ts +41 -39
  60. package/lib/three-column-layout/three-column-layout.d.ts +26 -26
  61. package/lib/tooltip/tooltip.d.ts +25 -25
  62. package/lib/two-column-layout/two-column-layout.d.ts +22 -22
  63. package/package.json +16 -11
  64. package/README.md +0 -34
  65. package/experimental/index.d.ts +0 -0
  66. package/experimental/package.json +0 -11
  67. package/experimental/react-components.esm.js +0 -1
  68. package/experimental/react-components.umd.js +0 -8
  69. package/lib/card/card-actions.d.ts +0 -13
  70. package/lib/card/card-content.d.ts +0 -13
  71. package/lib/card/card-group.d.ts +0 -13
  72. package/lib/card/card-image.d.ts +0 -18
  73. package/lib/card/card.d.ts +0 -22
  74. package/lib/card/index.d.ts +0 -5
  75. package/lib/form/index.d.ts +0 -1
  76. package/lib/form/validators.d.ts +0 -10
  77. package/react-components.esm.js +0 -3383
  78. package/react-components.umd.js +0 -3443
@@ -1,28 +1,28 @@
1
- import { ReactNode } from "react";
2
- import { Margins } from "../../common/styling";
3
- export declare type GoAHeadingSize = "small" | "medium";
4
- interface WCProps extends Margins {
5
- open?: boolean;
6
- headingSize?: GoAHeadingSize;
7
- heading: string;
8
- secondaryText?: string;
9
- headingContent?: ReactNode;
10
- }
11
- declare global {
12
- namespace JSX {
13
- interface IntrinsicElements {
14
- "goa-accordion": WCProps & React.HTMLAttributes<HTMLElement>;
15
- }
16
- }
17
- }
18
- export interface GoAAccordionProps extends Margins {
19
- open?: boolean;
20
- headingSize?: GoAHeadingSize;
21
- secondaryText?: string;
22
- heading: string;
23
- headingContent?: ReactNode;
24
- testid?: string;
25
- children: ReactNode;
26
- }
27
- export declare function GoAAccordion({ open, heading, headingSize, secondaryText, headingContent, testid, children, mt, mr, mb, ml, }: GoAAccordionProps): JSX.Element;
28
- export default GoAAccordion;
1
+ import { ReactNode } from "react";
2
+ import { Margins } from "../../common/styling";
3
+ export type GoAHeadingSize = "small" | "medium";
4
+ interface WCProps extends Margins {
5
+ open?: boolean;
6
+ headingSize?: GoAHeadingSize;
7
+ heading: string;
8
+ secondaryText?: string;
9
+ headingContent?: ReactNode;
10
+ }
11
+ declare global {
12
+ namespace JSX {
13
+ interface IntrinsicElements {
14
+ "goa-accordion": WCProps & React.HTMLAttributes<HTMLElement>;
15
+ }
16
+ }
17
+ }
18
+ export interface GoAAccordionProps extends Margins {
19
+ open?: boolean;
20
+ headingSize?: GoAHeadingSize;
21
+ secondaryText?: string;
22
+ heading: string;
23
+ headingContent?: ReactNode;
24
+ testid?: string;
25
+ children: ReactNode;
26
+ }
27
+ export declare function GoAAccordion({ open, heading, headingSize, secondaryText, headingContent, testid, children, mt, mr, mb, ml, }: GoAAccordionProps): JSX.Element;
28
+ export default GoAAccordion;
@@ -1,22 +1,23 @@
1
- /// <reference types="react" />
2
- interface WCProps {
3
- heading?: string;
4
- url?: string;
5
- maxcontentwidth?: string;
6
- }
7
- declare global {
8
- namespace JSX {
9
- interface IntrinsicElements {
10
- "goa-app-header": WCProps & React.HTMLAttributes<HTMLElement>;
11
- }
12
- }
13
- }
14
- export interface GoAAppHeaderProps {
15
- heading?: string;
16
- url?: string;
17
- maxContentWidth?: string;
18
- children?: React.ReactNode;
19
- testId?: string;
20
- }
21
- export declare function GoAAppHeader({ heading, url, maxContentWidth, testId, children, }: GoAAppHeaderProps): JSX.Element;
22
- export default GoAAppHeader;
1
+ interface WCProps {
2
+ heading?: string;
3
+ url?: string;
4
+ maxcontentwidth?: string;
5
+ fullmenubreakpoint?: number;
6
+ }
7
+ declare global {
8
+ namespace JSX {
9
+ interface IntrinsicElements {
10
+ "goa-app-header": WCProps & React.HTMLAttributes<HTMLElement>;
11
+ }
12
+ }
13
+ }
14
+ export interface GoAAppHeaderProps {
15
+ heading?: string;
16
+ url?: string;
17
+ maxContentWidth?: string;
18
+ fullMenuBreakpoint?: number;
19
+ children?: React.ReactNode;
20
+ testId?: string;
21
+ }
22
+ export declare function GoAAppHeader({ heading, url, maxContentWidth, fullMenuBreakpoint, testId, children, }: GoAAppHeaderProps): JSX.Element;
23
+ export default GoAAppHeader;
@@ -1,20 +1,21 @@
1
- import { ReactNode } from "react";
2
- import { GoAIconType } from "../icon/icon";
3
- interface WCProps {
4
- heading: string;
5
- leadingicon?: GoAIconType;
6
- }
7
- export interface GoAAppHeaderMenuProps {
8
- heading: string;
9
- leadingIcon?: GoAIconType;
10
- children?: ReactNode;
11
- }
12
- declare global {
13
- namespace JSX {
14
- interface IntrinsicElements {
15
- "goa-app-header-menu": WCProps & React.HTMLAttributes<HTMLElement>;
16
- }
17
- }
18
- }
19
- export declare function GoAAppHeaderMenu(props: GoAAppHeaderMenuProps): JSX.Element;
20
- export default GoAAppHeaderMenu;
1
+ import { ReactNode } from "react";
2
+ import { GoAIconType } from "../icon/icon";
3
+ interface WCProps {
4
+ heading: string;
5
+ leadingicon?: GoAIconType;
6
+ }
7
+ export interface GoAAppHeaderMenuProps {
8
+ heading: string;
9
+ leadingIcon?: GoAIconType;
10
+ testId?: string;
11
+ children?: ReactNode;
12
+ }
13
+ declare global {
14
+ namespace JSX {
15
+ interface IntrinsicElements {
16
+ "goa-app-header-menu": WCProps & React.HTMLAttributes<HTMLElement>;
17
+ }
18
+ }
19
+ }
20
+ export declare function GoAAppHeaderMenu(props: GoAAppHeaderMenuProps): import("react/jsx-runtime").JSX.Element;
21
+ export default GoAAppHeaderMenu;
@@ -1,41 +1,40 @@
1
- /// <reference types="react" />
2
- import { Margins } from "../../common/styling";
3
- export declare type GoABadgeType = "information" | "success" | "important" | "emergency" | "dark" | "midtone" | "light";
4
- interface WCProps extends Margins {
5
- type: GoABadgeType;
6
- icon?: boolean;
7
- content?: string;
8
- arialabel?: string;
9
- }
10
- declare global {
11
- namespace JSX {
12
- interface IntrinsicElements {
13
- "goa-badge": WCProps & React.HTMLAttributes<HTMLElement>;
14
- }
15
- }
16
- }
17
- export interface GoABadgeProps extends Margins {
18
- type: GoABadgeType;
19
- icon?: boolean;
20
- content?: string;
21
- testId?: string;
22
- ariaLabel?: string;
23
- }
24
- export declare function GoABadge({ type, content, icon, testId, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
25
- /**
26
- * @deprecated
27
- */
28
- export declare function GoAInfoBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
29
- /**
30
- * @deprecated
31
- */
32
- export declare function GoASuccessBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
33
- /**
34
- * @deprecated
35
- */
36
- export declare function GoAImportantBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
37
- /**
38
- * @deprecated
39
- */
40
- export declare function GoAEmergencyBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
41
- export {};
1
+ import { Margins } from "../../common/styling";
2
+ export type GoABadgeType = "information" | "success" | "important" | "emergency" | "dark" | "midtone" | "light";
3
+ interface WCProps extends Margins {
4
+ type: GoABadgeType;
5
+ icon?: boolean;
6
+ content?: string;
7
+ arialabel?: string;
8
+ }
9
+ declare global {
10
+ namespace JSX {
11
+ interface IntrinsicElements {
12
+ "goa-badge": WCProps & React.HTMLAttributes<HTMLElement>;
13
+ }
14
+ }
15
+ }
16
+ export interface GoABadgeProps extends Margins {
17
+ type: GoABadgeType;
18
+ icon?: boolean;
19
+ content?: string;
20
+ testId?: string;
21
+ ariaLabel?: string;
22
+ }
23
+ export declare function GoABadge({ type, content, icon, testId, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
24
+ /**
25
+ * @deprecated
26
+ */
27
+ export declare function GoAInfoBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
28
+ /**
29
+ * @deprecated
30
+ */
31
+ export declare function GoASuccessBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
32
+ /**
33
+ * @deprecated
34
+ */
35
+ export declare function GoAImportantBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
36
+ /**
37
+ * @deprecated
38
+ */
39
+ export declare function GoAEmergencyBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
40
+ export {};
@@ -1,23 +1,23 @@
1
- import { ReactNode } from "react";
2
- import { Alignment, Direction, Margins, Spacing } from "../../common/styling";
3
- export interface WCProps extends Margins {
4
- gap?: Spacing;
5
- direction?: Direction;
6
- alignment?: Alignment;
7
- }
8
- declare global {
9
- namespace JSX {
10
- interface IntrinsicElements {
11
- "goa-block": WCProps & React.HTMLAttributes<HTMLElement>;
12
- }
13
- }
14
- }
15
- export interface GoABlockProps extends Margins {
16
- gap?: Spacing;
17
- direction?: Direction;
18
- alignment?: Alignment;
19
- testId?: string;
20
- children?: ReactNode;
21
- }
22
- export declare type BlockProps = GoABlockProps;
23
- export declare function GoABlock(props: GoABlockProps): JSX.Element;
1
+ import { ReactNode } from "react";
2
+ import { Alignment, Direction, Margins, Spacing } from "../../common/styling";
3
+ export interface WCProps extends Margins {
4
+ gap?: Spacing;
5
+ direction?: Direction;
6
+ alignment?: Alignment;
7
+ }
8
+ declare global {
9
+ namespace JSX {
10
+ interface IntrinsicElements {
11
+ "goa-block": WCProps & React.HTMLAttributes<HTMLElement>;
12
+ }
13
+ }
14
+ }
15
+ export interface GoABlockProps extends Margins {
16
+ gap?: Spacing;
17
+ direction?: Direction;
18
+ alignment?: Alignment;
19
+ testId?: string;
20
+ children?: ReactNode;
21
+ }
22
+ export type BlockProps = GoABlockProps;
23
+ export declare function GoABlock(props: GoABlockProps): import("react/jsx-runtime").JSX.Element;
@@ -1,38 +1,38 @@
1
- import { ReactNode } from "react";
2
- import { Margins } from "../../common/styling";
3
- import { GoAIconType } from "../icon/icon";
4
- export declare type GoAButtonType = "primary" | "submit" | "secondary" | "tertiary" | "start";
5
- export declare type GoAButtonSize = "compact" | "normal";
6
- export declare type GoAButtonVariant = "normal" | "destructive";
7
- export declare type ButtonType = GoAButtonType;
8
- export declare type ButtonSize = GoAButtonSize;
9
- export declare type ButtonVariant = GoAButtonVariant;
10
- interface WCProps extends Margins {
11
- type?: GoAButtonType;
12
- size?: GoAButtonSize;
13
- variant?: GoAButtonVariant;
14
- disabled?: boolean;
15
- leadingicon?: string;
16
- trailingicon?: string;
17
- ref: React.RefObject<HTMLElement>;
18
- }
19
- declare global {
20
- namespace JSX {
21
- interface IntrinsicElements {
22
- "goa-button": WCProps & React.HTMLAttributes<HTMLElement>;
23
- }
24
- }
25
- }
26
- export interface GoAButtonProps extends Margins {
27
- type?: GoAButtonType;
28
- size?: GoAButtonSize;
29
- variant?: GoAButtonVariant;
30
- disabled?: boolean;
31
- leadingIcon?: GoAIconType;
32
- trailingIcon?: GoAIconType;
33
- onClick?: () => void;
34
- testId?: string;
35
- children?: ReactNode;
36
- }
37
- export declare function GoAButton({ disabled, type, size, variant, leadingIcon, trailingIcon, testId, children, onClick, mt, mr, mb, ml, }: GoAButtonProps): JSX.Element;
38
- export default GoAButton;
1
+ import { ReactNode } from "react";
2
+ import { Margins } from "../../common/styling";
3
+ import { GoAIconType } from "../icon/icon";
4
+ export type GoAButtonType = "primary" | "submit" | "secondary" | "tertiary" | "start";
5
+ export type GoAButtonSize = "compact" | "normal";
6
+ export type GoAButtonVariant = "normal" | "destructive";
7
+ export type ButtonType = GoAButtonType;
8
+ export type ButtonSize = GoAButtonSize;
9
+ export type ButtonVariant = GoAButtonVariant;
10
+ interface WCProps extends Margins {
11
+ type?: GoAButtonType;
12
+ size?: GoAButtonSize;
13
+ variant?: GoAButtonVariant;
14
+ disabled?: boolean;
15
+ leadingicon?: string;
16
+ trailingicon?: string;
17
+ ref: React.RefObject<HTMLElement>;
18
+ }
19
+ declare global {
20
+ namespace JSX {
21
+ interface IntrinsicElements {
22
+ "goa-button": WCProps & React.HTMLAttributes<HTMLElement>;
23
+ }
24
+ }
25
+ }
26
+ export interface GoAButtonProps extends Margins {
27
+ type?: GoAButtonType;
28
+ size?: GoAButtonSize;
29
+ variant?: GoAButtonVariant;
30
+ disabled?: boolean;
31
+ leadingIcon?: GoAIconType;
32
+ trailingIcon?: GoAIconType;
33
+ onClick?: () => void;
34
+ testId?: string;
35
+ children?: ReactNode;
36
+ }
37
+ export declare function GoAButton({ disabled, type, size, variant, leadingIcon, trailingIcon, testId, children, onClick, mt, mr, mb, ml, }: GoAButtonProps): JSX.Element;
38
+ export default GoAButton;
@@ -1,24 +1,23 @@
1
- /// <reference types="react" />
2
- import { Margins } from "../../common/styling";
3
- export declare type GoAButtonGroupAlignment = "start" | "end" | "center";
4
- export declare type GoAButtonGroupGap = "relaxed" | "compact";
5
- export declare type Gap = GoAButtonGroupGap;
6
- interface WCProps extends Margins {
7
- alignment: GoAButtonGroupAlignment;
8
- gap?: GoAButtonGroupGap;
9
- }
10
- declare global {
11
- namespace JSX {
12
- interface IntrinsicElements {
13
- "goa-button-group": WCProps & React.HTMLAttributes<HTMLElement>;
14
- }
15
- }
16
- }
17
- export interface GoAButtonGroupProps extends Margins {
18
- alignment: GoAButtonGroupAlignment;
19
- gap?: GoAButtonGroupGap;
20
- testId?: string;
21
- children?: React.ReactNode;
22
- }
23
- export declare function GoAButtonGroup({ alignment, gap, testId, children, mt, mr, mb, ml, }: GoAButtonGroupProps): JSX.Element;
24
- export default GoAButtonGroup;
1
+ import { Margins } from "../../common/styling";
2
+ export type GoAButtonGroupAlignment = "start" | "end" | "center";
3
+ export type GoAButtonGroupGap = "relaxed" | "compact";
4
+ export type Gap = GoAButtonGroupGap;
5
+ interface WCProps extends Margins {
6
+ alignment: GoAButtonGroupAlignment;
7
+ gap?: GoAButtonGroupGap;
8
+ }
9
+ declare global {
10
+ namespace JSX {
11
+ interface IntrinsicElements {
12
+ "goa-button-group": WCProps & React.HTMLAttributes<HTMLElement>;
13
+ }
14
+ }
15
+ }
16
+ export interface GoAButtonGroupProps extends Margins {
17
+ alignment: GoAButtonGroupAlignment;
18
+ gap?: GoAButtonGroupGap;
19
+ testId?: string;
20
+ children?: React.ReactNode;
21
+ }
22
+ export declare function GoAButtonGroup({ alignment, gap, testId, children, mt, mr, mb, ml, }: GoAButtonGroupProps): JSX.Element;
23
+ export default GoAButtonGroup;
@@ -1,25 +1,25 @@
1
- /// <reference types="react" />
2
- import { Margins } from "../../common/styling";
3
- interface WCProps extends Margins {
4
- ref: React.RefObject<HTMLElement>;
5
- name?: string;
6
- value?: string;
7
- min?: string;
8
- max?: string;
9
- }
10
- declare global {
11
- namespace JSX {
12
- interface IntrinsicElements {
13
- "goa-calendar": WCProps & React.HTMLAttributes<HTMLElement>;
14
- }
15
- }
16
- }
17
- export interface GoACalendarProps extends Margins {
18
- name?: string;
19
- value?: Date;
20
- min?: Date;
21
- max?: Date;
22
- onChange: (name: string, value: Date) => void;
23
- }
24
- export declare function GoACalendar({ name, value, min, max, mt, mr, mb, ml, onChange, }: GoACalendarProps): JSX.Element;
25
- export default GoACalendar;
1
+ import { Margins } from "../../common/styling";
2
+ interface WCProps extends Margins {
3
+ ref: React.RefObject<HTMLElement>;
4
+ name?: string;
5
+ value?: string;
6
+ min?: string;
7
+ max?: string;
8
+ }
9
+ declare global {
10
+ namespace JSX {
11
+ interface IntrinsicElements {
12
+ "goa-calendar": WCProps & React.HTMLAttributes<HTMLElement>;
13
+ }
14
+ }
15
+ }
16
+ export interface GoACalendarProps extends Margins {
17
+ name?: string;
18
+ value?: Date;
19
+ min?: Date;
20
+ max?: Date;
21
+ testId?: string;
22
+ onChange: (name: string, value: Date) => void;
23
+ }
24
+ export declare function GoACalendar({ name, value, min, max, testId, mt, mr, mb, ml, onChange, }: GoACalendarProps): JSX.Element;
25
+ export default GoACalendar;
@@ -1,26 +1,25 @@
1
- /// <reference types="react" />
2
- import { Margins } from "../../common/styling";
3
- export declare type GoACalloutType = "important" | "information" | "event" | "success" | "emergency";
4
- export declare type GoACalloutSize = "medium" | "large";
5
- interface WCProps extends Margins {
6
- heading?: string;
7
- type?: GoACalloutType;
8
- size?: GoACalloutSize;
9
- }
10
- declare global {
11
- namespace JSX {
12
- interface IntrinsicElements {
13
- "goa-callout": WCProps & React.HTMLAttributes<HTMLElement>;
14
- }
15
- }
16
- }
17
- export interface GoACalloutProps extends Margins {
18
- heading?: string;
19
- type?: GoACalloutType;
20
- size?: GoACalloutSize;
21
- testId?: string;
22
- children?: React.ReactNode;
23
- }
24
- export declare type CalloutProps = GoACalloutProps;
25
- export declare const GoACallout: ({ heading, type, size, testId, children, mt, mr, mb, ml, }: GoACalloutProps) => JSX.Element;
26
- export default GoACallout;
1
+ import { Margins } from "../../common/styling";
2
+ export type GoACalloutType = "important" | "information" | "event" | "success" | "emergency";
3
+ export type GoACalloutSize = "medium" | "large";
4
+ interface WCProps extends Margins {
5
+ heading?: string;
6
+ type?: GoACalloutType;
7
+ size?: GoACalloutSize;
8
+ }
9
+ declare global {
10
+ namespace JSX {
11
+ interface IntrinsicElements {
12
+ "goa-callout": WCProps & React.HTMLAttributes<HTMLElement>;
13
+ }
14
+ }
15
+ }
16
+ export interface GoACalloutProps extends Margins {
17
+ heading?: string;
18
+ type?: GoACalloutType;
19
+ size?: GoACalloutSize;
20
+ testId?: string;
21
+ children?: React.ReactNode;
22
+ }
23
+ export type CalloutProps = GoACalloutProps;
24
+ export declare const GoACallout: ({ heading, type, size, testId, children, mt, mr, mb, ml, }: GoACalloutProps) => import("react/jsx-runtime").JSX.Element;
25
+ export default GoACallout;
@@ -1,38 +1,37 @@
1
- /// <reference types="react" />
2
- import { Margins } from "../../common/styling";
3
- declare global {
4
- namespace JSX {
5
- interface IntrinsicElements {
6
- "goa-checkbox": WCProps & React.HTMLAttributes<HTMLElement>;
7
- }
8
- }
9
- }
10
- interface WCProps extends Margins {
11
- ref: React.RefObject<HTMLElement>;
12
- id?: string;
13
- name: string;
14
- checked: boolean;
15
- disabled?: boolean;
16
- error?: boolean;
17
- text?: string;
18
- value?: string | number | boolean;
19
- arialabel?: string;
20
- description?: string;
21
- }
22
- export interface GoACheckboxProps extends Margins {
23
- id?: string;
24
- name: string;
25
- checked: boolean;
26
- disabled?: boolean;
27
- error?: boolean;
28
- text?: string;
29
- value?: string | number | boolean;
30
- children?: React.ReactNode;
31
- testId?: string;
32
- ariaLabel?: string;
33
- description?: string;
34
- onChange?: (name: string, checked: boolean, value: string) => void;
35
- }
36
- export declare type Props = GoACheckboxProps;
37
- export declare function GoACheckbox({ id, name, testId, error, disabled, checked, value, text, description, children, onChange, ariaLabel, mt, mr, mb, ml, }: GoACheckboxProps): JSX.Element;
38
- export default GoACheckbox;
1
+ import { Margins } from "../../common/styling";
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ "goa-checkbox": WCProps & React.HTMLAttributes<HTMLElement>;
6
+ }
7
+ }
8
+ }
9
+ interface WCProps extends Margins {
10
+ ref: React.RefObject<HTMLElement>;
11
+ id?: string;
12
+ name: string;
13
+ checked: boolean;
14
+ disabled?: boolean;
15
+ error?: boolean;
16
+ text?: string;
17
+ value?: string | number | boolean;
18
+ arialabel?: string;
19
+ description?: string | React.ReactNode;
20
+ }
21
+ export interface GoACheckboxProps extends Margins {
22
+ id?: string;
23
+ name: string;
24
+ checked: boolean;
25
+ disabled?: boolean;
26
+ error?: boolean;
27
+ text?: string;
28
+ value?: string | number | boolean;
29
+ children?: React.ReactNode;
30
+ testId?: string;
31
+ ariaLabel?: string;
32
+ description?: string | React.ReactNode;
33
+ onChange?: (name: string, checked: boolean, value: string) => void;
34
+ }
35
+ export type Props = GoACheckboxProps;
36
+ export declare function GoACheckbox({ id, name, testId, error, disabled, checked, value, text, description, children, onChange, ariaLabel, mt, mr, mb, ml, }: GoACheckboxProps): JSX.Element;
37
+ export default GoACheckbox;
@@ -1,29 +1,28 @@
1
- /// <reference types="react" />
2
- import { Margins } from "../../common/styling";
3
- export declare type GoAChipVariant = "filter";
4
- interface WCProps extends Margins {
5
- ref: React.RefObject<HTMLElement>;
6
- leadingicon: string;
7
- error: boolean;
8
- deletable: boolean;
9
- content: string;
10
- variant?: GoAChipVariant;
11
- }
12
- declare global {
13
- namespace JSX {
14
- interface IntrinsicElements {
15
- "goa-chip": WCProps & React.HTMLAttributes<HTMLElement>;
16
- }
17
- }
18
- }
19
- export interface GoAChipProps extends Margins {
20
- onClick?: () => void;
21
- deletable?: boolean;
22
- leadingIcon?: string;
23
- error?: boolean;
24
- content: string;
25
- variant?: GoAChipVariant;
26
- testId?: string;
27
- }
28
- export declare const GoAChip: ({ leadingIcon, deletable, error, variant, content, onClick, mt, mr, mb, ml, testId, }: GoAChipProps) => JSX.Element;
29
- export default GoAChip;
1
+ import { Margins } from "../../common/styling";
2
+ export type GoAChipVariant = "filter";
3
+ interface WCProps extends Margins {
4
+ ref: React.RefObject<HTMLElement>;
5
+ leadingicon: string;
6
+ error: boolean;
7
+ deletable: boolean;
8
+ content: string;
9
+ variant?: GoAChipVariant;
10
+ }
11
+ declare global {
12
+ namespace JSX {
13
+ interface IntrinsicElements {
14
+ "goa-chip": WCProps & React.HTMLAttributes<HTMLElement>;
15
+ }
16
+ }
17
+ }
18
+ export interface GoAChipProps extends Margins {
19
+ onClick?: () => void;
20
+ deletable?: boolean;
21
+ leadingIcon?: string;
22
+ error?: boolean;
23
+ content: string;
24
+ variant?: GoAChipVariant;
25
+ testId?: string;
26
+ }
27
+ export declare const GoAChip: ({ leadingIcon, deletable, error, variant, content, onClick, mt, mr, mb, ml, testId, }: GoAChipProps) => import("react/jsx-runtime").JSX.Element;
28
+ export default GoAChip;