@abgov/react-components 4.0.0-alpha.54 → 4.0.0-alpha.56
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 +35 -34
- package/lib/app-header/app-header.d.ts +2 -0
- package/lib/footer/footer.d.ts +6 -2
- package/lib/two-column-layout/two-column-layout.d.ts +22 -0
- package/package.json +5 -6
- package/react-components.esm.js +389 -144
- package/react-components.umd.js +390 -144
package/index.d.ts
CHANGED
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
export type { GoAIconType } from
|
|
3
|
-
export type { GoABadgeType } from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
25
|
-
export * from
|
|
26
|
-
export * from
|
|
27
|
-
export * from
|
|
28
|
-
export * from
|
|
29
|
-
export * from
|
|
30
|
-
export * from
|
|
31
|
-
export * from
|
|
32
|
-
export * from
|
|
33
|
-
export * from
|
|
34
|
-
export * from
|
|
1
|
+
import '@abgov/web-components';
|
|
2
|
+
export type { GoAIconType } from './lib/icons';
|
|
3
|
+
export type { GoABadgeType } from './lib/badge/badge';
|
|
4
|
+
export * from './lib/app-header/app-header';
|
|
5
|
+
export * from './lib/badge/badge';
|
|
6
|
+
export * from './lib/button-group/button-group';
|
|
7
|
+
export * from './lib/button/button';
|
|
8
|
+
export * from './lib/callout/callout';
|
|
9
|
+
export * from './lib/checkbox/checkbox';
|
|
10
|
+
export * from './lib/chip/chip';
|
|
11
|
+
export * from './lib/circular-progress/circular-progress';
|
|
12
|
+
export * from './lib/container/container';
|
|
13
|
+
export * from './lib/divider/divider';
|
|
14
|
+
export * from './lib/dropdown/dropdown';
|
|
15
|
+
export * from './lib/flex-column/flex-column';
|
|
16
|
+
export * from './lib/flex-row/flex-row';
|
|
17
|
+
export * from './lib/footer-meta-section/footer-meta-section';
|
|
18
|
+
export * from './lib/footer-nav-section/footer-nav-section';
|
|
19
|
+
export * from './lib/footer/footer';
|
|
20
|
+
export * from './lib/form';
|
|
21
|
+
export * from './lib/hero-banner/hero-banner';
|
|
22
|
+
export * from './lib/hero-banner/hero-banner-actions';
|
|
23
|
+
export * from './lib/icons';
|
|
24
|
+
export * from './lib/input/input';
|
|
25
|
+
export * from './lib/microsite-header/microsite-header';
|
|
26
|
+
export * from './lib/modal/modal';
|
|
27
|
+
export * from './lib/notification/notification';
|
|
28
|
+
export * from './lib/page-block/page-block';
|
|
29
|
+
export * from './lib/page/page';
|
|
30
|
+
export * from './lib/page/page';
|
|
31
|
+
export * from './lib/radio-group/radio-group';
|
|
32
|
+
export * from './lib/skeleton/skeleton';
|
|
33
|
+
export * from './lib/spinner/spinner';
|
|
34
|
+
export * from './lib/textarea/textarea';
|
|
35
|
+
export * from './lib/two-column-layout/two-column-layout';
|
|
@@ -2,6 +2,7 @@ import React, { FC } from 'react';
|
|
|
2
2
|
interface WCProps {
|
|
3
3
|
heading?: string;
|
|
4
4
|
url?: string;
|
|
5
|
+
maxcontentwidth?: string;
|
|
5
6
|
}
|
|
6
7
|
declare global {
|
|
7
8
|
namespace JSX {
|
|
@@ -13,6 +14,7 @@ declare global {
|
|
|
13
14
|
interface Props {
|
|
14
15
|
heading?: string;
|
|
15
16
|
url?: string;
|
|
17
|
+
maxContentWidth?: string;
|
|
16
18
|
children?: React.ReactNode;
|
|
17
19
|
}
|
|
18
20
|
export declare const GoAAppHeader: FC<Props>;
|
package/lib/footer/footer.d.ts
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
|
+
interface WCProps {
|
|
3
|
+
maxcontentwidth?: string;
|
|
4
|
+
}
|
|
2
5
|
declare global {
|
|
3
6
|
namespace JSX {
|
|
4
7
|
interface IntrinsicElements {
|
|
5
|
-
'goa-app-footer': React.HTMLAttributes<HTMLElement>;
|
|
8
|
+
'goa-app-footer': WCProps & React.HTMLAttributes<HTMLElement>;
|
|
6
9
|
}
|
|
7
10
|
}
|
|
8
11
|
}
|
|
9
12
|
export interface FooterProps {
|
|
13
|
+
maxContentWidth?: string;
|
|
10
14
|
children?: ReactNode;
|
|
11
15
|
}
|
|
12
|
-
export declare function GoAAppFooter({ children }: FooterProps): JSX.Element;
|
|
16
|
+
export declare function GoAAppFooter({ maxContentWidth, children }: FooterProps): JSX.Element;
|
|
13
17
|
export default GoAAppFooter;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
interface WCProps {
|
|
3
|
+
navcolumnwidth?: string;
|
|
4
|
+
maxcontentwidth?: string;
|
|
5
|
+
}
|
|
6
|
+
declare global {
|
|
7
|
+
namespace JSX {
|
|
8
|
+
interface IntrinsicElements {
|
|
9
|
+
'goa-two-column-layout': WCProps & React.HTMLAttributes<HTMLElement>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
interface Props {
|
|
14
|
+
navColumnWidth?: string;
|
|
15
|
+
maxContentWidth?: string;
|
|
16
|
+
header: ReactNode;
|
|
17
|
+
footer: ReactNode;
|
|
18
|
+
nav: ReactNode;
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
}
|
|
21
|
+
export declare function GoATwoColumnLayout(props: Props): JSX.Element;
|
|
22
|
+
export default GoATwoColumnLayout;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/react-components",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.56",
|
|
4
4
|
"description": "Government of Alberta - UI components for React",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/GovAlta/ui-components/issues"
|
|
@@ -16,14 +16,13 @@
|
|
|
16
16
|
"url": "https://github.com/GovAlta/ui-components.git",
|
|
17
17
|
"directory": "libs/react-components"
|
|
18
18
|
},
|
|
19
|
-
"peerDependencies": {
|
|
20
|
-
"react": "^17.0.2",
|
|
21
|
-
"react-dom": "^17.0.2"
|
|
22
|
-
},
|
|
23
19
|
"dependencies": {
|
|
24
20
|
"date-fns": "^2.29.2"
|
|
25
21
|
},
|
|
26
22
|
"main": "./react-components.umd.js",
|
|
27
23
|
"module": "./react-components.esm.js",
|
|
28
|
-
"typings": "./index.d.ts"
|
|
24
|
+
"typings": "./index.d.ts",
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"react": "17.0.2"
|
|
27
|
+
}
|
|
29
28
|
}
|