@abgov/react-components 4.14.0 → 4.15.0-alpha.10
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/experimental/package.json +2 -2
- package/index.d.ts +2 -0
- package/lib/calendar/calendar.d.ts +25 -0
- package/lib/date-picker/date-picker.d.ts +25 -0
- package/lib/form/form-item.d.ts +2 -0
- package/lib/hero-banner/hero-banner.d.ts +6 -2
- package/lib/modal/modal.d.ts +3 -2
- package/lib/radio-group/radio.d.ts +2 -2
- package/package.json +1 -1
- package/react-components.esm.js +1202 -230
- package/react-components.umd.js +1198 -226
package/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import "@abgov/web-components";
|
|
2
|
+
export * from "./lib/date-picker/date-picker";
|
|
3
|
+
export * from "./lib/calendar/calendar";
|
|
2
4
|
export * from "./lib/side-menu-group/side-menu-group";
|
|
3
5
|
export * from "./lib/side-menu-heading/side-menu-heading";
|
|
4
6
|
export * from "./lib/side-menu/side-menu";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React, { FC } from "react";
|
|
2
|
+
import { Margins } from "../../common/styling";
|
|
3
|
+
interface Props extends Margins {
|
|
4
|
+
name?: string;
|
|
5
|
+
value?: Date;
|
|
6
|
+
min?: Date;
|
|
7
|
+
max?: Date;
|
|
8
|
+
onChange: (name: string, value: Date) => void;
|
|
9
|
+
}
|
|
10
|
+
interface WCProps extends Margins {
|
|
11
|
+
ref: React.RefObject<HTMLElement>;
|
|
12
|
+
name?: string;
|
|
13
|
+
value?: string;
|
|
14
|
+
min?: string;
|
|
15
|
+
max?: string;
|
|
16
|
+
}
|
|
17
|
+
declare global {
|
|
18
|
+
namespace JSX {
|
|
19
|
+
interface IntrinsicElements {
|
|
20
|
+
"goa-calendar": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export declare const GoACalendar: FC<Props>;
|
|
25
|
+
export default GoACalendar;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React, { FC } from "react";
|
|
2
|
+
import { Margins } from "../../common/styling";
|
|
3
|
+
interface Props extends Margins {
|
|
4
|
+
name?: string;
|
|
5
|
+
value?: Date;
|
|
6
|
+
min?: Date;
|
|
7
|
+
max?: Date;
|
|
8
|
+
onChange: (name: string, value: Date) => void;
|
|
9
|
+
}
|
|
10
|
+
interface WCProps extends Margins {
|
|
11
|
+
ref: React.RefObject<HTMLElement>;
|
|
12
|
+
name?: string;
|
|
13
|
+
value?: string;
|
|
14
|
+
min?: string;
|
|
15
|
+
max?: string;
|
|
16
|
+
}
|
|
17
|
+
declare global {
|
|
18
|
+
namespace JSX {
|
|
19
|
+
interface IntrinsicElements {
|
|
20
|
+
"goa-date-picker": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export declare const GoADatePicker: FC<Props>;
|
|
25
|
+
export default GoADatePicker;
|
package/lib/form/form-item.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { Margins } from "../../common/styling";
|
|
|
3
3
|
declare type RequirementType = "optional" | "required";
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
5
|
label?: string;
|
|
6
|
+
labelsize?: string;
|
|
6
7
|
requirement?: RequirementType;
|
|
7
8
|
error?: string;
|
|
8
9
|
helptext?: string;
|
|
@@ -17,6 +18,7 @@ declare global {
|
|
|
17
18
|
}
|
|
18
19
|
interface GoAFormItemProps extends Margins {
|
|
19
20
|
label?: string;
|
|
21
|
+
labelSize?: string;
|
|
20
22
|
requirement?: RequirementType;
|
|
21
23
|
error?: string;
|
|
22
24
|
helpText?: string;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React, { FC } from "react";
|
|
2
2
|
interface WCProps {
|
|
3
3
|
heading: string;
|
|
4
|
-
backgroundurl
|
|
4
|
+
backgroundurl?: string;
|
|
5
5
|
minheight?: string;
|
|
6
6
|
maxcontentwidth?: string;
|
|
7
|
+
backgroundcolor?: string;
|
|
8
|
+
textcolor?: string;
|
|
7
9
|
}
|
|
8
10
|
declare global {
|
|
9
11
|
namespace JSX {
|
|
@@ -14,11 +16,13 @@ declare global {
|
|
|
14
16
|
}
|
|
15
17
|
interface Props {
|
|
16
18
|
heading: string;
|
|
17
|
-
backgroundUrl
|
|
19
|
+
backgroundUrl?: string;
|
|
18
20
|
minHeight?: string;
|
|
19
21
|
testId?: string;
|
|
20
22
|
children?: React.ReactNode;
|
|
21
23
|
maxContentWidth?: string;
|
|
24
|
+
backgroundColor?: string;
|
|
25
|
+
textColor?: string;
|
|
22
26
|
}
|
|
23
27
|
export declare const GoAHeroBanner: FC<Props>;
|
|
24
28
|
export default GoAHeroBanner;
|
package/lib/modal/modal.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ interface WCProps {
|
|
|
5
5
|
ref: React.RefObject<HTMLElement>;
|
|
6
6
|
heading?: React.ReactNode;
|
|
7
7
|
open?: boolean;
|
|
8
|
-
|
|
8
|
+
maxwidth?: string;
|
|
9
9
|
closable?: boolean;
|
|
10
10
|
scrollable?: boolean;
|
|
11
11
|
transition?: ModalTransition;
|
|
@@ -20,7 +20,7 @@ declare global {
|
|
|
20
20
|
}
|
|
21
21
|
interface Props {
|
|
22
22
|
heading?: React.ReactNode;
|
|
23
|
-
|
|
23
|
+
maxWidth?: string;
|
|
24
24
|
actions?: React.ReactElement;
|
|
25
25
|
onClose?: () => void;
|
|
26
26
|
transition?: ModalTransition;
|
|
@@ -29,6 +29,7 @@ interface Props {
|
|
|
29
29
|
type?: string;
|
|
30
30
|
calloutVariant?: CalloutVariant;
|
|
31
31
|
testId?: string;
|
|
32
|
+
width?: string;
|
|
32
33
|
}
|
|
33
34
|
export declare const GoAModal: FC<Props>;
|
|
34
35
|
export default GoAModal;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FC } from "react";
|
|
2
2
|
interface RadioItemProps {
|
|
3
|
-
name
|
|
3
|
+
name?: string;
|
|
4
4
|
value: string;
|
|
5
5
|
description?: string;
|
|
6
6
|
label?: string;
|
|
@@ -18,8 +18,8 @@ declare global {
|
|
|
18
18
|
interface Props {
|
|
19
19
|
value: string;
|
|
20
20
|
label?: string;
|
|
21
|
+
name?: string;
|
|
21
22
|
description?: string;
|
|
22
|
-
name: string;
|
|
23
23
|
disabled?: boolean;
|
|
24
24
|
checked?: boolean;
|
|
25
25
|
error?: boolean;
|