@abgov/react-components 4.0.0-alpha.162 → 4.0.0-alpha.164
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 +2 -0
- package/lib/app-header-menu/app-header-menu.d.ts +20 -0
- package/lib/form-step/form-step.d.ts +3 -3
- package/lib/form-stepper/form-stepper.d.ts +1 -1
- package/lib/popover/popover.d.ts +3 -0
- package/package.json +1 -1
- package/react-components.esm.js +250 -156
- package/react-components.umd.js +250 -155
package/index.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import "@abgov/web-components";
|
|
2
2
|
export * from "./lib/sidebar-group/sidebar-group";
|
|
3
3
|
export * from "./lib/sidebar/sidebar";
|
|
4
|
+
export * from "./lib/app-header-menu/app-header-menu";
|
|
4
5
|
export * from "./lib/pages/pages";
|
|
5
6
|
export * from "./lib/file-upload-card/file-upload-card";
|
|
6
7
|
export * from "./lib/file-upload-input/file-upload-input";
|
|
7
8
|
export type { GoAIconType } from "./lib/icon/icon";
|
|
8
9
|
export type { GoABadgeType } from "./lib/badge/badge";
|
|
10
|
+
export type { GoAFormStepStatusType } from "./lib/form-step/form-step";
|
|
9
11
|
export * from "./lib/accordion/accordion";
|
|
10
12
|
export * from "./lib/form-step/form-step";
|
|
11
13
|
export * from "./lib/form-stepper/form-stepper";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { 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
|
+
children?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
declare global {
|
|
13
|
+
namespace JSX {
|
|
14
|
+
interface IntrinsicElements {
|
|
15
|
+
"goa-app-header-menu": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export declare function GoAAppHeaderMenu(props: GoAAppHeaderMenuProps): JSX.Element;
|
|
20
|
+
export default GoAAppHeaderMenu;
|
|
@@ -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;
|
package/lib/popover/popover.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React, { FC, ReactNode } from "react";
|
|
2
2
|
import { Margins } from "../../common/styling";
|
|
3
|
+
declare type Position = "above" | "below" | "auto";
|
|
3
4
|
interface WCProps extends Margins {
|
|
4
5
|
maxwidth?: string;
|
|
5
6
|
padded?: boolean;
|
|
7
|
+
position?: Position;
|
|
6
8
|
}
|
|
7
9
|
declare global {
|
|
8
10
|
namespace JSX {
|
|
@@ -16,6 +18,7 @@ interface Props extends Margins {
|
|
|
16
18
|
testId?: string;
|
|
17
19
|
maxWidth?: string;
|
|
18
20
|
padded?: boolean;
|
|
21
|
+
position?: Position;
|
|
19
22
|
}
|
|
20
23
|
export declare const GoAPopover: FC<Props>;
|
|
21
24
|
export default GoAPopover;
|
package/package.json
CHANGED