@bluecateng/pelagos-forms 4.1.0 → 5.0.0

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.
@@ -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,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": "4.1.0",
3
+ "version": "5.0.0",
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": "97624e2da13e7fdc7184b7c70437dc47a1b9aa33"
27
+ "gitHead": "7b6c1f5dc0af5e807ca3e93400557500fdff2aa1"
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);