@abgov/react-components 4.15.0-alpha.6 → 4.15.0-alpha.8
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/hero-banner/hero-banner.d.ts +6 -2
- package/package.json +1 -1
- package/react-components.esm.js +1179 -218
- package/react-components.umd.js +1175 -214
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;
|
|
@@ -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/package.json
CHANGED