@abgov/react-components 4.0.0-alpha.53 → 4.0.0-alpha.55
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/input/input.d.ts +18 -15
- package/lib/two-column-layout/two-column-layout.d.ts +22 -0
- package/package.json +1 -1
- package/react-components.esm.js +634 -362
- package/react-components.umd.js +635 -362
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;
|
package/lib/input/input.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
2
|
import { GoAIconType } from '../..';
|
|
3
3
|
declare type GoAInputType = "text" | "number" | "password" | "email" | "date" | "datetime-local" | "month" | "range" | "search" | "tel" | "time" | "url" | "week";
|
|
4
|
+
declare type GoAAutoCapitalize = "on" | "off" | "none" | "sentences" | "words" | "characters";
|
|
4
5
|
interface WCProps {
|
|
5
6
|
ref?: React.MutableRefObject<HTMLInputElement | null>;
|
|
6
7
|
type?: GoAInputType;
|
|
7
8
|
name: string;
|
|
8
9
|
value: string;
|
|
9
10
|
id?: string;
|
|
11
|
+
autocapitalize?: GoAAutoCapitalize;
|
|
10
12
|
placeholder?: string;
|
|
11
13
|
leadingicon?: string;
|
|
12
14
|
trailingicon?: string;
|
|
@@ -33,12 +35,13 @@ declare global {
|
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
|
-
interface
|
|
38
|
+
export interface InputProps {
|
|
37
39
|
name: string;
|
|
38
40
|
value: string;
|
|
39
41
|
onChange: (name: string, value: string) => void;
|
|
40
42
|
id?: string;
|
|
41
43
|
disabled?: boolean;
|
|
44
|
+
autoCapitalize?: GoAAutoCapitalize;
|
|
42
45
|
placeholder?: string;
|
|
43
46
|
leadingIcon?: GoAIconType;
|
|
44
47
|
trailingIcon?: GoAIconType;
|
|
@@ -57,30 +60,30 @@ interface Props {
|
|
|
57
60
|
max?: string;
|
|
58
61
|
step?: number;
|
|
59
62
|
}
|
|
60
|
-
export declare const GoAInput: FC<
|
|
63
|
+
export declare const GoAInput: FC<InputProps & {
|
|
61
64
|
type?: GoAInputType;
|
|
62
65
|
}>;
|
|
63
|
-
export declare const GoAInputText: FC<
|
|
64
|
-
export declare const GoAInputPassword: FC<
|
|
65
|
-
export declare const GoAInputDate: FC<Omit<
|
|
66
|
+
export declare const GoAInputText: FC<InputProps>;
|
|
67
|
+
export declare const GoAInputPassword: FC<InputProps>;
|
|
68
|
+
export declare const GoAInputDate: FC<Omit<InputProps, "value"> & {
|
|
66
69
|
value: Date | string;
|
|
67
70
|
}>;
|
|
68
|
-
export declare const GoAInputTime: FC<Omit<
|
|
71
|
+
export declare const GoAInputTime: FC<Omit<InputProps, "value"> & {
|
|
69
72
|
value: Date | string;
|
|
70
73
|
}>;
|
|
71
|
-
export declare const GoAInputDateTime: FC<Omit<
|
|
74
|
+
export declare const GoAInputDateTime: FC<Omit<InputProps, "value"> & {
|
|
72
75
|
value: Date;
|
|
73
76
|
}>;
|
|
74
|
-
export declare const GoAInputEmail: FC<
|
|
75
|
-
export declare const GoAInputSearch: FC<
|
|
76
|
-
export declare const GoAInputUrl: FC<
|
|
77
|
-
export declare const GoAInputTel: FC<
|
|
78
|
-
export declare const GoAInputFile: FC<
|
|
79
|
-
export declare const GoAInputMonth: FC<
|
|
80
|
-
export declare const GoAInputNumber: FC<Omit<
|
|
77
|
+
export declare const GoAInputEmail: FC<InputProps>;
|
|
78
|
+
export declare const GoAInputSearch: FC<InputProps>;
|
|
79
|
+
export declare const GoAInputUrl: FC<InputProps>;
|
|
80
|
+
export declare const GoAInputTel: FC<InputProps>;
|
|
81
|
+
export declare const GoAInputFile: FC<InputProps>;
|
|
82
|
+
export declare const GoAInputMonth: FC<InputProps>;
|
|
83
|
+
export declare const GoAInputNumber: FC<Omit<InputProps, "value" | "min" | "max"> & {
|
|
81
84
|
value: number;
|
|
82
85
|
min?: number;
|
|
83
86
|
max?: number;
|
|
84
87
|
}>;
|
|
85
|
-
export declare const GoAInputRange: FC<
|
|
88
|
+
export declare const GoAInputRange: FC<InputProps>;
|
|
86
89
|
export default GoAInput;
|
|
@@ -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