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