@abgov/react-components 4.17.0-alpha.3 → 4.17.0-alpha.30
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 +24129 -0
- package/index.js.map +1 -0
- package/index.mjs +24129 -0
- package/index.mjs.map +1 -0
- package/lib/accordion/accordion.d.ts +28 -28
- package/lib/app-header/app-header.d.ts +23 -22
- package/lib/app-header-menu/app-header-menu.d.ts +21 -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 +25 -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 +32 -29
- package/lib/date-picker/date-picker.d.ts +27 -25
- package/lib/details/details.d.ts +22 -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 +27 -27
- package/lib/file-upload-input/file-upload-input.d.ts +23 -23
- package/lib/footer/footer.d.ts +19 -19
- package/lib/footer-meta-section/footer-meta-section.d.ts +15 -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 +52 -42
- package/lib/icon-button/icon-button.d.ts +33 -32
- package/lib/input/input.d.ts +112 -116
- package/lib/microsite-header/microsite-header.d.ts +30 -31
- package/lib/modal/modal.d.ts +39 -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 +15 -14
- package/lib/side-menu-group/side-menu-group.d.ts +18 -17
- package/lib/side-menu-heading/side-menu-heading.d.ts +20 -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 +17 -17
- package/lib/textarea/textarea.d.ts +41 -39
- 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 +16 -11
- 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 -3383
- package/react-components.umd.js +0 -3443
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { Margins } from "../../common/styling";
|
|
3
|
-
export
|
|
4
|
-
interface WCProps extends Margins {
|
|
5
|
-
open?: boolean;
|
|
6
|
-
headingSize?: GoAHeadingSize;
|
|
7
|
-
heading: string;
|
|
8
|
-
secondaryText?: string;
|
|
9
|
-
headingContent?: ReactNode;
|
|
10
|
-
}
|
|
11
|
-
declare global {
|
|
12
|
-
namespace JSX {
|
|
13
|
-
interface IntrinsicElements {
|
|
14
|
-
"goa-accordion": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
export interface GoAAccordionProps extends Margins {
|
|
19
|
-
open?: boolean;
|
|
20
|
-
headingSize?: GoAHeadingSize;
|
|
21
|
-
secondaryText?: string;
|
|
22
|
-
heading: string;
|
|
23
|
-
headingContent?: ReactNode;
|
|
24
|
-
testid?: string;
|
|
25
|
-
children: ReactNode;
|
|
26
|
-
}
|
|
27
|
-
export declare function GoAAccordion({ open, heading, headingSize, secondaryText, headingContent, testid, children, mt, mr, mb, ml, }: GoAAccordionProps): JSX.Element;
|
|
28
|
-
export default GoAAccordion;
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { Margins } from "../../common/styling";
|
|
3
|
+
export type GoAHeadingSize = "small" | "medium";
|
|
4
|
+
interface WCProps extends Margins {
|
|
5
|
+
open?: boolean;
|
|
6
|
+
headingSize?: GoAHeadingSize;
|
|
7
|
+
heading: string;
|
|
8
|
+
secondaryText?: string;
|
|
9
|
+
headingContent?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
declare global {
|
|
12
|
+
namespace JSX {
|
|
13
|
+
interface IntrinsicElements {
|
|
14
|
+
"goa-accordion": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export interface GoAAccordionProps extends Margins {
|
|
19
|
+
open?: boolean;
|
|
20
|
+
headingSize?: GoAHeadingSize;
|
|
21
|
+
secondaryText?: string;
|
|
22
|
+
heading: string;
|
|
23
|
+
headingContent?: ReactNode;
|
|
24
|
+
testid?: string;
|
|
25
|
+
children: ReactNode;
|
|
26
|
+
}
|
|
27
|
+
export declare function GoAAccordion({ open, heading, headingSize, secondaryText, headingContent, testid, children, mt, mr, mb, ml, }: GoAAccordionProps): JSX.Element;
|
|
28
|
+
export default GoAAccordion;
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
declare global {
|
|
8
|
-
namespace JSX {
|
|
9
|
-
interface IntrinsicElements {
|
|
10
|
-
"goa-app-header": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export interface GoAAppHeaderProps {
|
|
15
|
-
heading?: string;
|
|
16
|
-
url?: string;
|
|
17
|
-
maxContentWidth?: string;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export
|
|
1
|
+
interface WCProps {
|
|
2
|
+
heading?: string;
|
|
3
|
+
url?: string;
|
|
4
|
+
maxcontentwidth?: string;
|
|
5
|
+
fullmenubreakpoint?: number;
|
|
6
|
+
}
|
|
7
|
+
declare global {
|
|
8
|
+
namespace JSX {
|
|
9
|
+
interface IntrinsicElements {
|
|
10
|
+
"goa-app-header": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export interface GoAAppHeaderProps {
|
|
15
|
+
heading?: string;
|
|
16
|
+
url?: string;
|
|
17
|
+
maxContentWidth?: string;
|
|
18
|
+
fullMenuBreakpoint?: number;
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
testId?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function GoAAppHeader({ heading, url, maxContentWidth, fullMenuBreakpoint, testId, children, }: GoAAppHeaderProps): JSX.Element;
|
|
23
|
+
export default GoAAppHeader;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { GoAIconType } from "../icon/icon";
|
|
3
|
-
interface WCProps {
|
|
4
|
-
heading: string;
|
|
5
|
-
leadingicon?: GoAIconType;
|
|
6
|
-
}
|
|
7
|
-
export interface GoAAppHeaderMenuProps {
|
|
8
|
-
heading: string;
|
|
9
|
-
leadingIcon?: GoAIconType;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { GoAIconType } from "../icon/icon";
|
|
3
|
+
interface WCProps {
|
|
4
|
+
heading: string;
|
|
5
|
+
leadingicon?: GoAIconType;
|
|
6
|
+
}
|
|
7
|
+
export interface GoAAppHeaderMenuProps {
|
|
8
|
+
heading: string;
|
|
9
|
+
leadingIcon?: GoAIconType;
|
|
10
|
+
testId?: string;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
declare global {
|
|
14
|
+
namespace JSX {
|
|
15
|
+
interface IntrinsicElements {
|
|
16
|
+
"goa-app-header-menu": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export declare function GoAAppHeaderMenu(props: GoAAppHeaderMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export default GoAAppHeaderMenu;
|
package/lib/badge/badge.d.ts
CHANGED
|
@@ -1,41 +1,40 @@
|
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
export
|
|
41
|
-
export {};
|
|
1
|
+
import { Margins } from "../../common/styling";
|
|
2
|
+
export type GoABadgeType = "information" | "success" | "important" | "emergency" | "dark" | "midtone" | "light";
|
|
3
|
+
interface WCProps extends Margins {
|
|
4
|
+
type: GoABadgeType;
|
|
5
|
+
icon?: boolean;
|
|
6
|
+
content?: string;
|
|
7
|
+
arialabel?: string;
|
|
8
|
+
}
|
|
9
|
+
declare global {
|
|
10
|
+
namespace JSX {
|
|
11
|
+
interface IntrinsicElements {
|
|
12
|
+
"goa-badge": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export interface GoABadgeProps extends Margins {
|
|
17
|
+
type: GoABadgeType;
|
|
18
|
+
icon?: boolean;
|
|
19
|
+
content?: string;
|
|
20
|
+
testId?: string;
|
|
21
|
+
ariaLabel?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare function GoABadge({ type, content, icon, testId, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated
|
|
26
|
+
*/
|
|
27
|
+
export declare function GoAInfoBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated
|
|
30
|
+
*/
|
|
31
|
+
export declare function GoASuccessBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated
|
|
34
|
+
*/
|
|
35
|
+
export declare function GoAImportantBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated
|
|
38
|
+
*/
|
|
39
|
+
export declare function GoAEmergencyBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
|
|
40
|
+
export {};
|
package/lib/block/block.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { Alignment, Direction, Margins, Spacing } from "../../common/styling";
|
|
3
|
-
export interface WCProps extends Margins {
|
|
4
|
-
gap?: Spacing;
|
|
5
|
-
direction?: Direction;
|
|
6
|
-
alignment?: Alignment;
|
|
7
|
-
}
|
|
8
|
-
declare global {
|
|
9
|
-
namespace JSX {
|
|
10
|
-
interface IntrinsicElements {
|
|
11
|
-
"goa-block": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export interface GoABlockProps extends Margins {
|
|
16
|
-
gap?: Spacing;
|
|
17
|
-
direction?: Direction;
|
|
18
|
-
alignment?: Alignment;
|
|
19
|
-
testId?: string;
|
|
20
|
-
children?: ReactNode;
|
|
21
|
-
}
|
|
22
|
-
export
|
|
23
|
-
export declare function GoABlock(props: GoABlockProps): JSX.Element;
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { Alignment, Direction, Margins, Spacing } from "../../common/styling";
|
|
3
|
+
export interface WCProps extends Margins {
|
|
4
|
+
gap?: Spacing;
|
|
5
|
+
direction?: Direction;
|
|
6
|
+
alignment?: Alignment;
|
|
7
|
+
}
|
|
8
|
+
declare global {
|
|
9
|
+
namespace JSX {
|
|
10
|
+
interface IntrinsicElements {
|
|
11
|
+
"goa-block": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export interface GoABlockProps extends Margins {
|
|
16
|
+
gap?: Spacing;
|
|
17
|
+
direction?: Direction;
|
|
18
|
+
alignment?: Alignment;
|
|
19
|
+
testId?: string;
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
}
|
|
22
|
+
export type BlockProps = GoABlockProps;
|
|
23
|
+
export declare function GoABlock(props: GoABlockProps): import("react/jsx-runtime").JSX.Element;
|
package/lib/button/button.d.ts
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { Margins } from "../../common/styling";
|
|
3
|
-
import { GoAIconType } from "../icon/icon";
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
interface WCProps extends Margins {
|
|
11
|
-
type?: GoAButtonType;
|
|
12
|
-
size?: GoAButtonSize;
|
|
13
|
-
variant?: GoAButtonVariant;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
leadingicon?: string;
|
|
16
|
-
trailingicon?: string;
|
|
17
|
-
ref: React.RefObject<HTMLElement>;
|
|
18
|
-
}
|
|
19
|
-
declare global {
|
|
20
|
-
namespace JSX {
|
|
21
|
-
interface IntrinsicElements {
|
|
22
|
-
"goa-button": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export interface GoAButtonProps extends Margins {
|
|
27
|
-
type?: GoAButtonType;
|
|
28
|
-
size?: GoAButtonSize;
|
|
29
|
-
variant?: GoAButtonVariant;
|
|
30
|
-
disabled?: boolean;
|
|
31
|
-
leadingIcon?: GoAIconType;
|
|
32
|
-
trailingIcon?: GoAIconType;
|
|
33
|
-
onClick?: () => void;
|
|
34
|
-
testId?: string;
|
|
35
|
-
children?: ReactNode;
|
|
36
|
-
}
|
|
37
|
-
export declare function GoAButton({ disabled, type, size, variant, leadingIcon, trailingIcon, testId, children, onClick, mt, mr, mb, ml, }: GoAButtonProps): JSX.Element;
|
|
38
|
-
export default GoAButton;
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { Margins } from "../../common/styling";
|
|
3
|
+
import { GoAIconType } from "../icon/icon";
|
|
4
|
+
export type GoAButtonType = "primary" | "submit" | "secondary" | "tertiary" | "start";
|
|
5
|
+
export type GoAButtonSize = "compact" | "normal";
|
|
6
|
+
export type GoAButtonVariant = "normal" | "destructive";
|
|
7
|
+
export type ButtonType = GoAButtonType;
|
|
8
|
+
export type ButtonSize = GoAButtonSize;
|
|
9
|
+
export type ButtonVariant = GoAButtonVariant;
|
|
10
|
+
interface WCProps extends Margins {
|
|
11
|
+
type?: GoAButtonType;
|
|
12
|
+
size?: GoAButtonSize;
|
|
13
|
+
variant?: GoAButtonVariant;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
leadingicon?: string;
|
|
16
|
+
trailingicon?: string;
|
|
17
|
+
ref: React.RefObject<HTMLElement>;
|
|
18
|
+
}
|
|
19
|
+
declare global {
|
|
20
|
+
namespace JSX {
|
|
21
|
+
interface IntrinsicElements {
|
|
22
|
+
"goa-button": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export interface GoAButtonProps extends Margins {
|
|
27
|
+
type?: GoAButtonType;
|
|
28
|
+
size?: GoAButtonSize;
|
|
29
|
+
variant?: GoAButtonVariant;
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
leadingIcon?: GoAIconType;
|
|
32
|
+
trailingIcon?: GoAIconType;
|
|
33
|
+
onClick?: () => void;
|
|
34
|
+
testId?: string;
|
|
35
|
+
children?: ReactNode;
|
|
36
|
+
}
|
|
37
|
+
export declare function GoAButton({ disabled, type, size, variant, leadingIcon, trailingIcon, testId, children, onClick, mt, mr, mb, ml, }: GoAButtonProps): JSX.Element;
|
|
38
|
+
export default GoAButton;
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
export
|
|
24
|
-
export default GoAButtonGroup;
|
|
1
|
+
import { Margins } from "../../common/styling";
|
|
2
|
+
export type GoAButtonGroupAlignment = "start" | "end" | "center";
|
|
3
|
+
export type GoAButtonGroupGap = "relaxed" | "compact";
|
|
4
|
+
export type Gap = GoAButtonGroupGap;
|
|
5
|
+
interface WCProps extends Margins {
|
|
6
|
+
alignment: GoAButtonGroupAlignment;
|
|
7
|
+
gap?: GoAButtonGroupGap;
|
|
8
|
+
}
|
|
9
|
+
declare global {
|
|
10
|
+
namespace JSX {
|
|
11
|
+
interface IntrinsicElements {
|
|
12
|
+
"goa-button-group": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export interface GoAButtonGroupProps extends Margins {
|
|
17
|
+
alignment: GoAButtonGroupAlignment;
|
|
18
|
+
gap?: GoAButtonGroupGap;
|
|
19
|
+
testId?: string;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
export declare function GoAButtonGroup({ alignment, gap, testId, children, mt, mr, mb, ml, }: GoAButtonGroupProps): JSX.Element;
|
|
23
|
+
export default GoAButtonGroup;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
onChange: (name: string, value: Date) => void;
|
|
23
|
-
}
|
|
24
|
-
export declare function GoACalendar({ name, value, min, max, mt, mr, mb, ml, onChange, }: GoACalendarProps): JSX.Element;
|
|
25
|
-
export default GoACalendar;
|
|
1
|
+
import { Margins } from "../../common/styling";
|
|
2
|
+
interface WCProps extends Margins {
|
|
3
|
+
ref: React.RefObject<HTMLElement>;
|
|
4
|
+
name?: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
min?: string;
|
|
7
|
+
max?: string;
|
|
8
|
+
}
|
|
9
|
+
declare global {
|
|
10
|
+
namespace JSX {
|
|
11
|
+
interface IntrinsicElements {
|
|
12
|
+
"goa-calendar": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export interface GoACalendarProps extends Margins {
|
|
17
|
+
name?: string;
|
|
18
|
+
value?: Date;
|
|
19
|
+
min?: Date;
|
|
20
|
+
max?: Date;
|
|
21
|
+
testId?: string;
|
|
22
|
+
onChange: (name: string, value: Date) => void;
|
|
23
|
+
}
|
|
24
|
+
export declare function GoACalendar({ name, value, min, max, testId, mt, mr, mb, ml, onChange, }: GoACalendarProps): JSX.Element;
|
|
25
|
+
export default GoACalendar;
|
package/lib/callout/callout.d.ts
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
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
|
-
export declare type
|
|
25
|
-
export
|
|
26
|
-
export default GoACallout;
|
|
1
|
+
import { Margins } from "../../common/styling";
|
|
2
|
+
export type GoACalloutType = "important" | "information" | "event" | "success" | "emergency";
|
|
3
|
+
export type GoACalloutSize = "medium" | "large";
|
|
4
|
+
interface WCProps extends Margins {
|
|
5
|
+
heading?: string;
|
|
6
|
+
type?: GoACalloutType;
|
|
7
|
+
size?: GoACalloutSize;
|
|
8
|
+
}
|
|
9
|
+
declare global {
|
|
10
|
+
namespace JSX {
|
|
11
|
+
interface IntrinsicElements {
|
|
12
|
+
"goa-callout": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export interface GoACalloutProps extends Margins {
|
|
17
|
+
heading?: string;
|
|
18
|
+
type?: GoACalloutType;
|
|
19
|
+
size?: GoACalloutSize;
|
|
20
|
+
testId?: string;
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export type CalloutProps = GoACalloutProps;
|
|
24
|
+
export declare const GoACallout: ({ heading, type, size, testId, children, mt, mr, mb, ml, }: GoACalloutProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export default GoACallout;
|
|
@@ -1,38 +1,37 @@
|
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export declare
|
|
37
|
-
export
|
|
38
|
-
export default GoACheckbox;
|
|
1
|
+
import { Margins } from "../../common/styling";
|
|
2
|
+
declare global {
|
|
3
|
+
namespace JSX {
|
|
4
|
+
interface IntrinsicElements {
|
|
5
|
+
"goa-checkbox": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
interface WCProps extends Margins {
|
|
10
|
+
ref: React.RefObject<HTMLElement>;
|
|
11
|
+
id?: string;
|
|
12
|
+
name: string;
|
|
13
|
+
checked: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
error?: boolean;
|
|
16
|
+
text?: string;
|
|
17
|
+
value?: string | number | boolean;
|
|
18
|
+
arialabel?: string;
|
|
19
|
+
description?: string | React.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
export interface GoACheckboxProps extends Margins {
|
|
22
|
+
id?: string;
|
|
23
|
+
name: string;
|
|
24
|
+
checked: boolean;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
error?: boolean;
|
|
27
|
+
text?: string;
|
|
28
|
+
value?: string | number | boolean;
|
|
29
|
+
children?: React.ReactNode;
|
|
30
|
+
testId?: string;
|
|
31
|
+
ariaLabel?: string;
|
|
32
|
+
description?: string | React.ReactNode;
|
|
33
|
+
onChange?: (name: string, checked: boolean, value: string) => void;
|
|
34
|
+
}
|
|
35
|
+
export type Props = GoACheckboxProps;
|
|
36
|
+
export declare function GoACheckbox({ id, name, testId, error, disabled, checked, value, text, description, children, onChange, ariaLabel, mt, mr, mb, ml, }: GoACheckboxProps): JSX.Element;
|
|
37
|
+
export default GoACheckbox;
|
package/lib/chip/chip.d.ts
CHANGED
|
@@ -1,29 +1,28 @@
|
|
|
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
|
-
}
|
|
28
|
-
export
|
|
29
|
-
export default GoAChip;
|
|
1
|
+
import { Margins } from "../../common/styling";
|
|
2
|
+
export type GoAChipVariant = "filter";
|
|
3
|
+
interface WCProps extends Margins {
|
|
4
|
+
ref: React.RefObject<HTMLElement>;
|
|
5
|
+
leadingicon: string;
|
|
6
|
+
error: boolean;
|
|
7
|
+
deletable: boolean;
|
|
8
|
+
content: string;
|
|
9
|
+
variant?: GoAChipVariant;
|
|
10
|
+
}
|
|
11
|
+
declare global {
|
|
12
|
+
namespace JSX {
|
|
13
|
+
interface IntrinsicElements {
|
|
14
|
+
"goa-chip": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export interface GoAChipProps extends Margins {
|
|
19
|
+
onClick?: () => void;
|
|
20
|
+
deletable?: boolean;
|
|
21
|
+
leadingIcon?: string;
|
|
22
|
+
error?: boolean;
|
|
23
|
+
content: string;
|
|
24
|
+
variant?: GoAChipVariant;
|
|
25
|
+
testId?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare const GoAChip: ({ leadingIcon, deletable, error, variant, content, onClick, mt, mr, mb, ml, testId, }: GoAChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export default GoAChip;
|