@mhmo91/schmancy 0.10.41 → 0.10.43
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 +291 -179
- package/dist/SchmancyElement-CeKrBW2j.cjs +2 -0
- package/dist/SchmancyElement-CeKrBW2j.cjs.map +1 -0
- package/dist/SchmancyElement-Ob9yGkiG.js +286 -0
- package/dist/SchmancyElement-Ob9yGkiG.js.map +1 -0
- package/dist/agent/schmancy.agent.js +4057 -4082
- package/dist/agent/schmancy.agent.js.map +1 -1
- package/dist/agent/schmancy.manifest.json +225 -94
- package/dist/animation-CCOIW4wJ.cjs.map +1 -1
- package/dist/animation-DCznELuT.js.map +1 -1
- package/dist/area-CbajcnmJ.cjs +21 -0
- package/dist/area-CbajcnmJ.cjs.map +1 -0
- package/dist/{area-BiM7V2ns.js → area-MxLAyWgV.js} +22 -22
- package/dist/area-MxLAyWgV.js.map +1 -0
- package/dist/area.cjs +1 -1
- package/dist/area.js +1 -1
- package/dist/{audio-CxO_j__6.js → audio-B_0PGwYC.js} +1 -1
- package/dist/audio-B_0PGwYC.js.map +1 -0
- package/dist/{audio-xXFfMPCS.cjs → audio-CpwrIaw-.cjs} +1 -1
- package/dist/audio-CpwrIaw-.cjs.map +1 -0
- package/dist/audio.cjs +1 -1
- package/dist/audio.js +2 -2
- package/dist/autocomplete-CILzaDB7.cjs +115 -0
- package/dist/autocomplete-CILzaDB7.cjs.map +1 -0
- package/dist/{autocomplete-DUBY9RtH.js → autocomplete-DV9RxCun.js} +113 -113
- package/dist/autocomplete-DV9RxCun.js.map +1 -0
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.cjs.map +1 -1
- package/dist/avatar.js +4 -4
- package/dist/avatar.js.map +1 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/{boat-ScvAima3.js → boat-DoZGgQ0P.js} +6 -8
- package/dist/{boat-ScvAima3.js.map → boat-DoZGgQ0P.js.map} +1 -1
- package/dist/{boat-BIYaPAHp.cjs → boat-sg0cWO8a.cjs} +3 -5
- package/dist/{boat-BIYaPAHp.cjs.map → boat-sg0cWO8a.cjs.map} +1 -1
- package/dist/boat.cjs +1 -1
- package/dist/boat.js +1 -1
- package/dist/breadcrumb.cjs +32 -31
- package/dist/breadcrumb.cjs.map +1 -1
- package/dist/breadcrumb.js +33 -32
- package/dist/breadcrumb.js.map +1 -1
- package/dist/busy-Brs-TDh9.cjs +133 -0
- package/dist/busy-Brs-TDh9.cjs.map +1 -0
- package/dist/busy-g4LoQmhB.js +172 -0
- package/dist/busy-g4LoQmhB.js.map +1 -0
- package/dist/busy.cjs +1 -1
- package/dist/busy.js +1 -1
- package/dist/{button-BTpxQ1Kd.cjs → button-Cml67Y_d.cjs} +41 -32
- package/dist/button-Cml67Y_d.cjs.map +1 -0
- package/dist/{button-D7QHfYf4.js → button-DWANpZfD.js} +43 -34
- package/dist/button-DWANpZfD.js.map +1 -0
- package/dist/button.cjs +40 -33
- package/dist/button.cjs.map +1 -1
- package/dist/button.js +42 -35
- package/dist/button.js.map +1 -1
- package/dist/calendar-2dJrw9pR.cjs +58 -0
- package/dist/calendar-2dJrw9pR.cjs.map +1 -0
- package/dist/calendar-kCe5LaBa.js +434 -0
- package/dist/calendar-kCe5LaBa.js.map +1 -0
- package/dist/calendar.cjs +1 -0
- package/dist/calendar.js +2 -0
- package/dist/{card-DCdtJ5Dy.js → card-CS_hYJbz.js} +136 -136
- package/dist/card-CS_hYJbz.js.map +1 -0
- package/dist/card-d0KhTnx5.cjs +177 -0
- package/dist/card-d0KhTnx5.cjs.map +1 -0
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/{checkbox-DVtyPk7l.js → checkbox-Bjp7kWuE.js} +2 -2
- package/dist/{checkbox-DVtyPk7l.js.map → checkbox-Bjp7kWuE.js.map} +1 -1
- package/dist/{checkbox-CYGOVPP-.cjs → checkbox-DZ2Wrz7Y.cjs} +1 -1
- package/dist/{checkbox-CYGOVPP-.cjs.map → checkbox-DZ2Wrz7Y.cjs.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{chips-DVes-BSz.cjs → chips-BHBVkxsa.cjs} +142 -153
- package/dist/chips-BHBVkxsa.cjs.map +1 -0
- package/dist/{chips-C5bpgWyf.js → chips-DACeW7YL.js} +127 -138
- package/dist/chips-DACeW7YL.js.map +1 -0
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +2 -2
- package/dist/connectivity.cjs +54 -38
- package/dist/connectivity.cjs.map +1 -1
- package/dist/connectivity.js +56 -40
- package/dist/connectivity.js.map +1 -1
- package/dist/content-drawer.cjs +1 -1
- package/dist/content-drawer.js +1 -1
- package/dist/cursor-glow-Ah7VXSj7.js.map +1 -1
- package/dist/cursor-glow-Bulq-38P.cjs.map +1 -1
- package/dist/date-range-CVAWMdar.cjs +138 -0
- package/dist/date-range-CVAWMdar.cjs.map +1 -0
- package/dist/date-range-D2NZU5Yg.js +433 -0
- package/dist/date-range-D2NZU5Yg.js.map +1 -0
- package/dist/{date-range-inline-Dx4Reboo.cjs → date-range-inline-CGM0SPK9.cjs} +2 -4
- package/dist/date-range-inline-CGM0SPK9.cjs.map +1 -0
- package/dist/{date-range-inline-DPqY9YYf.js → date-range-inline-D6Ozerzw.js} +3 -5
- package/dist/date-range-inline-D6Ozerzw.js.map +1 -0
- 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 +2 -2
- package/dist/dayjs.min-CvRZTfam.cjs +1 -0
- package/dist/dayjs.min-CvRZTfam.cjs.map +1 -0
- package/dist/dayjs.min-DnELezPs.js +296 -0
- package/dist/dayjs.min-DnELezPs.js.map +1 -0
- package/dist/delay.cjs +1 -1
- package/dist/delay.js +3 -3
- package/dist/{details-BnleHmYe.js → details-Ct1_GwKr.js} +104 -92
- package/dist/details-Ct1_GwKr.js.map +1 -0
- package/dist/{details-Bx2jSJxG.cjs → details-D4fVOaj4.cjs} +109 -97
- package/dist/details-D4fVOaj4.cjs.map +1 -0
- package/dist/details.cjs +1 -1
- package/dist/details.js +1 -1
- package/dist/{directives-CYf2fAdA.cjs → directives-B2VxfwRL.cjs} +1 -1
- package/dist/directives-B2VxfwRL.cjs.map +1 -0
- package/dist/{directives-d1rEbW1A.js → directives-Dj8jlv-Q.js} +3 -3
- package/dist/directives-Dj8jlv-Q.js.map +1 -0
- package/dist/directives.cjs +1 -1
- package/dist/directives.js +2 -2
- package/dist/discovery.service-CIa3Eeuk.cjs.map +1 -1
- package/dist/discovery.service-DZFxtRwW.js.map +1 -1
- package/dist/divider-B3v33OnX.cjs +57 -0
- package/dist/divider-B3v33OnX.cjs.map +1 -0
- package/dist/divider-BJHW3q11.js +89 -0
- package/dist/divider-BJHW3q11.js.map +1 -0
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.cjs +40 -40
- package/dist/dropdown.cjs.map +1 -1
- package/dist/dropdown.js +41 -41
- package/dist/dropdown.js.map +1 -1
- package/dist/{expand-DNrWuG_-.js → expand-BT8mOu8Q.js} +103 -97
- package/dist/expand-BT8mOu8Q.js.map +1 -0
- package/dist/expand-D0YdR9nR.cjs +147 -0
- package/dist/expand-D0YdR9nR.cjs.map +1 -0
- package/dist/expand.cjs +1 -1
- package/dist/expand.js +1 -1
- package/dist/fab.cjs +1 -1
- package/dist/fab.cjs.map +1 -1
- package/dist/fab.js +2 -2
- package/dist/fab.js.map +1 -1
- package/dist/{float-V7VQKTb8.cjs → float-BPQlDyai.cjs} +1 -1
- package/dist/{float-V7VQKTb8.cjs.map → float-BPQlDyai.cjs.map} +1 -1
- package/dist/{float-C_CMle0q.js → float-BQcxj3i_.js} +2 -2
- package/dist/{float-C_CMle0q.js.map → float-BQcxj3i_.js.map} +1 -1
- package/dist/float.cjs +1 -1
- package/dist/float.js +1 -1
- package/dist/{form-DaaAQd2A.cjs → form-CoWFnClb.cjs} +8 -13
- package/dist/form-CoWFnClb.cjs.map +1 -0
- package/dist/{form-CMgYSZ3y.js → form-hC2LvCHX.js} +10 -15
- package/dist/form-hC2LvCHX.js.map +1 -0
- package/dist/form.cjs +12 -13
- package/dist/form.cjs.map +1 -1
- package/dist/form.js +23 -24
- package/dist/form.js.map +1 -1
- package/dist/gravity-6pL6CfIr.cjs.map +1 -1
- package/dist/gravity-sVK3zGBF.js.map +1 -1
- package/dist/handover/agent-runtime-followups.md +1 -1
- package/dist/handover/agent-runtime-v1.md +3 -3
- package/dist/{hashContent-iRZJJWtE.cjs.map → hashContent--s09Ed_g.cjs.map} +1 -1
- package/dist/{hashContent-BqU6v1Xr.js.map → hashContent-CAvrQ56N.js.map} +1 -1
- package/dist/icons-BeGKDZ-k.cjs +22 -0
- package/dist/icons-BeGKDZ-k.cjs.map +1 -0
- package/dist/{icons-mbpHO_73.js → icons-DEJnIxml.js} +20 -22
- package/dist/icons-DEJnIxml.js.map +1 -0
- package/dist/icons.cjs +1 -1
- package/dist/icons.js +1 -1
- package/dist/{iframe-88SN5JPu.cjs → iframe-BkSukM9C.cjs} +9 -9
- package/dist/iframe-BkSukM9C.cjs.map +1 -0
- package/dist/{iframe-U3P1DnQv.js → iframe-V3S-bwEY.js} +10 -10
- package/dist/iframe-V3S-bwEY.js.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 +61 -60
- package/dist/{input-CPWvGjE4.js → input-CPFCSQld.js} +3 -10
- package/dist/input-CPFCSQld.js.map +1 -0
- package/dist/{input-BY4Korc5.cjs → input-DSfwfhhj.cjs} +2 -9
- package/dist/input-DSfwfhhj.cjs.map +1 -0
- package/dist/input-chip-BUuFJUky.cjs +129 -0
- package/dist/input-chip-BUuFJUky.cjs.map +1 -0
- package/dist/{input-chip-CCZ3i3Sf.js → input-chip-C3a1fwKB.js} +87 -104
- package/dist/input-chip-C3a1fwKB.js.map +1 -0
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/json.cjs +5 -1
- package/dist/json.cjs.map +1 -1
- package/dist/json.js +8 -4
- package/dist/json.js.map +1 -1
- package/dist/kbd.cjs +28 -28
- package/dist/kbd.cjs.map +1 -1
- package/dist/kbd.js +29 -29
- package/dist/kbd.js.map +1 -1
- package/dist/{layout-BhfC26Ks.cjs → layout-CdyHy_oX.cjs} +1 -1
- package/dist/layout-CdyHy_oX.cjs.map +1 -0
- package/dist/{layout-DC0Npqu7.js → layout-k6fOkpif.js} +1 -1
- package/dist/layout-k6fOkpif.js.map +1 -0
- package/dist/layout.cjs +26 -26
- package/dist/layout.cjs.map +1 -1
- package/dist/layout.js +27 -27
- package/dist/layout.js.map +1 -1
- package/dist/lazy-BaAiIUru.js.map +1 -1
- package/dist/lazy-C-7a4FAe.cjs.map +1 -1
- package/dist/{lightbox-BSwWvDQc.js → lightbox-DIG0VLOK.js} +8 -14
- package/dist/lightbox-DIG0VLOK.js.map +1 -0
- package/dist/{lightbox-KrZQH9w9.cjs → lightbox-E5rgd-hu.cjs} +7 -13
- package/dist/lightbox-E5rgd-hu.cjs.map +1 -0
- package/dist/lightbox.cjs +1 -1
- package/dist/lightbox.js +1 -1
- package/dist/list-BRz0rDSH.cjs +47 -0
- package/dist/list-BRz0rDSH.cjs.map +1 -0
- package/dist/{list-BwGtAAfi.js → list-NrOYDPBo.js} +48 -34
- package/dist/list-NrOYDPBo.js.map +1 -0
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/magnetic-DKtc4umC.cjs.map +1 -1
- package/dist/magnetic-DaOOv5Dz.js.map +1 -1
- package/dist/{menu-DX8d96x-.js → menu-B1Ei9SVj.js} +12 -12
- package/dist/menu-B1Ei9SVj.js.map +1 -0
- package/dist/{menu-jT_yAk5V.cjs → menu-Duvl66Nl.cjs} +10 -10
- package/dist/menu-Duvl66Nl.cjs.map +1 -0
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/{mixins-XGVIOvKt.cjs → mixins-Cjn20BQH.cjs} +42 -170
- package/dist/mixins-Cjn20BQH.cjs.map +1 -0
- package/dist/{mixins-COeG4DiX.js → mixins-q4KAL8Xr.js} +43 -177
- package/dist/mixins-q4KAL8Xr.js.map +1 -0
- 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 +2 -4
- package/dist/navigation-rail.cjs.map +1 -1
- package/dist/navigation-rail.js +3 -5
- package/dist/navigation-rail.js.map +1 -1
- package/dist/{notification-CAJVpLne.js → notification-COhUhUCr.js} +5 -7
- package/dist/notification-COhUhUCr.js.map +1 -0
- package/dist/{notification-DO3VXceY.cjs → notification-DsdA_MJe.cjs} +2 -4
- package/dist/notification-DsdA_MJe.cjs.map +1 -0
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +1 -1
- package/dist/{option-JISY0wZJ.js → option-BIzgTbXz.js} +20 -20
- package/dist/option-BIzgTbXz.js.map +1 -0
- package/dist/option-C5hhqR2z.cjs +43 -0
- package/dist/option-C5hhqR2z.cjs.map +1 -0
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{overlay-B1jVf-ge.cjs → overlay-BzgF8P7i.cjs} +48 -41
- package/dist/overlay-BzgF8P7i.cjs.map +1 -0
- package/dist/{overlay-CT-tMHDX.js → overlay-LoRRemny.js} +52 -45
- package/dist/overlay-LoRRemny.js.map +1 -0
- package/dist/overlay-stack-Bdr9lOqi.cjs.map +1 -1
- package/dist/overlay-stack-D2rgxQLh.js.map +1 -1
- package/dist/overlay.cjs +1 -1
- package/dist/{overlay.confirm-body-Dn-Zgogx.js → overlay.confirm-body-D0b1MoCw.js} +30 -45
- package/dist/overlay.confirm-body-D0b1MoCw.js.map +1 -0
- package/dist/{overlay.confirm-body-mYDYoJL8.cjs → overlay.confirm-body-DCneq73Z.cjs} +22 -37
- package/dist/overlay.confirm-body-DCneq73Z.cjs.map +1 -0
- package/dist/overlay.js +3 -3
- package/dist/{overlay.service-yqTOyLlr.js → overlay.service-BuUeti6X.js} +2 -2
- package/dist/overlay.service-BuUeti6X.js.map +1 -0
- package/dist/{overlay.service-BQmva9GY.cjs → overlay.service-MMTiW2T3.cjs} +1 -1
- package/dist/overlay.service-MMTiW2T3.cjs.map +1 -0
- package/dist/{progress-CGWozq_n.js → progress-D7n3SKAO.js} +50 -50
- package/dist/progress-D7n3SKAO.js.map +1 -0
- package/dist/progress-DsCnFsH5.cjs +51 -0
- package/dist/progress-DsCnFsH5.cjs.map +1 -0
- package/dist/progress.cjs +1 -1
- package/dist/progress.js +1 -1
- package/dist/{radio-group-DoSX5D2V.cjs → radio-group-CaAjg9UV.cjs} +1 -1
- package/dist/radio-group-CaAjg9UV.cjs.map +1 -0
- package/dist/{radio-group-CXkq6qAF.js → radio-group-Drpl6Pl8.js} +2 -2
- package/dist/radio-group-Drpl6Pl8.js.map +1 -0
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/range.cjs +4 -2
- package/dist/range.cjs.map +1 -1
- package/dist/range.js +5 -3
- package/dist/range.js.map +1 -1
- package/dist/reduced-motion-D-L12p7G.js.map +1 -1
- package/dist/reduced-motion-Ds-HjMzn.cjs.map +1 -1
- package/dist/{rxjs-utils-Csnks202.cjs.map → rxjs-utils-4P2v57ke.cjs.map} +1 -1
- package/dist/{rxjs-utils-d-ivVN84.js.map → rxjs-utils-JMFdgQSl.js.map} +1 -1
- package/dist/rxjs-utils.cjs +1 -1
- package/dist/rxjs-utils.js +1 -1
- package/dist/search-DPKoC-dT.cjs.map +1 -1
- package/dist/search-MvIBA93K.js.map +1 -1
- package/dist/{select-CU90i50_.js → select-CTXkrrVZ.js} +13 -13
- package/dist/select-CTXkrrVZ.js.map +1 -0
- package/dist/select-DcLcpPCh.cjs +56 -0
- package/dist/select-DcLcpPCh.cjs.map +1 -0
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/skeleton.cjs +37 -33
- package/dist/skeleton.cjs.map +1 -1
- package/dist/skeleton.js +38 -34
- package/dist/skeleton.js.map +1 -1
- package/dist/skills/schmancy/surface.md +79 -39
- package/dist/skills/surface.md +79 -39
- package/dist/slider.cjs +31 -31
- package/dist/slider.cjs.map +1 -1
- package/dist/slider.js +32 -32
- package/dist/slider.js.map +1 -1
- package/dist/{sound.service-m8WjOhjn.js → sound.service-AJwuk3yr.js} +1 -1
- package/dist/sound.service-AJwuk3yr.js.map +1 -0
- package/dist/{sound.service-Qhr8nCeG.cjs → sound.service-CVsxhQkX.cjs} +1 -1
- package/dist/sound.service-CVsxhQkX.cjs.map +1 -0
- package/dist/{splash-screen-Cs3dbPN3.js → splash-screen-DANfqvlo.js} +23 -26
- package/dist/splash-screen-DANfqvlo.js.map +1 -0
- package/dist/splash-screen-K74cgU6S.cjs +38 -0
- package/dist/splash-screen-K74cgU6S.cjs.map +1 -0
- package/dist/splash-screen.cjs +1 -1
- package/dist/splash-screen.js +1 -1
- package/dist/{src-CCVbLLgC.js → src-DAtcPmCb.js} +295 -389
- package/dist/src-DAtcPmCb.js.map +1 -0
- package/dist/src-DuRvYagm.cjs +237 -0
- package/dist/src-DuRvYagm.cjs.map +1 -0
- package/dist/{state--x58-AuK.cjs → state-BWQiqN6I.cjs} +1 -1
- package/dist/state-BWQiqN6I.cjs.map +1 -0
- package/dist/{state-QSwQ61sA.js → state-DBA_gzJO.js} +1 -1
- package/dist/state-DBA_gzJO.js.map +1 -0
- package/dist/state.cjs +1 -1
- package/dist/state.js +2 -2
- package/dist/steps.cjs +20 -12
- package/dist/steps.cjs.map +1 -1
- package/dist/steps.js +21 -13
- package/dist/steps.js.map +1 -1
- package/dist/surface-COBvWWFb.cjs +7 -0
- package/dist/surface-COBvWWFb.cjs.map +1 -0
- package/dist/{surface-cqMsHJHM.js → surface-DXk1X1tL.js} +9 -9
- package/dist/surface-DXk1X1tL.js.map +1 -0
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/switch.cjs +13 -4
- package/dist/switch.cjs.map +1 -1
- package/dist/switch.js +14 -5
- package/dist/switch.js.map +1 -1
- package/dist/table.cjs +4 -10
- package/dist/table.cjs.map +1 -1
- package/dist/table.js +5 -11
- package/dist/table.js.map +1 -1
- package/dist/{tabs-Ib0Mh__1.js → tabs-BYhFWnsx.js} +7 -7
- package/dist/tabs-BYhFWnsx.js.map +1 -0
- package/dist/{tabs-Dk9UDWpq.cjs → tabs-CJwB0fr0.cjs} +6 -6
- package/dist/tabs-CJwB0fr0.cjs.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 +1 -1
- package/dist/{textarea-CcRsw08B.js → textarea-BjDx1w2g.js} +37 -41
- package/dist/textarea-BjDx1w2g.js.map +1 -0
- package/dist/{textarea-Cntd9tfV.cjs → textarea-CGgznhd6.cjs} +36 -40
- package/dist/textarea-CGgznhd6.cjs.map +1 -0
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{theme-wwFbvp5e.cjs → theme-BVul7lHS.cjs} +6 -6
- package/dist/{theme-wwFbvp5e.cjs.map → theme-BVul7lHS.cjs.map} +1 -1
- package/dist/{theme-CKYXG0le.js → theme-Dvm5J8nh.js} +11 -11
- package/dist/{theme-CKYXG0le.js.map → theme-Dvm5J8nh.js.map} +1 -1
- package/dist/{theme-button-iLqT56KA.js → theme-button-Bko5ohFP.js} +2 -2
- package/dist/{theme-button-iLqT56KA.js.map → theme-button-Bko5ohFP.js.map} +1 -1
- package/dist/{theme-button-DE9Lrl7m.cjs → theme-button-YLY7zR1c.cjs} +1 -1
- package/dist/{theme-button-DE9Lrl7m.cjs.map → theme-button-YLY7zR1c.cjs.map} +1 -1
- package/dist/theme-button.cjs +1 -1
- package/dist/theme-button.js +1 -1
- package/dist/theme.cjs +1 -1
- package/dist/{theme.interface-CSt7JUBD.cjs.map → theme.interface-B-qxDsZQ.cjs.map} +1 -1
- package/dist/{theme.interface-odQEpZZH.js.map → theme.interface-B7caS5cg.js.map} +1 -1
- package/dist/theme.js +4 -4
- package/dist/{theme.service-5RjyR7Sy.js → theme.service-D94nm7Bf.js} +1 -1
- package/dist/theme.service-D94nm7Bf.js.map +1 -0
- package/dist/{theme.service-DA6KY52G.cjs → theme.service-h2fXQq7x.cjs} +1 -1
- package/dist/theme.service-h2fXQq7x.cjs.map +1 -0
- package/dist/tooltip.cjs.map +1 -1
- package/dist/tooltip.js.map +1 -1
- package/dist/tree.cjs +14 -14
- package/dist/tree.cjs.map +1 -1
- package/dist/tree.js +15 -15
- package/dist/tree.js.map +1 -1
- package/dist/types.cjs +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.js +19 -2
- package/dist/types.js.map +1 -1
- package/dist/typewriter.cjs.map +1 -1
- package/dist/typewriter.js.map +1 -1
- package/dist/typography-ByF2k5yW.js +358 -0
- package/dist/typography-ByF2k5yW.js.map +1 -0
- package/dist/typography-Cfav17it.cjs +282 -0
- package/dist/typography-Cfav17it.cjs.map +1 -0
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/dist/utils-DIXndz6Q.cjs.map +1 -0
- package/dist/utils-dSPH7Oh9.js.map +1 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/visually-hidden.cjs +13 -13
- package/dist/visually-hidden.cjs.map +1 -1
- package/dist/visually-hidden.js +14 -14
- package/dist/visually-hidden.js.map +1 -1
- package/dist/window-Br1OmpL-.cjs +67 -0
- package/dist/window-Br1OmpL-.cjs.map +1 -0
- package/dist/{window-Db5ZYY6t.js → window-CCmN4but.js} +28 -20
- package/dist/window-CCmN4but.js.map +1 -0
- package/dist/window.cjs +1 -1
- package/dist/window.js +1 -1
- package/package.json +1 -1
- package/skills/schmancy/surface.md +79 -39
- package/src/area/area.component.ts +249 -163
- package/src/area/area.service.test.ts +994 -1006
- package/src/area/area.service.ts +76 -72
- package/src/area/index.ts +7 -7
- package/src/area/lazy.ts +39 -42
- package/src/area/route.component.ts +54 -52
- package/src/area/router.types.ts +7 -7
- package/src/audio/emotional-sounds.ts +880 -801
- package/src/audio/sound.service.ts +26 -5
- package/src/avatar/avatar.ts +4 -4
- package/src/badge/badge.ts +60 -209
- package/src/badge/index.ts +1 -1
- package/src/boat/boat.ts +2 -4
- package/src/breadcrumb/breadcrumb.ts +37 -32
- package/src/busy/busy.ts +15 -12
- package/src/busy/index.ts +2 -2
- package/src/busy/spinner.ts +132 -119
- package/src/button/button.test.ts +5 -1
- package/src/button/button.ts +113 -72
- package/src/button/icon-button.ts +64 -46
- package/src/button/index.ts +2 -2
- package/src/calendar/calendar.test.ts +504 -0
- package/src/calendar/calendar.ts +587 -0
- package/src/calendar/index.ts +2 -0
- package/src/card/actions.ts +11 -9
- package/src/card/card.ts +79 -77
- package/src/card/content.ts +8 -6
- package/src/card/index.ts +4 -4
- package/src/card/media.ts +50 -50
- package/src/chips/assist-chip.ts +1 -1
- package/src/chips/chips.ts +1 -1
- package/src/chips/filter-chip.ts +1 -1
- package/src/chips/index.ts +1 -1
- package/src/chips/input-chip.ts +1 -1
- package/src/chips/suggestion-chip.ts +1 -1
- package/src/connectivity/connectivity-status.ts +91 -65
- package/src/content-drawer/drawer.service.ts +47 -36
- package/src/content-drawer/drawer.ts +31 -18
- package/src/content-drawer/index.ts +5 -5
- package/src/content-drawer/main.ts +9 -7
- package/src/content-drawer/sheet.ts +8 -6
- package/src/date-range-inline/date-range-inline.ts +523 -522
- package/src/date-range-inline/index.ts +2 -2
- package/src/delay/index.ts +1 -1
- package/src/details/details.ts +119 -105
- package/src/details/index.ts +1 -1
- package/src/directives/ai-badge.ts +1 -5
- package/src/directives/animate-text.ts +43 -31
- package/src/directives/art/effects/howl.ts +1 -4
- package/src/directives/art/effects/samwa.ts +11 -5
- package/src/directives/art/effects/snow.ts +1 -2
- package/src/directives/battery.ts +21 -12
- package/src/directives/confirm-click.ts +9 -17
- package/src/directives/cursor-glow.ts +1 -1
- package/src/directives/cycle-text.ts +7 -21
- package/src/directives/drag.ts +50 -45
- package/src/directives/fyi.ts +1 -6
- package/src/directives/gravity.ts +10 -8
- package/src/directives/hummingbird.ts +256 -107
- package/src/directives/index.ts +29 -29
- package/src/directives/intersect.ts +11 -11
- package/src/directives/layout.ts +25 -36
- package/src/directives/liquid.ts +4 -10
- package/src/directives/living-border.ts +7 -5
- package/src/directives/long-press.ts +2 -1
- package/src/directives/magnetic.ts +7 -6
- package/src/directives/nebula.ts +34 -28
- package/src/directives/overflow-within.ts +18 -20
- package/src/directives/reduced-motion.ts +9 -9
- package/src/directives/reveal.ts +193 -195
- package/src/directives/ripple.ts +9 -7
- package/src/directives/urgent.ts +3 -1
- package/src/directives/working-snake.ts +1 -1
- package/src/discovery/discovery.service.ts +198 -210
- package/src/discovery/index.ts +1 -1
- package/src/divider/divider.ts +49 -47
- package/src/divider/index.ts +1 -1
- package/src/dropdown/dropdown-content.ts +42 -40
- package/src/dropdown/index.ts +2 -2
- package/src/expand/expand-root.component.ts +70 -61
- package/src/expand/expand.component.ts +48 -43
- package/src/fab/fab.test.ts +1 -2
- package/src/fab/fab.ts +2 -4
- package/src/form/fields/autocomplete/autocomplete.scss +6 -2
- package/src/form/fields/autocomplete/autocomplete.ts +712 -724
- package/src/form/fields/autocomplete/index.ts +1 -1
- package/src/form/fields/checkbox/checkbox.ts +1 -4
- package/src/form/fields/chips/assist-chip.ts +69 -72
- package/src/form/fields/chips/chips.ts +14 -15
- package/src/form/fields/chips/filter-chip.ts +36 -32
- package/src/form/fields/chips/index.ts +5 -5
- package/src/form/fields/chips/input-chip.ts +130 -142
- package/src/form/fields/chips/suggestion-chip.ts +69 -72
- package/src/form/fields/date-range/date-range-dialog.ts +141 -194
- package/src/form/fields/date-range/date-range-helpers.ts +63 -64
- package/src/form/fields/date-range/date-range.test.ts +359 -122
- package/src/form/fields/date-range/date-range.ts +319 -395
- package/src/form/fields/date-range/index.ts +2 -2
- package/src/form/fields/input/index.ts +8 -8
- package/src/form/fields/input/input.scss +30 -26
- package/src/form/fields/input/input.test.ts +4 -1
- package/src/form/fields/input/input.ts +4 -20
- package/src/form/fields/radio-group/index.ts +2 -2
- package/src/form/fields/radio-group/radio-button.ts +8 -8
- package/src/form/fields/radio-group/radio-group.ts +4 -1
- package/src/form/fields/range/range.ts +3 -1
- package/src/form/fields/select/index.ts +2 -2
- package/src/form/fields/select/select.ts +51 -45
- package/src/form/fields/switch/switch.ts +13 -7
- package/src/form/fields/textarea/index.ts +1 -1
- package/src/form/fields/textarea/textarea.ts +44 -49
- package/src/form/form-summary.ts +15 -14
- package/src/form/form.test.ts +0 -1
- package/src/form/form.ts +11 -23
- package/src/icons/icon.ts +25 -25
- package/src/icons/index.ts +1 -1
- package/src/iframe/iframe.ts +11 -9
- package/src/index.ts +1 -0
- package/src/json/json.ts +9 -2
- package/src/kbd/kbd.ts +30 -28
- package/src/layout/scroll/index.ts +1 -1
- package/src/layout/scroll/scroll.ts +54 -54
- package/src/lightbox/lightbox-service.ts +27 -18
- package/src/lightbox/lightbox.directive.ts +2 -1
- package/src/lightbox/lightbox.ts +21 -38
- package/src/list/index.ts +3 -3
- package/src/list/list-item.ts +32 -26
- package/src/list/list.ts +13 -8
- package/src/menu/index.ts +2 -2
- package/src/menu/menu-item.ts +7 -5
- package/src/menu/menu.ts +8 -6
- package/src/nav-drawer/appbar.ts +9 -7
- package/src/nav-drawer/content.ts +10 -8
- package/src/nav-drawer/drawer.ts +29 -25
- package/src/nav-drawer/index.ts +6 -6
- package/src/navigation-bar/index.ts +2 -2
- package/src/navigation-bar/navigation-bar-item.ts +127 -118
- package/src/navigation-bar/navigation-bar.ts +103 -91
- package/src/navigation-rail/index.ts +2 -2
- package/src/navigation-rail/navigation-rail.ts +21 -22
- package/src/notification/index.ts +6 -6
- package/src/notification/notification-service.ts +1 -2
- package/src/notification/notification.scss +5 -1
- package/src/notification/notification.ts +1 -3
- package/src/notification/notify.ts +204 -207
- package/src/option/index.ts +1 -1
- package/src/option/option.ts +26 -25
- package/src/overlay/overlay.animations.ts +4 -14
- package/src/overlay/overlay.component.ts +110 -131
- package/src/overlay/overlay.confirm-body.ts +26 -48
- package/src/overlay/overlay.gestures.ts +8 -10
- package/src/overlay/overlay.layout.ts +1 -4
- package/src/overlay/overlay.positioning.ts +4 -15
- package/src/overlay/overlay.service.ts +9 -24
- package/src/overlay/overlay.stack.test.ts +4 -1
- package/src/overlay/overlay.stack.ts +4 -4
- package/src/overlay/overlay.types.ts +11 -20
- package/src/progress/index.ts +1 -1
- package/src/progress/progress.ts +135 -133
- package/src/rxjs-utils/index.ts +6 -6
- package/src/rxjs-utils/waitForElement.ts +20 -20
- package/src/rxjs-utils/waitForElementAll.ts +21 -21
- package/src/rxjs-utils/waitForElements.ts +27 -27
- package/src/rxjs-utils/waitForElementsAll.ts +27 -29
- package/src/rxjs-utils/waitUntil.ts +7 -12
- package/src/skeleton/skeleton.ts +39 -33
- package/src/slider/index.ts +2 -2
- package/src/slider/slide.ts +14 -12
- package/src/slider/slider.ts +24 -22
- package/src/splash-screen/index.ts +1 -1
- package/src/splash-screen/splash-screen.ts +26 -27
- package/src/state/active-host.ts +4 -5
- package/src/state/index.ts +34 -53
- package/src/state/persist.ts +14 -11
- package/src/state/schmancy-context.ts +88 -88
- package/src/state/state.test-d.ts +3 -13
- package/src/state/state.test.ts +1 -4
- package/src/steps/index.ts +3 -3
- package/src/steps/schmancy-step.ts +41 -31
- package/src/steps/schmancy-steps.ts +7 -5
- package/src/surface/index.ts +1 -1
- package/src/surface/surface.styles.ts +55 -191
- package/src/surface/surface.ts +18 -16
- package/src/table/index.ts +2 -2
- package/src/table/row.ts +1 -4
- package/src/table/table.ts +2 -5
- package/src/tabs/index.ts +2 -2
- package/src/tabs/tabs-group.ts +8 -6
- package/src/teleport/index.ts +2 -2
- package/src/test-utils/a11y.ts +1 -3
- package/src/theme/index.ts +17 -17
- package/src/theme/theme-audio-player.ts +18 -16
- package/src/theme/theme-controller-boat.ts +1 -1
- package/src/theme/theme-controller.ts +36 -32
- package/src/theme/theme.component.ts +5 -9
- package/src/theme/theme.events.ts +1 -1
- package/src/theme/theme.format.ts +7 -7
- package/src/theme/theme.service.ts +453 -468
- package/src/theme/theme.style.css +78 -23
- package/src/theme-button/index.ts +1 -1
- package/src/tooltip/tooltip.directive.ts +1 -1
- package/src/tree/index.ts +1 -1
- package/src/tree/tree.ts +24 -16
- package/src/types/surface.ts +38 -44
- package/src/typewriter/typewriter.directive.ts +30 -39
- package/src/typography/typography.ts +289 -269
- package/src/utils/animation.ts +2 -8
- package/src/utils/index.ts +6 -6
- package/src/utils/number.ts +480 -517
- package/src/utils/overlay-stack.ts +1 -3
- package/src/utils/search.ts +5 -9
- package/src/visually-hidden/visually-hidden.ts +15 -13
- package/src/window/window-manager.ts +6 -1
- package/src/window/window-position.ts +7 -5
- package/src/window/window.ts +146 -114
- package/types/mixins/surface.mixin.d.ts +8 -14
- package/types/src/badge/badge.d.ts +15 -48
- package/types/src/calendar/calendar.d.ts +108 -0
- package/types/src/calendar/calendar.test.d.ts +1 -0
- package/types/src/calendar/index.d.ts +2 -0
- package/types/src/directives/cursor-glow.d.ts +1 -1
- package/types/src/directives/hummingbird.d.ts +3 -3
- package/types/src/form/fields/date-range/date-range-dialog.d.ts +24 -28
- package/types/src/form/fields/date-range/date-range.d.ts +35 -66
- package/types/src/form/fields/date-range/date-range.test.d.ts +1 -0
- package/types/src/form/fields/date-range/index.d.ts +1 -1
- package/types/src/index.d.ts +1 -0
- package/types/src/surface/surface.d.ts +9 -7
- package/types/src/surface/surface.styles.d.ts +15 -20
- package/types/src/types/surface.d.ts +17 -22
- package/types/src/utils/number.d.ts +1 -1
- package/types/src/window/window.d.ts +0 -1
- package/dist/SchmancyElement-D9WA9FP9.cjs +0 -2
- package/dist/SchmancyElement-D9WA9FP9.cjs.map +0 -1
- package/dist/SchmancyElement-OWgz9ePG.js +0 -286
- package/dist/SchmancyElement-OWgz9ePG.js.map +0 -1
- package/dist/area-BiM7V2ns.js.map +0 -1
- package/dist/area-C7XjCoet.cjs +0 -21
- package/dist/area-C7XjCoet.cjs.map +0 -1
- package/dist/audio-CxO_j__6.js.map +0 -1
- package/dist/audio-xXFfMPCS.cjs.map +0 -1
- package/dist/autocomplete-DD7Hd59N.cjs +0 -115
- package/dist/autocomplete-DD7Hd59N.cjs.map +0 -1
- package/dist/autocomplete-DUBY9RtH.js.map +0 -1
- package/dist/busy-BjsO3y2A.js +0 -173
- package/dist/busy-BjsO3y2A.js.map +0 -1
- package/dist/busy-UbCGkTAi.cjs +0 -134
- package/dist/busy-UbCGkTAi.cjs.map +0 -1
- package/dist/button-BTpxQ1Kd.cjs.map +0 -1
- package/dist/button-D7QHfYf4.js.map +0 -1
- package/dist/card-DCdtJ5Dy.js.map +0 -1
- package/dist/card-rprhCYIC.cjs +0 -177
- package/dist/card-rprhCYIC.cjs.map +0 -1
- package/dist/chips-C5bpgWyf.js.map +0 -1
- package/dist/chips-DVes-BSz.cjs.map +0 -1
- package/dist/date-range-DDUuBlJ6.cjs +0 -142
- package/dist/date-range-DDUuBlJ6.cjs.map +0 -1
- package/dist/date-range-IPlbrhwW.js +0 -966
- package/dist/date-range-IPlbrhwW.js.map +0 -1
- package/dist/date-range-inline-DPqY9YYf.js.map +0 -1
- package/dist/date-range-inline-Dx4Reboo.cjs.map +0 -1
- package/dist/details-BnleHmYe.js.map +0 -1
- package/dist/details-Bx2jSJxG.cjs.map +0 -1
- package/dist/directives-CYf2fAdA.cjs.map +0 -1
- package/dist/directives-d1rEbW1A.js.map +0 -1
- package/dist/divider-CimQJVr3.cjs +0 -57
- package/dist/divider-CimQJVr3.cjs.map +0 -1
- package/dist/divider-Cr-rx3vA.js +0 -89
- package/dist/divider-Cr-rx3vA.js.map +0 -1
- package/dist/expand-DNrWuG_-.js.map +0 -1
- package/dist/expand-_cp8oBjp.cjs +0 -141
- package/dist/expand-_cp8oBjp.cjs.map +0 -1
- package/dist/form-CMgYSZ3y.js.map +0 -1
- package/dist/form-DaaAQd2A.cjs.map +0 -1
- package/dist/icons-C2RkSXjP.cjs +0 -24
- package/dist/icons-C2RkSXjP.cjs.map +0 -1
- package/dist/icons-mbpHO_73.js.map +0 -1
- package/dist/iframe-88SN5JPu.cjs.map +0 -1
- package/dist/iframe-U3P1DnQv.js.map +0 -1
- package/dist/input-BY4Korc5.cjs.map +0 -1
- package/dist/input-CPWvGjE4.js.map +0 -1
- package/dist/input-chip-CCZ3i3Sf.js.map +0 -1
- package/dist/input-chip-kytMdbaM.cjs +0 -146
- package/dist/input-chip-kytMdbaM.cjs.map +0 -1
- package/dist/layout-BhfC26Ks.cjs.map +0 -1
- package/dist/layout-DC0Npqu7.js.map +0 -1
- package/dist/lightbox-BSwWvDQc.js.map +0 -1
- package/dist/lightbox-KrZQH9w9.cjs.map +0 -1
- package/dist/list-BwGtAAfi.js.map +0 -1
- package/dist/list-DIs02A3d.cjs +0 -40
- package/dist/list-DIs02A3d.cjs.map +0 -1
- package/dist/menu-DX8d96x-.js.map +0 -1
- package/dist/menu-jT_yAk5V.cjs.map +0 -1
- package/dist/mixins-COeG4DiX.js.map +0 -1
- package/dist/mixins-XGVIOvKt.cjs.map +0 -1
- package/dist/notification-CAJVpLne.js.map +0 -1
- package/dist/notification-DO3VXceY.cjs.map +0 -1
- package/dist/option-BNo1Zs-l.cjs +0 -43
- package/dist/option-BNo1Zs-l.cjs.map +0 -1
- package/dist/option-JISY0wZJ.js.map +0 -1
- package/dist/overlay-B1jVf-ge.cjs.map +0 -1
- package/dist/overlay-CT-tMHDX.js.map +0 -1
- package/dist/overlay.confirm-body-Dn-Zgogx.js.map +0 -1
- package/dist/overlay.confirm-body-mYDYoJL8.cjs.map +0 -1
- package/dist/overlay.service-BQmva9GY.cjs.map +0 -1
- package/dist/overlay.service-yqTOyLlr.js.map +0 -1
- package/dist/progress-CGWozq_n.js.map +0 -1
- package/dist/progress-DOVJhsR0.cjs +0 -51
- package/dist/progress-DOVJhsR0.cjs.map +0 -1
- package/dist/radio-group-CXkq6qAF.js.map +0 -1
- package/dist/radio-group-DoSX5D2V.cjs.map +0 -1
- package/dist/select-CObZenqg.cjs +0 -56
- package/dist/select-CObZenqg.cjs.map +0 -1
- package/dist/select-CU90i50_.js.map +0 -1
- package/dist/sound.service-Qhr8nCeG.cjs.map +0 -1
- package/dist/sound.service-m8WjOhjn.js.map +0 -1
- package/dist/splash-screen-Ca6Ew8p6.cjs +0 -41
- package/dist/splash-screen-Ca6Ew8p6.cjs.map +0 -1
- package/dist/splash-screen-Cs3dbPN3.js.map +0 -1
- package/dist/src-CCVbLLgC.js.map +0 -1
- package/dist/src-CpftzdZV.cjs +0 -264
- package/dist/src-CpftzdZV.cjs.map +0 -1
- package/dist/state--x58-AuK.cjs.map +0 -1
- package/dist/state-QSwQ61sA.js.map +0 -1
- package/dist/surface-bTjOiq8n.cjs +0 -7
- package/dist/surface-bTjOiq8n.cjs.map +0 -1
- package/dist/surface-cqMsHJHM.js.map +0 -1
- package/dist/tabs-Dk9UDWpq.cjs.map +0 -1
- package/dist/tabs-Ib0Mh__1.js.map +0 -1
- package/dist/textarea-CcRsw08B.js.map +0 -1
- package/dist/textarea-Cntd9tfV.cjs.map +0 -1
- package/dist/theme.service-5RjyR7Sy.js.map +0 -1
- package/dist/theme.service-DA6KY52G.cjs.map +0 -1
- package/dist/typography-DeEYdMhW.js +0 -358
- package/dist/typography-DeEYdMhW.js.map +0 -1
- package/dist/typography-Tm7wSaB2.cjs +0 -282
- package/dist/typography-Tm7wSaB2.cjs.map +0 -1
- package/dist/utils-DTa3QHxk.cjs.map +0 -1
- package/dist/utils-H8wNknWC.js.map +0 -1
- package/dist/window-Db5ZYY6t.js.map +0 -1
- package/dist/window-oQqx5xqQ.cjs +0 -59
- package/dist/window-oQqx5xqQ.cjs.map +0 -1
- package/src/form/fields/date-range/date-range-presets.ts +0 -220
- package/src/form/fields/date-range/date-utils.ts +0 -58
- package/types/src/form/fields/date-range/date-range-presets.d.ts +0 -18
- package/types/src/form/fields/date-range/date-utils.d.ts +0 -15
- /package/dist/{hashContent-iRZJJWtE.cjs → hashContent--s09Ed_g.cjs} +0 -0
- /package/dist/{hashContent-BqU6v1Xr.js → hashContent-CAvrQ56N.js} +0 -0
- /package/dist/{rxjs-utils-Csnks202.cjs → rxjs-utils-4P2v57ke.cjs} +0 -0
- /package/dist/{rxjs-utils-d-ivVN84.js → rxjs-utils-JMFdgQSl.js} +0 -0
- /package/dist/{theme.interface-CSt7JUBD.cjs → theme.interface-B-qxDsZQ.cjs} +0 -0
- /package/dist/{theme.interface-odQEpZZH.js → theme.interface-B7caS5cg.js} +0 -0
- /package/dist/{utils-DTa3QHxk.cjs → utils-DIXndz6Q.cjs} +0 -0
- /package/dist/{utils-H8wNknWC.js → utils-dSPH7Oh9.js} +0 -0
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
import { t as e, u as t } from "./SchmancyElement-Ob9yGkiG.js";
|
|
2
|
+
import "./mixins-q4KAL8Xr.js";
|
|
3
|
+
import { fromEvent as n } from "rxjs";
|
|
4
|
+
import { filter as r, takeUntil as i, tap as a } from "rxjs/operators";
|
|
5
|
+
import { customElement as o, property as s } from "lit/decorators.js";
|
|
6
|
+
import { css as c, html as l } from "lit";
|
|
7
|
+
import { createRef as u, ref as d } from "lit/directives/ref.js";
|
|
8
|
+
var f = class extends e {
|
|
9
|
+
constructor(...e) {
|
|
10
|
+
super(...e), this.type = "body", this.token = "md", this.editable = !1, this.value = "", this.placeholder = "", this.editRef = u();
|
|
11
|
+
}
|
|
12
|
+
static {
|
|
13
|
+
this.styles = [c`
|
|
14
|
+
:host {
|
|
15
|
+
display: block;
|
|
16
|
+
font-family: inherit;
|
|
17
|
+
hyphens: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Text alignment */
|
|
21
|
+
:host([align='center']) {
|
|
22
|
+
text-align: center;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:host([align='left']) {
|
|
26
|
+
text-align: start;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host([align='right']) {
|
|
30
|
+
text-align: right;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host([align='justify']) {
|
|
34
|
+
text-align: justify;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Font weight */
|
|
38
|
+
:host([weight='bold']) {
|
|
39
|
+
font-weight: 700;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:host([weight='medium']) {
|
|
43
|
+
font-weight: 500;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:host([weight='normal']) {
|
|
47
|
+
font-weight: 400;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Text transform */
|
|
51
|
+
:host([transform='uppercase']) {
|
|
52
|
+
text-transform: uppercase;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:host([transform='lowercase']) {
|
|
56
|
+
text-transform: lowercase;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:host([transform='capitalize']) {
|
|
60
|
+
text-transform: capitalize;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:host([transform='normal']) {
|
|
64
|
+
text-transform: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Type-based weight defaults (when using Tailwind classes without token) */
|
|
68
|
+
:host([type='display']),
|
|
69
|
+
:host([type='headline']),
|
|
70
|
+
:host([type='body']) {
|
|
71
|
+
font-weight: 400;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:host([type='label']),
|
|
75
|
+
:host([type='subtitle']),
|
|
76
|
+
:host([type='title']) {
|
|
77
|
+
font-weight: 500;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* Display typography variants - Material Design 3 + Extended */
|
|
81
|
+
:host([type='display'][token='xl']) {
|
|
82
|
+
font-size: 72px;
|
|
83
|
+
line-height: 80px;
|
|
84
|
+
font-weight: 400;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
:host([type='display'][token='lg']) {
|
|
88
|
+
font-size: 57px;
|
|
89
|
+
line-height: 64px;
|
|
90
|
+
font-weight: 400;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:host([type='display'][token='md']) {
|
|
94
|
+
font-size: 45px;
|
|
95
|
+
line-height: 52px;
|
|
96
|
+
font-weight: 400;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
:host([type='display'][token='sm']) {
|
|
100
|
+
font-size: 36px;
|
|
101
|
+
line-height: 44px;
|
|
102
|
+
font-weight: 400;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
:host([type='display'][token='xs']) {
|
|
106
|
+
font-size: 28px;
|
|
107
|
+
line-height: 36px;
|
|
108
|
+
font-weight: 400;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* Headline typography variants - Material Design 3 + Extended */
|
|
112
|
+
:host([type='headline'][token='xl']) {
|
|
113
|
+
font-size: 36px;
|
|
114
|
+
line-height: 44px;
|
|
115
|
+
font-weight: 400;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
:host([type='headline'][token='lg']) {
|
|
119
|
+
font-size: 32px;
|
|
120
|
+
line-height: 40px;
|
|
121
|
+
font-weight: 400;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
:host([type='headline'][token='md']) {
|
|
125
|
+
font-size: 28px;
|
|
126
|
+
line-height: 36px;
|
|
127
|
+
font-weight: 400;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
:host([type='headline'][token='sm']) {
|
|
131
|
+
font-size: 24px;
|
|
132
|
+
line-height: 32px;
|
|
133
|
+
font-weight: 400;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
:host([type='headline'][token='xs']) {
|
|
137
|
+
font-size: 20px;
|
|
138
|
+
line-height: 28px;
|
|
139
|
+
font-weight: 400;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* Title typography variants - Material Design 3 + Extended */
|
|
143
|
+
:host([type='title'][token='xl']) {
|
|
144
|
+
font-size: 24px;
|
|
145
|
+
line-height: 32px;
|
|
146
|
+
font-weight: 400;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
:host([type='title'][token='lg']) {
|
|
150
|
+
font-size: 22px;
|
|
151
|
+
line-height: 28px;
|
|
152
|
+
font-weight: 400;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
:host([type='title'][token='md']) {
|
|
156
|
+
font-size: 16px;
|
|
157
|
+
line-height: 24px;
|
|
158
|
+
font-weight: 500;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
:host([type='title'][token='sm']) {
|
|
162
|
+
font-size: 14px;
|
|
163
|
+
line-height: 20px;
|
|
164
|
+
font-weight: 500;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
:host([type='title'][token='xs']) {
|
|
168
|
+
font-size: 12px;
|
|
169
|
+
line-height: 16px;
|
|
170
|
+
font-weight: 500;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* Subtitle typography variants - Extended from Material Design 3 */
|
|
174
|
+
:host([type='subtitle'][token='xl']) {
|
|
175
|
+
font-size: 20px;
|
|
176
|
+
line-height: 28px;
|
|
177
|
+
font-weight: 500;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
:host([type='subtitle'][token='lg']) {
|
|
181
|
+
font-size: 18px;
|
|
182
|
+
line-height: 24px;
|
|
183
|
+
font-weight: 500;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
:host([type='subtitle'][token='md']) {
|
|
187
|
+
font-size: 16px;
|
|
188
|
+
line-height: 24px;
|
|
189
|
+
font-weight: 500;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
:host([type='subtitle'][token='sm']) {
|
|
193
|
+
font-size: 14px;
|
|
194
|
+
line-height: 20px;
|
|
195
|
+
font-weight: 500;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
:host([type='subtitle'][token='xs']) {
|
|
199
|
+
font-size: 12px;
|
|
200
|
+
line-height: 16px;
|
|
201
|
+
font-weight: 500;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/* Body typography variants - Material Design 3 + Extended */
|
|
205
|
+
:host([type='body'][token='xl']) {
|
|
206
|
+
font-size: 18px;
|
|
207
|
+
line-height: 28px;
|
|
208
|
+
font-weight: 400;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
:host([type='body'][token='lg']) {
|
|
212
|
+
font-size: 16px;
|
|
213
|
+
line-height: 24px;
|
|
214
|
+
font-weight: 400;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
:host([type='body'][token='md']) {
|
|
218
|
+
font-size: 14px;
|
|
219
|
+
line-height: 20px;
|
|
220
|
+
font-weight: 400;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
:host([type='body'][token='sm']) {
|
|
224
|
+
font-size: 12px;
|
|
225
|
+
line-height: 16px;
|
|
226
|
+
font-weight: 400;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
:host([type='body'][token='xs']) {
|
|
230
|
+
font-size: 10px;
|
|
231
|
+
line-height: 14px;
|
|
232
|
+
font-weight: 400;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* Label typography variants - Material Design 3 + Extended */
|
|
236
|
+
:host([type='label'][token='xl']) {
|
|
237
|
+
font-size: 16px;
|
|
238
|
+
line-height: 22px;
|
|
239
|
+
font-weight: 500;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
:host([type='label'][token='lg']) {
|
|
243
|
+
font-size: 14px;
|
|
244
|
+
line-height: 20px;
|
|
245
|
+
font-weight: 500;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
:host([type='label'][token='md']) {
|
|
249
|
+
font-size: 12px;
|
|
250
|
+
line-height: 16px;
|
|
251
|
+
font-weight: 500;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
:host([type='label'][token='sm']) {
|
|
255
|
+
font-size: 11px;
|
|
256
|
+
line-height: 16px;
|
|
257
|
+
font-weight: 500;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
:host([type='label'][token='xs']) {
|
|
261
|
+
font-size: 10px;
|
|
262
|
+
line-height: 14px;
|
|
263
|
+
font-weight: 500;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/* Note: Custom letter-spacing, font-size, and line-height should be applied via inline styles or Tailwind classes */
|
|
267
|
+
|
|
268
|
+
:host([editable]) {
|
|
269
|
+
cursor: text;
|
|
270
|
+
border-radius: 4px;
|
|
271
|
+
transition: background 150ms;
|
|
272
|
+
min-height: 1em;
|
|
273
|
+
}
|
|
274
|
+
/* Editable div lives in shadow DOM so light DOM (Lit markers) is untouched */
|
|
275
|
+
.edit {
|
|
276
|
+
outline: none;
|
|
277
|
+
min-height: 1em;
|
|
278
|
+
font: inherit;
|
|
279
|
+
color: inherit;
|
|
280
|
+
letter-spacing: inherit;
|
|
281
|
+
line-height: inherit;
|
|
282
|
+
}
|
|
283
|
+
.edit:empty::before {
|
|
284
|
+
content: attr(data-placeholder);
|
|
285
|
+
pointer-events: none;
|
|
286
|
+
display: block;
|
|
287
|
+
opacity: 0.35;
|
|
288
|
+
}
|
|
289
|
+
`];
|
|
290
|
+
}
|
|
291
|
+
static {
|
|
292
|
+
this.shadowRootOptions = {
|
|
293
|
+
mode: "open",
|
|
294
|
+
delegatesFocus: !0
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
selectAll() {
|
|
298
|
+
let e = this.editRef.value;
|
|
299
|
+
if (!e) return;
|
|
300
|
+
e.focus();
|
|
301
|
+
let t = window.getSelection();
|
|
302
|
+
if (t && e.textContent) {
|
|
303
|
+
let n = document.createRange();
|
|
304
|
+
n.selectNodeContents(e), t.removeAllRanges(), t.addRange(n);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
connectedCallback() {
|
|
308
|
+
super.connectedCallback(), n(this, "focusout").pipe(r(() => this.editable), a(() => {
|
|
309
|
+
let e = this.editRef.value;
|
|
310
|
+
if (!e) return;
|
|
311
|
+
let t = e.innerText.trim();
|
|
312
|
+
t !== this.value && this.dispatchEvent(new CustomEvent("change", {
|
|
313
|
+
detail: { value: t },
|
|
314
|
+
bubbles: !0,
|
|
315
|
+
composed: !0
|
|
316
|
+
})), t || (e.textContent = "");
|
|
317
|
+
}), i(this.disconnecting)).subscribe(), n(this, "input").pipe(r(() => this.editable), a(() => {
|
|
318
|
+
let e = this.editRef.value;
|
|
319
|
+
e && !e.innerText.trim() && (e.textContent = "");
|
|
320
|
+
}), i(this.disconnecting)).subscribe(), n(this, "keydown").pipe(r(() => this.editable), r((e) => e.key === "Enter"), a((e) => {
|
|
321
|
+
e.preventDefault(), (this.editRef.value ?? this).blur();
|
|
322
|
+
}), i(this.disconnecting)).subscribe();
|
|
323
|
+
}
|
|
324
|
+
updated(e) {
|
|
325
|
+
if (super.updated(e), e.has("maxLines") && (this.classList.remove("line-clamp-1", "line-clamp-2", "line-clamp-3", "line-clamp-4", "line-clamp-5", "line-clamp-6"), this.maxLines && this.classList.add(`line-clamp-${this.maxLines}`)), (e.has("value") || e.has("editable")) && this.editable) {
|
|
326
|
+
let e = this.editRef.value;
|
|
327
|
+
e && document.activeElement !== e && (this.value ? e.innerText = this.value : e.textContent = "");
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
render() {
|
|
331
|
+
return this.editable ? l`<div
|
|
332
|
+
${d(this.editRef)}
|
|
333
|
+
class="edit"
|
|
334
|
+
contenteditable="true"
|
|
335
|
+
data-placeholder=${this.placeholder ?? ""}
|
|
336
|
+
></div>` : l`<slot></slot>`;
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
t([s({
|
|
340
|
+
type: String,
|
|
341
|
+
reflect: !0
|
|
342
|
+
})], f.prototype, "type", void 0), t([s({
|
|
343
|
+
type: String,
|
|
344
|
+
reflect: !0
|
|
345
|
+
})], f.prototype, "token", void 0), t([s({
|
|
346
|
+
type: String,
|
|
347
|
+
reflect: !0
|
|
348
|
+
})], f.prototype, "align", void 0), t([s({
|
|
349
|
+
type: String,
|
|
350
|
+
reflect: !0
|
|
351
|
+
})], f.prototype, "weight", void 0), t([s({
|
|
352
|
+
type: String,
|
|
353
|
+
reflect: !0
|
|
354
|
+
})], f.prototype, "transform", void 0), t([s({ type: Number })], f.prototype, "maxLines", void 0), t([s({
|
|
355
|
+
type: Boolean,
|
|
356
|
+
reflect: !0
|
|
357
|
+
})], f.prototype, "editable", void 0), t([s({ type: String })], f.prototype, "value", void 0), t([s({ type: String })], f.prototype, "placeholder", void 0), f = t([o("schmancy-typography")], f);
|
|
358
|
+
export { f as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography-ByF2k5yW.js","names":[],"sources":["../src/typography/typography.ts"],"sourcesContent":["import { SchmancyElement } from '@mixins/index'\nimport { css, html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport { createRef, ref } from 'lit/directives/ref.js'\nimport { fromEvent } from 'rxjs'\nimport { filter, tap, takeUntil } from 'rxjs/operators'\n\n// Material Design 3 typography - https://m3.material.io/styles/typography/type-scale-tokens\n\n/**\n * @element schmancy-typography\n * @slot - The text for the typography.\n */\n@customElement('schmancy-typography')\nexport class SchmancyTypography extends SchmancyElement {\n\tstatic styles = [\n\t\tcss`\n\t\t\t:host {\n\t\t\t\tdisplay: block;\n\t\t\t\tfont-family: inherit;\n\t\t\t\thyphens: none;\n\t\t\t}\n\n\t\t\t/* Text alignment */\n\t\t\t:host([align='center']) {\n\t\t\t\ttext-align: center;\n\t\t\t}\n\n\t\t\t:host([align='left']) {\n\t\t\t\ttext-align: start;\n\t\t\t}\n\n\t\t\t:host([align='right']) {\n\t\t\t\ttext-align: right;\n\t\t\t}\n\n\t\t\t:host([align='justify']) {\n\t\t\t\ttext-align: justify;\n\t\t\t}\n\n\t\t\t/* Font weight */\n\t\t\t:host([weight='bold']) {\n\t\t\t\tfont-weight: 700;\n\t\t\t}\n\n\t\t\t:host([weight='medium']) {\n\t\t\t\tfont-weight: 500;\n\t\t\t}\n\n\t\t\t:host([weight='normal']) {\n\t\t\t\tfont-weight: 400;\n\t\t\t}\n\n\t\t\t/* Text transform */\n\t\t\t:host([transform='uppercase']) {\n\t\t\t\ttext-transform: uppercase;\n\t\t\t}\n\n\t\t\t:host([transform='lowercase']) {\n\t\t\t\ttext-transform: lowercase;\n\t\t\t}\n\n\t\t\t:host([transform='capitalize']) {\n\t\t\t\ttext-transform: capitalize;\n\t\t\t}\n\n\t\t\t:host([transform='normal']) {\n\t\t\t\ttext-transform: none;\n\t\t\t}\n\n\t\t\t/* Type-based weight defaults (when using Tailwind classes without token) */\n\t\t\t:host([type='display']),\n\t\t\t:host([type='headline']),\n\t\t\t:host([type='body']) {\n\t\t\t\tfont-weight: 400;\n\t\t\t}\n\n\t\t\t:host([type='label']),\n\t\t\t:host([type='subtitle']),\n\t\t\t:host([type='title']) {\n\t\t\t\tfont-weight: 500;\n\t\t\t}\n\n\t\t\t/* Display typography variants - Material Design 3 + Extended */\n\t\t\t:host([type='display'][token='xl']) {\n\t\t\t\tfont-size: 72px;\n\t\t\t\tline-height: 80px;\n\t\t\t\tfont-weight: 400;\n\t\t\t}\n\n\t\t\t:host([type='display'][token='lg']) {\n\t\t\t\tfont-size: 57px;\n\t\t\t\tline-height: 64px;\n\t\t\t\tfont-weight: 400;\n\t\t\t}\n\n\t\t\t:host([type='display'][token='md']) {\n\t\t\t\tfont-size: 45px;\n\t\t\t\tline-height: 52px;\n\t\t\t\tfont-weight: 400;\n\t\t\t}\n\n\t\t\t:host([type='display'][token='sm']) {\n\t\t\t\tfont-size: 36px;\n\t\t\t\tline-height: 44px;\n\t\t\t\tfont-weight: 400;\n\t\t\t}\n\n\t\t\t:host([type='display'][token='xs']) {\n\t\t\t\tfont-size: 28px;\n\t\t\t\tline-height: 36px;\n\t\t\t\tfont-weight: 400;\n\t\t\t}\n\n\t\t\t/* Headline typography variants - Material Design 3 + Extended */\n\t\t\t:host([type='headline'][token='xl']) {\n\t\t\t\tfont-size: 36px;\n\t\t\t\tline-height: 44px;\n\t\t\t\tfont-weight: 400;\n\t\t\t}\n\n\t\t\t:host([type='headline'][token='lg']) {\n\t\t\t\tfont-size: 32px;\n\t\t\t\tline-height: 40px;\n\t\t\t\tfont-weight: 400;\n\t\t\t}\n\n\t\t\t:host([type='headline'][token='md']) {\n\t\t\t\tfont-size: 28px;\n\t\t\t\tline-height: 36px;\n\t\t\t\tfont-weight: 400;\n\t\t\t}\n\n\t\t\t:host([type='headline'][token='sm']) {\n\t\t\t\tfont-size: 24px;\n\t\t\t\tline-height: 32px;\n\t\t\t\tfont-weight: 400;\n\t\t\t}\n\n\t\t\t:host([type='headline'][token='xs']) {\n\t\t\t\tfont-size: 20px;\n\t\t\t\tline-height: 28px;\n\t\t\t\tfont-weight: 400;\n\t\t\t}\n\n\t\t\t/* Title typography variants - Material Design 3 + Extended */\n\t\t\t:host([type='title'][token='xl']) {\n\t\t\t\tfont-size: 24px;\n\t\t\t\tline-height: 32px;\n\t\t\t\tfont-weight: 400;\n\t\t\t}\n\n\t\t\t:host([type='title'][token='lg']) {\n\t\t\t\tfont-size: 22px;\n\t\t\t\tline-height: 28px;\n\t\t\t\tfont-weight: 400;\n\t\t\t}\n\n\t\t\t:host([type='title'][token='md']) {\n\t\t\t\tfont-size: 16px;\n\t\t\t\tline-height: 24px;\n\t\t\t\tfont-weight: 500;\n\t\t\t}\n\n\t\t\t:host([type='title'][token='sm']) {\n\t\t\t\tfont-size: 14px;\n\t\t\t\tline-height: 20px;\n\t\t\t\tfont-weight: 500;\n\t\t\t}\n\n\t\t\t:host([type='title'][token='xs']) {\n\t\t\t\tfont-size: 12px;\n\t\t\t\tline-height: 16px;\n\t\t\t\tfont-weight: 500;\n\t\t\t}\n\n\t\t\t/* Subtitle typography variants - Extended from Material Design 3 */\n\t\t\t:host([type='subtitle'][token='xl']) {\n\t\t\t\tfont-size: 20px;\n\t\t\t\tline-height: 28px;\n\t\t\t\tfont-weight: 500;\n\t\t\t}\n\n\t\t\t:host([type='subtitle'][token='lg']) {\n\t\t\t\tfont-size: 18px;\n\t\t\t\tline-height: 24px;\n\t\t\t\tfont-weight: 500;\n\t\t\t}\n\n\t\t\t:host([type='subtitle'][token='md']) {\n\t\t\t\tfont-size: 16px;\n\t\t\t\tline-height: 24px;\n\t\t\t\tfont-weight: 500;\n\t\t\t}\n\n\t\t\t:host([type='subtitle'][token='sm']) {\n\t\t\t\tfont-size: 14px;\n\t\t\t\tline-height: 20px;\n\t\t\t\tfont-weight: 500;\n\t\t\t}\n\n\t\t\t:host([type='subtitle'][token='xs']) {\n\t\t\t\tfont-size: 12px;\n\t\t\t\tline-height: 16px;\n\t\t\t\tfont-weight: 500;\n\t\t\t}\n\n\t\t\t/* Body typography variants - Material Design 3 + Extended */\n\t\t\t:host([type='body'][token='xl']) {\n\t\t\t\tfont-size: 18px;\n\t\t\t\tline-height: 28px;\n\t\t\t\tfont-weight: 400;\n\t\t\t}\n\n\t\t\t:host([type='body'][token='lg']) {\n\t\t\t\tfont-size: 16px;\n\t\t\t\tline-height: 24px;\n\t\t\t\tfont-weight: 400;\n\t\t\t}\n\n\t\t\t:host([type='body'][token='md']) {\n\t\t\t\tfont-size: 14px;\n\t\t\t\tline-height: 20px;\n\t\t\t\tfont-weight: 400;\n\t\t\t}\n\n\t\t\t:host([type='body'][token='sm']) {\n\t\t\t\tfont-size: 12px;\n\t\t\t\tline-height: 16px;\n\t\t\t\tfont-weight: 400;\n\t\t\t}\n\n\t\t\t:host([type='body'][token='xs']) {\n\t\t\t\tfont-size: 10px;\n\t\t\t\tline-height: 14px;\n\t\t\t\tfont-weight: 400;\n\t\t\t}\n\n\t\t\t/* Label typography variants - Material Design 3 + Extended */\n\t\t\t:host([type='label'][token='xl']) {\n\t\t\t\tfont-size: 16px;\n\t\t\t\tline-height: 22px;\n\t\t\t\tfont-weight: 500;\n\t\t\t}\n\n\t\t\t:host([type='label'][token='lg']) {\n\t\t\t\tfont-size: 14px;\n\t\t\t\tline-height: 20px;\n\t\t\t\tfont-weight: 500;\n\t\t\t}\n\n\t\t\t:host([type='label'][token='md']) {\n\t\t\t\tfont-size: 12px;\n\t\t\t\tline-height: 16px;\n\t\t\t\tfont-weight: 500;\n\t\t\t}\n\n\t\t\t:host([type='label'][token='sm']) {\n\t\t\t\tfont-size: 11px;\n\t\t\t\tline-height: 16px;\n\t\t\t\tfont-weight: 500;\n\t\t\t}\n\n\t\t\t:host([type='label'][token='xs']) {\n\t\t\t\tfont-size: 10px;\n\t\t\t\tline-height: 14px;\n\t\t\t\tfont-weight: 500;\n\t\t\t}\n\n\t\t\t/* Note: Custom letter-spacing, font-size, and line-height should be applied via inline styles or Tailwind classes */\n\n\t\t\t:host([editable]) {\n\t\t\t\tcursor: text;\n\t\t\t\tborder-radius: 4px;\n\t\t\t\ttransition: background 150ms;\n\t\t\t\tmin-height: 1em;\n\t\t\t}\n\t\t\t/* Editable div lives in shadow DOM so light DOM (Lit markers) is untouched */\n\t\t\t.edit {\n\t\t\t\toutline: none;\n\t\t\t\tmin-height: 1em;\n\t\t\t\tfont: inherit;\n\t\t\t\tcolor: inherit;\n\t\t\t\tletter-spacing: inherit;\n\t\t\t\tline-height: inherit;\n\t\t\t}\n\t\t\t.edit:empty::before {\n\t\t\t\tcontent: attr(data-placeholder);\n\t\t\t\tpointer-events: none;\n\t\t\t\tdisplay: block;\n\t\t\t\topacity: 0.35;\n\t\t\t}\n\t\t`,\n\t]\n\tstatic shadowRootOptions: ShadowRootInit = {\n\t\tmode: 'open',\n\t\tdelegatesFocus: true,\n\t}\n\n\t/**\n\t * @attr type - The type of the typography.\n\t * @default 'body'\n\t * @type {'display' | 'headline' | 'title' | 'subtitle' | 'body' | 'label'}\n\t */\n\t@property({ type: String, reflect: true })\n\ttype: 'display' | 'headline' | 'title' | 'subtitle' | 'body' | 'label' = 'body'\n\n\t/**\n\t * @attr token - The size token.\n\t * @deprecated Prefer using Tailwind responsive text classes for better responsive design.\n\t * Set token=\"\" and use class=\"text-sm md:text-base lg:text-lg\" instead.\n\t * Example: <schmancy-typography type=\"display\" token=\"\" class=\"text-2xl sm:text-3xl md:text-4xl\">\n\t * @default 'md'\n\t * @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | ''}\n\t */\n\t@property({ type: String, reflect: true })\n\ttoken: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '' = 'md'\n\n\t/**\n\t * @attr\n\t * @default inherit\n\t * @type {'left' |'center' |'right'}\n\t */\n\t@property({ type: String, reflect: true })\n\talign: 'left' | 'center' | 'justify' | 'right' | undefined\n\n\t/**\n\t * @attr\n\t * @default inherit\n\t * @type {'normal' | 'medium' |'bold'}\n\t * @public\n\t */\n\t@property({ type: String, reflect: true })\n\tweight: 'normal' | 'medium' | 'bold' | undefined\n\n\t/**\n\t *\n\t * @attr\n\t * @default inherit\n\t * @type {'uppercase' |'lowercase' |'capitalize' |'normal'}\n\t * @public\n\t */\n\t@property({ type: String, reflect: true })\n\ttransform: 'uppercase' | 'lowercase' | 'capitalize' | 'normal' | undefined\n\n\t@property({ type: Number })\n\tmaxLines: 1 | 2 | 3 | 4 | 5 | 6 | undefined\n\n\t/** When true, the element becomes contenteditable and dispatches 'change' events on blur/Enter */\n\t@property({ type: Boolean, reflect: true }) editable = false\n\t/** The text value when in editable mode. Set via property binding: .value=${...} */\n\t@property({ type: String }) value = ''\n\t/** Placeholder shown when editable and empty */\n\t@property({ type: String }) placeholder = ''\n\n\tprivate editRef = createRef<HTMLDivElement>()\n\n\t/** Focus and select all text in editable mode */\n\tselectAll() {\n\t\tconst el = this.editRef.value\n\t\tif (!el) return\n\t\tel.focus()\n\t\tconst sel = window.getSelection()\n\t\tif (sel && el.textContent) {\n\t\t\tconst range = document.createRange()\n\t\t\trange.selectNodeContents(el)\n\t\t\tsel.removeAllRanges()\n\t\t\tsel.addRange(range)\n\t\t}\n\t}\n\n\tconnectedCallback() {\n\t\tsuper.connectedCallback()\n\n\t\tfromEvent<FocusEvent>(this, 'focusout')\n\t\t\t.pipe(\n\t\t\t\tfilter(() => this.editable),\n\t\t\t\ttap(() => {\n\t\t\t\t\tconst el = this.editRef.value\n\t\t\t\t\tif (!el) return\n\t\t\t\t\tconst newValue = el.innerText.trim()\n\t\t\t\t\tif (newValue !== this.value) {\n\t\t\t\t\t\tthis.dispatchEvent(\n\t\t\t\t\t\t\tnew CustomEvent('change', {\n\t\t\t\t\t\t\t\tdetail: { value: newValue },\n\t\t\t\t\t\t\t\tbubbles: true,\n\t\t\t\t\t\t\t\tcomposed: true,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t\t// Ensure truly empty so :empty CSS placeholder works\n\t\t\t\t\tif (!newValue) el.textContent = ''\n\t\t\t\t}),\n\t\t\t\ttakeUntil(this.disconnecting),\n\t\t\t)\n\t\t\t.subscribe()\n\n\t\t// Clean stray <br> / whitespace nodes so :empty CSS matches\n\t\tfromEvent(this, 'input')\n\t\t\t.pipe(\n\t\t\t\tfilter(() => this.editable),\n\t\t\t\ttap(() => {\n\t\t\t\t\tconst el = this.editRef.value\n\t\t\t\t\tif (el && !el.innerText.trim()) el.textContent = ''\n\t\t\t\t}),\n\t\t\t\ttakeUntil(this.disconnecting),\n\t\t\t)\n\t\t\t.subscribe()\n\n\t\tfromEvent<KeyboardEvent>(this, 'keydown')\n\t\t\t.pipe(\n\t\t\t\tfilter(() => this.editable),\n\t\t\t\tfilter(e => e.key === 'Enter'),\n\t\t\t\ttap(e => {\n\t\t\t\t\te.preventDefault()\n\t\t\t\t\t;(this.editRef.value ?? this).blur()\n\t\t\t\t}),\n\t\t\t\ttakeUntil(this.disconnecting),\n\t\t\t)\n\t\t\t.subscribe()\n\t}\n\n\tprotected updated(changedProperties: Map<string, unknown>): void {\n\t\tsuper.updated(changedProperties)\n\t\tif (changedProperties.has('maxLines')) {\n\t\t\t// Remove all line-clamp classes\n\t\t\tthis.classList.remove(\n\t\t\t\t'line-clamp-1',\n\t\t\t\t'line-clamp-2',\n\t\t\t\t'line-clamp-3',\n\t\t\t\t'line-clamp-4',\n\t\t\t\t'line-clamp-5',\n\t\t\t\t'line-clamp-6',\n\t\t\t)\n\t\t\t// Add the appropriate one\n\t\t\tif (this.maxLines) {\n\t\t\t\tthis.classList.add(`line-clamp-${this.maxLines}`)\n\t\t\t}\n\t\t}\n\t\tif ((changedProperties.has('value') || changedProperties.has('editable')) && this.editable) {\n\t\t\tconst el = this.editRef.value\n\t\t\tif (el && document.activeElement !== el) {\n\t\t\t\tif (this.value) {\n\t\t\t\t\tel.innerText = this.value\n\t\t\t\t} else {\n\t\t\t\t\tel.textContent = ''\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected render(): unknown {\n\t\tif (this.editable) {\n\t\t\treturn html`<div\n\t\t\t\t${ref(this.editRef)}\n\t\t\t\tclass=\"edit\"\n\t\t\t\tcontenteditable=\"true\"\n\t\t\t\tdata-placeholder=${this.placeholder ?? ''}\n\t\t\t></div>`\n\t\t}\n\t\treturn html`<slot></slot>`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-typography': SchmancyTypography\n\t}\n}\n"],"mappings":";;;;;;;AAcO,IAAA,IAAA,cAAiC,EAAA;CAAA,YAAA,GAAA,GAAA;EAAA,MAAA,GAAA,CAAA,GAAA,KAAA,OAmSkC,QAAA,KAAA,QAW1B,MAAA,KAAA,WAAA,CAiCQ,GAAA,KAAA,QAEnB,IAAA,KAAA,cAEM,IAAA,KAAA,UAExB,EAAA;CAAA;CAAA;EAAA,KAAA,SApVF,CACf,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAsRuC;GAC1C,MAAM;GACN,gBAAA,CAAgB;EAAA;CAAA;CA8DjB,YAAA;EACC,IAAM,IAAK,KAAK,QAAQ;EACxB,IAAA,CAAK,GAAI;EACT,EAAG,MAAA;EACH,IAAM,IAAM,OAAO,aAAA;EACnB,IAAI,KAAO,EAAG,aAAa;GAC1B,IAAM,IAAQ,SAAS,YAAA;GACvB,EAAM,mBAAmB,CAAA,GACzB,EAAI,gBAAA,GACJ,EAAI,SAAS,CAAA;EACd;CACD;CAEA,oBAAA;EACC,MAAM,kBAAA,GAEN,EAAsB,MAAM,UAAA,EAC1B,KACA,QAAa,KAAK,QAAA,GAClB,QAAA;GACC,IAAM,IAAK,KAAK,QAAQ;GACxB,IAAA,CAAK,GAAI;GACT,IAAM,IAAW,EAAG,UAAU,KAAA;GAC1B,MAAa,KAAK,SACrB,KAAK,cACJ,IAAI,YAAY,UAAU;IACzB,QAAQ,EAAE,OAAO,EAAA;IACjB,SAAA,CAAS;IACT,UAAA,CAAU;GAAA,CAAA,CAAA,GAKR,MAAU,EAAG,cAAc;EAAA,CAAA,GAEjC,EAAU,KAAK,aAAA,CAAA,EAEf,UAAA,GAGF,EAAU,MAAM,OAAA,EACd,KACA,QAAa,KAAK,QAAA,GAClB,QAAA;GACC,IAAM,IAAK,KAAK,QAAQ;GACpB,KAAA,CAAO,EAAG,UAAU,KAAA,MAAQ,EAAG,cAAc;EAAA,CAAA,GAElD,EAAU,KAAK,aAAA,CAAA,EAEf,UAAA,GAEF,EAAyB,MAAM,SAAA,EAC7B,KACA,QAAa,KAAK,QAAA,GAClB,GAAO,MAAK,EAAE,QAAQ,OAAR,GACd,GAAI,MAAA;GACH,EAAE,eAAA,IACA,KAAK,QAAQ,SAAS,MAAM,KAAA;EAAA,CAAA,GAE/B,EAAU,KAAK,aAAA,CAAA,EAEf,UAAA;CACH;CAEA,QAAkB,GAAA;EAiBjB,IAhBA,MAAM,QAAQ,CAAA,GACV,EAAkB,IAAI,UAAA,MAEzB,KAAK,UAAU,OACd,gBACA,gBACA,gBACA,gBACA,gBACA,cAAA,GAGG,KAAK,YACR,KAAK,UAAU,IAAI,cAAc,KAAK,UAAA,KAGnC,EAAkB,IAAI,OAAA,KAAY,EAAkB,IAAI,UAAA,MAAgB,KAAK,UAAU;GAC3F,IAAM,IAAK,KAAK,QAAQ;GACpB,KAAM,SAAS,kBAAkB,MAChC,KAAK,QACR,EAAG,YAAY,KAAK,QAEpB,EAAG,cAAc;EAGpB;CACD;CAEA,SAAA;EACC,OAAI,KAAK,WACD,CAAI;MACR,EAAI,KAAK,OAAA,EAAA;;;uBAGQ,KAAK,eAAe,GAAA;cAGlC,CAAI;CACZ;AAAA;AAAA,EAAA,CA7JC,EAAS;CAAE,MAAM;CAAQ,SAAA,CAAS;AAAA,CAAA,CAAA,GAAM,EAAA,WAAA,QAAA,KAAA,CAAA,GAAA,EAAA,CAWxC,EAAS;CAAE,MAAM;CAAQ,SAAA,CAAS;AAAA,CAAA,CAAA,GAAM,EAAA,WAAA,SAAA,KAAA,CAAA,GAAA,EAAA,CAQxC,EAAS;CAAE,MAAM;CAAQ,SAAA,CAAS;AAAA,CAAA,CAAA,GAAM,EAAA,WAAA,SAAA,KAAA,CAAA,GAAA,EAAA,CASxC,EAAS;CAAE,MAAM;CAAQ,SAAA,CAAS;AAAA,CAAA,CAAA,GAAM,EAAA,WAAA,UAAA,KAAA,CAAA,GAAA,EAAA,CAUxC,EAAS;CAAE,MAAM;CAAQ,SAAA,CAAS;AAAA,CAAA,CAAA,GAAM,EAAA,WAAA,aAAA,KAAA,CAAA,GAAA,EAAA,CAGxC,EAAS,EAAE,MAAM,OAAA,CAAA,CAAA,GAAQ,EAAA,WAAA,YAAA,KAAA,CAAA,GAAA,EAAA,CAIzB,EAAS;CAAE,MAAM;CAAS,SAAA,CAAS;AAAA,CAAA,CAAA,GAAM,EAAA,WAAA,YAAA,KAAA,CAAA,GAAA,EAAA,CAEzC,EAAS,EAAE,MAAM,OAAA,CAAA,CAAA,GAAQ,EAAA,WAAA,SAAA,KAAA,CAAA,GAAA,EAAA,CAEzB,EAAS,EAAE,MAAM,OAAA,CAAA,CAAA,GAAQ,EAAA,WAAA,eAAA,KAAA,CAAA,GAAA,IAAA,EAAA,CApV1B,EAAc,qBAAA,CAAA,GAAqB,CAAA;AAAA,SAAA,KAAA"}
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
require(`./chunk-CncqDLb2.cjs`);const e=require(`./SchmancyElement-CeKrBW2j.cjs`);require(`./mixins-Cjn20BQH.cjs`);let t=require(`rxjs`),n=require(`rxjs/operators`),r=require(`lit/decorators.js`),i=require(`lit`),a=require(`lit/directives/ref.js`);var o=class extends e.t{constructor(...e){super(...e),this.type=`body`,this.token=`md`,this.editable=!1,this.value=``,this.placeholder=``,this.editRef=(0,a.createRef)()}static{this.styles=[i.css`
|
|
2
|
+
:host {
|
|
3
|
+
display: block;
|
|
4
|
+
font-family: inherit;
|
|
5
|
+
hyphens: none;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* Text alignment */
|
|
9
|
+
:host([align='center']) {
|
|
10
|
+
text-align: center;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:host([align='left']) {
|
|
14
|
+
text-align: start;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:host([align='right']) {
|
|
18
|
+
text-align: right;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:host([align='justify']) {
|
|
22
|
+
text-align: justify;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* Font weight */
|
|
26
|
+
:host([weight='bold']) {
|
|
27
|
+
font-weight: 700;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:host([weight='medium']) {
|
|
31
|
+
font-weight: 500;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:host([weight='normal']) {
|
|
35
|
+
font-weight: 400;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* Text transform */
|
|
39
|
+
:host([transform='uppercase']) {
|
|
40
|
+
text-transform: uppercase;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:host([transform='lowercase']) {
|
|
44
|
+
text-transform: lowercase;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:host([transform='capitalize']) {
|
|
48
|
+
text-transform: capitalize;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:host([transform='normal']) {
|
|
52
|
+
text-transform: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Type-based weight defaults (when using Tailwind classes without token) */
|
|
56
|
+
:host([type='display']),
|
|
57
|
+
:host([type='headline']),
|
|
58
|
+
:host([type='body']) {
|
|
59
|
+
font-weight: 400;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:host([type='label']),
|
|
63
|
+
:host([type='subtitle']),
|
|
64
|
+
:host([type='title']) {
|
|
65
|
+
font-weight: 500;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* Display typography variants - Material Design 3 + Extended */
|
|
69
|
+
:host([type='display'][token='xl']) {
|
|
70
|
+
font-size: 72px;
|
|
71
|
+
line-height: 80px;
|
|
72
|
+
font-weight: 400;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:host([type='display'][token='lg']) {
|
|
76
|
+
font-size: 57px;
|
|
77
|
+
line-height: 64px;
|
|
78
|
+
font-weight: 400;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:host([type='display'][token='md']) {
|
|
82
|
+
font-size: 45px;
|
|
83
|
+
line-height: 52px;
|
|
84
|
+
font-weight: 400;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
:host([type='display'][token='sm']) {
|
|
88
|
+
font-size: 36px;
|
|
89
|
+
line-height: 44px;
|
|
90
|
+
font-weight: 400;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:host([type='display'][token='xs']) {
|
|
94
|
+
font-size: 28px;
|
|
95
|
+
line-height: 36px;
|
|
96
|
+
font-weight: 400;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* Headline typography variants - Material Design 3 + Extended */
|
|
100
|
+
:host([type='headline'][token='xl']) {
|
|
101
|
+
font-size: 36px;
|
|
102
|
+
line-height: 44px;
|
|
103
|
+
font-weight: 400;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:host([type='headline'][token='lg']) {
|
|
107
|
+
font-size: 32px;
|
|
108
|
+
line-height: 40px;
|
|
109
|
+
font-weight: 400;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:host([type='headline'][token='md']) {
|
|
113
|
+
font-size: 28px;
|
|
114
|
+
line-height: 36px;
|
|
115
|
+
font-weight: 400;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
:host([type='headline'][token='sm']) {
|
|
119
|
+
font-size: 24px;
|
|
120
|
+
line-height: 32px;
|
|
121
|
+
font-weight: 400;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
:host([type='headline'][token='xs']) {
|
|
125
|
+
font-size: 20px;
|
|
126
|
+
line-height: 28px;
|
|
127
|
+
font-weight: 400;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* Title typography variants - Material Design 3 + Extended */
|
|
131
|
+
:host([type='title'][token='xl']) {
|
|
132
|
+
font-size: 24px;
|
|
133
|
+
line-height: 32px;
|
|
134
|
+
font-weight: 400;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
:host([type='title'][token='lg']) {
|
|
138
|
+
font-size: 22px;
|
|
139
|
+
line-height: 28px;
|
|
140
|
+
font-weight: 400;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
:host([type='title'][token='md']) {
|
|
144
|
+
font-size: 16px;
|
|
145
|
+
line-height: 24px;
|
|
146
|
+
font-weight: 500;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
:host([type='title'][token='sm']) {
|
|
150
|
+
font-size: 14px;
|
|
151
|
+
line-height: 20px;
|
|
152
|
+
font-weight: 500;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
:host([type='title'][token='xs']) {
|
|
156
|
+
font-size: 12px;
|
|
157
|
+
line-height: 16px;
|
|
158
|
+
font-weight: 500;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* Subtitle typography variants - Extended from Material Design 3 */
|
|
162
|
+
:host([type='subtitle'][token='xl']) {
|
|
163
|
+
font-size: 20px;
|
|
164
|
+
line-height: 28px;
|
|
165
|
+
font-weight: 500;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
:host([type='subtitle'][token='lg']) {
|
|
169
|
+
font-size: 18px;
|
|
170
|
+
line-height: 24px;
|
|
171
|
+
font-weight: 500;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
:host([type='subtitle'][token='md']) {
|
|
175
|
+
font-size: 16px;
|
|
176
|
+
line-height: 24px;
|
|
177
|
+
font-weight: 500;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
:host([type='subtitle'][token='sm']) {
|
|
181
|
+
font-size: 14px;
|
|
182
|
+
line-height: 20px;
|
|
183
|
+
font-weight: 500;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
:host([type='subtitle'][token='xs']) {
|
|
187
|
+
font-size: 12px;
|
|
188
|
+
line-height: 16px;
|
|
189
|
+
font-weight: 500;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* Body typography variants - Material Design 3 + Extended */
|
|
193
|
+
:host([type='body'][token='xl']) {
|
|
194
|
+
font-size: 18px;
|
|
195
|
+
line-height: 28px;
|
|
196
|
+
font-weight: 400;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
:host([type='body'][token='lg']) {
|
|
200
|
+
font-size: 16px;
|
|
201
|
+
line-height: 24px;
|
|
202
|
+
font-weight: 400;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
:host([type='body'][token='md']) {
|
|
206
|
+
font-size: 14px;
|
|
207
|
+
line-height: 20px;
|
|
208
|
+
font-weight: 400;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
:host([type='body'][token='sm']) {
|
|
212
|
+
font-size: 12px;
|
|
213
|
+
line-height: 16px;
|
|
214
|
+
font-weight: 400;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
:host([type='body'][token='xs']) {
|
|
218
|
+
font-size: 10px;
|
|
219
|
+
line-height: 14px;
|
|
220
|
+
font-weight: 400;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/* Label typography variants - Material Design 3 + Extended */
|
|
224
|
+
:host([type='label'][token='xl']) {
|
|
225
|
+
font-size: 16px;
|
|
226
|
+
line-height: 22px;
|
|
227
|
+
font-weight: 500;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
:host([type='label'][token='lg']) {
|
|
231
|
+
font-size: 14px;
|
|
232
|
+
line-height: 20px;
|
|
233
|
+
font-weight: 500;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
:host([type='label'][token='md']) {
|
|
237
|
+
font-size: 12px;
|
|
238
|
+
line-height: 16px;
|
|
239
|
+
font-weight: 500;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
:host([type='label'][token='sm']) {
|
|
243
|
+
font-size: 11px;
|
|
244
|
+
line-height: 16px;
|
|
245
|
+
font-weight: 500;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
:host([type='label'][token='xs']) {
|
|
249
|
+
font-size: 10px;
|
|
250
|
+
line-height: 14px;
|
|
251
|
+
font-weight: 500;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/* Note: Custom letter-spacing, font-size, and line-height should be applied via inline styles or Tailwind classes */
|
|
255
|
+
|
|
256
|
+
:host([editable]) {
|
|
257
|
+
cursor: text;
|
|
258
|
+
border-radius: 4px;
|
|
259
|
+
transition: background 150ms;
|
|
260
|
+
min-height: 1em;
|
|
261
|
+
}
|
|
262
|
+
/* Editable div lives in shadow DOM so light DOM (Lit markers) is untouched */
|
|
263
|
+
.edit {
|
|
264
|
+
outline: none;
|
|
265
|
+
min-height: 1em;
|
|
266
|
+
font: inherit;
|
|
267
|
+
color: inherit;
|
|
268
|
+
letter-spacing: inherit;
|
|
269
|
+
line-height: inherit;
|
|
270
|
+
}
|
|
271
|
+
.edit:empty::before {
|
|
272
|
+
content: attr(data-placeholder);
|
|
273
|
+
pointer-events: none;
|
|
274
|
+
display: block;
|
|
275
|
+
opacity: 0.35;
|
|
276
|
+
}
|
|
277
|
+
`]}static{this.shadowRootOptions={mode:`open`,delegatesFocus:!0}}selectAll(){let e=this.editRef.value;if(!e)return;e.focus();let t=window.getSelection();if(t&&e.textContent){let n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}}connectedCallback(){super.connectedCallback(),(0,t.fromEvent)(this,`focusout`).pipe((0,n.filter)(()=>this.editable),(0,n.tap)(()=>{let e=this.editRef.value;if(!e)return;let t=e.innerText.trim();t!==this.value&&this.dispatchEvent(new CustomEvent(`change`,{detail:{value:t},bubbles:!0,composed:!0})),t||(e.textContent=``)}),(0,n.takeUntil)(this.disconnecting)).subscribe(),(0,t.fromEvent)(this,`input`).pipe((0,n.filter)(()=>this.editable),(0,n.tap)(()=>{let e=this.editRef.value;e&&!e.innerText.trim()&&(e.textContent=``)}),(0,n.takeUntil)(this.disconnecting)).subscribe(),(0,t.fromEvent)(this,`keydown`).pipe((0,n.filter)(()=>this.editable),(0,n.filter)(e=>e.key===`Enter`),(0,n.tap)(e=>{e.preventDefault(),(this.editRef.value??this).blur()}),(0,n.takeUntil)(this.disconnecting)).subscribe()}updated(e){if(super.updated(e),e.has(`maxLines`)&&(this.classList.remove(`line-clamp-1`,`line-clamp-2`,`line-clamp-3`,`line-clamp-4`,`line-clamp-5`,`line-clamp-6`),this.maxLines&&this.classList.add(`line-clamp-${this.maxLines}`)),(e.has(`value`)||e.has(`editable`))&&this.editable){let e=this.editRef.value;e&&document.activeElement!==e&&(this.value?e.innerText=this.value:e.textContent=``)}}render(){return this.editable?i.html`<div
|
|
278
|
+
${(0,a.ref)(this.editRef)}
|
|
279
|
+
class="edit"
|
|
280
|
+
contenteditable="true"
|
|
281
|
+
data-placeholder=${this.placeholder??``}
|
|
282
|
+
></div>`:i.html`<slot></slot>`}};e.u([(0,r.property)({type:String,reflect:!0})],o.prototype,`type`,void 0),e.u([(0,r.property)({type:String,reflect:!0})],o.prototype,`token`,void 0),e.u([(0,r.property)({type:String,reflect:!0})],o.prototype,`align`,void 0),e.u([(0,r.property)({type:String,reflect:!0})],o.prototype,`weight`,void 0),e.u([(0,r.property)({type:String,reflect:!0})],o.prototype,`transform`,void 0),e.u([(0,r.property)({type:Number})],o.prototype,`maxLines`,void 0),e.u([(0,r.property)({type:Boolean,reflect:!0})],o.prototype,`editable`,void 0),e.u([(0,r.property)({type:String})],o.prototype,`value`,void 0),e.u([(0,r.property)({type:String})],o.prototype,`placeholder`,void 0),o=e.u([(0,r.customElement)(`schmancy-typography`)],o),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
|