@oliasoft-open-source/react-ui-library 3.6.1 → 3.6.3

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 +17 -5
  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) {
@@ -25549,7 +25549,11 @@ const NativeSelect = ({
25549
25549
  };
25550
25550
  const selectOptionShape$1 = {
25551
25551
  label: PropTypes__default.oneOfType([PropTypes__default.number, PropTypes__default.string]).isRequired,
25552
- value: PropTypes__default.oneOfType([PropTypes__default.number, PropTypes__default.string]).isRequired
25552
+ value: PropTypes__default.oneOfType([
25553
+ PropTypes__default.number,
25554
+ PropTypes__default.string,
25555
+ PropTypes__default.bool
25556
+ ]).isRequired
25553
25557
  };
25554
25558
  NativeSelect.defaultProps = {
25555
25559
  borderRadius: null,
@@ -27325,7 +27329,11 @@ const CustomSelect = ({
27325
27329
  const selectOptionShape = PropTypes__default.oneOfType([
27326
27330
  PropTypes__default.shape({
27327
27331
  label: PropTypes__default.oneOfType([PropTypes__default.number, PropTypes__default.string]).isRequired,
27328
- value: PropTypes__default.oneOfType([PropTypes__default.number, PropTypes__default.string]).isRequired,
27332
+ value: PropTypes__default.oneOfType([
27333
+ PropTypes__default.number,
27334
+ PropTypes__default.string,
27335
+ PropTypes__default.bool
27336
+ ]).isRequired,
27329
27337
  icon: PropTypes__default.oneOfType([PropTypes__default.node, PropTypes__default.string]),
27330
27338
  actions: actionsShape,
27331
27339
  testId: PropTypes__default.string
@@ -27337,7 +27345,11 @@ const selectOptionShape = PropTypes__default.oneOfType([
27337
27345
  ]);
27338
27346
  const selectedOptionShape = {
27339
27347
  label: PropTypes__default.oneOfType([PropTypes__default.number, PropTypes__default.string]).isRequired,
27340
- value: PropTypes__default.oneOfType([PropTypes__default.number, PropTypes__default.string]).isRequired
27348
+ value: PropTypes__default.oneOfType([
27349
+ PropTypes__default.number,
27350
+ PropTypes__default.string,
27351
+ PropTypes__default.bool
27352
+ ]).isRequired
27341
27353
  };
27342
27354
  const selectedOptionsShape = PropTypes__default.oneOfType([
27343
27355
  PropTypes__default.string,
@@ -62231,7 +62243,7 @@ const NumberInput = ({
62231
62243
  const onSetValue = (evt) => {
62232
62244
  const input2 = evt.target;
62233
62245
  const { value: value2 } = input2;
62234
- const inputValue = value2.replaceAll(" ", "");
62246
+ const inputValue = cleanNumStr(value2.replaceAll(" ", ""));
62235
62247
  const { valid, errors } = validateInputValue(inputValue);
62236
62248
  if (valid) {
62237
62249
  onChange({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "3.6.1",
3
+ "version": "3.6.3",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {