@oliasoft-open-source/react-ui-library 4.7.3-beta-6 → 4.7.4

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 (145) hide show
  1. package/dist/404.html +1 -0
  2. package/dist/assets/{index-7PLAdoQ9.js → index-CbZ_B_tn.js} +54 -20
  3. package/dist/index.d.ts +0 -5
  4. package/dist/index.html +1 -1
  5. package/dist/index.js +9 -32
  6. package/dist/index.js.map +1 -1
  7. package/dist/storybook/assets/Color-KGDBMAHA-fBkbFrxl.js +1 -0
  8. package/dist/storybook/assets/DocsRenderer-PKQXORMH-BCXpse5g.js +1 -0
  9. package/dist/storybook/assets/{accordion-BiuI_LCA.js → accordion-6ouB0WTt.js} +1 -1
  10. package/dist/storybook/assets/{accordion.stories-sb-Y7MMb.js → accordion.stories-MGPZF2zs.js} +2 -2
  11. package/dist/storybook/assets/{actions-4w-EOz3m.js → actions-CZK3mphC.js} +1 -1
  12. package/dist/storybook/assets/{actions.stories-CtocfSW4.js → actions.stories-FOK1cLb3.js} +1 -1
  13. package/dist/storybook/assets/{afe.stories--E_j7kET.js → afe.stories-Zs5w8AL0.js} +2 -2
  14. package/dist/storybook/assets/{badge.stories-CKnNQLZ5.js → badge.stories-D30jHm96.js} +1 -1
  15. package/dist/storybook/assets/{blowout.stories-AxiXaQQ-.js → blowout.stories-CJrNKpKP.js} +1 -1
  16. package/dist/storybook/assets/{button-CdEIDAx8.js → button-C1sV-0mR.js} +1 -1
  17. package/dist/storybook/assets/{button-group-BIUVa0X9.js → button-group-Ai4DXqNr.js} +1 -1
  18. package/dist/storybook/assets/{button-group.stories-B0Gb9kNs.js → button-group.stories-incmyYJ-.js} +1 -1
  19. package/dist/storybook/assets/{button.stories-CHt71NKu.js → button.stories-Bcy7mnLs.js} +2 -2
  20. package/dist/storybook/assets/{buttons-and-links-BauLyn_y.js → buttons-and-links-DGEwyzdQ.js} +2 -2
  21. package/dist/storybook/assets/{card.stories-Cddrprok.js → card.stories-Bn6LpucB.js} +1 -1
  22. package/dist/storybook/assets/{casing-loads.stories-EZlP6XsN.js → casing-loads.stories-BZZ4ps89.js} +2 -2
  23. package/dist/storybook/assets/{cell.stories-D9KrTmCA.js → cell.stories-DtPT5vsK.js} +2 -2
  24. package/dist/storybook/assets/{check-box-2fHPdAZG.js → check-box-CaSrhzev.js} +1 -1
  25. package/dist/storybook/assets/{check-box.stories-Do-GOmLf.js → check-box.stories-J1keUUs0.js} +1 -1
  26. package/dist/storybook/assets/{chunk-HLWAVYOI-BX6pTYCG.js → chunk-HLWAVYOI-B_e8hbrU.js} +1 -1
  27. package/dist/storybook/assets/color-BWuYLPlh.js +25 -0
  28. package/dist/storybook/assets/{column.stories-rKyxUTAG.js → column.stories-JMvj3_fr.js} +1 -1
  29. package/dist/storybook/assets/{dialog-B-R6eAnf.js → dialog-lhPZkAI2.js} +1 -1
  30. package/dist/storybook/assets/{drawer-BOl7GxGI.js → drawer-DSS8yvvp.js} +1 -1
  31. package/dist/storybook/assets/drawer.stories-D6FBs1_r.js +113 -0
  32. package/dist/storybook/assets/{empty.stories-BKEXzh9o.js → empty.stories-G8jeIfLL.js} +1 -1
  33. package/dist/storybook/assets/extends-CF3RwP-h.js +1 -0
  34. package/dist/storybook/assets/{field-nInV3MuR.js → field-C5_fLDpy.js} +1 -1
  35. package/dist/storybook/assets/{field.stories-eRSYmEtA.js → field.stories-D5Mej0Bt.js} +1 -1
  36. package/dist/storybook/assets/{file-button.stories-CH6kxEKM.js → file-button.stories-DePr8MKB.js} +1 -1
  37. package/dist/storybook/assets/{file-input-Amcc9o5I.js → file-input-BZecnRBy.js} +1 -1
  38. package/dist/storybook/assets/{file-input.stories-aiTQE5UN.js → file-input.stories-BH_glmEk.js} +1 -1
  39. package/dist/storybook/assets/{flex.stories-CT6o2gii.js → flex.stories-sSdg0ChR.js} +1 -1
  40. package/dist/storybook/assets/footer.stories-CsvsDr1-.js +3 -0
  41. package/dist/storybook/assets/form.stories-BwzDZgen.js +49 -0
  42. package/dist/storybook/assets/formation.stories-2ZjWA25v.js +74 -0
  43. package/dist/storybook/assets/{heading-EzI5s4VN.js → heading-NkLgQYoP.js} +1 -1
  44. package/dist/storybook/assets/{heading.stories-D5x1-mKs.js → heading.stories-nI_cFnAN.js} +1 -1
  45. package/dist/storybook/assets/{help-icon-CfV3_Ais.js → help-icon-41R-Z9N1.js} +1 -1
  46. package/dist/storybook/assets/{help-icon.stories-D4KS1wlT.js → help-icon.stories-DBYh0YX7.js} +1 -1
  47. package/dist/storybook/assets/icon-BP4BO6-k.js +8 -0
  48. package/dist/storybook/assets/{icon.stories-C1hZXIMX.js → icon.stories-B-tKaIKA.js} +1 -1
  49. package/dist/storybook/assets/iframe-DLWAAiXM.js +2 -0
  50. package/dist/storybook/assets/index-BrCAgVdx.js +1 -0
  51. package/dist/storybook/assets/{index-DQs5XS8h.js → index-CWz-hU-f.js} +5 -5
  52. package/dist/storybook/assets/{index-CZerqvnp.js → index-tzHbUYOM.js} +8 -8
  53. package/dist/storybook/assets/{index.es-DazXb-ul.js → index.es-D2piFfFj.js} +4 -4
  54. package/dist/storybook/assets/inheritsLoose-DR8r8Ogv.js +1 -0
  55. package/dist/storybook/assets/{input-D97ganXq.js → input-BW9trNAW.js} +1 -1
  56. package/dist/storybook/assets/{input-group.stories-hHCmTbtu.js → input-group.stories-D1i3gaZ1.js} +2 -2
  57. package/dist/storybook/assets/{input-validation-DejYoLOw.js → input-validation-BcgNUeij.js} +2 -2
  58. package/dist/storybook/assets/{input.stories-BHdUwYqV.js → input.stories-BruLeJ44.js} +1 -1
  59. package/dist/storybook/assets/{inputs-NeM4HqdZ.js → inputs-gN3bum_f.js} +4 -4
  60. package/dist/storybook/assets/{label-Cz6TT90s.js → label-hiSz3I8H.js} +1 -1
  61. package/dist/storybook/assets/{label.stories-BzSzxxM-.js → label.stories-Cyv5jBAO.js} +1 -1
  62. package/dist/storybook/assets/layout-forms-DXG6Da8u.js +16 -0
  63. package/dist/storybook/assets/{layout-general-BoKJ4ZlB.js → layout-general-CEpJsTnH.js} +2 -2
  64. package/dist/storybook/assets/{list-BtA0jYMp.js → list-DYNKqvUR.js} +1 -1
  65. package/dist/storybook/assets/{list.stories-CmJsmJZJ.js → list.stories-BX67BegD.js} +2 -2
  66. package/dist/storybook/assets/{list.stories-data-C_w1DX5i.js → list.stories-data-D_ZfzaxE.js} +1 -1
  67. package/dist/storybook/assets/{loader.stories-CA2m3EFj.js → loader.stories-DjrwwZ15.js} +1 -1
  68. package/dist/storybook/assets/{menu.stories-Bc2kf356.js → menu.stories-BE0AzXUY.js} +2 -2
  69. package/dist/storybook/assets/{message-ZenLdkrf.js → message-ttrR1AaP.js} +1 -1
  70. package/dist/storybook/assets/{message.stories-CXOrrAOR.js → message.stories-o5jcKCK_.js} +1 -1
  71. package/dist/storybook/assets/{meta-content-BdypOdcN.js → meta-content-BE7pulye.js} +1 -1
  72. package/dist/storybook/assets/{modal.stories-ChRLG9ud.js → modal.stories-Ns1ikKLR.js} +2 -2
  73. package/dist/storybook/assets/{number-input-B-Nmya5O.js → number-input-uQOVHv2N.js} +1 -1
  74. package/dist/storybook/assets/{number-input.stories-COWyMRAs.js → number-input.stories-BfRW8wgL.js} +2 -2
  75. package/dist/storybook/assets/{option-dropdown.stories-DvgAgTHQ.js → option-dropdown.stories-ByLG631x.js} +1 -1
  76. package/dist/storybook/assets/{padding-and-spacing-CUlpXdO2.js → padding-and-spacing-By28ROLj.js} +2 -2
  77. package/dist/storybook/assets/{page.stories-DdAfcsOc.js → page.stories-br9ia4zp.js} +1 -1
  78. package/dist/storybook/assets/{pagination-0wY_w1xz.js → pagination-CqvxiZHR.js} +1 -1
  79. package/dist/storybook/assets/pagination.stories-BzMlcLsN.js +59 -0
  80. package/dist/storybook/assets/{pop-confirm.stories-D4L3erpj.js → pop-confirm.stories-MFDc3UAq.js} +1 -1
  81. package/dist/storybook/assets/popover-DgUpTRMk.js +1 -0
  82. package/dist/storybook/assets/popover.stories-CPW_LGAh.js +10 -0
  83. package/dist/storybook/assets/{preview-BiBwi-VL.js → preview-CO5-Yrmk.js} +2 -2
  84. package/dist/storybook/assets/preview-eMMARKcW.js +2 -0
  85. package/dist/storybook/assets/projects.stories-BSAMs8RG.js +47 -0
  86. package/dist/storybook/assets/{radio-button-J4oEQdxt.js → radio-button-C_cV5TWA.js} +1 -1
  87. package/dist/storybook/assets/{radio-button.stories-BFp_qyyE.js → radio-button.stories-D7uvMLbK.js} +1 -1
  88. package/dist/storybook/assets/react-router-dom-CMITYWBH.js +8 -0
  89. package/dist/storybook/assets/{reservoirs.stories-DywuU8EY.js → reservoirs.stories-Cql_9W4F.js} +2 -2
  90. package/dist/storybook/assets/{rich-text-input.stories-Cw_6EJx8.js → rich-text-input.stories-BuDUgUsz.js} +3 -3
  91. package/dist/storybook/assets/{row.stories-D7V0fxhq.js → row.stories-C-bEP9pE.js} +2 -2
  92. package/dist/storybook/assets/{select-yqiMF9-4.js → select-tIEV7vnw.js} +2 -2
  93. package/dist/storybook/assets/{select.stories-VMcOn7Ri.js → select.stories-BuW6SmRZ.js} +2 -2
  94. package/dist/storybook/assets/{side-bar-DAMfASqb.js → side-bar-ChOjPNLR.js} +1 -1
  95. package/dist/storybook/assets/{side-bar.stories-BlEIOckL.js → side-bar.stories-BupidZk5.js} +1 -1
  96. package/dist/storybook/assets/{site.stories-Kk57nhAn.js → site.stories-C1GnbK5P.js} +2 -2
  97. package/dist/storybook/assets/{slider-BLU39INk.js → slider-gZmYlxxz.js} +4 -4
  98. package/dist/storybook/assets/{slider.stories-DdVxUAfH.js → slider.stories-CY4GxD4Y.js} +2 -2
  99. package/dist/storybook/assets/{smart-upload-modal.stories-Cot88l9r.js → smart-upload-modal.stories-DGIErcSu.js} +1 -1
  100. package/dist/storybook/assets/{spacer.stories-Dd1QMhoc.js → spacer.stories-D7Q45uBk.js} +1 -1
  101. package/dist/storybook/assets/{table-DmwpXp_Q.js → table-CXUwJOBt.js} +1 -1
  102. package/dist/storybook/assets/{table.stories-DKcZk5JR.js → table.stories-Cp0UIPUQ.js} +2 -2
  103. package/dist/storybook/assets/{table.stories-data-C6x-UHeN.js → table.stories-data-DwfKQW7P.js} +1 -1
  104. package/dist/storybook/assets/text-link.stories-BsuVBOWo.js +14 -0
  105. package/dist/storybook/assets/{textarea-DOJDK8hI.js → textarea-BV7xWEdt.js} +1 -1
  106. package/dist/storybook/assets/{textarea.stories-CKm5MlQF.js → textarea.stories-aRLEoDHg.js} +1 -1
  107. package/dist/storybook/assets/{title.stories-CKbl0CB2.js → title.stories-hn5F8-2J.js} +2 -2
  108. package/dist/storybook/assets/{toaster-B8A3xIYu.js → toaster-DPbde9Mi.js} +1 -1
  109. package/dist/storybook/assets/{toaster.stories-DuE6vvV6.js → toaster.stories-DtRx7MDa.js} +1 -1
  110. package/dist/storybook/assets/{toggle-D0yzyALV.js → toggle-Bo-JPbUP.js} +1 -1
  111. package/dist/storybook/assets/{toggle.stories-Cre2gnIB.js → toggle.stories-CBkCAQh6.js} +1 -1
  112. package/dist/storybook/assets/{tooltip-C_E_6ym5.js → tooltip-1V7clEnw.js} +1 -1
  113. package/dist/storybook/assets/{tooltip.stories-C70ADjjJ.js → tooltip.stories-1YexWg6N.js} +1 -1
  114. package/dist/storybook/assets/{tooltip.test-case.stories-BWJhZQg8.js → tooltip.test-case.stories-C74mKGrI.js} +1 -1
  115. package/dist/storybook/assets/{top-bar-mKg-xcLh.js → top-bar-DG4ok0uF.js} +1 -1
  116. package/dist/storybook/assets/top-bar.stories-BI4a_ekv.js +21 -0
  117. package/dist/storybook/assets/{top-bar.testcase.stories-BlbsX9By.js → top-bar.testcase.stories-DzsYUZIx.js} +1 -1
  118. package/dist/storybook/assets/{tree.stories-CkYwGe0X.js → tree.stories-RtuZpYXn.js} +1 -1
  119. package/dist/storybook/assets/unit-input.stories-DGvDLll8.js +290 -0
  120. package/dist/storybook/assets/unit-table.stories-D0q58B-1.js +150 -0
  121. package/dist/storybook/iframe.html +1 -1
  122. package/dist/storybook/project.json +1 -1
  123. package/package.json +3 -3
  124. package/dist/storybook/assets/Color-KGDBMAHA-CkztEiML.js +0 -1
  125. package/dist/storybook/assets/DocsRenderer-PKQXORMH-CP_Q5IGB.js +0 -1
  126. package/dist/storybook/assets/color-BNalCYYX.js +0 -25
  127. package/dist/storybook/assets/drawer.stories-qH2nYW2a.js +0 -113
  128. package/dist/storybook/assets/footer.stories-B5zvZawz.js +0 -3
  129. package/dist/storybook/assets/form.stories-D58sdhOk.js +0 -49
  130. package/dist/storybook/assets/formation.stories-OtA8Hcp6.js +0 -74
  131. package/dist/storybook/assets/icon-BSFY3vDO.js +0 -8
  132. package/dist/storybook/assets/iframe-qFXWLeOa.js +0 -2
  133. package/dist/storybook/assets/index-DEMnWl0Y.js +0 -1
  134. package/dist/storybook/assets/inheritsLoose-DP0QEDDI.js +0 -1
  135. package/dist/storybook/assets/layout-forms-B8949Fjt.js +0 -16
  136. package/dist/storybook/assets/pagination.stories-BagAIIz3.js +0 -59
  137. package/dist/storybook/assets/popover-CvS_kBVF.js +0 -1
  138. package/dist/storybook/assets/popover.stories-ChwzGOlc.js +0 -10
  139. package/dist/storybook/assets/preview-DbtMUp2m.js +0 -2
  140. package/dist/storybook/assets/projects.stories-ApHyZURX.js +0 -47
  141. package/dist/storybook/assets/react-router-dom-Ck2Y_Fzc.js +0 -8
  142. package/dist/storybook/assets/text-link.stories-BQAkVO-W.js +0 -14
  143. package/dist/storybook/assets/top-bar.stories-CFZoJq-r.js +0 -21
  144. package/dist/storybook/assets/unit-input.stories-aY3ydXnU.js +0 -290
  145. package/dist/storybook/assets/unit-table.stories-BoNWlaAe.js +0 -150
package/dist/404.html ADDED
@@ -0,0 +1 @@
1
+ <!doctype html><head><title>React UI Library</title><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1" user-scalable="no"><meta name="apple-mobile-web-app-capable" content="yes"><script type="module" crossorigin src="/react-ui-library/assets/index-CbZ_B_tn.js"></script><link rel="stylesheet" crossorigin href="/react-ui-library/assets/index-Oe0PlEED.css"></head><body><div id="content"></div></body>
@@ -11918,15 +11918,7 @@ const TooltipLayer = ({
11918
11918
  ...layerProps,
11919
11919
  children: [
11920
11920
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { maxWidth, fontSize, padding: padding2 }, children: text2 }),
11921
- /* @__PURE__ */ jsxRuntimeExports.jsx(
11922
- Arrow,
11923
- {
11924
- ...arrowProps,
11925
- size: 6,
11926
- onPointerEnterCapture: void 0,
11927
- onPointerLeaveCapture: void 0
11928
- }
11929
- )
11921
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Arrow, { ...arrowProps, size: 6 })
11930
11922
  ]
11931
11923
  }
11932
11924
  );
@@ -56894,6 +56886,7 @@ function requireParseNumber() {
56894
56886
  const units_1 = requireUnits();
56895
56887
  const numbers_1 = requireNumbers();
56896
56888
  const utils_12 = requireUtils();
56889
+ const display_number_1 = requireDisplayNumber();
56897
56890
  const countTrailingZeros = (value, decimalPartOnly = false) => {
56898
56891
  var _a, _b, _c, _d;
56899
56892
  const condition = decimalPartOnly ? /0+((?=[|eE])|$)/ : /(0+|0+\.0+)((?=[|eE])|$)/;
@@ -56920,8 +56913,15 @@ function requireParseNumber() {
56920
56913
  };
56921
56914
  };
56922
56915
  exports.parseNumber = parseNumber2;
56923
- const unParseNumber = (value, unit, isString2) => {
56924
- return unit ? (0, units_1.withUnit)(value, unit) : isString2 && typeof value !== "string" ? String(value) : value;
56916
+ const safeStringifyNumber = (value, isScientific) => {
56917
+ return isScientific ? String(value) : (0, display_number_1.formatDecimalDisplayNumber)(value, { noThousandsSeparator: true });
56918
+ };
56919
+ const unParseNumber = ({ value, unit, isString: isString2, isScientific }) => {
56920
+ const convertedValue = typeof value === "number" && isString2 ? safeStringifyNumber(value, isScientific) : value;
56921
+ if (unit) {
56922
+ return (0, units_1.withUnit)(convertedValue, unit);
56923
+ }
56924
+ return convertedValue;
56925
56925
  };
56926
56926
  exports.unParseNumber = unParseNumber;
56927
56927
  })(parseNumber);
@@ -57074,7 +57074,12 @@ function requireRounding() {
57074
57074
  }
57075
57075
  const { number: number2, unit, isString: isString2 } = (0, parse_number_1.parseNumber)(value);
57076
57076
  const result = !(0, utils_12.isNumeric)(number2) || typeof number2 === "string" && number2.endsWith(".") ? value : (0, exports.roundNumber)(number2, n2);
57077
- return (0, parse_number_1.unParseNumber)(result, unit, isString2);
57077
+ return (0, parse_number_1.unParseNumber)({
57078
+ value: result,
57079
+ unit,
57080
+ isString: isString2,
57081
+ isScientific: (0, numbers_1.isScientificStringNum)(value)
57082
+ });
57078
57083
  };
57079
57084
  exports.round = round2;
57080
57085
  const roundNumberToPrecision = (value, n2 = DEFAULT_SIGNIFICANT_DIGITS) => {
@@ -57114,7 +57119,12 @@ function requireRounding() {
57114
57119
  }
57115
57120
  const { number: number2, unit, isString: isString2 } = (0, parse_number_1.parseNumber)(value);
57116
57121
  const result = !(0, utils_12.isNumeric)(number2) || typeof number2 === "string" && number2.endsWith(".") ? value : (0, exports.roundNumberToPrecision)(number2, n2);
57117
- return (0, parse_number_1.unParseNumber)(result, unit, isString2);
57122
+ return (0, parse_number_1.unParseNumber)({
57123
+ value: result,
57124
+ unit,
57125
+ isString: isString2,
57126
+ isScientific: (0, numbers_1.isScientificStringNum)(value)
57127
+ });
57118
57128
  };
57119
57129
  exports.roundToPrecision = roundToPrecision;
57120
57130
  const roundToDecimalPrecision = (value, n2 = DEFAULT_SIGNIFICANT_DIGITS) => {
@@ -57126,7 +57136,12 @@ function requireRounding() {
57126
57136
  }
57127
57137
  const { number: number2, unit, isString: isString2 } = (0, parse_number_1.parseNumber)(value);
57128
57138
  const result = !(0, utils_12.isNumeric)(number2) || typeof number2 === "string" && number2.endsWith(".") ? value : (0, exports.roundNumberToDecimalPrecision)(number2, n2);
57129
- return (0, parse_number_1.unParseNumber)(result, unit, isString2);
57139
+ return (0, parse_number_1.unParseNumber)({
57140
+ value: result,
57141
+ unit,
57142
+ isString: isString2,
57143
+ isScientific: (0, numbers_1.isScientificStringNum)(value)
57144
+ });
57130
57145
  };
57131
57146
  exports.roundToDecimalPrecision = roundToDecimalPrecision;
57132
57147
  const roundNumberByMagnitude = (value, n2 = DEFAULT_SIGNIFICANT_DIGITS, toFixed = false) => {
@@ -57144,7 +57159,12 @@ function requireRounding() {
57144
57159
  }
57145
57160
  const { number: number2, unit, isString: isString2 } = (0, parse_number_1.parseNumber)(value);
57146
57161
  const result = !(0, utils_12.isNumeric)(number2) || typeof number2 === "string" && number2.endsWith(".") ? value : (0, exports.roundNumberByMagnitude)(number2, n2);
57147
- return (0, parse_number_1.unParseNumber)(result, unit, isString2);
57162
+ return (0, parse_number_1.unParseNumber)({
57163
+ value: result,
57164
+ unit,
57165
+ isString: isString2,
57166
+ isScientific: (0, numbers_1.isScientificStringNum)(value)
57167
+ });
57148
57168
  };
57149
57169
  exports.roundByMagnitude = roundByMagnitude;
57150
57170
  const roundByMagnitudeToFixed = (value, n2 = DEFAULT_SIGNIFICANT_DIGITS) => {
@@ -57157,7 +57177,12 @@ function requireRounding() {
57157
57177
  }
57158
57178
  const { number: number2, unit } = (0, parse_number_1.parseNumber)(value, true);
57159
57179
  const result = !(0, utils_12.isNumeric)(number2) || typeof number2 === "string" && number2.endsWith(".") ? value : (0, exports.roundNumberByMagnitude)(number2, n2, toFixed);
57160
- return (0, parse_number_1.unParseNumber)(result, unit, true);
57180
+ return (0, parse_number_1.unParseNumber)({
57181
+ value: result,
57182
+ unit,
57183
+ isString: true,
57184
+ isScientific: (0, numbers_1.isScientificStringNum)(value)
57185
+ });
57161
57186
  };
57162
57187
  exports.roundByMagnitudeToFixed = roundByMagnitudeToFixed;
57163
57188
  const roundNumberByRange = (value, min, max, n2 = DEFAULT_SIGNIFICANT_DIGITS) => {
@@ -57179,7 +57204,12 @@ function requireRounding() {
57179
57204
  }
57180
57205
  const { number: number2, unit, isString: isString2 } = (0, parse_number_1.parseNumber)(value);
57181
57206
  const result = !(0, utils_12.isNumeric)(number2) || typeof number2 === "string" && number2.endsWith(".") ? value : (0, exports.roundNumberByRange)(number2, min, max, n2);
57182
- return (0, parse_number_1.unParseNumber)(result, unit, isString2);
57207
+ return (0, parse_number_1.unParseNumber)({
57208
+ value: result,
57209
+ unit,
57210
+ isString: isString2,
57211
+ isScientific: (0, numbers_1.isScientificStringNum)(value)
57212
+ });
57183
57213
  };
57184
57214
  exports.roundByRange = roundByRange;
57185
57215
  const roundToFixed = (value, n2 = DEFAULT_SIGNIFICANT_DIGITS) => {
@@ -57191,7 +57221,12 @@ function requireRounding() {
57191
57221
  }
57192
57222
  const { number: number2, unit, isString: isString2 } = (0, parse_number_1.parseNumber)(value);
57193
57223
  const result = !(0, utils_12.isNumeric)(number2) || typeof number2 === "string" && number2.endsWith(".") ? value : number2.toFixed(n2);
57194
- return (0, parse_number_1.unParseNumber)(result, unit, isString2);
57224
+ return (0, parse_number_1.unParseNumber)({
57225
+ value: result,
57226
+ unit,
57227
+ isString: isString2,
57228
+ isScientific: (0, numbers_1.isScientificStringNum)(value)
57229
+ });
57195
57230
  };
57196
57231
  exports.roundToFixed = roundToFixed;
57197
57232
  })(rounding);
@@ -57246,7 +57281,7 @@ function requireDisplayNumber() {
57246
57281
  if (!(0, numbers_1.isValidNum)(value)) {
57247
57282
  return (0, utils_12.trim)(value.toString());
57248
57283
  }
57249
- const space = nonBreakingSpace ? " " : " ";
57284
+ const space = (options2 === null || options2 === void 0 ? void 0 : options2.noThousandsSeparator) ? "" : nonBreakingSpace ? " " : " ";
57250
57285
  return (0, exports.formatDecimal)(value, space, options2 === null || options2 === void 0 ? void 0 : options2.preserveTrailingZeros);
57251
57286
  };
57252
57287
  exports.formatDecimalDisplayNumber = formatDecimalDisplayNumber;
@@ -75846,7 +75881,6 @@ function TreeInner(props, ref2) {
75846
75881
  }
75847
75882
  reactExports.forwardRef(TreeInner);
75848
75883
  requireUnits();
75849
- reactExports.createContext(null);
75850
75884
  const Footer = () => {
75851
75885
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
75852
75886
  /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {}),
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { ChangeEvent } from 'react';
2
- import { Context } from 'react';
3
2
  import { CSSProperties } from 'react';
4
3
  import { default as default_2 } from 'react';
5
4
  import { DependencyList } from 'react';
@@ -867,8 +866,6 @@ export declare interface INativeSelectProps {
867
866
  maxTooltipWidth?: TStringOrNumber;
868
867
  }
869
868
 
870
- export declare const initializeContext: (context: Context<UnitContextType | null>) => void;
871
-
872
869
  export declare const Input: default_2.ForwardRefExoticComponent<IInputProps & default_2.RefAttributes<HTMLInputElement>>;
873
870
 
874
871
  export declare const InputGroup: ({ children, small, width, }: IInputGroupProps) => ReactElement;
@@ -1855,8 +1852,6 @@ export declare type TTriggerType = 'Text' | 'Button' | 'DropDownButton' | 'Compo
1855
1852
 
1856
1853
  declare type TUnitTableCellShape = TCellShape | IUnitTableStaticCell | IUnitTableInputCell | IUnitTableNumberInputCell;
1857
1854
 
1858
- declare type UnitContextType = any;
1859
-
1860
1855
  export declare const UnitInput: ({ name, placeholder, disabled, disabledUnit, error, left, small, width, value, unitkey, initUnit, noConversion, onChange, onClick, onFocus, onSwitchUnit, unitTemplate, doNotConvertValue, testId, warning, predefinedOptions, initialPredefinedOption, shouldLinkAutomaticly, selectedPredefinedOptionKey, validationCallback, disabledValidation, allowEmpty, autoValue, }: IUnitInputProps) => JSX_2.Element;
1861
1856
 
1862
1857
  export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, }: IUnitTableProps) => JSX_2.Element;
package/dist/index.html CHANGED
@@ -1 +1 @@
1
- <!doctype html><head><title>React UI Library</title><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1" user-scalable="no"><meta name="apple-mobile-web-app-capable" content="yes"><script type="module" crossorigin src="/react-ui-library/assets/index-7PLAdoQ9.js"></script><link rel="stylesheet" crossorigin href="/react-ui-library/assets/index-Oe0PlEED.css"></head><body><div id="content"></div></body>
1
+ <!doctype html><head><title>React UI Library</title><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1" user-scalable="no"><meta name="apple-mobile-web-app-capable" content="yes"><script type="module" crossorigin src="/react-ui-library/assets/index-CbZ_B_tn.js"></script><link rel="stylesheet" crossorigin href="/react-ui-library/assets/index-Oe0PlEED.css"></head><body><div id="content"></div></body>
package/dist/index.js CHANGED
@@ -3741,15 +3741,7 @@ const TooltipLayer = ({
3741
3741
  ...layerProps,
3742
3742
  children: [
3743
3743
  /* @__PURE__ */ jsx("div", { style: { maxWidth, fontSize, padding: padding2 }, children: text2 }),
3744
- /* @__PURE__ */ jsx(
3745
- Arrow,
3746
- {
3747
- ...arrowProps,
3748
- size: 6,
3749
- onPointerEnterCapture: void 0,
3750
- onPointerLeaveCapture: void 0
3751
- }
3752
- )
3744
+ /* @__PURE__ */ jsx(Arrow, { ...arrowProps, size: 6 })
3753
3745
  ]
3754
3746
  }
3755
3747
  );
@@ -21894,9 +21886,7 @@ const Popover = ({
21894
21886
  backgroundColor: "var(--color-background-layer)",
21895
21887
  borderColor: "var(--color-border)",
21896
21888
  borderWidth: 1,
21897
- size: 6,
21898
- onPointerEnterCapture: void 0,
21899
- onPointerLeaveCapture: void 0
21889
+ size: 6
21900
21890
  }
21901
21891
  )
21902
21892
  ]
@@ -70026,7 +70016,7 @@ const getPreferredUnit = (unitkey, unitTemplate) => {
70026
70016
  const preferredUnit = unitTemplate == null ? void 0 : unitTemplate[unitkey];
70027
70017
  if (!preferredUnit) {
70028
70018
  console.log(
70029
- `Warning: 'unitTemplate' missing for '${unitkey}'. Using initial unit, preferred unit or value unit.`
70019
+ `Warning: 'unitTemplate' does not define a preferred unit for '${unitkey}'. Defaulting to standard unit.`
70030
70020
  );
70031
70021
  return unitFromQuantity(unitkey) ?? "";
70032
70022
  }
@@ -70124,17 +70114,6 @@ const isKnownUnit = (valueWithUnit, defaultUnit) => {
70124
70114
  const unitFromValue = getUnit(valueWithUnit || "");
70125
70115
  return isUnitKnown(defaultUnit) && isUnitKnown(unitFromValue);
70126
70116
  };
70127
- let UnitContext = createContext(null);
70128
- const useUnitContext = () => {
70129
- return useContext(UnitContext);
70130
- };
70131
- let isInitialized = false;
70132
- const initializeContext = (context2) => {
70133
- if (!isInitialized) {
70134
- isInitialized = true;
70135
- UnitContext = context2;
70136
- }
70137
- };
70138
70117
  const predefinedMenuActive = "_predefinedMenuActive_1yvt4_1";
70139
70118
  const styles = {
70140
70119
  predefinedMenuActive
@@ -70173,19 +70152,18 @@ const UnitInput = ({
70173
70152
  allowEmpty = false,
70174
70153
  autoValue
70175
70154
  }) => {
70176
- const context2 = useUnitContext();
70177
- const runAfterUpdate = useRunAfterUpdate();
70178
70155
  if (typeof value === "number") {
70179
70156
  value = `${value}`;
70180
70157
  }
70158
+ const runAfterUpdate = useRunAfterUpdate();
70181
70159
  const [propValue = "", propUnit = ""] = value !== void 0 ? split$1(value) : [];
70182
70160
  const propAutoUnit = autoValue ? getUnit(autoValue) : "";
70183
- const preferredUnit = useMemo$1(
70184
- () => getPreferredUnit(unitkey, unitTemplate || (context2 == null ? void 0 : context2.unitTemplate)),
70185
- [unitkey, unitTemplate, context2 == null ? void 0 : context2.unitTemplate]
70161
+ const defaultUnit = useMemo$1(
70162
+ () => getPreferredUnit(unitkey, unitTemplate),
70163
+ [unitkey, unitTemplate]
70186
70164
  );
70187
- const knownUnit = isKnownUnit(value, preferredUnit);
70188
- const initDisplayUnit = initUnit || preferredUnit || propUnit;
70165
+ const knownUnit = isKnownUnit(value, defaultUnit);
70166
+ const initDisplayUnit = initUnit || defaultUnit || propUnit;
70189
70167
  const previousInitUnit = usePrevious(initDisplayUnit);
70190
70168
  const convertedValue = safeConvertValue(
70191
70169
  value,
@@ -70854,7 +70832,6 @@ export {
70854
70832
  UnitInput,
70855
70833
  UnitTable,
70856
70834
  dismissToast,
70857
- initializeContext,
70858
70835
  readFile,
70859
70836
  toast,
70860
70837
  useFocus,