@abgov/react-components 4.0.0-alpha.161 → 4.0.0-alpha.163
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 +3 -0
- package/lib/form-step/form-step.d.ts +3 -3
- package/lib/form-stepper/form-stepper.d.ts +1 -1
- package/lib/sidebar/sidebar.d.ts +13 -0
- package/lib/sidebar-group/sidebar-group.d.ts +17 -0
- package/package.json +1 -1
- package/react-components.esm.js +122 -99
- package/react-components.umd.js +123 -98
package/index.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import "@abgov/web-components";
|
|
2
|
+
export * from "./lib/sidebar-group/sidebar-group";
|
|
3
|
+
export * from "./lib/sidebar/sidebar";
|
|
2
4
|
export * from "./lib/pages/pages";
|
|
3
5
|
export * from "./lib/file-upload-card/file-upload-card";
|
|
4
6
|
export * from "./lib/file-upload-input/file-upload-input";
|
|
5
7
|
export type { GoAIconType } from "./lib/icon/icon";
|
|
6
8
|
export type { GoABadgeType } from "./lib/badge/badge";
|
|
9
|
+
export type { GoAFormStepStatusType } from "./lib/form-step/form-step";
|
|
7
10
|
export * from "./lib/accordion/accordion";
|
|
8
11
|
export * from "./lib/form-step/form-step";
|
|
9
12
|
export * from "./lib/form-stepper/form-stepper";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare type
|
|
2
|
+
export declare type GoAFormStepStatusType = "complete" | "incomplete";
|
|
3
3
|
interface WCProps {
|
|
4
4
|
text: string;
|
|
5
|
-
status?:
|
|
5
|
+
status?: GoAFormStepStatusType;
|
|
6
6
|
}
|
|
7
7
|
declare global {
|
|
8
8
|
namespace JSX {
|
|
@@ -13,7 +13,7 @@ declare global {
|
|
|
13
13
|
}
|
|
14
14
|
export interface FormStepProps {
|
|
15
15
|
text: string;
|
|
16
|
-
status?:
|
|
16
|
+
status?: GoAFormStepStatusType;
|
|
17
17
|
}
|
|
18
18
|
export declare function GoAFormStep(props: FormStepProps): JSX.Element;
|
|
19
19
|
export default GoAFormStep;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
declare global {
|
|
3
|
+
namespace JSX {
|
|
4
|
+
interface IntrinsicElements {
|
|
5
|
+
"goa-sidebar": React.HTMLAttributes<HTMLElement>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export interface SidebarProps {
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare function GoASidebar(props: SidebarProps): JSX.Element;
|
|
13
|
+
export default GoASidebar;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
interface WCProps {
|
|
3
|
+
heading: string;
|
|
4
|
+
}
|
|
5
|
+
declare global {
|
|
6
|
+
namespace JSX {
|
|
7
|
+
interface IntrinsicElements {
|
|
8
|
+
"goa-sidebar-group": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
interface SidebarGroupProps {
|
|
13
|
+
heading: string;
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare function GoASidebarGroup(props: SidebarGroupProps): JSX.Element;
|
|
17
|
+
export default GoASidebarGroup;
|
package/package.json
CHANGED