@oliasoft-open-source/react-ui-library 4.10.1 → 4.10.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.
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/{Color-KGDBMAHA-BmSw_KzG.js → Color-KGDBMAHA-B_oER2eh.js} +1 -1
- package/dist/storybook/assets/{DocsRenderer-PKQXORMH-BlNdGnnl.js → DocsRenderer-PKQXORMH-BOKNVKu9.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-DYWwH-nb.js → accordion.stories-BLEGXECa.js} +1 -1
- package/dist/storybook/assets/{buttons-and-links-CjXB4s8x.js → buttons-and-links-C9hhQd51.js} +1 -1
- package/dist/storybook/assets/{casing-loads.stories-CS3UEFRb.js → casing-loads.stories-BCXgA6_-.js} +1 -1
- package/dist/storybook/assets/{cell.stories-DC0iukzz.js → cell.stories-CrIM0y6t.js} +1 -1
- package/dist/storybook/assets/{chunk-HLWAVYOI-CdqYwoch.js → chunk-HLWAVYOI-BfZEBT2B.js} +1 -1
- package/dist/storybook/assets/{color-D1ekPWgj.js → color-BHnVca7t.js} +1 -1
- package/dist/storybook/assets/{footer.stories-BGebD8DA.js → footer.stories-BU-TGwM2.js} +1 -1
- package/dist/storybook/assets/{formation.stories-CSRmoL6O.js → formation.stories-DxVe8Zyc.js} +1 -1
- package/dist/storybook/assets/{iframe-DMfzIqb1.js → iframe-b7FGO4kK.js} +2 -2
- package/dist/storybook/assets/{index-CJinQmTJ.js → index-D0InYQf6.js} +1 -1
- package/dist/storybook/assets/{index-BwF9tkX6.js → index-DTpGZ2PI.js} +4 -4
- package/dist/storybook/assets/{input-validation-V4RLAMGW.js → input-validation-BpiPuwVL.js} +1 -1
- package/dist/storybook/assets/{inputs-DYObX2US.js → inputs-Cnu7J7Dg.js} +1 -1
- package/dist/storybook/assets/{layout-forms-DOSlFuR7.js → layout-forms-QYlS6UGn.js} +1 -1
- package/dist/storybook/assets/{layout-general-DjipRId4.js → layout-general-DAhM0iBJ.js} +1 -1
- package/dist/storybook/assets/{number-input-B25TXDQC.js → number-input-B5ReSBSL.js} +1 -1
- package/dist/storybook/assets/number-input.stories-DMAU21wG.js +180 -0
- package/dist/storybook/assets/{padding-and-spacing-CBfXtGz2.js → padding-and-spacing-DIn5b2MK.js} +1 -1
- package/dist/storybook/assets/{preview-CxrHbcEF.js → preview-CSnr1bcK.js} +1 -1
- package/dist/storybook/assets/{preview-C6ImNE9L.js → preview-D2MA-QXv.js} +2 -2
- package/dist/storybook/assets/{row.stories-C6aRnuL5.js → row.stories-C8rG1yoB.js} +1 -1
- package/dist/storybook/assets/{table-C9uAiJu6.css → table-B8ojy8Nj.css} +1 -1
- package/dist/storybook/assets/table-DdpQxqOc.js +86 -0
- package/dist/storybook/assets/{table.stories-BsPbkctl.js → table.stories-D4zMbjkS.js} +1 -1
- package/dist/storybook/assets/{table.stories-data-D52aKMY1.js → table.stories-data-C3vJedB1.js} +1 -1
- package/dist/storybook/assets/{title.stories-wr63QEGT.js → title.stories-hThIUrWl.js} +1 -1
- package/dist/storybook/assets/unit-input.stories-CkeTteis.js +421 -0
- package/dist/storybook/assets/{unit-table.stories-CbAekNaE.js → unit-table.stories-CEqyw4pW.js} +1 -1
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/project.json +1 -1
- package/package.json +2 -3
- package/dist/storybook/assets/number-input.stories-rcGMdz-Y.js +0 -166
- package/dist/storybook/assets/table-Dh7Es_V6.js +0 -86
- package/dist/storybook/assets/unit-input.stories-Dq7teE0t.js +0 -403
package/dist/index.js
CHANGED
|
@@ -55713,7 +55713,11 @@ const NumberInput = ({
|
|
|
55713
55713
|
const { valid, errors: errors2 } = validateInputValue(displayValue);
|
|
55714
55714
|
const firstError = errors2 && errors2.length && !disableInternalErrorValidationMessages ? errors2[0] : null;
|
|
55715
55715
|
useEffect(() => {
|
|
55716
|
-
|
|
55716
|
+
const nextValue = cosmeticRound(safeToString(value));
|
|
55717
|
+
const hasChanged = toNum(displayValue) !== toNum(nextValue);
|
|
55718
|
+
if (hasChanged) {
|
|
55719
|
+
setDisplayValue(nextValue);
|
|
55720
|
+
}
|
|
55717
55721
|
}, [value, enableCosmeticRounding, enableDisplayRounding]);
|
|
55718
55722
|
useEffect(() => {
|
|
55719
55723
|
if (!focus2 && !valid) {
|