@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
@@ -1,9 +1,10 @@
1
- import { t as o } from "./decorate-DXuynaiA.js";
2
- import { t as p } from "./form-associated-Cty_ZaS9.js";
3
- import "./icon-DrNqcNEL.js";
4
- import { css as m, html as l, nothing as r } from "lit";
5
- import { customElement as u, property as a, query as x, state as f } from "lit/decorators.js";
6
- var y = m`
1
+ import { t as e } from "./decorate-DknOJ8FJ.js";
2
+ import { t } from "./form-associated-Do5uXckv.js";
3
+ import "./icon-FvKeXi61.js";
4
+ import { css as n, html as r, nothing as i } from "lit";
5
+ import { customElement as a, property as o, query as s, state as c } from "lit/decorators.js";
6
+ //#region src/components/search-bar/search-bar.css.ts
7
+ var l = n`
7
8
  :host {
8
9
  display: block;
9
10
  box-sizing: border-box;
@@ -13,6 +14,42 @@ var y = m`
13
14
  font-family: var(--md-sys-typescale-font-family, inherit);
14
15
  color: var(--md-sys-color-on-surface, #1D1B20);
15
16
  vertical-align: middle;
17
+
18
+ --_height: var(--md-search-bar-height, 56px);
19
+ --_shape: var(--md-search-bar-shape, var(--md-search-bar-border-radius, var(--md-sys-shape-corner-full, 28px)));
20
+ --_shape-active: var(--md-search-bar-shape-active, var(--md-sys-shape-corner-extra-large, 28px 28px 16px 16px));
21
+ --_bg: var(--md-search-bar-container-color, var(--md-search-bar-bg, var(--md-sys-color-surface-container-high, #ECE6F0)));
22
+ --_elevation: var(--md-search-bar-elevation, var(--md-sys-elevation-level1, 0px 1px 3px 1px rgba(0, 0, 0, 0.15)));
23
+ --_elevation-active: var(--md-search-bar-elevation-active, var(--md-sys-elevation-level3, 0px 4px 8px 3px rgba(0, 0, 0, 0.15)));
24
+ --_btn-size: var(--md-search-bar-icon-button-size, 40px);
25
+ --_icon-size: var(--md-search-bar-icon-size, 24px);
26
+ --_font-size: var(--md-search-bar-font-size, var(--md-sys-typescale-body-large-size, 16px));
27
+ --_line-height: var(--md-search-bar-line-height, var(--md-sys-typescale-body-large-line-height, 24px));
28
+ --_padding: var(--md-search-bar-padding, 0 8px 0 16px);
29
+ }
30
+
31
+ :host([size="small"]),
32
+ :host([size="compact"]),
33
+ :host([compact]) {
34
+ --_height: var(--md-search-bar-height, 40px);
35
+ --_shape: var(--md-search-bar-shape, var(--md-search-bar-border-radius, 20px));
36
+ --_shape-active: var(--md-search-bar-shape-active, 20px 20px 12px 12px);
37
+ --_btn-size: var(--md-search-bar-icon-button-size, 32px);
38
+ --_icon-size: var(--md-search-bar-icon-size, 20px);
39
+ --_font-size: var(--md-search-bar-font-size, var(--md-sys-typescale-body-medium-size, 14px));
40
+ --_line-height: var(--md-search-bar-line-height, 20px);
41
+ --_padding: var(--md-search-bar-padding, 0 6px 0 12px);
42
+ }
43
+
44
+ :host([size="large"]) {
45
+ --_height: var(--md-search-bar-height, 64px);
46
+ --_shape: var(--md-search-bar-shape, var(--md-search-bar-border-radius, 32px));
47
+ --_shape-active: var(--md-search-bar-shape-active, 32px 32px 20px 20px);
48
+ --_btn-size: var(--md-search-bar-icon-button-size, 48px);
49
+ --_icon-size: var(--md-search-bar-icon-size, 24px);
50
+ --_font-size: var(--md-search-bar-font-size, 18px);
51
+ --_line-height: var(--md-search-bar-line-height, 26px);
52
+ --_padding: var(--md-search-bar-padding, 0 12px 0 20px);
16
53
  }
17
54
 
18
55
  :host([disabled]) {
@@ -43,9 +80,9 @@ var y = m`
43
80
  flex-direction: column;
44
81
  width: 100%;
45
82
  box-sizing: border-box;
46
- background-color: var(--md-search-bar-container-color, var(--md-sys-color-surface-container-high, #ECE6F0));
47
- border-radius: var(--md-sys-shape-corner-full, 28px);
48
- box-shadow: var(--md-sys-elevation-level1, 0px 1px 3px 1px rgba(0, 0, 0, 0.15));
83
+ background-color: var(--_bg);
84
+ border-radius: var(--_shape);
85
+ box-shadow: var(--_elevation);
49
86
  transition: box-shadow 200ms cubic-bezier(0.2, 0, 0, 1),
50
87
  border-radius 200ms cubic-bezier(0.2, 0, 0, 1),
51
88
  background-color 200ms cubic-bezier(0.2, 0, 0, 1);
@@ -54,9 +91,9 @@ var y = m`
54
91
  .search-bar-header {
55
92
  display: flex;
56
93
  align-items: center;
57
- min-height: 56px;
58
- height: 56px;
59
- padding: 0 8px 0 16px;
94
+ min-height: var(--_height);
95
+ height: var(--_height);
96
+ padding: var(--_padding);
60
97
  box-sizing: border-box;
61
98
  gap: 8px;
62
99
  }
@@ -72,8 +109,8 @@ var y = m`
72
109
  display: inline-flex;
73
110
  align-items: center;
74
111
  justify-content: center;
75
- width: 40px;
76
- height: 40px;
112
+ width: var(--_btn-size);
113
+ height: var(--_btn-size);
77
114
  border: none;
78
115
  background: transparent;
79
116
  border-radius: 50%;
@@ -85,6 +122,11 @@ var y = m`
85
122
  transition: background-color 150ms ease;
86
123
  }
87
124
 
125
+ .icon-btn md-icon {
126
+ font-size: var(--_icon-size);
127
+ --md-icon-size: var(--_icon-size);
128
+ }
129
+
88
130
  .icon-btn:hover {
89
131
  background-color: rgba(73, 69, 79, 0.08);
90
132
  }
@@ -107,8 +149,8 @@ var y = m`
107
149
  background: transparent;
108
150
  outline: none;
109
151
  font-family: inherit;
110
- font-size: var(--md-sys-typescale-body-large-size, 16px);
111
- line-height: var(--md-sys-typescale-body-large-line-height, 24px);
152
+ font-size: var(--_font-size);
153
+ line-height: var(--_line-height);
112
154
  color: var(--md-sys-color-on-surface, #1D1B20);
113
155
  padding: 0 4px;
114
156
  margin: 0;
@@ -141,8 +183,8 @@ var y = m`
141
183
  /* Active Docked Mode */
142
184
  :host([active]) .search-container {
143
185
  z-index: 50;
144
- border-radius: var(--md-sys-shape-corner-extra-large, 28px 28px 16px 16px);
145
- box-shadow: var(--md-sys-elevation-level3, 0px 4px 8px 3px rgba(0, 0, 0, 0.15));
186
+ border-radius: var(--_shape-active);
187
+ box-shadow: var(--_elevation-active);
146
188
  }
147
189
 
148
190
  /* Divider when active */
@@ -202,6 +244,11 @@ var y = m`
202
244
  flex-shrink: 0;
203
245
  }
204
246
 
247
+ .suggestion-icon md-icon {
248
+ font-size: var(--_icon-size);
249
+ --md-icon-size: var(--_icon-size);
250
+ }
251
+
205
252
  .suggestion-text {
206
253
  display: flex;
207
254
  flex-direction: column;
@@ -211,7 +258,7 @@ var y = m`
211
258
  }
212
259
 
213
260
  .suggestion-label {
214
- font-size: var(--md-sys-typescale-body-large-size, 16px);
261
+ font-size: var(--_font-size);
215
262
  line-height: 20px;
216
263
  white-space: nowrap;
217
264
  overflow: hidden;
@@ -265,12 +312,12 @@ var y = m`
265
312
 
266
313
  :host([responsive]:not([active]):not([collapse-on-mobile="false"])) .search-trigger-container.has-trailing,
267
314
  :host([collapse-on-mobile]:not([active]):not([collapse-on-mobile="false"])) .search-trigger-container.has-trailing {
268
- height: 48px;
315
+ height: var(--_height);
269
316
  padding: 0 4px;
270
317
  gap: 2px;
271
- background-color: var(--md-search-bar-container-color, var(--md-sys-color-surface-container-high, #ECE6F0));
272
- border-radius: var(--md-sys-shape-corner-full, 28px);
273
- box-shadow: var(--md-sys-elevation-level1, 0px 1px 3px 1px rgba(0, 0, 0, 0.15));
318
+ background-color: var(--_bg);
319
+ border-radius: var(--_shape);
320
+ box-shadow: var(--_elevation);
274
321
  }
275
322
 
276
323
  :host([responsive]:not([active]):not([collapse-on-mobile="false"])) .search-trigger-container.has-trailing:hover,
@@ -288,10 +335,10 @@ var y = m`
288
335
  display: inline-flex;
289
336
  align-items: center;
290
337
  justify-content: center;
291
- width: 40px;
292
- height: 40px;
293
- min-width: 40px;
294
- min-height: 40px;
338
+ width: var(--_btn-size);
339
+ height: var(--_btn-size);
340
+ min-width: var(--_btn-size);
341
+ min-height: var(--_btn-size);
295
342
  border-radius: 50%;
296
343
  border: none;
297
344
  background: transparent;
@@ -305,6 +352,11 @@ var y = m`
305
352
  -webkit-tap-highlight-color: transparent;
306
353
  }
307
354
 
355
+ .trigger-btn md-icon {
356
+ font-size: var(--_icon-size);
357
+ --md-icon-size: var(--_icon-size);
358
+ }
359
+
308
360
  .trigger-btn:hover {
309
361
  background-color: rgba(73, 69, 79, 0.08);
310
362
  }
@@ -373,7 +425,7 @@ var y = m`
373
425
  border-radius: 0;
374
426
  box-shadow: none;
375
427
  z-index: 99999;
376
- background-color: var(--md-search-bar-container-color, var(--md-sys-color-surface-container-high, #ECE6F0));
428
+ background-color: var(--_bg);
377
429
  }
378
430
 
379
431
  :host([responsive][active]) .suggestions-container,
@@ -421,7 +473,7 @@ var y = m`
421
473
  border-radius: 0;
422
474
  box-shadow: none;
423
475
  z-index: 99999;
424
- background-color: var(--md-search-bar-container-color, var(--md-sys-color-surface-container-high, #ECE6F0));
476
+ background-color: var(--_bg);
425
477
  }
426
478
 
427
479
  :host([fullscreen][active]) .suggestions-container {
@@ -429,124 +481,125 @@ var y = m`
429
481
  max-height: calc(100vh - 57px);
430
482
  max-height: calc(100dvh - 57px);
431
483
  }
432
- `, i = class extends p {
433
- constructor(...t) {
434
- super(...t), this.value = "", this.placeholder = "Search", this.active = !1, this.suggestions = [], this.leadingIcon = "search", this.activeLeadingIcon = "arrow_back", this.trailingIcon = "", this.showBackButton = !0, this.showClearButton = !0, this.responsive = !0, this.collapseOnMobile = !0, this.fullscreen = !1, this.autoDeactivateOnSelect = !0, this.highlightedIndex = -1, this.handleFocus = () => {
435
- this.active || (this.active = !0, this.emitEvent("active-change", { active: !0 }));
436
- }, this.handleInput = (e) => {
437
- const s = e.target;
438
- this.value = s.value, this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value), this.highlightedIndex = -1, this.emitEvent("input", { value: this.value });
439
- }, this.handleChange = () => {
440
- this.emitEvent("change", { value: this.value });
441
- }, this.handleKeyDown = (e) => {
442
- const s = this.suggestions.length;
443
- if (e.key === "Escape") {
444
- e.preventDefault(), this.close(), this.inputElement?.blur();
445
- return;
446
- }
447
- if (e.key === "ArrowDown") {
448
- if (!this.active) {
449
- this.show();
450
- return;
451
- }
452
- s > 0 && (e.preventDefault(), this.highlightedIndex = (this.highlightedIndex + 1) % s);
453
- return;
454
- }
455
- if (e.key === "ArrowUp") {
456
- s > 0 && this.active && (e.preventDefault(), this.highlightedIndex = this.highlightedIndex <= 0 ? s - 1 : this.highlightedIndex - 1);
457
- return;
458
- }
459
- if (e.key === "Enter")
460
- if (this.active && this.highlightedIndex >= 0 && this.highlightedIndex < s) {
461
- const n = this.suggestions[this.highlightedIndex];
462
- n !== void 0 && (e.preventDefault(), this.selectSuggestion(n, this.highlightedIndex));
463
- } else this.emitEvent("search", { value: this.value });
464
- }, this.handleTriggerClick = (e) => {
465
- e.stopPropagation(), this.show();
466
- }, this.handleTriggerKeyDown = (e) => {
467
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.show());
468
- }, this.handleTrailingTriggerClick = (e) => {
469
- e.stopPropagation(), this.emitEvent("trailing-icon-click", { icon: this.trailingIcon }) && this.show();
470
- }, this.handleBackClick = (e) => {
471
- e.stopPropagation(), this.close();
472
- }, this.handleScrimClick = () => {
473
- this.close();
474
- }, this.handleClearClick = (e) => {
475
- e.stopPropagation(), this.clear();
476
- };
477
- }
478
- static {
479
- this.styles = [p.styles, y];
480
- }
481
- connectedCallback() {
482
- super.connectedCallback(), this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value), this.toggleAttribute("active", this.active), this.toggleAttribute("collapse-on-mobile", this.collapseOnMobile);
483
- }
484
- willUpdate(t) {
485
- super.willUpdate(t), t.has("value") && (this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value)), t.has("active") && (this.toggleAttribute("active", this.active), this.active || (this.highlightedIndex = -1)), t.has("collapseOnMobile") && this.toggleAttribute("collapse-on-mobile", this.collapseOnMobile);
486
- }
487
- formResetCallback() {
488
- this.value = "", this.setFormValue(null), this.toggleAttribute("has-value", !1), this.highlightedIndex = -1;
489
- }
490
- focus() {
491
- this.inputElement?.focus();
492
- }
493
- show() {
494
- this.active || (this.active = !0, this.emitEvent("active-change", { active: !0 })), this.updateComplete.then(() => {
495
- this.inputElement?.focus();
496
- });
497
- }
498
- open() {
499
- this.show();
500
- }
501
- close() {
502
- this.active && (this.active = !1, this.highlightedIndex = -1, this.emitEvent("active-change", { active: !1 }));
503
- }
504
- collapse() {
505
- this.close();
506
- }
507
- toggle() {
508
- this.active ? this.close() : this.show();
509
- }
510
- clear() {
511
- this.value = "", this.setFormValue(""), this.toggleAttribute("has-value", !1), this.highlightedIndex = -1, this.emitEvent("input", { value: "" }), this.emitEvent("clear"), this.inputElement?.focus();
512
- }
513
- selectSuggestion(t, e) {
514
- const s = typeof t == "string" ? t : t.label, n = typeof t == "string" ? t : t.value ?? t.label;
515
- this.value = n, this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value), this.emitEvent("suggestion-select", {
516
- suggestion: t,
517
- label: s,
518
- value: n,
519
- index: e
520
- }), this.emitEvent("search", {
521
- value: this.value,
522
- suggestion: t
523
- }), this.autoDeactivateOnSelect && this.close();
524
- }
525
- renderSuggestionItem(t, e) {
526
- const s = typeof t == "string", n = s ? t : t.label, c = s ? void 0 : t.supportingText, h = s ? void 0 : t.trailingSupportingText, b = !s && t.icon ? t.icon : "history", d = this.highlightedIndex === e;
527
- return l`
484
+ `, u = class extends t {
485
+ constructor(...e) {
486
+ super(...e), this.size = "medium", this.compact = !1, this.value = "", this.placeholder = "Search", this.active = !1, this.suggestions = [], this.leadingIcon = "search", this.activeLeadingIcon = "arrow_back", this.trailingIcon = "", this.showBackButton = !0, this.showClearButton = !0, this.responsive = !0, this.collapseOnMobile = !0, this.fullscreen = !1, this.autoDeactivateOnSelect = !0, this.highlightedIndex = -1, this.handleFocus = () => {
487
+ this.active || (this.active = !0, this.emitEvent("active-change", { active: !0 }));
488
+ }, this.handleInput = (e) => {
489
+ let t = e.target;
490
+ this.value = t.value, this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value), this.highlightedIndex = -1, this.emitEvent("input", { value: this.value });
491
+ }, this.handleChange = () => {
492
+ this.emitEvent("change", { value: this.value });
493
+ }, this.handleKeyDown = (e) => {
494
+ let t = this.suggestions.length;
495
+ if (e.key === "Escape") {
496
+ e.preventDefault(), this.close(), this.inputElement?.blur();
497
+ return;
498
+ }
499
+ if (e.key === "ArrowDown") {
500
+ if (!this.active) {
501
+ this.show();
502
+ return;
503
+ }
504
+ t > 0 && (e.preventDefault(), this.highlightedIndex = (this.highlightedIndex + 1) % t);
505
+ return;
506
+ }
507
+ if (e.key === "ArrowUp") {
508
+ t > 0 && this.active && (e.preventDefault(), this.highlightedIndex = this.highlightedIndex <= 0 ? t - 1 : this.highlightedIndex - 1);
509
+ return;
510
+ }
511
+ if (e.key === "Enter") {
512
+ if (this.active && this.highlightedIndex >= 0 && this.highlightedIndex < t) {
513
+ let t = this.suggestions[this.highlightedIndex];
514
+ t !== void 0 && (e.preventDefault(), this.selectSuggestion(t, this.highlightedIndex));
515
+ } else this.emitEvent("search", { value: this.value });
516
+ }
517
+ }, this.handleTriggerClick = (e) => {
518
+ e.stopPropagation(), this.show();
519
+ }, this.handleTriggerKeyDown = (e) => {
520
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.show());
521
+ }, this.handleTrailingTriggerClick = (e) => {
522
+ e.stopPropagation(), this.emitEvent("trailing-icon-click", { icon: this.trailingIcon }) && this.show();
523
+ }, this.handleBackClick = (e) => {
524
+ e.stopPropagation(), this.close();
525
+ }, this.handleScrimClick = () => {
526
+ this.close();
527
+ }, this.handleClearClick = (e) => {
528
+ e.stopPropagation(), this.clear();
529
+ };
530
+ }
531
+ static {
532
+ this.styles = [t.styles, l];
533
+ }
534
+ connectedCallback() {
535
+ super.connectedCallback(), this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value), this.toggleAttribute("active", this.active), this.toggleAttribute("collapse-on-mobile", this.collapseOnMobile);
536
+ }
537
+ willUpdate(e) {
538
+ super.willUpdate(e), e.has("value") && (this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value)), e.has("active") && (this.toggleAttribute("active", this.active), this.active || (this.highlightedIndex = -1)), e.has("collapseOnMobile") && this.toggleAttribute("collapse-on-mobile", this.collapseOnMobile);
539
+ }
540
+ formResetCallback() {
541
+ this.value = "", this.setFormValue(null), this.toggleAttribute("has-value", !1), this.highlightedIndex = -1;
542
+ }
543
+ focus() {
544
+ this.inputElement?.focus();
545
+ }
546
+ show() {
547
+ this.active || (this.active = !0, this.emitEvent("active-change", { active: !0 })), this.updateComplete.then(() => {
548
+ this.inputElement?.focus();
549
+ });
550
+ }
551
+ open() {
552
+ this.show();
553
+ }
554
+ close() {
555
+ this.active && (this.active = !1, this.highlightedIndex = -1, this.emitEvent("active-change", { active: !1 }));
556
+ }
557
+ collapse() {
558
+ this.close();
559
+ }
560
+ toggle() {
561
+ this.active ? this.close() : this.show();
562
+ }
563
+ clear() {
564
+ this.value = "", this.setFormValue(""), this.toggleAttribute("has-value", !1), this.highlightedIndex = -1, this.emitEvent("input", { value: "" }), this.emitEvent("clear"), this.inputElement?.focus();
565
+ }
566
+ selectSuggestion(e, t) {
567
+ let n = typeof e == "string" ? e : e.label, r = typeof e == "string" ? e : e.value ?? e.label;
568
+ this.value = r, this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value), this.emitEvent("suggestion-select", {
569
+ suggestion: e,
570
+ label: n,
571
+ value: r,
572
+ index: t
573
+ }), this.emitEvent("search", {
574
+ value: this.value,
575
+ suggestion: e
576
+ }), this.autoDeactivateOnSelect && this.close();
577
+ }
578
+ renderSuggestionItem(e, t) {
579
+ let n = typeof e == "string", a = n ? e : e.label, o = n ? void 0 : e.supportingText, s = n ? void 0 : e.trailingSupportingText, c = !n && e.icon ? e.icon : "history", l = this.highlightedIndex === t;
580
+ return r`
528
581
  <div
529
- class="suggestion-item ${d ? "highlighted" : ""}"
582
+ class="suggestion-item ${l ? "highlighted" : ""}"
530
583
  role="option"
531
- aria-selected=${d ? "true" : "false"}
532
- @click=${() => this.selectSuggestion(t, e)}
584
+ aria-selected=${l ? "true" : "false"}
585
+ @click=${() => this.selectSuggestion(e, t)}
533
586
  >
534
587
  <span class="suggestion-icon">
535
- <md-icon name=${b}></md-icon>
588
+ <md-icon name=${c}></md-icon>
536
589
  </span>
537
590
  <div class="suggestion-text">
538
- <span class="suggestion-label">${n}</span>
539
- ${c ? l`<span class="suggestion-supporting">${c}</span>` : r}
591
+ <span class="suggestion-label">${a}</span>
592
+ ${o ? r`<span class="suggestion-supporting">${o}</span>` : i}
540
593
  </div>
541
- ${h ? l`<span class="suggestion-trailing">${h}</span>` : r}
594
+ ${s ? r`<span class="suggestion-trailing">${s}</span>` : i}
542
595
  </div>
543
596
  `;
544
- }
545
- render() {
546
- const t = this.active && this.showBackButton, e = !!this.trailingIcon;
547
- return l`
597
+ }
598
+ render() {
599
+ let e = this.active && this.showBackButton, t = !!this.trailingIcon;
600
+ return r`
548
601
  <div
549
- class="search-trigger-container ${e ? "has-trailing" : ""}"
602
+ class="search-trigger-container ${t ? "has-trailing" : ""}"
550
603
  role="button"
551
604
  tabindex="0"
552
605
  aria-label=${this.placeholder || "Search"}
@@ -566,7 +619,7 @@ var y = m`
566
619
  <md-icon name=${this.leadingIcon || "search"}></md-icon>
567
620
  </button>
568
621
 
569
- ${e ? l`
622
+ ${t ? r`
570
623
  <div class="trigger-divider" aria-hidden="true"></div>
571
624
  <button
572
625
  class="trigger-btn trigger-trailing-btn"
@@ -578,7 +631,7 @@ var y = m`
578
631
  >
579
632
  <md-icon name=${this.trailingIcon}></md-icon>
580
633
  </button>
581
- ` : r}
634
+ ` : i}
582
635
  </div>
583
636
 
584
637
  <div class="scrim" @click=${this.handleScrimClick}></div>
@@ -587,7 +640,7 @@ var y = m`
587
640
  <div class="search-bar-header">
588
641
  <span class="leading-slot">
589
642
  <slot name="leading-icon">
590
- ${t ? l`
643
+ ${e ? r`
591
644
  <button
592
645
  class="icon-btn"
593
646
  type="button"
@@ -596,7 +649,7 @@ var y = m`
596
649
  >
597
650
  <md-icon name=${this.activeLeadingIcon}></md-icon>
598
651
  </button>
599
- ` : l`
652
+ ` : r`
600
653
  <span class="icon-btn" style="cursor: default;">
601
654
  <md-icon name=${this.leadingIcon}></md-icon>
602
655
  </span>
@@ -623,7 +676,7 @@ var y = m`
623
676
  </div>
624
677
 
625
678
  <span class="trailing-slot">
626
- ${this.showClearButton && this.value ? l`
679
+ ${this.showClearButton && this.value ? r`
627
680
  <button
628
681
  class="icon-btn clear-btn"
629
682
  type="button"
@@ -632,14 +685,14 @@ var y = m`
632
685
  >
633
686
  <md-icon name="close"></md-icon>
634
687
  </button>
635
- ` : r}
688
+ ` : i}
636
689
 
637
690
  <slot name="trailing-icon">
638
- ${this.trailingIcon ? l`
691
+ ${this.trailingIcon ? r`
639
692
  <span class="icon-btn" style="cursor: default;">
640
693
  <md-icon name=${this.trailingIcon}></md-icon>
641
694
  </span>
642
- ` : r}
695
+ ` : i}
643
696
  </slot>
644
697
  </span>
645
698
  </div>
@@ -648,7 +701,7 @@ var y = m`
648
701
 
649
702
  <div class="suggestions-container" role="listbox" aria-label="Suggestions">
650
703
  <slot name="suggestions">
651
- ${this.suggestions.map((s, n) => this.renderSuggestionItem(s, n))}
704
+ ${this.suggestions.map((e, t) => this.renderSuggestionItem(e, t))}
652
705
  </slot>
653
706
  <div class="extra-content">
654
707
  <slot></slot>
@@ -656,61 +709,49 @@ var y = m`
656
709
  </div>
657
710
  </div>
658
711
  `;
659
- }
712
+ }
660
713
  };
661
- o([a({ type: String })], i.prototype, "value", void 0);
662
- o([a({ type: String })], i.prototype, "placeholder", void 0);
663
- o([a({
664
- type: Boolean,
665
- reflect: !0
666
- })], i.prototype, "active", void 0);
667
- o([a({ type: Array })], i.prototype, "suggestions", void 0);
668
- o([a({
669
- type: String,
670
- attribute: "leading-icon"
671
- })], i.prototype, "leadingIcon", void 0);
672
- o([a({
673
- type: String,
674
- attribute: "active-leading-icon"
675
- })], i.prototype, "activeLeadingIcon", void 0);
676
- o([a({
677
- type: String,
678
- attribute: "trailing-icon"
679
- })], i.prototype, "trailingIcon", void 0);
680
- o([a({
681
- type: Boolean,
682
- attribute: "show-back-button"
683
- })], i.prototype, "showBackButton", void 0);
684
- o([a({
685
- type: Boolean,
686
- attribute: "show-clear-button"
687
- })], i.prototype, "showClearButton", void 0);
688
- o([a({
689
- type: Boolean,
690
- reflect: !0
691
- })], i.prototype, "responsive", void 0);
692
- o([a({
693
- type: Boolean,
694
- attribute: "collapse-on-mobile",
695
- reflect: !0
696
- })], i.prototype, "collapseOnMobile", void 0);
697
- o([a({
698
- type: Boolean,
699
- reflect: !0
700
- })], i.prototype, "fullscreen", void 0);
701
- o([a({
702
- type: Boolean,
703
- attribute: "auto-deactivate-on-select"
704
- })], i.prototype, "autoDeactivateOnSelect", void 0);
705
- o([f()], i.prototype, "highlightedIndex", void 0);
706
- o([x("input")], i.prototype, "inputElement", void 0);
707
- i = o([u("md-search-bar")], i);
708
- var g = class extends i {
709
- };
710
- g = o([u("md-search")], g);
711
- export {
712
- i as n,
713
- g as t
714
- };
715
-
716
- //# sourceMappingURL=search-bar-fUD0qU2P.js.map
714
+ e([o({
715
+ type: String,
716
+ reflect: !0
717
+ })], u.prototype, "size", void 0), e([o({
718
+ type: Boolean,
719
+ reflect: !0
720
+ })], u.prototype, "compact", void 0), e([o({ type: String })], u.prototype, "value", void 0), e([o({ type: String })], u.prototype, "placeholder", void 0), e([o({
721
+ type: Boolean,
722
+ reflect: !0
723
+ })], u.prototype, "active", void 0), e([o({ type: Array })], u.prototype, "suggestions", void 0), e([o({
724
+ type: String,
725
+ attribute: "leading-icon"
726
+ })], u.prototype, "leadingIcon", void 0), e([o({
727
+ type: String,
728
+ attribute: "active-leading-icon"
729
+ })], u.prototype, "activeLeadingIcon", void 0), e([o({
730
+ type: String,
731
+ attribute: "trailing-icon"
732
+ })], u.prototype, "trailingIcon", void 0), e([o({
733
+ type: Boolean,
734
+ attribute: "show-back-button"
735
+ })], u.prototype, "showBackButton", void 0), e([o({
736
+ type: Boolean,
737
+ attribute: "show-clear-button"
738
+ })], u.prototype, "showClearButton", void 0), e([o({
739
+ type: Boolean,
740
+ reflect: !0
741
+ })], u.prototype, "responsive", void 0), e([o({
742
+ type: Boolean,
743
+ attribute: "collapse-on-mobile",
744
+ reflect: !0
745
+ })], u.prototype, "collapseOnMobile", void 0), e([o({
746
+ type: Boolean,
747
+ reflect: !0
748
+ })], u.prototype, "fullscreen", void 0), e([o({
749
+ type: Boolean,
750
+ attribute: "auto-deactivate-on-select"
751
+ })], u.prototype, "autoDeactivateOnSelect", void 0), e([c()], u.prototype, "highlightedIndex", void 0), e([s("input")], u.prototype, "inputElement", void 0), u = e([a("md-search-bar")], u);
752
+ var d = class extends u {};
753
+ d = e([a("md-search")], d);
754
+ //#endregion
755
+ export { u as n, d as t };
756
+
757
+ //# sourceMappingURL=search-bar-B6xxVT7u.js.map