@oliasoft-open-source/react-ui-library 4.6.4-beta-4 → 4.6.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.
- package/dist/404.html +1 -0
- package/dist/index.js +11 -16
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/{Color-6VNJS4EI-0dI5E6B1.js → Color-6VNJS4EI-H6GX9JuX.js} +1 -1
- package/dist/storybook/assets/{DocsRenderer-NNNQARDV-kmVtXdCN.js → DocsRenderer-NNNQARDV-61WZ2ztU.js} +1 -1
- package/dist/storybook/assets/{WithTooltip-V3YHNWJZ-aK2veb6S.js → WithTooltip-V3YHNWJZ-6RntR6-_.js} +1 -1
- package/dist/storybook/assets/{buttons-and-links-HrdPUmHC.js → buttons-and-links-UD3PzaIj.js} +1 -1
- package/dist/storybook/assets/{casing-loads.stories-2DfdZN2W.js → casing-loads.stories-Ilvo3kc-.js} +1 -1
- package/dist/storybook/assets/{chunk-HLWAVYOI-gvmdwlMH.js → chunk-HLWAVYOI-xPY5mnsO.js} +1 -1
- package/dist/storybook/assets/{color-w8aIacWp.js → color-jPK0xr4E.js} +1 -1
- package/dist/storybook/assets/dialog-roJ8Yns6.js +1 -0
- package/dist/storybook/assets/{file-input.stories-lKF1ABXX.js → file-input.stories-OwcfaeRF.js} +1 -1
- package/dist/storybook/assets/{form.stories-AikCzsZc.js → form.stories-8fqEXOZ2.js} +1 -1
- package/dist/storybook/assets/{formatter-SWP5E3XI-r4EhXc_R.js → formatter-SWP5E3XI-zYzBeB0L.js} +1 -1
- package/dist/storybook/assets/{iframe-zoU5m22n.js → iframe-ru6_7CpQ.js} +2 -2
- package/dist/storybook/assets/{index-PcK6wy6Y.js → index-vSKvx_iy.js} +5 -5
- package/dist/storybook/assets/{input-validation-ik-_pZic.js → input-validation-QodABrdN.js} +1 -1
- package/dist/storybook/assets/{inputs-HOOmATSd.js → inputs-B4UxTeyT.js} +1 -1
- package/dist/storybook/assets/{layout-forms-ajzntTiw.js → layout-forms-nWVwatRI.js} +1 -1
- package/dist/storybook/assets/{layout-general-YrHqYgMj.js → layout-general-m9TinthY.js} +1 -1
- package/dist/storybook/assets/{modal.stories-RrJYxEqH.js → modal.stories-dirXv4n_.js} +1 -1
- package/dist/storybook/assets/{padding-and-spacing-5OwJ6VNS.js → padding-and-spacing-ee-3aL0o.js} +1 -1
- package/dist/storybook/assets/{preview-OTui_ocs.js → preview-_J8ZmGOb.js} +1 -1
- package/dist/storybook/assets/{preview-gEzSBjvP.js → preview-oostgEjZ.js} +2 -2
- package/dist/storybook/assets/{syntaxhighlighter-B5GMVT5T-QX51XDDe.js → syntaxhighlighter-B5GMVT5T-Ebq1wDzX.js} +1 -1
- package/dist/storybook/assets/{textarea-TSoWqDT8.js → textarea-TIELeiGt.js} +1 -1
- package/dist/storybook/assets/{textarea.stories-w6XYooLd.js → textarea.stories-DIzqgg9F.js} +1 -1
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/project.json +1 -1
- package/package.json +1 -1
- package/dist/storybook/assets/dialog-Tgs8CXhN.js +0 -1
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-21EwET8E.js"></script><link rel="stylesheet" crossorigin href="/react-ui-library/assets/index-2LJjuVRB.css"></head><body><div id="content"></div></body>
|
package/dist/index.js
CHANGED
|
@@ -19534,18 +19534,6 @@ const Modal = ({
|
|
|
19534
19534
|
onEnter,
|
|
19535
19535
|
onEscape
|
|
19536
19536
|
}) => {
|
|
19537
|
-
const MODAL_CONTAINER_ID = "modalContainer";
|
|
19538
|
-
useEffect(() => {
|
|
19539
|
-
if (!document.getElementById(MODAL_CONTAINER_ID)) {
|
|
19540
|
-
return;
|
|
19541
|
-
}
|
|
19542
|
-
const container2 = document.createElement("div");
|
|
19543
|
-
container2.id = MODAL_CONTAINER_ID;
|
|
19544
|
-
document.body.appendChild(container2);
|
|
19545
|
-
return () => {
|
|
19546
|
-
document.body.removeChild(container2);
|
|
19547
|
-
};
|
|
19548
|
-
}, []);
|
|
19549
19537
|
useKeyboardEvent(
|
|
19550
19538
|
"Enter",
|
|
19551
19539
|
() => {
|
|
@@ -19564,7 +19552,10 @@ const Modal = ({
|
|
|
19564
19552
|
},
|
|
19565
19553
|
[visible, onEscape]
|
|
19566
19554
|
);
|
|
19567
|
-
return /* @__PURE__ */
|
|
19555
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
19556
|
+
/* @__PURE__ */ jsx(Portal, { id: "modalContainer", children: visible ? /* @__PURE__ */ jsx(Wrapper, { children: /* @__PURE__ */ jsx(Content$2, { width: width2, centered: centered2, children }) }) : null }),
|
|
19557
|
+
/* @__PURE__ */ jsx("div", { id: "modalContainer" })
|
|
19558
|
+
] });
|
|
19568
19559
|
};
|
|
19569
19560
|
const menu$1 = "_menu_12x4u_1";
|
|
19570
19561
|
const header = "_header_12x4u_11";
|
|
@@ -70729,13 +70720,17 @@ const convertVisibleRows = ({
|
|
|
70729
70720
|
const convertedHeaders = headers ? headers.map((headerRow) => ({
|
|
70730
70721
|
...headerRow,
|
|
70731
70722
|
cells: headerRow.cells.map((headerCell) => {
|
|
70723
|
+
var _a;
|
|
70732
70724
|
if (headerCell.type === CellType.AUTO_UNIT) {
|
|
70733
70725
|
const { testId, unitKey } = headerCell;
|
|
70734
70726
|
return {
|
|
70735
70727
|
value: selectedUnits[unitKey],
|
|
70736
70728
|
type: CellType.SELECT,
|
|
70737
|
-
options: getUnitsForQuantity(unitKey)
|
|
70738
|
-
|
|
70729
|
+
options: (_a = getUnitsForQuantity(unitKey)) == null ? void 0 : _a.map((unit2) => ({
|
|
70730
|
+
label: label$b(unit2),
|
|
70731
|
+
value: unit2
|
|
70732
|
+
})),
|
|
70733
|
+
native: headerCell.native,
|
|
70739
70734
|
onChange: (evt) => onChangeUnit({ unitKey, value: evt.target.value }),
|
|
70740
70735
|
testId
|
|
70741
70736
|
};
|
|
@@ -70776,8 +70771,8 @@ const convertVisibleRows = ({
|
|
|
70776
70771
|
const storageUnit2 = storageUnits[unitKey];
|
|
70777
70772
|
const selectedUnit2 = selectedUnits[unitKey];
|
|
70778
70773
|
const unitChanged2 = selectedUnit2 !== storageUnit2;
|
|
70779
|
-
const nextValueConverted = unitChanged2 ? convertAndGetValue(value2, storageUnit2, selectedUnit2) : value2;
|
|
70780
70774
|
const nextUnit = convertBackToStorageUnit ? storageUnit2 : selectedUnit2;
|
|
70775
|
+
const nextValueConverted = unitChanged2 ? convertAndGetValue(value2, nextUnit, selectedUnit2) : value2;
|
|
70781
70776
|
if ("onChange" in cell2) {
|
|
70782
70777
|
const { onChange } = cell2;
|
|
70783
70778
|
const event = {
|