@mhmo91/schmancy 0.10.35 → 0.10.37
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 +1165 -1109
- package/dist/SchmancyElement-BHfQg3Tj.cjs +2 -0
- package/dist/SchmancyElement-BHfQg3Tj.cjs.map +1 -0
- package/dist/SchmancyElement-CDT2q1lA.js +284 -0
- package/dist/SchmancyElement-CDT2q1lA.js.map +1 -0
- package/dist/agent/schmancy.agent.js +3488 -3290
- package/dist/agent/schmancy.agent.js.map +1 -1
- package/dist/agent/schmancy.manifest.json +335 -275
- package/dist/{area-DviXdbDx.js → area-KtULlxuA.js} +2 -2
- package/dist/{area-DviXdbDx.js.map → area-KtULlxuA.js.map} +1 -1
- package/dist/{area-CTSTgjlx.cjs → area-fdKhYB6T.cjs} +1 -1
- package/dist/{area-CTSTgjlx.cjs.map → area-fdKhYB6T.cjs.map} +1 -1
- package/dist/area.cjs +1 -1
- package/dist/area.js +1 -1
- package/dist/{audio-Q9oB_cQR.cjs → audio-CUMAv9D_.cjs} +1 -1
- package/dist/{audio-Q9oB_cQR.cjs.map → audio-CUMAv9D_.cjs.map} +1 -1
- package/dist/{audio-DFYoaw0M.js → audio-zIJVTo_V.js} +1 -1
- package/dist/{audio-DFYoaw0M.js.map → audio-zIJVTo_V.js.map} +1 -1
- package/dist/audio.cjs +1 -1
- package/dist/audio.js +2 -2
- package/dist/{autocomplete-DmLXJr7C.cjs → autocomplete-DEZk6wBD.cjs} +1 -1
- package/dist/{autocomplete-DmLXJr7C.cjs.map → autocomplete-DEZk6wBD.cjs.map} +1 -1
- package/dist/{autocomplete-BDvuma6D.js → autocomplete-DIScyo8Q.js} +3 -3
- package/dist/{autocomplete-BDvuma6D.js.map → autocomplete-DIScyo8Q.js.map} +1 -1
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.js +3 -3
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/{boat-lr7MPZ7H.js → boat-BHPqSqJd.js} +67 -83
- package/dist/boat-BHPqSqJd.js.map +1 -0
- package/dist/boat-OBZ77exO.cjs +34 -0
- package/dist/boat-OBZ77exO.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 +2 -2
- package/dist/{busy-CgzZbGfx.cjs → busy-BJNsKSCM.cjs} +1 -1
- package/dist/{busy-CgzZbGfx.cjs.map → busy-BJNsKSCM.cjs.map} +1 -1
- package/dist/{busy-DgQ4ux5N.js → busy-Dut78y4L.js} +2 -2
- package/dist/{busy-DgQ4ux5N.js.map → busy-Dut78y4L.js.map} +1 -1
- package/dist/busy.cjs +1 -1
- package/dist/busy.js +1 -1
- package/dist/{button-DFvR1iXX.cjs → button-DzlHLjWO.cjs} +1 -1
- package/dist/{button-DFvR1iXX.cjs.map → button-DzlHLjWO.cjs.map} +1 -1
- package/dist/{button-qbN1muQ0.js → button-kcpPQavY.js} +2 -2
- package/dist/{button-qbN1muQ0.js.map → button-kcpPQavY.js.map} +1 -1
- package/dist/button.cjs +4 -4
- package/dist/button.cjs.map +1 -1
- package/dist/button.js +16 -22
- package/dist/button.js.map +1 -1
- package/dist/{card-D_GlwZ5q.cjs → card-BLxPLqdQ.cjs} +1 -1
- package/dist/{card-D_GlwZ5q.cjs.map → card-BLxPLqdQ.cjs.map} +1 -1
- package/dist/{card-DAbr-7Vy.js → card-DxSKxCid.js} +2 -2
- package/dist/{card-DAbr-7Vy.js.map → card-DxSKxCid.js.map} +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/{checkbox-BNORaxMF.js → checkbox-B1wiM3Dv.js} +2 -2
- package/dist/{checkbox-BNORaxMF.js.map → checkbox-B1wiM3Dv.js.map} +1 -1
- package/dist/{checkbox-BUY_uc_r.cjs → checkbox-BCLkhp5G.cjs} +1 -1
- package/dist/{checkbox-BUY_uc_r.cjs.map → checkbox-BCLkhp5G.cjs.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{chips-CXZ4dJCK.cjs → chips-C9dS1WKn.cjs} +44 -33
- package/dist/chips-C9dS1WKn.cjs.map +1 -0
- package/dist/{chips-Dg6Lk6BT.js → chips-vWmwqQed.js} +145 -122
- package/dist/chips-vWmwqQed.js.map +1 -0
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +2 -2
- package/dist/connectivity.cjs +1 -1
- package/dist/connectivity.js +3 -3
- package/dist/content-drawer.cjs +1 -1
- package/dist/content-drawer.js +1 -1
- package/dist/{date-range-C-_be3_E.cjs → date-range-BV6HuvLw.cjs} +25 -19
- package/dist/date-range-BV6HuvLw.cjs.map +1 -0
- package/dist/{date-range-BU6WX7d5.js → date-range-D3ge1b4c.js} +129 -137
- package/dist/date-range-D3ge1b4c.js.map +1 -0
- package/dist/{date-range-inline-DJtUmHKF.cjs → date-range-inline-DpYgdLRv.cjs} +1 -1
- package/dist/{date-range-inline-DJtUmHKF.cjs.map → date-range-inline-DpYgdLRv.cjs.map} +1 -1
- package/dist/{date-range-inline-7o7xtVIu.js → date-range-inline-DuWQaWps.js} +2 -2
- package/dist/{date-range-inline-7o7xtVIu.js.map → date-range-inline-DuWQaWps.js.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-EfbDPVEo.js → details-C-GZaq3j.js} +2 -2
- package/dist/{details-EfbDPVEo.js.map → details-C-GZaq3j.js.map} +1 -1
- package/dist/{details-Bs0MyyvF.cjs → details-Dp5rLIWk.cjs} +1 -1
- package/dist/{details-Bs0MyyvF.cjs.map → details-Dp5rLIWk.cjs.map} +1 -1
- package/dist/details.cjs +1 -1
- package/dist/details.js +1 -1
- package/dist/{directives-fLwDj6b0.cjs → directives-D_l1E5H6.cjs} +3 -3
- package/dist/directives-D_l1E5H6.cjs.map +1 -0
- package/dist/{directives-zi1Mm2er.js → directives-DyS51FUh.js} +37 -21
- package/dist/directives-DyS51FUh.js.map +1 -0
- package/dist/directives.cjs +1 -1
- package/dist/directives.js +2 -2
- package/dist/{divider-CdIsWZrM.cjs → divider-CBnAmHMZ.cjs} +1 -1
- package/dist/{divider-CdIsWZrM.cjs.map → divider-CBnAmHMZ.cjs.map} +1 -1
- package/dist/{divider-CEPfrIwe.js → divider-nQffE0AD.js} +2 -2
- package/dist/{divider-CEPfrIwe.js.map → divider-nQffE0AD.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 +2 -2
- package/dist/{expand-g1vqqUp1.js → expand-DvTb-UPR.js} +3 -3
- package/dist/{expand-g1vqqUp1.js.map → expand-DvTb-UPR.js.map} +1 -1
- package/dist/{expand--at1k3qo.cjs → expand-mlP_3XWz.cjs} +1 -1
- package/dist/{expand--at1k3qo.cjs.map → expand-mlP_3XWz.cjs.map} +1 -1
- package/dist/expand.cjs +1 -1
- package/dist/expand.js +1 -1
- package/dist/fab.cjs +77 -0
- package/dist/fab.cjs.map +1 -0
- package/dist/fab.js +151 -0
- package/dist/fab.js.map +1 -0
- package/dist/{float-DxVzgI9o.js → float-C-Ko0Le3.js} +2 -2
- package/dist/{float-DxVzgI9o.js.map → float-C-Ko0Le3.js.map} +1 -1
- package/dist/{float-P9HukAm-.cjs → float-C17xgMT1.cjs} +1 -1
- package/dist/{float-P9HukAm-.cjs.map → float-C17xgMT1.cjs.map} +1 -1
- package/dist/float.cjs +1 -1
- package/dist/float.js +1 -1
- package/dist/{form-ByYhXe1p.cjs → form-CwPHcQYB.cjs} +1 -1
- package/dist/{form-ByYhXe1p.cjs.map → form-CwPHcQYB.cjs.map} +1 -1
- package/dist/{form-CqLaozHp.js → form-DA0hUu2h.js} +3 -3
- package/dist/{form-CqLaozHp.js.map → form-DA0hUu2h.js.map} +1 -1
- package/dist/form.cjs +6 -6
- package/dist/form.cjs.map +1 -1
- package/dist/form.js +25 -23
- package/dist/form.js.map +1 -1
- package/dist/handover/agent-runtime-followups.md +1 -1
- package/dist/handover/agent-runtime-v1.md +3 -3
- package/dist/{icons-CkphcMp6.js → icons-C6UfxmHZ.js} +2 -2
- package/dist/{icons-CkphcMp6.js.map → icons-C6UfxmHZ.js.map} +1 -1
- package/dist/{icons-DYtiRU5V.cjs → icons-CW3-oMSb.cjs} +1 -1
- package/dist/{icons-DYtiRU5V.cjs.map → icons-CW3-oMSb.cjs.map} +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/icons.js +1 -1
- package/dist/{iframe-CjqJksl8.js → iframe-BTjZfYyh.js} +2 -2
- package/dist/{iframe-CjqJksl8.js.map → iframe-BTjZfYyh.js.map} +1 -1
- package/dist/{iframe-C3trkP8q.cjs → iframe-wuYT2xFz.cjs} +1 -1
- package/dist/{iframe-C3trkP8q.cjs.map → iframe-wuYT2xFz.cjs.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 +57 -56
- package/dist/{input-CG51zDVh.js → input-B_4g2ulO.js} +2 -2
- package/dist/{input-CG51zDVh.js.map → input-B_4g2ulO.js.map} +1 -1
- package/dist/{input-DuavpwNL.cjs → input-BrDiIT60.cjs} +1 -1
- package/dist/{input-DuavpwNL.cjs.map → input-BrDiIT60.cjs.map} +1 -1
- package/dist/{input-chip-57tgNXKT.cjs → input-chip-B-XWh4aE.cjs} +1 -1
- package/dist/input-chip-B-XWh4aE.cjs.map +1 -0
- package/dist/{input-chip-C6Lq1927.js → input-chip-BlWhOruv.js} +2 -2
- package/dist/input-chip-BlWhOruv.js.map +1 -0
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/json.cjs +1 -1
- package/dist/json.js +3 -3
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.js +2 -2
- package/dist/{layout-6ipbiWTl.cjs → layout-BhyIcEVu.cjs} +1 -1
- package/dist/{layout-6ipbiWTl.cjs.map → layout-BhyIcEVu.cjs.map} +1 -1
- package/dist/{layout-D4IOwx7p.js → layout-Dxit9enO.js} +1 -1
- package/dist/{layout-D4IOwx7p.js.map → layout-Dxit9enO.js.map} +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.js +2 -2
- package/dist/{lightbox-H8pVWGMX.cjs → lightbox-CVBogswK.cjs} +1 -1
- package/dist/{lightbox-H8pVWGMX.cjs.map → lightbox-CVBogswK.cjs.map} +1 -1
- package/dist/{lightbox-CsyO2XSr.js → lightbox-D85XAAuC.js} +2 -2
- package/dist/{lightbox-CsyO2XSr.js.map → lightbox-D85XAAuC.js.map} +1 -1
- package/dist/lightbox.cjs +1 -1
- package/dist/lightbox.js +1 -1
- package/dist/{list-BAwH0pQW.js → list-DOF_yVn5.js} +2 -2
- package/dist/{list-BAwH0pQW.js.map → list-DOF_yVn5.js.map} +1 -1
- package/dist/{list-Bs9m8kw7.cjs → list-nVjLskgx.cjs} +1 -1
- package/dist/{list-Bs9m8kw7.cjs.map → list-nVjLskgx.cjs.map} +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{menu-BMcGzj1h.cjs → menu-DqmNjLgY.cjs} +1 -1
- package/dist/{menu-BMcGzj1h.cjs.map → menu-DqmNjLgY.cjs.map} +1 -1
- package/dist/{menu-tQVARVaC.js → menu-QrAK5Uu9.js} +3 -3
- package/dist/{menu-tQVARVaC.js.map → menu-QrAK5Uu9.js.map} +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/{mixins-Bp0wIHg2.js → mixins-De1zjyhy.js} +1 -1
- package/dist/{mixins-Bp0wIHg2.js.map → mixins-De1zjyhy.js.map} +1 -1
- package/dist/{mixins-CGXSzZc7.cjs → mixins-DxHpyMHA.cjs} +1 -1
- package/dist/{mixins-CGXSzZc7.cjs.map → mixins-DxHpyMHA.cjs.map} +1 -1
- package/dist/mixins.cjs +1 -1
- package/dist/mixins.js +2 -2
- 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 +1 -1
- package/dist/navigation-rail.js +2 -2
- package/dist/{notification-D1tX2nx5.js → notification-BtAK7NK8.js} +4 -4
- package/dist/{notification-D1tX2nx5.js.map → notification-BtAK7NK8.js.map} +1 -1
- package/dist/{notification-Bz00zdpV.cjs → notification-DYzbUb5C.cjs} +1 -1
- package/dist/{notification-Bz00zdpV.cjs.map → notification-DYzbUb5C.cjs.map} +1 -1
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +1 -1
- package/dist/{option-BpGV8Apj.js → option-DHwA0miA.js} +2 -2
- package/dist/{option-BpGV8Apj.js.map → option-DHwA0miA.js.map} +1 -1
- package/dist/{option-BnybLEDO.cjs → option-DnSPa8ro.cjs} +1 -1
- package/dist/{option-BnybLEDO.cjs.map → option-DnSPa8ro.cjs.map} +1 -1
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{overlay-UQR2Dy3u.cjs → overlay-BVkqZmoS.cjs} +5 -5
- package/dist/overlay-BVkqZmoS.cjs.map +1 -0
- package/dist/{overlay-BpNhd74N.js → overlay-Del1sBEB.js} +108 -108
- package/dist/overlay-Del1sBEB.js.map +1 -0
- package/dist/overlay.cjs +1 -1
- package/dist/{overlay.confirm-body-CVDtVk5X.cjs → overlay.confirm-body-BV9umTAl.cjs} +1 -1
- package/dist/{overlay.confirm-body-CVDtVk5X.cjs.map → overlay.confirm-body-BV9umTAl.cjs.map} +1 -1
- package/dist/{overlay.confirm-body-BHcXu5Wk.js → overlay.confirm-body-DSONXUzl.js} +6 -6
- package/dist/{overlay.confirm-body-BHcXu5Wk.js.map → overlay.confirm-body-DSONXUzl.js.map} +1 -1
- package/dist/overlay.js +3 -3
- package/dist/{overlay.service-DTE6NwIM.js → overlay.service-BTp5Oq7f.js} +2 -2
- package/dist/{overlay.service-DTE6NwIM.js.map → overlay.service-BTp5Oq7f.js.map} +1 -1
- package/dist/{overlay.service-C8RsQzgM.cjs → overlay.service-XLlrsSdA.cjs} +1 -1
- package/dist/{overlay.service-C8RsQzgM.cjs.map → overlay.service-XLlrsSdA.cjs.map} +1 -1
- package/dist/{progress-gbIALDRs.cjs → progress-DUbTL9g9.cjs} +1 -1
- package/dist/{progress-gbIALDRs.cjs.map → progress-DUbTL9g9.cjs.map} +1 -1
- package/dist/{progress-CAKsxp29.js → progress-DYA83CFU.js} +2 -2
- package/dist/{progress-CAKsxp29.js.map → progress-DYA83CFU.js.map} +1 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.js +1 -1
- package/dist/{radio-group-CfJ5DtI4.cjs → radio-group-B-ORNtvR.cjs} +1 -1
- package/dist/{radio-group-CfJ5DtI4.cjs.map → radio-group-B-ORNtvR.cjs.map} +1 -1
- package/dist/{radio-group-otyvZvUk.js → radio-group-DxX0iJBo.js} +2 -2
- package/dist/{radio-group-otyvZvUk.js.map → radio-group-DxX0iJBo.js.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 +2 -2
- package/dist/{select-81jniVTs.cjs → select-B9uj_u-s.cjs} +1 -1
- package/dist/{select-81jniVTs.cjs.map → select-B9uj_u-s.cjs.map} +1 -1
- package/dist/{select-9vXx1fhr.js → select-C7gkA-ab.js} +3 -3
- package/dist/{select-9vXx1fhr.js.map → select-C7gkA-ab.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 +2 -2
- package/dist/skills/INDEX.md +1 -1
- package/dist/skills/SKILL.md +20 -18
- package/dist/skills/boat.md +21 -15
- package/dist/skills/fab.md +75 -0
- package/dist/skills/schmancy/INDEX.md +1 -1
- package/dist/skills/schmancy/SKILL.md +20 -18
- package/dist/skills/schmancy/boat.md +21 -15
- package/dist/skills/schmancy/fab.md +75 -0
- package/dist/skills/schmancy/steps.md +68 -34
- package/dist/skills/schmancy/theme.md +1 -1
- package/dist/skills/steps.md +68 -34
- package/dist/skills/theme.md +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +2 -2
- package/dist/{sound.service-CmIw63aM.cjs → sound.service-C7FDY_yD.cjs} +1 -1
- package/dist/{sound.service-CmIw63aM.cjs.map → sound.service-C7FDY_yD.cjs.map} +1 -1
- package/dist/{sound.service-D3ZSq1Kj.js → sound.service-O0232os6.js} +1 -1
- package/dist/{sound.service-D3ZSq1Kj.js.map → sound.service-O0232os6.js.map} +1 -1
- package/dist/{splash-screen-C5KAWXvA.cjs → splash-screen-DIS4odDr.cjs} +1 -1
- package/dist/{splash-screen-C5KAWXvA.cjs.map → splash-screen-DIS4odDr.cjs.map} +1 -1
- package/dist/{splash-screen-BOjrmGLk.js → splash-screen-jfE47xl0.js} +2 -2
- package/dist/{splash-screen-BOjrmGLk.js.map → splash-screen-jfE47xl0.js.map} +1 -1
- package/dist/splash-screen.cjs +1 -1
- package/dist/splash-screen.js +1 -1
- package/dist/{src-C5g3p1J5.js → src-BP3h-9d9.js} +36 -35
- package/dist/{src-C5g3p1J5.js.map → src-BP3h-9d9.js.map} +1 -1
- package/dist/{src-qzUpLbje.cjs → src-Um_pzb-U.cjs} +1 -1
- package/dist/{src-qzUpLbje.cjs.map → src-Um_pzb-U.cjs.map} +1 -1
- package/dist/{state-Cex3rmx2.cjs → state-Bj0M9a6T.cjs} +1 -1
- package/dist/{state-Cex3rmx2.cjs.map → state-Bj0M9a6T.cjs.map} +1 -1
- package/dist/{state-CWBRTSvE.js → state-DscWQpoM.js} +1 -1
- package/dist/{state-CWBRTSvE.js.map → state-DscWQpoM.js.map} +1 -1
- package/dist/state.cjs +1 -1
- package/dist/state.js +2 -2
- package/dist/steps.cjs +35 -19
- package/dist/steps.cjs.map +1 -1
- package/dist/steps.js +96 -73
- package/dist/steps.js.map +1 -1
- package/dist/{surface-9S5scTsD.js → surface-B4Wn4SOO.js} +2 -2
- package/dist/{surface-9S5scTsD.js.map → surface-B4Wn4SOO.js.map} +1 -1
- package/dist/{surface-PfiejLuw.cjs → surface-DRq6cVW6.cjs} +1 -1
- package/dist/{surface-PfiejLuw.cjs.map → surface-DRq6cVW6.cjs.map} +1 -1
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/switch.cjs +1 -1
- package/dist/switch.js +2 -2
- package/dist/table.cjs +1 -1
- package/dist/table.js +2 -2
- package/dist/{tabs-uYvb1P06.cjs → tabs-Ca_fbHPW.cjs} +1 -1
- package/dist/{tabs-uYvb1P06.cjs.map → tabs-Ca_fbHPW.cjs.map} +1 -1
- package/dist/{tabs-BBOjAmgG.js → tabs-CnQPo-XS.js} +2 -2
- package/dist/{tabs-BBOjAmgG.js.map → tabs-CnQPo-XS.js.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-QzSj8Dkl.js → textarea-BvqENhTW.js} +2 -2
- package/dist/{textarea-QzSj8Dkl.js.map → textarea-BvqENhTW.js.map} +1 -1
- package/dist/{textarea-YPHX4g7Y.cjs → textarea-qr7oL8oU.cjs} +1 -1
- package/dist/{textarea-YPHX4g7Y.cjs.map → textarea-qr7oL8oU.cjs.map} +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/theme-BSwJ2YZo.cjs +181 -0
- package/dist/{theme-iKUaS9JB.cjs.map → theme-BSwJ2YZo.cjs.map} +1 -1
- package/dist/{theme-C2Mp-VGt.js → theme-BV0EzHQ1.js} +6 -5
- package/dist/{theme-C2Mp-VGt.js.map → theme-BV0EzHQ1.js.map} +1 -1
- package/dist/{theme-button-CJmhxfMe.cjs → theme-button-C6fpUzPM.cjs} +1 -1
- package/dist/{theme-button-CJmhxfMe.cjs.map → theme-button-C6fpUzPM.cjs.map} +1 -1
- package/dist/{theme-button-DGWAXhzd.js → theme-button-O_xNCgI7.js} +2 -2
- package/dist/{theme-button-DGWAXhzd.js.map → theme-button-O_xNCgI7.js.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.js +3 -3
- package/dist/{theme.service-hc4N-1Oz.js → theme.service-DwLhhOmP.js} +1 -1
- package/dist/{theme.service-hc4N-1Oz.js.map → theme.service-DwLhhOmP.js.map} +1 -1
- package/dist/{theme.service-p61RsJBF.cjs → theme.service-kn9MC025.cjs} +1 -1
- package/dist/{theme.service-p61RsJBF.cjs.map → theme.service-kn9MC025.cjs.map} +1 -1
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +2 -2
- package/dist/{typography-DwV0sqht.js → typography-Dtdooaic.js} +2 -2
- package/dist/{typography-DwV0sqht.js.map → typography-Dtdooaic.js.map} +1 -1
- package/dist/{typography-Bdt8RlX2.cjs → typography-opFYuUYS.cjs} +1 -1
- package/dist/{typography-Bdt8RlX2.cjs.map → typography-opFYuUYS.cjs.map} +1 -1
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/dist/visually-hidden.cjs +1 -1
- package/dist/visually-hidden.js +2 -2
- package/dist/{window-D2WfvNng.cjs → window-BSAemI9J.cjs} +1 -1
- package/dist/{window-D2WfvNng.cjs.map → window-BSAemI9J.cjs.map} +1 -1
- package/dist/{window-n4jN60B_.js → window-ConcHirJ.js} +3 -3
- package/dist/{window-n4jN60B_.js.map → window-ConcHirJ.js.map} +1 -1
- package/dist/window.cjs +1 -1
- package/dist/window.js +1 -1
- package/package.json +1 -1
- package/skills/schmancy/INDEX.md +1 -1
- package/skills/schmancy/SKILL.md +20 -18
- package/skills/schmancy/boat.md +21 -15
- package/skills/schmancy/fab.md +75 -0
- package/skills/schmancy/steps.md +68 -34
- package/skills/schmancy/theme.md +1 -1
- package/src/CLAUDE.md +22 -16
- package/src/boat/boat.test.ts +130 -0
- package/src/boat/boat.ts +144 -121
- package/src/button/icon-button.ts +18 -30
- package/src/chips/assist-chip.ts +2 -263
- package/src/chips/chips.ts +2 -259
- package/src/chips/filter-chip.ts +2 -255
- package/src/chips/index.ts +2 -5
- package/src/chips/input-chip.ts +2 -413
- package/src/chips/suggestion-chip.ts +2 -266
- package/src/directives/fill.ts +28 -5
- package/src/directives/reveal.ts +192 -118
- package/src/fab/fab.test.ts +101 -0
- package/src/fab/fab.ts +226 -0
- package/src/fab/index.ts +1 -0
- package/src/form/fields/chips/assist-chip.ts +263 -0
- package/src/form/fields/chips/chips.ts +234 -0
- package/src/form/fields/chips/filter-chip.ts +255 -0
- package/src/form/fields/chips/index.ts +5 -0
- package/src/form/fields/chips/input-chip.ts +413 -0
- package/src/form/fields/chips/suggestion-chip.ts +266 -0
- package/src/form/fields/date-range/date-range.test.ts +44 -0
- package/src/form/fields/date-range/date-range.ts +103 -97
- package/src/form/fields/index.ts +1 -0
- package/src/index.ts +2 -1
- package/src/overlay/overlay.animations.ts +2 -3
- package/src/overlay/overlay.component.ts +8 -4
- package/src/overlay/overlay.types.ts +14 -2
- package/src/steps/index.ts +1 -1
- package/src/steps/schmancy-step.ts +91 -65
- package/src/steps/{schmancy-steps-container.ts → schmancy-steps.ts} +18 -38
- package/src/steps/steps.context.ts +5 -4
- package/src/steps/steps.test.ts +120 -0
- package/src/theme/theme.component.ts +1 -0
- package/src/theme/theme.style.css +3 -0
- package/types/src/boat/boat.d.ts +27 -9
- package/types/src/boat/boat.test.d.ts +2 -0
- package/types/src/button/icon-button.d.ts +3 -2
- package/types/src/chips/assist-chip.d.ts +1 -47
- package/types/src/chips/chips.d.ts +1 -43
- package/types/src/chips/filter-chip.d.ts +1 -67
- package/types/src/chips/index.d.ts +1 -5
- package/types/src/chips/input-chip.d.ts +1 -82
- package/types/src/chips/suggestion-chip.d.ts +1 -52
- package/types/src/directives/reveal.d.ts +15 -5
- package/types/src/fab/fab.d.ts +80 -0
- package/types/src/fab/fab.test.d.ts +2 -0
- package/types/src/fab/index.d.ts +1 -0
- package/types/src/form/fields/chips/assist-chip.d.ts +47 -0
- package/types/src/form/fields/chips/chips.d.ts +35 -0
- package/types/src/form/fields/chips/filter-chip.d.ts +67 -0
- package/types/src/form/fields/chips/index.d.ts +5 -0
- package/types/src/form/fields/chips/input-chip.d.ts +82 -0
- package/types/src/form/fields/chips/suggestion-chip.d.ts +52 -0
- package/types/src/form/fields/date-range/date-range.d.ts +5 -10
- package/types/src/form/fields/index.d.ts +1 -0
- package/types/src/index.d.ts +2 -1
- package/types/src/overlay/overlay.component.d.ts +1 -0
- package/types/src/overlay/overlay.types.d.ts +12 -2
- package/types/src/steps/index.d.ts +1 -1
- package/types/src/steps/schmancy-step.d.ts +8 -23
- package/types/src/steps/{schmancy-steps-container.d.ts → schmancy-steps.d.ts} +8 -9
- package/types/src/steps/steps.context.d.ts +2 -1
- package/types/src/steps/steps.test.d.ts +2 -0
- package/types/src/theme/theme.component.d.ts +1 -0
- package/dist/SchmancyElement-CA0Wqt8m.js +0 -284
- package/dist/SchmancyElement-CA0Wqt8m.js.map +0 -1
- package/dist/SchmancyElement-CYIif26I.cjs +0 -2
- package/dist/SchmancyElement-CYIif26I.cjs.map +0 -1
- package/dist/boat-Vqjgo10B.cjs +0 -33
- package/dist/boat-Vqjgo10B.cjs.map +0 -1
- package/dist/boat-lr7MPZ7H.js.map +0 -1
- package/dist/chips-CXZ4dJCK.cjs.map +0 -1
- package/dist/chips-Dg6Lk6BT.js.map +0 -1
- package/dist/date-range-BU6WX7d5.js.map +0 -1
- package/dist/date-range-C-_be3_E.cjs.map +0 -1
- package/dist/directives-fLwDj6b0.cjs.map +0 -1
- package/dist/directives-zi1Mm2er.js.map +0 -1
- package/dist/input-chip-57tgNXKT.cjs.map +0 -1
- package/dist/input-chip-C6Lq1927.js.map +0 -1
- package/dist/overlay-BpNhd74N.js.map +0 -1
- package/dist/overlay-UQR2Dy3u.cjs.map +0 -1
- package/dist/theme-iKUaS9JB.cjs +0 -181
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import { t as e, u as t } from "./SchmancyElement-
|
|
2
|
-
import "./mixins-
|
|
3
|
-
import { _ as n, d as r, f as i
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { s
|
|
7
|
-
import "./overlay.confirm-body-
|
|
8
|
-
import { EMPTY as
|
|
9
|
-
import { customElement as
|
|
10
|
-
import { css as
|
|
11
|
-
import { when as
|
|
12
|
-
import { autoUpdate as
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { t as e, u as t } from "./SchmancyElement-CDT2q1lA.js";
|
|
2
|
+
import "./mixins-De1zjyhy.js";
|
|
3
|
+
import { _ as n, d as r, f as i } from "./animation-DCznELuT.js";
|
|
4
|
+
import { t as a } from "./reduced-motion-D-L12p7G.js";
|
|
5
|
+
import { t as o } from "./layout-Dxit9enO.js";
|
|
6
|
+
import { s } from "./overlay.service-BTp5Oq7f.js";
|
|
7
|
+
import "./overlay.confirm-body-DSONXUzl.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 = a.value;
|
|
14
|
+
a.subscribe((e) => {
|
|
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
|
|
21
|
+
function z(e) {
|
|
22
22
|
let { surface: t, dragHandle: n, until$: r } = e;
|
|
23
|
-
return new
|
|
24
|
-
let i = n ?? t, a = new
|
|
25
|
-
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) => {
|
|
26
26
|
if (n) return !0;
|
|
27
27
|
let r = t.getBoundingClientRect();
|
|
28
28
|
return e.clientY - r.top <= 40;
|
|
29
|
-
}),
|
|
30
|
-
o = !0, s = e.pointerId, c = e.clientY, l = performance.now(),
|
|
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";
|
|
31
31
|
try {
|
|
32
32
|
i.setPointerCapture?.(e.pointerId);
|
|
33
33
|
} catch {}
|
|
34
|
-
})),
|
|
35
|
-
|
|
34
|
+
})), m(i, "pointermove").pipe(p(() => o), p((e) => e.pointerId === s), y((e) => {
|
|
35
|
+
d = function(e) {
|
|
36
36
|
if (e >= 0) return e;
|
|
37
37
|
let t = -e;
|
|
38
38
|
return -Math.max(0, 8 * (Math.log(t + 1) - 2));
|
|
39
|
-
}(e.clientY - c), t.style.transform = `translateY(${
|
|
40
|
-
})),
|
|
39
|
+
}(e.clientY - c), t.style.transform = `translateY(${d}px)`, e.cancelable && e.preventDefault();
|
|
40
|
+
})), g(m(i, "pointerup"), m(i, "pointercancel"), m(i, "lostpointercapture")).pipe(p(() => o), p((e) => e.pointerId === s), y(() => {
|
|
41
41
|
o = !1;
|
|
42
42
|
let n = s;
|
|
43
43
|
s = null;
|
|
44
44
|
try {
|
|
45
45
|
n !== null && i.releasePointerCapture?.(n);
|
|
46
46
|
} catch {}
|
|
47
|
-
let r = Math.max(1, performance.now() - l), a =
|
|
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;
|
|
48
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)");
|
|
49
|
-
}))).pipe(
|
|
49
|
+
}))).pipe(v(g(a, r))).subscribe(), () => {
|
|
50
50
|
a.next(), a.complete(), t.style.transition = "", t.style.transform = "", t.style.willChange = "";
|
|
51
51
|
};
|
|
52
|
-
}).pipe(
|
|
52
|
+
}).pipe(_(1));
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function B(e) {
|
|
55
55
|
return e.anchor === void 0 ? "sheet" : "anchored";
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function V(e, t) {
|
|
58
58
|
return {
|
|
59
59
|
x: e,
|
|
60
60
|
y: t,
|
|
@@ -76,12 +76,12 @@ function H(e, t) {
|
|
|
76
76
|
})
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
-
var
|
|
79
|
+
var H = Object.freeze({
|
|
80
80
|
popover: typeof HTMLElement < "u" && "popover" in HTMLElement.prototype && typeof HTMLElement.prototype.showPopover == "function",
|
|
81
81
|
cssAnchor: typeof CSS < "u" && typeof CSS.supports == "function" && CSS.supports("anchor-name: --x")
|
|
82
82
|
});
|
|
83
|
-
function
|
|
84
|
-
if (!
|
|
83
|
+
function U(e) {
|
|
84
|
+
if (!H.popover) throw Error("positionPopoverAPI requires Popover API support");
|
|
85
85
|
e.setAttribute("popover", "manual");
|
|
86
86
|
try {
|
|
87
87
|
e.showPopover();
|
|
@@ -93,23 +93,23 @@ function W(e) {
|
|
|
93
93
|
e.removeAttribute("popover");
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
return new
|
|
96
|
+
function W(e, t, n = {}) {
|
|
97
|
+
return new l((r) => {
|
|
98
98
|
let i = t.el ?? t.virtual;
|
|
99
99
|
if (!i) return void r.error(/* @__PURE__ */ Error("positionFloatingUI requires an element or virtual anchor"));
|
|
100
|
-
let a = n.placement ?? "bottom-start", o = n.padding ?? 16, s = n.offsetPx ?? 8, c =
|
|
100
|
+
let a = n.placement ?? "bottom-start", o = n.padding ?? 16, s = n.offsetPx ?? 8, c = O(i, e, async () => {
|
|
101
101
|
try {
|
|
102
|
-
let { x: t, y: n } = await
|
|
102
|
+
let { x: t, y: n } = await k(i, e, {
|
|
103
103
|
strategy: "fixed",
|
|
104
104
|
placement: a,
|
|
105
105
|
middleware: [
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
j(s),
|
|
107
|
+
A({
|
|
108
108
|
padding: o,
|
|
109
|
-
fallbackPlacements:
|
|
109
|
+
fallbackPlacements: G(a)
|
|
110
110
|
}),
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
M({ padding: o }),
|
|
112
|
+
N({
|
|
113
113
|
padding: o,
|
|
114
114
|
apply({ availableWidth: e, availableHeight: t, elements: n }) {
|
|
115
115
|
n.floating.style.maxWidth = `${Math.max(0, e)}px`, n.floating.style.maxHeight = `${Math.max(0, t)}px`;
|
|
@@ -136,7 +136,7 @@ function G(e, t, n = {}) {
|
|
|
136
136
|
};
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function G(e) {
|
|
140
140
|
switch (e) {
|
|
141
141
|
case "bottom-start": return [
|
|
142
142
|
"top-start",
|
|
@@ -201,14 +201,14 @@ function K(e) {
|
|
|
201
201
|
default: return ["top-start", "bottom-end"];
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var
|
|
204
|
+
var K = "overlay-mount", q = class extends e {
|
|
205
205
|
constructor(...e) {
|
|
206
|
-
super(...e), this.layout = "sheet", this.dismissable = !0, this.modal = !0, this.tier = "modal", this._active = !1, this._closed$ = new
|
|
206
|
+
super(...e), this.layout = "sheet", this.dismissable = !0, this.modal = !0, this.tier = "modal", this._active = !1, this._full = !1, this._closed$ = new u(), this._mounted = !1, this._closing = !1, this._lastFocusedElement = null, this._inertedSiblings = [], this._lastReResolveAt = 0, this.onBackdropClick = () => {
|
|
207
207
|
this.dismissable && this.close("backdrop");
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
210
|
static {
|
|
211
|
-
this.styles = [
|
|
211
|
+
this.styles = [w`
|
|
212
212
|
:host {
|
|
213
213
|
position: fixed;
|
|
214
214
|
inset: 0;
|
|
@@ -257,7 +257,7 @@ var q = "overlay-mount", J = class extends e {
|
|
|
257
257
|
}
|
|
258
258
|
async open(e, t) {
|
|
259
259
|
if (this._mounted) throw Error("schmancy-overlay: open() called twice on the same element");
|
|
260
|
-
this._mounted = !0, this.dismissable = !1 !== t.dismissable, this._rawAnchor = t.anchor, this._anchorOriginAnchor = t.anchor, this._resolvedAnchor = function(e) {
|
|
260
|
+
this._mounted = !0, this.dismissable = !1 !== t.dismissable, this._full = t.full ?? !1, this._rawAnchor = t.anchor, this._anchorOriginAnchor = t.anchor, this._resolvedAnchor = function(e) {
|
|
261
261
|
if (!e) return;
|
|
262
262
|
if (typeof HTMLElement < "u" && e instanceof HTMLElement) return { el: e };
|
|
263
263
|
if (typeof e.getBoundingClientRect == "function") return { virtual: { getBoundingClientRect: () => e.getBoundingClientRect() } };
|
|
@@ -266,20 +266,20 @@ var q = "overlay-mount", J = class extends e {
|
|
|
266
266
|
return { virtual: { getBoundingClientRect: () => t } };
|
|
267
267
|
}
|
|
268
268
|
if (typeof e.clientX == "number" && typeof e.clientY == "number") {
|
|
269
|
-
let t = e, n =
|
|
269
|
+
let t = e, n = V(t.clientX, t.clientY);
|
|
270
270
|
return { virtual: { getBoundingClientRect: () => n } };
|
|
271
271
|
}
|
|
272
272
|
if (e.touches !== void 0 && e.touches.length > 0) {
|
|
273
|
-
let t = e.touches[0], n =
|
|
273
|
+
let t = e.touches[0], n = V(t.clientX, t.clientY);
|
|
274
274
|
return { virtual: { getBoundingClientRect: () => n } };
|
|
275
275
|
}
|
|
276
|
-
let t = e, n =
|
|
276
|
+
let t = e, n = V(t.x, t.y);
|
|
277
277
|
return { virtual: { getBoundingClientRect: () => n } };
|
|
278
278
|
}(t.anchor), this._active = !0, this.setAttribute("active", ""), await this.updateComplete;
|
|
279
|
-
let n = this.renderRoot.querySelector(`#${
|
|
279
|
+
let n = this.renderRoot.querySelector(`#${K}`);
|
|
280
280
|
if (!n) throw Error("schmancy-overlay: mount point missing");
|
|
281
281
|
var r;
|
|
282
|
-
if (await
|
|
282
|
+
if (await J(e, n, t.props), this.layout = t.as ?? B({ anchor: t.anchor }), this.modal = this.layout === "sheet", this.tier = this.modal ? "modal" : this._resolvedAnchor ? (r = this._resolvedAnchor, H.popover && H.cssAnchor && r.el ? "css-anchor" : H.popover ? "popover-fui" : "fui-only") : "modal", await this.updateComplete, this.tier === "css-anchor" && this._resolvedAnchor?.el && this.shadowRoot) {
|
|
283
283
|
this._positionerTeardown = function(e, t, n, r = { id: "" }) {
|
|
284
284
|
if (!t.el) throw Error("positionCSSAnchor requires an element anchor");
|
|
285
285
|
let i = t.el, a = `--ov-${r.id || Math.random().toString(36).slice(2, 10)}`, o = r.placement ?? "bottom-start", s = i.style.getPropertyValue("anchor-name");
|
|
@@ -307,28 +307,28 @@ var q = "overlay-mount", J = class extends e {
|
|
|
307
307
|
id: `ov-${Math.random().toString(36).slice(2, 10)}`,
|
|
308
308
|
placement: t.preferredPlacement ?? "bottom-start"
|
|
309
309
|
});
|
|
310
|
-
let e =
|
|
310
|
+
let e = U(this._surface), n = this._positionerTeardown;
|
|
311
311
|
this._positionerTeardown = () => {
|
|
312
312
|
e(), n?.();
|
|
313
313
|
};
|
|
314
314
|
} else if (this.tier === "popover-fui" && this._resolvedAnchor) {
|
|
315
|
-
let e =
|
|
315
|
+
let e = U(this._surface), n = W(this._surface, this._resolvedAnchor, {
|
|
316
316
|
placement: t.preferredPlacement ?? "bottom-start",
|
|
317
317
|
offsetPx: 8,
|
|
318
318
|
track: !1 !== t.track
|
|
319
|
-
}).pipe(
|
|
319
|
+
}).pipe(v(this.disconnecting)).subscribe();
|
|
320
320
|
this._positionerTeardown = () => {
|
|
321
321
|
e(), n.unsubscribe();
|
|
322
322
|
};
|
|
323
323
|
} else if (this.tier === "fui-only" && this._resolvedAnchor) {
|
|
324
|
-
let e =
|
|
324
|
+
let e = W(this._surface, this._resolvedAnchor, {
|
|
325
325
|
placement: t.preferredPlacement ?? "bottom-start",
|
|
326
326
|
offsetPx: 8,
|
|
327
327
|
track: !1 !== t.track
|
|
328
|
-
}).pipe(
|
|
328
|
+
}).pipe(v(this.disconnecting)).subscribe();
|
|
329
329
|
this._positionerTeardown = () => e.unsubscribe();
|
|
330
330
|
} else if (this.tier === "modal" && this._shell) try {
|
|
331
|
-
this._positionerTeardown =
|
|
331
|
+
this._positionerTeardown = U(this._shell);
|
|
332
332
|
} catch {}
|
|
333
333
|
this.setAnchorOriginVars(), this.wireFocusTrap(), this.wireCloseTriggers(t.signal), this.wireResizeObserver(n), await this.playAnimations("in");
|
|
334
334
|
}
|
|
@@ -351,13 +351,13 @@ var q = "overlay-mount", J = class extends e {
|
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
render() {
|
|
354
|
-
if (!this._active) return
|
|
355
|
-
let e = 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
|
|
354
|
+
if (!this._active) return T``;
|
|
355
|
+
let e = this.layout === "sheet" ? this._full ? "left-0 right-0 bottom-0 w-full h-[90dvh] rounded-t-[28px] shadow-overlay flex flex-col overflow-hidden" : "left-0 right-0 bottom-0 w-full max-h-[90dvh] rounded-t-[28px] shadow-overlay overflow-auto" : "max-w-[min(480px,calc(100vw-2rem))] max-h-[90dvh] rounded-3xl shadow-overlay-anchored overflow-auto";
|
|
356
|
+
return T`
|
|
357
357
|
<div class="shell fixed inset-0 pointer-events-none" part="shell">
|
|
358
|
-
${
|
|
358
|
+
${D(this.modal, () => T`<div class="backdrop fixed inset-0 pointer-events-auto" part="backdrop" @click=${this.onBackdropClick}></div>`)}
|
|
359
359
|
<section
|
|
360
|
-
class="${"surface fixed pointer-events-auto
|
|
360
|
+
class="${"surface fixed pointer-events-auto bg-surface-container/85 text-surface-on backdrop-blur-md border border-surface-on/8"} ${e}"
|
|
361
361
|
part="surface"
|
|
362
362
|
data-layout=${this.layout}
|
|
363
363
|
data-tier=${this.tier}
|
|
@@ -365,7 +365,7 @@ var q = "overlay-mount", J = class extends e {
|
|
|
365
365
|
aria-modal=${this.modal ? "true" : "false"}
|
|
366
366
|
tabindex="-1"
|
|
367
367
|
>
|
|
368
|
-
<div id=${
|
|
368
|
+
<div id=${K} class=${this.layout === "sheet" && this._full ? "flex-1 min-h-0 overflow-hidden" : ""}></div>
|
|
369
369
|
</section>
|
|
370
370
|
</div>
|
|
371
371
|
`;
|
|
@@ -375,8 +375,8 @@ var q = "overlay-mount", J = class extends e {
|
|
|
375
375
|
if (!e) return;
|
|
376
376
|
let t = e.getBoundingClientRect(), n = this.layout !== "sheet" || this._anchorOriginAnchor ? function(e, t) {
|
|
377
377
|
if (!e) return {
|
|
378
|
-
[
|
|
379
|
-
[
|
|
378
|
+
[F]: "50%",
|
|
379
|
+
[I]: "50%"
|
|
380
380
|
};
|
|
381
381
|
let { x: n, y: r } = function(e) {
|
|
382
382
|
if (typeof e.getBoundingClientRect == "function") {
|
|
@@ -414,13 +414,13 @@ var q = "overlay-mount", J = class extends e {
|
|
|
414
414
|
};
|
|
415
415
|
}(e);
|
|
416
416
|
if (!t.width || !t.height) return {
|
|
417
|
-
[
|
|
418
|
-
[
|
|
417
|
+
[F]: "50%",
|
|
418
|
+
[I]: "50%"
|
|
419
419
|
};
|
|
420
|
-
let i =
|
|
420
|
+
let i = R((n - t.left) / t.width * 100), a = R((r - t.top) / t.height * 100);
|
|
421
421
|
return {
|
|
422
|
-
[
|
|
423
|
-
[
|
|
422
|
+
[F]: `${i}%`,
|
|
423
|
+
[I]: `${a}%`
|
|
424
424
|
};
|
|
425
425
|
}(this._anchorOriginAnchor, t) : {
|
|
426
426
|
"--schmancy-overlay-origin-x": "50%",
|
|
@@ -453,36 +453,36 @@ var q = "overlay-mount", J = class extends e {
|
|
|
453
453
|
if (e?.aborted) return void queueMicrotask(() => {
|
|
454
454
|
this.close("abort");
|
|
455
455
|
});
|
|
456
|
-
let n =
|
|
456
|
+
let n = m(this, "close").pipe(p((e) => e instanceof CustomEvent), y((e) => e.stopPropagation()), h((e) => ({
|
|
457
457
|
reason: "structured",
|
|
458
458
|
result: e.detail
|
|
459
|
-
}))), r =
|
|
459
|
+
}))), r = m(this, "submit").pipe(p((e) => {
|
|
460
460
|
let t = e.target;
|
|
461
461
|
return !!t && t.method === "dialog";
|
|
462
|
-
}),
|
|
462
|
+
}), y((e) => e.preventDefault()), h((e) => ({
|
|
463
463
|
reason: "native-submit",
|
|
464
464
|
result: e.submitter?.value ?? ""
|
|
465
|
-
}))), i =
|
|
465
|
+
}))), 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) => {
|
|
466
466
|
if (!this.dismissable) return !1;
|
|
467
467
|
let t = e.composedPath();
|
|
468
468
|
if (this._surface && t.includes(this._surface) || this._resolvedAnchor?.el && t.includes(this._resolvedAnchor.el)) return !1;
|
|
469
|
-
let n =
|
|
469
|
+
let n = s(), r = n.findIndex((e) => e.element === this);
|
|
470
470
|
if (r !== -1) for (let e = r + 1; e < n.length; e++) {
|
|
471
471
|
if (t.includes(n[e].element)) return !1;
|
|
472
472
|
let r = n[e].element.shadowRoot?.querySelector(".surface");
|
|
473
473
|
if (r && t.includes(r)) return !1;
|
|
474
474
|
}
|
|
475
475
|
return !0;
|
|
476
|
-
}),
|
|
476
|
+
}), h(() => ({ reason: "backdrop" })), _(1)), o = this.layout === "sheet" && this.dismissable ? z({
|
|
477
477
|
surface: this._surface,
|
|
478
|
-
until$:
|
|
479
|
-
}).pipe(
|
|
480
|
-
|
|
478
|
+
until$: g(t, this._closed$)
|
|
479
|
+
}).pipe(_(1), h(() => ({ reason: "swipe" }))) : null, l = e ? m(e, "abort").pipe(_(1), h(() => ({ reason: "abort" }))) : null;
|
|
480
|
+
g(n, r, i, a ?? c, o ?? c, l ?? c).pipe(v(t)).subscribe(({ reason: e, result: t }) => {
|
|
481
481
|
this.close(e, t);
|
|
482
482
|
});
|
|
483
483
|
}
|
|
484
484
|
wireResizeObserver(e) {
|
|
485
|
-
|
|
485
|
+
o(e).pipe(h((e) => {
|
|
486
486
|
let t = e[0];
|
|
487
487
|
if (!t) return null;
|
|
488
488
|
let n = t.contentRect;
|
|
@@ -490,17 +490,17 @@ var q = "overlay-mount", J = class extends e {
|
|
|
490
490
|
w: n.width,
|
|
491
491
|
h: n.height
|
|
492
492
|
};
|
|
493
|
-
}),
|
|
493
|
+
}), 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));
|
|
494
494
|
}
|
|
495
495
|
async maybeReResolve(e) {
|
|
496
496
|
if (this._closing) return;
|
|
497
|
-
let t =
|
|
497
|
+
let t = B({ anchor: this._rawAnchor });
|
|
498
498
|
if (t === this.layout || performance.now() - this._lastReResolveAt < 600 || (i = this.layout, a = t, i !== "anchored" || a !== "sheet")) return;
|
|
499
499
|
var i, a;
|
|
500
500
|
let o = this._surface, s = o.getBoundingClientRect();
|
|
501
501
|
this.layout = t, await this.updateComplete;
|
|
502
502
|
let c = function(e, t) {
|
|
503
|
-
return
|
|
503
|
+
return P ? {
|
|
504
504
|
keyframes: [{ transform: "none" }, { transform: "none" }],
|
|
505
505
|
options: {
|
|
506
506
|
duration: 1,
|
|
@@ -530,8 +530,8 @@ var q = "overlay-mount", J = class extends e {
|
|
|
530
530
|
async playAnimations(e) {
|
|
531
531
|
let t = this._surface;
|
|
532
532
|
if (!t) return;
|
|
533
|
-
let
|
|
534
|
-
if (
|
|
533
|
+
let a = function(e, t) {
|
|
534
|
+
if (P) return t === "in" ? {
|
|
535
535
|
keyframes: [{
|
|
536
536
|
opacity: 0,
|
|
537
537
|
transform: "none"
|
|
@@ -568,8 +568,8 @@ var q = "overlay-mount", J = class extends e {
|
|
|
568
568
|
transform: "translateY(0)"
|
|
569
569
|
}],
|
|
570
570
|
options: {
|
|
571
|
-
duration:
|
|
572
|
-
easing: n(
|
|
571
|
+
duration: i.duration,
|
|
572
|
+
easing: n(i),
|
|
573
573
|
fill: "forwards"
|
|
574
574
|
}
|
|
575
575
|
} : {
|
|
@@ -590,11 +590,11 @@ var q = "overlay-mount", J = class extends e {
|
|
|
590
590
|
keyframes: [{
|
|
591
591
|
opacity: 0,
|
|
592
592
|
transform: "scale(0.85)",
|
|
593
|
-
transformOrigin:
|
|
593
|
+
transformOrigin: L
|
|
594
594
|
}, {
|
|
595
595
|
opacity: 1,
|
|
596
596
|
transform: "scale(1)",
|
|
597
|
-
transformOrigin:
|
|
597
|
+
transformOrigin: L
|
|
598
598
|
}],
|
|
599
599
|
options: {
|
|
600
600
|
duration: i.duration,
|
|
@@ -605,11 +605,11 @@ var q = "overlay-mount", J = class extends e {
|
|
|
605
605
|
keyframes: [{
|
|
606
606
|
opacity: 1,
|
|
607
607
|
transform: "scale(1)",
|
|
608
|
-
transformOrigin:
|
|
608
|
+
transformOrigin: L
|
|
609
609
|
}, {
|
|
610
610
|
opacity: 0,
|
|
611
611
|
transform: "scale(0.92)",
|
|
612
|
-
transformOrigin:
|
|
612
|
+
transformOrigin: L
|
|
613
613
|
}],
|
|
614
614
|
options: {
|
|
615
615
|
duration: 150,
|
|
@@ -618,24 +618,24 @@ var q = "overlay-mount", J = class extends e {
|
|
|
618
618
|
}
|
|
619
619
|
};
|
|
620
620
|
}
|
|
621
|
-
}(this.layout, e),
|
|
622
|
-
this.modal &&
|
|
623
|
-
duration:
|
|
621
|
+
}(this.layout, e), o = [t.animate(a.keyframes, a.options).finished.catch(() => {})], s = this._backdrop;
|
|
622
|
+
this.modal && s && o.push(s.animate(e === "in" ? [{ opacity: 0 }, { opacity: 1 }] : [{ opacity: 1 }, { opacity: 0 }], {
|
|
623
|
+
duration: a.options.duration,
|
|
624
624
|
easing: e === "in" ? "ease-out" : "ease-in",
|
|
625
625
|
fill: "forwards"
|
|
626
|
-
}).finished.catch(() => {})), await Promise.all(
|
|
626
|
+
}).finished.catch(() => {})), await Promise.all(o);
|
|
627
627
|
}
|
|
628
628
|
};
|
|
629
|
-
async function
|
|
630
|
-
if (typeof (r = e) == "function" && !r.prototype) return
|
|
629
|
+
async function J(e, t, n) {
|
|
630
|
+
if (typeof (r = e) == "function" && !r.prototype) return J(e(), t, n);
|
|
631
631
|
var r;
|
|
632
632
|
if (function(e) {
|
|
633
633
|
return typeof e == "object" && !!e && "_$litType$" in e;
|
|
634
|
-
}(e)) return
|
|
634
|
+
}(e)) return E(e, t), t;
|
|
635
635
|
if (e instanceof HTMLElement) return n && Object.assign(e, n), t.appendChild(e), e;
|
|
636
636
|
if (function(e) {
|
|
637
637
|
return typeof e == "function" && ("preload" in e || "_promise" in e);
|
|
638
|
-
}(e)) return
|
|
638
|
+
}(e)) return J((await e()).default, t, n);
|
|
639
639
|
if (typeof e == "function") {
|
|
640
640
|
let r = new e();
|
|
641
641
|
return n && Object.assign(r, n), t.appendChild(r), r;
|
|
@@ -646,17 +646,17 @@ async function Y(e, t, n) {
|
|
|
646
646
|
}
|
|
647
647
|
throw Error("schmancy-overlay: unsupported content type");
|
|
648
648
|
}
|
|
649
|
-
t([
|
|
649
|
+
t([x({
|
|
650
650
|
type: String,
|
|
651
651
|
reflect: !0
|
|
652
|
-
})],
|
|
652
|
+
})], q.prototype, "layout", void 0), t([x({
|
|
653
653
|
type: Boolean,
|
|
654
654
|
reflect: !0
|
|
655
|
-
})],
|
|
655
|
+
})], q.prototype, "dismissable", void 0), t([x({
|
|
656
656
|
type: Boolean,
|
|
657
657
|
reflect: !0
|
|
658
|
-
})],
|
|
658
|
+
})], q.prototype, "modal", void 0), t([x({
|
|
659
659
|
type: String,
|
|
660
660
|
reflect: !0
|
|
661
|
-
})],
|
|
662
|
-
export {
|
|
661
|
+
})], q.prototype, "tier", void 0), t([C()], q.prototype, "_active", void 0), t([C()], q.prototype, "_full", void 0), t([S(".backdrop")], q.prototype, "_backdrop", void 0), t([S(".surface")], q.prototype, "_surface", void 0), t([S(".shell")], q.prototype, "_shell", void 0), q = t([b("schmancy-overlay")], q);
|
|
662
|
+
export { q as t };
|