@mhmo91/schmancy 0.10.25 → 0.10.27
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/custom-elements.json +9 -18
- package/dist/agent/overlay.confirm-body-BZoUgkdK.js +4574 -0
- package/dist/agent/overlay.confirm-body-BZoUgkdK.js.map +1 -0
- package/dist/agent/schmancy.agent.js +3183 -4976
- package/dist/agent/schmancy.agent.js.map +1 -1
- package/dist/agent/schmancy.manifest.json +68 -24
- package/dist/{area-DrVE5pXW.cjs → area-BSVOYQDA.cjs} +1 -1
- package/dist/{area-DrVE5pXW.cjs.map → area-BSVOYQDA.cjs.map} +1 -1
- package/dist/{area-1EG1LrkX.js → area-C_Yvjmad.js} +1 -1
- package/dist/{area-1EG1LrkX.js.map → area-C_Yvjmad.js.map} +1 -1
- package/dist/area.cjs +1 -1
- package/dist/area.js +1 -1
- package/dist/{autocomplete-6pdZxEab.cjs → autocomplete-B50VXUzw.cjs} +1 -1
- package/dist/{autocomplete-6pdZxEab.cjs.map → autocomplete-B50VXUzw.cjs.map} +1 -1
- package/dist/{autocomplete-nrIcCilw.js → autocomplete-C6I1mfOT.js} +2 -2
- package/dist/{autocomplete-nrIcCilw.js.map → autocomplete-C6I1mfOT.js.map} +1 -1
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/avatar.cjs +2 -2
- package/dist/avatar.js +3 -3
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/{boat--fLgbDAE.js → boat-C94QZ4Zt.js} +27 -21
- package/dist/boat-C94QZ4Zt.js.map +1 -0
- package/dist/boat-DVQBNkk5.cjs +85 -0
- package/dist/boat-DVQBNkk5.cjs.map +1 -0
- package/dist/boat.cjs +1 -1
- package/dist/boat.js +1 -1
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/{busy-DshZcVZ4.js → busy--bNb42rM.js} +1 -1
- package/dist/{busy-DshZcVZ4.js.map → busy--bNb42rM.js.map} +1 -1
- package/dist/{busy-DVCIxBVf.cjs → busy-DuxFvEkY.cjs} +1 -1
- package/dist/{busy-DVCIxBVf.cjs.map → busy-DuxFvEkY.cjs.map} +1 -1
- package/dist/busy.cjs +1 -1
- package/dist/busy.js +1 -1
- package/dist/{button-D9UJ7I6Z.js → button-B7b9L_h5.js} +26 -187
- package/dist/button-B7b9L_h5.js.map +1 -0
- package/dist/{button-JrTMzwHY.cjs → button-DAFZ5A4O.cjs} +2 -60
- package/dist/button-DAFZ5A4O.cjs.map +1 -0
- package/dist/button.cjs +59 -1
- package/dist/button.cjs.map +1 -0
- package/dist/button.js +170 -2
- package/dist/button.js.map +1 -0
- package/dist/{card-CTotavhH.cjs → card-DZPd24Sn.cjs} +1 -1
- package/dist/{card-CTotavhH.cjs.map → card-DZPd24Sn.cjs.map} +1 -1
- package/dist/{card-BvCFuX3J.js → card-ixzxOW-Q.js} +1 -1
- package/dist/{card-BvCFuX3J.js.map → card-ixzxOW-Q.js.map} +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/{checkbox-By4fFmjt.cjs → checkbox-Bi_Fm2mf.cjs} +1 -1
- package/dist/{checkbox-By4fFmjt.cjs.map → checkbox-Bi_Fm2mf.cjs.map} +1 -1
- package/dist/{checkbox-GPsdCUbs.js → checkbox-DdGpepTh.js} +1 -1
- package/dist/{checkbox-GPsdCUbs.js.map → checkbox-DdGpepTh.js.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{chips-27umqnat.js → chips-DLTynyVB.js} +3 -3
- package/dist/{chips-27umqnat.js.map → chips-DLTynyVB.js.map} +1 -1
- package/dist/{chips-BZf9sGA8.cjs → chips-DWQMZErr.cjs} +1 -1
- package/dist/{chips-BZf9sGA8.cjs.map → chips-DWQMZErr.cjs.map} +1 -1
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +2 -2
- package/dist/connectivity.cjs +1 -1
- package/dist/connectivity.js +1 -1
- package/dist/content-drawer.cjs +1 -1
- package/dist/content-drawer.js +1 -1
- package/dist/{date-range-BJnLWCRF.cjs → date-range-BgGQyxOC.cjs} +1 -1
- package/dist/{date-range-BJnLWCRF.cjs.map → date-range-BgGQyxOC.cjs.map} +1 -1
- package/dist/{date-range-wDVHcr0u.js → date-range-CT6ckjmV.js} +2 -2
- package/dist/{date-range-wDVHcr0u.js.map → date-range-CT6ckjmV.js.map} +1 -1
- package/dist/{date-range-inline-BNbbRfIA.js → date-range-inline-Ho3CENTh.js} +1 -1
- package/dist/{date-range-inline-BNbbRfIA.js.map → date-range-inline-Ho3CENTh.js.map} +1 -1
- package/dist/{date-range-inline-B6uKUliV.cjs → date-range-inline-nPWIs-3C.cjs} +1 -1
- package/dist/{date-range-inline-B6uKUliV.cjs.map → date-range-inline-nPWIs-3C.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.cjs +1 -1
- package/dist/delay.js +2 -2
- package/dist/{details-DNrWIes6.cjs → details-BnRWMZdt.cjs} +1 -1
- package/dist/{details-DNrWIes6.cjs.map → details-BnRWMZdt.cjs.map} +1 -1
- package/dist/{details-Ckxpwacj.js → details-CcMTvYo7.js} +2 -2
- package/dist/{details-Ckxpwacj.js.map → details-CcMTvYo7.js.map} +1 -1
- package/dist/details.cjs +1 -1
- package/dist/details.js +1 -1
- package/dist/{directives-F15SJZUR.cjs → directives-BkSqmLBV.cjs} +22 -20
- package/dist/directives-BkSqmLBV.cjs.map +1 -0
- package/dist/{directives-BBMqe8x3.js → directives-DgPbz0lQ.js} +142 -198
- package/dist/directives-DgPbz0lQ.js.map +1 -0
- package/dist/directives.cjs +1 -1
- package/dist/directives.js +7 -6
- package/dist/discovery.cjs +1 -1
- package/dist/discovery.js +1 -1
- package/dist/{discovery.service-CVDXO9rH.cjs.map → discovery.service-CIa3Eeuk.cjs.map} +1 -1
- package/dist/{discovery.service-COmbHaoI.js.map → discovery.service-DZFxtRwW.js.map} +1 -1
- package/dist/{divider-Cde33ivs.cjs → divider-C6yJSL1c.cjs} +1 -1
- package/dist/{divider-Cde33ivs.cjs.map → divider-C6yJSL1c.cjs.map} +1 -1
- package/dist/{divider-BzcZGo4S.js → divider-CZCj0ioH.js} +1 -1
- package/dist/{divider-BzcZGo4S.js.map → divider-CZCj0ioH.js.map} +1 -1
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/{expand-DI144OzN.js → expand-Cc6ogXsR.js} +2 -2
- package/dist/{expand-DI144OzN.js.map → expand-Cc6ogXsR.js.map} +1 -1
- package/dist/{expand-Db4V0jj-.cjs → expand-D4EhwOYh.cjs} +1 -1
- package/dist/{expand-Db4V0jj-.cjs.map → expand-D4EhwOYh.cjs.map} +1 -1
- package/dist/expand.cjs +1 -1
- package/dist/expand.js +1 -1
- package/dist/{float--RScf9BZ.cjs → float-B8EPc_OG.cjs} +1 -1
- package/dist/{float--RScf9BZ.cjs.map → float-B8EPc_OG.cjs.map} +1 -1
- package/dist/{float-DIyzy1c2.js → float-BvI3HTtB.js} +1 -1
- package/dist/{float-DIyzy1c2.js.map → float-BvI3HTtB.js.map} +1 -1
- package/dist/float.cjs +1 -1
- package/dist/float.js +1 -1
- package/dist/form-C4eFgFwF.cjs +42 -0
- package/dist/{form-DWNpOsIU.cjs.map → form-C4eFgFwF.cjs.map} +1 -1
- package/dist/{form-RtXH8UHQ.js → form-CGe9rVox.js} +8 -8
- package/dist/{form-RtXH8UHQ.js.map → form-CGe9rVox.js.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +6 -6
- package/dist/gravity-6pL6CfIr.cjs +1 -0
- package/dist/gravity-6pL6CfIr.cjs.map +1 -0
- package/dist/gravity-sVK3zGBF.js +46 -0
- package/dist/gravity-sVK3zGBF.js.map +1 -0
- package/dist/handover/agent-runtime-followups.md +1 -1
- package/dist/handover/agent-runtime-v1.md +3 -3
- package/dist/{hashContent-Dgmzc32o.js.map → hashContent-BqU6v1Xr.js.map} +1 -1
- package/dist/{hashContent-Dh1VzIAb.cjs.map → hashContent-iRZJJWtE.cjs.map} +1 -1
- package/dist/{icons-DXanGDZ_.js → icon-B1eZr2ZL.js} +1 -1
- package/dist/icon-B1eZr2ZL.js.map +1 -0
- package/dist/{icons-bNxlWLlk.cjs → icon-CgIXAvKI.cjs} +1 -1
- package/dist/{icons-DXanGDZ_.js.map → icon-CgIXAvKI.cjs.map} +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/icons.js +1 -1
- package/dist/{iframe-B1XWRaLC.cjs → iframe-BO3BpRLH.cjs} +1 -1
- package/dist/{iframe-B1XWRaLC.cjs.map → iframe-BO3BpRLH.cjs.map} +1 -1
- package/dist/{iframe-BlHK0cjy.js → iframe-CmpAZc61.js} +1 -1
- package/dist/{iframe-BlHK0cjy.js.map → iframe-CmpAZc61.js.map} +1 -1
- package/dist/iframe.cjs +1 -1
- package/dist/iframe.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +49 -47
- package/dist/{input-C-_XU9AX.cjs → input-5YL2oUBr.cjs} +1 -1
- package/dist/{input-C-_XU9AX.cjs.map → input-5YL2oUBr.cjs.map} +1 -1
- package/dist/{input-CiGa8Dkl.js → input-_Hft9vov.js} +1 -1
- package/dist/{input-CiGa8Dkl.js.map → input-_Hft9vov.js.map} +1 -1
- package/dist/{input-chip-l--zCMGR.js → input-chip-BNTojQT6.js} +1 -1
- package/dist/{input-chip-l--zCMGR.js.map → input-chip-BNTojQT6.js.map} +1 -1
- package/dist/{input-chip-5aYnuRZ_.cjs → input-chip-DKMNpcED.cjs} +1 -1
- package/dist/{input-chip-5aYnuRZ_.cjs.map → input-chip-DKMNpcED.cjs.map} +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/json.cjs +1 -1
- package/dist/json.js +2 -2
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.js +1 -1
- package/dist/{lightbox-D9oiu1Nv.js → lightbox-CKlYcnHV.js} +1 -1
- package/dist/{lightbox-D9oiu1Nv.js.map → lightbox-CKlYcnHV.js.map} +1 -1
- package/dist/{lightbox-CfRDkeeb.cjs → lightbox-t4dvb8_A.cjs} +1 -1
- package/dist/{lightbox-CfRDkeeb.cjs.map → lightbox-t4dvb8_A.cjs.map} +1 -1
- package/dist/lightbox.cjs +1 -1
- package/dist/lightbox.js +1 -1
- package/dist/{list-CDJi3_Ut.cjs → list-21mWtDKg.cjs} +4 -4
- package/dist/list-21mWtDKg.cjs.map +1 -0
- package/dist/{list-BOlRka4v.js → list-B6QhxgRJ.js} +4 -7
- package/dist/list-B6QhxgRJ.js.map +1 -0
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{magnetic-mHXl54Z8.js.map → magnetic-B2VKNfDu.js.map} +1 -1
- package/dist/{magnetic-D-ph029G.cjs.map → magnetic-MQ3HMHJi.cjs.map} +1 -1
- package/dist/{menu-XyrLmCi_.js → menu-CjOgPSOG.js} +2 -2
- package/dist/{menu-XyrLmCi_.js.map → menu-CjOgPSOG.js.map} +1 -1
- package/dist/{menu-CJaDL2cd.cjs → menu-Cu5G4vcR.cjs} +1 -1
- package/dist/{menu-CJaDL2cd.cjs.map → menu-Cu5G4vcR.cjs.map} +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/mixins-8dT5j6CS.js +627 -0
- package/dist/mixins-8dT5j6CS.js.map +1 -0
- package/dist/mixins-BF3Vj8_c.cjs +242 -0
- package/dist/mixins-BF3Vj8_c.cjs.map +1 -0
- package/dist/mixins.cjs +1 -1
- package/dist/mixins.js +1 -1
- package/dist/nav-drawer.cjs +1 -1
- package/dist/nav-drawer.js +1 -1
- package/dist/navigation-bar.cjs +1 -1
- package/dist/navigation-bar.js +1 -1
- package/dist/navigation-rail.cjs +7 -5
- package/dist/navigation-rail.cjs.map +1 -1
- package/dist/navigation-rail.js +52 -38
- package/dist/navigation-rail.js.map +1 -1
- package/dist/notification-CDKBKh63.js +243 -0
- package/dist/notification-CDKBKh63.js.map +1 -0
- package/dist/notification-CcNoBFEJ.cjs +24 -0
- package/dist/notification-CcNoBFEJ.cjs.map +1 -0
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +1 -1
- package/dist/{option-Vpy4UQ-D.js → option-BWfmDJvm.js} +1 -1
- package/dist/{option-Vpy4UQ-D.js.map → option-BWfmDJvm.js.map} +1 -1
- package/dist/{option-nRk4MuXH.cjs → option-DejeqOad.cjs} +1 -1
- package/dist/{option-nRk4MuXH.cjs.map → option-DejeqOad.cjs.map} +1 -1
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{overlay-jlkcrt8F.js → overlay-D3c_NY18.js} +214 -265
- package/dist/overlay-D3c_NY18.js.map +1 -0
- package/dist/overlay-Dv2utO4C.cjs +43 -0
- package/dist/overlay-Dv2utO4C.cjs.map +1 -0
- package/dist/overlay.cjs +1 -1
- package/dist/overlay.confirm-body-B2ntyquG.cjs +79 -0
- package/dist/overlay.confirm-body-B2ntyquG.cjs.map +1 -0
- package/dist/overlay.confirm-body-B_v0ivkn.js +159 -0
- package/dist/overlay.confirm-body-B_v0ivkn.js.map +1 -0
- package/dist/overlay.js +3 -3
- package/dist/overlay.service-B3FjXCqc.js +143 -0
- package/dist/overlay.service-B3FjXCqc.js.map +1 -0
- package/dist/overlay.service-BkSeqXIv.cjs +1 -0
- package/dist/overlay.service-BkSeqXIv.cjs.map +1 -0
- package/dist/{progress-CAp_4jtq.cjs → progress-6_rb3Ah9.cjs} +1 -1
- package/dist/{progress-CAp_4jtq.cjs.map → progress-6_rb3Ah9.cjs.map} +1 -1
- package/dist/{progress-8Bn88GK_.js → progress-CFcmO0wv.js} +1 -1
- package/dist/{progress-8Bn88GK_.js.map → progress-CFcmO0wv.js.map} +1 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.js +1 -1
- package/dist/{radio-group-GNHA7qJR.js → radio-group-Bd8y9QpX.js} +1 -1
- package/dist/{radio-group-GNHA7qJR.js.map → radio-group-Bd8y9QpX.js.map} +1 -1
- package/dist/{radio-group-CN44mAoc.cjs → radio-group-_WZg8EKM.cjs} +1 -1
- package/dist/{radio-group-CN44mAoc.cjs.map → radio-group-_WZg8EKM.cjs.map} +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/range.cjs +1 -1
- package/dist/range.js +1 -1
- package/dist/{rxjs-utils-CaC-tdot.cjs.map → rxjs-utils-Csnks202.cjs.map} +1 -1
- package/dist/{rxjs-utils-BXpvHN4-.js.map → rxjs-utils-d-ivVN84.js.map} +1 -1
- package/dist/rxjs-utils.cjs +1 -1
- package/dist/rxjs-utils.js +1 -1
- package/dist/{select-DZNns5Pa.cjs → select-BaioT3yY.cjs} +2 -2
- package/dist/{select-DZNns5Pa.cjs.map → select-BaioT3yY.cjs.map} +1 -1
- package/dist/{select-BnuXRHS4.js → select-Czpl1ztD.js} +3 -3
- package/dist/{select-BnuXRHS4.js.map → select-Czpl1ztD.js.map} +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.js +1 -1
- package/dist/skills/SKILL.md +1 -1
- package/dist/skills/list.md +0 -1
- package/dist/skills/schmancy/SKILL.md +1 -1
- package/dist/skills/schmancy/list.md +0 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/{splash-screen-DeoPRrOu.cjs → splash-screen-3FtgdVy3.cjs} +1 -1
- package/dist/{splash-screen-DeoPRrOu.cjs.map → splash-screen-3FtgdVy3.cjs.map} +1 -1
- package/dist/{splash-screen-CUP_elaT.js → splash-screen-YtTVkJg8.js} +1 -1
- package/dist/{splash-screen-CUP_elaT.js.map → splash-screen-YtTVkJg8.js.map} +1 -1
- package/dist/splash-screen.cjs +1 -1
- package/dist/splash-screen.js +1 -1
- package/dist/{src-DQ4wr0qq.cjs → src-0LIdvAX6.cjs} +8 -8
- package/dist/{src-DQ4wr0qq.cjs.map → src-0LIdvAX6.cjs.map} +1 -1
- package/dist/{src-B1VkLX3l.js → src-BJHws7IS.js} +37 -37
- package/dist/{src-B1VkLX3l.js.map → src-BJHws7IS.js.map} +1 -1
- package/dist/steps.cjs +1 -1
- package/dist/steps.js +1 -1
- package/dist/{surface-LkaZQXZn.cjs → surface-BNvxLEDN.cjs} +1 -1
- package/dist/surface-BNvxLEDN.cjs.map +1 -0
- package/dist/{surface-hOvkrjGN.js → surface-CVxyQPln.js} +1 -1
- package/dist/surface-CVxyQPln.js.map +1 -0
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/switch.cjs +1 -1
- package/dist/switch.js +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-CfwIHhHo.js → tabs-CnPXvZuZ.js} +1 -1
- package/dist/{tabs-CfwIHhHo.js.map → tabs-CnPXvZuZ.js.map} +1 -1
- package/dist/{tabs-bplzstz6.cjs → tabs-DTU7748z.cjs} +1 -1
- package/dist/{tabs-bplzstz6.cjs.map → tabs-DTU7748z.cjs.map} +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/dist/{textarea-hrDp5gQq.cjs → textarea-Bqth6Q8P.cjs} +1 -1
- package/dist/{textarea-hrDp5gQq.cjs.map → textarea-Bqth6Q8P.cjs.map} +1 -1
- package/dist/{textarea-C1A5xuw9.js → textarea-mQPsppmd.js} +1 -1
- package/dist/{textarea-C1A5xuw9.js.map → textarea-mQPsppmd.js.map} +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{theme-BniFOMEo.js → theme-BJqpv4cG.js} +2 -2
- package/dist/{theme-BniFOMEo.js.map → theme-BJqpv4cG.js.map} +1 -1
- package/dist/{theme-DmR6PKV8.cjs → theme-D4HGKt7N.cjs} +1 -1
- package/dist/{theme-DmR6PKV8.cjs.map → theme-D4HGKt7N.cjs.map} +1 -1
- package/dist/{theme-button--ruZIb0T.js → theme-button-Jap7G_IH.js} +1 -1
- package/dist/{theme-button--ruZIb0T.js.map → theme-button-Jap7G_IH.js.map} +1 -1
- package/dist/{theme-button-a0LgZ7hQ.cjs → theme-button-LP-Dgr17.cjs} +1 -1
- package/dist/{theme-button-a0LgZ7hQ.cjs.map → theme-button-LP-Dgr17.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.interface-B5xjEk74.cjs.map → theme.interface-CSt7JUBD.cjs.map} +1 -1
- package/dist/{theme.interface-DVEw3s8m.js.map → theme.interface-odQEpZZH.js.map} +1 -1
- package/dist/theme.js +3 -3
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/typography-BJMm6b0b.js +358 -0
- package/dist/typography-BJMm6b0b.js.map +1 -0
- package/dist/typography-Bc4MmSal.cjs +282 -0
- package/dist/typography-Bc4MmSal.cjs.map +1 -0
- package/dist/typography.cjs +1 -282
- package/dist/typography.js +2 -358
- package/dist/{utils-CVWUrECT.cjs.map → utils-DTa3QHxk.cjs.map} +1 -1
- package/dist/{utils-578eFTx4.js.map → utils-H8wNknWC.js.map} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/visually-hidden.cjs +1 -1
- package/dist/visually-hidden.js +1 -1
- package/dist/{window-Bp7zWZpu.cjs → window-CNu_WnsY.cjs} +1 -1
- package/dist/{window-Bp7zWZpu.cjs.map → window-CNu_WnsY.cjs.map} +1 -1
- package/dist/{window-BT9JecWy.js → window-DZTjkE24.js} +1 -1
- package/dist/{window-BT9JecWy.js.map → window-DZTjkE24.js.map} +1 -1
- package/dist/window.cjs +1 -1
- package/dist/window.js +1 -1
- package/package.json +1 -1
- package/skills/schmancy/SKILL.md +1 -1
- package/skills/schmancy/list.md +0 -1
- package/src/boat/boat.ts +33 -23
- package/src/directives/nebula.ts +64 -61
- package/src/list/list.ts +1 -12
- package/src/navigation-rail/navigation-rail.ts +558 -490
- package/src/notification/notification-service.ts +81 -263
- package/src/notification/notification.scss +93 -50
- package/src/notification/notification.ts +32 -69
- package/src/overlay/overlay.component.ts +99 -158
- package/src/overlay/overlay.confirm-body.ts +106 -61
- package/src/overlay/overlay.service.ts +81 -108
- package/src/surface/surface.styles.ts +0 -17
- package/src/surface/surface.ts +5 -7
- package/types/mixins/surface.mixin.d.ts +0 -3
- package/types/src/directives/nebula.d.ts +1 -1
- package/types/src/list/list.d.ts +0 -9
- package/types/src/navigation-rail/navigation-rail.d.ts +21 -1
- package/types/src/notification/notification-service.d.ts +3 -86
- package/types/src/notification/notification.d.ts +1 -1
- package/types/src/overlay/overlay.component.d.ts +1 -2
- package/types/src/overlay/overlay.confirm-body.d.ts +8 -4
- package/types/src/surface/surface.d.ts +5 -6
- package/types/src/surface/surface.styles.d.ts +0 -4
- package/dist/agent/overlay.confirm-body-DozUyDYx.js +0 -2859
- package/dist/agent/overlay.confirm-body-DozUyDYx.js.map +0 -1
- package/dist/boat--fLgbDAE.js.map +0 -1
- package/dist/boat-BIB-gPqy.cjs +0 -80
- package/dist/boat-BIB-gPqy.cjs.map +0 -1
- package/dist/button-D9UJ7I6Z.js.map +0 -1
- package/dist/button-JrTMzwHY.cjs.map +0 -1
- package/dist/directives-BBMqe8x3.js.map +0 -1
- package/dist/directives-F15SJZUR.cjs.map +0 -1
- package/dist/form-DWNpOsIU.cjs +0 -42
- package/dist/icons-bNxlWLlk.cjs.map +0 -1
- package/dist/list-BOlRka4v.js.map +0 -1
- package/dist/list-CDJi3_Ut.cjs.map +0 -1
- package/dist/mixins-CsYsIJOI.cjs +0 -254
- package/dist/mixins-CsYsIJOI.cjs.map +0 -1
- package/dist/mixins-DySzfmal.js +0 -642
- package/dist/mixins-DySzfmal.js.map +0 -1
- package/dist/notification-CHrEY4u8.js +0 -306
- package/dist/notification-CHrEY4u8.js.map +0 -1
- package/dist/notification-DKp4tjaB.cjs +0 -23
- package/dist/notification-DKp4tjaB.cjs.map +0 -1
- package/dist/overlay-HNrWZ4sB.cjs +0 -81
- package/dist/overlay-HNrWZ4sB.cjs.map +0 -1
- package/dist/overlay-jlkcrt8F.js.map +0 -1
- package/dist/overlay.confirm-body-B8dFI3cj.cjs +0 -45
- package/dist/overlay.confirm-body-B8dFI3cj.cjs.map +0 -1
- package/dist/overlay.confirm-body-CYShkjI6.js +0 -100
- package/dist/overlay.confirm-body-CYShkjI6.js.map +0 -1
- package/dist/overlay.service-BTPn7Uv7.cjs +0 -1
- package/dist/overlay.service-BTPn7Uv7.cjs.map +0 -1
- package/dist/overlay.service-BqhhxVJp.js +0 -146
- package/dist/overlay.service-BqhhxVJp.js.map +0 -1
- package/dist/surface-LkaZQXZn.cjs.map +0 -1
- package/dist/surface-hOvkrjGN.js.map +0 -1
- package/dist/typography.cjs.map +0 -1
- package/dist/typography.js.map +0 -1
- /package/dist/{discovery.service-CVDXO9rH.cjs → discovery.service-CIa3Eeuk.cjs} +0 -0
- /package/dist/{discovery.service-COmbHaoI.js → discovery.service-DZFxtRwW.js} +0 -0
- /package/dist/{hashContent-Dgmzc32o.js → hashContent-BqU6v1Xr.js} +0 -0
- /package/dist/{hashContent-Dh1VzIAb.cjs → hashContent-iRZJJWtE.cjs} +0 -0
- /package/dist/{magnetic-mHXl54Z8.js → magnetic-B2VKNfDu.js} +0 -0
- /package/dist/{magnetic-D-ph029G.cjs → magnetic-MQ3HMHJi.cjs} +0 -0
- /package/dist/{rxjs-utils-CaC-tdot.cjs → rxjs-utils-Csnks202.cjs} +0 -0
- /package/dist/{rxjs-utils-BXpvHN4-.js → rxjs-utils-d-ivVN84.js} +0 -0
- /package/dist/{theme.interface-B5xjEk74.cjs → theme.interface-CSt7JUBD.cjs} +0 -0
- /package/dist/{theme.interface-DVEw3s8m.js → theme.interface-odQEpZZH.js} +0 -0
- /package/dist/{utils-CVWUrECT.cjs → utils-DTa3QHxk.cjs} +0 -0
- /package/dist/{utils-578eFTx4.js → utils-H8wNknWC.js} +0 -0
|
@@ -1,175 +1,55 @@
|
|
|
1
|
-
import { c as e } from "./mixins-
|
|
1
|
+
import { c as e } from "./mixins-8dT5j6CS.js";
|
|
2
2
|
import { a as t } from "./active-host-BP0zy_Y9.js";
|
|
3
3
|
import { _ as n, d as r, f as i, u as a } from "./animation-DCznELuT.js";
|
|
4
4
|
import { t as o } from "./reduced-motion-D-L12p7G.js";
|
|
5
5
|
import { t as s } from "./layout-DSAjo92m.js";
|
|
6
|
-
import "./overlay.service-
|
|
7
|
-
import "./overlay.confirm-body-
|
|
8
|
-
import {
|
|
9
|
-
import { customElement as
|
|
10
|
-
import { css as
|
|
11
|
-
import { when as
|
|
12
|
-
import { autoUpdate as
|
|
13
|
-
var
|
|
6
|
+
import "./overlay.service-B3FjXCqc.js";
|
|
7
|
+
import "./overlay.confirm-body-B_v0ivkn.js";
|
|
8
|
+
import { EMPTY as c, Observable as l, Subject as u, debounceTime as d, distinctUntilChanged as f, filter as p, fromEvent as m, map as h, merge as g, take as _, takeUntil as v, tap as y } from "rxjs";
|
|
9
|
+
import { customElement as b, property as x, query as S, state as C } from "lit/decorators.js";
|
|
10
|
+
import { css as w, html as T, render as E } from "lit";
|
|
11
|
+
import { when as D } from "lit/directives/when.js";
|
|
12
|
+
import { autoUpdate as O, computePosition as k, flip as A, offset as j, shift as M, size as N } from "@floating-ui/dom";
|
|
13
|
+
var P = o.value;
|
|
14
14
|
o.subscribe((e) => {
|
|
15
|
-
|
|
15
|
+
P = e;
|
|
16
16
|
});
|
|
17
|
-
var
|
|
18
|
-
function
|
|
17
|
+
var F = "--schmancy-overlay-origin-x", I = "--schmancy-overlay-origin-y", L = `var(${F}, 50%) var(${I}, 50%)`;
|
|
18
|
+
function R(e) {
|
|
19
19
|
return Number.isNaN(e) || !Number.isFinite(e) ? 50 : Math.max(0, Math.min(100, e));
|
|
20
20
|
}
|
|
21
|
-
function R(e, t) {
|
|
22
|
-
if (N) return t === "in" ? {
|
|
23
|
-
keyframes: [{
|
|
24
|
-
opacity: 0,
|
|
25
|
-
transform: "none"
|
|
26
|
-
}, {
|
|
27
|
-
opacity: 1,
|
|
28
|
-
transform: "none"
|
|
29
|
-
}],
|
|
30
|
-
options: {
|
|
31
|
-
duration: 1,
|
|
32
|
-
easing: "linear",
|
|
33
|
-
fill: "forwards"
|
|
34
|
-
}
|
|
35
|
-
} : {
|
|
36
|
-
keyframes: [{
|
|
37
|
-
opacity: 1,
|
|
38
|
-
transform: "none"
|
|
39
|
-
}, {
|
|
40
|
-
opacity: 0,
|
|
41
|
-
transform: "none"
|
|
42
|
-
}],
|
|
43
|
-
options: {
|
|
44
|
-
duration: 1,
|
|
45
|
-
easing: "linear",
|
|
46
|
-
fill: "forwards"
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
switch (e) {
|
|
50
|
-
case "centered": return t === "in" ? {
|
|
51
|
-
keyframes: [{
|
|
52
|
-
opacity: 0,
|
|
53
|
-
transform: "scale(0.6)",
|
|
54
|
-
transformOrigin: I
|
|
55
|
-
}, {
|
|
56
|
-
opacity: 1,
|
|
57
|
-
transform: "scale(1)",
|
|
58
|
-
transformOrigin: I
|
|
59
|
-
}],
|
|
60
|
-
options: {
|
|
61
|
-
duration: i.duration,
|
|
62
|
-
easing: n(i),
|
|
63
|
-
fill: "forwards"
|
|
64
|
-
}
|
|
65
|
-
} : {
|
|
66
|
-
keyframes: [{
|
|
67
|
-
opacity: 1,
|
|
68
|
-
transform: "scale(1)",
|
|
69
|
-
transformOrigin: I
|
|
70
|
-
}, {
|
|
71
|
-
opacity: 0,
|
|
72
|
-
transform: "scale(0.95)",
|
|
73
|
-
transformOrigin: I
|
|
74
|
-
}],
|
|
75
|
-
options: {
|
|
76
|
-
duration: 150,
|
|
77
|
-
easing: n(r),
|
|
78
|
-
fill: "forwards"
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
case "sheet": return t === "in" ? {
|
|
82
|
-
keyframes: [{
|
|
83
|
-
opacity: 0,
|
|
84
|
-
transform: "translateY(100%)"
|
|
85
|
-
}, {
|
|
86
|
-
opacity: 1,
|
|
87
|
-
transform: "translateY(0)"
|
|
88
|
-
}],
|
|
89
|
-
options: {
|
|
90
|
-
duration: a.duration,
|
|
91
|
-
easing: n(a),
|
|
92
|
-
fill: "forwards"
|
|
93
|
-
}
|
|
94
|
-
} : {
|
|
95
|
-
keyframes: [{
|
|
96
|
-
opacity: 1,
|
|
97
|
-
transform: "translateY(0)"
|
|
98
|
-
}, {
|
|
99
|
-
opacity: 0,
|
|
100
|
-
transform: "translateY(100%)"
|
|
101
|
-
}],
|
|
102
|
-
options: {
|
|
103
|
-
duration: 150,
|
|
104
|
-
easing: n(r),
|
|
105
|
-
fill: "forwards"
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
case "anchored": return t === "in" ? {
|
|
109
|
-
keyframes: [{
|
|
110
|
-
opacity: 0,
|
|
111
|
-
transform: "scale(0.85)",
|
|
112
|
-
transformOrigin: I
|
|
113
|
-
}, {
|
|
114
|
-
opacity: 1,
|
|
115
|
-
transform: "scale(1)",
|
|
116
|
-
transformOrigin: I
|
|
117
|
-
}],
|
|
118
|
-
options: {
|
|
119
|
-
duration: i.duration,
|
|
120
|
-
easing: n(i),
|
|
121
|
-
fill: "forwards"
|
|
122
|
-
}
|
|
123
|
-
} : {
|
|
124
|
-
keyframes: [{
|
|
125
|
-
opacity: 1,
|
|
126
|
-
transform: "scale(1)",
|
|
127
|
-
transformOrigin: I
|
|
128
|
-
}, {
|
|
129
|
-
opacity: 0,
|
|
130
|
-
transform: "scale(0.92)",
|
|
131
|
-
transformOrigin: I
|
|
132
|
-
}],
|
|
133
|
-
options: {
|
|
134
|
-
duration: 150,
|
|
135
|
-
easing: n(r),
|
|
136
|
-
fill: "forwards"
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
21
|
function z(e) {
|
|
142
22
|
let { surface: t, dragHandle: n, until$: r } = e;
|
|
143
|
-
return new
|
|
144
|
-
let i = n ?? t, a = new
|
|
145
|
-
return
|
|
23
|
+
return new l((e) => {
|
|
24
|
+
let i = n ?? t, a = new u(), o = !1, s = null, c = 0, l = 0, d = 0;
|
|
25
|
+
return g(m(i, "pointerdown").pipe(p((e) => e.isPrimary && (e.pointerType !== "mouse" || e.button === 0)), p((e) => {
|
|
146
26
|
if (n) return !0;
|
|
147
27
|
let r = t.getBoundingClientRect();
|
|
148
28
|
return e.clientY - r.top <= 40;
|
|
149
|
-
}),
|
|
150
|
-
o = !0, s = e.pointerId, c = e.clientY,
|
|
29
|
+
}), y((e) => {
|
|
30
|
+
o = !0, s = e.pointerId, c = e.clientY, l = performance.now(), d = 0, t.style.transition = "none", t.style.willChange = "transform";
|
|
151
31
|
try {
|
|
152
32
|
i.setPointerCapture?.(e.pointerId);
|
|
153
33
|
} catch {}
|
|
154
|
-
})),
|
|
34
|
+
})), m(i, "pointermove").pipe(p(() => o), p((e) => e.pointerId === s), y((e) => {
|
|
155
35
|
d = function(e) {
|
|
156
36
|
if (e >= 0) return e;
|
|
157
37
|
let t = -e;
|
|
158
38
|
return -Math.max(0, 8 * (Math.log(t + 1) - 2));
|
|
159
39
|
}(e.clientY - c), t.style.transform = `translateY(${d}px)`, e.cancelable && e.preventDefault();
|
|
160
|
-
})),
|
|
40
|
+
})), g(m(i, "pointerup"), m(i, "pointercancel"), m(i, "lostpointercapture")).pipe(p(() => o), p((e) => e.pointerId === s), y(() => {
|
|
161
41
|
o = !1;
|
|
162
42
|
let n = s;
|
|
163
43
|
s = null;
|
|
164
44
|
try {
|
|
165
45
|
n !== null && i.releasePointerCapture?.(n);
|
|
166
46
|
} catch {}
|
|
167
|
-
let r = Math.max(1, performance.now() -
|
|
47
|
+
let r = Math.max(1, performance.now() - l), a = d / r, c = t.getBoundingClientRect().height, u = Math.min(80, .25 * c), f = d > u || d > 20 && a > .4;
|
|
168
48
|
t.style.willChange = "", f ? (t.style.transition = "transform 300ms cubic-bezier(0.16, 1, 0.3, 1)", t.style.transform = "translateY(100%)", e.next("dismiss"), e.complete()) : (t.style.transition = "transform 300ms cubic-bezier(0.16, 1, 0.3, 1)", t.style.transform = "translateY(0)");
|
|
169
|
-
}))).pipe(
|
|
49
|
+
}))).pipe(v(g(a, r))).subscribe(), () => {
|
|
170
50
|
a.next(), a.complete(), t.style.transition = "", t.style.transform = "", t.style.willChange = "";
|
|
171
51
|
};
|
|
172
|
-
}).pipe(
|
|
52
|
+
}).pipe(_(1));
|
|
173
53
|
}
|
|
174
54
|
function B(e) {
|
|
175
55
|
let { anchor: t, content: n, viewport: r } = e, i = r.width < 640, a = r.isCoarsePointer, o = n.height > .8 * r.height, s = n.width > .9 * r.width;
|
|
@@ -222,22 +102,22 @@ function W(e) {
|
|
|
222
102
|
};
|
|
223
103
|
}
|
|
224
104
|
function G(e, t, n = {}) {
|
|
225
|
-
return new
|
|
105
|
+
return new l((r) => {
|
|
226
106
|
let i = t.el ?? t.virtual;
|
|
227
107
|
if (!i) return void r.error(/* @__PURE__ */ Error("positionFloatingUI requires an element or virtual anchor"));
|
|
228
|
-
let a = n.placement ?? "bottom-start", o = n.padding ?? 16, s = n.offsetPx ?? 8, c =
|
|
108
|
+
let a = n.placement ?? "bottom-start", o = n.padding ?? 16, s = n.offsetPx ?? 8, c = O(i, e, async () => {
|
|
229
109
|
try {
|
|
230
|
-
let { x: t, y: n } = await
|
|
110
|
+
let { x: t, y: n } = await k(i, e, {
|
|
231
111
|
strategy: "fixed",
|
|
232
112
|
placement: a,
|
|
233
113
|
middleware: [
|
|
234
|
-
|
|
235
|
-
|
|
114
|
+
j(s),
|
|
115
|
+
A({
|
|
236
116
|
padding: o,
|
|
237
117
|
fallbackPlacements: K(a)
|
|
238
118
|
}),
|
|
239
|
-
|
|
240
|
-
|
|
119
|
+
M({ padding: o }),
|
|
120
|
+
N({
|
|
241
121
|
padding: o,
|
|
242
122
|
apply({ availableWidth: e, availableHeight: t, elements: n }) {
|
|
243
123
|
n.floating.style.maxWidth = `${Math.max(0, e)}px`, n.floating.style.maxHeight = `${Math.max(0, t)}px`;
|
|
@@ -331,76 +211,38 @@ function K(e) {
|
|
|
331
211
|
}
|
|
332
212
|
var q = "overlay-mount", J = class extends e {
|
|
333
213
|
constructor(...e) {
|
|
334
|
-
super(...e), this.layout = "centered", this.dismissable = !0, this.modal = !0, this.tier = "modal", this._active = !1, this._closed$ = new
|
|
214
|
+
super(...e), this.layout = "centered", this.dismissable = !0, this.modal = !0, this.tier = "modal", this._active = !1, this._closed$ = new u(), this._mounted = !1, this._closing = !1, this._lastFocusedElement = null, this._inertedSiblings = [], this._lastReResolveAt = 0, this.onBackdropClick = () => {
|
|
335
215
|
this.dismissable && this.close("backdrop");
|
|
336
216
|
};
|
|
337
217
|
}
|
|
338
218
|
static {
|
|
339
|
-
this.styles = [
|
|
219
|
+
this.styles = [w`
|
|
340
220
|
:host {
|
|
341
221
|
position: fixed;
|
|
342
222
|
inset: 0;
|
|
343
|
-
z-index:
|
|
223
|
+
z-index: 10000;
|
|
344
224
|
display: none;
|
|
345
225
|
pointer-events: none;
|
|
346
226
|
}
|
|
347
227
|
:host([active]) {
|
|
348
228
|
display: block;
|
|
349
229
|
}
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
inset: 0;
|
|
353
|
-
pointer-events: none;
|
|
354
|
-
}
|
|
230
|
+
/* Vertical-gradient scrim — Tailwind's bg-gradient utilities cannot reach
|
|
231
|
+
* these color-mix percentages with sufficient control. */
|
|
355
232
|
.backdrop {
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
.surface {
|
|
364
|
-
position: fixed;
|
|
365
|
-
pointer-events: auto;
|
|
366
|
-
max-width: calc(100vw - 2rem);
|
|
367
|
-
max-height: 90dvh;
|
|
368
|
-
overflow: auto;
|
|
369
|
-
border-radius: var(--schmancy-sys-shape-corner-large, 16px);
|
|
370
|
-
background: var(--schmancy-sys-color-surface, #ffffff);
|
|
371
|
-
color: var(--schmancy-sys-color-on-surface, #1a1a1a);
|
|
372
|
-
box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.35);
|
|
373
|
-
padding: var(--schmancy-overlay-padding, 1.5rem);
|
|
233
|
+
background: linear-gradient(
|
|
234
|
+
to bottom,
|
|
235
|
+
color-mix(in srgb, var(--schmancy-sys-color-scrim) 18%, transparent) 0%,
|
|
236
|
+
color-mix(in srgb, var(--schmancy-sys-color-scrim) 56%, transparent) 100%
|
|
237
|
+
);
|
|
238
|
+
-webkit-backdrop-filter: blur(16px) saturate(160%);
|
|
239
|
+
backdrop-filter: blur(16px) saturate(160%);
|
|
374
240
|
}
|
|
375
|
-
|
|
376
|
-
top: 50%;
|
|
377
|
-
left: 50%;
|
|
378
|
-
transform: translate(-50%, -50%);
|
|
379
|
-
}
|
|
380
|
-
.surface[data-layout='sheet'] {
|
|
381
|
-
left: 0;
|
|
382
|
-
right: 0;
|
|
383
|
-
bottom: 0;
|
|
384
|
-
max-width: none;
|
|
385
|
-
width: 100%;
|
|
386
|
-
border-radius: var(--schmancy-sys-shape-corner-large, 16px) var(--schmancy-sys-shape-corner-large, 16px) 0 0;
|
|
387
|
-
padding-bottom: env(safe-area-inset-bottom);
|
|
388
|
-
}
|
|
389
|
-
.surface[data-layout='anchored'] {
|
|
390
|
-
max-width: min(480px, calc(100vw - 2rem));
|
|
391
|
-
box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.28);
|
|
392
|
-
}
|
|
393
|
-
/* Popover top-layer surfaces escape normal z-index — zero out host
|
|
394
|
-
* display to avoid two surfaces rendering during transitions. */
|
|
241
|
+
/* Popover top-layer surfaces — UA defaults push surface off-screen. */
|
|
395
242
|
.surface:popover-open {
|
|
396
243
|
margin: 0;
|
|
397
244
|
border: 0;
|
|
398
245
|
}
|
|
399
|
-
@media (prefers-reduced-motion: reduce) {
|
|
400
|
-
.surface {
|
|
401
|
-
box-shadow: var(--schmancy-sys-elevation-2, 0 2px 6px rgba(0, 0, 0, 0.2));
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
246
|
`];
|
|
405
247
|
}
|
|
406
248
|
get closed$() {
|
|
@@ -469,14 +311,14 @@ var q = "overlay-mount", J = class extends e {
|
|
|
469
311
|
});
|
|
470
312
|
let e = W(this._surface), n = this._positionerTeardown;
|
|
471
313
|
this._positionerTeardown = () => {
|
|
472
|
-
e(), n();
|
|
314
|
+
e(), n?.();
|
|
473
315
|
};
|
|
474
316
|
} else if (this.tier === "popover-fui" && this._resolvedAnchor) {
|
|
475
317
|
let e = W(this._surface), n = G(this._surface, this._resolvedAnchor, {
|
|
476
318
|
placement: t.preferredPlacement ?? "bottom-start",
|
|
477
319
|
offsetPx: 8,
|
|
478
320
|
track: !1 !== t.track
|
|
479
|
-
}).pipe(
|
|
321
|
+
}).pipe(v(this.disconnecting)).subscribe();
|
|
480
322
|
this._positionerTeardown = () => {
|
|
481
323
|
e(), n.unsubscribe();
|
|
482
324
|
};
|
|
@@ -485,16 +327,16 @@ var q = "overlay-mount", J = class extends e {
|
|
|
485
327
|
placement: t.preferredPlacement ?? "bottom-start",
|
|
486
328
|
offsetPx: 8,
|
|
487
329
|
track: !1 !== t.track
|
|
488
|
-
}).pipe(
|
|
330
|
+
}).pipe(v(this.disconnecting)).subscribe();
|
|
489
331
|
this._positionerTeardown = () => e.unsubscribe();
|
|
490
332
|
}
|
|
491
|
-
this.setAnchorOriginVars(), this.wireFocusTrap(), this.wireCloseTriggers(t.signal), this.wireResizeObserver(n), await this.
|
|
333
|
+
this.setAnchorOriginVars(), this.wireFocusTrap(), this.wireCloseTriggers(t.signal), this.wireResizeObserver(n), await this.playAnimations("in");
|
|
492
334
|
}
|
|
493
335
|
async close(e, t) {
|
|
494
336
|
if (!this._closing && this._mounted) {
|
|
495
337
|
this._closing = !0;
|
|
496
338
|
try {
|
|
497
|
-
await this.
|
|
339
|
+
await this.playAnimations("out");
|
|
498
340
|
} catch {}
|
|
499
341
|
if (this.releaseFocusTrap(), this._positionerTeardown) {
|
|
500
342
|
try {
|
|
@@ -509,11 +351,13 @@ var q = "overlay-mount", J = class extends e {
|
|
|
509
351
|
}
|
|
510
352
|
}
|
|
511
353
|
render() {
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
354
|
+
if (!this._active) return T``;
|
|
355
|
+
let e = this.layout === "centered" ? "top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 max-w-[min(calc(100vw-2rem),560px)] max-h-[90dvh] rounded-3xl shadow-overlay" : this.layout === "sheet" ? "left-0 right-0 bottom-0 w-full max-h-[90dvh] rounded-t-[28px] shadow-overlay" : "max-w-[min(480px,calc(100vw-2rem))] max-h-[90dvh] rounded-3xl shadow-overlay-anchored";
|
|
356
|
+
return T`
|
|
357
|
+
<div class="shell fixed inset-0 pointer-events-none" part="shell">
|
|
358
|
+
${D(this.modal, () => T`<div class="backdrop fixed inset-0 pointer-events-auto" part="backdrop" @click=${this.onBackdropClick}></div>`)}
|
|
515
359
|
<section
|
|
516
|
-
class="surface"
|
|
360
|
+
class="${"surface fixed pointer-events-auto overflow-auto bg-surface-container/85 text-surface-on backdrop-blur-md border border-surface-on/8"} ${e}"
|
|
517
361
|
part="surface"
|
|
518
362
|
data-layout=${this.layout}
|
|
519
363
|
data-tier=${this.tier}
|
|
@@ -524,15 +368,15 @@ var q = "overlay-mount", J = class extends e {
|
|
|
524
368
|
<div id=${q}></div>
|
|
525
369
|
</section>
|
|
526
370
|
</div>
|
|
527
|
-
|
|
371
|
+
`;
|
|
528
372
|
}
|
|
529
373
|
setAnchorOriginVars() {
|
|
530
374
|
let e = this._surface;
|
|
531
375
|
if (!e) return;
|
|
532
376
|
let t = e.getBoundingClientRect(), n = this.layout !== "centered" || this._anchorOriginAnchor ? this.layout !== "sheet" || this._anchorOriginAnchor ? function(e, t) {
|
|
533
377
|
if (!e) return {
|
|
534
|
-
[
|
|
535
|
-
[
|
|
378
|
+
[F]: "50%",
|
|
379
|
+
[I]: "50%"
|
|
536
380
|
};
|
|
537
381
|
let { x: n, y: r } = function(e) {
|
|
538
382
|
if (typeof e.getBoundingClientRect == "function") {
|
|
@@ -570,13 +414,13 @@ var q = "overlay-mount", J = class extends e {
|
|
|
570
414
|
};
|
|
571
415
|
}(e);
|
|
572
416
|
if (!t.width || !t.height) return {
|
|
573
|
-
[
|
|
574
|
-
[
|
|
417
|
+
[F]: "50%",
|
|
418
|
+
[I]: "50%"
|
|
575
419
|
};
|
|
576
|
-
let i =
|
|
420
|
+
let i = R((n - t.left) / t.width * 100), a = R((r - t.top) / t.height * 100);
|
|
577
421
|
return {
|
|
578
|
-
[
|
|
579
|
-
[
|
|
422
|
+
[F]: `${i}%`,
|
|
423
|
+
[I]: `${a}%`
|
|
580
424
|
};
|
|
581
425
|
}(this._anchorOriginAnchor, t) : {
|
|
582
426
|
"--schmancy-overlay-origin-x": "50%",
|
|
@@ -609,36 +453,32 @@ var q = "overlay-mount", J = class extends e {
|
|
|
609
453
|
}
|
|
610
454
|
wireCloseTriggers(e) {
|
|
611
455
|
let t = this.disconnecting;
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
})
|
|
456
|
+
if (e?.aborted) return void queueMicrotask(() => {
|
|
457
|
+
this.close("abort");
|
|
458
|
+
});
|
|
459
|
+
let n = m(this, "close").pipe(p((e) => e instanceof CustomEvent), y((e) => e.stopPropagation()), h((e) => ({
|
|
460
|
+
reason: "structured",
|
|
461
|
+
result: e.detail
|
|
462
|
+
}))), r = m(this, "submit").pipe(p((e) => {
|
|
615
463
|
let t = e.target;
|
|
616
464
|
return !!t && t.method === "dialog";
|
|
617
|
-
}),
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
}), _(t)).subscribe(), p(document, "keydown").pipe(f((e) => e.key === "Escape"), v((e) => {
|
|
622
|
-
this.dismissable ? (e.preventDefault(), this.close("escape")) : e.preventDefault();
|
|
623
|
-
}), _(t)).subscribe(), this.tier !== "modal" && p(document, "pointerdown", { capture: !0 }).pipe(f((e) => {
|
|
465
|
+
}), y((e) => e.preventDefault()), h((e) => ({
|
|
466
|
+
reason: "native-submit",
|
|
467
|
+
result: e.submitter?.value ?? ""
|
|
468
|
+
}))), i = m(document, "keydown").pipe(p((e) => e.key === "Escape"), y((e) => e.preventDefault()), p(() => this.dismissable), h(() => ({ reason: "escape" })), _(1)), a = this.tier === "modal" ? null : m(document, "pointerdown", { capture: !0 }).pipe(p((e) => {
|
|
624
469
|
if (!this.dismissable) return !1;
|
|
625
470
|
let t = e.composedPath();
|
|
626
471
|
return (!this._surface || !t.includes(this._surface)) && (!this._resolvedAnchor?.el || !t.includes(this._resolvedAnchor.el));
|
|
627
|
-
}),
|
|
628
|
-
this.close("backdrop");
|
|
629
|
-
}), _(t)).subscribe(), this.layout === "sheet" && this.dismissable && z({
|
|
472
|
+
}), h(() => ({ reason: "backdrop" })), _(1)), o = this.layout === "sheet" && this.dismissable ? z({
|
|
630
473
|
surface: this._surface,
|
|
631
|
-
until$:
|
|
632
|
-
}).pipe(
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
}) : p(e, "abort").pipe(g(1), v(() => {
|
|
637
|
-
this.close("abort");
|
|
638
|
-
}), _(t)).subscribe());
|
|
474
|
+
until$: g(t, this._closed$)
|
|
475
|
+
}).pipe(_(1), h(() => ({ reason: "swipe" }))) : null, s = e ? m(e, "abort").pipe(_(1), h(() => ({ reason: "abort" }))) : null;
|
|
476
|
+
g(n, r, i, a ?? c, o ?? c, s ?? c).pipe(v(t)).subscribe(({ reason: e, result: t }) => {
|
|
477
|
+
this.close(e, t);
|
|
478
|
+
});
|
|
639
479
|
}
|
|
640
480
|
wireResizeObserver(e) {
|
|
641
|
-
s(e).pipe(
|
|
481
|
+
s(e).pipe(h((e) => {
|
|
642
482
|
let t = e[0];
|
|
643
483
|
if (!t) return null;
|
|
644
484
|
let n = t.contentRect;
|
|
@@ -646,7 +486,7 @@ var q = "overlay-mount", J = class extends e {
|
|
|
646
486
|
w: n.width,
|
|
647
487
|
h: n.height
|
|
648
488
|
};
|
|
649
|
-
}),
|
|
489
|
+
}), p((e) => e !== null), f((e, t) => e.w === t.w && e.h === t.h), d(80), v(g(this.disconnecting, this._closed$))).subscribe((e) => this.maybeReResolve(e));
|
|
650
490
|
}
|
|
651
491
|
async maybeReResolve(e) {
|
|
652
492
|
if (this._closing) return;
|
|
@@ -663,7 +503,7 @@ var q = "overlay-mount", J = class extends e {
|
|
|
663
503
|
let s = this._surface, c = s.getBoundingClientRect();
|
|
664
504
|
this.layout = i, await this.updateComplete;
|
|
665
505
|
let l = function(e, t) {
|
|
666
|
-
return
|
|
506
|
+
return P ? {
|
|
667
507
|
keyframes: [{ transform: "none" }, { transform: "none" }],
|
|
668
508
|
options: {
|
|
669
509
|
duration: 1,
|
|
@@ -690,25 +530,134 @@ var q = "overlay-mount", J = class extends e {
|
|
|
690
530
|
} catch {}
|
|
691
531
|
this._lastReResolveAt = performance.now();
|
|
692
532
|
}
|
|
693
|
-
async
|
|
694
|
-
let
|
|
695
|
-
if (!
|
|
696
|
-
let
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
533
|
+
async playAnimations(e) {
|
|
534
|
+
let t = this._surface;
|
|
535
|
+
if (!t) return;
|
|
536
|
+
let o = function(e, t) {
|
|
537
|
+
if (P) return t === "in" ? {
|
|
538
|
+
keyframes: [{
|
|
539
|
+
opacity: 0,
|
|
540
|
+
transform: "none"
|
|
541
|
+
}, {
|
|
542
|
+
opacity: 1,
|
|
543
|
+
transform: "none"
|
|
544
|
+
}],
|
|
545
|
+
options: {
|
|
546
|
+
duration: 1,
|
|
547
|
+
easing: "linear",
|
|
548
|
+
fill: "forwards"
|
|
549
|
+
}
|
|
550
|
+
} : {
|
|
551
|
+
keyframes: [{
|
|
552
|
+
opacity: 1,
|
|
553
|
+
transform: "none"
|
|
554
|
+
}, {
|
|
555
|
+
opacity: 0,
|
|
556
|
+
transform: "none"
|
|
557
|
+
}],
|
|
558
|
+
options: {
|
|
559
|
+
duration: 1,
|
|
560
|
+
easing: "linear",
|
|
561
|
+
fill: "forwards"
|
|
562
|
+
}
|
|
563
|
+
};
|
|
564
|
+
switch (e) {
|
|
565
|
+
case "centered": return t === "in" ? {
|
|
566
|
+
keyframes: [{
|
|
567
|
+
opacity: 0,
|
|
568
|
+
transform: "scale(0.6)",
|
|
569
|
+
transformOrigin: L
|
|
570
|
+
}, {
|
|
571
|
+
opacity: 1,
|
|
572
|
+
transform: "scale(1)",
|
|
573
|
+
transformOrigin: L
|
|
574
|
+
}],
|
|
575
|
+
options: {
|
|
576
|
+
duration: i.duration,
|
|
577
|
+
easing: n(i),
|
|
578
|
+
fill: "forwards"
|
|
579
|
+
}
|
|
580
|
+
} : {
|
|
581
|
+
keyframes: [{
|
|
582
|
+
opacity: 1,
|
|
583
|
+
transform: "scale(1)",
|
|
584
|
+
transformOrigin: L
|
|
585
|
+
}, {
|
|
586
|
+
opacity: 0,
|
|
587
|
+
transform: "scale(0.95)",
|
|
588
|
+
transformOrigin: L
|
|
589
|
+
}],
|
|
590
|
+
options: {
|
|
591
|
+
duration: 150,
|
|
592
|
+
easing: n(r),
|
|
593
|
+
fill: "forwards"
|
|
594
|
+
}
|
|
595
|
+
};
|
|
596
|
+
case "sheet": return t === "in" ? {
|
|
597
|
+
keyframes: [{
|
|
598
|
+
opacity: 0,
|
|
599
|
+
transform: "translateY(100%)"
|
|
600
|
+
}, {
|
|
601
|
+
opacity: 1,
|
|
602
|
+
transform: "translateY(0)"
|
|
603
|
+
}],
|
|
604
|
+
options: {
|
|
605
|
+
duration: a.duration,
|
|
606
|
+
easing: n(a),
|
|
607
|
+
fill: "forwards"
|
|
608
|
+
}
|
|
609
|
+
} : {
|
|
610
|
+
keyframes: [{
|
|
611
|
+
opacity: 1,
|
|
612
|
+
transform: "translateY(0)"
|
|
613
|
+
}, {
|
|
614
|
+
opacity: 0,
|
|
615
|
+
transform: "translateY(100%)"
|
|
616
|
+
}],
|
|
617
|
+
options: {
|
|
618
|
+
duration: 150,
|
|
619
|
+
easing: n(r),
|
|
620
|
+
fill: "forwards"
|
|
621
|
+
}
|
|
622
|
+
};
|
|
623
|
+
case "anchored": return t === "in" ? {
|
|
624
|
+
keyframes: [{
|
|
625
|
+
opacity: 0,
|
|
626
|
+
transform: "scale(0.85)",
|
|
627
|
+
transformOrigin: L
|
|
628
|
+
}, {
|
|
629
|
+
opacity: 1,
|
|
630
|
+
transform: "scale(1)",
|
|
631
|
+
transformOrigin: L
|
|
632
|
+
}],
|
|
633
|
+
options: {
|
|
634
|
+
duration: i.duration,
|
|
635
|
+
easing: n(i),
|
|
636
|
+
fill: "forwards"
|
|
637
|
+
}
|
|
638
|
+
} : {
|
|
639
|
+
keyframes: [{
|
|
640
|
+
opacity: 1,
|
|
641
|
+
transform: "scale(1)",
|
|
642
|
+
transformOrigin: L
|
|
643
|
+
}, {
|
|
644
|
+
opacity: 0,
|
|
645
|
+
transform: "scale(0.92)",
|
|
646
|
+
transformOrigin: L
|
|
647
|
+
}],
|
|
648
|
+
options: {
|
|
649
|
+
duration: 150,
|
|
650
|
+
easing: n(r),
|
|
651
|
+
fill: "forwards"
|
|
652
|
+
}
|
|
653
|
+
};
|
|
654
|
+
}
|
|
655
|
+
}(this.layout, e), s = [t.animate(o.keyframes, o.options).finished.catch(() => {})], c = this._backdrop;
|
|
656
|
+
this.modal && c && s.push(c.animate(e === "in" ? [{ opacity: 0 }, { opacity: 1 }] : [{ opacity: 1 }, { opacity: 0 }], {
|
|
657
|
+
duration: o.options.duration,
|
|
658
|
+
easing: e === "in" ? "ease-out" : "ease-in",
|
|
710
659
|
fill: "forwards"
|
|
711
|
-
}).finished.catch(() => {})), await Promise.all(
|
|
660
|
+
}).finished.catch(() => {})), await Promise.all(s);
|
|
712
661
|
}
|
|
713
662
|
};
|
|
714
663
|
async function Y(e, t, n) {
|
|
@@ -716,7 +665,7 @@ async function Y(e, t, n) {
|
|
|
716
665
|
var r;
|
|
717
666
|
if (function(e) {
|
|
718
667
|
return typeof e == "object" && !!e && "_$litType$" in e;
|
|
719
|
-
}(e)) return
|
|
668
|
+
}(e)) return E(e, t), t;
|
|
720
669
|
if (e instanceof HTMLElement) return n && Object.assign(e, n), t.appendChild(e), e;
|
|
721
670
|
if (function(e) {
|
|
722
671
|
return typeof e == "function" && ("preload" in e || "_promise" in e);
|
|
@@ -731,17 +680,17 @@ async function Y(e, t, n) {
|
|
|
731
680
|
}
|
|
732
681
|
throw Error("schmancy-overlay: unsupported content type");
|
|
733
682
|
}
|
|
734
|
-
t([
|
|
683
|
+
t([x({
|
|
735
684
|
type: String,
|
|
736
685
|
reflect: !0
|
|
737
|
-
})], J.prototype, "layout", void 0), t([
|
|
686
|
+
})], J.prototype, "layout", void 0), t([x({
|
|
738
687
|
type: Boolean,
|
|
739
688
|
reflect: !0
|
|
740
|
-
})], J.prototype, "dismissable", void 0), t([
|
|
689
|
+
})], J.prototype, "dismissable", void 0), t([x({
|
|
741
690
|
type: Boolean,
|
|
742
691
|
reflect: !0
|
|
743
|
-
})], J.prototype, "modal", void 0), t([
|
|
692
|
+
})], J.prototype, "modal", void 0), t([x({
|
|
744
693
|
type: String,
|
|
745
694
|
reflect: !0
|
|
746
|
-
})], J.prototype, "tier", void 0), t([
|
|
695
|
+
})], J.prototype, "tier", void 0), t([C()], J.prototype, "_active", void 0), t([S(".backdrop")], J.prototype, "_backdrop", void 0), t([S(".surface")], J.prototype, "_surface", void 0), J = t([b("schmancy-overlay")], J);
|
|
747
696
|
export { J as t };
|