@mhmo91/schmancy 0.4.2 → 0.4.4
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 +129 -91
- package/ai/card.md +104 -64
- package/ai/date-range.md +149 -113
- package/ai/typography.md +159 -143
- package/dist/ai/button.md +129 -91
- package/dist/ai/card.md +104 -64
- package/dist/ai/date-range.md +149 -113
- package/dist/ai/typography.md +159 -143
- package/dist/{animated-text-DE4jCzlq.js → animated-text-C14QnAsk.js} +3 -3
- package/dist/{animated-text-DE4jCzlq.js.map → animated-text-C14QnAsk.js.map} +1 -1
- package/dist/{animated-text-C_ISIdDY.cjs → animated-text-D-kAHVL-.cjs} +2 -2
- package/dist/{animated-text-C_ISIdDY.cjs.map → animated-text-D-kAHVL-.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-DQKc0WXK.js → area.component-DD3k-3yp.js} +3 -3
- package/dist/{area.component-DQKc0WXK.js.map → area.component-DD3k-3yp.js.map} +1 -1
- package/dist/{area.component-Bvd_wwUW.cjs → area.component-kvnRfth-.cjs} +2 -2
- package/dist/{area.component-Bvd_wwUW.cjs.map → area.component-kvnRfth-.cjs.map} +1 -1
- package/dist/area.js +1 -1
- package/dist/{autocomplete-D_XhT92l.cjs → autocomplete-Dez1_LQ_.cjs} +2 -2
- package/dist/{autocomplete-D_XhT92l.cjs.map → autocomplete-Dez1_LQ_.cjs.map} +1 -1
- package/dist/{autocomplete-ytqc1f_C.js → autocomplete-DgrPHogj.js} +3 -3
- package/dist/{autocomplete-ytqc1f_C.js.map → autocomplete-DgrPHogj.js.map} +1 -1
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/avatar-CIi1nK5D.cjs +211 -0
- package/dist/avatar-CIi1nK5D.cjs.map +1 -0
- package/dist/{avatar-m6kOcWq2.js → avatar-aJw7nOfK.js} +203 -320
- package/dist/avatar-aJw7nOfK.js.map +1 -0
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/{boat-DigCNXsd.cjs → boat-Opr-JDiz.cjs} +2 -2
- package/dist/{boat-DigCNXsd.cjs.map → boat-Opr-JDiz.cjs.map} +1 -1
- package/dist/{boat-BeW5NYdz.js → boat-QojjCx3K.js} +2 -2
- package/dist/{boat-BeW5NYdz.js.map → boat-QojjCx3K.js.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 +7 -1
- package/dist/{checkbox-CFqvhybv.cjs → checkbox-D02qLg64.cjs} +2 -2
- package/dist/{checkbox-CFqvhybv.cjs.map → checkbox-D02qLg64.cjs.map} +1 -1
- package/dist/{checkbox-DSEvvPj1.js → checkbox-ktMxUfeF.js} +6 -6
- package/dist/{checkbox-DSEvvPj1.js.map → checkbox-ktMxUfeF.js.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{chips-MCF53PoG.cjs → chips-nR84ClxC.cjs} +2 -2
- package/dist/{chips-MCF53PoG.cjs.map → chips-nR84ClxC.cjs.map} +1 -1
- package/dist/{chips-DCKLuDxP.js → chips-xakYpmLk.js} +3 -3
- package/dist/{chips-DCKLuDxP.js.map → chips-xakYpmLk.js.map} +1 -1
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +1 -1
- package/dist/{circular-progress-CF0ow_gn.cjs → circular-progress-C1VxqINu.cjs} +2 -2
- package/dist/{circular-progress-CF0ow_gn.cjs.map → circular-progress-C1VxqINu.cjs.map} +1 -1
- package/dist/{circular-progress-CKlT4zjF.js → circular-progress-DITkB69y.js} +3 -3
- package/dist/{circular-progress-CKlT4zjF.js.map → circular-progress-DITkB69y.js.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-Cj_qRKC9.cjs → code-preview-AaDZ25jE.cjs} +2 -2
- package/dist/{code-preview-Cj_qRKC9.cjs.map → code-preview-AaDZ25jE.cjs.map} +1 -1
- package/dist/{code-preview-CuDOLS91.js → code-preview-ct_lICzT.js} +2 -2
- package/dist/{code-preview-CuDOLS91.js.map → code-preview-ct_lICzT.js.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-BTa3EHE4.cjs +121 -0
- package/dist/date-range-BTa3EHE4.cjs.map +1 -0
- package/dist/{date-range-CmeAQ5QS.js → date-range-CSEw_dDa.js} +230 -270
- package/dist/date-range-CSEw_dDa.js.map +1 -0
- package/dist/date-range.cjs +1 -1
- package/dist/date-range.js +1 -1
- package/dist/{delay-40MKpcZU.cjs → delay-CBu7O627.cjs} +2 -2
- package/dist/{delay-40MKpcZU.cjs.map → delay-CBu7O627.cjs.map} +1 -1
- package/dist/{delay-pKHFTza9.js → delay-Dvg8k4NQ.js} +2 -2
- package/dist/{delay-pKHFTza9.js.map → delay-Dvg8k4NQ.js.map} +1 -1
- package/dist/delay.cjs +1 -1
- package/dist/delay.js +1 -1
- package/dist/{dialog-content-B_fVl8nu.js → dialog-content-B3thpCG2.js} +3 -3
- package/dist/{dialog-content-B_fVl8nu.js.map → dialog-content-B3thpCG2.js.map} +1 -1
- package/dist/{dialog-content-CkjibvSc.cjs → dialog-content-C1zsL7VE.cjs} +2 -2
- package/dist/{dialog-content-CkjibvSc.cjs.map → dialog-content-C1zsL7VE.cjs.map} +1 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/{divider-BDgmQ4VQ.cjs → divider-BBr_f7I9.cjs} +2 -2
- package/dist/{divider-BDgmQ4VQ.cjs.map → divider-BBr_f7I9.cjs.map} +1 -1
- package/dist/{divider-njFvOEz7.js → divider-DexSqAwi.js} +3 -3
- package/dist/{divider-njFvOEz7.js.map → divider-DexSqAwi.js.map} +1 -1
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/{dropdown-content-C4o6Y70E.js → dropdown-content-CBhrkLS9.js} +3 -3
- package/dist/{dropdown-content-C4o6Y70E.js.map → dropdown-content-CBhrkLS9.js.map} +1 -1
- package/dist/{dropdown-content-CwEBCQTd.cjs → dropdown-content-q5TJhsvd.cjs} +2 -2
- package/dist/{dropdown-content-CwEBCQTd.cjs.map → dropdown-content-q5TJhsvd.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-_h7Zh750.cjs → flex-DcCOzqAb.cjs} +2 -2
- package/dist/{flex-_h7Zh750.cjs.map → flex-DcCOzqAb.cjs.map} +1 -1
- package/dist/{flex-CbKzMNEV.js → flex-eb13QDmS.js} +2 -2
- package/dist/{flex-CbKzMNEV.js.map → flex-eb13QDmS.js.map} +1 -1
- package/dist/{form-gg5B6Dla.cjs → form-BkVMKRp7.cjs} +2 -2
- package/dist/{form-gg5B6Dla.cjs.map → form-BkVMKRp7.cjs.map} +1 -1
- package/dist/{form-eXTuXutS.js → form-DYqGyUi5.js} +2 -2
- package/dist/{form-eXTuXutS.js.map → form-DYqGyUi5.js.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +1 -1
- package/dist/{icon-as6C4b0_.js → icon-BfoeUvkX.js} +2 -2
- package/dist/{icon-as6C4b0_.js.map → icon-BfoeUvkX.js.map} +1 -1
- package/dist/{icon-lc9iKCzt.cjs → icon-aeFENeVj.cjs} +2 -2
- package/dist/{icon-lc9iKCzt.cjs.map → icon-aeFENeVj.cjs.map} +1 -1
- package/dist/{icon-button-D5te6MSD.cjs → icon-button-A1NFKFmq.cjs} +2 -2
- package/dist/{icon-button-D5te6MSD.cjs.map → icon-button-A1NFKFmq.cjs.map} +1 -1
- package/dist/{icon-button-eM7fkcaa.js → icon-button-C10pky9Q.js} +3 -3
- package/dist/{icon-button-eM7fkcaa.js.map → icon-button-C10pky9Q.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 +167 -162
- package/dist/index.js.map +1 -1
- package/dist/{input-C1JcUy_t.js → input-DcDi_noA.js} +2 -2
- package/dist/{input-C1JcUy_t.js.map → input-DcDi_noA.js.map} +1 -1
- package/dist/{input-KfFWcQk8.cjs → input-q8VOTI3J.cjs} +2 -2
- package/dist/{input-KfFWcQk8.cjs.map → input-q8VOTI3J.cjs.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-Cn2oKOHN.js → list-BvW5Mhsb.js} +2 -2
- package/dist/{list-Cn2oKOHN.js.map → list-BvW5Mhsb.js.map} +1 -1
- package/dist/{list-CZlCptFt.cjs → list-YOtl6JRk.cjs} +2 -2
- package/dist/{list-CZlCptFt.cjs.map → list-YOtl6JRk.cjs.map} +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{litElement.mixin-CUhEpTgZ.js → litElement.mixin-DJxjDwEr.js} +2 -2
- package/dist/{litElement.mixin-CUhEpTgZ.js.map → litElement.mixin-DJxjDwEr.js.map} +1 -1
- package/dist/{litElement.mixin-BFfWKABY.cjs → litElement.mixin-Do6OsQmn.cjs} +2 -2
- package/dist/{litElement.mixin-BFfWKABY.cjs.map → litElement.mixin-Do6OsQmn.cjs.map} +1 -1
- package/dist/media-CxRMY7ct.cjs +128 -0
- package/dist/media-CxRMY7ct.cjs.map +1 -0
- package/dist/media-DchXWby1.js +185 -0
- package/dist/media-DchXWby1.js.map +1 -0
- package/dist/{menu-ChUQMNtl.cjs → menu-D0Wv-94q.cjs} +2 -2
- package/dist/{menu-ChUQMNtl.cjs.map → menu-D0Wv-94q.cjs.map} +1 -1
- package/dist/{menu--0VMi_rl.js → menu-DC81HpzC.js} +3 -3
- package/dist/{menu--0VMi_rl.js.map → menu-DC81HpzC.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-BSp9bz1i.js → notification-service-DiZinzWu.js} +3 -3
- package/dist/{notification-service-BSp9bz1i.js.map → notification-service-DiZinzWu.js.map} +1 -1
- package/dist/{notification-service-Bick5tKQ.cjs → notification-service-fl9rTVO5.cjs} +2 -2
- package/dist/{notification-service-Bick5tKQ.cjs.map → notification-service-fl9rTVO5.cjs.map} +1 -1
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +1 -1
- package/dist/{option-BBH03Xsg.js → option-BBcO5Pj5.js} +2 -2
- package/dist/{option-BBH03Xsg.js.map → option-BBcO5Pj5.js.map} +1 -1
- package/dist/{option-C_1a_vzI.cjs → option-BQ0PXMOa.cjs} +2 -2
- package/dist/{option-C_1a_vzI.cjs.map → option-BQ0PXMOa.cjs.map} +1 -1
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{payment-card-form-DgkNJsE1.js → payment-card-form-BTpnbZFg.js} +3 -3
- package/dist/{payment-card-form-DgkNJsE1.js.map → payment-card-form-BTpnbZFg.js.map} +1 -1
- package/dist/{payment-card-form-DDhg71fA.cjs → payment-card-form-DbEZ8Js1.cjs} +2 -2
- package/dist/{payment-card-form-DDhg71fA.cjs.map → payment-card-form-DbEZ8Js1.cjs.map} +1 -1
- package/dist/{radio-button-CCsCtUkU.cjs → radio-button-BkYPf2-q.cjs} +2 -2
- package/dist/{radio-button-CCsCtUkU.cjs.map → radio-button-BkYPf2-q.cjs.map} +1 -1
- package/dist/{radio-button-Cuo-ybx9.js → radio-button-DE08d0Yl.js} +2 -2
- package/dist/{radio-button-Cuo-ybx9.js.map → radio-button-DE08d0Yl.js.map} +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/{schmancy-steps-container-CmGuY9sB.js → schmancy-steps-container-D6L7dAbO.js} +2 -2
- package/dist/{schmancy-steps-container-CmGuY9sB.js.map → schmancy-steps-container-D6L7dAbO.js.map} +1 -1
- package/dist/{schmancy-steps-container-CqsMA2he.cjs → schmancy-steps-container-tKeAaFIY.cjs} +2 -2
- package/dist/{schmancy-steps-container-CqsMA2he.cjs.map → schmancy-steps-container-tKeAaFIY.cjs.map} +1 -1
- package/dist/{select-fZ2PlQ_3.cjs → select-5yP3bof1.cjs} +2 -2
- package/dist/{select-fZ2PlQ_3.cjs.map → select-5yP3bof1.cjs.map} +1 -1
- package/dist/{select-ChxNr4a9.js → select-Dqr73662.js} +3 -3
- package/dist/{select-ChxNr4a9.js.map → select-Dqr73662.js.map} +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/{sheet-CaUlNTdn.cjs → sheet-BcN4mBoD.cjs} +2 -2
- package/dist/{sheet-CaUlNTdn.cjs.map → sheet-BcN4mBoD.cjs.map} +1 -1
- package/dist/{sheet-2FAz4r9B.js → sheet-x6OfY0Se.js} +4 -4
- package/dist/{sheet-2FAz4r9B.js.map → sheet-x6OfY0Se.js.map} +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +2 -2
- package/dist/{slider-CHlXZvPb.cjs → slider-BxT70Fsi.cjs} +2 -2
- package/dist/{slider-CHlXZvPb.cjs.map → slider-BxT70Fsi.cjs.map} +1 -1
- package/dist/{slider-DU3_sk4c.js → slider-ecFkp13d.js} +3 -3
- package/dist/{slider-DU3_sk4c.js.map → slider-ecFkp13d.js.map} +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/{spinner-D064VAQ0.cjs → spinner-BNAzXVjG.cjs} +2 -2
- package/dist/{spinner-D064VAQ0.cjs.map → spinner-BNAzXVjG.cjs.map} +1 -1
- package/dist/{spinner-RvzzGIF-.js → spinner-WpaBY1JF.js} +3 -3
- package/dist/{spinner-RvzzGIF-.js.map → spinner-WpaBY1JF.js.map} +1 -1
- package/dist/steps.cjs +1 -1
- package/dist/steps.js +1 -1
- package/dist/{surface-s7dL8dsr.js → surface-BA0AdJVV.js} +2 -2
- package/dist/{surface-s7dL8dsr.js.map → surface-BA0AdJVV.js.map} +1 -1
- package/dist/{surface-B3UkH65j.cjs → surface-BWZ0Kqca.cjs} +2 -2
- package/dist/{surface-B3UkH65j.cjs.map → surface-BWZ0Kqca.cjs.map} +1 -1
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/{table-DzYvbr4k.js → table-BLnwnQsA.js} +2 -2
- package/dist/{table-DzYvbr4k.js.map → table-BLnwnQsA.js.map} +1 -1
- package/dist/{table-BrbO5sO5.cjs → table-IXyFmT0L.cjs} +2 -2
- package/dist/{table-BrbO5sO5.cjs.map → table-IXyFmT0L.cjs.map} +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-compatibility-CGG-7f7V.cjs → tabs-compatibility-D4J5od5-.cjs} +2 -2
- package/dist/{tabs-compatibility-CGG-7f7V.cjs.map → tabs-compatibility-D4J5od5-.cjs.map} +1 -1
- package/dist/{tabs-compatibility-vhn4Kp7N.js → tabs-compatibility-DTWvzrPU.js} +7 -7
- package/dist/{tabs-compatibility-vhn4Kp7N.js.map → tabs-compatibility-DTWvzrPU.js.map} +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tailwind.mixin-BvJKKv72.cjs +2 -0
- package/dist/{tailwind.mixin-CgPd8dM4.cjs.map → tailwind.mixin-BvJKKv72.cjs.map} +1 -1
- package/dist/{tailwind.mixin-t3Yj_Xbu.js → tailwind.mixin-DauVaFKt.js} +4 -4
- package/dist/{tailwind.mixin-t3Yj_Xbu.js.map → tailwind.mixin-DauVaFKt.js.map} +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/dist/{textarea-DB4ma3Yk.js → textarea-DH6PuHVg.js} +2 -2
- package/dist/{textarea-DB4ma3Yk.js.map → textarea-DH6PuHVg.js.map} +1 -1
- package/dist/{textarea-BqzHPEaR.cjs → textarea-Dl8avXEo.cjs} +2 -2
- package/dist/{textarea-BqzHPEaR.cjs.map → textarea-Dl8avXEo.cjs.map} +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{theme-button-DiugvNq0.js → theme-button--p6t7qcD.js} +2 -2
- package/dist/{theme-button-DiugvNq0.js.map → theme-button--p6t7qcD.js.map} +1 -1
- package/dist/{theme-button-X1T0K-rT.cjs → theme-button-rjXu-3em.cjs} +2 -2
- package/dist/{theme-button-X1T0K-rT.cjs.map → theme-button-rjXu-3em.cjs.map} +1 -1
- package/dist/theme-button.cjs +1 -1
- package/dist/theme-button.js +1 -1
- package/dist/theme.cjs +1 -1
- package/dist/{theme.component-GbvYp0sg.cjs → theme.component-CIsakuvd.cjs} +2 -2
- package/dist/{theme.component-GbvYp0sg.cjs.map → theme.component-CIsakuvd.cjs.map} +1 -1
- package/dist/{theme.component-DGfwQDsP.js → theme.component-D2KSl93u.js} +19 -19
- package/dist/{theme.component-DGfwQDsP.js.map → theme.component-D2KSl93u.js.map} +1 -1
- package/dist/theme.js +1 -1
- package/dist/{timezone-Bp8z4kRR.cjs → timezone-BW4gugCz.cjs} +2 -2
- package/dist/{timezone-Bp8z4kRR.cjs.map → timezone-BW4gugCz.cjs.map} +1 -1
- package/dist/{timezone-pKGsUkVR.js → timezone-CXXh8orD.js} +3 -3
- package/dist/{timezone-pKGsUkVR.js.map → timezone-CXXh8orD.js.map} +1 -1
- package/dist/{tooltip-DO_tqLiU.cjs → tooltip-DUEo4iG2.cjs} +2 -2
- package/dist/{tooltip-DO_tqLiU.cjs.map → tooltip-DUEo4iG2.cjs.map} +1 -1
- package/dist/{tooltip-OGPdu-15.js → tooltip-rWGtsCcJ.js} +2 -2
- package/dist/{tooltip-OGPdu-15.js.map → tooltip-rWGtsCcJ.js.map} +1 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/{tree-BLnyRUxk.js → tree-C1H2E_rA.js} +2 -2
- package/dist/{tree-BLnyRUxk.js.map → tree-C1H2E_rA.js.map} +1 -1
- package/dist/{tree-Cj9dq4FW.cjs → tree-CSCSIz67.cjs} +2 -2
- package/dist/{tree-Cj9dq4FW.cjs.map → tree-CSCSIz67.cjs.map} +1 -1
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/{typewriter-CLh00Uvc.cjs → typewriter-BuQA40J-.cjs} +2 -2
- package/dist/{typewriter-CLh00Uvc.cjs.map → typewriter-BuQA40J-.cjs.map} +1 -1
- package/dist/{typewriter-P4fs9-rU.js → typewriter-DtvMI0TT.js} +4 -4
- package/dist/{typewriter-P4fs9-rU.js.map → typewriter-DtvMI0TT.js.map} +1 -1
- package/dist/typewriter.cjs +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{typography-BouLjmvn.js → typography-DT9N3Jtf.js} +2 -2
- package/dist/{typography-BouLjmvn.js.map → typography-DT9N3Jtf.js.map} +1 -1
- package/dist/{typography-BOogKO97.cjs → typography-DjwFfw1O.cjs} +2 -2
- package/dist/{typography-BOogKO97.cjs.map → typography-DjwFfw1O.cjs.map} +1 -1
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/package.json +1 -1
- package/dist/avatar-DkBLxCT2.cjs +0 -281
- package/dist/avatar-DkBLxCT2.cjs.map +0 -1
- package/dist/avatar-m6kOcWq2.js.map +0 -1
- package/dist/date-range-B2f1eXz0.cjs +0 -139
- package/dist/date-range-B2f1eXz0.cjs.map +0 -1
- package/dist/date-range-CmeAQ5QS.js.map +0 -1
- package/dist/tailwind.mixin-CgPd8dM4.cjs +0 -2
package/dist/ai/date-range.md
CHANGED
|
@@ -1,142 +1,178 @@
|
|
|
1
|
-
# Date Range
|
|
1
|
+
# Schmancy Date Range - AI Reference
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
```js
|
|
4
|
+
// Component Tag
|
|
5
|
+
<schmancy-date-range
|
|
6
|
+
type="date|datetime-local" // Input type (default: "date")
|
|
7
|
+
.dateFrom="${{ label: string, value: string }}" // Start date config (default: { label: 'From', value: '' })
|
|
8
|
+
.dateTo="${{ label: string, value: string }}" // End date config (default: { label: 'To', value: '' })
|
|
9
|
+
minDate?="string" // Minimum selectable date
|
|
10
|
+
maxDate?="string" // Maximum selectable date
|
|
11
|
+
.customPresets?="${Array<Preset>}" // Custom preset ranges
|
|
12
|
+
format?="string" // Date format (auto-detected by type)
|
|
13
|
+
disabled? // Disable the component
|
|
14
|
+
required? // Mark as required field
|
|
15
|
+
placeholder?="string" // Placeholder text (default: "Select date range")
|
|
16
|
+
clearable? // Show clear button (default: true)
|
|
17
|
+
@change=${handler}> // Fires when range changes
|
|
18
|
+
</schmancy-date-range>
|
|
19
|
+
|
|
20
|
+
// Import
|
|
21
|
+
import '@mhmo91/schmancy/date-range'
|
|
22
|
+
|
|
23
|
+
// Types
|
|
24
|
+
interface Preset {
|
|
25
|
+
label: string
|
|
26
|
+
dateFrom: string
|
|
27
|
+
dateTo: string
|
|
28
|
+
}
|
|
4
29
|
|
|
5
|
-
|
|
30
|
+
interface DateRangeChangeEvent {
|
|
31
|
+
detail: {
|
|
32
|
+
dateFrom: string
|
|
33
|
+
dateTo: string
|
|
34
|
+
}
|
|
35
|
+
}
|
|
6
36
|
|
|
7
|
-
|
|
8
|
-
|
|
37
|
+
// Examples
|
|
38
|
+
// 1. Basic date range
|
|
9
39
|
<schmancy-date-range
|
|
10
40
|
.dateFrom="${{ label: 'Start', value: '2024-01-01' }}"
|
|
11
41
|
.dateTo="${{ label: 'End', value: '2024-12-31' }}"
|
|
42
|
+
@change="${(e) => console.log(e.detail)}"
|
|
12
43
|
></schmancy-date-range>
|
|
13
44
|
|
|
14
|
-
|
|
15
|
-
<schmancy-date-range
|
|
45
|
+
// 2. DateTime range with constraints
|
|
46
|
+
<schmancy-date-range
|
|
16
47
|
type="datetime-local"
|
|
48
|
+
.dateFrom="${{ label: 'Event Start', value: '2024-03-15T09:00' }}"
|
|
49
|
+
.dateTo="${{ label: 'Event End', value: '2024-03-15T17:00' }}"
|
|
50
|
+
minDate="2024-01-01T00:00"
|
|
51
|
+
maxDate="2024-12-31T23:59"
|
|
52
|
+
></schmancy-date-range>
|
|
53
|
+
|
|
54
|
+
// 3. With custom presets
|
|
55
|
+
<schmancy-date-range
|
|
17
56
|
.customPresets="${[
|
|
18
|
-
{ label: 'Last Sprint', dateFrom: '2024-01-01', dateTo: '2024-01-14' }
|
|
57
|
+
{ label: 'Last Sprint', dateFrom: '2024-01-01', dateTo: '2024-01-14' },
|
|
58
|
+
{ label: 'Current Sprint', dateFrom: '2024-01-15', dateTo: '2024-01-28' },
|
|
59
|
+
{ label: 'Holiday Season', dateFrom: '2023-11-24', dateTo: '2024-01-02' }
|
|
19
60
|
]}"
|
|
61
|
+
@change="${updateAnalytics}"
|
|
20
62
|
></schmancy-date-range>
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Properties
|
|
24
|
-
|
|
25
|
-
| Property | Type | Default | Description |
|
|
26
|
-
|----------|------|---------|-------------|
|
|
27
|
-
| `type` | `'date' \| 'datetime-local'` | `'date'` | Date input type |
|
|
28
|
-
| `dateFrom` | `{ label: string, value: string }` | `{ label: 'From', value: '' }` | Start date configuration |
|
|
29
|
-
| `dateTo` | `{ label: string, value: string }` | `{ label: 'To', value: '' }` | End date configuration |
|
|
30
|
-
| `minDate` | `string` | - | Minimum selectable date |
|
|
31
|
-
| `maxDate` | `string` | - | Maximum selectable date |
|
|
32
|
-
| `customPresets` | `Array<{ label, dateFrom, dateTo }>` | `[]` | Custom preset ranges |
|
|
33
|
-
| `format` | `string` | - | Date format (defaults based on type) |
|
|
34
|
-
| `disabled` | `boolean` | `false` | Disable the component |
|
|
35
|
-
| `required` | `boolean` | `false` | Mark as required field |
|
|
36
|
-
| `placeholder` | `string` | `'Select date range'` | Placeholder text |
|
|
37
|
-
| `clearable` | `boolean` | `true` | Show clear button |
|
|
38
|
-
|
|
39
|
-
## Events
|
|
40
|
-
|
|
41
|
-
### change
|
|
42
|
-
Fired when date range changes.
|
|
43
|
-
|
|
44
|
-
```typescript
|
|
45
|
-
interface DateRangeChangeEvent {
|
|
46
|
-
detail: {
|
|
47
|
-
dateFrom: string;
|
|
48
|
-
dateTo: string;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
## Examples
|
|
54
63
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
<schmancy-form>
|
|
64
|
+
// 4. Form integration
|
|
65
|
+
<schmancy-form @submit="${handleSubmit}">
|
|
58
66
|
<schmancy-date-range
|
|
59
67
|
name="project-timeline"
|
|
60
68
|
required
|
|
61
69
|
.dateFrom="${{ label: 'Project Start', value: '' }}"
|
|
62
70
|
.dateTo="${{ label: 'Project End', value: '' }}"
|
|
63
|
-
@change="${(e) => console.log('Timeline:', e.detail)}"
|
|
64
71
|
></schmancy-date-range>
|
|
72
|
+
<schmancy-button type="submit" variant="filled">Submit</schmancy-button>
|
|
65
73
|
</schmancy-form>
|
|
66
|
-
```
|
|
67
74
|
|
|
68
|
-
|
|
69
|
-
```html
|
|
70
|
-
<!-- Date range for analytics with custom presets -->
|
|
75
|
+
// 5. Booking system example
|
|
71
76
|
<schmancy-date-range
|
|
72
|
-
.
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
+
.dateFrom="${{ label: 'Check-in', value: '' }}"
|
|
78
|
+
.dateTo="${{ label: 'Check-out', value: '' }}"
|
|
79
|
+
minDate="${new Date().toISOString().split('T')[0]}"
|
|
80
|
+
required
|
|
81
|
+
placeholder="Select your travel dates"
|
|
77
82
|
></schmancy-date-range>
|
|
78
|
-
```
|
|
79
83
|
|
|
80
|
-
|
|
81
|
-
```html
|
|
84
|
+
// 6. Analytics dashboard with navigation
|
|
82
85
|
<schmancy-date-range
|
|
83
|
-
|
|
84
|
-
.
|
|
85
|
-
|
|
86
|
-
minDate="2024-01-01T00:00"
|
|
86
|
+
.dateFrom="${{ label: 'Period Start', value: startDate }}"
|
|
87
|
+
.dateTo="${{ label: 'Period End', value: endDate }}"
|
|
88
|
+
@change="${(e) => updateDashboard(e.detail)}"
|
|
87
89
|
></schmancy-date-range>
|
|
88
90
|
```
|
|
89
91
|
|
|
90
|
-
## Features
|
|
91
|
-
|
|
92
|
-
### Built-in Presets
|
|
93
|
-
The component includes intelligent preset categories:
|
|
94
|
-
- **Days**: Today, Yesterday, Last 7/30/90 Days
|
|
95
|
-
- **Weeks**: This Week, Last Week
|
|
96
|
-
- **Months**: This Month, Last Month
|
|
97
|
-
- **Quarters**: This Quarter, Last Quarter
|
|
98
|
-
- **Years**: This Year, Last Year, Year to Date
|
|
99
|
-
- **Hours** (datetime-local): Last 12/24 Hours
|
|
100
|
-
|
|
101
|
-
### Smart Navigation
|
|
102
|
-
- Arrow buttons shift ranges intelligently based on duration
|
|
103
|
-
- Maintains full period boundaries (weeks, months, quarters)
|
|
104
|
-
- Automatically detects and preserves preset selections
|
|
105
|
-
|
|
106
|
-
### Responsive Dropdown
|
|
107
|
-
- Floating UI positioning with automatic adjustments
|
|
108
|
-
- Categorized preset display
|
|
109
|
-
- Manual date inputs with validation
|
|
110
|
-
|
|
111
|
-
## Styling
|
|
112
|
-
|
|
113
|
-
The component uses semantic color tokens and supports theming:
|
|
114
|
-
|
|
115
|
-
```css
|
|
116
|
-
schmancy-date-range {
|
|
117
|
-
--animation-duration: 200ms;
|
|
118
|
-
--dropdown-min-width: 16rem;
|
|
119
|
-
--dropdown-max-width: 24rem;
|
|
120
|
-
}
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
## Accessibility
|
|
124
|
-
|
|
125
|
-
- Full keyboard navigation support
|
|
126
|
-
- ARIA labels and roles
|
|
127
|
-
- Focus management
|
|
128
|
-
- Screen reader announcements
|
|
129
|
-
|
|
130
92
|
## Related Components
|
|
131
|
-
|
|
132
|
-
- [
|
|
133
|
-
- [
|
|
134
|
-
- [
|
|
135
|
-
- [
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
93
|
+
- **[Input](./input.md)**: Base input component for single date selection
|
|
94
|
+
- **[Dialog](./dialog.md)**: Used internally for date picker modal
|
|
95
|
+
- **[Button](./button.md)**: Navigation and action buttons
|
|
96
|
+
- **[Surface](./surface.md)**: Container for dropdown interface
|
|
97
|
+
- **[Form](./form.md)**: Form integration and validation
|
|
98
|
+
- **[Icon](./icon.md)**: Navigation arrows and UI elements
|
|
99
|
+
|
|
100
|
+
## Technical Details
|
|
101
|
+
|
|
102
|
+
### Built-in Preset Categories
|
|
103
|
+
The component includes intelligent presets organized by time period:
|
|
104
|
+
|
|
105
|
+
**Days**: Today, Yesterday, Last 7/14/30/60/90 Days
|
|
106
|
+
**Weeks**: This Week, Last Week, Last 2/4 Weeks
|
|
107
|
+
**Months**: This Month, Last Month, Last 3/6 Months
|
|
108
|
+
**Quarters**: This Quarter, Last Quarter, Last 2/4 Quarters
|
|
109
|
+
**Years**: This Year, Last Year, Year to Date
|
|
110
|
+
**Hours** (datetime-local only): Last 12/24 Hours
|
|
111
|
+
|
|
112
|
+
### Smart Navigation Features
|
|
113
|
+
- Arrow buttons intelligently shift ranges based on detected period type
|
|
114
|
+
- Preserves full period boundaries (weeks start on Monday, months on 1st)
|
|
115
|
+
- Automatically detects and maintains preset selections
|
|
116
|
+
- Keyboard shortcuts for power users
|
|
117
|
+
|
|
118
|
+
### Keyboard Shortcuts
|
|
119
|
+
- `PageUp`: Navigate to previous date range
|
|
120
|
+
- `PageDown`: Navigate to next date range
|
|
121
|
+
- `Ctrl+Home`: Jump to start of current month
|
|
122
|
+
- `Ctrl+End`: Jump to end of current month
|
|
123
|
+
- `Escape`: Close date picker dialog
|
|
124
|
+
|
|
125
|
+
### Dialog Integration
|
|
126
|
+
Uses `$dialog.component()` service to display picker in modal. Automatically finds nearest `schmancy-theme` component for proper theming context.
|
|
127
|
+
|
|
128
|
+
### Date Validation
|
|
129
|
+
- Ensures dateFrom is before dateTo
|
|
130
|
+
- Respects min/max date constraints
|
|
131
|
+
- Handles invalid input gracefully
|
|
132
|
+
- Validates format based on type
|
|
133
|
+
|
|
134
|
+
### Performance Optimizations
|
|
135
|
+
- Memoized preset calculations
|
|
136
|
+
- Efficient RxJS event handling
|
|
137
|
+
- Minimal re-renders through reactive state
|
|
138
|
+
- Lazy-loaded dialog content
|
|
139
|
+
|
|
140
|
+
## Common Use Cases
|
|
141
|
+
|
|
142
|
+
1. **Analytics Dashboard**
|
|
143
|
+
```html
|
|
144
|
+
<schmancy-date-range
|
|
145
|
+
.customPresets="${analyticsPresets}"
|
|
146
|
+
@change="${refreshDashboard}"
|
|
147
|
+
></schmancy-date-range>
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
2. **Booking/Reservation System**
|
|
151
|
+
```html
|
|
152
|
+
<schmancy-date-range
|
|
153
|
+
.dateFrom="${{ label: 'Check-in', value: '' }}"
|
|
154
|
+
.dateTo="${{ label: 'Check-out', value: '' }}"
|
|
155
|
+
minDate="${today}"
|
|
156
|
+
required
|
|
157
|
+
></schmancy-date-range>
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
3. **Report Generation**
|
|
161
|
+
```html
|
|
162
|
+
<schmancy-date-range
|
|
163
|
+
type="datetime-local"
|
|
164
|
+
.dateFrom="${{ label: 'Report Start', value: lastMonth }}"
|
|
165
|
+
.dateTo="${{ label: 'Report End', value: today }}"
|
|
166
|
+
@change="${generateReport}"
|
|
167
|
+
></schmancy-date-range>
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
4. **Event Scheduling**
|
|
171
|
+
```html
|
|
172
|
+
<schmancy-date-range
|
|
173
|
+
type="datetime-local"
|
|
174
|
+
placeholder="Select event duration"
|
|
175
|
+
required
|
|
176
|
+
@change="${updateEventSchedule}"
|
|
177
|
+
></schmancy-date-range>
|
|
178
|
+
```
|
package/dist/ai/typography.md
CHANGED
|
@@ -1,170 +1,186 @@
|
|
|
1
1
|
# Schmancy Typography - AI Reference
|
|
2
2
|
|
|
3
3
|
```js
|
|
4
|
-
//
|
|
4
|
+
// Component Tag
|
|
5
5
|
<schmancy-typography
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
no-wrap?
|
|
13
|
-
gutter-bottom?>
|
|
14
|
-
Text content goes here
|
|
6
|
+
type="display|headline|title|label|body" // Typography scale type
|
|
7
|
+
token="lg|md|sm" // Size token within type
|
|
8
|
+
class?="additional-tailwind-classes" // Additional styling
|
|
9
|
+
tag?="h1|h2|h3|h4|h5|h6|p|span|div" // HTML element (auto-determined by type/token)
|
|
10
|
+
@click=${handler}> // Click handler
|
|
11
|
+
<!-- Text content or HTML -->
|
|
15
12
|
</schmancy-typography>
|
|
16
13
|
|
|
17
|
-
//
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
//
|
|
26
|
-
<schmancy-typography variant="subtitle1">Subtitle 1</schmancy-typography>
|
|
27
|
-
<schmancy-typography variant="subtitle2">Subtitle 2</schmancy-typography>
|
|
28
|
-
<schmancy-typography variant="body1">Body 1 text</schmancy-typography>
|
|
29
|
-
<schmancy-typography variant="body2">Body 2 text</schmancy-typography>
|
|
30
|
-
<schmancy-typography variant="button">Button text</schmancy-typography>
|
|
31
|
-
<schmancy-typography variant="caption">Caption text</schmancy-typography>
|
|
32
|
-
<schmancy-typography variant="overline">Overline text</schmancy-typography>
|
|
33
|
-
|
|
34
|
-
// Typography Properties
|
|
35
|
-
variant: string // Text style variant
|
|
36
|
-
color: string // Text color
|
|
37
|
-
align: string // Text alignment
|
|
38
|
-
weight: string // Font weight
|
|
39
|
-
transform: string // Text transformation
|
|
40
|
-
truncate: boolean // Truncate overflow with ellipsis
|
|
41
|
-
noWrap: boolean // Prevent text wrapping
|
|
42
|
-
gutterBottom: boolean // Add margin at the bottom
|
|
43
|
-
italic: boolean // Italic style
|
|
44
|
-
underline: boolean // Underline text
|
|
45
|
-
lineHeight: string // Line height
|
|
46
|
-
letterSpacing: string // Letter spacing
|
|
47
|
-
fontFamily: string // Font family
|
|
48
|
-
size: string // Custom font size (overrides variant)
|
|
49
|
-
responsive: boolean // Apply responsive sizing
|
|
14
|
+
// Import
|
|
15
|
+
import '@mhmo91/schmancy/typography'
|
|
16
|
+
|
|
17
|
+
// Typography Scale Reference
|
|
18
|
+
// Display: lg (57/64), md (45/52), sm (36/44)
|
|
19
|
+
// Headline: lg (32/40), md (28/36), sm (24/32)
|
|
20
|
+
// Title: lg (22/28), md (16/24), sm (14/20)
|
|
21
|
+
// Label: lg (14/20), md (12/16), sm (11/16)
|
|
22
|
+
// Body: lg (16/24), md (14/20), sm (12/16)
|
|
50
23
|
|
|
51
24
|
// Examples
|
|
52
|
-
//
|
|
53
|
-
<schmancy-typography
|
|
54
|
-
Welcome to
|
|
25
|
+
// 1. Page heading (Display)
|
|
26
|
+
<schmancy-typography type="display" token="lg">
|
|
27
|
+
Welcome to Schmancy
|
|
55
28
|
</schmancy-typography>
|
|
56
29
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
30
|
+
// 2. Section heading (Headline)
|
|
31
|
+
<schmancy-typography type="headline" token="md">
|
|
32
|
+
Getting Started
|
|
60
33
|
</schmancy-typography>
|
|
61
34
|
|
|
62
|
-
//
|
|
63
|
-
<schmancy-typography
|
|
64
|
-
|
|
65
|
-
weight="bold"
|
|
66
|
-
color="secondary"
|
|
67
|
-
transform="uppercase">
|
|
68
|
-
Important Notice
|
|
35
|
+
// 3. Card title
|
|
36
|
+
<schmancy-typography type="title" token="lg">
|
|
37
|
+
User Profile Settings
|
|
69
38
|
</schmancy-typography>
|
|
70
39
|
|
|
71
|
-
//
|
|
72
|
-
<schmancy-typography
|
|
73
|
-
|
|
74
|
-
truncate
|
|
75
|
-
style="max-width: 200px;">
|
|
76
|
-
This is a very long text that will be truncated with an ellipsis when it exceeds the container width.
|
|
40
|
+
// 4. Form label
|
|
41
|
+
<schmancy-typography type="label" token="md">
|
|
42
|
+
Email Address
|
|
77
43
|
</schmancy-typography>
|
|
78
44
|
|
|
79
|
-
//
|
|
80
|
-
<schmancy-typography
|
|
81
|
-
|
|
82
|
-
responsive
|
|
83
|
-
align="center"
|
|
84
|
-
gutter-bottom>
|
|
85
|
-
Responsive Heading
|
|
45
|
+
// 5. Body text
|
|
46
|
+
<schmancy-typography type="body" token="md">
|
|
47
|
+
This is the main content paragraph with medium body text.
|
|
86
48
|
</schmancy-typography>
|
|
87
49
|
|
|
88
|
-
//
|
|
89
|
-
<schmancy-typography
|
|
90
|
-
|
|
91
|
-
italic
|
|
92
|
-
letter-spacing="0.5px"
|
|
93
|
-
line-height="1.8">
|
|
94
|
-
This text has custom letter spacing and line height, with italic styling.
|
|
50
|
+
// 6. With additional styling
|
|
51
|
+
<schmancy-typography type="headline" token="sm" class="text-primary mb-4">
|
|
52
|
+
Highlighted Section
|
|
95
53
|
</schmancy-typography>
|
|
96
54
|
|
|
97
|
-
//
|
|
98
|
-
<
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
55
|
+
// 7. Custom tag usage
|
|
56
|
+
<schmancy-typography type="display" token="md" tag="h1">
|
|
57
|
+
Main Page Title
|
|
58
|
+
</schmancy-typography>
|
|
59
|
+
|
|
60
|
+
// 8. Clickable text
|
|
61
|
+
<schmancy-typography type="body" token="md" class="cursor-pointer hover:text-primary" @click="${handleClick}">
|
|
62
|
+
Click me for more information
|
|
63
|
+
</schmancy-typography>
|
|
64
|
+
|
|
65
|
+
// 9. Mixed content with HTML
|
|
66
|
+
<schmancy-typography type="body" token="lg">
|
|
67
|
+
This text contains <strong>bold</strong> and <em>italic</em> elements.
|
|
68
|
+
</schmancy-typography>
|
|
69
|
+
|
|
70
|
+
// 10. Multiple typography in a card
|
|
71
|
+
<schmancy-card class="p-6">
|
|
72
|
+
<schmancy-typography type="headline" token="sm" class="mb-2 block">
|
|
73
|
+
Card Title
|
|
109
74
|
</schmancy-typography>
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
This text has medium weight.
|
|
75
|
+
<schmancy-typography type="body" token="md" class="text-surface-onVariant mb-4 block">
|
|
76
|
+
This is a description that provides more context about the card content.
|
|
113
77
|
</schmancy-typography>
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
This text has bold weight.
|
|
78
|
+
<schmancy-typography type="label" token="lg" class="text-primary">
|
|
79
|
+
View Details →
|
|
117
80
|
</schmancy-typography>
|
|
118
|
-
</div>
|
|
119
|
-
|
|
120
|
-
// Typography in a card
|
|
121
|
-
<schmancy-card>
|
|
122
|
-
<schmancy-card-content>
|
|
123
|
-
<schmancy-typography variant="h4" gutter-bottom>
|
|
124
|
-
Card Title
|
|
125
|
-
</schmancy-typography>
|
|
126
|
-
|
|
127
|
-
<schmancy-typography variant="body2" color="text-secondary" gutter-bottom>
|
|
128
|
-
Posted on January 1, 2023
|
|
129
|
-
</schmancy-typography>
|
|
130
|
-
|
|
131
|
-
<schmancy-typography variant="body1">
|
|
132
|
-
This is the main content of the card. It uses the body1 typography variant
|
|
133
|
-
which is suitable for longer text content.
|
|
134
|
-
</schmancy-typography>
|
|
135
|
-
</schmancy-card-content>
|
|
136
|
-
|
|
137
|
-
<schmancy-card-actions>
|
|
138
|
-
<schmancy-button>
|
|
139
|
-
<schmancy-typography variant="button">
|
|
140
|
-
Read More
|
|
141
|
-
</schmancy-typography>
|
|
142
|
-
</schmancy-button>
|
|
143
|
-
</schmancy-card-actions>
|
|
144
81
|
</schmancy-card>
|
|
82
|
+
```
|
|
145
83
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
</schmancy-typography>
|
|
84
|
+
## Related Components
|
|
85
|
+
- **[Card](./card.md)**: Often used within cards for titles and content
|
|
86
|
+
- **[Button](./button.md)**: Typography can be used within buttons for custom text
|
|
87
|
+
- **[Surface](./surface.md)**: Typography inherits color from surface containers
|
|
88
|
+
- **[Form](./form.md)**: Labels and helper text in forms
|
|
89
|
+
- **[Table](./table.md)**: Headers and cell content formatting
|
|
153
90
|
|
|
154
|
-
|
|
155
|
-
<schmancy-typography
|
|
156
|
-
variant="caption"
|
|
157
|
-
color="text-secondary"
|
|
158
|
-
size="10px">
|
|
159
|
-
* Terms and conditions apply
|
|
160
|
-
</schmancy-typography>
|
|
91
|
+
## Technical Details
|
|
161
92
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
93
|
+
### Typography Scale System
|
|
94
|
+
Material Design 3 typography scale with 5 scales, each with 3 sizes:
|
|
95
|
+
|
|
96
|
+
**Display** - Largest text for big statements
|
|
97
|
+
- `lg`: 57px/64px line-height
|
|
98
|
+
- `md`: 45px/52px line-height
|
|
99
|
+
- `sm`: 36px/44px line-height
|
|
100
|
+
|
|
101
|
+
**Headline** - Section headers and important titles
|
|
102
|
+
- `lg`: 32px/40px line-height
|
|
103
|
+
- `md`: 28px/36px line-height
|
|
104
|
+
- `sm`: 24px/32px line-height
|
|
105
|
+
|
|
106
|
+
**Title** - Smaller titles and subtitles
|
|
107
|
+
- `lg`: 22px/28px line-height
|
|
108
|
+
- `md`: 16px/24px line-height
|
|
109
|
+
- `sm`: 14px/20px line-height
|
|
110
|
+
|
|
111
|
+
**Label** - UI labels and buttons
|
|
112
|
+
- `lg`: 14px/20px line-height
|
|
113
|
+
- `md`: 12px/16px line-height
|
|
114
|
+
- `sm`: 11px/16px line-height
|
|
115
|
+
|
|
116
|
+
**Body** - Main content text
|
|
117
|
+
- `lg`: 16px/24px line-height
|
|
118
|
+
- `md`: 14px/20px line-height
|
|
119
|
+
- `sm`: 12px/16px line-height
|
|
120
|
+
|
|
121
|
+
### Automatic Tag Selection
|
|
122
|
+
The component automatically selects appropriate HTML tags:
|
|
123
|
+
- Display: `h1`, `h2`, `h3`
|
|
124
|
+
- Headline: `h3`, `h4`, `h5`
|
|
125
|
+
- Title: `h5`, `h6`, `p`
|
|
126
|
+
- Label: `span`
|
|
127
|
+
- Body: `p`
|
|
128
|
+
|
|
129
|
+
### Theme Integration
|
|
130
|
+
Typography automatically inherits colors from the theme:
|
|
131
|
+
- Uses `color: var(--schmancy-sys-color-surface-on)` by default
|
|
132
|
+
- Respects surface container colors
|
|
133
|
+
- Can be overridden with Tailwind classes
|
|
134
|
+
|
|
135
|
+
### CSS Custom Properties
|
|
136
|
+
The component uses Material Design 3 type scale tokens:
|
|
137
|
+
```css
|
|
138
|
+
--schmancy-sys-typescale-[type]-[token]-size
|
|
139
|
+
--schmancy-sys-typescale-[type]-[token]-line-height
|
|
140
|
+
--schmancy-sys-typescale-[type]-[token]-weight
|
|
141
|
+
--schmancy-sys-typescale-[type]-[token]-letter-spacing
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
## Common Use Cases
|
|
145
|
+
|
|
146
|
+
1. **Page Layout**
|
|
147
|
+
```html
|
|
148
|
+
<schmancy-typography type="display" token="md" class="mb-4 block">
|
|
149
|
+
Dashboard
|
|
150
|
+
</schmancy-typography>
|
|
151
|
+
<schmancy-typography type="body" token="lg" class="text-surface-onVariant block">
|
|
152
|
+
Welcome back! Here's your activity summary.
|
|
153
|
+
</schmancy-typography>
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
2. **Form Fields**
|
|
157
|
+
```html
|
|
158
|
+
<schmancy-typography type="label" token="md" class="mb-2 block">
|
|
159
|
+
Username
|
|
160
|
+
</schmancy-typography>
|
|
161
|
+
<schmancy-input placeholder="Enter username"></schmancy-input>
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
3. **Data Display**
|
|
165
|
+
```html
|
|
166
|
+
<schmancy-typography type="headline" token="md" class="text-primary block">
|
|
167
|
+
$1,234.56
|
|
168
|
+
</schmancy-typography>
|
|
169
|
+
<schmancy-typography type="label" token="sm" class="text-surface-onVariant">
|
|
170
|
+
Total Revenue
|
|
171
|
+
</schmancy-typography>
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
4. **List Items**
|
|
175
|
+
```html
|
|
176
|
+
<div class="space-y-4">
|
|
177
|
+
<div>
|
|
178
|
+
<schmancy-typography type="title" token="md" class="block">
|
|
179
|
+
Feature One
|
|
180
|
+
</schmancy-typography>
|
|
181
|
+
<schmancy-typography type="body" token="sm" class="text-surface-onVariant block">
|
|
182
|
+
Description of the first feature
|
|
183
|
+
</schmancy-typography>
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
```
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { concat as u, interval as g, startWith as y, filter as h, take as d, fromEvent as f, throttleTime as w, map as b, distinctUntilChanged as $, tap as c } from "rxjs";
|
|
2
2
|
import "lit/directives/class-map.js";
|
|
3
3
|
import "lit/directives/style-map.js";
|
|
4
|
-
import { $ as x } from "./litElement.mixin-
|
|
5
|
-
import "./tailwind.mixin-
|
|
4
|
+
import { $ as x } from "./litElement.mixin-DJxjDwEr.js";
|
|
5
|
+
import "./tailwind.mixin-DauVaFKt.js";
|
|
6
6
|
import { css as S, html as Z } from "lit";
|
|
7
7
|
import { property as a, queryAssignedNodes as v, query as m, customElement as A } from "lit/decorators.js";
|
|
8
8
|
var E = Object.defineProperty, O = Object.getOwnPropertyDescriptor, e = (r, s, n, i) => {
|
|
@@ -72,4 +72,4 @@ let t = class extends x(S`
|
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
74
|
e([a({ type: String })], t.prototype, "ease", 2), e([a({ type: Number })], t.prototype, "delay", 2), e([a({ type: Number })], t.prototype, "stagger", 2), e([a({ type: Number })], t.prototype, "duration", 2), e([a({ type: Array })], t.prototype, "scale", 2), e([a({ type: Array })], t.prototype, "opacity", 2), e([a({ type: Array })], t.prototype, "translateX", 2), e([a({ type: Array })], t.prototype, "translateY", 2), e([a({ type: Array })], t.prototype, "translateZ", 2), e([a({ type: Array })], t.prototype, "rotateZ", 2), e([a({ type: Boolean })], t.prototype, "resetOnScroll", 2), e([v()], t.prototype, "defaultSlot", 2), e([m(".letters")], t.prototype, "letters", 2), e([m(".ml7")], t.prototype, "ml7", 2), t = e([A("schmancy-animated-text")], t);
|
|
75
|
-
//# sourceMappingURL=animated-text-
|
|
75
|
+
//# sourceMappingURL=animated-text-C14QnAsk.js.map
|