@mhmo91/schmancy 0.5.17 → 0.5.19
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/ai/details.md +12 -0
- package/ai/navigation-bar-item.md +247 -0
- package/ai/navigation-bar.md +163 -0
- package/dist/ai/details.md +12 -0
- package/dist/ai/navigation-bar-item.md +247 -0
- package/dist/ai/navigation-bar.md +163 -0
- package/dist/{animated-text-CVggbrzP.js → animated-text-DbBKOAWI.js} +3 -3
- package/dist/{animated-text-CVggbrzP.js.map → animated-text-DbBKOAWI.js.map} +1 -1
- package/dist/{animated-text-_cmV8a54.cjs → animated-text-L4rVnRqB.cjs} +2 -2
- package/dist/{animated-text-_cmV8a54.cjs.map → animated-text-L4rVnRqB.cjs.map} +1 -1
- package/dist/animated-text.cjs +1 -1
- package/dist/animated-text.js +1 -1
- package/dist/area.cjs +1 -1
- package/dist/{area.component-jZXEnoq-.cjs → area.component-DsBt1CIM.cjs} +2 -2
- package/dist/{area.component-jZXEnoq-.cjs.map → area.component-DsBt1CIM.cjs.map} +1 -1
- package/dist/{area.component-O_qgo7Up.js → area.component-eV-v6J5C.js} +3 -3
- package/dist/{area.component-O_qgo7Up.js.map → area.component-eV-v6J5C.js.map} +1 -1
- package/dist/area.js +1 -1
- package/dist/{autocomplete-B-7raIta.js → autocomplete-CTQ6eqYl.js} +4 -4
- package/dist/{autocomplete-B-7raIta.js.map → autocomplete-CTQ6eqYl.js.map} +1 -1
- package/dist/{autocomplete-B_r234CD.cjs → autocomplete-DnX6sEMg.cjs} +2 -2
- package/dist/{autocomplete-B_r234CD.cjs.map → autocomplete-DnX6sEMg.cjs.map} +1 -1
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/avatar-BAaUCxc-.js +895 -0
- package/dist/avatar-BAaUCxc-.js.map +1 -0
- package/dist/avatar-DwqCiKOy.cjs +303 -0
- package/dist/avatar-DwqCiKOy.cjs.map +1 -0
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/{boat-2qtEaUeN.cjs → boat-BbF0BpAl.cjs} +2 -2
- package/dist/{boat-2qtEaUeN.cjs.map → boat-BbF0BpAl.cjs.map} +1 -1
- package/dist/{boat-C1UVL3oV.js → boat-CQyUVpLW.js} +2 -2
- package/dist/{boat-C1UVL3oV.js.map → boat-CQyUVpLW.js.map} +1 -1
- package/dist/boat.cjs +1 -1
- package/dist/boat.js +1 -1
- package/dist/busy.cjs +1 -1
- package/dist/busy.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/{checkbox-BishJeD7.js → checkbox-7annHqhF.js} +2 -2
- package/dist/{checkbox-BishJeD7.js.map → checkbox-7annHqhF.js.map} +1 -1
- package/dist/{checkbox-C_Mho5IS.cjs → checkbox-CI4CDpoS.cjs} +2 -2
- package/dist/{checkbox-C_Mho5IS.cjs.map → checkbox-CI4CDpoS.cjs.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +2 -2
- package/dist/code-highlight.cjs +1 -1
- package/dist/code-highlight.js +1 -1
- package/dist/{code-preview-BGJ6Q1V8.js → code-preview-Y783aZ7J.js} +133 -123
- package/dist/{code-preview-BGJ6Q1V8.js.map → code-preview-Y783aZ7J.js.map} +1 -1
- package/dist/{code-preview-B6i7Kbhk.cjs → code-preview-zE_SbNNO.cjs} +67 -57
- package/dist/{code-preview-B6i7Kbhk.cjs.map → code-preview-zE_SbNNO.cjs.map} +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/content-drawer.cjs +1 -1
- package/dist/content-drawer.js +1 -1
- package/dist/{date-range-Bqv5hphM.cjs → date-range-Bh2x7nlc.cjs} +2 -2
- package/dist/{date-range-Bqv5hphM.cjs.map → date-range-Bh2x7nlc.cjs.map} +1 -1
- package/dist/{date-range-DrPsXxr8.js → date-range-BtFn7iGs.js} +3 -3
- package/dist/{date-range-DrPsXxr8.js.map → date-range-BtFn7iGs.js.map} +1 -1
- package/dist/{date-range-inline-BYu21efD.js → date-range-inline-BnGPY5ZY.js} +3 -3
- package/dist/{date-range-inline-BYu21efD.js.map → date-range-inline-BnGPY5ZY.js.map} +1 -1
- package/dist/{date-range-inline-DsBWzDSL.cjs → date-range-inline-C_6N7yca.cjs} +2 -2
- package/dist/{date-range-inline-DsBWzDSL.cjs.map → date-range-inline-C_6N7yca.cjs.map} +1 -1
- package/dist/date-range-inline.cjs +1 -1
- package/dist/date-range-inline.js +1 -1
- package/dist/date-range.cjs +1 -1
- package/dist/date-range.js +1 -1
- package/dist/{delay-qmcNJXnv.js → delay-DafLdRaR.js} +2 -2
- package/dist/{delay-qmcNJXnv.js.map → delay-DafLdRaR.js.map} +1 -1
- package/dist/{delay-t64VcUWO.cjs → delay-DgBkfK3a.cjs} +2 -2
- package/dist/{delay-t64VcUWO.cjs.map → delay-DgBkfK3a.cjs.map} +1 -1
- package/dist/delay.cjs +1 -1
- package/dist/delay.js +1 -1
- package/dist/details-89R5QI1S.js +228 -0
- package/dist/details-89R5QI1S.js.map +1 -0
- package/dist/details-DpodqE31.cjs +161 -0
- package/dist/details-DpodqE31.cjs.map +1 -0
- package/dist/details.cjs +1 -1
- package/dist/details.js +1 -1
- package/dist/{dialog-content-CD0C4VSa.js → dialog-content-CGt4hZZn.js} +3 -3
- package/dist/{dialog-content-CD0C4VSa.js.map → dialog-content-CGt4hZZn.js.map} +1 -1
- package/dist/{dialog-content-CzfmE_A3.cjs → dialog-content-S6k16Le_.cjs} +2 -2
- package/dist/{dialog-content-CzfmE_A3.cjs.map → dialog-content-S6k16Le_.cjs.map} +1 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/{divider-CZRdHTyy.cjs → divider-CUFy4oEY.cjs} +2 -2
- package/dist/{divider-CZRdHTyy.cjs.map → divider-CUFy4oEY.cjs.map} +1 -1
- package/dist/{divider-iHf2FakN.js → divider-dTggJNS0.js} +3 -3
- package/dist/{divider-iHf2FakN.js.map → divider-dTggJNS0.js.map} +1 -1
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/{dropdown-content--T-3dDKx.js → dropdown-content-Bty4mF1A.js} +3 -3
- package/dist/{dropdown-content--T-3dDKx.js.map → dropdown-content-Bty4mF1A.js.map} +1 -1
- package/dist/{dropdown-content-DpRKwEWr.cjs → dropdown-content-D7dvNRRR.cjs} +2 -2
- package/dist/{dropdown-content-DpRKwEWr.cjs.map → dropdown-content-D7dvNRRR.cjs.map} +1 -1
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/{email-recipients-B_FrKVNa.cjs → email-recipients-DKDl1Qlt.cjs} +2 -2
- package/dist/{email-recipients-B_FrKVNa.cjs.map → email-recipients-DKDl1Qlt.cjs.map} +1 -1
- package/dist/{email-recipients-CyEihZq4.js → email-recipients-Tb0UBtjf.js} +5 -5
- package/dist/{email-recipients-CyEihZq4.js.map → email-recipients-Tb0UBtjf.js.map} +1 -1
- package/dist/extra.cjs +1 -1
- package/dist/extra.js +1 -1
- package/dist/{flex-C7Ni7BpJ.js → flex-CYF9ejQL.js} +2 -2
- package/dist/{flex-C7Ni7BpJ.js.map → flex-CYF9ejQL.js.map} +1 -1
- package/dist/{flex-CwloHehr.cjs → flex-zkXsvBw6.cjs} +2 -2
- package/dist/{flex-CwloHehr.cjs.map → flex-zkXsvBw6.cjs.map} +1 -1
- package/dist/{form-5zP1PzNH.cjs → form-D-CgyzE3.cjs} +2 -2
- package/dist/{form-5zP1PzNH.cjs.map → form-D-CgyzE3.cjs.map} +1 -1
- package/dist/{form-B4Knfx3e.js → form-DdQgacXw.js} +2 -2
- package/dist/{form-B4Knfx3e.js.map → form-DdQgacXw.js.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +1 -1
- package/dist/{formField.mixin-C6PdFxB5.cjs → formField.mixin-C7xna5S7.cjs} +2 -2
- package/dist/{formField.mixin-C6PdFxB5.cjs.map → formField.mixin-C7xna5S7.cjs.map} +1 -1
- package/dist/{formField.mixin-CmBfrPeP.js → formField.mixin-Cc6iv6e6.js} +2 -2
- package/dist/{formField.mixin-CmBfrPeP.js.map → formField.mixin-Cc6iv6e6.js.map} +1 -1
- package/dist/{icon-BZfElKOt.cjs → icon-CFM5r0Fm.cjs} +2 -2
- package/dist/{icon-BZfElKOt.cjs.map → icon-CFM5r0Fm.cjs.map} +1 -1
- package/dist/{icon-BYTCLcj1.js → icon-CYqOQBoE.js} +2 -2
- package/dist/{icon-BYTCLcj1.js.map → icon-CYqOQBoE.js.map} +1 -1
- package/dist/{icon-button-BGmO1xQ_.js → icon-button-BSCcuC7U.js} +3 -3
- package/dist/{icon-button-BGmO1xQ_.js.map → icon-button-BSCcuC7U.js.map} +1 -1
- package/dist/{icon-button-lsh418d9.cjs → icon-button-Bf_dCRHx.cjs} +2 -2
- package/dist/{icon-button-lsh418d9.cjs.map → icon-button-Bf_dCRHx.cjs.map} +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/icons.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +212 -210
- package/dist/{input-DyCM2nCl.js → input-CNs7L8A9.js} +3 -3
- package/dist/{input-DyCM2nCl.js.map → input-CNs7L8A9.js.map} +1 -1
- package/dist/{input-ZJ-BU9e1.cjs → input-D9B5aydv.cjs} +2 -2
- package/dist/{input-ZJ-BU9e1.cjs.map → input-D9B5aydv.cjs.map} +1 -1
- package/dist/{input-chip-CMgjp1k0.cjs → input-chip-Bu8DLVMh.cjs} +2 -2
- package/dist/{input-chip-CMgjp1k0.cjs.map → input-chip-Bu8DLVMh.cjs.map} +1 -1
- package/dist/{input-chip-DOM6N_gX.js → input-chip-CPNF4szF.js} +2 -2
- package/dist/{input-chip-DOM6N_gX.js.map → input-chip-CPNF4szF.js.map} +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.js +1 -1
- package/dist/{list-DWDUFk2P.js → list-Cp-TE18p.js} +2 -2
- package/dist/{list-DWDUFk2P.js.map → list-Cp-TE18p.js.map} +1 -1
- package/dist/{list-BMNuVDlx.cjs → list-Ds8oKtEs.cjs} +2 -2
- package/dist/{list-BMNuVDlx.cjs.map → list-Ds8oKtEs.cjs.map} +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{litElement.mixin-BbA24Ql0.js → litElement.mixin-7HEBIRUp.js} +2 -2
- package/dist/{litElement.mixin-BbA24Ql0.js.map → litElement.mixin-7HEBIRUp.js.map} +1 -1
- package/dist/{litElement.mixin-Z7A21PTu.cjs → litElement.mixin-DIoywlzp.cjs} +2 -2
- package/dist/{litElement.mixin-Z7A21PTu.cjs.map → litElement.mixin-DIoywlzp.cjs.map} +1 -1
- package/dist/mailbox.cjs +1 -1
- package/dist/mailbox.js +1 -1
- package/dist/{map-hhOSUXIi.js → map-CaTzsyI7.js} +2 -2
- package/dist/{map-hhOSUXIi.js.map → map-CaTzsyI7.js.map} +1 -1
- package/dist/{map-mYS0TKHR.cjs → map-DRCyozDz.cjs} +2 -2
- package/dist/{map-mYS0TKHR.cjs.map → map-DRCyozDz.cjs.map} +1 -1
- package/dist/map.cjs +1 -1
- package/dist/map.js +1 -1
- package/dist/{media-C2_iIXcU.cjs → media-DdzYh2k5.cjs} +2 -2
- package/dist/{media-C2_iIXcU.cjs.map → media-DdzYh2k5.cjs.map} +1 -1
- package/dist/{media-TexiZ5xw.js → media-Xr5pO0WU.js} +2 -2
- package/dist/{media-TexiZ5xw.js.map → media-Xr5pO0WU.js.map} +1 -1
- package/dist/{menu-DUvL0VTM.js → menu-C-Lvh3cn.js} +3 -3
- package/dist/{menu-DUvL0VTM.js.map → menu-C-Lvh3cn.js.map} +1 -1
- package/dist/{menu-D14UObVy.cjs → menu-S_OxKAxt.cjs} +2 -2
- package/dist/{menu-D14UObVy.cjs.map → menu-S_OxKAxt.cjs.map} +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/nav-drawer.cjs +1 -1
- package/dist/nav-drawer.js +1 -1
- package/dist/navigation-bar.cjs +2 -0
- package/dist/navigation-bar.cjs.map +1 -0
- package/dist/navigation-bar.js +6 -0
- package/dist/navigation-bar.js.map +1 -0
- package/dist/{navigation-rail-item-B6Q-5odq.cjs → navigation-rail-item-CCuC37Dx.cjs} +2 -2
- package/dist/{navigation-rail-item-B6Q-5odq.cjs.map → navigation-rail-item-CCuC37Dx.cjs.map} +1 -1
- package/dist/{navigation-rail-item-BtgIFYdN.js → navigation-rail-item-CZKWN1Ki.js} +2 -2
- package/dist/{navigation-rail-item-BtgIFYdN.js.map → navigation-rail-item-CZKWN1Ki.js.map} +1 -1
- package/dist/navigation-rail.cjs +1 -1
- package/dist/navigation-rail.js +1 -1
- package/dist/{notification-service-BnWgv-Jg.js → notification-service-36m9Setj.js} +4 -4
- package/dist/{notification-service-BnWgv-Jg.js.map → notification-service-36m9Setj.js.map} +1 -1
- package/dist/{notification-service-XpmtMRuA.cjs → notification-service-Bi9hRE33.cjs} +2 -2
- package/dist/{notification-service-XpmtMRuA.cjs.map → notification-service-Bi9hRE33.cjs.map} +1 -1
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +2 -2
- package/dist/{notify-Cebat7bS.cjs → notify-BLdA7aAa.cjs} +2 -2
- package/dist/{notify-Cebat7bS.cjs.map → notify-BLdA7aAa.cjs.map} +1 -1
- package/dist/{notify-CXAAgh5c.js → notify-BcimHn85.js} +2 -2
- package/dist/{notify-CXAAgh5c.js.map → notify-BcimHn85.js.map} +1 -1
- package/dist/{option-0KBLqH87.cjs → option-C9QLuFcY.cjs} +2 -2
- package/dist/{option-0KBLqH87.cjs.map → option-C9QLuFcY.cjs.map} +1 -1
- package/dist/{option-C_ZdANCE.js → option-DwEBerwR.js} +2 -2
- package/dist/{option-C_ZdANCE.js.map → option-DwEBerwR.js.map} +1 -1
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{payment-card-form-B2471X9c.js → payment-card-form-B1uZ9JUa.js} +3 -3
- package/dist/{payment-card-form-B2471X9c.js.map → payment-card-form-B1uZ9JUa.js.map} +1 -1
- package/dist/{payment-card-form-BXw4yQfa.cjs → payment-card-form-DGdRK0yK.cjs} +2 -2
- package/dist/{payment-card-form-BXw4yQfa.cjs.map → payment-card-form-DGdRK0yK.cjs.map} +1 -1
- package/dist/{progress-XxF6aSkN.js → progress-B3hQmGMa.js} +2 -2
- package/dist/{progress-XxF6aSkN.js.map → progress-B3hQmGMa.js.map} +1 -1
- package/dist/{progress-BoP5Csie.cjs → progress-DQwzTPYM.cjs} +2 -2
- package/dist/{progress-BoP5Csie.cjs.map → progress-DQwzTPYM.cjs.map} +1 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.js +1 -1
- package/dist/{radio-button-CXCejG_D.cjs → radio-button-CJhEZw8n.cjs} +2 -2
- package/dist/{radio-button-CXCejG_D.cjs.map → radio-button-CJhEZw8n.cjs.map} +1 -1
- package/dist/{radio-button-V2Hov0hR.js → radio-button-DDE3kwPV.js} +3 -3
- package/dist/{radio-button-V2Hov0hR.js.map → radio-button-DDE3kwPV.js.map} +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/{schmancy-steps-container-2wYMvDWE.js → schmancy-steps-container-Bk6YDDXz.js} +2 -2
- package/dist/{schmancy-steps-container-2wYMvDWE.js.map → schmancy-steps-container-Bk6YDDXz.js.map} +1 -1
- package/dist/{schmancy-steps-container-DUnUOt02.cjs → schmancy-steps-container-COzUZD-d.cjs} +2 -2
- package/dist/{schmancy-steps-container-DUnUOt02.cjs.map → schmancy-steps-container-COzUZD-d.cjs.map} +1 -1
- package/dist/{select-C3q_bpUE.js → select-BKkGETee.js} +3 -3
- package/dist/{select-C3q_bpUE.js.map → select-BKkGETee.js.map} +1 -1
- package/dist/{select-C-N7iN8o.cjs → select-Cc96IjOA.cjs} +2 -2
- package/dist/{select-C-N7iN8o.cjs.map → select-Cc96IjOA.cjs.map} +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/{sheet-D6M6KiS2.cjs → sheet-_3iJjzla.cjs} +2 -2
- package/dist/{sheet-D6M6KiS2.cjs.map → sheet-_3iJjzla.cjs.map} +1 -1
- package/dist/{sheet-CRHpI74-.js → sheet-_Nwjk8tC.js} +3 -3
- package/dist/{sheet-CRHpI74-.js.map → sheet-_Nwjk8tC.js.map} +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/{slider-D68ew2fL.js → slider-BawxkW-m.js} +3 -3
- package/dist/{slider-D68ew2fL.js.map → slider-BawxkW-m.js.map} +1 -1
- package/dist/{slider-iR39cfzw.cjs → slider-CvoNTGfb.cjs} +2 -2
- package/dist/{slider-iR39cfzw.cjs.map → slider-CvoNTGfb.cjs.map} +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/{spinner-DoJREhKd.js → spinner-BSaeqgVi.js} +2 -2
- package/dist/{spinner-DoJREhKd.js.map → spinner-BSaeqgVi.js.map} +1 -1
- package/dist/{spinner-CtrfCFwg.cjs → spinner-CreHceHO.cjs} +2 -2
- package/dist/{spinner-CtrfCFwg.cjs.map → spinner-CreHceHO.cjs.map} +1 -1
- package/dist/steps.cjs +1 -1
- package/dist/steps.js +1 -1
- package/dist/{suggestion-chip-DB9MwObb.js → suggestion-chip-Ca9HEISE.js} +3 -3
- package/dist/{suggestion-chip-DB9MwObb.js.map → suggestion-chip-Ca9HEISE.js.map} +1 -1
- package/dist/{suggestion-chip-peYMYDhW.cjs → suggestion-chip-DgR-hY9P.cjs} +2 -2
- package/dist/{suggestion-chip-peYMYDhW.cjs.map → suggestion-chip-DgR-hY9P.cjs.map} +1 -1
- package/dist/{surface-dA3H91vM.js → surface-DssJvvqY.js} +2 -2
- package/dist/{surface-dA3H91vM.js.map → surface-DssJvvqY.js.map} +1 -1
- package/dist/{surface-CKZ-BRjP.cjs → surface-FlpARbmi.cjs} +2 -2
- package/dist/{surface-CKZ-BRjP.cjs.map → surface-FlpARbmi.cjs.map} +1 -1
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/{table-BrI5XDFr.cjs → table-DbGq1vlq.cjs} +2 -2
- package/dist/{table-BrI5XDFr.cjs.map → table-DbGq1vlq.cjs.map} +1 -1
- package/dist/{table-Dnafn9o8.js → table-DcgdSj1D.js} +2 -2
- package/dist/{table-Dnafn9o8.js.map → table-DcgdSj1D.js.map} +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-compatibility-B-mduLVm.cjs → tabs-compatibility-Lffxgw0G.cjs} +2 -2
- package/dist/{tabs-compatibility-B-mduLVm.cjs.map → tabs-compatibility-Lffxgw0G.cjs.map} +1 -1
- package/dist/{tabs-compatibility-BGq80aD1.js → tabs-compatibility-yIZW7NeR.js} +2 -2
- package/dist/{tabs-compatibility-BGq80aD1.js.map → tabs-compatibility-yIZW7NeR.js.map} +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tailwind.mixin-Dj-xh5c5.js +43 -0
- package/dist/{tailwind.mixin-mrbxk0Dc.js.map → tailwind.mixin-Dj-xh5c5.js.map} +1 -1
- package/dist/tailwind.mixin-Dwm4EWu8.cjs +2 -0
- package/dist/{tailwind.mixin-DbwoWKIJ.cjs.map → tailwind.mixin-Dwm4EWu8.cjs.map} +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/dist/{textarea-cwKg8TZg.js → textarea-BQ94zdoX.js} +2 -2
- package/dist/{textarea-cwKg8TZg.js.map → textarea-BQ94zdoX.js.map} +1 -1
- package/dist/{textarea-DfdfkgK2.cjs → textarea-CwYuTsPD.cjs} +2 -2
- package/dist/{textarea-DfdfkgK2.cjs.map → textarea-CwYuTsPD.cjs.map} +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{theme-button-pxUVg5zg.js → theme-button-CKt6f6kw.js} +2 -2
- package/dist/{theme-button-pxUVg5zg.js.map → theme-button-CKt6f6kw.js.map} +1 -1
- package/dist/{theme-button-mKwL1F5q.cjs → theme-button-CvJH2BwY.cjs} +2 -2
- package/dist/{theme-button-mKwL1F5q.cjs.map → theme-button-CvJH2BwY.cjs.map} +1 -1
- package/dist/theme-button.cjs +1 -1
- package/dist/theme-button.js +1 -1
- package/dist/theme.cjs +1 -1
- package/dist/{theme.component-D33lgU15.js → theme.component-DcPhAbxK.js} +2 -2
- package/dist/{theme.component-D33lgU15.js.map → theme.component-DcPhAbxK.js.map} +1 -1
- package/dist/{theme.component-BPnDtVam.cjs → theme.component-DhaisaKD.cjs} +2 -2
- package/dist/{theme.component-BPnDtVam.cjs.map → theme.component-DhaisaKD.cjs.map} +1 -1
- package/dist/theme.js +1 -1
- package/dist/{timezone-rlLAZj3d.cjs → timezone-D7Ufhjog.cjs} +2 -2
- package/dist/{timezone-rlLAZj3d.cjs.map → timezone-D7Ufhjog.cjs.map} +1 -1
- package/dist/{timezone-DLT-JgjX.js → timezone-ikqEpkrq.js} +3 -3
- package/dist/{timezone-DLT-JgjX.js.map → timezone-ikqEpkrq.js.map} +1 -1
- package/dist/{tooltip-C4gyp-xi.cjs → tooltip-Cod-ciP6.cjs} +2 -2
- package/dist/{tooltip-C4gyp-xi.cjs.map → tooltip-Cod-ciP6.cjs.map} +1 -1
- package/dist/{tooltip-CzEA1FXd.js → tooltip-DQeBYmkT.js} +2 -2
- package/dist/{tooltip-CzEA1FXd.js.map → tooltip-DQeBYmkT.js.map} +1 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/{tree-Bcn4wetg.js → tree-BL71j34m.js} +2 -2
- package/dist/{tree-Bcn4wetg.js.map → tree-BL71j34m.js.map} +1 -1
- package/dist/{tree-bOCqq8yl.cjs → tree-DNJ-QNmK.cjs} +2 -2
- package/dist/{tree-bOCqq8yl.cjs.map → tree-DNJ-QNmK.cjs.map} +1 -1
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/{typewriter-CkH2Lv-D.cjs → typewriter-HY8FFj0-.cjs} +2 -2
- package/dist/{typewriter-CkH2Lv-D.cjs.map → typewriter-HY8FFj0-.cjs.map} +1 -1
- package/dist/{typewriter-BPRohBBv.js → typewriter-KPl30p8k.js} +4 -4
- package/dist/{typewriter-BPRohBBv.js.map → typewriter-KPl30p8k.js.map} +1 -1
- package/dist/typewriter.cjs +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{typography-DuMWoGnQ.js → typography-D5Mf_MlW.js} +2 -2
- package/dist/{typography-DuMWoGnQ.js.map → typography-D5Mf_MlW.js.map} +1 -1
- package/dist/{typography-DVxUQ43e.cjs → typography-eyw2Cqu6.cjs} +2 -2
- package/dist/{typography-DVxUQ43e.cjs.map → typography-eyw2Cqu6.cjs.map} +1 -1
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/package.json +1 -1
- package/types/src/code-highlight/code-highlight.d.ts +1 -1
- package/types/src/details/details.d.ts +22 -2
- package/types/src/index.d.ts +1 -0
- package/types/src/navigation-bar/index.d.ts +2 -0
- package/types/src/navigation-bar/navigation-bar-item.d.ts +94 -0
- package/types/src/navigation-bar/navigation-bar.d.ts +93 -0
- package/dist/avatar-BvJePwYH.cjs +0 -157
- package/dist/avatar-BvJePwYH.cjs.map +0 -1
- package/dist/avatar-LXeXDzxD.js +0 -609
- package/dist/avatar-LXeXDzxD.js.map +0 -1
- package/dist/details-BsbZKBMM.cjs +0 -69
- package/dist/details-BsbZKBMM.cjs.map +0 -1
- package/dist/details-L1JbUOOa.js +0 -95
- package/dist/details-L1JbUOOa.js.map +0 -1
- package/dist/tailwind.mixin-DbwoWKIJ.cjs +0 -2
- package/dist/tailwind.mixin-mrbxk0Dc.js +0 -43
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
declare const SchmancyNavigationBarItem_base: import("../../mixins").Constructor<CustomElementConstructor> & import("../../mixins").Constructor<import("@mixins/tailwind.mixin").ITailwindElementMixin> & import("../../mixins").Constructor<import("lit").LitElement> & import("../../mixins").Constructor<import("../../mixins").IBaseMixin>;
|
|
2
|
+
/**
|
|
3
|
+
* `<schmancy-navigation-bar-item>` component
|
|
4
|
+
*
|
|
5
|
+
* Individual navigation item for use within a navigation bar.
|
|
6
|
+
* Represents a single destination with an icon and optional label following Material Design 3 specifications.
|
|
7
|
+
*
|
|
8
|
+
* @element schmancy-navigation-bar-item
|
|
9
|
+
* @slot icon - Slot for custom icon content
|
|
10
|
+
* @slot - Default slot for custom content
|
|
11
|
+
*
|
|
12
|
+
* @fires bar-item-click - When the item is clicked
|
|
13
|
+
* @fires focus - When the item receives focus
|
|
14
|
+
* @fires blur - When the item loses focus
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* <schmancy-navigation-bar-item icon="home" label="Home" active></schmancy-navigation-bar-item>
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* <schmancy-navigation-bar-item label="Custom">
|
|
21
|
+
* <span slot="icon">🏠</span>
|
|
22
|
+
* </schmancy-navigation-bar-item>
|
|
23
|
+
*/
|
|
24
|
+
export declare class SchmancyNavigationBarItem extends SchmancyNavigationBarItem_base {
|
|
25
|
+
/**
|
|
26
|
+
* Icon name for the navigation item (Material Symbols Outlined)
|
|
27
|
+
*/
|
|
28
|
+
icon: string;
|
|
29
|
+
/**
|
|
30
|
+
* Label text for the navigation item
|
|
31
|
+
*/
|
|
32
|
+
label: string;
|
|
33
|
+
/**
|
|
34
|
+
* Badge content (can be a number or short text)
|
|
35
|
+
*/
|
|
36
|
+
badge: string;
|
|
37
|
+
/**
|
|
38
|
+
* Observable for active state
|
|
39
|
+
*/
|
|
40
|
+
private active$;
|
|
41
|
+
/**
|
|
42
|
+
* Whether this item is currently active/selected
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
get active(): boolean;
|
|
46
|
+
set active(value: boolean);
|
|
47
|
+
/**
|
|
48
|
+
* Whether this item is disabled
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
51
|
+
disabled: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Whether to hide labels (controlled by parent navigation bar)
|
|
54
|
+
* @default false
|
|
55
|
+
*/
|
|
56
|
+
hideLabels: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Track ripple effects
|
|
59
|
+
*/
|
|
60
|
+
private ripples;
|
|
61
|
+
/**
|
|
62
|
+
* Add ripple effect (immediate, no debounce)
|
|
63
|
+
*/
|
|
64
|
+
private addRippleEffect;
|
|
65
|
+
/**
|
|
66
|
+
* Handle click events with RxJS
|
|
67
|
+
*/
|
|
68
|
+
private handleClick;
|
|
69
|
+
/**
|
|
70
|
+
* Handle keyboard events for accessibility (non-Enter/Space keys)
|
|
71
|
+
*/
|
|
72
|
+
private handleKeyDown;
|
|
73
|
+
/**
|
|
74
|
+
* Method called by parent to set active state
|
|
75
|
+
*/
|
|
76
|
+
setActive(isActive: boolean): void;
|
|
77
|
+
connectedCallback(): void;
|
|
78
|
+
/**
|
|
79
|
+
* Set up RxJS stream for navigation events
|
|
80
|
+
*/
|
|
81
|
+
private setupNavigationStream;
|
|
82
|
+
/**
|
|
83
|
+
* Format badge content for display
|
|
84
|
+
*/
|
|
85
|
+
private formatBadge;
|
|
86
|
+
protected firstUpdated(): void;
|
|
87
|
+
protected render(): import("lit-html").TemplateResult<1>;
|
|
88
|
+
}
|
|
89
|
+
declare global {
|
|
90
|
+
interface HTMLElementTagNameMap {
|
|
91
|
+
'schmancy-navigation-bar-item': SchmancyNavigationBarItem;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
export {};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
declare const SchmancyNavigationBar_base: import("../../mixins").Constructor<CustomElementConstructor> & import("../../mixins").Constructor<import("@mixins/tailwind.mixin").ITailwindElementMixin> & import("../../mixins").Constructor<import("lit").LitElement> & import("../../mixins").Constructor<import("../../mixins").IBaseMixin>;
|
|
2
|
+
/**
|
|
3
|
+
* `<schmancy-navigation-bar>` component
|
|
4
|
+
*
|
|
5
|
+
* A horizontal navigation component following Material Design 3 specifications.
|
|
6
|
+
* Navigation bars provide access to between 3-7 primary destinations, fixed at the bottom of the viewport.
|
|
7
|
+
*
|
|
8
|
+
* @element schmancy-navigation-bar
|
|
9
|
+
* @slot - Default slot for navigation bar items
|
|
10
|
+
*
|
|
11
|
+
* @fires navigation-change - When an item is selected
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* <schmancy-navigation-bar activeIndex="0">
|
|
15
|
+
* <schmancy-navigation-bar-item icon="home" label="Home"></schmancy-navigation-bar-item>
|
|
16
|
+
* <schmancy-navigation-bar-item icon="search" label="Search"></schmancy-navigation-bar-item>
|
|
17
|
+
* <schmancy-navigation-bar-item icon="favorite" label="Favorites"></schmancy-navigation-bar-item>
|
|
18
|
+
* <schmancy-navigation-bar-item icon="settings" label="Settings"></schmancy-navigation-bar-item>
|
|
19
|
+
* </schmancy-navigation-bar>
|
|
20
|
+
*/
|
|
21
|
+
export declare class SchmancyNavigationBar extends SchmancyNavigationBar_base {
|
|
22
|
+
/**
|
|
23
|
+
* Observable for active index state
|
|
24
|
+
*/
|
|
25
|
+
private activeIndex$;
|
|
26
|
+
/**
|
|
27
|
+
* Currently active item index
|
|
28
|
+
* @default -1
|
|
29
|
+
*/
|
|
30
|
+
get activeIndex(): number;
|
|
31
|
+
set activeIndex(value: number);
|
|
32
|
+
/**
|
|
33
|
+
* Hide labels and show only icons
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
hideLabels: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Elevation level for the navigation bar
|
|
39
|
+
* @default 2
|
|
40
|
+
*/
|
|
41
|
+
elevation: number;
|
|
42
|
+
/**
|
|
43
|
+
* Hide navigation bar on scroll down, show on scroll up
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
hideOnScroll: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Current focused item index for keyboard navigation
|
|
49
|
+
*/
|
|
50
|
+
private focusedIndex;
|
|
51
|
+
/**
|
|
52
|
+
* Whether the navigation bar is hidden due to scrolling
|
|
53
|
+
*/
|
|
54
|
+
private isHidden;
|
|
55
|
+
/**
|
|
56
|
+
* Minimum scroll threshold before triggering hide/show
|
|
57
|
+
*/
|
|
58
|
+
private readonly SCROLL_THRESHOLD;
|
|
59
|
+
connectedCallback(): void;
|
|
60
|
+
/**
|
|
61
|
+
* Set up RxJS-based scroll listener
|
|
62
|
+
*/
|
|
63
|
+
private setupScrollListener;
|
|
64
|
+
disconnectedCallback(): void;
|
|
65
|
+
/**
|
|
66
|
+
* Handle item click events
|
|
67
|
+
*/
|
|
68
|
+
private handleItemClick;
|
|
69
|
+
/**
|
|
70
|
+
* Handle keyboard navigation
|
|
71
|
+
*/
|
|
72
|
+
private handleKeyDown;
|
|
73
|
+
/**
|
|
74
|
+
* Focus a specific item by index
|
|
75
|
+
*/
|
|
76
|
+
private focusItem;
|
|
77
|
+
/**
|
|
78
|
+
* Update the list of navigation items
|
|
79
|
+
*/
|
|
80
|
+
private updateItems;
|
|
81
|
+
/**
|
|
82
|
+
* Update active states on all items
|
|
83
|
+
*/
|
|
84
|
+
private updateActiveStates;
|
|
85
|
+
updated(changedProperties: Map<string, any>): void;
|
|
86
|
+
protected render(): import("lit-html").TemplateResult<1>;
|
|
87
|
+
}
|
|
88
|
+
declare global {
|
|
89
|
+
interface HTMLElementTagNameMap {
|
|
90
|
+
'schmancy-navigation-bar': SchmancyNavigationBar;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
export {};
|
package/dist/avatar-BvJePwYH.cjs
DELETED
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
"use strict";const l=require("lit"),a=require("lit/decorators.js"),n=require("rxjs");require("./animated-text-_cmV8a54.cjs");const $=require("./area.component-jZXEnoq-.cjs");require("./autocomplete-B_r234CD.cjs"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js");const _=require("./tailwind.mixin-DbwoWKIJ.cjs"),C=require("./ripple-DqQrvaTe.cjs");require("lit/directives/guard.js"),require("./boat-2qtEaUeN.cjs"),require("./spinner-CtrfCFwg.cjs"),require("./icon-button-lsh418d9.cjs"),require("./media-C2_iIXcU.cjs"),require("./checkbox-C_Mho5IS.cjs"),require("./suggestion-chip-peYMYDhW.cjs"),require("./input-chip-CMgjp1k0.cjs"),require("./code-preview-B6i7Kbhk.cjs"),require("./payment-card-form-BXw4yQfa.cjs");const p=require("./types.cjs"),m=require("./provide-BxZ2kn_p.cjs"),b=require("./litElement.mixin-Z7A21PTu.cjs"),d=require("./consume-edta5ng5.cjs");require("./date-range-Bqv5hphM.cjs"),require("./date-range-inline-DsBWzDSL.cjs"),require("./delay-t64VcUWO.cjs"),require("./details-BsbZKBMM.cjs"),require("./dialog-content-CzfmE_A3.cjs"),require("./dialog-service-Bdaxn2t0.cjs"),require("./divider-CZRdHTyy.cjs"),require("./dropdown-content-DpRKwEWr.cjs"),require("./timezone-rlLAZj3d.cjs"),require("./form-5zP1PzNH.cjs"),require("./icon-BZfElKOt.cjs"),require("./input-ZJ-BU9e1.cjs"),require("./flex-CwloHehr.cjs"),require("./list-BMNuVDlx.cjs"),require("./email-recipients-B_FrKVNa.cjs"),require("./map-mYS0TKHR.cjs"),require("./menu-D14UObVy.cjs");const W=require("lit/directives/when.js");require("./navigation-rail-item-B6Q-5odq.cjs"),require("./notification-service-XpmtMRuA.cjs"),require("./option-0KBLqH87.cjs"),require("./progress-BoP5Csie.cjs"),require("./radio-button-CXCejG_D.cjs"),require("./index-CCi1otmh.cjs"),require("./select-C-N7iN8o.cjs"),require("./sheet-D6M6KiS2.cjs");const P=require("./sheet.service-BxvWBGsJ.cjs");require("./slider-iR39cfzw.cjs"),require("./schmancy-steps-container-DUnUOt02.cjs"),require("./context-object-bNADqf9U.cjs");const N=require("rxjs/operators");require("./surface-CKZ-BRjP.cjs"),require("./table-BrI5XDFr.cjs"),require("./tabs-compatibility-B-mduLVm.cjs"),require("./textarea-DfdfkgK2.cjs"),require("./theme.component-BPnDtVam.cjs"),require("./theme-button-mKwL1F5q.cjs"),require("./tooltip-C4gyp-xi.cjs"),require("./tree-bOCqq8yl.cjs"),require("./typewriter-CkH2Lv-D.cjs"),require("./typography-DVxUQ43e.cjs");const o=require("./theme.interface-Xg5Zi46a.cjs");var R=Object.defineProperty,X=Object.getOwnPropertyDescriptor,g=(e,t,s,i)=>{for(var c,r=i>1?void 0:i?X(t,s):t,h=e.length-1;h>=0;h--)(c=e[h])&&(r=(i?c(t,s,r):c(r))||r);return i&&r&&R(t,s,r),r};exports.SchmancyBadgeV2=class extends _.TailwindElement(l.css`
|
|
2
|
-
:host {
|
|
3
|
-
display: inline-flex;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
/* Enhanced pulse animation for better attention-getting */
|
|
7
|
-
@keyframes elegant-pulse {
|
|
8
|
-
0%, 100% {
|
|
9
|
-
opacity: 1;
|
|
10
|
-
}
|
|
11
|
-
50% {
|
|
12
|
-
opacity: 0.85;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.animate-pulse {
|
|
17
|
-
animation: elegant-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
18
|
-
}
|
|
19
|
-
`){constructor(){super(...arguments),this.color="primary",this.size="md",this.shape="pill",this.outlined=!1,this.icon="",this.pulse=!1}getSizeClasses(){switch(this.size){case"xs":return"text-xs py-0.75 px-1.5 gap-0.5 leading-none";case"sm":return"text-xs py-1.5 px-2.5 gap-0.5 tracking-wide leading-none";case"lg":return"text-base py-2 px-4 gap-1 tracking-wide";default:return"text-sm py-1.5 px-3 gap-0.5"}}getShapeClasses(){switch(this.shape){case"square":return"rounded";case"rounded":return"rounded-md";default:return"rounded-full"}}getIconSize(){switch(this.size){case"xs":return"11px";case"sm":return"13px";case"lg":return"18px";default:return"15px"}}getExoticStyles(){const e={};return this.size==="lg"&&(e.letterSpacing="0.03em",e.fontWeight="500"),this.size==="sm"&&(e.letterSpacing="0.02em"),e}getColorStyles(){return{primary:{bg:this.outlined?"transparent":`color-mix(in srgb, ${o.SchmancyTheme.sys.color.primary.container} 92%, ${o.SchmancyTheme.sys.color.primary.default} 8%)`,text:this.outlined?o.SchmancyTheme.sys.color.primary.default:o.SchmancyTheme.sys.color.primary.onContainer,border:this.outlined?`color-mix(in srgb, ${o.SchmancyTheme.sys.color.primary.default} 90%, ${o.SchmancyTheme.sys.color.surface.highest} 10%)`:void 0},secondary:{bg:this.outlined?"transparent":`color-mix(in srgb, ${o.SchmancyTheme.sys.color.secondary.container} 95%, ${o.SchmancyTheme.sys.color.secondary.default} 5%)`,text:this.outlined?o.SchmancyTheme.sys.color.secondary.default:o.SchmancyTheme.sys.color.secondary.onContainer,border:this.outlined?`color-mix(in srgb, ${o.SchmancyTheme.sys.color.secondary.default} 85%, ${o.SchmancyTheme.sys.color.surface.highest} 15%)`:void 0},tertiary:{bg:this.outlined?"transparent":`color-mix(in srgb, ${o.SchmancyTheme.sys.color.tertiary.container} 94%, ${o.SchmancyTheme.sys.color.tertiary.default} 6%)`,text:this.outlined?o.SchmancyTheme.sys.color.tertiary.default:o.SchmancyTheme.sys.color.tertiary.onContainer,border:this.outlined?`color-mix(in srgb, ${o.SchmancyTheme.sys.color.tertiary.default} 88%, ${o.SchmancyTheme.sys.color.surface.highest} 12%)`:void 0},success:{bg:this.outlined?"transparent":`color-mix(in srgb, ${o.SchmancyTheme.sys.color.success.container} 90%, ${o.SchmancyTheme.sys.color.success.default} 10%)`,text:this.outlined?o.SchmancyTheme.sys.color.success.default:o.SchmancyTheme.sys.color.success.onContainer,border:this.outlined?`color-mix(in srgb, ${o.SchmancyTheme.sys.color.success.default} 85%, ${o.SchmancyTheme.sys.color.surface.bright} 15%)`:void 0},warning:{bg:this.outlined?"transparent":`color-mix(in srgb, ${o.SchmancyTheme.sys.color.tertiary.container} 85%, ${o.SchmancyTheme.sys.color.tertiary.default} 15%)`,text:this.outlined?o.SchmancyTheme.sys.color.tertiary.default:o.SchmancyTheme.sys.color.tertiary.onContainer,border:this.outlined?`color-mix(in srgb, ${o.SchmancyTheme.sys.color.tertiary.default} 90%, ${o.SchmancyTheme.sys.color.surface.highest} 10%)`:void 0},error:{bg:this.outlined?"transparent":`color-mix(in srgb, ${o.SchmancyTheme.sys.color.error.container} 92%, ${o.SchmancyTheme.sys.color.error.default} 8%)`,text:this.outlined?o.SchmancyTheme.sys.color.error.default:o.SchmancyTheme.sys.color.error.onContainer,border:this.outlined?`color-mix(in srgb, ${o.SchmancyTheme.sys.color.error.default} 88%, ${o.SchmancyTheme.sys.color.surface.bright} 12%)`:void 0},neutral:{bg:this.outlined?"transparent":`color-mix(in srgb, ${o.SchmancyTheme.sys.color.surface.high} 95%, ${o.SchmancyTheme.sys.color.outline} 5%)`,text:this.outlined?`color-mix(in srgb, ${o.SchmancyTheme.sys.color.surface.on} 95%, ${o.SchmancyTheme.sys.color.surface.default} 5%)`:o.SchmancyTheme.sys.color.surface.on,border:this.outlined?`color-mix(in srgb, ${o.SchmancyTheme.sys.color.outline} 85%, ${o.SchmancyTheme.sys.color.surface.highest} 15%)`:void 0}}[this.color]}render(){const e=this.getSizeClasses(),t=this.getShapeClasses(),s=this.getColorStyles(),i=this.getIconSize(),c=this.getExoticStyles(),r={"inline-flex items-center justify-center font-medium":!0,"transition-all duration-200 ease-in-out":!0,[e]:!0,[t]:!0,"animate-pulse":this.pulse,"border border-solid":this.outlined,"shadow-sm":!this.outlined&&this.size==="sm",shadow:!this.outlined&&this.size==="md","shadow-md":!this.outlined&&this.size==="lg","hover:brightness-95 hover:-translate-y-px":this.outlined,"hover:brightness-[0.98]":!this.outlined},h={borderColor:s.border,...this.outlined?{backdropFilter:"blur(4px)"}:{},...this.size!=="lg"||this.outlined?{}:{boxShadow:"0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.1)"},...c};return l.html`
|
|
20
|
-
<div
|
|
21
|
-
part="badge"
|
|
22
|
-
class="${this.classMap(r)}"
|
|
23
|
-
style="${this.styleMap(h)}"
|
|
24
|
-
${C.color({bgColor:s.bg,color:s.text})}
|
|
25
|
-
>
|
|
26
|
-
<!-- Icon slot or named icon -->
|
|
27
|
-
<slot name="icon">
|
|
28
|
-
${this.icon?l.html`
|
|
29
|
-
<div part="icon" class="flex-shrink-0 flex items-center justify-center leading-none">
|
|
30
|
-
<schmancy-icon .size=${i} class="flex items-center justify-center">${this.icon}</schmancy-icon>
|
|
31
|
-
</div>
|
|
32
|
-
`:""}
|
|
33
|
-
</slot>
|
|
34
|
-
|
|
35
|
-
<!-- Content with proper spacing from icon -->
|
|
36
|
-
<div part="content" class="flex items-center leading-none tracking-[0.01em] ${this.icon?"ml-[0.38em]":""}">
|
|
37
|
-
<slot></slot>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
`}},g([a.property({type:String,reflect:!0})],exports.SchmancyBadgeV2.prototype,"color",2),g([a.property({type:String,reflect:!0})],exports.SchmancyBadgeV2.prototype,"size",2),g([a.property({type:String,reflect:!0})],exports.SchmancyBadgeV2.prototype,"shape",2),g([a.property({type:Boolean,reflect:!0})],exports.SchmancyBadgeV2.prototype,"outlined",2),g([a.property({type:String})],exports.SchmancyBadgeV2.prototype,"icon",2),g([a.property({type:Boolean,reflect:!0})],exports.SchmancyBadgeV2.prototype,"pulse",2),exports.SchmancyBadgeV2=g([a.customElement("schmancy-badge")],exports.SchmancyBadgeV2),exports.ScBadgeV2=class extends exports.SchmancyBadgeV2{},exports.ScBadgeV2=g([a.customElement("sch-badge")],exports.ScBadgeV2);const V=new class{constructor(){this.$drawer=new n.Subject,this.lastComponent=null,this.$drawer.pipe().subscribe(e=>{e.action==="dismiss"?e.ref.dispatchEvent(new CustomEvent(p.SchmancyEvents.ContentDrawerToggle,{detail:{state:"close"},bubbles:!0,composed:!0})):e.action==="render"?(e.ref.dispatchEvent(new CustomEvent(p.SchmancyEvents.ContentDrawerToggle,{detail:{state:"open"},bubbles:!0,composed:!0})),e.ref.dispatchEvent(new CustomEvent("schmancy-content-drawer-render",{detail:{component:e.component,title:e.title},bubbles:!0,composed:!0}))):e.action==="push"&&this.handlePush(e.ref,e.component)})}dimiss(e){this.$drawer.next({action:"dismiss",ref:e})}render(e,t,s){e.dispatchEvent(new CustomEvent("custom-event")),this.$drawer.next({action:"render",ref:e,component:t,title:s})}async handlePush(e,t){let s;if(typeof t=="string")s=document.createElement(t);else if(t instanceof HTMLElement)s=t;else{if(typeof t!="function")return;try{const i=await t();i&&typeof i=="object"&&"default"in i?s=new i.default:s=i instanceof HTMLElement?i:new i}catch{return}}this.lastComponent===s&&"requestUpdate"in s&&s.requestUpdate(),this.lastComponent=s,e.dispatchEvent(new CustomEvent(p.SchmancyEvents.ContentDrawerToggle,{detail:{state:"open"},bubbles:!0,composed:!0})),e.dispatchEvent(new CustomEvent("schmancy-content-drawer-render",{detail:{component:s},bubbles:!0,composed:!0}))}push(e){this.$drawer.next({action:"push",ref:window,component:e})}},q=m.n("push"),j=m.n("close"),A=m.n(Math.floor(Math.random()*Date.now()).toString()),M=m.n("100%"),k=m.n({});var L=Object.defineProperty,K=Object.getOwnPropertyDescriptor,w=(e,t,s,i)=>{for(var c,r=i>1?void 0:i?K(t,s):t,h=e.length-1;h>=0;h--)(c=e[h])&&(r=(i?c(t,s,r):c(r))||r);return i&&r&&L(t,s,r),r};exports.SchmancyContentDrawer=class extends b.$LitElement(l.css`
|
|
41
|
-
:host {
|
|
42
|
-
position: relative;
|
|
43
|
-
inset: 0;
|
|
44
|
-
display: block;
|
|
45
|
-
overflow: hidden;
|
|
46
|
-
}
|
|
47
|
-
`){constructor(){super(...arguments),this.minWidth={main:360,sheet:576},this.schmancyContentDrawerID=Math.floor(Math.random()*Date.now()).toString(),this.maxHeight="100%"}firstUpdated(){n.merge(n.fromEvent(window,"resize"),n.fromEvent(window,p.SchmancyEvents.ContentDrawerResize)).pipe(n.startWith(!0),n.map(()=>this.clientWidth?this.clientWidth:window.innerWidth),n.map(e=>e>=this.minWidth.main+this.minWidth.sheet),n.debounceTime(100),n.tap(()=>{this.maxHeight=window.innerHeight-this.getOffsetTop(this)-32+"px",this.style.setProperty("max-height",this.maxHeight)}),n.distinctUntilChanged(),n.takeUntil(this.disconnecting)).subscribe(e=>{e?(this.mode="push",this.open="open"):(this.mode="overlay",this.open="close")}),n.fromEvent(window,p.SchmancyEvents.ContentDrawerToggle).pipe(n.tap(e=>{e.stopPropagation()}),n.map(e=>e.detail.state),n.takeUntil(this.disconnecting)).subscribe(e=>{this.open=e}),n.fromEvent(window,"schmancy-content-drawer-render").pipe(n.tap(e=>{e.stopPropagation()}),n.map(e=>e.detail),n.takeUntil(this.disconnecting)).subscribe(({component:e,title:t})=>{this.mode==="push"?($.area.push({area:this.schmancyContentDrawerID,component:"empty",historyStrategy:"silent"}),$.area.push({area:this.schmancyContentDrawerID,component:e,historyStrategy:"silent"})):(this.mode="overlay")&&P.sheet.open({component:e,uid:this.schmancyContentDrawerID,title:t})})}getOffsetTop(e){let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t}render(){return this.mode&&this.open?l.html`
|
|
48
|
-
<schmancy-grid
|
|
49
|
-
cols=${this.mode==="overlay"?"1fr":"auto 1fr"}
|
|
50
|
-
rows="1fr"
|
|
51
|
-
flow="col"
|
|
52
|
-
justify="stretch"
|
|
53
|
-
align="stretch"
|
|
54
|
-
>
|
|
55
|
-
<slot></slot>
|
|
56
|
-
</schmancy-grid>
|
|
57
|
-
`:l.nothing}},w([m.e({context:k})],exports.SchmancyContentDrawer.prototype,"minWidth",2),w([m.e({context:j}),a.property()],exports.SchmancyContentDrawer.prototype,"open",2),w([m.e({context:q}),a.state()],exports.SchmancyContentDrawer.prototype,"mode",2),w([m.e({context:A})],exports.SchmancyContentDrawer.prototype,"schmancyContentDrawerID",2),w([m.e({context:M})],exports.SchmancyContentDrawer.prototype,"maxHeight",2),w([a.queryAssignedElements({flatten:!0})],exports.SchmancyContentDrawer.prototype,"assignedElements",2),exports.SchmancyContentDrawer=w([a.customElement("schmancy-content-drawer")],exports.SchmancyContentDrawer);var Y=Object.defineProperty,F=Object.getOwnPropertyDescriptor,f=(e,t,s,i)=>{for(var c,r=i>1?void 0:i?F(t,s):t,h=e.length-1;h>=0;h--)(c=e[h])&&(r=(i?c(t,s,r):c(r))||r);return i&&r&&Y(t,s,r),r};exports.SchmancyContentDrawerMain=class extends b.$LitElement(l.css`
|
|
58
|
-
:host {
|
|
59
|
-
display: block;
|
|
60
|
-
overflow: hidden;
|
|
61
|
-
}
|
|
62
|
-
`){connectedCallback(){super.connectedCallback(),this.minWidth?this.drawerMinWidth.main=this.minWidth:this.minWidth=this.drawerMinWidth.main}update(e){super.update(e),e.has("minWidth")&&this.minWidth&&(this.drawerMinWidth.main=this.minWidth,this.dispatchEvent(new CustomEvent(p.SchmancyEvents.ContentDrawerResize,{bubbles:!0,composed:!0})))}render(){const e={minWidth:`${this.minWidth}px`,maxHeight:this.maxHeight};return l.html`
|
|
63
|
-
<section class="relative inset-0 h-full">
|
|
64
|
-
<schmancy-grid
|
|
65
|
-
class="h-full relative overflow-scroll"
|
|
66
|
-
cols="${this.mode==="push"?"auto 1fr":"1fr"}"
|
|
67
|
-
rows="1fr"
|
|
68
|
-
flow="col"
|
|
69
|
-
align="stretch"
|
|
70
|
-
justify="stretch"
|
|
71
|
-
>
|
|
72
|
-
<section style=${this.styleMap(e)}>
|
|
73
|
-
<slot></slot>
|
|
74
|
-
</section>
|
|
75
|
-
</schmancy-grid>
|
|
76
|
-
${W.when(this.mode==="push",()=>l.html` <schmancy-divider class="absolute right-0 top-0" orientation="vertical"></schmancy-divider>`)}
|
|
77
|
-
</section>
|
|
78
|
-
`}},f([a.property({type:Number})],exports.SchmancyContentDrawerMain.prototype,"minWidth",2),f([d.c({context:k,subscribe:!0})],exports.SchmancyContentDrawerMain.prototype,"drawerMinWidth",2),f([d.c({context:q,subscribe:!0}),a.state()],exports.SchmancyContentDrawerMain.prototype,"mode",2),f([d.c({context:M,subscribe:!0}),a.state()],exports.SchmancyContentDrawerMain.prototype,"maxHeight",2),exports.SchmancyContentDrawerMain=f([a.customElement("schmancy-content-drawer-main")],exports.SchmancyContentDrawerMain);var G=Object.defineProperty,J=Object.getOwnPropertyDescriptor,y=(e,t,s,i)=>{for(var c,r=i>1?void 0:i?J(t,s):t,h=e.length-1;h>=0;h--)(c=e[h])&&(r=(i?c(t,s,r):c(r))||r);return i&&r&&G(t,s,r),r};exports.SchmancyContentDrawerSheet=class extends b.$LitElement(l.css`
|
|
79
|
-
:host {
|
|
80
|
-
overflow: scroll;
|
|
81
|
-
}
|
|
82
|
-
`){connectedCallback(){super.connectedCallback(),this.minWidth?this.drawerMinWidth.sheet=this.minWidth:this.minWidth=this.drawerMinWidth.sheet}updated(e){super.updated(e),e.has("minWidth")&&this.minWidth?(this.drawerMinWidth.sheet=this.minWidth,this.dispatchEvent(new CustomEvent(p.SchmancyEvents.ContentDrawerResize,{bubbles:!0,composed:!0}))):(e.has("state")||e.has("mode"))&&(this.mode==="overlay"?this.state==="close"?this.closeAll():this.state:this.mode==="push"&&(P.sheet.dismiss(this.schmancyContentDrawerID),this.state==="close"?this.closeAll():this.state==="open"&&this.open()))}open(){this.mode==="overlay"?this.sheet.style.position="fixed":this.sheet.style.position="relative",this.sheet.style.display="block",this.sheet.animate([{opacity:0,transform:"translateX(100%)"},{opacity:1,transform:"translateX(0%)"}],{duration:500,easing:"cubic-bezier(0.5, 0.01, 0.25, 1)"})}closeAll(){n.merge(n.from(this.closeModalSheet()),n.from(this.closeSheet())).pipe(n.takeUntil(this.disconnecting)).subscribe()}closeModalSheet(){return n.of(!0).pipe(n.tap(()=>P.sheet.dismiss(this.schmancyContentDrawerID)))}closeSheet(){return new n.Observable(e=>{this.sheet.animate([{opacity:1,transform:"translateX(0%)"},{opacity:1,transform:"translateX(100%)"}],{duration:500,easing:"cubic-bezier(0.5, 0.01, 0.25, 1)"}).onfinish=()=>{this.sheet.style.display="none",e.next(),e.complete()}})}render(){const e={block:this.mode==="push","absolute z-50":this.mode==="overlay","opacity-1":this.mode==="overlay"&&this.state==="open"},t={minWidth:`${this.minWidth}px`,maxHeight:this.maxHeight};return l.html`
|
|
83
|
-
<section id="sheet" class="${this.classMap(e)}" style=${this.styleMap(t)}>
|
|
84
|
-
<schmancy-area name="${this.schmancyContentDrawerID}">
|
|
85
|
-
<slot name="placeholder"></slot>
|
|
86
|
-
</schmancy-area>
|
|
87
|
-
</section>
|
|
88
|
-
`}},y([a.property({type:Number})],exports.SchmancyContentDrawerSheet.prototype,"minWidth",2),y([d.c({context:q,subscribe:!0}),a.state()],exports.SchmancyContentDrawerSheet.prototype,"mode",2),y([d.c({context:j,subscribe:!0}),a.state()],exports.SchmancyContentDrawerSheet.prototype,"state",2),y([d.c({context:A})],exports.SchmancyContentDrawerSheet.prototype,"schmancyContentDrawerID",2),y([a.query("#sheet")],exports.SchmancyContentDrawerSheet.prototype,"sheet",2),y([a.queryAssignedElements({flatten:!0,slot:void 0})],exports.SchmancyContentDrawerSheet.prototype,"defaultSlot",2),y([d.c({context:k,subscribe:!0})],exports.SchmancyContentDrawerSheet.prototype,"drawerMinWidth",2),y([d.c({context:M,subscribe:!0}),a.state()],exports.SchmancyContentDrawerSheet.prototype,"maxHeight",2),exports.SchmancyContentDrawerSheet=y([a.customElement("schmancy-content-drawer-sheet")],exports.SchmancyContentDrawerSheet);const H=new class{constructor(){this.$drawer=new n.Subject,this.$drawer.pipe(n.debounceTime(10)).subscribe(e=>{e.state?window.dispatchEvent(new CustomEvent(p.SchmancyEvents.NavDrawer_toggle,{detail:{state:"open"},bubbles:!0,composed:!0})):window.dispatchEvent(new CustomEvent(p.SchmancyEvents.NavDrawer_toggle,{detail:{state:"close"},bubbles:!0,composed:!0}))})}open(e){this.$drawer.next({self:e,state:!0})}close(e){this.$drawer.next({self:e,state:!1})}},Q=H,O=m.n("push"),z=m.n("close");var Z=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,D=(e,t,s,i)=>{for(var c,r=i>1?void 0:i?ee(t,s):t,h=e.length-1;h>=0;h--)(c=e[h])&&(r=(i?c(t,s,r):c(r))||r);return i&&r&&Z(t,s,r),r};exports.SchmancyDrawerAppbar=class extends _.TailwindElement(l.css`
|
|
89
|
-
:host {
|
|
90
|
-
display: block;
|
|
91
|
-
}
|
|
92
|
-
`){constructor(){super(...arguments),this.toggler=!0}render(){const e={"block left-3 z-50":this.sidebarMode==="overlay",hidden:this.sidebarMode==="push"},t={"block z-50":!0,"grid gap-2 items-center":!0,"grid-cols-[auto_1fr]":this.sidebarMode==="overlay"&&this.toggler,"grid-cols-1":!(this.sidebarMode==="overlay"&&this.toggler)};return l.html`
|
|
93
|
-
<div class=${this.classMap(t)}>
|
|
94
|
-
${W.when(this.sidebarMode==="overlay"&&this.toggler,()=>l.html`<slot name="toggler">
|
|
95
|
-
<div class="${this.classMap(e)}">
|
|
96
|
-
<schmancy-icon-button
|
|
97
|
-
@click=${()=>{this.dispatchEvent(new CustomEvent(p.SchmancyEvents.NavDrawer_toggle,{detail:{state:this.sidebarOpen==="open"?"close":"open"},bubbles:!0,composed:!0}))}}
|
|
98
|
-
>
|
|
99
|
-
${W.when(this.sidebarOpen==="close",()=>l.html`menu`,()=>l.html`menu_open`)}
|
|
100
|
-
</schmancy-icon-button>
|
|
101
|
-
</div>
|
|
102
|
-
</slot>`)}
|
|
103
|
-
|
|
104
|
-
<slot> </slot>
|
|
105
|
-
</div>
|
|
106
|
-
`}},D([d.c({context:O,subscribe:!0}),a.state()],exports.SchmancyDrawerAppbar.prototype,"sidebarMode",2),D([d.c({context:z,subscribe:!0}),a.state()],exports.SchmancyDrawerAppbar.prototype,"sidebarOpen",2),D([a.property({type:Boolean})],exports.SchmancyDrawerAppbar.prototype,"toggler",2),exports.SchmancyDrawerAppbar=D([a.customElement("schmancy-nav-drawer-appbar")],exports.SchmancyDrawerAppbar);var te=Object.getOwnPropertyDescriptor;exports.SchmancyNavigationDrawerContent=class extends b.$LitElement(l.css`
|
|
107
|
-
:host {
|
|
108
|
-
display: block;
|
|
109
|
-
position: relative;
|
|
110
|
-
inset: 0;
|
|
111
|
-
overflow-y: auto;
|
|
112
|
-
}
|
|
113
|
-
`){connectedCallback(){super.connectedCallback(),n.fromEvent(this,"scroll").pipe(n.takeUntil(this.disconnecting)).subscribe(e=>{this.parentElement.dispatchEvent(new CustomEvent("scroll",{detail:e,bubbles:!0,composed:!0}))})}render(){return l.html` <slot></slot> `}},exports.SchmancyNavigationDrawerContent=((e,t,s,i)=>{for(var c,r=i>1?void 0:i?te(t,s):t,h=e.length-1;h>=0;h--)(c=e[h])&&(r=c(r)||r);return r})([a.customElement("schmancy-nav-drawer-content")],exports.SchmancyNavigationDrawerContent);var re=Object.defineProperty,se=Object.getOwnPropertyDescriptor,S=(e,t,s,i)=>{for(var c,r=i>1?void 0:i?se(t,s):t,h=e.length-1;h>=0;h--)(c=e[h])&&(r=(i?c(t,s,r):c(r))||r);return i&&r&&re(t,s,r),r};exports.SchmancyNavigationDrawer=class extends b.$LitElement(l.css`
|
|
114
|
-
:host {
|
|
115
|
-
display: flex;
|
|
116
|
-
flex-grow: 1;
|
|
117
|
-
overflow: hidden;
|
|
118
|
-
/* Initially hide the component until it’s ready */
|
|
119
|
-
visibility: hidden;
|
|
120
|
-
}
|
|
121
|
-
/* Once the component is ready, remove the hidden style */
|
|
122
|
-
:host([data-ready]) {
|
|
123
|
-
visibility: visible;
|
|
124
|
-
}
|
|
125
|
-
`){constructor(){super(...arguments),this.fullscreen=!1,this.breakpoint="md",this._initialized=!1}firstUpdated(){this.updateState(window.innerWidth),this._initialized=!0,this.setAttribute("data-ready",""),n.fromEvent(window,"resize").pipe(n.map(e=>e.target.innerWidth),n.map(e=>e>=exports.SchmancyNavigationDrawer.BREAKPOINTS[this.breakpoint]),n.distinctUntilChanged(),n.debounceTime(100),n.takeUntil(this.disconnecting)).subscribe(e=>{e?(this.mode="push",this.open="open"):(this.mode="overlay",this.open="close")}),n.fromEvent(window,p.SchmancyEvents.NavDrawer_toggle).pipe(n.tap(e=>{e.stopPropagation()}),n.map(e=>e.detail.state),n.distinctUntilChanged(),n.takeUntil(this.disconnecting),n.debounceTime(10)).subscribe(e=>{this.mode==="push"&&e==="close"||(this.open=e)})}updateState(e){const t=e>=exports.SchmancyNavigationDrawer.BREAKPOINTS[this.breakpoint];this.mode=t?"push":"overlay",this.open=t?"open":"close"}render(){return this._initialized?l.html`
|
|
126
|
-
<schmancy-grid
|
|
127
|
-
cols=${this.fullscreen?"1fr":"auto 1fr"}
|
|
128
|
-
rows="1fr"
|
|
129
|
-
flow="col"
|
|
130
|
-
justify="stretch"
|
|
131
|
-
align="stretch"
|
|
132
|
-
${C.fullHeight()}
|
|
133
|
-
>
|
|
134
|
-
<slot></slot>
|
|
135
|
-
</schmancy-grid>
|
|
136
|
-
`:l.nothing}},exports.SchmancyNavigationDrawer.BREAKPOINTS={sm:640,md:768,lg:1024,xl:1280},S([a.property({type:Boolean})],exports.SchmancyNavigationDrawer.prototype,"fullscreen",2),S([a.property({type:String,attribute:"breakpoint"})],exports.SchmancyNavigationDrawer.prototype,"breakpoint",2),S([m.e({context:O}),a.state()],exports.SchmancyNavigationDrawer.prototype,"mode",2),S([m.e({context:z}),a.property()],exports.SchmancyNavigationDrawer.prototype,"open",2),S([a.state()],exports.SchmancyNavigationDrawer.prototype,"_initialized",2),exports.SchmancyNavigationDrawer=S([a.customElement("schmancy-nav-drawer")],exports.SchmancyNavigationDrawer);var ne=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,v=(e,t,s,i)=>{for(var c,r=i>1?void 0:i?ie(t,s):t,h=e.length-1;h>=0;h--)(c=e[h])&&(r=(i?c(t,s,r):c(r))||r);return i&&r&&ne(t,s,r),r};const E="cubic-bezier(0.5, 0.01, 0.25, 1)";exports.SchmancyNavigationDrawerSidebar=class extends b.$LitElement(){constructor(){super(...arguments),this.width="220px",this._initialized=!1}firstUpdated(){this.mode==="overlay"?this.drawerState==="close"?(this.nav.style.transform="translateX(-100%)",this.overlay.style.display="none"):this.drawerState==="open"&&(this.nav.style.transform="translateX(0)",this.overlay.style.display="block",this.overlay.style.opacity="0.4"):this.mode==="push"&&(this.nav.style.transform="translateX(0)",this.overlay.style.display="none"),this._initialized=!0}updated(e){this._initialized&&(e.has("drawerState")||e.has("mode"))&&(this.mode==="overlay"?this.drawerState==="open"?this.nav.style.transform!=="translateX(0)"&&(this.openOverlay(),this.showNavDrawer()):this.drawerState==="close"&&this.nav.style.transform!=="translateX(-100%)"&&(this.hideNavDrawer(),this.closeOverlay()):this.mode==="push"&&(this.nav.style.transform!=="translateX(0)"&&this.showNavDrawer(),this.overlay.style.display!=="none"&&this.closeOverlay()))}openOverlay(){this.overlay.style.display="block",this.overlay.animate([{opacity:0},{opacity:.4}],{duration:200,easing:E,fill:"forwards"})}closeOverlay(){this.overlay.animate([{opacity:.4},{opacity:0}],{duration:150,easing:E,fill:"forwards"}).onfinish=()=>{this.overlay.style.display="none"}}showNavDrawer(){this.nav.animate([{transform:"translateX(-100%)"},{transform:"translateX(0)"}],{duration:200,easing:E,fill:"forwards"}).onfinish=()=>{this.nav.style.transform="translateX(0)"}}hideNavDrawer(){this.nav.animate([{transform:"translateX(0)"},{transform:"translateX(-100%)"}],{duration:200,easing:E,fill:"forwards"}).onfinish=()=>{this.nav.style.transform="translateX(-100%)"}}handleOverlayClick(){window.dispatchEvent(new CustomEvent(p.SchmancyEvents.NavDrawer_toggle,{detail:{state:"close"},bubbles:!0,composed:!0}))}render(){const e={"p-2 max-w-[360px] w-fit h-full overflow-auto":!0,block:this.mode==="push","fixed inset-0 z-50":this.mode==="overlay"},t={width:this.width};return l.html`
|
|
137
|
-
<nav
|
|
138
|
-
style=${this.styleMap(t)}
|
|
139
|
-
class="${this.classMap({...e})}"
|
|
140
|
-
${C.color({bgColor:o.SchmancyTheme.sys.color.surface.container})}
|
|
141
|
-
>
|
|
142
|
-
<slot></slot>
|
|
143
|
-
</nav>
|
|
144
|
-
<div
|
|
145
|
-
id="overlay"
|
|
146
|
-
${C.color({bgColor:o.SchmancyTheme.sys.color.scrim})}
|
|
147
|
-
@click=${this.handleOverlayClick}
|
|
148
|
-
class="${this.classMap({"fixed inset-0 z-49 hidden":!0})}"
|
|
149
|
-
></div>
|
|
150
|
-
`}},v([d.c({context:O,subscribe:!0}),a.state()],exports.SchmancyNavigationDrawerSidebar.prototype,"mode",2),v([d.c({context:z,subscribe:!0}),a.state()],exports.SchmancyNavigationDrawerSidebar.prototype,"drawerState",2),v([a.query("#overlay")],exports.SchmancyNavigationDrawerSidebar.prototype,"overlay",2),v([a.query("nav")],exports.SchmancyNavigationDrawerSidebar.prototype,"nav",2),v([a.property({type:String})],exports.SchmancyNavigationDrawerSidebar.prototype,"width",2),v([a.state()],exports.SchmancyNavigationDrawerSidebar.prototype,"_initialized",2),exports.SchmancyNavigationDrawerSidebar=v([a.customElement("schmancy-nav-drawer-navbar")],exports.SchmancyNavigationDrawerSidebar);const I="whereAreYouRicky",B="hereMorty",x=new class{constructor(){this.activeTeleportations=new Map,this.flipRequests=new n.Subject,this.find=e=>n.zip([n.fromEvent(window,B).pipe(n.filter(t=>!!t.detail.component.uuid&&!!e.id&&t.detail.component.id===e.id&&t.detail.component.uuid!==e.uuid),n.map(t=>t.detail.component),n.take(1)),n.of(e).pipe(n.tap(()=>{window.dispatchEvent(new CustomEvent(I,{detail:{id:e.id,callerID:e.uuid}}))}))]).pipe(n.map(([t])=>t),n.timeout(0)),this.flip=e=>{const{from:t,to:s}=e,i=s.element.style.zIndex;s.element.style.transformOrigin="top left",s.element.style.setProperty("visibility","visible"),s.element.style.zIndex="1000";const c=[{transform:`translate(${t.rect.left-s.rect.left}px, ${t.rect.top-s.rect.top}px) scale(${t.rect.width/s.rect.width}, ${t.rect.height/s.rect.height})`},{transform:"translate(0, 0) scale(1, 1)"}];s.element.animate(c,{duration:250,delay:10,easing:"cubic-bezier(0.455, 0.03, 0.515, 0.955)"}).onfinish=()=>{s.element.style.zIndex=i,s.element.style.transformOrigin=""}},this.flipRequests.pipe(n.bufferTime(1),n.map(e=>e.map(({from:t,to:s,host:i},c)=>({from:t,to:s,host:i,i:c}))),n.concatMap(e=>n.zip(e.map(t=>n.of(this.flip(t)))))).subscribe()}};function U(e){return n.interval(50).pipe(N.map(()=>e.getBoundingClientRect()),N.distinctUntilChanged((t,s)=>t.width===s.width&&t.height===s.height&&t.top===s.top&&t.right===s.right&&t.bottom===s.bottom&&t.left===s.left),N.take(1))}var oe=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,T=(e,t,s,i)=>{for(var c,r=i>1?void 0:i?ae(t,s):t,h=e.length-1;h>=0;h--)(c=e[h])&&(r=(i?c(t,s,r):c(r))||r);return i&&r&&oe(t,s,r),r};exports.SchmancyTeleportation=class extends b.$LitElement(l.css``){constructor(){super(...arguments),this.uuid=Math.floor(Math.random()*Date.now()),this.delay=0,this.debugging=!1}get _slottedChildren(){return this.shadowRoot.querySelector("slot").assignedElements({flatten:!0})}connectedCallback(){if(this.id===void 0)throw new Error("id is required");super.connectedCallback(),n.merge(n.fromEvent(window,$.FINDING_MORTIES).pipe(n.tap({next:()=>{this.dispatchEvent(new CustomEvent($.HERE_RICKY,{detail:{component:this},bubbles:!0,composed:!0}))}})),n.fromEvent(window,I).pipe(n.tap({next:e=>{e.detail.id===this.id&&this.uuid&&e.detail.callerID!==this.uuid&&this.dispatchEvent(new CustomEvent(B,{detail:{component:this},bubbles:!0,composed:!0}))}}))).pipe(n.takeUntil(this.disconnecting)).subscribe()}async firstUpdated(){n.of(x.activeTeleportations.get(this.id)).pipe(n.filter(e=>!!e),n.takeUntil(this.disconnecting),n.throwIfEmpty()).subscribe({next:e=>{this.style.setProperty("visibility","hidden"),U(this).pipe(n.takeUntil(this.disconnecting)).subscribe({next:t=>{x.activeTeleportations.set(this.id,t),x.flipRequests.next({from:{rect:e},to:{rect:t,element:this._slottedChildren[0]},host:this})}})},error:()=>{this.style.setProperty("visibility","visible"),U(this).pipe(n.takeUntil(this.disconnecting)).subscribe({next:e=>{x.activeTeleportations.set(this.id,e)}})},complete:()=>{}})}render(){return l.html`<slot></slot>`}},T([a.property({type:Number,reflect:!0})],exports.SchmancyTeleportation.prototype,"uuid",2),T([a.property({type:String})],exports.SchmancyTeleportation.prototype,"id",2),T([a.property({type:Number})],exports.SchmancyTeleportation.prototype,"delay",2),exports.SchmancyTeleportation=T([a.customElement("schmancy-teleport")],exports.SchmancyTeleportation);var ce=Object.defineProperty,he=Object.getOwnPropertyDescriptor,u=(e,t,s,i)=>{for(var c,r=i>1?void 0:i?he(t,s):t,h=e.length-1;h>=0;h--)(c=e[h])&&(r=(i?c(t,s,r):c(r))||r);return i&&r&&ce(t,s,r),r};exports.SchmancyAvatar=class extends b.$LitElement(){constructor(){super(...arguments),this.initials="",this.src="",this.icon="",this.size="md",this.color="primary",this.shape="circle",this.bordered=!1,this.status="none"}render(){let e;e=this.src?l.html`<img class="w-full h-full object-cover" src="${this.src}" alt="Avatar" />`:this.initials?l.html`<span class="text-center font-medium">${this.initials.substring(0,2).toUpperCase()}</span>`:this.icon?l.html`<schmancy-icon>${this.icon}</schmancy-icon>`:l.html`<schmancy-icon>person</schmancy-icon>`;const t={"relative flex items-center justify-center overflow-hidden":!0,[{xs:"w-6 h-6 text-xs",sm:"w-8 h-8 text-sm",md:"w-10 h-10 text-base",lg:"w-12 h-12 text-lg",xl:"w-16 h-16 text-xl"}[this.size]]:!0,[{circle:"rounded-full",square:"rounded-md"}[this.shape]]:!0,"border-2 border-surface-container":this.bordered},s=this.getColorAttributes();return l.html`
|
|
151
|
-
<div class="${this.classMap(t)}" ${s}>
|
|
152
|
-
${e} ${this.status!=="none"?this.renderStatusIndicator():""}
|
|
153
|
-
</div>
|
|
154
|
-
`}getColorAttributes(){const e={primary:{bgColor:o.SchmancyTheme.sys.color.primary.container,color:o.SchmancyTheme.sys.color.primary.onContainer},secondary:{bgColor:o.SchmancyTheme.sys.color.secondary.container,color:o.SchmancyTheme.sys.color.secondary.onContainer},tertiary:{bgColor:o.SchmancyTheme.sys.color.tertiary.container,color:o.SchmancyTheme.sys.color.tertiary.onContainer},success:{bgColor:o.SchmancyTheme.sys.color.success.container,color:o.SchmancyTheme.sys.color.success.onContainer},error:{bgColor:o.SchmancyTheme.sys.color.error.container,color:o.SchmancyTheme.sys.color.error.onContainer},neutral:{bgColor:o.SchmancyTheme.sys.color.surface.container,color:o.SchmancyTheme.sys.color.surface.on}};return C.color(e[this.color])}renderStatusIndicator(){const e={online:o.SchmancyTheme.sys.color.success.default,offline:o.SchmancyTheme.sys.color.surface.onVariant,busy:o.SchmancyTheme.sys.color.error.default,away:o.SchmancyTheme.sys.color.tertiary.default},t={"absolute bottom-0 right-0 rounded-full border-2 border-surface-default":!0,[{xs:"w-1.5 h-1.5",sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3",xl:"w-4 h-4"}[this.size]]:!0};return l.html`
|
|
155
|
-
<div class="${this.classMap(t)}" style="background-color: ${e[this.status]};"></div>
|
|
156
|
-
`}},u([a.property({type:String})],exports.SchmancyAvatar.prototype,"initials",2),u([a.property({type:String})],exports.SchmancyAvatar.prototype,"src",2),u([a.property({type:String})],exports.SchmancyAvatar.prototype,"icon",2),u([a.property({type:String})],exports.SchmancyAvatar.prototype,"size",2),u([a.property({type:String})],exports.SchmancyAvatar.prototype,"color",2),u([a.property({type:String})],exports.SchmancyAvatar.prototype,"shape",2),u([a.property({type:Boolean})],exports.SchmancyAvatar.prototype,"bordered",2),u([a.property({type:String})],exports.SchmancyAvatar.prototype,"status",2),exports.SchmancyAvatar=u([a.customElement("schmancy-avatar")],exports.SchmancyAvatar),exports.$drawer=Q,exports.HereMorty=B,exports.SchmancyContentDrawerID=A,exports.SchmancyContentDrawerMaxHeight=M,exports.SchmancyContentDrawerMinWidth=k,exports.SchmancyContentDrawerSheetMode=q,exports.SchmancyContentDrawerSheetState=j,exports.SchmancyDrawerNavbarMode=O,exports.SchmancyDrawerNavbarState=z,exports.WhereAreYouRicky=I,exports.schmancyContentDrawer=V,exports.schmancyNavDrawer=H,exports.teleport=x;
|
|
157
|
-
//# sourceMappingURL=avatar-BvJePwYH.cjs.map
|