@abgov/react-components 4.0.0-alpha.17 → 4.0.0-alpha.170

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 (75) hide show
  1. package/README.md +20 -45
  2. package/common/styling.d.ts +9 -0
  3. package/experimental/package.json +2 -1
  4. package/index.d.ts +54 -39
  5. package/lib/accordion/accordion.d.ts +28 -0
  6. package/lib/app-header/app-header.d.ts +8 -4
  7. package/lib/app-header-menu/app-header-menu.d.ts +20 -0
  8. package/lib/badge/badge.d.ts +23 -10
  9. package/lib/block/block.d.ts +22 -0
  10. package/lib/button/button.d.ts +13 -14
  11. package/lib/button-group/button-group.d.ts +13 -8
  12. package/lib/callout/callout.d.ts +13 -8
  13. package/lib/card/card-actions.d.ts +2 -5
  14. package/lib/card/card-content.d.ts +2 -2
  15. package/lib/card/card-group.d.ts +2 -5
  16. package/lib/card/card-image.d.ts +2 -2
  17. package/lib/card/card.d.ts +10 -6
  18. package/lib/card/index.d.ts +5 -5
  19. package/lib/checkbox/checkbox.d.ts +8 -4
  20. package/lib/chip/chip.d.ts +10 -5
  21. package/lib/circular-progress/circular-progress.d.ts +6 -8
  22. package/lib/container/container.d.ts +17 -13
  23. package/lib/details/details.d.ts +20 -0
  24. package/lib/divider/divider.d.ts +6 -10
  25. package/lib/dropdown/dropdown-item.d.ts +22 -0
  26. package/lib/dropdown/dropdown.d.ts +19 -15
  27. package/lib/file-upload-card/file-upload-card.d.ts +27 -0
  28. package/lib/file-upload-input/file-upload-input.d.ts +23 -0
  29. package/lib/footer/footer.d.ts +18 -0
  30. package/lib/footer-meta-section/footer-meta-section.d.ts +13 -0
  31. package/lib/footer-nav-section/footer-nav-section.d.ts +20 -0
  32. package/lib/form/form-item.d.ts +10 -6
  33. package/lib/form/index.d.ts +1 -1
  34. package/lib/form-step/form-step.d.ts +19 -0
  35. package/lib/form-stepper/form-stepper.d.ts +21 -0
  36. package/lib/grid/grid.d.ts +21 -0
  37. package/lib/hero-banner/hero-banner-actions.d.ts +5 -3
  38. package/lib/hero-banner/hero-banner.d.ts +10 -4
  39. package/lib/icon/icon.d.ts +39 -0
  40. package/lib/icon-button/icon-button.d.ts +31 -0
  41. package/lib/input/input.d.ts +62 -40
  42. package/lib/microsite-header/microsite-header.d.ts +8 -5
  43. package/lib/modal/modal.d.ts +13 -6
  44. package/lib/notification/notification.d.ts +13 -5
  45. package/lib/one-column-layout/one-column-layout.d.ts +13 -0
  46. package/lib/page-block/page-block.d.ts +4 -3
  47. package/lib/pages/pages.d.ts +18 -0
  48. package/lib/pagination/pagination.d.ts +26 -0
  49. package/lib/popover/popover.d.ts +25 -0
  50. package/lib/radio-group/radio-group.d.ts +10 -6
  51. package/lib/radio-group/radio.d.ts +3 -2
  52. package/lib/side-menu/side-menu.d.ts +13 -0
  53. package/lib/side-menu-group/side-menu-group.d.ts +17 -0
  54. package/lib/skeleton/skeleton.d.ts +15 -8
  55. package/lib/spacer/spacer.d.ts +20 -0
  56. package/lib/spinner/spinner.d.ts +3 -4
  57. package/lib/table/table-sort-header.d.ts +20 -0
  58. package/lib/table/table.d.ts +25 -0
  59. package/lib/textarea/textarea.d.ts +7 -4
  60. package/lib/three-column-layout/three-column-layout.d.ts +26 -0
  61. package/lib/tooltip/tooltip.d.ts +22 -0
  62. package/lib/two-column-layout/two-column-layout.d.ts +22 -0
  63. package/package.json +6 -6
  64. package/react-components.esm.js +1771 -418
  65. package/react-components.umd.js +2317 -957
  66. package/lib/app-footer/app-footer.d.ts +0 -26
  67. package/lib/app-footer/meta-link.d.ts +0 -20
  68. package/lib/app-footer/navigation-link.d.ts +0 -22
  69. package/lib/dropdown/dropdown-option.d.ts +0 -21
  70. package/lib/flex-column/flex-column.d.ts +0 -16
  71. package/lib/flex-row/flex-row.d.ts +0 -16
  72. package/lib/icons/icon-button.d.ts +0 -27
  73. package/lib/icons/icon.d.ts +0 -37
  74. package/lib/icons/index.d.ts +0 -2
  75. package/lib/page/page.d.ts +0 -13
@@ -1,11 +1,17 @@
1
- import React, { FC } from 'react';
2
- import { GoAIconType } from '../..';
3
- interface WCProps {
1
+ import React, { FC } from "react";
2
+ import { GoAIconType } from "../..";
3
+ import { Margins } from "../../common/styling";
4
+ export declare type GoADate = Date | string;
5
+ declare type GoAInputType = "text" | "password" | "email" | "number" | "date" | "datetime-local" | "month" | "range" | "search" | "tel" | "time" | "url" | "week";
6
+ declare type GoAAutoCapitalize = "on" | "off" | "none" | "sentences" | "words" | "characters";
7
+ interface WCProps extends Margins {
4
8
  ref?: React.MutableRefObject<HTMLInputElement | null>;
5
- type: string;
9
+ type?: GoAInputType;
6
10
  name: string;
7
11
  value: string;
8
12
  id?: string;
13
+ autocapitalize?: GoAAutoCapitalize;
14
+ debounce?: number;
9
15
  placeholder?: string;
10
16
  leadingicon?: string;
11
17
  trailingicon?: string;
@@ -14,68 +20,84 @@ interface WCProps {
14
20
  error?: boolean;
15
21
  readonly?: boolean;
16
22
  focused?: boolean;
17
- showcounter?: boolean;
18
- maxcharcount?: number;
19
23
  handletrailingiconclick: boolean;
20
24
  width?: string;
21
- testid?: string;
25
+ prefix?: string;
26
+ suffix?: string;
27
+ arialabel?: string;
28
+ min?: string | number;
29
+ max?: string | number;
30
+ step?: number;
31
+ maxlength?: number;
22
32
  }
23
33
  declare global {
24
34
  namespace JSX {
25
35
  interface IntrinsicElements {
26
- 'goa-input': WCProps & React.HTMLAttributes<HTMLInputElement>;
36
+ "goa-input": WCProps & React.HTMLAttributes<HTMLInputElement>;
27
37
  }
28
38
  }
29
39
  }
30
- export interface Props {
40
+ interface BaseProps extends Margins {
31
41
  name: string;
32
- value: string;
33
- onChange: (name: string, value: string) => void;
34
42
  id?: string;
43
+ debounce?: number;
35
44
  disabled?: boolean;
45
+ autoCapitalize?: GoAAutoCapitalize;
36
46
  placeholder?: string;
37
47
  leadingIcon?: GoAIconType;
38
48
  trailingIcon?: GoAIconType;
39
49
  onTrailingIconClick?: () => void;
40
- variant?: 'goa' | 'bare';
50
+ variant?: "goa" | "bare";
41
51
  focused?: boolean;
42
52
  readonly?: boolean;
43
53
  error?: boolean;
44
54
  width?: string;
45
- showCounter?: boolean;
46
- maxCharCount?: number;
55
+ prefix?: string;
56
+ suffix?: string;
47
57
  testId?: string;
58
+ ariaLabel?: string;
59
+ leadingContent?: React.ReactNode;
60
+ trailingContent?: React.ReactNode;
61
+ maxLength?: number;
48
62
  }
49
- export declare const GoAInput: FC<Props & {
50
- type: string;
51
- }>;
52
- export declare const GoAInputText: FC<Props>;
53
- export declare const GoAInputPassword: FC<Props>;
54
- export declare const GoAInputDate: FC<Props & {
55
- min?: string;
56
- max?: string;
57
- }>;
58
- export declare const GoAInputTime: FC<Props>;
59
- export declare const GoAInputDateTime: FC<Props & {
60
- min?: string;
61
- max?: string;
62
- }>;
63
- export declare const GoAInputEmail: FC<Props>;
64
- export declare const GoAInputSearch: FC<Props>;
65
- export declare const GoAInputUrl: FC<Props>;
66
- export declare const GoAInputTel: FC<Props>;
67
- export declare const GoAInputFile: FC<Props>;
68
- export declare const GoAInputMonth: FC<Props>;
69
- export declare const GoAInputNumber: FC<Omit<Props, "value"> & {
63
+ declare type OnChange = (name: string, value: string) => void;
64
+ export interface InputProps extends BaseProps {
65
+ onChange: OnChange;
66
+ value: string;
67
+ min?: number | string;
68
+ max?: number | string;
69
+ step?: number;
70
+ }
71
+ declare type OnNumberChange = (name: string, value: number) => void;
72
+ interface NumberInputProps extends BaseProps {
73
+ onChange: OnNumberChange;
70
74
  value: number;
71
- } & {
72
75
  min?: number;
73
76
  max?: number;
74
77
  step?: number;
75
- }>;
76
- export declare const GoAInputRange: FC<Props & {
77
- min?: number;
78
- max?: number;
78
+ }
79
+ declare type OnDateChange = (name: string, value: GoADate) => void;
80
+ interface DateInputProps extends BaseProps {
81
+ onChange: OnDateChange;
82
+ value: GoADate;
83
+ min?: GoADate;
84
+ max?: GoADate;
79
85
  step?: number;
86
+ }
87
+ export declare const GoAInput: FC<InputProps & {
88
+ type?: GoAInputType;
80
89
  }>;
90
+ export declare const GoAInputText: FC<InputProps>;
91
+ export declare const GoAInputPassword: FC<InputProps>;
92
+ export declare const GoAInputDate: FC<DateInputProps>;
93
+ export declare const GoAInputTime: FC<InputProps>;
94
+ export declare const GoAInputDateTime: FC<DateInputProps>;
95
+ export declare const GoAInputEmail: FC<InputProps>;
96
+ export declare const GoAInputSearch: FC<InputProps>;
97
+ export declare const GoAInputUrl: FC<InputProps>;
98
+ export declare const GoAInputTel: FC<InputProps>;
99
+ export declare const GoAInputFile: FC<InputProps>;
100
+ export declare const GoAInputMonth: FC<InputProps>;
101
+ export declare const GoAInputNumber: FC<NumberInputProps>;
102
+ export declare const GoAInputRange: FC<InputProps>;
81
103
  export default GoAInput;
@@ -1,21 +1,24 @@
1
- import React, { FC } from 'react';
1
+ import React, { FC } from "react";
2
2
  declare global {
3
3
  namespace JSX {
4
4
  interface IntrinsicElements {
5
- 'goa-microsite-header': WebComponentProps & React.HTMLAttributes<HTMLElement>;
5
+ "goa-microsite-header": WebComponentProps & React.HTMLAttributes<HTMLElement>;
6
6
  }
7
7
  }
8
8
  }
9
- export declare type ServiceLevel = 'alpha' | 'beta' | 'live';
9
+ export declare type ServiceLevel = "alpha" | "beta" | "live";
10
10
  interface WebComponentProps {
11
- level: ServiceLevel;
11
+ type: ServiceLevel;
12
12
  version?: string;
13
13
  feedbackurl?: string;
14
+ maxcontentwidth?: string;
14
15
  }
15
16
  export interface HeaderProps {
16
- level: ServiceLevel;
17
+ type: ServiceLevel;
17
18
  version?: string;
18
19
  feedbackUrl?: string;
20
+ testId?: string;
21
+ maxContentWidth?: string;
19
22
  }
20
23
  export declare const GoAMicrositeHeader: FC<HeaderProps>;
21
24
  export default GoAMicrositeHeader;
@@ -1,27 +1,34 @@
1
- import React, { FC } from 'react';
1
+ import React, { FC } from "react";
2
+ export declare type ModalTransition = "fast" | "slow" | "none";
3
+ export declare type CalloutVariant = "information" | "important" | "emergency" | "success" | "event";
2
4
  interface WCProps {
3
5
  ref: React.RefObject<HTMLElement>;
4
- heading?: string;
6
+ heading?: React.ReactNode;
5
7
  open?: boolean;
6
8
  width?: string;
7
9
  closable?: boolean;
8
10
  scrollable?: boolean;
9
- transition?: "fast" | "slow" | "none";
11
+ transition?: ModalTransition;
12
+ calloutVariant?: CalloutVariant;
10
13
  }
11
14
  declare global {
12
15
  namespace JSX {
13
16
  interface IntrinsicElements {
14
- 'goa-modal': WCProps & React.HTMLAttributes<HTMLElement>;
17
+ "goa-modal": WCProps & React.HTMLAttributes<HTMLElement>;
15
18
  }
16
19
  }
17
20
  }
18
21
  interface Props {
19
- heading?: string;
22
+ heading?: React.ReactNode;
20
23
  width?: string;
21
24
  actions?: React.ReactElement;
22
25
  onClose?: () => void;
23
- transition?: "fast" | "slow" | "none";
26
+ transition?: ModalTransition;
27
+ children?: React.ReactNode;
24
28
  open?: boolean;
29
+ type?: string;
30
+ calloutVariant?: CalloutVariant;
31
+ testId?: string;
25
32
  }
26
33
  export declare const GoAModal: FC<Props>;
27
34
  export default GoAModal;
@@ -1,18 +1,26 @@
1
- import React from 'react';
2
- declare type NotificationType = "important" | 'information' | 'event' | 'emergency';
1
+ import React from "react";
2
+ export declare type NotificationType = "important" | "information" | "event" | "emergency";
3
+ export declare type AriaLiveType = "polite" | "assertive" | "off";
3
4
  interface WCProps {
5
+ ref: React.RefObject<HTMLElement>;
4
6
  type: NotificationType;
7
+ maxcontentwidth?: string;
8
+ arialive?: AriaLiveType;
5
9
  }
6
10
  declare global {
7
11
  namespace JSX {
8
12
  interface IntrinsicElements {
9
- 'goa-notification': WCProps & React.HTMLAttributes<HTMLButtonElement>;
13
+ "goa-notification": WCProps & React.HTMLAttributes<HTMLButtonElement>;
10
14
  }
11
15
  }
12
16
  }
13
- export interface Props {
17
+ interface Props {
14
18
  type?: NotificationType;
19
+ ariaLive?: AriaLiveType;
20
+ maxContentWidth?: string;
15
21
  children?: React.ReactNode;
22
+ onDismiss?: () => void;
23
+ testId?: string;
16
24
  }
17
- export declare const GoANotification: ({ type, children }: Props) => JSX.Element;
25
+ export declare const GoANotification: ({ type, ariaLive, maxContentWidth, children, testId, onDismiss, }: Props) => JSX.Element;
18
26
  export default GoANotification;
@@ -0,0 +1,13 @@
1
+ import React, { ReactNode } from "react";
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ "goa-one-column-layout": React.HTMLAttributes<HTMLElement>;
6
+ }
7
+ }
8
+ }
9
+ export interface PageProps {
10
+ children?: ReactNode;
11
+ }
12
+ export declare function GoAOneColumnLayout(props: PageProps): JSX.Element;
13
+ export default GoAOneColumnLayout;
@@ -1,16 +1,17 @@
1
- import React, { FC, ReactNode } from 'react';
1
+ import React, { FC, ReactNode } from "react";
2
2
  export interface WCPageBlockProps {
3
3
  width: "full" | string;
4
4
  }
5
5
  declare global {
6
6
  namespace JSX {
7
7
  interface IntrinsicElements {
8
- 'goa-page-block': WCPageBlockProps & React.HTMLAttributes<HTMLElement>;
8
+ "goa-page-block": WCPageBlockProps & React.HTMLAttributes<HTMLElement>;
9
9
  }
10
10
  }
11
11
  }
12
12
  export interface PageBlockProps {
13
13
  width: "full" | string;
14
- children: ReactNode;
14
+ testId?: string;
15
+ children?: ReactNode;
15
16
  }
16
17
  export declare const GoAPageBlock: FC<PageBlockProps>;
@@ -0,0 +1,18 @@
1
+ import React, { ReactNode } from "react";
2
+ import { Margins } from "../../common/styling";
3
+ interface WCProps extends Margins {
4
+ current?: number;
5
+ }
6
+ declare global {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ "goa-pages": WCProps & React.HTMLAttributes<HTMLElement>;
10
+ }
11
+ }
12
+ }
13
+ interface PagesProps extends Margins {
14
+ current?: number;
15
+ children?: ReactNode;
16
+ }
17
+ export declare function GoAPages(props: PagesProps): JSX.Element;
18
+ export default GoAPages;
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ import { Margins } from "../../common/styling";
3
+ interface WCProps extends Margins {
4
+ ref?: React.MutableRefObject<HTMLElement | undefined>;
5
+ itemcount: number;
6
+ perpagecount?: number;
7
+ pagenumber: number;
8
+ variant?: "all" | "links-only";
9
+ }
10
+ declare global {
11
+ namespace JSX {
12
+ interface IntrinsicElements {
13
+ "goa-pagination": WCProps & React.HTMLAttributes<HTMLElement>;
14
+ }
15
+ }
16
+ }
17
+ export interface PaginationProps extends Margins {
18
+ itemCount: number;
19
+ perPageCount?: number;
20
+ pageNumber: number;
21
+ variant?: "all" | "links-only";
22
+ onChange: (page: number) => void;
23
+ testId?: string;
24
+ }
25
+ export declare function GoAPagination(props: PaginationProps): JSX.Element;
26
+ export default GoAPagination;
@@ -0,0 +1,25 @@
1
+ import React, { FC, ReactNode } from "react";
2
+ import { Margins } from "../../common/styling";
3
+ declare type Position = "above" | "below" | "auto";
4
+ interface WCProps extends Margins {
5
+ maxwidth?: string;
6
+ padded?: boolean;
7
+ position?: Position;
8
+ }
9
+ declare global {
10
+ namespace JSX {
11
+ interface IntrinsicElements {
12
+ "goa-popover": WCProps & React.HTMLAttributes<HTMLElement>;
13
+ }
14
+ }
15
+ }
16
+ interface Props extends Margins {
17
+ target?: ReactNode;
18
+ testId?: string;
19
+ maxWidth?: string;
20
+ padded?: boolean;
21
+ position?: Position;
22
+ children: ReactNode;
23
+ }
24
+ export declare const GoAPopover: FC<Props>;
25
+ export default GoAPopover;
@@ -1,27 +1,31 @@
1
- import React, { FC } from 'react';
2
- export * from './radio';
3
- interface RadioGroupProps {
1
+ import React, { FC } from "react";
2
+ import { Margins } from "../../common/styling";
3
+ export * from "./radio";
4
+ interface RadioGroupProps extends Margins {
4
5
  ref: React.RefObject<HTMLElement>;
5
6
  name: string;
6
7
  value?: string;
7
8
  orientation: string;
8
9
  disabled: boolean;
9
10
  error: boolean;
11
+ arialabel?: string;
10
12
  }
11
13
  declare global {
12
14
  namespace JSX {
13
15
  interface IntrinsicElements {
14
- 'goa-radio-group': RadioGroupProps & React.HTMLAttributes<HTMLElement>;
16
+ "goa-radio-group": RadioGroupProps & React.HTMLAttributes<HTMLElement>;
15
17
  }
16
18
  }
17
19
  }
18
- interface Props {
20
+ interface Props extends Margins {
19
21
  name: string;
20
22
  value?: string;
21
23
  disabled?: boolean;
22
- orientation?: 'horizontal' | 'vertical';
24
+ orientation?: "horizontal" | "vertical";
23
25
  testId?: string;
24
26
  error?: boolean;
27
+ ariaLabel?: string;
28
+ children?: React.ReactNode;
25
29
  onChange: (name: string, value: string) => void;
26
30
  }
27
31
  export declare const GoARadioGroup: FC<Props>;
@@ -1,4 +1,4 @@
1
- import React, { FC } from 'react';
1
+ import React, { FC } from "react";
2
2
  interface RadioItemProps {
3
3
  name: string;
4
4
  value: string;
@@ -10,7 +10,7 @@ interface RadioItemProps {
10
10
  declare global {
11
11
  namespace JSX {
12
12
  interface IntrinsicElements {
13
- 'goa-radio-item': RadioItemProps & React.HTMLAttributes<HTMLElement>;
13
+ "goa-radio-item": RadioItemProps & React.HTMLAttributes<HTMLElement>;
14
14
  }
15
15
  }
16
16
  }
@@ -21,6 +21,7 @@ interface Props {
21
21
  disabled?: boolean;
22
22
  checked?: boolean;
23
23
  error?: boolean;
24
+ children?: React.ReactNode;
24
25
  testId?: string;
25
26
  }
26
27
  export declare const GoARadioItem: FC<Props>;
@@ -0,0 +1,13 @@
1
+ import React, { ReactNode } from "react";
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ "goa-side-menu": React.HTMLAttributes<HTMLElement>;
6
+ }
7
+ }
8
+ }
9
+ export interface SideMenuProps {
10
+ children: ReactNode;
11
+ }
12
+ export declare function GoASideMenu(props: SideMenuProps): JSX.Element;
13
+ export default GoASideMenu;
@@ -0,0 +1,17 @@
1
+ import React, { ReactNode } from "react";
2
+ interface WCProps {
3
+ heading: string;
4
+ }
5
+ declare global {
6
+ namespace JSX {
7
+ interface IntrinsicElements {
8
+ "goa-side-menu-group": WCProps & React.HTMLAttributes<HTMLElement>;
9
+ }
10
+ }
11
+ }
12
+ interface SideMenuGroupProps {
13
+ heading: string;
14
+ children?: ReactNode;
15
+ }
16
+ export declare function GoASideMenuGroup(props: SideMenuGroupProps): JSX.Element;
17
+ export default GoASideMenuGroup;
@@ -1,19 +1,26 @@
1
- import React from 'react';
2
- export declare type SkeletonType = "image" | "text" | "title" | "text-small" | "avatar" | "header" | "paragraph" | "thumbnail" | "card" | "profile";
3
- interface WCProps {
4
- size: number;
1
+ import React from "react";
2
+ import { Margins } from "../../common/styling";
3
+ export declare type SkeletonType = "image" | "text" | "title" | "text-small" | "avatar" | "header" | "paragraph" | "thumbnail" | "card" | "profile" | "article";
4
+ declare type SkeletonSize = 1 | 2 | 3 | 4;
5
+ interface WCProps extends Margins {
6
+ maxwidth?: string;
7
+ size?: SkeletonSize;
8
+ linecount?: number;
5
9
  type: SkeletonType;
6
10
  }
7
11
  declare global {
8
12
  namespace JSX {
9
13
  interface IntrinsicElements {
10
- 'goa-skeleton': WCProps & React.HTMLAttributes<HTMLElement>;
14
+ "goa-skeleton": WCProps & React.HTMLAttributes<HTMLElement>;
11
15
  }
12
16
  }
13
17
  }
14
- export interface SkeletonProps {
18
+ export interface SkeletonProps extends Margins {
19
+ maxWidth?: string;
20
+ size?: SkeletonSize;
21
+ lineCount?: number;
15
22
  type: SkeletonType;
16
- size?: number;
23
+ testId?: string;
17
24
  }
18
- export declare const GoASkeleton: ({ type, size }: SkeletonProps) => JSX.Element;
25
+ export declare const GoASkeleton: ({ maxWidth, size, lineCount, type, testId, mt, mr, mb, ml, }: SkeletonProps) => JSX.Element;
19
26
  export default GoASkeleton;
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ import { Spacing } from "../../common/styling";
3
+ interface WCProps {
4
+ hspacing?: Spacing | "fill";
5
+ vspacing?: Spacing;
6
+ }
7
+ declare global {
8
+ namespace JSX {
9
+ interface IntrinsicElements {
10
+ "goa-spacer": WCProps & React.HTMLAttributes<HTMLElement>;
11
+ }
12
+ }
13
+ }
14
+ export interface SpacerProps {
15
+ hSpacing?: Spacing | "fill";
16
+ vSpacing?: Spacing;
17
+ testId?: string;
18
+ }
19
+ export declare function GoASpacer(props: SpacerProps): JSX.Element;
20
+ export default GoASpacer;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  export declare type SpinnerType = "infinite" | "progress";
3
3
  export declare type SpinnerSize = "small" | "medium" | "large" | "xlarge";
4
4
  interface WCProps {
@@ -6,12 +6,11 @@ interface WCProps {
6
6
  type: SpinnerType;
7
7
  invert?: boolean;
8
8
  progress?: number;
9
- testid?: string;
10
9
  }
11
10
  declare global {
12
11
  namespace JSX {
13
12
  interface IntrinsicElements {
14
- 'goa-spinner': WCProps & React.HTMLAttributes<HTMLElement>;
13
+ "goa-spinner": WCProps & React.HTMLAttributes<HTMLElement>;
15
14
  }
16
15
  }
17
16
  }
@@ -22,5 +21,5 @@ export interface SpinnerProps {
22
21
  progress?: number;
23
22
  testId?: string;
24
23
  }
25
- export declare const GoASpinner: ({ type, size, progress, invert, testId }: SpinnerProps) => JSX.Element;
24
+ export declare const GoASpinner: ({ type, size, progress, invert, testId, }: SpinnerProps) => JSX.Element;
26
25
  export default GoASpinner;
@@ -0,0 +1,20 @@
1
+ import React, { FC } from "react";
2
+ export declare type Direction = "asc" | "desc" | "none";
3
+ interface WCProps {
4
+ name?: string;
5
+ direction?: Direction;
6
+ }
7
+ declare global {
8
+ namespace JSX {
9
+ interface IntrinsicElements {
10
+ "goa-table-sort-header": WCProps & React.HTMLAttributes<HTMLElement>;
11
+ }
12
+ }
13
+ }
14
+ interface Props {
15
+ name?: string;
16
+ direction?: Direction;
17
+ children?: React.ReactNode;
18
+ }
19
+ export declare const GoATableSortHeader: FC<Props>;
20
+ export default GoATableSortHeader;
@@ -0,0 +1,25 @@
1
+ import React, { ReactNode } from "react";
2
+ import { Margins } from "../../common/styling";
3
+ export declare type TableVariant = "normal" | "relaxed";
4
+ interface WCProps extends Margins {
5
+ ref?: React.MutableRefObject<HTMLElement | null>;
6
+ width?: string;
7
+ stickyheader?: boolean;
8
+ variant?: TableVariant;
9
+ }
10
+ declare global {
11
+ namespace JSX {
12
+ interface IntrinsicElements {
13
+ "goa-table": WCProps & React.HTMLAttributes<HTMLElement>;
14
+ }
15
+ }
16
+ }
17
+ export interface TableProps extends Margins {
18
+ width?: string;
19
+ onSort?: (sortBy: string, sortDir: number) => void;
20
+ variant?: TableVariant;
21
+ testId?: string;
22
+ children: ReactNode;
23
+ }
24
+ export declare function GoATable(props: TableProps): JSX.Element;
25
+ export default GoATable;
@@ -1,5 +1,6 @@
1
- import React, { FC } from 'react';
2
- interface WCProps {
1
+ import React, { FC } from "react";
2
+ import { Margins } from "../../common/styling";
3
+ interface WCProps extends Margins {
3
4
  ref: React.Ref<HTMLTextAreaElement>;
4
5
  name: string;
5
6
  value: string;
@@ -10,15 +11,16 @@ interface WCProps {
10
11
  showcounter?: boolean;
11
12
  maxcharcount?: number;
12
13
  width?: string;
14
+ arialabel?: string;
13
15
  }
14
16
  declare global {
15
17
  namespace JSX {
16
18
  interface IntrinsicElements {
17
- 'goa-textarea': WCProps & React.HTMLAttributes<HTMLElement>;
19
+ "goa-textarea": WCProps & React.HTMLAttributes<HTMLElement>;
18
20
  }
19
21
  }
20
22
  }
21
- interface Props {
23
+ interface Props extends Margins {
22
24
  name: string;
23
25
  value: string;
24
26
  id?: string;
@@ -30,6 +32,7 @@ interface Props {
30
32
  maxCharCount?: number;
31
33
  width?: string;
32
34
  testId?: string;
35
+ ariaLabel?: string;
33
36
  onChange: (name: string, value: string) => void;
34
37
  }
35
38
  export declare const GoATextArea: FC<Props>;
@@ -0,0 +1,26 @@
1
+ import React, { ReactNode } from "react";
2
+ interface WCProps {
3
+ leftcolumnwidth?: string;
4
+ maxcontentwidth?: string;
5
+ rightcolumnwidth?: string;
6
+ }
7
+ declare global {
8
+ namespace JSX {
9
+ interface IntrinsicElements {
10
+ "goa-three-column-layout": WCProps & React.HTMLAttributes<HTMLElement>;
11
+ }
12
+ }
13
+ }
14
+ interface Props {
15
+ leftColumnWidth?: string;
16
+ rightColumnWidth?: string;
17
+ maxContentWidth?: string;
18
+ header?: ReactNode;
19
+ footer?: ReactNode;
20
+ nav?: ReactNode;
21
+ sidebar?: ReactNode;
22
+ sideMenu?: ReactNode;
23
+ children: ReactNode;
24
+ }
25
+ export declare function GoAThreeColumnLayout(props: Props): JSX.Element;
26
+ export default GoAThreeColumnLayout;
@@ -0,0 +1,22 @@
1
+ import React from "react";
2
+ import { Margins } from "../../common/styling";
3
+ interface WCProps extends Margins {
4
+ position?: string;
5
+ content?: string;
6
+ halign?: string;
7
+ }
8
+ declare global {
9
+ namespace JSX {
10
+ interface IntrinsicElements {
11
+ "goa-tooltip": WCProps & React.HTMLAttributes<HTMLElement>;
12
+ }
13
+ }
14
+ }
15
+ interface TooltipProps extends Margins {
16
+ position?: string;
17
+ content?: string;
18
+ hAlign?: string;
19
+ testId?: string;
20
+ }
21
+ export declare const GoATooltip: React.FC<TooltipProps>;
22
+ export default GoATooltip;