@abgov/react-components 3.4.0-beta.8 → 4.0.0-alpha.2

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 +44 -97
  2. package/experimental/index.d.ts +0 -10
  3. package/experimental/package.json +1 -1
  4. package/experimental/react-components.esm.js +0 -1714
  5. package/experimental/react-components.umd.js +5 -1735
  6. package/index.d.ts +33 -16
  7. package/lib/app-header/app-header.d.ts +18 -0
  8. package/lib/badge/badge.d.ts +28 -0
  9. package/lib/button/button.d.ts +27 -35
  10. package/lib/button-group/button-group.d.ts +18 -0
  11. package/lib/callout/callout.d.ts +14 -23
  12. package/lib/card/card-actions.d.ts +16 -0
  13. package/lib/card/card-content.d.ts +13 -0
  14. package/lib/card/card-group.d.ts +16 -0
  15. package/lib/card/card-image.d.ts +18 -0
  16. package/lib/card/card.d.ts +18 -0
  17. package/lib/card/index.d.ts +5 -0
  18. package/lib/checkbox/checkbox.d.ts +27 -36
  19. package/lib/chip/chip.d.ts +23 -0
  20. package/lib/circular-progress/circular-progress.d.ts +29 -0
  21. package/lib/container/container.d.ts +23 -0
  22. package/lib/dropdown/dropdown-option.d.ts +21 -0
  23. package/lib/dropdown/dropdown.d.ts +37 -0
  24. package/lib/flex/index.d.ts +1 -0
  25. package/lib/flex/row.d.ts +7 -0
  26. package/lib/form/form-item.d.ts +22 -0
  27. package/lib/form/index.d.ts +1 -0
  28. package/lib/form/validators.d.ts +10 -0
  29. package/lib/hero-banner/hero-banner-actions.d.ts +4 -0
  30. package/lib/hero-banner/hero-banner.d.ts +18 -0
  31. package/lib/icons/icon-button.d.ts +27 -0
  32. package/lib/icons/icon.d.ts +37 -0
  33. package/lib/icons/index.d.ts +2 -0
  34. package/lib/input/input.d.ts +73 -0
  35. package/lib/microsite-header/microsite-header.d.ts +21 -0
  36. package/lib/modal/modal.d.ts +25 -0
  37. package/lib/notification/notification.d.ts +14 -35
  38. package/lib/page-block/page-block.d.ts +9 -0
  39. package/lib/radio-group/radio-group.d.ts +21 -44
  40. package/lib/radio-group/radio.d.ts +27 -0
  41. package/lib/skeleton/skeleton.d.ts +19 -0
  42. package/lib/spinner/spinner.d.ts +26 -0
  43. package/lib/textarea/textarea.d.ts +30 -0
  44. package/package.json +5 -4
  45. package/react-components.esm.js +755 -2355
  46. package/react-components.umd.js +815 -2397
  47. package/experimental/badge/badge.component.d.ts +0 -8
  48. package/experimental/common.d.ts +0 -3
  49. package/experimental/element-loader/element-loader.d.ts +0 -18
  50. package/experimental/form/form.actions.component.d.ts +0 -3
  51. package/experimental/form/form.component.d.ts +0 -10
  52. package/experimental/form/form.item.component.d.ts +0 -7
  53. package/experimental/form/formFieldValidator.d.ts +0 -4
  54. package/experimental/icons/icons.d.ts +0 -13
  55. package/experimental/input/input.component.d.ts +0 -15
  56. package/experimental/modal/modal.component.d.ts +0 -44
  57. package/experimental/scrollable/scrollable.component.d.ts +0 -12
  58. package/experimental/skeleton/skeleton-element.d.ts +0 -8
  59. package/experimental/skeleton/skeleton-grid-column.d.ts +0 -9
  60. package/experimental/skeleton/skeleton-image-content.d.ts +0 -9
  61. package/experimental/skeleton/skeleton-titled-content.d.ts +0 -9
  62. package/lib/card/card.component.d.ts +0 -26
  63. package/lib/card-group/card.group.component.d.ts +0 -24
  64. package/lib/dropdown/dropdown.component.d.ts +0 -59
  65. package/lib/dropdown/dropdown.context.d.ts +0 -17
  66. package/lib/dropdown/option/option.component.d.ts +0 -10
  67. package/lib/dropdown/option-group/option-group.component.d.ts +0 -6
  68. package/lib/header/header.d.ts +0 -10
  69. package/lib/hero-banner/content/hero-banner-content.component.d.ts +0 -7
  70. package/lib/hero-banner/hero-banner.component.d.ts +0 -11
  71. package/lib/hero-banner/link/hero-banner-link.component.d.ts +0 -8
  72. package/lib/microsite-logo/microsite-logo.d.ts +0 -8
  73. package/lib/page-loader/page-loader.d.ts +0 -43
  74. package/lib/radio-group/radio/radio.d.ts +0 -17
  75. package/lib/radio-group/radio-group.context.d.ts +0 -6
package/index.d.ts CHANGED
@@ -1,16 +1,33 @@
1
- import GoACallout from './lib/callout/callout';
2
- import GoANotification from './lib/notification/notification';
3
- import GoAButton from './lib/button/button';
4
- import GoAHeader from './lib/header/header';
5
- import GoAMicrositeLogo from './lib/microsite-logo/microsite-logo';
6
- import GoAHeroBanner from './lib/hero-banner/hero-banner.component';
7
- import GoAHeroBannerContent from './lib/hero-banner/content/hero-banner-content.component';
8
- import GoAHeroBannerLink from './lib/hero-banner/link/hero-banner-link.component';
9
- import GoACard from './lib/card/card.component';
10
- import { GoARadioGroup, GoARadio } from './lib/radio-group/radio-group';
11
- import GoACardGroup from './lib/card-group/card.group.component';
12
- import { GoADropdown, GoAOption, GoAOptionGroup } from './lib/dropdown/dropdown.component';
13
- import GoACheckbox from './lib/checkbox/checkbox';
14
- import GoAPageLoader from './lib/page-loader/page-loader';
15
- import { GoABadge, GoAElementLoader, GoASkeletonContent, GoASkeletonGridColumnContent, GoASkeletonImageContent, GoAFormItem, GoAFormActions, GoAForm, GoAInput } from './experimental';
16
- export { GoABadge, GoAPageLoader, GoAElementLoader, GoASkeletonContent, GoASkeletonGridColumnContent, GoASkeletonImageContent, GoAFormItem, GoAFormActions, GoAForm, GoAInput, GoANotification, GoARadioGroup, GoARadio, GoACallout, GoAButton, GoAHeader, GoAMicrositeLogo, GoAHeroBanner, GoAHeroBannerContent, GoAHeroBannerLink, GoACard, GoACardGroup, GoADropdown, GoAOption, GoAOptionGroup, GoACheckbox, };
1
+ /**
2
+ * IMPORTANT: Do NOT export experimental components in this file.
3
+ */
4
+ import '@abgov/web-components';
5
+ import { GoAAppHeader } from './lib/app-header/app-header';
6
+ import { GoABadge, GoAInfoBadge, GoAEmergencyBadge, GoASuccessBadge, GoAWarningBadge } from './lib/badge/badge';
7
+ import { GoAButton } from './lib/button/button';
8
+ import { GoAButtonGroup } from './lib/button-group/button-group';
9
+ import { GoACallout } from './lib/callout/callout';
10
+ import { GoACheckbox } from './lib/checkbox/checkbox';
11
+ import { GoAChip } from './lib/chip/chip';
12
+ import { GoACircularProgress } from './lib/circular-progress/circular-progress';
13
+ import { GoAContainer } from './lib/container/container';
14
+ import { GoADropdown, GoADropdownOption } from './lib/dropdown/dropdown';
15
+ import { GoAFlexRow } from './lib/flex';
16
+ import { GoAFormItem } from './lib/form';
17
+ import { GoAHeroBanner } from './lib/hero-banner/hero-banner';
18
+ import { GoAHeroBannerActions } from './lib/hero-banner/hero-banner-actions';
19
+ import { GoAIcon, GoAIconButton } from './lib/icons';
20
+ import { GoAInput, GoAInputText, GoAInputPassword, GoAInputDate, GoAInputTime, GoAInputDateTime, GoAInputEmail, GoAInputSearch, GoAInputUrl, GoAInputTel, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputRange } from './lib/input/input';
21
+ import { GoAMicrositeHeader } from './lib/microsite-header/microsite-header';
22
+ import { GoAModal } from './lib/modal/modal';
23
+ import { GoANotification } from './lib/notification/notification';
24
+ import { GoAPageBlock } from './lib/page-block/page-block';
25
+ import { GoARadioGroup, GoARadioItem } from './lib/radio-group/radio-group';
26
+ import { GoASkeleton } from './lib/skeleton/skeleton';
27
+ import { GoASpinner } from './lib/spinner/spinner';
28
+ import { GoATextArea } from './lib/textarea/textarea';
29
+ import type { GoAIconType } from './lib/icons';
30
+ import type { GoABadgeType } from './lib/badge/badge';
31
+ export type { GoAIconType };
32
+ export type { GoABadgeType };
33
+ export { GoAAppHeader, GoABadge, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoAChip, GoACircularProgress, GoAContainer, GoADropdown, GoADropdownOption, GoAEmergencyBadge, GoAFlexRow, GoAFormItem, GoAHeroBanner, GoAHeroBannerActions, GoAIcon, GoAIconButton, GoAInfoBadge, GoAInput, GoAInputDate, GoAInputDateTime, GoAInputEmail, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputPassword, GoAInputRange, GoAInputSearch, GoAInputTel, GoAInputText, GoAInputTime, GoAInputUrl, GoAMicrositeHeader, GoAModal, GoANotification, GoAPageBlock, GoARadioGroup, GoARadioItem, GoASkeleton, GoASpinner, GoASuccessBadge, GoATextArea, GoAWarningBadge, };
@@ -0,0 +1,18 @@
1
+ import React, { FC } from 'react';
2
+ interface WCProps {
3
+ title: string;
4
+ url?: string;
5
+ }
6
+ declare global {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ 'goa-app-header': WCProps & React.HTMLAttributes<HTMLElement>;
10
+ }
11
+ }
12
+ }
13
+ interface Props {
14
+ title: string;
15
+ url?: string;
16
+ }
17
+ export declare const GoAAppHeader: FC<Props>;
18
+ export default GoAAppHeader;
@@ -0,0 +1,28 @@
1
+ import React, { FC } from 'react';
2
+ import { GoAIconType } from '../icons';
3
+ export declare type GoABadgeType = 'information' | 'success' | 'warning' | 'emergency' | 'dark' | 'midtone' | 'light' | 'inactive';
4
+ interface GoABadgeProps {
5
+ type: GoABadgeType;
6
+ icon?: GoAIconType;
7
+ content?: string;
8
+ testId?: string;
9
+ }
10
+ interface WCProps {
11
+ type: GoABadgeType;
12
+ icon?: GoAIconType;
13
+ content?: string;
14
+ testid?: string;
15
+ }
16
+ declare global {
17
+ namespace JSX {
18
+ interface IntrinsicElements {
19
+ 'goa-badge': WCProps & React.HTMLAttributes<HTMLElement>;
20
+ }
21
+ }
22
+ }
23
+ export declare const GoABadge: FC<GoABadgeProps>;
24
+ export declare const GoAInfoBadge: FC<GoABadgeProps>;
25
+ export declare const GoASuccessBadge: FC<GoABadgeProps>;
26
+ export declare const GoAWarningBadge: FC<GoABadgeProps>;
27
+ export declare const GoAEmergencyBadge: FC<GoABadgeProps>;
28
+ export {};
@@ -1,39 +1,31 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import './button.scss';
4
- declare type ButtonType = 'primary' | 'secondary' | 'tertiary';
5
- declare type ButtonSize = 'small' | 'normal';
1
+ import React, { FC, ReactNode } from 'react';
2
+ import './button.css';
3
+ export declare type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'get-started';
4
+ export declare type ButtonSize = 'compact' | 'normal';
5
+ export declare type ButtonVariant = 'default' | 'danger';
6
+ interface WCProps {
7
+ type?: ButtonType;
8
+ size?: ButtonSize;
9
+ variant?: ButtonVariant;
10
+ disabled?: boolean;
11
+ title?: string;
12
+ ref: React.RefObject<HTMLElement>;
13
+ }
14
+ declare global {
15
+ namespace JSX {
16
+ interface IntrinsicElements {
17
+ 'goa-button': WCProps & React.HTMLAttributes<HTMLElement>;
18
+ }
19
+ }
20
+ }
6
21
  declare type ButtonProps = {
7
- /**
8
- * Type of button
9
- */
10
- buttonType?: ButtonType;
11
- /**
12
- * Size of button
13
- */
14
- buttonSize?: ButtonSize;
15
- /**
16
- * Mouseover popup description
17
- */
22
+ type?: ButtonType;
18
23
  title?: string;
19
- /**
20
- * Action to take on button click
21
- */
22
- onClick?: React.MouseEventHandler<HTMLButtonElement>;
23
- /**
24
- * Button content (between button tags)
25
- */
26
- children?: React.ReactNode;
27
- [key: string]: any;
28
- };
29
- export declare const GoAButton: {
30
- ({ buttonType, buttonSize, title, children, onClick, ...props }: ButtonProps): JSX.Element;
31
- propTypes: {
32
- buttonSize: PropTypes.Requireable<string>;
33
- buttonType: PropTypes.Requireable<string>;
34
- title: PropTypes.Requireable<string>;
35
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
36
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
37
- };
24
+ size?: ButtonSize;
25
+ variant?: ButtonVariant;
26
+ disabled?: boolean;
27
+ onClick: (e: any) => void;
28
+ children: ReactNode;
38
29
  };
30
+ export declare const GoAButton: FC<ButtonProps>;
39
31
  export default GoAButton;
@@ -0,0 +1,18 @@
1
+ import React, { FC } from 'react';
2
+ import './button-group.css';
3
+ declare type Alignment = "start" | "end";
4
+ interface WCProps {
5
+ alignment?: Alignment;
6
+ }
7
+ declare global {
8
+ namespace JSX {
9
+ interface IntrinsicElements {
10
+ 'goa-button-group': WCProps & React.HTMLAttributes<HTMLElement>;
11
+ }
12
+ }
13
+ }
14
+ declare type ButtonGroupProps = {
15
+ alignment: Alignment;
16
+ };
17
+ export declare const GoAButtonGroup: FC<ButtonGroupProps>;
18
+ export default GoAButtonGroup;
@@ -1,29 +1,20 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import '../../theme.scss';
4
- import '../../../../core-css/src/lib/styles/callout/callout.scss';
5
- declare type calloutType = "important" | 'information' | 'event' | 'success' | 'emergency';
2
+ declare type CalloutType = "important" | 'information' | 'event' | 'success' | 'emergency';
3
+ interface WCProps {
4
+ title?: string;
5
+ type?: CalloutType;
6
+ }
7
+ declare global {
8
+ namespace JSX {
9
+ interface IntrinsicElements {
10
+ 'goa-callout': WCProps & React.HTMLAttributes<HTMLElement>;
11
+ }
12
+ }
13
+ }
6
14
  export interface CalloutProps {
7
- /**
8
- * Callout title.
9
- */
10
15
  title?: string;
11
- /**
12
- * The type of the callout, changes stylings and icons.
13
- */
14
- type?: calloutType;
15
- /**
16
- * Callout description
17
- */
18
- content?: string;
16
+ type?: CalloutType;
19
17
  children?: React.ReactNode;
20
18
  }
21
- export declare const GoACallout: {
22
- ({ title, type, content, children, ...props }: CalloutProps): JSX.Element;
23
- propTypes: {
24
- title: PropTypes.Requireable<string>;
25
- type: PropTypes.Validator<string>;
26
- content: PropTypes.Requireable<string>;
27
- };
28
- };
19
+ export declare const GoACallout: ({ title, type, children }: CalloutProps) => JSX.Element;
29
20
  export default GoACallout;
@@ -0,0 +1,16 @@
1
+ import React, { FC } from 'react';
2
+ interface WCProps {
3
+ children: React.ReactNode;
4
+ }
5
+ declare global {
6
+ namespace JSX {
7
+ interface IntrinsicElements {
8
+ 'goa-card-actions': WCProps & React.HTMLAttributes<HTMLElement>;
9
+ }
10
+ }
11
+ }
12
+ interface Props {
13
+ children?: React.ReactNode;
14
+ }
15
+ export declare const GoACardActions: FC<Props>;
16
+ export default GoACardActions;
@@ -0,0 +1,13 @@
1
+ import React, { FC } from 'react';
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ 'goa-card-content': React.HTMLAttributes<HTMLElement>;
6
+ }
7
+ }
8
+ }
9
+ interface Props {
10
+ children?: React.ReactNode;
11
+ }
12
+ export declare const GoACardContent: FC<Props>;
13
+ export default GoACardContent;
@@ -0,0 +1,16 @@
1
+ import React, { FC } from 'react';
2
+ interface WCProps {
3
+ children: React.ReactNode;
4
+ }
5
+ declare global {
6
+ namespace JSX {
7
+ interface IntrinsicElements {
8
+ 'goa-card-group': WCProps & React.HTMLAttributes<HTMLElement>;
9
+ }
10
+ }
11
+ }
12
+ interface Props {
13
+ children?: React.ReactNode;
14
+ }
15
+ export declare const GoACardGroup: FC<Props>;
16
+ export default GoACardGroup;
@@ -0,0 +1,18 @@
1
+ import React, { FC } from 'react';
2
+ interface WCProps {
3
+ src: string;
4
+ height: string;
5
+ }
6
+ declare global {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ 'goa-card-image': WCProps & React.HTMLAttributes<HTMLElement>;
10
+ }
11
+ }
12
+ }
13
+ interface Props {
14
+ src: string;
15
+ height: string;
16
+ }
17
+ export declare const GoACardImage: FC<Props>;
18
+ export default GoACardImage;
@@ -0,0 +1,18 @@
1
+ import React, { FC } from 'react';
2
+ interface WCProps {
3
+ elevation: number;
4
+ children: React.ReactNode;
5
+ }
6
+ declare global {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ 'goa-card': WCProps & React.HTMLAttributes<HTMLElement>;
10
+ }
11
+ }
12
+ }
13
+ interface Props {
14
+ elevation: number;
15
+ children?: React.ReactNode;
16
+ }
17
+ export declare const GoACard: FC<Props>;
18
+ 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';
@@ -1,40 +1,31 @@
1
- import React from 'react';
2
- import './checkbox.scss';
3
- declare type LabelPosition = "before" | "after";
4
- export interface CheckboxProps {
5
- /**
6
- * Boolean indicating whether or not the checkbox is checked/selected.
7
- */
1
+ import React, { FC } from 'react';
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ 'goa-checkbox': CheckboxProps & React.HTMLAttributes<HTMLElement>;
6
+ }
7
+ }
8
+ }
9
+ interface CheckboxProps {
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
+ }
19
+ export interface Props {
20
+ id?: string;
21
+ name: string;
8
22
  checked?: boolean;
9
- /**
10
- * Boolean indicating whether or not the checkbox is required.
11
- */
12
- required?: boolean;
13
- /**
14
- * Boolean indicating whether or not the checkbox is disabled.
15
- */
16
23
  disabled?: boolean;
17
- /**
18
- * Boolean indicating whether or not the checkbox should display as indeterminate (i.e. it has associated 'child' checkboxes, some of which are selected)
19
- */
20
- indeterminate?: boolean;
21
- /**
22
- * The position to display the label/text for the checkbox. Valid values are before and after.
23
- */
24
- labelPosition?: LabelPosition;
25
- /**
26
- * The content of the checkbox label.
27
- */
28
- content?: string;
29
- /**
30
- * The value of the checkbox.
31
- */
32
- value?: string;
33
- children?: React.ReactNode;
34
- /**
35
- * Callback which returns whether button is checked.
36
- */
37
- selectionChange?: (value: boolean) => void;
24
+ error?: boolean;
25
+ text?: string;
26
+ value?: string | number | boolean;
27
+ testId?: string;
28
+ onChange?: (name: string, checked: boolean, value: string) => void;
38
29
  }
39
- export declare const GoACheckbox: ({ checked, required, disabled, indeterminate, labelPosition, value, content, children, selectionChange }: CheckboxProps) => JSX.Element;
30
+ export declare const GoACheckbox: FC<Props>;
40
31
  export default GoACheckbox;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ interface WCProps {
3
+ ref: React.RefObject<HTMLElement>;
4
+ leadingicon: string;
5
+ error: boolean;
6
+ deletable: boolean;
7
+ content: string;
8
+ }
9
+ declare global {
10
+ namespace JSX {
11
+ interface IntrinsicElements {
12
+ 'goa-chip': WCProps & React.HTMLAttributes<HTMLElement>;
13
+ }
14
+ }
15
+ }
16
+ export interface Props {
17
+ onDeleteIconClick?: () => void;
18
+ leadingIcon?: string;
19
+ error?: boolean;
20
+ content: string;
21
+ }
22
+ export declare const GoAChip: ({ leadingIcon, error, content, onDeleteIconClick }: Props) => JSX.Element;
23
+ export default GoAChip;
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ export declare type CircularProgressType = 'infinite' | 'progress';
3
+ export declare type CircularProgressVariant = "fullscreen" | "inline";
4
+ export declare type CircularProgressSize = "small" | "large";
5
+ interface WCProps {
6
+ type?: CircularProgressType;
7
+ variant?: CircularProgressVariant;
8
+ size?: CircularProgressSize;
9
+ message?: string;
10
+ visible?: string;
11
+ progress?: number;
12
+ }
13
+ declare global {
14
+ namespace JSX {
15
+ interface IntrinsicElements {
16
+ 'goa-circular-progress': WCProps & React.HTMLAttributes<HTMLElement>;
17
+ }
18
+ }
19
+ }
20
+ export interface CircularProgressProps {
21
+ type?: CircularProgressType;
22
+ variant?: CircularProgressVariant;
23
+ size?: CircularProgressSize;
24
+ message?: string;
25
+ visible?: boolean;
26
+ progress?: number;
27
+ }
28
+ export declare const GoACircularProgress: ({ type, visible, message, progress, variant, size }: CircularProgressProps) => JSX.Element;
29
+ export default GoACircularProgress;
@@ -0,0 +1,23 @@
1
+ import React, { FC, ReactNode } from 'react';
2
+ declare type ContainerVariant = 'primary' | 'info' | 'error' | 'success' | 'warning' | 'default';
3
+ declare type HeadingSize = 'large' | 'small' | 'none';
4
+ interface WCProps {
5
+ variant: ContainerVariant;
6
+ headingsize: HeadingSize;
7
+ }
8
+ declare global {
9
+ namespace JSX {
10
+ interface IntrinsicElements {
11
+ 'goa-container': WCProps & React.HTMLAttributes<HTMLElement>;
12
+ }
13
+ }
14
+ }
15
+ interface Props {
16
+ headingSize: HeadingSize;
17
+ variant?: ContainerVariant;
18
+ title?: ReactNode;
19
+ actions?: ReactNode;
20
+ children: ReactNode;
21
+ }
22
+ export declare const GoAContainer: FC<Props>;
23
+ export default GoAContainer;
@@ -0,0 +1,21 @@
1
+ import React, { FC } from "react";
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ 'goa-dropdown-item': DropdownOptionProps & React.HTMLAttributes<HTMLElement>;
6
+ }
7
+ }
8
+ }
9
+ interface DropdownOptionProps {
10
+ name: string;
11
+ value: string;
12
+ label?: string;
13
+ }
14
+ interface Props {
15
+ name: string;
16
+ value: string;
17
+ label?: string;
18
+ testId?: string;
19
+ }
20
+ export declare const GoADropdownOption: FC<Props>;
21
+ export default GoADropdownOption;
@@ -0,0 +1,37 @@
1
+ import React, { FC } from "react";
2
+ import { GoAIconType } from "../icons";
3
+ export * from './dropdown-option';
4
+ interface WCProps {
5
+ ref: React.MutableRefObject<HTMLElement | null>;
6
+ name: string;
7
+ values: string;
8
+ leadingicon?: string;
9
+ maxheight?: number;
10
+ placeholder?: string;
11
+ filterable?: boolean;
12
+ disabled?: boolean;
13
+ error?: boolean;
14
+ multiselect?: boolean;
15
+ }
16
+ declare global {
17
+ namespace JSX {
18
+ interface IntrinsicElements {
19
+ 'goa-dropdown': WCProps & React.HTMLAttributes<HTMLElement>;
20
+ }
21
+ }
22
+ }
23
+ interface Props {
24
+ name: string;
25
+ values: string[];
26
+ onChange: (name: string, values: string[]) => void;
27
+ disabled?: boolean;
28
+ filterable?: boolean;
29
+ leadingIcon?: GoAIconType;
30
+ maxHeight?: number;
31
+ error?: boolean;
32
+ multiselect?: boolean;
33
+ placeholder?: string;
34
+ testId?: string;
35
+ }
36
+ export declare const GoADropdown: FC<Props>;
37
+ export default GoADropdown;
@@ -0,0 +1 @@
1
+ export { GoAFlexRow } from './row';
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ gap?: 'small' | 'medium' | 'large';
4
+ minWidth?: number | string;
5
+ }
6
+ export declare const GoAFlexRow: FC<Props>;
7
+ export default GoAFlexRow;
@@ -0,0 +1,22 @@
1
+ import React, { FC } from 'react';
2
+ interface WCProps {
3
+ label: string;
4
+ optional?: boolean;
5
+ error?: string;
6
+ helptext?: string;
7
+ }
8
+ declare global {
9
+ namespace JSX {
10
+ interface IntrinsicElements {
11
+ 'goa-form-item': WCProps & React.HTMLAttributes<HTMLElement>;
12
+ }
13
+ }
14
+ }
15
+ interface GoAFormItemProps {
16
+ label: string;
17
+ optional?: boolean;
18
+ error?: string;
19
+ helpText?: string;
20
+ }
21
+ export declare const GoAFormItem: FC<GoAFormItemProps>;
22
+ export default GoAFormItem;
@@ -0,0 +1 @@
1
+ export { GoAFormItem } from './form-item';
@@ -0,0 +1,10 @@
1
+ export declare type FormValidatorFn = (val: string) => [boolean, string];
2
+ export declare class FormValidator {
3
+ private items;
4
+ constructor();
5
+ add(fieldName: string, validators: FormValidatorFn[]): void;
6
+ validate(data: Record<string, string>): Record<string, string>;
7
+ }
8
+ export declare const requiredFieldValidator: FormValidatorFn;
9
+ export declare const emailFormatValidator: FormValidatorFn;
10
+ export declare const phoneNumberFormatValidator: FormValidatorFn;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ export declare type GoAHeroBannerActionsType = FC;
3
+ export declare const GoAHeroBannerActions: GoAHeroBannerActionsType;
4
+ export default GoAHeroBannerActions;
@@ -0,0 +1,18 @@
1
+ import React, { FC } from 'react';
2
+ interface WCProps {
3
+ title: string;
4
+ backgroundurl: string;
5
+ }
6
+ declare global {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ 'goa-hero-banner': WCProps & React.HTMLAttributes<HTMLElement>;
10
+ }
11
+ }
12
+ }
13
+ interface Props {
14
+ title: string;
15
+ backgroundUrl: string;
16
+ }
17
+ export declare const GoAHeroBanner: FC<Props>;
18
+ export default GoAHeroBanner;
@@ -0,0 +1,27 @@
1
+ import React, { FC } from 'react';
2
+ import { IconSize, GoAIconType, IconVariant } from './icon';
3
+ interface WCProps {
4
+ ref: React.RefObject<HTMLElement>;
5
+ type: GoAIconType;
6
+ size?: IconSize;
7
+ variant?: IconVariant;
8
+ title?: string;
9
+ disabled?: boolean;
10
+ }
11
+ declare global {
12
+ namespace JSX {
13
+ interface IntrinsicElements {
14
+ 'goa-icon-button': WCProps & React.HTMLAttributes<HTMLButtonElement>;
15
+ }
16
+ }
17
+ }
18
+ interface Props {
19
+ type: GoAIconType;
20
+ size?: IconSize;
21
+ variant?: IconVariant;
22
+ title?: string;
23
+ disabled?: boolean;
24
+ onClick: () => void;
25
+ }
26
+ export declare const GoAIconButton: FC<Props>;
27
+ export {};