@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,17 +1,16 @@
|
|
|
1
1
|
import { consume } from '@lit/context'
|
|
2
|
+
import { SchmancyElement } from '@mixins/index'
|
|
2
3
|
import { css, html } from 'lit'
|
|
3
|
-
import { customElement, property, state } from 'lit/decorators.js'
|
|
4
|
+
import { customElement, property, queryAssignedNodes, state } from 'lit/decorators.js'
|
|
4
5
|
import { when } from 'lit/directives/when.js'
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { SchmancyElement } from '@mixins/index'
|
|
6
|
+
import { takeUntil } from 'rxjs/operators'
|
|
7
|
+
import { StepsController, stepsContext } from './steps.context'
|
|
8
8
|
|
|
9
9
|
@customElement('schmancy-step')
|
|
10
10
|
export class SchmancyStep extends SchmancyElement {
|
|
11
11
|
static styles = [css`
|
|
12
12
|
:host {
|
|
13
|
-
display:
|
|
14
|
-
/* Base display is just grid, flex properties will be applied dynamically */
|
|
13
|
+
display: block;
|
|
15
14
|
transition: all 0.2s ease-in-out;
|
|
16
15
|
}
|
|
17
16
|
`]
|
|
@@ -23,18 +22,11 @@ export class SchmancyStep extends SchmancyElement {
|
|
|
23
22
|
*/
|
|
24
23
|
@property({ type: Number }) position = 1
|
|
25
24
|
|
|
26
|
-
@property({ type: String })
|
|
25
|
+
@property({ type: String }) label = ''
|
|
27
26
|
@property({ type: String }) description = ''
|
|
28
27
|
|
|
29
|
-
// NEW: Allow a step to be explicitly marked as complete.
|
|
30
28
|
@property({ type: Boolean, reflect: true }) completed = false
|
|
31
29
|
|
|
32
|
-
/**
|
|
33
|
-
* NEW: Lock API to disable users from going back.
|
|
34
|
-
* When set to true, clicking on a previous (completed) step is ignored.
|
|
35
|
-
*/
|
|
36
|
-
@property({ type: Boolean }) lockBack = false
|
|
37
|
-
|
|
38
30
|
/**
|
|
39
31
|
* Consume the shared StepsController from context.
|
|
40
32
|
*/
|
|
@@ -47,80 +39,71 @@ export class SchmancyStep extends SchmancyElement {
|
|
|
47
39
|
@state()
|
|
48
40
|
private currentStep = 1
|
|
49
41
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
42
|
+
@state()
|
|
43
|
+
private hasContent = false
|
|
44
|
+
|
|
45
|
+
@queryAssignedNodes({ flatten: true })
|
|
46
|
+
private assignedNodes!: Node[]
|
|
54
47
|
|
|
55
48
|
connectedCallback() {
|
|
56
49
|
super.connectedCallback()
|
|
50
|
+
this.steps.currentStep$
|
|
51
|
+
.pipe(takeUntil(this.disconnecting))
|
|
52
|
+
.subscribe(step => {
|
|
53
|
+
this.currentStep = step
|
|
54
|
+
this.updateFlexProperties()
|
|
55
|
+
})
|
|
57
56
|
}
|
|
58
57
|
|
|
59
58
|
firstUpdated() {
|
|
60
|
-
// Subscribe to updates from the container's StepsController.
|
|
61
|
-
// Context is guaranteed to be available after first render
|
|
62
|
-
this.subscription = this.steps.currentStep$.subscribe(step => {
|
|
63
|
-
this.currentStep = step
|
|
64
|
-
// When the current step changes, update the flex properties
|
|
65
|
-
this.updateFlexProperties()
|
|
66
|
-
})
|
|
67
|
-
// Initial update of flex properties
|
|
68
59
|
this.updateFlexProperties()
|
|
69
60
|
}
|
|
70
61
|
|
|
71
|
-
|
|
72
|
-
this.
|
|
73
|
-
|
|
62
|
+
private onSlotChange() {
|
|
63
|
+
this.hasContent = this.assignedNodes.some(
|
|
64
|
+
n => n.nodeType === Node.ELEMENT_NODE || (n.nodeType === Node.TEXT_NODE && n.textContent?.trim() !== ''),
|
|
65
|
+
)
|
|
66
|
+
this.updateFlexProperties()
|
|
74
67
|
}
|
|
75
68
|
|
|
76
|
-
/**
|
|
77
|
-
* Update the host element's flex properties based on active state
|
|
78
|
-
*/
|
|
79
69
|
private updateFlexProperties() {
|
|
80
70
|
const isActive = this.position === this.currentStep
|
|
81
|
-
|
|
82
|
-
if (isActive) {
|
|
83
|
-
// Apply flex-grow when active
|
|
84
|
-
this.style.flex = '1 1 auto'
|
|
85
|
-
} else {
|
|
86
|
-
// Make it shrink when not active
|
|
87
|
-
this.style.flex = '0 0 auto'
|
|
88
|
-
}
|
|
71
|
+
this.style.flex = isActive && this.hasContent ? '1 1 auto' : '0 0 auto'
|
|
89
72
|
}
|
|
90
73
|
|
|
91
|
-
/**
|
|
92
|
-
* Compute visual status for styling purposes. Note that if a step is explicitly
|
|
93
|
-
* marked as completed, it always appears as complete even if it's active.
|
|
94
|
-
*/
|
|
95
74
|
get status(): 'complete' | 'current' | 'upcoming' {
|
|
96
75
|
if (this.completed || this.position < this.currentStep) return 'complete'
|
|
97
76
|
if (this.position === this.currentStep) return 'current'
|
|
98
77
|
return 'upcoming'
|
|
99
78
|
}
|
|
100
79
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
* With lockBack enabled, clicking on a previous step is ignored.
|
|
104
|
-
*/
|
|
105
|
-
private _onStepClick(_e: Event) {
|
|
106
|
-
// If lockBack is enabled and the user attempts to go back, do nothing.
|
|
107
|
-
if (this.lockBack && this.position < this.currentStep) {
|
|
108
|
-
return
|
|
109
|
-
}
|
|
80
|
+
private onStepClick() {
|
|
81
|
+
if (this.steps.lockBack && this.position < this.currentStep) return
|
|
110
82
|
if (this.status !== 'upcoming') {
|
|
111
83
|
this.steps.setStep(this.position)
|
|
112
84
|
}
|
|
113
85
|
}
|
|
114
86
|
|
|
87
|
+
private onStepKeydown(e: KeyboardEvent) {
|
|
88
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
89
|
+
e.preventDefault()
|
|
90
|
+
this.onStepClick()
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
115
94
|
render() {
|
|
116
|
-
// Determine if the step is currently active.
|
|
117
95
|
const isActive = this.position === this.currentStep
|
|
118
|
-
|
|
119
|
-
// Use computed status for visual styling.
|
|
120
96
|
const isComplete = this.status === 'complete'
|
|
121
97
|
const isUpcoming = this.status === 'upcoming'
|
|
98
|
+
const navigable = !isUpcoming && !(this.steps.lockBack && this.position < this.currentStep)
|
|
122
99
|
|
|
123
|
-
|
|
100
|
+
if (this.hasContent) {
|
|
101
|
+
return this.renderContentRow(isActive, isComplete, isUpcoming, navigable)
|
|
102
|
+
}
|
|
103
|
+
return this.renderRailRow(isActive, isComplete, isUpcoming, navigable)
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
private renderContentRow(isActive: boolean, isComplete: boolean, isUpcoming: boolean, navigable: boolean) {
|
|
124
107
|
const connectorClasses = {
|
|
125
108
|
'bg-tertiary-default': isComplete,
|
|
126
109
|
'bg-outlineVariant': !isComplete,
|
|
@@ -139,22 +122,19 @@ export class SchmancyStep extends SchmancyElement {
|
|
|
139
122
|
'text-surface-onVariant': isUpcoming,
|
|
140
123
|
}
|
|
141
124
|
|
|
142
|
-
|
|
143
|
-
const clickableClass = isActive || isComplete ? 'cursor-pointer' : ''
|
|
125
|
+
const clickableClass = navigable ? 'cursor-pointer' : ''
|
|
144
126
|
|
|
145
127
|
return html`
|
|
146
128
|
<li class="relative">
|
|
147
|
-
<!-- Connector line - responsive positioning -->
|
|
148
129
|
<div
|
|
149
130
|
class="absolute top-8 left-3 sm:left-4 -ml-px w-0.5 transition-colors duration-200 ${this.classMap(connectorClasses)}"
|
|
150
131
|
style="height: calc(100% + var(--steps-gap, 0px))"
|
|
151
132
|
aria-hidden="true"
|
|
152
133
|
></div>
|
|
153
134
|
|
|
154
|
-
<!-- Step Button/Label - adjusted padding for mobile -->
|
|
155
135
|
<button
|
|
156
136
|
type="button"
|
|
157
|
-
@click=${this.
|
|
137
|
+
@click=${this.onStepClick}
|
|
158
138
|
class="relative flex items-center group transition-all duration-200 hover:scale-[1.02] ${clickableClass} ${isActive ? 'bg-primary-container/20 -mx-1 sm:-mx-2 px-1 sm:px-2 py-2 sm:py-3 rounded-lg' : 'py-1 sm:py-2'}"
|
|
159
139
|
>
|
|
160
140
|
<span class="flex items-center h-10 sm:h-12">
|
|
@@ -181,7 +161,7 @@ export class SchmancyStep extends SchmancyElement {
|
|
|
181
161
|
|
|
182
162
|
<span class="flex flex-col items-start justify-center min-w-0 ml-3 sm:ml-6">
|
|
183
163
|
<schmancy-typography type="title" token="md">
|
|
184
|
-
<span class="transition-colors duration-200 ${this.classMap(textClasses)}">${this.
|
|
164
|
+
<span class="transition-colors duration-200 ${this.classMap(textClasses)}">${this.label}</span>
|
|
185
165
|
</schmancy-typography>
|
|
186
166
|
${when(
|
|
187
167
|
this.description,
|
|
@@ -194,18 +174,64 @@ export class SchmancyStep extends SchmancyElement {
|
|
|
194
174
|
</span>
|
|
195
175
|
</button>
|
|
196
176
|
|
|
197
|
-
<!-- Render step content if the step is active - responsive spacing -->
|
|
198
177
|
${when(
|
|
199
178
|
isActive,
|
|
200
179
|
() => html`
|
|
201
180
|
<div class="ml-6 sm:ml-10 mt-3 sm:mt-4 pb-6 sm:pb-8 transition-all duration-300 ease-out">
|
|
202
|
-
|
|
181
|
+
<slot @slotchange=${this.onSlotChange}></slot>
|
|
203
182
|
</div>
|
|
204
183
|
`,
|
|
205
184
|
)}
|
|
185
|
+
${when(!isActive, () => html`<slot @slotchange=${this.onSlotChange} style="display:none"></slot>`)}
|
|
206
186
|
</li>
|
|
207
187
|
`
|
|
208
188
|
}
|
|
189
|
+
|
|
190
|
+
private renderRailRow(isActive: boolean, isComplete: boolean, _isUpcoming: boolean, navigable: boolean) {
|
|
191
|
+
const isLast = !this.nextElementSibling?.matches('schmancy-step')
|
|
192
|
+
const labelClass = isActive
|
|
193
|
+
? 'text-primary-default'
|
|
194
|
+
: isComplete
|
|
195
|
+
? 'text-surface-on'
|
|
196
|
+
: 'text-surface-on-variant'
|
|
197
|
+
|
|
198
|
+
const dotClass = [
|
|
199
|
+
'relative z-10 w-3 h-3 rounded-full shrink-0 transition-colors duration-300',
|
|
200
|
+
isComplete || isActive ? 'bg-primary-default' : 'bg-outline',
|
|
201
|
+
isActive ? 'ring-2 ring-offset-2 ring-offset-surface-containerLow ring-primary-default' : '',
|
|
202
|
+
].join(' ')
|
|
203
|
+
|
|
204
|
+
return html`
|
|
205
|
+
<div
|
|
206
|
+
class="relative flex items-center gap-4 rounded-lg -mx-2 px-2 py-3 transition-colors duration-200 ${
|
|
207
|
+
navigable
|
|
208
|
+
? 'cursor-pointer hover:bg-primary-default/8 focus-visible:ring-2 focus-visible:ring-primary-default'
|
|
209
|
+
: ''
|
|
210
|
+
}"
|
|
211
|
+
role=${navigable ? 'button' : 'presentation'}
|
|
212
|
+
tabindex=${navigable ? '0' : '-1'}
|
|
213
|
+
aria-current=${isActive ? 'step' : 'false'}
|
|
214
|
+
aria-label=${navigable ? `Go back to ${this.label}` : this.label}
|
|
215
|
+
@click=${this.onStepClick}
|
|
216
|
+
@keydown=${this.onStepKeydown}
|
|
217
|
+
>
|
|
218
|
+
${when(
|
|
219
|
+
!isLast,
|
|
220
|
+
() => html`
|
|
221
|
+
<div
|
|
222
|
+
class="absolute left-3.5 top-1/2 w-px h-full transition-colors duration-300 ${
|
|
223
|
+
isComplete ? 'bg-primary-default' : 'bg-outline'
|
|
224
|
+
}"
|
|
225
|
+
aria-hidden="true"
|
|
226
|
+
></div>
|
|
227
|
+
`,
|
|
228
|
+
)}
|
|
229
|
+
<div class=${dotClass} aria-hidden="true"></div>
|
|
230
|
+
<schmancy-typography type="label" token="lg" class=${labelClass}>${this.label}</schmancy-typography>
|
|
231
|
+
</div>
|
|
232
|
+
<slot @slotchange=${this.onSlotChange} style="display:none"></slot>
|
|
233
|
+
`
|
|
234
|
+
}
|
|
209
235
|
}
|
|
210
236
|
|
|
211
237
|
declare global {
|
|
@@ -12,12 +12,11 @@ import { StepsController, stepsContext } from './steps.context'
|
|
|
12
12
|
*/
|
|
13
13
|
export type SchmancyStepsChangeEvent = CustomEvent<{ value: number }>
|
|
14
14
|
|
|
15
|
-
@customElement('schmancy-steps
|
|
16
|
-
export class
|
|
15
|
+
@customElement('schmancy-steps')
|
|
16
|
+
export class SchmancySteps extends SchmancyElement {
|
|
17
17
|
static styles = [css`
|
|
18
18
|
:host {
|
|
19
19
|
display: block;
|
|
20
|
-
overflow: auto;
|
|
21
20
|
}
|
|
22
21
|
`]
|
|
23
22
|
|
|
@@ -27,23 +26,27 @@ export class SchmancyStepsContainer extends SchmancyElement {
|
|
|
27
26
|
stepsController = this.controller
|
|
28
27
|
|
|
29
28
|
@property({ type: Number, reflect: true })
|
|
30
|
-
set
|
|
29
|
+
set value(v: number) {
|
|
31
30
|
const oldValue = this.controller.currentStep
|
|
32
|
-
if (oldValue !==
|
|
33
|
-
this.controller.setStep(
|
|
31
|
+
if (oldValue !== v) {
|
|
32
|
+
this.controller.setStep(v)
|
|
34
33
|
}
|
|
35
34
|
}
|
|
36
35
|
|
|
37
|
-
get
|
|
36
|
+
get value(): number {
|
|
38
37
|
return this.controller.currentStep
|
|
39
38
|
}
|
|
40
39
|
|
|
41
40
|
/**
|
|
42
|
-
*
|
|
43
|
-
* @default 4
|
|
41
|
+
* Block back-navigation for the whole stepper.
|
|
44
42
|
*/
|
|
45
|
-
@property({ type:
|
|
46
|
-
|
|
43
|
+
@property({ type: Boolean, reflect: true })
|
|
44
|
+
set lockBack(v: boolean) {
|
|
45
|
+
this.controller.lockBack = v
|
|
46
|
+
}
|
|
47
|
+
get lockBack(): boolean {
|
|
48
|
+
return this.controller.lockBack
|
|
49
|
+
}
|
|
47
50
|
|
|
48
51
|
connectedCallback() {
|
|
49
52
|
super.connectedCallback()
|
|
@@ -54,8 +57,6 @@ export class SchmancyStepsContainer extends SchmancyElement {
|
|
|
54
57
|
distinctUntilChanged(),
|
|
55
58
|
tap(step => {
|
|
56
59
|
this.requestUpdate()
|
|
57
|
-
// Use dispatchScopedEvent with bubbles: false to prevent collision
|
|
58
|
-
// with 'change' events bubbling up from inputs inside steps
|
|
59
60
|
this.dispatchScopedEvent('change', { value: step }, { bubbles: false })
|
|
60
61
|
}),
|
|
61
62
|
takeUntil(this.disconnecting),
|
|
@@ -64,39 +65,18 @@ export class SchmancyStepsContainer extends SchmancyElement {
|
|
|
64
65
|
}
|
|
65
66
|
|
|
66
67
|
/**
|
|
67
|
-
* Handle change events
|
|
68
|
-
* This prevents form inputs inside steps from triggering the parent's @change handler.
|
|
68
|
+
* Handle change events — stop propagation of bubbled events from children.
|
|
69
69
|
*/
|
|
70
70
|
private handleChange = (e: Event) => {
|
|
71
|
-
// Only stop propagation if the event is NOT from this component
|
|
72
|
-
// (i.e., it's bubbling up from a child element like an input)
|
|
73
71
|
if (e.target !== this) {
|
|
74
72
|
e.stopPropagation()
|
|
75
73
|
}
|
|
76
74
|
}
|
|
77
75
|
|
|
78
76
|
render() {
|
|
79
|
-
const gapClass = `gap-${this.gap}`
|
|
80
|
-
const gapRem =
|
|
81
|
-
{
|
|
82
|
-
0: '0',
|
|
83
|
-
1: '0.25rem',
|
|
84
|
-
2: '0.5rem',
|
|
85
|
-
3: '0.75rem',
|
|
86
|
-
4: '1rem',
|
|
87
|
-
5: '1.25rem',
|
|
88
|
-
6: '1.5rem',
|
|
89
|
-
8: '2rem',
|
|
90
|
-
10: '2.5rem',
|
|
91
|
-
12: '3rem',
|
|
92
|
-
16: '4rem',
|
|
93
|
-
20: '5rem',
|
|
94
|
-
24: '6rem',
|
|
95
|
-
}[this.gap] || '1rem'
|
|
96
|
-
|
|
97
77
|
return html`
|
|
98
|
-
<nav
|
|
99
|
-
<ol
|
|
78
|
+
<nav aria-label="Progress" @change=${this.handleChange}>
|
|
79
|
+
<ol role="list" style="display:contents">
|
|
100
80
|
<slot></slot>
|
|
101
81
|
</ol>
|
|
102
82
|
</nav>
|
|
@@ -106,6 +86,6 @@ export class SchmancyStepsContainer extends SchmancyElement {
|
|
|
106
86
|
|
|
107
87
|
declare global {
|
|
108
88
|
interface HTMLElementTagNameMap {
|
|
109
|
-
'schmancy-steps
|
|
89
|
+
'schmancy-steps': SchmancySteps
|
|
110
90
|
}
|
|
111
91
|
}
|
|
@@ -2,18 +2,19 @@ import { createContext } from '@lit/context'
|
|
|
2
2
|
import { BehaviorSubject } from 'rxjs'
|
|
3
3
|
|
|
4
4
|
export class StepsController {
|
|
5
|
-
private
|
|
5
|
+
private stepSubject = new BehaviorSubject(1)
|
|
6
|
+
lockBack = false
|
|
6
7
|
|
|
7
8
|
get currentStep$() {
|
|
8
|
-
return this.
|
|
9
|
+
return this.stepSubject.asObservable()
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
get currentStep() {
|
|
12
|
-
return this.
|
|
13
|
+
return this.stepSubject.value
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
setStep(step: number) {
|
|
16
|
-
this.
|
|
17
|
+
this.stepSubject.next(step)
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
|
2
|
+
import './schmancy-step'
|
|
3
|
+
import type { SchmancyStep } from './schmancy-step'
|
|
4
|
+
import './schmancy-steps'
|
|
5
|
+
import type { SchmancySteps } from './schmancy-steps'
|
|
6
|
+
|
|
7
|
+
const nextUpdate = () => new Promise(r => requestAnimationFrame(() => r(null)))
|
|
8
|
+
|
|
9
|
+
describe('schmancy-steps', () => {
|
|
10
|
+
let host: HTMLDivElement
|
|
11
|
+
|
|
12
|
+
beforeEach(() => {
|
|
13
|
+
host = document.createElement('div')
|
|
14
|
+
document.body.appendChild(host)
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
afterEach(() => {
|
|
18
|
+
host.remove()
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
it('emits change with numeric value when value property is set', async () => {
|
|
22
|
+
host.innerHTML = `
|
|
23
|
+
<schmancy-steps>
|
|
24
|
+
<schmancy-step position="1" label="First"></schmancy-step>
|
|
25
|
+
<schmancy-step position="2" label="Second"></schmancy-step>
|
|
26
|
+
</schmancy-steps>
|
|
27
|
+
`
|
|
28
|
+
await nextUpdate()
|
|
29
|
+
const container = host.querySelector('schmancy-steps') as SchmancySteps
|
|
30
|
+
const changes: number[] = []
|
|
31
|
+
container.addEventListener('change', (e: Event) => {
|
|
32
|
+
changes.push((e as CustomEvent<{ value: number }>).detail.value)
|
|
33
|
+
})
|
|
34
|
+
container.value = 2
|
|
35
|
+
await nextUpdate()
|
|
36
|
+
expect(changes).toContain(2)
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
it('clicking a complete step navigates to it', async () => {
|
|
40
|
+
host.innerHTML = `
|
|
41
|
+
<schmancy-steps>
|
|
42
|
+
<schmancy-step position="1" label="First" completed></schmancy-step>
|
|
43
|
+
<schmancy-step position="2" label="Second"></schmancy-step>
|
|
44
|
+
</schmancy-steps>
|
|
45
|
+
`
|
|
46
|
+
await nextUpdate()
|
|
47
|
+
const container = host.querySelector('schmancy-steps') as SchmancySteps
|
|
48
|
+
container.value = 2
|
|
49
|
+
await nextUpdate()
|
|
50
|
+
const step1 = host.querySelector('schmancy-step') as SchmancyStep
|
|
51
|
+
const changes: number[] = []
|
|
52
|
+
container.addEventListener('change', (e: Event) => {
|
|
53
|
+
changes.push((e as CustomEvent<{ value: number }>).detail.value)
|
|
54
|
+
})
|
|
55
|
+
// Fire click on the interactive element inside the shadow root
|
|
56
|
+
const inner = step1.shadowRoot?.querySelector('[role="button"]') as HTMLElement
|
|
57
|
+
inner?.click()
|
|
58
|
+
await nextUpdate()
|
|
59
|
+
expect(changes).toContain(1)
|
|
60
|
+
})
|
|
61
|
+
|
|
62
|
+
it('upcoming step click is inert', async () => {
|
|
63
|
+
host.innerHTML = `
|
|
64
|
+
<schmancy-steps>
|
|
65
|
+
<schmancy-step position="1" label="First"></schmancy-step>
|
|
66
|
+
<schmancy-step position="2" label="Second"></schmancy-step>
|
|
67
|
+
</schmancy-steps>
|
|
68
|
+
`
|
|
69
|
+
await nextUpdate()
|
|
70
|
+
const container = host.querySelector('schmancy-steps') as SchmancySteps
|
|
71
|
+
container.value = 1
|
|
72
|
+
await nextUpdate()
|
|
73
|
+
const steps = host.querySelectorAll('schmancy-step') as NodeListOf<SchmancyStep>
|
|
74
|
+
const changes: number[] = []
|
|
75
|
+
container.addEventListener('change', (e: Event) => {
|
|
76
|
+
changes.push((e as CustomEvent<{ value: number }>).detail.value)
|
|
77
|
+
})
|
|
78
|
+
steps[1].click()
|
|
79
|
+
await nextUpdate()
|
|
80
|
+
expect(changes).toHaveLength(0)
|
|
81
|
+
})
|
|
82
|
+
|
|
83
|
+
it('container lockBack blocks back-navigation', async () => {
|
|
84
|
+
host.innerHTML = `
|
|
85
|
+
<schmancy-steps lockback>
|
|
86
|
+
<schmancy-step position="1" label="First" completed></schmancy-step>
|
|
87
|
+
<schmancy-step position="2" label="Second"></schmancy-step>
|
|
88
|
+
</schmancy-steps>
|
|
89
|
+
`
|
|
90
|
+
await nextUpdate()
|
|
91
|
+
const container = host.querySelector('schmancy-steps') as SchmancySteps
|
|
92
|
+
container.value = 2
|
|
93
|
+
await nextUpdate()
|
|
94
|
+
const changes: number[] = []
|
|
95
|
+
container.addEventListener('change', (e: Event) => {
|
|
96
|
+
changes.push((e as CustomEvent<{ value: number }>).detail.value)
|
|
97
|
+
})
|
|
98
|
+
const step1 = host.querySelector('schmancy-step') as SchmancyStep
|
|
99
|
+
step1.click()
|
|
100
|
+
await nextUpdate()
|
|
101
|
+
expect(changes).toHaveLength(0)
|
|
102
|
+
})
|
|
103
|
+
|
|
104
|
+
it('step with no slotted content renders rail row (no content mode)', async () => {
|
|
105
|
+
host.innerHTML = `
|
|
106
|
+
<schmancy-steps>
|
|
107
|
+
<schmancy-step position="1" label="Rail Step"></schmancy-step>
|
|
108
|
+
</schmancy-steps>
|
|
109
|
+
`
|
|
110
|
+
await nextUpdate()
|
|
111
|
+
const step = host.querySelector('schmancy-step') as SchmancyStep
|
|
112
|
+
await nextUpdate()
|
|
113
|
+
// Rail mode: no slot content means hasContent is false — shadow DOM renders rail row
|
|
114
|
+
// The step's shadow root should not contain the content-mode card button
|
|
115
|
+
const shadowRoot = step.shadowRoot
|
|
116
|
+
expect(shadowRoot).toBeTruthy()
|
|
117
|
+
// Content mode renders a <li>, rail mode renders a <div>
|
|
118
|
+
expect(shadowRoot?.querySelector('li')).toBeNull()
|
|
119
|
+
})
|
|
120
|
+
})
|
|
@@ -9,6 +9,7 @@ import { formatTheme } from './theme.format'
|
|
|
9
9
|
import { TSchmancyTheme } from './theme.interface'
|
|
10
10
|
import { ThemeHereIAm, ThemeWhereAreYou, ThemeWhereAreYouEvent } from './theme.events'
|
|
11
11
|
import style from './theme.style.css?inline'
|
|
12
|
+
import '../surface/surface'
|
|
12
13
|
export const tailwindStyles = unsafeCSS(style)
|
|
13
14
|
const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)')
|
|
14
15
|
const $colorScheme = new Observable<string>(subscriber => {
|
|
@@ -407,6 +407,9 @@
|
|
|
407
407
|
--tracking-wide: 0.025em;
|
|
408
408
|
--tracking-wider: 0.05em;
|
|
409
409
|
--tracking-widest: 0.1em;
|
|
410
|
+
--tracking-eyebrow: 0.18em;
|
|
411
|
+
--tracking-label: 0.14em;
|
|
412
|
+
--leading-display: 0.95;
|
|
410
413
|
--leading-tight: 1.25;
|
|
411
414
|
--leading-snug: 1.375;
|
|
412
415
|
--leading-normal: 1.5;
|
package/types/src/boat/boat.d.ts
CHANGED
|
@@ -2,34 +2,51 @@ import { SchmancyElement } from '@mixins/index';
|
|
|
2
2
|
import { type PropertyValues } from 'lit';
|
|
3
3
|
type Corner = 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
* overlay service.
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
5
|
+
* Corner-anchored launcher that delegates its expanded panel to the `show()`
|
|
6
|
+
* overlay service.
|
|
7
|
+
*
|
|
8
|
+
* Three slots, three non-overlapping intents — no element-type sniffing,
|
|
9
|
+
* ever:
|
|
10
|
+
*
|
|
11
|
+
* - `trigger` — pure consumer content. A native click anywhere on it
|
|
12
|
+
* opens the panel; interactive children (buttons, FABs, inputs) work
|
|
13
|
+
* with zero special-casing because the boat never calls
|
|
14
|
+
* `preventDefault` / `stopPropagation` / `setPointerCapture` here.
|
|
15
|
+
* - `drag-handle` — opt-in. Pointer-drag is wired ONLY to this slot's
|
|
16
|
+
* boat-owned wrapper. Slot it to make the boat draggable; omit it and
|
|
17
|
+
* the boat is static at its corner. (A no-move tap on the handle also
|
|
18
|
+
* opens, so the grip doubles as a launcher.)
|
|
19
|
+
* - _(default)_ — the panel body; parked hidden while collapsed,
|
|
20
|
+
* relocated into the `show()` overlay on open.
|
|
21
|
+
*
|
|
22
|
+
* The boat owns drag, corner-snapping, position persistence and the glass
|
|
23
|
+
* surface — never the collapsed shape.
|
|
10
24
|
*/
|
|
11
25
|
export default class SchmancyBoat extends SchmancyElement {
|
|
12
26
|
#private;
|
|
13
|
-
static styles: import("lit").CSSResult[];
|
|
14
27
|
/** Identity for localStorage drag-position persistence. */
|
|
15
28
|
id: string;
|
|
16
|
-
/** Corner the
|
|
29
|
+
/** Corner the launcher is anchored to. */
|
|
17
30
|
corner: Corner;
|
|
18
31
|
/** Open state. Bind `?open=${…}` to drive the overlay; reflected to the attribute. */
|
|
19
32
|
open: boolean;
|
|
20
33
|
private isDragging;
|
|
21
34
|
private currentCorner;
|
|
35
|
+
private hasHandle;
|
|
36
|
+
/** Default-slot nodes — the overlay body. */
|
|
22
37
|
private slotted;
|
|
38
|
+
/** Slotted drag-handle nodes — presence toggles draggability. */
|
|
39
|
+
private handleNodes;
|
|
23
40
|
private position;
|
|
24
41
|
private containerRef;
|
|
25
|
-
private
|
|
42
|
+
private triggerRef;
|
|
43
|
+
private handleRef;
|
|
26
44
|
private currentAnimation?;
|
|
27
45
|
private applyContainerPosition;
|
|
28
46
|
private loadPosition;
|
|
29
47
|
private savePosition;
|
|
30
48
|
private validateBounds;
|
|
31
49
|
private reorientToNearestCorner;
|
|
32
|
-
private setupDrag;
|
|
33
50
|
private openOverlay;
|
|
34
51
|
private restoreSlotted;
|
|
35
52
|
connectedCallback(): void;
|
|
@@ -38,6 +55,7 @@ export default class SchmancyBoat extends SchmancyElement {
|
|
|
38
55
|
disconnectedCallback(): void;
|
|
39
56
|
/** Flip open ↔ closed. */
|
|
40
57
|
toggle(): void;
|
|
58
|
+
private onHandleSlotChange;
|
|
41
59
|
protected render(): unknown;
|
|
42
60
|
}
|
|
43
61
|
declare global {
|
|
@@ -68,9 +68,10 @@ export declare class SchmnacyIconButton extends SchmancyElement {
|
|
|
68
68
|
*/
|
|
69
69
|
icon?: string;
|
|
70
70
|
private _capturedIcon?;
|
|
71
|
+
private _observer?;
|
|
71
72
|
connectedCallback(): void;
|
|
72
|
-
|
|
73
|
-
private
|
|
73
|
+
disconnectedCallback(): void;
|
|
74
|
+
private _captureIcon;
|
|
74
75
|
set ariaLabel(value: string);
|
|
75
76
|
get ariaLabel(): string;
|
|
76
77
|
/** Sets focus in the button. */
|
|
@@ -1,47 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* Assist chip component - prompts user actions like opening calendar events or sharing content
|
|
4
|
-
* Pure Schmancy implementation with Tailwind CSS and RxJS state management
|
|
5
|
-
*/
|
|
6
|
-
export declare class SchmancyAssistChip extends SchmancyElement {
|
|
7
|
-
static styles: import("lit").CSSResult[];
|
|
8
|
-
/** Value identifier for the chip */
|
|
9
|
-
value: string;
|
|
10
|
-
/** Optional icon name (Material Symbols) */
|
|
11
|
-
icon: string;
|
|
12
|
-
/** Optional href for navigation */
|
|
13
|
-
href: string;
|
|
14
|
-
/** Target for navigation (e.g., '_blank') */
|
|
15
|
-
target: string;
|
|
16
|
-
/** Disable the chip */
|
|
17
|
-
disabled: boolean;
|
|
18
|
-
/** Elevated style variant - true by default per M3 spec for assist chips */
|
|
19
|
-
elevated: boolean;
|
|
20
|
-
private hover$;
|
|
21
|
-
private pressed$;
|
|
22
|
-
private focused$;
|
|
23
|
-
private ripples;
|
|
24
|
-
protected static shadowRootOptions: {
|
|
25
|
-
delegatesFocus: boolean;
|
|
26
|
-
clonable?: boolean;
|
|
27
|
-
customElementRegistry?: CustomElementRegistry;
|
|
28
|
-
mode: ShadowRootMode;
|
|
29
|
-
serializable?: boolean;
|
|
30
|
-
slotAssignment?: SlotAssignmentMode;
|
|
31
|
-
};
|
|
32
|
-
private nextRippleId;
|
|
33
|
-
connectedCallback(): void;
|
|
34
|
-
private handleClick;
|
|
35
|
-
private handleKeyDown;
|
|
36
|
-
private handleFocus;
|
|
37
|
-
private handleBlur;
|
|
38
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
39
|
-
}
|
|
40
|
-
declare global {
|
|
41
|
-
interface HTMLElementTagNameMap {
|
|
42
|
-
'schmancy-assist-chip': SchmancyAssistChip;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
export type AssistChipActionEvent = {
|
|
46
|
-
value: string;
|
|
47
|
-
};
|
|
1
|
+
export * from '../form/fields/chips/assist-chip';
|