@mhmo91/schmancy 0.2.194 → 0.2.196
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/ai/animated-text.md +114 -0
- package/ai/area.md +158 -78
- package/ai/card.md +162 -131
- package/ai/circular-progress.md +91 -0
- package/ai/content-drawer.md +190 -0
- package/ai/date-range.md +142 -0
- package/ai/delay.md +158 -0
- package/ai/dialog.md +10 -0
- package/ai/divider.md +153 -0
- package/ai/index.md +43 -3
- package/ai/nav-drawer.md +206 -0
- package/ai/option.md +173 -0
- package/ai/slider.md +227 -0
- package/ai/steps.md +231 -0
- package/ai/surface.md +139 -200
- package/ai/table.md +99 -1
- package/ai/teleport.md +196 -0
- package/ai/theme-button.md +173 -0
- package/ai/theme.md +241 -0
- package/ai/typewriter.md +217 -0
- package/dist/_headers +2 -0
- package/dist/ai/animated-text.md +114 -0
- package/dist/ai/area.md +158 -78
- package/dist/ai/card.md +162 -131
- package/dist/ai/circular-progress.md +91 -0
- package/dist/ai/content-drawer.md +190 -0
- package/dist/ai/date-range.md +142 -0
- package/dist/ai/delay.md +158 -0
- package/dist/ai/dialog.md +10 -0
- package/dist/ai/divider.md +153 -0
- package/dist/ai/index.md +43 -3
- package/dist/ai/nav-drawer.md +206 -0
- package/dist/ai/option.md +173 -0
- package/dist/ai/slider.md +227 -0
- package/dist/ai/steps.md +231 -0
- package/dist/ai/surface.md +139 -200
- package/dist/ai/table.md +99 -1
- package/dist/ai/teleport.md +196 -0
- package/dist/ai/theme-button.md +173 -0
- package/dist/ai/theme.md +241 -0
- package/dist/ai/typewriter.md +217 -0
- package/dist/{animated-text-9AM64DHd.cjs → animated-text-DnX2TopW.cjs} +2 -2
- package/dist/{animated-text-9AM64DHd.cjs.map → animated-text-DnX2TopW.cjs.map} +1 -1
- package/dist/{animated-text-CVStWn5N.js → animated-text-jv1yAwLh.js} +3 -3
- package/dist/{animated-text-CVStWn5N.js.map → animated-text-jv1yAwLh.js.map} +1 -1
- package/dist/animated-text.cjs +1 -1
- package/dist/animated-text.js +1 -1
- package/dist/area.cjs +1 -1
- package/dist/area.component-DMD20wqd.js +191 -0
- package/dist/area.component-DMD20wqd.js.map +1 -0
- package/dist/area.component-Vs2WGXgk.cjs +8 -0
- package/dist/area.component-Vs2WGXgk.cjs.map +1 -0
- package/dist/area.js +21 -6
- package/dist/area.js.map +1 -1
- package/dist/{autocomplete-DBXvIJgc.cjs → autocomplete-BrAxEJJq.cjs} +2 -2
- package/dist/{autocomplete-DBXvIJgc.cjs.map → autocomplete-BrAxEJJq.cjs.map} +1 -1
- package/dist/{autocomplete-ih92pPkb.js → autocomplete-OS61ngsy.js} +3 -3
- package/dist/{autocomplete-ih92pPkb.js.map → autocomplete-OS61ngsy.js.map} +1 -1
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/{avatar-Bmg5TXj9.cjs → avatar-CEdv8DJY.cjs} +62 -24
- package/dist/avatar-CEdv8DJY.cjs.map +1 -0
- package/dist/{avatar-CgP1tBZq.js → avatar-CUHTDenQ.js} +183 -145
- package/dist/avatar-CUHTDenQ.js.map +1 -0
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/busy.cjs +1 -1
- package/dist/busy.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/{checkbox-Jxxbjxp0.js → checkbox-CVXRiSWP.js} +72 -65
- package/dist/{checkbox-Jxxbjxp0.js.map → checkbox-CVXRiSWP.js.map} +1 -1
- package/dist/{checkbox-DtnX5sT6.cjs → checkbox-Chd-COYm.cjs} +10 -10
- package/dist/{checkbox-DtnX5sT6.cjs.map → checkbox-Chd-COYm.cjs.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{chips-CVDnpVUM.cjs → chips-Bx9gSvN1.cjs} +2 -2
- package/dist/{chips-CVDnpVUM.cjs.map → chips-Bx9gSvN1.cjs.map} +1 -1
- package/dist/{chips-lP7ohQep.js → chips-Dx_erk55.js} +3 -3
- package/dist/{chips-lP7ohQep.js.map → chips-Dx_erk55.js.map} +1 -1
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +1 -1
- package/dist/circular-progress-BQnGvbss.js +35 -0
- package/dist/circular-progress-BQnGvbss.js.map +1 -0
- package/dist/circular-progress-CNBah5dz.cjs +9 -0
- package/dist/circular-progress-CNBah5dz.cjs.map +1 -0
- package/dist/circular-progress.cjs +2 -0
- package/dist/circular-progress.cjs.map +1 -0
- package/dist/circular-progress.js +5 -0
- package/dist/circular-progress.js.map +1 -0
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/content-drawer.cjs +1 -1
- package/dist/content-drawer.js +1 -1
- package/dist/{date-range-DbPA5Y-t.cjs → date-range-Cq0diVSY.cjs} +4 -3
- package/dist/{date-range-DbPA5Y-t.cjs.map → date-range-Cq0diVSY.cjs.map} +1 -1
- package/dist/{date-range-Ca9WLI4Q.js → date-range-wxdt6Ha0.js} +5 -4
- package/dist/date-range-wxdt6Ha0.js.map +1 -0
- package/dist/date-range.cjs +1 -1
- package/dist/date-range.js +1 -1
- package/dist/{delay-BgNgQV2G.cjs → delay-BzkhDhs0.cjs} +2 -2
- package/dist/{delay-BgNgQV2G.cjs.map → delay-BzkhDhs0.cjs.map} +1 -1
- package/dist/{delay-5cCl7ji3.js → delay-Ds5suSsc.js} +2 -2
- package/dist/{delay-5cCl7ji3.js.map → delay-Ds5suSsc.js.map} +1 -1
- package/dist/delay.cjs +1 -1
- package/dist/delay.js +1 -1
- package/dist/{dialog-content-qj1E8aye.cjs → dialog-content-CJY69qfC.cjs} +8 -8
- package/dist/dialog-content-CJY69qfC.cjs.map +1 -0
- package/dist/{dialog-content-9pumpyLD.js → dialog-content-DFJnYzff.js} +86 -82
- package/dist/dialog-content-DFJnYzff.js.map +1 -0
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/{divider-r8-9eNnl.js → divider-C3w1_-N1.js} +3 -3
- package/dist/{divider-r8-9eNnl.js.map → divider-C3w1_-N1.js.map} +1 -1
- package/dist/{divider-CHckHGEQ.cjs → divider-CFzbCFsr.cjs} +2 -2
- package/dist/{divider-CHckHGEQ.cjs.map → divider-CFzbCFsr.cjs.map} +1 -1
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/{dropdown-content-D-TddflQ.js → dropdown-content-BGFYBXcx.js} +3 -3
- package/dist/{dropdown-content-D-TddflQ.js.map → dropdown-content-BGFYBXcx.js.map} +1 -1
- package/dist/{dropdown-content-B41MDDRG.cjs → dropdown-content-PaMOJphI.cjs} +2 -2
- package/dist/{dropdown-content-B41MDDRG.cjs.map → dropdown-content-PaMOJphI.cjs.map} +1 -1
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/extra.cjs +1 -1
- package/dist/extra.js +1 -1
- package/dist/{flex-Bf0zNqji.js → flex-Cy4Stl_1.js} +2 -2
- package/dist/{flex-Bf0zNqji.js.map → flex-Cy4Stl_1.js.map} +1 -1
- package/dist/{flex-CFv-Zb76.cjs → flex-DP5O5644.cjs} +2 -2
- package/dist/{flex-CFv-Zb76.cjs.map → flex-DP5O5644.cjs.map} +1 -1
- package/dist/{form-uYcr1RLJ.js → form-BQamcLFL.js} +2 -2
- package/dist/{form-uYcr1RLJ.js.map → form-BQamcLFL.js.map} +1 -1
- package/dist/{form-BN75s0PI.cjs → form-CG3kns69.cjs} +2 -2
- package/dist/{form-BN75s0PI.cjs.map → form-CG3kns69.cjs.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +1 -1
- package/dist/{icon-BR-jE0Y2.js → icon-Cd4p9jRB.js} +3 -3
- package/dist/{icon-BR-jE0Y2.js.map → icon-Cd4p9jRB.js.map} +1 -1
- package/dist/{icon-Cu-imayV.cjs → icon-CilwMTXB.cjs} +2 -2
- package/dist/{icon-Cu-imayV.cjs.map → icon-CilwMTXB.cjs.map} +1 -1
- package/dist/{icon-button-1tZaicyb.js → icon-button-By17is4V.js} +3 -3
- package/dist/{icon-button-1tZaicyb.js.map → icon-button-By17is4V.js.map} +1 -1
- package/dist/{icon-button-D0BbHnDL.cjs → icon-button-C4Hf63hY.cjs} +2 -2
- package/dist/{icon-button-D0BbHnDL.cjs.map → icon-button-C4Hf63hY.cjs.map} +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/icons.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +190 -173
- package/dist/index.js.map +1 -1
- package/dist/{input-B2oV6Hck.cjs → input-BIi0rS2t.cjs} +2 -2
- package/dist/{input-B2oV6Hck.cjs.map → input-BIi0rS2t.cjs.map} +1 -1
- package/dist/{input-kiz5O3dY.js → input-C8OAokVe.js} +2 -2
- package/dist/{input-kiz5O3dY.js.map → input-C8OAokVe.js.map} +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.js +1 -1
- package/dist/{list-wT4DLXCh.js → list-BC3OE3Pu.js} +2 -2
- package/dist/{list-wT4DLXCh.js.map → list-BC3OE3Pu.js.map} +1 -1
- package/dist/{list-CMHoPfX9.cjs → list-jFsCubuy.cjs} +2 -2
- package/dist/{list-CMHoPfX9.cjs.map → list-jFsCubuy.cjs.map} +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{litElement.mixin-B9Qdq5S_.js → litElement.mixin-C6PzcPXd.js} +2 -2
- package/dist/{litElement.mixin-B9Qdq5S_.js.map → litElement.mixin-C6PzcPXd.js.map} +1 -1
- package/dist/{litElement.mixin-CHvyxfxf.cjs → litElement.mixin-Cypiq-N-.cjs} +2 -2
- package/dist/{litElement.mixin-CHvyxfxf.cjs.map → litElement.mixin-Cypiq-N-.cjs.map} +1 -1
- package/dist/{menu-BcSplMNh.cjs → menu-CDjqdEd6.cjs} +2 -2
- package/dist/{menu-BcSplMNh.cjs.map → menu-CDjqdEd6.cjs.map} +1 -1
- package/dist/{menu-Dl1QU86K.js → menu-n_Doj-bW.js} +3 -3
- package/dist/{menu-Dl1QU86K.js.map → menu-n_Doj-bW.js.map} +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/nav-drawer.cjs +1 -1
- package/dist/nav-drawer.js +1 -1
- package/dist/{notification-service-BV9ybQBu.cjs → notification-service--VLqOJJg.cjs} +2 -2
- package/dist/{notification-service-BV9ybQBu.cjs.map → notification-service--VLqOJJg.cjs.map} +1 -1
- package/dist/{notification-service-CC698xHg.js → notification-service-DHIhgWQr.js} +3 -3
- package/dist/{notification-service-CC698xHg.js.map → notification-service-DHIhgWQr.js.map} +1 -1
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +1 -1
- package/dist/{option-CkLBgH71.cjs → option-B359EBiZ.cjs} +2 -2
- package/dist/{option-CkLBgH71.cjs.map → option-B359EBiZ.cjs.map} +1 -1
- package/dist/{option-DDxxXwwc.js → option-oyyjCwnL.js} +2 -2
- package/dist/{option-DDxxXwwc.js.map → option-oyyjCwnL.js.map} +1 -1
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{payment-card-form-UWbAYNPR.cjs → payment-card-form-B-ZAsSED.cjs} +2 -2
- package/dist/{payment-card-form-UWbAYNPR.cjs.map → payment-card-form-B-ZAsSED.cjs.map} +1 -1
- package/dist/{payment-card-form-DDTO5_AA.js → payment-card-form-BSueaw97.js} +3 -3
- package/dist/{payment-card-form-DDTO5_AA.js.map → payment-card-form-BSueaw97.js.map} +1 -1
- package/dist/{radio-button-wWoxPDfq.js → radio-button-84TD7rpH.js} +2 -2
- package/dist/{radio-button-wWoxPDfq.js.map → radio-button-84TD7rpH.js.map} +1 -1
- package/dist/{radio-button-BykiVxTD.cjs → radio-button-BO6mIWCi.cjs} +2 -2
- package/dist/{radio-button-BykiVxTD.cjs.map → radio-button-BO6mIWCi.cjs.map} +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/{schmancy-steps-container-B1mIGa9M.cjs → schmancy-steps-container-Cfq8OsWt.cjs} +2 -2
- package/dist/{schmancy-steps-container-B1mIGa9M.cjs.map → schmancy-steps-container-Cfq8OsWt.cjs.map} +1 -1
- package/dist/{schmancy-steps-container-ByO98z7L.js → schmancy-steps-container-Lo4d27n3.js} +2 -2
- package/dist/{schmancy-steps-container-ByO98z7L.js.map → schmancy-steps-container-Lo4d27n3.js.map} +1 -1
- package/dist/{select-BIOhocL7.js → select-B-zgP_v6.js} +3 -3
- package/dist/{select-BIOhocL7.js.map → select-B-zgP_v6.js.map} +1 -1
- package/dist/{select-DE57Nios.cjs → select-DhEVsWh6.cjs} +2 -2
- package/dist/{select-DE57Nios.cjs.map → select-DhEVsWh6.cjs.map} +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/{sheet-fZYAWGsm.cjs → sheet-BEWq40cN.cjs} +2 -2
- package/dist/{sheet-fZYAWGsm.cjs.map → sheet-BEWq40cN.cjs.map} +1 -1
- package/dist/{sheet-Dh4MLVsU.js → sheet-DDY4pbD4.js} +3 -3
- package/dist/{sheet-Dh4MLVsU.js.map → sheet-DDY4pbD4.js.map} +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/{slider-DVlJoDgU.js → slider--irxEv_B.js} +3 -3
- package/dist/{slider-DVlJoDgU.js.map → slider--irxEv_B.js.map} +1 -1
- package/dist/{slider-CejrdmPF.cjs → slider-De-H5fe8.cjs} +2 -2
- package/dist/{slider-CejrdmPF.cjs.map → slider-De-H5fe8.cjs.map} +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/{spinner-DbTnai_Q.js → spinner-Bl9n09Z5.js} +3 -3
- package/dist/{spinner-DbTnai_Q.js.map → spinner-Bl9n09Z5.js.map} +1 -1
- package/dist/{spinner-DxVJ7QJZ.cjs → spinner-DNz1IjmL.cjs} +2 -2
- package/dist/{spinner-DxVJ7QJZ.cjs.map → spinner-DNz1IjmL.cjs.map} +1 -1
- package/dist/steps.cjs +1 -1
- package/dist/steps.js +1 -1
- package/dist/surface-BAEUiWcq.cjs +92 -0
- package/dist/surface-BAEUiWcq.cjs.map +1 -0
- package/dist/surface-h9dLHMTm.js +113 -0
- package/dist/surface-h9dLHMTm.js.map +1 -0
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/{table-CqUv1TOC.js → table-CxazXBjI.js} +72 -68
- package/dist/{table-CqUv1TOC.js.map → table-CxazXBjI.js.map} +1 -1
- package/dist/{table-CBhyHINV.cjs → table-Dn07ykGG.cjs} +4 -4
- package/dist/{table-CBhyHINV.cjs.map → table-Dn07ykGG.cjs.map} +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-compatibility-DUo2f_sV.js → tabs-compatibility-B8I0vg7Y.js} +2 -2
- package/dist/{tabs-compatibility-DUo2f_sV.js.map → tabs-compatibility-B8I0vg7Y.js.map} +1 -1
- package/dist/{tabs-compatibility-DPD6jfGF.cjs → tabs-compatibility-BrTxeSS-.cjs} +2 -2
- package/dist/{tabs-compatibility-DPD6jfGF.cjs.map → tabs-compatibility-BrTxeSS-.cjs.map} +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tailwind.mixin-Du4i6vQR.js +43 -0
- package/dist/{tailwind.mixin-Di7KWye7.js.map → tailwind.mixin-Du4i6vQR.js.map} +1 -1
- package/dist/tailwind.mixin-qyIcoDLk.cjs +2 -0
- package/dist/{tailwind.mixin-Dm5QDZav.cjs.map → tailwind.mixin-qyIcoDLk.cjs.map} +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/dist/{textarea-Dbz18REy.js → textarea-DibCLxC2.js} +2 -2
- package/dist/{textarea-Dbz18REy.js.map → textarea-DibCLxC2.js.map} +1 -1
- package/dist/{textarea-CesFdBkm.cjs → textarea-pMec4Wpg.cjs} +2 -2
- package/dist/{textarea-CesFdBkm.cjs.map → textarea-pMec4Wpg.cjs.map} +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{theme-button-Bt2OV4iu.cjs → theme-button-CG1w_waw.cjs} +2 -2
- package/dist/{theme-button-Bt2OV4iu.cjs.map → theme-button-CG1w_waw.cjs.map} +1 -1
- package/dist/{theme-button-lqbT2_LL.js → theme-button-irLEczd5.js} +2 -2
- package/dist/{theme-button-lqbT2_LL.js.map → theme-button-irLEczd5.js.map} +1 -1
- package/dist/theme-button.cjs +1 -1
- package/dist/theme-button.js +1 -1
- package/dist/theme.cjs +1 -1
- package/dist/{theme.component-xarFSe8p.js → theme.component-CMM8Xws2.js} +2 -2
- package/dist/{theme.component-xarFSe8p.js.map → theme.component-CMM8Xws2.js.map} +1 -1
- package/dist/{theme.component-BlBaN7d6.cjs → theme.component-CpRuySmd.cjs} +3 -3
- package/dist/{theme.component-BlBaN7d6.cjs.map → theme.component-CpRuySmd.cjs.map} +1 -1
- package/dist/theme.js +1 -1
- package/dist/{timezone-DwT_pQrj.js → timezone-DIrmlnD6.js} +3 -3
- package/dist/{timezone-DwT_pQrj.js.map → timezone-DIrmlnD6.js.map} +1 -1
- package/dist/{timezone-VUMRmZaJ.cjs → timezone-n5GflDRe.cjs} +2 -2
- package/dist/{timezone-VUMRmZaJ.cjs.map → timezone-n5GflDRe.cjs.map} +1 -1
- package/dist/{tooltip-Cvoroe7w.cjs → tooltip-0vIcVm5-.cjs} +2 -2
- package/dist/{tooltip-Cvoroe7w.cjs.map → tooltip-0vIcVm5-.cjs.map} +1 -1
- package/dist/{tooltip-BKOHVCMK.js → tooltip-N_B-vsDa.js} +2 -2
- package/dist/{tooltip-BKOHVCMK.js.map → tooltip-N_B-vsDa.js.map} +1 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/{tree-_FJnHVmP.js → tree-2Hf2X0Hv.js} +2 -2
- package/dist/{tree-_FJnHVmP.js.map → tree-2Hf2X0Hv.js.map} +1 -1
- package/dist/{tree-Cyp2AZ8g.cjs → tree-Q8AMxJxP.cjs} +2 -2
- package/dist/{tree-Cyp2AZ8g.cjs.map → tree-Q8AMxJxP.cjs.map} +1 -1
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/{typewriter-BIm2tOe4.cjs → typewriter-CsL-NfYC.cjs} +2 -2
- package/dist/{typewriter-BIm2tOe4.cjs.map → typewriter-CsL-NfYC.cjs.map} +1 -1
- package/dist/{typewriter-DWfXPBni.js → typewriter-bqbNKczJ.js} +22 -22
- package/dist/{typewriter-DWfXPBni.js.map → typewriter-bqbNKczJ.js.map} +1 -1
- package/dist/typewriter.cjs +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{typography-DaKLzjFB.js → typography-CbrvouLo.js} +2 -2
- package/dist/{typography-DaKLzjFB.js.map → typography-CbrvouLo.js.map} +1 -1
- package/dist/{typography-OpLt6LNd.cjs → typography-Hlts-hzc.cjs} +2 -2
- package/dist/{typography-OpLt6LNd.cjs.map → typography-Hlts-hzc.cjs.map} +1 -1
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/dist/utils-BqFGvnN9.cjs +2 -0
- package/dist/utils-BqFGvnN9.cjs.map +1 -0
- package/dist/utils-jduntaQU.js +128 -0
- package/dist/utils-jduntaQU.js.map +1 -0
- package/package.json +13 -14
- package/types/src/area/area.component.d.ts +1 -1
- package/types/src/area/area.service.d.ts +44 -26
- package/types/src/area/index.d.ts +1 -0
- package/types/src/area/utils.d.ts +91 -1
- package/types/src/checkbox/checkbox.d.ts +9 -0
- package/types/src/circular-progress/circular-progress.d.ts +15 -0
- package/types/src/circular-progress/index.d.ts +1 -0
- package/types/src/dialog/dailog.d.ts +8 -0
- package/types/src/dialog/dialog-service.d.ts +1 -0
- package/types/src/index.d.ts +1 -0
- package/types/src/table/table.d.ts +1 -0
- package/dist/area.component-CzFJM7Y4.js +0 -143
- package/dist/area.component-CzFJM7Y4.js.map +0 -1
- package/dist/area.component-WxccFh1z.cjs +0 -8
- package/dist/area.component-WxccFh1z.cjs.map +0 -1
- package/dist/avatar-Bmg5TXj9.cjs.map +0 -1
- package/dist/avatar-CgP1tBZq.js.map +0 -1
- package/dist/date-range-Ca9WLI4Q.js.map +0 -1
- package/dist/dialog-content-9pumpyLD.js.map +0 -1
- package/dist/dialog-content-qj1E8aye.cjs.map +0 -1
- package/dist/surface-BTuzKmT2.cjs +0 -20
- package/dist/surface-BTuzKmT2.cjs.map +0 -1
- package/dist/surface-DXx1bJN4.js +0 -43
- package/dist/surface-DXx1bJN4.js.map +0 -1
- package/dist/tailwind.mixin-Di7KWye7.js +0 -43
- package/dist/tailwind.mixin-Dm5QDZav.cjs +0 -2
package/ai/steps.md
ADDED
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
# Steps Component
|
|
2
|
+
|
|
3
|
+
A powerful stepper component for guiding users through multi-step processes with progress tracking, navigation control, and flexible content management.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
```html
|
|
8
|
+
<!-- Basic steps -->
|
|
9
|
+
<schmancy-steps-container currentStep="1">
|
|
10
|
+
<schmancy-step position="1" title="Account Setup">
|
|
11
|
+
<schmancy-input label="Email" type="email"></schmancy-input>
|
|
12
|
+
<schmancy-input label="Password" type="password"></schmancy-input>
|
|
13
|
+
</schmancy-step>
|
|
14
|
+
|
|
15
|
+
<schmancy-step position="2" title="Profile Details">
|
|
16
|
+
<schmancy-input label="Full Name"></schmancy-input>
|
|
17
|
+
<schmancy-input label="Phone"></schmancy-input>
|
|
18
|
+
</schmancy-step>
|
|
19
|
+
|
|
20
|
+
<schmancy-step position="3" title="Review">
|
|
21
|
+
<p>Review your information and submit</p>
|
|
22
|
+
<schmancy-button variant="filled">Complete</schmancy-button>
|
|
23
|
+
</schmancy-step>
|
|
24
|
+
</schmancy-steps-container>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Components
|
|
28
|
+
|
|
29
|
+
### schmancy-steps-container
|
|
30
|
+
The parent container managing step state and navigation.
|
|
31
|
+
|
|
32
|
+
**Properties:**
|
|
33
|
+
| Property | Type | Default | Description |
|
|
34
|
+
|----------|------|---------|-------------|
|
|
35
|
+
| `currentStep` | `number` | `1` | Currently active step (1-based) |
|
|
36
|
+
|
|
37
|
+
### schmancy-step
|
|
38
|
+
Individual step component with content and metadata.
|
|
39
|
+
|
|
40
|
+
**Properties:**
|
|
41
|
+
| Property | Type | Default | Description |
|
|
42
|
+
|----------|------|---------|-------------|
|
|
43
|
+
| `position` | `number` | `1` | Step position (1-based) |
|
|
44
|
+
| `title` | `string` | `''` | Step title |
|
|
45
|
+
| `description` | `string` | `''` | Optional step description |
|
|
46
|
+
| `completed` | `boolean` | `false` | Explicitly mark as complete |
|
|
47
|
+
| `lockBack` | `boolean` | `false` | Prevent navigation to previous steps |
|
|
48
|
+
|
|
49
|
+
## Examples
|
|
50
|
+
|
|
51
|
+
### Checkout Process
|
|
52
|
+
```html
|
|
53
|
+
<schmancy-steps-container currentStep="2">
|
|
54
|
+
<schmancy-step position="1" title="Cart" description="Review your items">
|
|
55
|
+
<schmancy-list>
|
|
56
|
+
${cartItems.map(item => html`
|
|
57
|
+
<schmancy-list-item>
|
|
58
|
+
${item.name} - $${item.price}
|
|
59
|
+
</schmancy-list-item>
|
|
60
|
+
`)}
|
|
61
|
+
</schmancy-list>
|
|
62
|
+
</schmancy-step>
|
|
63
|
+
|
|
64
|
+
<schmancy-step position="2" title="Shipping" description="Enter delivery address">
|
|
65
|
+
<schmancy-form>
|
|
66
|
+
<schmancy-input label="Street Address"></schmancy-input>
|
|
67
|
+
<schmancy-input label="City"></schmancy-input>
|
|
68
|
+
<schmancy-select label="State">
|
|
69
|
+
<!-- State options -->
|
|
70
|
+
</schmancy-select>
|
|
71
|
+
<schmancy-input label="ZIP Code"></schmancy-input>
|
|
72
|
+
</schmancy-form>
|
|
73
|
+
</schmancy-step>
|
|
74
|
+
|
|
75
|
+
<schmancy-step position="3" title="Payment" description="Payment information">
|
|
76
|
+
<schmancy-payment-card-form></schmancy-payment-card-form>
|
|
77
|
+
</schmancy-step>
|
|
78
|
+
|
|
79
|
+
<schmancy-step position="4" title="Confirm" description="Review and place order">
|
|
80
|
+
<div class="summary">
|
|
81
|
+
<!-- Order summary -->
|
|
82
|
+
</div>
|
|
83
|
+
<schmancy-button variant="filled" @click="${placeOrder}">
|
|
84
|
+
Place Order
|
|
85
|
+
</schmancy-button>
|
|
86
|
+
</schmancy-step>
|
|
87
|
+
</schmancy-steps-container>
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Onboarding Flow
|
|
91
|
+
```html
|
|
92
|
+
<schmancy-steps-container>
|
|
93
|
+
<schmancy-step position="1" title="Welcome" completed>
|
|
94
|
+
<div class="text-center p-8">
|
|
95
|
+
<h2>Welcome to Our Platform!</h2>
|
|
96
|
+
<p>Let's get you set up in just a few steps.</p>
|
|
97
|
+
<schmancy-button @click="${nextStep}">Get Started</schmancy-button>
|
|
98
|
+
</div>
|
|
99
|
+
</schmancy-step>
|
|
100
|
+
|
|
101
|
+
<schmancy-step position="2" title="Connect Accounts" lockBack>
|
|
102
|
+
<p>Connect your social accounts for better integration:</p>
|
|
103
|
+
<div class="space-y-2">
|
|
104
|
+
<schmancy-button variant="outlined" width="full">
|
|
105
|
+
<schmancy-icon slot="start">facebook</schmancy-icon>
|
|
106
|
+
Connect Facebook
|
|
107
|
+
</schmancy-button>
|
|
108
|
+
<schmancy-button variant="outlined" width="full">
|
|
109
|
+
<schmancy-icon slot="start">twitter</schmancy-icon>
|
|
110
|
+
Connect Twitter
|
|
111
|
+
</schmancy-button>
|
|
112
|
+
</div>
|
|
113
|
+
</schmancy-step>
|
|
114
|
+
|
|
115
|
+
<schmancy-step position="3" title="Preferences">
|
|
116
|
+
<h3>Customize your experience:</h3>
|
|
117
|
+
<schmancy-checkbox label="Email notifications"></schmancy-checkbox>
|
|
118
|
+
<schmancy-checkbox label="Weekly digest"></schmancy-checkbox>
|
|
119
|
+
<schmancy-checkbox label="Product updates"></schmancy-checkbox>
|
|
120
|
+
</schmancy-step>
|
|
121
|
+
</schmancy-steps-container>
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Form Wizard
|
|
125
|
+
```html
|
|
126
|
+
<schmancy-steps-container currentStep="1">
|
|
127
|
+
<schmancy-step position="1" title="Basic Info">
|
|
128
|
+
<schmancy-form>
|
|
129
|
+
<schmancy-input label="Company Name" required></schmancy-input>
|
|
130
|
+
<schmancy-select label="Industry" required>
|
|
131
|
+
<schmancy-option value="tech">Technology</schmancy-option>
|
|
132
|
+
<schmancy-option value="finance">Finance</schmancy-option>
|
|
133
|
+
<schmancy-option value="healthcare">Healthcare</schmancy-option>
|
|
134
|
+
</schmancy-select>
|
|
135
|
+
<schmancy-textarea label="Description"></schmancy-textarea>
|
|
136
|
+
</schmancy-form>
|
|
137
|
+
</schmancy-step>
|
|
138
|
+
|
|
139
|
+
<schmancy-step position="2" title="Contact Details">
|
|
140
|
+
<schmancy-form>
|
|
141
|
+
<schmancy-input label="Contact Name"></schmancy-input>
|
|
142
|
+
<schmancy-input label="Email" type="email"></schmancy-input>
|
|
143
|
+
<schmancy-input label="Phone" type="tel"></schmancy-input>
|
|
144
|
+
</schmancy-form>
|
|
145
|
+
</schmancy-step>
|
|
146
|
+
|
|
147
|
+
<schmancy-step position="3" title="Additional Info">
|
|
148
|
+
<schmancy-form>
|
|
149
|
+
<schmancy-date-range
|
|
150
|
+
.dateFrom="${{ label: 'Founded', value: '' }}"
|
|
151
|
+
.dateTo="${{ label: 'Current', value: '' }}"
|
|
152
|
+
></schmancy-date-range>
|
|
153
|
+
<schmancy-input label="Number of Employees" type="number"></schmancy-input>
|
|
154
|
+
</schmancy-form>
|
|
155
|
+
</schmancy-step>
|
|
156
|
+
</schmancy-steps-container>
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
## Features
|
|
160
|
+
|
|
161
|
+
### Visual States
|
|
162
|
+
- **Complete**: Checkmark icon, can navigate back
|
|
163
|
+
- **Current**: Active indicator, expanded content
|
|
164
|
+
- **Upcoming**: Grayed out, not clickable
|
|
165
|
+
|
|
166
|
+
### Navigation Control
|
|
167
|
+
- Click completed steps to go back
|
|
168
|
+
- `lockBack` prevents backward navigation
|
|
169
|
+
- Automatic step expansion/collapse
|
|
170
|
+
|
|
171
|
+
### Flexible Layout
|
|
172
|
+
- Steps grow to show content when active
|
|
173
|
+
- Smooth transitions between steps
|
|
174
|
+
- Responsive design
|
|
175
|
+
|
|
176
|
+
### Context System
|
|
177
|
+
Uses Lit Context API for state management between container and steps.
|
|
178
|
+
|
|
179
|
+
## Styling
|
|
180
|
+
|
|
181
|
+
```css
|
|
182
|
+
/* Custom step styling */
|
|
183
|
+
schmancy-step {
|
|
184
|
+
--step-connector-color: var(--schmancy-sys-color-tertiary-default);
|
|
185
|
+
--step-inactive-color: #9CA3AF;
|
|
186
|
+
--step-icon-size: 1.25rem;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* Active step content spacing */
|
|
190
|
+
schmancy-step[position="2"] {
|
|
191
|
+
--step-content-padding: 2rem;
|
|
192
|
+
}
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
## Programmatic Control
|
|
196
|
+
|
|
197
|
+
```javascript
|
|
198
|
+
// Get container reference
|
|
199
|
+
const stepsContainer = document.querySelector('schmancy-steps-container');
|
|
200
|
+
|
|
201
|
+
// Change current step
|
|
202
|
+
stepsContainer.currentStep = 3;
|
|
203
|
+
|
|
204
|
+
// Listen for step changes
|
|
205
|
+
stepsContainer.addEventListener('step-change', (e) => {
|
|
206
|
+
console.log('Step changed to:', e.detail.step);
|
|
207
|
+
});
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
## Best Practices
|
|
211
|
+
|
|
212
|
+
1. **Clear Titles**: Use descriptive, action-oriented titles
|
|
213
|
+
2. **Progress Saving**: Save user progress between sessions
|
|
214
|
+
3. **Validation**: Validate before allowing step progression
|
|
215
|
+
4. **Mobile**: Ensure steps work well on small screens
|
|
216
|
+
5. **Accessibility**: Provide clear navigation cues
|
|
217
|
+
|
|
218
|
+
## Related Components
|
|
219
|
+
|
|
220
|
+
- [Form](./form.md) - Form integration
|
|
221
|
+
- [Button](./button.md) - Navigation controls
|
|
222
|
+
- [List](./list.md) - Step content lists
|
|
223
|
+
- [Typography](./typography.md) - Step labels
|
|
224
|
+
|
|
225
|
+
## Use Cases
|
|
226
|
+
|
|
227
|
+
1. **Checkout Flows**: E-commerce purchase process
|
|
228
|
+
2. **Onboarding**: New user setup
|
|
229
|
+
3. **Form Wizards**: Complex multi-page forms
|
|
230
|
+
4. **Tutorials**: Step-by-step guides
|
|
231
|
+
5. **Configuration**: Multi-step setup processes
|
package/ai/surface.md
CHANGED
|
@@ -1,221 +1,160 @@
|
|
|
1
1
|
# Schmancy Surface - AI Reference
|
|
2
2
|
|
|
3
3
|
```js
|
|
4
|
-
//
|
|
4
|
+
// Surface Component
|
|
5
5
|
<schmancy-surface
|
|
6
|
-
|
|
7
|
-
rounded="none|
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
fill="all|width|height|auto"
|
|
7
|
+
rounded="none|top|left|right|bottom|all"
|
|
8
|
+
type="surface|surfaceDim|surfaceBright|containerLowest|containerLow|container|containerHigh|containerHighest"
|
|
9
|
+
elevation="0|1|2|3|4|5">
|
|
10
|
+
Content goes here
|
|
10
11
|
</schmancy-surface>
|
|
11
12
|
|
|
12
|
-
//
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
</schmancy-surface>
|
|
18
|
-
|
|
19
|
-
// Interactive surface
|
|
20
|
-
<schmancy-surface
|
|
21
|
-
interactive
|
|
22
|
-
@click=${handleClick}>
|
|
23
|
-
Click me!
|
|
24
|
-
</schmancy-surface>
|
|
13
|
+
// Properties
|
|
14
|
+
fill: string // "all", "width", "height", "auto" (default: "auto")
|
|
15
|
+
rounded: string // Corner rounding: "none", "top", "left", "right", "bottom", "all" (default: "none")
|
|
16
|
+
type: string // Surface color variant (default: "surface")
|
|
17
|
+
elevation: number // Shadow depth 0-5 (default: 0)
|
|
25
18
|
|
|
26
|
-
// Surface
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
19
|
+
// Surface Types (background colors)
|
|
20
|
+
"surface" // Default surface color
|
|
21
|
+
"surfaceDim" // Dimmed surface
|
|
22
|
+
"surfaceBright" // Bright surface
|
|
23
|
+
"containerLowest" // Lowest container elevation
|
|
24
|
+
"containerLow" // Low container elevation
|
|
25
|
+
"container" // Standard container
|
|
26
|
+
"containerHigh" // High container elevation
|
|
27
|
+
"containerHighest" // Highest container elevation
|
|
34
28
|
|
|
35
|
-
//
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
min-width="200px"
|
|
40
|
-
max-width="500px"
|
|
41
|
-
min-height="100px"
|
|
42
|
-
max-height="300px">
|
|
43
|
-
Fixed size surface
|
|
29
|
+
// Examples
|
|
30
|
+
// 1. Basic surface
|
|
31
|
+
<schmancy-surface>
|
|
32
|
+
Basic content
|
|
44
33
|
</schmancy-surface>
|
|
45
34
|
|
|
46
|
-
//
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
color: string // Background color (theme color or CSS value)
|
|
52
|
-
theme: string // Theme: "light", "dark"
|
|
53
|
-
interactive: boolean // Enable hover and active states
|
|
54
|
-
bordered: boolean // Show border
|
|
55
|
-
borderColor: string // Border color
|
|
56
|
-
borderWidth: string // Border width: "thin", "medium", "thick"
|
|
57
|
-
borderStyle: string // Border style: "solid", "dashed", "dotted"
|
|
58
|
-
width: string // Width
|
|
59
|
-
height: string // Height
|
|
60
|
-
minWidth: string // Minimum width
|
|
61
|
-
maxWidth: string // Maximum width
|
|
62
|
-
minHeight: string // Minimum height
|
|
63
|
-
maxHeight: string // Maximum height
|
|
64
|
-
fullWidth: boolean // Take full width of parent
|
|
65
|
-
fullHeight: boolean // Take full height of parent
|
|
66
|
-
|
|
67
|
-
// Surface Context
|
|
68
|
-
// For theme-aware surfaces and consistent styling
|
|
69
|
-
import { SurfaceContext } from 'schmancy/surface';
|
|
70
|
-
|
|
71
|
-
const surfaceContext = new SurfaceContext({
|
|
72
|
-
elevation: 1,
|
|
73
|
-
rounded: 'md',
|
|
74
|
-
padding: 'md',
|
|
75
|
-
theme: 'light'
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
// Examples
|
|
79
|
-
// Basic card-like surface
|
|
80
|
-
<schmancy-surface
|
|
81
|
-
elevation="2"
|
|
82
|
-
rounded="lg"
|
|
83
|
-
padding="lg">
|
|
35
|
+
// 2. Elevated card
|
|
36
|
+
<schmancy-surface
|
|
37
|
+
elevation="2"
|
|
38
|
+
rounded="all"
|
|
39
|
+
type="containerLow">
|
|
84
40
|
<h3>Card Title</h3>
|
|
85
|
-
<p>
|
|
41
|
+
<p>Card content</p>
|
|
86
42
|
</schmancy-surface>
|
|
87
43
|
|
|
88
|
-
//
|
|
89
|
-
<schmancy-surface
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
@click=${navigateToDetails}>
|
|
95
|
-
<div style="display: flex; align-items: center; gap: 16px;">
|
|
96
|
-
<schmancy-avatar
|
|
97
|
-
src="path/to/avatar.jpg"
|
|
98
|
-
size="large">
|
|
99
|
-
</schmancy-avatar>
|
|
100
|
-
|
|
101
|
-
<div>
|
|
102
|
-
<h3>John Doe</h3>
|
|
103
|
-
<p>Software Engineer</p>
|
|
104
|
-
</div>
|
|
105
|
-
|
|
106
|
-
<schmancy-icon
|
|
107
|
-
icon="chevron-right"
|
|
108
|
-
style="margin-left: auto;">
|
|
109
|
-
</schmancy-icon>
|
|
110
|
-
</div>
|
|
44
|
+
// 3. Full-width surface
|
|
45
|
+
<schmancy-surface
|
|
46
|
+
fill="width"
|
|
47
|
+
type="surfaceDim"
|
|
48
|
+
elevation="1">
|
|
49
|
+
Full width content
|
|
111
50
|
</schmancy-surface>
|
|
112
51
|
|
|
113
|
-
//
|
|
52
|
+
// 4. Dashboard panel
|
|
114
53
|
<schmancy-surface
|
|
115
|
-
|
|
116
|
-
rounded="
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
<div style="display: flex; align-items: center; gap: 16px;">
|
|
122
|
-
<schmancy-icon icon="info" color="primary"></schmancy-icon>
|
|
123
|
-
<div>
|
|
124
|
-
<h4>Information</h4>
|
|
125
|
-
<p>This is an informational message.</p>
|
|
126
|
-
</div>
|
|
54
|
+
elevation="3"
|
|
55
|
+
rounded="all"
|
|
56
|
+
type="containerHighest"
|
|
57
|
+
fill="all">
|
|
58
|
+
<div class="dashboard-content">
|
|
59
|
+
<!-- Content -->
|
|
127
60
|
</div>
|
|
128
61
|
</schmancy-surface>
|
|
62
|
+
```
|
|
129
63
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
border-color="error"
|
|
136
|
-
style="--surface-color-opacity: 0.1;">
|
|
137
|
-
<div style="display: flex; align-items: center; gap: 16px;">
|
|
138
|
-
<schmancy-icon icon="alert-triangle" color="error"></schmancy-icon>
|
|
139
|
-
<div>
|
|
140
|
-
<h4>Error</h4>
|
|
141
|
-
<p>Something went wrong. Please try again.</p>
|
|
142
|
-
</div>
|
|
143
|
-
</div>
|
|
144
|
-
</schmancy-surface>
|
|
64
|
+
## Related Components
|
|
65
|
+
- **[Card](./card.md)**: Pre-styled surface for card layouts
|
|
66
|
+
- **[Sheet](./sheet.md)**: Modal surface overlay
|
|
67
|
+
- **[Dialog](./dialog.md)**: Elevated modal surface
|
|
68
|
+
- **[Layout](./layout.md)**: Layout components that often contain surfaces
|
|
145
69
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
70
|
+
## Technical Details
|
|
71
|
+
|
|
72
|
+
### CSS Host Styling
|
|
73
|
+
The component uses `:host` selectors for all styling:
|
|
74
|
+
- No wrapper elements - styles apply directly to the component
|
|
75
|
+
- Properties reflect to HTML attributes for CSS targeting
|
|
76
|
+
- Uses CSS custom properties from the theme system
|
|
77
|
+
|
|
78
|
+
### Theme Integration
|
|
79
|
+
```css
|
|
80
|
+
/* Background colors use theme variables */
|
|
81
|
+
--schmancy-sys-color-surface-default
|
|
82
|
+
--schmancy-sys-color-surface-dim
|
|
83
|
+
--schmancy-sys-color-surface-bright
|
|
84
|
+
--schmancy-sys-color-surface-lowest
|
|
85
|
+
--schmancy-sys-color-surface-low
|
|
86
|
+
--schmancy-sys-color-surface-container
|
|
87
|
+
--schmancy-sys-color-surface-high
|
|
88
|
+
--schmancy-sys-color-surface-highest
|
|
89
|
+
|
|
90
|
+
/* Text color */
|
|
91
|
+
--schmancy-sys-color-surface-on
|
|
92
|
+
|
|
93
|
+
/* Elevation shadows */
|
|
94
|
+
--schmancy-sys-elevation-1 through --schmancy-sys-elevation-5
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Context Provider
|
|
98
|
+
Surface provides its type to descendant components via Lit Context:
|
|
99
|
+
```js
|
|
100
|
+
import { SchmancySurfaceTypeContext } from '@schmancy/surface'
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Common Use Cases
|
|
104
|
+
|
|
105
|
+
1. **Content Cards**: Elevated surfaces for grouped content
|
|
106
|
+
```html
|
|
107
|
+
<schmancy-surface elevation="2" rounded="all" type="containerLow">
|
|
108
|
+
<h3>Feature Card</h3>
|
|
109
|
+
<p>Description of the feature</p>
|
|
110
|
+
<schmancy-button>Learn More</schmancy-button>
|
|
111
|
+
</schmancy-surface>
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
2. **Page Sections**: Full-width background surfaces
|
|
115
|
+
```html
|
|
116
|
+
<schmancy-surface fill="width" type="surfaceDim">
|
|
117
|
+
<section class="hero-section">
|
|
118
|
+
<h1>Welcome</h1>
|
|
119
|
+
<p>Hero content here</p>
|
|
120
|
+
</section>
|
|
121
|
+
</schmancy-surface>
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
3. **Modal Backgrounds**: High elevation surfaces
|
|
125
|
+
```html
|
|
126
|
+
<schmancy-surface
|
|
127
|
+
elevation="5"
|
|
128
|
+
rounded="all"
|
|
129
|
+
type="containerHighest">
|
|
130
|
+
<div class="modal-content">
|
|
131
|
+
<h2>Modal Title</h2>
|
|
132
|
+
<p>Modal body content</p>
|
|
133
|
+
</div>
|
|
134
|
+
</schmancy-surface>
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
4. **Nested Surfaces**: Different elevation levels
|
|
138
|
+
```html
|
|
139
|
+
<schmancy-surface type="surface" fill="all">
|
|
140
|
+
<schmancy-surface
|
|
141
|
+
elevation="1"
|
|
142
|
+
rounded="all"
|
|
143
|
+
type="containerLow">
|
|
144
|
+
<p>Nested content with different elevation</p>
|
|
145
|
+
</schmancy-surface>
|
|
146
|
+
</schmancy-surface>
|
|
147
|
+
```
|
|
203
148
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
<schmancy-surface elevation="3" rounded="xl">
|
|
217
|
-
<h3>Custom Panel</h3>
|
|
218
|
-
<p>This surface overrides some context settings.</p>
|
|
219
|
-
</schmancy-surface>
|
|
220
|
-
</div>
|
|
221
|
-
```
|
|
149
|
+
5. **Sidebar Panels**: Directional rounding
|
|
150
|
+
```html
|
|
151
|
+
<schmancy-surface
|
|
152
|
+
fill="height"
|
|
153
|
+
rounded="right"
|
|
154
|
+
elevation="2"
|
|
155
|
+
type="containerHigh">
|
|
156
|
+
<nav class="sidebar">
|
|
157
|
+
<!-- Navigation items -->
|
|
158
|
+
</nav>
|
|
159
|
+
</schmancy-surface>
|
|
160
|
+
```
|