@oliasoft-open-source/react-ui-library 4.12.3 → 4.12.4-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/dist/404.html +0 -1
- package/dist/assets/bg-rock-D_kpA0sy.jpg +0 -0
- package/dist/assets/index-CPEB8SXA.css +0 -8859
- package/dist/assets/index-qClThfBd.js +0 -76217
- package/dist/assets/noto-sans-cyrillic-400-italic-BY-huaZy.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-400-italic-V6PUkjg4.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-400-normal--jh3sVvp.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-400-normal-XY9qUppk.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-700-italic-BsvNKSfQ.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-700-italic-DSFghSMx.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-700-normal-8ZAWbjJL.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-700-normal-CTzjhoZt.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-400-italic-Bb5b47eb.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-400-italic-DGWPeY37.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-400-normal-CFQi7qvd.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-400-normal-CH_iUxq2.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-700-italic-BdqKfCVQ.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-700-italic-C55zR5rk.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-700-normal-B5dGcPIT.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-700-normal-CojAy5w4.woff2 +0 -0
- package/dist/assets/noto-sans-devanagari-400-italic-KeY3OvDe.woff +0 -0
- package/dist/assets/noto-sans-devanagari-400-italic-Lk_flmKd.woff2 +0 -0
- package/dist/assets/noto-sans-devanagari-400-normal-BV8n3Zrw.woff2 +0 -0
- package/dist/assets/noto-sans-devanagari-400-normal-Da_uNpmI.woff +0 -0
- package/dist/assets/noto-sans-devanagari-700-italic-DX_Ben-x.woff2 +0 -0
- package/dist/assets/noto-sans-devanagari-700-italic-Df3Sqs2H.woff +0 -0
- package/dist/assets/noto-sans-devanagari-700-normal-C2VYeOxD.woff +0 -0
- package/dist/assets/noto-sans-devanagari-700-normal-C8e99gZj.woff2 +0 -0
- package/dist/assets/noto-sans-greek-400-italic-BXJxTOvj.woff +0 -0
- package/dist/assets/noto-sans-greek-400-italic-DHwB0AdM.woff2 +0 -0
- package/dist/assets/noto-sans-greek-400-normal-BroOW-sQ.woff +0 -0
- package/dist/assets/noto-sans-greek-400-normal-CPTbu1sO.woff2 +0 -0
- package/dist/assets/noto-sans-greek-700-italic-CfolioWa.woff2 +0 -0
- package/dist/assets/noto-sans-greek-700-italic-DBCdhGrj.woff +0 -0
- package/dist/assets/noto-sans-greek-700-normal-BVjVfDKs.woff +0 -0
- package/dist/assets/noto-sans-greek-700-normal-P_B9BfF7.woff2 +0 -0
- package/dist/assets/noto-sans-greek-ext-400-italic-9zOpfpOs.woff2 +0 -0
- package/dist/assets/noto-sans-greek-ext-400-italic-D2WbBWVW.woff +0 -0
- package/dist/assets/noto-sans-greek-ext-400-normal-D73iK5X1.woff2 +0 -0
- package/dist/assets/noto-sans-greek-ext-400-normal-DWouWyWY.woff +0 -0
- package/dist/assets/noto-sans-greek-ext-700-italic-C5zCcdM3.woff2 +0 -0
- package/dist/assets/noto-sans-greek-ext-700-italic-YPo3ecki.woff +0 -0
- package/dist/assets/noto-sans-greek-ext-700-normal-BJpqEDTw.woff +0 -0
- package/dist/assets/noto-sans-greek-ext-700-normal-ZrWkOZr4.woff2 +0 -0
- 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/assets/noto-sans-latin-ext-400-italic-BOMiliBU.woff +0 -0
- package/dist/assets/noto-sans-latin-ext-400-italic-UXQeYjoB.woff2 +0 -0
- package/dist/assets/noto-sans-latin-ext-400-normal-BIBIZdeZ.woff2 +0 -0
- package/dist/assets/noto-sans-latin-ext-400-normal-vP3vnBxr.woff +0 -0
- package/dist/assets/noto-sans-latin-ext-700-italic-o2AF7PF_.woff2 +0 -0
- package/dist/assets/noto-sans-latin-ext-700-italic-zILg070W.woff +0 -0
- package/dist/assets/noto-sans-latin-ext-700-normal-BInqjRdw.woff +0 -0
- package/dist/assets/noto-sans-latin-ext-700-normal-BS3CI2D1.woff2 +0 -0
- package/dist/assets/noto-sans-vietnamese-400-italic-CDqW7NCu.woff2 +0 -0
- package/dist/assets/noto-sans-vietnamese-400-italic-DJmGvf9Z.woff +0 -0
- package/dist/assets/noto-sans-vietnamese-400-normal-DziUSn_1.woff +0 -0
- package/dist/assets/noto-sans-vietnamese-400-normal-l431O8bE.woff2 +0 -0
- package/dist/assets/noto-sans-vietnamese-700-italic-D0f5b0SE.woff +0 -0
- package/dist/assets/noto-sans-vietnamese-700-italic-GQhDhRZX.woff2 +0 -0
- package/dist/assets/noto-sans-vietnamese-700-normal-Dp2_pAUa.woff +0 -0
- package/dist/assets/noto-sans-vietnamese-700-normal-RhAWG0gK.woff2 +0 -0
- package/dist/index.html +0 -1
- package/dist/storybook/assets/Color-KGDBMAHA-8cfDWfgV.js +0 -1
- package/dist/storybook/assets/DocsRenderer-PKQXORMH-CVj7TkuP.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-DUNnvnXk.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-C49c1Yvv.js +0 -2
- package/dist/storybook/assets/color-CuU_llEh.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-BN-sM7va.js +0 -2
- package/dist/storybook/assets/immer.esm-BwVl9PS2.js +0 -1
- package/dist/storybook/assets/index-BEZ0hk8m.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-D6rZ4wEC.js +0 -13
- 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-dlFP5Vuh.js +0 -574
- 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-D_iNtfvz.js +0 -26
- package/dist/storybook/assets/input.stories-SJy3TKkD.js +0 -41
- package/dist/storybook/assets/inputs-BLstsfPQ.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-BLRQsBhL.js +0 -16
- package/dist/storybook/assets/layout-general-CxuvOgwW.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-cyrillic-400-italic-BY-huaZy.woff +0 -0
- package/dist/storybook/assets/noto-sans-cyrillic-400-italic-V6PUkjg4.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-cyrillic-400-normal--jh3sVvp.woff +0 -0
- package/dist/storybook/assets/noto-sans-cyrillic-400-normal-XY9qUppk.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-cyrillic-700-italic-BsvNKSfQ.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-cyrillic-700-italic-DSFghSMx.woff +0 -0
- package/dist/storybook/assets/noto-sans-cyrillic-700-normal-8ZAWbjJL.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-cyrillic-700-normal-CTzjhoZt.woff +0 -0
- package/dist/storybook/assets/noto-sans-cyrillic-ext-400-italic-Bb5b47eb.woff +0 -0
- package/dist/storybook/assets/noto-sans-cyrillic-ext-400-italic-DGWPeY37.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-cyrillic-ext-400-normal-CFQi7qvd.woff +0 -0
- package/dist/storybook/assets/noto-sans-cyrillic-ext-400-normal-CH_iUxq2.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-cyrillic-ext-700-italic-BdqKfCVQ.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-cyrillic-ext-700-italic-C55zR5rk.woff +0 -0
- package/dist/storybook/assets/noto-sans-cyrillic-ext-700-normal-B5dGcPIT.woff +0 -0
- package/dist/storybook/assets/noto-sans-cyrillic-ext-700-normal-CojAy5w4.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-devanagari-400-italic-KeY3OvDe.woff +0 -0
- package/dist/storybook/assets/noto-sans-devanagari-400-italic-Lk_flmKd.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-devanagari-400-normal-BV8n3Zrw.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-devanagari-400-normal-Da_uNpmI.woff +0 -0
- package/dist/storybook/assets/noto-sans-devanagari-700-italic-DX_Ben-x.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-devanagari-700-italic-Df3Sqs2H.woff +0 -0
- package/dist/storybook/assets/noto-sans-devanagari-700-normal-C2VYeOxD.woff +0 -0
- package/dist/storybook/assets/noto-sans-devanagari-700-normal-C8e99gZj.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-greek-400-italic-BXJxTOvj.woff +0 -0
- package/dist/storybook/assets/noto-sans-greek-400-italic-DHwB0AdM.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-greek-400-normal-BroOW-sQ.woff +0 -0
- package/dist/storybook/assets/noto-sans-greek-400-normal-CPTbu1sO.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-greek-700-italic-CfolioWa.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-greek-700-italic-DBCdhGrj.woff +0 -0
- package/dist/storybook/assets/noto-sans-greek-700-normal-BVjVfDKs.woff +0 -0
- package/dist/storybook/assets/noto-sans-greek-700-normal-P_B9BfF7.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-greek-ext-400-italic-9zOpfpOs.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-greek-ext-400-italic-D2WbBWVW.woff +0 -0
- package/dist/storybook/assets/noto-sans-greek-ext-400-normal-D73iK5X1.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-greek-ext-400-normal-DWouWyWY.woff +0 -0
- package/dist/storybook/assets/noto-sans-greek-ext-700-italic-C5zCcdM3.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-greek-ext-700-italic-YPo3ecki.woff +0 -0
- package/dist/storybook/assets/noto-sans-greek-ext-700-normal-BJpqEDTw.woff +0 -0
- package/dist/storybook/assets/noto-sans-greek-ext-700-normal-ZrWkOZr4.woff2 +0 -0
- 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/noto-sans-latin-ext-400-italic-BOMiliBU.woff +0 -0
- package/dist/storybook/assets/noto-sans-latin-ext-400-italic-UXQeYjoB.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-latin-ext-400-normal-BIBIZdeZ.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-latin-ext-400-normal-vP3vnBxr.woff +0 -0
- package/dist/storybook/assets/noto-sans-latin-ext-700-italic-o2AF7PF_.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-latin-ext-700-italic-zILg070W.woff +0 -0
- package/dist/storybook/assets/noto-sans-latin-ext-700-normal-BInqjRdw.woff +0 -0
- package/dist/storybook/assets/noto-sans-latin-ext-700-normal-BS3CI2D1.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-vietnamese-400-italic-CDqW7NCu.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-vietnamese-400-italic-DJmGvf9Z.woff +0 -0
- package/dist/storybook/assets/noto-sans-vietnamese-400-normal-DziUSn_1.woff +0 -0
- package/dist/storybook/assets/noto-sans-vietnamese-400-normal-l431O8bE.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-vietnamese-700-italic-D0f5b0SE.woff +0 -0
- package/dist/storybook/assets/noto-sans-vietnamese-700-italic-GQhDhRZX.woff2 +0 -0
- package/dist/storybook/assets/noto-sans-vietnamese-700-normal-Dp2_pAUa.woff +0 -0
- package/dist/storybook/assets/noto-sans-vietnamese-700-normal-RhAWG0gK.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-qL1P8fJl.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-C_R8uZLy.js +0 -3
- package/dist/storybook/assets/preview-CsXFMCpR.js +0 -2
- package/dist/storybook/assets/preview-Ct5NkTJf.js +0 -1
- package/dist/storybook/assets/preview-DLBQXbKW.js +0 -1
- package/dist/storybook/assets/preview-DeFlgNaS.css +0 -1
- 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-DTOrVqdm.js +0 -5
- package/dist/storybook/assets/unit-input.stories-BhSBzB95.js +0 -198
- package/dist/storybook/assets/unit-input.test-case.stories-Dk5SRvMt.js +0 -215
- 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
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{j as R}from"./jsx-runtime-eps93zm2.js";import{r as u}from"./index-DhsZuJvc.js";import{d as a}from"./index-C0x1JmaP.js";import{K as J,E as Q}from"./enum-Bnn40S8Q.js";import{l as X}from"./lodash-c4VUpsOs.js";import{i as S}from"./helpers-JJxzGegQ.js";import{I as Y}from"./input-Db9WkmPP.js";const $=14,s=n=>String(a.toString(n)),ee=n=>a.isScientificStringNum(n)?n:s(a.roundToPrecision(a.toNum(n),$)),ne=n=>n?typeof n=="string"?n:X.isArray(n)?n[0]:n.fieldName:"",te=({name:n,placeholder:p="",disabled:C=!1,error:b=!1,left:L=!1,small:k=!1,width:x="100%",value:c="",onChange:j=()=>{},onFocus:M=()=>{},onBlur:O=()=>{},tabIndex:H=0,testId:K,tooltip:_=null,warning:A=!1,validationCallback:E=()=>{},allowEmpty:D=!1,isInTable:P,groupOrder:W,enableCosmeticRounding:N=!0,enableDisplayRounding:g=!1,roundDisplayValue:w,disableInternalErrorValidationMessages:B=!1})=>{const y=e=>{const t=a.validateNumber(e),l=p&&S(e);return[1/0,-1/0].includes(Number(e))?{valid:!0,errors:[]}:l?{valid:!0,errors:[]}:D&&e===""||t.valid?{...t,valid:!0,errors:void 0}:t},q=e=>{var f;const t=!!(e!=null&&e.endsWith("0")),d=N&&e&&!t&&((f=y(e))==null?void 0:f.valid)?ee(e):e;return s(d)},i=u.useRef(null),[r,h]=u.useState(q(s(c))),[o,I]=u.useState(!1),m=ne(n),{valid:v,errors:T}=y(r),V=T&&T.length&&!B?T[0]:null;u.useEffect(()=>{const e=q(s(c));a.toNum(r)!==a.toNum(e)&&h(e)},[c,N,g]),u.useEffect(()=>{!o&&!v?E(m,V):E(m,null)},[o,v,b]);const F=e=>{var d,f;const t=e instanceof KeyboardEvent?r:(d=e==null?void 0:e.target)==null?void 0:d.value,l=a.cleanNumStr(t.replaceAll(" ","").replaceAll("|",""));if(h(l),(f=y(l))!=null&&f.valid||p&&S(t)){const z={...e,target:{...e.target,value:a.stripLeadingZeros(s(l)),name:m}};j(z)}};u.useEffect(()=>{if(i&&(i!=null&&i.current)&&g&&o){const e=i.current;e&&setTimeout(()=>{const{length:t}=s(r);e.setSelectionRange(t,t)},0)}},[o]);const U=e=>{I(!0),M(e)},Z=e=>{I(!1),O(e)},G=g&&!o&&v?w?s(w(r)):a.roundToFixed(r,2):r;return R.jsx(J,{handleKeys:[Q.ENTER],onKeyEvent:(e,t)=>F(t),children:R.jsx(Y,{type:"text",name:m,testId:K,disabled:C,placeholder:p,value:G,onChange:F,onFocus:U,onBlur:Z,error:V||b,warning:A,right:!L,small:k,width:x,isInTable:P,groupOrder:W,tabIndex:H,tooltip:_,ref:i},m)})};te.__docgenInfo={description:"",methods:[],displayName:"NumberInput",props:{name:{required:!1,tsType:{name:"union",raw:"string | { fieldName: string }",elements:[{name:"string"},{name:"signature",type:"object",raw:"{ fieldName: string }",signature:{properties:[{key:"fieldName",value:{name:"string",required:!0}}]}}]},description:""},placeholder:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"''",computed:!1}},disabled:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},error:{required:!1,tsType:{name:"union",raw:"string | boolean",elements:[{name:"string"},{name:"boolean"}]},description:"",defaultValue:{value:"false",computed:!1}},left:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},small:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},width:{required:!1,tsType:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]},description:"",defaultValue:{value:"'100%'",computed:!1}},value:{required:!1,tsType:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]},description:"",defaultValue:{value:"''",computed:!1}},onChange:{required:!1,tsType:{name:"signature",type:"function",raw:`(
|
|
2
|
-
event: TChangeEvent<T>,
|
|
3
|
-
...additionalProps: { [key: string]: any }[]
|
|
4
|
-
) => void`,signature:{arguments:[{type:{name:"intersection",raw:`ChangeEvent<T> & {
|
|
5
|
-
target:
|
|
6
|
-
| T
|
|
7
|
-
| { name: string; value: any; label?: string; files?: FileList | null };
|
|
8
|
-
}`,elements:[{name:"ChangeEvent",elements:[{name:"T"}],raw:"ChangeEvent<T>"},{name:"signature",type:"object",raw:`{
|
|
9
|
-
target:
|
|
10
|
-
| T
|
|
11
|
-
| { name: string; value: any; label?: string; files?: FileList | null };
|
|
12
|
-
}`,signature:{properties:[{key:"target",value:{name:"union",raw:`| T
|
|
13
|
-
| { name: string; value: any; label?: string; files?: FileList | null }`,elements:[{name:"T"},{name:"signature",type:"object",raw:"{ name: string; value: any; label?: string; files?: FileList | null }",signature:{properties:[{key:"name",value:{name:"string",required:!0}},{key:"value",value:{name:"any",required:!0}},{key:"label",value:{name:"string",required:!1}},{key:"files",value:{name:"union",raw:"FileList | null",elements:[{name:"FileList"},{name:"null"}],required:!1}}]}}],required:!0}}]}}]},name:"event"},{type:{name:"Array",elements:[{name:"signature",type:"object",raw:"{ [key: string]: any }",signature:{properties:[{key:{name:"string"},value:{name:"any",required:!0}}]}}],raw:"{ [key: string]: any }[]"},name:"additionalProps",rest:!0}],return:{name:"void"}}},description:"",defaultValue:{value:"() => {}",computed:!1}},onFocus:{required:!1,tsType:{name:"signature",type:"function",raw:"(evt: FocusEvent<HTMLInputElement>) => void",signature:{arguments:[{type:{name:"FocusEvent",elements:[{name:"HTMLInputElement"}],raw:"FocusEvent<HTMLInputElement>"},name:"evt"}],return:{name:"void"}}},description:"",defaultValue:{value:"() => {}",computed:!1}},onBlur:{required:!1,tsType:{name:"signature",type:"function",raw:"(evt: FocusEvent<HTMLInputElement>) => void",signature:{arguments:[{type:{name:"FocusEvent",elements:[{name:"HTMLInputElement"}],raw:"FocusEvent<HTMLInputElement>"},name:"evt"}],return:{name:"void"}}},description:"",defaultValue:{value:"() => {}",computed:!1}},tabIndex:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"0",computed:!1}},testId:{required:!1,tsType:{name:"string"},description:""},tooltip:{required:!1,tsType:{name:"union",raw:"TStringOrNumber | React.ReactNode",elements:[{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]},{name:"ReactReactNode",raw:"React.ReactNode"}]},description:"",defaultValue:{value:"null",computed:!1}},warning:{required:!1,tsType:{name:"union",raw:"string | boolean",elements:[{name:"string"},{name:"boolean"}]},description:"",defaultValue:{value:"false",computed:!1}},validationCallback:{required:!1,tsType:{name:"signature",type:"function",raw:`(
|
|
14
|
-
name: string | { fieldName: string },
|
|
15
|
-
error: string | null,
|
|
16
|
-
) => void`,signature:{arguments:[{type:{name:"union",raw:"string | { fieldName: string }",elements:[{name:"string"},{name:"signature",type:"object",raw:"{ fieldName: string }",signature:{properties:[{key:"fieldName",value:{name:"string",required:!0}}]}}]},name:"name"},{type:{name:"union",raw:"string | null",elements:[{name:"string"},{name:"null"}]},name:"error"}],return:{name:"void"}}},description:"",defaultValue:{value:"() => {}",computed:!1}},allowEmpty:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},isInTable:{required:!1,tsType:{name:"boolean"},description:""},groupOrder:{required:!1,tsType:{name:"any"},description:""},enableCosmeticRounding:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}},enableDisplayRounding:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},roundDisplayValue:{required:!1,tsType:{name:"signature",type:"function",raw:"(args: TStringOrNumber) => TStringOrNumber",signature:{arguments:[{type:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]},name:"args"}],return:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]}}},description:""},disableInternalErrorValidationMessages:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}}}};export{te as N,ee as r,s};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import{j as Q}from"./jsx-runtime-eps93zm2.js";import{d as X}from"./index-C0x1JmaP.js";import{N as q}from"./number-input-B3_gmeWr.js";import"./index-DhsZuJvc.js";import"./index-DRSy5Ssd.js";import"./enum-Bnn40S8Q.js";import"./index-CEuq6vkz.js";import"./lodash-c4VUpsOs.js";import"./helpers-JJxzGegQ.js";import"./input-Db9WkmPP.js";import"./index-Bk2sglWO.js";import"./disabled-context-rmpd7YJS.js";import"./types-Dx2TtIG9.js";import"./tooltip-1V7clEnw.js";import"./index-CUZDtIZe.js";const{useArgs:Z}=__STORYBOOK_MODULE_PREVIEW_API__,he={title:"Forms/NumberInput",component:q,parameters:{canvas:{page:null}},args:{label:"Label"}},e=c=>{const[$,z]=Z(),G=J=>{z({value:J.target.value})};return Q.jsx(q,{onChange:G,value:123,...c})},d=e.bind({}),n=e.bind({});n.args={small:!0};const a=e.bind({});a.args={width:"150px"};const r=e.bind({});r.args={left:!0};const t=e.bind({});t.args={disabled:!0};const s=e.bind({});s.args={allowEmpty:!0,value:""};const u=e.bind({});u.args={warning:"This input number is almost 100!",value:"99"};const o=e.bind({});o.args={error:"This is a error message"};const g=e.bind({});g.args={value:"123test"};const p=e.bind({});p.args={value:"123.123456789",enableDisplayRounding:!0};const l=e.bind({});l.args={value:"123.123456789",enableDisplayRounding:!0,roundDisplayValue:c=>X.roundToFixed(c,4)};var m,i,h;d.parameters={...d.parameters,docs:{...(m=d.parameters)==null?void 0:m.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 <NumberInput onChange={handleChange} value={123} {...args} />;
|
|
9
|
-
}`,...(h=(i=d.parameters)==null?void 0:i.docs)==null?void 0:h.source}}};var v,C,A;n.parameters={...n.parameters,docs:{...(v=n.parameters)==null?void 0:v.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 <NumberInput onChange={handleChange} value={123} {...args} />;
|
|
17
|
-
}`,...(A=(C=n.parameters)==null?void 0:C.docs)==null?void 0:A.source}}};var b,E,I;a.parameters={...a.parameters,docs:{...(b=a.parameters)==null?void 0:b.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 <NumberInput onChange={handleChange} value={123} {...args} />;
|
|
25
|
-
}`,...(I=(E=a.parameters)==null?void 0:E.docs)==null?void 0:I.source}}};var _,T,L;r.parameters={...r.parameters,docs:{...(_=r.parameters)==null?void 0:_.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 <NumberInput onChange={handleChange} value={123} {...args} />;
|
|
33
|
-
}`,...(L=(T=r.parameters)==null?void 0:T.docs)==null?void 0:L.source}}};var N,S,D;t.parameters={...t.parameters,docs:{...(N=t.parameters)==null?void 0:N.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 <NumberInput onChange={handleChange} value={123} {...args} />;
|
|
41
|
-
}`,...(D=(S=t.parameters)==null?void 0:S.docs)==null?void 0:D.source}}};var M,H,y;s.parameters={...s.parameters,docs:{...(M=s.parameters)==null?void 0:M.docs,source:{originalSource:`args => {
|
|
42
|
-
const [_, updateArgs] = useArgs();
|
|
43
|
-
const handleChange = (evt: ChangeEvent<HTMLInputElement>) => {
|
|
44
|
-
updateArgs({
|
|
45
|
-
value: evt.target.value
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
return <NumberInput onChange={handleChange} value={123} {...args} />;
|
|
49
|
-
}`,...(y=(H=s.parameters)==null?void 0:H.docs)==null?void 0:y.source}}};var f,R,W;u.parameters={...u.parameters,docs:{...(f=u.parameters)==null?void 0:f.docs,source:{originalSource:`args => {
|
|
50
|
-
const [_, updateArgs] = useArgs();
|
|
51
|
-
const handleChange = (evt: ChangeEvent<HTMLInputElement>) => {
|
|
52
|
-
updateArgs({
|
|
53
|
-
value: evt.target.value
|
|
54
|
-
});
|
|
55
|
-
};
|
|
56
|
-
return <NumberInput onChange={handleChange} value={123} {...args} />;
|
|
57
|
-
}`,...(W=(R=u.parameters)==null?void 0:R.docs)==null?void 0:W.source}}};var x,w,O;o.parameters={...o.parameters,docs:{...(x=o.parameters)==null?void 0:x.docs,source:{originalSource:`args => {
|
|
58
|
-
const [_, updateArgs] = useArgs();
|
|
59
|
-
const handleChange = (evt: ChangeEvent<HTMLInputElement>) => {
|
|
60
|
-
updateArgs({
|
|
61
|
-
value: evt.target.value
|
|
62
|
-
});
|
|
63
|
-
};
|
|
64
|
-
return <NumberInput onChange={handleChange} value={123} {...args} />;
|
|
65
|
-
}`,...(O=(w=o.parameters)==null?void 0:w.docs)==null?void 0:O.source}}};var j,B,F;g.parameters={...g.parameters,docs:{...(j=g.parameters)==null?void 0:j.docs,source:{originalSource:`args => {
|
|
66
|
-
const [_, updateArgs] = useArgs();
|
|
67
|
-
const handleChange = (evt: ChangeEvent<HTMLInputElement>) => {
|
|
68
|
-
updateArgs({
|
|
69
|
-
value: evt.target.value
|
|
70
|
-
});
|
|
71
|
-
};
|
|
72
|
-
return <NumberInput onChange={handleChange} value={123} {...args} />;
|
|
73
|
-
}`,...(F=(B=g.parameters)==null?void 0:B.docs)==null?void 0:F.source}}};var P,V,K;p.parameters={...p.parameters,docs:{...(P=p.parameters)==null?void 0:P.docs,source:{originalSource:`args => {
|
|
74
|
-
const [_, updateArgs] = useArgs();
|
|
75
|
-
const handleChange = (evt: ChangeEvent<HTMLInputElement>) => {
|
|
76
|
-
updateArgs({
|
|
77
|
-
value: evt.target.value
|
|
78
|
-
});
|
|
79
|
-
};
|
|
80
|
-
return <NumberInput onChange={handleChange} value={123} {...args} />;
|
|
81
|
-
}`,...(K=(V=p.parameters)==null?void 0:V.docs)==null?void 0:K.source}}};var U,Y,k;l.parameters={...l.parameters,docs:{...(U=l.parameters)==null?void 0:U.docs,source:{originalSource:`args => {
|
|
82
|
-
const [_, updateArgs] = useArgs();
|
|
83
|
-
const handleChange = (evt: ChangeEvent<HTMLInputElement>) => {
|
|
84
|
-
updateArgs({
|
|
85
|
-
value: evt.target.value
|
|
86
|
-
});
|
|
87
|
-
};
|
|
88
|
-
return <NumberInput onChange={handleChange} value={123} {...args} />;
|
|
89
|
-
}`,...(k=(Y=l.parameters)==null?void 0:Y.docs)==null?void 0:k.source}}};const ve=["Default","Small","Width","Left","Disabled","AllowEmpty","Warning","Error","BadInput","WithDisplayRounding","WithCustomDisplayRounding"];export{s as AllowEmpty,g as BadInput,d as Default,t as Disabled,o as Error,r as Left,n as Small,u as Warning,a as Width,l as WithCustomDisplayRounding,p as WithDisplayRounding,ve as __namedExportsOrder,he as default};
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./jsx-runtime-eps93zm2.js";import{r as l}from"./index-DhsZuJvc.js";import{w as u,u as n,e as o,f as D,a as C}from"./index-DMAnyMX5.js";import{S as x}from"./spacer-BWoNR27H.js";import{G as Z}from"./grid-DRkC-bt8.js";import{C as m}from"./card-EcjmryU9.js";import{B as $}from"./button-Cbv7WK6k.js";import{H as p}from"./heading-CRNoBc7q.js";import{I as se}from"./input-group-addon-D68iUKV2.js";import{S as re}from"./select-Cwks-WA0.js";import{I as oe}from"./input-group-BaRSJAEN.js";import{F as R}from"./field-HrLaMLbx.js";import{T as j}from"./toggle-BbFVf61v.js";import{T as ie}from"./text-B3-TSWok.js";import{M as le}from"./message-BRyKdRaX.js";import{I as ee}from"./icon-BSFY3vDO.js";import{N as c}from"./number-input-B3_gmeWr.js";import"./index-CF7H4eMJ.js";import"./styled-components.browser.esm-BQ9GQzDc.js";import"./index-Bk2sglWO.js";import"./common-types-Sih75Sav.js";import"./disabled-context-rmpd7YJS.js";import"./spinner-AWUe4xwQ.js";import"./tooltip-1V7clEnw.js";import"./index-CUZDtIZe.js";import"./help-icon-Buhx5nl6.js";import"./lodash-c4VUpsOs.js";import"./types-Dx2TtIG9.js";import"./enum-Bnn40S8Q.js";import"./index-CEuq6vkz.js";import"./inheritsLoose-DP0QEDDI.js";import"./assertThisInitialized-B9jnkVVz.js";import"./memoize-one.esm-CcMeOnPo.js";import"./types-BmbYqTX_.js";import"./actions-Bax0KeqM.js";import"./badge-CLQ59MDF.js";import"./select.input-CJed_LLR.js";import"./helpers-JJxzGegQ.js";import"./label-CqmyC9he.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index-C0x1JmaP.js";import"./index-DRSy5Ssd.js";import"./input-Db9WkmPP.js";const Ze={title:"Forms/NumberInput/Test Cases",component:c,parameters:{canvas:{page:null}},args:{label:"Label"},tags:["!autodocs"]},w=()=>a.jsxs(oe,{small:!0,children:[a.jsx(c,{value:123}),a.jsx(se,{children:"to"}),a.jsx(c,{value:123}),a.jsx(re,{options:[{value:"units",label:"units"}],width:"auto",value:"units"})]}),g=()=>{const[r,s]=l.useState("123|m");return a.jsx(c,{name:"example",onChange:e=>s(e.target.value),placeholder:"Type a value...",value:r,testId:"testId"})};g.play=async({canvasElement:r,step:s})=>{const e=u(r),i=u(r.ownerDocument.body);await s("Shows validation error for non-numeric input",async()=>{const t=e.getByTestId("testId");await n.clear(t),await n.type(t,"123x45s6"),await o(e.getByDisplayValue("123x45s6")).toBeInTheDocument(),await D.mouseOver(t),await o(t.getAttribute("data-error")).toEqual("Must be a numerical value"),await C(()=>{o(i.getByText("Must be a numerical value")).toBeInTheDocument()})})};const y=()=>{const[r,s]=l.useState("123");return a.jsx(c,{value:r,onChange:e=>{s(e.target.value)},testId:"testId",enableDisplayRounding:!0})};y.play=async({canvasElement:r,step:s})=>{const e=u(r);await s("Value should be rounded on blur",async()=>{const i=e.getByTestId("testId");await n.clear(i),await n.type(i,"123.123456789"),await n.click(r),await o(e.getByDisplayValue("123.12")).toBeInTheDocument()}),await s("Full value shown on focus",async()=>{const i=e.getByTestId("testId");await n.click(i),await o(e.getByDisplayValue("123.123456789")).toBeInTheDocument()})};const f=()=>{const[r,s]=l.useState(!0),e=()=>{s(!1),setTimeout(()=>s(!0),0)},[i,t]=l.useState("123");return a.jsxs(Z,{columns:"1fr 1fr",gap:!0,children:[a.jsxs(m,{heading:a.jsx(p,{children:"Storage State (Redux)"}),children:[i,a.jsx(x,{}),a.jsx($,{label:"Change value",onClick:()=>t(String(Math.floor(Math.random()*100)))})]}),a.jsx(m,{heading:a.jsx(p,{icon:a.jsx(ee,{icon:"refresh"}),onIconClick:e,children:"NumberInput"}),children:r&&a.jsx(c,{value:i,onChange:v=>{t(v.target.value)},error:Number(i)>=0?"":"Value must be positive"})})]})},I=()=>{const[r,s]=l.useState(!0),e=()=>{s(!1),setTimeout(()=>s(!0),0)},[i,t]=l.useState(!1),[v,te]=l.useState(!0),[T,S]=l.useState("0.6889763779527558"),[V,ae]=l.useState(""),ne=Number(T)*.3048;return a.jsxs(Z,{columns:"1fr 1fr",gap:!0,children:[a.jsxs(m,{heading:a.jsx(p,{children:"Settings"}),children:[a.jsx(R,{label:"Enable display rounding:",labelLeft:!0,labelWidth:200,children:a.jsx(j,{checked:i,onChange:d=>t(d.target.checked)})}),a.jsx(R,{label:"Enable cosmetic rounding:",labelLeft:!0,labelWidth:200,children:a.jsx(j,{checked:v,onChange:d=>te(d.target.checked)})})]}),a.jsxs(m,{heading:a.jsx(p,{icon:a.jsx(ee,{icon:"refresh",testId:"triggerRerenderTestId"}),onIconClick:e,children:"NumberInput (displayed in Meters)"}),children:[a.jsx(ie,{faint:!0,children:"Cosmetic Rounding Test Cases: type 0.21 then return (compare with enableCosmeticRounding on and off)"}),a.jsx(x,{}),r&&a.jsx(c,{name:"Example",value:ne,onChange:d=>{const B=String(Number(d.target.value)/.3048);S(B)},enableDisplayRounding:i,enableCosmeticRounding:v,error:Number(T)>=0?"":"Value must be positive",validationCallback:(d,B)=>{ae(B??"")},testId:"testId"})]}),a.jsxs(m,{heading:a.jsx(p,{children:"Storage State / Redux (stored in Feet)"}),children:[T,a.jsx(x,{}),a.jsx($,{label:"Change value",onClick:()=>S(String(Math.floor(Math.random()*100)))})]}),a.jsx(m,{heading:a.jsx(p,{children:"Test Validation Callback"}),children:V&&a.jsx(le,{message:{content:V,icon:!0,type:"Error",visible:!0}})})]})};I.play=async({canvasElement:r,step:s})=>{const e=u(r),i=u(r.ownerDocument.body);await s("Can enter decimal values",async()=>{const t=e.getByTestId("testId");await n.clear(t),await n.type(t,"123.123456789"),await n.click(r),await o(e.getByDisplayValue("123.123456789")).toBeInTheDocument()}),await s("Can enter scientific notation when storage unit is different",async()=>{const t=e.getByTestId("testId");await n.clear(t),await n.type(t,"-1.12e-3"),await o(e.getByDisplayValue("-1.12e-3")).toBeInTheDocument(),await e.getByTestId("triggerRerenderTestId").click(),await C(()=>{o(e.getByDisplayValue(-.00112)).toBeInTheDocument()})}),await s("Can enter comma decimals (converts to dot)",async()=>{const t=e.getByTestId("testId");await n.clear(t),await n.type(t,"123,456"),await o(e.getByDisplayValue("123.456")).toBeInTheDocument()}),await s("Can enter small numbers",async()=>{const t=e.getByTestId("testId");await n.clear(t),await n.type(t,"0.0000000023"),await o(e.getByDisplayValue("0.0000000023")).toBeInTheDocument()}),await s("Can enter large numbers",async()=>{const t=e.getByTestId("testId");await n.clear(t),await n.type(t,"999999999999"),await o(e.getByDisplayValue("999999999999")).toBeInTheDocument()}),await s("Shows validation error for non-numeric input",async()=>{const t=e.getByTestId("testId");await n.clear(t),await n.type(t,"123x45s6"),await n.click(r),await o(e.getByDisplayValue("123x45s6")).toBeInTheDocument(),await o(t.getAttribute("data-error")).toEqual("Must be a numerical value"),await D.mouseOver(t),await C(()=>{o(i.getAllByText("Must be a numerical value").length).toEqual(2)})})};const h=()=>{const[r,s]=l.useState("123");return a.jsx(c,{value:r,onChange:e=>{s(e.target.value)},testId:"testId"})};h.play=async({canvasElement:r,step:s})=>{const e=u(r),i=u(r.ownerDocument.body);await s("Can enter decimal values",async()=>{const t=e.getByTestId("testId");await n.clear(t),await n.type(t,"123.123456789"),await o(e.getByDisplayValue("123.123456789")).toBeInTheDocument()}),await s("Can enter scientific notation",async()=>{const t=e.getByTestId("testId");await n.clear(t),await n.type(t,"-1.12e3"),await o(e.getByDisplayValue("-1.12e3")).toBeInTheDocument()}),await s("Can enter comma decimals (converts to dot)",async()=>{const t=e.getByTestId("testId");await n.clear(t),await n.type(t,"123,456"),await o(e.getByDisplayValue("123.456")).toBeInTheDocument()}),await s("Can enter small numbers",async()=>{const t=e.getByTestId("testId");await n.clear(t),await n.type(t,"0.0000000023"),await o(e.getByDisplayValue("0.0000000023")).toBeInTheDocument()}),await s("Can enter large numbers",async()=>{const t=e.getByTestId("testId");await n.clear(t),await n.type(t,"999999999999"),await o(e.getByDisplayValue("999999999999")).toBeInTheDocument()}),await s("Shows validation error for non-numeric input",async()=>{const t=e.getByTestId("testId");await n.clear(t),await n.type(t,"123x45s6"),await o(e.getByDisplayValue("123x45s6")).toBeInTheDocument(),await o(t.getAttribute("data-error")).toEqual("Must be a numerical value"),await D.mouseOver(t),await C(()=>{o(i.getByText("Must be a numerical value")).toBeInTheDocument()})})};const b=()=>{const[r,s]=l.useState("123|m");return a.jsx(c,{name:"example",onChange:e=>s(e.target.value),placeholder:"Type a value...",value:r,testId:"testId"})};b.play=async({canvasElement:r,step:s})=>{const e=u(r);u(r.ownerDocument.body),await s("Shows validation error for non-numeric input",async()=>{const i=e.getByTestId("testId");await n.clear(i),await n.type(i,"Infinity"),await o(e.getByDisplayValue("Infinity")).toBeInTheDocument(),await o(i.getAttribute("data-error")).toBeNull()}),await s("Shows validation error for non-numeric input",async()=>{const i=e.getByTestId("testId");await n.clear(i),await n.type(i,"-Infinity"),await o(e.getByDisplayValue("-Infinity")).toBeInTheDocument(),await o(i.getAttribute("data-error")).toBeNull()})};w.__docgenInfo={description:"",methods:[],displayName:"TestInputGroup"};g.__docgenInfo={description:"",methods:[{name:"play",docblock:null,modifiers:["static"],params:[{name:"{ canvasElement, step }",optional:!1,type:null}],returns:null}],displayName:"Placeholder"};y.__docgenInfo={description:"",methods:[{name:"play",docblock:null,modifiers:["static"],params:[{name:"{ canvasElement, step }",optional:!1,type:null}],returns:null}],displayName:"TestDisplayRounding"};f.__docgenInfo={description:"",methods:[],displayName:"ManagedTestCase"};I.__docgenInfo={description:"",methods:[{name:"play",docblock:null,modifiers:["static"],params:[{name:"{ canvasElement, step }",optional:!1,type:null}],returns:null}],displayName:"DemoCosmeticRounding"};h.__docgenInfo={description:"",methods:[{name:"play",docblock:null,modifiers:["static"],params:[{name:"{ canvasElement, step }",optional:!1,type:null}],returns:null}],displayName:"TestUserInput"};b.__docgenInfo={description:"",methods:[{name:"play",docblock:null,modifiers:["static"],params:[{name:"{ canvasElement, step }",optional:!1,type:null}],returns:null}],displayName:"InfinityTest"};var k,N,E;w.parameters={...w.parameters,docs:{...(k=w.parameters)==null?void 0:k.docs,source:{originalSource:`() => <InputGroup small>
|
|
2
|
-
<NumberInput value={123} />
|
|
3
|
-
<InputGroupAddon>to</InputGroupAddon>
|
|
4
|
-
<NumberInput value={123} />
|
|
5
|
-
<Select options={[{
|
|
6
|
-
value: 'units',
|
|
7
|
-
label: 'units'
|
|
8
|
-
}]} width="auto" value="units" />
|
|
9
|
-
</InputGroup>`,...(E=(N=w.parameters)==null?void 0:N.docs)==null?void 0:E.source}}};var M,F,_;g.parameters={...g.parameters,docs:{...(M=g.parameters)==null?void 0:M.docs,source:{originalSource:`() => {
|
|
10
|
-
const [value, setValue] = useState('123|m');
|
|
11
|
-
return <NumberInput name="example" onChange={evt => setValue(evt.target.value)} placeholder="Type a value..." value={value} testId="testId" />;
|
|
12
|
-
}`,...(_=(F=g.parameters)==null?void 0:F.docs)==null?void 0:_.source}}};var G,H,A;y.parameters={...y.parameters,docs:{...(G=y.parameters)==null?void 0:G.docs,source:{originalSource:`() => {
|
|
13
|
-
const [value, setValue] = useState('123');
|
|
14
|
-
return <NumberInput value={value} onChange={evt => {
|
|
15
|
-
setValue(evt.target.value);
|
|
16
|
-
}} testId="testId" enableDisplayRounding />;
|
|
17
|
-
}`,...(A=(H=y.parameters)==null?void 0:H.docs)==null?void 0:A.source}}};var L,q,O;f.parameters={...f.parameters,docs:{...(L=f.parameters)==null?void 0:L.docs,source:{originalSource:`() => {
|
|
18
|
-
const [visible, setVisible] = useState(true);
|
|
19
|
-
const triggerRerender = () => {
|
|
20
|
-
setVisible(false);
|
|
21
|
-
setTimeout(() => setVisible(true), 0);
|
|
22
|
-
};
|
|
23
|
-
const [value, setValue] = useState('123');
|
|
24
|
-
return <Grid columns="1fr 1fr" gap>
|
|
25
|
-
<Card heading={<Heading>Storage State (Redux)</Heading>}>
|
|
26
|
-
{value}
|
|
27
|
-
<Spacer />
|
|
28
|
-
<Button label="Change value" onClick={() => setValue(String(Math.floor(Math.random() * 100)))} />
|
|
29
|
-
</Card>
|
|
30
|
-
<Card heading={<Heading icon={<Icon icon="refresh" />} onIconClick={triggerRerender}>
|
|
31
|
-
NumberInput
|
|
32
|
-
</Heading>}>
|
|
33
|
-
{visible && <NumberInput value={value} onChange={evt => {
|
|
34
|
-
setValue(evt.target.value);
|
|
35
|
-
}} error={Number(value) >= 0 ? '' : 'Value must be positive'} />}
|
|
36
|
-
</Card>
|
|
37
|
-
</Grid>;
|
|
38
|
-
}`,...(O=(q=f.parameters)==null?void 0:q.docs)==null?void 0:O.source}}};var W,P,U;I.parameters={...I.parameters,docs:{...(W=I.parameters)==null?void 0:W.docs,source:{originalSource:`() => {
|
|
39
|
-
const [visible, setVisible] = useState(true);
|
|
40
|
-
const triggerRerender = () => {
|
|
41
|
-
setVisible(false);
|
|
42
|
-
setTimeout(() => setVisible(true), 0);
|
|
43
|
-
};
|
|
44
|
-
const [enableDisplayRounding, setEnableDisplayRounding] = useState(false);
|
|
45
|
-
const [enableCosmeticRounding, setEnableCosmeticRounding] = useState(true);
|
|
46
|
-
const [valueInFeet, setValueInFeet] = useState('0.6889763779527558');
|
|
47
|
-
const [callBackError, setCallBackError] = useState('');
|
|
48
|
-
const valueInMeters = Number(valueInFeet) * 0.3048;
|
|
49
|
-
return <Grid columns="1fr 1fr" gap>
|
|
50
|
-
<Card heading={<Heading>Settings</Heading>}>
|
|
51
|
-
<Field label="Enable display rounding:" labelLeft labelWidth={200}>
|
|
52
|
-
<Toggle checked={enableDisplayRounding} onChange={evt => setEnableDisplayRounding(evt.target.checked)} />
|
|
53
|
-
</Field>
|
|
54
|
-
<Field label="Enable cosmetic rounding:" labelLeft labelWidth={200}>
|
|
55
|
-
<Toggle checked={enableCosmeticRounding} onChange={evt => setEnableCosmeticRounding(evt.target.checked)} />
|
|
56
|
-
</Field>
|
|
57
|
-
</Card>
|
|
58
|
-
<Card heading={<Heading icon={<Icon icon="refresh" testId="triggerRerenderTestId" />} onIconClick={triggerRerender}>
|
|
59
|
-
NumberInput (displayed in Meters)
|
|
60
|
-
</Heading>}>
|
|
61
|
-
<Text faint>
|
|
62
|
-
Cosmetic Rounding Test Cases: type 0.21 then return (compare with
|
|
63
|
-
enableCosmeticRounding on and off)
|
|
64
|
-
</Text>
|
|
65
|
-
<Spacer />
|
|
66
|
-
{visible && <NumberInput name="Example" value={valueInMeters} onChange={evt => {
|
|
67
|
-
const nextValueInFeet = String(Number(evt.target.value) / 0.3048);
|
|
68
|
-
setValueInFeet(nextValueInFeet); // convert back to ft
|
|
69
|
-
}} enableDisplayRounding={enableDisplayRounding} enableCosmeticRounding={enableCosmeticRounding} error={Number(valueInFeet) >= 0 ? '' : 'Value must be positive'} validationCallback={(name, error) => {
|
|
70
|
-
setCallBackError(error ?? '');
|
|
71
|
-
}} testId="testId" />}
|
|
72
|
-
</Card>
|
|
73
|
-
<Card heading={<Heading>Storage State / Redux (stored in Feet)</Heading>}>
|
|
74
|
-
{valueInFeet}
|
|
75
|
-
<Spacer />
|
|
76
|
-
<Button label="Change value" onClick={() => setValueInFeet(String(Math.floor(Math.random() * 100)))} />
|
|
77
|
-
</Card>
|
|
78
|
-
<Card heading={<Heading>Test Validation Callback</Heading>}>
|
|
79
|
-
{callBackError && <Message message={{
|
|
80
|
-
content: callBackError,
|
|
81
|
-
icon: true,
|
|
82
|
-
type: 'Error',
|
|
83
|
-
visible: true
|
|
84
|
-
}} />}
|
|
85
|
-
</Card>
|
|
86
|
-
</Grid>;
|
|
87
|
-
}`,...(U=(P=I.parameters)==null?void 0:P.docs)==null?void 0:U.source}}};var z,J,K;h.parameters={...h.parameters,docs:{...(z=h.parameters)==null?void 0:z.docs,source:{originalSource:`() => {
|
|
88
|
-
const [value, setValue] = useState('123');
|
|
89
|
-
return <NumberInput value={value} onChange={evt => {
|
|
90
|
-
setValue(evt.target.value);
|
|
91
|
-
}} testId="testId" />;
|
|
92
|
-
}`,...(K=(J=h.parameters)==null?void 0:J.docs)==null?void 0:K.source}}};var Q,X,Y;b.parameters={...b.parameters,docs:{...(Q=b.parameters)==null?void 0:Q.docs,source:{originalSource:`() => {
|
|
93
|
-
const [value, setValue] = useState('123|m');
|
|
94
|
-
return <NumberInput name="example" onChange={evt => setValue(evt.target.value)} placeholder="Type a value..." value={value} testId="testId" />;
|
|
95
|
-
}`,...(Y=(X=b.parameters)==null?void 0:X.docs)==null?void 0:Y.source}}};const $e=["TestInputGroup","Placeholder","TestDisplayRounding","ManagedTestCase","DemoCosmeticRounding","TestUserInput","InfinityTest"];export{I as DemoCosmeticRounding,b as InfinityTest,f as ManagedTestCase,g as Placeholder,y as TestDisplayRounding,w as TestInputGroup,h as TestUserInput,$e as __namedExportsOrder,Ze as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function o(t){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(t)}function c(t,e){if(o(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(o(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function b(t){var e=c(t,"string");return o(e)=="symbol"?e:e+""}function f(t,e,r){return(e=b(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,n)}return r}function y(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?i(Object(r),!0).forEach(function(n){f(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}export{y as _,o as a,f as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function r(t,i){if(t==null)return{};var o={};for(var e in t)if({}.hasOwnProperty.call(t,e)){if(i.includes(e))continue;o[e]=t[e]}return o}export{r as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._menu_12x4u_1{overflow-y:auto;position:relative;min-width:160px;border:1px solid var(--color-border);border-radius:var(--border-radius);box-shadow:var(--shadow-layer);background-color:var(--color-background-layer);margin-top:2px}._header_12x4u_11{padding:var(--padding-xs) var(--padding-sm);display:flex;justify-content:space-between}._header_12x4u_11 a{color:var(--color-text-primary);font-weight:400;cursor:pointer}._header_12x4u_11 a:hover{color:var(--color-text-primary-hover)}._header_12x4u_11 a:active{color:var(--color-text-primary-active)}._item_12x4u_27{padding:var(--padding-xs) var(--padding-sm);background:transparent;cursor:default}._heading_12x4u_32{color:var(--color-text-muted);letter-spacing:var(--letter-spacing-wide);text-transform:uppercase;font-size:var(--font-size-sm);padding:var(--padding-xs) var(--padding-sm);max-width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./jsx-runtime-eps93zm2.js";import{T as A}from"./common-types-Sih75Sav.js";import{M as C}from"./actions-Bax0KeqM.js";import{c as E}from"./index-Bk2sglWO.js";import{C as O}from"./check-box-DPLaOkRR.js";import{D as y}from"./divider-DY9nJ_7N.js";import"./index-DhsZuJvc.js";import"./lodash-c4VUpsOs.js";import"./disabled-context-rmpd7YJS.js";import"./button-Cbv7WK6k.js";import"./spinner-AWUe4xwQ.js";import"./icon-BSFY3vDO.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./inheritsLoose-DP0QEDDI.js";import"./index-CEuq6vkz.js";import"./tooltip-1V7clEnw.js";import"./index-CUZDtIZe.js";import"./types-BmbYqTX_.js";import"./types-Dx2TtIG9.js";import"./badge-CLQ59MDF.js";import"./help-icon-Buhx5nl6.js";import"./text-B3-TSWok.js";const D="_menu_12x4u_1",I="_header_12x4u_11",L="_item_12x4u_27",F="_heading_12x4u_32",p={menu:D,header:I,item:L,heading:F},w=({option:e,onChange:r})=>{const{key:i,label:l,selected:a}=e;return n.jsx("div",{className:p.item,children:n.jsx(O,{label:l,noMargin:!0,checked:a,onChange:r})},i)};w.__docgenInfo={description:"",methods:[],displayName:"Option",props:{option:{required:!0,tsType:{name:"signature",type:"object",raw:`{
|
|
2
|
-
key?: string;
|
|
3
|
-
label?: string | null;
|
|
4
|
-
selected?: boolean;
|
|
5
|
-
}`,signature:{properties:[{key:"key",value:{name:"string",required:!1}},{key:"label",value:{name:"union",raw:"string | null",elements:[{name:"string"},{name:"null"}],required:!1}},{key:"selected",value:{name:"boolean",required:!1}}]}},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:`(
|
|
6
|
-
event: TChangeEvent<T>,
|
|
7
|
-
...additionalProps: { [key: string]: any }[]
|
|
8
|
-
) => void`,signature:{arguments:[{type:{name:"intersection",raw:`ChangeEvent<T> & {
|
|
9
|
-
target:
|
|
10
|
-
| T
|
|
11
|
-
| { name: string; value: any; label?: string; files?: FileList | null };
|
|
12
|
-
}`,elements:[{name:"ChangeEvent",elements:[{name:"T"}],raw:"ChangeEvent<T>"},{name:"signature",type:"object",raw:`{
|
|
13
|
-
target:
|
|
14
|
-
| T
|
|
15
|
-
| { name: string; value: any; label?: string; files?: FileList | null };
|
|
16
|
-
}`,signature:{properties:[{key:"target",value:{name:"union",raw:`| T
|
|
17
|
-
| { name: string; value: any; label?: string; files?: FileList | null }`,elements:[{name:"T"},{name:"signature",type:"object",raw:"{ name: string; value: any; label?: string; files?: FileList | null }",signature:{properties:[{key:"name",value:{name:"string",required:!0}},{key:"value",value:{name:"any",required:!0}},{key:"label",value:{name:"string",required:!1}},{key:"files",value:{name:"union",raw:"FileList | null",elements:[{name:"FileList"},{name:"null"}],required:!1}}]}}],required:!0}}]}}]},name:"event"},{type:{name:"Array",elements:[{name:"signature",type:"object",raw:"{ [key: string]: any }",signature:{properties:[{key:{name:"string"},value:{name:"any",required:!0}}]}}],raw:"{ [key: string]: any }[]"},name:"additionalProps",rest:!0}],return:{name:"void"}}},description:""}}};const x=({label:e})=>n.jsx("div",{className:p.heading,children:e});x.__docgenInfo={description:"",methods:[],displayName:"Heading",props:{label:{required:!0,tsType:{name:"string"},description:""}}};var g=(e=>(e.HEADING="Heading",e.DIVIDER="Divider",e.DEFAULT="Default",e))(g||{});const k=({options:e,onChangeOptions:r,showHeader:i,maxHeight:l})=>n.jsxs("div",{className:E("menu",p.menu),style:{maxHeight:l},children:[i&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:p.header,children:[n.jsx("a",{onClick:a=>{const s=e.map(t=>({...t,selected:!0}));r(a,s)},children:"All"}),n.jsx("a",{onClick:a=>{const s=e.map(t=>({...t,selected:!1}));r(a,s)},children:"Clear"}),n.jsx("a",{onClick:a=>{const s=e.map(t=>({...t,selected:!t.selected}));r(a,s)},children:"Invert"})]}),n.jsx(y,{margin:0})]}),e.map((a,s)=>{switch(a.type){case g.HEADING:return n.jsx(x,{label:a.label},s);case g.DIVIDER:return n.jsx(y,{margin:0},s);default:return n.jsx(w,{option:a,onChange:t=>{const{value:d}=a,j=e.map(u=>u.value!==d?u:{...u,selected:!u.selected});r(t,j)}},s)}})]});k.__docgenInfo={description:"",methods:[],displayName:"Layer",props:{options:{required:!0,tsType:{name:"Array",elements:[{name:"IOptionType"}],raw:"IOptionType[]"},description:""},onChangeOptions:{required:!0,tsType:{name:"signature",type:"function",raw:`(
|
|
18
|
-
evt: React.MouseEvent<HTMLAnchorElement>,
|
|
19
|
-
options: IOptionType[],
|
|
20
|
-
) => void`,signature:{arguments:[{type:{name:"ReactMouseEvent",raw:"React.MouseEvent<HTMLAnchorElement>",elements:[{name:"HTMLAnchorElement"}]},name:"evt"},{type:{name:"Array",elements:[{name:"IOptionType"}],raw:"IOptionType[]"},name:"options"}],return:{name:"void"}}},description:""},showHeader:{required:!1,tsType:{name:"boolean"},description:""},maxHeight:{required:!1,tsType:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]},description:""}}};const c=({name:e,label:r,options:i,onChange:l,showHeader:a=!0,maxHeight:s="40vh"})=>n.jsx(C,{menu:{label:r,trigger:A.DROP_DOWN_BUTTON,possiblePlacements:["top-start","bottom-start"],sections:n.jsx(k,{options:i,onChangeOptions:(t,d)=>{t.stopPropagation(),t.target.name=e,t.target.value=d,l(t)},showHeader:a,maxHeight:s})}});c.__docgenInfo={description:"",methods:[],displayName:"OptionDropdown",props:{name:{required:!1,tsType:{name:"string"},description:""},label:{required:!0,tsType:{name:"string"},description:""},options:{required:!0,tsType:{name:"Array",elements:[{name:"IOptionType"}],raw:"IOptionType[]"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:`(
|
|
21
|
-
event: TChangeEvent<T>,
|
|
22
|
-
...additionalProps: { [key: string]: any }[]
|
|
23
|
-
) => void`,signature:{arguments:[{type:{name:"intersection",raw:`ChangeEvent<T> & {
|
|
24
|
-
target:
|
|
25
|
-
| T
|
|
26
|
-
| { name: string; value: any; label?: string; files?: FileList | null };
|
|
27
|
-
}`,elements:[{name:"ChangeEvent",elements:[{name:"T"}],raw:"ChangeEvent<T>"},{name:"signature",type:"object",raw:`{
|
|
28
|
-
target:
|
|
29
|
-
| T
|
|
30
|
-
| { name: string; value: any; label?: string; files?: FileList | null };
|
|
31
|
-
}`,signature:{properties:[{key:"target",value:{name:"union",raw:`| T
|
|
32
|
-
| { name: string; value: any; label?: string; files?: FileList | null }`,elements:[{name:"T"},{name:"signature",type:"object",raw:"{ name: string; value: any; label?: string; files?: FileList | null }",signature:{properties:[{key:"name",value:{name:"string",required:!0}},{key:"value",value:{name:"any",required:!0}},{key:"label",value:{name:"string",required:!1}},{key:"files",value:{name:"union",raw:"FileList | null",elements:[{name:"FileList"},{name:"null"}],required:!1}}]}}],required:!0}}]}}]},name:"event"},{type:{name:"Array",elements:[{name:"signature",type:"object",raw:"{ [key: string]: any }",signature:{properties:[{key:{name:"string"},value:{name:"any",required:!0}}]}}],raw:"{ [key: string]: any }[]"},name:"additionalProps",rest:!0}],return:{name:"void"}}},description:""},showHeader:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}},maxHeight:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'40vh'",computed:!1}}}};const{useArgs:H}=__STORYBOOK_MODULE_PREVIEW_API__,N=[{label:"Animals",type:"Heading"},{type:"Divider"},{label:"Aardvarks",value:"termites"},{label:"Kangaroos",value:"grass"},{label:"Monkeys",value:"bananas"}],se={title:"Forms/OptionDropdown",component:c,args:{label:"Label",options:N}},q=e=>{const[r,i]=H(),l=a=>{i({options:a.target.value})};return n.jsx(c,{...e,onChange:l})},m=q.bind({}),o=q.bind({});o.args={options:[...Array(50)].map((e,r)=>({label:`Item #${r}`,value:r}))};var v,h,f;m.parameters={...m.parameters,docs:{...(v=m.parameters)==null?void 0:v.docs,source:{originalSource:`args => {
|
|
33
|
-
const [_, updateArgs] = useArgs();
|
|
34
|
-
const handleChange = (evt: any) => {
|
|
35
|
-
updateArgs({
|
|
36
|
-
options: evt.target.value
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
return <OptionDropdown
|
|
40
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
41
|
-
{...args} onChange={handleChange} />;
|
|
42
|
-
}`,...(f=(h=m.parameters)==null?void 0:h.docs)==null?void 0:f.source}}};var T,b,_;o.parameters={...o.parameters,docs:{...(T=o.parameters)==null?void 0:T.docs,source:{originalSource:`args => {
|
|
43
|
-
const [_, updateArgs] = useArgs();
|
|
44
|
-
const handleChange = (evt: any) => {
|
|
45
|
-
updateArgs({
|
|
46
|
-
options: evt.target.value
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
return <OptionDropdown
|
|
50
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
51
|
-
{...args} onChange={handleChange} />;
|
|
52
|
-
}`,...(_=(b=o.parameters)==null?void 0:b.docs)==null?void 0:_.source}}};const ie=["Default","ScrollOverflow"];export{m as Default,o as ScrollOverflow,ie as __namedExportsOrder,se as default};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-eps93zm2.js";import{useMDXComponents as r}from"./index-BcNHZKhG.js";import{Z as t}from"./index-dlFP5Vuh.js";import"./index-DhsZuJvc.js";import"./iframe-BN-sM7va.js";import"../sb-preview/runtime.js";import"./index-CUZDtIZe.js";import"./inheritsLoose-DP0QEDDI.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-D6rZ4wEC.js";function i(s){const n={code:"code",h1:"h1",h2:"h2",li:"li",p:"p",strong:"strong",ul:"ul",...r(),...s.components};return e.jsxs(e.Fragment,{children:[e.jsx(t,{title:"Padding, Margin & Size"}),`
|
|
2
|
-
`,e.jsx(n.h1,{id:"padding-margin--size",children:"Padding, Margin & Size"}),`
|
|
3
|
-
`,e.jsx(n.h2,{id:"padding--margin",children:"Padding & Margin"}),`
|
|
4
|
-
`,e.jsx(n.p,{children:"There are standard CSS spacing variables for padding and margin."}),`
|
|
5
|
-
`,e.jsxs(n.ul,{children:[`
|
|
6
|
-
`,e.jsxs(n.li,{children:[e.jsxs(n.strong,{children:[e.jsx(n.code,{children:"var(--padding)"})," is space which should be used in most cases."]})," This is the default space within a section (e.g. main content, modals, drawers) or between groups of elements (e.g. between a list and a form, rows and columns in a layout, or between a table and a button)."]}),`
|
|
7
|
-
`,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"var(--padding-sm)"})," is space between standard elements (e.g. a row of buttons) or within a small group of elements (e.g. a card or popover)."]}),`
|
|
8
|
-
`,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"var(--padding-xs)"})," is space between small elements (e.g. small form controls, or checkbox and its label) or within elements (e.g. an input field)."]}),`
|
|
9
|
-
`,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"var(--padding-xxs)"})," is tight space between small elements (e.g. between a row of icon actions, or between icon and text in button)."]}),`
|
|
10
|
-
`]}),`
|
|
11
|
-
`,e.jsx(n.h2,{id:"size",children:"Size"}),`
|
|
12
|
-
`,e.jsxs(n.p,{children:["These are the standard sizes of individual elements. Developers are unlikely to need these values but there may be cases in which they are helpful for calculating dimensions, etc. This ",e.jsx(n.code,{children:"size"})," normally relates to the height, but in some cases it may relate to the width (e.g. sidebars) or both height and width (e.g. checkboxes, radios & round buttons)."]}),`
|
|
13
|
-
`,e.jsxs(n.ul,{children:[`
|
|
14
|
-
`,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"var(--size-xl)"})," is for the top bar and closed sidebar."]}),`
|
|
15
|
-
`,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"var(--size-lg)"})," is for large navigation elements (e.g. sidebar icons & drawer tabs)."]}),`
|
|
16
|
-
`,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"var(--size)"})," is the default size for buttons & inputs."]}),`
|
|
17
|
-
`,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"var(--size-sm)"})," is for small buttons & inputs."]}),`
|
|
18
|
-
`,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"var(--size-xs)"})," is for checkboxes, toggles & radios."]}),`
|
|
19
|
-
`]})]})}function u(s={}){const{wrapper:n}={...r(),...s.components};return n?e.jsx(n,{...s,children:e.jsx(i,{...s})}):i(s)}export{u as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./jsx-runtime-eps93zm2.js";import{c as o}from"./index-Bk2sglWO.js";const u="_page_beskc_1",m="_scroll_beskc_23",a={page:u,scroll:m},d=({children:r,left:s="var(--size-sidebar)",padding:e=!0,scroll:n=!0,top:t="var(--size-topbar)"})=>{const l=typeof e=="string"?e:e===!0?"var(--padding)":"0";return i.jsx("div",{className:o(a.page,n?a.scroll:""),style:{left:s,padding:l,top:t},children:r})};d.__docgenInfo={description:"",methods:[],displayName:"Page",props:{children:{required:!1,tsType:{name:"ReactNode"},description:""},padding:{required:!1,tsType:{name:"union",raw:"boolean | TStringOrNumber",elements:[{name:"boolean"},{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]}]},description:"",defaultValue:{value:"true",computed:!1}},left:{required:!1,tsType:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]},description:"",defaultValue:{value:"'var(--size-sidebar)'",computed:!1}},scroll:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}},top:{required:!1,tsType:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]},description:"",defaultValue:{value:"'var(--size-topbar)'",computed:!1}}}};export{d as P};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._page_beskc_1{background-color:var(--color-background);position:fixed;right:0;bottom:0;display:flex;flex-direction:column;overflow:hidden}@media print{._page_beskc_1{background-color:#fff;color:#000!important;position:relative!important;left:0!important;top:0!important;overflow:visible!important;padding:0!important;width:100%;height:100%}}._page_beskc_1._scroll_beskc_23{overflow:auto}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._printHeader_o7xxx_1{display:none!important}@media print{._printHeader_o7xxx_1{display:block!important;margin-left:auto;height:auto}}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-eps93zm2.js";import{P as i}from"./page-7SSpdYhb.js";import{T as d}from"./top-bar-Bjf6PQE1.js";import{S as c}from"./side-bar-wpFQ5NEE.js";import{H as s}from"./heading-CRNoBc7q.js";import{L as D}from"./logo-BVP9045W.js";import"./index-DhsZuJvc.js";import"./index-Bk2sglWO.js";import"./icon-BSFY3vDO.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./inheritsLoose-DP0QEDDI.js";import"./index-CEuq6vkz.js";import"./disabled-context-rmpd7YJS.js";import"./common-types-Sih75Sav.js";import"./button-Cbv7WK6k.js";import"./spinner-AWUe4xwQ.js";import"./tooltip-1V7clEnw.js";import"./index-CUZDtIZe.js";import"./actions-Bax0KeqM.js";import"./lodash-c4VUpsOs.js";import"./types-BmbYqTX_.js";import"./types-Dx2TtIG9.js";import"./badge-CLQ59MDF.js";import"./index-BI4_Bp97.js";import"./drawer-DaQ1xGjV.js";import"./help-icon-Buhx5nl6.js";const W="_printHeader_o7xxx_1",L={printHeader:W},I=({logo:F,alt:V,logoWidth:C="100px"})=>e.jsx("img",{src:F,alt:V,className:L.printHeader,style:{width:C}});I.__docgenInfo={description:"",methods:[],displayName:"PrintHeader",props:{logo:{required:!0,tsType:{name:"string"},description:""},logoWidth:{required:!1,tsType:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]},description:"",defaultValue:{value:"'100px'",computed:!1}},alt:{required:!0,tsType:{name:"string"},description:""}}};const t="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum vestibulum velit vitae dolor eleifend, quis cursus tortor tempor. Etiam laoreet tempor turpis ut tristique. In hac habitasse platea dictumst. Ut viverra vestibulum facilisis. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Curabitur commodo egestas magna, at molestie quam euismod ut. Aliquam suscipit at velit vel venenatis. Morbi rhoncus odio neque, volutpat finibus risus hendrerit quis. Sed vitae justo at elit dictum semper. Suspendisse non luctus nulla. Suspendisse condimentum tellus ac elit ornare porttitor. In dignissim libero erat, eget varius nisl tincidunt sed. Duis vel viverra dolor. Mauris nisl lorem, consectetur sed ullamcorper consequat, dictum eu diam. Fusce pretium velit vitae urna tempor, id luctus velit lacinia. Suspendisse lacinia, ante eget egestas mollis, magna magna imperdiet lacus, vitae molestie purus urna et ipsum. Nulla facilisi. Nam augue sapien, dapibus id nunc a, iaculis vulputate urna. Nullam sit amet rutrum tortor. Fusce vel augue vel orci porttitor auctor. Vivamus pulvinar urna quam, non posuere lorem mollis fringilla. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Quisque porta odio quis urna pulvinar hendrerit. Nam eros sapien, cursus at maximus id, suscipit et erat. Praesent semper consectetur lacus eu suscipit. In mi ex, feugiat sagittis facilisis ut, fermentum quis mi. Nunc egestas tempor pharetra. Nulla condimentum massa non facilisis bibendum. Sed at justo eget massa lobortis ultricies sit amet eu ex. Nullam auctor ex ac elit laoreet, vitae convallis sem egestas. Maecenas gravida eros sit amet orci dapibus, rutrum gravida nisl finibus. Pellentesque vitae lorem vulputate, accumsan ligula quis, rhoncus urna. Vestibulum velit ex, venenatis ut sagittis id, malesuada vel diam. Suspendisse et turpis eu metus luctus fermentum at consectetur est. Suspendisse sit amet tincidunt dolor. Curabitur imperdiet congue urna in fringilla. Donec nec accumsan purus. Cras et blandit turpis. Curabitur sed libero nibh. Morbi scelerisque, metus vel cursus dapibus, quam lorem placerat odio, at rhoncus diam diam eget nisi. Nulla sagittis posuere ex, vel scelerisque justo egestas vel. Duis aliquam mollis est id tristique. Ut eros libero, faucibus sed ante sit amet, euismod condimentum dolor. Aenean feugiat augue tortor, id egestas tellus porta eu. Maecenas sed dui vitae erat fringilla lacinia. Etiam nisi felis, rhoncus nec vestibulum vel, mattis eget ligula. Cras sed quam sed nisi mollis eleifend. Nulla commodo, dolor nec bibendum finibus, lorem quam tincidunt lectus, sed volutpat lorem ligula vitae leo. Aliquam efficitur eu felis at dignissim. Fusce auctor eleifend justo, ut varius sapien ullamcorper mattis. Curabitur suscipit pellentesque augue sed bibendum.",le={title:"Layout/Page",component:i,parameters:{layout:"fullscreen",docs:{story:{inline:!1,iframeHeight:400}}},argTypes:{top:{control:"text"},left:{control:"text"},padding:{control:{type:"boolean"}}}},a=()=>e.jsxs(e.Fragment,{children:[e.jsx(d,{}),e.jsx(c,{options:{title:"",sections:[]}}),e.jsxs(i,{children:[e.jsx(s,{top:!0,children:"Heading"}),t]})]}),r=()=>e.jsxs(e.Fragment,{children:[e.jsx(d,{}),e.jsx(c,{options:{title:"",sections:[]}}),e.jsxs(i,{padding:!1,children:[e.jsx(s,{top:!0,children:"Heading"}),t]})]}),o=()=>e.jsxs(e.Fragment,{children:[e.jsx(d,{}),e.jsx(c,{options:{title:"",sections:[]}}),e.jsxs(i,{scroll:!1,children:[e.jsx(s,{top:!0,children:"Heading"}),t]})]}),n=()=>e.jsxs(e.Fragment,{children:[e.jsx(c,{options:{title:"",sections:[]}}),e.jsxs(i,{top:0,children:[e.jsx(s,{top:!0,children:"Heading"}),t]})]}),u=()=>e.jsxs(e.Fragment,{children:[e.jsx(d,{}),e.jsxs(i,{left:0,children:[e.jsx(s,{top:!0,children:"Heading"}),t]})]}),l=()=>e.jsxs(e.Fragment,{children:[e.jsx(I,{logo:D,logoWidth:"60px",alt:"company logo"}),e.jsx(d,{}),e.jsx(c,{options:{title:"",sections:[]}}),e.jsxs(i,{children:[e.jsx(s,{top:!0,children:"Heading"}),t]})]});a.__docgenInfo={description:"",methods:[],displayName:"Default"};r.__docgenInfo={description:"",methods:[],displayName:"NoPadding"};o.__docgenInfo={description:"",methods:[],displayName:"NoScroll"};n.__docgenInfo={description:"",methods:[],displayName:"NoTopBar"};u.__docgenInfo={description:"",methods:[],displayName:"NoSideBar"};l.__docgenInfo={description:"",methods:[],displayName:"WithPrintHeader"};var m,p,g;a.parameters={...a.parameters,docs:{...(m=a.parameters)==null?void 0:m.docs,source:{originalSource:`() => <>
|
|
2
|
-
<TopBar />
|
|
3
|
-
<SideBar options={{
|
|
4
|
-
title: '',
|
|
5
|
-
sections: []
|
|
6
|
-
}} />
|
|
7
|
-
<Page>
|
|
8
|
-
<Heading top>Heading</Heading>
|
|
9
|
-
{placeholder}
|
|
10
|
-
</Page>
|
|
11
|
-
</>`,...(g=(p=a.parameters)==null?void 0:p.docs)==null?void 0:g.source}}};var f,h,x;r.parameters={...r.parameters,docs:{...(f=r.parameters)==null?void 0:f.docs,source:{originalSource:`() => <>
|
|
12
|
-
<TopBar />
|
|
13
|
-
<SideBar options={{
|
|
14
|
-
title: '',
|
|
15
|
-
sections: []
|
|
16
|
-
}} />
|
|
17
|
-
<Page padding={false}>
|
|
18
|
-
<Heading top>Heading</Heading>
|
|
19
|
-
{placeholder}
|
|
20
|
-
</Page>
|
|
21
|
-
</>`,...(x=(h=r.parameters)==null?void 0:h.docs)==null?void 0:x.source}}};var v,b,H;o.parameters={...o.parameters,docs:{...(v=o.parameters)==null?void 0:v.docs,source:{originalSource:`() => <>
|
|
22
|
-
<TopBar />
|
|
23
|
-
<SideBar options={{
|
|
24
|
-
title: '',
|
|
25
|
-
sections: []
|
|
26
|
-
}} />
|
|
27
|
-
<Page scroll={false}>
|
|
28
|
-
<Heading top>Heading</Heading>
|
|
29
|
-
{placeholder}
|
|
30
|
-
</Page>
|
|
31
|
-
</>`,...(H=(b=o.parameters)==null?void 0:b.docs)==null?void 0:H.source}}};var j,N,S;n.parameters={...n.parameters,docs:{...(j=n.parameters)==null?void 0:j.docs,source:{originalSource:`() => <>
|
|
32
|
-
<SideBar options={{
|
|
33
|
-
title: '',
|
|
34
|
-
sections: []
|
|
35
|
-
}} />
|
|
36
|
-
<Page top={0}>
|
|
37
|
-
<Heading top>Heading</Heading>
|
|
38
|
-
{placeholder}
|
|
39
|
-
</Page>
|
|
40
|
-
</>`,...(S=(N=n.parameters)==null?void 0:N.docs)==null?void 0:S.source}}};var q,P,_;u.parameters={...u.parameters,docs:{...(q=u.parameters)==null?void 0:q.docs,source:{originalSource:`() => <>
|
|
41
|
-
<TopBar />
|
|
42
|
-
<Page left={0}>
|
|
43
|
-
<Heading top>Heading</Heading>
|
|
44
|
-
{placeholder}
|
|
45
|
-
</Page>
|
|
46
|
-
</>`,...(_=(P=u.parameters)==null?void 0:P.docs)==null?void 0:_.source}}};var y,B,T;l.parameters={...l.parameters,docs:{...(y=l.parameters)==null?void 0:y.docs,source:{originalSource:`() => <>
|
|
47
|
-
<PrintHeader logo={LogoSVG} logoWidth="60px" alt="company logo" />
|
|
48
|
-
<TopBar />
|
|
49
|
-
<SideBar options={{
|
|
50
|
-
title: '',
|
|
51
|
-
sections: []
|
|
52
|
-
}} />
|
|
53
|
-
<Page>
|
|
54
|
-
<Heading top>Heading</Heading>
|
|
55
|
-
{placeholder}
|
|
56
|
-
</Page>
|
|
57
|
-
</>`,...(T=(B=l.parameters)==null?void 0:B.docs)==null?void 0:T.source}}};const de=["Default","NoPadding","NoScroll","NoTopBar","NoSideBar","WithPrintHeader"];export{a as Default,r as NoPadding,o as NoScroll,u as NoSideBar,n as NoTopBar,l as WithPrintHeader,de as __namedExportsOrder,le as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./jsx-runtime-eps93zm2.js";import{r as b}from"./index-DhsZuJvc.js";import{I as l}from"./common-types-Sih75Sav.js";import{S as C}from"./select-Cwks-WA0.js";import{I}from"./input-Db9WkmPP.js";import{B as p}from"./button-Cbv7WK6k.js";import{I as N}from"./input-group-BaRSJAEN.js";import{I as j}from"./input-group-addon-D68iUKV2.js";const E=(n,i)=>i||n&&n.reduce((e,t)=>t.selected?Number(t.value):e,10)||10,_=(n,i)=>{if(!i||!n)return 10;const{options:e,value:t}=i,a=Number(t);return a===0?1:Math.ceil(n/E(e,a))},S=(n,i,e="Selected page must be a positive whole number between 1 and")=>{const t=`${e} ${i}`,a={valid:!0,error:null};return n===""?a:!n.match(/^\d+$/g)||parseInt(n)<=0||parseInt(n)>i?{valid:!1,error:t}:a},P="_paginationContainer_1tmz4_1",R={paginationContainer:P},T=({pagination:n})=>{const{rowCount:i,selectedPage:e,small:t,onSelectPage:a,rowsPerPage:r,errorMessageTemplate:g,testIds:m}=n,d=Number(r==null?void 0:r.value)===0,u=_(i,r),[f,h]=b.useState(String(e));b.useEffect(()=>{h(String(e))},[e]);const{error:v}=S(f,u,g),c=s=>{const{valid:x}=S(s,u,g);h(s),x&&s!==""&&a&&a(Number(s))};return o.jsxs("div",{className:R.paginationContainer,children:[r&&o.jsx("div",{style:{flexShrink:0},children:o.jsx(C,{onChange:s=>{r.onChange&&r.onChange(s),c(String(1))},options:r.options,native:!!r.options,small:t,width:"auto",value:r.value})}),o.jsx(p,{small:t,round:!0,basic:!0,icon:l.CHEVRON_DOUBLE_LEFT,onClick:()=>c(String(1)),disabled:d||e===1}),o.jsx(p,{small:t,round:!0,basic:!0,icon:l.CHEVRON_LEFT,onClick:()=>c(String(Number(e)-1)),disabled:d||e===1}),o.jsxs(N,{small:t,width:"auto",children:[o.jsx(I,{right:!0,value:f,placeholder:String(e),onChange:s=>c(s.target.value),width:"50px",disabled:d||u<=1,error:v}),o.jsxs(j,{children:["of ",u]})]}),o.jsx(p,{small:t,round:!0,basic:!0,icon:l.CHEVRON_RIGHT,onClick:()=>c(String(Number(e)+1)),disabled:d||e===u}),o.jsx(p,{small:t,round:!0,basic:!0,icon:l.CHEVRON_DOUBLE_RIGHT,onClick:()=>c(String(u)),disabled:d||e===u,testId:m==null?void 0:m.doubleRightBtn})]})};T.__docgenInfo={description:"",methods:[],displayName:"Pagination",props:{pagination:{required:!0,tsType:{name:"IPagination"},description:""}}};export{T as P};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._paginationContainer_1tmz4_1{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
|