@uxf/ui 11.86.0 → 11.88.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.
@@ -34,10 +34,11 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.InputElement = void 0;
37
+ const filter_aria_and_data_attrs_1 = require("@uxf/core/utils/filter-aria-and-data-attrs");
37
38
  const react_1 = __importStar(require("react"));
38
39
  exports.InputElement = (0, react_1.forwardRef)((props, ref) => {
39
40
  const onChange = (event) => props.onChange(event.target.value, event);
40
- const filteredProps = Object.fromEntries(Object.entries(props).filter((p) => { var _a, _b; return Boolean(((_a = p.at(0)) === null || _a === void 0 ? void 0 : _a.startsWith("aria-")) || ((_b = p.at(0)) === null || _b === void 0 ? void 0 : _b.startsWith("data-"))); }));
41
- return (react_1.default.createElement("input", { ...filteredProps, "aria-describedby": props["aria-describedby"], "aria-invalid": props.isInvalid, autoComplete: props.autoComplete, autoFocus: props.autoFocus, className: "uxf-input__element", disabled: props.isDisabled, form: props.form, id: props.id, inputMode: props.inputMode, max: props.max, maxLength: props.maxLength, min: props.min, minLength: props.minLength, name: props.name, onBlur: props.onBlur, onChange: onChange, onFocus: props.onFocus, onKeyDown: props.onKeyDown, pattern: props.pattern, placeholder: props.placeholder, readOnly: props.isReadOnly, ref: ref, step: props.step, style: props.style, tabIndex: props.isReadOnly ? -1 : undefined, type: props.type, value: props.value }));
41
+ const ariaAndDataAttrs = (0, filter_aria_and_data_attrs_1.filterAriaAndDataAttrs)(props);
42
+ return (react_1.default.createElement("input", { ...ariaAndDataAttrs, "aria-describedby": props["aria-describedby"], "aria-invalid": props.isInvalid, autoComplete: props.autoComplete, autoFocus: props.autoFocus, className: "uxf-input__element", disabled: props.isDisabled, form: props.form, id: props.id, inputMode: props.inputMode, max: props.max, maxLength: props.maxLength, min: props.min, minLength: props.minLength, name: props.name, onBlur: props.onBlur, onChange: onChange, onFocus: props.onFocus, onKeyDown: props.onKeyDown, pattern: props.pattern, placeholder: props.placeholder, readOnly: props.isReadOnly, ref: ref, step: props.step, style: props.style, tabIndex: props.isReadOnly ? -1 : undefined, type: props.type, value: props.value }));
42
43
  });
43
44
  exports.InputElement.displayName = "UxfUiInputElement";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/ui",
3
- "version": "11.86.0",
3
+ "version": "11.88.0",
4
4
  "description": "",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -23,12 +23,12 @@
23
23
  "dependencies": {
24
24
  "@floating-ui/react": "0.27.16",
25
25
  "@headlessui/react": "1.7.19",
26
- "@uxf/core": "11.85.0",
27
- "@uxf/core-react": "11.86.0",
28
- "@uxf/datepicker": "11.86.0",
29
- "@uxf/styles": "11.86.0",
26
+ "@uxf/core": "11.88.0",
27
+ "@uxf/core-react": "11.88.0",
28
+ "@uxf/datepicker": "11.88.0",
29
+ "@uxf/styles": "11.88.0",
30
30
  "color2k": "2.0.3",
31
- "dayjs": "1.11.18",
31
+ "dayjs": "1.11.19",
32
32
  "react-dropzone": "14.3.8"
33
33
  },
34
34
  "peerDependencies": {