@oliasoft-open-source/react-ui-library 4.5.3-beta-1 → 4.5.4-beta-1
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/assets/{index-RERH5Zwo.js → index-kDrJq_kq.js} +36 -13
- package/dist/index.d.ts +10 -3
- package/dist/index.html +1 -1
- package/dist/index.js +36 -13
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/{Color-6VNJS4EI-V6X7Ucgp.js → Color-6VNJS4EI-rQiUZxpq.js} +1 -1
- package/dist/storybook/assets/{DocsRenderer-NNNQARDV-zuhZg13E.js → DocsRenderer-NNNQARDV-kSwu_3Lc.js} +1 -1
- package/dist/storybook/assets/{WithTooltip-4HIR6TLV-M3-dMDCM.js → WithTooltip-4HIR6TLV-Y448Fj3p.js} +1 -1
- package/dist/storybook/assets/{accordion-6_27SROY.js → accordion-MRdNs3mQ.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-gYUPcGk5.js → accordion.stories-vZNZ07D4.js} +2 -2
- package/dist/storybook/assets/actions-fDogfeOj.js +1 -0
- package/dist/storybook/assets/actions.stories-Ij02T6Zm.js +1 -0
- package/dist/storybook/assets/afe.stories-KeUBIL0V.js +88 -0
- package/dist/storybook/assets/badge.stories-1SnkCuWB.js +1 -0
- package/dist/storybook/assets/blowout.stories-A4gIeaGJ.js +40 -0
- package/dist/storybook/assets/{button-group-KeeGgC4K.js → button-group-7WkfMawh.js} +1 -1
- package/dist/storybook/assets/{button-group.stories-DG3i2d7K.js → button-group.stories-WF6kt2QA.js} +2 -2
- package/dist/storybook/assets/button-pzaoiJWP.js +1 -0
- package/dist/storybook/assets/button.stories-MCz4fPXe.js +80 -0
- package/dist/storybook/assets/{buttons-and-links-0W-Lo4la.js → buttons-and-links-Ox8IMq-O.js} +2 -2
- package/dist/storybook/assets/card.stories-Ic_vrrzC.js +1 -0
- package/dist/storybook/assets/{casing-loads.stories--f3o5XWs.js → casing-loads.stories-fvIqVBy1.js} +2 -2
- package/dist/storybook/assets/{cell.stories-P4syiRmw.js → cell.stories-mk3pDhQ_.js} +2 -2
- package/dist/storybook/assets/{check-box-BX5dfQFk.js → check-box-NJDiZVo7.js} +1 -1
- package/dist/storybook/assets/{check-box.stories-FNs72smP.js → check-box.stories-kKAtDTQt.js} +2 -2
- package/dist/storybook/assets/{chunk-HLWAVYOI-bCq-_q2u.js → chunk-HLWAVYOI-pIZozOzt.js} +1 -1
- package/dist/storybook/assets/color-6v135_Ey.js +25 -0
- package/dist/storybook/assets/{column.stories-5pd3N4bE.js → column.stories-1F6_xksk.js} +4 -4
- package/dist/storybook/assets/{dialog-dekS0lUR.js → dialog-ufJfp3xq.js} +1 -1
- package/dist/storybook/assets/{drawer-TM-jK3WR.js → drawer-gMi20QKY.js} +1 -1
- package/dist/storybook/assets/{drawer.stories-Rz_d8D90.js → drawer.stories-OmZGeSat.js} +4 -4
- package/dist/storybook/assets/empty.stories-hiT2fx9j.js +1 -0
- package/dist/storybook/assets/{field-kOZPBHf6.js → field-7aita7RD.js} +1 -1
- package/dist/storybook/assets/{field.stories-aEccauPi.js → field.stories-nvlhqjmT.js} +2 -2
- package/dist/storybook/assets/file-input.stories-SEUqqpQC.js +66 -0
- package/dist/storybook/assets/{flex-ZVra76N-.js → flex-RYZsoWEN.js} +1 -1
- package/dist/storybook/assets/{flex.stories-kjbyZMWP.js → flex.stories-rW-o5Rcj.js} +2 -2
- package/dist/storybook/assets/footer.stories-rxluoOq3.js +3 -0
- package/dist/storybook/assets/form.stories-xfAtnSsF.js +49 -0
- package/dist/storybook/assets/formation.stories-gDKRbofH.js +74 -0
- package/dist/storybook/assets/{formatter-SWP5E3XI-_65Af7r6.js → formatter-SWP5E3XI-3HSIJbx3.js} +1 -1
- package/dist/storybook/assets/{heading-cUVItwKq.js → heading-3kLSpr0S.js} +1 -1
- package/dist/storybook/assets/{heading.stories-K-Z0sIoo.js → heading.stories-NFtxisSU.js} +2 -2
- package/dist/storybook/assets/{help-icon-nI9A506M.js → help-icon-3XYXeKEh.js} +1 -1
- package/dist/storybook/assets/help-icon.stories-0K6YtLSE.js +4 -0
- package/dist/storybook/assets/hoist-non-react-statics.cjs-pnyno-Dk.js +8 -0
- package/dist/storybook/assets/{icon-y1a2N5SZ.js → icon-_m67DAr0.js} +3 -3
- package/dist/storybook/assets/icon.stories-2aZia1VV.js +6 -0
- package/dist/storybook/assets/iframe-z94q88g5.js +7 -0
- package/dist/storybook/assets/{index-vyBfFCw4.js → index-vLY1fJwJ.js} +5 -5
- package/dist/storybook/assets/index.es-LXZC0YVN.js +79 -0
- package/dist/storybook/assets/{input-group.stories-EouZEW-v.js → input-group.stories-i41ZA07R.js} +2 -2
- package/dist/storybook/assets/{input-iDZqV-2m.js → input-u1He-wWs.js} +1 -1
- package/dist/storybook/assets/{input-validation-o44tAua7.js → input-validation-U0oK0Jst.js} +2 -2
- package/dist/storybook/assets/{input.stories-iopguZKB.js → input.stories-rLdDRxtU.js} +1 -1
- package/dist/storybook/assets/{inputs-gBYKrg7p.js → inputs-wYAuT7vY.js} +14 -14
- package/dist/storybook/assets/{label-RpB4JmHX.js → label-6FmD_czQ.js} +1 -1
- package/dist/storybook/assets/label.stories-hwXemXYg.js +11 -0
- package/dist/storybook/assets/{layout-forms-bVmbErTt.js → layout-forms-Ljnylv7C.js} +4 -4
- package/dist/storybook/assets/{layout-general-FiPJen3N.js → layout-general-yfxEV6ZF.js} +2 -2
- package/dist/storybook/assets/list--TQyTDCz.js +8 -0
- package/dist/storybook/assets/{list-heading-vjZIRKZb.js → list-heading-RqmfZzgf.js} +1 -1
- package/dist/storybook/assets/{list.stories-data-spFiMtCi.js → list.stories-data-VFsKGd62.js} +1 -1
- package/dist/storybook/assets/list.stories-gD8etOPs.js +478 -0
- package/dist/storybook/assets/{loader.stories-G8Q_Fm8u.js → loader.stories-N6kyCm0I.js} +2 -2
- package/dist/storybook/assets/menu.stories-AKZwu88D.js +82 -0
- package/dist/storybook/assets/{menu.stories-data-VCYkzuDD.js → menu.stories-data-hEz8P1yK.js} +1 -1
- package/dist/storybook/assets/{message-uMHaTEXV.js → message-p9VAXLNZ.js} +1 -1
- package/dist/storybook/assets/{message.stories-BqM_-mrZ.js → message.stories-IyXCvUbH.js} +2 -2
- package/dist/storybook/assets/{modal.stories-K4XxeWTp.js → modal.stories-CcesUU3J.js} +2 -2
- package/dist/storybook/assets/{number-input-wURqWy_O.js → number-input-ToRtRoDB.js} +1 -1
- package/dist/storybook/assets/{number-input.stories-BUeHRFyX.js → number-input.stories-l4aGuwWz.js} +2 -2
- package/dist/storybook/assets/objectWithoutPropertiesLoose-9Q1jwsKS.js +1 -0
- package/dist/storybook/assets/option-dropdown.stories-XAe4RN6O.js +21 -0
- package/dist/storybook/assets/{padding-and-spacing-FOCT-4t0.js → padding-and-spacing-7Qxmx5Ei.js} +1 -1
- package/dist/storybook/assets/page.stories-P14526e_.js +57 -0
- package/dist/storybook/assets/{pagination-Eaj_UOBW.js → pagination-8YSU8CJU.js} +1 -1
- package/dist/storybook/assets/{pagination.stories-sl2a8BMq.js → pagination.stories-biHrcbYP.js} +2 -2
- package/dist/storybook/assets/pop-confirm.stories-KNi8IwfV.js +9 -0
- package/dist/storybook/assets/{popover-uAo1e4-D.js → popover-N2COrkjb.js} +1 -1
- package/dist/storybook/assets/popover.stories--2HSoP_A.js +1 -0
- package/dist/storybook/assets/{preview-kbRvE0UL.js → preview-9pspT3kP.js} +3 -3
- package/dist/storybook/assets/{preview-wvr5MbaI.js → preview-T6G3KVVR.js} +2 -2
- package/dist/storybook/assets/projects.stories-SakJh31R.js +47 -0
- package/dist/storybook/assets/{radio-button-QcS9mLYi.js → radio-button-EerSOxRw.js} +1 -1
- package/dist/storybook/assets/{radio-button.stories-KCS981-F.js → radio-button.stories-etd-hnJG.js} +5 -5
- package/dist/storybook/assets/react-router-dom-2JKSc1g5.js +8 -0
- package/dist/storybook/assets/{reservoirs.stories-b-kYU38f.js → reservoirs.stories-27B6VDTU.js} +2 -2
- package/dist/storybook/assets/{rich-text-input.stories-D55Op5Gf.js → rich-text-input.stories-dT7BoCuX.js} +3 -3
- package/dist/storybook/assets/{row.stories-9WPK1-K-.js → row.stories-L501435h.js} +2 -2
- package/dist/storybook/assets/{select-Z1HqJ5aU.js → select-dsCIcV9L.js} +1 -1
- package/dist/storybook/assets/{select.stories-oUxeDUts.js → select.stories-b4nKRzxr.js} +2 -2
- package/dist/storybook/assets/side-bar-tCAlGu_n.js +1 -0
- package/dist/storybook/assets/side-bar.stories-2-_c92ZA.js +27 -0
- package/dist/storybook/assets/{site.stories-ZUbDTfMw.js → site.stories-0pIZTNdV.js} +2 -2
- package/dist/storybook/assets/{slider-_5NQKbM-.js → slider-t3xH-fl7.js} +2 -2
- package/dist/storybook/assets/{slider.stories-QyyBB_rz.js → slider.stories-D8pQfYVa.js} +4 -4
- package/dist/storybook/assets/spacer.stories-UdEBpD2c.js +1 -0
- package/dist/storybook/assets/{syntaxhighlighter-NMPM6SWI-dazdF8tL.js → syntaxhighlighter-NMPM6SWI-ze0_BG2G.js} +1 -1
- package/dist/storybook/assets/{table-KrWSzq7G.js → table-HKQHSgFU.js} +1 -1
- package/dist/storybook/assets/{table.stories-data-2BZDVr2X.js → table.stories-data-aRWOp_dx.js} +1 -1
- package/dist/storybook/assets/{table.stories-q2RiUlvj.js → table.stories-okh_8bCK.js} +2 -2
- package/dist/storybook/assets/text-link.stories-sufQloZ5.js +14 -0
- package/dist/storybook/assets/{textarea-QFVBH_vb.js → textarea-8bcldTyf.js} +1 -1
- package/dist/storybook/assets/{textarea.stories-HETiaNLn.js → textarea.stories-D9SctTMD.js} +1 -1
- package/dist/storybook/assets/{title.stories-wYK8FhNE.js → title.stories-VuCG2SkA.js} +3 -3
- package/dist/storybook/assets/{toaster-eOozfa7U.js → toaster-bqqWcltU.js} +1 -1
- package/dist/storybook/assets/{toaster.stories-ft_M65x0.js → toaster.stories-yJFBNIyS.js} +2 -2
- package/dist/storybook/assets/{toggle-wk0GbVB8.js → toggle-Eh66Nfd8.js} +1 -1
- package/dist/storybook/assets/{toggle.stories-LC6LSCD2.js → toggle.stories-Oq6meHwx.js} +2 -2
- package/dist/storybook/assets/{tooltip-ZHdi6rl-.js → tooltip-HEHiU__l.js} +1 -1
- package/dist/storybook/assets/{tooltip.stories-gTfOeEzv.js → tooltip.stories-tiOgoWHH.js} +1 -1
- package/dist/storybook/assets/tooltip.test-case.stories-b7Y7bdNN.js +3 -0
- package/dist/storybook/assets/top-bar-9ZpEs04T.js +1 -0
- package/dist/storybook/assets/top-bar.stories-nxSiETnz.js +21 -0
- package/dist/storybook/assets/top-bar.testcase.stories-tDCM8UJz.js +30 -0
- package/dist/storybook/assets/{tree.stories-lgED7Ld-.js → tree.stories-QOSioSKm.js} +3 -3
- package/dist/storybook/assets/unit-input.stories-CmuAouY6.js +273 -0
- package/dist/storybook/assets/unit-table.stories-CO-X3zC7.js +103 -0
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/index.json +1 -1
- package/dist/storybook/project.json +1 -1
- package/dist/storybook/stories.json +1 -1
- package/package.json +2 -1
- package/dist/storybook/assets/actions-SGexXf58.js +0 -1
- package/dist/storybook/assets/actions.stories-dDCC23QK.js +0 -1
- package/dist/storybook/assets/afe.stories-xgu_fmH5.js +0 -88
- package/dist/storybook/assets/badge.stories-nzXJ1qip.js +0 -1
- package/dist/storybook/assets/blowout.stories-Zmg8LDUO.js +0 -40
- package/dist/storybook/assets/button-IoNblLER.js +0 -1
- package/dist/storybook/assets/button.stories-R9_1tl9l.js +0 -71
- package/dist/storybook/assets/card.stories-OtRekExg.js +0 -1
- package/dist/storybook/assets/color-r3R-hw1A.js +0 -25
- package/dist/storybook/assets/empty.stories-KIByp315.js +0 -1
- package/dist/storybook/assets/file-input.stories-hWN8tShr.js +0 -66
- package/dist/storybook/assets/footer.stories-Na2wdtCC.js +0 -3
- package/dist/storybook/assets/form.stories-sBK-yzVk.js +0 -49
- package/dist/storybook/assets/formation.stories-gmJQMNJJ.js +0 -74
- package/dist/storybook/assets/help-icon.stories-Qz7MKCnQ.js +0 -4
- package/dist/storybook/assets/icon.stories-icqUrCtQ.js +0 -6
- package/dist/storybook/assets/iframe-f7RfrxbO.js +0 -7
- package/dist/storybook/assets/index.es-JXn3JM7k.js +0 -86
- package/dist/storybook/assets/label.stories-HcdQ1bEB.js +0 -11
- package/dist/storybook/assets/list-JNed2RtS.js +0 -8
- package/dist/storybook/assets/list.stories-GrWiLEzS.js +0 -457
- package/dist/storybook/assets/menu.stories-sot2Whii.js +0 -60
- package/dist/storybook/assets/option-dropdown.stories-1Y5JDaBF.js +0 -21
- package/dist/storybook/assets/page.stories-irwol-YJ.js +0 -57
- package/dist/storybook/assets/pop-confirm.stories-94l3Xg8w.js +0 -9
- package/dist/storybook/assets/popover.stories-XaqJOrng.js +0 -1
- package/dist/storybook/assets/projects.stories-KBQvcnvE.js +0 -47
- package/dist/storybook/assets/side-bar-GJ2tcZYY.js +0 -1
- package/dist/storybook/assets/side-bar.stories-q_bRwHV_.js +0 -1
- package/dist/storybook/assets/spacer.stories-CWSQp7tw.js +0 -1
- package/dist/storybook/assets/text-link.stories-kjfUeFtk.js +0 -1
- package/dist/storybook/assets/tooltip.test-case.stories-y-bQOM0s.js +0 -3
- package/dist/storybook/assets/top-bar-x_wXP6-y.js +0 -1
- package/dist/storybook/assets/top-bar.stories-BfrMcs-K.js +0 -1
- package/dist/storybook/assets/top-bar.testcase.stories-RCQQ5Dxl.js +0 -30
- package/dist/storybook/assets/unit-input.stories-JRJyUGWk.js +0 -273
- package/dist/storybook/assets/unit-table.stories-Q9-nAxW6.js +0 -103
|
@@ -18318,8 +18318,10 @@ const Button$1 = ({
|
|
|
18318
18318
|
warning: warning2,
|
|
18319
18319
|
testId,
|
|
18320
18320
|
tooltip: tooltip2,
|
|
18321
|
-
inverted: inverted2 = false
|
|
18321
|
+
inverted: inverted2 = false,
|
|
18322
18322
|
// *Deprecated*
|
|
18323
|
+
component: Component2 = "button",
|
|
18324
|
+
url
|
|
18323
18325
|
}) => {
|
|
18324
18326
|
const disabledContext = reactExports.useContext(DisabledContext);
|
|
18325
18327
|
const color2 = (() => {
|
|
@@ -18353,7 +18355,7 @@ const Button$1 = ({
|
|
|
18353
18355
|
return "";
|
|
18354
18356
|
})();
|
|
18355
18357
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ButtonTooltipWrapper, { tooltip: tooltip2, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
18356
|
-
|
|
18358
|
+
Component2,
|
|
18357
18359
|
{
|
|
18358
18360
|
type: type2 === ButtonType.SUBMIT ? ButtonType.SUBMIT : ButtonType.BUTTON,
|
|
18359
18361
|
className: cx$2(
|
|
@@ -18377,6 +18379,7 @@ const Button$1 = ({
|
|
|
18377
18379
|
...title2 ? { title: title2 } : {},
|
|
18378
18380
|
style: { width: width2 },
|
|
18379
18381
|
"data-testid": testId,
|
|
18382
|
+
to: url,
|
|
18380
18383
|
children: [
|
|
18381
18384
|
icon2 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: buttonStyles.icon, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: icon2 }) }),
|
|
18382
18385
|
loading && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: buttonStyles.icon, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -18487,7 +18490,8 @@ const Option = ({
|
|
|
18487
18490
|
title: title2,
|
|
18488
18491
|
upload,
|
|
18489
18492
|
onChange,
|
|
18490
|
-
testId
|
|
18493
|
+
testId,
|
|
18494
|
+
component: Component2 = "a"
|
|
18491
18495
|
}) => {
|
|
18492
18496
|
const handleClick2 = (evt) => {
|
|
18493
18497
|
evt.stopPropagation();
|
|
@@ -18503,9 +18507,10 @@ const Option = ({
|
|
|
18503
18507
|
onClick == null ? void 0 : onClick(evt);
|
|
18504
18508
|
};
|
|
18505
18509
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
18506
|
-
|
|
18510
|
+
Component2,
|
|
18507
18511
|
{
|
|
18508
18512
|
href: url,
|
|
18513
|
+
to: url,
|
|
18509
18514
|
className: cx$2(
|
|
18510
18515
|
styles$N.option,
|
|
18511
18516
|
disabled2 ? styles$N.disabled : "",
|
|
@@ -18591,7 +18596,8 @@ const Section = ({
|
|
|
18591
18596
|
title: section2.title,
|
|
18592
18597
|
upload: section2.upload,
|
|
18593
18598
|
onChange: section2.onChange,
|
|
18594
|
-
testId: section2.testId
|
|
18599
|
+
testId: section2.testId,
|
|
18600
|
+
component: section2.component
|
|
18595
18601
|
}
|
|
18596
18602
|
);
|
|
18597
18603
|
case MenuType.MENU:
|
|
@@ -26149,10 +26155,12 @@ reactExports.forwardRef(
|
|
|
26149
26155
|
({ items: items2, expanding, invokeEditOnRowClick, provided, draggable }, listRowRefs) => {
|
|
26150
26156
|
const disabledContext = reactExports.useContext(DisabledContext);
|
|
26151
26157
|
const listElement = (index2, provided2, item2, indent, hasOnClick, edit2) => {
|
|
26158
|
+
const Component2 = item2.component || "a";
|
|
26152
26159
|
return /* @__PURE__ */ reactExports.createElement(
|
|
26153
|
-
|
|
26160
|
+
Component2,
|
|
26154
26161
|
{
|
|
26155
26162
|
href: item2.url,
|
|
26163
|
+
to: item2.url,
|
|
26156
26164
|
ref: provided2 == null ? void 0 : provided2.innerRef,
|
|
26157
26165
|
...provided2.draggableProps,
|
|
26158
26166
|
style: getItemStyle(provided2.draggableProps, item2),
|
|
@@ -56226,10 +56234,12 @@ const Link$1 = ({
|
|
|
56226
56234
|
}) => {
|
|
56227
56235
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$f.list, children: items2.map((link2, i) => {
|
|
56228
56236
|
const key2 = `${sectionIndex}_${i}`;
|
|
56237
|
+
const Component2 = link2.component || "a";
|
|
56229
56238
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
56230
|
-
|
|
56239
|
+
Component2,
|
|
56231
56240
|
{
|
|
56232
56241
|
href: link2.value,
|
|
56242
|
+
to: link2.value,
|
|
56233
56243
|
className: cx$2(
|
|
56234
56244
|
styles$f.item,
|
|
56235
56245
|
link2.isActive ? styles$f.active : "",
|
|
@@ -56281,7 +56291,6 @@ reactExports.memo(
|
|
|
56281
56291
|
}) => {
|
|
56282
56292
|
const [isOpen2, setIsOpen] = reactExports.useState(startOpen);
|
|
56283
56293
|
const onClick = (evt, value, label2, clickHandler) => {
|
|
56284
|
-
evt.preventDefault();
|
|
56285
56294
|
if (typeof clickHandler === "function") {
|
|
56286
56295
|
evt.currentTarget.value = value;
|
|
56287
56296
|
evt.currentTarget.label = label2;
|
|
@@ -68424,9 +68433,20 @@ const TextLink = ({
|
|
|
68424
68433
|
href = void 0,
|
|
68425
68434
|
target = void 0,
|
|
68426
68435
|
testId,
|
|
68427
|
-
onClick
|
|
68436
|
+
onClick,
|
|
68437
|
+
component: Component2 = "a"
|
|
68428
68438
|
}) => {
|
|
68429
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
68439
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
68440
|
+
Component2,
|
|
68441
|
+
{
|
|
68442
|
+
href,
|
|
68443
|
+
to: href,
|
|
68444
|
+
target,
|
|
68445
|
+
onClick,
|
|
68446
|
+
"data-testid": testId,
|
|
68447
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { link: true, children })
|
|
68448
|
+
}
|
|
68449
|
+
);
|
|
68430
68450
|
};
|
|
68431
68451
|
const inputInTable = "_inputInTable_66zck_1";
|
|
68432
68452
|
const inputHover = "_inputHover_66zck_13";
|
|
@@ -68816,7 +68836,8 @@ const Link = ({
|
|
|
68816
68836
|
onClick,
|
|
68817
68837
|
active: active2,
|
|
68818
68838
|
disabled: disabled2,
|
|
68819
|
-
testId
|
|
68839
|
+
testId,
|
|
68840
|
+
component: Component2 = "a"
|
|
68820
68841
|
}) => {
|
|
68821
68842
|
const disabledContext = reactExports.useContext(DisabledContext);
|
|
68822
68843
|
const handleClick2 = (event) => {
|
|
@@ -68826,10 +68847,11 @@ const Link = ({
|
|
|
68826
68847
|
onClick == null ? void 0 : onClick(event);
|
|
68827
68848
|
};
|
|
68828
68849
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
68829
|
-
|
|
68850
|
+
Component2,
|
|
68830
68851
|
{
|
|
68831
68852
|
className: cx$2(styles$5.link, active2 ? styles$5.active : ""),
|
|
68832
68853
|
href: url || "#",
|
|
68854
|
+
to: url,
|
|
68833
68855
|
onClick: handleClick2,
|
|
68834
68856
|
"aria-disabled": disabled2 || disabledContext,
|
|
68835
68857
|
"data-testid": testId,
|
|
@@ -68853,7 +68875,8 @@ const Element$1 = ({ element }) => {
|
|
|
68853
68875
|
onClick: element.onClick,
|
|
68854
68876
|
active: element.active,
|
|
68855
68877
|
disabled: element.disabled,
|
|
68856
|
-
testId: element.testId
|
|
68878
|
+
testId: element.testId,
|
|
68879
|
+
component: element.component
|
|
68857
68880
|
}
|
|
68858
68881
|
) });
|
|
68859
68882
|
case ElementType.BUTTON:
|
package/dist/index.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export declare enum BreadcrumbLinkType {
|
|
|
41
41
|
CUSTOM = "custom"
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
export declare const Button: ({ active, basic, colored, disabled, groupOrder, icon, label, loading, name, pill, round, small, styles, width, title, type, onClick, error, warning, testId, tooltip, inverted, }: IButtonProps) => JSX_2.Element;
|
|
44
|
+
export declare const Button: ({ active, basic, colored, disabled, groupOrder, icon, label, loading, name, pill, round, small, styles, width, title, type, onClick, error, warning, testId, tooltip, inverted, component: Component, url, }: IButtonProps) => JSX_2.Element;
|
|
45
45
|
|
|
46
46
|
export declare const ButtonGroup: (props: IButtonGroupProps) => JSX_2.Element;
|
|
47
47
|
|
|
@@ -220,6 +220,8 @@ export declare interface IButtonProps {
|
|
|
220
220
|
testId?: string;
|
|
221
221
|
tooltip?: ReactNode | string;
|
|
222
222
|
inverted?: boolean;
|
|
223
|
+
component?: React_2.ElementType;
|
|
224
|
+
url?: string;
|
|
223
225
|
}
|
|
224
226
|
|
|
225
227
|
export declare interface ICardProps {
|
|
@@ -658,6 +660,7 @@ declare interface IListItem {
|
|
|
658
660
|
id?: TStringOrNumber;
|
|
659
661
|
type?: string;
|
|
660
662
|
metaCount?: number;
|
|
663
|
+
component?: React.ElementType;
|
|
661
664
|
}
|
|
662
665
|
|
|
663
666
|
export declare interface IListProps {
|
|
@@ -764,6 +767,7 @@ declare interface IMenuSection {
|
|
|
764
767
|
actions?: any[];
|
|
765
768
|
url?: string;
|
|
766
769
|
upload?: boolean;
|
|
770
|
+
component?: React.ElementType;
|
|
767
771
|
}
|
|
768
772
|
|
|
769
773
|
declare interface IMenuShowAllButton {
|
|
@@ -925,11 +929,12 @@ declare interface IOptionItem {
|
|
|
925
929
|
label: ReactNode;
|
|
926
930
|
value: string;
|
|
927
931
|
icon: ReactNode;
|
|
928
|
-
onClick
|
|
932
|
+
onClick?: (evt: MouseEvent_2<HTMLAnchorElement, globalThis.MouseEvent>) => void;
|
|
929
933
|
isActive?: boolean;
|
|
930
934
|
isExperimental?: boolean;
|
|
931
935
|
invalid?: boolean;
|
|
932
936
|
testId?: string;
|
|
937
|
+
component?: React_2.ElementType;
|
|
933
938
|
}
|
|
934
939
|
|
|
935
940
|
declare interface IOptionSection {
|
|
@@ -1370,6 +1375,7 @@ export declare interface ITextLinkProps {
|
|
|
1370
1375
|
testId?: string;
|
|
1371
1376
|
onClick?: (e: React_2.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
1372
1377
|
children?: React_2.ReactNode;
|
|
1378
|
+
component?: React_2.ElementType;
|
|
1373
1379
|
}
|
|
1374
1380
|
|
|
1375
1381
|
export declare interface ITextProps {
|
|
@@ -1707,7 +1713,7 @@ export { Text_2 as Text }
|
|
|
1707
1713
|
|
|
1708
1714
|
export declare const TextArea: ({ name, value, placeholder, cols, rows, disabled, onChange, onKeyPress, onFocus, onBlur, tabIndex, error, warning, tooltip, maxTooltipWidth, resize, monospace, testId, }: ITextAreaProps) => JSX_2.Element;
|
|
1709
1715
|
|
|
1710
|
-
export declare const TextLink: ({ children, href, target, testId, onClick, }: ITextLinkProps) => JSX_2.Element;
|
|
1716
|
+
export declare const TextLink: ({ children, href, target, testId, onClick, component: Component, }: ITextLinkProps) => JSX_2.Element;
|
|
1711
1717
|
|
|
1712
1718
|
declare type TFileReaderMethod = TInputReaderMethods | string;
|
|
1713
1719
|
|
|
@@ -1733,6 +1739,7 @@ declare type TLinkElement = TBaseElementProps & {
|
|
|
1733
1739
|
url?: string;
|
|
1734
1740
|
active?: boolean;
|
|
1735
1741
|
disabled?: boolean;
|
|
1742
|
+
component?: React.ElementType;
|
|
1736
1743
|
};
|
|
1737
1744
|
|
|
1738
1745
|
export declare type TMenuCarat = 'false' | 'right' | 'down';
|
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-kDrJq_kq.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
|
@@ -4133,8 +4133,10 @@ const Button$1 = ({
|
|
|
4133
4133
|
warning: warning2,
|
|
4134
4134
|
testId,
|
|
4135
4135
|
tooltip: tooltip2,
|
|
4136
|
-
inverted: inverted2 = false
|
|
4136
|
+
inverted: inverted2 = false,
|
|
4137
4137
|
// *Deprecated*
|
|
4138
|
+
component: Component2 = "button",
|
|
4139
|
+
url
|
|
4138
4140
|
}) => {
|
|
4139
4141
|
const disabledContext = useContext(DisabledContext);
|
|
4140
4142
|
const color2 = (() => {
|
|
@@ -4168,7 +4170,7 @@ const Button$1 = ({
|
|
|
4168
4170
|
return "";
|
|
4169
4171
|
})();
|
|
4170
4172
|
return /* @__PURE__ */ jsx(ButtonTooltipWrapper, { tooltip: tooltip2, children: /* @__PURE__ */ jsxs(
|
|
4171
|
-
|
|
4173
|
+
Component2,
|
|
4172
4174
|
{
|
|
4173
4175
|
type: type === ButtonType.SUBMIT ? ButtonType.SUBMIT : ButtonType.BUTTON,
|
|
4174
4176
|
className: cx$2(
|
|
@@ -4192,6 +4194,7 @@ const Button$1 = ({
|
|
|
4192
4194
|
...title2 ? { title: title2 } : {},
|
|
4193
4195
|
style: { width: width2 },
|
|
4194
4196
|
"data-testid": testId,
|
|
4197
|
+
to: url,
|
|
4195
4198
|
children: [
|
|
4196
4199
|
icon2 && /* @__PURE__ */ jsx("span", { className: buttonStyles.icon, children: /* @__PURE__ */ jsx(Icon, { icon: icon2 }) }),
|
|
4197
4200
|
loading && /* @__PURE__ */ jsx("span", { className: buttonStyles.icon, children: /* @__PURE__ */ jsx(
|
|
@@ -4302,7 +4305,8 @@ const Option$2 = ({
|
|
|
4302
4305
|
title: title2,
|
|
4303
4306
|
upload,
|
|
4304
4307
|
onChange,
|
|
4305
|
-
testId
|
|
4308
|
+
testId,
|
|
4309
|
+
component: Component2 = "a"
|
|
4306
4310
|
}) => {
|
|
4307
4311
|
const handleClick2 = (evt) => {
|
|
4308
4312
|
evt.stopPropagation();
|
|
@@ -4318,9 +4322,10 @@ const Option$2 = ({
|
|
|
4318
4322
|
onClick == null ? void 0 : onClick(evt);
|
|
4319
4323
|
};
|
|
4320
4324
|
return /* @__PURE__ */ jsxs(
|
|
4321
|
-
|
|
4325
|
+
Component2,
|
|
4322
4326
|
{
|
|
4323
4327
|
href: url,
|
|
4328
|
+
to: url,
|
|
4324
4329
|
className: cx$2(
|
|
4325
4330
|
styles$L.option,
|
|
4326
4331
|
disabled2 ? styles$L.disabled : "",
|
|
@@ -4406,7 +4411,8 @@ const Section$1 = ({
|
|
|
4406
4411
|
title: section2.title,
|
|
4407
4412
|
upload: section2.upload,
|
|
4408
4413
|
onChange: section2.onChange,
|
|
4409
|
-
testId: section2.testId
|
|
4414
|
+
testId: section2.testId,
|
|
4415
|
+
component: section2.component
|
|
4410
4416
|
}
|
|
4411
4417
|
);
|
|
4412
4418
|
case MenuType.MENU:
|
|
@@ -18992,10 +18998,12 @@ const ListRow = forwardRef(
|
|
|
18992
18998
|
({ items, expanding, invokeEditOnRowClick, provided, draggable: draggable2 }, listRowRefs) => {
|
|
18993
18999
|
const disabledContext = useContext(DisabledContext);
|
|
18994
19000
|
const listElement = (index2, provided2, item2, indent, hasOnClick, edit2) => {
|
|
19001
|
+
const Component2 = item2.component || "a";
|
|
18995
19002
|
return /* @__PURE__ */ createElement(
|
|
18996
|
-
|
|
19003
|
+
Component2,
|
|
18997
19004
|
{
|
|
18998
19005
|
href: item2.url,
|
|
19006
|
+
to: item2.url,
|
|
18999
19007
|
ref: provided2 == null ? void 0 : provided2.innerRef,
|
|
19000
19008
|
...provided2.draggableProps,
|
|
19001
19009
|
style: getItemStyle(provided2.draggableProps, item2),
|
|
@@ -52732,10 +52740,12 @@ const Link$1 = ({
|
|
|
52732
52740
|
}) => {
|
|
52733
52741
|
return /* @__PURE__ */ jsx("div", { className: styles$d.list, children: items.map((link2, i) => {
|
|
52734
52742
|
const key2 = `${sectionIndex}_${i}`;
|
|
52743
|
+
const Component2 = link2.component || "a";
|
|
52735
52744
|
return /* @__PURE__ */ jsx(
|
|
52736
|
-
|
|
52745
|
+
Component2,
|
|
52737
52746
|
{
|
|
52738
52747
|
href: link2.value,
|
|
52748
|
+
to: link2.value,
|
|
52739
52749
|
className: cx$2(
|
|
52740
52750
|
styles$d.item,
|
|
52741
52751
|
link2.isActive ? styles$d.active : "",
|
|
@@ -52787,7 +52797,6 @@ const SideBar = memo(
|
|
|
52787
52797
|
}) => {
|
|
52788
52798
|
const [isOpen2, setIsOpen] = useState(startOpen);
|
|
52789
52799
|
const onClick = (evt, value, label2, clickHandler) => {
|
|
52790
|
-
evt.preventDefault();
|
|
52791
52800
|
if (typeof clickHandler === "function") {
|
|
52792
52801
|
evt.currentTarget.value = value;
|
|
52793
52802
|
evt.currentTarget.label = label2;
|
|
@@ -56731,9 +56740,20 @@ const TextLink = ({
|
|
|
56731
56740
|
href = void 0,
|
|
56732
56741
|
target = void 0,
|
|
56733
56742
|
testId,
|
|
56734
|
-
onClick
|
|
56743
|
+
onClick,
|
|
56744
|
+
component: Component2 = "a"
|
|
56735
56745
|
}) => {
|
|
56736
|
-
return /* @__PURE__ */ jsx(
|
|
56746
|
+
return /* @__PURE__ */ jsx(
|
|
56747
|
+
Component2,
|
|
56748
|
+
{
|
|
56749
|
+
href,
|
|
56750
|
+
to: href,
|
|
56751
|
+
target,
|
|
56752
|
+
onClick,
|
|
56753
|
+
"data-testid": testId,
|
|
56754
|
+
children: /* @__PURE__ */ jsx(Text, { link: true, children })
|
|
56755
|
+
}
|
|
56756
|
+
);
|
|
56737
56757
|
};
|
|
56738
56758
|
const inputInTable = "_inputInTable_66zck_1";
|
|
56739
56759
|
const inputHover = "_inputHover_66zck_13";
|
|
@@ -58072,7 +58092,8 @@ const Link = ({
|
|
|
58072
58092
|
onClick,
|
|
58073
58093
|
active: active2,
|
|
58074
58094
|
disabled: disabled2,
|
|
58075
|
-
testId
|
|
58095
|
+
testId,
|
|
58096
|
+
component: Component2 = "a"
|
|
58076
58097
|
}) => {
|
|
58077
58098
|
const disabledContext = useContext(DisabledContext);
|
|
58078
58099
|
const handleClick2 = (event) => {
|
|
@@ -58082,10 +58103,11 @@ const Link = ({
|
|
|
58082
58103
|
onClick == null ? void 0 : onClick(event);
|
|
58083
58104
|
};
|
|
58084
58105
|
return /* @__PURE__ */ jsxs(
|
|
58085
|
-
|
|
58106
|
+
Component2,
|
|
58086
58107
|
{
|
|
58087
58108
|
className: cx$2(styles$3.link, active2 ? styles$3.active : ""),
|
|
58088
58109
|
href: url || "#",
|
|
58110
|
+
to: url,
|
|
58089
58111
|
onClick: handleClick2,
|
|
58090
58112
|
"aria-disabled": disabled2 || disabledContext,
|
|
58091
58113
|
"data-testid": testId,
|
|
@@ -58109,7 +58131,8 @@ const Element$1 = ({ element }) => {
|
|
|
58109
58131
|
onClick: element.onClick,
|
|
58110
58132
|
active: element.active,
|
|
58111
58133
|
disabled: element.disabled,
|
|
58112
|
-
testId: element.testId
|
|
58134
|
+
testId: element.testId,
|
|
58135
|
+
component: element.component
|
|
58113
58136
|
}
|
|
58114
58137
|
) });
|
|
58115
58138
|
case ElementType.BUTTON:
|