@abgov/react-components 4.0.0-alpha.9 → 4.0.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/README.md +16 -44
- package/experimental/package.json +2 -1
- package/index.d.ts +34 -36
- package/lib/app-header/app-header.d.ts +7 -4
- package/lib/badge/badge.d.ts +6 -7
- package/lib/button/button.d.ts +9 -11
- package/lib/button-group/button-group.d.ts +4 -3
- package/lib/callout/callout.d.ts +6 -6
- package/lib/card/card-actions.d.ts +2 -2
- package/lib/card/card-content.d.ts +2 -2
- package/lib/card/card-group.d.ts +2 -2
- package/lib/card/card-image.d.ts +2 -2
- package/lib/card/card.d.ts +2 -2
- package/lib/card/index.d.ts +5 -5
- package/lib/checkbox/checkbox.d.ts +5 -4
- package/lib/chip/chip.d.ts +7 -4
- package/lib/circular-progress/circular-progress.d.ts +3 -6
- package/lib/container/container.d.ts +12 -9
- package/lib/divider/divider.d.ts +17 -0
- package/lib/dropdown/dropdown-option.d.ts +1 -1
- package/lib/dropdown/dropdown.d.ts +11 -7
- package/lib/flex-column/flex-column.d.ts +17 -0
- package/lib/{flex/row.d.ts → flex-row/flex-row.d.ts} +5 -4
- package/lib/footer/footer.d.ts +17 -0
- package/lib/footer-meta-section/footer-meta-section.d.ts +13 -0
- package/lib/footer-nav-section/footer-nav-section.d.ts +19 -0
- package/lib/form/form-item.d.ts +6 -4
- package/lib/form/index.d.ts +1 -1
- package/lib/hero-banner/hero-banner-actions.d.ts +5 -3
- package/lib/hero-banner/hero-banner.d.ts +5 -4
- package/lib/icons/icon-button.d.ts +8 -6
- package/lib/icons/icon.d.ts +8 -8
- package/lib/icons/index.d.ts +2 -2
- package/lib/input/input.d.ts +53 -37
- package/lib/microsite-header/microsite-header.d.ts +5 -5
- package/lib/modal/modal.d.ts +6 -4
- package/lib/notification/notification.d.ts +4 -4
- package/lib/one-column-layout/one-column-layout.d.ts +13 -0
- package/lib/page-block/page-block.d.ts +10 -3
- package/lib/radio-group/radio-group.d.ts +5 -4
- package/lib/radio-group/radio.d.ts +3 -2
- package/lib/skeleton/skeleton.d.ts +10 -5
- package/lib/spinner/spinner.d.ts +3 -3
- package/lib/textarea/textarea.d.ts +4 -2
- package/lib/two-column-layout/two-column-layout.d.ts +22 -0
- package/package.json +6 -6
- package/react-components.esm.js +14107 -166
- package/react-components.umd.js +14909 -921
- package/lib/app-footer/app-footer.d.ts +0 -26
- package/lib/app-footer/meta-link.d.ts +0 -20
- package/lib/app-footer/navigation-link.d.ts +0 -22
- package/lib/flex/index.d.ts +0 -1
package/lib/spinner/spinner.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from "react";
|
|
2
2
|
export declare type SpinnerType = "infinite" | "progress";
|
|
3
3
|
export declare type SpinnerSize = "small" | "medium" | "large" | "xlarge";
|
|
4
4
|
interface WCProps {
|
|
@@ -11,7 +11,7 @@ interface WCProps {
|
|
|
11
11
|
declare global {
|
|
12
12
|
namespace JSX {
|
|
13
13
|
interface IntrinsicElements {
|
|
14
|
-
|
|
14
|
+
"goa-spinner": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -22,5 +22,5 @@ export interface SpinnerProps {
|
|
|
22
22
|
progress?: number;
|
|
23
23
|
testId?: string;
|
|
24
24
|
}
|
|
25
|
-
export declare const GoASpinner: ({ type, size, progress, invert, testId }: SpinnerProps) => JSX.Element;
|
|
25
|
+
export declare const GoASpinner: ({ type, size, progress, invert, testId, }: SpinnerProps) => JSX.Element;
|
|
26
26
|
export default GoASpinner;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { FC } from
|
|
1
|
+
import React, { FC } from "react";
|
|
2
2
|
interface WCProps {
|
|
3
3
|
ref: React.Ref<HTMLTextAreaElement>;
|
|
4
4
|
name: string;
|
|
@@ -9,11 +9,12 @@ interface WCProps {
|
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
showcounter?: boolean;
|
|
11
11
|
maxcharcount?: number;
|
|
12
|
+
width?: string;
|
|
12
13
|
}
|
|
13
14
|
declare global {
|
|
14
15
|
namespace JSX {
|
|
15
16
|
interface IntrinsicElements {
|
|
16
|
-
|
|
17
|
+
"goa-textarea": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
}
|
|
@@ -27,6 +28,7 @@ interface Props {
|
|
|
27
28
|
disabled?: boolean;
|
|
28
29
|
showCounter?: boolean;
|
|
29
30
|
maxCharCount?: number;
|
|
31
|
+
width?: string;
|
|
30
32
|
testId?: string;
|
|
31
33
|
onChange: (name: string, value: string) => void;
|
|
32
34
|
}
|
|
@@ -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
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Government of Alberta - UI components for React",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/GovAlta/ui-components/issues"
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"url": "https://github.com/GovAlta/ui-components.git",
|
|
17
17
|
"directory": "libs/react-components"
|
|
18
18
|
},
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"@abgov/web-components": "^1.0.0-alpha.23"
|
|
21
|
-
},
|
|
22
19
|
"peerDependencies": {
|
|
23
|
-
"react": "
|
|
24
|
-
"react-dom": "
|
|
20
|
+
"react": ">=17.0.2",
|
|
21
|
+
"react-dom": ">=17.0.2"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"date-fns": "^2.29.2"
|
|
25
25
|
},
|
|
26
26
|
"main": "./react-components.umd.js",
|
|
27
27
|
"module": "./react-components.esm.js",
|