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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/lib/accordion/accordion.d.ts +6 -6
  2. package/lib/app-header/app-header.d.ts +3 -3
  3. package/lib/app-header-menu/app-header-menu.d.ts +1 -1
  4. package/lib/badge/badge.d.ts +13 -13
  5. package/lib/block/block.d.ts +4 -3
  6. package/lib/button/button.d.ts +15 -12
  7. package/lib/button-group/button-group.d.ts +10 -9
  8. package/lib/calendar/calendar.d.ts +9 -9
  9. package/lib/callout/callout.d.ts +10 -9
  10. package/lib/card/card-actions.d.ts +3 -3
  11. package/lib/card/card-content.d.ts +3 -3
  12. package/lib/card/card-group.d.ts +3 -3
  13. package/lib/card/card-image.d.ts +3 -3
  14. package/lib/card/card.d.ts +3 -3
  15. package/lib/checkbox/checkbox.d.ts +6 -5
  16. package/lib/chip/chip.d.ts +6 -6
  17. package/lib/circular-progress/circular-progress.d.ts +11 -9
  18. package/lib/container/container.d.ts +12 -12
  19. package/lib/date-picker/date-picker.d.ts +9 -9
  20. package/lib/details/details.d.ts +4 -3
  21. package/lib/divider/divider.d.ts +4 -3
  22. package/lib/dropdown/dropdown-item.d.ts +4 -4
  23. package/lib/dropdown/dropdown.d.ts +3 -3
  24. package/lib/file-upload-card/file-upload-card.d.ts +3 -3
  25. package/lib/file-upload-input/file-upload-input.d.ts +6 -6
  26. package/lib/footer/footer.d.ts +4 -3
  27. package/lib/footer-meta-section/footer-meta-section.d.ts +4 -3
  28. package/lib/footer-nav-section/footer-nav-section.d.ts +3 -3
  29. package/lib/form/form-item.d.ts +9 -8
  30. package/lib/form-step/form-step.d.ts +4 -3
  31. package/lib/form-stepper/form-stepper.d.ts +4 -3
  32. package/lib/grid/grid.d.ts +3 -3
  33. package/lib/hero-banner/hero-banner-actions.d.ts +2 -2
  34. package/lib/hero-banner/hero-banner.d.ts +3 -3
  35. package/lib/icon/icon.d.ts +14 -11
  36. package/lib/icon-button/icon-button.d.ts +10 -9
  37. package/lib/input/input.d.ts +22 -21
  38. package/lib/microsite-header/microsite-header.d.ts +15 -12
  39. package/lib/modal/modal.d.ts +17 -15
  40. package/lib/notification/notification.d.ts +11 -9
  41. package/lib/one-column-layout/one-column-layout.d.ts +4 -3
  42. package/lib/page-block/page-block.d.ts +4 -3
  43. package/lib/pages/pages.d.ts +3 -3
  44. package/lib/pagination/pagination.d.ts +4 -3
  45. package/lib/popover/popover.d.ts +6 -6
  46. package/lib/radio-group/radio-group.d.ts +8 -7
  47. package/lib/radio-group/radio.d.ts +3 -3
  48. package/lib/side-menu/side-menu.d.ts +4 -3
  49. package/lib/side-menu-group/side-menu-group.d.ts +3 -3
  50. package/lib/side-menu-heading/side-menu-heading.d.ts +3 -3
  51. package/lib/skeleton/skeleton.d.ts +11 -9
  52. package/lib/spacer/spacer.d.ts +4 -3
  53. package/lib/spinner/spinner.d.ts +4 -3
  54. package/lib/tab/tab.d.ts +4 -3
  55. package/lib/table/table-sort-header.d.ts +3 -3
  56. package/lib/table/table.d.ts +8 -6
  57. package/lib/tabs/tabs.d.ts +3 -3
  58. package/lib/textarea/textarea.d.ts +3 -3
  59. package/lib/three-column-layout/three-column-layout.d.ts +3 -3
  60. package/lib/tooltip/tooltip.d.ts +10 -8
  61. package/lib/two-column-layout/two-column-layout.d.ts +3 -3
  62. package/package.json +1 -1
  63. package/react-components.esm.js +136 -136
  64. package/react-components.umd.js +90 -90
@@ -1,8 +1,8 @@
1
- import React from "react";
2
- declare type Variant = "dragdrop" | "button";
1
+ /// <reference types="react" />
2
+ export declare type GoAFileUploadInputVariant = "dragdrop" | "button";
3
3
  interface WCProps {
4
4
  ref: React.MutableRefObject<HTMLElement | null>;
5
- variant?: Variant;
5
+ variant?: GoAFileUploadInputVariant;
6
6
  accept?: string;
7
7
  maxfilesize?: string;
8
8
  }
@@ -13,11 +13,11 @@ declare global {
13
13
  }
14
14
  }
15
15
  }
16
- interface FileUploadInputProps {
17
- variant?: Variant;
16
+ export interface GoAFileUploadInputProps {
17
+ variant?: GoAFileUploadInputVariant;
18
18
  accept?: string;
19
19
  maxFileSize?: string;
20
20
  onSelectFile: (file: File) => void;
21
21
  }
22
- export declare function GoAFileUploadInput({ variant, accept, maxFileSize, onSelectFile, }: FileUploadInputProps): JSX.Element;
22
+ export declare function GoAFileUploadInput({ variant, accept, maxFileSize, onSelectFile, }: GoAFileUploadInputProps): JSX.Element;
23
23
  export default GoAFileUploadInput;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from "react";
1
+ import { ReactNode } from "react";
2
2
  interface WCProps {
3
3
  maxcontentwidth?: string;
4
4
  }
@@ -9,10 +9,11 @@ declare global {
9
9
  }
10
10
  }
11
11
  }
12
- export interface FooterProps {
12
+ export interface GoAAppFooterProps {
13
13
  maxContentWidth?: string;
14
14
  children?: ReactNode;
15
15
  testId?: string;
16
16
  }
17
- export declare function GoAAppFooter({ maxContentWidth, children, testId, }: FooterProps): JSX.Element;
17
+ export declare type FooterProps = GoAAppFooterProps;
18
+ export declare function GoAAppFooter({ maxContentWidth, children, testId, }: GoAAppFooterProps): JSX.Element;
18
19
  export default GoAAppFooter;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from "react";
1
+ import { ReactNode } from "react";
2
2
  declare global {
3
3
  namespace JSX {
4
4
  interface IntrinsicElements {
@@ -6,8 +6,9 @@ declare global {
6
6
  }
7
7
  }
8
8
  }
9
- export interface FooterMetaSectionProps {
9
+ export interface GoAAppFooterMetaSectionProps {
10
10
  children?: ReactNode;
11
11
  }
12
- export declare function GoAAppFooterMetaSection({ children }: FooterMetaSectionProps): JSX.Element;
12
+ export declare type FooterMetaSectionProps = GoAAppFooterMetaSectionProps;
13
+ export declare function GoAAppFooterMetaSection({ children }: GoAAppFooterMetaSectionProps): JSX.Element;
13
14
  export default GoAAppFooterMetaSection;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from "react";
1
+ import { ReactNode } from "react";
2
2
  interface WCProps {
3
3
  maxcolumncount?: number;
4
4
  heading?: string;
@@ -10,11 +10,11 @@ declare global {
10
10
  }
11
11
  }
12
12
  }
13
- interface FooterNavSectionProps {
13
+ export interface GoAFooterNavSectionProps {
14
14
  maxColumnCount?: number;
15
15
  heading?: string;
16
16
  testId?: string;
17
17
  children?: ReactNode;
18
18
  }
19
- export declare function GoAAppFooterNavSection({ heading, maxColumnCount, testId, children, }: FooterNavSectionProps): JSX.Element;
19
+ export declare function GoAAppFooterNavSection({ heading, maxColumnCount, testId, children, }: GoAFooterNavSectionProps): JSX.Element;
20
20
  export default GoAAppFooterNavSection;
@@ -1,10 +1,11 @@
1
- import React, { FC } from "react";
1
+ /// <reference types="react" />
2
2
  import { Margins } from "../../common/styling";
3
- declare type RequirementType = "optional" | "required";
3
+ export declare type GoAFormItemRequirement = "optional" | "required";
4
+ export declare type GoAFormItemLabelSize = "regular" | "large";
4
5
  interface WCProps extends Margins {
5
6
  label?: string;
6
- labelsize?: string;
7
- requirement?: RequirementType;
7
+ labelsize?: GoAFormItemLabelSize;
8
+ requirement?: GoAFormItemRequirement;
8
9
  error?: string;
9
10
  helptext?: string;
10
11
  id?: string;
@@ -16,15 +17,15 @@ declare global {
16
17
  }
17
18
  }
18
19
  }
19
- interface GoAFormItemProps extends Margins {
20
+ export interface GoAFormItemProps extends Margins {
20
21
  label?: string;
21
- labelSize?: string;
22
- requirement?: RequirementType;
22
+ labelSize?: GoAFormItemLabelSize;
23
+ requirement?: GoAFormItemRequirement;
23
24
  error?: string;
24
25
  helpText?: string;
25
26
  children?: React.ReactNode;
26
27
  testId?: string;
27
28
  id?: string;
28
29
  }
29
- export declare const GoAFormItem: FC<GoAFormItemProps>;
30
+ export declare function GoAFormItem({ children, helpText, error, requirement, label, labelSize, mt, mr, mb, ml, testId, id, }: GoAFormItemProps): JSX.Element;
30
31
  export default GoAFormItem;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  export declare type GoAFormStepStatusType = "complete" | "incomplete";
3
3
  interface WCProps {
4
4
  text: string;
@@ -11,9 +11,10 @@ declare global {
11
11
  }
12
12
  }
13
13
  }
14
- export interface FormStepProps {
14
+ export interface GoAFormStepProps {
15
15
  text: string;
16
16
  status?: GoAFormStepStatusType;
17
17
  }
18
- export declare function GoAFormStep(props: FormStepProps): JSX.Element;
18
+ export declare type FormStepProps = GoAFormStepProps;
19
+ export declare function GoAFormStep(props: GoAFormStepProps): JSX.Element;
19
20
  export default GoAFormStep;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from "react";
1
+ import { ReactNode } from "react";
2
2
  import { Margins } from "../../common/styling";
3
3
  interface WCProps extends Margins {
4
4
  ref?: React.MutableRefObject<HTMLElement | null>;
@@ -11,11 +11,12 @@ declare global {
11
11
  }
12
12
  }
13
13
  }
14
- export interface FormStepperProps extends Margins {
14
+ export interface GoAFormStepperProps extends Margins {
15
15
  step?: number;
16
16
  testId?: string;
17
17
  children?: ReactNode;
18
18
  onChange?: (step: number) => void;
19
19
  }
20
- export declare function GoAFormStepper({ testId, step, mt, mb, ml, mr, onChange, children, }: FormStepperProps): JSX.Element;
20
+ export declare type FormStepperProps = GoAFormStepperProps;
21
+ export declare function GoAFormStepper({ testId, step, mt, mb, ml, mr, onChange, children, }: GoAFormStepperProps): JSX.Element;
21
22
  export default GoAFormStepper;
@@ -1,4 +1,4 @@
1
- import React, { FC } from "react";
1
+ /// <reference types="react" />
2
2
  import { Margins, Spacing } from "../../common/styling";
3
3
  interface WCProps extends Margins {
4
4
  gap?: Spacing;
@@ -11,11 +11,11 @@ declare global {
11
11
  }
12
12
  }
13
13
  }
14
- interface Props extends Margins {
14
+ export interface GoAGridProps extends Margins {
15
15
  gap?: Spacing;
16
16
  minChildWidth: string;
17
17
  testId?: string;
18
18
  children?: React.ReactNode;
19
19
  }
20
- export declare const GoAGrid: FC<Props>;
20
+ export declare function GoAGrid({ gap, minChildWidth, mt, mr, mb, ml, testId, children, }: GoAGridProps): JSX.Element;
21
21
  export default GoAGrid;
@@ -1,6 +1,6 @@
1
- import React, { FC } from "react";
1
+ /// <reference types="react" />
2
2
  export declare type GoAHeroBannerActionsType = {
3
3
  children?: React.ReactNode;
4
4
  };
5
- export declare const GoAHeroBannerActions: FC<GoAHeroBannerActionsType>;
5
+ export declare function GoAHeroBannerActions({ children, }: GoAHeroBannerActionsType): JSX.Element;
6
6
  export default GoAHeroBannerActions;
@@ -1,4 +1,4 @@
1
- import React, { FC } from "react";
1
+ /// <reference types="react" />
2
2
  interface WCProps {
3
3
  heading: string;
4
4
  backgroundurl?: string;
@@ -14,7 +14,7 @@ declare global {
14
14
  }
15
15
  }
16
16
  }
17
- interface Props {
17
+ export interface GoAHeroBannerProps {
18
18
  heading: string;
19
19
  backgroundUrl?: string;
20
20
  minHeight?: string;
@@ -24,5 +24,5 @@ interface Props {
24
24
  backgroundColor?: string;
25
25
  textColor?: string;
26
26
  }
27
- export declare const GoAHeroBanner: FC<Props>;
27
+ export declare function GoAHeroBanner({ heading, backgroundUrl, minHeight, maxContentWidth, backgroundColor, textColor, children, testId, }: GoAHeroBannerProps): JSX.Element;
28
28
  export default GoAHeroBanner;
@@ -1,6 +1,6 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  import { Margins } from "../../common/styling";
3
- declare type GoAIconFilledType = `${GoAIconType}-${IconTheme}`;
3
+ export declare type GoAIconFilledType = `${GoAIconType}-${GoAIconTheme}`;
4
4
  interface IonIconProps {
5
5
  name: GoAIconType | GoAIconFilledType;
6
6
  }
@@ -21,19 +21,22 @@ declare global {
21
21
  }
22
22
  }
23
23
  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";
24
- export declare type IconSize = "small" | "medium" | "large" | "xlarge";
25
- export declare type IconVariant = "primary" | "secondary" | "tertiary";
26
- export declare type IconTheme = "outline" | "filled" | "sharp";
27
- interface Props extends Margins {
24
+ export declare type GoAIconSize = "small" | "medium" | "large" | "xlarge";
25
+ export declare type GoAIconVariant = "primary" | "secondary" | "tertiary";
26
+ export declare type GoAIconTheme = "outline" | "filled" | "sharp";
27
+ export declare type IconSize = GoAIconSize;
28
+ export declare type IconVariant = GoAIconVariant;
29
+ export declare type IconTheme = GoAIconTheme;
30
+ export interface GoAIconProps extends Margins {
28
31
  type: GoAIconType;
29
- size?: IconSize;
30
- theme?: IconTheme;
32
+ size?: GoAIconSize;
33
+ theme?: GoAIconTheme;
31
34
  testId?: string;
32
35
  }
33
36
  interface WCProps extends Margins {
34
37
  type: GoAIconType;
35
- theme?: IconTheme;
36
- size?: IconSize;
38
+ theme?: GoAIconTheme;
39
+ size?: GoAIconSize;
37
40
  }
38
- export declare function GoAIcon({ type, theme, size, mt, mr, mb, ml, testId, }: Props): JSX.Element;
41
+ export declare function GoAIcon({ type, theme, size, mt, mr, mb, ml, testId, }: GoAIconProps): JSX.Element;
39
42
  export {};
@@ -1,12 +1,13 @@
1
- import React, { FC } from "react";
1
+ /// <reference types="react" />
2
2
  import { Margins } from "../../common/styling";
3
- import { IconSize, GoAIconType } from "../icon/icon";
4
- export declare type IconButtonVariant = "color" | "nocolor" | "dark" | "destructive";
3
+ import { GoAIconSize, GoAIconType } from "../icon/icon";
4
+ export declare type GoAIconButtonVariant = "color" | "nocolor" | "dark" | "destructive";
5
+ export declare type IconButtonVariant = GoAIconButtonVariant;
5
6
  interface WCProps extends Margins {
6
7
  ref: React.RefObject<HTMLElement>;
7
8
  icon: GoAIconType;
8
- size?: IconSize;
9
- variant?: IconButtonVariant;
9
+ size?: GoAIconSize;
10
+ variant?: GoAIconButtonVariant;
10
11
  title?: string;
11
12
  disabled?: boolean;
12
13
  }
@@ -17,15 +18,15 @@ declare global {
17
18
  }
18
19
  }
19
20
  }
20
- interface Props extends Margins {
21
+ export interface GoAIconButtonProps extends Margins {
21
22
  icon: GoAIconType;
22
- size?: IconSize;
23
- variant?: IconButtonVariant;
23
+ size?: GoAIconSize;
24
+ variant?: GoAIconButtonVariant;
24
25
  title?: string;
25
26
  disabled?: boolean;
26
27
  children?: React.ReactNode;
27
28
  onClick?: () => void;
28
29
  testId?: string;
29
30
  }
30
- export declare const GoAIconButton: FC<Props>;
31
+ export declare function GoAIconButton({ icon, disabled, variant, onClick, size, title, testId, children, mt, mr, mb, ml, }: GoAIconButtonProps): JSX.Element;
31
32
  export {};
@@ -1,9 +1,9 @@
1
- import React, { FC } from "react";
1
+ /// <reference types="react" />
2
2
  import { GoAIconType } from "../..";
3
3
  import { Margins } from "../../common/styling";
4
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";
5
+ export declare type GoAInputType = "text" | "password" | "email" | "number" | "date" | "datetime-local" | "month" | "range" | "search" | "tel" | "time" | "url" | "week";
6
+ export declare type GoAAutoCapitalize = "on" | "off" | "none" | "sentences" | "words" | "characters";
7
7
  interface WCProps extends Margins {
8
8
  ref?: React.MutableRefObject<HTMLInputElement | null>;
9
9
  type?: GoAInputType;
@@ -63,7 +63,7 @@ interface BaseProps extends Margins {
63
63
  declare type OnChange = (name: string, value: string) => void;
64
64
  declare type OnFocus = (name: string, value: string) => void;
65
65
  declare type OnBlur = (name: string, value: string) => void;
66
- export interface InputProps extends BaseProps {
66
+ export interface GoAInputProps extends BaseProps {
67
67
  onChange: OnChange;
68
68
  value: string;
69
69
  min?: number | string;
@@ -72,10 +72,11 @@ export interface InputProps extends BaseProps {
72
72
  onFocus?: OnFocus;
73
73
  onBlur?: OnBlur;
74
74
  }
75
+ export declare type InputProps = GoAInputProps;
75
76
  declare type OnNumberChange = (name: string, value: number) => void;
76
77
  declare type OnNumberFocus = (name: string, value: number) => void;
77
78
  declare type OnNumberBlur = (name: string, value: number) => void;
78
- interface NumberInputProps extends BaseProps {
79
+ export interface GoANumberInputProps extends BaseProps {
79
80
  onChange: OnNumberChange;
80
81
  value: number;
81
82
  min?: number;
@@ -87,7 +88,7 @@ interface NumberInputProps extends BaseProps {
87
88
  declare type OnDateChange = (name: string, value: GoADate) => void;
88
89
  declare type OnDateFocus = (name: string, value: GoADate) => void;
89
90
  declare type OnDateBlur = (name: string, value: GoADate) => void;
90
- interface DateInputProps extends BaseProps {
91
+ export interface GoADateInputProps extends BaseProps {
91
92
  onChange: OnDateChange;
92
93
  value: GoADate;
93
94
  min?: GoADate;
@@ -96,20 +97,20 @@ interface DateInputProps extends BaseProps {
96
97
  onFocus?: OnDateFocus;
97
98
  onBlur?: OnDateBlur;
98
99
  }
99
- export declare const GoAInput: FC<InputProps & {
100
+ export declare function GoAInput({ id, debounce, name, type, autoCapitalize, leadingIcon, trailingIcon, variant, focused, disabled, readonly, value, placeholder, error, width, testId, min, max, step, prefix, suffix, ariaLabel, mt, mr, mb, ml, leadingContent, trailingContent, maxLength, onTrailingIconClick, onChange, onFocus, onBlur, }: GoAInputProps & {
100
101
  type?: GoAInputType;
101
- }>;
102
- export declare const GoAInputText: FC<InputProps>;
103
- export declare const GoAInputPassword: FC<InputProps>;
104
- export declare const GoAInputDate: FC<DateInputProps>;
105
- export declare const GoAInputTime: FC<InputProps>;
106
- export declare const GoAInputDateTime: FC<DateInputProps>;
107
- export declare const GoAInputEmail: FC<InputProps>;
108
- export declare const GoAInputSearch: FC<InputProps>;
109
- export declare const GoAInputUrl: FC<InputProps>;
110
- export declare const GoAInputTel: FC<InputProps>;
111
- export declare const GoAInputFile: FC<InputProps>;
112
- export declare const GoAInputMonth: FC<InputProps>;
113
- export declare const GoAInputNumber: FC<NumberInputProps>;
114
- export declare const GoAInputRange: FC<InputProps>;
102
+ }): JSX.Element;
103
+ export declare function GoAInputText(props: GoAInputProps): JSX.Element;
104
+ export declare function GoAInputPassword(props: GoAInputProps): JSX.Element;
105
+ export declare function GoAInputDate({ value, min, max, ...props }: GoADateInputProps): JSX.Element;
106
+ export declare function GoAInputTime({ value, min, max, ...props }: GoAInputProps): JSX.Element;
107
+ export declare function GoAInputDateTime({ value, min, max, ...props }: GoADateInputProps): JSX.Element;
108
+ export declare function GoAInputEmail(props: GoAInputProps): JSX.Element;
109
+ export declare function GoAInputSearch(props: GoAInputProps): JSX.Element;
110
+ export declare function GoAInputUrl(props: GoAInputProps): JSX.Element;
111
+ export declare function GoAInputTel(props: GoAInputProps): JSX.Element;
112
+ export declare function GoAInputFile(props: GoAInputProps): JSX.Element;
113
+ export declare function GoAInputMonth(props: GoAInputProps): JSX.Element;
114
+ export declare function GoAInputNumber({ min, max, value, ...props }: GoANumberInputProps): JSX.Element;
115
+ export declare function GoAInputRange(props: GoAInputProps): JSX.Element;
115
116
  export default GoAInput;
@@ -1,28 +1,31 @@
1
- import React, { FC } from "react";
1
+ /// <reference types="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": WCProps & React.HTMLAttributes<HTMLElement>;
6
6
  }
7
7
  }
8
8
  }
9
- export declare type ServiceLevel = "alpha" | "beta" | "live";
10
- interface WebComponentProps {
11
- type: ServiceLevel;
9
+ export declare type GoAServiceLevel = "alpha" | "beta" | "live";
10
+ export declare type GoALinkTarget = "self" | "blank";
11
+ export declare type ServiceLevel = GoAServiceLevel;
12
+ interface WCProps {
13
+ type: GoAServiceLevel;
12
14
  version?: string;
13
15
  feedbackurl?: string;
14
16
  maxcontentwidth?: string;
15
- feedbackurltarget?: "self" | "blank";
16
- headerurltarget?: "self" | "blank";
17
+ feedbackurltarget?: GoALinkTarget;
18
+ headerurltarget?: GoALinkTarget;
17
19
  }
18
- export interface HeaderProps {
19
- type: ServiceLevel;
20
+ export interface GoAHeaderProps {
21
+ type: GoAServiceLevel;
20
22
  version?: string;
21
23
  feedbackUrl?: string;
22
24
  testId?: string;
23
25
  maxContentWidth?: string;
24
- feedbackUrlTarget?: "self" | "blank";
25
- headerUrlTarget?: "self" | "blank";
26
+ feedbackUrlTarget?: GoALinkTarget;
27
+ headerUrlTarget?: GoALinkTarget;
26
28
  }
27
- export declare const GoAMicrositeHeader: FC<HeaderProps>;
29
+ export declare type HeaderProps = GoAHeaderProps;
30
+ export declare function GoAMicrositeHeader({ type, version, feedbackUrl, maxContentWidth, feedbackUrlTarget, headerUrlTarget, testId, }: GoAHeaderProps): JSX.Element;
28
31
  export default GoAMicrositeHeader;
@@ -1,14 +1,16 @@
1
- import React, { FC } from "react";
2
- export declare type ModalTransition = "fast" | "slow" | "none";
3
- export declare type CalloutVariant = "information" | "important" | "emergency" | "success" | "event";
1
+ import { ReactElement, ReactNode, RefObject } from "react";
2
+ export declare type GoAModalTransition = "fast" | "slow" | "none";
3
+ export declare type GoAModalCalloutVariant = "information" | "important" | "emergency" | "success" | "event";
4
+ export declare type ModalTransition = GoAModalTransition;
5
+ export declare type CalloutVariant = GoAModalCalloutVariant;
4
6
  interface WCProps {
5
- ref: React.RefObject<HTMLElement>;
6
- heading?: React.ReactNode;
7
+ ref: RefObject<HTMLElement>;
8
+ heading?: ReactNode;
7
9
  open?: boolean;
8
10
  maxwidth?: string;
9
11
  closable?: boolean;
10
- transition?: ModalTransition;
11
- calloutVariant?: CalloutVariant;
12
+ transition?: GoAModalTransition;
13
+ calloutvariant?: GoAModalCalloutVariant;
12
14
  }
13
15
  declare global {
14
16
  namespace JSX {
@@ -17,18 +19,18 @@ declare global {
17
19
  }
18
20
  }
19
21
  }
20
- interface Props {
21
- heading?: React.ReactNode;
22
+ export interface GoAModalProps {
23
+ heading?: ReactNode;
22
24
  maxWidth?: string;
23
- actions?: React.ReactElement;
25
+ actions?: ReactElement;
24
26
  onClose?: () => void;
25
- transition?: ModalTransition;
26
- children?: React.ReactNode;
27
+ transition?: GoAModalTransition;
28
+ children?: ReactNode;
27
29
  open?: boolean;
28
- type?: string;
29
- calloutVariant?: CalloutVariant;
30
+ calloutVariant?: GoAModalCalloutVariant;
30
31
  testId?: string;
31
32
  width?: string;
33
+ type?: string;
32
34
  }
33
- export declare const GoAModal: FC<Props>;
35
+ export declare function GoAModal({ heading, children, maxWidth, open, actions, transition, type, calloutVariant, onClose, testId, width, }: GoAModalProps): JSX.Element;
34
36
  export default GoAModal;
@@ -1,11 +1,13 @@
1
- import React from "react";
2
- export declare type NotificationType = "important" | "information" | "event" | "emergency";
3
- export declare type AriaLiveType = "polite" | "assertive" | "off";
1
+ /// <reference types="react" />
2
+ export declare type GoANotificationType = "important" | "information" | "event" | "emergency";
3
+ export declare type GoAAriaLiveType = "polite" | "assertive" | "off";
4
+ export declare type NotificationType = GoANotificationType;
5
+ export declare type AriaLiveType = GoAAriaLiveType;
4
6
  interface WCProps {
5
7
  ref: React.RefObject<HTMLElement>;
6
- type: NotificationType;
8
+ type: GoANotificationType;
7
9
  maxcontentwidth?: string;
8
- arialive?: AriaLiveType;
10
+ arialive?: GoAAriaLiveType;
9
11
  }
10
12
  declare global {
11
13
  namespace JSX {
@@ -14,13 +16,13 @@ declare global {
14
16
  }
15
17
  }
16
18
  }
17
- interface Props {
18
- type?: NotificationType;
19
- ariaLive?: AriaLiveType;
19
+ export interface GoANotificationProps {
20
+ type?: GoANotificationType;
21
+ ariaLive?: GoAAriaLiveType;
20
22
  maxContentWidth?: string;
21
23
  children?: React.ReactNode;
22
24
  onDismiss?: () => void;
23
25
  testId?: string;
24
26
  }
25
- export declare const GoANotification: ({ type, ariaLive, maxContentWidth, children, testId, onDismiss, }: Props) => JSX.Element;
27
+ export declare const GoANotification: ({ type, ariaLive, maxContentWidth, children, testId, onDismiss, }: GoANotificationProps) => JSX.Element;
26
28
  export default GoANotification;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from "react";
1
+ import { ReactNode } from "react";
2
2
  declare global {
3
3
  namespace JSX {
4
4
  interface IntrinsicElements {
@@ -6,8 +6,9 @@ declare global {
6
6
  }
7
7
  }
8
8
  }
9
- export interface PageProps {
9
+ export interface GoAPageProps {
10
10
  children?: ReactNode;
11
11
  }
12
- export declare function GoAOneColumnLayout(props: PageProps): JSX.Element;
12
+ export declare type PageProps = GoAPageProps;
13
+ export declare function GoAOneColumnLayout(props: GoAPageProps): JSX.Element;
13
14
  export default GoAOneColumnLayout;
@@ -1,4 +1,4 @@
1
- import React, { FC, ReactNode } from "react";
1
+ import { ReactNode } from "react";
2
2
  export interface WCPageBlockProps {
3
3
  width: "full" | string;
4
4
  }
@@ -9,9 +9,10 @@ declare global {
9
9
  }
10
10
  }
11
11
  }
12
- export interface PageBlockProps {
12
+ export interface GoAPageBlockProps {
13
13
  width: "full" | string;
14
14
  testId?: string;
15
15
  children?: ReactNode;
16
16
  }
17
- export declare const GoAPageBlock: FC<PageBlockProps>;
17
+ export declare type PageBlockProps = GoAPageBlockProps;
18
+ export declare function GoAPageBlock(props: PageBlockProps): JSX.Element;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from "react";
1
+ import { ReactNode } from "react";
2
2
  import { Margins } from "../../common/styling";
3
3
  interface WCProps extends Margins {
4
4
  current?: number;
@@ -10,9 +10,9 @@ declare global {
10
10
  }
11
11
  }
12
12
  }
13
- interface PagesProps extends Margins {
13
+ export interface GoAPagesProps extends Margins {
14
14
  current?: number;
15
15
  children?: ReactNode;
16
16
  }
17
- export declare function GoAPages(props: PagesProps): JSX.Element;
17
+ export declare function GoAPages(props: GoAPagesProps): JSX.Element;
18
18
  export default GoAPages;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  import { Margins } from "../../common/styling";
3
3
  interface WCProps extends Margins {
4
4
  ref?: React.MutableRefObject<HTMLElement | undefined>;
@@ -14,7 +14,7 @@ declare global {
14
14
  }
15
15
  }
16
16
  }
17
- export interface PaginationProps extends Margins {
17
+ export interface GoAPaginationProps extends Margins {
18
18
  itemCount: number;
19
19
  perPageCount?: number;
20
20
  pageNumber: number;
@@ -22,5 +22,6 @@ export interface PaginationProps extends Margins {
22
22
  onChange: (page: number) => void;
23
23
  testId?: string;
24
24
  }
25
- export declare function GoAPagination(props: PaginationProps): JSX.Element;
25
+ export declare type PaginationProps = GoAPaginationProps;
26
+ export declare function GoAPagination(props: GoAPaginationProps): JSX.Element;
26
27
  export default GoAPagination;