@oliasoft-open-source/react-ui-library 4.13.0-beta-1 → 4.13.0-beta-3
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.d.ts +2 -1
- package/dist/index.js +23 -9
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/assets/bg-rock-D_kpA0sy.jpg +0 -0
- package/dist/assets/index-BZ1vGLnA.css +0 -8547
- package/dist/assets/index-D4oUBkZd.js +0 -76217
- package/dist/assets/noto-sans-latin-400-italic-BT87CHj2.woff +0 -0
- package/dist/assets/noto-sans-latin-400-italic-NApRWGLz.woff2 +0 -0
- package/dist/assets/noto-sans-latin-400-normal-CF_EggQ_.woff2 +0 -0
- package/dist/assets/noto-sans-latin-400-normal-DMz6UGTQ.woff +0 -0
- package/dist/assets/noto-sans-latin-700-italic-Cw3cBBZk.woff2 +0 -0
- package/dist/assets/noto-sans-latin-700-italic-qe_3Da_h.woff +0 -0
- package/dist/assets/noto-sans-latin-700-normal-CkyHDghY.woff +0 -0
- package/dist/assets/noto-sans-latin-700-normal-DwlQfr5s.woff2 +0 -0
- package/dist/index.html +0 -1
- package/dist/storybook/assets/Color-KGDBMAHA-ANgdrQuZ.js +0 -1
- package/dist/storybook/assets/DocsRenderer-PKQXORMH-Diyq_37l.js +0 -1
- package/dist/storybook/assets/accordion-BiuI_LCA.js +0 -1
- package/dist/storybook/assets/accordion-C3DU7hG7.css +0 -1
- package/dist/storybook/assets/accordion-DhEg2ksb.css +0 -1
- package/dist/storybook/assets/accordion.stories-CrmHu75y.js +0 -170
- package/dist/storybook/assets/actions-Bax0KeqM.js +0 -39
- package/dist/storybook/assets/actions-D8UgHts6.css +0 -1
- package/dist/storybook/assets/actions.stories-BnPZKqOJ.js +0 -1
- package/dist/storybook/assets/afe.stories-C9XjJj62.js +0 -88
- package/dist/storybook/assets/assertThisInitialized-B9jnkVVz.js +0 -1
- package/dist/storybook/assets/badge-BiaoqO6w.css +0 -1
- package/dist/storybook/assets/badge-CLQ59MDF.js +0 -1
- package/dist/storybook/assets/badge.stories-DA_eeQyi.js +0 -1
- package/dist/storybook/assets/bg-rock-D_kpA0sy.jpg +0 -0
- package/dist/storybook/assets/blowout.stories-DH-sYHgB.js +0 -40
- package/dist/storybook/assets/breadcrumb-DMx-Mu4J.css +0 -1
- package/dist/storybook/assets/breadcrumb.stories-CJArS18Q.js +0 -1
- package/dist/storybook/assets/button-Cbv7WK6k.js +0 -1
- package/dist/storybook/assets/button-DtgxLQCF.css +0 -1
- package/dist/storybook/assets/button-group-0hjBV4tw.css +0 -1
- package/dist/storybook/assets/button-group-D2fGP_bX.js +0 -1
- package/dist/storybook/assets/button-group.stories-BETADGti.js +0 -71
- package/dist/storybook/assets/button.stories-C03VvX8K.js +0 -80
- package/dist/storybook/assets/buttons-and-links-CtA6FoCC.js +0 -14
- package/dist/storybook/assets/card-EcjmryU9.js +0 -1
- package/dist/storybook/assets/card-VFDFIKp2.css +0 -1
- package/dist/storybook/assets/card.stories-CsTB0DuM.js +0 -1
- package/dist/storybook/assets/casing-loads.stories-Buy0-e_n.js +0 -209
- package/dist/storybook/assets/cell.stories-CPNfDo9l.js +0 -245
- package/dist/storybook/assets/check-box-CV-zd_I_.css +0 -1
- package/dist/storybook/assets/check-box-DPLaOkRR.js +0 -13
- package/dist/storybook/assets/check-box.stories-BJ0ShmeC.js +0 -97
- package/dist/storybook/assets/check-box.test-case.stories-CzuYZkUh.js +0 -30
- package/dist/storybook/assets/chunk-HLWAVYOI-KJoVz4w2.js +0 -2
- package/dist/storybook/assets/color-fa-nGnuH.js +0 -25
- package/dist/storybook/assets/column.stories-DDTHFELF.js +0 -88
- package/dist/storybook/assets/common-types-Sih75Sav.js +0 -1
- package/dist/storybook/assets/dialog-CBMZnjYb.css +0 -1
- package/dist/storybook/assets/dialog-DkpQscuI.js +0 -1
- package/dist/storybook/assets/disabled-context-rmpd7YJS.js +0 -1
- package/dist/storybook/assets/divider-DY9nJ_7N.js +0 -1
- package/dist/storybook/assets/divider-wQx_bznd.css +0 -1
- package/dist/storybook/assets/divider.stories-Dd-yyGrX.js +0 -1
- package/dist/storybook/assets/drawer-BVc1xI9q.css +0 -1
- package/dist/storybook/assets/drawer-DaQ1xGjV.js +0 -3
- package/dist/storybook/assets/drawer.stories-C08XBVTq.js +0 -113
- package/dist/storybook/assets/empty-L0EXybeR.css +0 -1
- package/dist/storybook/assets/empty.stories-L7LSMcLe.js +0 -1
- package/dist/storybook/assets/entry-preview-CHonU0lQ.js +0 -1
- package/dist/storybook/assets/entry-preview-docs-DUYczTxA.js +0 -54
- package/dist/storybook/assets/enum-Bnn40S8Q.js +0 -1
- package/dist/storybook/assets/field-CNDCZ5UR.css +0 -1
- package/dist/storybook/assets/field-HrLaMLbx.js +0 -7
- package/dist/storybook/assets/field.stories-CYpQ669-.js +0 -49
- package/dist/storybook/assets/file-button.stories-CRaTdLfv.js +0 -22
- package/dist/storybook/assets/file-input-b95Ui6h6.css +0 -1
- package/dist/storybook/assets/file-input-yalPf7-m.js +0 -13
- package/dist/storybook/assets/file-input.stories-DMTQqAF8.js +0 -66
- package/dist/storybook/assets/flex-EllkLxgO.js +0 -1
- package/dist/storybook/assets/flex.stories-CLwPyEMp.js +0 -15
- package/dist/storybook/assets/footer.stories-DniqHrTZ.js +0 -3
- package/dist/storybook/assets/form-row-BYz5u-Vr.css +0 -1
- package/dist/storybook/assets/form-row-CM112EYF.js +0 -1
- package/dist/storybook/assets/form.stories-Cr5Pz40F.js +0 -49
- package/dist/storybook/assets/formation.stories-C4Kugh7C.js +0 -74
- package/dist/storybook/assets/grid-DRkC-bt8.js +0 -15
- package/dist/storybook/assets/grid.stories-DqjhHHwX.js +0 -13
- package/dist/storybook/assets/heading-CRNoBc7q.js +0 -1
- package/dist/storybook/assets/heading-DMYPCDVj.css +0 -1
- package/dist/storybook/assets/heading.stories-DahFxeiX.js +0 -15
- package/dist/storybook/assets/help-icon-Buhx5nl6.js +0 -1
- package/dist/storybook/assets/help-icon-DeweQs4N.css +0 -1
- package/dist/storybook/assets/help-icon.stories-DbmZ1fgP.js +0 -4
- package/dist/storybook/assets/helpers-JJxzGegQ.js +0 -1
- package/dist/storybook/assets/icon-BSFY3vDO.js +0 -8
- package/dist/storybook/assets/icon-CXtHvr8n.css +0 -1
- package/dist/storybook/assets/icon-custom-Xcl4YkWP.js +0 -1
- package/dist/storybook/assets/icon.stories-fnZUR-LK.js +0 -6
- package/dist/storybook/assets/iframe-zFwPc0wJ.js +0 -2
- package/dist/storybook/assets/immer.esm-BwVl9PS2.js +0 -1
- package/dist/storybook/assets/index-BI4_Bp97.js +0 -1
- package/dist/storybook/assets/index-BcNHZKhG.js +0 -1
- package/dist/storybook/assets/index-Bk2sglWO.js +0 -5
- package/dist/storybook/assets/index-C0x1JmaP.js +0 -14
- package/dist/storybook/assets/index-CEuq6vkz.js +0 -1
- package/dist/storybook/assets/index-CF7H4eMJ.js +0 -28
- package/dist/storybook/assets/index-CUZDtIZe.js +0 -23
- package/dist/storybook/assets/index-D6O8EiV-.js +0 -574
- package/dist/storybook/assets/index-D6rZ4wEC.js +0 -13
- package/dist/storybook/assets/index-DKfJ8f-b.js +0 -1
- package/dist/storybook/assets/index-DMAnyMX5.js +0 -179
- package/dist/storybook/assets/index-DRSy5Ssd.js +0 -1
- package/dist/storybook/assets/index-DhsZuJvc.js +0 -12
- package/dist/storybook/assets/index.es-DazXb-ul.js +0 -79
- package/dist/storybook/assets/inheritsLoose-DP0QEDDI.js +0 -1
- package/dist/storybook/assets/initialize-context-Y03pJPr5.js +0 -1
- package/dist/storybook/assets/input-Db9WkmPP.js +0 -1
- package/dist/storybook/assets/input-Dz1ZZYN5.css +0 -1
- package/dist/storybook/assets/input-group-BaRSJAEN.js +0 -1
- package/dist/storybook/assets/input-group-C4Ph05Zr.css +0 -1
- package/dist/storybook/assets/input-group-addon-CKbTwfkc.css +0 -1
- package/dist/storybook/assets/input-group-addon-D68iUKV2.js +0 -1
- package/dist/storybook/assets/input-group.stories-BCajsqAk.js +0 -167
- package/dist/storybook/assets/input-validation-D5ctNaQa.js +0 -26
- package/dist/storybook/assets/input.stories-SJy3TKkD.js +0 -41
- package/dist/storybook/assets/inputs-CwLa0axN.js +0 -62
- package/dist/storybook/assets/jsx-runtime-eps93zm2.js +0 -8
- package/dist/storybook/assets/label-BmwKJ2Mn.css +0 -1
- package/dist/storybook/assets/label-CqmyC9he.js +0 -7
- package/dist/storybook/assets/label.stories-C0AO5F1a.js +0 -11
- package/dist/storybook/assets/layout-forms-5MAO2Ru7.js +0 -16
- package/dist/storybook/assets/layout-general-BH_mkxyI.js +0 -35
- package/dist/storybook/assets/list-By3wp5Wa.js +0 -13
- package/dist/storybook/assets/list.stories-BcDHHHYJ.js +0 -476
- package/dist/storybook/assets/list.stories-data-Doo2Rqun.js +0 -1
- package/dist/storybook/assets/loader-B4-2F7c_.css +0 -1
- package/dist/storybook/assets/loader-XHoVniao.js +0 -1
- package/dist/storybook/assets/loader.stories-Q0U2BqZX.js +0 -83
- package/dist/storybook/assets/lodash-c4VUpsOs.js +0 -27
- package/dist/storybook/assets/logo-BVP9045W.js +0 -1
- package/dist/storybook/assets/memoize-one.esm-CcMeOnPo.js +0 -1
- package/dist/storybook/assets/menu.stories-1I5AGGQx.js +0 -82
- package/dist/storybook/assets/menu.stories-data-CQ59XhzU.js +0 -1
- package/dist/storybook/assets/menu.test-case.stories-XN9XFV-D.js +0 -3
- package/dist/storybook/assets/message-BRyKdRaX.js +0 -1
- package/dist/storybook/assets/message-C2ZCkHX6.css +0 -1
- package/dist/storybook/assets/message.stories-bCqCYIuN.js +0 -341
- package/dist/storybook/assets/meta-content-ByVTG0hd.css +0 -1
- package/dist/storybook/assets/meta-content-DNgQbAW0.js +0 -9
- package/dist/storybook/assets/modal.stories-C2d-Em5V.js +0 -200
- package/dist/storybook/assets/modal.test-case.stories-Ci1WRYdo.js +0 -21
- package/dist/storybook/assets/noto-sans-latin-400-italic-BT87CHj2.woff +0 -0
- package/dist/storybook/assets/noto-sans-latin-400-italic-NApRWGLz.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-latin-400-normal-CF_EggQ_.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-latin-400-normal-DMz6UGTQ.woff +0 -0
- package/dist/storybook/assets/noto-sans-latin-700-italic-Cw3cBBZk.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-latin-700-italic-qe_3Da_h.woff +0 -0
- package/dist/storybook/assets/noto-sans-latin-700-normal-CkyHDghY.woff +0 -0
- package/dist/storybook/assets/noto-sans-latin-700-normal-DwlQfr5s.woff2 +0 -0
- package/dist/storybook/assets/number-input-B3_gmeWr.js +0 -16
- package/dist/storybook/assets/number-input.stories-epjUq9ve.js +0 -89
- package/dist/storybook/assets/number-input.test-case.stories-DeEtalIU.js +0 -95
- package/dist/storybook/assets/objectSpread2-DW4nTBoq.js +0 -1
- package/dist/storybook/assets/objectWithoutPropertiesLoose-CAYKN5F1.js +0 -1
- package/dist/storybook/assets/option-dropdown-CqPYsFHP.css +0 -1
- package/dist/storybook/assets/option-dropdown.stories-CznUbXVi.js +0 -52
- package/dist/storybook/assets/padding-and-spacing-B1k2xnXg.js +0 -19
- package/dist/storybook/assets/page-7SSpdYhb.js +0 -1
- package/dist/storybook/assets/page-BnAFjzxf.css +0 -1
- package/dist/storybook/assets/page-DqJqTfkP.css +0 -1
- package/dist/storybook/assets/page.stories-DthnK8qb.js +0 -57
- package/dist/storybook/assets/pagination-CR1nxnnq.js +0 -1
- package/dist/storybook/assets/pagination-Dv2vKYwQ.css +0 -1
- package/dist/storybook/assets/pagination.stories-qXmBYwYc.js +0 -59
- package/dist/storybook/assets/pop-confirm-DX_o_X81.css +0 -1
- package/dist/storybook/assets/pop-confirm.stories-CHa0qUBe.js +0 -9
- package/dist/storybook/assets/popover-CSc-8-Dh.css +0 -1
- package/dist/storybook/assets/popover-C_2P8LFJ.js +0 -1
- package/dist/storybook/assets/popover.stories-DZTfimDf.js +0 -10
- package/dist/storybook/assets/portal-GQ0_cLB6.js +0 -1
- package/dist/storybook/assets/portal.stories-BvRfNPz3.js +0 -20
- package/dist/storybook/assets/preview-B0ZyjArU.css +0 -1
- package/dist/storybook/assets/preview-Ct5NkTJf.js +0 -1
- package/dist/storybook/assets/preview-DLBQXbKW.js +0 -1
- package/dist/storybook/assets/preview-DpTCnAn-.js +0 -2
- package/dist/storybook/assets/preview-FIj3W2uF.js +0 -3
- package/dist/storybook/assets/progress-bar-C_kV6r0Q.js +0 -1
- package/dist/storybook/assets/progress-bar-ztYhwUbl.css +0 -1
- package/dist/storybook/assets/progress-bar.stories-CpbgT43D.js +0 -1
- package/dist/storybook/assets/projects.stories-BPm6ucAe.js +0 -47
- package/dist/storybook/assets/radio-button-C4ljBRED.js +0 -13
- package/dist/storybook/assets/radio-button-DvubT0Gg.css +0 -1
- package/dist/storybook/assets/radio-button.stories-D1rWr6ms.js +0 -61
- package/dist/storybook/assets/radio-button.test-case.stories-DglmHlWs.js +0 -11
- package/dist/storybook/assets/react-16-DXAfArL2.js +0 -1
- package/dist/storybook/assets/react-router-dom-Ck2Y_Fzc.js +0 -8
- package/dist/storybook/assets/redux-tRgGMjwY.js +0 -1
- package/dist/storybook/assets/reservoirs.stories-r1Ip90kJ.js +0 -156
- package/dist/storybook/assets/rich-text-input-BJfL0Me_.css +0 -1
- package/dist/storybook/assets/rich-text-input.stories-DwaseXZv.js +0 -256
- package/dist/storybook/assets/row-Bmiy2Lh0.js +0 -39
- package/dist/storybook/assets/row-D-EMWFT6.css +0 -1
- package/dist/storybook/assets/row.stories-jKh8Ms1e.js +0 -130
- package/dist/storybook/assets/select-BmYXTl_0.css +0 -1
- package/dist/storybook/assets/select-Cwks-WA0.js +0 -61
- package/dist/storybook/assets/select.input-CJed_LLR.js +0 -1
- package/dist/storybook/assets/select.stories-DjGSNDXK.js +0 -498
- package/dist/storybook/assets/select.stories-data-DxgWKlU6.js +0 -1
- package/dist/storybook/assets/select.test-case.stories-CrXzt4qn.js +0 -82
- package/dist/storybook/assets/side-bar-fBbBqyAT.css +0 -1
- package/dist/storybook/assets/side-bar-wpFQ5NEE.js +0 -24
- package/dist/storybook/assets/side-bar.stories-LjClxJcG.js +0 -1
- package/dist/storybook/assets/site.stories-BnWmALGd.js +0 -166
- package/dist/storybook/assets/slider-DPdTVMP0.css +0 -1
- package/dist/storybook/assets/slider-DxaD8LU4.js +0 -27
- package/dist/storybook/assets/slider.stories-DuGie_AX.js +0 -134
- package/dist/storybook/assets/smart-upload-modal.stories-BlTSF64K.js +0 -25
- package/dist/storybook/assets/spacer-BWoNR27H.js +0 -1
- package/dist/storybook/assets/spacer.stories-BT2S6B0R.js +0 -1
- package/dist/storybook/assets/spinner-AWUe4xwQ.js +0 -1
- package/dist/storybook/assets/spinner-C07x-KQu.css +0 -1
- package/dist/storybook/assets/spinner.stories-DuQNhl1V.js +0 -26
- package/dist/storybook/assets/styled-components.browser.esm-BQ9GQzDc.js +0 -2
- package/dist/storybook/assets/table-BSABGfWm.js +0 -86
- package/dist/storybook/assets/table-BtBtDwPu.css +0 -1
- package/dist/storybook/assets/table.stories-CHwzAdud.js +0 -772
- package/dist/storybook/assets/table.stories-data-C7mC5R8Q.js +0 -1
- package/dist/storybook/assets/tabs-BoToLVEP.js +0 -13
- package/dist/storybook/assets/tabs-DnWs2PtA.css +0 -1
- package/dist/storybook/assets/tabs.stories-B52iEaHf.js +0 -30
- package/dist/storybook/assets/text-2O-HSG8g.css +0 -1
- package/dist/storybook/assets/text-B3-TSWok.js +0 -1
- package/dist/storybook/assets/text-link.stories-BQAkVO-W.js +0 -14
- package/dist/storybook/assets/text.stories-B8L4FWPt.js +0 -1
- package/dist/storybook/assets/textarea-DflOOrxV.js +0 -13
- package/dist/storybook/assets/textarea-TqxidmV4.css +0 -1
- package/dist/storybook/assets/textarea.stories-CzsqRVpC.js +0 -9
- package/dist/storybook/assets/tiny-invariant-DqLgxztJ.js +0 -8
- package/dist/storybook/assets/title.stories-D0VjujmM.js +0 -37
- package/dist/storybook/assets/toaster-7wnI6hqB.js +0 -1
- package/dist/storybook/assets/toaster-DwLvOY18.css +0 -1
- package/dist/storybook/assets/toaster-O8ftrUAJ.js +0 -1
- package/dist/storybook/assets/toaster.stories-CdpwLBSo.js +0 -84
- package/dist/storybook/assets/toaster.test-case.stories-Cy3_Gvs_.js +0 -6
- package/dist/storybook/assets/toggle-BbFVf61v.js +0 -13
- package/dist/storybook/assets/toggle-yD7j1VSk.css +0 -1
- package/dist/storybook/assets/toggle.stories-BAislK3I.js +0 -106
- package/dist/storybook/assets/toggle.test-case.stories-CeUwdhGD.js +0 -36
- package/dist/storybook/assets/tooltip-1V7clEnw.js +0 -29
- package/dist/storybook/assets/tooltip-COvcX6J7.css +0 -1
- package/dist/storybook/assets/tooltip.stories-1YexWg6N.js +0 -17
- package/dist/storybook/assets/tooltip.test-case.stories-De9h8ThH.js +0 -5
- package/dist/storybook/assets/top-bar-Bjf6PQE1.js +0 -163
- package/dist/storybook/assets/top-bar-u7j8EgRd.css +0 -1
- package/dist/storybook/assets/top-bar.stories-1hZmlzDT.js +0 -21
- package/dist/storybook/assets/top-bar.testcase.stories-BsFYqaw6.js +0 -30
- package/dist/storybook/assets/tree-BTgu2lWb.css +0 -1
- package/dist/storybook/assets/tree.stories-NGZfmH_B.js +0 -181
- package/dist/storybook/assets/types-BmbYqTX_.js +0 -1
- package/dist/storybook/assets/types-Dx2TtIG9.js +0 -1
- package/dist/storybook/assets/unit-input-5P4Cogho.css +0 -1
- package/dist/storybook/assets/unit-input-CFaqZ7UG.js +0 -7
- package/dist/storybook/assets/unit-input.stories-DBuzpBTN.js +0 -203
- package/dist/storybook/assets/unit-input.test-case.stories-Dzx3BsjK.js +0 -223
- package/dist/storybook/assets/unit-table.stories-DwZVHcZo.js +0 -152
- package/dist/storybook/assets/unit-table.test-case.stories-C9Swzooe.js +0 -1
- package/dist/storybook/favicon.svg +0 -1
- package/dist/storybook/iframe.html +0 -639
- package/dist/storybook/index.html +0 -153
- package/dist/storybook/index.json +0 -1
- package/dist/storybook/nunito-sans-bold-italic.woff2 +0 -0
- package/dist/storybook/nunito-sans-bold.woff2 +0 -0
- package/dist/storybook/nunito-sans-italic.woff2 +0 -0
- package/dist/storybook/nunito-sans-regular.woff2 +0 -0
- package/dist/storybook/project.json +0 -1
- package/dist/storybook/sb-addons/actions-1/manager-bundle.js +0 -3
- package/dist/storybook/sb-addons/actions-1/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/storybook/sb-addons/interactions-2/manager-bundle.js +0 -234
- package/dist/storybook/sb-addons/interactions-2/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/storybook/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
- package/dist/storybook/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
- package/dist/storybook/sb-addons/storybook-dark-mode-esm-preset-3/manager-bundle.js +0 -5
- package/dist/storybook/sb-addons/storybook-dark-mode-esm-preset-3/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/storybook/sb-common-assets/favicon.svg +0 -1
- package/dist/storybook/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/dist/storybook/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/dist/storybook/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/dist/storybook/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/dist/storybook/sb-manager/globals-module-info.js +0 -995
- package/dist/storybook/sb-manager/globals-runtime.js +0 -53525
- package/dist/storybook/sb-manager/globals.js +0 -48
- package/dist/storybook/sb-manager/runtime.js +0 -11884
- package/dist/storybook/sb-preview/globals.js +0 -33
- package/dist/storybook/sb-preview/runtime.js +0 -9485
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-eps93zm2.js";import{useMDXComponents as r}from"./index-BcNHZKhG.js";import{Z as s,$ as n}from"./index-D6O8EiV-.js";import{NonExistentValue as a,Error as l}from"./select.stories-DjGSNDXK.js";import"./index-DhsZuJvc.js";import"./iframe-zFwPc0wJ.js";import"../sb-preview/runtime.js";import"./index-CUZDtIZe.js";import"./inheritsLoose-DP0QEDDI.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-D6rZ4wEC.js";import"./select-Cwks-WA0.js";import"./lodash-c4VUpsOs.js";import"./index-Bk2sglWO.js";import"./common-types-Sih75Sav.js";import"./disabled-context-rmpd7YJS.js";import"./types-Dx2TtIG9.js";import"./tooltip-1V7clEnw.js";import"./enum-Bnn40S8Q.js";import"./index-CEuq6vkz.js";import"./memoize-one.esm-CcMeOnPo.js";import"./types-BmbYqTX_.js";import"./text-B3-TSWok.js";import"./actions-Bax0KeqM.js";import"./button-Cbv7WK6k.js";import"./spinner-AWUe4xwQ.js";import"./icon-BSFY3vDO.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./badge-CLQ59MDF.js";import"./select.input-CJed_LLR.js";import"./helpers-JJxzGegQ.js";import"./spacer-BWoNR27H.js";import"./select.stories-data-DxgWKlU6.js";function o(t){const i={code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",strong:"strong",...r(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(s,{title:"Input Validation"}),`
|
|
2
|
-
`,e.jsx(i.h1,{id:"input-validation",children:"Input Validation"}),`
|
|
3
|
-
`,e.jsx(i.h2,{id:"select",children:"Select"}),`
|
|
4
|
-
`,e.jsx(i.h3,{id:"invalid-states",children:"Invalid states"}),`
|
|
5
|
-
`,e.jsxs(i.p,{children:["It's possible for a ",e.jsx(i.code,{children:"Select"})," input to be in an invalid state, where a value is explicitly set via the ",e.jsx(i.code,{children:"value"}),` prop,
|
|
6
|
-
but the option is not available for re-selection in the dropdown (i.e. not in the `,e.jsx(i.code,{children:"options"}),` prop). Some guidelines are
|
|
7
|
-
provided here to help.`]}),`
|
|
8
|
-
`,e.jsx(i.p,{children:e.jsx(i.strong,{children:"Avoid invalid values via the business logic"})}),`
|
|
9
|
-
`,e.jsx(i.p,{children:"It's best to prevent invalid values from happening, via the application business logic."}),`
|
|
10
|
-
`,e.jsx(i.p,{children:`If they can happen, handling them is a concern of the business layer. The UI framework is generally only responsible
|
|
11
|
-
for presentation.`}),`
|
|
12
|
-
`,e.jsx(i.p,{children:e.jsx(i.strong,{children:"Select will always display the value if it is explicitly set"})}),`
|
|
13
|
-
`,e.jsxs(i.p,{children:["If the ",e.jsx(i.code,{children:"value"})," prop is set, it will be displayed, even if it is not available for re-selection from the ",e.jsx(i.code,{children:"options"}),` prop.
|
|
14
|
-
The library does not hide or mask set values.`]}),`
|
|
15
|
-
`,e.jsx(i.p,{children:e.jsx(i.strong,{children:'"Soft invalid" values'})}),`
|
|
16
|
-
`,e.jsx(i.p,{children:`For a 'soft invalid' state, where the value is usable, but not available for re-reselection, the UI library automatically
|
|
17
|
-
adds a warning state with a tooltip message: "Value no longer available for re-selection". Technically, this should be
|
|
18
|
-
handled by the business logic, not the UI framework, but the behaviour exists for historical reasons.
|
|
19
|
-
In the future it may be optional (via a prop), or deprecated/removed, so it's better to handle it properly in the
|
|
20
|
-
application layer.`}),`
|
|
21
|
-
`,e.jsx(n,{of:a}),`
|
|
22
|
-
`,e.jsx(i.p,{children:e.jsx(i.strong,{children:'"Hard invalid" value'})}),`
|
|
23
|
-
`,e.jsxs(i.p,{children:[`For a 'hard invalid' state (where the value is unusable, but required), it is recommended for the business logic to not
|
|
24
|
-
set a value (use `,e.jsx(i.code,{children:"null"})," or ",e.jsx(i.code,{children:"undefined"}),"), and to set the ",e.jsx(i.code,{children:"error"}),` prop with an appropriate message
|
|
25
|
-
(e.g. "Value is required").`]}),`
|
|
26
|
-
`,e.jsx(n,{of:l})]})}function Z(t={}){const{wrapper:i}={...r(),...t.components};return i?e.jsx(i,{...t,children:e.jsx(o,{...t})}):o(t)}export{Z as default};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import{j as L}from"./jsx-runtime-eps93zm2.js";import{I}from"./input-Db9WkmPP.js";import"./index-DhsZuJvc.js";import"./index-Bk2sglWO.js";import"./disabled-context-rmpd7YJS.js";import"./types-Dx2TtIG9.js";import"./lodash-c4VUpsOs.js";import"./tooltip-1V7clEnw.js";import"./index-CUZDtIZe.js";const{useArgs:M}=__STORYBOOK_MODULE_PREVIEW_API__,B={title:"Forms/Input",component:I,args:{disabled:!1,small:!1,placeholder:"Placeholder"}},t=S=>{const[x,f]=M(),T=b=>{f({value:b.target.value})};return L.jsx(I,{...S,onChange:T})},s=t.bind({}),e=t.bind({});e.args={small:!0};const n=t.bind({});n.args={error:"Error goes here"};const r=t.bind({});r.args={warning:"Warning goes here"};const a=t.bind({});a.args={type:"date",value:"2020-01-01"};var o,g,u;s.parameters={...s.parameters,docs:{...(o=s.parameters)==null?void 0:o.docs,source:{originalSource:`args => {
|
|
2
|
-
const [_, updateArgs] = useArgs();
|
|
3
|
-
const handleChange = (evt: ChangeEvent<HTMLInputElement>) => {
|
|
4
|
-
updateArgs({
|
|
5
|
-
value: evt.target.value
|
|
6
|
-
});
|
|
7
|
-
};
|
|
8
|
-
return <Input {...args} onChange={handleChange} />;
|
|
9
|
-
}`,...(u=(g=s.parameters)==null?void 0:g.docs)==null?void 0:u.source}}};var p,c,l;e.parameters={...e.parameters,docs:{...(p=e.parameters)==null?void 0:p.docs,source:{originalSource:`args => {
|
|
10
|
-
const [_, updateArgs] = useArgs();
|
|
11
|
-
const handleChange = (evt: ChangeEvent<HTMLInputElement>) => {
|
|
12
|
-
updateArgs({
|
|
13
|
-
value: evt.target.value
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
return <Input {...args} onChange={handleChange} />;
|
|
17
|
-
}`,...(l=(c=e.parameters)==null?void 0:c.docs)==null?void 0:l.source}}};var d,m,h;n.parameters={...n.parameters,docs:{...(d=n.parameters)==null?void 0:d.docs,source:{originalSource:`args => {
|
|
18
|
-
const [_, updateArgs] = useArgs();
|
|
19
|
-
const handleChange = (evt: ChangeEvent<HTMLInputElement>) => {
|
|
20
|
-
updateArgs({
|
|
21
|
-
value: evt.target.value
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
return <Input {...args} onChange={handleChange} />;
|
|
25
|
-
}`,...(h=(m=n.parameters)==null?void 0:m.docs)==null?void 0:h.source}}};var i,v,C;r.parameters={...r.parameters,docs:{...(i=r.parameters)==null?void 0:i.docs,source:{originalSource:`args => {
|
|
26
|
-
const [_, updateArgs] = useArgs();
|
|
27
|
-
const handleChange = (evt: ChangeEvent<HTMLInputElement>) => {
|
|
28
|
-
updateArgs({
|
|
29
|
-
value: evt.target.value
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
return <Input {...args} onChange={handleChange} />;
|
|
33
|
-
}`,...(C=(v=r.parameters)==null?void 0:v.docs)==null?void 0:C.source}}};var A,E,_;a.parameters={...a.parameters,docs:{...(A=a.parameters)==null?void 0:A.docs,source:{originalSource:`args => {
|
|
34
|
-
const [_, updateArgs] = useArgs();
|
|
35
|
-
const handleChange = (evt: ChangeEvent<HTMLInputElement>) => {
|
|
36
|
-
updateArgs({
|
|
37
|
-
value: evt.target.value
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
return <Input {...args} onChange={handleChange} />;
|
|
41
|
-
}`,...(_=(E=a.parameters)==null?void 0:E.docs)==null?void 0:_.source}}};const F=["Default","Small","Error","Warning","Date"];export{a as Date,s as Default,n as Error,e as Small,r as Warning,F as __namedExportsOrder,B as default};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-eps93zm2.js";import{useMDXComponents as s}from"./index-BcNHZKhG.js";import{Z as r,$ as o}from"./index-D6O8EiV-.js";import{Default as l}from"./button.stories-C03VvX8K.js";import{Default as a}from"./check-box.stories-BJ0ShmeC.js";import{Default as c}from"./file-input.stories-DMTQqAF8.js";import{Default as d,Date as p}from"./input.stories-SJy3TKkD.js";import{Default as h}from"./number-input.stories-epjUq9ve.js";import{Default as m}from"./option-dropdown.stories-CznUbXVi.js";import{Default as u}from"./radio-button.stories-D1rWr6ms.js";import{Native as f,Default as x}from"./select.stories-DjGSNDXK.js";import{Default as j}from"./slider.stories-DuGie_AX.js";import{Default as b}from"./textarea.stories-CzsqRVpC.js";import{Default as g}from"./toggle.stories-BAislK3I.js";import"./index-DhsZuJvc.js";import"./iframe-zFwPc0wJ.js";import"../sb-preview/runtime.js";import"./index-CUZDtIZe.js";import"./inheritsLoose-DP0QEDDI.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-D6rZ4wEC.js";import"./react-router-dom-Ck2Y_Fzc.js";import"./index-CEuq6vkz.js";import"./tiny-invariant-DqLgxztJ.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./flex-EllkLxgO.js";import"./button-Cbv7WK6k.js";import"./index-Bk2sglWO.js";import"./common-types-Sih75Sav.js";import"./disabled-context-rmpd7YJS.js";import"./spinner-AWUe4xwQ.js";import"./icon-BSFY3vDO.js";import"./tooltip-1V7clEnw.js";import"./check-box-DPLaOkRR.js";import"./help-icon-Buhx5nl6.js";import"./file-input-yalPf7-m.js";import"./lodash-c4VUpsOs.js";import"./input-group-BaRSJAEN.js";import"./input-Db9WkmPP.js";import"./types-Dx2TtIG9.js";import"./spacer-BWoNR27H.js";import"./message-BRyKdRaX.js";import"./textarea-DflOOrxV.js";import"./index-C0x1JmaP.js";import"./index-DRSy5Ssd.js";import"./number-input-B3_gmeWr.js";import"./enum-Bnn40S8Q.js";import"./helpers-JJxzGegQ.js";import"./actions-Bax0KeqM.js";import"./types-BmbYqTX_.js";import"./badge-CLQ59MDF.js";import"./divider-DY9nJ_7N.js";import"./text-B3-TSWok.js";import"./radio-button-C4ljBRED.js";import"./select.input-CJed_LLR.js";import"./select-Cwks-WA0.js";import"./memoize-one.esm-CcMeOnPo.js";import"./select.stories-data-DxgWKlU6.js";import"./slider-DxaD8LU4.js";import"./objectSpread2-DW4nTBoq.js";import"./index-BI4_Bp97.js";import"./toggle-BbFVf61v.js";function i(n){const t={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",li:"li",p:"p",strong:"strong",ul:"ul",...s(),...n.components};return e.jsxs(e.Fragment,{children:[e.jsx(r,{title:"Inputs"}),`
|
|
2
|
-
`,e.jsx(t.h1,{id:"inputs",children:"Inputs"}),`
|
|
3
|
-
`,e.jsx(t.p,{children:"React UI Library provides a comprehensive set of user input components."}),`
|
|
4
|
-
`,e.jsx(t.h2,{id:"button",children:"Button"}),`
|
|
5
|
-
`,e.jsx(t.p,{children:"Use buttons when users need to invoke actions."}),`
|
|
6
|
-
`,e.jsx(o,{of:l}),`
|
|
7
|
-
`,e.jsx(t.p,{children:e.jsx(t.strong,{children:"Guidelines"})}),`
|
|
8
|
-
`,e.jsxs(t.ul,{children:[`
|
|
9
|
-
`,e.jsx(t.li,{children:"only the primary button on a page or view should normally be colored"}),`
|
|
10
|
-
`,e.jsx(t.li,{children:"all other buttons should use the default style (try to limit using different variants and colors of buttons)"}),`
|
|
11
|
-
`,e.jsx(t.li,{children:"for serious actions (e.g. permanently deleting records), use a red button"}),`
|
|
12
|
-
`]}),`
|
|
13
|
-
`,e.jsx(t.h2,{id:"input",children:"Input"}),`
|
|
14
|
-
`,e.jsxs(t.p,{children:["Use an ",e.jsx(t.code,{children:"Input"})," when users need to enter or edit single-line values."]}),`
|
|
15
|
-
`,e.jsx(o,{of:d}),`
|
|
16
|
-
`,e.jsx(t.h3,{id:"number-input",children:"Number Input"}),`
|
|
17
|
-
`,e.jsx(o,{of:h}),`
|
|
18
|
-
`,e.jsx(t.h3,{id:"date-input",children:"Date Input"}),`
|
|
19
|
-
`,e.jsx(o,{of:p}),`
|
|
20
|
-
`,e.jsx(t.h2,{id:"textarea",children:"TextArea"}),`
|
|
21
|
-
`,e.jsxs(t.p,{children:["Use a ",e.jsx(t.code,{children:"TextArea"})," when users need to enter or edit multiline text."]}),`
|
|
22
|
-
`,e.jsx(o,{of:b}),`
|
|
23
|
-
`,e.jsx(t.h2,{id:"select",children:"Select"}),`
|
|
24
|
-
`,e.jsxs(t.p,{children:["Use a ",e.jsx(t.code,{children:"Select"})," component when users need to choose from one or more values from a longer list of options (> 6 options)."]}),`
|
|
25
|
-
`,e.jsxs(t.p,{children:["React UI Library provides two different ",e.jsx(t.code,{children:"Select"})," components, through one unified interface."]}),`
|
|
26
|
-
`,e.jsx(t.h3,{id:"native-select",children:"Native Select"}),`
|
|
27
|
-
`,e.jsxs(t.p,{children:["Native ",e.jsx(t.code,{children:"Select"})," is a styled native browser ",e.jsx(t.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select",rel:"nofollow",children:"select input"}),`.
|
|
28
|
-
You enable it via the `,e.jsx(t.code,{children:"native"}),` prop. It's most useful for simple situations. Its advantages come from the browser
|
|
29
|
-
handling dropdown positioning, performance, and accessibility. Its drawbacks are limited features and styling
|
|
30
|
-
possibilities. A native `,e.jsx(t.code,{children:"Select"})," looks like this:"]}),`
|
|
31
|
-
`,e.jsx(o,{of:f}),`
|
|
32
|
-
`,e.jsx(t.h3,{id:"custom-select",children:"Custom Select"}),`
|
|
33
|
-
`,e.jsxs(t.p,{children:["Custom ",e.jsx(t.code,{children:"Select"}),` is a full implementation of a select component as a custom React component. It covers many additional
|
|
34
|
-
features not offered by native select inputs, such as filtering and multi-select. Its drawbacks are that positioning and
|
|
35
|
-
accessibility are not handled out-the-box by the browser, requiring custom code internally within the component. The
|
|
36
|
-
custom `,e.jsx(t.code,{children:"Select"})," in GUI Library uses ",e.jsx(t.a,{href:"https://www.react-laag.com/",rel:"nofollow",children:"react-laag"})," as a positioning engine."]}),`
|
|
37
|
-
`,e.jsx(o,{of:x}),`
|
|
38
|
-
`,e.jsx(t.h2,{id:"radiobutton",children:"RadioButton"}),`
|
|
39
|
-
`,e.jsxs(t.p,{children:["Use a ",e.jsx(t.code,{children:"RadioButton"}),` group when users need to choose a single value from a short list of options (< 6 options). They are
|
|
40
|
-
suitable for related but mutually exclusive choices.`]}),`
|
|
41
|
-
`,e.jsx(o,{of:u}),`
|
|
42
|
-
`,e.jsx(t.h2,{id:"checkbox",children:"CheckBox"}),`
|
|
43
|
-
`,e.jsxs(t.p,{children:["Use a ",e.jsx(t.code,{children:"CheckBox"}),` when users need to select between opposite states (switching a binary value on or off). A CheckBox
|
|
44
|
-
should have a label prop which makes the opposite states clear.`]}),`
|
|
45
|
-
`,e.jsx(o,{of:a}),`
|
|
46
|
-
`,e.jsx(t.p,{children:`You can also use a group of checkboxes when users need to select multiple values from a short list of options
|
|
47
|
-
(< 6 options).`}),`
|
|
48
|
-
`,e.jsx(t.h2,{id:"optiondropdown",children:"OptionDropdown"}),`
|
|
49
|
-
`,e.jsxs(t.p,{children:["For a larger number of ",e.jsx(t.code,{children:"CheckBox"})," options and where space is limited, there's a convenience component called ",e.jsx(t.code,{children:"OptionDropdown"}),`,
|
|
50
|
-
which allows selecting a multiple values, by presenting them in a dropdown, with an easy way to select all or clear.`]}),`
|
|
51
|
-
`,e.jsx(o,{of:m}),`
|
|
52
|
-
`,e.jsx(t.h2,{id:"toggle",children:"Toggle"}),`
|
|
53
|
-
`,e.jsxs(t.p,{children:["A ",e.jsx(t.code,{children:"Toggle"})," is just an alternative variant to a ",e.jsx(t.code,{children:"CheckBox"})," and has the same use-case (switching a binary value on or off)."]}),`
|
|
54
|
-
`,e.jsx(o,{of:g}),`
|
|
55
|
-
`,e.jsx(t.h2,{id:"slider",children:"Slider"}),`
|
|
56
|
-
`,e.jsxs(t.p,{children:["A ",e.jsx(t.code,{children:"Slider"}),` helps a user to select a numerical value between two endpoints. It can be more convenient than typing values,
|
|
57
|
-
particularly on touch devices.`]}),`
|
|
58
|
-
`,e.jsxs(t.p,{children:["A ",e.jsx(t.code,{children:"Slider"})," can also be used to set a range of values (start and end points)."]}),`
|
|
59
|
-
`,e.jsx(o,{of:j}),`
|
|
60
|
-
`,e.jsx(t.h2,{id:"file-input",children:"File Input"}),`
|
|
61
|
-
`,e.jsxs(t.p,{children:["Use a ",e.jsx(t.code,{children:"FileInput"})," when a user needs to upload a file. The ",e.jsx(t.code,{children:"accept"})," prop allows you to restrict the accepted file types."]}),`
|
|
62
|
-
`,e.jsx(o,{of:c})]})}function Ue(n={}){const{wrapper:t}={...s(),...n.components};return t?e.jsx(t,{...n,children:e.jsx(i,{...n})}):i(n)}export{Ue as default};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{r as u}from"./index-DhsZuJvc.js";var i={exports:{}},t={};/** @license React v17.0.2
|
|
2
|
-
* react-jsx-runtime.production.min.js
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/var a=u,l=60103;t.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var _=Symbol.for;l=_("react.element"),t.Fragment=_("react.fragment")}var y=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function m(o,r,p){var e,n={},f=null,s=null;p!==void 0&&(f=""+p),r.key!==void 0&&(f=""+r.key),r.ref!==void 0&&(s=r.ref);for(e in r)v.call(r,e)&&!x.hasOwnProperty(e)&&(n[e]=r[e]);if(o&&o.defaultProps)for(e in r=o.defaultProps,r)n[e]===void 0&&(n[e]=r[e]);return{$$typeof:l,type:o,key:f,ref:s,props:n,_owner:y.current}}t.jsx=m;t.jsxs=m;i.exports=t;var d=i.exports;export{d as j};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._label_18pfe_1{display:flex;align-items:center}._label_18pfe_1._labelLeft_18pfe_5{margin-bottom:0;flex-shrink:0;padding-right:var(--padding-xs)}._label_18pfe_1._labelLeft_18pfe_5>label{margin-bottom:0}._label_18pfe_1 ._icons_18pfe_13{display:inline-flex}._label_18pfe_1 ._icons_18pfe_13>*{margin-left:var(--padding-xxs)}._label_18pfe_1>label{display:flex;align-items:center;font-weight:700;font-size:var(--font-size);margin-bottom:var(--padding-xxs);line-height:1.25}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./jsx-runtime-eps93zm2.js";import{c as p}from"./index-Bk2sglWO.js";import{I as a}from"./common-types-Sih75Sav.js";import{H as s}from"./help-icon-Buhx5nl6.js";const f="_label_18pfe_1",v="_labelLeft_18pfe_5",b="_icons_18pfe_13",l={label:f,labelLeft:v,icons:b},x=({label:r=null,width:m="auto",helpText:i="",helpTextMaxWidth:d="300px",onClickHelp:o=void 0,lock:e={visible:!1,active:!1,onClick:()=>{},tooltip:"",testId:void 0},info:u,libraryIcon:t,labelLeft:c=!1})=>n.jsx("div",{className:p(l.label,c?l.labelLeft:""),children:n.jsxs("label",{style:{width:m||""},children:[r,n.jsxs("div",{className:l.icons,children:[(i||o)&&n.jsx(s,{text:i,onClick:o,maxWidth:d}),u&&n.jsx(s,{text:u,icon:a.INFO}),e&&e.visible&&e.onClick&&n.jsx(s,{onClick:e.onClick,icon:e.active?a.LOCK:a.UNLOCK,active:e.active,testId:e.testId}),t&&n.jsx(s,{text:(t==null?void 0:t.tooltip)??"",onClick:t.onClick,icon:a.LIBRARY})]})]})});x.__docgenInfo={description:"",methods:[],displayName:"Label",props:{label:{required:!1,tsType:{name:"union",raw:"TStringNumberNull | ReactNode",elements:[{name:"union",raw:"string | number | null",elements:[{name:"string"},{name:"number"},{name:"null"}]},{name:"ReactNode"}]},description:"",defaultValue:{value:"null",computed:!1}},helpText:{required:!1,tsType:{name:"union",raw:"TStringOrNumber | ReactNode",elements:[{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]},{name:"ReactNode"}]},description:"",defaultValue:{value:"''",computed:!1}},helpTextMaxWidth:{required:!1,tsType:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]},description:"",defaultValue:{value:"'300px'",computed:!1}},width:{required:!1,tsType:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]},description:"",defaultValue:{value:"'auto'",computed:!1}},info:{required:!1,tsType:{name:"string"},description:""},onClickHelp:{required:!1,tsType:{name:"signature",type:"function",raw:"(event?: MouseEvent<HTMLDivElement>) => void",signature:{arguments:[{type:{name:"MouseEvent",elements:[{name:"HTMLDivElement"}],raw:"MouseEvent<HTMLDivElement>"},name:"event"}],return:{name:"void"}}},description:"",defaultValue:{value:"undefined",computed:!0}},lock:{required:!1,tsType:{name:"ILabelLockProps"},description:"",defaultValue:{value:`{
|
|
2
|
-
visible: false,
|
|
3
|
-
active: false,
|
|
4
|
-
onClick: () => {},
|
|
5
|
-
tooltip: '',
|
|
6
|
-
testId: undefined,
|
|
7
|
-
}`,computed:!1}},libraryIcon:{required:!1,tsType:{name:"ILabelIcon"},description:""},labelLeft:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}}}};export{x as L};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{j as P}from"./jsx-runtime-eps93zm2.js";import{r as v}from"./index-DhsZuJvc.js";import{L as p}from"./label-CqmyC9he.js";import"./index-Bk2sglWO.js";import"./common-types-Sih75Sav.js";import"./help-icon-Buhx5nl6.js";import"./tooltip-1V7clEnw.js";import"./index-CUZDtIZe.js";import"./icon-BSFY3vDO.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./inheritsLoose-DP0QEDDI.js";import"./index-CEuq6vkz.js";import"./disabled-context-rmpd7YJS.js";const G={title:"Forms/Label",component:p,args:{label:"Label"}},c=e=>P.jsx(p,{...e}),l=c.bind({}),o=c.bind({});o.args={helpText:"Tooltip goes here"};const r=c.bind({});r.args={onClickHelp:()=>{}};const s=c.bind({});s.args={info:"Info goes here"};const a=()=>{const[e,_]=v.useState(!1),j=()=>_(!e);return P.jsx(p,{label:"Label",lock:{visible:!0,active:e,onClick:j,tooltip:e?"Unlock":"Lock",testId:"testId"}})},t=c.bind({});t.args={libraryIcon:{onClick:()=>{},tooltip:"View in library"}};a.__docgenInfo={description:"",methods:[],displayName:"LockIcon"};var i,n,m;l.parameters={...l.parameters,docs:{...(i=l.parameters)==null?void 0:i.docs,source:{originalSource:"(args: ILabelProps) => <Label {...args} />",...(m=(n=l.parameters)==null?void 0:n.docs)==null?void 0:m.source}}};var d,b,g;o.parameters={...o.parameters,docs:{...(d=o.parameters)==null?void 0:d.docs,source:{originalSource:"(args: ILabelProps) => <Label {...args} />",...(g=(b=o.parameters)==null?void 0:b.docs)==null?void 0:g.source}}};var L,u,k;r.parameters={...r.parameters,docs:{...(L=r.parameters)==null?void 0:L.docs,source:{originalSource:"(args: ILabelProps) => <Label {...args} />",...(k=(u=r.parameters)==null?void 0:u.docs)==null?void 0:k.source}}};var I,f,x;s.parameters={...s.parameters,docs:{...(I=s.parameters)==null?void 0:I.docs,source:{originalSource:"(args: ILabelProps) => <Label {...args} />",...(x=(f=s.parameters)==null?void 0:f.docs)==null?void 0:x.source}}};var S,T,h;a.parameters={...a.parameters,docs:{...(S=a.parameters)==null?void 0:S.docs,source:{originalSource:`() => {
|
|
2
|
-
const [locked, setLocked] = useState(false);
|
|
3
|
-
const handleToggleLock = () => setLocked(!locked);
|
|
4
|
-
return <Label label="Label" lock={{
|
|
5
|
-
visible: true,
|
|
6
|
-
active: locked,
|
|
7
|
-
onClick: handleToggleLock,
|
|
8
|
-
tooltip: locked ? 'Unlock' : 'Lock',
|
|
9
|
-
testId: 'testId'
|
|
10
|
-
}} />;
|
|
11
|
-
}`,...(h=(T=a.parameters)==null?void 0:T.docs)==null?void 0:h.source}}};var C,y,H;t.parameters={...t.parameters,docs:{...(C=t.parameters)==null?void 0:C.docs,source:{originalSource:"(args: ILabelProps) => <Label {...args} />",...(H=(y=t.parameters)==null?void 0:y.docs)==null?void 0:H.source}}};const J=["Default","HelpIconTooltip","HelpIconClickable","InfoIcon","LockIcon","LibraryIcon"];export{l as Default,r as HelpIconClickable,o as HelpIconTooltip,s as InfoIcon,t as LibraryIcon,a as LockIcon,J as __namedExportsOrder,G as default};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./jsx-runtime-eps93zm2.js";import{useMDXComponents as n}from"./index-BcNHZKhG.js";import{Z as s,$ as o}from"./index-D6O8EiV-.js";import{Default as p,LabelOnLeft as m}from"./field.stories-CYpQ669-.js";import{Default as l,LabelsOnLeft as a,Row as h}from"./form.stories-Cr5Pz40F.js";import"./index-DhsZuJvc.js";import"./iframe-zFwPc0wJ.js";import"../sb-preview/runtime.js";import"./index-CUZDtIZe.js";import"./inheritsLoose-DP0QEDDI.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-D6rZ4wEC.js";import"./field-HrLaMLbx.js";import"./index-Bk2sglWO.js";import"./label-CqmyC9he.js";import"./common-types-Sih75Sav.js";import"./help-icon-Buhx5nl6.js";import"./tooltip-1V7clEnw.js";import"./icon-BSFY3vDO.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index-CEuq6vkz.js";import"./disabled-context-rmpd7YJS.js";import"./input-Db9WkmPP.js";import"./types-Dx2TtIG9.js";import"./lodash-c4VUpsOs.js";import"./text-B3-TSWok.js";import"./select-Cwks-WA0.js";import"./enum-Bnn40S8Q.js";import"./memoize-one.esm-CcMeOnPo.js";import"./types-BmbYqTX_.js";import"./actions-Bax0KeqM.js";import"./button-Cbv7WK6k.js";import"./spinner-AWUe4xwQ.js";import"./badge-CLQ59MDF.js";import"./select.input-CJed_LLR.js";import"./helpers-JJxzGegQ.js";import"./check-box-DPLaOkRR.js";import"./button-group-D2fGP_bX.js";import"./toggle-BbFVf61v.js";import"./input-group-BaRSJAEN.js";import"./input-group-addon-D68iUKV2.js";import"./slider-DxaD8LU4.js";import"./objectSpread2-DW4nTBoq.js";import"./index-BI4_Bp97.js";import"./textarea-DflOOrxV.js";import"./radio-button-C4ljBRED.js";import"./form-row-CM112EYF.js";function r(i){const e={code:"code",h1:"h1",h2:"h2",p:"p",...n(),...i.components};return t.jsxs(t.Fragment,{children:[t.jsx(s,{title:"Layout (Forms)"}),`
|
|
2
|
-
`,t.jsx(e.h1,{id:"layout-forms",children:"Layout (Forms)"}),`
|
|
3
|
-
`,t.jsx(e.h2,{id:"field",children:"Field"}),`
|
|
4
|
-
`,t.jsxs(e.p,{children:["This is a wrapper for any form element with default bottom margin, and props like ",t.jsx(e.code,{children:"label"})," for other default styling."]}),`
|
|
5
|
-
`,t.jsx(o,{of:p}),`
|
|
6
|
-
`,t.jsxs(e.p,{children:["For inline labels, use the ",t.jsx(e.code,{children:"labelLeft"})," prop (and the optional ",t.jsx(e.code,{children:"labelWidth"}),")."]}),`
|
|
7
|
-
`,t.jsx(o,{of:m}),`
|
|
8
|
-
`,t.jsx(e.h2,{id:"stacked",children:"Stacked"}),`
|
|
9
|
-
`,t.jsxs(e.p,{children:["This is the simplest form layout, and works well when horizontal space is limited, or inputs vary in height (e.g. ",t.jsx(e.code,{children:"TextArea"}),")."]}),`
|
|
10
|
-
`,t.jsx(o,{of:l}),`
|
|
11
|
-
`,t.jsx(e.h2,{id:"stacked-with-inline-labels",children:"Stacked with inline labels"}),`
|
|
12
|
-
`,t.jsxs(e.p,{children:["This has the same markup, but with ",t.jsx(e.code,{children:"labelLeft"})," and ",t.jsx(e.code,{children:"labelWidth"})," set on each field."]}),`
|
|
13
|
-
`,t.jsx(o,{of:a}),`
|
|
14
|
-
`,t.jsx(e.h2,{id:"row",children:"Row"}),`
|
|
15
|
-
`,t.jsxs(e.p,{children:["Wrapping a group of form controls in ",t.jsx(e.code,{children:"FormRow"})," arranges them horizontally, and applies default spacing between each item. This works well when vertical space is limited, because inputs will only wrap onto the next line when they need to."]}),`
|
|
16
|
-
`,t.jsx(o,{of:h})]})}function nt(i={}){const{wrapper:e}={...n(),...i.components};return e?t.jsx(e,{...i,children:t.jsx(r,{...i})}):r(i)}export{nt as default};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-eps93zm2.js";import{useMDXComponents as s}from"./index-BcNHZKhG.js";import{Z as r,$ as n}from"./index-D6O8EiV-.js";import{Center as d,SpaceBetween as l,JustifyEnd as a,Column as c}from"./flex.stories-CLwPyEMp.js";import{Default as h,CustomColumnWidth as p,DefaultGap as x,CustomGap as m,Responsive as u}from"./grid.stories-DqjhHHwX.js";import{Default as j,FixedWidth as f,NoPadding as w,ResponsiveWidth as g}from"./column.stories-DDTHFELF.js";import"./index-DhsZuJvc.js";import"./iframe-zFwPc0wJ.js";import"../sb-preview/runtime.js";import"./index-CUZDtIZe.js";import"./inheritsLoose-DP0QEDDI.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-D6rZ4wEC.js";import"./flex-EllkLxgO.js";import"./button-Cbv7WK6k.js";import"./index-Bk2sglWO.js";import"./common-types-Sih75Sav.js";import"./disabled-context-rmpd7YJS.js";import"./spinner-AWUe4xwQ.js";import"./icon-BSFY3vDO.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index-CEuq6vkz.js";import"./tooltip-1V7clEnw.js";import"./text-B3-TSWok.js";import"./grid-DRkC-bt8.js";import"./styled-components.browser.esm-BQ9GQzDc.js";import"./card-EcjmryU9.js";import"./row-Bmiy2Lh0.js";import"./heading-CRNoBc7q.js";import"./help-icon-Buhx5nl6.js";function t(i){const o={code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",...s(),...i.components};return e.jsxs(e.Fragment,{children:[e.jsx(r,{title:"Layout (General)"}),`
|
|
2
|
-
`,e.jsx(o.h1,{id:"layout-general",children:"Layout (General)"}),`
|
|
3
|
-
`,e.jsx(o.h2,{id:"flex",children:"Flex"}),`
|
|
4
|
-
`,e.jsxs(o.p,{children:["The ",e.jsx(o.code,{children:"Flex"})," component is a basic flexbox wrapper with optional props for ",e.jsx(o.code,{children:"alignItems"}),", ",e.jsx(o.code,{children:"justifyContent"})," and ",e.jsx(o.code,{children:"flexDirection"}),". This is a conveninent way to center items vertically and/or horizontally, to align them to opposite edges, or align them to the far side."]}),`
|
|
5
|
-
`,e.jsx(o.p,{children:"This is best for situations for more fluid layouts, because the children set their own width."}),`
|
|
6
|
-
`,e.jsx(n,{of:d}),`
|
|
7
|
-
`,e.jsx(n,{of:l}),`
|
|
8
|
-
`,e.jsx(n,{of:a}),`
|
|
9
|
-
`,e.jsx(n,{of:c}),`
|
|
10
|
-
`,e.jsx(o.h2,{id:"grid",children:"Grid"}),`
|
|
11
|
-
`,e.jsxs(o.p,{children:["Similar to ",e.jsx(o.code,{children:"Flex"}),", the ",e.jsx(o.code,{children:"Grid"})," component is a conveninence wrapper for grid CSS. This is best for situations where the layout is predictable and static (i.e. you know how many columns there will be and how wide you want each to be)."]}),`
|
|
12
|
-
`,e.jsx(n,{of:h}),`
|
|
13
|
-
`,e.jsx(n,{of:p}),`
|
|
14
|
-
`,e.jsx(o.h3,{id:"gap",children:"Gap"}),`
|
|
15
|
-
`,e.jsxs(o.p,{children:["Use the ",e.jsx(o.code,{children:"gap"})," prop to set spacing between grid items. You can set to the spacing you need, or omit the value for default spacing."]}),`
|
|
16
|
-
`,e.jsx(n,{of:x}),`
|
|
17
|
-
`,e.jsx(n,{of:m}),`
|
|
18
|
-
`,e.jsx(o.h3,{id:"responsive-grid",children:"Responsive grid"}),`
|
|
19
|
-
`,e.jsxs(o.p,{children:["To change the layout on smaller devices, you can set props for ",e.jsx(o.code,{children:"columnsTablet"})," (up to 992px wide) and/or ",e.jsx(o.code,{children:"columnsMobile"})," (up to 575px wide)."]}),`
|
|
20
|
-
`,e.jsx(n,{of:u}),`
|
|
21
|
-
`,e.jsx(o.h2,{id:"rows--columns",children:"Rows & Columns"}),`
|
|
22
|
-
`,e.jsxs(o.p,{children:[e.jsx(o.code,{children:"Row"})," and ",e.jsx(o.code,{children:"Column"})," are a more opinionated flexbox layout, best used together for top-level layouts that require separate scrolling areas. For most layout needs it would be better to use something simpler like ",e.jsx(o.code,{children:"Flex"})," or ",e.jsx(o.code,{children:"Grid"}),"."]}),`
|
|
23
|
-
`,e.jsx(o.h3,{id:"default",children:"Default"}),`
|
|
24
|
-
`,e.jsxs(o.p,{children:["Each ",e.jsx(o.code,{children:"Column"})," shares the available width of its ",e.jsx(o.code,{children:"Row"}),"."]}),`
|
|
25
|
-
`,e.jsx(n,{of:j}),`
|
|
26
|
-
`,e.jsx(o.h3,{id:"fixed-width",children:"Fixed width"}),`
|
|
27
|
-
`,e.jsxs(o.p,{children:["You can set a fixed or percentage ",e.jsx(o.code,{children:"width"})," on a ",e.jsx(o.code,{children:"Column"}),", and any others will share the remaining space."]}),`
|
|
28
|
-
`,e.jsx(n,{of:f}),`
|
|
29
|
-
`,e.jsx(o.h3,{id:"padding--spacing",children:"Padding & spacing"}),`
|
|
30
|
-
`,e.jsxs(o.p,{children:["There is ",e.jsx(o.code,{children:"spacing"})," between each ",e.jsx(o.code,{children:"Column"})," by default. You can set different ",e.jsx(o.code,{children:"spacing"}),", or remove it entirely if you want them to be flush."]}),`
|
|
31
|
-
`,e.jsxs(o.p,{children:["There is no ",e.jsx(o.code,{children:"padding"})," inside a ",e.jsx(o.code,{children:"Column"})," by default. You can add the ",e.jsx(o.code,{children:"padding"})," prop on its own for standard padding, or set it to what you need."]}),`
|
|
32
|
-
`,e.jsx(n,{of:w}),`
|
|
33
|
-
`,e.jsx(o.h3,{id:"responsive",children:"Responsive"}),`
|
|
34
|
-
`,e.jsxs(o.p,{children:["To change the layout on smaller devices, you can set props for ",e.jsx(o.code,{children:"widthTablet"})," (up to 992px wide) and/or ",e.jsx(o.code,{children:"widthMobile"})," (up to 575px wide)."]}),`
|
|
35
|
-
`,e.jsx(n,{of:g})]})}function K(i={}){const{wrapper:o}={...s(),...i.components};return o?e.jsx(o,{...i,children:e.jsx(t,{...i})}):t(i)}export{K as default};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-eps93zm2.js";import{r as i}from"./index-DhsZuJvc.js";import{c as S}from"./index-Bk2sglWO.js";import{P as ee,D as ne,C as ae,I as te}from"./index.es-DazXb-ul.js";import{C as re}from"./card-EcjmryU9.js";import{l as t,N as se,M as le,L as oe}from"./meta-content-DNgQbAW0.js";import{I as _}from"./common-types-Sih75Sav.js";import{D as M}from"./disabled-context-rmpd7YJS.js";import{A as R}from"./actions-Bax0KeqM.js";import{B as O}from"./badge-CLQ59MDF.js";import{I as w}from"./icon-BSFY3vDO.js";import{L as ie}from"./loader-XHoVniao.js";const P=({label:n})=>n?e.jsx("span",{className:t.label,children:e.jsx(O,{color:n.color,title:n.value,small:n.small})}):null;P.__docgenInfo={description:"",methods:[],displayName:"Label",props:{label:{required:!1,tsType:{name:"ILabel"},description:""}}};const k=({item:n})=>n.metaCount!==void 0?e.jsx(O,{color:"rgba(0,0,0,0.25)",title:n.metaCount}):null;k.__docgenInfo={description:"",methods:[],displayName:"MetaCount",props:{item:{required:!0,tsType:{name:"signature",type:"object",raw:`{
|
|
2
|
-
metaCount?: number;
|
|
3
|
-
}`,signature:{properties:[{key:"metaCount",value:{name:"number",required:!1}}]}},description:""}}};const B=({item:n,expanding:o})=>{const c=d=>{d.preventDefault(),d.stopPropagation()};return o&&n.active&&n.content?e.jsx("div",{className:t.itemContent,onClick:c,children:n.content}):null};B.__docgenInfo={description:"",methods:[],displayName:"ItemContent",props:{item:{required:!0,tsType:{name:"signature",type:"object",raw:`{
|
|
4
|
-
active?: boolean;
|
|
5
|
-
content?: ReactNode;
|
|
6
|
-
}`,signature:{properties:[{key:"active",value:{name:"boolean",required:!1}},{key:"content",value:{name:"ReactNode",required:!1}}]}},description:""},expanding:{required:!1,tsType:{name:"boolean"},description:""}}};const G=i.forwardRef(({item:n,index:o},c)=>{const d=i.useContext(M),{actions:j,disabled:u,expanded:g,onClick:b,title:r,name:l,icon:a,testId:m}=n;return e.jsx("div",{ref:f=>{c&&"current"in c&&Array.isArray(c.current)&&o!==void 0&&(c.current[o]=f)},"data-testid":m??null,className:S(t.item,t.heading,u||d?t.disabled:"",b?t.action:""),onClick:f=>{b&&b(f)},title:r,children:e.jsx("div",{children:e.jsxs("div",{className:t.itemHeader,children:[typeof g=="boolean"&&e.jsx("div",{className:S(t.expandIcon,g&&t.expanded),children:e.jsx(w,{icon:_.CHEVRON_RIGHT})}),e.jsx(se,{name:l,icon:a}),e.jsxs("div",{className:t.right,children:[e.jsx(k,{item:n}),!(u||d)&&j&&e.jsx("div",{className:t.actions,children:e.jsx(R,{actions:n.actions??[]})})]})]})})})});G.__docgenInfo={description:"",methods:[],displayName:"ListSubheading"};const ce=(n,o)=>n?{cursor:o.cursor?o.cursor:"",...n.style}:null,V=i.forwardRef(({items:n,expanding:o,invokeEditOnRowClick:c,provided:d,draggable:j},u)=>{const g=i.useContext(M),b=(r,l,a,m,f,h)=>{const x=a.component||"a";return i.createElement(x,{href:a.url,to:a.url,ref:l==null?void 0:l.innerRef,...l.draggableProps,style:ce(l.draggableProps,a),className:S(t.item,a.active?t.active:"",a.disabled||g?t.disabled:"",f?t.action:""),onClick:p=>{if(c&&h&&h.onClick&&h.onClick(p,a.id),a.onClick)return a.onClick(p)},key:r,"data-id":r,title:a.title,"data-testid":a.testId},e.jsxs("div",{ref:p=>{u&&"current"in u&&Array.isArray(u.current)&&r!==void 0&&(u.current[r]=p)},style:{paddingLeft:m},children:[e.jsxs("div",{className:t.itemHeader,children:[j&&e.jsx("div",{className:t.drag,...l.dragHandleProps,children:e.jsx(w,{icon:_.DRAG})}),a.level&&a.level>0?e.jsx("div",{className:t.indentIcon,children:e.jsx(w,{icon:_.INDENT})}):null,e.jsx(P,{label:a.label}),e.jsx(le,{item:a}),e.jsxs("div",{className:t.right,children:[e.jsx(k,{item:a}),!(a.disabled||g)&&a.actions&&e.jsx("div",{className:t.actions,children:e.jsx(R,{actions:a.actions})})]})]}),e.jsx(B,{item:a,expanding:o})]}))};return e.jsxs(e.Fragment,{children:[n.map((r,l)=>{const a=r.type==="Heading",m=r.actions&&r.actions.find(x=>{var p;return x.label&&((p=String(x.label))==null?void 0:p.toLowerCase())==="edit"}),f=!!(m||r.url||r.onClick),h=r.level&&r.level>1?(r.level-1)*20:0;return a?e.jsx(G,{ref:u,item:r,index:l},l):j?e.jsx(ee,{draggableId:r.id+"",index:l,children:x=>b(l,x,r,h,f,m)},r.id):b(l,d,r,h,f,m)}),d.placeholder]})});V.__docgenInfo={description:"",methods:[],displayName:"ListRow"};const de=({list:n,bordered:o=!1,expanding:c=!1,narrow:d=!1,toggleNarrow:j=!1,onToggleNarrow:u=()=>{},invokeEditOnRowClick:g=!0,noHeader:b=!1,stickyHeader:r,draggable:l=!1,onListReorder:a=()=>{},marginBottom:m=0,height:f,testId:h,scrollDetails:x={scrollable:!1,hideScrollbar:!1,triggerScrollToActiveItem:!1,infiniteScroll:!1,limit:10,infiniteScrollTarget:void 0}})=>{const{scrollable:p,hideScrollbar:F,triggerScrollToActiveItem:L,infiniteScroll:E,infiniteScrollTarget:z}=x,T=i.useRef(null),v=i.useRef([]),I=i.useRef(null),A=E?Math.ceil(window.innerHeight/44):n.items.length,[C,J]=i.useState(A),[K,Q]=i.useState(C<(n==null?void 0:n.items.length));i.useEffect(()=>{v.current=v.current.slice(0,n.items.length)},[n.items.length]);const U=()=>{if(C>=n.items.length){Q(!1);return}const s=A+C;J(s)},W=s=>s.findIndex(y=>y.active===!0),X=s=>{if(!I.current||!T.current)return;const y=1;if(L&&s>=0){const D=v.current.reduce((H,Z,$)=>$<s?H+Z.clientHeight+y:H,0),q=I.current.clientHeight/2-v.current[s].clientHeight/2,N=D-q;if(r){const H=T.current.clientHeight/2;I.current.scrollTop=N+H}const Y=T.current.clientHeight;I.current.scrollTop=N+Y}};return i.useEffect(()=>{if(L){const s=W(n==null?void 0:n.items);X(s)}},[I.current,T.current,L]),e.jsx(ne,{onDragEnd:s=>{var q,N;const y=(q=s==null?void 0:s.source)==null?void 0:q.index,D=(N=s==null?void 0:s.destination)==null?void 0:N.index;a({from:y,to:D})},children:e.jsx(ae,{droppableId:"droppable",children:(s,y)=>e.jsx("div",{className:S(d?t.narrow:"",p?t.scrollableList:"",F?t.hideScrollbar:""),"data-testid":h,id:"scrollableDiv",style:{height:f,marginBottom:m},ref:I,children:e.jsx("div",{ref:s.innerRef,...s.droppableProps,children:e.jsxs(re,{bordered:o,padding:!1,children:[!b&&e.jsx(oe,{name:n.name,actions:n.actions,toggleNarrow:j,onToggleNarrow:u,stickyHeader:r,ref:T}),e.jsx("div",{className:S(t.list,o?t.bordered:""),children:E?e.jsx(te,{dataLength:C,next:U,hasMore:K,scrollableTarget:z||"scrollableDiv",loader:e.jsx(ie,{}),className:t.infiniteScrollContainer,children:e.jsx(V,{draggable:l,items:n.items.slice(0,C),expanding:c,invokeEditOnRowClick:g,onListReorder:a,provided:s,snapshot:y,ref:v})}):e.jsx(V,{draggable:l,items:n.items,expanding:c,invokeEditOnRowClick:g,onListReorder:a,provided:s,snapshot:y,ref:v})})]})})})})})};de.__docgenInfo={description:"",methods:[],displayName:"List",props:{drawer:{required:!1,tsType:{name:"boolean"},description:""},list:{required:!0,tsType:{name:"IListData"},description:""},bordered:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},expanding:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},narrow:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},toggleNarrow:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},onToggleNarrow:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"",defaultValue:{value:"() => {}",computed:!1}},invokeEditOnRowClick:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}},noHeader:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},stickyHeader:{required:!1,tsType:{name:"boolean"},description:""},draggable:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},onListReorder:{required:!1,tsType:{name:"signature",type:"function",raw:"(args: IReorderData) => void",signature:{arguments:[{type:{name:"IReorderData"},name:"args"}],return:{name:"void"}}},description:"",defaultValue:{value:"() => {}",computed:!1}},marginBottom:{required:!1,tsType:{name:"union",raw:"number | string",elements:[{name:"number"},{name:"string"}]},description:"",defaultValue:{value:"0",computed:!1}},height:{required:!1,tsType:{name:"union",raw:"number | string",elements:[{name:"number"},{name:"string"}]},description:""},testId:{required:!1,tsType:{name:"string"},description:""},scrollDetails:{required:!1,tsType:{name:"IScrollDetails"},description:"",defaultValue:{value:`{
|
|
7
|
-
scrollable: false,
|
|
8
|
-
hideScrollbar: false,
|
|
9
|
-
triggerScrollToActiveItem: false,
|
|
10
|
-
infiniteScroll: false,
|
|
11
|
-
limit: 10,
|
|
12
|
-
infiniteScrollTarget: undefined,
|
|
13
|
-
}`,computed:!1}}}};export{de as L,G as a};
|