@mhmo91/schmancy 0.9.28 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +1005 -2215
- package/dist/active-host-CcIa2tmW.cjs +1 -0
- package/dist/active-host-CcIa2tmW.cjs.map +1 -0
- package/dist/active-host-CvNYoprt.js +57 -0
- package/dist/active-host-CvNYoprt.js.map +1 -0
- package/dist/agent/{flow-CvG1fLW5.js.map → flow-CaPi2G8y.js.map} +1 -1
- package/dist/agent/{rolldown-runtime-BIIoCavz.js → rolldown-runtime-DsMetpgY.js} +2 -9
- package/dist/agent/schmancy.agent.js +12678 -7791
- package/dist/agent/schmancy.agent.js.map +1 -1
- package/dist/agent/schmancy.manifest.json +265 -1453
- package/dist/agent/{vendor-highlight-Dow87ZL_.js → vendor-highlight-CHJZQQB7.js} +85 -90
- package/dist/agent/{vendor-highlight-Dow87ZL_.js.map → vendor-highlight-CHJZQQB7.js.map} +1 -1
- package/dist/agent/{vendor-jsqr-Bl4iAtKC.js → vendor-jsqr-r7GNh4P3.js} +1 -1
- package/dist/agent/{vendor-jsqr-Bl4iAtKC.js.map → vendor-jsqr-r7GNh4P3.js.map} +1 -1
- package/dist/agent/{vendor-material-color-DcL7ZPxx.js.map → vendor-material-color-Be96dpGE.js.map} +1 -1
- package/dist/{animation-hXFClrIn.js.map → animation-BK-8BwY8.js.map} +1 -1
- package/dist/{animation-CQRdLgzX.cjs.map → animation-CO_Csq84.cjs.map} +1 -1
- package/dist/{area-BGBCMC79.js → area-DHVANBbr.js} +20 -15
- package/dist/area-DHVANBbr.js.map +1 -0
- package/dist/area-ZupIezvU.cjs +12 -0
- package/dist/area-ZupIezvU.cjs.map +1 -0
- package/dist/area.cjs +1 -1
- package/dist/area.js +2 -2
- package/dist/{audio-Dvr-RBzE.cjs → audio-CluX8Qpq.cjs} +1 -1
- package/dist/{audio-Dvr-RBzE.cjs.map → audio-CluX8Qpq.cjs.map} +1 -1
- package/dist/{audio-ql6nvY0y.js → audio-DcXphulJ.js} +1 -1
- package/dist/{audio-ql6nvY0y.js.map → audio-DcXphulJ.js.map} +1 -1
- package/dist/audio.cjs +1 -1
- package/dist/audio.js +2 -2
- package/dist/autocomplete-Bn525CTp.cjs +115 -0
- package/dist/autocomplete-Bn525CTp.cjs.map +1 -0
- package/dist/{autocomplete-C2P0Soht.js → autocomplete-pHvsyfbH.js} +29 -26
- package/dist/autocomplete-pHvsyfbH.js.map +1 -0
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/avatar.cjs +7 -0
- package/dist/avatar.cjs.map +1 -0
- package/dist/avatar.js +87 -0
- package/dist/avatar.js.map +1 -0
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/boat-IyEtsNI4.cjs +80 -0
- package/dist/boat-IyEtsNI4.cjs.map +1 -0
- package/dist/{boat-DXZ0k7oa.js → boat-_Yv3M6YM.js} +43 -54
- package/dist/boat-_Yv3M6YM.js.map +1 -0
- package/dist/boat.cjs +1 -1
- package/dist/boat.js +1 -1
- package/dist/breadcrumb.cjs +4 -4
- package/dist/breadcrumb.cjs.map +1 -1
- package/dist/breadcrumb.js +16 -11
- package/dist/breadcrumb.js.map +1 -1
- package/dist/{busy-DGYhpTnO.cjs → busy-CjM39APN.cjs} +4 -4
- package/dist/busy-CjM39APN.cjs.map +1 -0
- package/dist/{busy-iRjq6Nvd.js → busy-Ck2IXJ4r.js} +14 -9
- package/dist/busy-Ck2IXJ4r.js.map +1 -0
- package/dist/busy.cjs +1 -1
- package/dist/busy.js +1 -1
- package/dist/button.cjs +24 -24
- package/dist/button.cjs.map +1 -1
- package/dist/button.js +42 -37
- package/dist/button.js.map +1 -1
- package/dist/{card-DjYnCckw.cjs → card-DIxDuuth.cjs} +6 -6
- package/dist/card-DIxDuuth.cjs.map +1 -0
- package/dist/{card-wUTjx0EC.js → card-DUWZmMHc.js} +41 -30
- package/dist/card-DUWZmMHc.js.map +1 -0
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/charts.cjs +5 -5
- package/dist/charts.cjs.map +1 -1
- package/dist/charts.js +21 -16
- package/dist/charts.js.map +1 -1
- package/dist/checkbox-CGdFXuWQ.cjs +39 -0
- package/dist/checkbox-CGdFXuWQ.cjs.map +1 -0
- package/dist/{checkbox-VBSenxgb.js → checkbox-DPS1mWG-.js} +86 -82
- package/dist/checkbox-DPS1mWG-.js.map +1 -0
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{chips-BDS9lkPa.js → chips-BnnXQSA-.js} +146 -136
- package/dist/chips-BnnXQSA-.js.map +1 -0
- package/dist/{chips-D6ptH5re.cjs → chips-UoFbwmlG.cjs} +19 -19
- package/dist/chips-UoFbwmlG.cjs.map +1 -0
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +2 -2
- package/dist/{code-highlight-BzRmBZzz.cjs → code-highlight-CMilN0B8.cjs} +15 -15
- package/dist/code-highlight-CMilN0B8.cjs.map +1 -0
- package/dist/{code-highlight-Bi91XHJN.js → code-highlight-kFUJ1Eet.js} +37 -40
- package/dist/code-highlight-kFUJ1Eet.js.map +1 -0
- package/dist/code-highlight.cjs +1 -1
- package/dist/code-highlight.js +1 -1
- package/dist/connectivity.cjs +2 -2
- package/dist/connectivity.cjs.map +1 -1
- package/dist/connectivity.js +10 -7
- package/dist/connectivity.js.map +1 -1
- package/dist/content-drawer.cjs +1 -1
- package/dist/content-drawer.js +2 -2
- package/dist/context-Bdu1xt0W.js +3 -0
- package/dist/{context-BerzpUhI.js.map → context-Bdu1xt0W.js.map} +1 -1
- package/dist/context-daN5G6HS.cjs +1 -0
- package/dist/{context-C6dHUHhi.cjs.map → context-daN5G6HS.cjs.map} +1 -1
- package/dist/{cursor-glow-BydlDInj.js → cursor-glow-Ah7VXSj7.js} +1 -1
- package/dist/{cursor-glow-BydlDInj.js.map → cursor-glow-Ah7VXSj7.js.map} +1 -1
- package/dist/{cursor-glow-Duw9jHmh.cjs → cursor-glow-Bulq-38P.cjs} +1 -1
- package/dist/{cursor-glow-Duw9jHmh.cjs.map → cursor-glow-Bulq-38P.cjs.map} +1 -1
- package/dist/date-range-BIyrzTRZ.cjs +131 -0
- package/dist/date-range-BIyrzTRZ.cjs.map +1 -0
- package/dist/{date-range-ClTMg1AB.js → date-range-DOstCIg8.js} +16 -17
- package/dist/date-range-DOstCIg8.js.map +1 -0
- package/dist/date-range-inline-4P7zqeVe.cjs +43 -0
- package/dist/{date-range-inline-B9Dp2z6C.cjs.map → date-range-inline-4P7zqeVe.cjs.map} +1 -1
- package/dist/{date-range-inline-CpKG6qt2.js → date-range-inline-BVycTWLb.js} +5 -5
- package/dist/{date-range-inline-CpKG6qt2.js.map → date-range-inline-BVycTWLb.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 +9 -1
- package/dist/delay.cjs.map +1 -0
- package/dist/delay.js +77 -2
- package/dist/delay.js.map +1 -0
- package/dist/{details-Cz9ok9si.cjs → details-BJBbZOO6.cjs} +9 -9
- package/dist/details-BJBbZOO6.cjs.map +1 -0
- package/dist/{details-CPjlqQD4.js → details-DPc5GxPa.js} +19 -18
- package/dist/details-DPc5GxPa.js.map +1 -0
- package/dist/details.cjs +1 -1
- package/dist/details.js +1 -1
- package/dist/{dialog-service-DH-tjPuE.js → dialog-service-DI9PPy4H.js} +2 -2
- package/dist/dialog-service-DI9PPy4H.js.map +1 -0
- package/dist/{dialog-service-CzDO08Gy.cjs → dialog-service-DJd5L0f5.cjs} +1 -1
- package/dist/dialog-service-DJd5L0f5.cjs.map +1 -0
- package/dist/dialog.cjs +2 -2
- package/dist/dialog.cjs.map +1 -1
- package/dist/dialog.js +13 -14
- package/dist/dialog.js.map +1 -1
- package/dist/directives.cjs +2 -11
- package/dist/directives.cjs.map +1 -1
- package/dist/directives.js +141 -227
- package/dist/directives.js.map +1 -1
- package/dist/discovery.cjs +1 -1
- package/dist/discovery.cjs.map +1 -1
- package/dist/discovery.js +1 -1
- package/dist/discovery.js.map +1 -1
- package/dist/{divider-ghgyw5CU.js → divider-BvJsmSPH.js} +11 -9
- package/dist/divider-BvJsmSPH.js.map +1 -0
- package/dist/{divider-CILo3_vi.cjs → divider-DPT3XnG5.cjs} +3 -3
- package/dist/divider-DPT3XnG5.cjs.map +1 -0
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.cjs +4 -4
- package/dist/dropdown.cjs.map +1 -1
- package/dist/dropdown.js +29 -28
- package/dist/dropdown.js.map +1 -1
- package/dist/{expand-CbjBr_Ds.js → expand-BMzocdtj.js} +24 -20
- package/dist/expand-BMzocdtj.js.map +1 -0
- package/dist/expand-CTqBWVXo.cjs +141 -0
- package/dist/expand-CTqBWVXo.cjs.map +1 -0
- package/dist/expand.cjs +1 -1
- package/dist/expand.js +1 -1
- package/dist/{extra-DK9MQtPJ.js → extra-BeHlUhzv.js} +19 -14
- package/dist/extra-BeHlUhzv.js.map +1 -0
- package/dist/{extra-BZeZOMBI.cjs → extra-h_cuxRII.cjs} +6 -6
- package/dist/extra-h_cuxRII.cjs.map +1 -0
- package/dist/extra.cjs +1 -1
- package/dist/extra.js +1 -1
- package/dist/{float-BfCvGeY9.js → float-CTc1xxqH.js} +2 -2
- package/dist/{float-BfCvGeY9.js.map → float-CTc1xxqH.js.map} +1 -1
- package/dist/float-CwVBs11k.cjs +1 -0
- package/dist/{float-CuZ8LOgB.cjs.map → float-CwVBs11k.cjs.map} +1 -1
- package/dist/float.cjs +1 -1
- package/dist/float.js +1 -1
- package/dist/{form-rCZqoAoK.js → form-BtwOBMZ9.js} +1 -1
- package/dist/form-BtwOBMZ9.js.map +1 -0
- package/dist/{form-wI58M85H.cjs → form-CSJp687X.cjs} +1 -1
- package/dist/form-CSJp687X.cjs.map +1 -0
- package/dist/form.cjs +1 -1
- package/dist/form.js +1 -1
- package/dist/handover/agent-runtime-followups.md +1 -1
- package/dist/handover/agent-runtime-v1.md +3 -3
- package/dist/handover/claude-design-brief.md +19 -54
- package/dist/handover/claude-design-setup.md +57 -0
- package/dist/{hashContent-B2IntJQf.js.map → hashContent-1ARKIsx9.js.map} +1 -1
- package/dist/{hashContent-CahnEuut.cjs.map → hashContent-Bp5S6T4U.cjs.map} +1 -1
- package/dist/{icons-Drq4kKy2.js → icons-BbCVrcas.js} +27 -24
- package/dist/icons-BbCVrcas.js.map +1 -0
- package/dist/icons-qEQW4pjM.cjs +52 -0
- package/dist/icons-qEQW4pjM.cjs.map +1 -0
- package/dist/icons.cjs +1 -1
- package/dist/icons.js +1 -1
- package/dist/{iframe-BmyHW8km.js → iframe-BJfDIEJf.js} +17 -11
- package/dist/iframe-BJfDIEJf.js.map +1 -0
- package/dist/iframe-D6HTruav.cjs +24 -0
- package/dist/iframe-D6HTruav.cjs.map +1 -0
- package/dist/iframe.cjs +1 -1
- package/dist/iframe.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +77 -77
- package/dist/{input-Bc3bVISm.js → input-LTK3cctF.js} +34 -34
- package/dist/input-LTK3cctF.js.map +1 -0
- package/dist/input-U26axtcs.cjs +51 -0
- package/dist/input-U26axtcs.cjs.map +1 -0
- package/dist/{input-chip-DN-cwf11.cjs → input-chip-CADXt0X5.cjs} +2 -2
- package/dist/input-chip-CADXt0X5.cjs.map +1 -0
- package/dist/{input-chip-BQrjpjaQ.js → input-chip-Ch-aCs3c.js} +7 -4
- package/dist/input-chip-Ch-aCs3c.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.cjs.map +1 -1
- package/dist/json.js +7 -5
- package/dist/json.js.map +1 -1
- package/dist/kbd.cjs +2 -2
- package/dist/kbd.cjs.map +1 -1
- package/dist/kbd.js +9 -7
- package/dist/kbd.js.map +1 -1
- package/dist/{layout-fjM1DWlF.js → layout-C4xmnU4n.js} +1 -1
- package/dist/{layout-fjM1DWlF.js.map → layout-C4xmnU4n.js.map} +1 -1
- package/dist/{layout-CTfRXQoz.cjs → layout-Dmh6fxh0.cjs} +1 -1
- package/dist/{layout-CTfRXQoz.cjs.map → layout-Dmh6fxh0.cjs.map} +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.js +2 -3
- package/dist/{lazy-D6R5N5v4.js.map → lazy-B0ia54tT.js.map} +1 -1
- package/dist/{lazy-BDNnH_r7.cjs.map → lazy-Dq9mRRjT.cjs.map} +1 -1
- package/dist/lightbox-DbYUSfVl.cjs +202 -0
- package/dist/lightbox-DbYUSfVl.cjs.map +1 -0
- package/dist/{lightbox-CY52Z_ig.js → lightbox-DqG2z3Cn.js} +13 -12
- package/dist/lightbox-DqG2z3Cn.js.map +1 -0
- package/dist/lightbox.cjs +1 -1
- package/dist/lightbox.js +1 -1
- package/dist/list-CLX4sSAw.cjs +40 -0
- package/dist/list-CLX4sSAw.cjs.map +1 -0
- package/dist/{list-D7wUxu1C.js → list-D6-_E5ZD.js} +26 -21
- package/dist/list-D6-_E5ZD.js.map +1 -0
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{magnetic-CVXEkYTA.cjs → magnetic-BH0TsofV.cjs} +1 -1
- package/dist/{magnetic-CVXEkYTA.cjs.map → magnetic-BH0TsofV.cjs.map} +1 -1
- package/dist/{magnetic-BhXebqF3.js → magnetic-BZGFxAWG.js} +2 -2
- package/dist/{magnetic-BhXebqF3.js.map → magnetic-BZGFxAWG.js.map} +1 -1
- package/dist/{mailbox-DLiBGJhY.cjs → mailbox-Ct6iYe-4.cjs} +64 -66
- package/dist/mailbox-Ct6iYe-4.cjs.map +1 -0
- package/dist/{mailbox--EN-JhjV.js → mailbox-DsPII8HR.js} +137 -126
- package/dist/mailbox-DsPII8HR.js.map +1 -0
- package/dist/mailbox.cjs +1 -1
- package/dist/mailbox.js +1 -1
- package/dist/{map-B0S_q3ma.js → map-Dhy3ta9v.js} +11 -9
- package/dist/map-Dhy3ta9v.js.map +1 -0
- package/dist/map-WXeVkx2K.cjs +80 -0
- package/dist/map-WXeVkx2K.cjs.map +1 -0
- package/dist/map.cjs +1 -1
- package/dist/map.js +1 -1
- package/dist/{menu-COeFpb6n.js → menu-Bhd3EapX.js} +15 -10
- package/dist/menu-Bhd3EapX.js.map +1 -0
- package/dist/{menu-3edZGQ1x.cjs → menu-Cg2aaDjs.cjs} +5 -5
- package/dist/menu-Cg2aaDjs.cjs.map +1 -0
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/mixins-CcIWET41.js +627 -0
- package/dist/mixins-CcIWET41.js.map +1 -0
- package/dist/mixins-De3xfjrm.cjs +298 -0
- package/dist/mixins-De3xfjrm.cjs.map +1 -0
- package/dist/mixins.cjs +1 -1
- package/dist/mixins.js +2 -87
- package/dist/nav-drawer.cjs +1 -1
- package/dist/nav-drawer.js +2 -2
- package/dist/navigation-bar.cjs +1 -1
- package/dist/navigation-bar.js +1 -1
- package/dist/navigation-rail.cjs +3 -3
- package/dist/navigation-rail.cjs.map +1 -1
- package/dist/navigation-rail.js +15 -16
- package/dist/navigation-rail.js.map +1 -1
- package/dist/{notification-CC-TFN5v.js → notification-CVLqQ8c_.js} +40 -38
- package/dist/notification-CVLqQ8c_.js.map +1 -0
- package/dist/notification-D_PQjBSf.cjs +23 -0
- package/dist/notification-D_PQjBSf.cjs.map +1 -0
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +1 -1
- package/dist/option-DDU_goh1.cjs +43 -0
- package/dist/option-DDU_goh1.cjs.map +1 -0
- package/dist/{option-BwAF4nAw.js → option-rm4HebVs.js} +9 -7
- package/dist/option-rm4HebVs.js.map +1 -0
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{overlay-stack-7bs4ZNnh.cjs → overlay-stack-BprhAE9a.cjs} +1 -1
- package/dist/{overlay-stack-7bs4ZNnh.cjs.map → overlay-stack-BprhAE9a.cjs.map} +1 -1
- package/dist/{overlay-stack-DXPYHPhk.js → overlay-stack-CAQno0CK.js} +1 -1
- package/dist/{overlay-stack-DXPYHPhk.js.map → overlay-stack-CAQno0CK.js.map} +1 -1
- package/dist/overlay.cjs +43 -45
- package/dist/overlay.cjs.map +1 -1
- package/dist/overlay.js +684 -268
- package/dist/overlay.js.map +1 -1
- package/dist/page.cjs +3 -3
- package/dist/page.cjs.map +1 -1
- package/dist/page.js +15 -13
- package/dist/page.js.map +1 -1
- package/dist/{components-DZgJWHdZ.js → payment-card-form-C0dHYZIv.js} +21 -22
- package/dist/{components-DZgJWHdZ.js.map → payment-card-form-C0dHYZIv.js.map} +1 -1
- package/dist/payment-card-form-DNvmZxs4.cjs +73 -0
- package/dist/{components-DkmEgyAc.cjs.map → payment-card-form-DNvmZxs4.cjs.map} +1 -1
- package/dist/payment-card-form.cjs +1 -0
- package/dist/payment-card-form.js +2 -0
- package/dist/{progress-Bk_Q1Shy.js → progress-BRerM5Bn.js} +16 -13
- package/dist/progress-BRerM5Bn.js.map +1 -0
- package/dist/{progress-Yz6EMNSu.cjs → progress-U3LQkpM2.cjs} +3 -3
- package/dist/progress-U3LQkpM2.cjs.map +1 -0
- package/dist/progress.cjs +1 -1
- package/dist/progress.js +1 -1
- package/dist/qr-scanner.cjs +5 -5
- package/dist/qr-scanner.cjs.map +1 -1
- package/dist/qr-scanner.js +14 -15
- package/dist/qr-scanner.js.map +1 -1
- package/dist/{radio-group-BcdcjLNC.js → radio-group-BZ2WoOXJ.js} +14 -12
- package/dist/radio-group-BZ2WoOXJ.js.map +1 -0
- package/dist/radio-group-D7mm-yvJ.cjs +40 -0
- package/dist/radio-group-D7mm-yvJ.cjs.map +1 -0
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/range.cjs +2 -2
- package/dist/range.cjs.map +1 -1
- package/dist/range.js +9 -7
- package/dist/range.js.map +1 -1
- package/dist/{reduced-motion-BZTLqAyl.js.map → reduced-motion-D-L12p7G.js.map} +1 -1
- package/dist/{reduced-motion-9RjNnhIg.cjs.map → reduced-motion-Ds-HjMzn.cjs.map} +1 -1
- package/dist/{rxjs-utils-DJbZRjp3.cjs.map → rxjs-utils-Csnks202.cjs.map} +1 -1
- package/dist/{rxjs-utils-CKTnEKUH.js.map → rxjs-utils-d-ivVN84.js.map} +1 -1
- package/dist/rxjs-utils.cjs +1 -1
- package/dist/rxjs-utils.js +1 -1
- package/dist/scroll-DJTjNIT_.cjs +26 -0
- package/dist/scroll-DJTjNIT_.cjs.map +1 -0
- package/dist/{scroll-DXQv0ejL.js → scroll-qL-HkMdP.js} +9 -7
- package/dist/scroll-qL-HkMdP.js.map +1 -0
- package/dist/search-BLCRsxIC.cjs +1 -0
- package/dist/{search-CwMav5QB.cjs.map → search-BLCRsxIC.cjs.map} +1 -1
- package/dist/{search-CvUZRLF1.js → search-BTz7-Rev.js} +1 -1
- package/dist/{search-CvUZRLF1.js.map → search-BTz7-Rev.js.map} +1 -1
- package/dist/{select-BV4lK2zy.cjs → select-BvA7v-gL.cjs} +6 -6
- package/dist/select-BvA7v-gL.cjs.map +1 -0
- package/dist/{select-DKyGWDsG.js → select-CnPXUeSf.js} +23 -20
- package/dist/select-CnPXUeSf.js.map +1 -0
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/{sheet-C3TLKItO.js → sheet-BRL07BB4.js} +22 -20
- package/dist/sheet-BRL07BB4.js.map +1 -0
- package/dist/sheet-BYQJAHQn.cjs +35 -0
- package/dist/sheet-BYQJAHQn.cjs.map +1 -0
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +2 -2
- package/dist/sheet.service-B25bsrYG.cjs +1 -0
- package/dist/{sheet.service-RcDBwHmv.cjs.map → sheet.service-B25bsrYG.cjs.map} +1 -1
- package/dist/{sheet.service-Dlv20Zfc.js → sheet.service-SPQ8oLCi.js} +3 -3
- package/dist/{sheet.service-Dlv20Zfc.js.map → sheet.service-SPQ8oLCi.js.map} +1 -1
- package/dist/skeleton.cjs +2 -2
- package/dist/skeleton.cjs.map +1 -1
- package/dist/skeleton.js +9 -7
- package/dist/skeleton.js.map +1 -1
- package/dist/skills/INDEX.md +1 -1
- package/dist/skills/SKILL.md +17 -5
- package/dist/skills/mixins.md +78 -20
- package/dist/skills/schmancy/INDEX.md +1 -1
- package/dist/skills/schmancy/SKILL.md +17 -5
- package/dist/skills/schmancy/mixins.md +78 -20
- package/dist/skills/schmancy/state.md +501 -0
- package/dist/skills/schmancy/theme.md +15 -0
- package/dist/skills/schmancy/timeline-tile.md +95 -0
- package/dist/skills/state.md +501 -0
- package/dist/skills/theme.md +15 -0
- package/dist/skills/timeline-tile.md +95 -0
- package/dist/slider.cjs +5 -5
- package/dist/slider.cjs.map +1 -1
- package/dist/slider.js +18 -13
- package/dist/slider.js.map +1 -1
- package/dist/sound.service-BGs6m0Cm.cjs +1 -0
- package/dist/sound.service-BGs6m0Cm.cjs.map +1 -0
- package/dist/{sound.service-DWZe6swU.js → sound.service-kKfsN0m-.js} +3 -3
- package/dist/sound.service-kKfsN0m-.js.map +1 -0
- package/dist/splash-screen-BDt4PInk.cjs +41 -0
- package/dist/splash-screen-BDt4PInk.cjs.map +1 -0
- package/dist/{splash-screen-DbI5RgBf.js → splash-screen-C8JCqX5L.js} +12 -9
- package/dist/splash-screen-C8JCqX5L.js.map +1 -0
- package/dist/splash-screen.cjs +1 -1
- package/dist/splash-screen.js +1 -1
- package/dist/src-CpRNClhg.cjs +263 -0
- package/dist/src-CpRNClhg.cjs.map +1 -0
- package/dist/{src-00DfxCJq.js → src-CqdnWGgr.js} +299 -351
- package/dist/src-CqdnWGgr.js.map +1 -0
- package/dist/state-BusMG6sM.js +868 -0
- package/dist/state-BusMG6sM.js.map +1 -0
- package/dist/state-DNdCPITt.cjs +1 -0
- package/dist/state-DNdCPITt.cjs.map +1 -0
- package/dist/state.cjs +1 -0
- package/dist/state.js +3 -0
- package/dist/steps.cjs +10 -10
- package/dist/steps.cjs.map +1 -1
- package/dist/steps.js +29 -24
- package/dist/steps.js.map +1 -1
- package/dist/surface-C8jQy8Ym.js +24 -0
- package/dist/surface-C8jQy8Ym.js.map +1 -0
- package/dist/surface-Du2Y4vXd.cjs +7 -0
- package/dist/surface-Du2Y4vXd.cjs.map +1 -0
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/switch.cjs +2 -2
- package/dist/switch.cjs.map +1 -1
- package/dist/switch.js +7 -5
- package/dist/switch.js.map +1 -1
- package/dist/table.cjs +72 -1
- package/dist/table.cjs.map +1 -0
- package/dist/table.js +174 -2
- package/dist/table.js.map +1 -0
- package/dist/tabs-0RfeCa00.cjs +31 -0
- package/dist/tabs-0RfeCa00.cjs.map +1 -0
- package/dist/{tabs-Ce55RbwF.js → tabs-Cyahh9Q6.js} +22 -22
- package/dist/tabs-Cyahh9Q6.js.map +1 -0
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +2 -2
- package/dist/{textarea-DjN1D9u0.js → textarea-CXCcTVnf.js} +30 -28
- package/dist/textarea-CXCcTVnf.js.map +1 -0
- package/dist/textarea-jqRrLxmo.cjs +39 -0
- package/dist/textarea-jqRrLxmo.cjs.map +1 -0
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{theme-pbxlt72h.js → theme-2KZW2Rfs.js} +45 -41
- package/dist/{theme-pbxlt72h.js.map → theme-2KZW2Rfs.js.map} +1 -1
- package/dist/theme-Hjz9sCN-.cjs +181 -0
- package/dist/{theme-B-IJ2r7Q.cjs.map → theme-Hjz9sCN-.cjs.map} +1 -1
- package/dist/{theme-button-CEMeAUOL.js → theme-button-9uF1eoHz.js} +3 -4
- package/dist/theme-button-9uF1eoHz.js.map +1 -0
- package/dist/theme-button-C7QIbke1.cjs +8 -0
- package/dist/theme-button-C7QIbke1.cjs.map +1 -0
- package/dist/theme-button.cjs +1 -1
- package/dist/theme-button.js +1 -1
- package/dist/theme.cjs +1 -1
- package/dist/{theme.events-NuihzD_p.js.map → theme.events-Cv7N4Toe.js.map} +1 -1
- package/dist/{theme.events-DakXxZeP.cjs.map → theme.events-DM4H5F2d.cjs.map} +1 -1
- package/dist/{theme.interface-DTwkuAKJ.cjs.map → theme.interface-D9l33b-M.cjs.map} +1 -1
- package/dist/{theme.interface-Buged9Cg.js.map → theme.interface-DnVNre4O.js.map} +1 -1
- package/dist/theme.js +5 -5
- package/dist/theme.service-BrUbGoeQ.cjs +1 -0
- package/dist/theme.service-BrUbGoeQ.cjs.map +1 -0
- package/dist/{theme.service-cOfPrtfe.js → theme.service-CmbOGMA8.js} +4 -4
- package/dist/theme.service-CmbOGMA8.js.map +1 -0
- package/dist/timeline.cjs +277 -0
- package/dist/timeline.cjs.map +1 -0
- package/dist/timeline.js +326 -0
- package/dist/timeline.js.map +1 -0
- package/dist/tree.cjs +2 -2
- package/dist/tree.cjs.map +1 -1
- package/dist/tree.js +15 -13
- package/dist/tree.js.map +1 -1
- package/dist/typewriter.cjs +10 -123
- package/dist/typewriter.cjs.map +1 -1
- package/dist/typewriter.js +90 -212
- package/dist/typewriter.js.map +1 -1
- package/dist/typography.cjs +3 -3
- package/dist/typography.cjs.map +1 -1
- package/dist/typography.js +18 -112
- package/dist/typography.js.map +1 -1
- package/dist/utils-Cr-YO4Np.cjs +1 -0
- package/dist/utils-Cr-YO4Np.cjs.map +1 -0
- package/dist/{utils-Bp2jhyZc.js → utils-hp-DnFf5.js} +16 -6
- package/dist/utils-hp-DnFf5.js.map +1 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +4 -5
- package/dist/visually-hidden.cjs +2 -2
- package/dist/visually-hidden.cjs.map +1 -1
- package/dist/visually-hidden.js +7 -5
- package/dist/visually-hidden.js.map +1 -1
- package/dist/{window-CrjZdf7Y.js → window-C7yY9yp5.js} +28 -30
- package/dist/window-C7yY9yp5.js.map +1 -0
- package/dist/window-DtUOWiAj.cjs +59 -0
- package/dist/window-DtUOWiAj.cjs.map +1 -0
- package/dist/window.cjs +1 -1
- package/dist/window.js +1 -1
- package/package.json +15 -4
- package/plugins/vite-plugin-schmancy-auto-import.ts +143 -0
- package/plugins/vite-plugin-schmancy-manifest.ts +438 -0
- package/skills/schmancy/INDEX.md +1 -1
- package/skills/schmancy/SKILL.md +17 -5
- package/skills/schmancy/mixins.md +78 -20
- package/skills/schmancy/state.md +501 -0
- package/skills/schmancy/theme.md +15 -0
- package/skills/schmancy/timeline-tile.md +95 -0
- package/src/agent/agent-bundle.test.ts +71 -54
- package/src/agent/agent-entry.ts +5 -21
- package/src/agent/helpers.ts +159 -0
- package/src/agent/schmancy-skill.ts +71 -0
- package/src/agent/virtual-manifest.d.ts +1 -12
- package/src/area/area.component.ts +7 -19
- package/src/area/area.service.test.ts +4 -5
- package/src/area/area.service.ts +4 -3
- package/src/area/route.component.ts +17 -4
- package/src/area/utils.ts +3 -2
- package/src/audio/emotional-sounds.ts +0 -2
- package/src/audio/sound.service.ts +7 -13
- package/src/autocomplete/autocomplete.ts +18 -21
- package/src/{avatar.ts → avatar/avatar.ts} +2 -2
- package/src/avatar/index.ts +1 -0
- package/src/badge/badge.ts +4 -3
- package/src/boat/boat.ts +28 -36
- package/src/breadcrumb/breadcrumb.ts +11 -19
- package/src/busy/busy.ts +4 -3
- package/src/busy/spinner.ts +4 -3
- package/src/button/button.ts +6 -11
- package/src/button/icon-button.ts +8 -12
- package/src/card/actions.ts +4 -12
- package/src/card/card.ts +5 -23
- package/src/card/content.ts +4 -12
- package/src/card/media.ts +4 -9
- package/src/charts/area-chart.ts +7 -4
- package/src/charts/pills.ts +6 -4
- package/src/checkbox/checkbox.test.ts +2 -2
- package/src/checkbox/checkbox.ts +3 -9
- package/src/chips/assist-chip.ts +6 -14
- package/src/chips/chips.ts +7 -21
- package/src/chips/filter-chip.ts +4 -3
- package/src/chips/input-chip.ts +10 -9
- package/src/chips/suggestion-chip.ts +10 -12
- package/src/code-highlight/code-highlight.ts +28 -59
- package/src/code-highlight/code-preview.ts +11 -9
- package/src/connectivity/connectivity-status.ts +4 -3
- package/src/content-drawer/drawer.ts +5 -3
- package/src/content-drawer/main.ts +5 -3
- package/src/content-drawer/sheet.ts +6 -4
- package/src/date-range/date-range-dialog.ts +2 -2
- package/src/date-range/date-range.ts +3 -2
- package/src/delay/delay.ts +2 -2
- package/src/details/details.ts +4 -17
- package/src/dialog/dialog-service.ts +2 -0
- package/src/dialog/dialog.component.ts +9 -9
- package/src/directives/drag.ts +1 -9
- package/src/directives/index.ts +0 -1
- package/src/discovery/discovery.service.ts +1 -1
- package/src/divider/divider.ts +5 -14
- package/src/dropdown/dropdown-component.ts +5 -16
- package/src/dropdown/dropdown-content.ts +7 -14
- package/src/expand/expand-root.component.ts +5 -15
- package/src/expand/expand.component.ts +4 -17
- package/src/extra/countries/countries.ts +5 -13
- package/src/extra/timezone/timezone.ts +7 -12
- package/src/form/form.test.ts +2 -2
- package/src/form/form.ts +2 -9
- package/src/icons/icon.ts +4 -3
- package/src/iframe/iframe.ts +13 -4
- package/src/index.ts +3 -3
- package/src/input/input.ts +6 -13
- package/src/json/json.ts +4 -3
- package/src/kbd/kbd.ts +4 -3
- package/src/layout/index.ts +1 -5
- package/src/layout/scroll/scroll.ts +5 -8
- package/src/lightbox/flip-directive.ts +1 -1
- package/src/lightbox/lightbox.ts +5 -14
- package/src/list/list-item.ts +4 -13
- package/src/list/list.ts +12 -10
- package/src/mailbox/email-editor.ts +17 -11
- package/src/mailbox/email-layout-selector.ts +2 -2
- package/src/mailbox/email-recipients.ts +13 -8
- package/src/mailbox/email-template-picker.ts +6 -5
- package/src/mailbox/email-viewer.ts +5 -3
- package/src/mailbox/mailbox.ts +6 -5
- package/src/map/map.ts +8 -6
- package/src/menu/menu-item.ts +5 -16
- package/src/menu/menu.ts +27 -13
- package/src/nav-drawer/appbar.ts +4 -14
- package/src/nav-drawer/content.ts +5 -14
- package/src/nav-drawer/drawer.ts +5 -18
- package/src/nav-drawer/navbar.ts +3 -17
- package/src/navigation-bar/navigation-bar-item.ts +8 -6
- package/src/navigation-bar/navigation-bar.ts +19 -19
- package/src/navigation-rail/navigation-rail-item.ts +9 -5
- package/src/navigation-rail/navigation-rail.ts +10 -14
- package/src/notification/notification-service.ts +0 -2
- package/src/notification/notification.ts +6 -3
- package/src/option/option.ts +4 -3
- package/src/overlay/overlay.animations.ts +183 -37
- package/src/overlay/overlay.component.ts +397 -190
- package/src/overlay/overlay.confirm-body.ts +21 -7
- package/src/overlay/overlay.gestures.ts +72 -36
- package/src/overlay/overlay.layout.ts +103 -1
- package/src/overlay/overlay.positioning.ts +301 -0
- package/src/overlay/overlay.service.ts +81 -3
- package/src/overlay/overlay.stack.ts +8 -10
- package/src/overlay/overlay.types.ts +83 -5
- package/src/page/page.ts +16 -11
- package/src/payment-card-form/index.ts +1 -0
- package/src/{components/form-elements → payment-card-form}/payment-card-form.ts +23 -23
- package/src/progress/progress.ts +5 -3
- package/src/qr-scanner/qr-scanner.ts +7 -30
- package/src/radio-group/radio-button.ts +3 -13
- package/src/radio-group/radio-group.ts +5 -22
- package/src/range/range.ts +4 -3
- package/src/rxjs-utils/waitForElements.ts +1 -1
- package/src/rxjs-utils/waitForElementsAll.ts +1 -1
- package/src/select/select.ts +10 -18
- package/src/sheet/hook.ts +1 -1
- package/src/sheet/sheet.ts +5 -20
- package/src/skeleton/skeleton.ts +4 -3
- package/src/slider/slide.ts +5 -3
- package/src/slider/slider.ts +5 -3
- package/src/splash-screen/splash-screen.ts +5 -3
- package/src/state/CLAUDE.md +161 -0
- package/src/state/MIGRATION.md +258 -0
- package/src/state/SCOPING.md +134 -0
- package/src/state/active-host.ts +190 -0
- package/src/state/index.ts +877 -0
- package/src/state/persist.ts +208 -0
- package/src/state/schmancy-context.ts +130 -0
- package/src/state/state.test-d.ts +227 -0
- package/src/state/state.test.ts +868 -0
- package/src/steps/schmancy-step.ts +5 -3
- package/src/steps/schmancy-steps-container.ts +5 -3
- package/src/surface/surface.ts +14 -9
- package/src/switch/switch.test.ts +2 -2
- package/src/switch/switch.ts +8 -10
- package/src/table/row.ts +7 -4
- package/src/table/table.ts +17 -14
- package/src/tabs/index.ts +0 -2
- package/src/tabs/tab.ts +2 -2
- package/src/tabs/tabs-group.ts +7 -4
- package/src/teleport/teleport.component.ts +5 -3
- package/src/textarea/textarea.ts +6 -12
- package/src/theme/theme-audio-player.ts +7 -5
- package/src/theme/theme-controller.ts +2 -2
- package/src/theme/theme.component.ts +22 -15
- package/src/theme/theme.service.ts +6 -7
- package/src/theme/theme.style.css +1 -0
- package/src/theme-button/theme-button.ts +2 -2
- package/src/timeline/index.ts +1 -0
- package/src/timeline/timeline-tile.ts +431 -0
- package/src/tree/tree.ts +4 -16
- package/src/typewriter/index.ts +1 -1
- package/src/typography/typography.ts +5 -98
- package/src/utils/intersection.ts +5 -1
- package/src/utils/overlay-stack.ts +1 -1
- package/src/utils/search.ts +2 -2
- package/src/visually-hidden/visually-hidden.ts +4 -3
- package/src/window/window-position.ts +3 -6
- package/src/window/window.ts +9 -7
- package/types/mixins/SchmancyElement.d.ts +49 -0
- package/types/mixins/formField.mixin.d.ts +4 -2
- package/types/mixins/index.d.ts +1 -0
- package/types/mixins/litElement.mixin.d.ts +11 -0
- package/types/src/agent/agent-entry.d.ts +2 -19
- package/types/src/agent/helpers.d.ts +0 -27
- package/types/src/agent/schmancy-skill.d.ts +3 -5
- package/types/src/area/area.component.d.ts +3 -17
- package/types/src/area/route.component.d.ts +14 -4
- package/types/src/audio/emotional-sounds.d.ts +0 -1
- package/types/src/audio/sound.service.d.ts +1 -1
- package/types/src/autocomplete/autocomplete.d.ts +4 -15
- package/types/src/{avatar.d.ts → avatar/avatar.d.ts} +2 -3
- package/types/src/avatar/index.d.ts +1 -0
- package/types/src/badge/badge.d.ts +3 -3
- package/types/src/boat/boat.d.ts +3 -2
- package/types/src/breadcrumb/breadcrumb.d.ts +9 -19
- package/types/src/busy/busy.d.ts +3 -3
- package/types/src/busy/spinner.d.ts +3 -3
- package/types/src/button/button.d.ts +4 -10
- package/types/src/button/icon-button.d.ts +5 -11
- package/types/src/card/actions.d.ts +3 -12
- package/types/src/card/card.d.ts +4 -24
- package/types/src/card/content.d.ts +3 -12
- package/types/src/card/media.d.ts +3 -9
- package/types/src/charts/area-chart.d.ts +3 -3
- package/types/src/charts/pills.d.ts +3 -3
- package/types/src/checkbox/checkbox.d.ts +3 -10
- package/types/src/chips/assist-chip.d.ts +5 -15
- package/types/src/chips/chips.d.ts +3 -17
- package/types/src/chips/filter-chip.d.ts +3 -3
- package/types/src/chips/input-chip.d.ts +9 -10
- package/types/src/chips/suggestion-chip.d.ts +9 -13
- package/types/src/code-highlight/code-highlight.d.ts +4 -11
- package/types/src/code-highlight/code-preview.d.ts +3 -3
- package/types/src/connectivity/connectivity-status.d.ts +3 -3
- package/types/src/content-drawer/drawer.d.ts +4 -4
- package/types/src/content-drawer/main.d.ts +3 -3
- package/types/src/content-drawer/sheet.d.ts +4 -4
- package/types/src/date-range/date-range-dialog.d.ts +2 -3
- package/types/src/date-range/date-range.d.ts +2 -3
- package/types/src/delay/delay.d.ts +2 -3
- package/types/src/details/details.d.ts +3 -14
- package/types/src/dialog/dialog.component.d.ts +9 -9
- package/types/src/directives/drag.d.ts +1 -3
- package/types/src/directives/index.d.ts +0 -1
- package/types/src/divider/divider.d.ts +3 -14
- package/types/src/dropdown/dropdown-component.d.ts +4 -17
- package/types/src/dropdown/dropdown-content.d.ts +6 -14
- package/types/src/expand/expand-root.component.d.ts +4 -14
- package/types/src/expand/expand.component.d.ts +3 -17
- package/types/src/extra/countries/countries.d.ts +3 -13
- package/types/src/extra/timezone/timezone.d.ts +4 -11
- package/types/src/form/form.d.ts +2 -9
- package/types/src/icons/icon.d.ts +3 -3
- package/types/src/iframe/iframe.d.ts +5 -3
- package/types/src/index.d.ts +3 -3
- package/types/src/input/input.d.ts +4 -11
- package/types/src/json/json.d.ts +3 -3
- package/types/src/kbd/kbd.d.ts +3 -3
- package/types/src/layout/index.d.ts +0 -4
- package/types/src/layout/scroll/scroll.d.ts +4 -8
- package/types/src/lightbox/lightbox.d.ts +3 -14
- package/types/src/list/list-item.d.ts +3 -13
- package/types/src/list/list.d.ts +11 -10
- package/types/src/mailbox/email-editor.d.ts +3 -3
- package/types/src/mailbox/email-layout-selector.d.ts +2 -3
- package/types/src/mailbox/email-recipients.d.ts +7 -3
- package/types/src/mailbox/email-template-picker.d.ts +4 -4
- package/types/src/mailbox/email-viewer.d.ts +3 -3
- package/types/src/mailbox/mailbox.d.ts +4 -4
- package/types/src/map/map.d.ts +4 -3
- package/types/src/menu/menu-item.d.ts +3 -16
- package/types/src/menu/menu.d.ts +25 -13
- package/types/src/nav-drawer/appbar.d.ts +3 -14
- package/types/src/nav-drawer/content.d.ts +3 -14
- package/types/src/nav-drawer/drawer.d.ts +3 -18
- package/types/src/nav-drawer/navbar.d.ts +3 -18
- package/types/src/navigation-bar/navigation-bar-item.d.ts +7 -6
- package/types/src/navigation-bar/navigation-bar.d.ts +13 -7
- package/types/src/navigation-rail/navigation-rail-item.d.ts +9 -6
- package/types/src/navigation-rail/navigation-rail.d.ts +10 -15
- package/types/src/notification/notification-service.d.ts +0 -1
- package/types/src/notification/notification.d.ts +3 -3
- package/types/src/option/option.d.ts +3 -3
- package/types/src/overlay/overlay.animations.d.ts +54 -6
- package/types/src/overlay/overlay.component.d.ts +39 -15
- package/types/src/overlay/overlay.confirm-body.d.ts +4 -4
- package/types/src/overlay/overlay.gestures.d.ts +26 -17
- package/types/src/overlay/overlay.layout.d.ts +27 -1
- package/types/src/overlay/overlay.positioning.d.ts +87 -0
- package/types/src/overlay/overlay.stack.d.ts +0 -2
- package/types/src/overlay/overlay.types.d.ts +59 -5
- package/types/src/page/page.d.ts +14 -11
- package/types/src/{components/form-elements → payment-card-form}/payment-card-form.d.ts +2 -3
- package/types/src/progress/progress.d.ts +3 -3
- package/types/src/qr-scanner/qr-scanner.d.ts +3 -3
- package/types/src/radio-group/radio-button.d.ts +3 -12
- package/types/src/radio-group/radio-group.d.ts +4 -20
- package/types/src/range/range.d.ts +3 -3
- package/types/src/rxjs-utils/waitForElements.d.ts +1 -1
- package/types/src/rxjs-utils/waitForElementsAll.d.ts +1 -1
- package/types/src/select/select.d.ts +4 -15
- package/types/src/sheet/sheet.d.ts +3 -20
- package/types/src/skeleton/skeleton.d.ts +3 -3
- package/types/src/slider/slide.d.ts +3 -2
- package/types/src/slider/slider.d.ts +3 -3
- package/types/src/splash-screen/splash-screen.d.ts +3 -3
- package/types/src/state/active-host.d.ts +23 -0
- package/types/src/state/index.d.ts +145 -0
- package/types/src/state/persist.d.ts +14 -0
- package/types/src/state/schmancy-context.d.ts +32 -0
- package/types/src/state/state.test-d.d.ts +131 -0
- package/types/src/state/state.test.d.ts +1 -0
- package/types/src/steps/schmancy-step.d.ts +3 -3
- package/types/src/steps/schmancy-steps-container.d.ts +3 -3
- package/types/src/surface/surface.d.ts +13 -5
- package/types/src/switch/switch.d.ts +7 -11
- package/types/src/table/row.d.ts +2 -3
- package/types/src/table/table.d.ts +4 -11
- package/types/src/tabs/index.d.ts +0 -2
- package/types/src/tabs/tab.d.ts +2 -3
- package/types/src/tabs/tabs-group.d.ts +3 -3
- package/types/src/teleport/teleport.component.d.ts +3 -3
- package/types/src/textarea/textarea.d.ts +5 -12
- package/types/src/theme/theme-audio-player.d.ts +3 -3
- package/types/src/theme/theme-controller.d.ts +2 -2
- package/types/src/theme/theme.component.d.ts +18 -13
- package/types/src/theme-button/theme-button.d.ts +2 -3
- package/types/src/timeline/index.d.ts +1 -0
- package/types/src/timeline/timeline-tile.d.ts +44 -0
- package/types/src/tree/tree.d.ts +3 -16
- package/types/src/typewriter/index.d.ts +1 -1
- package/types/src/typography/typography.d.ts +3 -36
- package/types/src/visually-hidden/visually-hidden.d.ts +3 -3
- package/types/src/window/window.d.ts +3 -3
- package/dist/agent/index.es-Dymj8REP.js +0 -489
- package/dist/agent/index.es-Dymj8REP.js.map +0 -1
- package/dist/area-BGBCMC79.js.map +0 -1
- package/dist/area-D7l9KR2N.cjs +0 -12
- package/dist/area-D7l9KR2N.cjs.map +0 -1
- package/dist/autocomplete-BPD5uraA.cjs +0 -115
- package/dist/autocomplete-BPD5uraA.cjs.map +0 -1
- package/dist/autocomplete-C2P0Soht.js.map +0 -1
- package/dist/boat-BkIO-0No.cjs +0 -80
- package/dist/boat-BkIO-0No.cjs.map +0 -1
- package/dist/boat-DXZ0k7oa.js.map +0 -1
- package/dist/busy-DGYhpTnO.cjs.map +0 -1
- package/dist/busy-iRjq6Nvd.js.map +0 -1
- package/dist/card-DjYnCckw.cjs.map +0 -1
- package/dist/card-wUTjx0EC.js.map +0 -1
- package/dist/checkbox-CiYEtw9F.cjs +0 -39
- package/dist/checkbox-CiYEtw9F.cjs.map +0 -1
- package/dist/checkbox-VBSenxgb.js.map +0 -1
- package/dist/chips-BDS9lkPa.js.map +0 -1
- package/dist/chips-D6ptH5re.cjs.map +0 -1
- package/dist/code-highlight-Bi91XHJN.js.map +0 -1
- package/dist/code-highlight-BzRmBZzz.cjs.map +0 -1
- package/dist/components-DkmEgyAc.cjs +0 -73
- package/dist/components.cjs +0 -1
- package/dist/components.js +0 -2
- package/dist/context-BerzpUhI.js +0 -3
- package/dist/context-C6dHUHhi.cjs +0 -1
- package/dist/date-range-BmFxTXiU.cjs +0 -131
- package/dist/date-range-BmFxTXiU.cjs.map +0 -1
- package/dist/date-range-ClTMg1AB.js.map +0 -1
- package/dist/date-range-inline-B9Dp2z6C.cjs +0 -43
- package/dist/delay-BHODnTg-.cjs +0 -9
- package/dist/delay-BHODnTg-.cjs.map +0 -1
- package/dist/delay-Dlk0A3he.js +0 -347
- package/dist/delay-Dlk0A3he.js.map +0 -1
- package/dist/details-CPjlqQD4.js.map +0 -1
- package/dist/details-Cz9ok9si.cjs.map +0 -1
- package/dist/dialog-service-CzDO08Gy.cjs.map +0 -1
- package/dist/dialog-service-DH-tjPuE.js.map +0 -1
- package/dist/divider-CILo3_vi.cjs.map +0 -1
- package/dist/divider-ghgyw5CU.js.map +0 -1
- package/dist/expand-CbjBr_Ds.js.map +0 -1
- package/dist/expand-r3OrSoDk.cjs +0 -141
- package/dist/expand-r3OrSoDk.cjs.map +0 -1
- package/dist/extra-BZeZOMBI.cjs.map +0 -1
- package/dist/extra-DK9MQtPJ.js.map +0 -1
- package/dist/float-CuZ8LOgB.cjs +0 -1
- package/dist/flow-BPDtbhLe.js +0 -386
- package/dist/flow-BPDtbhLe.js.map +0 -1
- package/dist/flow-Dn9AZktE.cjs +0 -1
- package/dist/flow-Dn9AZktE.cjs.map +0 -1
- package/dist/form-rCZqoAoK.js.map +0 -1
- package/dist/form-wI58M85H.cjs.map +0 -1
- package/dist/handover/agent-runtime-v2-loopback.md +0 -71
- package/dist/handover/claude-design-v2-paste.md +0 -42
- package/dist/icons-Drq4kKy2.js.map +0 -1
- package/dist/icons-DtdhaZdc.cjs +0 -52
- package/dist/icons-DtdhaZdc.cjs.map +0 -1
- package/dist/iframe-BkwwWIbQ.cjs +0 -24
- package/dist/iframe-BkwwWIbQ.cjs.map +0 -1
- package/dist/iframe-BmyHW8km.js.map +0 -1
- package/dist/index.es-BgmFX1JM.cjs +0 -1
- package/dist/index.es-BgmFX1JM.cjs.map +0 -1
- package/dist/index.es-CLyb_o3Y.js +0 -489
- package/dist/index.es-CLyb_o3Y.js.map +0 -1
- package/dist/input-BGNZlfL8.cjs +0 -51
- package/dist/input-BGNZlfL8.cjs.map +0 -1
- package/dist/input-Bc3bVISm.js.map +0 -1
- package/dist/input-chip-BQrjpjaQ.js.map +0 -1
- package/dist/input-chip-DN-cwf11.cjs.map +0 -1
- package/dist/intersection-BrXp4YTO.js +0 -12
- package/dist/intersection-BrXp4YTO.js.map +0 -1
- package/dist/intersection-DqBqnpgh.cjs +0 -1
- package/dist/intersection-DqBqnpgh.cjs.map +0 -1
- package/dist/layout-7eyMBmZk.cjs +0 -17
- package/dist/layout-7eyMBmZk.cjs.map +0 -1
- package/dist/layout-Ox6nJkzC.js +0 -268
- package/dist/layout-Ox6nJkzC.js.map +0 -1
- package/dist/lightbox-CY52Z_ig.js.map +0 -1
- package/dist/lightbox-H8Uq3AXy.cjs +0 -202
- package/dist/lightbox-H8Uq3AXy.cjs.map +0 -1
- package/dist/list-BGjVo6zb.cjs +0 -40
- package/dist/list-BGjVo6zb.cjs.map +0 -1
- package/dist/list-D7wUxu1C.js.map +0 -1
- package/dist/litElement.mixin-CszkJuNl.js +0 -12
- package/dist/litElement.mixin-CszkJuNl.js.map +0 -1
- package/dist/litElement.mixin-qh5-IIUq.cjs +0 -1
- package/dist/litElement.mixin-qh5-IIUq.cjs.map +0 -1
- package/dist/mailbox--EN-JhjV.js.map +0 -1
- package/dist/mailbox-DLiBGJhY.cjs.map +0 -1
- package/dist/map-B0S_q3ma.js.map +0 -1
- package/dist/map-EDQN0I6e.cjs +0 -80
- package/dist/map-EDQN0I6e.cjs.map +0 -1
- package/dist/menu-3edZGQ1x.cjs.map +0 -1
- package/dist/menu-COeFpb6n.js.map +0 -1
- package/dist/metric.cjs +0 -69
- package/dist/metric.cjs.map +0 -1
- package/dist/metric.js +0 -93
- package/dist/metric.js.map +0 -1
- package/dist/mixins.cjs.map +0 -1
- package/dist/mixins.js.map +0 -1
- package/dist/notification-CC-TFN5v.js.map +0 -1
- package/dist/notification-P4c-kFdH.cjs +0 -23
- package/dist/notification-P4c-kFdH.cjs.map +0 -1
- package/dist/option-BwAF4nAw.js.map +0 -1
- package/dist/option-Cu0ertuF.cjs +0 -43
- package/dist/option-Cu0ertuF.cjs.map +0 -1
- package/dist/progress-Bk_Q1Shy.js.map +0 -1
- package/dist/progress-Yz6EMNSu.cjs.map +0 -1
- package/dist/provide-CYgj58u_.cjs +0 -1
- package/dist/provide-CYgj58u_.cjs.map +0 -1
- package/dist/provide-ydIskwf2.js +0 -107
- package/dist/provide-ydIskwf2.js.map +0 -1
- package/dist/radio-group-BcdcjLNC.js.map +0 -1
- package/dist/radio-group-BpBz5tRA.cjs +0 -40
- package/dist/radio-group-BpBz5tRA.cjs.map +0 -1
- package/dist/scroll-DXQv0ejL.js.map +0 -1
- package/dist/scroll-DbZMTv0K.cjs +0 -26
- package/dist/scroll-DbZMTv0K.cjs.map +0 -1
- package/dist/search-CwMav5QB.cjs +0 -1
- package/dist/select-BV4lK2zy.cjs.map +0 -1
- package/dist/select-DKyGWDsG.js.map +0 -1
- package/dist/sheet-BAI_jH1t.cjs +0 -35
- package/dist/sheet-BAI_jH1t.cjs.map +0 -1
- package/dist/sheet-C3TLKItO.js.map +0 -1
- package/dist/sheet.service-RcDBwHmv.cjs +0 -1
- package/dist/skills/schmancy/store.md +0 -126
- package/dist/skills/store.md +0 -126
- package/dist/sound.service-BEN6Xjy_.cjs +0 -1
- package/dist/sound.service-BEN6Xjy_.cjs.map +0 -1
- package/dist/sound.service-DWZe6swU.js.map +0 -1
- package/dist/splash-screen-DbI5RgBf.js.map +0 -1
- package/dist/splash-screen-DoHRTHi8.cjs +0 -41
- package/dist/splash-screen-DoHRTHi8.cjs.map +0 -1
- package/dist/src-00DfxCJq.js.map +0 -1
- package/dist/src-C_JjQovE.cjs +0 -269
- package/dist/src-C_JjQovE.cjs.map +0 -1
- package/dist/store-CjFHCSDb.cjs +0 -1
- package/dist/store-CjFHCSDb.cjs.map +0 -1
- package/dist/store-CjzZDQt8.js +0 -1654
- package/dist/store-CjzZDQt8.js.map +0 -1
- package/dist/store.cjs +0 -1
- package/dist/store.js +0 -2
- package/dist/surface-D-GWBcsh.cjs +0 -7
- package/dist/surface-D-GWBcsh.cjs.map +0 -1
- package/dist/surface-D23JtxYP.js +0 -22
- package/dist/surface-D23JtxYP.js.map +0 -1
- package/dist/surface.mixin-DqMwoddO.js +0 -320
- package/dist/surface.mixin-DqMwoddO.js.map +0 -1
- package/dist/surface.mixin-DxOi-xo0.cjs +0 -297
- package/dist/surface.mixin-DxOi-xo0.cjs.map +0 -1
- package/dist/table-C7b73kdg.cjs +0 -63
- package/dist/table-C7b73kdg.cjs.map +0 -1
- package/dist/table-CTrhV9-k.js +0 -631
- package/dist/table-CTrhV9-k.js.map +0 -1
- package/dist/tabs-Ce55RbwF.js.map +0 -1
- package/dist/tabs-DAzB8O7w.cjs +0 -31
- package/dist/tabs-DAzB8O7w.cjs.map +0 -1
- package/dist/tailwind.mixin-DRI1oTYQ.cjs +0 -2
- package/dist/tailwind.mixin-DRI1oTYQ.cjs.map +0 -1
- package/dist/tailwind.mixin-mdQR3BEO.js +0 -219
- package/dist/tailwind.mixin-mdQR3BEO.js.map +0 -1
- package/dist/textarea-DjN1D9u0.js.map +0 -1
- package/dist/textarea-PuHxBvJA.cjs +0 -39
- package/dist/textarea-PuHxBvJA.cjs.map +0 -1
- package/dist/theme-B-IJ2r7Q.cjs +0 -181
- package/dist/theme-button-BSbYmS4p.cjs +0 -8
- package/dist/theme-button-BSbYmS4p.cjs.map +0 -1
- package/dist/theme-button-CEMeAUOL.js.map +0 -1
- package/dist/theme.service-DxJPUGlu.cjs +0 -1
- package/dist/theme.service-DxJPUGlu.cjs.map +0 -1
- package/dist/theme.service-cOfPrtfe.js.map +0 -1
- package/dist/tslib.es6-Cnt75pb6.cjs +0 -1
- package/dist/tslib.es6-Cnt75pb6.cjs.map +0 -1
- package/dist/tslib.es6-DMzzJKHV.js +0 -7
- package/dist/tslib.es6-DMzzJKHV.js.map +0 -1
- package/dist/utils-Bp2jhyZc.js.map +0 -1
- package/dist/utils-CBPQvxNW.cjs +0 -1
- package/dist/utils-CBPQvxNW.cjs.map +0 -1
- package/dist/window-CrjZdf7Y.js.map +0 -1
- package/dist/window-DTUARSrU.cjs +0 -59
- package/dist/window-DTUARSrU.cjs.map +0 -1
- package/skills/schmancy/store.md +0 -126
- package/src/components/form-elements/index.ts +0 -1
- package/src/components/index.ts +0 -1
- package/src/layout/flex/flex.scss +0 -4
- package/src/layout/flex/flex.ts +0 -74
- package/src/layout/flex/index.ts +0 -1
- package/src/layout/grid/.readme +0 -79
- package/src/layout/grid/grid.scss +0 -5
- package/src/layout/grid/grid.ts +0 -121
- package/src/layout/grid/index.ts +0 -1
- package/src/layout/layout.ts +0 -122
- package/src/layout/v2/flex.ts +0 -243
- package/src/layout/v2/index.ts +0 -1
- package/src/metric/index.ts +0 -1
- package/src/metric/metric.ts +0 -127
- package/src/store/context-array.ts +0 -358
- package/src/store/context-collection.ts +0 -218
- package/src/store/context-create.ts +0 -284
- package/src/store/context-object.ts +0 -298
- package/src/store/filter-directive.ts +0 -614
- package/src/store/index.ts +0 -10
- package/src/store/selector-hook.ts +0 -259
- package/src/store/selectors.ts +0 -289
- package/src/store/storage-manager.ts +0 -269
- package/src/store/store.class.ts +0 -239
- package/src/store/types.ts +0 -327
- package/src/tabs/tabs-compatibility.ts +0 -20
- package/src/typewriter/typewriter.ts +0 -410
- package/types/src/agent/index.d.ts +0 -1
- package/types/src/area/route.test.d.ts +0 -20
- package/types/src/button/button.test.d.ts +0 -1
- package/types/src/chips/chip.d.ts +0 -3
- package/types/src/components/index.d.ts +0 -1
- package/types/src/content-drawer/$sheet.d.ts +0 -14
- package/types/src/dialog/dailog.d.ts +0 -116
- package/types/src/dialog/dialog-content.d.ts +0 -17
- package/types/src/directives/guard.d.ts +0 -1
- package/types/src/directives/visibility.d.ts +0 -11
- package/types/src/form/form-v2.d.ts +0 -22
- package/types/src/input/input-v2.d.ts +0 -250
- package/types/src/layout/flex/flex.d.ts +0 -26
- package/types/src/layout/flex/index.d.ts +0 -1
- package/types/src/layout/grid/grid.d.ts +0 -39
- package/types/src/layout/grid/index.d.ts +0 -1
- package/types/src/layout/layout.d.ts +0 -59
- package/types/src/layout/v2/flex.d.ts +0 -65
- package/types/src/layout/v2/grid.d.ts +0 -51
- package/types/src/layout/v2/index.d.ts +0 -1
- package/types/src/lightbox/flip.directive.d.ts +0 -22
- package/types/src/metric/index.d.ts +0 -1
- package/types/src/metric/metric.d.ts +0 -39
- package/types/src/notification/outlet.d.ts +0 -10
- package/types/src/sheet/header.d.ts +0 -10
- package/types/src/store/context-array.d.ts +0 -83
- package/types/src/store/context-collection.d.ts +0 -74
- package/types/src/store/context-create.d.ts +0 -43
- package/types/src/store/context-object.d.ts +0 -46
- package/types/src/store/filter-directive.d.ts +0 -116
- package/types/src/store/immer-integration.d.ts +0 -54
- package/types/src/store/index.d.ts +0 -10
- package/types/src/store/selector-hook.d.ts +0 -46
- package/types/src/store/selectors.d.ts +0 -90
- package/types/src/store/storage-manager.d.ts +0 -48
- package/types/src/store/store.class.d.ts +0 -73
- package/types/src/store/types.d.ts +0 -241
- package/types/src/tabs/tabs-compatibility.d.ts +0 -13
- package/types/src/theme/theme.elevation.d.ts +0 -131
- package/types/src/theme/theme.motion.d.ts +0 -198
- package/types/src/theme/theme.shape.d.ts +0 -144
- package/types/src/theme/theme.state.d.ts +0 -546
- package/types/src/theme/theme.typography.d.ts +0 -74
- package/types/src/tooltip/tooltip.d.ts +0 -33
- package/types/src/typewriter/typewriter.d.ts +0 -94
- /package/dist/agent/{flow-CvG1fLW5.js → flow-CaPi2G8y.js} +0 -0
- /package/dist/agent/{vendor-material-color-DcL7ZPxx.js → vendor-material-color-Be96dpGE.js} +0 -0
- /package/dist/{animation-hXFClrIn.js → animation-BK-8BwY8.js} +0 -0
- /package/dist/{animation-CQRdLgzX.cjs → animation-CO_Csq84.cjs} +0 -0
- /package/dist/{decorate-D_utPUsC.js → decorate-23nYs4Le.js} +0 -0
- /package/dist/{decorate-F9CuyeHg.cjs → decorate-DpFmy0nm.cjs} +0 -0
- /package/dist/{hashContent-B2IntJQf.js → hashContent-1ARKIsx9.js} +0 -0
- /package/dist/{hashContent-CahnEuut.cjs → hashContent-Bp5S6T4U.cjs} +0 -0
- /package/dist/{lazy-D6R5N5v4.js → lazy-B0ia54tT.js} +0 -0
- /package/dist/{lazy-BDNnH_r7.cjs → lazy-Dq9mRRjT.cjs} +0 -0
- /package/dist/{reduced-motion-BZTLqAyl.js → reduced-motion-D-L12p7G.js} +0 -0
- /package/dist/{reduced-motion-9RjNnhIg.cjs → reduced-motion-Ds-HjMzn.cjs} +0 -0
- /package/dist/{rxjs-utils-DJbZRjp3.cjs → rxjs-utils-Csnks202.cjs} +0 -0
- /package/dist/{rxjs-utils-CKTnEKUH.js → rxjs-utils-d-ivVN84.js} +0 -0
- /package/dist/{theme.events-NuihzD_p.js → theme.events-Cv7N4Toe.js} +0 -0
- /package/dist/{theme.events-DakXxZeP.cjs → theme.events-DM4H5F2d.cjs} +0 -0
- /package/dist/{theme.interface-DTwkuAKJ.cjs → theme.interface-D9l33b-M.cjs} +0 -0
- /package/dist/{theme.interface-Buged9Cg.js → theme.interface-DnVNre4O.js} +0 -0
- /package/src/{directives/typewriter.ts → typewriter/typewriter.directive.ts} +0 -0
- /package/types/src/{components/form-elements → payment-card-form}/index.d.ts +0 -0
- /package/types/src/{directives/typewriter.d.ts → typewriter/typewriter.directive.d.ts} +0 -0
package/src/details/details.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SchmancyElement, SurfaceMixin } from '@mixins/index'
|
|
2
2
|
import { css, html, LitElement, nothing } from 'lit'
|
|
3
3
|
import { customElement, property, state } from 'lit/decorators.js'
|
|
4
4
|
import { cursorGlow } from '../directives/cursor-glow'
|
|
@@ -9,21 +9,9 @@ import { distinctUntilChanged, filter, take, takeUntil, tap } from 'rxjs/operato
|
|
|
9
9
|
import { SPRING_SNAPPY } from '../utils/animation.js'
|
|
10
10
|
import { reducedMotion$ } from '../directives/reduced-motion'
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
* Expandable disclosure panel — a styled `<details>` / `<summary>` pair with animated expand + overlay options.
|
|
14
|
-
*
|
|
15
|
-
* @element schmancy-details
|
|
16
|
-
* @summary Use for progressive-disclosure content: FAQs, collapsible settings sections, accordion-style lists. Prefer schmancy-expand for full-page accordions where only one section can be open at a time.
|
|
17
|
-
* @example
|
|
18
|
-
* <schmancy-details summary="Shipping details">
|
|
19
|
-
* <p>Order ships in 2 business days.</p>
|
|
20
|
-
* </schmancy-details>
|
|
21
|
-
* @platform details toggle - Wraps native `<details>`/`<summary>`. Degrades to the native element if the tag never registers — same keyboard accessibility, just no animation.
|
|
22
|
-
* @fires toggle - When the open state changes (bubbles from the native `<details>`).
|
|
23
|
-
*/
|
|
24
12
|
@customElement('schmancy-details')
|
|
25
|
-
export default class SchmancyDetails extends SurfaceMixin(
|
|
26
|
-
|
|
13
|
+
export default class SchmancyDetails extends SurfaceMixin(SchmancyElement) {
|
|
14
|
+
static styles = [css`
|
|
27
15
|
:host {
|
|
28
16
|
display: block;
|
|
29
17
|
transition: box-shadow 400ms cubic-bezier(0.34, 1.2, 0.64, 1);
|
|
@@ -138,8 +126,7 @@ export default class SchmancyDetails extends SurfaceMixin(
|
|
|
138
126
|
transition: none;
|
|
139
127
|
}
|
|
140
128
|
}
|
|
141
|
-
`
|
|
142
|
-
) {
|
|
129
|
+
`];
|
|
143
130
|
protected static shadowRootOptions = {
|
|
144
131
|
...LitElement.shadowRootOptions,
|
|
145
132
|
mode: 'open' as const,
|
|
@@ -240,6 +240,7 @@ export class DialogService {
|
|
|
240
240
|
|
|
241
241
|
// Remove from DOM
|
|
242
242
|
dialog.parentElement?.removeChild(dialog)
|
|
243
|
+
return
|
|
243
244
|
})
|
|
244
245
|
.catch((error: unknown) => {
|
|
245
246
|
target.reject?.(error)
|
|
@@ -421,6 +422,7 @@ export class DialogService {
|
|
|
421
422
|
content: container,
|
|
422
423
|
}).then(confirmed => {
|
|
423
424
|
resolve(confirmed ? inputValue : null)
|
|
425
|
+
return
|
|
424
426
|
})
|
|
425
427
|
})
|
|
426
428
|
}
|
|
@@ -10,28 +10,28 @@ import { DialogBase } from './dialog-base.mixin'
|
|
|
10
10
|
import { DialogHereMorty, DialogWhereAreYouRicky, DialogWhereAreYouRickyEvent } from './dialog-events'
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Unified dialog component that handles both content-only and confirm modes.
|
|
14
14
|
*
|
|
15
15
|
* @element schmancy-dialog
|
|
16
|
-
* @summary Blocks interaction with the rest of the page until dismissed. For quick confirmations, prefer `$dialog.confirm({ ... })` over this element. For arbitrary dialog content driven imperatively, prefer `$dialog.component(MyComponent)`.
|
|
17
|
-
* @platform dialog close - Positioned overlay in light DOM. Degrades to a styled `<dialog>` if the tag never registers — loses custom animations but keeps focus trap + ESC close.
|
|
18
16
|
* @slot default - Content slot for dialog body (used in content mode)
|
|
19
17
|
* @slot content - Named slot for custom content in confirm mode
|
|
20
|
-
* @fires confirm - In confirm mode, when the confirm button is clicked.
|
|
21
|
-
* @fires cancel - In confirm mode, when the cancel button or ESC is activated.
|
|
22
18
|
*
|
|
23
19
|
* @example Content mode (no buttons):
|
|
20
|
+
* ```html
|
|
24
21
|
* <schmancy-dialog>
|
|
25
22
|
* <my-custom-content></my-custom-content>
|
|
26
23
|
* </schmancy-dialog>
|
|
24
|
+
* ```
|
|
27
25
|
*
|
|
28
26
|
* @example Confirm mode (with buttons):
|
|
27
|
+
* ```html
|
|
29
28
|
* <schmancy-dialog
|
|
30
|
-
* title="
|
|
31
|
-
* message="
|
|
32
|
-
* confirm-text="
|
|
33
|
-
* cancel-text="
|
|
29
|
+
* title="Confirm Action"
|
|
30
|
+
* message="Are you sure?"
|
|
31
|
+
* confirm-text="Yes"
|
|
32
|
+
* cancel-text="No"
|
|
34
33
|
* ></schmancy-dialog>
|
|
34
|
+
* ```
|
|
35
35
|
*/
|
|
36
36
|
@customElement('schmancy-dialog')
|
|
37
37
|
export class SchmancyDialog extends DialogBase(
|
package/src/directives/drag.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { nothing } from 'lit'
|
|
2
|
-
import { Directive, directive, type ElementPart
|
|
2
|
+
import { Directive, directive, type ElementPart } from 'lit/directive.js'
|
|
3
3
|
import { animationFrameScheduler, BehaviorSubject, EMPTY, fromEvent, Subject, timer } from 'rxjs'
|
|
4
4
|
import { distinctUntilChanged, observeOn, skip, switchMap, take, takeUntil, tap } from 'rxjs/operators'
|
|
5
5
|
import { SPRING_SNAPPY } from '../utils/animation'
|
|
@@ -146,10 +146,6 @@ export class DragDirective extends Directive {
|
|
|
146
146
|
private registeredId?: string
|
|
147
147
|
private destroy$ = new Subject<void>()
|
|
148
148
|
|
|
149
|
-
constructor(partInfo: PartInfo) {
|
|
150
|
-
super(partInfo)
|
|
151
|
-
}
|
|
152
|
-
|
|
153
149
|
update(part: ElementPart, [id]: [string]) {
|
|
154
150
|
this.id = id
|
|
155
151
|
|
|
@@ -285,10 +281,6 @@ export class DropDirective extends Directive {
|
|
|
285
281
|
private destinationId!: string
|
|
286
282
|
private destroy$ = new Subject<void>()
|
|
287
283
|
|
|
288
|
-
constructor(partInfo: PartInfo) {
|
|
289
|
-
super(partInfo)
|
|
290
|
-
}
|
|
291
|
-
|
|
292
284
|
update(part: ElementPart, [destinationId]: [string]) {
|
|
293
285
|
this.destinationId = destinationId
|
|
294
286
|
|
package/src/directives/index.ts
CHANGED
|
@@ -196,7 +196,7 @@ export function discover<T extends HTMLElement>(
|
|
|
196
196
|
query: string,
|
|
197
197
|
timeout = 150,
|
|
198
198
|
): Observable<T | null> {
|
|
199
|
-
const isCssSelector = /^[
|
|
199
|
+
const isCssSelector = /^[#.[]/.test(query)
|
|
200
200
|
|
|
201
201
|
if (isCssSelector) {
|
|
202
202
|
return discoverElement<T>(query, timeout)
|
package/src/divider/divider.ts
CHANGED
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
// divider.ts
|
|
2
|
-
import {
|
|
2
|
+
import { SchmancyElement } from '@mixins/index'
|
|
3
3
|
import { css, html } from 'lit'
|
|
4
4
|
import { customElement, property } from 'lit/decorators.js'
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* Thin horizontal (or vertical) separator rule between sections of content.
|
|
8
|
-
*
|
|
9
|
-
* @element schmancy-divider
|
|
10
|
-
* @summary Semantic separator between groups — list items, menu sections, content blocks. Uses outline theme token.
|
|
11
|
-
* @example
|
|
12
|
-
* <schmancy-list-item>First</schmancy-list-item>
|
|
13
|
-
* <schmancy-divider></schmancy-divider>
|
|
14
|
-
* <schmancy-list-item>Second</schmancy-list-item>
|
|
15
|
-
* @platform hr - Styled horizontal rule. Degrades to a native `<hr>` if the tag never registers.
|
|
16
|
-
*/
|
|
17
6
|
@customElement('schmancy-divider')
|
|
18
|
-
export default class SchmancyDivider extends
|
|
7
|
+
export default class SchmancyDivider extends SchmancyElement {
|
|
8
|
+
static styles = [css`
|
|
19
9
|
:host {
|
|
20
10
|
display: block;
|
|
21
11
|
}
|
|
@@ -69,7 +59,8 @@ export default class SchmancyDivider extends $LitElement(css`
|
|
|
69
59
|
animation: grow-vertical 400ms ease-out;
|
|
70
60
|
transform-origin: center;
|
|
71
61
|
}
|
|
72
|
-
`
|
|
62
|
+
`]
|
|
63
|
+
|
|
73
64
|
@property({ type: String }) outline: 'default' | 'variant' = 'variant'
|
|
74
65
|
@property({ type: Boolean }) vertical = false
|
|
75
66
|
@property({ type: String }) grow: 'start' | 'end' | 'both' = 'start'
|
|
@@ -1,30 +1,18 @@
|
|
|
1
1
|
import { autoUpdate, computePosition, flip, offset, shift } from '@floating-ui/dom'
|
|
2
|
-
import {
|
|
2
|
+
import { SchmancyElement } from '@mixins/index'
|
|
3
3
|
import { html } from 'lit'
|
|
4
4
|
import { customElement, property, query, queryAssignedElements, state } from 'lit/decorators.js'
|
|
5
5
|
import { filter, fromEvent, takeUntil, Subscription } from 'rxjs'
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* A dropdown component that displays content when triggered.
|
|
9
9
|
*
|
|
10
10
|
* @element schmancy-dropdown
|
|
11
|
-
* @summary Prefer schmancy-menu for action lists, schmancy-autocomplete for type-ahead, schmancy-tooltip for hover hints. Reach for schmancy-dropdown when none of those fit — custom filters, color pickers, inline forms anchored to a trigger.
|
|
12
|
-
* @example
|
|
13
|
-
* <schmancy-dropdown>
|
|
14
|
-
* <schmancy-button slot="trigger">Filters</schmancy-button>
|
|
15
|
-
* <schmancy-dropdown-content>
|
|
16
|
-
* <schmancy-form>…</schmancy-form>
|
|
17
|
-
* </schmancy-dropdown-content>
|
|
18
|
-
* </schmancy-dropdown>
|
|
19
|
-
* @platform div - Anchored via Floating UI (autoUpdate, flip, shift). Degrades to inline content if the tag never registers — loses positioning but content stays accessible.
|
|
20
|
-
* @attr open - Boolean; whether the dropdown is visible.
|
|
21
|
-
* @fires open - When the dropdown opens.
|
|
22
|
-
* @fires close - When the dropdown closes.
|
|
23
11
|
* @slot trigger - The element that triggers the dropdown
|
|
24
12
|
* @slot - Default slot for the dropdown content
|
|
25
13
|
*/
|
|
26
14
|
@customElement('schmancy-dropdown')
|
|
27
|
-
export class SchmancyDropdown extends
|
|
15
|
+
export class SchmancyDropdown extends SchmancyElement {
|
|
28
16
|
/**
|
|
29
17
|
* Whether the dropdown is currently open
|
|
30
18
|
*/
|
|
@@ -153,7 +141,7 @@ export class SchmancyDropdown extends $LitElement() {
|
|
|
153
141
|
this.open = !this.open
|
|
154
142
|
}
|
|
155
143
|
|
|
156
|
-
updated(changedProps: Map<string,
|
|
144
|
+
updated(changedProps: Map<string, unknown>) {
|
|
157
145
|
super.updated(changedProps)
|
|
158
146
|
|
|
159
147
|
if (changedProps.has('open')) {
|
|
@@ -203,6 +191,7 @@ export class SchmancyDropdown extends $LitElement() {
|
|
|
203
191
|
left: `${x}px`,
|
|
204
192
|
top: `${y - 8}px`,
|
|
205
193
|
})
|
|
194
|
+
return
|
|
206
195
|
})
|
|
207
196
|
})
|
|
208
197
|
}
|
|
@@ -1,25 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SchmancyElement } from '@mixins/index'
|
|
2
2
|
import { css, html } from 'lit'
|
|
3
3
|
import { customElement, property } from 'lit/decorators.js'
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Content
|
|
6
|
+
* Content container for the schmancy-dropdown component.
|
|
7
7
|
*
|
|
8
8
|
* @element schmancy-dropdown-content
|
|
9
|
-
* @summary Nest this inside schmancy-dropdown (not in the trigger slot). Use the `content` CSS part to customize backgrounds / shadows / padding without shadow-root piercing.
|
|
10
|
-
* @example
|
|
11
|
-
* <schmancy-dropdown>
|
|
12
|
-
* <schmancy-button slot="trigger">Open</schmancy-button>
|
|
13
|
-
* <schmancy-dropdown-content>
|
|
14
|
-
* Panel contents…
|
|
15
|
-
* </schmancy-dropdown-content>
|
|
16
|
-
* </schmancy-dropdown>
|
|
17
|
-
* @platform div - Positioned panel with theme-aware styling. Degrades to an inline div if the tag never registers.
|
|
18
9
|
* @slot - Default slot for dropdown content.
|
|
19
|
-
* @csspart content - The inner wrapper element; style to override panel
|
|
10
|
+
* @csspart content - The inner wrapper element; style to override panel
|
|
11
|
+
* backgrounds, shadows, padding, or borders without shadow-root piercing.
|
|
20
12
|
*/
|
|
21
13
|
@customElement('schmancy-dropdown-content')
|
|
22
|
-
export class SchmancyDropdownContent extends
|
|
14
|
+
export class SchmancyDropdownContent extends SchmancyElement {
|
|
15
|
+
static styles = [css`
|
|
23
16
|
:host {
|
|
24
17
|
display: block;
|
|
25
18
|
position: absolute;
|
|
@@ -61,7 +54,7 @@ export class SchmancyDropdownContent extends TailwindElement(css`
|
|
|
61
54
|
transform-origin: top left;
|
|
62
55
|
animation: dropdownAnimation 0.1s ease-out forwards;
|
|
63
56
|
}
|
|
64
|
-
`
|
|
57
|
+
`];
|
|
65
58
|
/**
|
|
66
59
|
* Width of the dropdown content
|
|
67
60
|
*/
|
|
@@ -1,26 +1,15 @@
|
|
|
1
1
|
import { css, html, nothing } from 'lit'
|
|
2
2
|
import { customElement, property, state } from 'lit/decorators.js'
|
|
3
3
|
import { createRef, ref } from 'lit/directives/ref.js'
|
|
4
|
-
import {
|
|
4
|
+
import { SchmancyElement, SurfaceMixin } from '@mixins/index'
|
|
5
5
|
import type { TSurfaceColor } from '@schmancy/types'
|
|
6
6
|
import { SPRING_SMOOTH } from '../utils/animation.js'
|
|
7
7
|
import { reducedMotion$ } from '../directives/reduced-motion'
|
|
8
8
|
import '../surface/surface.js'
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* Container for schmancy-expand children — coordinates mutual-exclusion so only one child is open at a time. Also renders the portal panel that the active child expands into.
|
|
12
|
-
*
|
|
13
|
-
* @element schmancy-expand-root
|
|
14
|
-
* @summary Always wrap a group of schmancy-expand children. Without a root, each schmancy-expand behaves independently (which is usually not what you want — prefer schmancy-details for that).
|
|
15
|
-
* @example
|
|
16
|
-
* <schmancy-expand-root>
|
|
17
|
-
* <schmancy-expand summary="Step 1">…</schmancy-expand>
|
|
18
|
-
* <schmancy-expand summary="Step 2">…</schmancy-expand>
|
|
19
|
-
* </schmancy-expand-root>
|
|
20
|
-
* @platform div - Coordinating wrapper. Degrades to a plain div if the tag never registers — children fall back to independent `<details>` behavior.
|
|
21
|
-
*/
|
|
22
10
|
@customElement('schmancy-expand-root')
|
|
23
|
-
export class SchmancyExpandRoot extends SurfaceMixin(
|
|
11
|
+
export class SchmancyExpandRoot extends SurfaceMixin(SchmancyElement) {
|
|
12
|
+
static styles = [css`
|
|
24
13
|
:host {
|
|
25
14
|
display: contents;
|
|
26
15
|
}
|
|
@@ -57,7 +46,7 @@ export class SchmancyExpandRoot extends SurfaceMixin(TailwindElement(css`
|
|
|
57
46
|
opacity: 1;
|
|
58
47
|
background: rgb(0 0 0 / 0.08);
|
|
59
48
|
}
|
|
60
|
-
`
|
|
49
|
+
`];
|
|
61
50
|
@property({ reflect: true }) override type: TSurfaceColor = 'solid'
|
|
62
51
|
@state() isOpen = false
|
|
63
52
|
private summaryRect: DOMRect | null = null
|
|
@@ -190,6 +179,7 @@ export class SchmancyExpandRoot extends SurfaceMixin(TailwindElement(css`
|
|
|
190
179
|
panel.style.height = 'auto'
|
|
191
180
|
panel.style.maxHeight = `${window.innerHeight - finalTop - 16}px`
|
|
192
181
|
}
|
|
182
|
+
return
|
|
193
183
|
})
|
|
194
184
|
|
|
195
185
|
const btn = this._btnRef.value
|
|
@@ -4,7 +4,7 @@ import { createRef, ref } from 'lit/directives/ref.js'
|
|
|
4
4
|
import { styleMap } from 'lit/directives/style-map.js'
|
|
5
5
|
import { filter, fromEvent, lastValueFrom } from 'rxjs'
|
|
6
6
|
import { tap, takeUntil } from 'rxjs/operators'
|
|
7
|
-
import {
|
|
7
|
+
import { SchmancyElement } from '@mixins/index'
|
|
8
8
|
import { SPRING_SNAPPY } from '../utils/animation.js'
|
|
9
9
|
import { reducedMotion$ } from '../directives/reduced-motion'
|
|
10
10
|
import { SchmancyExpandRoot } from './expand-root.component.js'
|
|
@@ -12,22 +12,9 @@ import { SchmancyExpandRoot } from './expand-root.component.js'
|
|
|
12
12
|
/** Dispatch this event on window to close whichever schmancy-expand is currently open */
|
|
13
13
|
export const SCHMANCY_EXPAND_REQUEST_CLOSE = 'schmancy-expand-request-close'
|
|
14
14
|
|
|
15
|
-
/**
|
|
16
|
-
* Accordion-style section — expands on click, coordinates with siblings via schmancy-expand-root to close any sibling when a new one opens. Only one schmancy-expand can be open at a time within the same root.
|
|
17
|
-
*
|
|
18
|
-
* @element schmancy-expand
|
|
19
|
-
* @summary Use for grouped progressive-disclosure where only one section should be open at a time. Prefer schmancy-details when sections should be independent.
|
|
20
|
-
* @example
|
|
21
|
-
* <schmancy-expand-root>
|
|
22
|
-
* <schmancy-expand summary="Billing">Billing form…</schmancy-expand>
|
|
23
|
-
* <schmancy-expand summary="Shipping">Shipping form…</schmancy-expand>
|
|
24
|
-
* <schmancy-expand summary="Review">Order review…</schmancy-expand>
|
|
25
|
-
* </schmancy-expand-root>
|
|
26
|
-
* @platform details toggle - Schmancy-skinned accordion section. Degrades to `<details>` if the tag never registers — loses mutual-exclusion behavior but stays functional.
|
|
27
|
-
* @fires toggle - When the open state changes.
|
|
28
|
-
*/
|
|
29
15
|
@customElement('schmancy-expand')
|
|
30
|
-
export default class SchmancyExpand extends
|
|
16
|
+
export default class SchmancyExpand extends SchmancyElement {
|
|
17
|
+
static styles = [css`
|
|
31
18
|
:host {
|
|
32
19
|
display: block;
|
|
33
20
|
}
|
|
@@ -59,7 +46,7 @@ export default class SchmancyExpand extends TailwindElement(css`
|
|
|
59
46
|
min-height: 0;
|
|
60
47
|
overflow: hidden;
|
|
61
48
|
}
|
|
62
|
-
`
|
|
49
|
+
`];
|
|
63
50
|
@property() summary = ''
|
|
64
51
|
|
|
65
52
|
@property({ type: Boolean, reflect: true }) open = false
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SchmancyElement } from '@mixins/index'
|
|
2
2
|
import { SchmancyAutocompleteChangeEvent } from '@schmancy/autocomplete'
|
|
3
3
|
import { css, html } from 'lit'
|
|
4
4
|
import { customElement, property, query, state } from 'lit/decorators.js'
|
|
@@ -6,22 +6,14 @@ import { repeat } from 'lit/directives/repeat.js'
|
|
|
6
6
|
import countriesData from './countries.data'
|
|
7
7
|
import SchmancyAutocomplete from '@schmancy/autocomplete/autocomplete'
|
|
8
8
|
|
|
9
|
-
/**
|
|
10
|
-
* Country picker — type-ahead autocomplete over the ISO 3166-1 country list. Form-associated.
|
|
11
|
-
*
|
|
12
|
-
* @element schmancy-select-countries
|
|
13
|
-
* @summary Drop-in replacement for schmancy-autocomplete when the options are specifically "every country". Pre-seeds the list from countries.data.
|
|
14
|
-
* @example
|
|
15
|
-
* <schmancy-select-countries name="country" label="Shipping country" required></schmancy-select-countries>
|
|
16
|
-
* @platform combobox change - Composes schmancy-autocomplete with a static options list. Value is the 2-letter ISO code.
|
|
17
|
-
* @fires change - `SchmancyAutocompleteChangeEvent` with `{ value: string }` (the ISO code).
|
|
18
|
-
*/
|
|
19
9
|
@customElement('schmancy-select-countries')
|
|
20
|
-
export class SchmancyCountriesSelect extends
|
|
10
|
+
export class SchmancyCountriesSelect extends SchmancyElement {
|
|
11
|
+
static styles = [css`
|
|
21
12
|
:host {
|
|
22
13
|
display: block;
|
|
23
14
|
}
|
|
24
|
-
`
|
|
15
|
+
`]
|
|
16
|
+
|
|
25
17
|
// Form association setup
|
|
26
18
|
static formAssociated = true
|
|
27
19
|
private internals?: ElementInternals
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SchmancyElement } from '@mixins/index'
|
|
2
2
|
import { css, html } from 'lit'
|
|
3
3
|
import { customElement, property, query, state } from 'lit/decorators.js'
|
|
4
4
|
import { repeat } from 'lit/directives/repeat.js'
|
|
@@ -6,14 +6,7 @@ import timezonesData from './timezones.data'
|
|
|
6
6
|
import SchmancyAutocomplete from '@schmancy/autocomplete/autocomplete'
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Timezone
|
|
10
|
-
*
|
|
11
|
-
* @element schmancy-select-timezones
|
|
12
|
-
* @summary Drop-in replacement for schmancy-autocomplete when the options are IANA timezone names. Value is the IANA identifier ("America/Los_Angeles").
|
|
13
|
-
* @example
|
|
14
|
-
* <schmancy-select-timezones name="tz" label="Timezone" value="America/New_York"></schmancy-select-timezones>
|
|
15
|
-
* @platform combobox change - Composes schmancy-autocomplete with a static IANA timezones list.
|
|
16
|
-
* @fires change - `SchmancyAutocompleteChangeEvent` with `{ value: string }` (the IANA tz name).
|
|
9
|
+
* Timezone selector component with autocomplete filtering.
|
|
17
10
|
*
|
|
18
11
|
* @prop {string} name - Name attribute for form submission
|
|
19
12
|
* @prop {string} value - Selected timezone value
|
|
@@ -21,11 +14,13 @@ import SchmancyAutocomplete from '@schmancy/autocomplete/autocomplete'
|
|
|
21
14
|
* @prop {boolean} required - Whether the field is required
|
|
22
15
|
*/
|
|
23
16
|
@customElement('schmancy-select-timezones')
|
|
24
|
-
export class SchmancyTimezonesSelect extends
|
|
17
|
+
export class SchmancyTimezonesSelect extends SchmancyElement {
|
|
18
|
+
static styles = [css`
|
|
25
19
|
:host {
|
|
26
20
|
display: block;
|
|
27
21
|
}
|
|
28
|
-
`
|
|
22
|
+
`]
|
|
23
|
+
|
|
29
24
|
// Form association setup
|
|
30
25
|
static formAssociated = true
|
|
31
26
|
private internals?: ElementInternals
|
|
@@ -99,7 +94,7 @@ export class SchmancyTimezonesSelect extends $LitElement(css`
|
|
|
99
94
|
return html`
|
|
100
95
|
<schmancy-autocomplete
|
|
101
96
|
.placeholder=${this.placeholder}
|
|
102
|
-
.
|
|
97
|
+
.description=${this.hint}
|
|
103
98
|
.required=${this.required}
|
|
104
99
|
.label=${this.label}
|
|
105
100
|
.value=${this.value ?? ''}
|
package/src/form/form.test.ts
CHANGED
|
@@ -4,6 +4,8 @@ import '../input/input'
|
|
|
4
4
|
import '../button/button'
|
|
5
5
|
import '../checkbox/checkbox'
|
|
6
6
|
|
|
7
|
+
const nextUpdate = () => new Promise(r => requestAnimationFrame(() => r(null)))
|
|
8
|
+
|
|
7
9
|
describe('schmancy-form', () => {
|
|
8
10
|
let host: HTMLDivElement
|
|
9
11
|
|
|
@@ -16,8 +18,6 @@ describe('schmancy-form', () => {
|
|
|
16
18
|
host.remove()
|
|
17
19
|
})
|
|
18
20
|
|
|
19
|
-
const nextUpdate = () => new Promise(r => requestAnimationFrame(() => r(null)))
|
|
20
|
-
|
|
21
21
|
it('wraps children in a real light-DOM <form>', async () => {
|
|
22
22
|
host.innerHTML = `
|
|
23
23
|
<schmancy-form>
|
package/src/form/form.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { customElement } from 'lit/decorators.js'
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* A thin ergonomic wrapper around a native `<form>` element. Its children are
|
|
5
|
+
* reparented into a `<form>` element in light DOM on connection, so:
|
|
5
6
|
*
|
|
6
7
|
* - Form-associated custom elements (FACE) resolve their `internals.form`
|
|
7
8
|
* correctly via native DOM ancestry.
|
|
@@ -17,14 +18,6 @@ import { customElement } from 'lit/decorators.js'
|
|
|
17
18
|
* lifting is the platform's.
|
|
18
19
|
*
|
|
19
20
|
* @element schmancy-form
|
|
20
|
-
* @summary Always wrap form-associated schmancy components in schmancy-form (or a native `<form>`) so `new FormData(form)` just works.
|
|
21
|
-
* @example
|
|
22
|
-
* <schmancy-form @submit=${(e) => console.log(Object.fromEntries(e.detail))}>
|
|
23
|
-
* <schmancy-input name="email" type="email" required></schmancy-input>
|
|
24
|
-
* <schmancy-input name="password" type="password" required></schmancy-input>
|
|
25
|
-
* <schmancy-button type="submit" variant="filled">Sign in</schmancy-button>
|
|
26
|
-
* </schmancy-form>
|
|
27
|
-
* @platform form submit - Light-DOM native `<form>` element. Degrades to a `<form>` if the tag never registers — same semantics, just no CustomEvent translation.
|
|
28
21
|
* @fires submit - `CustomEvent<FormData>` emitted when the form is submitted.
|
|
29
22
|
* @fires reset - Emitted after the underlying form resets.
|
|
30
23
|
*/
|
package/src/icons/icon.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SchmancyElement } from '@mixins/index'
|
|
2
2
|
import { consume } from '@lit/context'
|
|
3
3
|
import { css, html } from 'lit'
|
|
4
4
|
import { customElement, property, state } from 'lit/decorators.js'
|
|
@@ -29,7 +29,8 @@ export type IconSize = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | string
|
|
|
29
29
|
* @csspart icon - The inner `<span>` carrying the Material Symbols glyph.
|
|
30
30
|
*/
|
|
31
31
|
@customElement('schmancy-icon')
|
|
32
|
-
export default class SchmancyIcon extends
|
|
32
|
+
export default class SchmancyIcon extends SchmancyElement {
|
|
33
|
+
static styles = [css`
|
|
33
34
|
:host {
|
|
34
35
|
--schmancy-icon-size: 24px;
|
|
35
36
|
--schmancy-icon-fill: 0;
|
|
@@ -77,7 +78,7 @@ export default class SchmancyIcon extends TailwindElement(css`
|
|
|
77
78
|
.material-symbols[data-icon]::before {
|
|
78
79
|
content: attr(data-icon);
|
|
79
80
|
}
|
|
80
|
-
`
|
|
81
|
+
`];
|
|
81
82
|
// Static flag to track if Google Fonts have been loaded
|
|
82
83
|
private static fontsLoaded = false
|
|
83
84
|
|
package/src/iframe/iframe.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SchmancyElement } from '@mixins/index'
|
|
2
2
|
import { css, html, PropertyValues } from 'lit'
|
|
3
3
|
import { customElement, property, state } from 'lit/decorators.js'
|
|
4
|
+
import { createRef, ref } from 'lit/directives/ref.js'
|
|
4
5
|
|
|
5
6
|
/** Sensible document reset for iframe content — font, spacing, word-wrap */
|
|
6
7
|
const DEFAULT_BASE_CSS = `html,body{margin:0;padding:0;overflow:hidden;background:#fff;color:#1a1a1a;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;font-size:14px;line-height:1.6;word-wrap:break-word;overflow-wrap:break-word}
|
|
@@ -27,7 +28,8 @@ code{background:#f5f5f5;padding:.1em .3em;border-radius:3px;font-size:.9em}`
|
|
|
27
28
|
* ```
|
|
28
29
|
*/
|
|
29
30
|
@customElement('schmancy-iframe')
|
|
30
|
-
export default class SchmancyIframe extends
|
|
31
|
+
export default class SchmancyIframe extends SchmancyElement {
|
|
32
|
+
static styles = [css`
|
|
31
33
|
:host {
|
|
32
34
|
display: block;
|
|
33
35
|
}
|
|
@@ -35,7 +37,7 @@ export default class SchmancyIframe extends TailwindElement(css`
|
|
|
35
37
|
border: 0;
|
|
36
38
|
width: 100%;
|
|
37
39
|
}
|
|
38
|
-
`
|
|
40
|
+
`];
|
|
39
41
|
/** HTML body fragment to render inside the iframe */
|
|
40
42
|
@property({ type: String }) html = ''
|
|
41
43
|
|
|
@@ -53,6 +55,7 @@ export default class SchmancyIframe extends TailwindElement(css`
|
|
|
53
55
|
|
|
54
56
|
@state() private _height = 60
|
|
55
57
|
private _srcdoc = ''
|
|
58
|
+
private _iframeRef = createRef<HTMLIFrameElement>()
|
|
56
59
|
|
|
57
60
|
protected willUpdate(changed: PropertyValues) {
|
|
58
61
|
if (changed.has('html') || changed.has('css') || changed.has('baseCss')) {
|
|
@@ -61,6 +64,12 @@ export default class SchmancyIframe extends TailwindElement(css`
|
|
|
61
64
|
}
|
|
62
65
|
}
|
|
63
66
|
|
|
67
|
+
protected updated(changed: PropertyValues) {
|
|
68
|
+
if (changed.has('sandbox')) {
|
|
69
|
+
this._iframeRef.value?.setAttribute('sandbox', this.sandbox)
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
64
73
|
private buildSrcdoc(): string {
|
|
65
74
|
const styles = this.css ? `${this.baseCss}\n${this.css}` : this.baseCss
|
|
66
75
|
return `<!DOCTYPE html><html><head>
|
|
@@ -83,8 +92,8 @@ export default class SchmancyIframe extends TailwindElement(css`
|
|
|
83
92
|
protected render() {
|
|
84
93
|
if (!this.html) return html``
|
|
85
94
|
return html`<iframe
|
|
95
|
+
${ref(this._iframeRef)}
|
|
86
96
|
.srcdoc=${this._srcdoc}
|
|
87
|
-
sandbox=${this.sandbox}
|
|
88
97
|
style="height:${this._height}px;min-height:${this.minHeight}px;overflow:hidden"
|
|
89
98
|
@load=${this.onLoad}
|
|
90
99
|
></iframe>`
|
package/src/index.ts
CHANGED
|
@@ -10,7 +10,6 @@ export * from './charts';
|
|
|
10
10
|
export * from './checkbox';
|
|
11
11
|
export * from './chips';
|
|
12
12
|
export * from './code-highlight';
|
|
13
|
-
export * from './components';
|
|
14
13
|
export * from './connectivity';
|
|
15
14
|
export * from './content-drawer';
|
|
16
15
|
export * from './date-range';
|
|
@@ -37,13 +36,13 @@ export * from './list';
|
|
|
37
36
|
export * from './mailbox';
|
|
38
37
|
export * from './map';
|
|
39
38
|
export * from './menu';
|
|
40
|
-
export * from './metric';
|
|
41
39
|
export * from './nav-drawer';
|
|
42
40
|
export * from './navigation-bar';
|
|
43
41
|
export * from './navigation-rail';
|
|
44
42
|
export * from './notification';
|
|
45
43
|
export * from './option';
|
|
46
44
|
export * from './page';
|
|
45
|
+
export * from './payment-card-form';
|
|
47
46
|
export * from './progress';
|
|
48
47
|
export * from './qr-scanner';
|
|
49
48
|
export * from './radio-group';
|
|
@@ -52,8 +51,8 @@ export * from './rxjs-utils';
|
|
|
52
51
|
export * from './select';
|
|
53
52
|
export * from './sheet';
|
|
54
53
|
export * from './slider';
|
|
54
|
+
export * from './state';
|
|
55
55
|
export * from './steps';
|
|
56
|
-
export * from './store';
|
|
57
56
|
export * from './surface';
|
|
58
57
|
export * from './table';
|
|
59
58
|
export * from './tabs';
|
|
@@ -61,6 +60,7 @@ export * from './teleport';
|
|
|
61
60
|
export * from './textarea';
|
|
62
61
|
export * from './theme';
|
|
63
62
|
export * from './theme-button';
|
|
63
|
+
export * from './timeline';
|
|
64
64
|
export * from './tooltip';
|
|
65
65
|
export * from './tree';
|
|
66
66
|
export * from './types';
|
package/src/input/input.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { html, LitElement, nothing, PropertyValueMap } from 'lit'
|
|
1
|
+
import { html, LitElement, nothing, PropertyValueMap, unsafeCSS } from 'lit'
|
|
2
2
|
import { customElement, property, query, state } from 'lit/decorators.js'
|
|
3
3
|
import { ifDefined } from 'lit/directives/if-defined.js'
|
|
4
4
|
import { createRef, ref } from 'lit/directives/ref.js'
|
|
@@ -43,18 +43,11 @@ export type SchmancyInputEnterEvent = CustomEvent<EventDetails>
|
|
|
43
43
|
export type InputSize = 'xxs' | 'xs' | 'sm' | 'md' | 'lg'
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Enhanced version of the SchmancyInput component with improved form integration
|
|
47
|
+
* and compatibility with legacy API.
|
|
47
48
|
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* <schmancy-form @submit=${onSubmit}>
|
|
52
|
-
* <schmancy-input name="email" type="email" label="Email" required></schmancy-input>
|
|
53
|
-
* </schmancy-form>
|
|
54
|
-
* @platform input change - Schmancy-skinned native `<input>`. Degrades to `<input class="…">` styled via Tailwind if the tag never registers.
|
|
55
|
-
* @fires input - `CustomEvent<{value: string}>` on every keystroke.
|
|
56
|
-
* @fires change - `CustomEvent<{value: string}>` on blur/change.
|
|
57
|
-
* @fires enter - `CustomEvent<{value: string}>` when user presses Enter.
|
|
49
|
+
* This component uses the native form association API and maintains parity with
|
|
50
|
+
* native input behaviors while providing a stylish, accessible interface.
|
|
58
51
|
*
|
|
59
52
|
* @prop {string} name - Name attribute for form submission (inherited from FormFieldMixin)
|
|
60
53
|
* @prop {string} label - Label text for the form field (inherited from FormFieldMixin)
|
|
@@ -66,7 +59,7 @@ export type InputSize = 'xxs' | 'xs' | 'sm' | 'md' | 'lg'
|
|
|
66
59
|
* @prop {string} hint - Optional hint text to display below the field (inherited from FormFieldMixin)
|
|
67
60
|
*/
|
|
68
61
|
@customElement('schmancy-input')
|
|
69
|
-
export default class SchmancyInput extends SchmancyFormField(style) {
|
|
62
|
+
export default class SchmancyInput extends SchmancyFormField(unsafeCSS(style)) {
|
|
70
63
|
// ----------------------------
|
|
71
64
|
// A) Public properties
|
|
72
65
|
// ----------------------------
|