@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.
- package/dist/index.js +3 -4
- 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
|
|
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:
|
|
62114
|
+
value: inputValue,
|
|
62116
62115
|
name: name2
|
|
62117
62116
|
}
|
|
62118
62117
|
});
|
|
62119
|
-
setDisplayValue(
|
|
62118
|
+
setDisplayValue(inputValue);
|
|
62120
62119
|
setValidationError(null);
|
|
62121
62120
|
validationCallback(name2, null);
|
|
62122
62121
|
} else {
|
package/package.json
CHANGED