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

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 (64) hide show
  1. package/lib/accordion/accordion.d.ts +6 -6
  2. package/lib/app-header/app-header.d.ts +3 -3
  3. package/lib/app-header-menu/app-header-menu.d.ts +1 -1
  4. package/lib/badge/badge.d.ts +13 -13
  5. package/lib/block/block.d.ts +4 -3
  6. package/lib/button/button.d.ts +15 -12
  7. package/lib/button-group/button-group.d.ts +10 -9
  8. package/lib/calendar/calendar.d.ts +9 -9
  9. package/lib/callout/callout.d.ts +10 -9
  10. package/lib/card/card-actions.d.ts +3 -3
  11. package/lib/card/card-content.d.ts +3 -3
  12. package/lib/card/card-group.d.ts +3 -3
  13. package/lib/card/card-image.d.ts +3 -3
  14. package/lib/card/card.d.ts +3 -3
  15. package/lib/checkbox/checkbox.d.ts +6 -5
  16. package/lib/chip/chip.d.ts +6 -6
  17. package/lib/circular-progress/circular-progress.d.ts +11 -9
  18. package/lib/container/container.d.ts +12 -12
  19. package/lib/date-picker/date-picker.d.ts +9 -9
  20. package/lib/details/details.d.ts +4 -3
  21. package/lib/divider/divider.d.ts +4 -3
  22. package/lib/dropdown/dropdown-item.d.ts +4 -4
  23. package/lib/dropdown/dropdown.d.ts +3 -3
  24. package/lib/file-upload-card/file-upload-card.d.ts +3 -3
  25. package/lib/file-upload-input/file-upload-input.d.ts +6 -6
  26. package/lib/footer/footer.d.ts +4 -3
  27. package/lib/footer-meta-section/footer-meta-section.d.ts +4 -3
  28. package/lib/footer-nav-section/footer-nav-section.d.ts +3 -3
  29. package/lib/form/form-item.d.ts +9 -8
  30. package/lib/form-step/form-step.d.ts +4 -3
  31. package/lib/form-stepper/form-stepper.d.ts +4 -3
  32. package/lib/grid/grid.d.ts +3 -3
  33. package/lib/hero-banner/hero-banner-actions.d.ts +2 -2
  34. package/lib/hero-banner/hero-banner.d.ts +3 -3
  35. package/lib/icon/icon.d.ts +14 -11
  36. package/lib/icon-button/icon-button.d.ts +10 -9
  37. package/lib/input/input.d.ts +22 -21
  38. package/lib/microsite-header/microsite-header.d.ts +15 -12
  39. package/lib/modal/modal.d.ts +17 -15
  40. package/lib/notification/notification.d.ts +11 -9
  41. package/lib/one-column-layout/one-column-layout.d.ts +4 -3
  42. package/lib/page-block/page-block.d.ts +4 -3
  43. package/lib/pages/pages.d.ts +3 -3
  44. package/lib/pagination/pagination.d.ts +4 -3
  45. package/lib/popover/popover.d.ts +6 -6
  46. package/lib/radio-group/radio-group.d.ts +8 -7
  47. package/lib/radio-group/radio.d.ts +3 -3
  48. package/lib/side-menu/side-menu.d.ts +4 -3
  49. package/lib/side-menu-group/side-menu-group.d.ts +3 -3
  50. package/lib/side-menu-heading/side-menu-heading.d.ts +3 -3
  51. package/lib/skeleton/skeleton.d.ts +11 -9
  52. package/lib/spacer/spacer.d.ts +4 -3
  53. package/lib/spinner/spinner.d.ts +4 -3
  54. package/lib/tab/tab.d.ts +4 -3
  55. package/lib/table/table-sort-header.d.ts +3 -3
  56. package/lib/table/table.d.ts +8 -6
  57. package/lib/tabs/tabs.d.ts +3 -3
  58. package/lib/textarea/textarea.d.ts +3 -3
  59. package/lib/three-column-layout/three-column-layout.d.ts +3 -3
  60. package/lib/tooltip/tooltip.d.ts +10 -8
  61. package/lib/two-column-layout/two-column-layout.d.ts +3 -3
  62. package/package.json +1 -1
  63. package/react-components.esm.js +136 -136
  64. package/react-components.umd.js +90 -90
@@ -1,9 +1,9 @@
1
- import React, { FC, ReactNode } from "react";
1
+ import { ReactNode } from "react";
2
2
  import { Margins } from "../../common/styling";
3
- declare type HeadingSize = "small" | "medium";
3
+ export declare type GoAHeadingSize = "small" | "medium";
4
4
  interface WCProps extends Margins {
5
5
  open?: boolean;
6
- headingSize?: HeadingSize;
6
+ headingSize?: GoAHeadingSize;
7
7
  heading: string;
8
8
  secondaryText?: string;
9
9
  headingContent?: ReactNode;
@@ -15,14 +15,14 @@ declare global {
15
15
  }
16
16
  }
17
17
  }
18
- interface Props extends Margins {
18
+ export interface GoAAccordionProps extends Margins {
19
19
  open?: boolean;
20
- headingSize?: HeadingSize;
20
+ headingSize?: GoAHeadingSize;
21
21
  secondaryText?: string;
22
22
  heading: string;
23
23
  headingContent?: ReactNode;
24
24
  testid?: string;
25
25
  children: ReactNode;
26
26
  }
27
- export declare const GoAAccordion: FC<Props>;
27
+ export declare function GoAAccordion({ open, heading, headingSize, secondaryText, headingContent, testid, children, mt, mr, mb, ml, }: GoAAccordionProps): JSX.Element;
28
28
  export default GoAAccordion;
@@ -1,4 +1,4 @@
1
- import React, { FC } from "react";
1
+ /// <reference types="react" />
2
2
  interface WCProps {
3
3
  heading?: string;
4
4
  url?: string;
@@ -11,12 +11,12 @@ declare global {
11
11
  }
12
12
  }
13
13
  }
14
- interface Props {
14
+ export interface GoAAppHeaderProps {
15
15
  heading?: string;
16
16
  url?: string;
17
17
  maxContentWidth?: string;
18
18
  children?: React.ReactNode;
19
19
  testId?: string;
20
20
  }
21
- export declare const GoAAppHeader: FC<Props>;
21
+ export declare function GoAAppHeader({ heading, url, maxContentWidth, testId, children, }: GoAAppHeaderProps): JSX.Element;
22
22
  export default GoAAppHeader;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from "react";
1
+ import { ReactNode } from "react";
2
2
  import { GoAIconType } from "../icon/icon";
3
3
  interface WCProps {
4
4
  heading: string;
@@ -1,13 +1,6 @@
1
- import React, { FC } from "react";
1
+ /// <reference types="react" />
2
2
  import { Margins } from "../../common/styling";
3
3
  export declare type GoABadgeType = "information" | "success" | "important" | "emergency" | "dark" | "midtone" | "light";
4
- interface GoABadgeProps extends Margins {
5
- type: GoABadgeType;
6
- icon?: boolean;
7
- content?: string;
8
- testId?: string;
9
- ariaLabel?: string;
10
- }
11
4
  interface WCProps extends Margins {
12
5
  type: GoABadgeType;
13
6
  icon?: boolean;
@@ -21,21 +14,28 @@ declare global {
21
14
  }
22
15
  }
23
16
  }
24
- export declare const GoABadge: FC<GoABadgeProps>;
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
25
  /**
26
26
  * @deprecated
27
27
  */
28
- export declare const GoAInfoBadge: FC<GoABadgeProps>;
28
+ export declare function GoAInfoBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
29
29
  /**
30
30
  * @deprecated
31
31
  */
32
- export declare const GoASuccessBadge: FC<GoABadgeProps>;
32
+ export declare function GoASuccessBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
33
33
  /**
34
34
  * @deprecated
35
35
  */
36
- export declare const GoAImportantBadge: FC<GoABadgeProps>;
36
+ export declare function GoAImportantBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
37
37
  /**
38
38
  * @deprecated
39
39
  */
40
- export declare const GoAEmergencyBadge: FC<GoABadgeProps>;
40
+ export declare function GoAEmergencyBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
41
41
  export {};
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from "react";
1
+ import { ReactNode } from "react";
2
2
  import { Alignment, Direction, Margins, Spacing } from "../../common/styling";
3
3
  export interface WCProps extends Margins {
4
4
  gap?: Spacing;
@@ -12,11 +12,12 @@ declare global {
12
12
  }
13
13
  }
14
14
  }
15
- export interface BlockProps extends Margins {
15
+ export interface GoABlockProps extends Margins {
16
16
  gap?: Spacing;
17
17
  direction?: Direction;
18
18
  alignment?: Alignment;
19
19
  testId?: string;
20
20
  children?: ReactNode;
21
21
  }
22
- export declare function GoABlock(props: BlockProps): JSX.Element;
22
+ export declare type BlockProps = GoABlockProps;
23
+ export declare function GoABlock(props: GoABlockProps): JSX.Element;
@@ -1,13 +1,16 @@
1
- import React, { FC, ReactNode } from "react";
1
+ import { ReactNode } from "react";
2
2
  import { Margins } from "../../common/styling";
3
3
  import { GoAIconType } from "../icon/icon";
4
- export declare type ButtonType = "primary" | "submit" | "secondary" | "tertiary" | "start";
5
- export declare type ButtonSize = "compact" | "normal";
6
- export declare type ButtonVariant = "normal" | "destructive";
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;
7
10
  interface WCProps extends Margins {
8
- type?: ButtonType;
9
- size?: ButtonSize;
10
- variant?: ButtonVariant;
11
+ type?: GoAButtonType;
12
+ size?: GoAButtonSize;
13
+ variant?: GoAButtonVariant;
11
14
  disabled?: boolean;
12
15
  leadingicon?: string;
13
16
  trailingicon?: string;
@@ -20,10 +23,10 @@ declare global {
20
23
  }
21
24
  }
22
25
  }
23
- interface ButtonProps extends Margins {
24
- type?: ButtonType;
25
- size?: ButtonSize;
26
- variant?: ButtonVariant;
26
+ export interface GoAButtonProps extends Margins {
27
+ type?: GoAButtonType;
28
+ size?: GoAButtonSize;
29
+ variant?: GoAButtonVariant;
27
30
  disabled?: boolean;
28
31
  leadingIcon?: GoAIconType;
29
32
  trailingIcon?: GoAIconType;
@@ -31,5 +34,5 @@ interface ButtonProps extends Margins {
31
34
  testId?: string;
32
35
  children?: ReactNode;
33
36
  }
34
- export declare const GoAButton: FC<ButtonProps>;
37
+ export declare function GoAButton({ disabled, type, size, variant, leadingIcon, trailingIcon, testId, children, onClick, mt, mr, mb, ml, }: GoAButtonProps): JSX.Element;
35
38
  export default GoAButton;
@@ -1,10 +1,11 @@
1
- import React, { FC } from "react";
1
+ /// <reference types="react" />
2
2
  import { Margins } from "../../common/styling";
3
- declare type Alignment = "start" | "end" | "center";
4
- export declare type Gap = "relaxed" | "compact";
3
+ export declare type GoAButtonGroupAlignment = "start" | "end" | "center";
4
+ export declare type GoAButtonGroupGap = "relaxed" | "compact";
5
+ export declare type Gap = GoAButtonGroupGap;
5
6
  interface WCProps extends Margins {
6
- alignment: Alignment;
7
- gap?: Gap;
7
+ alignment: GoAButtonGroupAlignment;
8
+ gap?: GoAButtonGroupGap;
8
9
  }
9
10
  declare global {
10
11
  namespace JSX {
@@ -13,11 +14,11 @@ declare global {
13
14
  }
14
15
  }
15
16
  }
16
- interface ButtonGroupProps extends Margins {
17
- alignment: Alignment;
18
- gap?: Gap;
17
+ export interface GoAButtonGroupProps extends Margins {
18
+ alignment: GoAButtonGroupAlignment;
19
+ gap?: GoAButtonGroupGap;
19
20
  testId?: string;
20
21
  children?: React.ReactNode;
21
22
  }
22
- export declare const GoAButtonGroup: FC<ButtonGroupProps>;
23
+ export declare function GoAButtonGroup({ alignment, gap, testId, children, mt, mr, mb, ml, }: GoAButtonGroupProps): JSX.Element;
23
24
  export default GoAButtonGroup;
@@ -1,12 +1,5 @@
1
- import React, { FC } from "react";
1
+ /// <reference types="react" />
2
2
  import { Margins } from "../../common/styling";
3
- interface Props extends Margins {
4
- name?: string;
5
- value?: Date;
6
- min?: Date;
7
- max?: Date;
8
- onChange: (name: string, value: Date) => void;
9
- }
10
3
  interface WCProps extends Margins {
11
4
  ref: React.RefObject<HTMLElement>;
12
5
  name?: string;
@@ -21,5 +14,12 @@ declare global {
21
14
  }
22
15
  }
23
16
  }
24
- export declare const GoACalendar: FC<Props>;
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
25
  export default GoACalendar;
@@ -1,11 +1,11 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  import { Margins } from "../../common/styling";
3
- declare type CalloutType = "important" | "information" | "event" | "success" | "emergency";
4
- declare type CalloutSize = "medium" | "large";
3
+ export declare type GoACalloutType = "important" | "information" | "event" | "success" | "emergency";
4
+ export declare type GoACalloutSize = "medium" | "large";
5
5
  interface WCProps extends Margins {
6
6
  heading?: string;
7
- type?: CalloutType;
8
- size?: CalloutSize;
7
+ type?: GoACalloutType;
8
+ size?: GoACalloutSize;
9
9
  }
10
10
  declare global {
11
11
  namespace JSX {
@@ -14,12 +14,13 @@ declare global {
14
14
  }
15
15
  }
16
16
  }
17
- export interface CalloutProps extends Margins {
17
+ export interface GoACalloutProps extends Margins {
18
18
  heading?: string;
19
- type?: CalloutType;
20
- size?: CalloutSize;
19
+ type?: GoACalloutType;
20
+ size?: GoACalloutSize;
21
21
  testId?: string;
22
22
  children?: React.ReactNode;
23
23
  }
24
- export declare const GoACallout: ({ heading, type, size, testId, children, mt, mr, mb, ml, }: CalloutProps) => JSX.Element;
24
+ export declare type CalloutProps = GoACalloutProps;
25
+ export declare const GoACallout: ({ heading, type, size, testId, children, mt, mr, mb, ml, }: GoACalloutProps) => JSX.Element;
25
26
  export default GoACallout;
@@ -1,4 +1,4 @@
1
- import { FC } from "react";
1
+ /// <reference types="react" />
2
2
  declare global {
3
3
  namespace JSX {
4
4
  interface IntrinsicElements {
@@ -6,8 +6,8 @@ declare global {
6
6
  }
7
7
  }
8
8
  }
9
- interface Props {
9
+ export interface GoACardActionsProps {
10
10
  children?: React.ReactNode;
11
11
  }
12
- export declare const GoACardActions: FC<Props>;
12
+ export declare function GoACardActions({ children }: GoACardActionsProps): JSX.Element;
13
13
  export default GoACardActions;
@@ -1,4 +1,4 @@
1
- import { FC } from "react";
1
+ /// <reference types="react" />
2
2
  declare global {
3
3
  namespace JSX {
4
4
  interface IntrinsicElements {
@@ -6,8 +6,8 @@ declare global {
6
6
  }
7
7
  }
8
8
  }
9
- interface Props {
9
+ export interface GoACardContentProps {
10
10
  children?: React.ReactNode;
11
11
  }
12
- export declare const GoACardContent: FC<Props>;
12
+ export declare function GoACardContent({ children }: GoACardContentProps): JSX.Element;
13
13
  export default GoACardContent;
@@ -1,4 +1,4 @@
1
- import { FC } from "react";
1
+ /// <reference types="react" />
2
2
  declare global {
3
3
  namespace JSX {
4
4
  interface IntrinsicElements {
@@ -6,8 +6,8 @@ declare global {
6
6
  }
7
7
  }
8
8
  }
9
- interface Props {
9
+ export interface GoACardGroupProps {
10
10
  children?: React.ReactNode;
11
11
  }
12
- export declare const GoACardGroup: FC<Props>;
12
+ export declare function GoACardGroup({ children }: GoACardGroupProps): JSX.Element;
13
13
  export default GoACardGroup;
@@ -1,4 +1,4 @@
1
- import { FC } from "react";
1
+ /// <reference types="react" />
2
2
  interface WCProps {
3
3
  src: string;
4
4
  height: string;
@@ -10,9 +10,9 @@ declare global {
10
10
  }
11
11
  }
12
12
  }
13
- interface Props {
13
+ export interface GoACardImageProps {
14
14
  src: string;
15
15
  height: string;
16
16
  }
17
- export declare const GoACardImage: FC<Props>;
17
+ export declare function GoACardImage({ src, height }: GoACardImageProps): JSX.Element;
18
18
  export default GoACardImage;
@@ -1,4 +1,4 @@
1
- import { FC } from "react";
1
+ /// <reference types="react" />
2
2
  import { Margins } from "../../common/styling";
3
3
  interface WCProps extends Margins {
4
4
  elevation?: number;
@@ -12,11 +12,11 @@ declare global {
12
12
  }
13
13
  }
14
14
  }
15
- interface Props extends Margins {
15
+ export interface GoACardProps extends Margins {
16
16
  elevation?: number;
17
17
  width?: string;
18
18
  testId?: string;
19
19
  children?: React.ReactNode;
20
20
  }
21
- export declare const GoACard: FC<Props>;
21
+ export declare function GoACard({ elevation, width, mt, mr, mb, ml, testId, children, }: GoACardProps): JSX.Element;
22
22
  export default GoACard;
@@ -1,13 +1,13 @@
1
- import React, { FC } from "react";
1
+ /// <reference types="react" />
2
2
  import { Margins } from "../../common/styling";
3
3
  declare global {
4
4
  namespace JSX {
5
5
  interface IntrinsicElements {
6
- "goa-checkbox": CheckboxProps & React.HTMLAttributes<HTMLElement>;
6
+ "goa-checkbox": WCProps & React.HTMLAttributes<HTMLElement>;
7
7
  }
8
8
  }
9
9
  }
10
- interface CheckboxProps extends Margins {
10
+ interface WCProps extends Margins {
11
11
  ref: React.RefObject<HTMLElement>;
12
12
  id?: string;
13
13
  name: string;
@@ -19,7 +19,7 @@ interface CheckboxProps extends Margins {
19
19
  arialabel?: string;
20
20
  description?: string;
21
21
  }
22
- export interface Props extends Margins {
22
+ export interface GoACheckboxProps extends Margins {
23
23
  id?: string;
24
24
  name: string;
25
25
  checked: boolean;
@@ -33,5 +33,6 @@ export interface Props extends Margins {
33
33
  description?: string;
34
34
  onChange?: (name: string, checked: boolean, value: string) => void;
35
35
  }
36
- export declare const GoACheckbox: FC<Props>;
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;
37
38
  export default GoACheckbox;
@@ -1,13 +1,13 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  import { Margins } from "../../common/styling";
3
- declare type ChipVariant = "filter";
3
+ export declare type GoAChipVariant = "filter";
4
4
  interface WCProps extends Margins {
5
5
  ref: React.RefObject<HTMLElement>;
6
6
  leadingicon: string;
7
7
  error: boolean;
8
8
  deletable: boolean;
9
9
  content: string;
10
- variant?: string;
10
+ variant?: GoAChipVariant;
11
11
  }
12
12
  declare global {
13
13
  namespace JSX {
@@ -16,14 +16,14 @@ declare global {
16
16
  }
17
17
  }
18
18
  }
19
- interface Props extends Margins {
19
+ export interface GoAChipProps extends Margins {
20
20
  onClick?: () => void;
21
21
  deletable?: boolean;
22
22
  leadingIcon?: string;
23
23
  error?: boolean;
24
24
  content: string;
25
- variant?: ChipVariant;
25
+ variant?: GoAChipVariant;
26
26
  testId?: string;
27
27
  }
28
- export declare const GoAChip: ({ leadingIcon, deletable, error, variant, content, onClick, mt, mr, mb, ml, testId, }: Props) => JSX.Element;
28
+ export declare const GoAChip: ({ leadingIcon, deletable, error, variant, content, onClick, mt, mr, mb, ml, testId, }: GoAChipProps) => JSX.Element;
29
29
  export default GoAChip;
@@ -1,9 +1,11 @@
1
- import React from "react";
2
- export declare type CircularProgressVariant = "fullscreen" | "inline";
3
- export declare type CircularProgressSize = "small" | "large";
1
+ /// <reference types="react" />
2
+ export declare type GoACircularProgressVariant = "fullscreen" | "inline";
3
+ export declare type GoACircularProgressSize = "small" | "large";
4
+ export declare type CircularProgressVariant = GoACircularProgressVariant;
5
+ export declare type CircularProgressSize = GoACircularProgressSize;
4
6
  interface WCProps {
5
- variant?: CircularProgressVariant;
6
- size?: CircularProgressSize;
7
+ variant?: GoACircularProgressVariant;
8
+ size?: GoACircularProgressSize;
7
9
  message?: string;
8
10
  visible?: string;
9
11
  progress?: number;
@@ -15,13 +17,13 @@ declare global {
15
17
  }
16
18
  }
17
19
  }
18
- export interface CircularProgressProps {
19
- variant?: CircularProgressVariant;
20
- size?: CircularProgressSize;
20
+ export interface GoACircularProgressProps {
21
+ variant?: GoACircularProgressVariant;
22
+ size?: GoACircularProgressSize;
21
23
  message?: string;
22
24
  visible?: boolean;
23
25
  progress?: number;
24
26
  testId?: string;
25
27
  }
26
- export declare const GoACircularProgress: ({ visible, message, progress, variant, size, testId, }: CircularProgressProps) => JSX.Element;
28
+ export declare const GoACircularProgress: ({ visible, message, progress, variant, size, testId, }: GoACircularProgressProps) => JSX.Element;
27
29
  export default GoACircularProgress;
@@ -1,12 +1,12 @@
1
- import React, { FC, ReactNode } from "react";
1
+ import { ReactNode } from "react";
2
2
  import { Margins } from "../../common/styling";
3
- declare type ContainerType = "interactive" | "non-interactive" | "info" | "error" | "success" | "important";
4
- declare type Accent = "thick" | "thin" | "filled";
5
- declare type ContainerPadding = "relaxed" | "compact";
3
+ export declare type GoAContainerType = "interactive" | "non-interactive" | "info" | "error" | "success" | "important";
4
+ export declare type GoAContainerAccent = "thick" | "thin" | "filled";
5
+ export declare type GoAContainerPadding = "relaxed" | "compact";
6
6
  interface WCProps extends Margins {
7
- type?: ContainerType;
8
- accent?: Accent;
9
- padding?: ContainerPadding;
7
+ type?: GoAContainerType;
8
+ accent?: GoAContainerAccent;
9
+ padding?: GoAContainerPadding;
10
10
  }
11
11
  declare global {
12
12
  namespace JSX {
@@ -15,15 +15,15 @@ declare global {
15
15
  }
16
16
  }
17
17
  }
18
- interface Props extends Margins {
19
- accent?: Accent;
20
- type?: ContainerType;
18
+ export interface GoAContainerProps extends Margins {
19
+ accent?: GoAContainerAccent;
20
+ type?: GoAContainerType;
21
21
  heading?: ReactNode;
22
22
  title?: ReactNode;
23
- padding?: ContainerPadding;
23
+ padding?: GoAContainerPadding;
24
24
  actions?: ReactNode;
25
25
  children?: ReactNode;
26
26
  testId?: string;
27
27
  }
28
- export declare const GoAContainer: FC<Props>;
28
+ export declare function GoAContainer({ accent, heading, title, padding, children, actions, type, mt, mr, mb, ml, testId, }: GoAContainerProps): JSX.Element;
29
29
  export default GoAContainer;
@@ -1,12 +1,5 @@
1
- import React, { FC } from "react";
1
+ /// <reference types="react" />
2
2
  import { Margins } from "../../common/styling";
3
- interface Props extends Margins {
4
- name?: string;
5
- value?: Date;
6
- min?: Date;
7
- max?: Date;
8
- onChange: (name: string, value: Date) => void;
9
- }
10
3
  interface WCProps extends Margins {
11
4
  ref: React.RefObject<HTMLElement>;
12
5
  name?: string;
@@ -21,5 +14,12 @@ declare global {
21
14
  }
22
15
  }
23
16
  }
24
- export declare const GoADatePicker: FC<Props>;
17
+ export interface GoADatePickerProps 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 GoADatePicker({ name, value, min, max, mt, mr, mb, ml, onChange, }: GoADatePickerProps): JSX.Element;
25
25
  export default GoADatePicker;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from "react";
1
+ import { ReactNode } from "react";
2
2
  import { Margins } from "../../common/styling";
3
3
  interface WCProps extends Margins {
4
4
  heading: string;
@@ -11,10 +11,11 @@ declare global {
11
11
  }
12
12
  }
13
13
  }
14
- export interface DetailsProps extends Margins {
14
+ export interface GoADetailsProps extends Margins {
15
15
  heading: string;
16
16
  open?: boolean;
17
17
  children: ReactNode;
18
18
  }
19
- export declare function GoADetails(props: DetailsProps): JSX.Element;
19
+ export declare type DetailsProps = GoADetailsProps;
20
+ export declare function GoADetails(props: GoADetailsProps): JSX.Element;
20
21
  export default GoADetails;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  import { Margins } from "../../common/styling";
3
3
  declare global {
4
4
  namespace JSX {
@@ -7,7 +7,8 @@ declare global {
7
7
  }
8
8
  }
9
9
  }
10
- export declare function GoADivider(props: Margins & {
10
+ export interface GoADividerProps extends Margins {
11
11
  testId?: string;
12
- }): JSX.Element;
12
+ }
13
+ export declare function GoADivider(props: GoADividerProps): JSX.Element;
13
14
  export default GoADivider;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  interface WCProps {
3
3
  value: string;
4
4
  label?: string;
@@ -12,13 +12,13 @@ declare global {
12
12
  }
13
13
  }
14
14
  }
15
- interface Props {
15
+ export interface GoADropdownItemProps {
16
16
  value: string;
17
17
  label?: string;
18
18
  filter?: string;
19
19
  testId?: string;
20
20
  name?: string;
21
21
  }
22
- export declare function GoADropdownOption(props: Props): JSX.Element;
23
- export declare function GoADropdownItem({ value, label, filter, name, testId }: Props): JSX.Element;
22
+ export declare function GoADropdownOption(props: GoADropdownItemProps): JSX.Element;
23
+ export declare function GoADropdownItem({ value, label, filter, name, testId }: GoADropdownItemProps): JSX.Element;
24
24
  export {};
@@ -1,4 +1,4 @@
1
- import React, { FC } from "react";
1
+ /// <reference types="react" />
2
2
  import { Margins } from "../../common/styling";
3
3
  import { GoAIconType } from "../icon/icon";
4
4
  interface WCProps extends Margins {
@@ -26,7 +26,7 @@ declare global {
26
26
  }
27
27
  }
28
28
  }
29
- interface Props extends Margins {
29
+ export interface GoADropdownProps extends Margins {
30
30
  name?: string;
31
31
  value?: string[] | string;
32
32
  onChange: (name: string, values: string[] | string) => void;
@@ -46,5 +46,5 @@ interface Props extends Margins {
46
46
  width?: string;
47
47
  relative?: boolean;
48
48
  }
49
- export declare const GoADropdown: FC<Props>;
49
+ export declare function GoADropdown(props: GoADropdownProps): JSX.Element;
50
50
  export default GoADropdown;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  interface WCProps {
3
3
  ref: React.MutableRefObject<HTMLElement | null>;
4
4
  filename: string;
@@ -14,7 +14,7 @@ declare global {
14
14
  }
15
15
  }
16
16
  }
17
- interface FileUploadCardProps {
17
+ export interface GoAFileUploadCardProps {
18
18
  filename: string;
19
19
  size: number;
20
20
  type?: string;
@@ -23,5 +23,5 @@ interface FileUploadCardProps {
23
23
  onDelete?: () => void;
24
24
  onCancel?: () => void;
25
25
  }
26
- export declare function GoAFileUploadCard({ filename, size, type, progress, error, onDelete, onCancel, }: FileUploadCardProps): JSX.Element;
26
+ export declare function GoAFileUploadCard({ filename, size, type, progress, error, onDelete, onCancel, }: GoAFileUploadCardProps): JSX.Element;
27
27
  export default GoAFileUploadCard;