@oliasoft-open-source/react-ui-library 4.4.9 → 4.4.10-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-neKlYvgy.js → index-j2Tv5Ypq.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-Cz_xXUi-.js → Color-6VNJS4EI-hzzVjNXP.js} +1 -1
- package/dist/storybook/assets/{DocsRenderer-NNNQARDV-CGE_1VFf.js → DocsRenderer-NNNQARDV-xr45wzaX.js} +1 -1
- package/dist/storybook/assets/{WithTooltip-4HIR6TLV-QXrbnnFF.js → WithTooltip-4HIR6TLV-0QHQt3tO.js} +1 -1
- package/dist/storybook/assets/{accordion-6_27SROY.js → accordion-MRdNs3mQ.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-DAmwlTmm.js → accordion.stories-OWupTq0z.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-VeO5_9AI.js +88 -0
- package/dist/storybook/assets/badge.stories-1SnkCuWB.js +1 -0
- package/dist/storybook/assets/blowout.stories-NpFpQtrH.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-2Pk4yiAq.js +80 -0
- package/dist/storybook/assets/{buttons-and-links-_u2w_3Sb.js → buttons-and-links-jZ2-4oux.js} +2 -2
- package/dist/storybook/assets/card.stories-Ic_vrrzC.js +1 -0
- package/dist/storybook/assets/{casing-loads.stories-lPhHcaix.js → casing-loads.stories-f3zCMVZU.js} +2 -2
- package/dist/storybook/assets/{cell.stories-S9IDsuIA.js → cell.stories-k4QHOz6o.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-T9XhWyqr.js → chunk-HLWAVYOI-U1T9b6q1.js} +1 -1
- package/dist/storybook/assets/color-3f20W01_.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-a2C35tbD.js → drawer.stories-QfqhLXCy.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-zspAp7Rk.js +66 -0
- package/dist/storybook/assets/{flex.stories-kjbyZMWP.js → flex.stories-VMuoeo10.js} +2 -2
- package/dist/storybook/assets/footer.stories-fM85eW9g.js +3 -0
- package/dist/storybook/assets/form.stories-JR7LPw4u.js +49 -0
- package/dist/storybook/assets/formation.stories-Atfdby3c.js +74 -0
- package/dist/storybook/assets/{formatter-SWP5E3XI-h14nWp8H.js → formatter-SWP5E3XI-6DDS3Wk0.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-p9UbXPLh.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-vAvCbxZP.js +6 -0
- package/dist/storybook/assets/iframe-IfLpGN25.js +7 -0
- package/dist/storybook/assets/{index-uoOEqMy3.js → index-1TV87hSL.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-n6eao7SU.js → input-validation-DLPyuGHH.js} +2 -2
- package/dist/storybook/assets/{input.stories-iopguZKB.js → input.stories-rLdDRxtU.js} +1 -1
- package/dist/storybook/assets/{inputs-GPmW4E0V.js → inputs-gE8Pkb_f.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-MHQI2bRl.js → layout-forms-QVJW_BwY.js} +4 -4
- package/dist/storybook/assets/{layout-general-CZQ7ghD4.js → layout-general-AkCJK0Uz.js} +2 -2
- package/dist/storybook/assets/{list-heading-XbqCJOHh.js → list-heading-Q3VtS9fk.js} +1 -1
- package/dist/storybook/assets/list-nKgiN_lm.js +8 -0
- package/dist/storybook/assets/list.stories-ZgvZFXIy.js +478 -0
- package/dist/storybook/assets/{list.stories-data-spFiMtCi.js → list.stories-data-dVRxGVCL.js} +1 -1
- package/dist/storybook/assets/{loader.stories-G8Q_Fm8u.js → loader.stories-N6kyCm0I.js} +2 -2
- package/dist/storybook/assets/menu.stories-kOy1Azcl.js +82 -0
- 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-d7hXQldd.js → number-input-SvjJIGsW.js} +1 -1
- package/dist/storybook/assets/{number-input.stories-SOsG2FLJ.js → number-input.stories-e2QYp2_y.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-bEYmbHUL.js → padding-and-spacing-vIY1z0UW.js} +1 -1
- package/dist/storybook/assets/page.stories-CZqm2grC.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-1-EVEA97.js +1 -0
- package/dist/storybook/assets/{preview-h-cDYi03.js → preview-CozPsGzp.js} +3 -3
- package/dist/storybook/assets/{preview-v0YDNRHB.js → preview-HIaJzAby.js} +2 -2
- package/dist/storybook/assets/projects.stories-EYTZjNuL.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-iKvudcEf.js → reservoirs.stories-4HHT8dpY.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-HVr8m6RK.js → row.stories-WlN3ayng.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-XqElnd51.js +27 -0
- package/dist/storybook/assets/{site.stories-4pPVEtn7.js → site.stories-Yx32ISEx.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-gsKk75mn.js +1 -0
- package/dist/storybook/assets/{syntaxhighlighter-NMPM6SWI-6X_Ph-aa.js → syntaxhighlighter-NMPM6SWI-vOGLtSt1.js} +1 -1
- package/dist/storybook/assets/{table-_jWgMFOi.js → table-lOc1WszE.js} +1 -1
- package/dist/storybook/assets/{table.stories-lwqVUJHa.js → table.stories-XLqUOUTY.js} +2 -2
- package/dist/storybook/assets/{table.stories-data-2BZDVr2X.js → table.stories-data-NhHiLEEF.js} +1 -1
- package/dist/storybook/assets/text-link.stories-sfurduAc.js +14 -0
- package/dist/storybook/assets/{textarea-QFVBH_vb.js → textarea-sCjGnr_a.js} +1 -1
- package/dist/storybook/assets/{textarea.stories-HETiaNLn.js → textarea.stories-p_ZS0YAI.js} +1 -1
- package/dist/storybook/assets/{title.stories-Djnk3crF.js → title.stories-lC77NYzh.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-CdQyJ6xi.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-_dF72Kbk.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-tUR_Qqn4.js +3 -0
- package/dist/storybook/assets/top-bar-OpPbV72j.js +1 -0
- package/dist/storybook/assets/top-bar.stories-23-5L2OA.js +21 -0
- package/dist/storybook/assets/top-bar.testcase.stories-wJYqKT6i.js +30 -0
- package/dist/storybook/assets/tree.stories-ah799ZCa.js +180 -0
- package/dist/storybook/assets/unit-input.stories-Q8QRTGcr.js +273 -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/404.html +0 -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-n9sXDAMv.js +0 -88
- package/dist/storybook/assets/badge.stories-nzXJ1qip.js +0 -1
- package/dist/storybook/assets/blowout.stories-ro9WCHli.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-A6C9HdIl.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-4uhW-z_4.js +0 -3
- package/dist/storybook/assets/form.stories-sBK-yzVk.js +0 -49
- package/dist/storybook/assets/formation.stories-ZGzBQKt1.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-ewnG0vJp.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-FJ7byNrg.js +0 -8
- package/dist/storybook/assets/list.stories-nWamVbJ2.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-B5gzoAi8.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-UU4irLQZ.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-0fDAFWyC.js +0 -1
- package/dist/storybook/assets/top-bar.stories-YKtteM_h.js +0 -1
- package/dist/storybook/assets/top-bar.testcase.stories-Z-6C5D2R.js +0 -30
- package/dist/storybook/assets/tree.stories-Fsb5fGEv.js +0 -128
- package/dist/storybook/assets/unit-input.stories-ZdrR9JWT.js +0 -273
|
@@ -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:
|
|
@@ -26147,10 +26153,12 @@ reactExports.forwardRef(
|
|
|
26147
26153
|
({ items: items2, expanding, invokeEditOnRowClick, provided, draggable }, listRowRefs) => {
|
|
26148
26154
|
const disabledContext = reactExports.useContext(DisabledContext);
|
|
26149
26155
|
const listElement = (index2, provided2, item2, indent, hasOnClick, edit2) => {
|
|
26156
|
+
const Component2 = item2.component || "a";
|
|
26150
26157
|
return /* @__PURE__ */ reactExports.createElement(
|
|
26151
|
-
|
|
26158
|
+
Component2,
|
|
26152
26159
|
{
|
|
26153
26160
|
href: item2.url,
|
|
26161
|
+
to: item2.url,
|
|
26154
26162
|
ref: provided2 == null ? void 0 : provided2.innerRef,
|
|
26155
26163
|
...provided2.draggableProps,
|
|
26156
26164
|
style: getItemStyle(provided2.draggableProps, item2),
|
|
@@ -56224,10 +56232,12 @@ const Link$1 = ({
|
|
|
56224
56232
|
}) => {
|
|
56225
56233
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$f.list, children: items2.map((link2, i) => {
|
|
56226
56234
|
const key2 = `${sectionIndex}_${i}`;
|
|
56235
|
+
const Component2 = link2.component || "a";
|
|
56227
56236
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
56228
|
-
|
|
56237
|
+
Component2,
|
|
56229
56238
|
{
|
|
56230
56239
|
href: link2.value,
|
|
56240
|
+
to: link2.value,
|
|
56231
56241
|
className: cx$2(
|
|
56232
56242
|
styles$f.item,
|
|
56233
56243
|
link2.isActive ? styles$f.active : "",
|
|
@@ -56279,7 +56289,6 @@ reactExports.memo(
|
|
|
56279
56289
|
}) => {
|
|
56280
56290
|
const [isOpen2, setIsOpen] = reactExports.useState(startOpen);
|
|
56281
56291
|
const onClick = (evt, value, label2, clickHandler) => {
|
|
56282
|
-
evt.preventDefault();
|
|
56283
56292
|
if (typeof clickHandler === "function") {
|
|
56284
56293
|
evt.currentTarget.value = value;
|
|
56285
56294
|
evt.currentTarget.label = label2;
|
|
@@ -68323,9 +68332,20 @@ const TextLink = ({
|
|
|
68323
68332
|
href = void 0,
|
|
68324
68333
|
target = void 0,
|
|
68325
68334
|
testId,
|
|
68326
|
-
onClick
|
|
68335
|
+
onClick,
|
|
68336
|
+
component: Component2 = "a"
|
|
68327
68337
|
}) => {
|
|
68328
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
68338
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
68339
|
+
Component2,
|
|
68340
|
+
{
|
|
68341
|
+
href,
|
|
68342
|
+
to: href,
|
|
68343
|
+
target,
|
|
68344
|
+
onClick,
|
|
68345
|
+
"data-testid": testId,
|
|
68346
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { link: true, children })
|
|
68347
|
+
}
|
|
68348
|
+
);
|
|
68329
68349
|
};
|
|
68330
68350
|
const inputInTable = "_inputInTable_66zck_1";
|
|
68331
68351
|
const inputHover = "_inputHover_66zck_13";
|
|
@@ -68715,7 +68735,8 @@ const Link = ({
|
|
|
68715
68735
|
onClick,
|
|
68716
68736
|
active: active2,
|
|
68717
68737
|
disabled: disabled2,
|
|
68718
|
-
testId
|
|
68738
|
+
testId,
|
|
68739
|
+
component: Component2 = "a"
|
|
68719
68740
|
}) => {
|
|
68720
68741
|
const disabledContext = reactExports.useContext(DisabledContext);
|
|
68721
68742
|
const handleClick2 = (event) => {
|
|
@@ -68725,10 +68746,11 @@ const Link = ({
|
|
|
68725
68746
|
onClick == null ? void 0 : onClick(event);
|
|
68726
68747
|
};
|
|
68727
68748
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
68728
|
-
|
|
68749
|
+
Component2,
|
|
68729
68750
|
{
|
|
68730
68751
|
className: cx$2(styles$5.link, active2 ? styles$5.active : ""),
|
|
68731
68752
|
href: url || "#",
|
|
68753
|
+
to: url,
|
|
68732
68754
|
onClick: handleClick2,
|
|
68733
68755
|
"aria-disabled": disabled2 || disabledContext,
|
|
68734
68756
|
"data-testid": testId,
|
|
@@ -68752,7 +68774,8 @@ const Element$1 = ({ element }) => {
|
|
|
68752
68774
|
onClick: element.onClick,
|
|
68753
68775
|
active: element.active,
|
|
68754
68776
|
disabled: element.disabled,
|
|
68755
|
-
testId: element.testId
|
|
68777
|
+
testId: element.testId,
|
|
68778
|
+
component: element.component
|
|
68756
68779
|
}
|
|
68757
68780
|
) });
|
|
68758
68781
|
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 {
|
|
@@ -1660,7 +1666,7 @@ export { Text_2 as Text }
|
|
|
1660
1666
|
|
|
1661
1667
|
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;
|
|
1662
1668
|
|
|
1663
|
-
export declare const TextLink: ({ children, href, target, testId, onClick, }: ITextLinkProps) => JSX_2.Element;
|
|
1669
|
+
export declare const TextLink: ({ children, href, target, testId, onClick, component: Component, }: ITextLinkProps) => JSX_2.Element;
|
|
1664
1670
|
|
|
1665
1671
|
declare type TFileReaderMethod = TInputReaderMethods | string;
|
|
1666
1672
|
|
|
@@ -1686,6 +1692,7 @@ declare type TLinkElement = TBaseElementProps & {
|
|
|
1686
1692
|
url?: string;
|
|
1687
1693
|
active?: boolean;
|
|
1688
1694
|
disabled?: boolean;
|
|
1695
|
+
component?: React.ElementType;
|
|
1689
1696
|
};
|
|
1690
1697
|
|
|
1691
1698
|
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-j2Tv5Ypq.js"></script><link rel="stylesheet" crossorigin href="/react-ui-library/assets/index-AkeNwthw.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:
|
|
@@ -18990,10 +18996,12 @@ const ListRow = forwardRef(
|
|
|
18990
18996
|
({ items, expanding, invokeEditOnRowClick, provided, draggable: draggable2 }, listRowRefs) => {
|
|
18991
18997
|
const disabledContext = useContext(DisabledContext);
|
|
18992
18998
|
const listElement = (index2, provided2, item2, indent, hasOnClick, edit2) => {
|
|
18999
|
+
const Component2 = item2.component || "a";
|
|
18993
19000
|
return /* @__PURE__ */ createElement(
|
|
18994
|
-
|
|
19001
|
+
Component2,
|
|
18995
19002
|
{
|
|
18996
19003
|
href: item2.url,
|
|
19004
|
+
to: item2.url,
|
|
18997
19005
|
ref: provided2 == null ? void 0 : provided2.innerRef,
|
|
18998
19006
|
...provided2.draggableProps,
|
|
18999
19007
|
style: getItemStyle(provided2.draggableProps, item2),
|
|
@@ -52730,10 +52738,12 @@ const Link$1 = ({
|
|
|
52730
52738
|
}) => {
|
|
52731
52739
|
return /* @__PURE__ */ jsx("div", { className: styles$d.list, children: items.map((link2, i) => {
|
|
52732
52740
|
const key2 = `${sectionIndex}_${i}`;
|
|
52741
|
+
const Component2 = link2.component || "a";
|
|
52733
52742
|
return /* @__PURE__ */ jsx(
|
|
52734
|
-
|
|
52743
|
+
Component2,
|
|
52735
52744
|
{
|
|
52736
52745
|
href: link2.value,
|
|
52746
|
+
to: link2.value,
|
|
52737
52747
|
className: cx$2(
|
|
52738
52748
|
styles$d.item,
|
|
52739
52749
|
link2.isActive ? styles$d.active : "",
|
|
@@ -52785,7 +52795,6 @@ const SideBar = memo(
|
|
|
52785
52795
|
}) => {
|
|
52786
52796
|
const [isOpen2, setIsOpen] = useState(startOpen);
|
|
52787
52797
|
const onClick = (evt, value, label2, clickHandler) => {
|
|
52788
|
-
evt.preventDefault();
|
|
52789
52798
|
if (typeof clickHandler === "function") {
|
|
52790
52799
|
evt.currentTarget.value = value;
|
|
52791
52800
|
evt.currentTarget.label = label2;
|
|
@@ -56728,9 +56737,20 @@ const TextLink = ({
|
|
|
56728
56737
|
href = void 0,
|
|
56729
56738
|
target = void 0,
|
|
56730
56739
|
testId,
|
|
56731
|
-
onClick
|
|
56740
|
+
onClick,
|
|
56741
|
+
component: Component2 = "a"
|
|
56732
56742
|
}) => {
|
|
56733
|
-
return /* @__PURE__ */ jsx(
|
|
56743
|
+
return /* @__PURE__ */ jsx(
|
|
56744
|
+
Component2,
|
|
56745
|
+
{
|
|
56746
|
+
href,
|
|
56747
|
+
to: href,
|
|
56748
|
+
target,
|
|
56749
|
+
onClick,
|
|
56750
|
+
"data-testid": testId,
|
|
56751
|
+
children: /* @__PURE__ */ jsx(Text, { link: true, children })
|
|
56752
|
+
}
|
|
56753
|
+
);
|
|
56734
56754
|
};
|
|
56735
56755
|
const inputInTable = "_inputInTable_66zck_1";
|
|
56736
56756
|
const inputHover = "_inputHover_66zck_13";
|
|
@@ -58069,7 +58089,8 @@ const Link = ({
|
|
|
58069
58089
|
onClick,
|
|
58070
58090
|
active: active2,
|
|
58071
58091
|
disabled: disabled2,
|
|
58072
|
-
testId
|
|
58092
|
+
testId,
|
|
58093
|
+
component: Component2 = "a"
|
|
58073
58094
|
}) => {
|
|
58074
58095
|
const disabledContext = useContext(DisabledContext);
|
|
58075
58096
|
const handleClick2 = (event) => {
|
|
@@ -58079,10 +58100,11 @@ const Link = ({
|
|
|
58079
58100
|
onClick == null ? void 0 : onClick(event);
|
|
58080
58101
|
};
|
|
58081
58102
|
return /* @__PURE__ */ jsxs(
|
|
58082
|
-
|
|
58103
|
+
Component2,
|
|
58083
58104
|
{
|
|
58084
58105
|
className: cx$2(styles$3.link, active2 ? styles$3.active : ""),
|
|
58085
58106
|
href: url || "#",
|
|
58107
|
+
to: url,
|
|
58086
58108
|
onClick: handleClick2,
|
|
58087
58109
|
"aria-disabled": disabled2 || disabledContext,
|
|
58088
58110
|
"data-testid": testId,
|
|
@@ -58106,7 +58128,8 @@ const Element$1 = ({ element }) => {
|
|
|
58106
58128
|
onClick: element.onClick,
|
|
58107
58129
|
active: element.active,
|
|
58108
58130
|
disabled: element.disabled,
|
|
58109
|
-
testId: element.testId
|
|
58131
|
+
testId: element.testId,
|
|
58132
|
+
component: element.component
|
|
58110
58133
|
}
|
|
58111
58134
|
) });
|
|
58112
58135
|
case ElementType.BUTTON:
|