@oliasoft-open-source/react-ui-library 4.6.16 → 4.6.18
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-noRhVNRn.js → index-3CeHq3uM.js} +14 -4
- package/dist/assets/{index-UHom3TOS.css → index-DdTheZoQ.css} +11 -8
- package/dist/global.css +11 -8
- package/dist/index.d.ts +10 -0
- package/dist/index.html +1 -1
- package/dist/index.js +65 -14
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/Color-6VNJS4EI-xbGhw5Tj.js +1 -0
- package/dist/storybook/assets/DocsRenderer-NNNQARDV-sAPbui3t.js +1 -0
- package/dist/storybook/assets/WithTooltip-V3YHNWJZ-gwFLosBp.js +1 -0
- package/dist/storybook/assets/{accordion-M-sY23Hd.js → accordion-MRdNs3mQ.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-lXs4IRds.js → accordion.stories-488HeY9k.js} +2 -2
- package/dist/storybook/assets/actions-Z1pyUd57.js +1 -0
- package/dist/storybook/assets/actions-_FIB7bOt.css +1 -0
- package/dist/storybook/assets/{actions.stories-sQK7SAX5.js → actions.stories-JWaU0QAA.js} +1 -1
- package/dist/storybook/assets/{afe.stories-ODEPBi0c.js → afe.stories-Rsl77dCu.js} +2 -2
- package/dist/storybook/assets/{badge.stories-fpUlm73g.js → badge.stories-2BykvoFl.js} +1 -1
- package/dist/storybook/assets/{blowout.stories-4nLIosc7.js → blowout.stories--vPM-KpE.js} +1 -1
- package/dist/storybook/assets/{button-BiJw0fB3.js → button-UQO14biP.js} +1 -1
- package/dist/storybook/assets/{button-group-uKCjEKYR.js → button-group-g7HxxHTn.js} +1 -1
- package/dist/storybook/assets/{button-group.stories-mynaBhDz.js → button-group.stories-hJ9V_va5.js} +1 -1
- package/dist/storybook/assets/{button.stories-7N3AZjiw.js → button.stories-ihIU7iUf.js} +6 -6
- package/dist/storybook/assets/{buttons-and-links-2FBaBkFc.js → buttons-and-links-kUTQnA6P.js} +2 -2
- package/dist/storybook/assets/{card.stories-N8mLrD63.js → card.stories-5YbTAbLy.js} +1 -1
- package/dist/storybook/assets/{casing-loads.stories-g4yBGv5b.js → casing-loads.stories-LogF6TT6.js} +2 -2
- package/dist/storybook/assets/{cell.stories-sVyam_bx.js → cell.stories-BF9fKK_5.js} +2 -2
- package/dist/storybook/assets/{check-box-KynSyTaY.js → check-box-Q2GsbR79.js} +1 -1
- package/dist/storybook/assets/{check-box.stories-yE82OQod.js → check-box.stories-iQby_Dan.js} +1 -1
- package/dist/storybook/assets/{chunk-HLWAVYOI-tHzaOxem.js → chunk-HLWAVYOI-IUW2ushY.js} +1 -1
- package/dist/storybook/assets/color-T7GIoOH6.js +25 -0
- package/dist/storybook/assets/{column.stories-cX-u-DHI.js → column.stories-NnQNzY18.js} +1 -1
- package/dist/storybook/assets/{dialog-Au78k7wS.js → dialog-hHTtMGls.js} +1 -1
- package/dist/storybook/assets/{drawer-Vhj7CUNA.js → drawer-ChY55ghN.js} +1 -1
- package/dist/storybook/assets/{drawer.stories-gbeto4wq.js → drawer.stories-xv50_UKt.js} +2 -2
- package/dist/storybook/assets/{empty.stories-oRmjEU7P.js → empty.stories-dFjUCZln.js} +1 -1
- package/dist/storybook/assets/extends-dGVwEr9R.js +1 -0
- package/dist/storybook/assets/{field-m7XXDdEG.js → field-jD6TclDQ.js} +1 -1
- package/dist/storybook/assets/{field.stories-6xmZA-uD.js → field.stories-CeHr9rXs.js} +1 -1
- package/dist/storybook/assets/file-button.stories-z0vvWcvN.js +10 -0
- package/dist/storybook/assets/{file-input-AwnqYeJy.js → file-input-H1V5DMV-.js} +1 -1
- package/dist/storybook/assets/{file-input.stories-5kyAKS_C.js → file-input.stories-2-2uTWvd.js} +1 -1
- package/dist/storybook/assets/{flex.stories-xAOrglx5.js → flex.stories-6qFQFEL7.js} +1 -1
- package/dist/storybook/assets/footer.stories-nvn3DsNw.js +3 -0
- package/dist/storybook/assets/form.stories-TIQoYJwC.js +49 -0
- package/dist/storybook/assets/formation.stories-m_rHJhHE.js +74 -0
- package/dist/storybook/assets/{formatter-SWP5E3XI-_Igw7BUr.js → formatter-SWP5E3XI-GzRPFG7m.js} +2 -2
- package/dist/storybook/assets/{heading-4tVgoT7O.js → heading-FcNTpGhR.js} +1 -1
- package/dist/storybook/assets/{heading.stories-7Bqlw14c.js → heading.stories-0MJHBHcQ.js} +1 -1
- package/dist/storybook/assets/{help-icon-eelulTML.js → help-icon-D6ZGAbgL.js} +1 -1
- package/dist/storybook/assets/{help-icon.stories-CptgOV2E.js → help-icon.stories-YZw5pFQt.js} +1 -1
- package/dist/storybook/assets/icon-_m67DAr0.js +8 -0
- package/dist/storybook/assets/{icon.stories-j-b_Exev.js → icon.stories-2aZia1VV.js} +1 -1
- package/dist/storybook/assets/iframe-NjfSsybe.js +7 -0
- package/dist/storybook/assets/{index-K-0S6d15.js → index-wKW2GPrE.js} +5 -5
- package/dist/storybook/assets/{index.es-VXFRDikp.js → index.es-HG2GUH9i.js} +4 -4
- package/dist/storybook/assets/inheritsLoose-Y9jOMJLd.js +1 -0
- package/dist/storybook/assets/{input-group.stories-BJcLpgsm.js → input-group.stories-yF-PiFm1.js} +2 -2
- package/dist/storybook/assets/{input-validation-gD2VptJq.js → input-validation-U4HJ5Ucw.js} +2 -2
- package/dist/storybook/assets/{inputs-xtYro1Lt.js → inputs-S04nRGW2.js} +2 -2
- package/dist/storybook/assets/{label-bLcoUwtK.js → label-dla_bzHj.js} +1 -1
- package/dist/storybook/assets/{label.stories-KbJuUVw3.js → label.stories-t-e2pWHW.js} +1 -1
- package/dist/storybook/assets/layout-forms-a8CnPDfT.js +16 -0
- package/dist/storybook/assets/{layout-general-wuAEAmS1.js → layout-general-Khl-lgRH.js} +2 -2
- package/dist/storybook/assets/{list-F9uDwsrH.js → list-Nr0UfaUw.js} +1 -1
- package/dist/storybook/assets/{list.stories-GyWvG8gC.js → list.stories-K1nFEsjX.js} +2 -2
- package/dist/storybook/assets/{list.stories-data-Ijj3YnfK.js → list.stories-data-WlepbhE1.js} +1 -1
- package/dist/storybook/assets/{loader.stories-B5lK8-XB.js → loader.stories-eEBGjVSN.js} +1 -1
- package/dist/storybook/assets/{menu.stories-YY0ZhdqW.js → menu.stories-nx6w59Nv.js} +6 -6
- package/dist/storybook/assets/{message-CRKuTfOl.js → message-bbAE2zjv.js} +1 -1
- package/dist/storybook/assets/{message.stories-aLAQs_iU.js → message.stories-RJI8haIH.js} +1 -1
- package/dist/storybook/assets/{meta-content-h1NJ9ypR.js → meta-content-073TGkSN.js} +1 -1
- package/dist/storybook/assets/{modal.stories-aZGhb1Cl.js → modal.stories-HOB4HNE4.js} +2 -2
- package/dist/storybook/assets/{number-input.stories-QU9Llt5Z.js → number-input.stories-0-jDCroI.js} +5 -5
- package/dist/storybook/assets/{option-dropdown.stories-f_5X-NT4.js → option-dropdown.stories-M9-IYc-K.js} +1 -1
- package/dist/storybook/assets/{padding-and-spacing-h7UETkPK.js → padding-and-spacing-ckWSgL0y.js} +2 -2
- package/dist/storybook/assets/{page.stories-_evmOXW2.js → page.stories-x7QRBnZm.js} +1 -1
- package/dist/storybook/assets/{pagination-DtJdggbI.js → pagination-lFdPlLPJ.js} +1 -1
- package/dist/storybook/assets/{pagination.stories-M2RqRdRc.js → pagination.stories-etfovhze.js} +2 -2
- package/dist/storybook/assets/{pop-confirm.stories-6V_XrhKa.js → pop-confirm.stories-QyBm5ZAb.js} +1 -1
- package/dist/storybook/assets/{popover-N9B8JT3G.js → popover-rJn7kxkX.js} +1 -1
- package/dist/storybook/assets/popover.stories-eItcO8iz.js +10 -0
- package/dist/storybook/assets/preview-YmO-dFt7.js +7 -0
- package/dist/storybook/assets/{preview-T-saggOw.js → preview-eOJx8ySI.js} +3 -3
- package/dist/storybook/assets/projects.stories-wnXCxuJE.js +47 -0
- package/dist/storybook/assets/{radio-button-HPU-KHv4.js → radio-button-7TJh5k-h.js} +1 -1
- package/dist/storybook/assets/{radio-button.stories-ZyjCpReq.js → radio-button.stories-9mvBu2BH.js} +1 -1
- package/dist/storybook/assets/react-router-dom-4Z66xYqZ.js +8 -0
- package/dist/storybook/assets/{reservoirs.stories-dvGcJAh0.js → reservoirs.stories-6dilTPJE.js} +2 -2
- package/dist/storybook/assets/{rich-text-input.stories-BroJS4L0.js → rich-text-input.stories-Vu2wd1uh.js} +3 -3
- package/dist/storybook/assets/{row.stories-ZibxnXR9.js → row.stories-6wXvgyio.js} +2 -2
- package/dist/storybook/assets/select-IxUsW-Xm.js +1 -0
- package/dist/storybook/assets/{select.stories-pZ8RM3fJ.js → select.stories-Kbzpw3od.js} +2 -2
- package/dist/storybook/assets/{side-bar-evBxuVzm.js → side-bar-kr46QLwI.js} +1 -1
- package/dist/storybook/assets/{side-bar.stories-mtQSbRi1.js → side-bar.stories-bJoVvzG5.js} +1 -1
- package/dist/storybook/assets/{site.stories--LjoKnDF.js → site.stories-VpsCjYty.js} +2 -2
- package/dist/storybook/assets/slider-jx0z5OyT.js +7 -0
- package/dist/storybook/assets/{slider.stories-ZZQVWjaY.js → slider.stories-CpY4L01U.js} +2 -2
- package/dist/storybook/assets/{smart-upload-modal.stories-RRF2yq4B.js → smart-upload-modal.stories-VCP3yghQ.js} +1 -1
- package/dist/storybook/assets/{spacer.stories-oFV2pFb8.js → spacer.stories-FpDFoVWE.js} +1 -1
- package/dist/storybook/assets/syntaxhighlighter-B5GMVT5T-J83QFJ3_.js +1 -0
- package/dist/storybook/assets/{table-kSTipYE0.js → table-fdcNapB-.js} +1 -1
- package/dist/storybook/assets/{table.stories-zdRM5AV8.js → table.stories-a5LZLQDT.js} +2 -2
- package/dist/storybook/assets/{table.stories-data-tjY9V0bM.js → table.stories-data-UqqhbXjA.js} +1 -1
- package/dist/storybook/assets/text-link.stories-Plmiu8NV.js +14 -0
- package/dist/storybook/assets/{title.stories-tcfNoA6z.js → title.stories-zxDbEh-U.js} +3 -3
- package/dist/storybook/assets/{toaster-yPcd4ELJ.js → toaster-IL_npIpU.js} +1 -1
- package/dist/storybook/assets/{toaster.stories-Cu8HbPc6.js → toaster.stories-QL3_PKZL.js} +1 -1
- package/dist/storybook/assets/{toggle-R__kwKym.js → toggle-vKuY4G3w.js} +1 -1
- package/dist/storybook/assets/{toggle.stories-ViKd2aK_.js → toggle.stories-fJ5QYzcQ.js} +1 -1
- package/dist/storybook/assets/{tooltip.test-case.stories-_THFk3Hb.js → tooltip.test-case.stories-0HiezXaS.js} +1 -1
- package/dist/storybook/assets/{top-bar-0Ownj3Bx.js → top-bar-pptAo2LU.js} +1 -1
- package/dist/storybook/assets/top-bar.stories-H1OeyQS_.js +21 -0
- package/dist/storybook/assets/{top-bar.testcase.stories-3XlaHVAQ.js → top-bar.testcase.stories-uJCoeG_m.js} +1 -1
- package/dist/storybook/assets/{tree.stories-Uh4XKQdz.js → tree.stories-a-UG4OFf.js} +1 -1
- package/dist/storybook/assets/{unit-input.stories-R93nVPV4.js → unit-input.stories-QoJkzTRA.js} +1 -1
- package/dist/storybook/assets/unit-table.stories-rHU8wR7Z.js +150 -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 +1 -1
- package/dist/storybook/assets/Color-6VNJS4EI-YEDm9gbz.js +0 -1
- package/dist/storybook/assets/DocsRenderer-NNNQARDV-NmCW-oyQ.js +0 -1
- package/dist/storybook/assets/WithTooltip-V3YHNWJZ-3DZ-8kE7.js +0 -1
- package/dist/storybook/assets/actions-7PO9r8zE.js +0 -1
- package/dist/storybook/assets/actions-ZOs51LZe.css +0 -1
- package/dist/storybook/assets/color-7OzxGyA_.js +0 -25
- package/dist/storybook/assets/footer.stories-ZEZ_We0f.js +0 -3
- package/dist/storybook/assets/form.stories-rXc4fhX5.js +0 -49
- package/dist/storybook/assets/formation.stories-062BdtdZ.js +0 -74
- package/dist/storybook/assets/icon-8EQazuuW.js +0 -8
- package/dist/storybook/assets/iframe-CpYMK6kb.js +0 -7
- package/dist/storybook/assets/inheritsLoose-8sb_A2v4.js +0 -1
- package/dist/storybook/assets/layout-forms-NhJIOV9y.js +0 -16
- package/dist/storybook/assets/popover.stories-goIrT_jy.js +0 -10
- package/dist/storybook/assets/preview-f-BBQod4.js +0 -7
- package/dist/storybook/assets/projects.stories-H8sLyz8n.js +0 -47
- package/dist/storybook/assets/react-router-dom-EZH1n7K1.js +0 -8
- package/dist/storybook/assets/select-AcJYUY86.js +0 -1
- package/dist/storybook/assets/slider-n3IxC2iq.js +0 -7
- package/dist/storybook/assets/syntaxhighlighter-B5GMVT5T-d9li6xQn.js +0 -1
- package/dist/storybook/assets/text-link.stories-Mx9ojcOC.js +0 -14
- package/dist/storybook/assets/top-bar.stories-Z8pUGVuU.js +0 -21
- package/dist/storybook/assets/unit-table.stories-9k8rllRh.js +0 -142
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-3CeHq3uM.js"></script><link rel="stylesheet" crossorigin href="/react-ui-library/assets/index-DdTheZoQ.css"></head><body><div id="content"></div></body>
|
|
@@ -18396,11 +18396,13 @@ const Button$1 = ({
|
|
|
18396
18396
|
}
|
|
18397
18397
|
) });
|
|
18398
18398
|
};
|
|
18399
|
-
const actions$2 = "
|
|
18400
|
-
const
|
|
18401
|
-
const
|
|
18399
|
+
const actions$2 = "_actions_1t7vd_1";
|
|
18400
|
+
const childComponent = "_childComponent_1t7vd_11";
|
|
18401
|
+
const actionComponentContainer = "_actionComponentContainer_1t7vd_14";
|
|
18402
|
+
const active$7 = "_active_1t7vd_36";
|
|
18402
18403
|
const styles$O = {
|
|
18403
18404
|
actions: actions$2,
|
|
18405
|
+
childComponent,
|
|
18404
18406
|
actionComponentContainer,
|
|
18405
18407
|
active: active$7
|
|
18406
18408
|
};
|
|
@@ -19211,7 +19213,15 @@ const Actions = (props) => {
|
|
|
19211
19213
|
const hidden2 = (action2 == null ? void 0 : action2.hidden) || !action2 || !Object.keys(action2).length;
|
|
19212
19214
|
if (!hidden2) {
|
|
19213
19215
|
if (action2.childComponent && React$4.isValidElement(action2.childComponent)) {
|
|
19214
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19216
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19217
|
+
"div",
|
|
19218
|
+
{
|
|
19219
|
+
"data-testid": action2.testId,
|
|
19220
|
+
className: styles$O.childComponent,
|
|
19221
|
+
children: action2.childComponent
|
|
19222
|
+
},
|
|
19223
|
+
index2
|
|
19224
|
+
);
|
|
19215
19225
|
} else if (action2.subActions) {
|
|
19216
19226
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19217
19227
|
SubmenuActions,
|
|
@@ -1685,17 +1685,20 @@ html[data-theme='dark'] {
|
|
|
1685
1685
|
transform: rotate(360deg);
|
|
1686
1686
|
}
|
|
1687
1687
|
}
|
|
1688
|
-
.
|
|
1688
|
+
._actions_1t7vd_1 {
|
|
1689
1689
|
margin-left: auto;
|
|
1690
1690
|
display: flex;
|
|
1691
1691
|
flex-wrap: nowrap;
|
|
1692
1692
|
justify-content: flex-end;
|
|
1693
1693
|
align-items: center;
|
|
1694
1694
|
}
|
|
1695
|
-
.
|
|
1695
|
+
._actions_1t7vd_1 > *:not(:last-child) {
|
|
1696
1696
|
margin-right: var(--padding-xxs);
|
|
1697
1697
|
}
|
|
1698
|
-
.
|
|
1698
|
+
._childComponent_1t7vd_11 {
|
|
1699
|
+
display: inline-flex;
|
|
1700
|
+
}
|
|
1701
|
+
._actionComponentContainer_1t7vd_14 {
|
|
1699
1702
|
width: 24px;
|
|
1700
1703
|
height: 24px;
|
|
1701
1704
|
display: inline-flex;
|
|
@@ -1708,16 +1711,16 @@ html[data-theme='dark'] {
|
|
|
1708
1711
|
transition: color 0.2s;
|
|
1709
1712
|
line-height: 0;
|
|
1710
1713
|
}
|
|
1711
|
-
.
|
|
1714
|
+
._actionComponentContainer_1t7vd_14 i {
|
|
1712
1715
|
margin: 0;
|
|
1713
1716
|
line-height: 1 !important;
|
|
1714
1717
|
}
|
|
1715
|
-
.
|
|
1716
|
-
.
|
|
1718
|
+
._actionComponentContainer_1t7vd_14:hover,
|
|
1719
|
+
._actionComponentContainer_1t7vd_14:focus {
|
|
1717
1720
|
color: var(--color-text-primary-hover);
|
|
1718
1721
|
}
|
|
1719
|
-
.
|
|
1720
|
-
.
|
|
1722
|
+
._actionComponentContainer_1t7vd_14:active,
|
|
1723
|
+
._actionComponentContainer_1t7vd_14._active_1t7vd_36 {
|
|
1721
1724
|
color: var(--color-text-primary-active);
|
|
1722
1725
|
}
|
|
1723
1726
|
._wrapper_1iw97_1 {
|
package/dist/global.css
CHANGED
|
@@ -1685,17 +1685,20 @@ html[data-theme='dark'] {
|
|
|
1685
1685
|
transform: rotate(360deg);
|
|
1686
1686
|
}
|
|
1687
1687
|
}
|
|
1688
|
-
.
|
|
1688
|
+
._actions_1t7vd_1 {
|
|
1689
1689
|
margin-left: auto;
|
|
1690
1690
|
display: flex;
|
|
1691
1691
|
flex-wrap: nowrap;
|
|
1692
1692
|
justify-content: flex-end;
|
|
1693
1693
|
align-items: center;
|
|
1694
1694
|
}
|
|
1695
|
-
.
|
|
1695
|
+
._actions_1t7vd_1 > *:not(:last-child) {
|
|
1696
1696
|
margin-right: var(--padding-xxs);
|
|
1697
1697
|
}
|
|
1698
|
-
.
|
|
1698
|
+
._childComponent_1t7vd_11 {
|
|
1699
|
+
display: inline-flex;
|
|
1700
|
+
}
|
|
1701
|
+
._actionComponentContainer_1t7vd_14 {
|
|
1699
1702
|
width: 24px;
|
|
1700
1703
|
height: 24px;
|
|
1701
1704
|
display: inline-flex;
|
|
@@ -1708,16 +1711,16 @@ html[data-theme='dark'] {
|
|
|
1708
1711
|
transition: color 0.2s;
|
|
1709
1712
|
line-height: 0;
|
|
1710
1713
|
}
|
|
1711
|
-
.
|
|
1714
|
+
._actionComponentContainer_1t7vd_14 i {
|
|
1712
1715
|
margin: 0;
|
|
1713
1716
|
line-height: 1 !important;
|
|
1714
1717
|
}
|
|
1715
|
-
.
|
|
1716
|
-
.
|
|
1718
|
+
._actionComponentContainer_1t7vd_14:hover,
|
|
1719
|
+
._actionComponentContainer_1t7vd_14:focus {
|
|
1717
1720
|
color: var(--color-text-primary-hover);
|
|
1718
1721
|
}
|
|
1719
|
-
.
|
|
1720
|
-
.
|
|
1722
|
+
._actionComponentContainer_1t7vd_14:active,
|
|
1723
|
+
._actionComponentContainer_1t7vd_14._active_1t7vd_36 {
|
|
1721
1724
|
color: var(--color-text-primary-active);
|
|
1722
1725
|
}
|
|
1723
1726
|
._wrapper_1iw97_1 {
|
package/dist/index.d.ts
CHANGED
|
@@ -92,6 +92,8 @@ export declare const Empty: ({ width, height, text, children, testId, }: IEmptyP
|
|
|
92
92
|
|
|
93
93
|
export declare const Field: ({ label, labelLeft, labelWidth, children, helpText, helpTextMaxWidth, onClickHelp, lock, info, libraryIcon, testId, }: IFieldProps) => JSX_2.Element;
|
|
94
94
|
|
|
95
|
+
export declare const FileButton: ({ file, accept, multi, name, disabled, onChange, ...buttonProps }: IFileButtonProps) => JSX_2.Element;
|
|
96
|
+
|
|
95
97
|
export declare const FileInput: ({ label, loading, placeholder, disabled, file, accept, multi, name, width, onChange, testId, }: IFileInputProps) => ReactElement;
|
|
96
98
|
|
|
97
99
|
export declare const Flex: ({ alignItems, justifyContent, direction, height, children, wrap, gap, }: IFlexProps) => JSX_2.Element;
|
|
@@ -397,6 +399,14 @@ export declare interface IFieldProps {
|
|
|
397
399
|
testId?: string;
|
|
398
400
|
}
|
|
399
401
|
|
|
402
|
+
export declare interface IFileButtonProps extends IButtonProps {
|
|
403
|
+
file?: File;
|
|
404
|
+
accept?: string;
|
|
405
|
+
multi?: boolean;
|
|
406
|
+
name?: string;
|
|
407
|
+
onChange?: (evt: any) => void;
|
|
408
|
+
}
|
|
409
|
+
|
|
400
410
|
export declare interface IFileInputProps {
|
|
401
411
|
label?: string | null;
|
|
402
412
|
loading?: boolean;
|
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-3CeHq3uM.js"></script><link rel="stylesheet" crossorigin href="/react-ui-library/assets/index-DdTheZoQ.css"></head><body><div id="content"></div></body>
|
package/dist/index.js
CHANGED
|
@@ -4211,11 +4211,13 @@ const Button$1 = ({
|
|
|
4211
4211
|
}
|
|
4212
4212
|
) });
|
|
4213
4213
|
};
|
|
4214
|
-
const actions$2 = "
|
|
4215
|
-
const
|
|
4216
|
-
const
|
|
4214
|
+
const actions$2 = "_actions_1t7vd_1";
|
|
4215
|
+
const childComponent = "_childComponent_1t7vd_11";
|
|
4216
|
+
const actionComponentContainer = "_actionComponentContainer_1t7vd_14";
|
|
4217
|
+
const active$7 = "_active_1t7vd_36";
|
|
4217
4218
|
const styles$M = {
|
|
4218
4219
|
actions: actions$2,
|
|
4220
|
+
childComponent,
|
|
4219
4221
|
actionComponentContainer,
|
|
4220
4222
|
active: active$7
|
|
4221
4223
|
};
|
|
@@ -5029,7 +5031,15 @@ const Actions = (props) => {
|
|
|
5029
5031
|
const hidden2 = (action2 == null ? void 0 : action2.hidden) || !action2 || !Object.keys(action2).length;
|
|
5030
5032
|
if (!hidden2) {
|
|
5031
5033
|
if (action2.childComponent && React__default.isValidElement(action2.childComponent)) {
|
|
5032
|
-
return /* @__PURE__ */ jsx(
|
|
5034
|
+
return /* @__PURE__ */ jsx(
|
|
5035
|
+
"div",
|
|
5036
|
+
{
|
|
5037
|
+
"data-testid": action2.testId,
|
|
5038
|
+
className: styles$M.childComponent,
|
|
5039
|
+
children: action2.childComponent
|
|
5040
|
+
},
|
|
5041
|
+
index2
|
|
5042
|
+
);
|
|
5033
5043
|
} else if (action2.subActions) {
|
|
5034
5044
|
return /* @__PURE__ */ jsx(
|
|
5035
5045
|
SubmenuActions,
|
|
@@ -9068,6 +9078,47 @@ const Empty = ({
|
|
|
9068
9078
|
}
|
|
9069
9079
|
);
|
|
9070
9080
|
};
|
|
9081
|
+
const FileButton = ({
|
|
9082
|
+
file,
|
|
9083
|
+
accept,
|
|
9084
|
+
multi,
|
|
9085
|
+
name: name2,
|
|
9086
|
+
disabled: disabled2,
|
|
9087
|
+
onChange = () => {
|
|
9088
|
+
},
|
|
9089
|
+
...buttonProps
|
|
9090
|
+
}) => {
|
|
9091
|
+
const disabledContext = useContext(DisabledContext);
|
|
9092
|
+
const inputRef = useRef(null);
|
|
9093
|
+
const handleClick2 = () => {
|
|
9094
|
+
var _a;
|
|
9095
|
+
if (!(disabled2 || disabledContext))
|
|
9096
|
+
(_a = inputRef.current) == null ? void 0 : _a.click();
|
|
9097
|
+
};
|
|
9098
|
+
const handleChange = (evt) => {
|
|
9099
|
+
var _a;
|
|
9100
|
+
const files = multi ? evt.target.files : (_a = evt.target.files) == null ? void 0 : _a[0];
|
|
9101
|
+
onChange({ ...evt, target: { ...evt.target, value: files } });
|
|
9102
|
+
if (inputRef.current) {
|
|
9103
|
+
inputRef.current.value = "";
|
|
9104
|
+
}
|
|
9105
|
+
};
|
|
9106
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
9107
|
+
/* @__PURE__ */ jsx(Button$1, { ...buttonProps, onClick: handleClick2 }),
|
|
9108
|
+
/* @__PURE__ */ jsx(
|
|
9109
|
+
"input",
|
|
9110
|
+
{
|
|
9111
|
+
name: name2,
|
|
9112
|
+
ref: inputRef,
|
|
9113
|
+
style: { display: "none" },
|
|
9114
|
+
type: "file",
|
|
9115
|
+
accept,
|
|
9116
|
+
multiple: multi,
|
|
9117
|
+
onChange: handleChange
|
|
9118
|
+
}
|
|
9119
|
+
)
|
|
9120
|
+
] });
|
|
9121
|
+
};
|
|
9071
9122
|
const inputGroup = "_inputGroup_biuoa_1";
|
|
9072
9123
|
const styles$A = {
|
|
9073
9124
|
inputGroup
|
|
@@ -9287,6 +9338,14 @@ const FileInput = ({
|
|
|
9287
9338
|
if (!(disabled2 || disabledContext))
|
|
9288
9339
|
(_a = inputRef.current) == null ? void 0 : _a.click();
|
|
9289
9340
|
};
|
|
9341
|
+
const handleChange = (evt) => {
|
|
9342
|
+
var _a, _b, _c;
|
|
9343
|
+
const files = multi ? (_a = evt == null ? void 0 : evt.target) == null ? void 0 : _a.files : (_c = (_b = evt == null ? void 0 : evt.target) == null ? void 0 : _b.files) == null ? void 0 : _c[0];
|
|
9344
|
+
onChange({ ...evt, target: { ...evt.target, value: files } });
|
|
9345
|
+
if (inputRef.current) {
|
|
9346
|
+
inputRef.current.value = "";
|
|
9347
|
+
}
|
|
9348
|
+
};
|
|
9290
9349
|
return /* @__PURE__ */ jsxs("div", { onClick: handleClick2, style: { width: width2 }, children: [
|
|
9291
9350
|
/* @__PURE__ */ jsxs(InputGroup, { children: [
|
|
9292
9351
|
/* @__PURE__ */ jsx(Input$1, { value: fileName || "", placeholder: placeholder3, disabled: true }),
|
|
@@ -9309,16 +9368,7 @@ const FileInput = ({
|
|
|
9309
9368
|
type: "file",
|
|
9310
9369
|
accept,
|
|
9311
9370
|
multiple: multi,
|
|
9312
|
-
onChange:
|
|
9313
|
-
var _a, _b, _c;
|
|
9314
|
-
onChange({
|
|
9315
|
-
...evt,
|
|
9316
|
-
target: {
|
|
9317
|
-
...evt.target,
|
|
9318
|
-
value: multi ? (_a = evt == null ? void 0 : evt.target) == null ? void 0 : _a.files : (_c = (_b = evt == null ? void 0 : evt.target) == null ? void 0 : _b.files) == null ? void 0 : _c[0]
|
|
9319
|
-
}
|
|
9320
|
-
});
|
|
9321
|
-
},
|
|
9371
|
+
onChange: handleChange,
|
|
9322
9372
|
"data-testid": testId
|
|
9323
9373
|
}
|
|
9324
9374
|
)
|
|
@@ -71038,6 +71088,7 @@ export {
|
|
|
71038
71088
|
ElementType,
|
|
71039
71089
|
Empty,
|
|
71040
71090
|
Field,
|
|
71091
|
+
FileButton,
|
|
71041
71092
|
FileInput,
|
|
71042
71093
|
Flex,
|
|
71043
71094
|
FormRow,
|