@abgov/react-components 4.2.0 → 4.3.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/index.d.ts +5 -3
- package/lib/checkbox/checkbox.d.ts +2 -0
- package/lib/dropdown/dropdown-item.d.ts +22 -0
- package/lib/dropdown/dropdown.d.ts +15 -12
- package/lib/hero-banner/hero-banner.d.ts +2 -0
- package/lib/input/input.d.ts +4 -0
- package/lib/radio-group/radio-group.d.ts +2 -0
- package/lib/table/table.d.ts +19 -0
- package/lib/textarea/textarea.d.ts +2 -0
- package/package.json +1 -1
- package/react-components.esm.js +4157 -3877
- package/react-components.umd.js +3866 -3583
- package/lib/dropdown/dropdown-option.d.ts +0 -21
package/index.d.ts
CHANGED
|
@@ -13,24 +13,26 @@ export * from "./lib/circular-progress/circular-progress";
|
|
|
13
13
|
export * from "./lib/container/container";
|
|
14
14
|
export * from "./lib/divider/divider";
|
|
15
15
|
export * from "./lib/dropdown/dropdown";
|
|
16
|
-
export * from "./lib/
|
|
16
|
+
export * from "./lib/dropdown/dropdown-item";
|
|
17
17
|
export * from "./lib/footer-meta-section/footer-meta-section";
|
|
18
18
|
export * from "./lib/footer-nav-section/footer-nav-section";
|
|
19
19
|
export * from "./lib/footer/footer";
|
|
20
20
|
export * from "./lib/form";
|
|
21
|
+
export * from "./lib/grid/grid";
|
|
21
22
|
export * from "./lib/hero-banner/hero-banner";
|
|
22
23
|
export * from "./lib/hero-banner/hero-banner-actions";
|
|
23
|
-
export * from "./lib/icon/icon";
|
|
24
24
|
export * from "./lib/icon-button/icon-button";
|
|
25
|
+
export * from "./lib/icon/icon";
|
|
25
26
|
export * from "./lib/input/input";
|
|
26
27
|
export * from "./lib/microsite-header/microsite-header";
|
|
27
28
|
export * from "./lib/modal/modal";
|
|
28
29
|
export * from "./lib/notification/notification";
|
|
29
|
-
export * from "./lib/page-block/page-block";
|
|
30
30
|
export * from "./lib/one-column-layout/one-column-layout";
|
|
31
|
+
export * from "./lib/page-block/page-block";
|
|
31
32
|
export * from "./lib/radio-group/radio-group";
|
|
32
33
|
export * from "./lib/skeleton/skeleton";
|
|
33
34
|
export * from "./lib/spacer/spacer";
|
|
34
35
|
export * from "./lib/spinner/spinner";
|
|
36
|
+
export * from "./lib/table/table";
|
|
35
37
|
export * from "./lib/textarea/textarea";
|
|
36
38
|
export * from "./lib/two-column-layout/two-column-layout";
|
|
@@ -16,6 +16,7 @@ interface CheckboxProps extends Margins {
|
|
|
16
16
|
error?: boolean;
|
|
17
17
|
text?: string;
|
|
18
18
|
value?: string | number | boolean;
|
|
19
|
+
arialabel?: string;
|
|
19
20
|
}
|
|
20
21
|
export interface Props extends Margins {
|
|
21
22
|
id?: string;
|
|
@@ -27,6 +28,7 @@ export interface Props extends Margins {
|
|
|
27
28
|
value?: string | number | boolean;
|
|
28
29
|
children?: React.ReactNode;
|
|
29
30
|
testId?: string;
|
|
31
|
+
ariaLabel?: string;
|
|
30
32
|
onChange?: (name: string, checked: boolean, value: string) => void;
|
|
31
33
|
}
|
|
32
34
|
export declare const GoACheckbox: FC<Props>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface WCProps {
|
|
3
|
+
value: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
}
|
|
7
|
+
declare global {
|
|
8
|
+
namespace JSX {
|
|
9
|
+
interface IntrinsicElements {
|
|
10
|
+
"goa-dropdown-item": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
interface Props {
|
|
15
|
+
value: string;
|
|
16
|
+
label?: string;
|
|
17
|
+
testId?: string;
|
|
18
|
+
name?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function GoADropdownOption(props: Props): JSX.Element;
|
|
21
|
+
export declare function GoADropdownItem({ value, label, name, testId }: Props): JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import React, { FC } from "react";
|
|
2
2
|
import { Margins } from "../../common/styling";
|
|
3
3
|
import { GoAIconType } from "../icon/icon";
|
|
4
|
-
export * from "./dropdown-option";
|
|
5
4
|
interface WCProps extends Margins {
|
|
6
5
|
ref: React.MutableRefObject<HTMLElement | null>;
|
|
7
|
-
|
|
8
|
-
value: string;
|
|
9
|
-
leadingicon?: string;
|
|
10
|
-
maxheight?: string;
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
filterable?: boolean;
|
|
6
|
+
arialabel?: string;
|
|
13
7
|
disabled?: boolean;
|
|
14
8
|
error?: boolean;
|
|
9
|
+
filterable?: boolean;
|
|
10
|
+
leadingicon?: string;
|
|
11
|
+
maxheight?: string;
|
|
15
12
|
multiselect?: boolean;
|
|
16
|
-
|
|
13
|
+
name?: string;
|
|
14
|
+
native?: boolean;
|
|
15
|
+
placeholder?: string;
|
|
17
16
|
testid?: string;
|
|
17
|
+
value?: string;
|
|
18
|
+
width?: string;
|
|
18
19
|
}
|
|
19
20
|
declare global {
|
|
20
21
|
namespace JSX {
|
|
@@ -24,19 +25,21 @@ declare global {
|
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
interface Props extends Margins {
|
|
27
|
-
name
|
|
28
|
-
value
|
|
28
|
+
name?: string;
|
|
29
|
+
value?: string[] | string;
|
|
29
30
|
onChange: (name: string, values: string[] | string) => void;
|
|
31
|
+
ariaLabel?: string;
|
|
32
|
+
children?: React.ReactNode;
|
|
30
33
|
disabled?: boolean;
|
|
34
|
+
error?: boolean;
|
|
31
35
|
filterable?: boolean;
|
|
32
36
|
leadingIcon?: GoAIconType;
|
|
33
37
|
maxHeight?: string;
|
|
34
|
-
error?: boolean;
|
|
35
38
|
multiselect?: boolean;
|
|
39
|
+
native?: boolean;
|
|
36
40
|
placeholder?: string;
|
|
37
41
|
testId?: string;
|
|
38
42
|
width?: string;
|
|
39
|
-
children?: React.ReactNode;
|
|
40
43
|
}
|
|
41
44
|
export declare const GoADropdown: FC<Props>;
|
|
42
45
|
export default GoADropdown;
|
|
@@ -2,6 +2,7 @@ import React, { FC } from "react";
|
|
|
2
2
|
interface WCProps {
|
|
3
3
|
heading: string;
|
|
4
4
|
backgroundurl: string;
|
|
5
|
+
minheight?: 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
|
backgroundUrl: string;
|
|
17
|
+
minHeight?: string;
|
|
16
18
|
children?: React.ReactNode;
|
|
17
19
|
}
|
|
18
20
|
export declare const GoAHeroBanner: FC<Props>;
|
package/lib/input/input.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ interface WCProps extends Margins {
|
|
|
24
24
|
prefix?: string;
|
|
25
25
|
suffix?: string;
|
|
26
26
|
testid?: string;
|
|
27
|
+
arialabel?: string;
|
|
27
28
|
min?: string | number;
|
|
28
29
|
max?: string | number;
|
|
29
30
|
step?: number;
|
|
@@ -52,6 +53,9 @@ interface BaseProps extends Margins {
|
|
|
52
53
|
prefix?: string;
|
|
53
54
|
suffix?: string;
|
|
54
55
|
testId?: string;
|
|
56
|
+
ariaLabel?: string;
|
|
57
|
+
leadingContent?: React.ReactNode;
|
|
58
|
+
trailingContent?: React.ReactNode;
|
|
55
59
|
}
|
|
56
60
|
declare type OnChange = (name: string, value: string) => void;
|
|
57
61
|
export interface InputProps extends BaseProps {
|
|
@@ -8,6 +8,7 @@ interface RadioGroupProps extends Margins {
|
|
|
8
8
|
orientation: string;
|
|
9
9
|
disabled: boolean;
|
|
10
10
|
error: boolean;
|
|
11
|
+
arialabel?: string;
|
|
11
12
|
}
|
|
12
13
|
declare global {
|
|
13
14
|
namespace JSX {
|
|
@@ -23,6 +24,7 @@ interface Props extends Margins {
|
|
|
23
24
|
orientation?: "horizontal" | "vertical";
|
|
24
25
|
testId?: string;
|
|
25
26
|
error?: boolean;
|
|
27
|
+
ariaLabel?: string;
|
|
26
28
|
children?: React.ReactNode;
|
|
27
29
|
onChange: (name: string, value: string) => void;
|
|
28
30
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { Margins } from "../../common/styling";
|
|
3
|
+
interface WCProps extends Margins {
|
|
4
|
+
width?: string;
|
|
5
|
+
stickyheader?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare global {
|
|
8
|
+
namespace JSX {
|
|
9
|
+
interface IntrinsicElements {
|
|
10
|
+
"goa-table": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export interface TableProps extends Margins {
|
|
15
|
+
width?: string;
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export declare function GoATable(props: TableProps): JSX.Element;
|
|
19
|
+
export default GoATable;
|
|
@@ -11,6 +11,7 @@ interface WCProps extends Margins {
|
|
|
11
11
|
showcounter?: boolean;
|
|
12
12
|
maxcharcount?: number;
|
|
13
13
|
width?: string;
|
|
14
|
+
arialabel?: string;
|
|
14
15
|
}
|
|
15
16
|
declare global {
|
|
16
17
|
namespace JSX {
|
|
@@ -31,6 +32,7 @@ interface Props extends Margins {
|
|
|
31
32
|
maxCharCount?: number;
|
|
32
33
|
width?: string;
|
|
33
34
|
testId?: string;
|
|
35
|
+
ariaLabel?: string;
|
|
34
36
|
onChange: (name: string, value: string) => void;
|
|
35
37
|
}
|
|
36
38
|
export declare const GoATextArea: FC<Props>;
|