@oliasoft-open-source/react-ui-library 4.7.4 → 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/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-MGPZF2zs.js → accordion.stories-BWUwZ5cN.js} +2 -2
- package/dist/storybook/assets/{actions-CZK3mphC.js → actions-CHgr8eL8.js} +1 -1
- package/dist/storybook/assets/{actions.stories-FOK1cLb3.js → actions.stories-CCDxFKFk.js} +1 -1
- package/dist/storybook/assets/{afe.stories-Zs5w8AL0.js → afe.stories-CC785MgO.js} +2 -2
- package/dist/storybook/assets/{badge.stories-D30jHm96.js → badge.stories-D5DA-vxC.js} +1 -1
- package/dist/storybook/assets/{blowout.stories-CJrNKpKP.js → blowout.stories-ES-Fuaqn.js} +1 -1
- package/dist/storybook/assets/{button-C1sV-0mR.js → button-VxhoNhrV.js} +1 -1
- package/dist/storybook/assets/{button-group-Ai4DXqNr.js → button-group-CwJdFo2z.js} +1 -1
- package/dist/storybook/assets/{button-group.stories-incmyYJ-.js → button-group.stories-DU5k5qCY.js} +1 -1
- package/dist/storybook/assets/{button.stories-Bcy7mnLs.js → button.stories-DVtec2Eo.js} +2 -2
- package/dist/storybook/assets/{buttons-and-links-DGEwyzdQ.js → buttons-and-links-CfkgVoVA.js} +2 -2
- package/dist/storybook/assets/{card.stories-Bn6LpucB.js → card.stories-CsTB0DuM.js} +1 -1
- package/dist/storybook/assets/{casing-loads.stories-BZZ4ps89.js → casing-loads.stories-BoG7UuIu.js} +2 -2
- package/dist/storybook/assets/{cell.stories-DtPT5vsK.js → cell.stories-CfiPC1eE.js} +2 -2
- package/dist/storybook/assets/{check-box-CaSrhzev.js → check-box-BtCGePRy.js} +1 -1
- package/dist/storybook/assets/{check-box.stories-J1keUUs0.js → check-box.stories-L9T_i0RT.js} +1 -1
- package/dist/storybook/assets/{chunk-HLWAVYOI-B_e8hbrU.js → chunk-HLWAVYOI-CuMm7Qpv.js} +1 -1
- package/dist/storybook/assets/color-DJNturFf.js +25 -0
- package/dist/storybook/assets/{column.stories-JMvj3_fr.js → column.stories-BxfR9Tla.js} +1 -1
- package/dist/storybook/assets/{dialog-lhPZkAI2.js → dialog-IAPGkLet.js} +1 -1
- package/dist/storybook/assets/{drawer-DSS8yvvp.js → drawer-BhuWxI7V.js} +1 -1
- package/dist/storybook/assets/drawer.stories-B-PsNJJ6.js +113 -0
- package/dist/storybook/assets/{empty.stories-G8jeIfLL.js → empty.stories-BVYXwvpa.js} +1 -1
- package/dist/storybook/assets/{field-C5_fLDpy.js → field-HrLaMLbx.js} +1 -1
- package/dist/storybook/assets/{field.stories-D5Mej0Bt.js → field.stories-B9p9nBgY.js} +1 -1
- package/dist/storybook/assets/{file-button.stories-DePr8MKB.js → file-button.stories-FOaiNPt-.js} +1 -1
- package/dist/storybook/assets/{file-input-BZecnRBy.js → file-input-BpMtsZ2S.js} +1 -1
- package/dist/storybook/assets/{file-input.stories-BH_glmEk.js → file-input.stories--ZoISXk0.js} +1 -1
- package/dist/storybook/assets/{flex.stories-sSdg0ChR.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-NkLgQYoP.js → heading-CRNoBc7q.js} +1 -1
- package/dist/storybook/assets/{heading.stories-nI_cFnAN.js → heading.stories-DahFxeiX.js} +1 -1
- package/dist/storybook/assets/{help-icon-41R-Z9N1.js → help-icon-Buhx5nl6.js} +1 -1
- package/dist/storybook/assets/{help-icon.stories-DBYh0YX7.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-tzHbUYOM.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-group.stories-D1i3gaZ1.js → input-group.stories-BiReS545.js} +2 -2
- package/dist/storybook/assets/{input-validation-BcgNUeij.js → input-validation-Bd_JP2WL.js} +2 -2
- package/dist/storybook/assets/{inputs-gN3bum_f.js → inputs-BsGUQTI3.js} +4 -4
- package/dist/storybook/assets/{label-hiSz3I8H.js → label-CqmyC9he.js} +1 -1
- package/dist/storybook/assets/{label.stories-Cyv5jBAO.js → label.stories-C0AO5F1a.js} +1 -1
- package/dist/storybook/assets/layout-forms-BH-i91Wg.js +16 -0
- package/dist/storybook/assets/{layout-general-CEpJsTnH.js → layout-general-jp5QULaU.js} +2 -2
- package/dist/storybook/assets/{list-DYNKqvUR.js → list-yVTOdmpX.js} +1 -1
- package/dist/storybook/assets/{list.stories-BX67BegD.js → list.stories-ChqQXY5M.js} +2 -2
- package/dist/storybook/assets/{list.stories-data-D_ZfzaxE.js → list.stories-data-Iq66w9oH.js} +1 -1
- package/dist/storybook/assets/{loader.stories-DjrwwZ15.js → loader.stories-DM7ZJBgz.js} +1 -1
- package/dist/storybook/assets/{menu.stories-BE0AzXUY.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-o5jcKCK_.js → message.stories-Dmk-t8hM.js} +1 -1
- package/dist/storybook/assets/{meta-content-BE7pulye.js → meta-content-cbHGvPJ7.js} +1 -1
- package/dist/storybook/assets/{modal.stories-Ns1ikKLR.js → modal.stories-BVttWvlZ.js} +2 -2
- package/dist/storybook/assets/{number-input.stories-BfRW8wgL.js → number-input.stories-CVFfJvjY.js} +2 -2
- package/dist/storybook/assets/{option-dropdown.stories-ByLG631x.js → option-dropdown.stories-CoLsSS95.js} +1 -1
- package/dist/storybook/assets/{padding-and-spacing-By28ROLj.js → padding-and-spacing-D7O49YoW.js} +2 -2
- package/dist/storybook/assets/{page.stories-br9ia4zp.js → page.stories-Cse3cMsO.js} +1 -1
- package/dist/storybook/assets/{pagination-CqvxiZHR.js → pagination-DzpYFhAO.js} +1 -1
- package/dist/storybook/assets/{pagination.stories-BzMlcLsN.js → pagination.stories-CJwR-XAD.js} +2 -2
- package/dist/storybook/assets/{pop-confirm.stories-MFDc3UAq.js → pop-confirm.stories-Hox7vJnl.js} +1 -1
- package/dist/storybook/assets/{popover-DgUpTRMk.js → popover-CzZdWNnB.js} +1 -1
- package/dist/storybook/assets/popover.stories-L5z549ww.js +10 -0
- package/dist/storybook/assets/preview-Bq2bLcjv.js +2 -0
- package/dist/storybook/assets/{preview-CO5-Yrmk.js → preview-DOYx8RvS.js} +2 -2
- package/dist/storybook/assets/projects.stories-DU-QlBa6.js +47 -0
- package/dist/storybook/assets/{radio-button-C_cV5TWA.js → radio-button-YBwYcMaM.js} +1 -1
- package/dist/storybook/assets/{radio-button.stories-D7uvMLbK.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-Cql_9W4F.js → reservoirs.stories-WKT7gCnp.js} +2 -2
- package/dist/storybook/assets/{rich-text-input.stories-BuDUgUsz.js → rich-text-input.stories-RjuY6LDo.js} +3 -3
- package/dist/storybook/assets/{row.stories-C-bEP9pE.js → row.stories-B6IcyamO.js} +2 -2
- package/dist/storybook/assets/{select-tIEV7vnw.js → select-D55JvDou.js} +2 -2
- package/dist/storybook/assets/{select.stories-BuW6SmRZ.js → select.stories-2DiOP0OZ.js} +2 -2
- package/dist/storybook/assets/{side-bar-ChOjPNLR.js → side-bar-CKbHPgIV.js} +1 -1
- package/dist/storybook/assets/{side-bar.stories-BupidZk5.js → side-bar.stories-MUj_dj1F.js} +1 -1
- package/dist/storybook/assets/{site.stories-C1GnbK5P.js → site.stories-Ci4g5W2A.js} +2 -2
- package/dist/storybook/assets/{slider-gZmYlxxz.js → slider-DAramr8j.js} +4 -4
- package/dist/storybook/assets/{slider.stories-CY4GxD4Y.js → slider.stories-Cd0rLfHP.js} +2 -2
- package/dist/storybook/assets/{smart-upload-modal.stories-DGIErcSu.js → smart-upload-modal.stories-OBY4Jc5w.js} +1 -1
- package/dist/storybook/assets/{spacer.stories-D7Q45uBk.js → spacer.stories-CHEZdgDM.js} +1 -1
- package/dist/storybook/assets/{table-CXUwJOBt.js → table-BOVkj1wL.js} +1 -1
- package/dist/storybook/assets/{table.stories-Cp0UIPUQ.js → table.stories-CdFHs6Xl.js} +2 -2
- package/dist/storybook/assets/{table.stories-data-DwfKQW7P.js → table.stories-data-CR9VpXHs.js} +1 -1
- package/dist/storybook/assets/text-link.stories-BQAkVO-W.js +14 -0
- package/dist/storybook/assets/{title.stories-hn5F8-2J.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-DtRx7MDa.js → toaster.stories-B61l_zxQ.js} +1 -1
- package/dist/storybook/assets/{toggle-Bo-JPbUP.js → toggle-CBpNgTrm.js} +1 -1
- package/dist/storybook/assets/{toggle.stories-CBkCAQh6.js → toggle.stories-D4c4fr5t.js} +1 -1
- package/dist/storybook/assets/{tooltip.test-case.stories-C74mKGrI.js → tooltip.test-case.stories-i9YQqba1.js} +1 -1
- package/dist/storybook/assets/{top-bar-DG4ok0uF.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-DzsYUZIx.js → top-bar.testcase.stories-DoPEAMYc.js} +1 -1
- package/dist/storybook/assets/{tree.stories-RtuZpYXn.js → tree.stories-6UHASEZu.js} +1 -1
- package/dist/storybook/assets/{unit-input.stories-DGvDLll8.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 +6 -2
- package/dist/storybook/assets/Color-KGDBMAHA-fBkbFrxl.js +0 -1
- package/dist/storybook/assets/DocsRenderer-PKQXORMH-BCXpse5g.js +0 -1
- package/dist/storybook/assets/color-BWuYLPlh.js +0 -25
- package/dist/storybook/assets/drawer.stories-D6FBs1_r.js +0 -113
- package/dist/storybook/assets/extends-CF3RwP-h.js +0 -1
- package/dist/storybook/assets/footer.stories-CsvsDr1-.js +0 -3
- package/dist/storybook/assets/form.stories-BwzDZgen.js +0 -49
- package/dist/storybook/assets/formation.stories-2ZjWA25v.js +0 -74
- package/dist/storybook/assets/icon-BP4BO6-k.js +0 -8
- package/dist/storybook/assets/iframe-DLWAAiXM.js +0 -2
- package/dist/storybook/assets/index-BrCAgVdx.js +0 -1
- package/dist/storybook/assets/inheritsLoose-DR8r8Ogv.js +0 -1
- package/dist/storybook/assets/layout-forms-DXG6Da8u.js +0 -16
- package/dist/storybook/assets/popover.stories-CPW_LGAh.js +0 -10
- package/dist/storybook/assets/preview-eMMARKcW.js +0 -2
- package/dist/storybook/assets/projects.stories-BSAMs8RG.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-BI4a_ekv.js +0 -21
- package/dist/storybook/assets/unit-table.stories-D0q58B-1.js +0 -150
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
|
{
|