@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
package/ai/chips.md
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
# Schmancy Chips - AI Reference
|
|
2
|
+
|
|
3
|
+
```js
|
|
4
|
+
// Single Chip
|
|
5
|
+
<schmancy-chip
|
|
6
|
+
text="Chip Text"
|
|
7
|
+
variant="default|primary|secondary|success|warning|danger|info"
|
|
8
|
+
size="small|medium|large"
|
|
9
|
+
closable?
|
|
10
|
+
disabled?
|
|
11
|
+
@close=${handleClose}
|
|
12
|
+
@click=${handleClick}>
|
|
13
|
+
</schmancy-chip>
|
|
14
|
+
|
|
15
|
+
// Chip with icon
|
|
16
|
+
<schmancy-chip text="JavaScript">
|
|
17
|
+
<schmancy-icon slot="prefix" icon="code"></schmancy-icon>
|
|
18
|
+
</schmancy-chip>
|
|
19
|
+
|
|
20
|
+
// Chip with avatar
|
|
21
|
+
<schmancy-chip text="John Doe">
|
|
22
|
+
<schmancy-avatar slot="prefix" src="path/to/avatar.jpg" size="small"></schmancy-avatar>
|
|
23
|
+
</schmancy-chip>
|
|
24
|
+
|
|
25
|
+
// Chips Container
|
|
26
|
+
<schmancy-chips
|
|
27
|
+
@change=${handleSelectionChange}>
|
|
28
|
+
<schmancy-chip text="Option 1" value="1"></schmancy-chip>
|
|
29
|
+
<schmancy-chip text="Option 2" value="2"></schmancy-chip>
|
|
30
|
+
<schmancy-chip text="Option 3" value="3"></schmancy-chip>
|
|
31
|
+
</schmancy-chips>
|
|
32
|
+
|
|
33
|
+
// Chips Container with selection mode
|
|
34
|
+
<schmancy-chips
|
|
35
|
+
selection="single|multiple|none"
|
|
36
|
+
.value=${selectedValues}
|
|
37
|
+
@change=${handleSelectionChange}>
|
|
38
|
+
<schmancy-chip text="Red" value="red"></schmancy-chip>
|
|
39
|
+
<schmancy-chip text="Green" value="green"></schmancy-chip>
|
|
40
|
+
<schmancy-chip text="Blue" value="blue"></schmancy-chip>
|
|
41
|
+
</schmancy-chips>
|
|
42
|
+
|
|
43
|
+
// Input with chip creation
|
|
44
|
+
<schmancy-chips
|
|
45
|
+
input?
|
|
46
|
+
placeholder="Add tag..."
|
|
47
|
+
@add=${handleAddChip}
|
|
48
|
+
@remove=${handleRemoveChip}>
|
|
49
|
+
<schmancy-chip text="React" closable></schmancy-chip>
|
|
50
|
+
<schmancy-chip text="Vue" closable></schmancy-chip>
|
|
51
|
+
<schmancy-chip text="Angular" closable></schmancy-chip>
|
|
52
|
+
</schmancy-chips>
|
|
53
|
+
|
|
54
|
+
// Chip Properties
|
|
55
|
+
text: string // Text content of the chip
|
|
56
|
+
value: string // Value for selection purposes
|
|
57
|
+
variant: string // Visual style: "default", "primary", "secondary", etc.
|
|
58
|
+
size: string // Size: "small", "medium", "large"
|
|
59
|
+
closable: boolean // Show close button
|
|
60
|
+
disabled: boolean // Disable the chip
|
|
61
|
+
selected: boolean // Whether the chip is selected
|
|
62
|
+
|
|
63
|
+
// Chips Container Properties
|
|
64
|
+
selection: string // Selection mode: "none", "single", "multiple"
|
|
65
|
+
value: string[] // Selected values
|
|
66
|
+
input: boolean // Show input for adding new chips
|
|
67
|
+
placeholder: string // Placeholder for the input
|
|
68
|
+
max: number // Maximum number of chips allowed
|
|
69
|
+
disabled: boolean // Disable the entire container
|
|
70
|
+
|
|
71
|
+
// Chip Events
|
|
72
|
+
@click // Fires when chip is clicked
|
|
73
|
+
@close // Fires when close button is clicked
|
|
74
|
+
@keydown // Fires on keydown events
|
|
75
|
+
|
|
76
|
+
// Chips Container Events
|
|
77
|
+
@change // Fires when selection changes, with { detail: { value } }
|
|
78
|
+
@add // Fires when a chip is added, with { detail: { text, value } }
|
|
79
|
+
@remove // Fires when a chip is removed, with { detail: { text, value } }
|
|
80
|
+
|
|
81
|
+
// Examples
|
|
82
|
+
// Basic chips
|
|
83
|
+
<div>
|
|
84
|
+
<schmancy-chip text="Basic"></schmancy-chip>
|
|
85
|
+
<schmancy-chip text="Primary" variant="primary"></schmancy-chip>
|
|
86
|
+
<schmancy-chip text="Success" variant="success"></schmancy-chip>
|
|
87
|
+
<schmancy-chip text="Warning" variant="warning"></schmancy-chip>
|
|
88
|
+
<schmancy-chip text="Danger" variant="danger"></schmancy-chip>
|
|
89
|
+
</div>
|
|
90
|
+
|
|
91
|
+
// Closable chips
|
|
92
|
+
<div>
|
|
93
|
+
<schmancy-chip
|
|
94
|
+
text="JavaScript"
|
|
95
|
+
closable
|
|
96
|
+
@close=${() => removeTag('javascript')}>
|
|
97
|
+
<schmancy-icon slot="prefix" icon="code"></schmancy-icon>
|
|
98
|
+
</schmancy-chip>
|
|
99
|
+
|
|
100
|
+
<schmancy-chip
|
|
101
|
+
text="TypeScript"
|
|
102
|
+
closable
|
|
103
|
+
@close=${() => removeTag('typescript')}>
|
|
104
|
+
<schmancy-icon slot="prefix" icon="code"></schmancy-icon>
|
|
105
|
+
</schmancy-chip>
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
// Single selection chips
|
|
109
|
+
<schmancy-chips
|
|
110
|
+
selection="single"
|
|
111
|
+
.value=${[selectedSize]}
|
|
112
|
+
@change=${(e) => selectedSize = e.detail.value[0]}>
|
|
113
|
+
<schmancy-chip text="Small" value="sm"></schmancy-chip>
|
|
114
|
+
<schmancy-chip text="Medium" value="md"></schmancy-chip>
|
|
115
|
+
<schmancy-chip text="Large" value="lg"></schmancy-chip>
|
|
116
|
+
</schmancy-chips>
|
|
117
|
+
|
|
118
|
+
// Multiple selection chips
|
|
119
|
+
<schmancy-chips
|
|
120
|
+
selection="multiple"
|
|
121
|
+
.value=${selectedToppings}
|
|
122
|
+
@change=${(e) => selectedToppings = e.detail.value}>
|
|
123
|
+
<schmancy-chip text="Cheese" value="cheese"></schmancy-chip>
|
|
124
|
+
<schmancy-chip text="Pepperoni" value="pepperoni"></schmancy-chip>
|
|
125
|
+
<schmancy-chip text="Mushrooms" value="mushrooms"></schmancy-chip>
|
|
126
|
+
<schmancy-chip text="Onions" value="onions"></schmancy-chip>
|
|
127
|
+
<schmancy-chip text="Peppers" value="peppers"></schmancy-chip>
|
|
128
|
+
</schmancy-chips>
|
|
129
|
+
|
|
130
|
+
// Input chips for tags
|
|
131
|
+
<schmancy-chips
|
|
132
|
+
input
|
|
133
|
+
placeholder="Add tag..."
|
|
134
|
+
@add=${(e) => addTag(e.detail.text)}
|
|
135
|
+
@remove=${(e) => removeTag(e.detail.text)}>
|
|
136
|
+
${tags.map(tag => html`
|
|
137
|
+
<schmancy-chip
|
|
138
|
+
text=${tag}
|
|
139
|
+
closable>
|
|
140
|
+
</schmancy-chip>
|
|
141
|
+
`)}
|
|
142
|
+
</schmancy-chips>
|
|
143
|
+
|
|
144
|
+
// Email recipient chips
|
|
145
|
+
<schmancy-chips
|
|
146
|
+
input
|
|
147
|
+
placeholder="Add recipient..."
|
|
148
|
+
@add=${addRecipient}
|
|
149
|
+
@remove=${removeRecipient}>
|
|
150
|
+
${recipients.map(recipient => html`
|
|
151
|
+
<schmancy-chip text=${recipient.name} closable>
|
|
152
|
+
<schmancy-avatar
|
|
153
|
+
slot="prefix"
|
|
154
|
+
src=${recipient.avatar}
|
|
155
|
+
size="small">
|
|
156
|
+
</schmancy-avatar>
|
|
157
|
+
</schmancy-chip>
|
|
158
|
+
`)}
|
|
159
|
+
</schmancy-chips>
|
|
160
|
+
|
|
161
|
+
// Filter chips
|
|
162
|
+
<div>
|
|
163
|
+
<div>Filters:</div>
|
|
164
|
+
<schmancy-chips>
|
|
165
|
+
${filters.map(filter => html`
|
|
166
|
+
<schmancy-chip
|
|
167
|
+
text=${filter.label}
|
|
168
|
+
closable
|
|
169
|
+
@close=${() => removeFilter(filter.id)}>
|
|
170
|
+
</schmancy-chip>
|
|
171
|
+
`)}
|
|
172
|
+
|
|
173
|
+
<schmancy-chip
|
|
174
|
+
text="Add Filter"
|
|
175
|
+
@click=${openFilterDialog}>
|
|
176
|
+
<schmancy-icon slot="prefix" icon="add"></schmancy-icon>
|
|
177
|
+
</schmancy-chip>
|
|
178
|
+
</schmancy-chips>
|
|
179
|
+
</div>
|
|
180
|
+
```
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Schmancy Component Relationships
|
|
2
|
+
|
|
3
|
+
This document maps the relationships between Schmancy components to provide a holistic understanding of the library.
|
|
4
|
+
|
|
5
|
+
## Component Categories
|
|
6
|
+
|
|
7
|
+
### Core Infrastructure
|
|
8
|
+
- **Area**: Routing and application area management
|
|
9
|
+
- **Store**: State management system
|
|
10
|
+
- **Teleport**: Component transportation across DOM
|
|
11
|
+
- **RxJS Utils**: Reactive programming utilities
|
|
12
|
+
|
|
13
|
+
### Layout Components
|
|
14
|
+
- **Layout**: Container layout (flex, grid)
|
|
15
|
+
- **Surface**: Style-able container with consistent theming
|
|
16
|
+
- **Card**: Content containers with various layouts
|
|
17
|
+
- **Divider**: Visual separation element
|
|
18
|
+
|
|
19
|
+
### Navigation & Structure
|
|
20
|
+
- **Tabs**: Tabbed interface components
|
|
21
|
+
- **Menu**: Dropdown/contextual menus
|
|
22
|
+
- **Nav-Drawer**: Navigation drawer with app bar
|
|
23
|
+
- **Content-Drawer**: Side panel content drawers
|
|
24
|
+
- **Sheet**: Modal slide-up panels
|
|
25
|
+
- **Dialog**: Modal dialog boxes
|
|
26
|
+
|
|
27
|
+
### Form Controls
|
|
28
|
+
- **Form**: Form container with validation
|
|
29
|
+
- **Input**: Text input fields
|
|
30
|
+
- **Textarea**: Multi-line text input
|
|
31
|
+
- **Select**: Dropdown selection
|
|
32
|
+
- **Autocomplete**: Text input with suggestions
|
|
33
|
+
- **Checkbox**: Boolean selection control
|
|
34
|
+
- **Radio-Group**: Exclusive option selection
|
|
35
|
+
- **Option**: Selection option item
|
|
36
|
+
|
|
37
|
+
### Interactive Elements
|
|
38
|
+
- **Button**: Action triggers (primary, secondary, tertiary)
|
|
39
|
+
- **Dropdown**: Togglable content containers
|
|
40
|
+
- **Chips**: Compact interactive elements
|
|
41
|
+
- **List**: Interactive list items
|
|
42
|
+
- **Tree**: Hierarchical data display
|
|
43
|
+
- **Table**: Tabular data display
|
|
44
|
+
|
|
45
|
+
### Feedback & Status
|
|
46
|
+
- **Notification**: Toast messages and alerts
|
|
47
|
+
- **Tooltip**: Contextual information on hover
|
|
48
|
+
- **Badge**: Numeric/status indicators
|
|
49
|
+
- **Busy**: Loading indicators
|
|
50
|
+
- **Avatar**: User/entity visual representation
|
|
51
|
+
|
|
52
|
+
### Typography & Visual
|
|
53
|
+
- **Typography**: Text styling system
|
|
54
|
+
- **Icons**: Iconography system
|
|
55
|
+
- **Animated-Text**: Text animation utilities
|
|
56
|
+
- **Typewriter**: Typing animation effect
|
|
57
|
+
|
|
58
|
+
### Utilities
|
|
59
|
+
- **Directives**: DOM behavior extensions
|
|
60
|
+
- **Theme**: Theming system
|
|
61
|
+
- **Theme-Button**: Theme toggle control
|
|
62
|
+
- **Utils**: General utility functions
|
|
63
|
+
- **Types**: TypeScript type definitions
|
|
64
|
+
- **Delay**: Timing utilities
|
|
65
|
+
- **Date-Range**: Date selection utilities
|
|
66
|
+
- **Steps**: Multi-step process visualization
|
|
67
|
+
|
|
68
|
+
## Key Component Interactions
|
|
69
|
+
|
|
70
|
+
### Form System Interactions
|
|
71
|
+
- **Form** → Contains and validates: Input, Textarea, Select, Checkbox, Radio-Group
|
|
72
|
+
- **Input/Select/Autocomplete** → Can contain: Icons
|
|
73
|
+
- **Option** → Used by: Select, Autocomplete
|
|
74
|
+
|
|
75
|
+
### Layout System Interactions
|
|
76
|
+
- **Surface** → Used by: Card, Dialog, Sheet, Table
|
|
77
|
+
- **Layout** → Container for: most visible components
|
|
78
|
+
- **Card** → Contains: Card-Media, Card-Content, Card-Actions
|
|
79
|
+
|
|
80
|
+
### Navigation System Interactions
|
|
81
|
+
- **Area** → Controls routing for: any component
|
|
82
|
+
- **Tabs** → Contains: Tab components
|
|
83
|
+
- **Nav-Drawer** → Contains: AppBar, Drawer, Content
|
|
84
|
+
- **Content-Drawer** → Specialized Sheet with context
|
|
85
|
+
|
|
86
|
+
### State Management
|
|
87
|
+
- **Store** → Can be used with: any component
|
|
88
|
+
- **Area** → Manages routing state via reactive observables
|
|
89
|
+
|
|
90
|
+
### Notification System
|
|
91
|
+
- **Notification** → Uses: Surface
|
|
92
|
+
- **Dialog** → Uses: Surface
|
|
93
|
+
- **Tooltip** → Can attach to: any component
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
# Content Drawer
|
|
2
|
+
|
|
3
|
+
Sliding panel system for navigation, overlays, and responsive layouts.
|
|
4
|
+
|
|
5
|
+
## Components
|
|
6
|
+
|
|
7
|
+
```js
|
|
8
|
+
// Main container that manages drawer behavior
|
|
9
|
+
<schmancy-content-drawer
|
|
10
|
+
?open="${boolean}" // Controls drawer visibility
|
|
11
|
+
position="left|right|top|bottom" // Drawer position (default: left)
|
|
12
|
+
variant="standard|modal|persistent" // Behavior type
|
|
13
|
+
breakpoint="1024px" // Responsive breakpoint
|
|
14
|
+
?backdrop="${boolean}" // Show backdrop when open
|
|
15
|
+
>
|
|
16
|
+
<schmancy-content-drawer-main>
|
|
17
|
+
// Main content that shifts when drawer opens
|
|
18
|
+
</schmancy-content-drawer-main>
|
|
19
|
+
|
|
20
|
+
<schmancy-content-drawer-sheet
|
|
21
|
+
width="256px" // Width for left/right drawers
|
|
22
|
+
height="auto" // Height for top/bottom drawers
|
|
23
|
+
offset="0" // Offset for nested drawers
|
|
24
|
+
>
|
|
25
|
+
// Drawer content
|
|
26
|
+
</schmancy-content-drawer-sheet>
|
|
27
|
+
</schmancy-content-drawer>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Context API
|
|
31
|
+
|
|
32
|
+
```js
|
|
33
|
+
import { contentDrawerContext } from '@schmancy/content-drawer'
|
|
34
|
+
|
|
35
|
+
// Create drawer controller
|
|
36
|
+
const drawer = contentDrawerContext.create('drawer-id')
|
|
37
|
+
|
|
38
|
+
// Control methods
|
|
39
|
+
drawer.open()
|
|
40
|
+
drawer.close()
|
|
41
|
+
drawer.toggle()
|
|
42
|
+
drawer.lock() // Prevent closing
|
|
43
|
+
drawer.unlock()
|
|
44
|
+
drawer.setPersistent(boolean)
|
|
45
|
+
|
|
46
|
+
// State access
|
|
47
|
+
drawer.isOpen -> boolean
|
|
48
|
+
drawer.state$ -> Observable<DrawerState>
|
|
49
|
+
|
|
50
|
+
// Events
|
|
51
|
+
@drawer-opened
|
|
52
|
+
@drawer-closed
|
|
53
|
+
@drawer-toggled -> { open: boolean }
|
|
54
|
+
@before-open
|
|
55
|
+
@before-close
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Examples
|
|
59
|
+
|
|
60
|
+
### 1. Basic Navigation Drawer
|
|
61
|
+
```html
|
|
62
|
+
<schmancy-content-drawer ?open="${drawerOpen}">
|
|
63
|
+
<schmancy-content-drawer-main>
|
|
64
|
+
<button @click="${() => drawerOpen = !drawerOpen}">Menu</button>
|
|
65
|
+
<main>App content</main>
|
|
66
|
+
</schmancy-content-drawer-main>
|
|
67
|
+
|
|
68
|
+
<schmancy-content-drawer-sheet width="280px">
|
|
69
|
+
<nav>
|
|
70
|
+
<a href="/home">Home</a>
|
|
71
|
+
<a href="/about">About</a>
|
|
72
|
+
</nav>
|
|
73
|
+
</schmancy-content-drawer-sheet>
|
|
74
|
+
</schmancy-content-drawer>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### 2. Bottom Sheet
|
|
78
|
+
```html
|
|
79
|
+
<schmancy-content-drawer
|
|
80
|
+
?open="${sheetOpen}"
|
|
81
|
+
position="bottom"
|
|
82
|
+
@drawer-closed="${() => sheetOpen = false}"
|
|
83
|
+
>
|
|
84
|
+
<schmancy-content-drawer-main>
|
|
85
|
+
<button @click="${() => sheetOpen = true}">Show Options</button>
|
|
86
|
+
</schmancy-content-drawer-main>
|
|
87
|
+
|
|
88
|
+
<schmancy-content-drawer-sheet height="auto" max-height="50vh">
|
|
89
|
+
<div class="sheet-handle"></div>
|
|
90
|
+
<h3>Select Option</h3>
|
|
91
|
+
<schmancy-list>
|
|
92
|
+
<schmancy-list-item>Option 1</schmancy-list-item>
|
|
93
|
+
<schmancy-list-item>Option 2</schmancy-list-item>
|
|
94
|
+
</schmancy-list>
|
|
95
|
+
</schmancy-content-drawer-sheet>
|
|
96
|
+
</schmancy-content-drawer>
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### 3. Persistent Sidebar
|
|
100
|
+
```js
|
|
101
|
+
// Responsive persistent drawer
|
|
102
|
+
const drawer = contentDrawerContext.create('sidebar')
|
|
103
|
+
|
|
104
|
+
// Auto-persist on large screens
|
|
105
|
+
const mediaQuery = window.matchMedia('(min-width: 1024px)')
|
|
106
|
+
drawer.setPersistent(mediaQuery.matches)
|
|
107
|
+
mediaQuery.addEventListener('change', e => drawer.setPersistent(e.matches))
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
```html
|
|
111
|
+
<schmancy-content-drawer
|
|
112
|
+
.context="${drawer}"
|
|
113
|
+
variant="persistent"
|
|
114
|
+
breakpoint="1024px"
|
|
115
|
+
>
|
|
116
|
+
<schmancy-content-drawer-main>
|
|
117
|
+
<schmancy-app-bar>
|
|
118
|
+
<schmancy-icon-button
|
|
119
|
+
icon="menu"
|
|
120
|
+
@click="${() => drawer.toggle()}"
|
|
121
|
+
></schmancy-icon-button>
|
|
122
|
+
</schmancy-app-bar>
|
|
123
|
+
<main>Dashboard content</main>
|
|
124
|
+
</schmancy-content-drawer-main>
|
|
125
|
+
|
|
126
|
+
<schmancy-content-drawer-sheet width="240px">
|
|
127
|
+
<aside>Sidebar content</aside>
|
|
128
|
+
</schmancy-content-drawer-sheet>
|
|
129
|
+
</schmancy-content-drawer>
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### 4. Nested Drawers
|
|
133
|
+
```js
|
|
134
|
+
const mainDrawer = contentDrawerContext.create('main')
|
|
135
|
+
const subDrawer = contentDrawerContext.create('sub')
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
```html
|
|
139
|
+
<schmancy-content-drawer .context="${mainDrawer}">
|
|
140
|
+
<schmancy-content-drawer-main>
|
|
141
|
+
<!-- Nested drawer container -->
|
|
142
|
+
<schmancy-content-drawer .context="${subDrawer}">
|
|
143
|
+
<schmancy-content-drawer-main>
|
|
144
|
+
<button @click="${() => mainDrawer.open()}">Menu</button>
|
|
145
|
+
</schmancy-content-drawer-main>
|
|
146
|
+
|
|
147
|
+
<!-- Sub drawer -->
|
|
148
|
+
<schmancy-content-drawer-sheet width="280px" offset="240px">
|
|
149
|
+
<button @click="${() => subDrawer.close()}">Back</button>
|
|
150
|
+
<div>Sub menu content</div>
|
|
151
|
+
</schmancy-content-drawer-sheet>
|
|
152
|
+
</schmancy-content-drawer>
|
|
153
|
+
</schmancy-content-drawer-main>
|
|
154
|
+
|
|
155
|
+
<!-- Main drawer -->
|
|
156
|
+
<schmancy-content-drawer-sheet width="240px">
|
|
157
|
+
<button @click="${() => subDrawer.open()}">Open Submenu</button>
|
|
158
|
+
<div>Main menu content</div>
|
|
159
|
+
</schmancy-content-drawer-sheet>
|
|
160
|
+
</schmancy-content-drawer>
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## CSS Variables
|
|
164
|
+
|
|
165
|
+
```css
|
|
166
|
+
schmancy-content-drawer {
|
|
167
|
+
--drawer-width: 256px;
|
|
168
|
+
--drawer-background: var(--md-sys-color-surface);
|
|
169
|
+
--drawer-shadow: 0 8px 10px -5px rgba(0,0,0,0.2);
|
|
170
|
+
--drawer-transition-duration: 250ms;
|
|
171
|
+
--drawer-transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
|
|
172
|
+
--backdrop-color: rgba(0, 0, 0, 0.5);
|
|
173
|
+
--drawer-z-index: 200;
|
|
174
|
+
}
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
## Related Components
|
|
178
|
+
|
|
179
|
+
- [Sheet](./sheet.md) - Simpler sheet component for modals
|
|
180
|
+
- [Navigation Drawer](./nav-drawer.md) - Specialized navigation component
|
|
181
|
+
- [Dialog](./dialog.md) - Modal dialogs
|
|
182
|
+
- [Layout](./layout.md) - Layout utilities
|
|
183
|
+
|
|
184
|
+
## Common Patterns
|
|
185
|
+
|
|
186
|
+
**Command Palette**: Top drawer with search input
|
|
187
|
+
**Help Panel**: Right drawer with contextual help
|
|
188
|
+
**Mobile Menu**: Left drawer for navigation
|
|
189
|
+
**Action Sheet**: Bottom drawer for mobile actions
|
|
190
|
+
**Settings Panel**: Persistent right drawer
|
package/ai/dialog.md
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# Schmancy Dialog - AI Reference
|
|
2
|
+
|
|
3
|
+
```js
|
|
4
|
+
// Basic Dialog Component
|
|
5
|
+
<schmancy-dialog>
|
|
6
|
+
<!-- Dialog content goes here -->
|
|
7
|
+
<div>Dialog content</div>
|
|
8
|
+
</schmancy-dialog>
|
|
9
|
+
|
|
10
|
+
// Dialog Component Methods
|
|
11
|
+
dialog.show(position?) -> Promise<boolean> // Show dialog, optionally at a specific position
|
|
12
|
+
dialog.hide(result?) -> void // Hide dialog with optional result (true/false)
|
|
13
|
+
|
|
14
|
+
// Position can be:
|
|
15
|
+
// - Undefined: Centers dialog in viewport
|
|
16
|
+
// - Coordinates: { x: number, y: number }
|
|
17
|
+
// - MouseEvent: Uses click coordinates
|
|
18
|
+
// - TouchEvent: Uses touch coordinates
|
|
19
|
+
|
|
20
|
+
// Dialog Events
|
|
21
|
+
@close // Fires when dialog is closed
|
|
22
|
+
|
|
23
|
+
// Service API (higher-level abstraction with additional components)
|
|
24
|
+
$dialog.confirm({
|
|
25
|
+
title?,
|
|
26
|
+
message?,
|
|
27
|
+
confirmText?,
|
|
28
|
+
cancelText?,
|
|
29
|
+
variant?: "default"|"danger",
|
|
30
|
+
confirmColor?: "primary"|"error"|"warning"|"success", // Button color for confirm action
|
|
31
|
+
position?: {x,y}|MouseEvent|TouchEvent,
|
|
32
|
+
width?: string,
|
|
33
|
+
content?: TemplateResult|HTMLElement|Function,
|
|
34
|
+
onConfirm?: Function,
|
|
35
|
+
onCancel?: Function
|
|
36
|
+
}) -> Promise<boolean>
|
|
37
|
+
|
|
38
|
+
$dialog.ask(message, event?) -> Promise<boolean>
|
|
39
|
+
$dialog.danger({...options}) -> Promise<boolean>
|
|
40
|
+
$dialog.component(content, options?) -> Promise<boolean>
|
|
41
|
+
|
|
42
|
+
// Examples
|
|
43
|
+
// Basic dialog usage
|
|
44
|
+
const dialog = document.querySelector('schmancy-dialog');
|
|
45
|
+
// Show dialog centered
|
|
46
|
+
const result = await dialog.show();
|
|
47
|
+
// Show dialog at specific coordinates
|
|
48
|
+
const result = await dialog.show({ x: 100, y: 200 });
|
|
49
|
+
// Show dialog at click position
|
|
50
|
+
button.addEventListener('click', async (e) => {
|
|
51
|
+
const result = await dialog.show(e);
|
|
52
|
+
console.log('Dialog result:', result);
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
// Manually hiding dialog
|
|
56
|
+
dialog.hide(true); // Hide with positive result
|
|
57
|
+
dialog.hide(false); // Hide with negative result
|
|
58
|
+
|
|
59
|
+
// Dialog with confirm/cancel buttons
|
|
60
|
+
<schmancy-dialog id="confirmDialog">
|
|
61
|
+
<div style="padding: 16px;">
|
|
62
|
+
<h3>Confirm Action</h3>
|
|
63
|
+
<p>Are you sure you want to proceed?</p>
|
|
64
|
+
<div style="display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px;">
|
|
65
|
+
<schmancy-button variant="text" @click=${() => dialog.hide(false)}>
|
|
66
|
+
Cancel
|
|
67
|
+
</schmancy-button>
|
|
68
|
+
<schmancy-button variant="filled" @click=${() => dialog.hide(true)}>
|
|
69
|
+
Confirm
|
|
70
|
+
</schmancy-button>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
</schmancy-dialog>
|
|
74
|
+
|
|
75
|
+
// Using the dialog service
|
|
76
|
+
// Simple confirmation
|
|
77
|
+
const confirmed = await $dialog.ask("Save changes?", event);
|
|
78
|
+
|
|
79
|
+
// Confirmation with custom options
|
|
80
|
+
const confirmed = await $dialog.confirm({
|
|
81
|
+
title: "Confirm Deletion",
|
|
82
|
+
message: "Are you sure you want to delete this item? This action cannot be undone.",
|
|
83
|
+
confirmText: "Delete",
|
|
84
|
+
cancelText: "Cancel",
|
|
85
|
+
variant: "danger",
|
|
86
|
+
position: event
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
// Confirmation with colored button
|
|
90
|
+
const confirmed = await $dialog.confirm({
|
|
91
|
+
title: "Delete Transaction",
|
|
92
|
+
message: `Are you sure you want to delete this transaction of ${amount} units?`,
|
|
93
|
+
confirmText: "Delete",
|
|
94
|
+
cancelText: "Cancel",
|
|
95
|
+
confirmColor: "error", // Makes confirm button red
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
// Dialog with custom content
|
|
99
|
+
const result = await $dialog.component(html`
|
|
100
|
+
<div>
|
|
101
|
+
<schmancy-input id="nameInput" label="Your Name"></schmancy-input>
|
|
102
|
+
</div>
|
|
103
|
+
`, {
|
|
104
|
+
title: "Enter Name",
|
|
105
|
+
confirmText: "Submit",
|
|
106
|
+
onConfirm: () => {
|
|
107
|
+
const value = document.getElementById("nameInput").value;
|
|
108
|
+
return value ? true : false;
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
// Dialog for dangerous actions
|
|
113
|
+
const confirmed = await $dialog.danger({
|
|
114
|
+
title: "Warning",
|
|
115
|
+
message: "You are about to delete your account. This action is permanent.",
|
|
116
|
+
confirmText: "Delete Account",
|
|
117
|
+
position: event
|
|
118
|
+
});
|
|
119
|
+
```
|