@francofantomius/material-components 1.1.2 → 1.3.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 (379) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/README.md +2 -1
  3. package/custom-elements.json +922 -37
  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-CfN-emMP.js → search-bar-B4lAXza_.js} +304 -226
  67. package/dist/chunks/search-bar-B4lAXza_.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-VzrSd-r5.js → top-app-bar-TrnjKzOX.js} +46 -53
  93. package/dist/chunks/{top-app-bar-VzrSd-r5.js.map → top-app-bar-TrnjKzOX.js.map} +1 -1
  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 +94 -13
  152. package/package.json +6 -17
  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-CfN-emMP.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/components/account-menu/account-menu.css.d.ts +0 -3
  175. package/dist/components/account-menu/account-menu.css.d.ts.map +0 -1
  176. package/dist/components/account-menu/account-menu.d.ts +0 -111
  177. package/dist/components/account-menu/account-menu.d.ts.map +0 -1
  178. package/dist/components/app-drawer/app-drawer.css.d.ts +0 -3
  179. package/dist/components/app-drawer/app-drawer.css.d.ts.map +0 -1
  180. package/dist/components/app-drawer/app-drawer.d.ts +0 -173
  181. package/dist/components/app-drawer/app-drawer.d.ts.map +0 -1
  182. package/dist/components/badge/badge.css.d.ts +0 -2
  183. package/dist/components/badge/badge.css.d.ts.map +0 -1
  184. package/dist/components/badge/badge.d.ts +0 -16
  185. package/dist/components/badge/badge.d.ts.map +0 -1
  186. package/dist/components/bottom-sheet/bottom-sheet.css.d.ts +0 -2
  187. package/dist/components/bottom-sheet/bottom-sheet.css.d.ts.map +0 -1
  188. package/dist/components/bottom-sheet/bottom-sheet.d.ts +0 -69
  189. package/dist/components/bottom-sheet/bottom-sheet.d.ts.map +0 -1
  190. package/dist/components/button/button.css.d.ts +0 -2
  191. package/dist/components/button/button.css.d.ts.map +0 -1
  192. package/dist/components/button/button.d.ts +0 -25
  193. package/dist/components/button/button.d.ts.map +0 -1
  194. package/dist/components/button-group/button-group.css.d.ts +0 -2
  195. package/dist/components/button-group/button-group.css.d.ts.map +0 -1
  196. package/dist/components/button-group/button-group.d.ts +0 -28
  197. package/dist/components/button-group/button-group.d.ts.map +0 -1
  198. package/dist/components/card/card.css.d.ts +0 -2
  199. package/dist/components/card/card.css.d.ts.map +0 -1
  200. package/dist/components/card/card.d.ts +0 -18
  201. package/dist/components/card/card.d.ts.map +0 -1
  202. package/dist/components/carousel/carousel-item.d.ts +0 -33
  203. package/dist/components/carousel/carousel-item.d.ts.map +0 -1
  204. package/dist/components/carousel/carousel.css.d.ts +0 -3
  205. package/dist/components/carousel/carousel.css.d.ts.map +0 -1
  206. package/dist/components/carousel/carousel.d.ts +0 -81
  207. package/dist/components/carousel/carousel.d.ts.map +0 -1
  208. package/dist/components/checkbox/checkbox.css.d.ts +0 -2
  209. package/dist/components/checkbox/checkbox.css.d.ts.map +0 -1
  210. package/dist/components/checkbox/checkbox.d.ts +0 -24
  211. package/dist/components/checkbox/checkbox.d.ts.map +0 -1
  212. package/dist/components/chip/chip.css.d.ts +0 -3
  213. package/dist/components/chip/chip.css.d.ts.map +0 -1
  214. package/dist/components/chip/chip.d.ts +0 -27
  215. package/dist/components/chip/chip.d.ts.map +0 -1
  216. package/dist/components/code/code.css.d.ts +0 -2
  217. package/dist/components/code/code.css.d.ts.map +0 -1
  218. package/dist/components/code/code.d.ts +0 -106
  219. package/dist/components/code/code.d.ts.map +0 -1
  220. package/dist/components/code/highlighter.d.ts +0 -8
  221. package/dist/components/code/highlighter.d.ts.map +0 -1
  222. package/dist/components/code/linter.d.ts +0 -44
  223. package/dist/components/code/linter.d.ts.map +0 -1
  224. package/dist/components/date-picker/date-picker.css.d.ts +0 -2
  225. package/dist/components/date-picker/date-picker.css.d.ts.map +0 -1
  226. package/dist/components/date-picker/date-picker.d.ts +0 -59
  227. package/dist/components/date-picker/date-picker.d.ts.map +0 -1
  228. package/dist/components/dialog/dialog.css.d.ts +0 -2
  229. package/dist/components/dialog/dialog.css.d.ts.map +0 -1
  230. package/dist/components/dialog/dialog.d.ts +0 -22
  231. package/dist/components/dialog/dialog.d.ts.map +0 -1
  232. package/dist/components/divider/divider.css.d.ts +0 -2
  233. package/dist/components/divider/divider.css.d.ts.map +0 -1
  234. package/dist/components/divider/divider.d.ts +0 -16
  235. package/dist/components/divider/divider.d.ts.map +0 -1
  236. package/dist/components/fab/fab.css.d.ts +0 -2
  237. package/dist/components/fab/fab.css.d.ts.map +0 -1
  238. package/dist/components/fab/fab.d.ts +0 -19
  239. package/dist/components/fab/fab.d.ts.map +0 -1
  240. package/dist/components/fab-menu/fab-menu-item.d.ts +0 -35
  241. package/dist/components/fab-menu/fab-menu-item.d.ts.map +0 -1
  242. package/dist/components/fab-menu/fab-menu.css.d.ts +0 -3
  243. package/dist/components/fab-menu/fab-menu.css.d.ts.map +0 -1
  244. package/dist/components/fab-menu/fab-menu.d.ts +0 -72
  245. package/dist/components/fab-menu/fab-menu.d.ts.map +0 -1
  246. package/dist/components/icon/icon.css.d.ts +0 -2
  247. package/dist/components/icon/icon.css.d.ts.map +0 -1
  248. package/dist/components/icon/icon.d.ts +0 -15
  249. package/dist/components/icon/icon.d.ts.map +0 -1
  250. package/dist/components/icon-button/icon-button.css.d.ts +0 -2
  251. package/dist/components/icon-button/icon-button.css.d.ts.map +0 -1
  252. package/dist/components/icon-button/icon-button.d.ts +0 -22
  253. package/dist/components/icon-button/icon-button.d.ts.map +0 -1
  254. package/dist/components/list/list.css.d.ts +0 -3
  255. package/dist/components/list/list.css.d.ts.map +0 -1
  256. package/dist/components/list/list.d.ts +0 -25
  257. package/dist/components/list/list.d.ts.map +0 -1
  258. package/dist/components/loading-indicator/loading-indicator.css.d.ts +0 -2
  259. package/dist/components/loading-indicator/loading-indicator.css.d.ts.map +0 -1
  260. package/dist/components/loading-indicator/loading-indicator.d.ts +0 -48
  261. package/dist/components/loading-indicator/loading-indicator.d.ts.map +0 -1
  262. package/dist/components/menu/menu-item.d.ts +0 -41
  263. package/dist/components/menu/menu-item.d.ts.map +0 -1
  264. package/dist/components/menu/menu.css.d.ts +0 -3
  265. package/dist/components/menu/menu.css.d.ts.map +0 -1
  266. package/dist/components/menu/menu.d.ts +0 -91
  267. package/dist/components/menu/menu.d.ts.map +0 -1
  268. package/dist/components/navigation-bar/navigation-bar-item.d.ts +0 -49
  269. package/dist/components/navigation-bar/navigation-bar-item.d.ts.map +0 -1
  270. package/dist/components/navigation-bar/navigation-bar.css.d.ts +0 -3
  271. package/dist/components/navigation-bar/navigation-bar.css.d.ts.map +0 -1
  272. package/dist/components/navigation-bar/navigation-bar.d.ts +0 -50
  273. package/dist/components/navigation-bar/navigation-bar.d.ts.map +0 -1
  274. package/dist/components/navigation-drawer/navigation-drawer.css.d.ts +0 -3
  275. package/dist/components/navigation-drawer/navigation-drawer.css.d.ts.map +0 -1
  276. package/dist/components/navigation-drawer/navigation-drawer.d.ts +0 -76
  277. package/dist/components/navigation-drawer/navigation-drawer.d.ts.map +0 -1
  278. package/dist/components/navigation-rail/navigation-rail-item.d.ts +0 -36
  279. package/dist/components/navigation-rail/navigation-rail-item.d.ts.map +0 -1
  280. package/dist/components/navigation-rail/navigation-rail.css.d.ts +0 -3
  281. package/dist/components/navigation-rail/navigation-rail.css.d.ts.map +0 -1
  282. package/dist/components/navigation-rail/navigation-rail.d.ts +0 -43
  283. package/dist/components/navigation-rail/navigation-rail.d.ts.map +0 -1
  284. package/dist/components/player/player.css.d.ts +0 -2
  285. package/dist/components/player/player.css.d.ts.map +0 -1
  286. package/dist/components/player/player.d.ts +0 -99
  287. package/dist/components/player/player.d.ts.map +0 -1
  288. package/dist/components/progress/progress.css.d.ts +0 -2
  289. package/dist/components/progress/progress.css.d.ts.map +0 -1
  290. package/dist/components/progress/progress.d.ts +0 -21
  291. package/dist/components/progress/progress.d.ts.map +0 -1
  292. package/dist/components/radio/radio.css.d.ts +0 -3
  293. package/dist/components/radio/radio.css.d.ts.map +0 -1
  294. package/dist/components/radio/radio.d.ts +0 -38
  295. package/dist/components/radio/radio.d.ts.map +0 -1
  296. package/dist/components/search-bar/search-bar.css.d.ts +0 -2
  297. package/dist/components/search-bar/search-bar.css.d.ts.map +0 -1
  298. package/dist/components/search-bar/search-bar.d.ts +0 -84
  299. package/dist/components/search-bar/search-bar.d.ts.map +0 -1
  300. package/dist/components/segmented-button/segmented-button.css.d.ts +0 -3
  301. package/dist/components/segmented-button/segmented-button.css.d.ts.map +0 -1
  302. package/dist/components/segmented-button/segmented-button.d.ts +0 -40
  303. package/dist/components/segmented-button/segmented-button.d.ts.map +0 -1
  304. package/dist/components/side-sheet/side-sheet.css.d.ts +0 -2
  305. package/dist/components/side-sheet/side-sheet.css.d.ts.map +0 -1
  306. package/dist/components/side-sheet/side-sheet.d.ts +0 -57
  307. package/dist/components/side-sheet/side-sheet.d.ts.map +0 -1
  308. package/dist/components/slider/slider.css.d.ts +0 -2
  309. package/dist/components/slider/slider.css.d.ts.map +0 -1
  310. package/dist/components/slider/slider.d.ts +0 -51
  311. package/dist/components/slider/slider.d.ts.map +0 -1
  312. package/dist/components/snackbar/snackbar.css.d.ts +0 -2
  313. package/dist/components/snackbar/snackbar.css.d.ts.map +0 -1
  314. package/dist/components/snackbar/snackbar.d.ts +0 -24
  315. package/dist/components/snackbar/snackbar.d.ts.map +0 -1
  316. package/dist/components/split-button/split-button.css.d.ts +0 -2
  317. package/dist/components/split-button/split-button.css.d.ts.map +0 -1
  318. package/dist/components/split-button/split-button.d.ts +0 -89
  319. package/dist/components/split-button/split-button.d.ts.map +0 -1
  320. package/dist/components/switch/switch.css.d.ts +0 -2
  321. package/dist/components/switch/switch.css.d.ts.map +0 -1
  322. package/dist/components/switch/switch.d.ts +0 -22
  323. package/dist/components/switch/switch.d.ts.map +0 -1
  324. package/dist/components/table/table.css.d.ts +0 -8
  325. package/dist/components/table/table.css.d.ts.map +0 -1
  326. package/dist/components/table/table.d.ts +0 -158
  327. package/dist/components/table/table.d.ts.map +0 -1
  328. package/dist/components/tabs/tabs.css.d.ts +0 -3
  329. package/dist/components/tabs/tabs.css.d.ts.map +0 -1
  330. package/dist/components/tabs/tabs.d.ts +0 -33
  331. package/dist/components/tabs/tabs.d.ts.map +0 -1
  332. package/dist/components/text-field/text-field.css.d.ts +0 -2
  333. package/dist/components/text-field/text-field.css.d.ts.map +0 -1
  334. package/dist/components/text-field/text-field.d.ts +0 -40
  335. package/dist/components/text-field/text-field.d.ts.map +0 -1
  336. package/dist/components/time-picker/time-picker.css.d.ts +0 -2
  337. package/dist/components/time-picker/time-picker.css.d.ts.map +0 -1
  338. package/dist/components/time-picker/time-picker.d.ts +0 -87
  339. package/dist/components/time-picker/time-picker.d.ts.map +0 -1
  340. package/dist/components/toolbar/toolbar.css.d.ts +0 -2
  341. package/dist/components/toolbar/toolbar.css.d.ts.map +0 -1
  342. package/dist/components/toolbar/toolbar.d.ts +0 -53
  343. package/dist/components/toolbar/toolbar.d.ts.map +0 -1
  344. package/dist/components/tooltip/tooltip.css.d.ts +0 -2
  345. package/dist/components/tooltip/tooltip.css.d.ts.map +0 -1
  346. package/dist/components/tooltip/tooltip.d.ts +0 -89
  347. package/dist/components/tooltip/tooltip.d.ts.map +0 -1
  348. package/dist/components/top-app-bar/top-app-bar.css.d.ts +0 -2
  349. package/dist/components/top-app-bar/top-app-bar.css.d.ts.map +0 -1
  350. package/dist/components/top-app-bar/top-app-bar.d.ts +0 -29
  351. package/dist/components/top-app-bar/top-app-bar.d.ts.map +0 -1
  352. package/dist/index.d.ts +0 -52
  353. package/dist/index.d.ts.map +0 -1
  354. package/dist/internal/base-component.d.ts +0 -13
  355. package/dist/internal/base-component.d.ts.map +0 -1
  356. package/dist/internal/focus-ring/focus-ring.css.d.ts +0 -2
  357. package/dist/internal/focus-ring/focus-ring.css.d.ts.map +0 -1
  358. package/dist/internal/focus-ring/focus-ring.d.ts +0 -18
  359. package/dist/internal/focus-ring/focus-ring.d.ts.map +0 -1
  360. package/dist/internal/form-associated.d.ts +0 -26
  361. package/dist/internal/form-associated.d.ts.map +0 -1
  362. package/dist/internal/ripple/ripple.css.d.ts +0 -2
  363. package/dist/internal/ripple/ripple.css.d.ts.map +0 -1
  364. package/dist/internal/ripple/ripple.d.ts +0 -23
  365. package/dist/internal/ripple/ripple.d.ts.map +0 -1
  366. package/dist/tokens/colors.d.ts +0 -42
  367. package/dist/tokens/colors.d.ts.map +0 -1
  368. package/dist/tokens/elevation.d.ts +0 -9
  369. package/dist/tokens/elevation.d.ts.map +0 -1
  370. package/dist/tokens/index.d.ts +0 -7
  371. package/dist/tokens/index.d.ts.map +0 -1
  372. package/dist/tokens/motion.d.ts +0 -21
  373. package/dist/tokens/motion.d.ts.map +0 -1
  374. package/dist/tokens/shape.d.ts +0 -10
  375. package/dist/tokens/shape.d.ts.map +0 -1
  376. package/dist/tokens/theme.css.d.ts +0 -4
  377. package/dist/tokens/theme.css.d.ts.map +0 -1
  378. package/dist/tokens/typography.d.ts +0 -101
  379. package/dist/tokens/typography.d.ts.map +0 -1
@@ -1,9 +1,12 @@
1
- import { t as a } 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 r, nothing as l } from "lit";
5
- import { customElement as v, property as s, 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 "./ripple-CBOKeVfm.js";
4
+ import "./focus-ring-K6SY_mIm.js";
5
+ import "./icon-FvKeXi61.js";
6
+ import { css as n, html as r, nothing as i } from "lit";
7
+ import { customElement as a, property as o, query as s, state as c } from "lit/decorators.js";
8
+ //#region src/components/search-bar/search-bar.css.ts
9
+ var l = n`
7
10
  :host {
8
11
  display: block;
9
12
  box-sizing: border-box;
@@ -104,6 +107,20 @@ var y = m`
104
107
  flex-shrink: 0;
105
108
  }
106
109
 
110
+ .leading-slot.empty,
111
+ :host([has-no-leading]) .leading-slot {
112
+ display: none;
113
+ }
114
+
115
+ :host([has-no-leading]) input {
116
+ padding-left: 8px;
117
+ }
118
+
119
+ .leading-slot ::slotted(md-icon-button),
120
+ .trailing-slot ::slotted(md-icon-button) {
121
+ --md-icon-button-size: var(--_btn-size);
122
+ }
123
+
107
124
  .icon-btn {
108
125
  display: inline-flex;
109
126
  align-items: center;
@@ -118,6 +135,9 @@ var y = m`
118
135
  padding: 0;
119
136
  outline: none;
120
137
  position: relative;
138
+ overflow: hidden;
139
+ user-select: none;
140
+ -webkit-tap-highlight-color: transparent;
121
141
  transition: background-color 150ms ease;
122
142
  }
123
143
 
@@ -182,11 +202,15 @@ var y = m`
182
202
  /* Active Docked Mode */
183
203
  :host([active]) .search-container {
184
204
  z-index: 50;
185
- border-radius: var(--_shape-active);
205
+ border-radius: var(--_shape);
186
206
  box-shadow: var(--_elevation-active);
187
207
  }
188
208
 
189
- /* Divider when active */
209
+ :host([active][has-suggestions]) .search-container {
210
+ border-radius: var(--_shape-active);
211
+ }
212
+
213
+ /* Divider when active and has suggestions */
190
214
  .divider {
191
215
  display: none;
192
216
  height: 1px;
@@ -194,7 +218,7 @@ var y = m`
194
218
  margin: 0 16px;
195
219
  }
196
220
 
197
- :host([active]) .divider {
221
+ :host([active][has-suggestions]) .divider {
198
222
  display: block;
199
223
  }
200
224
 
@@ -208,7 +232,7 @@ var y = m`
208
232
  box-sizing: border-box;
209
233
  }
210
234
 
211
- :host([active]) .suggestions-container {
235
+ :host([active][has-suggestions]) .suggestions-container {
212
236
  display: flex;
213
237
  }
214
238
 
@@ -347,6 +371,8 @@ var y = m`
347
371
  margin: 0;
348
372
  outline: none;
349
373
  position: relative;
374
+ overflow: hidden;
375
+ user-select: none;
350
376
  transition: background-color 150ms ease, color 150ms ease;
351
377
  -webkit-tap-highlight-color: transparent;
352
378
  }
@@ -480,124 +506,155 @@ var y = m`
480
506
  max-height: calc(100vh - 57px);
481
507
  max-height: calc(100dvh - 57px);
482
508
  }
483
- `, t = class extends p {
484
- constructor(...i) {
485
- super(...i), 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 = () => {
486
- this.active || (this.active = !0, this.emitEvent("active-change", { active: !0 }));
487
- }, this.handleInput = (e) => {
488
- const o = e.target;
489
- this.value = o.value, this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value), this.highlightedIndex = -1, this.emitEvent("input", { value: this.value });
490
- }, this.handleChange = () => {
491
- this.emitEvent("change", { value: this.value });
492
- }, this.handleKeyDown = (e) => {
493
- const o = this.suggestions.length;
494
- if (e.key === "Escape") {
495
- e.preventDefault(), this.close(), this.inputElement?.blur();
496
- return;
497
- }
498
- if (e.key === "ArrowDown") {
499
- if (!this.active) {
500
- this.show();
501
- return;
502
- }
503
- o > 0 && (e.preventDefault(), this.highlightedIndex = (this.highlightedIndex + 1) % o);
504
- return;
505
- }
506
- if (e.key === "ArrowUp") {
507
- o > 0 && this.active && (e.preventDefault(), this.highlightedIndex = this.highlightedIndex <= 0 ? o - 1 : this.highlightedIndex - 1);
508
- return;
509
- }
510
- if (e.key === "Enter")
511
- if (this.active && this.highlightedIndex >= 0 && this.highlightedIndex < o) {
512
- const n = this.suggestions[this.highlightedIndex];
513
- n !== void 0 && (e.preventDefault(), this.selectSuggestion(n, this.highlightedIndex));
514
- } else this.emitEvent("search", { value: this.value });
515
- }, this.handleTriggerClick = (e) => {
516
- e.stopPropagation(), this.show();
517
- }, this.handleTriggerKeyDown = (e) => {
518
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.show());
519
- }, this.handleTrailingTriggerClick = (e) => {
520
- e.stopPropagation(), this.emitEvent("trailing-icon-click", { icon: this.trailingIcon }) && this.show();
521
- }, this.handleBackClick = (e) => {
522
- e.stopPropagation(), this.close();
523
- }, this.handleScrimClick = () => {
524
- this.close();
525
- }, this.handleClearClick = (e) => {
526
- e.stopPropagation(), this.clear();
527
- };
528
- }
529
- static {
530
- this.styles = [p.styles, y];
531
- }
532
- connectedCallback() {
533
- super.connectedCallback(), this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value), this.toggleAttribute("active", this.active), this.toggleAttribute("collapse-on-mobile", this.collapseOnMobile);
534
- }
535
- willUpdate(i) {
536
- super.willUpdate(i), i.has("value") && (this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value)), i.has("active") && (this.toggleAttribute("active", this.active), this.active || (this.highlightedIndex = -1)), i.has("collapseOnMobile") && this.toggleAttribute("collapse-on-mobile", this.collapseOnMobile);
537
- }
538
- formResetCallback() {
539
- this.value = "", this.setFormValue(null), this.toggleAttribute("has-value", !1), this.highlightedIndex = -1;
540
- }
541
- focus() {
542
- this.inputElement?.focus();
543
- }
544
- show() {
545
- this.active || (this.active = !0, this.emitEvent("active-change", { active: !0 })), this.updateComplete.then(() => {
546
- this.inputElement?.focus();
547
- });
548
- }
549
- open() {
550
- this.show();
551
- }
552
- close() {
553
- this.active && (this.active = !1, this.highlightedIndex = -1, this.emitEvent("active-change", { active: !1 }));
554
- }
555
- collapse() {
556
- this.close();
557
- }
558
- toggle() {
559
- this.active ? this.close() : this.show();
560
- }
561
- clear() {
562
- this.value = "", this.setFormValue(""), this.toggleAttribute("has-value", !1), this.highlightedIndex = -1, this.emitEvent("input", { value: "" }), this.emitEvent("clear"), this.inputElement?.focus();
563
- }
564
- selectSuggestion(i, e) {
565
- const o = typeof i == "string" ? i : i.label, n = typeof i == "string" ? i : i.value ?? i.label;
566
- this.value = n, this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value), this.emitEvent("suggestion-select", {
567
- suggestion: i,
568
- label: o,
569
- value: n,
570
- index: e
571
- }), this.emitEvent("search", {
572
- value: this.value,
573
- suggestion: i
574
- }), this.autoDeactivateOnSelect && this.close();
575
- }
576
- renderSuggestionItem(i, e) {
577
- const o = typeof i == "string", n = o ? i : i.label, c = o ? void 0 : i.supportingText, h = o ? void 0 : i.trailingSupportingText, b = !o && i.icon ? i.icon : "history", d = this.highlightedIndex === e;
578
- return r`
509
+ `, u = class extends t {
510
+ constructor(...e) {
511
+ super(...e), this.size = "medium", this.compact = !1, this.value = "", this.placeholder = "Search", this.active = !1, this.suggestions = [], this.searchIconPosition = "leading", 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.hasLeadingSlotContent = !1, this.hasCustomContent = !1, this.handleLeadingSlotChange = (e) => {
512
+ let t = e.target.assignedElements({ flatten: !0 });
513
+ this.hasLeadingSlotContent = t.length > 0, this.requestUpdate();
514
+ }, this.handleContentSlotChange = (e) => {
515
+ let t = e.target.assignedElements({ flatten: !0 });
516
+ this.hasCustomContent = t.length > 0, this.requestUpdate();
517
+ }, this.handleFocus = () => {
518
+ this.active || (this.active = !0, this.emitEvent("active-change", { active: !0 }));
519
+ }, this.handleInput = (e) => {
520
+ let t = e.target;
521
+ this.value = t.value, this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value), this.highlightedIndex = -1, this.emitEvent("input", { value: this.value });
522
+ }, this.handleChange = () => {
523
+ this.emitEvent("change", { value: this.value });
524
+ }, this.handleKeyDown = (e) => {
525
+ let t = this.suggestions.length;
526
+ if (e.key === "Escape") {
527
+ e.preventDefault(), this.close(), this.inputElement?.blur();
528
+ return;
529
+ }
530
+ if (e.key === "ArrowDown") {
531
+ if (!this.active) {
532
+ this.show();
533
+ return;
534
+ }
535
+ t > 0 && (e.preventDefault(), this.highlightedIndex = (this.highlightedIndex + 1) % t);
536
+ return;
537
+ }
538
+ if (e.key === "ArrowUp") {
539
+ t > 0 && this.active && (e.preventDefault(), this.highlightedIndex = this.highlightedIndex <= 0 ? t - 1 : this.highlightedIndex - 1);
540
+ return;
541
+ }
542
+ if (e.key === "Enter") {
543
+ if (this.active && this.highlightedIndex >= 0 && this.highlightedIndex < t) {
544
+ let t = this.suggestions[this.highlightedIndex];
545
+ t !== void 0 && (e.preventDefault(), this.selectSuggestion(t, this.highlightedIndex));
546
+ } else this.emitEvent("search", { value: this.value });
547
+ }
548
+ }, this.handleTriggerClick = (e) => {
549
+ e.stopPropagation(), this.show();
550
+ }, this.handleTriggerKeyDown = (e) => {
551
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.show());
552
+ }, this.handleLeadingClick = (e) => {
553
+ e.stopPropagation();
554
+ let t = this.effectiveLeadingIcon;
555
+ this.emitEvent("leading-icon-click", { icon: t }) && t === "search" && this.show();
556
+ }, this.handleTrailingClick = (e) => {
557
+ e.stopPropagation();
558
+ let t = this.effectiveTrailingIcon;
559
+ this.emitEvent("trailing-icon-click", { icon: t }) && (t === "search" || this.effectiveSearchIconPosition === "trailing") && (this.active || this.show(), this.emitEvent("search", { value: this.value }));
560
+ }, this.handleTrailingTriggerClick = (e) => {
561
+ e.stopPropagation();
562
+ let t = this.effectiveTrailingIcon;
563
+ this.emitEvent("trailing-icon-click", { icon: t }) && (this.show(), (t === "search" || this.effectiveSearchIconPosition === "trailing") && this.emitEvent("search", { value: this.value }));
564
+ }, this.handleBackClick = (e) => {
565
+ e.stopPropagation(), this.close();
566
+ }, this.handleScrimClick = () => {
567
+ this.close();
568
+ }, this.handleClearClick = (e) => {
569
+ e.stopPropagation(), this.clear();
570
+ };
571
+ }
572
+ static {
573
+ this.styles = [t.styles, l];
574
+ }
575
+ get effectiveSearchIconPosition() {
576
+ return this.searchIconPosition === "trailing" || this.searchIconPosition === "right" || this.trailingIcon === "search" ? "trailing" : "leading";
577
+ }
578
+ get effectiveLeadingIcon() {
579
+ return this.effectiveSearchIconPosition === "trailing" ? this.leadingIcon && this.leadingIcon !== "search" ? this.leadingIcon : "" : this.leadingIcon || "search";
580
+ }
581
+ get effectiveTrailingIcon() {
582
+ return this.effectiveSearchIconPosition === "trailing" ? this.trailingIcon || "search" : this.trailingIcon;
583
+ }
584
+ get hasContent() {
585
+ return !!(this.suggestions && this.suggestions.length > 0 || this.hasCustomContent);
586
+ }
587
+ connectedCallback() {
588
+ super.connectedCallback(), this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value), this.toggleAttribute("active", this.active), this.toggleAttribute("collapse-on-mobile", this.collapseOnMobile), this.toggleAttribute("has-suggestions", this.hasContent), this.toggleAttribute("has-no-leading", !this.effectiveLeadingIcon && (!this.active || !this.showBackButton || !this.hasContent) && !this.hasLeadingSlotContent);
589
+ }
590
+ willUpdate(e) {
591
+ 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), this.toggleAttribute("has-suggestions", this.hasContent), this.toggleAttribute("has-no-leading", !this.effectiveLeadingIcon && (!this.active || !this.showBackButton || !this.hasContent) && !this.hasLeadingSlotContent);
592
+ }
593
+ formResetCallback() {
594
+ this.value = "", this.setFormValue(null), this.toggleAttribute("has-value", !1), this.highlightedIndex = -1;
595
+ }
596
+ focus() {
597
+ this.inputElement?.focus();
598
+ }
599
+ show() {
600
+ this.active || (this.active = !0, this.emitEvent("active-change", { active: !0 })), this.updateComplete.then(() => {
601
+ this.inputElement?.focus();
602
+ });
603
+ }
604
+ open() {
605
+ this.show();
606
+ }
607
+ close() {
608
+ this.active && (this.active = !1, this.highlightedIndex = -1, this.emitEvent("active-change", { active: !1 }));
609
+ }
610
+ collapse() {
611
+ this.close();
612
+ }
613
+ toggle() {
614
+ this.active ? this.close() : this.show();
615
+ }
616
+ clear() {
617
+ this.value = "", this.setFormValue(""), this.toggleAttribute("has-value", !1), this.highlightedIndex = -1, this.emitEvent("input", { value: "" }), this.emitEvent("clear"), this.inputElement?.focus();
618
+ }
619
+ selectSuggestion(e, t) {
620
+ let n = typeof e == "string" ? e : e.label, r = typeof e == "string" ? e : e.value ?? e.label;
621
+ this.value = r, this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value), this.emitEvent("suggestion-select", {
622
+ suggestion: e,
623
+ label: n,
624
+ value: r,
625
+ index: t
626
+ }), this.emitEvent("search", {
627
+ value: this.value,
628
+ suggestion: e
629
+ }), this.autoDeactivateOnSelect && this.close();
630
+ }
631
+ renderSuggestionItem(e, t) {
632
+ 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;
633
+ return r`
579
634
  <div
580
- class="suggestion-item ${d ? "highlighted" : ""}"
635
+ class="suggestion-item ${l ? "highlighted" : ""}"
581
636
  role="option"
582
- aria-selected=${d ? "true" : "false"}
583
- @click=${() => this.selectSuggestion(i, e)}
637
+ aria-selected=${l ? "true" : "false"}
638
+ @click=${() => this.selectSuggestion(e, t)}
584
639
  >
585
640
  <span class="suggestion-icon">
586
- <md-icon name=${b}></md-icon>
641
+ <md-icon name=${c}></md-icon>
587
642
  </span>
588
643
  <div class="suggestion-text">
589
- <span class="suggestion-label">${n}</span>
590
- ${c ? r`<span class="suggestion-supporting">${c}</span>` : l}
644
+ <span class="suggestion-label">${a}</span>
645
+ ${o ? r`<span class="suggestion-supporting">${o}</span>` : i}
591
646
  </div>
592
- ${h ? r`<span class="suggestion-trailing">${h}</span>` : l}
647
+ ${s ? r`<span class="suggestion-trailing">${s}</span>` : i}
593
648
  </div>
594
649
  `;
595
- }
596
- render() {
597
- const i = this.active && this.showBackButton, e = !!this.trailingIcon;
598
- return r`
650
+ }
651
+ render() {
652
+ let e = this.fullscreen || this.responsive && typeof window < "u" && window.matchMedia?.("(max-width: 768px)").matches, t = this.active && this.showBackButton && (this.hasContent || e), n = this.effectiveSearchIconPosition, a = this.effectiveLeadingIcon, o = this.effectiveTrailingIcon, s = "search", c = "", l = !1;
653
+ n === "trailing" ? a ? (s = a, c = o || "search", l = !0) : (s = o || "search", l = !1) : (s = a || "search", o && (c = o, l = !0));
654
+ let u = t || !!a || this.hasLeadingSlotContent;
655
+ return r`
599
656
  <div
600
- class="search-trigger-container ${e ? "has-trailing" : ""}"
657
+ class="search-trigger-container ${l ? "has-trailing" : ""}"
601
658
  role="button"
602
659
  tabindex="0"
603
660
  aria-label=${this.placeholder || "Search"}
@@ -609,49 +666,67 @@ var y = m`
609
666
  <button
610
667
  class="trigger-btn"
611
668
  type="button"
612
- aria-label=${this.placeholder || "Search"}
613
- title=${this.placeholder || "Search"}
669
+ aria-label=${s === "menu" ? "Menu" : this.placeholder || "Search"}
670
+ title=${s === "menu" ? "Menu" : this.placeholder || "Search"}
614
671
  ?disabled=${this.disabled}
615
- @click=${this.handleTriggerClick}
672
+ @click=${(e) => {
673
+ a && a !== "search" ? this.handleLeadingClick(e) : this.handleTriggerClick(e);
674
+ }}
616
675
  >
617
- <md-icon name=${this.leadingIcon || "search"}></md-icon>
676
+ <md-ripple ?disabled=${this.disabled}></md-ripple>
677
+ <md-focus-ring></md-focus-ring>
678
+ <md-icon name=${s}></md-icon>
618
679
  </button>
619
680
 
620
- ${e ? r`
681
+ ${l ? r`
621
682
  <div class="trigger-divider" aria-hidden="true"></div>
622
683
  <button
623
684
  class="trigger-btn trigger-trailing-btn"
624
685
  type="button"
625
- aria-label=${this.trailingIcon}
626
- title=${this.trailingIcon}
686
+ aria-label=${c === "search" ? "Search" : c}
687
+ title=${c === "search" ? "Search" : c}
627
688
  ?disabled=${this.disabled}
628
689
  @click=${this.handleTrailingTriggerClick}
629
690
  >
630
- <md-icon name=${this.trailingIcon}></md-icon>
691
+ <md-ripple ?disabled=${this.disabled}></md-ripple>
692
+ <md-focus-ring></md-focus-ring>
693
+ <md-icon name=${c}></md-icon>
631
694
  </button>
632
- ` : l}
695
+ ` : i}
633
696
  </div>
634
697
 
635
698
  <div class="scrim" @click=${this.handleScrimClick}></div>
636
699
 
637
700
  <div class="search-container" role="search">
638
701
  <div class="search-bar-header">
639
- <span class="leading-slot">
640
- <slot name="leading-icon">
641
- ${i ? r`
642
- <button
643
- class="icon-btn"
644
- type="button"
645
- aria-label="Back"
646
- @click=${this.handleBackClick}
647
- >
648
- <md-icon name=${this.activeLeadingIcon}></md-icon>
649
- </button>
650
- ` : r`
651
- <span class="icon-btn" style="cursor: default;">
652
- <md-icon name=${this.leadingIcon}></md-icon>
653
- </span>
654
- `}
702
+ <span class="leading-slot ${u ? "" : "empty"}">
703
+ <slot name="leading" @slotchange=${this.handleLeadingSlotChange}>
704
+ <slot name="leading-icon" @slotchange=${this.handleLeadingSlotChange}>
705
+ ${t ? r`
706
+ <button
707
+ class="icon-btn back-btn"
708
+ type="button"
709
+ aria-label="Back"
710
+ @click=${this.handleBackClick}
711
+ >
712
+ <md-ripple ?disabled=${this.disabled}></md-ripple>
713
+ <md-focus-ring></md-focus-ring>
714
+ <md-icon name=${this.activeLeadingIcon}></md-icon>
715
+ </button>
716
+ ` : a ? r`
717
+ <button
718
+ class="icon-btn leading-btn"
719
+ type="button"
720
+ aria-label=${a === "menu" ? "Menu" : a}
721
+ ?disabled=${this.disabled}
722
+ @click=${this.handleLeadingClick}
723
+ >
724
+ <md-ripple ?disabled=${this.disabled}></md-ripple>
725
+ <md-focus-ring></md-focus-ring>
726
+ <md-icon name=${a}></md-icon>
727
+ </button>
728
+ ` : i}
729
+ </slot>
655
730
  </slot>
656
731
  </span>
657
732
 
@@ -681,95 +756,98 @@ var y = m`
681
756
  aria-label="Clear search"
682
757
  @click=${this.handleClearClick}
683
758
  >
759
+ <md-ripple ?disabled=${this.disabled}></md-ripple>
760
+ <md-focus-ring></md-focus-ring>
684
761
  <md-icon name="close"></md-icon>
685
762
  </button>
686
- ` : l}
687
-
688
- <slot name="trailing-icon">
689
- ${this.trailingIcon ? r`
690
- <span class="icon-btn" style="cursor: default;">
691
- <md-icon name=${this.trailingIcon}></md-icon>
692
- </span>
693
- ` : l}
763
+ ` : i}
764
+
765
+ <slot name="trailing">
766
+ <slot name="trailing-icon">
767
+ ${o ? r`
768
+ <button
769
+ class="icon-btn trailing-btn"
770
+ type="button"
771
+ aria-label=${o === "search" ? "Search" : o}
772
+ ?disabled=${this.disabled}
773
+ @click=${this.handleTrailingClick}
774
+ >
775
+ <md-ripple ?disabled=${this.disabled}></md-ripple>
776
+ <md-focus-ring></md-focus-ring>
777
+ <md-icon name=${o}></md-icon>
778
+ </button>
779
+ ` : i}
780
+ </slot>
694
781
  </slot>
695
782
  </span>
696
783
  </div>
697
784
 
698
- <div class="divider"></div>
699
-
700
- <div class="suggestions-container" role="listbox" aria-label="Suggestions">
701
- <slot name="suggestions">
702
- ${this.suggestions.map((o, n) => this.renderSuggestionItem(o, n))}
703
- </slot>
704
- <div class="extra-content">
705
- <slot></slot>
706
- </div>
707
- </div>
785
+ ${this.hasContent ? r`
786
+ <div class="divider"></div>
787
+
788
+ <div class="suggestions-container" role="listbox" aria-label="Suggestions">
789
+ <slot name="suggestions" @slotchange=${this.handleContentSlotChange}>
790
+ ${this.suggestions.map((e, t) => this.renderSuggestionItem(e, t))}
791
+ </slot>
792
+ <div class="extra-content">
793
+ <slot @slotchange=${this.handleContentSlotChange}></slot>
794
+ </div>
795
+ </div>
796
+ ` : r`
797
+ <div class="extra-content" style="display: none;">
798
+ <slot name="suggestions" @slotchange=${this.handleContentSlotChange}></slot>
799
+ <slot @slotchange=${this.handleContentSlotChange}></slot>
800
+ </div>
801
+ `}
708
802
  </div>
709
803
  `;
710
- }
711
- };
712
- a([s({
713
- type: String,
714
- reflect: !0
715
- })], t.prototype, "size", void 0);
716
- a([s({
717
- type: Boolean,
718
- reflect: !0
719
- })], t.prototype, "compact", void 0);
720
- a([s({ type: String })], t.prototype, "value", void 0);
721
- a([s({ type: String })], t.prototype, "placeholder", void 0);
722
- a([s({
723
- type: Boolean,
724
- reflect: !0
725
- })], t.prototype, "active", void 0);
726
- a([s({ type: Array })], t.prototype, "suggestions", void 0);
727
- a([s({
728
- type: String,
729
- attribute: "leading-icon"
730
- })], t.prototype, "leadingIcon", void 0);
731
- a([s({
732
- type: String,
733
- attribute: "active-leading-icon"
734
- })], t.prototype, "activeLeadingIcon", void 0);
735
- a([s({
736
- type: String,
737
- attribute: "trailing-icon"
738
- })], t.prototype, "trailingIcon", void 0);
739
- a([s({
740
- type: Boolean,
741
- attribute: "show-back-button"
742
- })], t.prototype, "showBackButton", void 0);
743
- a([s({
744
- type: Boolean,
745
- attribute: "show-clear-button"
746
- })], t.prototype, "showClearButton", void 0);
747
- a([s({
748
- type: Boolean,
749
- reflect: !0
750
- })], t.prototype, "responsive", void 0);
751
- a([s({
752
- type: Boolean,
753
- attribute: "collapse-on-mobile",
754
- reflect: !0
755
- })], t.prototype, "collapseOnMobile", void 0);
756
- a([s({
757
- type: Boolean,
758
- reflect: !0
759
- })], t.prototype, "fullscreen", void 0);
760
- a([s({
761
- type: Boolean,
762
- attribute: "auto-deactivate-on-select"
763
- })], t.prototype, "autoDeactivateOnSelect", void 0);
764
- a([f()], t.prototype, "highlightedIndex", void 0);
765
- a([x("input")], t.prototype, "inputElement", void 0);
766
- t = a([v("md-search-bar")], t);
767
- var g = class extends t {
804
+ }
768
805
  };
769
- g = a([v("md-search")], g);
770
- export {
771
- t as n,
772
- g as t
773
- };
774
-
775
- //# sourceMappingURL=search-bar-CfN-emMP.js.map
806
+ e([o({
807
+ type: String,
808
+ reflect: !0
809
+ })], u.prototype, "size", void 0), e([o({
810
+ type: Boolean,
811
+ reflect: !0
812
+ })], 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({
813
+ type: Boolean,
814
+ reflect: !0
815
+ })], u.prototype, "active", void 0), e([o({ type: Array })], u.prototype, "suggestions", void 0), e([o({
816
+ type: String,
817
+ attribute: "search-icon-position",
818
+ reflect: !0
819
+ })], u.prototype, "searchIconPosition", void 0), e([o({
820
+ type: String,
821
+ attribute: "leading-icon"
822
+ })], u.prototype, "leadingIcon", void 0), e([o({
823
+ type: String,
824
+ attribute: "active-leading-icon"
825
+ })], u.prototype, "activeLeadingIcon", void 0), e([o({
826
+ type: String,
827
+ attribute: "trailing-icon"
828
+ })], u.prototype, "trailingIcon", void 0), e([o({
829
+ type: Boolean,
830
+ attribute: "show-back-button"
831
+ })], u.prototype, "showBackButton", void 0), e([o({
832
+ type: Boolean,
833
+ attribute: "show-clear-button"
834
+ })], u.prototype, "showClearButton", void 0), e([o({
835
+ type: Boolean,
836
+ reflect: !0
837
+ })], u.prototype, "responsive", void 0), e([o({
838
+ type: Boolean,
839
+ attribute: "collapse-on-mobile",
840
+ reflect: !0
841
+ })], u.prototype, "collapseOnMobile", void 0), e([o({
842
+ type: Boolean,
843
+ reflect: !0
844
+ })], u.prototype, "fullscreen", void 0), e([o({
845
+ type: Boolean,
846
+ attribute: "auto-deactivate-on-select"
847
+ })], u.prototype, "autoDeactivateOnSelect", void 0), e([c()], u.prototype, "highlightedIndex", void 0), e([c()], u.prototype, "hasLeadingSlotContent", void 0), e([s("input")], u.prototype, "inputElement", void 0), e([c()], u.prototype, "hasCustomContent", void 0), u = e([a("md-search-bar")], u);
848
+ var d = class extends u {};
849
+ d = e([a("md-search")], d);
850
+ //#endregion
851
+ export { u as n, d as t };
852
+
853
+ //# sourceMappingURL=search-bar-B4lAXza_.js.map