@bluecateng/pelagos-forms 4.1.1 → 5.0.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.
- package/dist/index.js +0 -1
- package/package.json +2 -2
- package/dist/components/FormDropZone.js +0 -15
package/dist/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { default as FormCheckBox } from './components/FormCheckBox';
|
|
2
2
|
export { default as FormDropDown } from './components/FormDropDown';
|
|
3
|
-
export { default as FormDropZone } from './components/FormDropZone';
|
|
4
3
|
export { default as FormFileUploader } from './components/FormFileUploader';
|
|
5
4
|
export { default as FormTagInput } from './components/FormTagInput';
|
|
6
5
|
export { default as FormTextArea } from './components/FormTextArea';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bluecateng/pelagos-forms",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"description": "Form components",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"@bluecateng/auto-forms": ">= 0",
|
|
25
25
|
"@bluecateng/pelagos": ">= 10"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "2569e4d06769ea7bbf4d63cd2aa05fce8ddab91f"
|
|
28
28
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { connect } from '@bluecateng/auto-forms';
|
|
2
|
-
import { DropZone } from '@bluecateng/pelagos';
|
|
3
|
-
export const mapState = ({
|
|
4
|
-
extra,
|
|
5
|
-
error,
|
|
6
|
-
setValue,
|
|
7
|
-
setExtra
|
|
8
|
-
}) => ({
|
|
9
|
-
fileName: extra,
|
|
10
|
-
error,
|
|
11
|
-
onDrop: (...args) => args.length === 1 ? (setExtra(args[0].name), setValue(args[0])) : (setExtra(args[0]), setValue(args[1]))
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
/** @deprecated use FormFileUploader instead. */
|
|
15
|
-
export default connect(DropZone, mapState);
|