@abgov/react-components 4.0.0-alpha.163 → 4.0.0-alpha.165
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 -2
- package/lib/app-header-menu/app-header-menu.d.ts +20 -0
- package/lib/popover/popover.d.ts +3 -0
- package/lib/side-menu/side-menu.d.ts +13 -0
- package/lib/side-menu-group/side-menu-group.d.ts +17 -0
- package/lib/three-column-layout/three-column-layout.d.ts +5 -4
- package/package.json +1 -1
- package/react-components.esm.js +258 -159
- package/react-components.umd.js +260 -160
- package/lib/sidebar/sidebar.d.ts +0 -13
- package/lib/sidebar-group/sidebar-group.d.ts +0 -17
package/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "@abgov/web-components";
|
|
2
|
-
export * from "./lib/
|
|
3
|
-
export * from "./lib/
|
|
2
|
+
export * from "./lib/side-menu-group/side-menu-group";
|
|
3
|
+
export * from "./lib/side-menu/side-menu";
|
|
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";
|
|
@@ -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;
|
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;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
declare global {
|
|
3
|
+
namespace JSX {
|
|
4
|
+
interface IntrinsicElements {
|
|
5
|
+
"goa-side-menu": React.HTMLAttributes<HTMLElement>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export interface SideMenuProps {
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare function GoASideMenu(props: SideMenuProps): JSX.Element;
|
|
13
|
+
export default GoASideMenu;
|
|
@@ -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-side-menu-group": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
interface SideMenuGroupProps {
|
|
13
|
+
heading: string;
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare function GoASideMenuGroup(props: SideMenuGroupProps): JSX.Element;
|
|
17
|
+
export default GoASideMenuGroup;
|
|
@@ -15,10 +15,11 @@ interface Props {
|
|
|
15
15
|
leftColumnWidth?: string;
|
|
16
16
|
rightColumnWidth?: string;
|
|
17
17
|
maxContentWidth?: string;
|
|
18
|
-
header
|
|
19
|
-
footer
|
|
20
|
-
nav
|
|
21
|
-
sidebar
|
|
18
|
+
header?: ReactNode;
|
|
19
|
+
footer?: ReactNode;
|
|
20
|
+
nav?: ReactNode;
|
|
21
|
+
sidebar?: ReactNode;
|
|
22
|
+
sideMenu?: ReactNode;
|
|
22
23
|
children: ReactNode;
|
|
23
24
|
}
|
|
24
25
|
export declare function GoAThreeColumnLayout(props: Props): JSX.Element;
|
package/package.json
CHANGED