@abgov/react-components 4.6.0 → 4.7.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.
- package/index.d.ts +4 -0
- package/lib/form-step/form-step.d.ts +19 -0
- package/lib/form-stepper/form-stepper.d.ts +21 -0
- package/lib/modal/modal.d.ts +2 -2
- package/lib/pages/pages.d.ts +18 -0
- package/lib/popover/popover.d.ts +20 -0
- package/lib/skeleton/skeleton.d.ts +1 -1
- package/package.json +1 -1
- package/react-components.esm.js +5060 -2972
- package/react-components.umd.js +5126 -3035
package/index.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import "@abgov/web-components";
|
|
2
|
+
export * from "./lib/pages/pages";
|
|
2
3
|
export type { GoAIconType } from "./lib/icon/icon";
|
|
3
4
|
export type { GoABadgeType } from "./lib/badge/badge";
|
|
4
5
|
export * from "./lib/accordion/accordion";
|
|
6
|
+
export * from "./lib/form-step/form-step";
|
|
7
|
+
export * from "./lib/form-stepper/form-stepper";
|
|
5
8
|
export * from "./lib/app-header/app-header";
|
|
6
9
|
export * from "./lib/badge/badge";
|
|
7
10
|
export * from "./lib/block/block";
|
|
@@ -33,6 +36,7 @@ export * from "./lib/one-column-layout/one-column-layout";
|
|
|
33
36
|
export * from "./lib/page-block/page-block";
|
|
34
37
|
export * from "./lib/radio-group/radio-group";
|
|
35
38
|
export * from "./lib/pagination/pagination";
|
|
39
|
+
export * from "./lib/popover/popover";
|
|
36
40
|
export * from "./lib/skeleton/skeleton";
|
|
37
41
|
export * from "./lib/spacer/spacer";
|
|
38
42
|
export * from "./lib/spinner/spinner";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare type Status = "complete" | "incomplete";
|
|
3
|
+
interface WCProps {
|
|
4
|
+
text: string;
|
|
5
|
+
status?: Status;
|
|
6
|
+
}
|
|
7
|
+
declare global {
|
|
8
|
+
namespace JSX {
|
|
9
|
+
interface IntrinsicElements {
|
|
10
|
+
"goa-form-step": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export interface FormStepProps {
|
|
15
|
+
text: string;
|
|
16
|
+
status?: Status;
|
|
17
|
+
}
|
|
18
|
+
export declare function GoAFormStep(props: FormStepProps): JSX.Element;
|
|
19
|
+
export default GoAFormStep;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { Margins } from "../../common/styling";
|
|
3
|
+
interface WCProps extends Margins {
|
|
4
|
+
ref?: React.MutableRefObject<HTMLElement | null>;
|
|
5
|
+
step?: number;
|
|
6
|
+
}
|
|
7
|
+
declare global {
|
|
8
|
+
namespace JSX {
|
|
9
|
+
interface IntrinsicElements {
|
|
10
|
+
"goa-form-stepper": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export interface FormStepperProps extends Margins {
|
|
15
|
+
step?: number;
|
|
16
|
+
testId: string;
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
onChange?: (step: number) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare function GoAFormStepper({ testId, step, mt, mb, ml, mr, onChange, children, }: FormStepperProps): JSX.Element;
|
|
21
|
+
export default GoAFormStepper;
|
package/lib/modal/modal.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare type ModalTransition = "fast" | "slow" | "none";
|
|
|
3
3
|
export declare type CalloutVariant = "information" | "important" | "emergency" | "success" | "event";
|
|
4
4
|
interface WCProps {
|
|
5
5
|
ref: React.RefObject<HTMLElement>;
|
|
6
|
-
heading?:
|
|
6
|
+
heading?: React.ReactNode;
|
|
7
7
|
open?: boolean;
|
|
8
8
|
width?: string;
|
|
9
9
|
closable?: boolean;
|
|
@@ -19,7 +19,7 @@ declare global {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
interface Props {
|
|
22
|
-
heading?:
|
|
22
|
+
heading?: React.ReactNode;
|
|
23
23
|
width?: string;
|
|
24
24
|
actions?: React.ReactElement;
|
|
25
25
|
onClose?: () => void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { Margins } from "../../common/styling";
|
|
3
|
+
interface WCProps extends Margins {
|
|
4
|
+
current?: number;
|
|
5
|
+
}
|
|
6
|
+
declare global {
|
|
7
|
+
namespace JSX {
|
|
8
|
+
interface IntrinsicElements {
|
|
9
|
+
"goa-pages": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
interface PagesProps extends Margins {
|
|
14
|
+
current?: number;
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare function GoAPages(props: PagesProps): JSX.Element;
|
|
18
|
+
export default GoAPages;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { FC, ReactNode } from "react";
|
|
2
|
+
interface WCProps {
|
|
3
|
+
maxwidth?: string;
|
|
4
|
+
padded?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare global {
|
|
7
|
+
namespace JSX {
|
|
8
|
+
interface IntrinsicElements {
|
|
9
|
+
"goa-popover": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
interface Props {
|
|
14
|
+
target?: ReactNode;
|
|
15
|
+
testId?: string;
|
|
16
|
+
maxWidth?: string;
|
|
17
|
+
padded?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const GoAPopover: FC<Props>;
|
|
20
|
+
export default GoAPopover;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Margins } from "../../common/styling";
|
|
3
|
-
export declare type SkeletonType = "image" | "text" | "title" | "text-small" | "avatar" | "header" | "paragraph" | "thumbnail" | "card" | "profile";
|
|
3
|
+
export declare type SkeletonType = "image" | "text" | "title" | "text-small" | "avatar" | "header" | "paragraph" | "thumbnail" | "card" | "profile" | "article";
|
|
4
4
|
declare type SkeletonSize = 1 | 2 | 3 | 4;
|
|
5
5
|
interface WCProps extends Margins {
|
|
6
6
|
maxwidth?: string;
|