@mhmo91/schmancy 0.4.8 → 0.4.10
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/button.md +6 -3
- package/ai/code-highlight.md +239 -0
- package/ai/countries.md +270 -0
- package/ai/dialog.md +22 -3
- package/ai/directives.md +237 -0
- package/ai/input.md +99 -55
- package/ai/payment-card-form.md +241 -0
- package/ai/surface.md +1 -1
- package/ai/timezone.md +275 -0
- package/ai/typography.md +78 -43
- package/dist/ai/button.md +6 -3
- package/dist/ai/code-highlight.md +239 -0
- package/dist/ai/countries.md +270 -0
- package/dist/ai/dialog.md +22 -3
- package/dist/ai/directives.md +237 -0
- package/dist/ai/input.md +99 -55
- package/dist/ai/payment-card-form.md +241 -0
- package/dist/ai/surface.md +1 -1
- package/dist/ai/timezone.md +275 -0
- package/dist/ai/typography.md +78 -43
- package/dist/{animated-text-BqZjMyzb.js → animated-text-Be02uXuq.js} +3 -3
- package/dist/{animated-text-BqZjMyzb.js.map → animated-text-Be02uXuq.js.map} +1 -1
- package/dist/{animated-text-CgY-L1nI.cjs → animated-text-Dh_Ony1b.cjs} +2 -2
- package/dist/{animated-text-CgY-L1nI.cjs.map → animated-text-Dh_Ony1b.cjs.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-B7U96CpD.js → area.component-CVYJtXrI.js} +3 -3
- package/dist/{area.component-B7U96CpD.js.map → area.component-CVYJtXrI.js.map} +1 -1
- package/dist/{area.component-Zbs-bAJV.cjs → area.component-DTc1TOLd.cjs} +2 -2
- package/dist/{area.component-Zbs-bAJV.cjs.map → area.component-DTc1TOLd.cjs.map} +1 -1
- package/dist/area.js +1 -1
- package/dist/{autocomplete-qK00SJRP.cjs → autocomplete-CzTNaIqf.cjs} +2 -2
- package/dist/{autocomplete-qK00SJRP.cjs.map → autocomplete-CzTNaIqf.cjs.map} +1 -1
- package/dist/{autocomplete-DIUsdT73.js → autocomplete-D1bwPNoy.js} +3 -3
- package/dist/{autocomplete-DIUsdT73.js.map → autocomplete-D1bwPNoy.js.map} +1 -1
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/{avatar-BMzBsIWs.cjs → avatar-CFu-31B1.cjs} +2 -2
- package/dist/{avatar-BMzBsIWs.cjs.map → avatar-CFu-31B1.cjs.map} +1 -1
- package/dist/{avatar-DUPqOrZp.js → avatar-D35JpOv5.js} +45 -45
- package/dist/{avatar-DUPqOrZp.js.map → avatar-D35JpOv5.js.map} +1 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/{boat-By-PBLw8.js → boat-6nw0fphH.js} +2 -2
- package/dist/{boat-By-PBLw8.js.map → boat-6nw0fphH.js.map} +1 -1
- package/dist/{boat-DUU675NX.cjs → boat-De0k6DJ6.cjs} +2 -2
- package/dist/{boat-DUU675NX.cjs.map → boat-De0k6DJ6.cjs.map} +1 -1
- package/dist/boat.cjs +1 -1
- package/dist/boat.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-f7BewP4u.cjs → checkbox-Xr-OTKiq.cjs} +2 -2
- package/dist/{checkbox-f7BewP4u.cjs.map → checkbox-Xr-OTKiq.cjs.map} +1 -1
- package/dist/{checkbox-_WevqQDR.js → checkbox-ZW_jmRBP.js} +2 -2
- package/dist/{checkbox-_WevqQDR.js.map → checkbox-ZW_jmRBP.js.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{chips-DiDm29N_.js → chips-DFam160B.js} +3 -3
- package/dist/{chips-DiDm29N_.js.map → chips-DFam160B.js.map} +1 -1
- package/dist/{chips-D1QElds4.cjs → chips-DwvB_B3m.cjs} +2 -2
- package/dist/{chips-D1QElds4.cjs.map → chips-DwvB_B3m.cjs.map} +1 -1
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +1 -1
- package/dist/{circular-progress-BAlic8HY.js → circular-progress-BARPJm-e.js} +3 -3
- package/dist/{circular-progress-BAlic8HY.js.map → circular-progress-BARPJm-e.js.map} +1 -1
- package/dist/{circular-progress-CfPyDLX6.cjs → circular-progress-BDZFB3WR.cjs} +2 -2
- package/dist/{circular-progress-CfPyDLX6.cjs.map → circular-progress-BDZFB3WR.cjs.map} +1 -1
- package/dist/circular-progress.cjs +1 -1
- package/dist/circular-progress.js +1 -1
- package/dist/code-highlight.cjs +1 -1
- package/dist/code-highlight.js +1 -1
- package/dist/{code-preview-BiVj9uxF.js → code-preview-BxswKcO8.js} +2 -2
- package/dist/{code-preview-BiVj9uxF.js.map → code-preview-BxswKcO8.js.map} +1 -1
- package/dist/{code-preview-DtvCblTa.cjs → code-preview-CFnSKSqn.cjs} +2 -2
- package/dist/{code-preview-DtvCblTa.cjs.map → code-preview-CFnSKSqn.cjs.map} +1 -1
- 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-Cq8Wdd8b.cjs +131 -0
- package/dist/date-range-Cq8Wdd8b.cjs.map +1 -0
- package/dist/date-range-Fij9AQth.js +638 -0
- package/dist/date-range-Fij9AQth.js.map +1 -0
- package/dist/date-range.cjs +1 -1
- package/dist/date-range.js +1 -1
- package/dist/{delay-KEyQxDNp.cjs → delay-YfksbdSk.cjs} +2 -2
- package/dist/{delay-KEyQxDNp.cjs.map → delay-YfksbdSk.cjs.map} +1 -1
- package/dist/{delay-BdXEKapp.js → delay-aA1TyZTr.js} +2 -2
- package/dist/{delay-BdXEKapp.js.map → delay-aA1TyZTr.js.map} +1 -1
- package/dist/delay.cjs +1 -1
- package/dist/delay.js +1 -1
- package/dist/{dialog-content-D3sFNuVs.js → dialog-content-DpotaqHz.js} +3 -3
- package/dist/{dialog-content-D3sFNuVs.js.map → dialog-content-DpotaqHz.js.map} +1 -1
- package/dist/{dialog-content-D5YTttrK.cjs → dialog-content-NyJfG7nL.cjs} +2 -2
- package/dist/{dialog-content-D5YTttrK.cjs.map → dialog-content-NyJfG7nL.cjs.map} +1 -1
- package/dist/{dialog-service-BgqAlT7T.cjs → dialog-service-BZZK8N6A.cjs} +2 -2
- package/dist/dialog-service-BZZK8N6A.cjs.map +1 -0
- package/dist/dialog-service-DFMlRcXf.js +128 -0
- package/dist/dialog-service-DFMlRcXf.js.map +1 -0
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +2 -2
- package/dist/{divider-CNXiMvWd.js → divider-CEMmRD_e.js} +3 -3
- package/dist/{divider-CNXiMvWd.js.map → divider-CEMmRD_e.js.map} +1 -1
- package/dist/{divider-CDz3pUAy.cjs → divider-CMM91UNF.cjs} +2 -2
- package/dist/{divider-CDz3pUAy.cjs.map → divider-CMM91UNF.cjs.map} +1 -1
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/{dropdown-content-jlq_cqLS.cjs → dropdown-content-CUn_E7cR.cjs} +2 -2
- package/dist/{dropdown-content-jlq_cqLS.cjs.map → dropdown-content-CUn_E7cR.cjs.map} +1 -1
- package/dist/{dropdown-content-CVz6zPSO.js → dropdown-content-Cw5wN3oE.js} +3 -3
- package/dist/{dropdown-content-CVz6zPSO.js.map → dropdown-content-Cw5wN3oE.js.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-DFatBgot.cjs → flex-B9AdlerG.cjs} +2 -2
- package/dist/{flex-DFatBgot.cjs.map → flex-B9AdlerG.cjs.map} +1 -1
- package/dist/{flex-TjhbDSMX.js → flex-ChnKQLCI.js} +2 -2
- package/dist/{flex-TjhbDSMX.js.map → flex-ChnKQLCI.js.map} +1 -1
- package/dist/{form-ClDdYqke.cjs → form-BdGYvvVv.cjs} +2 -2
- package/dist/{form-ClDdYqke.cjs.map → form-BdGYvvVv.cjs.map} +1 -1
- package/dist/{form-D-auKn-K.js → form-DNXmZlmc.js} +2 -2
- package/dist/{form-D-auKn-K.js.map → form-DNXmZlmc.js.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +1 -1
- package/dist/{icon-BfY2ZJUE.js → icon-BzxYzucF.js} +2 -2
- package/dist/{icon-BfY2ZJUE.js.map → icon-BzxYzucF.js.map} +1 -1
- package/dist/{icon-D2xGQiZb.cjs → icon-CiYXCpzk.cjs} +2 -2
- package/dist/{icon-D2xGQiZb.cjs.map → icon-CiYXCpzk.cjs.map} +1 -1
- package/dist/{icon-button-BUkdhu_-.cjs → icon-button-CVF8ZGrd.cjs} +2 -2
- package/dist/{icon-button-BUkdhu_-.cjs.map → icon-button-CVF8ZGrd.cjs.map} +1 -1
- package/dist/{icon-button-yKwaljg0.js → icon-button-VqejfzxG.js} +3 -3
- package/dist/{icon-button-yKwaljg0.js.map → icon-button-VqejfzxG.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 +43 -43
- package/dist/input-DfBGrUet.cjs +122 -0
- package/dist/input-DfBGrUet.cjs.map +1 -0
- package/dist/input-d4jaMv22.js +487 -0
- package/dist/input-d4jaMv22.js.map +1 -0
- 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-BO9C13wk.cjs → list-DN2eHabm.cjs} +2 -2
- package/dist/{list-BO9C13wk.cjs.map → list-DN2eHabm.cjs.map} +1 -1
- package/dist/{list-CHZKII-L.js → list-L1m51qC0.js} +2 -2
- package/dist/{list-CHZKII-L.js.map → list-L1m51qC0.js.map} +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{litElement.mixin-CUibxXWX.cjs → litElement.mixin-CejONOpd.cjs} +2 -2
- package/dist/{litElement.mixin-CUibxXWX.cjs.map → litElement.mixin-CejONOpd.cjs.map} +1 -1
- package/dist/{litElement.mixin-5RC72TVS.js → litElement.mixin-D-SDs-Ez.js} +2 -2
- package/dist/{litElement.mixin-5RC72TVS.js.map → litElement.mixin-D-SDs-Ez.js.map} +1 -1
- package/dist/{media-4arP4Xi0.js → media-C0AR69S2.js} +2 -2
- package/dist/{media-4arP4Xi0.js.map → media-C0AR69S2.js.map} +1 -1
- package/dist/{media-v2LZA3zQ.cjs → media-yXym3iTa.cjs} +2 -2
- package/dist/{media-v2LZA3zQ.cjs.map → media-yXym3iTa.cjs.map} +1 -1
- package/dist/{menu-DvcxRQrY.js → menu-Bhh6qxR6.js} +3 -3
- package/dist/{menu-DvcxRQrY.js.map → menu-Bhh6qxR6.js.map} +1 -1
- package/dist/{menu-C-ZpBMON.cjs → menu-CKDW29ZR.cjs} +2 -2
- package/dist/{menu-C-ZpBMON.cjs.map → menu-CKDW29ZR.cjs.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-CcapAF2G.js → notification-service-CG4XTrXU.js} +3 -3
- package/dist/{notification-service-CcapAF2G.js.map → notification-service-CG4XTrXU.js.map} +1 -1
- package/dist/{notification-service-BXTqvkWg.cjs → notification-service-CRbqdLm_.cjs} +2 -2
- package/dist/{notification-service-BXTqvkWg.cjs.map → notification-service-CRbqdLm_.cjs.map} +1 -1
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +1 -1
- package/dist/{option-xSW3D1j5.js → option-Cj25fsD1.js} +2 -2
- package/dist/{option-xSW3D1j5.js.map → option-Cj25fsD1.js.map} +1 -1
- package/dist/{option-Cj3xNzQG.cjs → option-DFNHF3bL.cjs} +2 -2
- package/dist/{option-Cj3xNzQG.cjs.map → option-DFNHF3bL.cjs.map} +1 -1
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{payment-card-form-CdNQkQa5.cjs → payment-card-form-CEANJmNw.cjs} +2 -2
- package/dist/{payment-card-form-CdNQkQa5.cjs.map → payment-card-form-CEANJmNw.cjs.map} +1 -1
- package/dist/{payment-card-form-B-W0YXS5.js → payment-card-form-YzyxteTK.js} +3 -3
- package/dist/{payment-card-form-B-W0YXS5.js.map → payment-card-form-YzyxteTK.js.map} +1 -1
- package/dist/{radio-button-WeQklCIj.cjs → radio-button-BVeem3E9.cjs} +2 -2
- package/dist/{radio-button-WeQklCIj.cjs.map → radio-button-BVeem3E9.cjs.map} +1 -1
- package/dist/{radio-button-CNrcOMLm.js → radio-button-CBcYZCqv.js} +2 -2
- package/dist/{radio-button-CNrcOMLm.js.map → radio-button-CBcYZCqv.js.map} +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/{schmancy-steps-container-kh5hz8Q8.cjs → schmancy-steps-container-B-Bvr-wZ.cjs} +2 -2
- package/dist/{schmancy-steps-container-kh5hz8Q8.cjs.map → schmancy-steps-container-B-Bvr-wZ.cjs.map} +1 -1
- package/dist/{schmancy-steps-container-DTR_ppqJ.js → schmancy-steps-container-BACX3hp6.js} +2 -2
- package/dist/{schmancy-steps-container-DTR_ppqJ.js.map → schmancy-steps-container-BACX3hp6.js.map} +1 -1
- package/dist/{select-D6OdooZd.cjs → select-Cr15D48_.cjs} +2 -2
- package/dist/{select-D6OdooZd.cjs.map → select-Cr15D48_.cjs.map} +1 -1
- package/dist/{select-BeStY5QU.js → select-IgXxVwZQ.js} +3 -3
- package/dist/{select-BeStY5QU.js.map → select-IgXxVwZQ.js.map} +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/{sheet-DurXVAka.js → sheet-9m-LkKNU.js} +4 -4
- package/dist/{sheet-DurXVAka.js.map → sheet-9m-LkKNU.js.map} +1 -1
- package/dist/{sheet-BHdCyBYA.cjs → sheet-u1RXiD4G.cjs} +2 -2
- package/dist/{sheet-BHdCyBYA.cjs.map → sheet-u1RXiD4G.cjs.map} +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +2 -2
- package/dist/{slider-eKHfEAqk.cjs → slider-BFJ0OVq5.cjs} +2 -2
- package/dist/{slider-eKHfEAqk.cjs.map → slider-BFJ0OVq5.cjs.map} +1 -1
- package/dist/{slider-CcOPTwfV.js → slider-BvOKAD4l.js} +3 -3
- package/dist/{slider-CcOPTwfV.js.map → slider-BvOKAD4l.js.map} +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/{spinner-0BTyqnFH.cjs → spinner-CRWcQJjQ.cjs} +2 -2
- package/dist/{spinner-0BTyqnFH.cjs.map → spinner-CRWcQJjQ.cjs.map} +1 -1
- package/dist/{spinner-BcaOyZIW.js → spinner-jaFB6wer.js} +3 -3
- package/dist/{spinner-BcaOyZIW.js.map → spinner-jaFB6wer.js.map} +1 -1
- package/dist/steps.cjs +1 -1
- package/dist/steps.js +1 -1
- package/dist/{surface-DhTA5nKg.cjs → surface-CTlwMC6K.cjs} +2 -2
- package/dist/{surface-DhTA5nKg.cjs.map → surface-CTlwMC6K.cjs.map} +1 -1
- package/dist/{surface-XqJoAcEI.js → surface-D7X23FXb.js} +2 -2
- package/dist/{surface-XqJoAcEI.js.map → surface-D7X23FXb.js.map} +1 -1
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/{table-DPfOXBUJ.cjs → table-0HYVgRpO.cjs} +2 -2
- package/dist/{table-DPfOXBUJ.cjs.map → table-0HYVgRpO.cjs.map} +1 -1
- package/dist/{table-Dy5Fqu4G.js → table-Dwrox4AT.js} +2 -2
- package/dist/{table-Dy5Fqu4G.js.map → table-Dwrox4AT.js.map} +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-compatibility-BqSkFV08.js → tabs-compatibility-CHTrE420.js} +2 -2
- package/dist/{tabs-compatibility-BqSkFV08.js.map → tabs-compatibility-CHTrE420.js.map} +1 -1
- package/dist/{tabs-compatibility-TPaYG7ev.cjs → tabs-compatibility-DFaq5_66.cjs} +2 -2
- package/dist/{tabs-compatibility-TPaYG7ev.cjs.map → tabs-compatibility-DFaq5_66.cjs.map} +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tailwind.mixin-Dx35wOig.js +43 -0
- package/dist/{tailwind.mixin-DpiTmETl.js.map → tailwind.mixin-Dx35wOig.js.map} +1 -1
- package/dist/tailwind.mixin-xwSbeHSt.cjs +2 -0
- package/dist/{tailwind.mixin-C6mrbvH3.cjs.map → tailwind.mixin-xwSbeHSt.cjs.map} +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/dist/{textarea-Dy7B8B0d.cjs → textarea-D7NLGUQL.cjs} +2 -2
- package/dist/{textarea-Dy7B8B0d.cjs.map → textarea-D7NLGUQL.cjs.map} +1 -1
- package/dist/{textarea-Ba8gRDPS.js → textarea-Dx-DzkDe.js} +2 -2
- package/dist/{textarea-Ba8gRDPS.js.map → textarea-Dx-DzkDe.js.map} +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{theme-button-Bnm7IL1u.cjs → theme-button-25FKBtFN.cjs} +2 -2
- package/dist/{theme-button-Bnm7IL1u.cjs.map → theme-button-25FKBtFN.cjs.map} +1 -1
- package/dist/{theme-button-COwSZ83Y.js → theme-button-C97XGkCl.js} +2 -2
- package/dist/{theme-button-COwSZ83Y.js.map → theme-button-C97XGkCl.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-BV_e_mXY.js → theme.component-BAA4DyC6.js} +2 -2
- package/dist/{theme.component-BV_e_mXY.js.map → theme.component-BAA4DyC6.js.map} +1 -1
- package/dist/{theme.component-UBy29B7c.cjs → theme.component-DIXxdhcR.cjs} +2 -2
- package/dist/{theme.component-UBy29B7c.cjs.map → theme.component-DIXxdhcR.cjs.map} +1 -1
- package/dist/theme.js +1 -1
- package/dist/{timezone-DBxPtZan.cjs → timezone-BWn9DNZY.cjs} +2 -2
- package/dist/{timezone-DBxPtZan.cjs.map → timezone-BWn9DNZY.cjs.map} +1 -1
- package/dist/{timezone-DEhkif2j.js → timezone-BurrHk00.js} +3 -3
- package/dist/{timezone-DEhkif2j.js.map → timezone-BurrHk00.js.map} +1 -1
- package/dist/{tooltip-D0coQKih.js → tooltip-Dy5bvLg8.js} +2 -2
- package/dist/{tooltip-D0coQKih.js.map → tooltip-Dy5bvLg8.js.map} +1 -1
- package/dist/{tooltip-CTBMN8M6.cjs → tooltip-dz3rb8at.cjs} +2 -2
- package/dist/{tooltip-CTBMN8M6.cjs.map → tooltip-dz3rb8at.cjs.map} +1 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/{tree-Zy0XMFKh.js → tree-DzHOYcn8.js} +2 -2
- package/dist/{tree-Zy0XMFKh.js.map → tree-DzHOYcn8.js.map} +1 -1
- package/dist/{tree-Co4Ithrh.cjs → tree-z1EoelBs.cjs} +2 -2
- package/dist/{tree-Co4Ithrh.cjs.map → tree-z1EoelBs.cjs.map} +1 -1
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/{typewriter-C0InniFB.js → typewriter-BiBJSC2J.js} +4 -4
- package/dist/{typewriter-C0InniFB.js.map → typewriter-BiBJSC2J.js.map} +1 -1
- package/dist/{typewriter-soteXIt4.cjs → typewriter-D_bqiukY.cjs} +2 -2
- package/dist/{typewriter-soteXIt4.cjs.map → typewriter-D_bqiukY.cjs.map} +1 -1
- package/dist/typewriter.cjs +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{typography-Bw9baiV3.cjs → typography-BLenYAmX.cjs} +2 -2
- package/dist/{typography-Bw9baiV3.cjs.map → typography-BLenYAmX.cjs.map} +1 -1
- package/dist/{typography-CeTZ2VqE.js → typography-DtpDTIi7.js} +2 -2
- package/dist/{typography-CeTZ2VqE.js.map → typography-DtpDTIi7.js.map} +1 -1
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/package.json +1 -1
- package/dist/date-range-BPVaXilO.cjs +0 -117
- package/dist/date-range-BPVaXilO.cjs.map +0 -1
- package/dist/date-range-DN0v_ykN.js +0 -609
- package/dist/date-range-DN0v_ykN.js.map +0 -1
- package/dist/dialog-service-BgqAlT7T.cjs.map +0 -1
- package/dist/dialog-service-CnjZCTMj.js +0 -127
- package/dist/dialog-service-CnjZCTMj.js.map +0 -1
- package/dist/input-B3GMd-FZ.js +0 -363
- package/dist/input-B3GMd-FZ.js.map +0 -1
- package/dist/input-By2O_8YL.cjs +0 -111
- package/dist/input-By2O_8YL.cjs.map +0 -1
- package/dist/tailwind.mixin-C6mrbvH3.cjs +0 -2
- package/dist/tailwind.mixin-DpiTmETl.js +0 -43
package/ai/button.md
CHANGED
|
@@ -8,17 +8,20 @@
|
|
|
8
8
|
type="button|reset|submit" // HTML button type (default: "button")
|
|
9
9
|
href?="string" // Makes button a link
|
|
10
10
|
disabled? // Disable state
|
|
11
|
-
|
|
11
|
+
aria-label?="string" // Accessibility label
|
|
12
12
|
@click=${handler}>
|
|
13
13
|
<!-- Content with optional prefix/suffix slots -->
|
|
14
14
|
</schmancy-button>
|
|
15
15
|
|
|
16
16
|
// Icon Button Component
|
|
17
17
|
<schmancy-icon-button
|
|
18
|
-
variant="filled|filled tonal|outlined|
|
|
18
|
+
variant="elevated|filled|filled tonal|outlined|text" // Visual style (default: "text")
|
|
19
19
|
size="sm|md|lg" // Button size (default: "md")
|
|
20
|
+
width="full|auto" // Button width (default: "auto")
|
|
21
|
+
type="button|reset|submit" // HTML button type (default: "button")
|
|
22
|
+
href?="string" // Makes button a link
|
|
20
23
|
disabled? // Disable state
|
|
21
|
-
|
|
24
|
+
aria-label="string"> // Accessibility label
|
|
22
25
|
icon_name
|
|
23
26
|
</schmancy-icon-button>
|
|
24
27
|
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
# Schmancy Code Highlight - AI Reference
|
|
2
|
+
|
|
3
|
+
## Quick Start
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import '@mhmo91/schmancy/code-highlight'
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Component Overview
|
|
10
|
+
|
|
11
|
+
Code highlighting and preview components for displaying syntax-highlighted code with optional live preview.
|
|
12
|
+
|
|
13
|
+
## API
|
|
14
|
+
|
|
15
|
+
### Code Component
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
// Code highlighting component
|
|
19
|
+
<schmancy-code
|
|
20
|
+
language="javascript|typescript|html|xml|markdown|bash" // Language for syntax highlighting
|
|
21
|
+
code="string" // Code to highlight
|
|
22
|
+
copyButton?="boolean" // Show copy button (default: false)
|
|
23
|
+
wrap?="boolean" // Wrap long lines (default: false)
|
|
24
|
+
>
|
|
25
|
+
</schmancy-code>
|
|
26
|
+
|
|
27
|
+
// Component properties
|
|
28
|
+
language: string // Programming language for highlighting
|
|
29
|
+
code: string // Code content to display
|
|
30
|
+
copyButton: boolean // Show copy to clipboard button
|
|
31
|
+
wrap: boolean // Enable line wrapping
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Code Preview Component
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
// Code preview with source and rendered output
|
|
38
|
+
<schmancy-code-preview
|
|
39
|
+
language="html|javascript|typescript|etc" // Language for syntax highlighting
|
|
40
|
+
layout?="vertical|horizontal" // Layout direction (default: "vertical")
|
|
41
|
+
preview?="boolean" // Show preview pane (default: true)
|
|
42
|
+
>
|
|
43
|
+
<!-- Place code here as content -->
|
|
44
|
+
<div>This content will be shown as code and rendered</div>
|
|
45
|
+
</schmancy-code-preview>
|
|
46
|
+
|
|
47
|
+
// Component properties
|
|
48
|
+
language: string // Programming language for highlighting
|
|
49
|
+
layout: string // Layout direction for code/preview
|
|
50
|
+
preview: boolean // Whether to show preview (HTML only)
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Examples
|
|
54
|
+
|
|
55
|
+
### Basic Usage
|
|
56
|
+
|
|
57
|
+
```typescript
|
|
58
|
+
// Simple code highlighting
|
|
59
|
+
<schmancy-code language="javascript" code="console.log('Hello World')">
|
|
60
|
+
</schmancy-code>
|
|
61
|
+
|
|
62
|
+
// With copy button
|
|
63
|
+
<schmancy-code
|
|
64
|
+
language="typescript"
|
|
65
|
+
code="const greeting: string = 'Hello TypeScript'"
|
|
66
|
+
copyButton="true">
|
|
67
|
+
</schmancy-code>
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Code Preview
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
// HTML with live preview
|
|
74
|
+
<schmancy-code-preview language="html">
|
|
75
|
+
<schmancy-button variant="filled">
|
|
76
|
+
Click Me
|
|
77
|
+
</schmancy-button>
|
|
78
|
+
</schmancy-code-preview>
|
|
79
|
+
|
|
80
|
+
// Horizontal layout
|
|
81
|
+
<schmancy-code-preview language="html" layout="horizontal">
|
|
82
|
+
<div class="p-4 bg-primary-container rounded">
|
|
83
|
+
<schmancy-typography type="headline" token="sm">
|
|
84
|
+
Preview Example
|
|
85
|
+
</schmancy-typography>
|
|
86
|
+
</div>
|
|
87
|
+
</schmancy-code-preview>
|
|
88
|
+
|
|
89
|
+
// Code only (no preview)
|
|
90
|
+
<schmancy-code-preview language="javascript" preview="false">
|
|
91
|
+
function calculateSum(a, b) {
|
|
92
|
+
return a + b;
|
|
93
|
+
}
|
|
94
|
+
</schmancy-code-preview>
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Multi-line Code
|
|
98
|
+
|
|
99
|
+
```typescript
|
|
100
|
+
// Long code with wrapping
|
|
101
|
+
<schmancy-code
|
|
102
|
+
language="typescript"
|
|
103
|
+
wrap="true"
|
|
104
|
+
copyButton="true"
|
|
105
|
+
code="${`
|
|
106
|
+
interface User {
|
|
107
|
+
id: string;
|
|
108
|
+
name: string;
|
|
109
|
+
email: string;
|
|
110
|
+
preferences: {
|
|
111
|
+
theme: 'light' | 'dark';
|
|
112
|
+
notifications: boolean;
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
class UserService {
|
|
117
|
+
async getUser(id: string): Promise<User> {
|
|
118
|
+
const response = await fetch(\`/api/users/\${id}\`);
|
|
119
|
+
return response.json();
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
`.trim()}">
|
|
123
|
+
</schmancy-code>
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### Real-World Examples
|
|
127
|
+
|
|
128
|
+
```typescript
|
|
129
|
+
// Documentation example
|
|
130
|
+
<schmancy-surface class="p-6">
|
|
131
|
+
<schmancy-typography type="title" token="lg" class="mb-4 block">
|
|
132
|
+
API Example
|
|
133
|
+
</schmancy-typography>
|
|
134
|
+
|
|
135
|
+
<schmancy-code-preview language="html">
|
|
136
|
+
<schmancy-form @submit="${handleSubmit}">
|
|
137
|
+
<schmancy-input
|
|
138
|
+
label="Email"
|
|
139
|
+
type="email"
|
|
140
|
+
required>
|
|
141
|
+
</schmancy-input>
|
|
142
|
+
<schmancy-button type="submit" variant="filled">
|
|
143
|
+
Submit
|
|
144
|
+
</schmancy-button>
|
|
145
|
+
</schmancy-form>
|
|
146
|
+
</schmancy-code-preview>
|
|
147
|
+
</schmancy-surface>
|
|
148
|
+
|
|
149
|
+
// Component showcase
|
|
150
|
+
<schmancy-tabs>
|
|
151
|
+
<schmancy-tab slot="tab" active>Preview</schmancy-tab>
|
|
152
|
+
<schmancy-tab slot="tab">Code</schmancy-tab>
|
|
153
|
+
|
|
154
|
+
<div slot="content">
|
|
155
|
+
<schmancy-code-preview language="html" preview="true">
|
|
156
|
+
<schmancy-card>
|
|
157
|
+
<schmancy-card-content>
|
|
158
|
+
<div slot="headline">Card Title</div>
|
|
159
|
+
<div>Card content goes here</div>
|
|
160
|
+
</schmancy-card-content>
|
|
161
|
+
</schmancy-card>
|
|
162
|
+
</schmancy-code-preview>
|
|
163
|
+
</div>
|
|
164
|
+
|
|
165
|
+
<div slot="content">
|
|
166
|
+
<schmancy-code language="html" copyButton="true" code="${`
|
|
167
|
+
<schmancy-card>
|
|
168
|
+
<schmancy-card-content>
|
|
169
|
+
<div slot="headline">Card Title</div>
|
|
170
|
+
<div>Card content goes here</div>
|
|
171
|
+
</schmancy-card-content>
|
|
172
|
+
</schmancy-card>
|
|
173
|
+
`.trim()}">
|
|
174
|
+
</schmancy-code>
|
|
175
|
+
</div>
|
|
176
|
+
</schmancy-tabs>
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
## Supported Languages
|
|
180
|
+
|
|
181
|
+
- `javascript` - JavaScript syntax
|
|
182
|
+
- `typescript` - TypeScript syntax
|
|
183
|
+
- `html` / `xml` - HTML/XML markup
|
|
184
|
+
- `markdown` - Markdown syntax
|
|
185
|
+
- `bash` - Shell scripts
|
|
186
|
+
|
|
187
|
+
## Implementation Details
|
|
188
|
+
|
|
189
|
+
- Uses **highlight.js** for syntax highlighting
|
|
190
|
+
- Automatic indentation detection and normalization
|
|
191
|
+
- Dark theme optimized for readability
|
|
192
|
+
- Shadow DOM encapsulation
|
|
193
|
+
- Responsive layout support
|
|
194
|
+
- Copy button uses clipboard API
|
|
195
|
+
|
|
196
|
+
## Accessibility
|
|
197
|
+
|
|
198
|
+
- Proper ARIA labels for copy button
|
|
199
|
+
- Keyboard navigation support
|
|
200
|
+
- Screen reader friendly code blocks
|
|
201
|
+
- High contrast syntax colors
|
|
202
|
+
|
|
203
|
+
## Best Practices
|
|
204
|
+
|
|
205
|
+
1. **Language Selection**: Always specify the correct language for accurate highlighting
|
|
206
|
+
2. **Code Formatting**: Pre-format code with proper indentation
|
|
207
|
+
3. **Preview Usage**: Only use preview for HTML content
|
|
208
|
+
4. **Long Code**: Enable wrapping for long lines to prevent horizontal scrolling
|
|
209
|
+
5. **Copy Button**: Include for code snippets users might want to reuse
|
|
210
|
+
|
|
211
|
+
## Common Pitfalls
|
|
212
|
+
|
|
213
|
+
- **Escaping**: HTML entities in code strings need proper escaping
|
|
214
|
+
- **Indentation**: Code preview component auto-detects minimum indentation
|
|
215
|
+
- **Performance**: Very large code blocks may impact rendering
|
|
216
|
+
|
|
217
|
+
## Related Components
|
|
218
|
+
|
|
219
|
+
- **[Surface](./surface.md)**: Often used as container for code examples
|
|
220
|
+
- **[Card](./card.md)**: Code blocks in documentation cards
|
|
221
|
+
- **[Typography](./typography.md)**: For code captions and descriptions
|
|
222
|
+
- **[Tabs](./tabs.md)**: Switching between code and preview
|
|
223
|
+
|
|
224
|
+
## TypeScript Interface
|
|
225
|
+
|
|
226
|
+
```typescript
|
|
227
|
+
interface SchmancyCodeElement extends HTMLElement {
|
|
228
|
+
language: string;
|
|
229
|
+
code: string;
|
|
230
|
+
copyButton: boolean;
|
|
231
|
+
wrap: boolean;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
interface SchmancyCodePreviewElement extends HTMLElement {
|
|
235
|
+
language: string;
|
|
236
|
+
layout: 'vertical' | 'horizontal';
|
|
237
|
+
preview: boolean;
|
|
238
|
+
}
|
|
239
|
+
```
|
package/ai/countries.md
ADDED
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
# Schmancy Countries Select - AI Reference
|
|
2
|
+
|
|
3
|
+
## Quick Start
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import '@mhmo91/schmancy/extra/countries'
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Component Overview
|
|
10
|
+
|
|
11
|
+
A specialized country selection component with autocomplete, built on top of schmancy-autocomplete with a comprehensive list of countries including flags and dial codes.
|
|
12
|
+
|
|
13
|
+
## API
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
// Countries Select Component
|
|
17
|
+
<schmancy-select-countries
|
|
18
|
+
value?="string" // Selected country code
|
|
19
|
+
label?="string" // Label text (default: "Country")
|
|
20
|
+
hint?="string" // Helper text (default: "Please select a country")
|
|
21
|
+
placeholder?="string" // Placeholder (default: "Select a country")
|
|
22
|
+
name?="string" // Form field name
|
|
23
|
+
required?="boolean" // Required field
|
|
24
|
+
@change=${handleChange}> // Selection change event
|
|
25
|
+
</schmancy-select-countries>
|
|
26
|
+
|
|
27
|
+
// Component Properties
|
|
28
|
+
value: string // ISO country code (e.g., "US", "GB")
|
|
29
|
+
label: string // Field label
|
|
30
|
+
hint: string // Helper text below field
|
|
31
|
+
placeholder: string // Placeholder text
|
|
32
|
+
name: string // Form field name
|
|
33
|
+
required: boolean // Required validation
|
|
34
|
+
|
|
35
|
+
// Events
|
|
36
|
+
@change // Fires when country selection changes
|
|
37
|
+
|
|
38
|
+
// Methods
|
|
39
|
+
checkValidity() -> boolean // Validate selection
|
|
40
|
+
reportValidity() -> boolean // Report validation state
|
|
41
|
+
setCustomValidity(message) -> void // Set custom error
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Examples
|
|
45
|
+
|
|
46
|
+
### Basic Usage
|
|
47
|
+
|
|
48
|
+
```typescript
|
|
49
|
+
// Simple country selector
|
|
50
|
+
<schmancy-select-countries
|
|
51
|
+
@change=${(e) => console.log('Selected:', e.detail.value)}>
|
|
52
|
+
</schmancy-select-countries>
|
|
53
|
+
|
|
54
|
+
// With initial value
|
|
55
|
+
<schmancy-select-countries
|
|
56
|
+
value="US"
|
|
57
|
+
@change=${handleCountryChange}>
|
|
58
|
+
</schmancy-select-countries>
|
|
59
|
+
|
|
60
|
+
// Required field
|
|
61
|
+
<schmancy-select-countries
|
|
62
|
+
required
|
|
63
|
+
name="country"
|
|
64
|
+
label="Your Country"
|
|
65
|
+
hint="Required for shipping">
|
|
66
|
+
</schmancy-select-countries>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Form Integration
|
|
70
|
+
|
|
71
|
+
```typescript
|
|
72
|
+
// In a registration form
|
|
73
|
+
<schmancy-form @submit=${handleSubmit}>
|
|
74
|
+
<schmancy-input
|
|
75
|
+
label="Full Name"
|
|
76
|
+
name="name"
|
|
77
|
+
required>
|
|
78
|
+
</schmancy-input>
|
|
79
|
+
|
|
80
|
+
<schmancy-select-countries
|
|
81
|
+
name="country"
|
|
82
|
+
required
|
|
83
|
+
@change=${updatePhoneFormat}>
|
|
84
|
+
</schmancy-select-countries>
|
|
85
|
+
|
|
86
|
+
<schmancy-input
|
|
87
|
+
label="Phone"
|
|
88
|
+
name="phone"
|
|
89
|
+
type="tel">
|
|
90
|
+
</schmancy-input>
|
|
91
|
+
|
|
92
|
+
<schmancy-button type="submit" variant="filled">
|
|
93
|
+
Register
|
|
94
|
+
</schmancy-button>
|
|
95
|
+
</schmancy-form>
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Real-World Examples
|
|
99
|
+
|
|
100
|
+
```typescript
|
|
101
|
+
// Address form with country
|
|
102
|
+
class AddressForm extends LitElement {
|
|
103
|
+
@state() selectedCountry = '';
|
|
104
|
+
|
|
105
|
+
render() {
|
|
106
|
+
return html`
|
|
107
|
+
<schmancy-surface class="p-6">
|
|
108
|
+
<schmancy-typography type="headline" token="sm" class="mb-4 block">
|
|
109
|
+
Shipping Address
|
|
110
|
+
</schmancy-typography>
|
|
111
|
+
|
|
112
|
+
<schmancy-form @submit=${this.handleSubmit}>
|
|
113
|
+
<div class="grid gap-4">
|
|
114
|
+
<schmancy-input
|
|
115
|
+
label="Street Address"
|
|
116
|
+
name="street"
|
|
117
|
+
required>
|
|
118
|
+
</schmancy-input>
|
|
119
|
+
|
|
120
|
+
<div class="grid grid-cols-2 gap-4">
|
|
121
|
+
<schmancy-input
|
|
122
|
+
label="City"
|
|
123
|
+
name="city"
|
|
124
|
+
required>
|
|
125
|
+
</schmancy-input>
|
|
126
|
+
|
|
127
|
+
<schmancy-input
|
|
128
|
+
label="Postal Code"
|
|
129
|
+
name="postalCode"
|
|
130
|
+
required>
|
|
131
|
+
</schmancy-input>
|
|
132
|
+
</div>
|
|
133
|
+
|
|
134
|
+
<schmancy-select-countries
|
|
135
|
+
name="country"
|
|
136
|
+
required
|
|
137
|
+
value=${this.selectedCountry}
|
|
138
|
+
@change=${(e) => this.selectedCountry = e.detail.value}>
|
|
139
|
+
</schmancy-select-countries>
|
|
140
|
+
|
|
141
|
+
${this.selectedCountry === 'US' ? html`
|
|
142
|
+
<schmancy-select
|
|
143
|
+
label="State"
|
|
144
|
+
name="state"
|
|
145
|
+
required>
|
|
146
|
+
<!-- State options -->
|
|
147
|
+
</schmancy-select>
|
|
148
|
+
` : ''}
|
|
149
|
+
</div>
|
|
150
|
+
|
|
151
|
+
<schmancy-button type="submit" variant="filled" class="mt-4">
|
|
152
|
+
Save Address
|
|
153
|
+
</schmancy-button>
|
|
154
|
+
</schmancy-form>
|
|
155
|
+
</schmancy-surface>
|
|
156
|
+
`
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// Phone number with country code
|
|
161
|
+
class PhoneInput extends LitElement {
|
|
162
|
+
@state() countryCode = '';
|
|
163
|
+
@state() dialCode = '';
|
|
164
|
+
|
|
165
|
+
handleCountryChange(e) {
|
|
166
|
+
const country = countriesData.find(c => c.code === e.detail.value);
|
|
167
|
+
this.dialCode = country?.dial_code || '';
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
render() {
|
|
171
|
+
return html`
|
|
172
|
+
<div class="space-y-4">
|
|
173
|
+
<schmancy-select-countries
|
|
174
|
+
@change=${this.handleCountryChange}>
|
|
175
|
+
</schmancy-select-countries>
|
|
176
|
+
|
|
177
|
+
<schmancy-input
|
|
178
|
+
label="Phone Number"
|
|
179
|
+
.value=${this.dialCode}
|
|
180
|
+
placeholder="${this.dialCode} ">
|
|
181
|
+
</schmancy-input>
|
|
182
|
+
</div>
|
|
183
|
+
`
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
## Country Data Structure
|
|
189
|
+
|
|
190
|
+
Each country in the dataset includes:
|
|
191
|
+
|
|
192
|
+
```typescript
|
|
193
|
+
interface Country {
|
|
194
|
+
name: string; // Full country name
|
|
195
|
+
code: string; // ISO 3166-1 alpha-2 code
|
|
196
|
+
dial_code: string; // International dialing code
|
|
197
|
+
flag: string; // Flag emoji
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// Example:
|
|
201
|
+
{
|
|
202
|
+
name: "United States",
|
|
203
|
+
code: "US",
|
|
204
|
+
dial_code: "+1",
|
|
205
|
+
flag: "🇺🇸"
|
|
206
|
+
}
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
## Features
|
|
210
|
+
|
|
211
|
+
- **Comprehensive List**: All countries with ISO codes
|
|
212
|
+
- **Flag Emojis**: Visual country identification
|
|
213
|
+
- **Dial Codes**: International phone codes included
|
|
214
|
+
- **Search**: Type to filter countries by name
|
|
215
|
+
- **Keyboard Navigation**: Full keyboard support
|
|
216
|
+
- **Form Integration**: Works with native forms
|
|
217
|
+
- **Validation**: Built-in required field validation
|
|
218
|
+
|
|
219
|
+
## Accessibility
|
|
220
|
+
|
|
221
|
+
- Proper ARIA labels and roles
|
|
222
|
+
- Keyboard navigation (arrow keys, enter, escape)
|
|
223
|
+
- Screen reader announcements
|
|
224
|
+
- High contrast mode support
|
|
225
|
+
- Focus management
|
|
226
|
+
|
|
227
|
+
## Best Practices
|
|
228
|
+
|
|
229
|
+
1. **Default Selection**: Consider pre-selecting based on user's location
|
|
230
|
+
2. **Validation**: Use required attribute for mandatory fields
|
|
231
|
+
3. **Phone Integration**: Use dial_code for phone number inputs
|
|
232
|
+
4. **Localization**: Country names are in English by default
|
|
233
|
+
5. **Performance**: Virtual scrolling for large lists
|
|
234
|
+
|
|
235
|
+
## Common Pitfalls
|
|
236
|
+
|
|
237
|
+
- **Code vs Name**: Value is country code, not full name
|
|
238
|
+
- **Case Sensitivity**: Country codes are uppercase
|
|
239
|
+
- **Missing Countries**: Some territories may not be included
|
|
240
|
+
- **Flag Display**: Emoji flags may not work on all systems
|
|
241
|
+
|
|
242
|
+
## Related Components
|
|
243
|
+
|
|
244
|
+
- **[Autocomplete](./autocomplete.md)**: Base component for country select
|
|
245
|
+
- **[Form](./form.md)**: Form integration
|
|
246
|
+
- **[Input](./input.md)**: Often used with phone inputs
|
|
247
|
+
- **[Timezone](./timezone.md)**: Related location selector
|
|
248
|
+
|
|
249
|
+
## TypeScript Interface
|
|
250
|
+
|
|
251
|
+
```typescript
|
|
252
|
+
interface SchmancySelectCountriesElement extends HTMLElement {
|
|
253
|
+
value: string;
|
|
254
|
+
label: string;
|
|
255
|
+
hint: string;
|
|
256
|
+
placeholder: string;
|
|
257
|
+
name: string;
|
|
258
|
+
required: boolean;
|
|
259
|
+
checkValidity(): boolean;
|
|
260
|
+
reportValidity(): boolean;
|
|
261
|
+
setCustomValidity(message: string): void;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
// Change event
|
|
265
|
+
interface CountryChangeEvent extends CustomEvent {
|
|
266
|
+
detail: {
|
|
267
|
+
value: string; // Country code
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
```
|
package/ai/dialog.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
```js
|
|
4
4
|
// Basic Dialog Component
|
|
5
|
-
<schmancy-dialog
|
|
5
|
+
<schmancy-dialog
|
|
6
|
+
uid?="string"> // Unique identifier for dialog instance
|
|
6
7
|
<!-- Dialog content goes here -->
|
|
7
8
|
<div>Dialog content</div>
|
|
8
9
|
</schmancy-dialog>
|
|
@@ -20,9 +21,25 @@ dialog.hide(result?) -> void // Hide dialog with optional result
|
|
|
20
21
|
// Dialog Events
|
|
21
22
|
@close // Fires when dialog is closed
|
|
22
23
|
|
|
23
|
-
//
|
|
24
|
+
// CSS Variables
|
|
25
|
+
--dialog-width: 360px // Controls dialog width
|
|
26
|
+
|
|
27
|
+
// Confirm Dialog Component (used internally by service)
|
|
28
|
+
<confirm-dialog
|
|
29
|
+
title?="string" // Dialog title
|
|
30
|
+
subtitle?="string" // Dialog subtitle
|
|
31
|
+
message?="string" // Dialog message
|
|
32
|
+
confirm-text?="string" // Confirm button text (default: "Confirm")
|
|
33
|
+
cancel-text?="string" // Cancel button text (default: "Cancel")
|
|
34
|
+
variant?="default|danger" // Dialog variant (default: "default")
|
|
35
|
+
confirm-color?="primary|error|warning|success"> // Confirm button color
|
|
36
|
+
<div slot="content">Custom content</div>
|
|
37
|
+
</confirm-dialog>
|
|
38
|
+
|
|
39
|
+
// Service API (higher-level abstraction)
|
|
24
40
|
$dialog.confirm({
|
|
25
41
|
title?,
|
|
42
|
+
subtitle?,
|
|
26
43
|
message?,
|
|
27
44
|
confirmText?,
|
|
28
45
|
cancelText?,
|
|
@@ -32,12 +49,14 @@ $dialog.confirm({
|
|
|
32
49
|
width?: string,
|
|
33
50
|
content?: TemplateResult|HTMLElement|Function,
|
|
34
51
|
onConfirm?: Function,
|
|
35
|
-
onCancel?: Function
|
|
52
|
+
onCancel?: Function,
|
|
53
|
+
targetContainer?: HTMLElement // Container to append dialog to (defaults to document.body)
|
|
36
54
|
}) -> Promise<boolean>
|
|
37
55
|
|
|
38
56
|
$dialog.ask(message, event?) -> Promise<boolean>
|
|
39
57
|
$dialog.danger({...options}) -> Promise<boolean>
|
|
40
58
|
$dialog.component(content, options?) -> Promise<boolean>
|
|
59
|
+
$dialog.dismiss() -> boolean // Dismiss most recently opened dialog
|
|
41
60
|
|
|
42
61
|
// Examples
|
|
43
62
|
// Basic dialog usage
|