@bluecateng/pelagos-forms 4.0.0 → 4.1.1
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.
|
@@ -10,4 +10,6 @@ export const mapState = ({
|
|
|
10
10
|
error,
|
|
11
11
|
onDrop: (...args) => args.length === 1 ? (setExtra(args[0].name), setValue(args[0])) : (setExtra(args[0]), setValue(args[1]))
|
|
12
12
|
});
|
|
13
|
+
|
|
14
|
+
/** @deprecated use FormFileUploader instead. */
|
|
13
15
|
export default connect(DropZone, mapState);
|
|
@@ -6,13 +6,11 @@ const FormSubmit = ({
|
|
|
6
6
|
...props
|
|
7
7
|
}) => {
|
|
8
8
|
const {
|
|
9
|
-
isChanged
|
|
10
|
-
hasErrors
|
|
9
|
+
isChanged
|
|
11
10
|
} = useFormState();
|
|
12
11
|
return /*#__PURE__*/_jsx(Button, {
|
|
13
12
|
...props,
|
|
14
|
-
type: isChanged() ? 'primary' : 'tertiary'
|
|
15
|
-
disabled: hasErrors()
|
|
13
|
+
type: isChanged() ? 'primary' : 'tertiary'
|
|
16
14
|
});
|
|
17
15
|
};
|
|
18
16
|
FormSubmit.propTypes = {
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as FormCheckBox } from './components/FormCheckBox';
|
|
2
2
|
export { default as FormDropDown } from './components/FormDropDown';
|
|
3
3
|
export { default as FormDropZone } from './components/FormDropZone';
|
|
4
|
+
export { default as FormFileUploader } from './components/FormFileUploader';
|
|
4
5
|
export { default as FormTagInput } from './components/FormTagInput';
|
|
5
6
|
export { default as FormTextArea } from './components/FormTextArea';
|
|
6
7
|
export { default as FormTextInput } from './components/FormTextInput';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bluecateng/pelagos-forms",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Form components",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"exports": "./dist/index.js",
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@bluecateng/auto-forms": ">= 0",
|
|
25
|
-
"@bluecateng/pelagos": ">=
|
|
25
|
+
"@bluecateng/pelagos": ">= 10"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "05859c00abbb735a75373377e25fe255bff5544c"
|
|
28
28
|
}
|