@oliasoft-open-source/react-ui-library 4.7.3 → 4.7.5
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/404.html +1 -1
- package/dist/assets/{index-D5kcnHmD.js → index-CbZ_B_tn.js} +54 -19
- package/dist/index.html +1 -1
- package/dist/index.js +65 -31
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/Color-KGDBMAHA-DHDKE9Re.js +1 -0
- package/dist/storybook/assets/DocsRenderer-PKQXORMH-BmaBzyAH.js +1 -0
- package/dist/storybook/assets/{accordion-6ouB0WTt.js → accordion-BiuI_LCA.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-DlFZNmdv.js → accordion.stories-BWUwZ5cN.js} +2 -2
- package/dist/storybook/assets/{actions-Cu_0szZ4.js → actions-CHgr8eL8.js} +1 -1
- package/dist/storybook/assets/{actions.stories-SCPuAp0T.js → actions.stories-CCDxFKFk.js} +1 -1
- package/dist/storybook/assets/{afe.stories-G3SzS3sg.js → afe.stories-CC785MgO.js} +2 -2
- package/dist/storybook/assets/{badge.stories-DGYA6_1I.js → badge.stories-D5DA-vxC.js} +1 -1
- package/dist/storybook/assets/{blowout.stories-P0LHuXSY.js → blowout.stories-ES-Fuaqn.js} +1 -1
- package/dist/storybook/assets/{button-_0DiND6h.js → button-VxhoNhrV.js} +1 -1
- package/dist/storybook/assets/{button-group-BYiHMljF.js → button-group-CwJdFo2z.js} +1 -1
- package/dist/storybook/assets/{button-group.stories-Bz6NHaeB.js → button-group.stories-DU5k5qCY.js} +1 -1
- package/dist/storybook/assets/{button.stories-vVBGddVf.js → button.stories-DVtec2Eo.js} +2 -2
- package/dist/storybook/assets/{buttons-and-links-B6aQa-f5.js → buttons-and-links-CfkgVoVA.js} +2 -2
- package/dist/storybook/assets/{card.stories-DIlqxO94.js → card.stories-CsTB0DuM.js} +1 -1
- package/dist/storybook/assets/{casing-loads.stories-0T--WlaD.js → casing-loads.stories-BoG7UuIu.js} +2 -2
- package/dist/storybook/assets/{cell.stories-C5Tkxyfr.js → cell.stories-CfiPC1eE.js} +2 -2
- package/dist/storybook/assets/{check-box-DkdQxC5c.js → check-box-BtCGePRy.js} +1 -1
- package/dist/storybook/assets/{check-box.stories-D8C12IQo.js → check-box.stories-L9T_i0RT.js} +1 -1
- package/dist/storybook/assets/{chunk-HLWAVYOI-dB_9CZG8.js → chunk-HLWAVYOI-CuMm7Qpv.js} +1 -1
- package/dist/storybook/assets/color-DJNturFf.js +25 -0
- package/dist/storybook/assets/{column.stories-C1Sxwh4f.js → column.stories-BxfR9Tla.js} +1 -1
- package/dist/storybook/assets/{dialog-CAWCUmp3.js → dialog-IAPGkLet.js} +1 -1
- package/dist/storybook/assets/{drawer-vbDFqa4U.js → drawer-BhuWxI7V.js} +1 -1
- package/dist/storybook/assets/{drawer.stories-CmbGsKmS.js → drawer.stories-B-PsNJJ6.js} +4 -4
- package/dist/storybook/assets/{empty.stories-iHPKKy4z.js → empty.stories-BVYXwvpa.js} +1 -1
- package/dist/storybook/assets/{field-DwLk_uWj.js → field-HrLaMLbx.js} +1 -1
- package/dist/storybook/assets/{field.stories-s-0LQVbp.js → field.stories-B9p9nBgY.js} +1 -1
- package/dist/storybook/assets/{file-button.stories-C90kcfbw.js → file-button.stories-FOaiNPt-.js} +1 -1
- package/dist/storybook/assets/{file-input-C_2w1dKj.js → file-input-BpMtsZ2S.js} +1 -1
- package/dist/storybook/assets/{file-input.stories-BEsZox6U.js → file-input.stories--ZoISXk0.js} +1 -1
- package/dist/storybook/assets/{flex.stories-D-QN0gkk.js → flex.stories-BEXf0VqI.js} +1 -1
- package/dist/storybook/assets/footer.stories-DdUzRiYm.js +3 -0
- package/dist/storybook/assets/form.stories-CDE7hTBL.js +49 -0
- package/dist/storybook/assets/formation.stories-vU3zoZ2c.js +74 -0
- package/dist/storybook/assets/{heading-DkSFysAb.js → heading-CRNoBc7q.js} +1 -1
- package/dist/storybook/assets/{heading.stories-Dtq7LNlB.js → heading.stories-DahFxeiX.js} +1 -1
- package/dist/storybook/assets/{help-icon-LfPZiYla.js → help-icon-Buhx5nl6.js} +1 -1
- package/dist/storybook/assets/{help-icon.stories-Dh2ylnGq.js → help-icon.stories-DbmZ1fgP.js} +1 -1
- package/dist/storybook/assets/icon-BSFY3vDO.js +8 -0
- package/dist/storybook/assets/{icon.stories-B-tKaIKA.js → icon.stories-C1hZXIMX.js} +1 -1
- package/dist/storybook/assets/iframe-CgUc-Ukp.js +2 -0
- package/dist/storybook/assets/index-CQKekHCo.js +1 -0
- package/dist/storybook/assets/{index-DQs5XS8h.js → index-CWz-hU-f.js} +5 -5
- package/dist/storybook/assets/{index-ccPuy0l1.js → index-DCGYYCUT.js} +8 -8
- package/dist/storybook/assets/{index.es-D2piFfFj.js → index.es-DazXb-ul.js} +4 -4
- package/dist/storybook/assets/inheritsLoose-DP0QEDDI.js +1 -0
- package/dist/storybook/assets/{input-D97ganXq.js → input-BW9trNAW.js} +1 -1
- package/dist/storybook/assets/{input-group.stories-BcoORZ9x.js → input-group.stories-BiReS545.js} +2 -2
- package/dist/storybook/assets/{input-validation-CLVu4gtl.js → input-validation-Bd_JP2WL.js} +2 -2
- package/dist/storybook/assets/{input.stories-BHdUwYqV.js → input.stories-BruLeJ44.js} +1 -1
- package/dist/storybook/assets/{inputs-qWlLPYX_.js → inputs-BsGUQTI3.js} +4 -4
- package/dist/storybook/assets/{label-tWjEmTQJ.js → label-CqmyC9he.js} +1 -1
- package/dist/storybook/assets/{label.stories-BTA8N7tD.js → label.stories-C0AO5F1a.js} +1 -1
- package/dist/storybook/assets/layout-forms-BH-i91Wg.js +16 -0
- package/dist/storybook/assets/{layout-general-Dn1nlXYw.js → layout-general-jp5QULaU.js} +2 -2
- package/dist/storybook/assets/{list-BpVed6Pw.js → list-yVTOdmpX.js} +1 -1
- package/dist/storybook/assets/{list.stories-CiT9J_FH.js → list.stories-ChqQXY5M.js} +2 -2
- package/dist/storybook/assets/{list.stories-data-CnVYk3eo.js → list.stories-data-Iq66w9oH.js} +1 -1
- package/dist/storybook/assets/{loader.stories-BKBFctQ1.js → loader.stories-DM7ZJBgz.js} +1 -1
- package/dist/storybook/assets/{menu.stories-Bp8L83xx.js → menu.stories-CSSvL08X.js} +2 -2
- package/dist/storybook/assets/{message-ttrR1AaP.js → message-ZenLdkrf.js} +1 -1
- package/dist/storybook/assets/{message.stories-C8YRT7nL.js → message.stories-Dmk-t8hM.js} +1 -1
- package/dist/storybook/assets/{meta-content-Djgg-tiF.js → meta-content-cbHGvPJ7.js} +1 -1
- package/dist/storybook/assets/{modal.stories-BoVj2EsX.js → modal.stories-BVttWvlZ.js} +2 -2
- package/dist/storybook/assets/{number-input-B-Nmya5O.js → number-input-uQOVHv2N.js} +1 -1
- package/dist/storybook/assets/{number-input.stories-CcNTeD25.js → number-input.stories-CVFfJvjY.js} +2 -2
- package/dist/storybook/assets/{option-dropdown.stories-COGmMWEl.js → option-dropdown.stories-CoLsSS95.js} +1 -1
- package/dist/storybook/assets/{padding-and-spacing-BNiScrzg.js → padding-and-spacing-D7O49YoW.js} +2 -2
- package/dist/storybook/assets/{page.stories-BB3g1zwB.js → page.stories-Cse3cMsO.js} +1 -1
- package/dist/storybook/assets/{pagination-DSQeMPG_.js → pagination-DzpYFhAO.js} +1 -1
- package/dist/storybook/assets/pagination.stories-CJwR-XAD.js +59 -0
- package/dist/storybook/assets/{pop-confirm.stories-Cr_ZBbLn.js → pop-confirm.stories-Hox7vJnl.js} +1 -1
- package/dist/storybook/assets/popover-CzZdWNnB.js +1 -0
- package/dist/storybook/assets/popover.stories-L5z549ww.js +10 -0
- package/dist/storybook/assets/preview-Bq2bLcjv.js +2 -0
- package/dist/storybook/assets/{preview-DhMlVLsE.js → preview-DOYx8RvS.js} +2 -2
- package/dist/storybook/assets/projects.stories-DU-QlBa6.js +47 -0
- package/dist/storybook/assets/{radio-button-BD7pi0ao.js → radio-button-YBwYcMaM.js} +1 -1
- package/dist/storybook/assets/{radio-button.stories-B84Ip3NV.js → radio-button.stories-Bg5JVXpo.js} +1 -1
- package/dist/storybook/assets/react-router-dom-Ck2Y_Fzc.js +8 -0
- package/dist/storybook/assets/{reservoirs.stories-kxVBoa7Y.js → reservoirs.stories-WKT7gCnp.js} +2 -2
- package/dist/storybook/assets/{rich-text-input.stories-C5pcIbSa.js → rich-text-input.stories-RjuY6LDo.js} +3 -3
- package/dist/storybook/assets/{row.stories-ATsrjumb.js → row.stories-B6IcyamO.js} +2 -2
- package/dist/storybook/assets/{select-78sreKsp.js → select-D55JvDou.js} +2 -2
- package/dist/storybook/assets/{select.stories-CZwsHVDB.js → select.stories-2DiOP0OZ.js} +2 -2
- package/dist/storybook/assets/{side-bar-WsK6pkmj.js → side-bar-CKbHPgIV.js} +1 -1
- package/dist/storybook/assets/{side-bar.stories-Bu2q_b_w.js → side-bar.stories-MUj_dj1F.js} +1 -1
- package/dist/storybook/assets/{site.stories-Yh4uNi3Q.js → site.stories-Ci4g5W2A.js} +2 -2
- package/dist/storybook/assets/{slider-CxVlS0fh.js → slider-DAramr8j.js} +4 -4
- package/dist/storybook/assets/{slider.stories-_wS70xsm.js → slider.stories-Cd0rLfHP.js} +2 -2
- package/dist/storybook/assets/{smart-upload-modal.stories-DDlO9y2j.js → smart-upload-modal.stories-OBY4Jc5w.js} +1 -1
- package/dist/storybook/assets/{spacer.stories-B3LrTr7b.js → spacer.stories-CHEZdgDM.js} +1 -1
- package/dist/storybook/assets/{table-DPvzYjoq.js → table-BOVkj1wL.js} +1 -1
- package/dist/storybook/assets/{table.stories-BGQ1O9nw.js → table.stories-CdFHs6Xl.js} +2 -2
- package/dist/storybook/assets/{table.stories-data-2STKbgzG.js → table.stories-data-CR9VpXHs.js} +1 -1
- package/dist/storybook/assets/text-link.stories-BQAkVO-W.js +14 -0
- package/dist/storybook/assets/{textarea-DOJDK8hI.js → textarea-BV7xWEdt.js} +1 -1
- package/dist/storybook/assets/{textarea.stories-CKm5MlQF.js → textarea.stories-aRLEoDHg.js} +1 -1
- package/dist/storybook/assets/{title.stories-CVRTXggL.js → title.stories-DT3HSIHi.js} +2 -2
- package/dist/storybook/assets/{toaster-DPbde9Mi.js → toaster-B8A3xIYu.js} +1 -1
- package/dist/storybook/assets/{toaster.stories-DfbfDavp.js → toaster.stories-B61l_zxQ.js} +1 -1
- package/dist/storybook/assets/{toggle-t1iTuSL7.js → toggle-CBpNgTrm.js} +1 -1
- package/dist/storybook/assets/{toggle.stories-D44S3Nix.js → toggle.stories-D4c4fr5t.js} +1 -1
- package/dist/storybook/assets/{tooltip-C_E_6ym5.js → tooltip-1V7clEnw.js} +1 -1
- package/dist/storybook/assets/{tooltip.stories-C70ADjjJ.js → tooltip.stories-1YexWg6N.js} +1 -1
- package/dist/storybook/assets/{tooltip.test-case.stories-BtrJUImB.js → tooltip.test-case.stories-i9YQqba1.js} +1 -1
- package/dist/storybook/assets/{top-bar-R-CjhJ21.js → top-bar-C_tn2Pc5.js} +1 -1
- package/dist/storybook/assets/top-bar.stories-B2a-RgK-.js +21 -0
- package/dist/storybook/assets/{top-bar.testcase.stories-ZPaSRyIh.js → top-bar.testcase.stories-DoPEAMYc.js} +1 -1
- package/dist/storybook/assets/{tree.stories-Ghxps-dL.js → tree.stories-6UHASEZu.js} +1 -1
- package/dist/storybook/assets/{unit-input.stories-Bqt0CdF7.js → unit-input.stories-DyeptPz2.js} +1 -1
- package/dist/storybook/assets/unit-table.stories-BAVqAbfG.js +150 -0
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/project.json +1 -1
- package/package.json +8 -4
- package/dist/storybook/assets/Color-KGDBMAHA-RK4YYQs0.js +0 -1
- package/dist/storybook/assets/DocsRenderer-PKQXORMH-B0ryFlHH.js +0 -1
- package/dist/storybook/assets/color-BSzeqkLx.js +0 -25
- package/dist/storybook/assets/extends-CF3RwP-h.js +0 -1
- package/dist/storybook/assets/footer.stories-U_zMDmxF.js +0 -3
- package/dist/storybook/assets/form.stories-1L75MGpX.js +0 -49
- package/dist/storybook/assets/formation.stories-YHpXrXvC.js +0 -74
- package/dist/storybook/assets/icon-BP4BO6-k.js +0 -8
- package/dist/storybook/assets/iframe-CNFcCVDc.js +0 -2
- package/dist/storybook/assets/index-BIwFZkUc.js +0 -1
- package/dist/storybook/assets/inheritsLoose-DR8r8Ogv.js +0 -1
- package/dist/storybook/assets/layout-forms-p4s8eHw6.js +0 -16
- package/dist/storybook/assets/pagination.stories-DjIohcDx.js +0 -59
- package/dist/storybook/assets/popover-Dq3iC_lM.js +0 -1
- package/dist/storybook/assets/popover.stories-CoWCb2Mn.js +0 -10
- package/dist/storybook/assets/preview-CZPuAPNr.js +0 -2
- package/dist/storybook/assets/projects.stories-BesbPJ8Z.js +0 -47
- package/dist/storybook/assets/react-router-dom-CMITYWBH.js +0 -8
- package/dist/storybook/assets/text-link.stories-BsuVBOWo.js +0 -14
- package/dist/storybook/assets/top-bar.stories-BYN9rcUw.js +0 -21
- package/dist/storybook/assets/unit-table.stories-DXies3fA.js +0 -150
package/dist/404.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-
|
|
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
|
|
56924
|
-
return
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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;
|
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-
|
|
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
|
@@ -6649,7 +6649,8 @@ const Dialog = ({ dialog: dialog2 }) => {
|
|
|
6649
6649
|
basic: true,
|
|
6650
6650
|
small: true,
|
|
6651
6651
|
colored: "muted",
|
|
6652
|
-
onClick: onClose
|
|
6652
|
+
onClick: onClose,
|
|
6653
|
+
testId: testId && `${testId}-dismiss`
|
|
6653
6654
|
}
|
|
6654
6655
|
) }) : null
|
|
6655
6656
|
] }),
|
|
@@ -19214,7 +19215,12 @@ var MessageToggle = /* @__PURE__ */ ((MessageToggle2) => {
|
|
|
19214
19215
|
MessageToggle2["TOGGLE_DETAILS"] = "TOGGLE_DETAILS";
|
|
19215
19216
|
return MessageToggle2;
|
|
19216
19217
|
})(MessageToggle || {});
|
|
19217
|
-
const Dismiss = ({
|
|
19218
|
+
const Dismiss = ({
|
|
19219
|
+
type,
|
|
19220
|
+
onClose,
|
|
19221
|
+
isInToast,
|
|
19222
|
+
testId
|
|
19223
|
+
}) => {
|
|
19218
19224
|
return /* @__PURE__ */ jsx(
|
|
19219
19225
|
"div",
|
|
19220
19226
|
{
|
|
@@ -19223,7 +19229,7 @@ const Dismiss = ({ type, onClose, isInToast }) => {
|
|
|
19223
19229
|
isInToast ? styles$s.absolute : "",
|
|
19224
19230
|
type === MessageType.INFO ? styles$s.info : type === MessageType.SUCCESS ? styles$s.success : type === MessageType.WARNING ? styles$s.warning : type === MessageType.ERROR ? styles$s.error : null
|
|
19225
19231
|
),
|
|
19226
|
-
children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CLOSE, onClick: onClose })
|
|
19232
|
+
children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CLOSE, onClick: onClose, testId })
|
|
19227
19233
|
}
|
|
19228
19234
|
);
|
|
19229
19235
|
};
|
|
@@ -20710,7 +20716,8 @@ const styles$m = {
|
|
|
20710
20716
|
const MultiSelectedOptions = ({
|
|
20711
20717
|
selectedOptions,
|
|
20712
20718
|
small: small2,
|
|
20713
|
-
width: width2
|
|
20719
|
+
width: width2,
|
|
20720
|
+
testId
|
|
20714
20721
|
}) => {
|
|
20715
20722
|
const isFontLoaded = useFontsReady();
|
|
20716
20723
|
const [displayedOptions, setDisplayedOptions] = useState([]);
|
|
@@ -20732,27 +20739,34 @@ const MultiSelectedOptions = ({
|
|
|
20732
20739
|
setDisplayedOptions(displayed);
|
|
20733
20740
|
setOverflowOptions(overflow);
|
|
20734
20741
|
}, [selectedOptions, isFontLoaded, width2]);
|
|
20735
|
-
return /* @__PURE__ */ jsxs(
|
|
20736
|
-
|
|
20737
|
-
|
|
20738
|
-
|
|
20739
|
-
|
|
20740
|
-
|
|
20741
|
-
|
|
20742
|
-
|
|
20743
|
-
|
|
20744
|
-
|
|
20745
|
-
|
|
20746
|
-
|
|
20747
|
-
|
|
20748
|
-
|
|
20749
|
-
|
|
20750
|
-
|
|
20751
|
-
|
|
20752
|
-
|
|
20753
|
-
|
|
20754
|
-
|
|
20755
|
-
|
|
20742
|
+
return /* @__PURE__ */ jsxs(
|
|
20743
|
+
"div",
|
|
20744
|
+
{
|
|
20745
|
+
className: styles$m.multiOptions,
|
|
20746
|
+
"data-testid": testId && `${testId}-value`,
|
|
20747
|
+
children: [
|
|
20748
|
+
displayedOptions.filter((option2) => option2 && option2.label).map((option2, index2) => /* @__PURE__ */ jsx(
|
|
20749
|
+
"span",
|
|
20750
|
+
{
|
|
20751
|
+
className: styles$m.multiOption,
|
|
20752
|
+
onClick: (evt) => {
|
|
20753
|
+
evt.stopPropagation();
|
|
20754
|
+
},
|
|
20755
|
+
children: option2.label
|
|
20756
|
+
},
|
|
20757
|
+
index2
|
|
20758
|
+
)),
|
|
20759
|
+
overflowOptions.length > 0 && /* @__PURE__ */ jsx(
|
|
20760
|
+
Tooltip,
|
|
20761
|
+
{
|
|
20762
|
+
text: overflowOptions.map((option2, index2) => /* @__PURE__ */ jsx("div", { children: option2.label }, index2)),
|
|
20763
|
+
display: "inline-flex",
|
|
20764
|
+
children: /* @__PURE__ */ jsx("span", { className: styles$m.multiOption, children: displayedOptions.length ? `+${overflowOptions.length}` : `${overflowOptions.length} items` })
|
|
20765
|
+
}
|
|
20766
|
+
)
|
|
20767
|
+
]
|
|
20768
|
+
}
|
|
20769
|
+
);
|
|
20756
20770
|
};
|
|
20757
20771
|
const Input = ({
|
|
20758
20772
|
selectedOptions,
|
|
@@ -20763,7 +20777,8 @@ const Input = ({
|
|
|
20763
20777
|
inputRef,
|
|
20764
20778
|
error: error2,
|
|
20765
20779
|
placeholder: placeholder3 = "Select...",
|
|
20766
|
-
small: small2
|
|
20780
|
+
small: small2,
|
|
20781
|
+
testId
|
|
20767
20782
|
}) => {
|
|
20768
20783
|
const containerRef = useRef(null);
|
|
20769
20784
|
const isMulti2 = Array.isArray(selectedOptions);
|
|
@@ -20781,9 +20796,17 @@ const Input = ({
|
|
|
20781
20796
|
{
|
|
20782
20797
|
selectedOptions,
|
|
20783
20798
|
small: small2,
|
|
20784
|
-
width: getMultiOptionsWidth()
|
|
20799
|
+
width: getMultiOptionsWidth(),
|
|
20800
|
+
testId
|
|
20801
|
+
}
|
|
20802
|
+
) : /* @__PURE__ */ jsx(
|
|
20803
|
+
"span",
|
|
20804
|
+
{
|
|
20805
|
+
className: styles$m.selectedSingleValue,
|
|
20806
|
+
"data-testid": testId && `${testId}-value`,
|
|
20807
|
+
children: !(searchValue == null ? void 0 : searchValue.length) ? selectedOptions == null ? void 0 : selectedOptions.label : ""
|
|
20785
20808
|
}
|
|
20786
|
-
)
|
|
20809
|
+
),
|
|
20787
20810
|
searchable ? /* @__PURE__ */ jsx(
|
|
20788
20811
|
"input",
|
|
20789
20812
|
{
|
|
@@ -20792,7 +20815,8 @@ const Input = ({
|
|
|
20792
20815
|
size: inputSize,
|
|
20793
20816
|
className: cx$2(styles$m.input, error2 ? styles$m.error : ""),
|
|
20794
20817
|
value: searchValue,
|
|
20795
|
-
onChange: (evt) => onChange(evt.target.value)
|
|
20818
|
+
onChange: (evt) => onChange(evt.target.value),
|
|
20819
|
+
"data-testid": testId && `${testId}-input`
|
|
20796
20820
|
}
|
|
20797
20821
|
) : null
|
|
20798
20822
|
] });
|
|
@@ -20888,7 +20912,8 @@ const Trigger = ({
|
|
|
20888
20912
|
inputRef,
|
|
20889
20913
|
onChange: onChangeSearch,
|
|
20890
20914
|
error: error2,
|
|
20891
|
-
small: small2
|
|
20915
|
+
small: small2,
|
|
20916
|
+
testId
|
|
20892
20917
|
}
|
|
20893
20918
|
),
|
|
20894
20919
|
/* @__PURE__ */ jsx("span", { className: styles$m.icons, children: canClear ? /* @__PURE__ */ jsx(
|
|
@@ -20904,6 +20929,7 @@ const Trigger = ({
|
|
|
20904
20929
|
onClickClear(evt);
|
|
20905
20930
|
}
|
|
20906
20931
|
},
|
|
20932
|
+
"data-testid": testId && `${testId}-clear`,
|
|
20907
20933
|
children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CLOSE })
|
|
20908
20934
|
}
|
|
20909
20935
|
) : /* @__PURE__ */ jsx("span", { className: cx$2(styles$m.iconOpen), children: /* @__PURE__ */ jsx(Icon, { icon: "chevron down" }) }) })
|
|
@@ -57704,7 +57730,15 @@ const toast = ({
|
|
|
57704
57730
|
const { type = MessageType.INFO } = message2 ?? {};
|
|
57705
57731
|
const CloseButton2 = ({
|
|
57706
57732
|
closeToast
|
|
57707
|
-
}) => /* @__PURE__ */ jsx(
|
|
57733
|
+
}) => /* @__PURE__ */ jsx(
|
|
57734
|
+
Dismiss,
|
|
57735
|
+
{
|
|
57736
|
+
type,
|
|
57737
|
+
onClose: closeToast,
|
|
57738
|
+
isInToast: true,
|
|
57739
|
+
testId: id2 !== void 0 ? id2.toString() + "-dismiss" : void 0
|
|
57740
|
+
}
|
|
57741
|
+
);
|
|
57708
57742
|
const content2 = /* @__PURE__ */ jsx(
|
|
57709
57743
|
Message,
|
|
57710
57744
|
{
|