@oliasoft-open-source/react-ui-library 3.5.5 → 3.5.6

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ import * as PropTypes from "prop-types";
10
10
  import PropTypes__default from "prop-types";
11
11
  import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
12
12
  import ReactDOM, { createPortal, unstable_batchedUpdates, findDOMNode as findDOMNode$2, render } from "react-dom";
13
- import { validateNumber, toNum } from "@oliasoft-open-source/units";
13
+ import { validateNumber } from "@oliasoft-open-source/units";
14
14
  const global$2 = "";
15
15
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
16
16
  function getDefaultExportFromCjs(x2) {
@@ -62109,14 +62109,13 @@ const NumberInput = ({
62109
62109
  errors
62110
62110
  } = validateInputValue(inputValue);
62111
62111
  if (valid) {
62112
- const newValue = toNum(inputValue);
62113
62112
  onChange({
62114
62113
  target: {
62115
- value: newValue,
62114
+ value: inputValue,
62116
62115
  name: name2
62117
62116
  }
62118
62117
  });
62119
- setDisplayValue(newValue);
62118
+ setDisplayValue(inputValue);
62120
62119
  setValidationError(null);
62121
62120
  validationCallback(name2, null);
62122
62121
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "3.5.5",
3
+ "version": "3.5.6",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {