@abgov/react-components 4.18.1 → 4.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/styling.d.ts +12 -9
- package/index.d.ts +56 -59
- package/index.js +238 -0
- package/index.js.map +1 -0
- package/index.mjs +22707 -0
- package/index.mjs.map +1 -0
- package/lib/accordion/accordion.d.ts +28 -28
- package/lib/app-header/app-header.d.ts +21 -22
- package/lib/app-header-menu/app-header-menu.d.ts +20 -20
- package/lib/badge/badge.d.ts +40 -41
- package/lib/block/block.d.ts +23 -23
- package/lib/button/button.d.ts +38 -38
- package/lib/button-group/button-group.d.ts +23 -24
- package/lib/calendar/calendar.d.ts +24 -25
- package/lib/callout/callout.d.ts +25 -26
- package/lib/checkbox/checkbox.d.ts +37 -38
- package/lib/chip/chip.d.ts +28 -29
- package/lib/circular-progress/circular-progress.d.ts +28 -29
- package/lib/container/container.d.ts +29 -29
- package/lib/date-picker/date-picker.d.ts +24 -25
- package/lib/details/details.d.ts +21 -21
- package/lib/divider/divider.d.ts +13 -14
- package/lib/dropdown/dropdown-item.d.ts +23 -24
- package/lib/dropdown/dropdown.d.ts +49 -50
- package/lib/file-upload-card/file-upload-card.d.ts +26 -27
- package/lib/file-upload-input/file-upload-input.d.ts +22 -23
- package/lib/footer/footer.d.ts +19 -19
- package/lib/footer-meta-section/footer-meta-section.d.ts +14 -14
- package/lib/footer-nav-section/footer-nav-section.d.ts +20 -20
- package/lib/{form → form-item}/form-item.d.ts +30 -31
- package/lib/form-step/form-step.d.ts +19 -20
- package/lib/form-stepper/form-stepper.d.ts +22 -22
- package/lib/grid/grid.d.ts +20 -21
- package/lib/hero-banner/hero-banner-actions.d.ts +5 -6
- package/lib/hero-banner/hero-banner.d.ts +27 -28
- package/lib/icon/icon.d.ts +41 -42
- package/lib/icon-button/icon-button.d.ts +31 -32
- package/lib/input/input.d.ts +112 -113
- package/lib/microsite-header/microsite-header.d.ts +30 -31
- package/lib/modal/modal.d.ts +36 -36
- package/lib/notification/notification.d.ts +27 -28
- package/lib/one-column-layout/one-column-layout.d.ts +14 -14
- package/lib/page-block/page-block.d.ts +19 -18
- package/lib/pages/pages.d.ts +18 -18
- package/lib/pagination/pagination.d.ts +26 -27
- package/lib/popover/popover.d.ts +27 -27
- package/lib/radio-group/radio-group.d.ts +32 -33
- package/lib/radio-group/radio.d.ts +29 -30
- package/lib/side-menu/side-menu.d.ts +14 -14
- package/lib/side-menu-group/side-menu-group.d.ts +17 -17
- package/lib/side-menu-heading/side-menu-heading.d.ts +19 -19
- package/lib/skeleton/skeleton.d.ts +27 -28
- package/lib/spacer/spacer.d.ts +20 -21
- package/lib/spinner/spinner.d.ts +25 -26
- package/lib/tab/tab.d.ts +17 -18
- package/lib/table/table-sort-header.d.ts +19 -20
- package/lib/table/table.d.ts +27 -27
- package/lib/tabs/tabs.d.ts +16 -17
- package/lib/textarea/textarea.d.ts +41 -42
- package/lib/three-column-layout/three-column-layout.d.ts +26 -26
- package/lib/tooltip/tooltip.d.ts +25 -25
- package/lib/two-column-layout/two-column-layout.d.ts +22 -22
- package/package.json +14 -14
- package/README.md +0 -34
- package/experimental/index.d.ts +0 -0
- package/experimental/package.json +0 -11
- package/experimental/react-components.esm.js +0 -1
- package/experimental/react-components.umd.js +0 -8
- package/lib/card/card-actions.d.ts +0 -13
- package/lib/card/card-content.d.ts +0 -13
- package/lib/card/card-group.d.ts +0 -13
- package/lib/card/card-image.d.ts +0 -18
- package/lib/card/card.d.ts +0 -22
- package/lib/card/index.d.ts +0 -5
- package/lib/form/index.d.ts +0 -1
- package/lib/form/validators.d.ts +0 -10
- package/react-components.esm.js +0 -3435
- package/react-components.umd.js +0 -3494
|
@@ -1,31 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
export
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export declare
|
|
19
|
-
export
|
|
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
|
|
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;
|
package/lib/grid/grid.d.ts
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
export
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
export
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
export
|
|
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;
|
package/lib/icon/icon.d.ts
CHANGED
|
@@ -1,42 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
export
|
|
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
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
export
|
|
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 {};
|