@francofantomius/material-components 1.1.1 → 1.2.0

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 (380) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +2 -1
  3. package/custom-elements.json +1049 -300
  4. package/dist/chunks/{account-menu-Dau0UHTl.js → account-menu-Bo7NghIm.js} +181 -223
  5. package/dist/chunks/{account-menu-Dau0UHTl.js.map → account-menu-Bo7NghIm.js.map} +1 -1
  6. package/dist/chunks/app-drawer-DjKSuatE.js +855 -0
  7. package/dist/chunks/{app-drawer-Du1ePzxZ.js.map → app-drawer-DjKSuatE.js.map} +1 -1
  8. package/dist/chunks/{badge-G4EjcMoy.js → badge-sZzNelZz.js} +30 -34
  9. package/dist/chunks/{badge-G4EjcMoy.js.map → badge-sZzNelZz.js.map} +1 -1
  10. package/dist/chunks/{bottom-sheet-q79BBYAj.js → bottom-sheet-BGgbUmKd.js} +98 -109
  11. package/dist/chunks/{bottom-sheet-q79BBYAj.js.map → bottom-sheet-BGgbUmKd.js.map} +1 -1
  12. package/dist/chunks/{button-D2vn7kJ8.js → button-DeQQlYds.js} +62 -72
  13. package/dist/chunks/{button-D2vn7kJ8.js.map → button-DeQQlYds.js.map} +1 -1
  14. package/dist/chunks/button-group-R2jN8FXK.js +136 -0
  15. package/dist/chunks/{button-group-CNqvJx1n.js.map → button-group-R2jN8FXK.js.map} +1 -1
  16. package/dist/chunks/{card-DVffdPpv.js → card-CVhWizDF.js} +45 -50
  17. package/dist/chunks/{card-DVffdPpv.js.map → card-CVhWizDF.js.map} +1 -1
  18. package/dist/chunks/{carousel-item-BG6kjjjk.js → carousel-item-DNp2zhP9.js} +62 -73
  19. package/dist/chunks/{carousel-item-BG6kjjjk.js.map → carousel-item-DNp2zhP9.js.map} +1 -1
  20. package/dist/chunks/{checkbox-BqlboAHd.js → checkbox-CsqUHVOF.js} +59 -64
  21. package/dist/chunks/{checkbox-BqlboAHd.js.map → checkbox-CsqUHVOF.js.map} +1 -1
  22. package/dist/chunks/{chip-CI1ZINnr.js → chip-B5c-I8bj.js} +56 -63
  23. package/dist/chunks/{chip-CI1ZINnr.js.map → chip-B5c-I8bj.js.map} +1 -1
  24. package/dist/chunks/code-CM6hIZNx.js +1531 -0
  25. package/dist/chunks/{code-C5UFBkCh.js.map → code-CM6hIZNx.js.map} +1 -1
  26. package/dist/chunks/date-picker-B15_rR0f.js +774 -0
  27. package/dist/chunks/date-picker-B15_rR0f.js.map +1 -0
  28. package/dist/chunks/decorate-DknOJ8FJ.js +40 -0
  29. package/dist/chunks/{decorate-DXuynaiA.js.map → decorate-DknOJ8FJ.js.map} +1 -1
  30. package/dist/chunks/{dialog-DGVEE5m_.js → dialog-Czknf8dl.js} +47 -52
  31. package/dist/chunks/{dialog-DGVEE5m_.js.map → dialog-Czknf8dl.js.map} +1 -1
  32. package/dist/chunks/divider-DIyCOosa.js +78 -0
  33. package/dist/chunks/{divider-DNepwoZv.js.map → divider-DIyCOosa.js.map} +1 -1
  34. package/dist/chunks/{fab-C9j3WBHE.js → fab-aZC0-lHo.js} +38 -44
  35. package/dist/chunks/{fab-C9j3WBHE.js.map → fab-aZC0-lHo.js.map} +1 -1
  36. package/dist/chunks/{fab-menu.css-3pu930sZ.js → fab-menu.css-BdVg1k4c.js} +5 -6
  37. package/dist/chunks/{fab-menu.css-3pu930sZ.js.map → fab-menu.css-BdVg1k4c.js.map} +1 -1
  38. package/dist/chunks/focus-ring-K6SY_mIm.js +69 -0
  39. package/dist/chunks/{focus-ring-CuiJuM-y.js.map → focus-ring-K6SY_mIm.js.map} +1 -1
  40. package/dist/chunks/form-associated-Do5uXckv.js +69 -0
  41. package/dist/chunks/{form-associated-Cty_ZaS9.js.map → form-associated-Do5uXckv.js.map} +1 -1
  42. package/dist/chunks/icon-FvKeXi61.js +59 -0
  43. package/dist/chunks/{icon-DrNqcNEL.js.map → icon-FvKeXi61.js.map} +1 -1
  44. package/dist/chunks/{icon-button-BQz73GLa.js → icon-button-CulnCZpZ.js} +58 -67
  45. package/dist/chunks/{icon-button-BQz73GLa.js.map → icon-button-CulnCZpZ.js.map} +1 -1
  46. package/dist/chunks/{list-D8olR7oZ.js → list-D7yrbJRL.js} +64 -72
  47. package/dist/chunks/{list-D8olR7oZ.js.map → list-D7yrbJRL.js.map} +1 -1
  48. package/dist/chunks/{loading-indicator-CvWnZr9o.js → loading-indicator-D9AyxNQh.js} +41 -46
  49. package/dist/chunks/{loading-indicator-CvWnZr9o.js.map → loading-indicator-D9AyxNQh.js.map} +1 -1
  50. package/dist/chunks/{menu-item-BBSp5Cqc.js → menu-item-C3entPo7.js} +77 -91
  51. package/dist/chunks/{menu-item-BBSp5Cqc.js.map → menu-item-C3entPo7.js.map} +1 -1
  52. package/dist/chunks/{navigation-bar-item-C9DfOEzg.js → navigation-bar-item-CWHCQeNw.js} +98 -115
  53. package/dist/chunks/{navigation-bar-item-C9DfOEzg.js.map → navigation-bar-item-CWHCQeNw.js.map} +1 -1
  54. package/dist/chunks/{navigation-drawer-CKl44Ef5.js → navigation-drawer-pGer0t4z.js} +116 -138
  55. package/dist/chunks/{navigation-drawer-CKl44Ef5.js.map → navigation-drawer-pGer0t4z.js.map} +1 -1
  56. package/dist/chunks/{navigation-rail-item-6pdhNHJK.js → navigation-rail-item-CWvGjLjC.js} +70 -86
  57. package/dist/chunks/{navigation-rail-item-6pdhNHJK.js.map → navigation-rail-item-CWvGjLjC.js.map} +1 -1
  58. package/dist/chunks/{player-C4ydiIpr.js → player-dT08kxeG.js} +423 -466
  59. package/dist/chunks/{player-C4ydiIpr.js.map → player-dT08kxeG.js.map} +1 -1
  60. package/dist/chunks/{progress-LQmLMDjX.js → progress-etZuX_VD.js} +46 -53
  61. package/dist/chunks/{progress-LQmLMDjX.js.map → progress-etZuX_VD.js.map} +1 -1
  62. package/dist/chunks/radio-jPCwykIa.js +197 -0
  63. package/dist/chunks/{radio-Bily78NT.js.map → radio-jPCwykIa.js.map} +1 -1
  64. package/dist/chunks/ripple-CBOKeVfm.js +132 -0
  65. package/dist/chunks/{ripple-squbKHhj.js.map → ripple-CBOKeVfm.js.map} +1 -1
  66. package/dist/chunks/{search-bar-fUD0qU2P.js → search-bar-B6xxVT7u.js} +244 -203
  67. package/dist/chunks/search-bar-B6xxVT7u.js.map +1 -0
  68. package/dist/chunks/segmented-button-Fon9kOHV.js +253 -0
  69. package/dist/chunks/{segmented-button-B0BvGSQ7.js.map → segmented-button-Fon9kOHV.js.map} +1 -1
  70. package/dist/chunks/{side-sheet-S2w081AK.js → side-sheet-sQ8qGKVm.js} +73 -81
  71. package/dist/chunks/{side-sheet-S2w081AK.js.map → side-sheet-sQ8qGKVm.js.map} +1 -1
  72. package/dist/chunks/slider-OIyEcUU9.js +448 -0
  73. package/dist/chunks/slider-OIyEcUU9.js.map +1 -0
  74. package/dist/chunks/{snackbar-Wsz3BzEY.js → snackbar-Yi6fF9vM.js} +57 -62
  75. package/dist/chunks/{snackbar-Wsz3BzEY.js.map → snackbar-Yi6fF9vM.js.map} +1 -1
  76. package/dist/chunks/{split-button-DUfjukQY.js → split-button-CLjVJe3I.js} +155 -172
  77. package/dist/chunks/{split-button-DUfjukQY.js.map → split-button-CLjVJe3I.js.map} +1 -1
  78. package/dist/chunks/{switch-DdukrvXb.js → switch-mtu6AVEh.js} +54 -57
  79. package/dist/chunks/{switch-DdukrvXb.js.map → switch-mtu6AVEh.js.map} +1 -1
  80. package/dist/chunks/table-C5rCvdFc.js +724 -0
  81. package/dist/chunks/{table-CqHnneAj.js.map → table-C5rCvdFc.js.map} +1 -1
  82. package/dist/chunks/tabs-C0mtURlT.js +182 -0
  83. package/dist/chunks/{tabs-BfOtoeir.js.map → tabs-C0mtURlT.js.map} +1 -1
  84. package/dist/chunks/{text-field-hN6-2HQy.js → text-field-MifFD7uk.js} +92 -110
  85. package/dist/chunks/{text-field-hN6-2HQy.js.map → text-field-MifFD7uk.js.map} +1 -1
  86. package/dist/chunks/time-picker-JTcLcJuz.js +810 -0
  87. package/dist/chunks/time-picker-JTcLcJuz.js.map +1 -0
  88. package/dist/chunks/{toolbar-DXVQbQKJ.js → toolbar-CsxKc2Yd.js} +48 -55
  89. package/dist/chunks/{toolbar-DXVQbQKJ.js.map → toolbar-CsxKc2Yd.js.map} +1 -1
  90. package/dist/chunks/tooltip-Ds3lNowS.js +380 -0
  91. package/dist/chunks/{tooltip-CE7JMHMu.js.map → tooltip-Ds3lNowS.js.map} +1 -1
  92. package/dist/chunks/{top-app-bar-Dgbp6CFv.js → top-app-bar-TrnjKzOX.js} +52 -53
  93. package/dist/chunks/top-app-bar-TrnjKzOX.js.map +1 -0
  94. package/dist/components/account-menu/account-menu.js +2 -8
  95. package/dist/components/app-drawer/app-drawer.js +2 -9
  96. package/dist/components/badge/badge.js +2 -4
  97. package/dist/components/bottom-sheet/bottom-sheet.js +2 -4
  98. package/dist/components/button/button.js +2 -4
  99. package/dist/components/button-group/button-group.js +2 -4
  100. package/dist/components/card/card.js +2 -4
  101. package/dist/components/carousel/carousel-item.js +2 -4
  102. package/dist/components/carousel/carousel.js +214 -232
  103. package/dist/components/carousel/carousel.js.map +1 -1
  104. package/dist/components/checkbox/checkbox.js +2 -4
  105. package/dist/components/chip/chip.js +2 -5
  106. package/dist/components/code/code.js +2 -5
  107. package/dist/components/date-picker/date-picker.js +2 -4
  108. package/dist/components/dialog/dialog.js +2 -4
  109. package/dist/components/divider/divider.js +2 -4
  110. package/dist/components/fab/fab.js +2 -4
  111. package/dist/components/fab-menu/fab-menu-item.js +53 -61
  112. package/dist/components/fab-menu/fab-menu-item.js.map +1 -1
  113. package/dist/components/fab-menu/fab-menu.js +98 -111
  114. package/dist/components/fab-menu/fab-menu.js.map +1 -1
  115. package/dist/components/icon/icon.js +2 -4
  116. package/dist/components/icon-button/icon-button.js +2 -4
  117. package/dist/components/list/list.js +2 -5
  118. package/dist/components/loading-indicator/loading-indicator.js +2 -4
  119. package/dist/components/menu/menu-item.js +2 -4
  120. package/dist/components/menu/menu.js +165 -183
  121. package/dist/components/menu/menu.js.map +1 -1
  122. package/dist/components/navigation-bar/navigation-bar-item.js +2 -5
  123. package/dist/components/navigation-bar/navigation-bar.js +131 -143
  124. package/dist/components/navigation-bar/navigation-bar.js.map +1 -1
  125. package/dist/components/navigation-drawer/navigation-drawer.js +2 -8
  126. package/dist/components/navigation-rail/navigation-rail-item.js +2 -5
  127. package/dist/components/navigation-rail/navigation-rail.js +92 -102
  128. package/dist/components/navigation-rail/navigation-rail.js.map +1 -1
  129. package/dist/components/player/player.js +2 -7
  130. package/dist/components/progress/progress.js +2 -5
  131. package/dist/components/radio/radio.js +2 -5
  132. package/dist/components/search-bar/search-bar.js +2 -5
  133. package/dist/components/segmented-button/segmented-button.js +2 -5
  134. package/dist/components/side-sheet/side-sheet.js +2 -4
  135. package/dist/components/slider/slider.js +2 -4
  136. package/dist/components/snackbar/snackbar.js +2 -4
  137. package/dist/components/split-button/split-button.js +2 -4
  138. package/dist/components/switch/switch.js +2 -4
  139. package/dist/components/table/table.js +2 -13
  140. package/dist/components/tabs/tabs.js +2 -5
  141. package/dist/components/text-field/text-field.js +2 -4
  142. package/dist/components/time-picker/time-picker.js +2 -4
  143. package/dist/components/toolbar/toolbar.js +2 -4
  144. package/dist/components/tooltip/tooltip.js +2 -4
  145. package/dist/components/top-app-bar/top-app-bar.js +2 -5
  146. package/dist/index.js +52 -150
  147. package/dist/internal/focus-ring/focus-ring.js +2 -4
  148. package/dist/internal/ripple/ripple.js +2 -4
  149. package/dist/tokens/index.js +468 -314
  150. package/dist/tokens/index.js.map +1 -1
  151. package/llms.txt +74 -8
  152. package/package.json +2 -14
  153. package/dist/chunks/app-drawer-Du1ePzxZ.js +0 -903
  154. package/dist/chunks/button-group-CNqvJx1n.js +0 -143
  155. package/dist/chunks/code-C5UFBkCh.js +0 -1830
  156. package/dist/chunks/date-picker-DJeHi4w-.js +0 -777
  157. package/dist/chunks/date-picker-DJeHi4w-.js.map +0 -1
  158. package/dist/chunks/decorate-DXuynaiA.js +0 -39
  159. package/dist/chunks/divider-DNepwoZv.js +0 -82
  160. package/dist/chunks/focus-ring-CuiJuM-y.js +0 -71
  161. package/dist/chunks/form-associated-Cty_ZaS9.js +0 -73
  162. package/dist/chunks/icon-DrNqcNEL.js +0 -62
  163. package/dist/chunks/radio-Bily78NT.js +0 -205
  164. package/dist/chunks/ripple-squbKHhj.js +0 -135
  165. package/dist/chunks/search-bar-fUD0qU2P.js.map +0 -1
  166. package/dist/chunks/segmented-button-B0BvGSQ7.js +0 -265
  167. package/dist/chunks/slider-D-mnO8yQ.js +0 -450
  168. package/dist/chunks/slider-D-mnO8yQ.js.map +0 -1
  169. package/dist/chunks/table-CqHnneAj.js +0 -773
  170. package/dist/chunks/tabs-BfOtoeir.js +0 -191
  171. package/dist/chunks/time-picker-CZnb2sWz.js +0 -785
  172. package/dist/chunks/time-picker-CZnb2sWz.js.map +0 -1
  173. package/dist/chunks/tooltip-CE7JMHMu.js +0 -398
  174. package/dist/chunks/top-app-bar-Dgbp6CFv.js.map +0 -1
  175. package/dist/components/account-menu/account-menu.css.d.ts +0 -3
  176. package/dist/components/account-menu/account-menu.css.d.ts.map +0 -1
  177. package/dist/components/account-menu/account-menu.d.ts +0 -111
  178. package/dist/components/account-menu/account-menu.d.ts.map +0 -1
  179. package/dist/components/app-drawer/app-drawer.css.d.ts +0 -3
  180. package/dist/components/app-drawer/app-drawer.css.d.ts.map +0 -1
  181. package/dist/components/app-drawer/app-drawer.d.ts +0 -173
  182. package/dist/components/app-drawer/app-drawer.d.ts.map +0 -1
  183. package/dist/components/badge/badge.css.d.ts +0 -2
  184. package/dist/components/badge/badge.css.d.ts.map +0 -1
  185. package/dist/components/badge/badge.d.ts +0 -16
  186. package/dist/components/badge/badge.d.ts.map +0 -1
  187. package/dist/components/bottom-sheet/bottom-sheet.css.d.ts +0 -2
  188. package/dist/components/bottom-sheet/bottom-sheet.css.d.ts.map +0 -1
  189. package/dist/components/bottom-sheet/bottom-sheet.d.ts +0 -69
  190. package/dist/components/bottom-sheet/bottom-sheet.d.ts.map +0 -1
  191. package/dist/components/button/button.css.d.ts +0 -2
  192. package/dist/components/button/button.css.d.ts.map +0 -1
  193. package/dist/components/button/button.d.ts +0 -25
  194. package/dist/components/button/button.d.ts.map +0 -1
  195. package/dist/components/button-group/button-group.css.d.ts +0 -2
  196. package/dist/components/button-group/button-group.css.d.ts.map +0 -1
  197. package/dist/components/button-group/button-group.d.ts +0 -28
  198. package/dist/components/button-group/button-group.d.ts.map +0 -1
  199. package/dist/components/card/card.css.d.ts +0 -2
  200. package/dist/components/card/card.css.d.ts.map +0 -1
  201. package/dist/components/card/card.d.ts +0 -18
  202. package/dist/components/card/card.d.ts.map +0 -1
  203. package/dist/components/carousel/carousel-item.d.ts +0 -33
  204. package/dist/components/carousel/carousel-item.d.ts.map +0 -1
  205. package/dist/components/carousel/carousel.css.d.ts +0 -3
  206. package/dist/components/carousel/carousel.css.d.ts.map +0 -1
  207. package/dist/components/carousel/carousel.d.ts +0 -81
  208. package/dist/components/carousel/carousel.d.ts.map +0 -1
  209. package/dist/components/checkbox/checkbox.css.d.ts +0 -2
  210. package/dist/components/checkbox/checkbox.css.d.ts.map +0 -1
  211. package/dist/components/checkbox/checkbox.d.ts +0 -24
  212. package/dist/components/checkbox/checkbox.d.ts.map +0 -1
  213. package/dist/components/chip/chip.css.d.ts +0 -3
  214. package/dist/components/chip/chip.css.d.ts.map +0 -1
  215. package/dist/components/chip/chip.d.ts +0 -27
  216. package/dist/components/chip/chip.d.ts.map +0 -1
  217. package/dist/components/code/code.css.d.ts +0 -2
  218. package/dist/components/code/code.css.d.ts.map +0 -1
  219. package/dist/components/code/code.d.ts +0 -106
  220. package/dist/components/code/code.d.ts.map +0 -1
  221. package/dist/components/code/highlighter.d.ts +0 -8
  222. package/dist/components/code/highlighter.d.ts.map +0 -1
  223. package/dist/components/code/linter.d.ts +0 -44
  224. package/dist/components/code/linter.d.ts.map +0 -1
  225. package/dist/components/date-picker/date-picker.css.d.ts +0 -2
  226. package/dist/components/date-picker/date-picker.css.d.ts.map +0 -1
  227. package/dist/components/date-picker/date-picker.d.ts +0 -59
  228. package/dist/components/date-picker/date-picker.d.ts.map +0 -1
  229. package/dist/components/dialog/dialog.css.d.ts +0 -2
  230. package/dist/components/dialog/dialog.css.d.ts.map +0 -1
  231. package/dist/components/dialog/dialog.d.ts +0 -22
  232. package/dist/components/dialog/dialog.d.ts.map +0 -1
  233. package/dist/components/divider/divider.css.d.ts +0 -2
  234. package/dist/components/divider/divider.css.d.ts.map +0 -1
  235. package/dist/components/divider/divider.d.ts +0 -16
  236. package/dist/components/divider/divider.d.ts.map +0 -1
  237. package/dist/components/fab/fab.css.d.ts +0 -2
  238. package/dist/components/fab/fab.css.d.ts.map +0 -1
  239. package/dist/components/fab/fab.d.ts +0 -19
  240. package/dist/components/fab/fab.d.ts.map +0 -1
  241. package/dist/components/fab-menu/fab-menu-item.d.ts +0 -35
  242. package/dist/components/fab-menu/fab-menu-item.d.ts.map +0 -1
  243. package/dist/components/fab-menu/fab-menu.css.d.ts +0 -3
  244. package/dist/components/fab-menu/fab-menu.css.d.ts.map +0 -1
  245. package/dist/components/fab-menu/fab-menu.d.ts +0 -72
  246. package/dist/components/fab-menu/fab-menu.d.ts.map +0 -1
  247. package/dist/components/icon/icon.css.d.ts +0 -2
  248. package/dist/components/icon/icon.css.d.ts.map +0 -1
  249. package/dist/components/icon/icon.d.ts +0 -15
  250. package/dist/components/icon/icon.d.ts.map +0 -1
  251. package/dist/components/icon-button/icon-button.css.d.ts +0 -2
  252. package/dist/components/icon-button/icon-button.css.d.ts.map +0 -1
  253. package/dist/components/icon-button/icon-button.d.ts +0 -22
  254. package/dist/components/icon-button/icon-button.d.ts.map +0 -1
  255. package/dist/components/list/list.css.d.ts +0 -3
  256. package/dist/components/list/list.css.d.ts.map +0 -1
  257. package/dist/components/list/list.d.ts +0 -25
  258. package/dist/components/list/list.d.ts.map +0 -1
  259. package/dist/components/loading-indicator/loading-indicator.css.d.ts +0 -2
  260. package/dist/components/loading-indicator/loading-indicator.css.d.ts.map +0 -1
  261. package/dist/components/loading-indicator/loading-indicator.d.ts +0 -48
  262. package/dist/components/loading-indicator/loading-indicator.d.ts.map +0 -1
  263. package/dist/components/menu/menu-item.d.ts +0 -41
  264. package/dist/components/menu/menu-item.d.ts.map +0 -1
  265. package/dist/components/menu/menu.css.d.ts +0 -3
  266. package/dist/components/menu/menu.css.d.ts.map +0 -1
  267. package/dist/components/menu/menu.d.ts +0 -91
  268. package/dist/components/menu/menu.d.ts.map +0 -1
  269. package/dist/components/navigation-bar/navigation-bar-item.d.ts +0 -49
  270. package/dist/components/navigation-bar/navigation-bar-item.d.ts.map +0 -1
  271. package/dist/components/navigation-bar/navigation-bar.css.d.ts +0 -3
  272. package/dist/components/navigation-bar/navigation-bar.css.d.ts.map +0 -1
  273. package/dist/components/navigation-bar/navigation-bar.d.ts +0 -50
  274. package/dist/components/navigation-bar/navigation-bar.d.ts.map +0 -1
  275. package/dist/components/navigation-drawer/navigation-drawer.css.d.ts +0 -3
  276. package/dist/components/navigation-drawer/navigation-drawer.css.d.ts.map +0 -1
  277. package/dist/components/navigation-drawer/navigation-drawer.d.ts +0 -76
  278. package/dist/components/navigation-drawer/navigation-drawer.d.ts.map +0 -1
  279. package/dist/components/navigation-rail/navigation-rail-item.d.ts +0 -36
  280. package/dist/components/navigation-rail/navigation-rail-item.d.ts.map +0 -1
  281. package/dist/components/navigation-rail/navigation-rail.css.d.ts +0 -3
  282. package/dist/components/navigation-rail/navigation-rail.css.d.ts.map +0 -1
  283. package/dist/components/navigation-rail/navigation-rail.d.ts +0 -43
  284. package/dist/components/navigation-rail/navigation-rail.d.ts.map +0 -1
  285. package/dist/components/player/player.css.d.ts +0 -2
  286. package/dist/components/player/player.css.d.ts.map +0 -1
  287. package/dist/components/player/player.d.ts +0 -99
  288. package/dist/components/player/player.d.ts.map +0 -1
  289. package/dist/components/progress/progress.css.d.ts +0 -2
  290. package/dist/components/progress/progress.css.d.ts.map +0 -1
  291. package/dist/components/progress/progress.d.ts +0 -21
  292. package/dist/components/progress/progress.d.ts.map +0 -1
  293. package/dist/components/radio/radio.css.d.ts +0 -3
  294. package/dist/components/radio/radio.css.d.ts.map +0 -1
  295. package/dist/components/radio/radio.d.ts +0 -38
  296. package/dist/components/radio/radio.d.ts.map +0 -1
  297. package/dist/components/search-bar/search-bar.css.d.ts +0 -2
  298. package/dist/components/search-bar/search-bar.css.d.ts.map +0 -1
  299. package/dist/components/search-bar/search-bar.d.ts +0 -81
  300. package/dist/components/search-bar/search-bar.d.ts.map +0 -1
  301. package/dist/components/segmented-button/segmented-button.css.d.ts +0 -3
  302. package/dist/components/segmented-button/segmented-button.css.d.ts.map +0 -1
  303. package/dist/components/segmented-button/segmented-button.d.ts +0 -40
  304. package/dist/components/segmented-button/segmented-button.d.ts.map +0 -1
  305. package/dist/components/side-sheet/side-sheet.css.d.ts +0 -2
  306. package/dist/components/side-sheet/side-sheet.css.d.ts.map +0 -1
  307. package/dist/components/side-sheet/side-sheet.d.ts +0 -57
  308. package/dist/components/side-sheet/side-sheet.d.ts.map +0 -1
  309. package/dist/components/slider/slider.css.d.ts +0 -2
  310. package/dist/components/slider/slider.css.d.ts.map +0 -1
  311. package/dist/components/slider/slider.d.ts +0 -51
  312. package/dist/components/slider/slider.d.ts.map +0 -1
  313. package/dist/components/snackbar/snackbar.css.d.ts +0 -2
  314. package/dist/components/snackbar/snackbar.css.d.ts.map +0 -1
  315. package/dist/components/snackbar/snackbar.d.ts +0 -24
  316. package/dist/components/snackbar/snackbar.d.ts.map +0 -1
  317. package/dist/components/split-button/split-button.css.d.ts +0 -2
  318. package/dist/components/split-button/split-button.css.d.ts.map +0 -1
  319. package/dist/components/split-button/split-button.d.ts +0 -89
  320. package/dist/components/split-button/split-button.d.ts.map +0 -1
  321. package/dist/components/switch/switch.css.d.ts +0 -2
  322. package/dist/components/switch/switch.css.d.ts.map +0 -1
  323. package/dist/components/switch/switch.d.ts +0 -22
  324. package/dist/components/switch/switch.d.ts.map +0 -1
  325. package/dist/components/table/table.css.d.ts +0 -8
  326. package/dist/components/table/table.css.d.ts.map +0 -1
  327. package/dist/components/table/table.d.ts +0 -158
  328. package/dist/components/table/table.d.ts.map +0 -1
  329. package/dist/components/tabs/tabs.css.d.ts +0 -3
  330. package/dist/components/tabs/tabs.css.d.ts.map +0 -1
  331. package/dist/components/tabs/tabs.d.ts +0 -33
  332. package/dist/components/tabs/tabs.d.ts.map +0 -1
  333. package/dist/components/text-field/text-field.css.d.ts +0 -2
  334. package/dist/components/text-field/text-field.css.d.ts.map +0 -1
  335. package/dist/components/text-field/text-field.d.ts +0 -40
  336. package/dist/components/text-field/text-field.d.ts.map +0 -1
  337. package/dist/components/time-picker/time-picker.css.d.ts +0 -2
  338. package/dist/components/time-picker/time-picker.css.d.ts.map +0 -1
  339. package/dist/components/time-picker/time-picker.d.ts +0 -87
  340. package/dist/components/time-picker/time-picker.d.ts.map +0 -1
  341. package/dist/components/toolbar/toolbar.css.d.ts +0 -2
  342. package/dist/components/toolbar/toolbar.css.d.ts.map +0 -1
  343. package/dist/components/toolbar/toolbar.d.ts +0 -53
  344. package/dist/components/toolbar/toolbar.d.ts.map +0 -1
  345. package/dist/components/tooltip/tooltip.css.d.ts +0 -2
  346. package/dist/components/tooltip/tooltip.css.d.ts.map +0 -1
  347. package/dist/components/tooltip/tooltip.d.ts +0 -89
  348. package/dist/components/tooltip/tooltip.d.ts.map +0 -1
  349. package/dist/components/top-app-bar/top-app-bar.css.d.ts +0 -2
  350. package/dist/components/top-app-bar/top-app-bar.css.d.ts.map +0 -1
  351. package/dist/components/top-app-bar/top-app-bar.d.ts +0 -29
  352. package/dist/components/top-app-bar/top-app-bar.d.ts.map +0 -1
  353. package/dist/index.d.ts +0 -52
  354. package/dist/index.d.ts.map +0 -1
  355. package/dist/internal/base-component.d.ts +0 -13
  356. package/dist/internal/base-component.d.ts.map +0 -1
  357. package/dist/internal/focus-ring/focus-ring.css.d.ts +0 -2
  358. package/dist/internal/focus-ring/focus-ring.css.d.ts.map +0 -1
  359. package/dist/internal/focus-ring/focus-ring.d.ts +0 -18
  360. package/dist/internal/focus-ring/focus-ring.d.ts.map +0 -1
  361. package/dist/internal/form-associated.d.ts +0 -26
  362. package/dist/internal/form-associated.d.ts.map +0 -1
  363. package/dist/internal/ripple/ripple.css.d.ts +0 -2
  364. package/dist/internal/ripple/ripple.css.d.ts.map +0 -1
  365. package/dist/internal/ripple/ripple.d.ts +0 -23
  366. package/dist/internal/ripple/ripple.d.ts.map +0 -1
  367. package/dist/tokens/colors.d.ts +0 -42
  368. package/dist/tokens/colors.d.ts.map +0 -1
  369. package/dist/tokens/elevation.d.ts +0 -9
  370. package/dist/tokens/elevation.d.ts.map +0 -1
  371. package/dist/tokens/index.d.ts +0 -7
  372. package/dist/tokens/index.d.ts.map +0 -1
  373. package/dist/tokens/motion.d.ts +0 -21
  374. package/dist/tokens/motion.d.ts.map +0 -1
  375. package/dist/tokens/shape.d.ts +0 -10
  376. package/dist/tokens/shape.d.ts.map +0 -1
  377. package/dist/tokens/theme.css.d.ts +0 -4
  378. package/dist/tokens/theme.css.d.ts.map +0 -1
  379. package/dist/tokens/typography.d.ts +0 -101
  380. package/dist/tokens/typography.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"top-app-bar-TrnjKzOX.js","names":[],"sources":["../../src/components/top-app-bar/top-app-bar.css.ts","../../src/components/top-app-bar/top-app-bar.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport const topAppBarStyles = css`\n :host {\n display: block;\n box-sizing: border-box;\n width: 100%;\n position: relative;\n background-color: var(--md-top-app-bar-container-color, var(--md-sys-color-surface, #FEF7FF));\n color: var(--md-top-app-bar-on-container-color, var(--md-sys-color-on-surface, #1D1B20));\n font-family: var(--md-sys-typescale-font-family, inherit);\n transition: background-color 200ms cubic-bezier(0.2, 0, 0, 1),\n box-shadow 200ms cubic-bezier(0.2, 0, 0, 1);\n }\n\n :host([fixed]) {\n position: sticky;\n top: 0;\n z-index: 8;\n }\n\n :host([elevated]) {\n background-color: var(--md-top-app-bar-container-color, var(--md-sys-color-surface-container, #F3EDF7));\n box-shadow: var(--md-sys-elevation-level2, 0px 2px 6px 2px rgba(0, 0, 0, 0.15));\n }\n\n .top-app-bar {\n display: flex;\n flex-direction: column;\n width: 100%;\n box-sizing: border-box;\n }\n\n .row {\n display: flex;\n align-items: center;\n height: 64px;\n padding: 0 4px;\n box-sizing: border-box;\n position: relative;\n }\n\n .leading {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 48px;\n min-height: 48px;\n flex-shrink: 0;\n }\n\n .trailing {\n display: inline-flex;\n align-items: center;\n justify-content: flex-end;\n min-height: 48px;\n flex-shrink: 0;\n gap: 4px;\n margin-left: auto;\n }\n\n .title-container {\n display: flex;\n flex-direction: column;\n justify-content: center;\n overflow: hidden;\n flex: 1;\n min-width: 0;\n padding: 0 12px;\n }\n\n .headline {\n margin: 0;\n font-size: var(--md-sys-typescale-title-large-size, 22px);\n line-height: 28px;\n font-weight: 400;\n color: var(--md-top-app-bar-headline-color, var(--md-sys-color-on-surface, #1D1B20));\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .subtitle {\n margin: 0;\n font-size: var(--md-sys-typescale-body-medium-size, 14px);\n line-height: 20px;\n font-weight: 400;\n color: var(--md-top-app-bar-subtitle-color, var(--md-sys-color-on-surface-variant, #49454F));\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n /* Center-aligned variant (Default) */\n :host([variant=\"center-aligned\"]) .title-container,\n :host(:not([variant])) .title-container {\n text-align: center;\n align-items: center;\n }\n\n /* Small variant */\n :host([variant=\"small\"]) .title-container {\n text-align: start;\n align-items: flex-start;\n }\n\n /* Medium variant */\n :host([variant=\"medium\"]) .headline-row {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n min-height: 48px;\n padding: 0 16px 16px 16px;\n box-sizing: border-box;\n }\n\n :host([variant=\"medium\"]) .headline-row .headline {\n font-size: 24px;\n line-height: 32px;\n font-weight: 400;\n }\n\n /* Large variant */\n :host([variant=\"large\"]) .headline-row {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n min-height: 88px;\n padding: 0 16px 20px 16px;\n box-sizing: border-box;\n }\n\n :host([variant=\"large\"]) .headline-row .headline {\n font-size: 28px;\n line-height: 36px;\n font-weight: 400;\n }\n\n ::slotted(md-search-bar),\n ::slotted(md-search) {\n --md-search-bar-height: var(--md-top-app-bar-search-bar-height, 44px);\n align-self: center;\n }\n`;\n\n","import { html, nothing } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { MdBaseElement } from '../../internal/base-component.js';\nimport { topAppBarStyles } from './top-app-bar.css.js';\n\nexport type TopAppBarVariant = 'center-aligned' | 'small' | 'medium' | 'large';\n\n/**\n * Material Design 3 Top App Bar component.\n *\n * @slot navigation - Leading navigation icon button (e.g. menu, back arrow). Also aliased as `leading-icon` or `leading`.\n * @slot headline - Primary title text. Also aliased as `title`.\n * @slot subtitle - Secondary subtitle text. Also aliased as `supporting-text`.\n * @slot actions - Trailing action icon buttons or menus. Also aliased as `trailing-icon` or `trailing`.\n * @slot - Default slot for additional bar contents.\n */\n@customElement('md-top-app-bar')\nexport class MdTopAppBar extends MdBaseElement {\n static override styles = [MdBaseElement.styles, topAppBarStyles];\n\n @property({ type: String, reflect: true })\n variant: TopAppBarVariant = 'center-aligned';\n\n @property({ type: String })\n headline = '';\n\n @property({ type: String })\n subtitle = '';\n\n @property({ type: Boolean, reflect: true })\n elevated = false;\n\n @property({ type: Boolean, reflect: true })\n fixed = false;\n\n override render() {\n const isMultiRow = this.variant === 'medium' || this.variant === 'large';\n\n const navigationSlot = html`\n <div class=\"leading\">\n <slot name=\"navigation\">\n <slot name=\"leading-icon\">\n <slot name=\"leading\"></slot>\n </slot>\n </slot>\n </div>\n `;\n\n const actionsSlot = html`\n <div class=\"trailing\">\n <slot name=\"actions\">\n <slot name=\"trailing-icon\">\n <slot name=\"trailing\"></slot>\n </slot>\n </slot>\n </div>\n `;\n\n const headlineSlot = html`\n <slot name=\"headline\">\n <slot name=\"title\">\n ${this.headline ? html`<span class=\"headline\">${this.headline}</span>` : nothing}\n </slot>\n </slot>\n `;\n\n const subtitleSlot = html`\n <slot name=\"subtitle\">\n <slot name=\"supporting-text\">\n ${this.subtitle ? html`<span class=\"subtitle\">${this.subtitle}</span>` : nothing}\n </slot>\n </slot>\n `;\n\n if (isMultiRow) {\n return html`\n <header class=\"top-app-bar\" role=\"banner\">\n <div class=\"row\">\n ${navigationSlot}\n <slot></slot>\n ${actionsSlot}\n </div>\n <div class=\"headline-row\">\n <div class=\"title-container\">\n ${headlineSlot}\n ${subtitleSlot}\n </div>\n </div>\n </header>\n `;\n }\n\n return html`\n <header class=\"top-app-bar\" role=\"banner\">\n <div class=\"row\">\n ${navigationSlot}\n <div class=\"title-container\">\n ${headlineSlot}\n ${subtitleSlot}\n </div>\n <slot></slot>\n ${actionsSlot}\n </div>\n </header>\n `;\n }\n}\n\n// Register md-top-bar as an alias\n@customElement('md-top-bar')\nexport class MdTopBar extends MdTopAppBar {}\n\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'md-top-app-bar': MdTopAppBar;\n 'md-top-bar': MdTopAppBar;\n }\n}\n"],"mappings":";;;;AAEA,IAAa,IAAkB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GCerB,IAAN,cAA0B,EAAc;;EAgBrC,aAZoB,KAAA,UAAA,kBAGjB,KAAA,WAAA,IAGA,KAAA,WAAA,IAGA,KAAA,WAAA,IAGH,KAAA,QAAA;;;EAfiB,KAAA,SAAA,CAAC,EAAc,QAAQ,CAAe;;CAiB/D,SAAkB;EAChB,IAAM,IAAa,KAAK,YAAY,YAAY,KAAK,YAAY,SAE3D,IAAiB,CAAI;;;;;;;;OAUrB,IAAc,CAAI;;;;;;;;OAUlB,IAAe,CAAI;;;YAGjB,KAAK,WAAW,CAAI,0BAA0B,KAAK,SAAS,WAAW,EAAQ;;;OAKjF,IAAe,CAAI;;;YAGjB,KAAK,WAAW,CAAI,0BAA0B,KAAK,SAAS,WAAW,EAAQ;;;;EAuBvF,OAlBI,IACK,CAAI;;;cAGH,EAAe;;cAEf,EAAY;;;;gBAIV,EAAa;gBACb,EAAa;;;;UAOlB,CAAI;;;YAGH,EAAe;;cAEb,EAAa;cACb,EAAa;;;YAGf,EAAY;;;;CAItB;AACF;AAtFG,EAAA,CAAA,EAAS;CAAE,MAAM;CAAQ,SAAS;AAAK,CAAC,CAAA,GAAA,EAAA,WAAA,WAAA,KAAA,CAAA,GAGxC,EAAA,CAAA,EAAS,EAAE,MAAM,OAAO,CAAC,CAAA,GAAA,EAAA,WAAA,YAAA,KAAA,CAAA,GAGzB,EAAA,CAAA,EAAS,EAAE,MAAM,OAAO,CAAC,CAAA,GAAA,EAAA,WAAA,YAAA,KAAA,CAAA,GAGzB,EAAA,CAAA,EAAS;CAAE,MAAM;CAAS,SAAS;AAAK,CAAC,CAAA,GAAA,EAAA,WAAA,YAAA,KAAA,CAAA,GAGzC,EAAA,CAAA,EAAS;CAAE,MAAM;CAAS,SAAS;AAAK,CAAC,CAAA,GAAA,EAAA,WAAA,SAAA,KAAA,CAAA,GAhB3C,IAAA,EAAA,CAAA,EAAc,gBAAgB,CAAA,GAAA,CAAA;AA8FxB,IAAM,IAAN,cAAuB,EAAY,CAAC;AAD1C,IAAA,EAAA,CAAA,EAAc,YAAY,CAAA,GAAA,CAAA"}
@@ -1,8 +1,2 @@
1
- import { a as o, i as t, n as r, r as a, t as e } from "../../chunks/account-menu-Dau0UHTl.js";
2
- export {
3
- e as MdAccountDrawer,
4
- r as MdAccountItem,
5
- a as MdAccountMenu,
6
- t as MdAccountProfile,
7
- o as MdAccountProfileItem
8
- };
1
+ import { a as e, i as t, n, r, t as i } from "../../chunks/account-menu-Bo7NghIm.js";
2
+ export { i as MdAccountDrawer, n as MdAccountItem, r as MdAccountMenu, t as MdAccountProfile, e as MdAccountProfileItem };
@@ -1,9 +1,2 @@
1
- import { a, i as r, n as e, o as s, r as M, t as d } from "../../chunks/app-drawer-Du1ePzxZ.js";
2
- export {
3
- d as MdAppDrawer,
4
- e as MdAppDrawerItem,
5
- M as MdAppItem,
6
- r as MdAppLauncher,
7
- a as MdAppLauncherItem,
8
- s as MdAppsMenu
9
- };
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "../../chunks/app-drawer-DjKSuatE.js";
2
+ export { a as MdAppDrawer, n as MdAppDrawerItem, i as MdAppItem, t as MdAppLauncher, e as MdAppLauncherItem, r as MdAppsMenu };
@@ -1,4 +1,2 @@
1
- import { t as r } from "../../chunks/badge-G4EjcMoy.js";
2
- export {
3
- r as MdBadge
4
- };
1
+ import { t as e } from "../../chunks/badge-sZzNelZz.js";
2
+ export { e as MdBadge };
@@ -1,4 +1,2 @@
1
- import { t as o } from "../../chunks/bottom-sheet-q79BBYAj.js";
2
- export {
3
- o as MdBottomSheet
4
- };
1
+ import { t as e } from "../../chunks/bottom-sheet-BGgbUmKd.js";
2
+ export { e as MdBottomSheet };
@@ -1,4 +1,2 @@
1
- import { t as o } from "../../chunks/button-D2vn7kJ8.js";
2
- export {
3
- o as MdButton
4
- };
1
+ import { t as e } from "../../chunks/button-DeQQlYds.js";
2
+ export { e as MdButton };
@@ -1,4 +1,2 @@
1
- import { t } from "../../chunks/button-group-CNqvJx1n.js";
2
- export {
3
- t as MdButtonGroup
4
- };
1
+ import { t as e } from "../../chunks/button-group-R2jN8FXK.js";
2
+ export { e as MdButtonGroup };
@@ -1,4 +1,2 @@
1
- import { t as o } from "../../chunks/card-DVffdPpv.js";
2
- export {
3
- o as MdCard
4
- };
1
+ import { t as e } from "../../chunks/card-CVhWizDF.js";
2
+ export { e as MdCard };
@@ -1,4 +1,2 @@
1
- import { t as r } from "../../chunks/carousel-item-BG6kjjjk.js";
2
- export {
3
- r as MdCarouselItem
4
- };
1
+ import { t as e } from "../../chunks/carousel-item-DNp2zhP9.js";
2
+ export { e as MdCarouselItem };
@@ -1,168 +1,168 @@
1
- import { n as d, t as r } from "../../chunks/decorate-DXuynaiA.js";
2
- import "../../chunks/ripple-squbKHhj.js";
3
- import "../../chunks/focus-ring-CuiJuM-y.js";
4
- import "../../chunks/icon-DrNqcNEL.js";
5
- import { n as p, t as E } from "../../chunks/carousel-item-BG6kjjjk.js";
6
- import { html as n, nothing as m } from "lit";
7
- import { customElement as g, property as o, query as f, queryAssignedElements as y, state as u } from "lit/decorators.js";
8
- var s = class extends d {
9
- constructor(...e) {
10
- super(...e), this.layout = "multi-browse", this.activeIndex = 0, this.hideControls = !1, this.hideIndicators = !1, this.loop = !1, this.autoplay = !1, this.autoplayInterval = 5e3, this.itemSpacing = "", this.itemWidth = "", this.itemHeight = "", this.ariaLabelText = "Carousel", this.isAtStart = !0, this.isAtEnd = !1, this.itemCount = 0, this.autoplayTimer = null, this.isDragging = !1, this.dragStartX = 0, this.dragStartScrollLeft = 0, this.dragThresholdPassed = !1, this.isUserInteracting = !1, this.isProgrammaticScroll = !1, this.programmaticScrollTimer = null, this.scrollDebounceTimer = null, this.handleSlotChange = () => {
11
- this.itemCount = this.items?.length || 0, this.syncItemsLayout(), this.updateControlsState();
12
- }, this.handleMouseEnter = () => {
13
- this.stopAutoplay();
14
- }, this.handleMouseLeave = () => {
15
- this.autoplay && this.startAutoplay();
16
- }, this.handleFocusIn = () => {
17
- this.stopAutoplay();
18
- }, this.handleFocusOut = () => {
19
- this.autoplay && this.startAutoplay();
20
- }, this.handleScroll = () => {
21
- this.isProgrammaticScroll || this.isDragging || (this.scrollDebounceTimer && clearTimeout(this.scrollDebounceTimer), this.scrollDebounceTimer = setTimeout(() => {
22
- this.determineActiveIndexFromScroll();
23
- }, 80));
24
- }, this.handlePointerDown = (t) => {
25
- if (!(t.button !== 0 && t.pointerType === "mouse") && this.scrollerElement) {
26
- this.isProgrammaticScroll = !1, this.isDragging = !0, this.dragThresholdPassed = !1, this.dragStartX = t.clientX, this.dragStartScrollLeft = this.scrollerElement.scrollLeft, this.scrollerElement.classList.add("is-dragging"), this.stopAutoplay();
27
- try {
28
- t.currentTarget?.setPointerCapture?.(t.pointerId);
29
- } catch {
30
- }
31
- }
32
- }, this.handlePointerMove = (t) => {
33
- if (!this.isDragging || !this.scrollerElement) return;
34
- const i = t.clientX - this.dragStartX;
35
- Math.abs(i) > 5 && (this.dragThresholdPassed = !0), this.dragThresholdPassed && (this.scrollerElement.scrollLeft = this.dragStartScrollLeft - i);
36
- }, this.handlePointerUp = (t) => {
37
- if (this.isDragging) {
38
- this.isDragging = !1;
39
- try {
40
- t.currentTarget?.releasePointerCapture?.(t.pointerId);
41
- } catch {
42
- }
43
- if (this.scrollerElement && this.scrollerElement.classList.remove("is-dragging"), this.dragThresholdPassed && this.scrollerElement) {
44
- const i = t.clientX - this.dragStartX;
45
- Math.abs(i) > 40 ? i < 0 ? this.next() : this.previous() : this.scrollToIndex(this.activeIndex, !0);
46
- }
47
- this.autoplay && this.startAutoplay();
48
- }
49
- }, this.handlePointerCancel = (t) => {
50
- if (this.isDragging) {
51
- this.isDragging = !1;
52
- try {
53
- t.currentTarget?.releasePointerCapture?.(t.pointerId);
54
- } catch {
55
- }
56
- this.scrollerElement && this.scrollerElement.classList.remove("is-dragging"), this.autoplay && this.startAutoplay();
57
- }
58
- }, this.handleKeyDown = (t) => {
59
- t.key === "ArrowRight" ? (t.preventDefault(), this.next()) : t.key === "ArrowLeft" ? (t.preventDefault(), this.previous()) : t.key === "Home" ? (t.preventDefault(), this.scrollToIndex(0)) : t.key === "End" && (t.preventDefault(), this.scrollToIndex((this.items?.length || 1) - 1));
60
- };
61
- }
62
- static {
63
- this.styles = [d.styles, p];
64
- }
65
- get items() {
66
- return this.assignedItems && this.assignedItems.length > 0 ? this.assignedItems : Array.from(this.querySelectorAll("md-carousel-item"));
67
- }
68
- connectedCallback() {
69
- super.connectedCallback(), this.setAttribute("role", "region"), this.setAttribute("aria-roledescription", "carousel"), !this.hasAttribute("aria-label") && this.ariaLabelText && this.setAttribute("aria-label", this.ariaLabelText), this.addEventListener("keydown", this.handleKeyDown), this.addEventListener("mouseenter", this.handleMouseEnter), this.addEventListener("mouseleave", this.handleMouseLeave), this.addEventListener("focusin", this.handleFocusIn), this.addEventListener("focusout", this.handleFocusOut), this.autoplay && this.startAutoplay();
70
- }
71
- disconnectedCallback() {
72
- super.disconnectedCallback(), this.stopAutoplay(), this.removeEventListener("keydown", this.handleKeyDown), this.removeEventListener("mouseenter", this.handleMouseEnter), this.removeEventListener("mouseleave", this.handleMouseLeave), this.removeEventListener("focusin", this.handleFocusIn), this.removeEventListener("focusout", this.handleFocusOut), this.scrollDebounceTimer && clearTimeout(this.scrollDebounceTimer), this.programmaticScrollTimer && clearTimeout(this.programmaticScrollTimer);
73
- }
74
- updated(e) {
75
- if (super.updated(e), e.has("itemSpacing"))
76
- if (this.itemSpacing) {
77
- const t = isNaN(Number(this.itemSpacing)) ? this.itemSpacing : `${this.itemSpacing}px`;
78
- this.style.setProperty("--md-carousel-spacing", t);
79
- } else this.style.removeProperty("--md-carousel-spacing");
80
- if (e.has("itemWidth"))
81
- if (this.itemWidth) {
82
- const t = isNaN(Number(this.itemWidth)) ? this.itemWidth : `${this.itemWidth}px`;
83
- this.style.setProperty("--md-carousel-item-width", t);
84
- } else this.style.removeProperty("--md-carousel-item-width");
85
- if (e.has("itemHeight"))
86
- if (this.itemHeight) {
87
- const t = isNaN(Number(this.itemHeight)) ? this.itemHeight : `${this.itemHeight}px`;
88
- this.style.setProperty("--md-carousel-height", t), this.style.setProperty("--md-carousel-item-height", t);
89
- } else
90
- this.style.removeProperty("--md-carousel-height"), this.style.removeProperty("--md-carousel-item-height");
91
- e.has("layout") && this.syncItemsLayout(), (e.has("autoplay") || e.has("autoplayInterval")) && (this.autoplay ? this.startAutoplay() : this.stopAutoplay()), e.has("activeIndex") && !this.isUserInteracting && !this.isProgrammaticScroll && this.scrollToIndex(this.activeIndex, !0), this.updateControlsState();
92
- }
93
- syncItemsLayout() {
94
- this.items && this.items.forEach((e, t) => {
95
- e.layout = this.layout, e.setAttribute("aria-label", `Slide ${t + 1} of ${this.items.length}`);
96
- });
97
- }
98
- startAutoplay() {
99
- this.stopAutoplay(), this.autoplay && this.autoplayInterval > 0 && (this.autoplayTimer = setInterval(() => {
100
- this.next();
101
- }, this.autoplayInterval));
102
- }
103
- stopAutoplay() {
104
- this.autoplayTimer && (clearInterval(this.autoplayTimer), this.autoplayTimer = null);
105
- }
106
- previous() {
107
- const e = this.items?.length || 0;
108
- e !== 0 && (this.activeIndex > 0 ? this.scrollToIndex(this.activeIndex - 1, !0) : this.loop && this.scrollToIndex(e - 1, !0));
109
- }
110
- next() {
111
- const e = this.items?.length || 0;
112
- e !== 0 && (this.activeIndex < e - 1 ? this.scrollToIndex(this.activeIndex + 1, !0) : this.loop && this.scrollToIndex(0, !0));
113
- }
114
- scrollToIndex(e, t = !0) {
115
- if (!this.items || this.items.length === 0) return;
116
- const i = Math.max(0, Math.min(e, this.items.length - 1)), a = this.items[i];
117
- if (this.isProgrammaticScroll = !0, this.programmaticScrollTimer && clearTimeout(this.programmaticScrollTimer), this.programmaticScrollTimer = setTimeout(() => {
118
- this.isProgrammaticScroll = !1;
119
- }, t ? 500 : 50), a && this.scrollerElement)
120
- if (i === 0) this.scrollerElement.scrollTo({
121
- left: 0,
122
- behavior: t ? "smooth" : "auto"
123
- });
124
- else {
125
- const l = this.scrollerElement.getBoundingClientRect(), c = a.getBoundingClientRect(), h = this.scrollerElement.scrollLeft + (c.left - l.left);
126
- this.scrollerElement.scrollTo({
127
- left: Math.max(0, h),
128
- behavior: t ? "smooth" : "auto"
129
- });
130
- }
131
- this.activeIndex !== i && (this.activeIndex = i, this.emitEvent("change", {
132
- activeIndex: this.activeIndex,
133
- item: this.items[this.activeIndex]
134
- })), this.updateControlsState();
135
- }
136
- updateControlsState() {
137
- const e = this.items?.length || 0;
138
- if (e === 0) {
139
- this.isAtStart = !0, this.isAtEnd = !0;
140
- return;
141
- }
142
- if (this.loop) {
143
- this.isAtStart = !1, this.isAtEnd = !1;
144
- return;
145
- }
146
- this.isAtStart = this.activeIndex <= 0, this.isAtEnd = this.activeIndex >= e - 1;
147
- }
148
- determineActiveIndexFromScroll() {
149
- if (this.isProgrammaticScroll || this.isDragging || !this.scrollerElement || !this.items || this.items.length === 0) return;
150
- const e = this.scrollerElement.getBoundingClientRect().left;
151
- let t = 0, i = 1 / 0;
152
- this.items.forEach((a, l) => {
153
- const c = a.getBoundingClientRect(), h = Math.abs(c.left - e);
154
- h < i && (i = h, t = l);
155
- }), this.activeIndex !== t && (this.isUserInteracting = !0, this.activeIndex = t, this.emitEvent("change", {
156
- activeIndex: this.activeIndex,
157
- item: this.items[this.activeIndex]
158
- }), this.isUserInteracting = !1, this.updateControlsState());
159
- }
160
- render() {
161
- const e = this.items?.length ?? this.itemCount, t = !this.hideControls && (e > 1 || e === 0), i = !this.hideIndicators && e > 1;
162
- return n`
1
+ import { n as e, t } from "../../chunks/decorate-DknOJ8FJ.js";
2
+ import "../../chunks/ripple-CBOKeVfm.js";
3
+ import "../../chunks/focus-ring-K6SY_mIm.js";
4
+ import "../../chunks/icon-FvKeXi61.js";
5
+ import { n, t as r } from "../../chunks/carousel-item-DNp2zhP9.js";
6
+ import { html as i, nothing as a } from "lit";
7
+ import { customElement as o, property as s, query as c, queryAssignedElements as l, state as u } from "lit/decorators.js";
8
+ //#region src/components/carousel/carousel.ts
9
+ var d = class extends e {
10
+ constructor(...e) {
11
+ super(...e), this.layout = "multi-browse", this.activeIndex = 0, this.hideControls = !1, this.hideIndicators = !1, this.loop = !1, this.autoplay = !1, this.autoplayInterval = 5e3, this.itemSpacing = "", this.itemWidth = "", this.itemHeight = "", this.ariaLabelText = "Carousel", this.isAtStart = !0, this.isAtEnd = !1, this.itemCount = 0, this.autoplayTimer = null, this.isDragging = !1, this.dragStartX = 0, this.dragStartScrollLeft = 0, this.dragThresholdPassed = !1, this.isUserInteracting = !1, this.isProgrammaticScroll = !1, this.programmaticScrollTimer = null, this.scrollDebounceTimer = null, this.handleSlotChange = () => {
12
+ this.itemCount = this.items?.length || 0, this.syncItemsLayout(), this.updateControlsState();
13
+ }, this.handleMouseEnter = () => {
14
+ this.stopAutoplay();
15
+ }, this.handleMouseLeave = () => {
16
+ this.autoplay && this.startAutoplay();
17
+ }, this.handleFocusIn = () => {
18
+ this.stopAutoplay();
19
+ }, this.handleFocusOut = () => {
20
+ this.autoplay && this.startAutoplay();
21
+ }, this.handleScroll = () => {
22
+ this.isProgrammaticScroll || this.isDragging || (this.scrollDebounceTimer && clearTimeout(this.scrollDebounceTimer), this.scrollDebounceTimer = setTimeout(() => {
23
+ this.determineActiveIndexFromScroll();
24
+ }, 80));
25
+ }, this.handlePointerDown = (e) => {
26
+ if ((e.button === 0 || e.pointerType !== "mouse") && this.scrollerElement) {
27
+ this.isProgrammaticScroll = !1, this.isDragging = !0, this.dragThresholdPassed = !1, this.dragStartX = e.clientX, this.dragStartScrollLeft = this.scrollerElement.scrollLeft, this.scrollerElement.classList.add("is-dragging"), this.stopAutoplay();
28
+ try {
29
+ e.currentTarget?.setPointerCapture?.(e.pointerId);
30
+ } catch {}
31
+ }
32
+ }, this.handlePointerMove = (e) => {
33
+ if (!this.isDragging || !this.scrollerElement) return;
34
+ let t = e.clientX - this.dragStartX;
35
+ Math.abs(t) > 5 && (this.dragThresholdPassed = !0), this.dragThresholdPassed && (this.scrollerElement.scrollLeft = this.dragStartScrollLeft - t);
36
+ }, this.handlePointerUp = (e) => {
37
+ if (this.isDragging) {
38
+ this.isDragging = !1;
39
+ try {
40
+ e.currentTarget?.releasePointerCapture?.(e.pointerId);
41
+ } catch {}
42
+ if (this.scrollerElement && this.scrollerElement.classList.remove("is-dragging"), this.dragThresholdPassed && this.scrollerElement) {
43
+ let t = e.clientX - this.dragStartX;
44
+ Math.abs(t) > 40 ? t < 0 ? this.next() : this.previous() : this.scrollToIndex(this.activeIndex, !0);
45
+ }
46
+ this.autoplay && this.startAutoplay();
47
+ }
48
+ }, this.handlePointerCancel = (e) => {
49
+ if (this.isDragging) {
50
+ this.isDragging = !1;
51
+ try {
52
+ e.currentTarget?.releasePointerCapture?.(e.pointerId);
53
+ } catch {}
54
+ this.scrollerElement && this.scrollerElement.classList.remove("is-dragging"), this.autoplay && this.startAutoplay();
55
+ }
56
+ }, this.handleKeyDown = (e) => {
57
+ e.key === "ArrowRight" ? (e.preventDefault(), this.next()) : e.key === "ArrowLeft" ? (e.preventDefault(), this.previous()) : e.key === "Home" ? (e.preventDefault(), this.scrollToIndex(0)) : e.key === "End" && (e.preventDefault(), this.scrollToIndex((this.items?.length || 1) - 1));
58
+ };
59
+ }
60
+ static {
61
+ this.styles = [e.styles, n];
62
+ }
63
+ get items() {
64
+ return this.assignedItems && this.assignedItems.length > 0 ? this.assignedItems : Array.from(this.querySelectorAll("md-carousel-item"));
65
+ }
66
+ connectedCallback() {
67
+ super.connectedCallback(), this.setAttribute("role", "region"), this.setAttribute("aria-roledescription", "carousel"), !this.hasAttribute("aria-label") && this.ariaLabelText && this.setAttribute("aria-label", this.ariaLabelText), this.addEventListener("keydown", this.handleKeyDown), this.addEventListener("mouseenter", this.handleMouseEnter), this.addEventListener("mouseleave", this.handleMouseLeave), this.addEventListener("focusin", this.handleFocusIn), this.addEventListener("focusout", this.handleFocusOut), this.autoplay && this.startAutoplay();
68
+ }
69
+ disconnectedCallback() {
70
+ super.disconnectedCallback(), this.stopAutoplay(), this.removeEventListener("keydown", this.handleKeyDown), this.removeEventListener("mouseenter", this.handleMouseEnter), this.removeEventListener("mouseleave", this.handleMouseLeave), this.removeEventListener("focusin", this.handleFocusIn), this.removeEventListener("focusout", this.handleFocusOut), this.scrollDebounceTimer && clearTimeout(this.scrollDebounceTimer), this.programmaticScrollTimer && clearTimeout(this.programmaticScrollTimer);
71
+ }
72
+ updated(e) {
73
+ if (super.updated(e), e.has("itemSpacing")) {
74
+ if (this.itemSpacing) {
75
+ let e = isNaN(Number(this.itemSpacing)) ? this.itemSpacing : `${this.itemSpacing}px`;
76
+ this.style.setProperty("--md-carousel-spacing", e);
77
+ } else this.style.removeProperty("--md-carousel-spacing");
78
+ }
79
+ if (e.has("itemWidth")) {
80
+ if (this.itemWidth) {
81
+ let e = isNaN(Number(this.itemWidth)) ? this.itemWidth : `${this.itemWidth}px`;
82
+ this.style.setProperty("--md-carousel-item-width", e);
83
+ } else this.style.removeProperty("--md-carousel-item-width");
84
+ }
85
+ if (e.has("itemHeight")) {
86
+ if (this.itemHeight) {
87
+ let e = isNaN(Number(this.itemHeight)) ? this.itemHeight : `${this.itemHeight}px`;
88
+ this.style.setProperty("--md-carousel-height", e), this.style.setProperty("--md-carousel-item-height", e);
89
+ } else this.style.removeProperty("--md-carousel-height"), this.style.removeProperty("--md-carousel-item-height");
90
+ }
91
+ e.has("layout") && this.syncItemsLayout(), (e.has("autoplay") || e.has("autoplayInterval")) && (this.autoplay ? this.startAutoplay() : this.stopAutoplay()), e.has("activeIndex") && !this.isUserInteracting && !this.isProgrammaticScroll && this.scrollToIndex(this.activeIndex, !0), this.updateControlsState();
92
+ }
93
+ syncItemsLayout() {
94
+ this.items && this.items.forEach((e, t) => {
95
+ e.layout = this.layout, e.setAttribute("aria-label", `Slide ${t + 1} of ${this.items.length}`);
96
+ });
97
+ }
98
+ startAutoplay() {
99
+ this.stopAutoplay(), this.autoplay && this.autoplayInterval > 0 && (this.autoplayTimer = setInterval(() => {
100
+ this.next();
101
+ }, this.autoplayInterval));
102
+ }
103
+ stopAutoplay() {
104
+ this.autoplayTimer &&= (clearInterval(this.autoplayTimer), null);
105
+ }
106
+ previous() {
107
+ let e = this.items?.length || 0;
108
+ e !== 0 && (this.activeIndex > 0 ? this.scrollToIndex(this.activeIndex - 1, !0) : this.loop && this.scrollToIndex(e - 1, !0));
109
+ }
110
+ next() {
111
+ let e = this.items?.length || 0;
112
+ e !== 0 && (this.activeIndex < e - 1 ? this.scrollToIndex(this.activeIndex + 1, !0) : this.loop && this.scrollToIndex(0, !0));
113
+ }
114
+ scrollToIndex(e, t = !0) {
115
+ if (!this.items || this.items.length === 0) return;
116
+ let n = Math.max(0, Math.min(e, this.items.length - 1)), r = this.items[n];
117
+ if (this.isProgrammaticScroll = !0, this.programmaticScrollTimer && clearTimeout(this.programmaticScrollTimer), this.programmaticScrollTimer = setTimeout(() => {
118
+ this.isProgrammaticScroll = !1;
119
+ }, t ? 500 : 50), r && this.scrollerElement) {
120
+ if (n === 0) this.scrollerElement.scrollTo({
121
+ left: 0,
122
+ behavior: t ? "smooth" : "auto"
123
+ });
124
+ else {
125
+ let e = this.scrollerElement.getBoundingClientRect(), n = r.getBoundingClientRect(), i = this.scrollerElement.scrollLeft + (n.left - e.left);
126
+ this.scrollerElement.scrollTo({
127
+ left: Math.max(0, i),
128
+ behavior: t ? "smooth" : "auto"
129
+ });
130
+ }
131
+ }
132
+ this.activeIndex !== n && (this.activeIndex = n, this.emitEvent("change", {
133
+ activeIndex: this.activeIndex,
134
+ item: this.items[this.activeIndex]
135
+ })), this.updateControlsState();
136
+ }
137
+ updateControlsState() {
138
+ let e = this.items?.length || 0;
139
+ if (e === 0) {
140
+ this.isAtStart = !0, this.isAtEnd = !0;
141
+ return;
142
+ }
143
+ if (this.loop) {
144
+ this.isAtStart = !1, this.isAtEnd = !1;
145
+ return;
146
+ }
147
+ this.isAtStart = this.activeIndex <= 0, this.isAtEnd = this.activeIndex >= e - 1;
148
+ }
149
+ determineActiveIndexFromScroll() {
150
+ if (this.isProgrammaticScroll || this.isDragging || !this.scrollerElement || !this.items || this.items.length === 0) return;
151
+ let e = this.scrollerElement.getBoundingClientRect().left, t = 0, n = Infinity;
152
+ this.items.forEach((r, i) => {
153
+ let a = r.getBoundingClientRect(), o = Math.abs(a.left - e);
154
+ o < n && (n = o, t = i);
155
+ }), this.activeIndex !== t && (this.isUserInteracting = !0, this.activeIndex = t, this.emitEvent("change", {
156
+ activeIndex: this.activeIndex,
157
+ item: this.items[this.activeIndex]
158
+ }), this.isUserInteracting = !1, this.updateControlsState());
159
+ }
160
+ render() {
161
+ let e = this.items?.length ?? this.itemCount, t = !this.hideControls && (e > 1 || e === 0), n = !this.hideIndicators && e > 1;
162
+ return i`
163
163
  <div class="carousel-root">
164
164
  <div class="carousel-viewport-wrapper">
165
- ${t ? n`
165
+ ${t ? i`
166
166
  <slot name="prev-button">
167
167
  <button
168
168
  class="control-button prev"
@@ -185,7 +185,7 @@ var s = class extends d {
185
185
  <md-icon name="chevron_right"></md-icon>
186
186
  </button>
187
187
  </slot>
188
- ` : m}
188
+ ` : a}
189
189
 
190
190
  <div
191
191
  class="carousel-scroller"
@@ -202,83 +202,65 @@ var s = class extends d {
202
202
  </div>
203
203
  </div>
204
204
 
205
- ${i ? n`
205
+ ${n ? i`
206
206
  <div class="indicators" role="tablist" aria-label="Carousel navigation">
207
- ${Array.from({ length: e }).map((a, l) => n`
207
+ ${Array.from({ length: e }).map((e, t) => i`
208
208
  <button
209
- class="indicator-dot ${l === this.activeIndex ? "active" : ""}"
209
+ class="indicator-dot ${t === this.activeIndex ? "active" : ""}"
210
210
  type="button"
211
211
  role="tab"
212
- aria-selected=${l === this.activeIndex ? "true" : "false"}
213
- aria-label="Go to slide ${l + 1}"
214
- @click=${() => this.scrollToIndex(l)}
212
+ aria-selected=${t === this.activeIndex ? "true" : "false"}
213
+ aria-label="Go to slide ${t + 1}"
214
+ @click=${() => this.scrollToIndex(t)}
215
215
  ></button>
216
216
  `)}
217
217
  </div>
218
- ` : m}
218
+ ` : a}
219
219
  </div>
220
220
  `;
221
- }
222
- };
223
- r([o({
224
- type: String,
225
- reflect: !0
226
- })], s.prototype, "layout", void 0);
227
- r([o({
228
- type: Number,
229
- reflect: !0,
230
- attribute: "active-index"
231
- })], s.prototype, "activeIndex", void 0);
232
- r([o({
233
- type: Boolean,
234
- reflect: !0,
235
- attribute: "hide-controls"
236
- })], s.prototype, "hideControls", void 0);
237
- r([o({
238
- type: Boolean,
239
- reflect: !0,
240
- attribute: "hide-indicators"
241
- })], s.prototype, "hideIndicators", void 0);
242
- r([o({
243
- type: Boolean,
244
- reflect: !0
245
- })], s.prototype, "loop", void 0);
246
- r([o({
247
- type: Boolean,
248
- reflect: !0
249
- })], s.prototype, "autoplay", void 0);
250
- r([o({
251
- type: Number,
252
- attribute: "autoplay-interval"
253
- })], s.prototype, "autoplayInterval", void 0);
254
- r([o({
255
- type: String,
256
- attribute: "item-spacing"
257
- })], s.prototype, "itemSpacing", void 0);
258
- r([o({
259
- type: String,
260
- attribute: "item-width"
261
- })], s.prototype, "itemWidth", void 0);
262
- r([o({
263
- type: String,
264
- attribute: "item-height"
265
- })], s.prototype, "itemHeight", void 0);
266
- r([o({
267
- type: String,
268
- attribute: "aria-label"
269
- })], s.prototype, "ariaLabelText", void 0);
270
- r([y({
271
- selector: "md-carousel-item",
272
- flatten: !0
273
- })], s.prototype, "assignedItems", void 0);
274
- r([f(".carousel-scroller")], s.prototype, "scrollerElement", void 0);
275
- r([u()], s.prototype, "isAtStart", void 0);
276
- r([u()], s.prototype, "isAtEnd", void 0);
277
- r([u()], s.prototype, "itemCount", void 0);
278
- s = r([g("md-carousel")], s);
279
- export {
280
- s as MdCarousel,
281
- E as MdCarouselItem
221
+ }
282
222
  };
223
+ t([s({
224
+ type: String,
225
+ reflect: !0
226
+ })], d.prototype, "layout", void 0), t([s({
227
+ type: Number,
228
+ reflect: !0,
229
+ attribute: "active-index"
230
+ })], d.prototype, "activeIndex", void 0), t([s({
231
+ type: Boolean,
232
+ reflect: !0,
233
+ attribute: "hide-controls"
234
+ })], d.prototype, "hideControls", void 0), t([s({
235
+ type: Boolean,
236
+ reflect: !0,
237
+ attribute: "hide-indicators"
238
+ })], d.prototype, "hideIndicators", void 0), t([s({
239
+ type: Boolean,
240
+ reflect: !0
241
+ })], d.prototype, "loop", void 0), t([s({
242
+ type: Boolean,
243
+ reflect: !0
244
+ })], d.prototype, "autoplay", void 0), t([s({
245
+ type: Number,
246
+ attribute: "autoplay-interval"
247
+ })], d.prototype, "autoplayInterval", void 0), t([s({
248
+ type: String,
249
+ attribute: "item-spacing"
250
+ })], d.prototype, "itemSpacing", void 0), t([s({
251
+ type: String,
252
+ attribute: "item-width"
253
+ })], d.prototype, "itemWidth", void 0), t([s({
254
+ type: String,
255
+ attribute: "item-height"
256
+ })], d.prototype, "itemHeight", void 0), t([s({
257
+ type: String,
258
+ attribute: "aria-label"
259
+ })], d.prototype, "ariaLabelText", void 0), t([l({
260
+ selector: "md-carousel-item",
261
+ flatten: !0
262
+ })], d.prototype, "assignedItems", void 0), t([c(".carousel-scroller")], d.prototype, "scrollerElement", void 0), t([u()], d.prototype, "isAtStart", void 0), t([u()], d.prototype, "isAtEnd", void 0), t([u()], d.prototype, "itemCount", void 0), d = t([o("md-carousel")], d);
263
+ //#endregion
264
+ export { d as MdCarousel, r as MdCarouselItem };
283
265
 
284
266
  //# sourceMappingURL=carousel.js.map