@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
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ declare type GoAIconFilledType = `${GoAIconType}-${IconTheme}`;
3
+ interface IonIconProps {
4
+ name: GoAIconType | GoAIconFilledType;
5
+ }
6
+ interface IonIconElement extends HTMLElement {
7
+ }
8
+ declare global {
9
+ namespace JSX {
10
+ interface IntrinsicElements {
11
+ 'ion-icon': IonIconProps & React.HTMLAttributes<IonIconElement>;
12
+ }
13
+ }
14
+ }
15
+ declare global {
16
+ namespace JSX {
17
+ interface IntrinsicElements {
18
+ 'goa-icon': WCProps & React.HTMLAttributes<IonIconElement>;
19
+ }
20
+ }
21
+ }
22
+ export declare type GoAIconType = 'accessibility' | 'add-circle' | 'add' | 'airplane' | 'alarm' | 'albums' | 'alert-circle' | 'alert' | 'american-football' | 'analytics' | 'aperture' | 'apps' | 'archive' | 'arrow-back-circle' | 'arrow-back' | 'arrow-down-circle' | 'arrow-down' | 'arrow-forward-circle' | 'arrow-forward' | 'arrow-redo-circle' | 'arrow-redo' | 'arrow-undo-circle' | 'arrow-undo' | 'arrow-up-circle' | 'arrow-up' | 'at-circle' | 'at' | 'attach' | 'backspace' | 'bag-add' | 'bag-check' | 'bag-handle' | 'bag' | 'bag-remove' | 'balloon' | 'ban' | 'bandage' | 'bar-chart' | 'barbell' | 'barcode' | 'baseball' | 'basket' | 'basketball' | 'battery-charging' | 'battery-dead' | 'battery-full' | 'battery-half' | 'beaker' | 'bed' | 'beer' | 'bicycle' | 'bluetooth' | 'boat' | 'body' | 'bonfire' | 'book' | 'bookmark' | 'bookmarks' | 'bowling-ball' | 'briefcase' | 'browsers' | 'brush' | 'bug' | 'build' | 'bulb' | 'bus' | 'business' | 'cafe' | 'calculator' | 'calendar-clear' | 'calendar-number' | 'calendar' | 'call' | 'camera' | 'camera-reverse' | 'car' | 'car-sport' | 'card' | 'caret-back-circle' | 'caret-back' | 'caret-down-circle' | 'caret-down' | 'caret-forward-circle' | 'caret-forward' | 'caret-up-circle' | 'caret-up' | 'cart' | 'cash' | 'cellular' | 'chatbox-ellipses' | 'chatbox' | 'chatbubble-ellipses' | 'chatbubble' | 'chatbubbles' | 'checkbox' | 'checkmark-circle' | 'checkmark-done-circle' | 'checkmark-done' | 'checkmark' | 'chevron-back-circle' | 'chevron-back' | 'chevron-down-circle' | 'chevron-down' | 'chevron-forward-circle' | 'chevron-forward' | 'chevron-up-circle' | 'chevron-up' | 'clipboard' | 'close-circle' | 'close' | 'cloud-circle' | 'cloud-done' | 'cloud-download' | 'cloud-offline' | 'cloud' | 'cloud-upload' | 'cloudy-night' | 'cloudy' | 'code-download' | 'code' | 'code-slash' | 'code-working' | 'cog' | 'color-fill' | 'color-filter' | 'color-palette' | 'color-wand' | 'compass' | 'construct' | 'contract' | 'contrast' | 'copy' | 'create' | 'crop' | 'cube' | 'cut' | 'desktop' | 'diamond' | 'dice' | 'disc' | 'document-attach' | 'document-lock' | 'document' | 'document-text' | 'documents' | 'download' | 'duplicate' | 'ear' | 'earth' | 'easel' | 'egg' | 'ellipse' | 'ellipsis-horizontal-circle' | 'ellipsis-horizontal' | 'ellipsis-vertical-circle' | 'ellipsis-vertical' | 'enter' | 'exit' | 'expand' | 'extension-puzzle' | 'eye-off' | 'eye' | 'eyedrop' | 'fast-food' | 'female' | 'file-tray-full' | 'file-tray' | 'file-tray-stacked' | 'filenames.ps1' | 'film' | 'filter-circle' | 'filter' | 'finger-print' | 'fish' | 'fitness' | 'flag' | 'flame' | 'flash-off' | 'flash' | 'flashlight' | 'flask' | 'flower' | 'folder-open' | 'folder' | 'football' | 'footsteps' | 'funnel' | 'game-controller' | 'gift' | 'git-branch' | 'git-commit' | 'git-compare' | 'git-merge' | 'git-network' | 'git-pull-request' | 'glasses' | 'globe' | 'golf' | 'grid' | 'hammer' | 'hand-left' | 'hand-right' | 'happy' | 'hardware-chip' | 'headset' | 'heart-circle' | 'heart-dislike-circle' | 'heart-dislike' | 'heart-half' | 'heart' | 'help-buoy' | 'help-circle' | 'help' | 'home' | 'hourglass' | 'ice-cream' | 'id-card' | 'image' | 'images' | 'infinite' | 'information-circle' | 'information' | 'invert-mode' | 'journal' | 'key' | 'keypad' | 'language' | 'laptop' | 'layers' | 'leaf' | 'library' | 'link' | 'list-circle' | 'list' | 'locate' | 'location' | 'lock-closed' | 'lock-open' | 'log-in' | 'log-out' | 'magnet' | 'mail-open' | 'mail' | 'mail-unread' | 'male-female' | 'male' | 'man' | 'map' | 'medal' | 'medical' | 'medkit' | 'megaphone' | 'menu' | 'mic-circle' | 'mic-off-circle' | 'mic-off' | 'mic' | 'moon' | 'move' | 'musical-note' | 'musical-notes' | 'navigate-circle' | 'navigate' | 'newspaper' | 'notifications-circle' | 'notifications-off-circle' | 'notifications-off' | 'notifications' | 'nuclear' | 'nutrition' | 'open' | 'options' | 'paper-plane' | 'partly-sunny' | 'pause-circle' | 'pause' | 'paw' | 'pencil' | 'people-circle' | 'people' | 'person-add' | 'person-circle' | 'person' | 'person-remove' | 'phone-landscape' | 'phone-portrait' | 'pie-chart' | 'pin' | 'pint' | 'pizza' | 'planet' | 'play-back-circle' | 'play-back' | 'play-circle' | 'play-forward-circle' | 'play-forward' | 'play' | 'play-skip-back-circle' | 'play-skip-back' | 'play-skip-forward-circle' | 'play-skip-forward' | 'podium' | 'power' | 'pricetag' | 'pricetags' | 'print' | 'prism' | 'pulse' | 'push' | 'qr-code' | 'radio-button-off' | 'radio-button-on' | 'radio' | 'rainy' | 'reader' | 'receipt' | 'recording' | 'refresh-circle' | 'refresh' | 'reload-circle' | 'reload' | 'remove-circle' | 'remove' | 'reorder-four' | 'reorder-three' | 'reorder-two' | 'repeat' | 'resize' | 'restaurant' | 'return-down-back' | 'return-down-forward' | 'return-up-back' | 'return-up-forward' | 'ribbon' | 'rocket' | 'rose' | 'sad' | 'save' | 'scale' | 'scan-circle' | 'scan' | 'school' | 'search-circle' | 'search' | 'send' | 'server' | 'settings' | 'shapes' | 'share' | 'share-social' | 'shield-checkmark' | 'shield-half' | 'shield' | 'shirt' | 'shuffle' | 'skull' | 'snow' | 'sparkles' | 'speedometer' | 'square' | 'star-half' | 'star' | 'stats-chart' | 'stop-circle' | 'stop' | 'stopwatch' | 'storefront' | 'subway' | 'sunny' | 'swap-horizontal' | 'swap-vertical' | 'sync-circle' | 'sync' | 'tablet-landscape' | 'tablet-portrait' | 'telescope' | 'tennisball' | 'terminal' | 'text' | 'thermometer' | 'thumbs-down' | 'thumbs-up' | 'thunderstorm' | 'ticket' | 'time' | 'timer' | 'today' | 'toggle' | 'trail-sign' | 'train' | 'transgender' | 'trash-bin' | 'trash' | 'trending-down' | 'trending-up' | 'triangle' | 'trophy' | 'tv' | 'umbrella' | 'unlink' | 'videocam-off' | 'videocam' | 'volume-high' | 'volume-low' | 'volume-medium' | 'volume-mute' | 'volume-off' | 'walk' | 'wallet' | 'warning' | 'watch' | 'water' | 'wifi' | 'wine' | 'woman';
23
+ export declare type IconSize = 'small' | 'medium' | 'large' | 'xlarge';
24
+ export declare type IconVariant = 'primary' | 'secondary' | 'tertiary';
25
+ export declare type IconTheme = 'outline' | 'filled' | 'sharp';
26
+ interface Props {
27
+ type: GoAIconType;
28
+ size?: IconSize;
29
+ theme?: IconTheme;
30
+ }
31
+ interface WCProps {
32
+ type: GoAIconType;
33
+ theme: IconTheme;
34
+ size: IconSize;
35
+ }
36
+ export declare function GoAIcon({ type, theme, size }: Props): JSX.Element;
37
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './icon';
2
+ export * from './icon-button';
@@ -0,0 +1,73 @@
1
+ import React, { FC } from 'react';
2
+ import { GoAIconType } from '../..';
3
+ interface WCProps {
4
+ ref?: React.MutableRefObject<HTMLInputElement | null>;
5
+ type: string;
6
+ name: string;
7
+ value: string;
8
+ id?: string;
9
+ placeholder?: string;
10
+ leadingicon?: string;
11
+ trailingicon?: string;
12
+ variant: string;
13
+ disabled?: boolean;
14
+ error?: string;
15
+ readonly?: boolean;
16
+ focused?: boolean;
17
+ handletrailingiconclick: boolean;
18
+ testid?: string;
19
+ }
20
+ declare global {
21
+ namespace JSX {
22
+ interface IntrinsicElements {
23
+ 'goa-input': WCProps & React.HTMLAttributes<HTMLInputElement>;
24
+ }
25
+ }
26
+ }
27
+ export interface Props {
28
+ name: string;
29
+ value: string;
30
+ onChange: (name: string, value: string) => void;
31
+ id?: string;
32
+ disabled?: boolean;
33
+ placeholder?: string;
34
+ leadingIcon?: GoAIconType;
35
+ trailingIcon?: GoAIconType;
36
+ onTrailingIconClick?: () => void;
37
+ variant?: 'goa' | 'bare';
38
+ focused?: boolean;
39
+ readonly?: boolean;
40
+ error?: string;
41
+ testId?: string;
42
+ }
43
+ export declare const GoAInput: FC<Props & {
44
+ type: string;
45
+ }>;
46
+ export declare const GoAInputText: FC<Props>;
47
+ export declare const GoAInputPassword: FC<Props>;
48
+ export declare const GoAInputDate: FC<Props & {
49
+ min?: string;
50
+ max?: string;
51
+ }>;
52
+ export declare const GoAInputTime: FC<Props>;
53
+ export declare const GoAInputDateTime: FC<Props & {
54
+ min?: string;
55
+ max?: string;
56
+ }>;
57
+ export declare const GoAInputEmail: FC<Props>;
58
+ export declare const GoAInputSearch: FC<Props>;
59
+ export declare const GoAInputUrl: FC<Props>;
60
+ export declare const GoAInputTel: FC<Props>;
61
+ export declare const GoAInputFile: FC<Props>;
62
+ export declare const GoAInputMonth: FC<Props>;
63
+ export declare const GoAInputNumber: FC<Props & {
64
+ min?: number;
65
+ max?: number;
66
+ step?: number;
67
+ }>;
68
+ export declare const GoAInputRange: FC<Props & {
69
+ min?: number;
70
+ max?: number;
71
+ step?: number;
72
+ }>;
73
+ export default GoAInput;
@@ -0,0 +1,21 @@
1
+ import React, { FC } from 'react';
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ 'goa-microsite-header': WebComponentProps & React.HTMLAttributes<HTMLElement>;
6
+ }
7
+ }
8
+ }
9
+ export declare type ServiceLevel = 'alpha' | 'beta' | 'live';
10
+ interface WebComponentProps {
11
+ level: ServiceLevel;
12
+ version?: string;
13
+ feedbackurl?: string;
14
+ }
15
+ export interface HeaderProps {
16
+ level: ServiceLevel;
17
+ version?: string;
18
+ feedbackUrl?: string;
19
+ }
20
+ export declare const GoAMicrositeHeader: FC<HeaderProps>;
21
+ export default GoAMicrositeHeader;
@@ -0,0 +1,25 @@
1
+ import React, { FC } from 'react';
2
+ interface WCProps {
3
+ ref: React.RefObject<HTMLElement>;
4
+ heading?: string;
5
+ open?: boolean;
6
+ width?: string;
7
+ closable?: boolean;
8
+ scrollable?: boolean;
9
+ }
10
+ declare global {
11
+ namespace JSX {
12
+ interface IntrinsicElements {
13
+ 'goa-modal': WCProps & React.HTMLAttributes<HTMLElement>;
14
+ }
15
+ }
16
+ }
17
+ interface Props {
18
+ heading?: string;
19
+ width?: string;
20
+ actions?: React.ReactElement;
21
+ onClose?: () => void;
22
+ open?: boolean;
23
+ }
24
+ export declare const GoAModal: FC<Props>;
25
+ export default GoAModal;
@@ -1,39 +1,18 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import '../../theme.scss';
4
- import '../../../../core-css/src/lib/styles/notification/notification.scss';
5
- import '../../../../core-css/src/lib/styles/notification-banner/notification-banner.scss';
6
- declare type notificationType = "important" | 'information' | 'event' | 'emergency';
7
- export interface NotificationProps {
8
- /**
9
- * The type of the notification, changes stylings and icons.
10
- */
11
- type?: notificationType;
12
- /**
13
- * Notification message
14
- */
15
- message?: string;
16
- /**
17
- * Hidden title message
18
- */
19
- title?: string;
20
- /**
21
- * Optional link for notification, if no link is provided notification will not contain anchor.
22
- */
23
- notificationUrl?: string;
24
- /**
25
- * Boolean: can this notification be closed?
26
- */
27
- isDismissable?: boolean;
2
+ declare type NotificationType = "important" | 'information' | 'event' | 'emergency';
3
+ interface WCProps {
4
+ type: NotificationType;
5
+ }
6
+ declare global {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ 'goa-notification': WCProps & React.HTMLAttributes<HTMLButtonElement>;
10
+ }
11
+ }
12
+ }
13
+ export interface Props {
14
+ type?: NotificationType;
28
15
  children?: React.ReactNode;
29
- onDismiss?: () => void;
30
16
  }
31
- export declare const GoANotification: {
32
- ({ title, type, message, notificationUrl, isDismissable, children, onDismiss, ...props }: NotificationProps): JSX.Element;
33
- propTypes: {
34
- title: PropTypes.Requireable<string>;
35
- type: PropTypes.Validator<string>;
36
- content: PropTypes.Requireable<string>;
37
- };
38
- };
17
+ export declare const GoANotification: ({ type, children }: Props) => JSX.Element;
39
18
  export default GoANotification;
@@ -0,0 +1,9 @@
1
+ import React, { FC } from 'react';
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ 'goa-page-block': React.HTMLAttributes<HTMLElement>;
6
+ }
7
+ }
8
+ }
9
+ export declare const GoAPageBlock: FC;
@@ -1,51 +1,28 @@
1
- import React, { ReactNode, FC } from 'react';
2
- import { Data as RadioItem, LabelPosition } from './radio/radio';
3
- import './radio-group.scss';
4
- export * from './radio/radio';
1
+ import React, { FC } from 'react';
2
+ export * from './radio';
3
+ interface RadioGroupProps {
4
+ ref: React.RefObject<HTMLElement>;
5
+ name: string;
6
+ value?: string;
7
+ orientation: string;
8
+ disabled: boolean;
9
+ error: boolean;
10
+ }
11
+ declare global {
12
+ namespace JSX {
13
+ interface IntrinsicElements {
14
+ 'goa-radio-group': RadioGroupProps & React.HTMLAttributes<HTMLElement>;
15
+ }
16
+ }
17
+ }
5
18
  interface Props {
6
- children?: ReactNode;
7
- /**
8
- * Name of the form value
9
- */
10
19
  name: string;
11
- /**
12
- * Help text of the radio item
13
- */
14
- helperText?: string;
15
- /**
16
- * List of radio buttons to select
17
- */
18
- items?: RadioItem[];
19
- /**
20
- * Is the radio button selection required.
21
- */
22
- required?: boolean;
23
- /**
24
- * Error messages
25
- */
26
- requiredErrorMessage?: string;
27
- /**
28
- * Title of the radio item
29
- */
30
- title?: string;
31
- /**
32
- * Initial data value
33
- */
34
20
  value?: string;
35
- /**
36
- * Where is the label positioned
37
- */
38
- labelPosition?: LabelPosition;
39
- /**
40
- * Disable radio buttons
41
- */
42
21
  disabled?: boolean;
43
- /**
44
- * Callback function containing the newly selected value
45
- */
46
- onChange: (value: string) => void;
22
+ orientation?: 'horizontal' | 'vertical';
23
+ testId?: string;
24
+ error?: boolean;
25
+ onChange: (name: string, value: string) => void;
47
26
  }
48
- export declare const RadioContext: React.Context<string>;
49
- export declare const RadioUpdateContext: React.Context<(value: string) => void>;
50
27
  export declare const GoARadioGroup: FC<Props>;
51
28
  export default GoARadioGroup;
@@ -0,0 +1,27 @@
1
+ import React, { FC } from 'react';
2
+ interface RadioItemProps {
3
+ name: string;
4
+ value: string;
5
+ label?: string;
6
+ disabled?: boolean;
7
+ checked?: boolean;
8
+ error?: boolean;
9
+ }
10
+ declare global {
11
+ namespace JSX {
12
+ interface IntrinsicElements {
13
+ 'goa-radio-item': RadioItemProps & React.HTMLAttributes<HTMLElement>;
14
+ }
15
+ }
16
+ }
17
+ interface Props {
18
+ value: string;
19
+ label?: string;
20
+ name: string;
21
+ disabled?: boolean;
22
+ checked?: boolean;
23
+ error?: boolean;
24
+ testId?: string;
25
+ }
26
+ export declare const GoARadioItem: FC<Props>;
27
+ export default GoARadioItem;
@@ -0,0 +1,19 @@
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;
5
+ type: SkeletonType;
6
+ }
7
+ declare global {
8
+ namespace JSX {
9
+ interface IntrinsicElements {
10
+ 'goa-skeleton': WCProps & React.HTMLAttributes<HTMLElement>;
11
+ }
12
+ }
13
+ }
14
+ export interface SkeletonProps {
15
+ type: SkeletonType;
16
+ size?: number;
17
+ }
18
+ export declare const GoASkeleton: ({ type, size }: SkeletonProps) => JSX.Element;
19
+ export default GoASkeleton;
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ export declare type SpinnerType = "infinite" | "progress";
3
+ export declare type SpinnerSize = "small" | "medium" | "large" | "xlarge";
4
+ interface WCProps {
5
+ size: SpinnerSize;
6
+ type: SpinnerType;
7
+ invert?: boolean;
8
+ progress?: number;
9
+ testid?: string;
10
+ }
11
+ declare global {
12
+ namespace JSX {
13
+ interface IntrinsicElements {
14
+ 'goa-spinner': WCProps & React.HTMLAttributes<HTMLElement>;
15
+ }
16
+ }
17
+ }
18
+ export interface SpinnerProps {
19
+ type: SpinnerType;
20
+ size: SpinnerSize;
21
+ invert?: boolean;
22
+ progress?: number;
23
+ testId?: string;
24
+ }
25
+ export declare const GoASpinner: ({ type, size, progress, invert, testId }: SpinnerProps) => JSX.Element;
26
+ export default GoASpinner;
@@ -0,0 +1,30 @@
1
+ import React, { FC } from 'react';
2
+ interface WCProps {
3
+ ref: React.Ref<HTMLTextAreaElement>;
4
+ name: string;
5
+ value: string;
6
+ placeholder?: string;
7
+ rows?: number;
8
+ error: boolean;
9
+ disabled: boolean;
10
+ }
11
+ declare global {
12
+ namespace JSX {
13
+ interface IntrinsicElements {
14
+ 'goa-textarea': WCProps & React.HTMLAttributes<HTMLElement>;
15
+ }
16
+ }
17
+ }
18
+ interface Props {
19
+ name: string;
20
+ value: string;
21
+ id?: string;
22
+ placeholder?: string;
23
+ rows?: number;
24
+ error: boolean;
25
+ disabled: boolean;
26
+ testId: string;
27
+ onChange: (name: string, value: string) => void;
28
+ }
29
+ export declare const GoATextArea: FC<Props>;
30
+ export default GoATextArea;
package/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "3.4.0-beta.8",
4
- "description": "Government of Alberta - DIO - Shared UI components for React JS",
3
+ "version": "4.0.0-alpha.2",
4
+ "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
7
7
  },
8
+ "license": "Apache-2.0",
8
9
  "keywords": [
9
10
  "GoA",
10
11
  "template",
11
- "react"
12
+ "React"
12
13
  ],
13
14
  "repository": {
14
15
  "type": "git",
@@ -16,7 +17,7 @@
16
17
  "directory": "libs/react-components"
17
18
  },
18
19
  "dependencies": {
19
- "classnames": "^2.3.1"
20
+ "@abgov/web-components": "^1.0.0-alpha.23"
20
21
  },
21
22
  "peerDependencies": {
22
23
  "react": "^17.0.2",