@oliasoft-open-source/react-ui-library 3.6.1-beta-1 → 3.6.2
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 +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import React__default, { useState, useRef, useEffect, useCallback as useCallback
|
|
|
10
10
|
import * as PropTypes from "prop-types";
|
|
11
11
|
import PropTypes__default from "prop-types";
|
|
12
12
|
import ReactDOM, { createPortal, unstable_batchedUpdates, findDOMNode as findDOMNode$2, render } from "react-dom";
|
|
13
|
-
import { validateNumber } from "@oliasoft-open-source/units";
|
|
13
|
+
import { validateNumber, cleanNumStr } 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) {
|
|
@@ -62231,7 +62231,7 @@ const NumberInput = ({
|
|
|
62231
62231
|
const onSetValue = (evt) => {
|
|
62232
62232
|
const input2 = evt.target;
|
|
62233
62233
|
const { value: value2 } = input2;
|
|
62234
|
-
const inputValue = value2.replaceAll(" ", "");
|
|
62234
|
+
const inputValue = cleanNumStr(value2.replaceAll(" ", ""));
|
|
62235
62235
|
const { valid, errors } = validateInputValue(inputValue);
|
|
62236
62236
|
if (valid) {
|
|
62237
62237
|
onChange({
|
package/package.json
CHANGED