@abgov/react-components 4.0.0-alpha.42 → 4.0.0-alpha.45

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,7 +1,7 @@
1
1
  import React, { FC, ReactNode } from 'react';
2
2
  import './button.css';
3
3
  import { GoAIconType } from '../icons';
4
- export declare type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'start';
4
+ export declare type ButtonType = 'primary' | 'submit' | 'secondary' | 'tertiary' | 'start';
5
5
  export declare type ButtonSize = 'compact' | 'normal';
6
6
  export declare type ButtonVariant = 'normal' | 'destructive';
7
7
  interface WCProps {
@@ -22,6 +22,7 @@ interface Props {
22
22
  colored?: boolean;
23
23
  padding?: ContainerPadding;
24
24
  actions?: ReactNode;
25
+ children?: ReactNode;
25
26
  }
26
27
  export declare const GoAContainer: FC<Props>;
27
28
  export default GoAContainer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.0.0-alpha.42",
3
+ "version": "4.0.0-alpha.45",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -17,12 +17,13 @@
17
17
  "directory": "libs/react-components"
18
18
  },
19
19
  "peerDependencies": {
20
- "react": "^17.0.2",
21
- "react-dom": "^17.0.2",
20
+ "react": "^18.0.0",
21
+ "react-dom": "^18.0.0"
22
+ },
23
+ "dependencies": {
22
24
  "date-fns": "^2.29.2"
23
25
  },
24
26
  "main": "./react-components.umd.js",
25
27
  "module": "./react-components.esm.js",
26
- "typings": "./index.d.ts",
27
- "dependencies": {}
28
+ "typings": "./index.d.ts"
28
29
  }
@@ -7251,7 +7251,7 @@ function instance$g($$self, $$props, $$invalidate) {
7251
7251
  error = ""
7252
7252
  } = $$props;
7253
7253
  let {
7254
- optional = ""
7254
+ optional = "false"
7255
7255
  } = $$props;
7256
7256
 
7257
7257
  $$self.$$set = $$props => {
@@ -7298,7 +7298,7 @@
7298
7298
  error = ""
7299
7299
  } = $$props;
7300
7300
  let {
7301
- optional = ""
7301
+ optional = "false"
7302
7302
  } = $$props;
7303
7303
 
7304
7304
  $$self.$$set = $$props => {