@abgov/react-components 4.0.0-alpha.5 → 4.0.0-alpha.51
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 +9 -42
- package/experimental/package.json +2 -1
- package/index.d.ts +34 -36
- package/lib/app-header/app-header.d.ts +3 -2
- package/lib/badge/badge.d.ts +4 -5
- package/lib/button/button.d.ts +8 -5
- package/lib/button-group/button-group.d.ts +1 -0
- package/lib/callout/callout.d.ts +3 -3
- package/lib/checkbox/checkbox.d.ts +3 -2
- package/lib/chip/chip.d.ts +1 -1
- package/lib/circular-progress/circular-progress.d.ts +1 -4
- package/lib/container/container.d.ts +10 -5
- package/lib/divider/divider.d.ts +17 -0
- package/lib/dropdown/dropdown.d.ts +9 -5
- package/lib/flex-column/flex-column.d.ts +17 -0
- package/lib/{flex/row.d.ts → flex-row/flex-row.d.ts} +4 -3
- package/lib/footer/footer.d.ts +13 -0
- package/lib/footer-meta-section/footer-meta-section.d.ts +13 -0
- package/lib/footer-nav-section/footer-nav-section.d.ts +17 -0
- package/lib/form/form-item.d.ts +2 -1
- package/lib/hero-banner/hero-banner-actions.d.ts +5 -3
- package/lib/hero-banner/hero-banner.d.ts +3 -2
- package/lib/icons/icon-button.d.ts +1 -0
- package/lib/icons/icon.d.ts +1 -1
- package/lib/input/input.d.ts +24 -17
- package/lib/microsite-header/microsite-header.d.ts +2 -2
- package/lib/modal/modal.d.ts +1 -0
- package/lib/notification/notification.d.ts +1 -1
- package/lib/page/page.d.ts +13 -0
- package/lib/page-block/page-block.d.ts +10 -3
- package/lib/radio-group/radio-group.d.ts +1 -0
- package/lib/radio-group/radio.d.ts +1 -0
- package/lib/textarea/textarea.d.ts +2 -0
- package/package.json +4 -4
- package/react-components.esm.js +14088 -118
- package/react-components.umd.js +14925 -915
- package/lib/app-footer/app-footer.d.ts +0 -24
- 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/input/input.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
2
|
import { GoAIconType } from '../..';
|
|
3
|
+
declare type GoAInputType = "text" | "number" | "password" | "email" | "date" | "datetime-local" | "month" | "range" | "search" | "tel" | "time" | "url" | "week";
|
|
3
4
|
interface WCProps {
|
|
4
5
|
ref?: React.MutableRefObject<HTMLInputElement | null>;
|
|
5
|
-
type
|
|
6
|
+
type?: GoAInputType;
|
|
6
7
|
name: string;
|
|
7
8
|
value: string;
|
|
8
9
|
id?: string;
|
|
@@ -18,7 +19,12 @@ interface WCProps {
|
|
|
18
19
|
maxcharcount?: number;
|
|
19
20
|
handletrailingiconclick: boolean;
|
|
20
21
|
width?: string;
|
|
22
|
+
prefix?: string;
|
|
23
|
+
suffix?: string;
|
|
21
24
|
testid?: string;
|
|
25
|
+
min?: string;
|
|
26
|
+
max?: string;
|
|
27
|
+
step?: number;
|
|
22
28
|
}
|
|
23
29
|
declare global {
|
|
24
30
|
namespace JSX {
|
|
@@ -27,7 +33,7 @@ declare global {
|
|
|
27
33
|
}
|
|
28
34
|
}
|
|
29
35
|
}
|
|
30
|
-
|
|
36
|
+
interface Props {
|
|
31
37
|
name: string;
|
|
32
38
|
value: string;
|
|
33
39
|
onChange: (name: string, value: string) => void;
|
|
@@ -44,21 +50,26 @@ export interface Props {
|
|
|
44
50
|
width?: string;
|
|
45
51
|
showCounter?: boolean;
|
|
46
52
|
maxCharCount?: number;
|
|
53
|
+
prefix?: string;
|
|
54
|
+
suffix?: string;
|
|
47
55
|
testId?: string;
|
|
56
|
+
min?: string;
|
|
57
|
+
max?: string;
|
|
58
|
+
step?: number;
|
|
48
59
|
}
|
|
49
60
|
export declare const GoAInput: FC<Props & {
|
|
50
|
-
type
|
|
61
|
+
type?: GoAInputType;
|
|
51
62
|
}>;
|
|
52
63
|
export declare const GoAInputText: FC<Props>;
|
|
53
64
|
export declare const GoAInputPassword: FC<Props>;
|
|
54
|
-
export declare const GoAInputDate: FC<Props & {
|
|
55
|
-
|
|
56
|
-
max?: string;
|
|
65
|
+
export declare const GoAInputDate: FC<Omit<Props, "value"> & {
|
|
66
|
+
value: Date | string;
|
|
57
67
|
}>;
|
|
58
|
-
export declare const GoAInputTime: FC<Props
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
68
|
+
export declare const GoAInputTime: FC<Omit<Props, "value"> & {
|
|
69
|
+
value: Date | string;
|
|
70
|
+
}>;
|
|
71
|
+
export declare const GoAInputDateTime: FC<Omit<Props, "value"> & {
|
|
72
|
+
value: Date;
|
|
62
73
|
}>;
|
|
63
74
|
export declare const GoAInputEmail: FC<Props>;
|
|
64
75
|
export declare const GoAInputSearch: FC<Props>;
|
|
@@ -66,14 +77,10 @@ export declare const GoAInputUrl: FC<Props>;
|
|
|
66
77
|
export declare const GoAInputTel: FC<Props>;
|
|
67
78
|
export declare const GoAInputFile: FC<Props>;
|
|
68
79
|
export declare const GoAInputMonth: FC<Props>;
|
|
69
|
-
export declare const GoAInputNumber: FC<Props & {
|
|
70
|
-
|
|
71
|
-
max?: number;
|
|
72
|
-
step?: number;
|
|
73
|
-
}>;
|
|
74
|
-
export declare const GoAInputRange: FC<Props & {
|
|
80
|
+
export declare const GoAInputNumber: FC<Omit<Props, "value" | "min" | "max"> & {
|
|
81
|
+
value: number;
|
|
75
82
|
min?: number;
|
|
76
83
|
max?: number;
|
|
77
|
-
step?: number;
|
|
78
84
|
}>;
|
|
85
|
+
export declare const GoAInputRange: FC<Props>;
|
|
79
86
|
export default GoAInput;
|
|
@@ -8,12 +8,12 @@ declare global {
|
|
|
8
8
|
}
|
|
9
9
|
export declare type ServiceLevel = 'alpha' | 'beta' | 'live';
|
|
10
10
|
interface WebComponentProps {
|
|
11
|
-
|
|
11
|
+
type: ServiceLevel;
|
|
12
12
|
version?: string;
|
|
13
13
|
feedbackurl?: string;
|
|
14
14
|
}
|
|
15
15
|
export interface HeaderProps {
|
|
16
|
-
|
|
16
|
+
type: ServiceLevel;
|
|
17
17
|
version?: string;
|
|
18
18
|
feedbackUrl?: string;
|
|
19
19
|
}
|
package/lib/modal/modal.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
declare global {
|
|
3
|
+
namespace JSX {
|
|
4
|
+
interface IntrinsicElements {
|
|
5
|
+
'goa-page': React.HTMLAttributes<HTMLElement>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export interface PageProps {
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare function GoAPage(props: PageProps): JSX.Element;
|
|
13
|
+
export default GoAPage;
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
1
|
+
import React, { FC, ReactNode } from 'react';
|
|
2
|
+
export interface WCPageBlockProps {
|
|
3
|
+
width: "full" | string;
|
|
4
|
+
}
|
|
2
5
|
declare global {
|
|
3
6
|
namespace JSX {
|
|
4
7
|
interface IntrinsicElements {
|
|
5
|
-
'goa-page-block': React.HTMLAttributes<HTMLElement>;
|
|
8
|
+
'goa-page-block': WCPageBlockProps & React.HTMLAttributes<HTMLElement>;
|
|
6
9
|
}
|
|
7
10
|
}
|
|
8
11
|
}
|
|
9
|
-
export
|
|
12
|
+
export interface PageBlockProps {
|
|
13
|
+
width: "full" | string;
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare const GoAPageBlock: FC<PageBlockProps>;
|
|
@@ -9,6 +9,7 @@ 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 {
|
|
@@ -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
|
}
|
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.51",
|
|
4
4
|
"description": "Government of Alberta - UI components for React",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/GovAlta/ui-components/issues"
|
|
@@ -16,13 +16,13 @@
|
|
|
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
20
|
"react": "^17.0.2",
|
|
24
21
|
"react-dom": "^17.0.2"
|
|
25
22
|
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"date-fns": "^2.29.2"
|
|
25
|
+
},
|
|
26
26
|
"main": "./react-components.umd.js",
|
|
27
27
|
"module": "./react-components.esm.js",
|
|
28
28
|
"typings": "./index.d.ts"
|