@abgov/react-components 4.0.0-alpha.43 → 4.0.0-alpha.46
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/lib/button/button.d.ts
CHANGED
|
@@ -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 {
|
package/lib/form/form-item.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/react-components",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.46",
|
|
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": "^
|
|
21
|
-
"react-dom": "^
|
|
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
|
}
|
package/react-components.esm.js
CHANGED
|
@@ -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 => {
|
|
@@ -14317,7 +14317,7 @@ const GoAFormItem = ({
|
|
|
14317
14317
|
return jsx("goa-form-item", Object.assign({
|
|
14318
14318
|
label: label,
|
|
14319
14319
|
error: error,
|
|
14320
|
-
optional: optional,
|
|
14320
|
+
optional: optional ? "true" : "false",
|
|
14321
14321
|
helptext: helpText
|
|
14322
14322
|
}, {
|
|
14323
14323
|
children: children
|
package/react-components.umd.js
CHANGED
|
@@ -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 => {
|
|
@@ -14392,7 +14392,7 @@
|
|
|
14392
14392
|
return jsxRuntime.jsx("goa-form-item", __assign({
|
|
14393
14393
|
label: label,
|
|
14394
14394
|
error: error,
|
|
14395
|
-
optional: optional,
|
|
14395
|
+
optional: optional ? "true" : "false",
|
|
14396
14396
|
helptext: helpText
|
|
14397
14397
|
}, {
|
|
14398
14398
|
children: children
|