@abgov/react-components 4.17.0-alpha.2 → 4.17.0-alpha.21

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 (78) hide show
  1. package/common/styling.d.ts +12 -9
  2. package/index.d.ts +56 -59
  3. package/index.js +23565 -0
  4. package/index.js.map +1 -0
  5. package/index.mjs +23565 -0
  6. package/index.mjs.map +1 -0
  7. package/lib/accordion/accordion.d.ts +28 -28
  8. package/lib/app-header/app-header.d.ts +23 -22
  9. package/lib/app-header-menu/app-header-menu.d.ts +20 -20
  10. package/lib/badge/badge.d.ts +40 -41
  11. package/lib/block/block.d.ts +23 -22
  12. package/lib/button/button.d.ts +38 -35
  13. package/lib/button-group/button-group.d.ts +23 -23
  14. package/lib/calendar/calendar.d.ts +24 -25
  15. package/lib/callout/callout.d.ts +25 -25
  16. package/lib/checkbox/checkbox.d.ts +37 -37
  17. package/lib/chip/chip.d.ts +28 -29
  18. package/lib/circular-progress/circular-progress.d.ts +28 -27
  19. package/lib/container/container.d.ts +29 -29
  20. package/lib/date-picker/date-picker.d.ts +24 -25
  21. package/lib/details/details.d.ts +21 -20
  22. package/lib/divider/divider.d.ts +13 -13
  23. package/lib/dropdown/dropdown-item.d.ts +23 -24
  24. package/lib/dropdown/dropdown.d.ts +49 -50
  25. package/lib/file-upload-card/file-upload-card.d.ts +26 -27
  26. package/lib/file-upload-input/file-upload-input.d.ts +22 -23
  27. package/lib/footer/footer.d.ts +19 -18
  28. package/lib/footer-meta-section/footer-meta-section.d.ts +14 -13
  29. package/lib/footer-nav-section/footer-nav-section.d.ts +20 -20
  30. package/lib/{form → form-item}/form-item.d.ts +30 -30
  31. package/lib/form-step/form-step.d.ts +19 -19
  32. package/lib/form-stepper/form-stepper.d.ts +22 -21
  33. package/lib/grid/grid.d.ts +20 -21
  34. package/lib/hero-banner/hero-banner-actions.d.ts +5 -6
  35. package/lib/hero-banner/hero-banner.d.ts +27 -28
  36. package/lib/icon/icon.d.ts +41 -39
  37. package/lib/icon-button/icon-button.d.ts +33 -31
  38. package/lib/input/input.d.ts +112 -115
  39. package/lib/microsite-header/microsite-header.d.ts +30 -28
  40. package/lib/modal/modal.d.ts +39 -34
  41. package/lib/notification/notification.d.ts +27 -26
  42. package/lib/one-column-layout/one-column-layout.d.ts +14 -13
  43. package/lib/page-block/page-block.d.ts +19 -17
  44. package/lib/pages/pages.d.ts +18 -18
  45. package/lib/pagination/pagination.d.ts +26 -26
  46. package/lib/popover/popover.d.ts +27 -27
  47. package/lib/radio-group/radio-group.d.ts +32 -32
  48. package/lib/radio-group/radio.d.ts +29 -30
  49. package/lib/side-menu/side-menu.d.ts +14 -13
  50. package/lib/side-menu-group/side-menu-group.d.ts +17 -17
  51. package/lib/side-menu-heading/side-menu-heading.d.ts +19 -19
  52. package/lib/skeleton/skeleton.d.ts +27 -26
  53. package/lib/spacer/spacer.d.ts +20 -20
  54. package/lib/spinner/spinner.d.ts +25 -25
  55. package/lib/tab/tab.d.ts +17 -17
  56. package/lib/table/table-sort-header.d.ts +19 -20
  57. package/lib/table/table.d.ts +27 -25
  58. package/lib/tabs/tabs.d.ts +16 -17
  59. package/lib/textarea/textarea.d.ts +41 -39
  60. package/lib/three-column-layout/three-column-layout.d.ts +26 -26
  61. package/lib/tooltip/tooltip.d.ts +25 -23
  62. package/lib/two-column-layout/two-column-layout.d.ts +22 -22
  63. package/package.json +16 -11
  64. package/README.md +0 -34
  65. package/experimental/index.d.ts +0 -0
  66. package/experimental/package.json +0 -11
  67. package/experimental/react-components.esm.js +0 -1
  68. package/experimental/react-components.umd.js +0 -8
  69. package/lib/card/card-actions.d.ts +0 -13
  70. package/lib/card/card-content.d.ts +0 -13
  71. package/lib/card/card-group.d.ts +0 -13
  72. package/lib/card/card-image.d.ts +0 -18
  73. package/lib/card/card.d.ts +0 -22
  74. package/lib/card/index.d.ts +0 -5
  75. package/lib/form/index.d.ts +0 -1
  76. package/lib/form/validators.d.ts +0 -10
  77. package/react-components.esm.js +0 -3383
  78. package/react-components.umd.js +0 -3443
@@ -1,30 +1,30 @@
1
- import React, { FC } from "react";
2
- import { Margins } from "../../common/styling";
3
- declare type RequirementType = "optional" | "required";
4
- interface WCProps extends Margins {
5
- label?: string;
6
- labelsize?: string;
7
- requirement?: RequirementType;
8
- error?: string;
9
- helptext?: string;
10
- id?: string;
11
- }
12
- declare global {
13
- namespace JSX {
14
- interface IntrinsicElements {
15
- "goa-form-item": WCProps & React.HTMLAttributes<HTMLElement>;
16
- }
17
- }
18
- }
19
- interface GoAFormItemProps extends Margins {
20
- label?: string;
21
- labelSize?: string;
22
- requirement?: RequirementType;
23
- error?: string;
24
- helpText?: string;
25
- children?: React.ReactNode;
26
- testId?: string;
27
- id?: string;
28
- }
29
- export declare const GoAFormItem: FC<GoAFormItemProps>;
30
- export default GoAFormItem;
1
+ import { Margins } from "../../common/styling";
2
+ export type GoAFormItemRequirement = "optional" | "required";
3
+ export type GoAFormItemLabelSize = "regular" | "large";
4
+ interface WCProps extends Margins {
5
+ label?: string;
6
+ labelsize?: GoAFormItemLabelSize;
7
+ requirement?: GoAFormItemRequirement;
8
+ error?: string;
9
+ helptext?: string;
10
+ id?: string;
11
+ }
12
+ declare global {
13
+ namespace JSX {
14
+ interface IntrinsicElements {
15
+ "goa-form-item": WCProps & React.HTMLAttributes<HTMLElement>;
16
+ }
17
+ }
18
+ }
19
+ export interface GoAFormItemProps extends Margins {
20
+ label?: string;
21
+ labelSize?: GoAFormItemLabelSize;
22
+ requirement?: GoAFormItemRequirement;
23
+ error?: string;
24
+ helpText?: string;
25
+ children?: React.ReactNode;
26
+ testId?: string;
27
+ id?: string;
28
+ }
29
+ export declare function GoAFormItem({ children, helpText, error, requirement, label, labelSize, mt, mr, mb, ml, testId, id, }: GoAFormItemProps): JSX.Element;
30
+ export default GoAFormItem;
@@ -1,19 +1,19 @@
1
- import React from "react";
2
- export declare type GoAFormStepStatusType = "complete" | "incomplete";
3
- interface WCProps {
4
- text: string;
5
- status?: GoAFormStepStatusType;
6
- }
7
- declare global {
8
- namespace JSX {
9
- interface IntrinsicElements {
10
- "goa-form-step": WCProps & React.HTMLAttributes<HTMLElement>;
11
- }
12
- }
13
- }
14
- export interface FormStepProps {
15
- text: string;
16
- status?: GoAFormStepStatusType;
17
- }
18
- export declare function GoAFormStep(props: FormStepProps): JSX.Element;
19
- export default GoAFormStep;
1
+ export type GoAFormStepStatusType = "complete" | "incomplete";
2
+ interface WCProps {
3
+ text: string;
4
+ status?: GoAFormStepStatusType;
5
+ }
6
+ declare global {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ "goa-form-step": WCProps & React.HTMLAttributes<HTMLElement>;
10
+ }
11
+ }
12
+ }
13
+ export interface GoAFormStepProps {
14
+ text: string;
15
+ status?: GoAFormStepStatusType;
16
+ }
17
+ export type FormStepProps = GoAFormStepProps;
18
+ export declare function GoAFormStep(props: GoAFormStepProps): import("react/jsx-runtime").JSX.Element;
19
+ export default GoAFormStep;
@@ -1,21 +1,22 @@
1
- import React, { ReactNode } from "react";
2
- import { Margins } from "../../common/styling";
3
- interface WCProps extends Margins {
4
- ref?: React.MutableRefObject<HTMLElement | null>;
5
- step?: number;
6
- }
7
- declare global {
8
- namespace JSX {
9
- interface IntrinsicElements {
10
- "goa-form-stepper": WCProps & React.HTMLAttributes<HTMLElement>;
11
- }
12
- }
13
- }
14
- export interface FormStepperProps extends Margins {
15
- step?: number;
16
- testId?: string;
17
- children?: ReactNode;
18
- onChange?: (step: number) => void;
19
- }
20
- export declare function GoAFormStepper({ testId, step, mt, mb, ml, mr, onChange, children, }: FormStepperProps): JSX.Element;
21
- export default GoAFormStepper;
1
+ import { ReactNode } from "react";
2
+ import { Margins } from "../../common/styling";
3
+ interface WCProps extends Margins {
4
+ ref?: React.MutableRefObject<HTMLElement | null>;
5
+ step?: number;
6
+ }
7
+ declare global {
8
+ namespace JSX {
9
+ interface IntrinsicElements {
10
+ "goa-form-stepper": WCProps & React.HTMLAttributes<HTMLElement>;
11
+ }
12
+ }
13
+ }
14
+ export interface GoAFormStepperProps extends Margins {
15
+ step?: number;
16
+ testId?: string;
17
+ children?: ReactNode;
18
+ onChange?: (step: number) => void;
19
+ }
20
+ export type FormStepperProps = GoAFormStepperProps;
21
+ export declare function GoAFormStepper({ testId, step, mt, mb, ml, mr, onChange, children, }: GoAFormStepperProps): import("react/jsx-runtime").JSX.Element;
22
+ export default GoAFormStepper;
@@ -1,21 +1,20 @@
1
- import React, { FC } from "react";
2
- import { Margins, Spacing } from "../../common/styling";
3
- interface WCProps extends Margins {
4
- gap?: Spacing;
5
- minchildwidth: string;
6
- }
7
- declare global {
8
- namespace JSX {
9
- interface IntrinsicElements {
10
- "goa-grid": WCProps & React.HTMLAttributes<HTMLElement>;
11
- }
12
- }
13
- }
14
- interface Props extends Margins {
15
- gap?: Spacing;
16
- minChildWidth: string;
17
- testId?: string;
18
- children?: React.ReactNode;
19
- }
20
- export declare const GoAGrid: FC<Props>;
21
- export default GoAGrid;
1
+ import { Margins, Spacing } from "../../common/styling";
2
+ interface WCProps extends Margins {
3
+ gap?: Spacing;
4
+ minchildwidth: string;
5
+ }
6
+ declare global {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ "goa-grid": WCProps & React.HTMLAttributes<HTMLElement>;
10
+ }
11
+ }
12
+ }
13
+ export interface GoAGridProps extends Margins {
14
+ gap?: Spacing;
15
+ minChildWidth: string;
16
+ testId?: string;
17
+ children?: React.ReactNode;
18
+ }
19
+ export declare function GoAGrid({ gap, minChildWidth, mt, mr, mb, ml, testId, children, }: GoAGridProps): JSX.Element;
20
+ export default GoAGrid;
@@ -1,6 +1,5 @@
1
- import React, { FC } from "react";
2
- export declare type GoAHeroBannerActionsType = {
3
- children?: React.ReactNode;
4
- };
5
- export declare const GoAHeroBannerActions: FC<GoAHeroBannerActionsType>;
6
- export default GoAHeroBannerActions;
1
+ export type GoAHeroBannerActionsType = {
2
+ children?: React.ReactNode;
3
+ };
4
+ export declare function GoAHeroBannerActions({ children, }: GoAHeroBannerActionsType): JSX.Element;
5
+ export default GoAHeroBannerActions;
@@ -1,28 +1,27 @@
1
- import React, { FC } from "react";
2
- interface WCProps {
3
- heading: string;
4
- backgroundurl?: string;
5
- minheight?: string;
6
- maxcontentwidth?: string;
7
- backgroundcolor?: string;
8
- textcolor?: string;
9
- }
10
- declare global {
11
- namespace JSX {
12
- interface IntrinsicElements {
13
- "goa-hero-banner": WCProps & React.HTMLAttributes<HTMLElement>;
14
- }
15
- }
16
- }
17
- interface Props {
18
- heading: string;
19
- backgroundUrl?: string;
20
- minHeight?: string;
21
- testId?: string;
22
- children?: React.ReactNode;
23
- maxContentWidth?: string;
24
- backgroundColor?: string;
25
- textColor?: string;
26
- }
27
- export declare const GoAHeroBanner: FC<Props>;
28
- export default GoAHeroBanner;
1
+ interface WCProps {
2
+ heading: string;
3
+ backgroundurl?: string;
4
+ minheight?: string;
5
+ maxcontentwidth?: string;
6
+ backgroundcolor?: string;
7
+ textcolor?: string;
8
+ }
9
+ declare global {
10
+ namespace JSX {
11
+ interface IntrinsicElements {
12
+ "goa-hero-banner": WCProps & React.HTMLAttributes<HTMLElement>;
13
+ }
14
+ }
15
+ }
16
+ export interface GoAHeroBannerProps {
17
+ heading: string;
18
+ backgroundUrl?: string;
19
+ minHeight?: string;
20
+ testId?: string;
21
+ children?: React.ReactNode;
22
+ maxContentWidth?: string;
23
+ backgroundColor?: string;
24
+ textColor?: string;
25
+ }
26
+ export declare function GoAHeroBanner({ heading, backgroundUrl, minHeight, maxContentWidth, backgroundColor, textColor, children, testId, }: GoAHeroBannerProps): JSX.Element;
27
+ export default GoAHeroBanner;
@@ -1,39 +1,41 @@
1
- import React from "react";
2
- import { Margins } from "../../common/styling";
3
- declare type GoAIconFilledType = `${GoAIconType}-${IconTheme}`;
4
- interface IonIconProps {
5
- name: GoAIconType | GoAIconFilledType;
6
- }
7
- interface IonIconElement extends HTMLElement {
8
- }
9
- declare global {
10
- namespace JSX {
11
- interface IntrinsicElements {
12
- "ion-icon": IonIconProps & React.HTMLAttributes<IonIconElement>;
13
- }
14
- }
15
- }
16
- declare global {
17
- namespace JSX {
18
- interface IntrinsicElements {
19
- "goa-icon": WCProps & React.HTMLAttributes<IonIconElement>;
20
- }
21
- }
22
- }
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 {
28
- type: GoAIconType;
29
- size?: IconSize;
30
- theme?: IconTheme;
31
- testId?: string;
32
- }
33
- interface WCProps extends Margins {
34
- type: GoAIconType;
35
- theme?: IconTheme;
36
- size?: IconSize;
37
- }
38
- export declare function GoAIcon({ type, theme, size, mt, mr, mb, ml, testId, }: Props): JSX.Element;
39
- export {};
1
+ import { Margins } from "../../common/styling";
2
+ export type GoAIconFilledType = `${GoAIconType}-${GoAIconTheme}`;
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 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 type GoAIconSize = "small" | "medium" | "large" | "xlarge";
24
+ export type GoAIconVariant = "primary" | "secondary" | "tertiary";
25
+ export type GoAIconTheme = "outline" | "filled" | "sharp";
26
+ export type IconSize = GoAIconSize;
27
+ export type IconVariant = GoAIconVariant;
28
+ export type IconTheme = GoAIconTheme;
29
+ export interface GoAIconProps extends Margins {
30
+ type: GoAIconType;
31
+ size?: GoAIconSize;
32
+ theme?: GoAIconTheme;
33
+ testId?: string;
34
+ }
35
+ interface WCProps extends Margins {
36
+ type: GoAIconType;
37
+ theme?: GoAIconTheme;
38
+ size?: GoAIconSize;
39
+ }
40
+ export declare function GoAIcon({ type, theme, size, mt, mr, mb, ml, testId, }: GoAIconProps): JSX.Element;
41
+ export {};
@@ -1,31 +1,33 @@
1
- import React, { FC } from "react";
2
- import { Margins } from "../../common/styling";
3
- import { IconSize, GoAIconType } from "../icon/icon";
4
- export declare type IconButtonVariant = "color" | "nocolor" | "dark" | "destructive";
5
- interface WCProps extends Margins {
6
- ref: React.RefObject<HTMLElement>;
7
- icon: GoAIconType;
8
- size?: IconSize;
9
- variant?: IconButtonVariant;
10
- title?: string;
11
- disabled?: boolean;
12
- }
13
- declare global {
14
- namespace JSX {
15
- interface IntrinsicElements {
16
- "goa-icon-button": WCProps & React.HTMLAttributes<HTMLButtonElement>;
17
- }
18
- }
19
- }
20
- interface Props extends Margins {
21
- icon: GoAIconType;
22
- size?: IconSize;
23
- variant?: IconButtonVariant;
24
- title?: string;
25
- disabled?: boolean;
26
- children?: React.ReactNode;
27
- onClick?: () => void;
28
- testId?: string;
29
- }
30
- export declare const GoAIconButton: FC<Props>;
31
- export {};
1
+ import { Margins } from "../../common/styling";
2
+ import { GoAIconSize, GoAIconType } from "../icon/icon";
3
+ export type GoAIconButtonVariant = "color" | "nocolor" | "dark" | "destructive";
4
+ export type IconButtonVariant = GoAIconButtonVariant;
5
+ interface WCProps extends Margins {
6
+ ref: React.RefObject<HTMLElement>;
7
+ icon: GoAIconType;
8
+ size?: GoAIconSize;
9
+ variant?: GoAIconButtonVariant;
10
+ title?: string;
11
+ disabled?: boolean;
12
+ arialabel?: string;
13
+ }
14
+ declare global {
15
+ namespace JSX {
16
+ interface IntrinsicElements {
17
+ "goa-icon-button": WCProps & React.HTMLAttributes<HTMLButtonElement>;
18
+ }
19
+ }
20
+ }
21
+ export interface GoAIconButtonProps extends Margins {
22
+ icon: GoAIconType;
23
+ size?: GoAIconSize;
24
+ variant?: GoAIconButtonVariant;
25
+ title?: string;
26
+ disabled?: boolean;
27
+ children?: React.ReactNode;
28
+ onClick?: () => void;
29
+ testId?: string;
30
+ ariaLabel?: string;
31
+ }
32
+ export declare function GoAIconButton({ icon, disabled, variant, onClick, size, title, ariaLabel, testId, children, mt, mr, mb, ml, }: GoAIconButtonProps): JSX.Element;
33
+ export {};