@mhmo91/schmancy 0.4.76 → 0.4.77

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.
Files changed (338) hide show
  1. package/ai/chips.md +350 -128
  2. package/ai/typography.md +66 -8
  3. package/dist/ai/chips.md +350 -128
  4. package/dist/ai/typography.md +66 -8
  5. package/dist/{animated-text-CqpyC7Y0.js → animated-text-CTMDHCbw.js} +6 -6
  6. package/dist/{animated-text-CqpyC7Y0.js.map → animated-text-CTMDHCbw.js.map} +1 -1
  7. package/dist/{animated-text-DlRt6Q09.cjs → animated-text-yAIb26ld.cjs} +2 -2
  8. package/dist/{animated-text-DlRt6Q09.cjs.map → animated-text-yAIb26ld.cjs.map} +1 -1
  9. package/dist/animated-text.cjs +1 -1
  10. package/dist/animated-text.js +1 -1
  11. package/dist/area.cjs +1 -1
  12. package/dist/area.js +1 -1
  13. package/dist/{autocomplete-BOGG_9iL.cjs → autocomplete-BYiDoFG_.cjs} +2 -2
  14. package/dist/{autocomplete-BOGG_9iL.cjs.map → autocomplete-BYiDoFG_.cjs.map} +1 -1
  15. package/dist/{autocomplete-B-oKMH7m.js → autocomplete-m-nEVE3h.js} +6 -6
  16. package/dist/{autocomplete-B-oKMH7m.js.map → autocomplete-m-nEVE3h.js.map} +1 -1
  17. package/dist/autocomplete.cjs +1 -1
  18. package/dist/autocomplete.js +1 -1
  19. package/dist/{avatar-BnfAxIPw.cjs → avatar-DjCNlJz6.cjs} +2 -2
  20. package/dist/{avatar-BnfAxIPw.cjs.map → avatar-DjCNlJz6.cjs.map} +1 -1
  21. package/dist/{avatar-DXOVkMKj.js → avatar-nxVn--Oo.js} +48 -48
  22. package/dist/{avatar-DXOVkMKj.js.map → avatar-nxVn--Oo.js.map} +1 -1
  23. package/dist/badge.cjs +1 -1
  24. package/dist/badge.js +1 -1
  25. package/dist/{boat-DMKcZpZb.cjs → boat-_ZRYkQQZ.cjs} +2 -2
  26. package/dist/{boat-DMKcZpZb.cjs.map → boat-_ZRYkQQZ.cjs.map} +1 -1
  27. package/dist/{boat-CdR5Pqik.js → boat-sl3amQ3s.js} +2 -2
  28. package/dist/{boat-CdR5Pqik.js.map → boat-sl3amQ3s.js.map} +1 -1
  29. package/dist/boat.cjs +1 -1
  30. package/dist/boat.js +1 -1
  31. package/dist/busy.cjs +1 -1
  32. package/dist/busy.js +1 -1
  33. package/dist/button.cjs +1 -1
  34. package/dist/button.js +1 -1
  35. package/dist/card.cjs +1 -1
  36. package/dist/card.js +1 -1
  37. package/dist/checkbox-HdmRM2Vg.cjs +40 -0
  38. package/dist/checkbox-HdmRM2Vg.cjs.map +1 -0
  39. package/dist/checkbox-zTyMywpJ.js +527 -0
  40. package/dist/checkbox-zTyMywpJ.js.map +1 -0
  41. package/dist/checkbox.cjs +1 -1
  42. package/dist/checkbox.js +1 -1
  43. package/dist/chips-DAkLLDRf.js +577 -0
  44. package/dist/chips-DAkLLDRf.js.map +1 -0
  45. package/dist/chips-DDDu8hh9.cjs +324 -0
  46. package/dist/chips-DDDu8hh9.cjs.map +1 -0
  47. package/dist/chips.cjs +1 -1
  48. package/dist/chips.js +9 -1
  49. package/dist/code-highlight.cjs +1 -1
  50. package/dist/code-highlight.js +1 -1
  51. package/dist/{code-preview-CdCzzZTX.cjs → code-preview-BxO04VVx.cjs} +2 -2
  52. package/dist/{code-preview-CdCzzZTX.cjs.map → code-preview-BxO04VVx.cjs.map} +1 -1
  53. package/dist/{code-preview-CIXEd04f.js → code-preview-DH3koGm9.js} +7 -7
  54. package/dist/{code-preview-CIXEd04f.js.map → code-preview-DH3koGm9.js.map} +1 -1
  55. package/dist/components.cjs +1 -1
  56. package/dist/components.js +1 -1
  57. package/dist/content-drawer.cjs +1 -1
  58. package/dist/content-drawer.js +1 -1
  59. package/dist/{date-range-CvD9zwK9.cjs → date-range-TJXLY7Yx.cjs} +2 -2
  60. package/dist/{date-range-CvD9zwK9.cjs.map → date-range-TJXLY7Yx.cjs.map} +1 -1
  61. package/dist/{date-range-inline-CP_a_w01.cjs → date-range-inline-BSqXKZ3-.cjs} +2 -2
  62. package/dist/{date-range-inline-CP_a_w01.cjs.map → date-range-inline-BSqXKZ3-.cjs.map} +1 -1
  63. package/dist/{date-range-inline-5QP9av94.js → date-range-inline-CUb59TOM.js} +3 -3
  64. package/dist/{date-range-inline-5QP9av94.js.map → date-range-inline-CUb59TOM.js.map} +1 -1
  65. package/dist/date-range-inline.cjs +1 -1
  66. package/dist/date-range-inline.js +1 -1
  67. package/dist/{date-range-lJ_fPY4v.js → date-range-sfDUF7dG.js} +8 -8
  68. package/dist/{date-range-lJ_fPY4v.js.map → date-range-sfDUF7dG.js.map} +1 -1
  69. package/dist/date-range.cjs +1 -1
  70. package/dist/date-range.js +1 -1
  71. package/dist/{delay-BM1jk7XF.js → delay-CHpGPLLr.js} +2 -2
  72. package/dist/{delay-BM1jk7XF.js.map → delay-CHpGPLLr.js.map} +1 -1
  73. package/dist/{delay-CB0Wohe7.cjs → delay-CbXOIuAd.cjs} +2 -2
  74. package/dist/{delay-CB0Wohe7.cjs.map → delay-CbXOIuAd.cjs.map} +1 -1
  75. package/dist/delay.cjs +1 -1
  76. package/dist/delay.js +1 -1
  77. package/dist/{details-B9JrXrCO.js → details-Cf7zosIT.js} +5 -5
  78. package/dist/{details-B9JrXrCO.js.map → details-Cf7zosIT.js.map} +1 -1
  79. package/dist/{details-C22WoRWP.cjs → details-D6yYIQaE.cjs} +2 -2
  80. package/dist/{details-C22WoRWP.cjs.map → details-D6yYIQaE.cjs.map} +1 -1
  81. package/dist/details.cjs +1 -1
  82. package/dist/details.js +1 -1
  83. package/dist/{dialog-content-BHR9cUJ-.js → dialog-content-BabnHd-t.js} +10 -10
  84. package/dist/{dialog-content-BHR9cUJ-.js.map → dialog-content-BabnHd-t.js.map} +1 -1
  85. package/dist/{dialog-content-CpxWMPlh.cjs → dialog-content-BkK0XT-T.cjs} +2 -2
  86. package/dist/{dialog-content-CpxWMPlh.cjs.map → dialog-content-BkK0XT-T.cjs.map} +1 -1
  87. package/dist/dialog.cjs +1 -1
  88. package/dist/dialog.js +1 -1
  89. package/dist/{divider-DAg0oW4T.cjs → divider-CQ9PTETp.cjs} +2 -2
  90. package/dist/{divider-DAg0oW4T.cjs.map → divider-CQ9PTETp.cjs.map} +1 -1
  91. package/dist/{divider-Cz4g_Ept.js → divider-DyNmX5oP.js} +6 -6
  92. package/dist/{divider-Cz4g_Ept.js.map → divider-DyNmX5oP.js.map} +1 -1
  93. package/dist/divider.cjs +1 -1
  94. package/dist/divider.js +1 -1
  95. package/dist/{dropdown-content-Bto1swKT.js → dropdown-content-1g76XIVT.js} +6 -6
  96. package/dist/{dropdown-content-Bto1swKT.js.map → dropdown-content-1g76XIVT.js.map} +1 -1
  97. package/dist/{dropdown-content-QvR9QvT0.cjs → dropdown-content-DwiI2xi1.cjs} +3 -3
  98. package/dist/{dropdown-content-QvR9QvT0.cjs.map → dropdown-content-DwiI2xi1.cjs.map} +1 -1
  99. package/dist/dropdown.cjs +1 -1
  100. package/dist/dropdown.js +1 -1
  101. package/dist/{email-recipients-C9Yx0eML.js → email-recipients-BJsjr6H6.js} +5 -5
  102. package/dist/{email-recipients-C9Yx0eML.js.map → email-recipients-BJsjr6H6.js.map} +1 -1
  103. package/dist/{email-recipients-aEI5Hz1y.cjs → email-recipients-BiPVR8Hi.cjs} +2 -2
  104. package/dist/{email-recipients-aEI5Hz1y.cjs.map → email-recipients-BiPVR8Hi.cjs.map} +1 -1
  105. package/dist/extra.cjs +1 -1
  106. package/dist/extra.js +1 -1
  107. package/dist/{flex-8Zt64KfZ.js → flex-0kVSQTqk.js} +2 -2
  108. package/dist/{flex-8Zt64KfZ.js.map → flex-0kVSQTqk.js.map} +1 -1
  109. package/dist/{flex-BWZv2xik.cjs → flex-CYToPu65.cjs} +2 -2
  110. package/dist/{flex-BWZv2xik.cjs.map → flex-CYToPu65.cjs.map} +1 -1
  111. package/dist/{form-BH43OMu3.cjs → form-BTIOJob0.cjs} +2 -2
  112. package/dist/{form-BH43OMu3.cjs.map → form-BTIOJob0.cjs.map} +1 -1
  113. package/dist/{form-DeoSuBtM.js → form-CzSHXlhh.js} +7 -7
  114. package/dist/{form-DeoSuBtM.js.map → form-CzSHXlhh.js.map} +1 -1
  115. package/dist/form.cjs +1 -1
  116. package/dist/form.js +1 -1
  117. package/dist/{formField.mixin-Dta3OeAY.cjs → formField.mixin-BE8yyY7E.cjs} +2 -2
  118. package/dist/{formField.mixin-Dta3OeAY.cjs.map → formField.mixin-BE8yyY7E.cjs.map} +1 -1
  119. package/dist/{formField.mixin-BaPL0TYo.js → formField.mixin-D3pQ9LTE.js} +2 -2
  120. package/dist/{formField.mixin-BaPL0TYo.js.map → formField.mixin-D3pQ9LTE.js.map} +1 -1
  121. package/dist/icon-CB8zMasU.js +85 -0
  122. package/dist/icon-CB8zMasU.js.map +1 -0
  123. package/dist/icon-DxLigT_B.cjs +49 -0
  124. package/dist/icon-DxLigT_B.cjs.map +1 -0
  125. package/dist/{icon-button-D1GjgM8z.cjs → icon-button-B6sa3c9D.cjs} +2 -2
  126. package/dist/{icon-button-D1GjgM8z.cjs.map → icon-button-B6sa3c9D.cjs.map} +1 -1
  127. package/dist/{icon-button-OZM1xg0D.js → icon-button-n_1iOQGQ.js} +8 -8
  128. package/dist/{icon-button-OZM1xg0D.js.map → icon-button-n_1iOQGQ.js.map} +1 -1
  129. package/dist/icons.cjs +1 -1
  130. package/dist/icons.js +1 -1
  131. package/dist/index.cjs +1 -1
  132. package/dist/index.js +232 -226
  133. package/dist/{input-CkvjCut5.js → input-BAJnPVSv.js} +3 -3
  134. package/dist/{input-CkvjCut5.js.map → input-BAJnPVSv.js.map} +1 -1
  135. package/dist/{input-lUWuO40Q.cjs → input-FXEREBl6.cjs} +2 -2
  136. package/dist/{input-lUWuO40Q.cjs.map → input-FXEREBl6.cjs.map} +1 -1
  137. package/dist/input.cjs +1 -1
  138. package/dist/input.js +1 -1
  139. package/dist/layout.cjs +1 -1
  140. package/dist/layout.js +1 -1
  141. package/dist/{list-CIt75CB5.cjs → list-TbB9Rpwx.cjs} +2 -2
  142. package/dist/{list-CIt75CB5.cjs.map → list-TbB9Rpwx.cjs.map} +1 -1
  143. package/dist/{list-5rw56k73.js → list-ZeNhyo74.js} +7 -7
  144. package/dist/{list-5rw56k73.js.map → list-ZeNhyo74.js.map} +1 -1
  145. package/dist/list.cjs +1 -1
  146. package/dist/list.js +1 -1
  147. package/dist/{litElement.mixin-BZErt4H3.js → litElement.mixin-DVZiIRUa.js} +2 -2
  148. package/dist/{litElement.mixin-BZErt4H3.js.map → litElement.mixin-DVZiIRUa.js.map} +1 -1
  149. package/dist/{litElement.mixin-BLa7fWsS.cjs → litElement.mixin-N4BRrCeD.cjs} +2 -2
  150. package/dist/{litElement.mixin-BLa7fWsS.cjs.map → litElement.mixin-N4BRrCeD.cjs.map} +1 -1
  151. package/dist/mailbox.cjs +1 -1
  152. package/dist/mailbox.js +1 -1
  153. package/dist/{map-BY_0W4ER.cjs → map-DW4GhKaH.cjs} +2 -2
  154. package/dist/{map-BY_0W4ER.cjs.map → map-DW4GhKaH.cjs.map} +1 -1
  155. package/dist/{map-BrguuFGa.js → map-ck5dlHEW.js} +5 -5
  156. package/dist/{map-BrguuFGa.js.map → map-ck5dlHEW.js.map} +1 -1
  157. package/dist/map.cjs +1 -1
  158. package/dist/map.js +1 -1
  159. package/dist/{media-D6ZtvTjC.cjs → media-C9Qy2mql.cjs} +2 -2
  160. package/dist/{media-D6ZtvTjC.cjs.map → media-C9Qy2mql.cjs.map} +1 -1
  161. package/dist/{media-CLz2t5zS.js → media-CunGFwol.js} +11 -11
  162. package/dist/{media-CLz2t5zS.js.map → media-CunGFwol.js.map} +1 -1
  163. package/dist/{menu-DWD_IywE.cjs → menu-BkTWAEeh.cjs} +3 -3
  164. package/dist/{menu-DWD_IywE.cjs.map → menu-BkTWAEeh.cjs.map} +1 -1
  165. package/dist/{menu-CgDSJpDV.js → menu-Cja83sLd.js} +7 -7
  166. package/dist/{menu-CgDSJpDV.js.map → menu-Cja83sLd.js.map} +1 -1
  167. package/dist/menu.cjs +1 -1
  168. package/dist/menu.js +1 -1
  169. package/dist/mixins/index.ts +5 -5
  170. package/dist/nav-drawer.cjs +1 -1
  171. package/dist/nav-drawer.js +1 -1
  172. package/dist/{notification-service-A3reAJZQ.cjs → notification-service-BB7pBlG6.cjs} +2 -2
  173. package/dist/{notification-service-A3reAJZQ.cjs.map → notification-service-BB7pBlG6.cjs.map} +1 -1
  174. package/dist/{notification-service-1HGYK2tM.js → notification-service-CKHPaK_C.js} +9 -9
  175. package/dist/{notification-service-1HGYK2tM.js.map → notification-service-CKHPaK_C.js.map} +1 -1
  176. package/dist/notification.cjs +1 -1
  177. package/dist/notification.js +2 -2
  178. package/dist/{notify-CVbsMt75.cjs → notify-CxMMHOyT.cjs} +2 -2
  179. package/dist/{notify-CVbsMt75.cjs.map → notify-CxMMHOyT.cjs.map} +1 -1
  180. package/dist/{notify-Bt-KiLeP.js → notify-DNNTtvHN.js} +2 -2
  181. package/dist/{notify-Bt-KiLeP.js.map → notify-DNNTtvHN.js.map} +1 -1
  182. package/dist/{option-Cd0TxMBE.cjs → option-BWzNpqSh.cjs} +2 -2
  183. package/dist/{option-Cd0TxMBE.cjs.map → option-BWzNpqSh.cjs.map} +1 -1
  184. package/dist/{option-DvSZ0D0R.js → option-BsvqJpe9.js} +5 -5
  185. package/dist/{option-DvSZ0D0R.js.map → option-BsvqJpe9.js.map} +1 -1
  186. package/dist/option.cjs +1 -1
  187. package/dist/option.js +1 -1
  188. package/dist/{payment-card-form-C6wrIT_X.js → payment-card-form-C0Rck0tO.js} +6 -6
  189. package/dist/{payment-card-form-C6wrIT_X.js.map → payment-card-form-C0Rck0tO.js.map} +1 -1
  190. package/dist/{payment-card-form-CJkWQ3j4.cjs → payment-card-form-Q8jzlprZ.cjs} +2 -2
  191. package/dist/{payment-card-form-CJkWQ3j4.cjs.map → payment-card-form-Q8jzlprZ.cjs.map} +1 -1
  192. package/dist/{progress-pOL6OHwT.js → progress-CG2bQVP8.js} +5 -5
  193. package/dist/{progress-pOL6OHwT.js.map → progress-CG2bQVP8.js.map} +1 -1
  194. package/dist/{progress-D0iWLtHk.cjs → progress-CtoQKQub.cjs} +2 -2
  195. package/dist/{progress-D0iWLtHk.cjs.map → progress-CtoQKQub.cjs.map} +1 -1
  196. package/dist/progress.cjs +1 -1
  197. package/dist/progress.js +1 -1
  198. package/dist/{radio-button-C-t6JJsj.js → radio-button-BSUgktLD.js} +5 -5
  199. package/dist/{radio-button-C-t6JJsj.js.map → radio-button-BSUgktLD.js.map} +1 -1
  200. package/dist/{radio-button-CSV7-ftB.cjs → radio-button-DnvjanKu.cjs} +3 -3
  201. package/dist/{radio-button-CSV7-ftB.cjs.map → radio-button-DnvjanKu.cjs.map} +1 -1
  202. package/dist/radio-group.cjs +1 -1
  203. package/dist/radio-group.js +1 -1
  204. package/dist/{route.component-HoM7wksc.js → route.component-BJEghY9L.js} +8 -8
  205. package/dist/{route.component-HoM7wksc.js.map → route.component-BJEghY9L.js.map} +1 -1
  206. package/dist/{route.component-BUvd0ztC.cjs → route.component-YXwO_9vn.cjs} +2 -2
  207. package/dist/{route.component-BUvd0ztC.cjs.map → route.component-YXwO_9vn.cjs.map} +1 -1
  208. package/dist/{schmancy-steps-container-CgzGlBCk.cjs → schmancy-steps-container-BJdjcjfb.cjs} +2 -2
  209. package/dist/{schmancy-steps-container-CgzGlBCk.cjs.map → schmancy-steps-container-BJdjcjfb.cjs.map} +1 -1
  210. package/dist/{schmancy-steps-container-AIJ2_ZSN.js → schmancy-steps-container-DLoPUodd.js} +2 -2
  211. package/dist/{schmancy-steps-container-AIJ2_ZSN.js.map → schmancy-steps-container-DLoPUodd.js.map} +1 -1
  212. package/dist/{select-CwJ4OuVo.js → select-DagDNtvt.js} +6 -6
  213. package/dist/{select-CwJ4OuVo.js.map → select-DagDNtvt.js.map} +1 -1
  214. package/dist/{select-GBaqnfMC.cjs → select-t2FXt_pa.cjs} +2 -2
  215. package/dist/{select-GBaqnfMC.cjs.map → select-t2FXt_pa.cjs.map} +1 -1
  216. package/dist/select.cjs +1 -1
  217. package/dist/select.js +1 -1
  218. package/dist/{sheet-fT1oxKgG.js → sheet-CRVVJZ0R.js} +6 -6
  219. package/dist/{sheet-fT1oxKgG.js.map → sheet-CRVVJZ0R.js.map} +1 -1
  220. package/dist/{sheet-CXd47YKG.cjs → sheet-mPwoKv2g.cjs} +2 -2
  221. package/dist/{sheet-CXd47YKG.cjs.map → sheet-mPwoKv2g.cjs.map} +1 -1
  222. package/dist/sheet.cjs +1 -1
  223. package/dist/sheet.js +1 -1
  224. package/dist/{slider-CYsku-3b.js → slider-B3F6JkFf.js} +8 -8
  225. package/dist/{slider-CYsku-3b.js.map → slider-B3F6JkFf.js.map} +1 -1
  226. package/dist/{slider-DxSzFbQe.cjs → slider-pBPJS7W9.cjs} +2 -2
  227. package/dist/{slider-DxSzFbQe.cjs.map → slider-pBPJS7W9.cjs.map} +1 -1
  228. package/dist/slider.cjs +1 -1
  229. package/dist/slider.js +1 -1
  230. package/dist/{spinner-DrG_NQpx.cjs → spinner-BRpfKS5O.cjs} +40 -11
  231. package/dist/spinner-BRpfKS5O.cjs.map +1 -0
  232. package/dist/{spinner-CrK1E8LD.js → spinner-DA_-O-xo.js} +51 -22
  233. package/dist/spinner-DA_-O-xo.js.map +1 -0
  234. package/dist/steps.cjs +1 -1
  235. package/dist/steps.js +1 -1
  236. package/dist/{surface-C64YekDh.js → surface-Dwl538cH.js} +2 -2
  237. package/dist/{surface-C64YekDh.js.map → surface-Dwl538cH.js.map} +1 -1
  238. package/dist/{surface-DVNi8l6T.cjs → surface-diIElnDd.cjs} +2 -2
  239. package/dist/{surface-DVNi8l6T.cjs.map → surface-diIElnDd.cjs.map} +1 -1
  240. package/dist/surface.cjs +1 -1
  241. package/dist/surface.js +1 -1
  242. package/dist/{table-DmrYZ1hR.js → table-BgKKtRLd.js} +2 -2
  243. package/dist/{table-DmrYZ1hR.js.map → table-BgKKtRLd.js.map} +1 -1
  244. package/dist/{table-B3WKGYlu.cjs → table-Bov9UEcb.cjs} +2 -2
  245. package/dist/{table-B3WKGYlu.cjs.map → table-Bov9UEcb.cjs.map} +1 -1
  246. package/dist/table.cjs +1 -1
  247. package/dist/table.js +1 -1
  248. package/dist/{tabs-compatibility-Uetjk25R.js → tabs-compatibility-CPvOBfor.js} +7 -7
  249. package/dist/{tabs-compatibility-Uetjk25R.js.map → tabs-compatibility-CPvOBfor.js.map} +1 -1
  250. package/dist/{tabs-compatibility-Ds7SEeST.cjs → tabs-compatibility-D5yIfQ_k.cjs} +2 -2
  251. package/dist/{tabs-compatibility-Ds7SEeST.cjs.map → tabs-compatibility-D5yIfQ_k.cjs.map} +1 -1
  252. package/dist/tabs.cjs +1 -1
  253. package/dist/tabs.js +1 -1
  254. package/dist/tailwind.mixin-2zZHkoOm.cjs +2 -0
  255. package/dist/{tailwind.mixin-df9KoZ9x.cjs.map → tailwind.mixin-2zZHkoOm.cjs.map} +1 -1
  256. package/dist/tailwind.mixin-DbE6WE_l.js +43 -0
  257. package/dist/{tailwind.mixin-B6ADeWOc.js.map → tailwind.mixin-DbE6WE_l.js.map} +1 -1
  258. package/dist/teleport.cjs +1 -1
  259. package/dist/teleport.js +1 -1
  260. package/dist/{textarea-B1Tng7F9.js → textarea-CNEv2Aoz.js} +2 -2
  261. package/dist/{textarea-B1Tng7F9.js.map → textarea-CNEv2Aoz.js.map} +1 -1
  262. package/dist/{textarea-QKNA3oAQ.cjs → textarea-CswyRsoR.cjs} +2 -2
  263. package/dist/{textarea-QKNA3oAQ.cjs.map → textarea-CswyRsoR.cjs.map} +1 -1
  264. package/dist/textarea.cjs +1 -1
  265. package/dist/textarea.js +1 -1
  266. package/dist/{theme-button-CYEhS3ub.js → theme-button-CRcXeIw5.js} +5 -5
  267. package/dist/{theme-button-CYEhS3ub.js.map → theme-button-CRcXeIw5.js.map} +1 -1
  268. package/dist/{theme-button-CoCFS3Rx.cjs → theme-button-DPmEDF3P.cjs} +2 -2
  269. package/dist/{theme-button-CoCFS3Rx.cjs.map → theme-button-DPmEDF3P.cjs.map} +1 -1
  270. package/dist/theme-button.cjs +1 -1
  271. package/dist/theme-button.js +1 -1
  272. package/dist/theme.cjs +1 -1
  273. package/dist/{theme.component-C12jLwtB.cjs → theme.component-CamQBQHp.cjs} +2 -2
  274. package/dist/{theme.component-C12jLwtB.cjs.map → theme.component-CamQBQHp.cjs.map} +1 -1
  275. package/dist/{theme.component-Df731_fn.js → theme.component-v5kO9gkQ.js} +30 -30
  276. package/dist/{theme.component-Df731_fn.js.map → theme.component-v5kO9gkQ.js.map} +1 -1
  277. package/dist/theme.js +1 -1
  278. package/dist/{timezone-B7bscKFN.cjs → timezone-Bk4IctLE.cjs} +2 -2
  279. package/dist/{timezone-B7bscKFN.cjs.map → timezone-Bk4IctLE.cjs.map} +1 -1
  280. package/dist/{timezone-CdtCVjMF.js → timezone-Yo9Sdd5R.js} +8 -8
  281. package/dist/{timezone-CdtCVjMF.js.map → timezone-Yo9Sdd5R.js.map} +1 -1
  282. package/dist/{tooltip-CjoNCIvr.cjs → tooltip-B-yn_OSS.cjs} +2 -2
  283. package/dist/{tooltip-CjoNCIvr.cjs.map → tooltip-B-yn_OSS.cjs.map} +1 -1
  284. package/dist/{tooltip-JVkexTyf.js → tooltip-ZJEAlZUQ.js} +2 -2
  285. package/dist/{tooltip-JVkexTyf.js.map → tooltip-ZJEAlZUQ.js.map} +1 -1
  286. package/dist/tooltip.cjs +1 -1
  287. package/dist/tooltip.js +1 -1
  288. package/dist/{tree-CaqiNcJJ.js → tree-BV-2ElOU.js} +5 -5
  289. package/dist/{tree-CaqiNcJJ.js.map → tree-BV-2ElOU.js.map} +1 -1
  290. package/dist/{tree-Be48ABq4.cjs → tree-CxBWy_Vp.cjs} +2 -2
  291. package/dist/{tree-Be48ABq4.cjs.map → tree-CxBWy_Vp.cjs.map} +1 -1
  292. package/dist/tree.cjs +1 -1
  293. package/dist/tree.js +1 -1
  294. package/dist/{typewriter-CoMrmwFJ.js → typewriter-Bsn8eoJW.js} +7 -7
  295. package/dist/{typewriter-CoMrmwFJ.js.map → typewriter-Bsn8eoJW.js.map} +1 -1
  296. package/dist/{typewriter-DCYDScE9.cjs → typewriter-C-mf2RVj.cjs} +2 -2
  297. package/dist/{typewriter-DCYDScE9.cjs.map → typewriter-C-mf2RVj.cjs.map} +1 -1
  298. package/dist/typewriter.cjs +1 -1
  299. package/dist/typewriter.js +1 -1
  300. package/dist/{typography-DkJagEoF.js → typography-B5Y21osS.js} +2 -2
  301. package/dist/{typography-DkJagEoF.js.map → typography-B5Y21osS.js.map} +1 -1
  302. package/dist/{typography-BQg6J2hD.cjs → typography-pyk5TJHO.cjs} +2 -2
  303. package/dist/{typography-BQg6J2hD.cjs.map → typography-pyk5TJHO.cjs.map} +1 -1
  304. package/dist/typography.cjs +1 -1
  305. package/dist/typography.js +1 -1
  306. package/package.json +252 -1
  307. package/types/mixins/index.d.ts +1 -1
  308. package/types/src/area/route.component.d.ts +9 -3
  309. package/types/src/busy/spinner.d.ts +1 -1
  310. package/types/src/checkbox/checkbox.d.ts +5 -4
  311. package/types/src/chips/assist-chip.d.ts +46 -0
  312. package/types/src/chips/chip.d.ts +3 -32
  313. package/types/src/chips/chips.d.ts +26 -11
  314. package/types/src/chips/filter-chip.d.ts +73 -0
  315. package/types/src/chips/index.d.ts +11 -2
  316. package/types/src/chips/input-chip.d.ts +75 -0
  317. package/types/src/chips/suggestion-chip.d.ts +51 -0
  318. package/types/src/icons/icon.d.ts +32 -5
  319. package/dist/checkbox-CVwU3M4h.js +0 -243
  320. package/dist/checkbox-CVwU3M4h.js.map +0 -1
  321. package/dist/checkbox-DP_zX786.cjs +0 -38
  322. package/dist/checkbox-DP_zX786.cjs.map +0 -1
  323. package/dist/chips-BuMUH3zA.cjs +0 -87
  324. package/dist/chips-BuMUH3zA.cjs.map +0 -1
  325. package/dist/chips-DcCUwYBu.js +0 -340
  326. package/dist/chips-DcCUwYBu.js.map +0 -1
  327. package/dist/icon-B0JNrBfq.js +0 -55
  328. package/dist/icon-B0JNrBfq.js.map +0 -1
  329. package/dist/icon-DY2pBLIU.cjs +0 -30
  330. package/dist/icon-DY2pBLIU.cjs.map +0 -1
  331. package/dist/redispatch-event-BLom7yp4.js +0 -293
  332. package/dist/redispatch-event-BLom7yp4.js.map +0 -1
  333. package/dist/redispatch-event-DHcobAl6.cjs +0 -4
  334. package/dist/redispatch-event-DHcobAl6.cjs.map +0 -1
  335. package/dist/spinner-CrK1E8LD.js.map +0 -1
  336. package/dist/spinner-DrG_NQpx.cjs.map +0 -1
  337. package/dist/tailwind.mixin-B6ADeWOc.js +0 -43
  338. package/dist/tailwind.mixin-df9KoZ9x.cjs +0 -2
@@ -0,0 +1,527 @@
1
+ import { _ as n } from "./tslib.es6-ujVQHAQ4.js";
2
+ import { property as c, customElement as I, state as y, query as G } from "lit/decorators.js";
3
+ import { isServer as f, LitElement as x, css as N, html as k, nothing as E } from "lit";
4
+ import { classMap as H } from "lit/directives/class-map.js";
5
+ import "rxjs";
6
+ import "lit/directives/style-map.js";
7
+ import { T as J } from "./tailwind.mixin-DbE6WE_l.js";
8
+ import { when as Q } from "lit/directives/when.js";
9
+ const Y = Symbol("attachableController");
10
+ let K;
11
+ f || (K = new MutationObserver((o) => {
12
+ for (const e of o) e.target[Y]?.hostConnected();
13
+ }));
14
+ class W {
15
+ get htmlFor() {
16
+ return this.host.getAttribute("for");
17
+ }
18
+ set htmlFor(e) {
19
+ e === null ? this.host.removeAttribute("for") : this.host.setAttribute("for", e);
20
+ }
21
+ get control() {
22
+ return this.host.hasAttribute("for") ? this.htmlFor && this.host.isConnected ? this.host.getRootNode().querySelector(`#${this.htmlFor}`) : null : this.currentControl || this.host.parentElement;
23
+ }
24
+ set control(e) {
25
+ e ? this.attach(e) : this.detach();
26
+ }
27
+ constructor(e, t) {
28
+ this.host = e, this.onControlChange = t, this.currentControl = null, e.addController(this), e[Y] = this, K?.observe(e, { attributeFilter: ["for"] });
29
+ }
30
+ attach(e) {
31
+ e !== this.currentControl && (this.setCurrentControl(e), this.host.removeAttribute("for"));
32
+ }
33
+ detach() {
34
+ this.setCurrentControl(null), this.host.setAttribute("for", "");
35
+ }
36
+ hostConnected() {
37
+ this.setCurrentControl(this.control);
38
+ }
39
+ hostDisconnected() {
40
+ this.setCurrentControl(null);
41
+ }
42
+ setCurrentControl(e) {
43
+ this.onControlChange(this.currentControl, e), this.currentControl = e;
44
+ }
45
+ }
46
+ const Z = ["focusin", "focusout", "pointerdown"];
47
+ class $ extends x {
48
+ constructor() {
49
+ super(...arguments), this.visible = !1, this.inward = !1, this.attachableController = new W(this, this.onControlChange.bind(this));
50
+ }
51
+ get htmlFor() {
52
+ return this.attachableController.htmlFor;
53
+ }
54
+ set htmlFor(e) {
55
+ this.attachableController.htmlFor = e;
56
+ }
57
+ get control() {
58
+ return this.attachableController.control;
59
+ }
60
+ set control(e) {
61
+ this.attachableController.control = e;
62
+ }
63
+ attach(e) {
64
+ this.attachableController.attach(e);
65
+ }
66
+ detach() {
67
+ this.attachableController.detach();
68
+ }
69
+ connectedCallback() {
70
+ super.connectedCallback(), this.setAttribute("aria-hidden", "true");
71
+ }
72
+ handleEvent(e) {
73
+ if (!e[U]) {
74
+ switch (e.type) {
75
+ default:
76
+ return;
77
+ case "focusin":
78
+ this.visible = this.control?.matches(":focus-visible") ?? !1;
79
+ break;
80
+ case "focusout":
81
+ case "pointerdown":
82
+ this.visible = !1;
83
+ }
84
+ e[U] = !0;
85
+ }
86
+ }
87
+ onControlChange(e, t) {
88
+ if (!f) for (const r of Z) e?.removeEventListener(r, this), t?.addEventListener(r, this);
89
+ }
90
+ update(e) {
91
+ e.has("visible") && this.dispatchEvent(new Event("visibility-changed")), super.update(e);
92
+ }
93
+ }
94
+ n([c({ type: Boolean, reflect: !0 })], $.prototype, "visible", void 0), n([c({ type: Boolean, reflect: !0 })], $.prototype, "inward", void 0);
95
+ const U = Symbol("handledByFocusRing"), ee = N`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}
96
+ `;
97
+ let P = class extends $ {
98
+ };
99
+ P.styles = [ee], P = n([I("md-focus-ring")], P);
100
+ const te = "cubic-bezier(0.2, 0, 0, 1)";
101
+ var d;
102
+ (function(o) {
103
+ o[o.INACTIVE = 0] = "INACTIVE", o[o.TOUCH_DELAY = 1] = "TOUCH_DELAY", o[o.HOLDING = 2] = "HOLDING", o[o.WAITING_FOR_CLICK = 3] = "WAITING_FOR_CLICK";
104
+ })(d || (d = {}));
105
+ const re = ["click", "contextmenu", "pointercancel", "pointerdown", "pointerenter", "pointerleave", "pointerup"], ie = f ? null : window.matchMedia("(forced-colors: active)");
106
+ class g extends x {
107
+ constructor() {
108
+ super(...arguments), this.disabled = !1, this.hovered = !1, this.pressed = !1, this.rippleSize = "", this.rippleScale = "", this.initialSize = 0, this.state = d.INACTIVE, this.checkBoundsAfterContextMenu = !1, this.attachableController = new W(this, this.onControlChange.bind(this));
109
+ }
110
+ get htmlFor() {
111
+ return this.attachableController.htmlFor;
112
+ }
113
+ set htmlFor(e) {
114
+ this.attachableController.htmlFor = e;
115
+ }
116
+ get control() {
117
+ return this.attachableController.control;
118
+ }
119
+ set control(e) {
120
+ this.attachableController.control = e;
121
+ }
122
+ attach(e) {
123
+ this.attachableController.attach(e);
124
+ }
125
+ detach() {
126
+ this.attachableController.detach();
127
+ }
128
+ connectedCallback() {
129
+ super.connectedCallback(), this.setAttribute("aria-hidden", "true");
130
+ }
131
+ render() {
132
+ const e = { hovered: this.hovered, pressed: this.pressed };
133
+ return k`<div class="surface ${H(e)}"></div>`;
134
+ }
135
+ update(e) {
136
+ e.has("disabled") && this.disabled && (this.hovered = !1, this.pressed = !1), super.update(e);
137
+ }
138
+ handlePointerenter(e) {
139
+ this.shouldReactToEvent(e) && (this.hovered = !0);
140
+ }
141
+ handlePointerleave(e) {
142
+ this.shouldReactToEvent(e) && (this.hovered = !1, this.state !== d.INACTIVE && this.endPressAnimation());
143
+ }
144
+ handlePointerup(e) {
145
+ if (this.shouldReactToEvent(e)) {
146
+ if (this.state !== d.HOLDING) return this.state === d.TOUCH_DELAY ? (this.state = d.WAITING_FOR_CLICK, void this.startPressAnimation(this.rippleStartEvent)) : void 0;
147
+ this.state = d.WAITING_FOR_CLICK;
148
+ }
149
+ }
150
+ async handlePointerdown(e) {
151
+ if (this.shouldReactToEvent(e)) {
152
+ if (this.rippleStartEvent = e, !this.isTouch(e)) return this.state = d.WAITING_FOR_CLICK, void this.startPressAnimation(e);
153
+ this.checkBoundsAfterContextMenu && !this.inBounds(e) || (this.checkBoundsAfterContextMenu = !1, this.state = d.TOUCH_DELAY, await new Promise((t) => {
154
+ setTimeout(t, 150);
155
+ }), this.state === d.TOUCH_DELAY && (this.state = d.HOLDING, this.startPressAnimation(e)));
156
+ }
157
+ }
158
+ handleClick() {
159
+ this.disabled || (this.state !== d.WAITING_FOR_CLICK ? this.state === d.INACTIVE && (this.startPressAnimation(), this.endPressAnimation()) : this.endPressAnimation());
160
+ }
161
+ handlePointercancel(e) {
162
+ this.shouldReactToEvent(e) && this.endPressAnimation();
163
+ }
164
+ handleContextmenu() {
165
+ this.disabled || (this.checkBoundsAfterContextMenu = !0, this.endPressAnimation());
166
+ }
167
+ determineRippleSize() {
168
+ const { height: e, width: t } = this.getBoundingClientRect(), r = Math.max(e, t), i = Math.max(0.35 * r, 75), a = Math.floor(0.2 * r), s = Math.sqrt(t ** 2 + e ** 2) + 10;
169
+ this.initialSize = a, this.rippleScale = "" + (s + i) / a, this.rippleSize = `${a}px`;
170
+ }
171
+ getNormalizedPointerEventCoords(e) {
172
+ const { scrollX: t, scrollY: r } = window, { left: i, top: a } = this.getBoundingClientRect(), s = t + i, l = r + a, { pageX: b, pageY: w } = e;
173
+ return { x: b - s, y: w - l };
174
+ }
175
+ getTranslationCoordinates(e) {
176
+ const { height: t, width: r } = this.getBoundingClientRect(), i = { x: (r - this.initialSize) / 2, y: (t - this.initialSize) / 2 };
177
+ let a;
178
+ return a = e instanceof PointerEvent ? this.getNormalizedPointerEventCoords(e) : { x: r / 2, y: t / 2 }, a = { x: a.x - this.initialSize / 2, y: a.y - this.initialSize / 2 }, { startPoint: a, endPoint: i };
179
+ }
180
+ startPressAnimation(e) {
181
+ if (!this.mdRoot) return;
182
+ this.pressed = !0, this.growAnimation?.cancel(), this.determineRippleSize();
183
+ const { startPoint: t, endPoint: r } = this.getTranslationCoordinates(e), i = `${t.x}px, ${t.y}px`, a = `${r.x}px, ${r.y}px`;
184
+ this.growAnimation = this.mdRoot.animate({ top: [0, 0], left: [0, 0], height: [this.rippleSize, this.rippleSize], width: [this.rippleSize, this.rippleSize], transform: [`translate(${i}) scale(1)`, `translate(${a}) scale(${this.rippleScale})`] }, { pseudoElement: "::after", duration: 450, easing: te, fill: "forwards" });
185
+ }
186
+ async endPressAnimation() {
187
+ this.rippleStartEvent = void 0, this.state = d.INACTIVE;
188
+ const e = this.growAnimation;
189
+ let t = 1 / 0;
190
+ typeof e?.currentTime == "number" ? t = e.currentTime : e?.currentTime && (t = e.currentTime.to("ms").value), t >= 225 ? this.pressed = !1 : (await new Promise((r) => {
191
+ setTimeout(r, 225 - t);
192
+ }), this.growAnimation === e && (this.pressed = !1));
193
+ }
194
+ shouldReactToEvent(e) {
195
+ if (this.disabled || !e.isPrimary || this.rippleStartEvent && this.rippleStartEvent.pointerId !== e.pointerId) return !1;
196
+ if (e.type === "pointerenter" || e.type === "pointerleave") return !this.isTouch(e);
197
+ const t = e.buttons === 1;
198
+ return this.isTouch(e) || t;
199
+ }
200
+ inBounds({ x: e, y: t }) {
201
+ const { top: r, left: i, bottom: a, right: s } = this.getBoundingClientRect();
202
+ return e >= i && e <= s && t >= r && t <= a;
203
+ }
204
+ isTouch({ pointerType: e }) {
205
+ return e === "touch";
206
+ }
207
+ async handleEvent(e) {
208
+ if (!ie?.matches) switch (e.type) {
209
+ case "click":
210
+ this.handleClick();
211
+ break;
212
+ case "contextmenu":
213
+ this.handleContextmenu();
214
+ break;
215
+ case "pointercancel":
216
+ this.handlePointercancel(e);
217
+ break;
218
+ case "pointerdown":
219
+ await this.handlePointerdown(e);
220
+ break;
221
+ case "pointerenter":
222
+ this.handlePointerenter(e);
223
+ break;
224
+ case "pointerleave":
225
+ this.handlePointerleave(e);
226
+ break;
227
+ case "pointerup":
228
+ this.handlePointerup(e);
229
+ }
230
+ }
231
+ onControlChange(e, t) {
232
+ if (!f) for (const r of re) e?.removeEventListener(r, this), t?.addEventListener(r, this);
233
+ }
234
+ }
235
+ n([c({ type: Boolean, reflect: !0 })], g.prototype, "disabled", void 0), n([y()], g.prototype, "hovered", void 0), n([y()], g.prototype, "pressed", void 0), n([G(".surface")], g.prototype, "mdRoot", void 0);
236
+ const oe = N`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms}
237
+ `;
238
+ let T = class extends g {
239
+ };
240
+ T.styles = [oe], T = n([I("md-ripple")], T);
241
+ const j = ["role", "ariaAtomic", "ariaAutoComplete", "ariaBusy", "ariaChecked", "ariaColCount", "ariaColIndex", "ariaColSpan", "ariaCurrent", "ariaDisabled", "ariaExpanded", "ariaHasPopup", "ariaHidden", "ariaInvalid", "ariaKeyShortcuts", "ariaLabel", "ariaLevel", "ariaLive", "ariaModal", "ariaMultiLine", "ariaMultiSelectable", "ariaOrientation", "ariaPlaceholder", "ariaPosInSet", "ariaPressed", "ariaReadOnly", "ariaRequired", "ariaRoleDescription", "ariaRowCount", "ariaRowIndex", "ariaRowSpan", "ariaSelected", "ariaSetSize", "ariaSort", "ariaValueMax", "ariaValueMin", "ariaValueNow", "ariaValueText"], ae = j.map(X);
242
+ function z(o) {
243
+ return ae.includes(o);
244
+ }
245
+ function X(o) {
246
+ return o.replace("aria", "aria-").replace(/Elements?/g, "").toLowerCase();
247
+ }
248
+ const C = Symbol("privateIgnoreAttributeChangesFor");
249
+ function R(o) {
250
+ return `data-${o}`;
251
+ }
252
+ function M(o) {
253
+ return o.replace(/-\w/, (e) => e[1].toUpperCase());
254
+ }
255
+ function se(o) {
256
+ return o.currentTarget === o.target && o.composedPath()[0] === o.target && !o.target.disabled && !function(e) {
257
+ const t = V;
258
+ return t && (e.preventDefault(), e.stopImmediatePropagation()), async function() {
259
+ V = !0, await null, V = !1;
260
+ }(), t;
261
+ }(o);
262
+ }
263
+ let V = !1;
264
+ const u = Symbol("internals"), L = Symbol("privateInternals"), F = Symbol("createValidator"), B = Symbol("getValidityAnchor"), q = Symbol("privateValidator"), m = Symbol("privateSyncValidity"), A = Symbol("privateCustomValidationMessage"), S = Symbol("getFormValue"), D = Symbol("getFormState");
265
+ class ne {
266
+ constructor(e) {
267
+ this.getCurrentState = e, this.currentValidity = { validity: {}, validationMessage: "" };
268
+ }
269
+ getValidity() {
270
+ const e = this.getCurrentState();
271
+ if (!(!this.prevState || !this.equals(this.prevState, e))) return this.currentValidity;
272
+ const { validity: t, validationMessage: r } = this.computeValidity(e);
273
+ return this.prevState = this.copy(e), this.currentValidity = { validationMessage: r, validity: { badInput: t.badInput, customError: t.customError, patternMismatch: t.patternMismatch, rangeOverflow: t.rangeOverflow, rangeUnderflow: t.rangeUnderflow, stepMismatch: t.stepMismatch, tooLong: t.tooLong, tooShort: t.tooShort, typeMismatch: t.typeMismatch, valueMissing: t.valueMissing } }, this.currentValidity;
274
+ }
275
+ }
276
+ class ce extends ne {
277
+ computeValidity(e) {
278
+ return this.checkboxControl || (this.checkboxControl = document.createElement("input"), this.checkboxControl.type = "checkbox"), this.checkboxControl.checked = e.checked, this.checkboxControl.required = e.required, { validity: this.checkboxControl.validity, validationMessage: this.checkboxControl.validationMessage };
279
+ }
280
+ equals(e, t) {
281
+ return e.checked === t.checked && e.required === t.required;
282
+ }
283
+ copy({ checked: e, required: t }) {
284
+ return { checked: e, required: t };
285
+ }
286
+ }
287
+ const de = function(o) {
288
+ var e;
289
+ if (f) return o;
290
+ class t extends o {
291
+ constructor() {
292
+ super(...arguments), this[e] = /* @__PURE__ */ new Set();
293
+ }
294
+ attributeChangedCallback(i, a, s) {
295
+ if (!z(i)) return void super.attributeChangedCallback(i, a, s);
296
+ if (this[C].has(i)) return;
297
+ this[C].add(i), this.removeAttribute(i), this[C].delete(i);
298
+ const l = M(i);
299
+ s === null ? delete this.dataset[l] : this.dataset[l] = s, this.requestUpdate(M(i), a);
300
+ }
301
+ getAttribute(i) {
302
+ return z(i) ? super.getAttribute(R(i)) : super.getAttribute(i);
303
+ }
304
+ removeAttribute(i) {
305
+ super.removeAttribute(i), z(i) && (super.removeAttribute(R(i)), this.requestUpdate());
306
+ }
307
+ }
308
+ return e = C, function(r) {
309
+ for (const i of j) {
310
+ const a = X(i), s = R(a), l = M(a);
311
+ r.createProperty(i, { attribute: a, noAccessor: !0 }), r.createProperty(Symbol(s), { attribute: s, noAccessor: !0 }), Object.defineProperty(r.prototype, i, { configurable: !0, enumerable: !0, get() {
312
+ return this.dataset[l] ?? null;
313
+ }, set(b) {
314
+ const w = this.dataset[l] ?? null;
315
+ b !== w && (b === null ? delete this.dataset[l] : this.dataset[l] = b, this.requestUpdate(i, w));
316
+ } });
317
+ }
318
+ }(t), t;
319
+ }(function(o) {
320
+ var e;
321
+ class t extends o {
322
+ constructor() {
323
+ super(...arguments), this[e] = "";
324
+ }
325
+ get validity() {
326
+ return this[m](), this[u].validity;
327
+ }
328
+ get validationMessage() {
329
+ return this[m](), this[u].validationMessage;
330
+ }
331
+ get willValidate() {
332
+ return this[m](), this[u].willValidate;
333
+ }
334
+ checkValidity() {
335
+ return this[m](), this[u].checkValidity();
336
+ }
337
+ reportValidity() {
338
+ return this[m](), this[u].reportValidity();
339
+ }
340
+ setCustomValidity(i) {
341
+ this[A] = i, this[m]();
342
+ }
343
+ requestUpdate(i, a, s) {
344
+ super.requestUpdate(i, a, s), this[m]();
345
+ }
346
+ firstUpdated(i) {
347
+ super.firstUpdated(i), this[m]();
348
+ }
349
+ [(e = A, m)]() {
350
+ if (f) return;
351
+ this[q] || (this[q] = this[F]());
352
+ const { validity: i, validationMessage: a } = this[q].getValidity(), s = !!this[A], l = this[A] || a;
353
+ this[u].setValidity({ ...i, customError: s }, l, this[B]() ?? void 0);
354
+ }
355
+ [F]() {
356
+ throw new Error("Implement [createValidator]");
357
+ }
358
+ [B]() {
359
+ throw new Error("Implement [getValidityAnchor]");
360
+ }
361
+ }
362
+ return t;
363
+ }(function(o) {
364
+ class e extends o {
365
+ get form() {
366
+ return this[u].form;
367
+ }
368
+ get labels() {
369
+ return this[u].labels;
370
+ }
371
+ get name() {
372
+ return this.getAttribute("name") ?? "";
373
+ }
374
+ set name(r) {
375
+ this.setAttribute("name", r);
376
+ }
377
+ get disabled() {
378
+ return this.hasAttribute("disabled");
379
+ }
380
+ set disabled(r) {
381
+ this.toggleAttribute("disabled", r);
382
+ }
383
+ attributeChangedCallback(r, i, a) {
384
+ if (r === "name" || r === "disabled") {
385
+ const s = r === "disabled" ? i !== null : i;
386
+ return void this.requestUpdate(r, s);
387
+ }
388
+ super.attributeChangedCallback(r, i, a);
389
+ }
390
+ requestUpdate(r, i, a) {
391
+ super.requestUpdate(r, i, a), this[u].setFormValue(this[S](), this[D]());
392
+ }
393
+ [S]() {
394
+ throw new Error("Implement [getFormValue]");
395
+ }
396
+ [D]() {
397
+ return this[S]();
398
+ }
399
+ formDisabledCallback(r) {
400
+ this.disabled = r;
401
+ }
402
+ }
403
+ return e.formAssociated = !0, n([c({ noAccessor: !0 })], e.prototype, "name", null), n([c({ type: Boolean, noAccessor: !0 })], e.prototype, "disabled", null), e;
404
+ }((_ = x, class extends _ {
405
+ get [u]() {
406
+ return this[L] || (this[L] = this.attachInternals()), this[L];
407
+ }
408
+ }))));
409
+ var _;
410
+ class p extends de {
411
+ constructor() {
412
+ super(), this.checked = !1, this.indeterminate = !1, this.required = !1, this.value = "on", this.prevChecked = !1, this.prevDisabled = !1, this.prevIndeterminate = !1, f || this.addEventListener("click", (e) => {
413
+ se(e) && this.input && (this.focus(), function(t) {
414
+ const r = new MouseEvent("click", { bubbles: !0 });
415
+ t.dispatchEvent(r);
416
+ }(this.input));
417
+ });
418
+ }
419
+ update(e) {
420
+ (e.has("checked") || e.has("disabled") || e.has("indeterminate")) && (this.prevChecked = e.get("checked") ?? this.checked, this.prevDisabled = e.get("disabled") ?? this.disabled, this.prevIndeterminate = e.get("indeterminate") ?? this.indeterminate), super.update(e);
421
+ }
422
+ render() {
423
+ const e = !this.prevChecked && !this.prevIndeterminate, t = this.prevChecked && !this.prevIndeterminate, r = this.prevIndeterminate, i = this.checked && !this.indeterminate, a = this.indeterminate, s = H({ disabled: this.disabled, selected: i || a, unselected: !i && !a, checked: i, indeterminate: a, "prev-unselected": e, "prev-checked": t, "prev-indeterminate": r, "prev-disabled": this.prevDisabled }), { ariaLabel: l, ariaInvalid: b } = this;
424
+ return k`
425
+ <div class="container ${s}">
426
+ <input
427
+ type="checkbox"
428
+ id="input"
429
+ aria-checked=${a ? "mixed" : E}
430
+ aria-label=${l || E}
431
+ aria-invalid=${b || E}
432
+ ?disabled=${this.disabled}
433
+ ?required=${this.required}
434
+ .indeterminate=${this.indeterminate}
435
+ .checked=${this.checked}
436
+ @input=${this.handleInput}
437
+ @change=${this.handleChange} />
438
+
439
+ <div class="outline"></div>
440
+ <div class="background"></div>
441
+ <md-focus-ring part="focus-ring" for="input"></md-focus-ring>
442
+ <md-ripple for="input" ?disabled=${this.disabled}></md-ripple>
443
+ <svg class="icon" viewBox="0 0 18 18" aria-hidden="true">
444
+ <rect class="mark short" />
445
+ <rect class="mark long" />
446
+ </svg>
447
+ </div>
448
+ `;
449
+ }
450
+ handleInput(e) {
451
+ const t = e.target;
452
+ this.checked = t.checked, this.indeterminate = t.indeterminate;
453
+ }
454
+ handleChange(e) {
455
+ (function(t, r) {
456
+ !r.bubbles || t.shadowRoot && !r.composed || r.stopPropagation();
457
+ const i = Reflect.construct(r.constructor, [r.type, r]);
458
+ t.dispatchEvent(i) || r.preventDefault();
459
+ })(this, e);
460
+ }
461
+ [S]() {
462
+ return !this.checked || this.indeterminate ? null : this.value;
463
+ }
464
+ [D]() {
465
+ return String(this.checked);
466
+ }
467
+ formResetCallback() {
468
+ this.checked = this.hasAttribute("checked");
469
+ }
470
+ formStateRestoreCallback(e) {
471
+ this.checked = e === "true";
472
+ }
473
+ [F]() {
474
+ return new ce(() => this);
475
+ }
476
+ [B]() {
477
+ return this.input;
478
+ }
479
+ }
480
+ p.shadowRootOptions = { ...x.shadowRootOptions, delegatesFocus: !0 }, n([c({ type: Boolean })], p.prototype, "checked", void 0), n([c({ type: Boolean })], p.prototype, "indeterminate", void 0), n([c({ type: Boolean })], p.prototype, "required", void 0), n([c()], p.prototype, "value", void 0), n([y()], p.prototype, "prevChecked", void 0), n([y()], p.prototype, "prevDisabled", void 0), n([y()], p.prototype, "prevIndeterminate", void 0), n([G("input")], p.prototype, "input", void 0);
481
+ const le = N`:host{border-start-start-radius:var(--md-checkbox-container-shape-start-start, var(--md-checkbox-container-shape, 2px));border-start-end-radius:var(--md-checkbox-container-shape-start-end, var(--md-checkbox-container-shape, 2px));border-end-end-radius:var(--md-checkbox-container-shape-end-end, var(--md-checkbox-container-shape, 2px));border-end-start-radius:var(--md-checkbox-container-shape-end-start, var(--md-checkbox-container-shape, 2px));display:inline-flex;height:var(--md-checkbox-container-size, 18px);position:relative;vertical-align:top;width:var(--md-checkbox-container-size, 18px);-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer}:host([disabled]){cursor:default}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--md-checkbox-container-size, 18px))/2)}md-focus-ring{height:44px;inset:unset;width:44px}input{appearance:none;height:48px;margin:0;opacity:0;outline:none;position:absolute;width:48px;z-index:1;cursor:inherit}:host([touch-target=none]) input{height:100%;width:100%}.container{border-radius:inherit;display:flex;height:100%;place-content:center;place-items:center;position:relative;width:100%}.outline,.background,.icon{inset:0;position:absolute}.outline,.background{border-radius:inherit}.outline{border-color:var(--md-checkbox-outline-color, var(--md-sys-color-on-surface-variant, #49454f));border-style:solid;border-width:var(--md-checkbox-outline-width, 2px);box-sizing:border-box}.background{background-color:var(--md-checkbox-selected-container-color, var(--md-sys-color-primary, #6750a4))}.background,.icon{opacity:0;transition-duration:150ms,50ms;transition-property:transform,opacity;transition-timing-function:cubic-bezier(0.3, 0, 0.8, 0.15),linear;transform:scale(0.6)}:where(.selected) :is(.background,.icon){opacity:1;transition-duration:350ms,50ms;transition-timing-function:cubic-bezier(0.05, 0.7, 0.1, 1),linear;transform:scale(1)}md-ripple{border-radius:var(--md-checkbox-state-layer-shape, var(--md-sys-shape-corner-full, 9999px));height:var(--md-checkbox-state-layer-size, 40px);inset:unset;width:var(--md-checkbox-state-layer-size, 40px);--md-ripple-hover-color: var(--md-checkbox-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-checkbox-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-checkbox-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-pressed-opacity: var(--md-checkbox-pressed-state-layer-opacity, 0.12)}.selected md-ripple{--md-ripple-hover-color: var(--md-checkbox-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-hover-opacity: var(--md-checkbox-selected-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-checkbox-selected-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-checkbox-selected-pressed-state-layer-opacity, 0.12)}.icon{fill:var(--md-checkbox-selected-icon-color, var(--md-sys-color-on-primary, #fff));height:var(--md-checkbox-icon-size, 18px);width:var(--md-checkbox-icon-size, 18px)}.mark.short{height:2px;transition-property:transform,height;width:2px}.mark.long{height:2px;transition-property:transform,width;width:10px}.mark{animation-duration:150ms;animation-timing-function:cubic-bezier(0.3, 0, 0.8, 0.15);transition-duration:150ms;transition-timing-function:cubic-bezier(0.3, 0, 0.8, 0.15)}.selected .mark{animation-duration:350ms;animation-timing-function:cubic-bezier(0.05, 0.7, 0.1, 1);transition-duration:350ms;transition-timing-function:cubic-bezier(0.05, 0.7, 0.1, 1)}.checked .mark,.prev-checked.unselected .mark{transform:scaleY(-1) translate(7px, -14px) rotate(45deg)}.checked .mark.short,.prev-checked.unselected .mark.short{height:5.6568542495px}.checked .mark.long,.prev-checked.unselected .mark.long{width:11.313708499px}.indeterminate .mark,.prev-indeterminate.unselected .mark{transform:scaleY(-1) translate(4px, -10px) rotate(0deg)}.prev-unselected .mark{transition-property:none}.prev-unselected.checked .mark.long{animation-name:prev-unselected-to-checked}@keyframes prev-unselected-to-checked{from{width:0}}:where(:hover) .outline{border-color:var(--md-checkbox-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));border-width:var(--md-checkbox-hover-outline-width, 2px)}:where(:hover) .background{background:var(--md-checkbox-selected-hover-container-color, var(--md-sys-color-primary, #6750a4))}:where(:hover) .icon{fill:var(--md-checkbox-selected-hover-icon-color, var(--md-sys-color-on-primary, #fff))}:where(:focus-within) .outline{border-color:var(--md-checkbox-focus-outline-color, var(--md-sys-color-on-surface, #1d1b20));border-width:var(--md-checkbox-focus-outline-width, 2px)}:where(:focus-within) .background{background:var(--md-checkbox-selected-focus-container-color, var(--md-sys-color-primary, #6750a4))}:where(:focus-within) .icon{fill:var(--md-checkbox-selected-focus-icon-color, var(--md-sys-color-on-primary, #fff))}:where(:active) .outline{border-color:var(--md-checkbox-pressed-outline-color, var(--md-sys-color-on-surface, #1d1b20));border-width:var(--md-checkbox-pressed-outline-width, 2px)}:where(:active) .background{background:var(--md-checkbox-selected-pressed-container-color, var(--md-sys-color-primary, #6750a4))}:where(:active) .icon{fill:var(--md-checkbox-selected-pressed-icon-color, var(--md-sys-color-on-primary, #fff))}:where(.disabled,.prev-disabled) :is(.background,.icon,.mark){animation-duration:0s;transition-duration:0s}:where(.disabled) .outline{border-color:var(--md-checkbox-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));border-width:var(--md-checkbox-disabled-outline-width, 2px);opacity:var(--md-checkbox-disabled-container-opacity, 0.38)}:where(.selected.disabled) .outline{visibility:hidden}:where(.selected.disabled) .background{background:var(--md-checkbox-selected-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-checkbox-selected-disabled-container-opacity, 0.38)}:where(.disabled) .icon{fill:var(--md-checkbox-selected-disabled-icon-color, var(--md-sys-color-surface, #fef7ff))}@media(forced-colors: active){.background{background-color:CanvasText}.selected.disabled .background{background-color:GrayText;opacity:1}.outline{border-color:CanvasText}.disabled .outline{border-color:GrayText;opacity:1}.icon{fill:Canvas}}
482
+ `;
483
+ let O = class extends p {
484
+ };
485
+ O.styles = [le], O = n([I("md-checkbox")], O);
486
+ var he = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, v = (o, e, t, r) => {
487
+ for (var i, a = r > 1 ? void 0 : r ? ue(e, t) : e, s = o.length - 1; s >= 0; s--) (i = o[s]) && (a = (r ? i(e, t, a) : i(a)) || a);
488
+ return r && a && he(e, t, a), a;
489
+ };
490
+ let h = class extends J() {
491
+ constructor() {
492
+ super(...arguments), this.value = !1, this.disabled = !1, this.required = !1, this.name = "checkbox-" + Math.random().toString(36), this.id = "checkbox-" + Math.random().toString(36), this.size = "md";
493
+ }
494
+ get form() {
495
+ return this.internals?.form;
496
+ }
497
+ get checked() {
498
+ return this.value;
499
+ }
500
+ set checked(o) {
501
+ this.value = o;
502
+ }
503
+ connectedCallback() {
504
+ super.connectedCallback();
505
+ }
506
+ render() {
507
+ return k`
508
+ <label class="grid grid-flow-col items-center space-x-2 w-fit">
509
+ <md-checkbox
510
+ .required=${this.required}
511
+ .disabled=${this.disabled}
512
+ ?checked=${this.value === !0}
513
+ @change=${(o) => {
514
+ this.value = o.target.checked, this.dispatchEvent(new CustomEvent("change", { detail: { value: this.value } }));
515
+ }}
516
+ >
517
+ </md-checkbox>
518
+ ${Q(this.label, () => k`<span>${this.label}</span>`, () => k`<slot></slot>`)}
519
+ </label>
520
+ `;
521
+ }
522
+ };
523
+ h.shadowRootOptions = { ...x.shadowRootOptions, delegatesFocus: !0 }, h.formAssociated = !0, v([c({ type: Boolean, reflect: !0 })], h.prototype, "value", 2), v([c({ type: Boolean })], h.prototype, "checked", 1), v([c({ type: Boolean })], h.prototype, "disabled", 2), v([c({ type: Boolean })], h.prototype, "required", 2), v([c({ type: String })], h.prototype, "name", 2), v([c({ type: String })], h.prototype, "id", 2), v([c({ type: String })], h.prototype, "label", 2), v([c({ type: String })], h.prototype, "size", 2), h = v([I("schmancy-checkbox")], h);
524
+ export {
525
+ h as S
526
+ };
527
+ //# sourceMappingURL=checkbox-zTyMywpJ.js.map