@abgov/react-components 4.15.0-alpha.6 → 4.15.0-alpha.7

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.
@@ -5,7 +5,7 @@
5
5
  "typings": "./index.d.ts",
6
6
  "dependencies": {},
7
7
  "peerDependencies": {
8
- "react": "17.0.2",
9
- "date-fns": "^2.29.2"
8
+ "date-fns": "^2.29.2",
9
+ "react": "17.0.2"
10
10
  }
11
11
  }
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.15.0-alpha.6",
3
+ "version": "4.15.0-alpha.7",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"