@abgov/react-components 4.17.0-alpha.2 → 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.
- package/lib/accordion/accordion.d.ts +6 -6
- package/lib/app-header/app-header.d.ts +3 -3
- package/lib/app-header-menu/app-header-menu.d.ts +1 -1
- package/lib/badge/badge.d.ts +13 -13
- package/lib/block/block.d.ts +4 -3
- package/lib/button/button.d.ts +15 -12
- package/lib/button-group/button-group.d.ts +10 -9
- package/lib/calendar/calendar.d.ts +9 -9
- package/lib/callout/callout.d.ts +10 -9
- package/lib/card/card-actions.d.ts +3 -3
- package/lib/card/card-content.d.ts +3 -3
- package/lib/card/card-group.d.ts +3 -3
- package/lib/card/card-image.d.ts +3 -3
- package/lib/card/card.d.ts +3 -3
- package/lib/checkbox/checkbox.d.ts +6 -5
- package/lib/chip/chip.d.ts +6 -6
- package/lib/circular-progress/circular-progress.d.ts +11 -9
- package/lib/container/container.d.ts +12 -12
- package/lib/date-picker/date-picker.d.ts +9 -9
- package/lib/details/details.d.ts +4 -3
- package/lib/divider/divider.d.ts +4 -3
- package/lib/dropdown/dropdown-item.d.ts +4 -4
- package/lib/dropdown/dropdown.d.ts +3 -3
- package/lib/file-upload-card/file-upload-card.d.ts +3 -3
- package/lib/file-upload-input/file-upload-input.d.ts +6 -6
- package/lib/footer/footer.d.ts +4 -3
- package/lib/footer-meta-section/footer-meta-section.d.ts +4 -3
- package/lib/footer-nav-section/footer-nav-section.d.ts +3 -3
- package/lib/form/form-item.d.ts +9 -8
- package/lib/form-step/form-step.d.ts +4 -3
- package/lib/form-stepper/form-stepper.d.ts +4 -3
- package/lib/grid/grid.d.ts +3 -3
- package/lib/hero-banner/hero-banner-actions.d.ts +2 -2
- package/lib/hero-banner/hero-banner.d.ts +3 -3
- package/lib/icon/icon.d.ts +14 -11
- package/lib/icon-button/icon-button.d.ts +10 -9
- package/lib/input/input.d.ts +22 -21
- package/lib/microsite-header/microsite-header.d.ts +15 -12
- package/lib/modal/modal.d.ts +17 -15
- package/lib/notification/notification.d.ts +11 -9
- package/lib/one-column-layout/one-column-layout.d.ts +4 -3
- package/lib/page-block/page-block.d.ts +4 -3
- package/lib/pages/pages.d.ts +3 -3
- package/lib/pagination/pagination.d.ts +4 -3
- package/lib/popover/popover.d.ts +6 -6
- package/lib/radio-group/radio-group.d.ts +8 -7
- package/lib/radio-group/radio.d.ts +3 -3
- package/lib/side-menu/side-menu.d.ts +4 -3
- package/lib/side-menu-group/side-menu-group.d.ts +3 -3
- package/lib/side-menu-heading/side-menu-heading.d.ts +3 -3
- package/lib/skeleton/skeleton.d.ts +11 -9
- package/lib/spacer/spacer.d.ts +4 -3
- package/lib/spinner/spinner.d.ts +4 -3
- package/lib/tab/tab.d.ts +4 -3
- package/lib/table/table-sort-header.d.ts +3 -3
- package/lib/table/table.d.ts +8 -6
- package/lib/tabs/tabs.d.ts +3 -3
- package/lib/textarea/textarea.d.ts +3 -3
- package/lib/three-column-layout/three-column-layout.d.ts +3 -3
- package/lib/tooltip/tooltip.d.ts +10 -8
- package/lib/two-column-layout/two-column-layout.d.ts +3 -3
- package/package.json +1 -1
- package/react-components.esm.js +135 -135
- package/react-components.umd.js +89 -89
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
declare type
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type GoAFileUploadInputVariant = "dragdrop" | "button";
|
|
3
3
|
interface WCProps {
|
|
4
4
|
ref: React.MutableRefObject<HTMLElement | null>;
|
|
5
|
-
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
|
|
17
|
-
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, }:
|
|
22
|
+
export declare function GoAFileUploadInput({ variant, accept, maxFileSize, onSelectFile, }: GoAFileUploadInputProps): JSX.Element;
|
|
23
23
|
export default GoAFileUploadInput;
|
package/lib/footer/footer.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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
|
|
12
|
+
export interface GoAAppFooterProps {
|
|
13
13
|
maxContentWidth?: string;
|
|
14
14
|
children?: ReactNode;
|
|
15
15
|
testId?: string;
|
|
16
16
|
}
|
|
17
|
-
export declare
|
|
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
|
|
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
|
|
9
|
+
export interface GoAAppFooterMetaSectionProps {
|
|
10
10
|
children?: ReactNode;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
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
|
|
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
|
|
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, }:
|
|
19
|
+
export declare function GoAAppFooterNavSection({ heading, maxColumnCount, testId, children, }: GoAFooterNavSectionProps): JSX.Element;
|
|
20
20
|
export default GoAAppFooterNavSection;
|
package/lib/form/form-item.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { Margins } from "../../common/styling";
|
|
3
|
-
declare type
|
|
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?:
|
|
7
|
-
requirement?:
|
|
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?:
|
|
22
|
-
requirement?:
|
|
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
|
|
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
|
-
|
|
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
|
|
14
|
+
export interface GoAFormStepProps {
|
|
15
15
|
text: string;
|
|
16
16
|
status?: GoAFormStepStatusType;
|
|
17
17
|
}
|
|
18
|
-
export declare
|
|
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
|
|
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
|
|
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
|
|
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;
|
package/lib/grid/grid.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
export declare type GoAHeroBannerActionsType = {
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
};
|
|
5
|
-
export declare
|
|
5
|
+
export declare function GoAHeroBannerActions({ children, }: GoAHeroBannerActionsType): JSX.Element;
|
|
6
6
|
export default GoAHeroBannerActions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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
|
|
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
|
|
27
|
+
export declare function GoAHeroBanner({ heading, backgroundUrl, minHeight, maxContentWidth, backgroundColor, textColor, children, testId, }: GoAHeroBannerProps): JSX.Element;
|
|
28
28
|
export default GoAHeroBanner;
|
package/lib/icon/icon.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { Margins } from "../../common/styling";
|
|
3
|
-
declare type GoAIconFilledType = `${GoAIconType}-${
|
|
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
|
|
25
|
-
export declare type
|
|
26
|
-
export declare type
|
|
27
|
-
|
|
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?:
|
|
30
|
-
theme?:
|
|
32
|
+
size?: GoAIconSize;
|
|
33
|
+
theme?: GoAIconTheme;
|
|
31
34
|
testId?: string;
|
|
32
35
|
}
|
|
33
36
|
interface WCProps extends Margins {
|
|
34
37
|
type: GoAIconType;
|
|
35
|
-
theme?:
|
|
36
|
-
size?:
|
|
38
|
+
theme?: GoAIconTheme;
|
|
39
|
+
size?: GoAIconSize;
|
|
37
40
|
}
|
|
38
|
-
export declare function GoAIcon({ type, theme, size, mt, mr, mb, ml, testId, }:
|
|
41
|
+
export declare function GoAIcon({ type, theme, size, mt, mr, mb, ml, testId, }: GoAIconProps): JSX.Element;
|
|
39
42
|
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { Margins } from "../../common/styling";
|
|
3
|
-
import {
|
|
4
|
-
export declare type
|
|
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?:
|
|
9
|
-
variant?:
|
|
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
|
|
21
|
+
export interface GoAIconButtonProps extends Margins {
|
|
21
22
|
icon: GoAIconType;
|
|
22
|
-
size?:
|
|
23
|
-
variant?:
|
|
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
|
|
31
|
+
export declare function GoAIconButton({ icon, disabled, variant, onClick, size, title, testId, children, mt, mr, mb, ml, }: GoAIconButtonProps): JSX.Element;
|
|
31
32
|
export {};
|
package/lib/input/input.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
103
|
-
export declare
|
|
104
|
-
export declare
|
|
105
|
-
export declare
|
|
106
|
-
export declare
|
|
107
|
-
export declare
|
|
108
|
-
export declare
|
|
109
|
-
export declare
|
|
110
|
-
export declare
|
|
111
|
-
export declare
|
|
112
|
-
export declare
|
|
113
|
-
export declare
|
|
114
|
-
export declare
|
|
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
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
declare global {
|
|
3
3
|
namespace JSX {
|
|
4
4
|
interface IntrinsicElements {
|
|
5
|
-
"goa-microsite-header":
|
|
5
|
+
"goa-microsite-header": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
export declare type
|
|
10
|
-
|
|
11
|
-
|
|
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?:
|
|
16
|
-
headerurltarget?:
|
|
17
|
+
feedbackurltarget?: GoALinkTarget;
|
|
18
|
+
headerurltarget?: GoALinkTarget;
|
|
17
19
|
}
|
|
18
|
-
export interface
|
|
19
|
-
type:
|
|
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?:
|
|
25
|
-
headerUrlTarget?:
|
|
26
|
+
feedbackUrlTarget?: GoALinkTarget;
|
|
27
|
+
headerUrlTarget?: GoALinkTarget;
|
|
26
28
|
}
|
|
27
|
-
export declare
|
|
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;
|
package/lib/modal/modal.d.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare type
|
|
3
|
-
export declare type
|
|
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:
|
|
6
|
-
heading?:
|
|
7
|
+
ref: RefObject<HTMLElement>;
|
|
8
|
+
heading?: ReactNode;
|
|
7
9
|
open?: boolean;
|
|
8
10
|
maxwidth?: string;
|
|
9
11
|
closable?: boolean;
|
|
10
|
-
transition?:
|
|
11
|
-
|
|
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
|
|
21
|
-
heading?:
|
|
22
|
+
export interface GoAModalProps {
|
|
23
|
+
heading?: ReactNode;
|
|
22
24
|
maxWidth?: string;
|
|
23
|
-
actions?:
|
|
25
|
+
actions?: ReactElement;
|
|
24
26
|
onClose?: () => void;
|
|
25
|
-
transition?:
|
|
26
|
-
children?:
|
|
27
|
+
transition?: GoAModalTransition;
|
|
28
|
+
children?: ReactNode;
|
|
27
29
|
open?: boolean;
|
|
28
|
-
|
|
29
|
-
calloutVariant?: CalloutVariant;
|
|
30
|
+
calloutVariant?: GoAModalCalloutVariant;
|
|
30
31
|
testId?: string;
|
|
31
32
|
width?: string;
|
|
33
|
+
type?: string;
|
|
32
34
|
}
|
|
33
|
-
export declare
|
|
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
|
-
|
|
2
|
-
export declare type
|
|
3
|
-
export declare type
|
|
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:
|
|
8
|
+
type: GoANotificationType;
|
|
7
9
|
maxcontentwidth?: string;
|
|
8
|
-
arialive?:
|
|
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
|
|
18
|
-
type?:
|
|
19
|
-
ariaLive?:
|
|
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, }:
|
|
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
|
|
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
|
|
9
|
+
export interface GoAPageProps {
|
|
10
10
|
children?: ReactNode;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
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
|
|
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
|
|
12
|
+
export interface GoAPageBlockProps {
|
|
13
13
|
width: "full" | string;
|
|
14
14
|
testId?: string;
|
|
15
15
|
children?: ReactNode;
|
|
16
16
|
}
|
|
17
|
-
export declare
|
|
17
|
+
export declare type PageBlockProps = GoAPageBlockProps;
|
|
18
|
+
export declare function GoAPageBlock(props: PageBlockProps): JSX.Element;
|
package/lib/pages/pages.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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
|
|
13
|
+
export interface GoAPagesProps extends Margins {
|
|
14
14
|
current?: number;
|
|
15
15
|
children?: ReactNode;
|
|
16
16
|
}
|
|
17
|
-
export declare function GoAPages(props:
|
|
17
|
+
export declare function GoAPages(props: GoAPagesProps): JSX.Element;
|
|
18
18
|
export default GoAPages;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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
|
|
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
|
|
25
|
+
export declare type PaginationProps = GoAPaginationProps;
|
|
26
|
+
export declare function GoAPagination(props: GoAPaginationProps): JSX.Element;
|
|
26
27
|
export default GoAPagination;
|