@abgov/react-components 4.0.0-alpha.9 → 4.1.0

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 (52) hide show
  1. package/README.md +16 -44
  2. package/experimental/package.json +2 -1
  3. package/index.d.ts +34 -36
  4. package/lib/app-header/app-header.d.ts +7 -4
  5. package/lib/badge/badge.d.ts +6 -7
  6. package/lib/button/button.d.ts +9 -11
  7. package/lib/button-group/button-group.d.ts +9 -5
  8. package/lib/callout/callout.d.ts +6 -6
  9. package/lib/card/card-actions.d.ts +2 -2
  10. package/lib/card/card-content.d.ts +2 -2
  11. package/lib/card/card-group.d.ts +2 -2
  12. package/lib/card/card-image.d.ts +2 -2
  13. package/lib/card/card.d.ts +2 -2
  14. package/lib/card/index.d.ts +5 -5
  15. package/lib/checkbox/checkbox.d.ts +5 -4
  16. package/lib/chip/chip.d.ts +7 -4
  17. package/lib/circular-progress/circular-progress.d.ts +3 -6
  18. package/lib/container/container.d.ts +12 -9
  19. package/lib/divider/divider.d.ts +17 -0
  20. package/lib/dropdown/dropdown-option.d.ts +1 -1
  21. package/lib/dropdown/dropdown.d.ts +11 -7
  22. package/lib/flex-column/flex-column.d.ts +17 -0
  23. package/lib/{flex/row.d.ts → flex-row/flex-row.d.ts} +5 -4
  24. package/lib/footer/footer.d.ts +17 -0
  25. package/lib/footer-meta-section/footer-meta-section.d.ts +13 -0
  26. package/lib/footer-nav-section/footer-nav-section.d.ts +19 -0
  27. package/lib/form/form-item.d.ts +6 -4
  28. package/lib/form/index.d.ts +1 -1
  29. package/lib/hero-banner/hero-banner-actions.d.ts +5 -3
  30. package/lib/hero-banner/hero-banner.d.ts +5 -4
  31. package/lib/icons/icon-button.d.ts +8 -6
  32. package/lib/icons/icon.d.ts +8 -8
  33. package/lib/icons/index.d.ts +2 -2
  34. package/lib/input/input.d.ts +53 -37
  35. package/lib/microsite-header/microsite-header.d.ts +5 -5
  36. package/lib/modal/modal.d.ts +10 -4
  37. package/lib/notification/notification.d.ts +4 -4
  38. package/lib/one-column-layout/one-column-layout.d.ts +13 -0
  39. package/lib/page-block/page-block.d.ts +10 -3
  40. package/lib/radio-group/radio-group.d.ts +5 -4
  41. package/lib/radio-group/radio.d.ts +3 -2
  42. package/lib/skeleton/skeleton.d.ts +10 -5
  43. package/lib/spinner/spinner.d.ts +3 -3
  44. package/lib/textarea/textarea.d.ts +4 -2
  45. package/lib/two-column-layout/two-column-layout.d.ts +22 -0
  46. package/package.json +6 -6
  47. package/react-components.esm.js +14282 -167
  48. package/react-components.umd.js +15083 -921
  49. package/lib/app-footer/app-footer.d.ts +0 -26
  50. package/lib/app-footer/meta-link.d.ts +0 -20
  51. package/lib/app-footer/navigation-link.d.ts +0 -22
  52. package/lib/flex/index.d.ts +0 -1
@@ -1,16 +1,17 @@
1
1
  import React, { FC } from "react";
2
2
  interface WCProps {
3
- gap: 'small' | 'medium' | 'large';
3
+ gap?: "small" | "medium" | "large";
4
4
  }
5
5
  declare global {
6
6
  namespace JSX {
7
7
  interface IntrinsicElements {
8
- 'goa-flex-row': WCProps & React.HTMLAttributes<HTMLElement>;
8
+ "goa-flex-row": WCProps & React.HTMLAttributes<HTMLElement>;
9
9
  }
10
10
  }
11
11
  }
12
- export interface Props {
13
- gap: 'small' | 'medium' | 'large';
12
+ interface Props {
13
+ gap?: "small" | "medium" | "large";
14
+ children?: React.ReactNode;
14
15
  }
15
16
  export declare const GoAFlexRow: FC<Props>;
16
17
  export default GoAFlexRow;
@@ -0,0 +1,17 @@
1
+ import React, { ReactNode } from "react";
2
+ interface WCProps {
3
+ maxcontentwidth?: string;
4
+ }
5
+ declare global {
6
+ namespace JSX {
7
+ interface IntrinsicElements {
8
+ "goa-app-footer": WCProps & React.HTMLAttributes<HTMLElement>;
9
+ }
10
+ }
11
+ }
12
+ export interface FooterProps {
13
+ maxContentWidth?: string;
14
+ children?: ReactNode;
15
+ }
16
+ export declare function GoAAppFooter({ maxContentWidth, children }: FooterProps): JSX.Element;
17
+ export default GoAAppFooter;
@@ -0,0 +1,13 @@
1
+ import React, { ReactNode } from "react";
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ "goa-app-footer-meta-section": React.HTMLAttributes<HTMLElement>;
6
+ }
7
+ }
8
+ }
9
+ export interface FooterMetaSectionProps {
10
+ children?: ReactNode;
11
+ }
12
+ export declare function GoAAppFooterMetaSection({ children }: FooterMetaSectionProps): JSX.Element;
13
+ export default GoAAppFooterMetaSection;
@@ -0,0 +1,19 @@
1
+ import React, { ReactNode } from "react";
2
+ interface WCProps {
3
+ maxcolumncount?: number;
4
+ heading?: string;
5
+ }
6
+ declare global {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ "goa-app-footer-nav-section": WCProps & React.HTMLAttributes<HTMLElement>;
10
+ }
11
+ }
12
+ }
13
+ interface FooterNavSectionProps {
14
+ maxColumnCount?: number;
15
+ heading?: string;
16
+ children?: ReactNode;
17
+ }
18
+ export declare function GoAAppFooterNavSection({ heading, maxColumnCount, children, }: FooterNavSectionProps): JSX.Element;
19
+ export default GoAAppFooterNavSection;
@@ -1,22 +1,24 @@
1
- import React, { FC } from 'react';
1
+ import React, { FC } from "react";
2
+ declare type RequirementType = "optional" | "required";
2
3
  interface WCProps {
3
4
  label: string;
4
- optional?: boolean;
5
+ requirement?: RequirementType;
5
6
  error?: string;
6
7
  helptext?: string;
7
8
  }
8
9
  declare global {
9
10
  namespace JSX {
10
11
  interface IntrinsicElements {
11
- 'goa-form-item': WCProps & React.HTMLAttributes<HTMLElement>;
12
+ "goa-form-item": WCProps & React.HTMLAttributes<HTMLElement>;
12
13
  }
13
14
  }
14
15
  }
15
16
  interface GoAFormItemProps {
16
17
  label: string;
17
- optional?: boolean;
18
+ requirement?: RequirementType;
18
19
  error?: string;
19
20
  helpText?: string;
21
+ children?: React.ReactNode;
20
22
  }
21
23
  export declare const GoAFormItem: FC<GoAFormItemProps>;
22
24
  export default GoAFormItem;
@@ -1 +1 @@
1
- export { GoAFormItem } from './form-item';
1
+ export { GoAFormItem } from "./form-item";
@@ -1,4 +1,6 @@
1
- import { FC } from 'react';
2
- export declare type GoAHeroBannerActionsType = FC;
3
- export declare const GoAHeroBannerActions: GoAHeroBannerActionsType;
1
+ import React, { FC } from "react";
2
+ export declare type GoAHeroBannerActionsType = {
3
+ children?: React.ReactNode;
4
+ };
5
+ export declare const GoAHeroBannerActions: FC<GoAHeroBannerActionsType>;
4
6
  export default GoAHeroBannerActions;
@@ -1,18 +1,19 @@
1
- import React, { FC } from 'react';
1
+ import React, { FC } from "react";
2
2
  interface WCProps {
3
- title: string;
3
+ heading: string;
4
4
  backgroundurl: string;
5
5
  }
6
6
  declare global {
7
7
  namespace JSX {
8
8
  interface IntrinsicElements {
9
- 'goa-hero-banner': WCProps & React.HTMLAttributes<HTMLElement>;
9
+ "goa-hero-banner": WCProps & React.HTMLAttributes<HTMLElement>;
10
10
  }
11
11
  }
12
12
  }
13
13
  interface Props {
14
- title: string;
14
+ heading: string;
15
15
  backgroundUrl: string;
16
+ children?: React.ReactNode;
16
17
  }
17
18
  export declare const GoAHeroBanner: FC<Props>;
18
19
  export default GoAHeroBanner;
@@ -1,8 +1,9 @@
1
- import React, { FC } from 'react';
2
- import { IconSize, GoAIconType, IconVariant } from './icon';
1
+ import React, { FC } from "react";
2
+ import { IconSize, GoAIconType } from "./icon";
3
+ declare type IconVariant = "color" | "nocolor" | "dark";
3
4
  interface WCProps {
4
5
  ref: React.RefObject<HTMLElement>;
5
- type: GoAIconType;
6
+ icon: GoAIconType;
6
7
  size?: IconSize;
7
8
  variant?: IconVariant;
8
9
  title?: string;
@@ -11,17 +12,18 @@ interface WCProps {
11
12
  declare global {
12
13
  namespace JSX {
13
14
  interface IntrinsicElements {
14
- 'goa-icon-button': WCProps & React.HTMLAttributes<HTMLButtonElement>;
15
+ "goa-icon-button": WCProps & React.HTMLAttributes<HTMLButtonElement>;
15
16
  }
16
17
  }
17
18
  }
18
19
  interface Props {
19
- type: GoAIconType;
20
+ icon: GoAIconType;
20
21
  size?: IconSize;
21
22
  variant?: IconVariant;
22
23
  title?: string;
23
24
  disabled?: boolean;
24
- onClick: () => void;
25
+ children?: React.ReactNode;
26
+ onClick?: () => void;
25
27
  }
26
28
  export declare const GoAIconButton: FC<Props>;
27
29
  export {};
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  declare type GoAIconFilledType = `${GoAIconType}-${IconTheme}`;
3
3
  interface IonIconProps {
4
4
  name: GoAIconType | GoAIconFilledType;
@@ -8,21 +8,21 @@ interface IonIconElement extends HTMLElement {
8
8
  declare global {
9
9
  namespace JSX {
10
10
  interface IntrinsicElements {
11
- 'ion-icon': IonIconProps & React.HTMLAttributes<IonIconElement>;
11
+ "ion-icon": IonIconProps & React.HTMLAttributes<IonIconElement>;
12
12
  }
13
13
  }
14
14
  }
15
15
  declare global {
16
16
  namespace JSX {
17
17
  interface IntrinsicElements {
18
- 'goa-icon': WCProps & React.HTMLAttributes<IonIconElement>;
18
+ "goa-icon": WCProps & React.HTMLAttributes<IonIconElement>;
19
19
  }
20
20
  }
21
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';
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" | "logo-alipay" | "logo-amazon" | "logo-amplify" | "logo-android" | "logo-angular" | "logo-apple" | "logo-apple-appstore" | "logo-apple-ar" | "logo-behance" | "logo-bitbucket" | "logo-bitcoin" | "logo-buffer" | "logo-capacitor" | "logo-chrome" | "logo-closed-captioning" | "logo-codepen" | "logo-css3" | "logo-designernews" | "logo-deviantart" | "logo-discord" | "logo-docker" | "logo-dribbble" | "logo-dropbox" | "logo-edge" | "logo-electron" | "logo-euro" | "logo-facebook" | "logo-figma" | "logo-firebase" | "logo-firefox" | "logo-flickr" | "logo-foursquare" | "logo-github" | "logo-gitlab" | "logo-google" | "logo-google-playstore" | "logo-hackernews" | "logo-html5" | "logo-instagram" | "logo-ionic" | "logo-ionitron" | "logo-javascript" | "logo-laravel" | "logo-linkedin" | "logo-markdown" | "logo-mastodon" | "logo-medium" | "logo-microsoft" | "logo-no-smoking" | "logo-nodejs" | "logo-npm" | "logo-octocat" | "logo-paypal" | "logo-pinterest" | "logo-playstation" | "logo-pwa" | "logo-python" | "logo-react" | "logo-reddit" | "logo-rss" | "logo-sass" | "logo-skype" | "logo-slack" | "logo-snapchat" | "logo-soundcloud" | "logo-stackoverflow" | "logo-steam" | "logo-stencil" | "logo-tableau" | "logo-tiktok" | "logo-tumblr" | "logo-tux" | "logo-twitch" | "logo-twitter" | "logo-usd" | "logo-venmo" | "logo-vercel" | "logo-vimeo" | "logo-vk" | "logo-vue" | "logo-web-component" | "logo-wechat" | "logo-whatsapp" | "logo-windows" | "logo-wordpress" | "logo-xbox" | "logo-xing" | "logo-yahoo" | "logo-yen" | "logo-youtube";
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
26
  interface Props {
27
27
  type: GoAIconType;
28
28
  size?: IconSize;
@@ -33,5 +33,5 @@ interface WCProps {
33
33
  theme: IconTheme;
34
34
  size: IconSize;
35
35
  }
36
- export declare function GoAIcon({ type, theme, size }: Props): JSX.Element;
36
+ export declare function GoAIcon({ type, theme, size, }: Props): JSX.Element;
37
37
  export {};
@@ -1,2 +1,2 @@
1
- export * from './icon';
2
- export * from './icon-button';
1
+ export * from "./icon";
2
+ export * from "./icon-button";
@@ -1,11 +1,15 @@
1
- import React, { FC } from 'react';
2
- import { GoAIconType } from '../..';
1
+ import React, { FC } from "react";
2
+ import { GoAIconType } from "../..";
3
+ export declare type GoADate = Date | string;
4
+ declare type GoAInputType = "text" | "password" | "email" | "number" | "date" | "datetime-local" | "month" | "range" | "search" | "tel" | "time" | "url" | "week";
5
+ declare type GoAAutoCapitalize = "on" | "off" | "none" | "sentences" | "words" | "characters";
3
6
  interface WCProps {
4
7
  ref?: React.MutableRefObject<HTMLInputElement | null>;
5
- type: string;
8
+ type?: GoAInputType;
6
9
  name: string;
7
10
  value: string;
8
11
  id?: string;
12
+ autocapitalize?: GoAAutoCapitalize;
9
13
  placeholder?: string;
10
14
  leadingicon?: string;
11
15
  trailingicon?: string;
@@ -14,66 +18,78 @@ interface WCProps {
14
18
  error?: boolean;
15
19
  readonly?: boolean;
16
20
  focused?: boolean;
17
- showcounter?: boolean;
18
- maxcharcount?: number;
19
21
  handletrailingiconclick: boolean;
20
22
  width?: string;
23
+ prefix?: string;
24
+ suffix?: string;
21
25
  testid?: string;
26
+ min?: string | number;
27
+ max?: string | number;
28
+ step?: number;
22
29
  }
23
30
  declare global {
24
31
  namespace JSX {
25
32
  interface IntrinsicElements {
26
- 'goa-input': WCProps & React.HTMLAttributes<HTMLInputElement>;
33
+ "goa-input": WCProps & React.HTMLAttributes<HTMLInputElement>;
27
34
  }
28
35
  }
29
36
  }
30
- export interface Props {
37
+ interface BaseProps {
31
38
  name: string;
32
- value: string;
33
- onChange: (name: string, value: string) => void;
34
39
  id?: string;
35
40
  disabled?: boolean;
41
+ autoCapitalize?: GoAAutoCapitalize;
36
42
  placeholder?: string;
37
43
  leadingIcon?: GoAIconType;
38
44
  trailingIcon?: GoAIconType;
39
45
  onTrailingIconClick?: () => void;
40
- variant?: 'goa' | 'bare';
46
+ variant?: "goa" | "bare";
41
47
  focused?: boolean;
42
48
  readonly?: boolean;
43
49
  error?: boolean;
44
50
  width?: string;
45
- showCounter?: boolean;
46
- maxCharCount?: number;
51
+ prefix?: string;
52
+ suffix?: string;
47
53
  testId?: string;
48
54
  }
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<Props & {
70
- min?: number;
71
- max?: number;
55
+ declare type OnChange = (name: string, value: string) => void;
56
+ export interface InputProps extends BaseProps {
57
+ onChange: OnChange;
58
+ value: string;
59
+ min?: number | string;
60
+ max?: number | string;
72
61
  step?: number;
73
- }>;
74
- export declare const GoAInputRange: FC<Props & {
62
+ }
63
+ declare type OnNumberChange = (name: string, value: number) => void;
64
+ interface NumberInputProps extends BaseProps {
65
+ onChange: OnNumberChange;
66
+ value: number;
75
67
  min?: number;
76
68
  max?: number;
77
69
  step?: number;
70
+ }
71
+ declare type OnDateChange = (name: string, value: GoADate) => void;
72
+ interface DateInputProps extends BaseProps {
73
+ onChange: OnDateChange;
74
+ value: GoADate;
75
+ min?: GoADate;
76
+ max?: GoADate;
77
+ step?: number;
78
+ }
79
+ export declare const GoAInput: FC<InputProps & {
80
+ type?: GoAInputType;
78
81
  }>;
82
+ export declare const GoAInputText: FC<InputProps>;
83
+ export declare const GoAInputPassword: FC<InputProps>;
84
+ export declare const GoAInputDate: FC<DateInputProps>;
85
+ export declare const GoAInputTime: FC<InputProps>;
86
+ export declare const GoAInputDateTime: FC<DateInputProps>;
87
+ export declare const GoAInputEmail: FC<InputProps>;
88
+ export declare const GoAInputSearch: FC<InputProps>;
89
+ export declare const GoAInputUrl: FC<InputProps>;
90
+ export declare const GoAInputTel: FC<InputProps>;
91
+ export declare const GoAInputFile: FC<InputProps>;
92
+ export declare const GoAInputMonth: FC<InputProps>;
93
+ export declare const GoAInputNumber: FC<NumberInputProps>;
94
+ export declare const GoAInputRange: FC<InputProps>;
79
95
  export default GoAInput;
@@ -1,19 +1,19 @@
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
14
  }
15
15
  export interface HeaderProps {
16
- level: ServiceLevel;
16
+ type: ServiceLevel;
17
17
  version?: string;
18
18
  feedbackUrl?: string;
19
19
  }
@@ -1,4 +1,6 @@
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
6
  heading?: string;
@@ -6,12 +8,13 @@ interface WCProps {
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
  }
@@ -20,8 +23,11 @@ interface Props {
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;
25
31
  }
26
32
  export declare const GoAModal: FC<Props>;
27
33
  export default GoAModal;
@@ -1,16 +1,16 @@
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
3
  interface WCProps {
4
4
  type: NotificationType;
5
5
  }
6
6
  declare global {
7
7
  namespace JSX {
8
8
  interface IntrinsicElements {
9
- 'goa-notification': WCProps & React.HTMLAttributes<HTMLButtonElement>;
9
+ "goa-notification": WCProps & React.HTMLAttributes<HTMLButtonElement>;
10
10
  }
11
11
  }
12
12
  }
13
- export interface Props {
13
+ interface Props {
14
14
  type?: NotificationType;
15
15
  children?: React.ReactNode;
16
16
  }
@@ -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,9 +1,16 @@
1
- import React, { FC } from 'react';
1
+ import React, { FC, ReactNode } from "react";
2
+ export interface WCPageBlockProps {
3
+ width: "full" | string;
4
+ }
2
5
  declare global {
3
6
  namespace JSX {
4
7
  interface IntrinsicElements {
5
- 'goa-page-block': React.HTMLAttributes<HTMLElement>;
8
+ "goa-page-block": WCPageBlockProps & React.HTMLAttributes<HTMLElement>;
6
9
  }
7
10
  }
8
11
  }
9
- export declare const GoAPageBlock: FC;
12
+ export interface PageBlockProps {
13
+ width: "full" | string;
14
+ children?: ReactNode;
15
+ }
16
+ export declare const GoAPageBlock: FC<PageBlockProps>;
@@ -1,5 +1,5 @@
1
- import React, { FC } from 'react';
2
- export * from './radio';
1
+ import React, { FC } from "react";
2
+ export * from "./radio";
3
3
  interface RadioGroupProps {
4
4
  ref: React.RefObject<HTMLElement>;
5
5
  name: string;
@@ -11,7 +11,7 @@ interface RadioGroupProps {
11
11
  declare global {
12
12
  namespace JSX {
13
13
  interface IntrinsicElements {
14
- 'goa-radio-group': RadioGroupProps & React.HTMLAttributes<HTMLElement>;
14
+ "goa-radio-group": RadioGroupProps & React.HTMLAttributes<HTMLElement>;
15
15
  }
16
16
  }
17
17
  }
@@ -19,9 +19,10 @@ interface Props {
19
19
  name: string;
20
20
  value?: string;
21
21
  disabled?: boolean;
22
- orientation?: 'horizontal' | 'vertical';
22
+ orientation?: "horizontal" | "vertical";
23
23
  testId?: string;
24
24
  error?: boolean;
25
+ children?: React.ReactNode;
25
26
  onChange: (name: string, value: string) => void;
26
27
  }
27
28
  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>;