@mhmo91/schmancy 0.2.193 → 0.2.195
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/area.md +205 -0
- package/ai/autocomplete.md +135 -0
- package/ai/avatar.md +178 -0
- package/ai/badge.md +100 -0
- package/ai/busy.md +195 -0
- package/ai/button.md +112 -0
- package/ai/card.md +155 -0
- package/ai/checkbox.md +108 -0
- package/ai/chips.md +180 -0
- package/ai/component-relationships.md +93 -0
- package/ai/content-drawer.md +190 -0
- package/ai/dialog.md +119 -0
- package/ai/dropdown.md +238 -0
- package/ai/form.md +148 -0
- package/ai/icons.md +147 -0
- package/ai/index.md +72 -0
- package/ai/input.md +167 -0
- package/ai/layout.md +166 -0
- package/ai/list.md +145 -0
- package/ai/menu.md +217 -0
- package/ai/notification.md +93 -0
- package/ai/radio-group.md +176 -0
- package/ai/select.md +174 -0
- package/ai/sheet.md +122 -0
- package/ai/store.md +235 -0
- package/ai/surface.md +221 -0
- package/ai/table.md +334 -0
- package/ai/tabs.md +71 -0
- package/ai/template.md +144 -0
- package/ai/textarea.md +147 -0
- package/ai/tooltip.md +149 -0
- package/ai/tree.md +279 -0
- package/ai/typography.md +170 -0
- package/dist/_headers +2 -0
- package/dist/ai/area.md +205 -0
- package/dist/ai/autocomplete.md +135 -0
- package/dist/ai/avatar.md +178 -0
- package/dist/ai/badge.md +100 -0
- package/dist/ai/busy.md +195 -0
- package/dist/ai/button.md +112 -0
- package/dist/ai/card.md +155 -0
- package/dist/ai/checkbox.md +108 -0
- package/dist/ai/chips.md +180 -0
- package/dist/ai/component-relationships.md +93 -0
- package/dist/ai/content-drawer.md +190 -0
- package/dist/ai/dialog.md +119 -0
- package/dist/ai/dropdown.md +238 -0
- package/dist/ai/form.md +148 -0
- package/dist/ai/icons.md +147 -0
- package/dist/ai/index.md +72 -0
- package/dist/ai/input.md +167 -0
- package/dist/ai/layout.md +166 -0
- package/dist/ai/list.md +145 -0
- package/dist/ai/menu.md +217 -0
- package/dist/ai/notification.md +93 -0
- package/dist/ai/radio-group.md +176 -0
- package/dist/ai/select.md +174 -0
- package/dist/ai/sheet.md +122 -0
- package/dist/ai/store.md +235 -0
- package/dist/ai/surface.md +221 -0
- package/dist/ai/table.md +334 -0
- package/dist/ai/tabs.md +71 -0
- package/dist/ai/template.md +144 -0
- package/dist/ai/textarea.md +147 -0
- package/dist/ai/tooltip.md +149 -0
- package/dist/ai/tree.md +279 -0
- package/dist/ai/typography.md +170 -0
- package/dist/{animated-text-9AM64DHd.cjs → animated-text-Bu9wh3wv.cjs} +2 -2
- package/dist/{animated-text-9AM64DHd.cjs.map → animated-text-Bu9wh3wv.cjs.map} +1 -1
- package/dist/{animated-text-CVStWn5N.js → animated-text-Ci7M0QTx.js} +3 -3
- package/dist/{animated-text-CVStWn5N.js.map → animated-text-Ci7M0QTx.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-Cg9dqZJ5.cjs +8 -0
- package/dist/area.component-Cg9dqZJ5.cjs.map +1 -0
- package/dist/area.component-eJJ_wryh.js +191 -0
- package/dist/area.component-eJJ_wryh.js.map +1 -0
- package/dist/area.js +21 -6
- package/dist/area.js.map +1 -1
- package/dist/{autocomplete-DBXvIJgc.cjs → autocomplete-BH7nQbid.cjs} +2 -2
- package/dist/{autocomplete-DBXvIJgc.cjs.map → autocomplete-BH7nQbid.cjs.map} +1 -1
- package/dist/{autocomplete-ih92pPkb.js → autocomplete-D9n1MeKT.js} +3 -3
- package/dist/{autocomplete-ih92pPkb.js.map → autocomplete-D9n1MeKT.js.map} +1 -1
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/{avatar-WAIlaNJg.js → avatar-B4lSs4z5.js} +183 -145
- package/dist/avatar-B4lSs4z5.js.map +1 -0
- package/dist/{avatar-s-2jSsaH.cjs → avatar-Bg-rdjAe.cjs} +62 -24
- package/dist/avatar-Bg-rdjAe.cjs.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-DtnX5sT6.cjs → checkbox-CgL23smr.cjs} +10 -10
- package/dist/{checkbox-DtnX5sT6.cjs.map → checkbox-CgL23smr.cjs.map} +1 -1
- package/dist/{checkbox-Jxxbjxp0.js → checkbox-y37-tGrk.js} +72 -65
- package/dist/{checkbox-Jxxbjxp0.js.map → checkbox-y37-tGrk.js.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{chips-CVDnpVUM.cjs → chips-CKST7ug-.cjs} +2 -2
- package/dist/{chips-CVDnpVUM.cjs.map → chips-CKST7ug-.cjs.map} +1 -1
- package/dist/{chips-lP7ohQep.js → chips-Ndwt1V4b.js} +3 -3
- package/dist/{chips-lP7ohQep.js.map → chips-Ndwt1V4b.js.map} +1 -1
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +1 -1
- package/dist/circular-progress-BDmc1zlm.cjs +9 -0
- package/dist/circular-progress-BDmc1zlm.cjs.map +1 -0
- package/dist/circular-progress-vokDGjmG.js +35 -0
- package/dist/circular-progress-vokDGjmG.js.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-Ca9WLI4Q.js → date-range-CpDVPn_v.js} +3 -3
- package/dist/{date-range-Ca9WLI4Q.js.map → date-range-CpDVPn_v.js.map} +1 -1
- package/dist/{date-range-DbPA5Y-t.cjs → date-range-DfZz3ifP.cjs} +2 -2
- package/dist/{date-range-DbPA5Y-t.cjs.map → date-range-DfZz3ifP.cjs.map} +1 -1
- package/dist/date-range.cjs +1 -1
- package/dist/date-range.js +1 -1
- package/dist/{delay-BgNgQV2G.cjs → delay-ASLyLkQL.cjs} +2 -2
- package/dist/{delay-BgNgQV2G.cjs.map → delay-ASLyLkQL.cjs.map} +1 -1
- package/dist/{delay-5cCl7ji3.js → delay-CG5SRrzF.js} +2 -2
- package/dist/{delay-5cCl7ji3.js.map → delay-CG5SRrzF.js.map} +1 -1
- package/dist/delay.cjs +1 -1
- package/dist/delay.js +1 -1
- package/dist/{dialog-content-9pumpyLD.js → dialog-content-BoPviBAt.js} +86 -82
- package/dist/dialog-content-BoPviBAt.js.map +1 -0
- package/dist/{dialog-content-qj1E8aye.cjs → dialog-content-D88EcY6L.cjs} +8 -8
- package/dist/dialog-content-D88EcY6L.cjs.map +1 -0
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/{divider-CHckHGEQ.cjs → divider-C38JDYss.cjs} +2 -2
- package/dist/{divider-CHckHGEQ.cjs.map → divider-C38JDYss.cjs.map} +1 -1
- package/dist/{divider-r8-9eNnl.js → divider-N7GWgK6o.js} +3 -3
- package/dist/{divider-r8-9eNnl.js.map → divider-N7GWgK6o.js.map} +1 -1
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/{dropdown-content-D-TddflQ.js → dropdown-content-DmO_yIVb.js} +3 -3
- package/dist/{dropdown-content-D-TddflQ.js.map → dropdown-content-DmO_yIVb.js.map} +1 -1
- package/dist/{dropdown-content-B41MDDRG.cjs → dropdown-content-rH8awIRA.cjs} +2 -2
- package/dist/{dropdown-content-B41MDDRG.cjs.map → dropdown-content-rH8awIRA.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-CXYfL6bE.js} +2 -2
- package/dist/{flex-Bf0zNqji.js.map → flex-CXYfL6bE.js.map} +1 -1
- package/dist/{flex-CFv-Zb76.cjs → flex-wYuewqrr.cjs} +2 -2
- package/dist/{flex-CFv-Zb76.cjs.map → flex-wYuewqrr.cjs.map} +1 -1
- package/dist/{form-BN75s0PI.cjs → form-CNWWdhT_.cjs} +2 -2
- package/dist/{form-BN75s0PI.cjs.map → form-CNWWdhT_.cjs.map} +1 -1
- package/dist/{form-uYcr1RLJ.js → form-q3JZjWez.js} +2 -2
- package/dist/{form-uYcr1RLJ.js.map → form-q3JZjWez.js.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +1 -1
- package/dist/{icon-Cu-imayV.cjs → icon-QnmfHtfT.cjs} +2 -2
- package/dist/{icon-Cu-imayV.cjs.map → icon-QnmfHtfT.cjs.map} +1 -1
- package/dist/{icon-button-1tZaicyb.js → icon-button-DOTB_28y.js} +3 -3
- package/dist/{icon-button-1tZaicyb.js.map → icon-button-DOTB_28y.js.map} +1 -1
- package/dist/{icon-button-D0BbHnDL.cjs → icon-button-oAOX71_s.cjs} +2 -2
- package/dist/{icon-button-D0BbHnDL.cjs.map → icon-button-oAOX71_s.cjs.map} +1 -1
- package/dist/{icon-BR-jE0Y2.js → icon-pLQWXzo8.js} +3 -3
- package/dist/{icon-BR-jE0Y2.js.map → icon-pLQWXzo8.js.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-CCniOtAr.cjs} +2 -2
- package/dist/{input-B2oV6Hck.cjs.map → input-CCniOtAr.cjs.map} +1 -1
- package/dist/{input-kiz5O3dY.js → input-DeJitVSV.js} +2 -2
- package/dist/{input-kiz5O3dY.js.map → input-DeJitVSV.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-CMHoPfX9.cjs → list-Ad-24MHW.cjs} +2 -2
- package/dist/{list-CMHoPfX9.cjs.map → list-Ad-24MHW.cjs.map} +1 -1
- package/dist/{list-wT4DLXCh.js → list-Ca79GGNH.js} +2 -2
- package/dist/{list-wT4DLXCh.js.map → list-Ca79GGNH.js.map} +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{litElement.mixin-B9Qdq5S_.js → litElement.mixin-BoUiP2tU.js} +2 -2
- package/dist/{litElement.mixin-B9Qdq5S_.js.map → litElement.mixin-BoUiP2tU.js.map} +1 -1
- package/dist/{litElement.mixin-CHvyxfxf.cjs → litElement.mixin-qOTYSaNG.cjs} +2 -2
- package/dist/{litElement.mixin-CHvyxfxf.cjs.map → litElement.mixin-qOTYSaNG.cjs.map} +1 -1
- package/dist/{menu-BcSplMNh.cjs → menu-6Wum4ysc.cjs} +2 -2
- package/dist/{menu-BcSplMNh.cjs.map → menu-6Wum4ysc.cjs.map} +1 -1
- package/dist/{menu-Dl1QU86K.js → menu-Dd_X9oET.js} +3 -3
- package/dist/{menu-Dl1QU86K.js.map → menu-Dd_X9oET.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-CC698xHg.js → notification-service-C-9IqObm.js} +3 -3
- package/dist/{notification-service-CC698xHg.js.map → notification-service-C-9IqObm.js.map} +1 -1
- package/dist/{notification-service-BV9ybQBu.cjs → notification-service-CrNyAbmv.cjs} +2 -2
- package/dist/{notification-service-BV9ybQBu.cjs.map → notification-service-CrNyAbmv.cjs.map} +1 -1
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +1 -1
- package/dist/{option-CkLBgH71.cjs → option-BbBbwrJq.cjs} +2 -2
- package/dist/{option-CkLBgH71.cjs.map → option-BbBbwrJq.cjs.map} +1 -1
- package/dist/{option-DDxxXwwc.js → option-DVSXUJ96.js} +2 -2
- package/dist/{option-DDxxXwwc.js.map → option-DVSXUJ96.js.map} +1 -1
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{payment-card-form-DDTO5_AA.js → payment-card-form-CTjgVoJK.js} +3 -3
- package/dist/{payment-card-form-DDTO5_AA.js.map → payment-card-form-CTjgVoJK.js.map} +1 -1
- package/dist/{payment-card-form-UWbAYNPR.cjs → payment-card-form-R5wNWHAv.cjs} +2 -2
- package/dist/{payment-card-form-UWbAYNPR.cjs.map → payment-card-form-R5wNWHAv.cjs.map} +1 -1
- package/dist/{radio-button-wWoxPDfq.js → radio-button-BDAW1Euc.js} +2 -2
- package/dist/{radio-button-wWoxPDfq.js.map → radio-button-BDAW1Euc.js.map} +1 -1
- package/dist/{radio-button-BykiVxTD.cjs → radio-button-Cg1JobXT.cjs} +2 -2
- package/dist/{radio-button-BykiVxTD.cjs.map → radio-button-Cg1JobXT.cjs.map} +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/{schmancy-steps-container-ByO98z7L.js → schmancy-steps-container--d7VK-QR.js} +2 -2
- package/dist/{schmancy-steps-container-ByO98z7L.js.map → schmancy-steps-container--d7VK-QR.js.map} +1 -1
- package/dist/{schmancy-steps-container-B1mIGa9M.cjs → schmancy-steps-container-BAPIxl4s.cjs} +2 -2
- package/dist/{schmancy-steps-container-B1mIGa9M.cjs.map → schmancy-steps-container-BAPIxl4s.cjs.map} +1 -1
- package/dist/{select-DE57Nios.cjs → select-CnjO7DLl.cjs} +2 -2
- package/dist/{select-DE57Nios.cjs.map → select-CnjO7DLl.cjs.map} +1 -1
- package/dist/{select-BIOhocL7.js → select-DfbOOZtm.js} +3 -3
- package/dist/{select-BIOhocL7.js.map → select-DfbOOZtm.js.map} +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/{sheet-Dh4MLVsU.js → sheet-DhbKM9gJ.js} +3 -3
- package/dist/{sheet-Dh4MLVsU.js.map → sheet-DhbKM9gJ.js.map} +1 -1
- package/dist/{sheet-fZYAWGsm.cjs → sheet-Ds0Fp0lM.cjs} +2 -2
- package/dist/{sheet-fZYAWGsm.cjs.map → sheet-Ds0Fp0lM.cjs.map} +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/{slider-DVlJoDgU.js → slider-Ba3AEh2W.js} +3 -3
- package/dist/{slider-DVlJoDgU.js.map → slider-Ba3AEh2W.js.map} +1 -1
- package/dist/{slider-CejrdmPF.cjs → slider-CSOzhUhA.cjs} +2 -2
- package/dist/{slider-CejrdmPF.cjs.map → slider-CSOzhUhA.cjs.map} +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/{spinner-DbTnai_Q.js → spinner-BgeQqlFU.js} +3 -3
- package/dist/{spinner-DbTnai_Q.js.map → spinner-BgeQqlFU.js.map} +1 -1
- package/dist/{spinner-DxVJ7QJZ.cjs → spinner-llMfjiIc.cjs} +2 -2
- package/dist/{spinner-DxVJ7QJZ.cjs.map → spinner-llMfjiIc.cjs.map} +1 -1
- package/dist/steps.cjs +1 -1
- package/dist/steps.js +1 -1
- package/dist/surface-CT2g8fDM.cjs +92 -0
- package/dist/surface-CT2g8fDM.cjs.map +1 -0
- package/dist/surface-UcsAmLj5.js +113 -0
- package/dist/surface-UcsAmLj5.js.map +1 -0
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/{table-CBhyHINV.cjs → table-CSBhQ-pa.cjs} +4 -4
- package/dist/{table-CBhyHINV.cjs.map → table-CSBhQ-pa.cjs.map} +1 -1
- package/dist/{table-CqUv1TOC.js → table-DuUlrDCu.js} +72 -68
- package/dist/{table-CqUv1TOC.js.map → table-DuUlrDCu.js.map} +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-compatibility-DUo2f_sV.js → tabs-compatibility-BVFHArgV.js} +2 -2
- package/dist/{tabs-compatibility-DUo2f_sV.js.map → tabs-compatibility-BVFHArgV.js.map} +1 -1
- package/dist/{tabs-compatibility-DPD6jfGF.cjs → tabs-compatibility-Bt3coGzN.cjs} +2 -2
- package/dist/{tabs-compatibility-DPD6jfGF.cjs.map → tabs-compatibility-Bt3coGzN.cjs.map} +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tailwind.mixin-C71e_LC1.js +43 -0
- package/dist/{tailwind.mixin-Di7KWye7.js.map → tailwind.mixin-C71e_LC1.js.map} +1 -1
- package/dist/tailwind.mixin-CFCJhe5p.cjs +2 -0
- package/dist/{tailwind.mixin-Dm5QDZav.cjs.map → tailwind.mixin-CFCJhe5p.cjs.map} +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/dist/{textarea-Dbz18REy.js → textarea-B8eIpYa-.js} +2 -2
- package/dist/{textarea-Dbz18REy.js.map → textarea-B8eIpYa-.js.map} +1 -1
- package/dist/{textarea-CesFdBkm.cjs → textarea-CtCk_1Fq.cjs} +2 -2
- package/dist/{textarea-CesFdBkm.cjs.map → textarea-CtCk_1Fq.cjs.map} +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{theme-button-Bt2OV4iu.cjs → theme-button-DQe5uOxU.cjs} +2 -2
- package/dist/{theme-button-Bt2OV4iu.cjs.map → theme-button-DQe5uOxU.cjs.map} +1 -1
- package/dist/{theme-button-lqbT2_LL.js → theme-button-TEzhKUy6.js} +2 -2
- package/dist/{theme-button-lqbT2_LL.js.map → theme-button-TEzhKUy6.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-BlBaN7d6.cjs → theme.component-Be6M74nN.cjs} +3 -3
- package/dist/{theme.component-BlBaN7d6.cjs.map → theme.component-Be6M74nN.cjs.map} +1 -1
- package/dist/{theme.component-xarFSe8p.js → theme.component-DiTpToTC.js} +2 -2
- package/dist/{theme.component-xarFSe8p.js.map → theme.component-DiTpToTC.js.map} +1 -1
- package/dist/theme.js +1 -1
- package/dist/{timezone-VUMRmZaJ.cjs → timezone-C1aR24i0.cjs} +2 -2
- package/dist/{timezone-VUMRmZaJ.cjs.map → timezone-C1aR24i0.cjs.map} +1 -1
- package/dist/{timezone-DwT_pQrj.js → timezone-CBSuTrU2.js} +3 -3
- package/dist/{timezone-DwT_pQrj.js.map → timezone-CBSuTrU2.js.map} +1 -1
- package/dist/{tooltip-BKOHVCMK.js → tooltip-DYQW9R3I.js} +2 -2
- package/dist/{tooltip-BKOHVCMK.js.map → tooltip-DYQW9R3I.js.map} +1 -1
- package/dist/{tooltip-Cvoroe7w.cjs → tooltip-DYcXTtFy.cjs} +2 -2
- package/dist/{tooltip-Cvoroe7w.cjs.map → tooltip-DYcXTtFy.cjs.map} +1 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/{tree-Cyp2AZ8g.cjs → tree-D-rTjnPs.cjs} +2 -2
- package/dist/{tree-Cyp2AZ8g.cjs.map → tree-D-rTjnPs.cjs.map} +1 -1
- package/dist/{tree-_FJnHVmP.js → tree-nsSIkdNT.js} +2 -2
- package/dist/{tree-_FJnHVmP.js.map → tree-nsSIkdNT.js.map} +1 -1
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/{typewriter-BIm2tOe4.cjs → typewriter-Cj0R-RDa.cjs} +2 -2
- package/dist/{typewriter-BIm2tOe4.cjs.map → typewriter-Cj0R-RDa.cjs.map} +1 -1
- package/dist/{typewriter-DWfXPBni.js → typewriter-DrYb6_FB.js} +22 -22
- package/dist/{typewriter-DWfXPBni.js.map → typewriter-DrYb6_FB.js.map} +1 -1
- package/dist/typewriter.cjs +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{typography-OpLt6LNd.cjs → typography-B0Kj2XoC.cjs} +2 -2
- package/dist/{typography-OpLt6LNd.cjs.map → typography-B0Kj2XoC.cjs.map} +1 -1
- package/dist/{typography-DaKLzjFB.js → typography-DMj2H_lZ.js} +2 -2
- package/dist/{typography-DaKLzjFB.js.map → typography-DMj2H_lZ.js.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 +14 -14
- package/types/src/area/area.component.d.ts +1 -1
- package/types/src/area/area.service.d.ts +72 -5
- package/types/src/area/index.d.ts +1 -0
- package/types/src/area/router.types.d.ts +41 -2
- 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-CZELEuMj.js +0 -107
- package/dist/area.component-CZELEuMj.js.map +0 -1
- package/dist/area.component-grRkXEse.cjs +0 -8
- package/dist/area.component-grRkXEse.cjs.map +0 -1
- package/dist/avatar-WAIlaNJg.js.map +0 -1
- package/dist/avatar-s-2jSsaH.cjs.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
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Schmancy Notification - AI Reference
|
|
2
|
+
|
|
3
|
+
```js
|
|
4
|
+
// Notification Service API
|
|
5
|
+
import { $notification } from 'schmancy';
|
|
6
|
+
|
|
7
|
+
// Display notification methods
|
|
8
|
+
$notification.info(message, options?) -> NotificationRef
|
|
9
|
+
$notification.success(message, options?) -> NotificationRef
|
|
10
|
+
$notification.warning(message, options?) -> NotificationRef
|
|
11
|
+
$notification.error(message, options?) -> NotificationRef
|
|
12
|
+
|
|
13
|
+
// Custom notification
|
|
14
|
+
$notification.show({
|
|
15
|
+
message: string,
|
|
16
|
+
type: 'info'|'success'|'warning'|'error',
|
|
17
|
+
title?: string,
|
|
18
|
+
duration?: number, // milliseconds, default 5000
|
|
19
|
+
closable?: boolean, // default true
|
|
20
|
+
actions?: [{
|
|
21
|
+
label: string,
|
|
22
|
+
onClick: Function
|
|
23
|
+
}],
|
|
24
|
+
position?: 'top-right'|'top-left'|'bottom-right'|'bottom-left'|'top'|'bottom',
|
|
25
|
+
onClose?: Function
|
|
26
|
+
}) -> NotificationRef
|
|
27
|
+
|
|
28
|
+
// NotificationRef object
|
|
29
|
+
{
|
|
30
|
+
close(): void, // Programmatically close the notification
|
|
31
|
+
id: string // Unique ID of the notification
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Notification Container Component
|
|
35
|
+
<schmancy-notification-container
|
|
36
|
+
position="top-right|top-left|bottom-right|bottom-left|top|bottom"
|
|
37
|
+
max-count="5">
|
|
38
|
+
</schmancy-notification-container>
|
|
39
|
+
|
|
40
|
+
// Notification Outlet (place notifications in specific locations)
|
|
41
|
+
<schmancy-notification-outlet name="custom-location"></schmancy-notification-outlet>
|
|
42
|
+
// Use with:
|
|
43
|
+
$notification.show({ message: "Alert", outlet: "custom-location" });
|
|
44
|
+
|
|
45
|
+
// Notification Audio
|
|
46
|
+
$notification.setAudio(type, audioUrl) // Configure audio for notification types
|
|
47
|
+
|
|
48
|
+
// Examples
|
|
49
|
+
// Basic usage
|
|
50
|
+
$notification.success("Operation completed successfully");
|
|
51
|
+
|
|
52
|
+
// With options
|
|
53
|
+
$notification.error("Failed to save changes", {
|
|
54
|
+
title: "Error",
|
|
55
|
+
duration: 10000,
|
|
56
|
+
closable: true
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
// With actions
|
|
60
|
+
$notification.info("New update available", {
|
|
61
|
+
actions: [
|
|
62
|
+
{
|
|
63
|
+
label: "Update Now",
|
|
64
|
+
onClick: () => performUpdate()
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
label: "Remind Later",
|
|
68
|
+
onClick: () => scheduleReminder()
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
// Custom notification
|
|
74
|
+
$notification.show({
|
|
75
|
+
type: "info",
|
|
76
|
+
message: "Custom message with HTML content",
|
|
77
|
+
title: "Information",
|
|
78
|
+
duration: 0, // won't auto-close
|
|
79
|
+
position: "bottom",
|
|
80
|
+
actions: [{
|
|
81
|
+
label: "Dismiss",
|
|
82
|
+
onClick: (ref) => ref.close()
|
|
83
|
+
}]
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
// With HTML content (using lit-html)
|
|
87
|
+
$notification.info(html`
|
|
88
|
+
<div>
|
|
89
|
+
<strong>Hello</strong>
|
|
90
|
+
<p>This is a notification with <em>HTML</em> content</p>
|
|
91
|
+
</div>
|
|
92
|
+
`);
|
|
93
|
+
```
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
# Schmancy Radio Group - AI Reference
|
|
2
|
+
|
|
3
|
+
```js
|
|
4
|
+
// Basic Radio Group
|
|
5
|
+
<schmancy-radio-group
|
|
6
|
+
name="radio-group-name"
|
|
7
|
+
label="Group Label"
|
|
8
|
+
value="selected-value"
|
|
9
|
+
required?
|
|
10
|
+
disabled?
|
|
11
|
+
error="Error message"
|
|
12
|
+
@change=${handleChange}>
|
|
13
|
+
|
|
14
|
+
<schmancy-radio-button
|
|
15
|
+
value="option1"
|
|
16
|
+
label="Option 1">
|
|
17
|
+
</schmancy-radio-button>
|
|
18
|
+
|
|
19
|
+
<schmancy-radio-button
|
|
20
|
+
value="option2"
|
|
21
|
+
label="Option 2">
|
|
22
|
+
</schmancy-radio-button>
|
|
23
|
+
|
|
24
|
+
<schmancy-radio-button
|
|
25
|
+
value="option3"
|
|
26
|
+
label="Option 3"
|
|
27
|
+
disabled>
|
|
28
|
+
</schmancy-radio-button>
|
|
29
|
+
</schmancy-radio-group>
|
|
30
|
+
|
|
31
|
+
// Radio Group with helper text
|
|
32
|
+
<schmancy-radio-group
|
|
33
|
+
label="Select payment method"
|
|
34
|
+
helper-text="Choose your preferred payment option"
|
|
35
|
+
value="credit">
|
|
36
|
+
|
|
37
|
+
<schmancy-radio-button
|
|
38
|
+
value="credit"
|
|
39
|
+
label="Credit Card">
|
|
40
|
+
</schmancy-radio-button>
|
|
41
|
+
|
|
42
|
+
<schmancy-radio-button
|
|
43
|
+
value="paypal"
|
|
44
|
+
label="PayPal">
|
|
45
|
+
</schmancy-radio-button>
|
|
46
|
+
</schmancy-radio-group>
|
|
47
|
+
|
|
48
|
+
// Radio Button with custom content
|
|
49
|
+
<schmancy-radio-button value="custom" label="Custom Option">
|
|
50
|
+
<div slot="description">
|
|
51
|
+
Additional description text that appears below the label
|
|
52
|
+
</div>
|
|
53
|
+
</schmancy-radio-button>
|
|
54
|
+
|
|
55
|
+
// Radio Group Methods
|
|
56
|
+
radioGroup.focus() -> void // Focus the first/selected radio button
|
|
57
|
+
radioGroup.validate() -> boolean // Validate and show error if invalid
|
|
58
|
+
radioGroup.reset() -> void // Reset to initial value
|
|
59
|
+
|
|
60
|
+
// Radio Group Properties
|
|
61
|
+
value: string // Currently selected value
|
|
62
|
+
name: string // Name attribute for the radio buttons
|
|
63
|
+
disabled: boolean // Whether the entire group is disabled
|
|
64
|
+
required: boolean // Whether a selection is required
|
|
65
|
+
error: string // Error message to display
|
|
66
|
+
|
|
67
|
+
// Radio Button Properties
|
|
68
|
+
value: string // Value of this option
|
|
69
|
+
label: string // Label text
|
|
70
|
+
disabled: boolean // Whether this option is disabled
|
|
71
|
+
checked: boolean // Whether this option is selected (set by group)
|
|
72
|
+
|
|
73
|
+
// Radio Group Events
|
|
74
|
+
@change // Fires when selection changes, with { detail: { value } }
|
|
75
|
+
@input // Fires during interaction
|
|
76
|
+
@focus // Fires when group gains focus
|
|
77
|
+
@blur // Fires when group loses focus
|
|
78
|
+
|
|
79
|
+
// Examples
|
|
80
|
+
// Basic usage
|
|
81
|
+
<schmancy-radio-group
|
|
82
|
+
name="flavor"
|
|
83
|
+
label="Select flavor"
|
|
84
|
+
value="vanilla"
|
|
85
|
+
@change=${(e) => console.log('Selected:', e.detail.value)}>
|
|
86
|
+
|
|
87
|
+
<schmancy-radio-button
|
|
88
|
+
value="vanilla"
|
|
89
|
+
label="Vanilla">
|
|
90
|
+
</schmancy-radio-button>
|
|
91
|
+
|
|
92
|
+
<schmancy-radio-button
|
|
93
|
+
value="chocolate"
|
|
94
|
+
label="Chocolate">
|
|
95
|
+
</schmancy-radio-button>
|
|
96
|
+
|
|
97
|
+
<schmancy-radio-button
|
|
98
|
+
value="strawberry"
|
|
99
|
+
label="Strawberry">
|
|
100
|
+
</schmancy-radio-button>
|
|
101
|
+
</schmancy-radio-group>
|
|
102
|
+
|
|
103
|
+
// Radio buttons with descriptions
|
|
104
|
+
<schmancy-radio-group
|
|
105
|
+
name="plan"
|
|
106
|
+
label="Select subscription plan"
|
|
107
|
+
value="basic">
|
|
108
|
+
|
|
109
|
+
<schmancy-radio-button
|
|
110
|
+
value="basic"
|
|
111
|
+
label="Basic Plan">
|
|
112
|
+
<div slot="description">
|
|
113
|
+
$9.99/month - Access to basic features
|
|
114
|
+
</div>
|
|
115
|
+
</schmancy-radio-button>
|
|
116
|
+
|
|
117
|
+
<schmancy-radio-button
|
|
118
|
+
value="pro"
|
|
119
|
+
label="Pro Plan">
|
|
120
|
+
<div slot="description">
|
|
121
|
+
$19.99/month - Access to all features
|
|
122
|
+
</div>
|
|
123
|
+
</schmancy-radio-button>
|
|
124
|
+
|
|
125
|
+
<schmancy-radio-button
|
|
126
|
+
value="enterprise"
|
|
127
|
+
label="Enterprise Plan">
|
|
128
|
+
<div slot="description">
|
|
129
|
+
$49.99/month - Priority support and advanced features
|
|
130
|
+
</div>
|
|
131
|
+
</schmancy-radio-button>
|
|
132
|
+
</schmancy-radio-group>
|
|
133
|
+
|
|
134
|
+
// Usage in a form
|
|
135
|
+
<schmancy-form @submit=${handleSubmit}>
|
|
136
|
+
<schmancy-input name="name" label="Name" required></schmancy-input>
|
|
137
|
+
|
|
138
|
+
<schmancy-radio-group
|
|
139
|
+
name="gender"
|
|
140
|
+
label="Gender"
|
|
141
|
+
required>
|
|
142
|
+
|
|
143
|
+
<schmancy-radio-button
|
|
144
|
+
value="male"
|
|
145
|
+
label="Male">
|
|
146
|
+
</schmancy-radio-button>
|
|
147
|
+
|
|
148
|
+
<schmancy-radio-button
|
|
149
|
+
value="female"
|
|
150
|
+
label="Female">
|
|
151
|
+
</schmancy-radio-button>
|
|
152
|
+
|
|
153
|
+
<schmancy-radio-button
|
|
154
|
+
value="other"
|
|
155
|
+
label="Other">
|
|
156
|
+
</schmancy-radio-button>
|
|
157
|
+
</schmancy-radio-group>
|
|
158
|
+
|
|
159
|
+
<schmancy-button type="submit">Submit</schmancy-button>
|
|
160
|
+
</schmancy-form>
|
|
161
|
+
|
|
162
|
+
// Dynamic radio options from data
|
|
163
|
+
<schmancy-radio-group
|
|
164
|
+
name="country"
|
|
165
|
+
label="Select country"
|
|
166
|
+
value=${selectedCountry}
|
|
167
|
+
@change=${(e) => selectedCountry = e.detail.value}>
|
|
168
|
+
|
|
169
|
+
${countries.map(country => html`
|
|
170
|
+
<schmancy-radio-button
|
|
171
|
+
value=${country.code}
|
|
172
|
+
label=${country.name}>
|
|
173
|
+
</schmancy-radio-button>
|
|
174
|
+
`)}
|
|
175
|
+
</schmancy-radio-group>
|
|
176
|
+
```
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# Schmancy Select - AI Reference
|
|
2
|
+
|
|
3
|
+
```js
|
|
4
|
+
// Basic Select
|
|
5
|
+
<schmancy-select
|
|
6
|
+
name="select-name"
|
|
7
|
+
label="Select Label"
|
|
8
|
+
value="selected-value"
|
|
9
|
+
placeholder="Choose an option"
|
|
10
|
+
required?
|
|
11
|
+
disabled?
|
|
12
|
+
error="Error message"
|
|
13
|
+
@change=${handleChange}>
|
|
14
|
+
|
|
15
|
+
<schmancy-option value="option1">Option 1</schmancy-option>
|
|
16
|
+
<schmancy-option value="option2">Option 2</schmancy-option>
|
|
17
|
+
<schmancy-option value="option3" disabled>Option 3</schmancy-option>
|
|
18
|
+
</schmancy-select>
|
|
19
|
+
|
|
20
|
+
// Select with helper text
|
|
21
|
+
<schmancy-select
|
|
22
|
+
label="Country"
|
|
23
|
+
helper-text="Select your country of residence"
|
|
24
|
+
required>
|
|
25
|
+
<!-- Options -->
|
|
26
|
+
</schmancy-select>
|
|
27
|
+
|
|
28
|
+
// Multiple select
|
|
29
|
+
<schmancy-select
|
|
30
|
+
multiple
|
|
31
|
+
label="Select Skills"
|
|
32
|
+
.value=${['html', 'css']}
|
|
33
|
+
@change=${(e) => console.log('Selected:', e.detail.value)}>
|
|
34
|
+
|
|
35
|
+
<schmancy-option value="html">HTML</schmancy-option>
|
|
36
|
+
<schmancy-option value="css">CSS</schmancy-option>
|
|
37
|
+
<schmancy-option value="js">JavaScript</schmancy-option>
|
|
38
|
+
<schmancy-option value="ts">TypeScript</schmancy-option>
|
|
39
|
+
</schmancy-select>
|
|
40
|
+
|
|
41
|
+
// Select with option groups
|
|
42
|
+
<schmancy-select label="Programming Language">
|
|
43
|
+
<optgroup label="Frontend">
|
|
44
|
+
<schmancy-option value="html">HTML</schmancy-option>
|
|
45
|
+
<schmancy-option value="css">CSS</schmancy-option>
|
|
46
|
+
<schmancy-option value="js">JavaScript</schmancy-option>
|
|
47
|
+
</optgroup>
|
|
48
|
+
|
|
49
|
+
<optgroup label="Backend">
|
|
50
|
+
<schmancy-option value="node">Node.js</schmancy-option>
|
|
51
|
+
<schmancy-option value="python">Python</schmancy-option>
|
|
52
|
+
<schmancy-option value="java">Java</schmancy-option>
|
|
53
|
+
</optgroup>
|
|
54
|
+
</schmancy-select>
|
|
55
|
+
|
|
56
|
+
// Select with search
|
|
57
|
+
<schmancy-select
|
|
58
|
+
searchable
|
|
59
|
+
label="Search Countries"
|
|
60
|
+
placeholder="Type to search...">
|
|
61
|
+
<!-- Many options -->
|
|
62
|
+
</schmancy-select>
|
|
63
|
+
|
|
64
|
+
// Select Methods
|
|
65
|
+
select.focus() -> void // Focus the select
|
|
66
|
+
select.blur() -> void // Remove focus
|
|
67
|
+
select.open() -> void // Open the dropdown
|
|
68
|
+
select.close() -> void // Close the dropdown
|
|
69
|
+
select.validate() -> boolean // Validate and show error if invalid
|
|
70
|
+
select.reset() -> void // Reset to initial value
|
|
71
|
+
|
|
72
|
+
// Select Properties
|
|
73
|
+
value: string | string[] // Currently selected value(s)
|
|
74
|
+
name: string // The name attribute
|
|
75
|
+
label: string // Label text
|
|
76
|
+
placeholder: string // Placeholder text
|
|
77
|
+
multiple: boolean // Whether multiple selection is allowed
|
|
78
|
+
disabled: boolean // Whether the select is disabled
|
|
79
|
+
required: boolean // Whether a selection is required
|
|
80
|
+
error: string // Error message to display
|
|
81
|
+
searchable: boolean // Whether to allow searching within options
|
|
82
|
+
open: boolean // Whether the dropdown is open
|
|
83
|
+
|
|
84
|
+
// Option Properties
|
|
85
|
+
value: string // Value of this option
|
|
86
|
+
disabled: boolean // Whether this option is disabled
|
|
87
|
+
selected: boolean // Whether this option is selected
|
|
88
|
+
|
|
89
|
+
// Select Events
|
|
90
|
+
@change // Fires when selection changes, with { detail: { value } }
|
|
91
|
+
@input // Fires during interaction
|
|
92
|
+
@focus // Fires when select gains focus
|
|
93
|
+
@blur // Fires when select loses focus
|
|
94
|
+
@open // Fires when dropdown opens
|
|
95
|
+
@close // Fires when dropdown closes
|
|
96
|
+
@search // Fires during search with { detail: { query } }
|
|
97
|
+
|
|
98
|
+
// Examples
|
|
99
|
+
// Basic usage
|
|
100
|
+
<schmancy-select
|
|
101
|
+
name="category"
|
|
102
|
+
label="Category"
|
|
103
|
+
value="electronics"
|
|
104
|
+
@change=${(e) => console.log('Selected:', e.detail.value)}>
|
|
105
|
+
|
|
106
|
+
<schmancy-option value="electronics">Electronics</schmancy-option>
|
|
107
|
+
<schmancy-option value="clothing">Clothing</schmancy-option>
|
|
108
|
+
<schmancy-option value="books">Books</schmancy-option>
|
|
109
|
+
<schmancy-option value="food">Food & Beverages</schmancy-option>
|
|
110
|
+
</schmancy-select>
|
|
111
|
+
|
|
112
|
+
// Multiple select with initial values
|
|
113
|
+
<schmancy-select
|
|
114
|
+
name="interests"
|
|
115
|
+
label="Interests"
|
|
116
|
+
multiple
|
|
117
|
+
.value=${userInterests} // Array of selected values
|
|
118
|
+
@change=${(e) => updateInterests(e.detail.value)}>
|
|
119
|
+
|
|
120
|
+
<schmancy-option value="tech">Technology</schmancy-option>
|
|
121
|
+
<schmancy-option value="sports">Sports</schmancy-option>
|
|
122
|
+
<schmancy-option value="music">Music</schmancy-option>
|
|
123
|
+
<schmancy-option value="movies">Movies</schmancy-option>
|
|
124
|
+
<schmancy-option value="travel">Travel</schmancy-option>
|
|
125
|
+
<schmancy-option value="food">Food</schmancy-option>
|
|
126
|
+
</schmancy-select>
|
|
127
|
+
|
|
128
|
+
// Searchable select with many options
|
|
129
|
+
<schmancy-select
|
|
130
|
+
name="country"
|
|
131
|
+
label="Country"
|
|
132
|
+
searchable
|
|
133
|
+
placeholder="Search for a country">
|
|
134
|
+
|
|
135
|
+
${countries.map(country => html`
|
|
136
|
+
<schmancy-option value=${country.code}>${country.name}</schmancy-option>
|
|
137
|
+
`)}
|
|
138
|
+
</schmancy-select>
|
|
139
|
+
|
|
140
|
+
// Usage in a form
|
|
141
|
+
<schmancy-form @submit=${handleSubmit}>
|
|
142
|
+
<schmancy-input name="name" label="Name" required></schmancy-input>
|
|
143
|
+
|
|
144
|
+
<schmancy-select
|
|
145
|
+
name="department"
|
|
146
|
+
label="Department"
|
|
147
|
+
required>
|
|
148
|
+
|
|
149
|
+
<schmancy-option value="hr">Human Resources</schmancy-option>
|
|
150
|
+
<schmancy-option value="engineering">Engineering</schmancy-option>
|
|
151
|
+
<schmancy-option value="marketing">Marketing</schmancy-option>
|
|
152
|
+
<schmancy-option value="finance">Finance</schmancy-option>
|
|
153
|
+
</schmancy-select>
|
|
154
|
+
|
|
155
|
+
<schmancy-button type="submit">Submit</schmancy-button>
|
|
156
|
+
</schmancy-form>
|
|
157
|
+
|
|
158
|
+
// Select with custom rendering
|
|
159
|
+
<schmancy-select
|
|
160
|
+
name="user"
|
|
161
|
+
label="Assign to User"
|
|
162
|
+
@change=${assignToUser}>
|
|
163
|
+
|
|
164
|
+
${users.map(user => html`
|
|
165
|
+
<schmancy-option value=${user.id}>
|
|
166
|
+
<div style="display: flex; align-items: center;">
|
|
167
|
+
<schmancy-avatar src=${user.avatar} size="small"></schmancy-avatar>
|
|
168
|
+
<span style="margin-left: 8px;">${user.name}</span>
|
|
169
|
+
<span style="margin-left: auto; color: gray; font-size: 0.8em;">${user.role}</span>
|
|
170
|
+
</div>
|
|
171
|
+
</schmancy-option>
|
|
172
|
+
`)}
|
|
173
|
+
</schmancy-select>
|
|
174
|
+
```
|
package/dist/ai/sheet.md
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# Schmancy Sheet - AI Reference
|
|
2
|
+
|
|
3
|
+
```js
|
|
4
|
+
// Sheet Service API
|
|
5
|
+
import { $sheet } from 'schmancy';
|
|
6
|
+
|
|
7
|
+
// Open a sheet
|
|
8
|
+
$sheet.open({
|
|
9
|
+
title?: string,
|
|
10
|
+
content: TemplateResult|HTMLElement|Function,
|
|
11
|
+
width?: string|number, // default "600px"
|
|
12
|
+
height?: string|number, // default "auto"
|
|
13
|
+
position?: 'right'|'left'|'bottom'|'top', // default "right"
|
|
14
|
+
closable?: boolean, // default true
|
|
15
|
+
backdrop?: boolean, // default false
|
|
16
|
+
onClose?: Function,
|
|
17
|
+
hooks?: {
|
|
18
|
+
beforeOpen?: Function,
|
|
19
|
+
afterOpen?: Function,
|
|
20
|
+
beforeClose?: Function,
|
|
21
|
+
afterClose?: Function
|
|
22
|
+
}
|
|
23
|
+
}) -> SheetRef
|
|
24
|
+
|
|
25
|
+
// SheetRef object
|
|
26
|
+
{
|
|
27
|
+
close(): Promise<void>, // Programmatically close the sheet
|
|
28
|
+
id: string, // Unique ID of the sheet
|
|
29
|
+
element: HTMLElement // The sheet element
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Sheet Component
|
|
33
|
+
<schmancy-sheet
|
|
34
|
+
title="Sheet Title"
|
|
35
|
+
position="right|left|bottom|top"
|
|
36
|
+
width="600px"
|
|
37
|
+
height="auto"
|
|
38
|
+
closable?
|
|
39
|
+
backdrop?
|
|
40
|
+
@close=${handleClose}>
|
|
41
|
+
|
|
42
|
+
<div slot="header">
|
|
43
|
+
<!-- Custom header content -->
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<!-- Main content -->
|
|
47
|
+
<div>Sheet content goes here</div>
|
|
48
|
+
|
|
49
|
+
<div slot="footer">
|
|
50
|
+
<!-- Footer content -->
|
|
51
|
+
<schmancy-button @click=${closeSheet}>Close</schmancy-button>
|
|
52
|
+
</div>
|
|
53
|
+
</schmancy-sheet>
|
|
54
|
+
|
|
55
|
+
// Sheet Header Component
|
|
56
|
+
<schmancy-sheet-header
|
|
57
|
+
title="Sheet Title"
|
|
58
|
+
closable?
|
|
59
|
+
@close=${handleClose}>
|
|
60
|
+
<!-- Optional additional header content -->
|
|
61
|
+
</schmancy-sheet-header>
|
|
62
|
+
|
|
63
|
+
// Sheet Hook (for programmatic usage)
|
|
64
|
+
const [openSheet, SheetComponent] = useSheet({
|
|
65
|
+
title: "Sheet Title",
|
|
66
|
+
content: () => html`<div>Sheet content</div>`,
|
|
67
|
+
position: "right"
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
// Examples
|
|
71
|
+
// Basic usage
|
|
72
|
+
$sheet.open({
|
|
73
|
+
title: "User Details",
|
|
74
|
+
content: html`
|
|
75
|
+
<div>
|
|
76
|
+
<schmancy-form>
|
|
77
|
+
<schmancy-input label="Name" value="John Doe"></schmancy-input>
|
|
78
|
+
<schmancy-input label="Email" value="john@example.com"></schmancy-input>
|
|
79
|
+
</schmancy-form>
|
|
80
|
+
</div>
|
|
81
|
+
`,
|
|
82
|
+
onClose: () => console.log("Sheet closed")
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
// Using with form submission
|
|
86
|
+
const sheetRef = $sheet.open({
|
|
87
|
+
title: "Add User",
|
|
88
|
+
content: html`
|
|
89
|
+
<schmancy-form @submit=${(e) => {
|
|
90
|
+
const values = e.detail.values;
|
|
91
|
+
saveUser(values);
|
|
92
|
+
sheetRef.close();
|
|
93
|
+
}}>
|
|
94
|
+
<schmancy-input name="name" label="Name" required></schmancy-input>
|
|
95
|
+
<schmancy-input name="email" label="Email" required></schmancy-input>
|
|
96
|
+
|
|
97
|
+
<div slot="footer">
|
|
98
|
+
<schmancy-button type="submit">Save</schmancy-button>
|
|
99
|
+
<schmancy-button kind="secondary" @click=${() => sheetRef.close()}>Cancel</schmancy-button>
|
|
100
|
+
</div>
|
|
101
|
+
</schmancy-form>
|
|
102
|
+
`
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
// Using the sheet component directly
|
|
106
|
+
<schmancy-sheet
|
|
107
|
+
title="Settings"
|
|
108
|
+
position="right"
|
|
109
|
+
width="400px"
|
|
110
|
+
@close=${() => this.sheetOpen = false}>
|
|
111
|
+
|
|
112
|
+
<div>
|
|
113
|
+
<h3>Preferences</h3>
|
|
114
|
+
<schmancy-checkbox label="Enable notifications"></schmancy-checkbox>
|
|
115
|
+
<schmancy-checkbox label="Dark mode"></schmancy-checkbox>
|
|
116
|
+
</div>
|
|
117
|
+
|
|
118
|
+
<div slot="footer">
|
|
119
|
+
<schmancy-button @click=${saveSettings}>Save</schmancy-button>
|
|
120
|
+
</div>
|
|
121
|
+
</schmancy-sheet>
|
|
122
|
+
```
|