@abgov/react-components 4.0.0-alpha.4 → 4.0.0-alpha.40

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.
@@ -1,9 +1,16 @@
1
- import React, { FC } from 'react';
1
+ import React, { FC, ReactNode } from 'react';
2
+ export interface WCPageBlockProps {
3
+ width: "full" | string;
4
+ }
2
5
  declare global {
3
6
  namespace JSX {
4
7
  interface IntrinsicElements {
5
- 'goa-page-block': React.HTMLAttributes<HTMLElement>;
8
+ 'goa-page-block': WCPageBlockProps & React.HTMLAttributes<HTMLElement>;
6
9
  }
7
10
  }
8
11
  }
9
- export declare const GoAPageBlock: FC;
12
+ export interface PageBlockProps {
13
+ width: "full" | string;
14
+ children: ReactNode;
15
+ }
16
+ export declare const GoAPageBlock: FC<PageBlockProps>;
@@ -9,6 +9,7 @@ interface WCProps {
9
9
  disabled?: boolean;
10
10
  showcounter?: boolean;
11
11
  maxcharcount?: number;
12
+ width?: string;
12
13
  }
13
14
  declare global {
14
15
  namespace JSX {
@@ -27,6 +28,7 @@ interface Props {
27
28
  disabled?: boolean;
28
29
  showCounter?: boolean;
29
30
  maxCharCount?: number;
31
+ width?: string;
30
32
  testId?: string;
31
33
  onChange: (name: string, value: string) => void;
32
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.0.0-alpha.4",
3
+ "version": "4.0.0-alpha.40",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -16,14 +16,13 @@
16
16
  "url": "https://github.com/GovAlta/ui-components.git",
17
17
  "directory": "libs/react-components"
18
18
  },
19
- "dependencies": {
20
- "@abgov/web-components": "^1.0.0-alpha.23"
21
- },
22
19
  "peerDependencies": {
23
20
  "react": "^17.0.2",
24
- "react-dom": "^17.0.2"
21
+ "react-dom": "^17.0.2",
22
+ "date-fns": "^2.29.2"
25
23
  },
26
24
  "main": "./react-components.umd.js",
27
25
  "module": "./react-components.esm.js",
28
- "typings": "./index.d.ts"
26
+ "typings": "./index.d.ts",
27
+ "dependencies": {}
29
28
  }