@banzamel/mineralui 2.1.1 → 2.1.2
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/README.md +1 -1
- package/dist/{MAvatar-BcO8hMnU.js → MAvatar-DtJCj3dD.js} +1 -1
- package/dist/{MAvatar-BcO8hMnU.js.map → MAvatar-DtJCj3dD.js.map} +1 -1
- package/dist/{MAvatar-C4N2ztLf.cjs → MAvatar-bUWENcq-.cjs} +2 -2
- package/dist/{MAvatar-C4N2ztLf.cjs.map → MAvatar-bUWENcq-.cjs.map} +1 -1
- package/dist/{MButton-B8kFTOPJ.cjs → MButton-R08y1HCT.cjs} +2 -2
- package/dist/{MButton-B8kFTOPJ.cjs.map → MButton-R08y1HCT.cjs.map} +1 -1
- package/dist/{MButtonGroup-C3Ar0gfk.cjs → MButtonGroup-C-LiXWRC.cjs} +2 -2
- package/dist/{MButtonGroup-C3Ar0gfk.cjs.map → MButtonGroup-C-LiXWRC.cjs.map} +1 -1
- package/dist/{MCard-szs5kIek.cjs → MCard-1OVOl4Ql.cjs} +2 -2
- package/dist/{MCard-szs5kIek.cjs.map → MCard-1OVOl4Ql.cjs.map} +1 -1
- package/dist/{MCard-dLMQQ97e.js → MCard-azpp4YVD.js} +1 -1
- package/dist/{MCard-dLMQQ97e.js.map → MCard-azpp4YVD.js.map} +1 -1
- package/dist/{MCheckbox-CATWU11D.cjs → MCheckbox-CM5HJQWW.cjs} +2 -2
- package/dist/{MCheckbox-CATWU11D.cjs.map → MCheckbox-CM5HJQWW.cjs.map} +1 -1
- package/dist/{MConflictIllustration-Mnz1q7Ey.cjs → MConflictIllustration-B2AtfpYO.cjs} +2 -2
- package/dist/{MConflictIllustration-Mnz1q7Ey.cjs.map → MConflictIllustration-B2AtfpYO.cjs.map} +1 -1
- package/dist/{MDetailList-BBgUaSDJ.cjs → MDetailList-BhKBJwpd.cjs} +2 -2
- package/dist/{MDetailList-BBgUaSDJ.cjs.map → MDetailList-BhKBJwpd.cjs.map} +1 -1
- package/dist/{MDetailList-zlwdeA-r.js → MDetailList-BjvZUyNj.js} +2 -2
- package/dist/{MDetailList-zlwdeA-r.js.map → MDetailList-BjvZUyNj.js.map} +1 -1
- package/dist/{MDropdownMenu-omTEUh4V.js → MDropdownMenu-CZmU3uku.js} +1 -1
- package/dist/{MDropdownMenu-omTEUh4V.js.map → MDropdownMenu-CZmU3uku.js.map} +1 -1
- package/dist/{MDropdownMenu-1RqWjxHp.cjs → MDropdownMenu-hXaIMkAj.cjs} +2 -2
- package/dist/{MDropdownMenu-1RqWjxHp.cjs.map → MDropdownMenu-hXaIMkAj.cjs.map} +1 -1
- package/dist/{MGrid-B2qzYD6S.cjs → MGrid-B_0kFUws.cjs} +2 -2
- package/dist/{MGrid-B2qzYD6S.cjs.map → MGrid-B_0kFUws.cjs.map} +1 -1
- package/dist/{MGrid-Cy44dWyC.js → MGrid-CYL3cbUI.js} +1 -1
- package/dist/{MGrid-Cy44dWyC.js.map → MGrid-CYL3cbUI.js.map} +1 -1
- package/dist/{MHeading-CyuxSnhl.cjs → MHeading-BLnb3dNv.cjs} +2 -2
- package/dist/{MHeading-CyuxSnhl.cjs.map → MHeading-BLnb3dNv.cjs.map} +1 -1
- package/dist/{MI18nProvider-C90EVyFz.cjs → MI18nProvider-Cg-vxV6j.cjs} +2 -2
- package/dist/{MI18nProvider-C90EVyFz.cjs.map → MI18nProvider-Cg-vxV6j.cjs.map} +1 -1
- package/dist/{MInput-Cw9ZVcNO.cjs → MInput-BhTAfpYS.cjs} +2 -2
- package/dist/{MInput-Cw9ZVcNO.cjs.map → MInput-BhTAfpYS.cjs.map} +1 -1
- package/dist/{MInput-Baokf17V.js → MInput-CgtX0fUN.js} +1 -1
- package/dist/{MInput-Baokf17V.js.map → MInput-CgtX0fUN.js.map} +1 -1
- package/dist/{MInputCVC-DNzDAbfU.js → MInputCVC-BGYhUGDE.js} +3 -3
- package/dist/{MInputCVC-DNzDAbfU.js.map → MInputCVC-BGYhUGDE.js.map} +1 -1
- package/dist/{MInputCVC-Bqcp5Uu3.cjs → MInputCVC-E2Z2hYfy.cjs} +2 -2
- package/dist/{MInputCVC-Bqcp5Uu3.cjs.map → MInputCVC-E2Z2hYfy.cjs.map} +1 -1
- package/dist/{MInputSearch-D9bp1QAz.cjs → MInputSearch-DE9Jqp0i.cjs} +2 -2
- package/dist/{MInputSearch-D9bp1QAz.cjs.map → MInputSearch-DE9Jqp0i.cjs.map} +1 -1
- package/dist/{MInputSearch-Bswi-Kj0.js → MInputSearch-DEr5HBgw.js} +2 -2
- package/dist/{MInputSearch-Bswi-Kj0.js.map → MInputSearch-DEr5HBgw.js.map} +1 -1
- package/dist/{MKbd-CiwDwFwA.cjs → MKbd-n4fhKIxb.cjs} +2 -2
- package/dist/{MKbd-CiwDwFwA.cjs.map → MKbd-n4fhKIxb.cjs.map} +1 -1
- package/dist/{MLink-B7gXA8qY.cjs → MLink-Biipj7xz.cjs} +2 -2
- package/dist/{MLink-B7gXA8qY.cjs.map → MLink-Biipj7xz.cjs.map} +1 -1
- package/dist/MLoader-CnvWqFtA.js +41 -0
- package/dist/MLoader-CnvWqFtA.js.map +1 -0
- package/dist/MLoader-XcpKlLrd.cjs +2 -0
- package/dist/MLoader-XcpKlLrd.cjs.map +1 -0
- package/dist/{MPagination-DpUtB6t6.js → MPagination-7yTbB8dZ.js} +1 -1
- package/dist/{MPagination-DpUtB6t6.js.map → MPagination-7yTbB8dZ.js.map} +1 -1
- package/dist/{MPagination-C2GmGkVA.cjs → MPagination-DTqT33Mx.cjs} +2 -2
- package/dist/{MPagination-C2GmGkVA.cjs.map → MPagination-DTqT33Mx.cjs.map} +1 -1
- package/dist/{MPopover-BVBN5SJi.cjs → MPopover-hDqrn317.cjs} +2 -2
- package/dist/{MPopover-BVBN5SJi.cjs.map → MPopover-hDqrn317.cjs.map} +1 -1
- package/dist/{MPortal-Djrw2WhD.cjs → MPortal-BciZHNDC.cjs} +2 -2
- package/dist/{MPortal-Djrw2WhD.cjs.map → MPortal-BciZHNDC.cjs.map} +1 -1
- package/dist/{MSimpleGrid-BVeCK9Ci.js → MSimpleGrid-BWKurW6H.js} +1 -1
- package/dist/{MSimpleGrid-BVeCK9Ci.js.map → MSimpleGrid-BWKurW6H.js.map} +1 -1
- package/dist/{MSimpleGrid-BR352NiK.cjs → MSimpleGrid-BwNfaxQP.cjs} +2 -2
- package/dist/{MSimpleGrid-BR352NiK.cjs.map → MSimpleGrid-BwNfaxQP.cjs.map} +1 -1
- package/dist/{MSkeleton-DyQBeuVT.cjs → MSkeleton-CLSU5pL6.cjs} +2 -2
- package/dist/{MSkeleton-DyQBeuVT.cjs.map → MSkeleton-CLSU5pL6.cjs.map} +1 -1
- package/dist/{MSlider-Ds2Fls86.cjs → MSlider-DZnMB49q.cjs} +2 -2
- package/dist/{MSlider-Ds2Fls86.cjs.map → MSlider-DZnMB49q.cjs.map} +1 -1
- package/dist/{MStack-BdVvJN5S.cjs → MStack-BP_BUeCc.cjs} +2 -2
- package/dist/{MStack-BdVvJN5S.cjs.map → MStack-BP_BUeCc.cjs.map} +1 -1
- package/dist/{MStack-h11pHEmc.js → MStack-CSCw6to2.js} +1 -1
- package/dist/{MStack-h11pHEmc.js.map → MStack-CSCw6to2.js.map} +1 -1
- package/dist/{MSubText-DWNMJupD.cjs → MSubText-VHsgFsv2.cjs} +2 -2
- package/dist/{MSubText-DWNMJupD.cjs.map → MSubText-VHsgFsv2.cjs.map} +1 -1
- package/dist/{MSurface-BS9l7GDH.cjs → MSurface-CYeVFOw_.cjs} +2 -2
- package/dist/{MSurface-BS9l7GDH.cjs.map → MSurface-CYeVFOw_.cjs.map} +1 -1
- package/dist/{MTag-BwQbycZO.cjs → MTag-BtlOVMRl.cjs} +2 -2
- package/dist/{MTag-BwQbycZO.cjs.map → MTag-BtlOVMRl.cjs.map} +1 -1
- package/dist/{MText-Cjt1oTPr.cjs → MText-j6Zbbj5Y.cjs} +2 -2
- package/dist/{MText-Cjt1oTPr.cjs.map → MText-j6Zbbj5Y.cjs.map} +1 -1
- package/dist/{MTooltip-gpvKWQzD.cjs → MTooltip-BEfO9jTe.cjs} +2 -2
- package/dist/{MTooltip-gpvKWQzD.cjs.map → MTooltip-BEfO9jTe.cjs.map} +1 -1
- package/dist/{MTooltip-Ctyjwxv-.js → MTooltip-BTJkzOah.js} +1 -1
- package/dist/{MTooltip-Ctyjwxv-.js.map → MTooltip-BTJkzOah.js.map} +1 -1
- package/dist/{MTreeView-BS60bIj7.cjs → MTreeView-1IqmVPMv.cjs} +2 -2
- package/dist/{MTreeView-BS60bIj7.cjs.map → MTreeView-1IqmVPMv.cjs.map} +1 -1
- package/dist/{MTreeView-DTsi4bye.js → MTreeView-DQaRF0ty.js} +1 -1
- package/dist/{MTreeView-DTsi4bye.js.map → MTreeView-DQaRF0ty.js.map} +1 -1
- package/dist/{arduino-CA8n1Qq3.cjs → arduino-DdDHMIWB.cjs} +1 -1
- package/dist/{arduino-CA8n1Qq3.cjs.map → arduino-DdDHMIWB.cjs.map} +1 -1
- package/dist/{arduino-WKgN2ikT.js → arduino-UeOrXakL.js} +1 -1
- package/dist/{arduino-WKgN2ikT.js.map → arduino-UeOrXakL.js.map} +1 -1
- package/dist/{bash-DObE5DDq.cjs → bash-B17_F5Sw.cjs} +1 -1
- package/dist/{bash-DObE5DDq.cjs.map → bash-B17_F5Sw.cjs.map} +1 -1
- package/dist/{bash-vBtVVub9.js → bash-CrHemXky.js} +1 -1
- package/dist/{bash-vBtVVub9.js.map → bash-CrHemXky.js.map} +1 -1
- package/dist/{c-7RiNX--m.js → c-D9302r2r.js} +1 -1
- package/dist/{c-7RiNX--m.js.map → c-D9302r2r.js.map} +1 -1
- package/dist/{c-Bb-MtVny.cjs → c-ODLxeMV_.cjs} +1 -1
- package/dist/{c-Bb-MtVny.cjs.map → c-ODLxeMV_.cjs.map} +1 -1
- package/dist/cards-BBYh24NQ.cjs +2 -0
- package/dist/cards-BBYh24NQ.cjs.map +1 -0
- package/dist/{cards-BkRqUJ2V.js → cards-Du2kX3Br.js} +377 -359
- package/dist/{cards-BkRqUJ2V.js.map → cards-Du2kX3Br.js.map} +1 -1
- package/dist/cards.cjs +1 -1
- package/dist/cards.js +2 -2
- package/dist/components/cards/MCardGrid/MCardGrid.d.ts +1 -1
- package/dist/components/cards/MCardGrid/MCardGrid.types.d.ts +16 -0
- package/dist/components/data/MDataTable/MDataTable.d.ts +1 -1
- package/dist/components/data/MDataTable/MDataTable.types.d.ts +16 -0
- package/dist/components/data/useMCardGrid.d.ts +2 -0
- package/dist/components/data/useMTable.d.ts +2 -0
- package/dist/{controls-CSTIosnc.js → controls-Cbv4FmNq.js} +2 -2
- package/dist/{controls-CSTIosnc.js.map → controls-Cbv4FmNq.js.map} +1 -1
- package/dist/{controls-BopaNWb_.cjs → controls-DrdHBBtm.cjs} +2 -2
- package/dist/{controls-BopaNWb_.cjs.map → controls-DrdHBBtm.cjs.map} +1 -1
- package/dist/controls.cjs +1 -1
- package/dist/controls.js +1 -1
- package/dist/{core-o3cw16Db.cjs → core-DBpQf3uY.cjs} +1 -1
- package/dist/{core-o3cw16Db.cjs.map → core-DBpQf3uY.cjs.map} +1 -1
- package/dist/{core-DC6zSfZo.js → core-yRqh2XLu.js} +1 -1
- package/dist/{core-DC6zSfZo.js.map → core-yRqh2XLu.js.map} +1 -1
- package/dist/{cpp-CaNnFjgy.js → cpp-CLYSpJBB.js} +1 -1
- package/dist/{cpp-CaNnFjgy.js.map → cpp-CLYSpJBB.js.map} +1 -1
- package/dist/{cpp-BVKrJvso.cjs → cpp-DuTgLZC1.cjs} +1 -1
- package/dist/{cpp-BVKrJvso.cjs.map → cpp-DuTgLZC1.cjs.map} +1 -1
- package/dist/{css-NqBDP7ZC.js → css-BgGh0eG1.js} +1 -1
- package/dist/{css-NqBDP7ZC.js.map → css-BgGh0eG1.js.map} +1 -1
- package/dist/{css-C2sjPfLl.cjs → css-D0f-qByc.cjs} +1 -1
- package/dist/{css-C2sjPfLl.cjs.map → css-D0f-qByc.cjs.map} +1 -1
- package/dist/data-BgTkBMkP.js +674 -0
- package/dist/data-BgTkBMkP.js.map +1 -0
- package/dist/data-Csb03WFo.cjs +2 -0
- package/dist/data-Csb03WFo.cjs.map +1 -0
- package/dist/data.cjs +1 -1
- package/dist/data.js +2 -2
- package/dist/{display-B7Wh5nnM.js → display-D9H8MP8D.js} +15 -15
- package/dist/{display-B7Wh5nnM.js.map → display-D9H8MP8D.js.map} +1 -1
- package/dist/{display-BgZbdTDd.cjs → display-IMWtdmxS.cjs} +2 -2
- package/dist/{display-BgZbdTDd.cjs.map → display-IMWtdmxS.cjs.map} +1 -1
- package/dist/display.cjs +1 -1
- package/dist/display.js +2 -2
- package/dist/{dropdowns-Befc3lmC.cjs → dropdowns-D_nUdflh.cjs} +2 -2
- package/dist/{dropdowns-Befc3lmC.cjs.map → dropdowns-D_nUdflh.cjs.map} +1 -1
- package/dist/{dropdowns-DGvRs-VE.js → dropdowns-oj4--GbK.js} +3 -3
- package/dist/{dropdowns-DGvRs-VE.js.map → dropdowns-oj4--GbK.js.map} +1 -1
- package/dist/dropdowns.cjs +1 -1
- package/dist/dropdowns.js +1 -1
- package/dist/{feedback-C445FEHb.js → feedback-D7BTlioj.js} +79 -114
- package/dist/feedback-D7BTlioj.js.map +1 -0
- package/dist/feedback-u1ssUT7e.cjs +2 -0
- package/dist/{feedback-C8RfsfYJ.cjs.map → feedback-u1ssUT7e.cjs.map} +1 -1
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.js +5 -4
- package/dist/{form-DSlAmTT1.cjs → form-BWGLrCPi.cjs} +2 -2
- package/dist/{form-DSlAmTT1.cjs.map → form-BWGLrCPi.cjs.map} +1 -1
- package/dist/{form-BWWLNji0.js → form-CgH1hioG.js} +1 -1
- package/dist/{form-BWWLNji0.js.map → form-CgH1hioG.js.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +1 -1
- package/dist/i18n.cjs +1 -1
- package/dist/{icons-DX_cScBq.cjs → icons-BfdQ45F2.cjs} +2 -2
- package/dist/{icons-DX_cScBq.cjs.map → icons-BfdQ45F2.cjs.map} +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/illustrations.cjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +31 -30
- package/dist/{inputs-BZxorlLv.js → inputs-DQrjGfwd.js} +2 -2
- package/dist/{inputs-BZxorlLv.js.map → inputs-DQrjGfwd.js.map} +1 -1
- package/dist/{inputs-BiZXyZSE.cjs → inputs-DsFdc0Io.cjs} +2 -2
- package/dist/{inputs-BiZXyZSE.cjs.map → inputs-DsFdc0Io.cjs.map} +1 -1
- package/dist/inputs.cjs +1 -1
- package/dist/inputs.js +4 -4
- package/dist/{javascript-BgwyrBZi.cjs → javascript-CGjvHPZ1.cjs} +1 -1
- package/dist/{javascript-BgwyrBZi.cjs.map → javascript-CGjvHPZ1.cjs.map} +1 -1
- package/dist/{javascript-BltQGQAn.js → javascript-CX3JhsYu.js} +1 -1
- package/dist/{javascript-BltQGQAn.js.map → javascript-CX3JhsYu.js.map} +1 -1
- package/dist/{json-DWmLrT_r.cjs → json-B8svQsK0.cjs} +1 -1
- package/dist/{json-DWmLrT_r.cjs.map → json-B8svQsK0.cjs.map} +1 -1
- package/dist/{json-DbCISZXi.js → json-BPIcVdlp.js} +1 -1
- package/dist/{json-DbCISZXi.js.map → json-BPIcVdlp.js.map} +1 -1
- package/dist/{layout-Ct6ViwDQ.cjs → layout-B_2yBP1M.cjs} +2 -2
- package/dist/{layout-Ct6ViwDQ.cjs.map → layout-B_2yBP1M.cjs.map} +1 -1
- package/dist/{layout-CnEOTJnJ.js → layout-BuvV-N9H.js} +4 -4
- package/dist/{layout-CnEOTJnJ.js.map → layout-BuvV-N9H.js.map} +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.js +5 -5
- package/dist/{licensing-hMT26Vnv.cjs → licensing-DysMClel.cjs} +2 -2
- package/dist/{licensing-hMT26Vnv.cjs.map → licensing-DysMClel.cjs.map} +1 -1
- package/dist/{locale-BNyzqXAU.js → locale-CS1-IY_I.js} +1 -1
- package/dist/{locale-BNyzqXAU.js.map → locale-CS1-IY_I.js.map} +1 -1
- package/dist/{locale-C5ik0c3d.cjs → locale-CbnstsMH.cjs} +2 -2
- package/dist/{locale-C5ik0c3d.cjs.map → locale-CbnstsMH.cjs.map} +1 -1
- package/dist/{media-DxnELIZO.js → media-5IsYrhIQ.js} +1 -1
- package/dist/{media-DxnELIZO.js.map → media-5IsYrhIQ.js.map} +1 -1
- package/dist/{media-DZaGKh5V.cjs → media-Xt6MkVhb.cjs} +2 -2
- package/dist/{media-DZaGKh5V.cjs.map → media-Xt6MkVhb.cjs.map} +1 -1
- package/dist/media.cjs +1 -1
- package/dist/media.js +2 -2
- package/dist/{overlays-WsQqxqk1.cjs → overlays-BAJDNT1m.cjs} +2 -2
- package/dist/{overlays-WsQqxqk1.cjs.map → overlays-BAJDNT1m.cjs.map} +1 -1
- package/dist/{overlays-BfIrSHDo.js → overlays-WA3jnWTG.js} +6 -6
- package/dist/{overlays-BfIrSHDo.js.map → overlays-WA3jnWTG.js.map} +1 -1
- package/dist/overlays.cjs +1 -1
- package/dist/overlays.js +3 -3
- package/dist/{php-dSXzrC_Z.js → php-CBRzjinf.js} +1 -1
- package/dist/{php-dSXzrC_Z.js.map → php-CBRzjinf.js.map} +1 -1
- package/dist/{php-CssmZWrI.cjs → php-CKyelegh.cjs} +1 -1
- package/dist/{php-CssmZWrI.cjs.map → php-CKyelegh.cjs.map} +1 -1
- package/dist/primitives.cjs +1 -1
- package/dist/style-runtime.cjs +1 -1
- package/dist/style-runtime.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/{theme-DltOEniv.cjs → theme-BfNZicWk.cjs} +2 -2
- package/dist/{theme-DltOEniv.cjs.map → theme-BfNZicWk.cjs.map} +1 -1
- package/dist/theme.cjs +1 -1
- package/dist/{typescript-DeaMWtYF.cjs → typescript-D6PDzwkM.cjs} +1 -1
- package/dist/{typescript-DeaMWtYF.cjs.map → typescript-D6PDzwkM.cjs.map} +1 -1
- package/dist/{typescript-CxKdKTKz.js → typescript-Xt3Sotw5.js} +1 -1
- package/dist/{typescript-CxKdKTKz.js.map → typescript-Xt3Sotw5.js.map} +1 -1
- package/dist/{typography-vZwd5E5h.cjs → typography-Dk9kIORI.cjs} +2 -2
- package/dist/{typography-vZwd5E5h.cjs.map → typography-Dk9kIORI.cjs.map} +1 -1
- package/dist/typography.cjs +1 -1
- package/dist/{useGhostText-Nw9XCpWS.cjs → useGhostText-Dmkw3Am8.cjs} +2 -2
- package/dist/{useGhostText-Nw9XCpWS.cjs.map → useGhostText-Dmkw3Am8.cjs.map} +1 -1
- package/dist/{useInteractionEffect-Gs9HBi2T.cjs → useInteractionEffect-DFTdcWHl.cjs} +2 -2
- package/dist/{useInteractionEffect-Gs9HBi2T.cjs.map → useInteractionEffect-DFTdcWHl.cjs.map} +1 -1
- package/dist/{useKeyboardNav-DDN-oeqd.cjs → useKeyboardNav-HVG9JFD2.cjs} +2 -2
- package/dist/{useKeyboardNav-DDN-oeqd.cjs.map → useKeyboardNav-HVG9JFD2.cjs.map} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/{xml-BUuYcpx2.cjs → xml-4YlaGgjP.cjs} +1 -1
- package/dist/{xml-BUuYcpx2.cjs.map → xml-4YlaGgjP.cjs.map} +1 -1
- package/dist/{xml-BPoVPJlJ.js → xml-CrpWqcDk.js} +1 -1
- package/dist/{xml-BPoVPJlJ.js.map → xml-CrpWqcDk.js.map} +1 -1
- package/package.json +1 -1
- package/dist/cards-DK7j03NN.cjs +0 -2
- package/dist/cards-DK7j03NN.cjs.map +0 -1
- package/dist/data-CjVcevdT.js +0 -654
- package/dist/data-CjVcevdT.js.map +0 -1
- package/dist/data-D8qUIvWv.cjs +0 -2
- package/dist/data-D8qUIvWv.cjs.map +0 -1
- package/dist/feedback-C445FEHb.js.map +0 -1
- package/dist/feedback-C8RfsfYJ.cjs +0 -2
|
@@ -10,20 +10,21 @@ import { t as y } from "./MLink-Bd8fLH1N.js";
|
|
|
10
10
|
import { t as b } from "./MButton-C1pnL4_j.js";
|
|
11
11
|
import { t as x } from "./MCheckbox-B7SpcD4H.js";
|
|
12
12
|
import { n as S } from "./MSkeleton-C5uD4Axo.js";
|
|
13
|
-
import {
|
|
14
|
-
import { t as T } from "./
|
|
15
|
-
import {
|
|
16
|
-
import { n as
|
|
17
|
-
import { t as N } from "./
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { t as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { Fragment as
|
|
13
|
+
import { t as C } from "./MLoader-CnvWqFtA.js";
|
|
14
|
+
import { r as w, t as T } from "./MGrid-CYL3cbUI.js";
|
|
15
|
+
import { t as E } from "./MStack-CSCw6to2.js";
|
|
16
|
+
import { a as D, i as O, n as k, r as A, t as j } from "./MCard-azpp4YVD.js";
|
|
17
|
+
import { n as M, t as N } from "./MInputCVC-BGYhUGDE.js";
|
|
18
|
+
import { t as P } from "./MAvatar-DtJCj3dD.js";
|
|
19
|
+
import { n as F, t as I } from "./MDetailList-BjvZUyNj.js";
|
|
20
|
+
import { t as ee } from "./MInputSearch-DEr5HBgw.js";
|
|
21
|
+
import { t as L } from "./MTreeView-DQaRF0ty.js";
|
|
22
|
+
import { i as te, r as ne } from "./MDropdownMenu-CZmU3uku.js";
|
|
23
|
+
import { t as re } from "./MPagination-7yTbB8dZ.js";
|
|
24
|
+
import { Children as ie, Fragment as R, cloneElement as z, isValidElement as B, useCallback as V, useEffect as H, useMemo as ae, useRef as oe, useState as U } from "react";
|
|
25
|
+
import { Fragment as se, jsx as W, jsxs as G } from "react/jsx-runtime";
|
|
25
26
|
//#region src/components/cards/shared/MCardColor.utils.tsx
|
|
26
|
-
function
|
|
27
|
+
function K(e) {
|
|
27
28
|
if (typeof e == "string") return e;
|
|
28
29
|
if (typeof e == "function") {
|
|
29
30
|
let t = e;
|
|
@@ -35,23 +36,23 @@ function ce(e) {
|
|
|
35
36
|
}
|
|
36
37
|
return "";
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
+
function q(e) {
|
|
39
40
|
if (e.props.color !== void 0) return !1;
|
|
40
41
|
if (e.type === b) return !0;
|
|
41
|
-
let t =
|
|
42
|
+
let t = K(e.type);
|
|
42
43
|
return t.startsWith("M") && t.endsWith("Icon");
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
-
return t ?
|
|
46
|
-
if (!
|
|
47
|
-
let n = e, r = n.props, i = r.children ?
|
|
48
|
-
return i !== r.children && (a.children = i),
|
|
45
|
+
function J(e, t) {
|
|
46
|
+
return t ? ie.map(e, (e) => {
|
|
47
|
+
if (!B(e)) return e;
|
|
48
|
+
let n = e, r = n.props, i = r.children ? J(r.children, t) : r.children, a = {};
|
|
49
|
+
return i !== r.children && (a.children = i), q(n) && (a.color = t), Object.keys(a).length ? z(n, a) : n;
|
|
49
50
|
}) : e;
|
|
50
51
|
}
|
|
51
52
|
//#endregion
|
|
52
53
|
//#region src/components/cards/MCardActionArea/MCardActionArea.tsx
|
|
53
|
-
function
|
|
54
|
-
let { component: g, href: _, to: v, isInteractive: y } =
|
|
54
|
+
function ce({ component: e, to: t, href: n, target: r, rel: i, color: a, interactive: o = !0, clickEffect: s, rippleColor: c, className: l, children: u, onPointerDown: f, type: p, ...h }) {
|
|
55
|
+
let { component: g, href: _, to: v, isInteractive: y } = D({
|
|
55
56
|
component: e,
|
|
56
57
|
href: n,
|
|
57
58
|
to: t,
|
|
@@ -64,7 +65,7 @@ function q({ component: e, to: t, href: n, target: r, rel: i, color: a, interact
|
|
|
64
65
|
disabled: !y,
|
|
65
66
|
color: c
|
|
66
67
|
});
|
|
67
|
-
return /* @__PURE__ */
|
|
68
|
+
return /* @__PURE__ */ G(g, {
|
|
68
69
|
href: g === "a" || e ? _ : void 0,
|
|
69
70
|
to: v,
|
|
70
71
|
target: r,
|
|
@@ -75,9 +76,9 @@ function q({ component: e, to: t, href: n, target: r, rel: i, color: a, interact
|
|
|
75
76
|
S(e), f?.(e);
|
|
76
77
|
},
|
|
77
78
|
...h,
|
|
78
|
-
children: [x, /* @__PURE__ */
|
|
79
|
+
children: [x, /* @__PURE__ */ W("span", {
|
|
79
80
|
className: "card-action-area-content",
|
|
80
|
-
children:
|
|
81
|
+
children: J(u, a)
|
|
81
82
|
})]
|
|
82
83
|
});
|
|
83
84
|
}
|
|
@@ -87,60 +88,60 @@ function le(e) {
|
|
|
87
88
|
let t = e.replace(/\D/g, "");
|
|
88
89
|
return t.length <= 4 ? t : `\u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 ${t.slice(-4)}`;
|
|
89
90
|
}
|
|
90
|
-
function
|
|
91
|
-
let C = f(o), w = c ?? C.brand, T = p.find((e) => e.brand === w) ?? C,
|
|
91
|
+
function Y({ component: e, to: t, href: n, target: r, rel: i, holder: a, number: o, expiry: s, brand: c, brandIcon: l, balance: u, balanceLabel: h = "Current balance", color: g, interactive: _ = !1, clickEffect: v, rippleColor: y, className: b, onPointerDown: x, ...S }) {
|
|
92
|
+
let C = f(o), w = c ?? C.brand, T = p.find((e) => e.brand === w) ?? C, E = le(o), O = T.iconLabel, { component: k, href: A, to: j, isInteractive: M } = D({
|
|
92
93
|
component: e,
|
|
93
94
|
href: n,
|
|
94
95
|
to: t,
|
|
95
96
|
interactive: _,
|
|
96
97
|
hasClickHandler: !!S.onClick,
|
|
97
98
|
hasPointerHandler: !!x
|
|
98
|
-
}), { effectClassName: N, effectLayer:
|
|
99
|
+
}), { effectClassName: N, effectLayer: P, handlePointerDown: F } = m({
|
|
99
100
|
effect: v ?? (M ? "ripple" : "none"),
|
|
100
101
|
disabled: !M,
|
|
101
102
|
color: y
|
|
102
103
|
});
|
|
103
|
-
return /* @__PURE__ */
|
|
104
|
+
return /* @__PURE__ */ G(k, {
|
|
104
105
|
href: k === "a" || e ? A : void 0,
|
|
105
106
|
to: j,
|
|
106
107
|
target: r,
|
|
107
108
|
rel: i,
|
|
108
109
|
className: d("card-payment", g || "primary", M && "interactive", N, b),
|
|
109
110
|
onPointerDown: (e) => {
|
|
110
|
-
|
|
111
|
+
F(e), x?.(e);
|
|
111
112
|
},
|
|
112
113
|
...S,
|
|
113
114
|
children: [
|
|
114
|
-
|
|
115
|
-
u !== void 0 && /* @__PURE__ */
|
|
115
|
+
P,
|
|
116
|
+
u !== void 0 && /* @__PURE__ */ G("div", { children: [/* @__PURE__ */ W("p", {
|
|
116
117
|
className: "cp-balance-label",
|
|
117
118
|
children: h
|
|
118
|
-
}), /* @__PURE__ */
|
|
119
|
+
}), /* @__PURE__ */ W("p", {
|
|
119
120
|
className: "cp-balance",
|
|
120
121
|
children: u
|
|
121
122
|
})] }),
|
|
122
|
-
/* @__PURE__ */
|
|
123
|
+
/* @__PURE__ */ G("div", {
|
|
123
124
|
className: "cp-row",
|
|
124
|
-
children: [/* @__PURE__ */
|
|
125
|
+
children: [/* @__PURE__ */ W("span", {
|
|
125
126
|
className: d("cp-brand", !l && w),
|
|
126
127
|
children: l ?? O
|
|
127
|
-
}), /* @__PURE__ */
|
|
128
|
+
}), /* @__PURE__ */ W("span", {
|
|
128
129
|
className: "cp-number",
|
|
129
|
-
children:
|
|
130
|
+
children: E
|
|
130
131
|
})]
|
|
131
132
|
}),
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ G("div", {
|
|
133
134
|
className: "cp-details",
|
|
134
|
-
children: [/* @__PURE__ */
|
|
135
|
+
children: [/* @__PURE__ */ G("div", { children: [/* @__PURE__ */ W("p", {
|
|
135
136
|
className: "cp-field-label",
|
|
136
137
|
children: "MCard holder"
|
|
137
|
-
}), /* @__PURE__ */
|
|
138
|
+
}), /* @__PURE__ */ W("p", {
|
|
138
139
|
className: "cp-field-value",
|
|
139
140
|
children: a
|
|
140
|
-
})] }), /* @__PURE__ */
|
|
141
|
+
})] }), /* @__PURE__ */ G("div", { children: [/* @__PURE__ */ W("p", {
|
|
141
142
|
className: "cp-field-label",
|
|
142
143
|
children: "Expiration date"
|
|
143
|
-
}), /* @__PURE__ */
|
|
144
|
+
}), /* @__PURE__ */ W("p", {
|
|
144
145
|
className: "cp-field-value",
|
|
145
146
|
children: s
|
|
146
147
|
})] })]
|
|
@@ -150,23 +151,23 @@ function J({ component: e, to: t, href: n, target: r, rel: i, holder: a, number:
|
|
|
150
151
|
}
|
|
151
152
|
//#endregion
|
|
152
153
|
//#region src/components/cards/MCardPaymentMethod/MCardPaymentMethod.tsx
|
|
153
|
-
function
|
|
154
|
+
function X(e) {
|
|
154
155
|
return p.find((t) => t.brand === e)?.iconLabel ?? "CARD";
|
|
155
156
|
}
|
|
156
157
|
function ue({ title: e = "Your payment methods", actionLabel: t = "Change", actionHref: n = "#", onAction: r, brand: i = "visa", brandIcon: a, last4: o, badgeLabel: s, summary: c, helperText: l = "All fields are required, unless stated otherwise.", expiryLabel: f = "Expiration date", cvcLabel: p = "Security code", expiryProps: m, cvcProps: h, color: v, className: b, ...x }) {
|
|
157
|
-
let C = m?.value ?? m?.defaultValue, w = s === void 0 ? "Default" : s, T = C ? `Credit card - Expiration date ${String(C).replace("/", ".")}` : "Credit card", E = c === void 0 ? T : c, D =
|
|
158
|
+
let C = m?.value ?? m?.defaultValue, w = s === void 0 ? "Default" : s, T = C ? `Credit card - Expiration date ${String(C).replace("/", ".")}` : "Credit card", E = c === void 0 ? T : c, D = X(i), O = {
|
|
158
159
|
clearable: !0,
|
|
159
160
|
...m
|
|
160
161
|
};
|
|
161
|
-
return /* @__PURE__ */
|
|
162
|
+
return /* @__PURE__ */ G("div", {
|
|
162
163
|
className: d("card-payment-method", v || "primary", b),
|
|
163
164
|
...x,
|
|
164
|
-
children: [/* @__PURE__ */
|
|
165
|
+
children: [/* @__PURE__ */ G("div", {
|
|
165
166
|
className: "cpm-header",
|
|
166
|
-
children: [/* @__PURE__ */
|
|
167
|
+
children: [/* @__PURE__ */ W("h3", {
|
|
167
168
|
className: "cpm-title",
|
|
168
169
|
children: e
|
|
169
|
-
}), /* @__PURE__ */
|
|
170
|
+
}), /* @__PURE__ */ G(y, {
|
|
170
171
|
href: n,
|
|
171
172
|
tone: "accent",
|
|
172
173
|
underline: "none",
|
|
@@ -174,50 +175,50 @@ function ue({ title: e = "Your payment methods", actionLabel: t = "Change", acti
|
|
|
174
175
|
onClick: (e) => {
|
|
175
176
|
r && (e.preventDefault(), r());
|
|
176
177
|
},
|
|
177
|
-
children: [t, /* @__PURE__ */
|
|
178
|
+
children: [t, /* @__PURE__ */ W(u, {})]
|
|
178
179
|
})]
|
|
179
|
-
}), /* @__PURE__ */
|
|
180
|
+
}), /* @__PURE__ */ G("div", {
|
|
180
181
|
className: "cpm-surface",
|
|
181
182
|
children: [
|
|
182
|
-
/* @__PURE__ */
|
|
183
|
+
/* @__PURE__ */ G("div", {
|
|
183
184
|
className: "cpm-method",
|
|
184
|
-
children: [/* @__PURE__ */
|
|
185
|
+
children: [/* @__PURE__ */ G(g, {
|
|
185
186
|
align: "center",
|
|
186
187
|
className: "cpm-method-row",
|
|
187
188
|
children: [
|
|
188
|
-
/* @__PURE__ */
|
|
189
|
+
/* @__PURE__ */ W("span", {
|
|
189
190
|
className: d("cpm-brand", !a && i),
|
|
190
191
|
children: a ?? D
|
|
191
192
|
}),
|
|
192
|
-
/* @__PURE__ */
|
|
193
|
+
/* @__PURE__ */ W("span", {
|
|
193
194
|
className: "cpm-last4",
|
|
194
195
|
children: `\u2022\u2022\u2022\u2022 ${o}`
|
|
195
196
|
}),
|
|
196
|
-
w && /* @__PURE__ */
|
|
197
|
+
w && /* @__PURE__ */ W(S, {
|
|
197
198
|
color: "info",
|
|
198
199
|
children: w
|
|
199
200
|
})
|
|
200
201
|
]
|
|
201
|
-
}), E && /* @__PURE__ */
|
|
202
|
+
}), E && /* @__PURE__ */ W(_, {
|
|
202
203
|
tone: "muted",
|
|
203
204
|
className: "cpm-summary",
|
|
204
205
|
children: E
|
|
205
206
|
})]
|
|
206
207
|
}),
|
|
207
|
-
l && /* @__PURE__ */
|
|
208
|
+
l && /* @__PURE__ */ W(_, {
|
|
208
209
|
tone: "muted",
|
|
209
210
|
size: "sm",
|
|
210
211
|
className: "cpm-helper",
|
|
211
212
|
children: l
|
|
212
213
|
}),
|
|
213
|
-
/* @__PURE__ */
|
|
214
|
+
/* @__PURE__ */ G("div", {
|
|
214
215
|
className: "cpm-fields",
|
|
215
|
-
children: [/* @__PURE__ */
|
|
216
|
+
children: [/* @__PURE__ */ W(M, {
|
|
216
217
|
label: f,
|
|
217
218
|
placeholder: "MM/YYYY",
|
|
218
219
|
fullWidth: !0,
|
|
219
220
|
...O
|
|
220
|
-
}), /* @__PURE__ */
|
|
221
|
+
}), /* @__PURE__ */ W(N, {
|
|
221
222
|
label: p,
|
|
222
223
|
placeholder: "123",
|
|
223
224
|
fullWidth: !0,
|
|
@@ -230,150 +231,150 @@ function ue({ title: e = "Your payment methods", actionLabel: t = "Change", acti
|
|
|
230
231
|
}
|
|
231
232
|
//#endregion
|
|
232
233
|
//#region src/components/cards/ServiceCardsShared/ServiceCardsShared.tsx
|
|
233
|
-
function
|
|
234
|
-
let [R, z] =
|
|
235
|
-
|
|
236
|
-
R >=
|
|
237
|
-
}, [R,
|
|
234
|
+
function Z({ variant: e, title: t, description: i, price: c, currency: u = "PLN", duration: f, available: p, image: m, gallery: h, galleryAutoPlay: g = !1, rating: _, reviewCount: v, favorite: y, onFavorite: x, menuItems: C, onAddToCart: w, actionLabel: T, icon: E, color: D = "primary", leader: O, participants: k, maxParticipants: A, quantity: j, onQuantityChange: M, showQuantity: N = !0, date: I, location: ee, status: L, className: re, ...ie }) {
|
|
235
|
+
let [R, z] = U(0), [B, V] = U(!1), [ae, oe] = U(1), K = j ?? ae, q = h && h.length > 0 ? h : m ? [m] : [];
|
|
236
|
+
H(() => {
|
|
237
|
+
R >= q.length && z(0);
|
|
238
|
+
}, [R, q.length]), H(() => {
|
|
238
239
|
if (!B) return;
|
|
239
240
|
let e = window.setTimeout(() => {
|
|
240
241
|
V(!1);
|
|
241
242
|
}, 220);
|
|
242
243
|
return () => window.clearTimeout(e);
|
|
243
244
|
}, [R, B]);
|
|
244
|
-
function
|
|
245
|
-
e === R || e < 0 || e >=
|
|
245
|
+
function J(e) {
|
|
246
|
+
e === R || e < 0 || e >= q.length || (q.length > 1 && V(!0), z(e));
|
|
246
247
|
}
|
|
247
|
-
|
|
248
|
-
if (!g ||
|
|
248
|
+
H(() => {
|
|
249
|
+
if (!g || q.length <= 1) return;
|
|
249
250
|
let e = window.setInterval(() => {
|
|
250
|
-
V(!0), z((e) => (e + 1) %
|
|
251
|
+
V(!0), z((e) => (e + 1) % q.length);
|
|
251
252
|
}, 3500);
|
|
252
253
|
return () => window.clearInterval(e);
|
|
253
|
-
}, [g,
|
|
254
|
-
function
|
|
254
|
+
}, [g, q.length]);
|
|
255
|
+
function ce(e) {
|
|
255
256
|
let t = Math.max(1, e);
|
|
256
|
-
M ? M(t) :
|
|
257
|
+
M ? M(t) : oe(t);
|
|
257
258
|
}
|
|
258
|
-
let
|
|
259
|
-
return /* @__PURE__ */
|
|
259
|
+
let le = p === !0 ? "Available" : p === !1 ? "Unavailable" : typeof p == "number" ? `${p} spots` : null, Y = I ? I instanceof Date ? I : new Date(I) : null, X = Y ? Y.getDate() : null, ue = Y ? Y.toLocaleString("en", { month: "short" }).toUpperCase() : null;
|
|
260
|
+
return /* @__PURE__ */ G("div", {
|
|
260
261
|
className: d("card-service", e, `color-${D}`, re),
|
|
261
262
|
...ie,
|
|
262
263
|
children: [
|
|
263
|
-
|
|
264
|
+
q.length > 0 && /* @__PURE__ */ G("div", {
|
|
264
265
|
className: "cs-gallery",
|
|
265
266
|
children: [
|
|
266
|
-
/* @__PURE__ */
|
|
267
|
-
src:
|
|
267
|
+
/* @__PURE__ */ W("img", {
|
|
268
|
+
src: q[R],
|
|
268
269
|
alt: t,
|
|
269
270
|
className: d("cs-image", B && "is-transitioning")
|
|
270
271
|
}),
|
|
271
|
-
|
|
272
|
+
q.length > 1 && /* @__PURE__ */ W("div", {
|
|
272
273
|
className: "cs-gallery-dots",
|
|
273
|
-
children:
|
|
274
|
+
children: q.map((e, t) => /* @__PURE__ */ W("button", {
|
|
274
275
|
type: "button",
|
|
275
276
|
className: d("cs-dot", t === R && "active"),
|
|
276
|
-
onClick: () =>
|
|
277
|
+
onClick: () => J(t),
|
|
277
278
|
"aria-label": `Image ${t + 1}`
|
|
278
279
|
}, t))
|
|
279
280
|
}),
|
|
280
|
-
(x || C && C.length > 0) && /* @__PURE__ */
|
|
281
|
+
(x || C && C.length > 0) && /* @__PURE__ */ G("div", {
|
|
281
282
|
className: "cs-gallery-actions",
|
|
282
|
-
children: [C && C.length > 0 && /* @__PURE__ */
|
|
283
|
+
children: [C && C.length > 0 && /* @__PURE__ */ W(te, {
|
|
283
284
|
className: "cs-menu-wrap",
|
|
284
|
-
trigger: /* @__PURE__ */
|
|
285
|
+
trigger: /* @__PURE__ */ W(b, {
|
|
285
286
|
variant: "ghost",
|
|
286
287
|
iconOnly: !0,
|
|
287
288
|
shape: "circle",
|
|
288
289
|
"aria-label": "More options",
|
|
289
290
|
className: "cs-overlay-btn",
|
|
290
|
-
children: /* @__PURE__ */
|
|
291
|
+
children: /* @__PURE__ */ W(a, {})
|
|
291
292
|
}),
|
|
292
293
|
placement: "bottom-end",
|
|
293
|
-
children: C.map((e, t) => /* @__PURE__ */
|
|
294
|
+
children: C.map((e, t) => /* @__PURE__ */ W(ne, {
|
|
294
295
|
icon: e.icon,
|
|
295
296
|
color: e.danger ? "error" : void 0,
|
|
296
297
|
label: e.label,
|
|
297
298
|
onClick: e.onClick
|
|
298
299
|
}, t))
|
|
299
|
-
}), x && /* @__PURE__ */
|
|
300
|
+
}), x && /* @__PURE__ */ W(b, {
|
|
300
301
|
variant: "ghost",
|
|
301
302
|
iconOnly: !0,
|
|
302
303
|
shape: "circle",
|
|
303
304
|
onClick: x,
|
|
304
305
|
"aria-label": y ? "Remove from favorites" : "Add to favorites",
|
|
305
306
|
className: d("cs-overlay-btn", y && "cs-fav-active"),
|
|
306
|
-
children:
|
|
307
|
+
children: W(y ? s : l, {})
|
|
307
308
|
})]
|
|
308
309
|
})
|
|
309
310
|
]
|
|
310
311
|
}),
|
|
311
|
-
/* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ G("div", {
|
|
312
313
|
className: "cs-body",
|
|
313
314
|
children: [
|
|
314
|
-
e === "event" && Y && /* @__PURE__ */
|
|
315
|
+
e === "event" && Y && /* @__PURE__ */ G("div", {
|
|
315
316
|
className: "cs-event-header",
|
|
316
|
-
children: [/* @__PURE__ */
|
|
317
|
+
children: [/* @__PURE__ */ G("div", {
|
|
317
318
|
className: "cs-date-block",
|
|
318
|
-
children: [/* @__PURE__ */
|
|
319
|
+
children: [/* @__PURE__ */ W("span", {
|
|
319
320
|
className: "cs-date-day",
|
|
320
|
-
children: ue
|
|
321
|
-
}), /* @__PURE__ */ U("span", {
|
|
322
|
-
className: "cs-date-month",
|
|
323
321
|
children: X
|
|
322
|
+
}), /* @__PURE__ */ W("span", {
|
|
323
|
+
className: "cs-date-month",
|
|
324
|
+
children: ue
|
|
324
325
|
})]
|
|
325
|
-
}), /* @__PURE__ */
|
|
326
|
+
}), /* @__PURE__ */ G("div", {
|
|
326
327
|
className: "cs-event-info",
|
|
327
|
-
children: [/* @__PURE__ */
|
|
328
|
+
children: [/* @__PURE__ */ W("h3", {
|
|
328
329
|
className: "cs-title",
|
|
329
330
|
children: t
|
|
330
|
-
}), i && /* @__PURE__ */
|
|
331
|
+
}), i && /* @__PURE__ */ W("p", {
|
|
331
332
|
className: "cs-desc",
|
|
332
333
|
children: i
|
|
333
334
|
})]
|
|
334
335
|
})]
|
|
335
336
|
}),
|
|
336
|
-
e !== "event" && /* @__PURE__ */
|
|
337
|
+
e !== "event" && /* @__PURE__ */ G(se, { children: [/* @__PURE__ */ G("div", {
|
|
337
338
|
className: "cs-top",
|
|
338
|
-
children: [E && /* @__PURE__ */
|
|
339
|
+
children: [E && /* @__PURE__ */ W("span", {
|
|
339
340
|
className: "cs-icon",
|
|
340
341
|
children: E
|
|
341
|
-
}), /* @__PURE__ */
|
|
342
|
+
}), /* @__PURE__ */ W("h3", {
|
|
342
343
|
className: "cs-title",
|
|
343
344
|
children: t
|
|
344
345
|
})]
|
|
345
|
-
}), i && /* @__PURE__ */
|
|
346
|
+
}), i && /* @__PURE__ */ W("p", {
|
|
346
347
|
className: "cs-desc",
|
|
347
348
|
children: i
|
|
348
349
|
})] }),
|
|
349
|
-
e === "event" && !Y && /* @__PURE__ */
|
|
350
|
+
e === "event" && !Y && /* @__PURE__ */ G(se, { children: [/* @__PURE__ */ G("div", {
|
|
350
351
|
className: "cs-top",
|
|
351
|
-
children: [E && /* @__PURE__ */
|
|
352
|
+
children: [E && /* @__PURE__ */ W("span", {
|
|
352
353
|
className: "cs-icon",
|
|
353
354
|
children: E
|
|
354
|
-
}), /* @__PURE__ */
|
|
355
|
+
}), /* @__PURE__ */ W("h3", {
|
|
355
356
|
className: "cs-title",
|
|
356
357
|
children: t
|
|
357
358
|
})]
|
|
358
|
-
}), i && /* @__PURE__ */
|
|
359
|
+
}), i && /* @__PURE__ */ W("p", {
|
|
359
360
|
className: "cs-desc",
|
|
360
361
|
children: i
|
|
361
362
|
})] }),
|
|
362
|
-
_ !== void 0 && /* @__PURE__ */
|
|
363
|
+
_ !== void 0 && /* @__PURE__ */ G("div", {
|
|
363
364
|
className: "cs-rating",
|
|
364
365
|
children: [
|
|
365
|
-
/* @__PURE__ */
|
|
366
|
+
/* @__PURE__ */ W(F, {
|
|
366
367
|
value: Math.round(_),
|
|
367
368
|
size: "sm",
|
|
368
369
|
color: "warning",
|
|
369
370
|
readOnly: !0,
|
|
370
371
|
className: "cs-stars"
|
|
371
372
|
}),
|
|
372
|
-
/* @__PURE__ */
|
|
373
|
+
/* @__PURE__ */ W("span", {
|
|
373
374
|
className: "cs-rating-value",
|
|
374
375
|
children: _.toFixed(1)
|
|
375
376
|
}),
|
|
376
|
-
v !== void 0 && /* @__PURE__ */
|
|
377
|
+
v !== void 0 && /* @__PURE__ */ G("span", {
|
|
377
378
|
className: "cs-review-count",
|
|
378
379
|
children: [
|
|
379
380
|
"(",
|
|
@@ -383,30 +384,30 @@ function X({ variant: e, title: t, description: i, price: c, currency: u = "PLN"
|
|
|
383
384
|
})
|
|
384
385
|
]
|
|
385
386
|
}),
|
|
386
|
-
O && /* @__PURE__ */
|
|
387
|
+
O && /* @__PURE__ */ G("div", {
|
|
387
388
|
className: "cs-leader",
|
|
388
|
-
children: [/* @__PURE__ */
|
|
389
|
+
children: [/* @__PURE__ */ W(P, {
|
|
389
390
|
src: O.avatar,
|
|
390
391
|
name: O.name,
|
|
391
392
|
size: 28,
|
|
392
393
|
color: D
|
|
393
|
-
}), /* @__PURE__ */
|
|
394
|
+
}), /* @__PURE__ */ W("span", {
|
|
394
395
|
className: "cs-leader-name",
|
|
395
396
|
children: O.name
|
|
396
397
|
})]
|
|
397
398
|
}),
|
|
398
|
-
e === "course" && k && /* @__PURE__ */
|
|
399
|
+
e === "course" && k && /* @__PURE__ */ G("div", {
|
|
399
400
|
className: "cs-participants",
|
|
400
|
-
children: [/* @__PURE__ */
|
|
401
|
+
children: [/* @__PURE__ */ W("div", {
|
|
401
402
|
className: "cs-participants-avatars",
|
|
402
|
-
children: k.slice(0, 4).map((e, t) => /* @__PURE__ */
|
|
403
|
+
children: k.slice(0, 4).map((e, t) => /* @__PURE__ */ W(P, {
|
|
403
404
|
src: e.avatar,
|
|
404
405
|
name: e.name,
|
|
405
406
|
size: 28,
|
|
406
407
|
color: D,
|
|
407
408
|
className: "cs-participant-avatar"
|
|
408
409
|
}, `${e.name}-${t}`))
|
|
409
|
-
}), A && /* @__PURE__ */
|
|
410
|
+
}), A && /* @__PURE__ */ G("span", {
|
|
410
411
|
className: "cs-spots",
|
|
411
412
|
children: [
|
|
412
413
|
k.length,
|
|
@@ -415,79 +416,79 @@ function X({ variant: e, title: t, description: i, price: c, currency: u = "PLN"
|
|
|
415
416
|
]
|
|
416
417
|
})]
|
|
417
418
|
}),
|
|
418
|
-
/* @__PURE__ */
|
|
419
|
+
/* @__PURE__ */ G("div", {
|
|
419
420
|
className: "cs-meta",
|
|
420
421
|
children: [
|
|
421
|
-
e === "event" &&
|
|
422
|
+
e === "event" && ee && /* @__PURE__ */ W(S, {
|
|
422
423
|
size: "xs",
|
|
423
424
|
color: D,
|
|
424
|
-
children:
|
|
425
|
+
children: ee
|
|
425
426
|
}),
|
|
426
|
-
f && /* @__PURE__ */
|
|
427
|
+
f && /* @__PURE__ */ W(S, {
|
|
427
428
|
size: "xs",
|
|
428
429
|
color: D,
|
|
429
|
-
icon: /* @__PURE__ */
|
|
430
|
+
icon: /* @__PURE__ */ W(n, {}),
|
|
430
431
|
children: f
|
|
431
432
|
}),
|
|
432
|
-
e === "event" && L && /* @__PURE__ */
|
|
433
|
+
e === "event" && L && /* @__PURE__ */ W(S, {
|
|
433
434
|
size: "xs",
|
|
434
435
|
color: L.toLowerCase() === "sold out" ? "error" : D,
|
|
435
436
|
children: L
|
|
436
437
|
}),
|
|
437
|
-
|
|
438
|
+
le && e !== "event" && /* @__PURE__ */ W(S, {
|
|
438
439
|
size: "xs",
|
|
439
440
|
color: p === !1 ? "error" : D,
|
|
440
|
-
children:
|
|
441
|
+
children: le
|
|
441
442
|
})
|
|
442
443
|
]
|
|
443
444
|
})
|
|
444
445
|
]
|
|
445
446
|
}),
|
|
446
|
-
/* @__PURE__ */
|
|
447
|
+
/* @__PURE__ */ G("div", {
|
|
447
448
|
className: "cs-footer",
|
|
448
|
-
children: [c !== void 0 && /* @__PURE__ */
|
|
449
|
+
children: [c !== void 0 && /* @__PURE__ */ G("span", {
|
|
449
450
|
className: "cs-price",
|
|
450
451
|
children: [
|
|
451
452
|
typeof c == "number" ? c.toFixed(2) : c,
|
|
452
453
|
" ",
|
|
453
|
-
/* @__PURE__ */
|
|
454
|
+
/* @__PURE__ */ W("span", {
|
|
454
455
|
className: "cs-currency",
|
|
455
456
|
children: u
|
|
456
457
|
})
|
|
457
458
|
]
|
|
458
|
-
}), /* @__PURE__ */
|
|
459
|
+
}), /* @__PURE__ */ G("div", {
|
|
459
460
|
className: "cs-actions",
|
|
460
|
-
children: [e === "product" && w &&
|
|
461
|
+
children: [e === "product" && w && N && /* @__PURE__ */ G("div", {
|
|
461
462
|
className: "cs-qty",
|
|
462
463
|
children: [
|
|
463
|
-
/* @__PURE__ */
|
|
464
|
+
/* @__PURE__ */ W(b, {
|
|
464
465
|
variant: "ghost",
|
|
465
466
|
iconOnly: !0,
|
|
466
467
|
size: "sm",
|
|
467
|
-
onClick: () =>
|
|
468
|
+
onClick: () => ce(K - 1),
|
|
468
469
|
"aria-label": "Decrease",
|
|
469
470
|
className: "cs-qty-btn",
|
|
470
|
-
children: /* @__PURE__ */
|
|
471
|
+
children: /* @__PURE__ */ W(r, {})
|
|
471
472
|
}),
|
|
472
|
-
/* @__PURE__ */
|
|
473
|
+
/* @__PURE__ */ W("span", {
|
|
473
474
|
className: "cs-qty-value",
|
|
474
|
-
children:
|
|
475
|
+
children: K
|
|
475
476
|
}),
|
|
476
|
-
/* @__PURE__ */
|
|
477
|
+
/* @__PURE__ */ W(b, {
|
|
477
478
|
variant: "ghost",
|
|
478
479
|
iconOnly: !0,
|
|
479
480
|
size: "sm",
|
|
480
|
-
onClick: () =>
|
|
481
|
+
onClick: () => ce(K + 1),
|
|
481
482
|
"aria-label": "Increase",
|
|
482
483
|
className: "cs-qty-btn",
|
|
483
|
-
children: /* @__PURE__ */
|
|
484
|
+
children: /* @__PURE__ */ W(o, {})
|
|
484
485
|
})
|
|
485
486
|
]
|
|
486
|
-
}), w && /* @__PURE__ */
|
|
487
|
+
}), w && /* @__PURE__ */ W(b, {
|
|
487
488
|
variant: "filled",
|
|
488
489
|
size: "sm",
|
|
489
490
|
color: D,
|
|
490
|
-
onClick: () => w(
|
|
491
|
+
onClick: () => w(K),
|
|
491
492
|
disabled: p === !1,
|
|
492
493
|
className: "cs-cart-btn",
|
|
493
494
|
children: T ?? (e === "event" ? "Register" : "Add to cart")
|
|
@@ -501,7 +502,7 @@ function X({ variant: e, title: t, description: i, price: c, currency: u = "PLN"
|
|
|
501
502
|
//#region src/components/cards/MCardOffer/MCardOffer.tsx
|
|
502
503
|
function de(e) {
|
|
503
504
|
let { onAction: t, actionLabel: n = "Book now", ...r } = e;
|
|
504
|
-
return /* @__PURE__ */
|
|
505
|
+
return /* @__PURE__ */ W(Z, {
|
|
505
506
|
variant: "service",
|
|
506
507
|
onAddToCart: t ? () => t() : void 0,
|
|
507
508
|
actionLabel: n,
|
|
@@ -512,7 +513,7 @@ function de(e) {
|
|
|
512
513
|
//#region src/components/cards/MCardCourse/MCardCourse.tsx
|
|
513
514
|
function fe(e) {
|
|
514
515
|
let { onAction: t, actionLabel: n = "Join course", ...r } = e;
|
|
515
|
-
return /* @__PURE__ */
|
|
516
|
+
return /* @__PURE__ */ W(Z, {
|
|
516
517
|
variant: "course",
|
|
517
518
|
onAddToCart: t ? () => t() : void 0,
|
|
518
519
|
actionLabel: n,
|
|
@@ -521,9 +522,9 @@ function fe(e) {
|
|
|
521
522
|
}
|
|
522
523
|
//#endregion
|
|
523
524
|
//#region src/components/cards/MCardTile/MCardTile.tsx
|
|
524
|
-
function
|
|
525
|
+
function pe({ component: e, title: t, description: n, icon: r, color: i = "primary", to: o, href: c, target: u, rel: f, onClick: p, interactive: h = !1, clickEffect: g, rippleColor: _, image: v, video: y, illustration: x, camera: S, mediaFill: C = !1, overlayPosition: w = "bottom", favorite: T, onFavorite: E, menuItems: O, className: k, ...A }) {
|
|
525
526
|
let j = oe(null);
|
|
526
|
-
|
|
527
|
+
H(() => {
|
|
527
528
|
if (!S) return;
|
|
528
529
|
let e = j.current;
|
|
529
530
|
if (!e || typeof navigator > "u" || !navigator.mediaDevices?.getUserMedia) return;
|
|
@@ -538,7 +539,7 @@ function Z({ component: e, title: t, description: n, icon: r, color: i = "primar
|
|
|
538
539
|
n = !0, t && t.getTracks().forEach((e) => e.stop()), e.srcObject = null;
|
|
539
540
|
};
|
|
540
541
|
}, [S]);
|
|
541
|
-
let M = !!(v || y || x || S), { component: N, href:
|
|
542
|
+
let M = !!(v || y || x || S), { component: N, href: P, to: F, isInteractive: I, isLink: ee } = D({
|
|
542
543
|
component: e,
|
|
543
544
|
href: c,
|
|
544
545
|
to: o,
|
|
@@ -546,8 +547,8 @@ function Z({ component: e, title: t, description: n, icon: r, color: i = "primar
|
|
|
546
547
|
hasClickHandler: !!p,
|
|
547
548
|
fallbackComponent: "button"
|
|
548
549
|
}), L = C && M, { effectClassName: re, effectLayer: ie, handlePointerDown: R } = m({
|
|
549
|
-
effect: g ?? (
|
|
550
|
-
disabled: !
|
|
550
|
+
effect: g ?? (I ? "ripple" : "none"),
|
|
551
|
+
disabled: !I,
|
|
551
552
|
color: _
|
|
552
553
|
});
|
|
553
554
|
function z(e) {
|
|
@@ -557,15 +558,15 @@ function Z({ component: e, title: t, description: n, icon: r, color: i = "primar
|
|
|
557
558
|
p && (e.preventDefault(), p());
|
|
558
559
|
}
|
|
559
560
|
function V() {
|
|
560
|
-
return M ? /* @__PURE__ */
|
|
561
|
+
return M ? /* @__PURE__ */ G("div", {
|
|
561
562
|
className: d("tile-media", L && "fill"),
|
|
562
563
|
children: [
|
|
563
|
-
v && /* @__PURE__ */
|
|
564
|
+
v && /* @__PURE__ */ W("img", {
|
|
564
565
|
src: v,
|
|
565
566
|
alt: t,
|
|
566
567
|
className: "tile-image"
|
|
567
568
|
}),
|
|
568
|
-
y && /* @__PURE__ */
|
|
569
|
+
y && /* @__PURE__ */ W("video", {
|
|
569
570
|
src: y,
|
|
570
571
|
className: "tile-video",
|
|
571
572
|
autoPlay: !0,
|
|
@@ -574,7 +575,7 @@ function Z({ component: e, title: t, description: n, icon: r, color: i = "primar
|
|
|
574
575
|
playsInline: !0,
|
|
575
576
|
"aria-label": t
|
|
576
577
|
}),
|
|
577
|
-
S && /* @__PURE__ */
|
|
578
|
+
S && /* @__PURE__ */ W("video", {
|
|
578
579
|
ref: j,
|
|
579
580
|
className: "tile-video",
|
|
580
581
|
autoPlay: !0,
|
|
@@ -582,85 +583,85 @@ function Z({ component: e, title: t, description: n, icon: r, color: i = "primar
|
|
|
582
583
|
playsInline: !0,
|
|
583
584
|
"aria-label": t
|
|
584
585
|
}),
|
|
585
|
-
x && /* @__PURE__ */
|
|
586
|
+
x && /* @__PURE__ */ W("div", {
|
|
586
587
|
className: "tile-illustration",
|
|
587
588
|
children: x
|
|
588
589
|
}),
|
|
589
|
-
L && /* @__PURE__ */
|
|
590
|
+
L && /* @__PURE__ */ W("div", { className: d("tile-scrim", `scrim-${w}`) })
|
|
590
591
|
]
|
|
591
592
|
}) : null;
|
|
592
593
|
}
|
|
593
|
-
function
|
|
594
|
-
return /* @__PURE__ */
|
|
594
|
+
function ae() {
|
|
595
|
+
return /* @__PURE__ */ G("div", {
|
|
595
596
|
className: d("tile-body", L && "overlay", L && `pos-${w}`),
|
|
596
|
-
children: [/* @__PURE__ */
|
|
597
|
+
children: [/* @__PURE__ */ G("div", {
|
|
597
598
|
className: "tile-top",
|
|
598
|
-
children: [r && /* @__PURE__ */
|
|
599
|
+
children: [r && /* @__PURE__ */ W("span", {
|
|
599
600
|
className: "tile-icon",
|
|
600
601
|
children: r
|
|
601
|
-
}), /* @__PURE__ */
|
|
602
|
+
}), /* @__PURE__ */ W("h3", {
|
|
602
603
|
className: "tile-title",
|
|
603
604
|
children: t
|
|
604
605
|
})]
|
|
605
|
-
}), n && /* @__PURE__ */
|
|
606
|
+
}), n && /* @__PURE__ */ W("p", {
|
|
606
607
|
className: "tile-desc",
|
|
607
608
|
children: n
|
|
608
609
|
})]
|
|
609
610
|
});
|
|
610
611
|
}
|
|
611
|
-
let
|
|
612
|
-
return /* @__PURE__ */
|
|
613
|
-
className: d("card-tile", `color-${i}`, L && "media-fill",
|
|
612
|
+
let U = E || O && O.length > 0;
|
|
613
|
+
return /* @__PURE__ */ G("div", {
|
|
614
|
+
className: d("card-tile", `color-${i}`, L && "media-fill", I && "interactive", re, k),
|
|
614
615
|
onPointerDown: R,
|
|
615
616
|
...A,
|
|
616
617
|
children: [
|
|
617
618
|
ie,
|
|
618
|
-
|
|
619
|
-
href: N === "a" || e ?
|
|
620
|
-
to:
|
|
619
|
+
ee && /* @__PURE__ */ W(N, {
|
|
620
|
+
href: N === "a" || e ? P : void 0,
|
|
621
|
+
to: F,
|
|
621
622
|
target: u,
|
|
622
623
|
rel: f,
|
|
623
624
|
className: "tile-link",
|
|
624
625
|
"aria-label": t,
|
|
625
626
|
onClick: p ? B : void 0
|
|
626
627
|
}),
|
|
627
|
-
!
|
|
628
|
+
!ee && p && /* @__PURE__ */ W(N, {
|
|
628
629
|
type: "button",
|
|
629
630
|
className: "tile-link",
|
|
630
631
|
"aria-label": t,
|
|
631
632
|
onClick: p
|
|
632
633
|
}),
|
|
633
634
|
V(),
|
|
634
|
-
|
|
635
|
-
|
|
635
|
+
ae(),
|
|
636
|
+
U && /* @__PURE__ */ G("div", {
|
|
636
637
|
className: "tile-actions",
|
|
637
638
|
onClick: z,
|
|
638
639
|
onPointerDown: z,
|
|
639
|
-
children: [O && O.length > 0 && /* @__PURE__ */
|
|
640
|
+
children: [O && O.length > 0 && /* @__PURE__ */ W(te, {
|
|
640
641
|
className: "tile-menu-wrap",
|
|
641
|
-
trigger: /* @__PURE__ */
|
|
642
|
+
trigger: /* @__PURE__ */ W(b, {
|
|
642
643
|
variant: "ghost",
|
|
643
644
|
iconOnly: !0,
|
|
644
645
|
shape: "circle",
|
|
645
646
|
"aria-label": "More options",
|
|
646
647
|
className: "tile-overlay-btn",
|
|
647
|
-
children: /* @__PURE__ */
|
|
648
|
+
children: /* @__PURE__ */ W(a, {})
|
|
648
649
|
}),
|
|
649
650
|
placement: "bottom-end",
|
|
650
|
-
children: O.map((e, t) => /* @__PURE__ */
|
|
651
|
+
children: O.map((e, t) => /* @__PURE__ */ W(ne, {
|
|
651
652
|
icon: e.icon,
|
|
652
653
|
color: e.danger ? "error" : void 0,
|
|
653
654
|
label: e.label,
|
|
654
655
|
onClick: e.onClick
|
|
655
656
|
}, t))
|
|
656
|
-
}),
|
|
657
|
+
}), E && /* @__PURE__ */ W(b, {
|
|
657
658
|
variant: "ghost",
|
|
658
659
|
iconOnly: !0,
|
|
659
660
|
shape: "circle",
|
|
660
|
-
onClick:
|
|
661
|
+
onClick: E,
|
|
661
662
|
"aria-label": T ? "Remove from favorites" : "Add to favorites",
|
|
662
663
|
className: d("tile-overlay-btn", T && "tile-fav-active"),
|
|
663
|
-
children:
|
|
664
|
+
children: W(T ? s : l, {})
|
|
664
665
|
})]
|
|
665
666
|
})
|
|
666
667
|
]
|
|
@@ -668,9 +669,9 @@ function Z({ component: e, title: t, description: n, icon: r, color: i = "primar
|
|
|
668
669
|
}
|
|
669
670
|
//#endregion
|
|
670
671
|
//#region src/components/cards/MCardProduct/MCardProduct.tsx
|
|
671
|
-
function
|
|
672
|
+
function me(e) {
|
|
672
673
|
let { addToCartLabel: t = "Add to cart", ...n } = e;
|
|
673
|
-
return /* @__PURE__ */
|
|
674
|
+
return /* @__PURE__ */ W(Z, {
|
|
674
675
|
variant: "product",
|
|
675
676
|
actionLabel: t,
|
|
676
677
|
...n
|
|
@@ -678,9 +679,9 @@ function Q(e) {
|
|
|
678
679
|
}
|
|
679
680
|
//#endregion
|
|
680
681
|
//#region src/components/cards/MCardEvent/MCardEvent.tsx
|
|
681
|
-
function
|
|
682
|
+
function he(e) {
|
|
682
683
|
let { onRegister: t, registerLabel: n = "Register", ...r } = e;
|
|
683
|
-
return /* @__PURE__ */
|
|
684
|
+
return /* @__PURE__ */ W(Z, {
|
|
684
685
|
variant: "event",
|
|
685
686
|
onAddToCart: t ? () => t() : void 0,
|
|
686
687
|
actionLabel: n,
|
|
@@ -689,14 +690,14 @@ function pe(e) {
|
|
|
689
690
|
}
|
|
690
691
|
//#endregion
|
|
691
692
|
//#region src/components/cards/MCardWidget/MCardWidget.tsx
|
|
692
|
-
function
|
|
693
|
+
function Q(e, t) {
|
|
693
694
|
return t || (typeof e != "number" || e === 0 ? "neutral" : e > 0 ? "up" : "down");
|
|
694
695
|
}
|
|
695
|
-
function
|
|
696
|
+
function $(e) {
|
|
696
697
|
return typeof e == "number" && e > 0 ? `+${e}` : e;
|
|
697
698
|
}
|
|
698
699
|
function ge({ component: e, to: n, href: r, target: a, rel: o, title: s, value: c, trend: l, trendType: u, icon: f, color: p = "primary", helperText: h, interactive: g = !1, clickEffect: _, rippleColor: v, className: y, onPointerDown: b, ...x }) {
|
|
699
|
-
let S = l != null, C =
|
|
700
|
+
let S = l != null, C = Q(l, u), w = $(l), { component: T, href: E, to: O, isInteractive: k } = D({
|
|
700
701
|
component: e,
|
|
701
702
|
href: r,
|
|
702
703
|
to: n,
|
|
@@ -708,8 +709,8 @@ function ge({ component: e, to: n, href: r, target: a, rel: o, title: s, value:
|
|
|
708
709
|
disabled: !k,
|
|
709
710
|
color: v
|
|
710
711
|
});
|
|
711
|
-
return /* @__PURE__ */
|
|
712
|
-
href: T === "a" || e ?
|
|
712
|
+
return /* @__PURE__ */ G(T, {
|
|
713
|
+
href: T === "a" || e ? E : void 0,
|
|
713
714
|
to: O,
|
|
714
715
|
target: a,
|
|
715
716
|
rel: o,
|
|
@@ -720,34 +721,34 @@ function ge({ component: e, to: n, href: r, target: a, rel: o, title: s, value:
|
|
|
720
721
|
...x,
|
|
721
722
|
children: [
|
|
722
723
|
j,
|
|
723
|
-
/* @__PURE__ */
|
|
724
|
+
/* @__PURE__ */ G("div", {
|
|
724
725
|
className: "cw-top",
|
|
725
|
-
children: [/* @__PURE__ */
|
|
726
|
+
children: [/* @__PURE__ */ G("div", {
|
|
726
727
|
className: "cw-meta",
|
|
727
|
-
children: [/* @__PURE__ */
|
|
728
|
+
children: [/* @__PURE__ */ W("span", {
|
|
728
729
|
className: "cw-title",
|
|
729
730
|
children: s
|
|
730
|
-
}), /* @__PURE__ */
|
|
731
|
+
}), /* @__PURE__ */ W("span", {
|
|
731
732
|
className: "cw-value",
|
|
732
733
|
children: c
|
|
733
734
|
})]
|
|
734
|
-
}), f && /* @__PURE__ */
|
|
735
|
+
}), f && /* @__PURE__ */ W("span", {
|
|
735
736
|
className: "cw-icon",
|
|
736
737
|
children: f
|
|
737
738
|
})]
|
|
738
739
|
}),
|
|
739
|
-
S && /* @__PURE__ */
|
|
740
|
+
S && /* @__PURE__ */ W("div", {
|
|
740
741
|
className: "cw-bottom",
|
|
741
|
-
children: /* @__PURE__ */
|
|
742
|
+
children: /* @__PURE__ */ G("span", {
|
|
742
743
|
className: d("cw-trend", C),
|
|
743
744
|
children: [
|
|
744
|
-
C === "up" && /* @__PURE__ */
|
|
745
|
-
C === "down" && /* @__PURE__ */
|
|
746
|
-
/* @__PURE__ */
|
|
745
|
+
C === "up" && /* @__PURE__ */ W(i, { size: 14 }),
|
|
746
|
+
C === "down" && /* @__PURE__ */ W(t, { size: 14 }),
|
|
747
|
+
/* @__PURE__ */ W("span", { children: w })
|
|
747
748
|
]
|
|
748
749
|
})
|
|
749
750
|
}),
|
|
750
|
-
h && /* @__PURE__ */
|
|
751
|
+
h && /* @__PURE__ */ W("div", {
|
|
751
752
|
className: "cw-helper",
|
|
752
753
|
children: h
|
|
753
754
|
})
|
|
@@ -764,41 +765,41 @@ function ve(e) {
|
|
|
764
765
|
}
|
|
765
766
|
function ye({ label: e, value: n, icon: r, badge: a, helperText: o, trend: s, trendType: c, color: l = "primary", className: u, ...f }) {
|
|
766
767
|
let p = s != null, m = _e(s, c);
|
|
767
|
-
return /* @__PURE__ */
|
|
768
|
+
return /* @__PURE__ */ W(j, {
|
|
768
769
|
className: d("stat-card", `color-${l}`, u),
|
|
769
770
|
...f,
|
|
770
|
-
children: /* @__PURE__ */
|
|
771
|
+
children: /* @__PURE__ */ G(E, {
|
|
771
772
|
spacing: "md",
|
|
772
|
-
children: [/* @__PURE__ */
|
|
773
|
+
children: [/* @__PURE__ */ G(g, {
|
|
773
774
|
justify: "between",
|
|
774
775
|
align: "start",
|
|
775
|
-
children: [/* @__PURE__ */
|
|
776
|
+
children: [/* @__PURE__ */ G(E, {
|
|
776
777
|
spacing: "xs",
|
|
777
|
-
children: [/* @__PURE__ */
|
|
778
|
+
children: [/* @__PURE__ */ W("span", {
|
|
778
779
|
className: "stat-card-label",
|
|
779
780
|
children: e
|
|
780
|
-
}), /* @__PURE__ */
|
|
781
|
+
}), /* @__PURE__ */ W("span", {
|
|
781
782
|
className: "stat-card-value",
|
|
782
783
|
children: n
|
|
783
784
|
})]
|
|
784
|
-
}), /* @__PURE__ */
|
|
785
|
+
}), /* @__PURE__ */ G(g, {
|
|
785
786
|
align: "center",
|
|
786
|
-
children: [a, r && /* @__PURE__ */
|
|
787
|
+
children: [a, r && /* @__PURE__ */ W("span", {
|
|
787
788
|
className: "stat-card-icon",
|
|
788
789
|
children: r
|
|
789
790
|
})]
|
|
790
791
|
})]
|
|
791
|
-
}), (p || o) && /* @__PURE__ */
|
|
792
|
+
}), (p || o) && /* @__PURE__ */ G(g, {
|
|
792
793
|
justify: "between",
|
|
793
794
|
align: "center",
|
|
794
|
-
children: [p ? /* @__PURE__ */
|
|
795
|
+
children: [p ? /* @__PURE__ */ G("span", {
|
|
795
796
|
className: d("stat-card-trend", m),
|
|
796
797
|
children: [
|
|
797
|
-
m === "up" && /* @__PURE__ */
|
|
798
|
-
m === "down" && /* @__PURE__ */
|
|
799
|
-
/* @__PURE__ */
|
|
798
|
+
m === "up" && /* @__PURE__ */ W(i, { size: 14 }),
|
|
799
|
+
m === "down" && /* @__PURE__ */ W(t, { size: 14 }),
|
|
800
|
+
/* @__PURE__ */ W("span", { children: ve(s) })
|
|
800
801
|
]
|
|
801
|
-
}) : /* @__PURE__ */
|
|
802
|
+
}) : /* @__PURE__ */ W("span", {}), o && /* @__PURE__ */ W(_, {
|
|
802
803
|
size: "sm",
|
|
803
804
|
tone: "muted",
|
|
804
805
|
children: o
|
|
@@ -822,86 +823,86 @@ function xe(e, t) {
|
|
|
822
823
|
}
|
|
823
824
|
return r;
|
|
824
825
|
}
|
|
825
|
-
function Se({ items: n, renderCard: r, color: a = "primary", searchable: o = !1, searchKeys: s, searchPlaceholder: l = "Search...", search: u, onSearchChange: f, filterable: p = !1, filterKeys: m = [], filters: g, onFiltersChange: _, sortable: v = !1, sortKeys: y = [], defaultSort: S, sort:
|
|
826
|
-
let [
|
|
827
|
-
u === void 0 &&
|
|
826
|
+
function Se({ items: n, renderCard: r, color: a = "primary", searchable: o = !1, searchKeys: s, searchPlaceholder: l = "Search...", search: u, onSearchChange: f, filterable: p = !1, filterKeys: m = [], filters: g, onFiltersChange: _, sortable: v = !1, sortKeys: y = [], defaultSort: S, sort: w, onSortChange: T, pagination: E = !1, pageSize: D = 12, page: O, onPageChange: k, total: A, manualSearch: j = !1, manualFilters: M = !1, manualSort: N = !1, manualPagination: P = !1, loading: F = !1, loadingLabel: I = "Loading", scrollOffset: L, columns: te = 3, emptyMessage: ne = "No results found.", className: ie, style: z, ...B }) {
|
|
827
|
+
let [H, K] = U(""), [q, J] = U({}), [ce, le] = U(S ?? null), [Y, X] = U(1), [ue, Z] = U(!1), [de, fe] = U(!1), pe = oe(null), me = oe(null), he = u === void 0 ? H : u, Q = g === void 0 ? q : g, $ = w === void 0 ? ce : w, ge = O === void 0 ? Y : O, _e = V((e) => {
|
|
828
|
+
u === void 0 && K(e), !P && O === void 0 && X(1), f?.(e);
|
|
828
829
|
}, [
|
|
829
830
|
u,
|
|
830
|
-
|
|
831
|
-
|
|
831
|
+
O,
|
|
832
|
+
P,
|
|
832
833
|
f
|
|
833
|
-
]),
|
|
834
|
-
g === void 0 &&
|
|
834
|
+
]), ve = V((e) => {
|
|
835
|
+
g === void 0 && J(e), !P && O === void 0 && X(1), _?.(e);
|
|
835
836
|
}, [
|
|
836
837
|
g,
|
|
837
|
-
|
|
838
|
-
|
|
838
|
+
O,
|
|
839
|
+
P,
|
|
839
840
|
_
|
|
840
|
-
]),
|
|
841
|
-
|
|
841
|
+
]), ye = V((e) => {
|
|
842
|
+
w === void 0 && le(e), !P && O === void 0 && X(1), T?.(e);
|
|
842
843
|
}, [
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
]),
|
|
848
|
-
|
|
844
|
+
w,
|
|
845
|
+
O,
|
|
846
|
+
P,
|
|
847
|
+
T
|
|
848
|
+
]), Se = oe(null), Ce = V((e) => {
|
|
849
|
+
O === void 0 && X(e), k?.(e), Se.current?.scrollIntoView({
|
|
849
850
|
block: "start",
|
|
850
851
|
behavior: "smooth"
|
|
851
852
|
});
|
|
852
|
-
}, [
|
|
853
|
-
|
|
854
|
-
}, []),
|
|
855
|
-
|
|
856
|
-
}, []),
|
|
853
|
+
}, [O, k]), we = V(() => {
|
|
854
|
+
Z((e) => !e), fe(!1);
|
|
855
|
+
}, []), Te = V(() => {
|
|
856
|
+
fe((e) => !e), Z(!1);
|
|
857
|
+
}, []), Ee = ae(() => {
|
|
857
858
|
let e = n;
|
|
858
|
-
if (!
|
|
859
|
-
let t =
|
|
859
|
+
if (!j && he && s && s.length > 0) {
|
|
860
|
+
let t = he.toLowerCase();
|
|
860
861
|
e = e.filter((e) => s.some((n) => {
|
|
861
862
|
let r = xe(e, n);
|
|
862
863
|
return r != null && String(r).toLowerCase().includes(t);
|
|
863
864
|
}));
|
|
864
865
|
}
|
|
865
|
-
if (!
|
|
866
|
+
if (!M) for (let [t, n] of Object.entries(Q)) !n || n.length === 0 || (e = e.filter((e) => {
|
|
866
867
|
let r = xe(e, t);
|
|
867
868
|
return r != null && n.includes(String(r));
|
|
868
869
|
}));
|
|
869
|
-
return !
|
|
870
|
-
let n = xe(e,
|
|
870
|
+
return !N && $ && (e = [...e].sort((e, t) => {
|
|
871
|
+
let n = xe(e, $.key), r = xe(t, $.key);
|
|
871
872
|
if (n == null && r == null) return 0;
|
|
872
873
|
if (n == null) return 1;
|
|
873
874
|
if (r == null) return -1;
|
|
874
875
|
let i = String(n).localeCompare(String(r), void 0, { numeric: !0 });
|
|
875
|
-
return
|
|
876
|
+
return $.direction === "asc" ? i : -i;
|
|
876
877
|
})), e === n ? [...e] : e;
|
|
877
878
|
}, [
|
|
878
879
|
n,
|
|
879
|
-
|
|
880
|
+
he,
|
|
880
881
|
s,
|
|
881
|
-
Z,
|
|
882
882
|
Q,
|
|
883
|
-
|
|
883
|
+
$,
|
|
884
884
|
j,
|
|
885
|
-
M
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
885
|
+
M,
|
|
886
|
+
N
|
|
887
|
+
]), De = P ? A ?? Ee.length : Ee.length, Oe = ae(() => {
|
|
888
|
+
if (!E || P) return Ee;
|
|
889
|
+
let e = (ge - 1) * D;
|
|
890
|
+
return Ee.slice(e, e + D);
|
|
890
891
|
}, [
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
892
|
+
Ee,
|
|
893
|
+
E,
|
|
894
|
+
P,
|
|
895
|
+
ge,
|
|
896
|
+
D
|
|
896
897
|
]);
|
|
897
|
-
function
|
|
898
|
-
let n =
|
|
899
|
-
|
|
900
|
-
...
|
|
898
|
+
function ke(e, t) {
|
|
899
|
+
let n = Q[e] ?? [], r = n.includes(t) ? n.filter((e) => e !== t) : [...n, t];
|
|
900
|
+
ve({
|
|
901
|
+
...Q,
|
|
901
902
|
[e]: r
|
|
902
903
|
});
|
|
903
904
|
}
|
|
904
|
-
let
|
|
905
|
+
let Ae = ae(() => {
|
|
905
906
|
let e = {};
|
|
906
907
|
for (let t of m) {
|
|
907
908
|
if (t.options) {
|
|
@@ -916,109 +917,126 @@ function Se({ items: n, renderCard: r, color: a = "primary", searchable: o = !1,
|
|
|
916
917
|
e[t.key] = Array.from(r).sort();
|
|
917
918
|
}
|
|
918
919
|
return e;
|
|
919
|
-
}, [n, m]),
|
|
920
|
-
return /* @__PURE__ */
|
|
921
|
-
ref:
|
|
922
|
-
className: d("card-grid", `color-${a}`,
|
|
923
|
-
style:
|
|
924
|
-
|
|
920
|
+
}, [n, m]), je = y.find((e) => e.key === $?.key);
|
|
921
|
+
return /* @__PURE__ */ G("div", {
|
|
922
|
+
ref: Se,
|
|
923
|
+
className: d("card-grid", `color-${a}`, ie),
|
|
924
|
+
style: L === void 0 ? z : {
|
|
925
|
+
scrollMarginTop: L,
|
|
926
|
+
...z
|
|
927
|
+
},
|
|
928
|
+
...B,
|
|
925
929
|
children: [
|
|
926
|
-
(o || p || v) && /* @__PURE__ */
|
|
930
|
+
(o || p || v) && /* @__PURE__ */ G("div", {
|
|
927
931
|
className: "card-grid-toolbar",
|
|
928
|
-
children: [o && /* @__PURE__ */
|
|
932
|
+
children: [o && /* @__PURE__ */ W(ee, {
|
|
929
933
|
className: "card-grid-search",
|
|
930
934
|
size: "sm",
|
|
931
935
|
fullWidth: !0,
|
|
932
936
|
placeholder: l,
|
|
933
|
-
value:
|
|
934
|
-
onChange: (e) =>
|
|
935
|
-
onClear: () =>
|
|
936
|
-
}), /* @__PURE__ */
|
|
937
|
+
value: he,
|
|
938
|
+
onChange: (e) => _e(e.target.value),
|
|
939
|
+
onClear: () => _e("")
|
|
940
|
+
}), /* @__PURE__ */ G("div", {
|
|
937
941
|
className: "card-grid-actions",
|
|
938
|
-
children: [p && m.length > 0 && /* @__PURE__ */
|
|
939
|
-
ref:
|
|
942
|
+
children: [p && m.length > 0 && /* @__PURE__ */ G(se, { children: [/* @__PURE__ */ W(b, {
|
|
943
|
+
ref: pe,
|
|
940
944
|
variant: "outlined",
|
|
941
945
|
color: a,
|
|
942
946
|
size: "sm",
|
|
943
|
-
startIcon: /* @__PURE__ */
|
|
944
|
-
"aria-expanded":
|
|
945
|
-
onClick:
|
|
947
|
+
startIcon: /* @__PURE__ */ W(e, {}),
|
|
948
|
+
"aria-expanded": ue,
|
|
949
|
+
onClick: we,
|
|
946
950
|
children: "Filter"
|
|
947
|
-
}), /* @__PURE__ */
|
|
948
|
-
open:
|
|
949
|
-
anchorRef:
|
|
950
|
-
onClose: () =>
|
|
951
|
+
}), /* @__PURE__ */ W(h, {
|
|
952
|
+
open: ue,
|
|
953
|
+
anchorRef: pe,
|
|
954
|
+
onClose: () => Z(!1),
|
|
951
955
|
placement: "bottom-end",
|
|
952
956
|
className: "card-grid-dropdown",
|
|
953
|
-
children: m.map((e) => /* @__PURE__ */
|
|
957
|
+
children: m.map((e) => /* @__PURE__ */ G("div", {
|
|
954
958
|
className: "card-grid-filter-group",
|
|
955
|
-
children: [/* @__PURE__ */
|
|
959
|
+
children: [/* @__PURE__ */ W("span", {
|
|
956
960
|
className: "card-grid-filter-label",
|
|
957
961
|
children: e.label
|
|
958
|
-
}), (
|
|
962
|
+
}), (Ae[e.key] ?? []).map((t) => /* @__PURE__ */ W("div", {
|
|
959
963
|
className: "card-grid-filter-option",
|
|
960
|
-
children: /* @__PURE__ */
|
|
964
|
+
children: /* @__PURE__ */ W(x, {
|
|
961
965
|
size: "sm",
|
|
962
966
|
clickEffect: "none",
|
|
963
|
-
checked:
|
|
964
|
-
onChange: () =>
|
|
967
|
+
checked: Q[e.key]?.includes(t) ?? !1,
|
|
968
|
+
onChange: () => ke(e.key, t),
|
|
965
969
|
label: t
|
|
966
970
|
})
|
|
967
971
|
}, t))]
|
|
968
972
|
}, e.key))
|
|
969
|
-
})] }), v && y.length > 0 && /* @__PURE__ */
|
|
970
|
-
ref:
|
|
973
|
+
})] }), v && y.length > 0 && /* @__PURE__ */ G(se, { children: [/* @__PURE__ */ W(b, {
|
|
974
|
+
ref: me,
|
|
971
975
|
variant: "outlined",
|
|
972
976
|
color: a,
|
|
973
977
|
size: "sm",
|
|
974
|
-
startIcon:
|
|
975
|
-
"aria-expanded":
|
|
976
|
-
onClick:
|
|
977
|
-
children:
|
|
978
|
-
}), /* @__PURE__ */
|
|
979
|
-
open:
|
|
980
|
-
anchorRef:
|
|
981
|
-
onClose: () =>
|
|
978
|
+
startIcon: $ ? $.direction === "asc" ? /* @__PURE__ */ W(i, {}) : /* @__PURE__ */ W(t, {}) : /* @__PURE__ */ W(c, {}),
|
|
979
|
+
"aria-expanded": de,
|
|
980
|
+
onClick: Te,
|
|
981
|
+
children: je ? `Sort: ${je.label}` : "Sort"
|
|
982
|
+
}), /* @__PURE__ */ W(h, {
|
|
983
|
+
open: de,
|
|
984
|
+
anchorRef: me,
|
|
985
|
+
onClose: () => fe(!1),
|
|
982
986
|
placement: "bottom-end",
|
|
983
987
|
className: "card-grid-dropdown",
|
|
984
|
-
children: y.map((e) => /* @__PURE__ */
|
|
988
|
+
children: y.map((e) => /* @__PURE__ */ G("button", {
|
|
985
989
|
type: "button",
|
|
986
|
-
className: d("card-grid-sort-item",
|
|
990
|
+
className: d("card-grid-sort-item", $?.key === e.key && "active"),
|
|
987
991
|
onClick: () => {
|
|
988
|
-
|
|
992
|
+
$?.key === e.key ? ye({
|
|
989
993
|
key: e.key,
|
|
990
|
-
direction:
|
|
991
|
-
}) :
|
|
994
|
+
direction: $.direction === "asc" ? "desc" : "asc"
|
|
995
|
+
}) : ye({
|
|
992
996
|
key: e.key,
|
|
993
997
|
direction: "asc"
|
|
994
998
|
});
|
|
995
999
|
},
|
|
996
|
-
children: [e.label,
|
|
1000
|
+
children: [e.label, $?.key === e.key && /* @__PURE__ */ W("span", {
|
|
997
1001
|
className: "card-grid-sort-dir",
|
|
998
|
-
children:
|
|
1002
|
+
children: $.direction === "asc" ? /* @__PURE__ */ W(i, { className: "card-grid-sort-icon" }) : /* @__PURE__ */ W(t, { className: "card-grid-sort-icon" })
|
|
999
1003
|
})]
|
|
1000
1004
|
}, e.key))
|
|
1001
1005
|
})] })]
|
|
1002
1006
|
})]
|
|
1003
1007
|
}),
|
|
1004
|
-
|
|
1005
|
-
className: "card-grid-
|
|
1006
|
-
|
|
1007
|
-
children:
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1008
|
+
/* @__PURE__ */ G("div", {
|
|
1009
|
+
className: d("card-grid-body", F && "loading"),
|
|
1010
|
+
"aria-busy": F || void 0,
|
|
1011
|
+
children: [Oe.length > 0 ? /* @__PURE__ */ W("div", {
|
|
1012
|
+
className: "card-grid-items",
|
|
1013
|
+
style: be(te),
|
|
1014
|
+
children: Oe.map((e, t) => {
|
|
1015
|
+
let n = e?.id;
|
|
1016
|
+
return /* @__PURE__ */ W(R, { children: r(e, t) }, n ?? t);
|
|
1017
|
+
})
|
|
1018
|
+
}) : /* @__PURE__ */ W("div", {
|
|
1019
|
+
className: "card-grid-empty",
|
|
1020
|
+
children: ne
|
|
1021
|
+
}), F && /* @__PURE__ */ W("div", {
|
|
1022
|
+
className: "card-grid-loading",
|
|
1023
|
+
role: "status",
|
|
1024
|
+
"aria-live": "polite",
|
|
1025
|
+
children: /* @__PURE__ */ W(C, {
|
|
1026
|
+
center: !1,
|
|
1027
|
+
minHeight: "auto",
|
|
1028
|
+
color: a,
|
|
1029
|
+
label: I
|
|
1030
|
+
})
|
|
1031
|
+
})]
|
|
1014
1032
|
}),
|
|
1015
|
-
|
|
1033
|
+
E && De > D && /* @__PURE__ */ W("div", {
|
|
1016
1034
|
className: "card-grid-pagination",
|
|
1017
|
-
children: /* @__PURE__ */
|
|
1018
|
-
total:
|
|
1019
|
-
page:
|
|
1020
|
-
pageSize:
|
|
1021
|
-
onChange:
|
|
1035
|
+
children: /* @__PURE__ */ W(re, {
|
|
1036
|
+
total: De,
|
|
1037
|
+
page: ge,
|
|
1038
|
+
pageSize: D,
|
|
1039
|
+
onChange: Ce
|
|
1022
1040
|
})
|
|
1023
1041
|
})
|
|
1024
1042
|
]
|
|
@@ -1026,19 +1044,19 @@ function Se({ items: n, renderCard: r, color: a = "primary", searchable: o = !1,
|
|
|
1026
1044
|
}
|
|
1027
1045
|
//#endregion
|
|
1028
1046
|
//#region src/components/cards/MCardDaySchedule/MCardDaySchedule.tsx
|
|
1029
|
-
function
|
|
1047
|
+
function Ce({ title: e = "Today", description: t, color: n = "primary", workdayStart: r, workdayEnd: i, timeline: a, summary: o, tabs: s = [], footer: c, emptyTimeline: l = /* @__PURE__ */ W(_, {
|
|
1030
1048
|
tone: "muted",
|
|
1031
1049
|
children: "No events scheduled for this day."
|
|
1032
1050
|
}), ...u }) {
|
|
1033
1051
|
let d = r && i ? `${r}-${i}` : r ?? i ?? void 0, f = s.filter((e) => e.items.length > 0);
|
|
1034
|
-
return /* @__PURE__ */
|
|
1052
|
+
return /* @__PURE__ */ G(j, {
|
|
1035
1053
|
color: n,
|
|
1036
1054
|
...u,
|
|
1037
1055
|
children: [
|
|
1038
|
-
/* @__PURE__ */
|
|
1056
|
+
/* @__PURE__ */ W(O, { children: /* @__PURE__ */ G(E, { children: [/* @__PURE__ */ W(v, {
|
|
1039
1057
|
level: 4,
|
|
1040
1058
|
children: e
|
|
1041
|
-
}), (t || d) && /* @__PURE__ */
|
|
1059
|
+
}), (t || d) && /* @__PURE__ */ G(_, {
|
|
1042
1060
|
size: "sm",
|
|
1043
1061
|
tone: "muted",
|
|
1044
1062
|
children: [
|
|
@@ -1047,34 +1065,34 @@ function $({ title: e = "Today", description: t, color: n = "primary", workdaySt
|
|
|
1047
1065
|
d
|
|
1048
1066
|
]
|
|
1049
1067
|
})] }) }),
|
|
1050
|
-
/* @__PURE__ */
|
|
1068
|
+
/* @__PURE__ */ W(k, { children: /* @__PURE__ */ G(T, {
|
|
1051
1069
|
type: "row",
|
|
1052
1070
|
align: "start",
|
|
1053
|
-
children: [/* @__PURE__ */
|
|
1071
|
+
children: [/* @__PURE__ */ W(T, {
|
|
1054
1072
|
type: "col",
|
|
1055
1073
|
xl: 7,
|
|
1056
1074
|
sm: 12,
|
|
1057
|
-
children: a.length ? /* @__PURE__ */
|
|
1075
|
+
children: a.length ? /* @__PURE__ */ W(E, {
|
|
1058
1076
|
className: "day-schedule-card-timeline",
|
|
1059
|
-
children: a.map((e) => /* @__PURE__ */
|
|
1077
|
+
children: a.map((e) => /* @__PURE__ */ G(g, {
|
|
1060
1078
|
align: "start",
|
|
1061
1079
|
className: "day-schedule-card-entry",
|
|
1062
1080
|
children: [
|
|
1063
|
-
/* @__PURE__ */
|
|
1081
|
+
/* @__PURE__ */ W("span", {
|
|
1064
1082
|
className: "day-schedule-card-time",
|
|
1065
1083
|
children: e.time
|
|
1066
1084
|
}),
|
|
1067
|
-
/* @__PURE__ */
|
|
1085
|
+
/* @__PURE__ */ W("div", {
|
|
1068
1086
|
className: "day-schedule-card-dot",
|
|
1069
1087
|
"data-color": e.color ?? n,
|
|
1070
|
-
children:
|
|
1088
|
+
children: J(e.icon, e.color ?? n)
|
|
1071
1089
|
}),
|
|
1072
|
-
/* @__PURE__ */
|
|
1090
|
+
/* @__PURE__ */ G("div", {
|
|
1073
1091
|
className: "day-schedule-card-copy",
|
|
1074
|
-
children: [/* @__PURE__ */
|
|
1092
|
+
children: [/* @__PURE__ */ W(_, {
|
|
1075
1093
|
as: "strong",
|
|
1076
1094
|
children: e.title
|
|
1077
|
-
}), e.description && /* @__PURE__ */
|
|
1095
|
+
}), e.description && /* @__PURE__ */ W(_, {
|
|
1078
1096
|
size: "sm",
|
|
1079
1097
|
tone: "muted",
|
|
1080
1098
|
children: e.description
|
|
@@ -1083,70 +1101,70 @@ function $({ title: e = "Today", description: t, color: n = "primary", workdaySt
|
|
|
1083
1101
|
]
|
|
1084
1102
|
}, e.id))
|
|
1085
1103
|
}) : l
|
|
1086
|
-
}), /* @__PURE__ */
|
|
1104
|
+
}), /* @__PURE__ */ W(T, {
|
|
1087
1105
|
type: "col",
|
|
1088
1106
|
xl: 5,
|
|
1089
1107
|
sm: 12,
|
|
1090
|
-
children: /* @__PURE__ */
|
|
1108
|
+
children: /* @__PURE__ */ G(E, {
|
|
1091
1109
|
className: "day-schedule-card-side",
|
|
1092
|
-
children: [o, f.length > 0 && /* @__PURE__ */
|
|
1110
|
+
children: [o, f.length > 0 && /* @__PURE__ */ W(w, {
|
|
1093
1111
|
variant: "underline",
|
|
1094
1112
|
size: "sm",
|
|
1095
1113
|
fullWidth: !0,
|
|
1096
1114
|
defaultValue: f[0].type,
|
|
1097
1115
|
items: f.map((e) => ({
|
|
1098
1116
|
value: e.type,
|
|
1099
|
-
label: /* @__PURE__ */
|
|
1117
|
+
label: /* @__PURE__ */ G("span", {
|
|
1100
1118
|
className: "day-schedule-card-tab-label",
|
|
1101
|
-
children: [/* @__PURE__ */
|
|
1119
|
+
children: [/* @__PURE__ */ W("span", { children: e.title }), /* @__PURE__ */ W("span", {
|
|
1102
1120
|
className: "day-schedule-card-tab-count",
|
|
1103
1121
|
children: e.items.length
|
|
1104
1122
|
})]
|
|
1105
1123
|
}),
|
|
1106
|
-
content: /* @__PURE__ */
|
|
1124
|
+
content: /* @__PURE__ */ W(I, { items: e.items })
|
|
1107
1125
|
}))
|
|
1108
1126
|
})]
|
|
1109
1127
|
})
|
|
1110
1128
|
})]
|
|
1111
1129
|
}) }),
|
|
1112
|
-
c && /* @__PURE__ */
|
|
1130
|
+
c && /* @__PURE__ */ W(A, { children: J(c, n) })
|
|
1113
1131
|
]
|
|
1114
1132
|
});
|
|
1115
1133
|
}
|
|
1116
1134
|
//#endregion
|
|
1117
1135
|
//#region src/components/cards/MCardDocumentTree/MCardDocumentTree.tsx
|
|
1118
|
-
function
|
|
1136
|
+
function we({ title: e = "Documents", description: t, color: n = "primary", items: r, selected: i, onSelect: o, defaultExpanded: s, expanded: c, onExpandChange: l, detailsTitle: u, detailsMeta: d, detailsItems: f = [], detailsActions: p = [], renderDetails: m, emptyDetails: h = /* @__PURE__ */ W(_, {
|
|
1119
1137
|
tone: "muted",
|
|
1120
1138
|
children: "Select a document to inspect its details."
|
|
1121
1139
|
}), primaryAction: y, ...x }) {
|
|
1122
1140
|
let S = (e) => ({
|
|
1123
1141
|
...e,
|
|
1124
|
-
icon:
|
|
1142
|
+
icon: J(e.icon, n),
|
|
1125
1143
|
children: e.children?.map(S)
|
|
1126
1144
|
}), C = r.map(S);
|
|
1127
|
-
return /* @__PURE__ */
|
|
1145
|
+
return /* @__PURE__ */ G(j, {
|
|
1128
1146
|
stretch: !1,
|
|
1129
1147
|
color: n,
|
|
1130
1148
|
...x,
|
|
1131
|
-
children: [/* @__PURE__ */
|
|
1149
|
+
children: [/* @__PURE__ */ W(O, { children: /* @__PURE__ */ G(g, {
|
|
1132
1150
|
justify: "between",
|
|
1133
1151
|
align: "center",
|
|
1134
|
-
children: [/* @__PURE__ */
|
|
1152
|
+
children: [/* @__PURE__ */ G(E, { children: [/* @__PURE__ */ W(v, {
|
|
1135
1153
|
level: 4,
|
|
1136
1154
|
children: e
|
|
1137
|
-
}), t && /* @__PURE__ */
|
|
1155
|
+
}), t && /* @__PURE__ */ W(_, {
|
|
1138
1156
|
size: "sm",
|
|
1139
1157
|
tone: "muted",
|
|
1140
1158
|
children: t
|
|
1141
|
-
})] }),
|
|
1142
|
-
}) }), /* @__PURE__ */
|
|
1159
|
+
})] }), J(y, n)]
|
|
1160
|
+
}) }), /* @__PURE__ */ W(k, { children: /* @__PURE__ */ G(T, {
|
|
1143
1161
|
type: "row",
|
|
1144
1162
|
align: "start",
|
|
1145
|
-
children: [/* @__PURE__ */
|
|
1163
|
+
children: [/* @__PURE__ */ W(T, {
|
|
1146
1164
|
type: "col",
|
|
1147
1165
|
xl: 7,
|
|
1148
1166
|
sm: 12,
|
|
1149
|
-
children: /* @__PURE__ */
|
|
1167
|
+
children: /* @__PURE__ */ W(L, {
|
|
1150
1168
|
items: C,
|
|
1151
1169
|
color: n,
|
|
1152
1170
|
defaultExpanded: s,
|
|
@@ -1159,34 +1177,34 @@ function Ce({ title: e = "Documents", description: t, color: n = "primary", item
|
|
|
1159
1177
|
showLines: !0,
|
|
1160
1178
|
fileIcons: !0
|
|
1161
1179
|
})
|
|
1162
|
-
}), /* @__PURE__ */
|
|
1180
|
+
}), /* @__PURE__ */ W(T, {
|
|
1163
1181
|
type: "col",
|
|
1164
1182
|
xl: 5,
|
|
1165
1183
|
sm: 12,
|
|
1166
|
-
children: /* @__PURE__ */
|
|
1184
|
+
children: /* @__PURE__ */ G(E, {
|
|
1167
1185
|
padding: "sm",
|
|
1168
|
-
children: [(u || d || p.length > 0) && /* @__PURE__ */
|
|
1186
|
+
children: [(u || d || p.length > 0) && /* @__PURE__ */ G(g, {
|
|
1169
1187
|
justify: "between",
|
|
1170
1188
|
align: "start",
|
|
1171
|
-
children: [/* @__PURE__ */
|
|
1189
|
+
children: [/* @__PURE__ */ G(E, { children: [u && /* @__PURE__ */ W(v, {
|
|
1172
1190
|
level: 5,
|
|
1173
1191
|
children: u
|
|
1174
|
-
}), d && /* @__PURE__ */
|
|
1192
|
+
}), d && /* @__PURE__ */ W(_, {
|
|
1175
1193
|
size: "sm",
|
|
1176
1194
|
tone: "muted",
|
|
1177
1195
|
children: d
|
|
1178
|
-
})] }), p.length > 0 && /* @__PURE__ */
|
|
1196
|
+
})] }), p.length > 0 && /* @__PURE__ */ W(te, {
|
|
1179
1197
|
placement: "bottom-end",
|
|
1180
|
-
trigger: /* @__PURE__ */
|
|
1198
|
+
trigger: /* @__PURE__ */ W(b, {
|
|
1181
1199
|
variant: "ghost",
|
|
1182
1200
|
color: n,
|
|
1183
1201
|
iconOnly: !0,
|
|
1184
1202
|
shape: "circle",
|
|
1185
1203
|
"aria-label": "Open document actions",
|
|
1186
|
-
children: /* @__PURE__ */
|
|
1204
|
+
children: /* @__PURE__ */ W(a, {})
|
|
1187
1205
|
}),
|
|
1188
|
-
children: p.map((e) => /* @__PURE__ */
|
|
1189
|
-
icon:
|
|
1206
|
+
children: p.map((e) => /* @__PURE__ */ W(ne, {
|
|
1207
|
+
icon: J(e.icon, e.color ?? n),
|
|
1190
1208
|
label: e.label,
|
|
1191
1209
|
color: e.color ?? n,
|
|
1192
1210
|
disabled: e.disabled,
|
|
@@ -1196,13 +1214,13 @@ function Ce({ title: e = "Documents", description: t, color: n = "primary", item
|
|
|
1196
1214
|
onClick: e.onClick
|
|
1197
1215
|
}, e.id))
|
|
1198
1216
|
})]
|
|
1199
|
-
}), m || (f.length ? /* @__PURE__ */
|
|
1217
|
+
}), m || (f.length ? /* @__PURE__ */ W(I, { items: f }) : h)]
|
|
1200
1218
|
})
|
|
1201
1219
|
})]
|
|
1202
1220
|
}) })]
|
|
1203
1221
|
});
|
|
1204
1222
|
}
|
|
1205
1223
|
//#endregion
|
|
1206
|
-
export { ge as a,
|
|
1224
|
+
export { ge as a, pe as c, ue as d, Y as f, ye as i, fe as l, Ce as n, he as o, ce as p, Se as r, me as s, we as t, de as u };
|
|
1207
1225
|
|
|
1208
|
-
//# sourceMappingURL=cards-
|
|
1226
|
+
//# sourceMappingURL=cards-Du2kX3Br.js.map
|