@uxf/form 11.12.0 → 11.12.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.
@@ -14,6 +14,7 @@ function DropzoneInput(props) {
14
14
  const id = (_a = props.id) !== null && _a !== void 0 ? _a : `${formId}__${props.name}`;
15
15
  const { field, fieldState } = (0, react_hook_form_1.useController)({
16
16
  control: props.control,
17
+ disabled: props.isDisabled,
17
18
  defaultValue: props.defaultValue,
18
19
  name: props.name,
19
20
  rules: {
@@ -52,7 +53,7 @@ function DropzoneInput(props) {
52
53
  field.onChange(value);
53
54
  (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, value, event);
54
55
  };
55
- return (react_1.default.createElement(dropzone_1.Dropzone, { accept: props.accept, className: props.className, helperText: ((_d = fieldState.error) === null || _d === void 0 ? void 0 : _d.message) || props.helperText, id: id, isDisabled: props.isDisabled, isInvalid: !!fieldState.error, isRequired: props.isRequired, label: props.label, maxFileSize: props.maxFileSize, maxFilesCount: props.maxFilesCount, minFileSize: props.minFileSize, noClick: props.noClick, noDrag: props.noDrag, onChange: onChange, onUploadError: props.onUploadError, onUploadFile: props.onUploadFile, ref: field.ref, style: props.style, value: field.value, icon: props.icon, name: props.name }));
56
+ return (react_1.default.createElement(dropzone_1.Dropzone, { accept: props.accept, className: props.className, helperText: ((_d = fieldState.error) === null || _d === void 0 ? void 0 : _d.message) || props.helperText, icon: props.icon, id: id, isDisabled: props.isDisabled, isInvalid: !!fieldState.error, isRequired: props.isRequired, label: props.label, maxFileSize: props.maxFileSize, maxFilesCount: props.maxFilesCount, minFileSize: props.minFileSize, name: props.name, noClick: props.noClick, noDrag: props.noDrag, onChange: onChange, onUploadError: props.onUploadError, onUploadFile: props.onUploadFile, ref: field.ref, style: props.style, value: field.value }));
56
57
  }
57
58
  exports.DropzoneInput = DropzoneInput;
58
59
  DropzoneInput.displayName = "UxfFormDropzoneInput";
@@ -42,7 +42,7 @@ function NumberInput(props) {
42
42
  const onKeyDown = (event) => {
43
43
  var _a;
44
44
  // Allow special keys
45
- const specialKeys = ["Backspace", "Delete", "ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown"];
45
+ const specialKeys = ["Backspace", "Delete", "ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Tab"];
46
46
  // Allow keys for copy/paste/select/cut
47
47
  const controlKeys = ["v", "V", "c", "C", "x", "X", "a", "A"];
48
48
  // Allow digits and decimal point (.,)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/form",
3
- "version": "11.12.0",
3
+ "version": "11.12.1",
4
4
  "description": "",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -12,7 +12,7 @@
12
12
  "author": "UX Fans s.r.o",
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
- "@uxf/ui": "11.12.0",
15
+ "@uxf/ui": "11.12.1",
16
16
  "coordinate-parser": "1.0.7",
17
17
  "dayjs": "1.11.10",
18
18
  "react-hook-form": "7.51.0"