@material/web 0.1.0-alpha.0 → 0.1.0-alpha.1

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 (1120) hide show
  1. package/actionelement/action-element.d.ts +1 -1
  2. package/actionelement/action-element.js +1 -1
  3. package/actionelement/action-element.js.map +1 -1
  4. package/autocomplete/_filled-autocomplete.scss +6 -0
  5. package/autocomplete/_outlined-autocomplete.scss +6 -0
  6. package/autocomplete/autocomplete-item.d.ts +19 -0
  7. package/autocomplete/autocomplete-item.js +22 -0
  8. package/autocomplete/autocomplete-item.js.map +1 -0
  9. package/autocomplete/autocomplete-list.d.ts +19 -0
  10. package/autocomplete/autocomplete-list.js +23 -0
  11. package/autocomplete/autocomplete-list.js.map +1 -0
  12. package/autocomplete/autocomplete-surface.d.ts +19 -0
  13. package/autocomplete/autocomplete-surface.js +23 -0
  14. package/autocomplete/autocomplete-surface.js.map +1 -0
  15. package/autocomplete/filled-autocomplete.d.ts +30 -0
  16. package/autocomplete/filled-autocomplete.js +53 -0
  17. package/autocomplete/filled-autocomplete.js.map +1 -0
  18. package/autocomplete/lib/_filled-autocomplete.scss +229 -0
  19. package/autocomplete/lib/_outlined-autocomplete.scss +217 -0
  20. package/autocomplete/lib/_shared.scss +34 -0
  21. package/autocomplete/lib/autocomplete.d.ts +58 -0
  22. package/autocomplete/lib/autocomplete.js +273 -0
  23. package/autocomplete/lib/autocomplete.js.map +1 -0
  24. package/autocomplete/lib/autocompleteitem/autocomplete-item.d.ts +11 -0
  25. package/autocomplete/lib/autocompleteitem/autocomplete-item.js +14 -0
  26. package/autocomplete/lib/autocompleteitem/autocomplete-item.js.map +1 -0
  27. package/autocomplete/lib/autocompleteitem/harness.d.ts +11 -0
  28. package/autocomplete/lib/autocompleteitem/harness.js +12 -0
  29. package/autocomplete/lib/autocompleteitem/harness.js.map +1 -0
  30. package/{field/lib/_field-theme.scss → autocomplete/lib/autocompletelist/_autocomplete-list.scss} +4 -6
  31. package/{elevation/lib/elevation-overlay-styles.css.d.ts → autocomplete/lib/autocompletelist/autocomplete-list-styles.css.d.ts} +0 -0
  32. package/autocomplete/lib/autocompletelist/autocomplete-list-styles.css.js +9 -0
  33. package/autocomplete/lib/autocompletelist/autocomplete-list-styles.css.js.map +1 -0
  34. package/{segmentedbutton/lib/segmented-button-styles.scss → autocomplete/lib/autocompletelist/autocomplete-list-styles.scss} +2 -2
  35. package/autocomplete/lib/autocompletelist/autocomplete-list.d.ts +14 -0
  36. package/autocomplete/lib/autocompletelist/autocomplete-list.js +21 -0
  37. package/autocomplete/lib/autocompletelist/autocomplete-list.js.map +1 -0
  38. package/autocomplete/lib/autocompletelist/harness.d.ts +11 -0
  39. package/autocomplete/lib/autocompletelist/harness.js +12 -0
  40. package/autocomplete/lib/autocompletelist/harness.js.map +1 -0
  41. package/autocomplete/lib/autocompletesurface/_autocomplete-surface.scss +13 -0
  42. package/{formfield/lib/formfield-styles.css.d.ts → autocomplete/lib/autocompletesurface/autocomplete-surface-styles.css.d.ts} +0 -0
  43. package/autocomplete/lib/autocompletesurface/autocomplete-surface-styles.css.js +9 -0
  44. package/autocomplete/lib/autocompletesurface/autocomplete-surface-styles.css.js.map +1 -0
  45. package/autocomplete/lib/autocompletesurface/autocomplete-surface-styles.scss +8 -0
  46. package/autocomplete/lib/autocompletesurface/autocomplete-surface.d.ts +13 -0
  47. package/autocomplete/lib/autocompletesurface/autocomplete-surface.js +21 -0
  48. package/autocomplete/lib/autocompletesurface/autocomplete-surface.js.map +1 -0
  49. package/{iconbutton/lib/icon-button-styles.css.d.ts → autocomplete/lib/filled-styles.css.d.ts} +0 -0
  50. package/autocomplete/lib/filled-styles.css.js +9 -0
  51. package/autocomplete/lib/filled-styles.css.js.map +1 -0
  52. package/autocomplete/lib/filled-styles.scss +8 -0
  53. package/{segmentedbutton/lib/segmented-button-styles.css.d.ts → autocomplete/lib/outlined-styles.css.d.ts} +0 -0
  54. package/autocomplete/lib/outlined-styles.css.js +9 -0
  55. package/autocomplete/lib/outlined-styles.css.js.map +1 -0
  56. package/autocomplete/lib/outlined-styles.scss +8 -0
  57. package/autocomplete/lib/shared-styles.css.d.ts +1 -0
  58. package/autocomplete/lib/shared-styles.css.js +9 -0
  59. package/autocomplete/lib/shared-styles.css.js.map +1 -0
  60. package/{iconbutton/lib/icon-button-styles.scss → autocomplete/lib/shared-styles.scss} +2 -2
  61. package/autocomplete/outlined-autocomplete.d.ts +30 -0
  62. package/autocomplete/outlined-autocomplete.js +53 -0
  63. package/autocomplete/outlined-autocomplete.js.map +1 -0
  64. package/badge/_badge.scss +6 -0
  65. package/badge/lib/_badge.scss +60 -21
  66. package/badge/lib/badge-styles.css.js +1 -1
  67. package/badge/lib/badge-styles.css.js.map +1 -1
  68. package/badge/lib/badge-styles.scss +1 -9
  69. package/button/_elevated-button.scss +1 -3
  70. package/button/_filled-button.scss +1 -3
  71. package/button/_outlined-button.scss +1 -3
  72. package/button/_text-button.scss +1 -3
  73. package/button/_tonal-button.scss +1 -3
  74. package/button/elevated-button.d.ts +18 -1
  75. package/button/elevated-button.js +20 -3
  76. package/button/elevated-button.js.map +1 -1
  77. package/button/elevated-link-button.d.ts +18 -1
  78. package/button/elevated-link-button.js +20 -3
  79. package/button/elevated-link-button.js.map +1 -1
  80. package/button/filled-button.d.ts +16 -1
  81. package/button/filled-button.js +18 -2
  82. package/button/filled-button.js.map +1 -1
  83. package/button/filled-link-button.d.ts +16 -1
  84. package/button/filled-link-button.js +18 -2
  85. package/button/filled-link-button.js.map +1 -1
  86. package/button/harness.d.ts +1 -1
  87. package/button/harness.js +1 -1
  88. package/button/harness.js.map +1 -1
  89. package/button/lib/_elevated-button.scss +51 -2
  90. package/button/lib/_elevation.scss +74 -0
  91. package/button/lib/_filled-button.scss +47 -2
  92. package/button/lib/_icon.scss +26 -18
  93. package/button/lib/_outlined-button.scss +70 -8
  94. package/button/lib/_shared.scss +180 -0
  95. package/button/lib/_text-button.scss +52 -2
  96. package/button/lib/_tonal-button.scss +50 -2
  97. package/button/lib/_touch-target.scss +7 -5
  98. package/button/lib/button.d.ts +45 -40
  99. package/button/lib/button.js +83 -88
  100. package/button/lib/button.js.map +1 -1
  101. package/button/lib/elevated-button.d.ts +2 -4
  102. package/button/lib/elevated-button.js +4 -5
  103. package/button/lib/elevated-button.js.map +1 -1
  104. package/button/lib/elevated-link-button.d.ts +2 -4
  105. package/button/lib/elevated-link-button.js +4 -5
  106. package/button/lib/elevated-link-button.js.map +1 -1
  107. package/button/lib/elevated-styles.css.js +1 -1
  108. package/button/lib/elevated-styles.css.js.map +1 -1
  109. package/button/lib/elevated-styles.scss +1 -11
  110. package/button/lib/filled-button.d.ts +4 -2
  111. package/button/lib/filled-button.js +7 -2
  112. package/button/lib/filled-button.js.map +1 -1
  113. package/button/lib/filled-link-button.d.ts +4 -2
  114. package/button/lib/filled-link-button.js +7 -2
  115. package/button/lib/filled-link-button.js.map +1 -1
  116. package/button/lib/filled-styles.css.js +1 -1
  117. package/button/lib/filled-styles.css.js.map +1 -1
  118. package/button/lib/filled-styles.scss +1 -9
  119. package/button/lib/link-button.d.ts +11 -3
  120. package/button/lib/link-button.js +29 -18
  121. package/button/lib/link-button.js.map +1 -1
  122. package/button/lib/outlined-button.d.ts +0 -3
  123. package/button/lib/outlined-button.js +1 -3
  124. package/button/lib/outlined-button.js.map +1 -1
  125. package/button/lib/outlined-link-button.d.ts +0 -3
  126. package/button/lib/outlined-link-button.js +1 -3
  127. package/button/lib/outlined-link-button.js.map +1 -1
  128. package/button/lib/outlined-styles.css.js +1 -1
  129. package/button/lib/outlined-styles.css.js.map +1 -1
  130. package/button/lib/outlined-styles.scss +1 -11
  131. package/button/lib/shared-elevation-styles.css.d.ts +1 -0
  132. package/button/lib/shared-elevation-styles.css.js +9 -0
  133. package/button/lib/shared-elevation-styles.css.js.map +1 -0
  134. package/{ripple/_index.scss → button/lib/shared-elevation-styles.scss} +3 -1
  135. package/button/lib/shared-styles.css.js +1 -1
  136. package/button/lib/shared-styles.css.js.map +1 -1
  137. package/button/lib/shared-styles.scss +4 -4
  138. package/button/lib/text-button.d.ts +0 -2
  139. package/button/lib/text-button.js +1 -2
  140. package/button/lib/text-button.js.map +1 -1
  141. package/button/lib/text-link-button.d.ts +0 -2
  142. package/button/lib/text-link-button.js +1 -2
  143. package/button/lib/text-link-button.js.map +1 -1
  144. package/button/lib/text-styles.css.js +1 -1
  145. package/button/lib/text-styles.css.js.map +1 -1
  146. package/button/lib/text-styles.scss +1 -9
  147. package/button/lib/tonal-button.d.ts +4 -2
  148. package/button/lib/tonal-button.js +7 -2
  149. package/button/lib/tonal-button.js.map +1 -1
  150. package/button/lib/tonal-link-button.d.ts +4 -2
  151. package/button/lib/tonal-link-button.js +7 -2
  152. package/button/lib/tonal-link-button.js.map +1 -1
  153. package/button/lib/tonal-styles.css.js +1 -1
  154. package/button/lib/tonal-styles.css.js.map +1 -1
  155. package/button/lib/tonal-styles.scss +1 -9
  156. package/button/outlined-button.d.ts +18 -1
  157. package/button/outlined-button.js +18 -1
  158. package/button/outlined-button.js.map +1 -1
  159. package/button/outlined-link-button.d.ts +18 -1
  160. package/button/outlined-link-button.js +18 -1
  161. package/button/outlined-link-button.js.map +1 -1
  162. package/button/text-button.d.ts +16 -1
  163. package/button/text-button.js +16 -1
  164. package/button/text-button.js.map +1 -1
  165. package/button/text-link-button.d.ts +16 -1
  166. package/button/text-link-button.js +16 -1
  167. package/button/text-link-button.js.map +1 -1
  168. package/button/tonal-button.d.ts +17 -1
  169. package/button/tonal-button.js +19 -2
  170. package/button/tonal-button.js.map +1 -1
  171. package/button/tonal-link-button.d.ts +17 -1
  172. package/button/tonal-link-button.js +19 -2
  173. package/button/tonal-link-button.js.map +1 -1
  174. package/checkbox/_checkbox.scss +6 -1
  175. package/checkbox/checkbox.d.ts +4 -1
  176. package/checkbox/checkbox.js +6 -2
  177. package/checkbox/checkbox.js.map +1 -1
  178. package/checkbox/harness.d.ts +1 -1
  179. package/checkbox/harness.js +1 -1
  180. package/checkbox/harness.js.map +1 -1
  181. package/checkbox/lib/_checkbox.scss +368 -334
  182. package/checkbox/lib/checkbox-styles.css.js +1 -1
  183. package/checkbox/lib/checkbox-styles.css.js.map +1 -1
  184. package/checkbox/lib/checkbox-styles.scss +1 -8
  185. package/checkbox/lib/checkbox.d.ts +30 -45
  186. package/checkbox/lib/checkbox.js +127 -177
  187. package/checkbox/lib/checkbox.js.map +1 -1
  188. package/checkbox/lib/forced-colors-styles.css.d.ts +1 -0
  189. package/checkbox/lib/forced-colors-styles.css.js +9 -0
  190. package/checkbox/lib/forced-colors-styles.css.js.map +1 -0
  191. package/checkbox/lib/forced-colors-styles.scss +47 -0
  192. package/{formfield/formfield.d.ts → chips/action/delete-action.d.ts} +3 -4
  193. package/chips/action/delete-action.js +20 -0
  194. package/chips/action/delete-action.js.map +1 -0
  195. package/chips/action/lib/action.d.ts +17 -4
  196. package/chips/action/lib/action.js +85 -6
  197. package/chips/action/lib/action.js.map +1 -1
  198. package/chips/action/lib/{trailing-action.d.ts → delete-action.d.ts} +3 -3
  199. package/chips/action/lib/{trailing-action.js → delete-action.js} +22 -19
  200. package/chips/action/lib/delete-action.js.map +1 -0
  201. package/chips/action/lib/events.d.ts +14 -0
  202. package/chips/action/lib/events.js +16 -0
  203. package/chips/action/lib/events.js.map +1 -0
  204. package/chips/action/lib/link-action.d.ts +2 -0
  205. package/chips/action/lib/link-action.js +13 -1
  206. package/chips/action/lib/link-action.js.map +1 -1
  207. package/chips/action/lib/primary-action.d.ts +0 -1
  208. package/chips/action/lib/primary-action.js +11 -6
  209. package/chips/action/lib/primary-action.js.map +1 -1
  210. package/chips/action/lib/selectable-action.js +11 -1
  211. package/chips/action/lib/selectable-action.js.map +1 -1
  212. package/chips/action/link-action.d.ts +18 -0
  213. package/chips/action/link-action.js +20 -0
  214. package/chips/action/link-action.js.map +1 -0
  215. package/chips/action/presentational-action.d.ts +18 -0
  216. package/chips/action/presentational-action.js +20 -0
  217. package/chips/action/presentational-action.js.map +1 -0
  218. package/chips/action/primary-action.d.ts +18 -0
  219. package/chips/action/primary-action.js +20 -0
  220. package/chips/action/primary-action.js.map +1 -0
  221. package/chips/action/selectable-action.d.ts +18 -0
  222. package/chips/action/selectable-action.js +20 -0
  223. package/chips/action/selectable-action.js.map +1 -0
  224. package/chips/chip/lib/_assist-chip-theme.scss +5 -11
  225. package/chips/chip/lib/_chip-theme.scss +182 -211
  226. package/chips/chip/lib/_chip.scss +78 -61
  227. package/chips/chip/lib/_filter-chip-theme.scss +5 -11
  228. package/chips/chip/lib/_input-chip-theme.scss +12 -18
  229. package/chips/chip/lib/_suggestion-chip-theme.scss +5 -11
  230. package/chips/chip/lib/action-chip.d.ts +18 -0
  231. package/chips/chip/lib/action-chip.js +39 -0
  232. package/chips/chip/lib/action-chip.js.map +1 -0
  233. package/{compat/animation → chips/chip/lib}/animationframe.d.ts +0 -0
  234. package/{compat/animation → chips/chip/lib}/animationframe.js +1 -0
  235. package/chips/chip/lib/animationframe.js.map +1 -0
  236. package/chips/chip/lib/chip.d.ts +42 -0
  237. package/chips/chip/lib/chip.js +133 -0
  238. package/chips/chip/lib/chip.js.map +1 -0
  239. package/chips/chip/lib/foundation.js +3 -4
  240. package/chips/chip/lib/foundation.js.map +1 -1
  241. package/chips/chip/lib/link-chip.d.ts +21 -0
  242. package/chips/chip/lib/link-chip.js +53 -0
  243. package/chips/chip/lib/link-chip.js.map +1 -0
  244. package/chips/chip/lib/presentational-chip.d.ts +18 -0
  245. package/chips/chip/lib/presentational-chip.js +39 -0
  246. package/chips/chip/lib/presentational-chip.js.map +1 -0
  247. package/chips/chip/lib/selectable-chip.d.ts +22 -0
  248. package/chips/chip/lib/selectable-chip.js +57 -0
  249. package/chips/chip/lib/selectable-chip.js.map +1 -0
  250. package/chips/chipset/lib/_chip-set-theme.scss +1 -1
  251. package/chips/chipset/lib/foundation.js +8 -10
  252. package/chips/chipset/lib/foundation.js.map +1 -1
  253. package/controller/events.d.ts +50 -0
  254. package/controller/events.js +86 -0
  255. package/controller/events.js.map +1 -1
  256. package/controller/form-associated.d.ts +14 -0
  257. package/controller/form-associated.js +12 -0
  258. package/controller/form-associated.js.map +1 -0
  259. package/controller/form-controller.d.ts +7 -0
  260. package/controller/form-controller.js +15 -1
  261. package/controller/form-controller.js.map +1 -1
  262. package/controller/is-rtl.d.ts +14 -0
  263. package/controller/is-rtl.js +18 -0
  264. package/controller/is-rtl.js.map +1 -0
  265. package/controller/shim-label-activation.d.ts +18 -0
  266. package/controller/shim-label-activation.js +72 -0
  267. package/controller/shim-label-activation.js.map +1 -0
  268. package/decorators/bound.d.ts +1 -1
  269. package/decorators/bound.js.map +1 -1
  270. package/elevation/_elevation.scss +6 -0
  271. package/elevation/elevation.d.ts +19 -0
  272. package/elevation/elevation.js +22 -0
  273. package/elevation/elevation.js.map +1 -0
  274. package/elevation/lib/_elevation.scss +218 -0
  275. package/elevation/lib/_md-comp-elevation.scss +23 -0
  276. package/elevation/lib/elevation-styles.css.d.ts +1 -0
  277. package/elevation/lib/elevation-styles.css.js +9 -0
  278. package/elevation/lib/elevation-styles.css.js.map +1 -0
  279. package/elevation/lib/elevation-styles.scss +8 -0
  280. package/elevation/lib/elevation.d.ts +20 -0
  281. package/elevation/lib/elevation.js +39 -0
  282. package/elevation/lib/elevation.js.map +1 -0
  283. package/{elevation → elevationold}/lib/_elevation-overlay-theme.scss +0 -0
  284. package/{elevation → elevationold}/lib/_elevation-overlay.scss +0 -0
  285. package/{elevation → elevationold}/lib/_elevation-theme.scss +3 -17
  286. package/{elevation → elevationold}/lib/_surface.scss +1 -4
  287. package/elevationold/lib/elevation-overlay-styles.css.d.ts +1 -0
  288. package/{elevation → elevationold}/lib/elevation-overlay-styles.css.js +0 -0
  289. package/{elevation → elevationold}/lib/elevation-overlay-styles.css.js.map +0 -0
  290. package/{elevation → elevationold}/lib/elevation-overlay-styles.scss +0 -0
  291. package/fab/_fab-extended.scss +1 -6
  292. package/fab/_fab.scss +1 -15
  293. package/fab/fab-extended.d.ts +1 -1
  294. package/fab/fab-extended.js +2 -2
  295. package/fab/fab-extended.js.map +1 -1
  296. package/fab/fab.d.ts +1 -1
  297. package/fab/fab.js +2 -2
  298. package/fab/fab.js.map +1 -1
  299. package/fab/harness.d.ts +1 -1
  300. package/fab/harness.js +1 -1
  301. package/fab/harness.js.map +1 -1
  302. package/fab/lib/_fab-extended.scss +55 -21
  303. package/fab/lib/_fab.scss +30 -6
  304. package/fab/lib/_shared.scss +209 -0
  305. package/fab/lib/fab-extended-styles.css.js +1 -1
  306. package/fab/lib/fab-extended-styles.css.js.map +1 -1
  307. package/fab/lib/fab-extended-styles.scss +1 -9
  308. package/fab/lib/fab-shared-styles.css.js +1 -1
  309. package/fab/lib/fab-shared-styles.css.js.map +1 -1
  310. package/fab/lib/fab-shared-styles.scss +2 -2
  311. package/fab/lib/fab-shared.d.ts +6 -5
  312. package/fab/lib/fab-shared.js +9 -8
  313. package/fab/lib/fab-shared.js.map +1 -1
  314. package/fab/lib/fab-styles.css.js +1 -1
  315. package/fab/lib/fab-styles.css.js.map +1 -1
  316. package/fab/lib/fab-styles.scss +1 -9
  317. package/field/_filled-field.scss +1 -3
  318. package/field/_outlined-field.scss +1 -3
  319. package/field/harness.d.ts +1 -1
  320. package/field/harness.js +1 -1
  321. package/field/harness.js.map +1 -1
  322. package/field/lib/_content.scss +51 -2
  323. package/field/lib/_filled-field.scss +167 -88
  324. package/field/lib/_label.scss +65 -2
  325. package/field/lib/_md-comp-filled-field.scss +72 -0
  326. package/field/lib/_md-comp-outlined-field.scss +74 -0
  327. package/field/lib/_outlined-field.scss +222 -118
  328. package/field/lib/{_field.scss → _shared.scss} +30 -1
  329. package/field/lib/_supporting-text.scss +64 -1
  330. package/field/lib/field.d.ts +1 -1
  331. package/field/lib/field.js +1 -1
  332. package/field/lib/field.js.map +1 -1
  333. package/field/lib/filled-field.d.ts +1 -0
  334. package/field/lib/filled-field.js +1 -0
  335. package/field/lib/filled-field.js.map +1 -1
  336. package/field/lib/filled-styles.css.js +1 -1
  337. package/field/lib/filled-styles.css.js.map +1 -1
  338. package/field/lib/filled-styles.scss +1 -9
  339. package/field/lib/outlined-styles.css.js +1 -1
  340. package/field/lib/outlined-styles.css.js.map +1 -1
  341. package/field/lib/outlined-styles.scss +1 -10
  342. package/field/lib/shared-styles.css.js +1 -1
  343. package/field/lib/shared-styles.css.js.map +1 -1
  344. package/field/lib/shared-styles.scss +2 -8
  345. package/focus/_focus-ring.scss +6 -0
  346. package/focus/lib/_focus-ring.scss +48 -21
  347. package/focus/lib/_md-comp-focus-ring.scss +27 -0
  348. package/focus/lib/focus-ring-styles.css.js +1 -1
  349. package/focus/lib/focus-ring-styles.css.js.map +1 -1
  350. package/focus/lib/focus-ring-styles.scss +1 -9
  351. package/focus/lib/focus-ring.d.ts +16 -3
  352. package/focus/lib/focus-ring.js +16 -3
  353. package/focus/lib/focus-ring.js.map +1 -1
  354. package/focus/strong-focus.d.ts +2 -0
  355. package/focus/strong-focus.js +6 -4
  356. package/focus/strong-focus.js.map +1 -1
  357. package/icon/_icon.scss +6 -0
  358. package/icon/lib/_icon.scss +54 -0
  359. package/icon/lib/_md-comp-icon.scss +19 -0
  360. package/icon/lib/icon-styles.css.js +1 -1
  361. package/icon/lib/icon-styles.css.js.map +1 -1
  362. package/icon/lib/icon-styles.scss +2 -19
  363. package/iconbutton/_filled-icon-button.scss +1 -2
  364. package/iconbutton/_filled-tonal-icon-button.scss +6 -0
  365. package/iconbutton/_outlined-icon-button.scss +1 -2
  366. package/iconbutton/_standard-icon-button.scss +1 -2
  367. package/iconbutton/filled-icon-button-toggle.d.ts +15 -3
  368. package/iconbutton/filled-icon-button-toggle.js +16 -4
  369. package/iconbutton/filled-icon-button-toggle.js.map +1 -1
  370. package/iconbutton/filled-icon-button.d.ts +15 -3
  371. package/iconbutton/filled-icon-button.js +16 -4
  372. package/iconbutton/filled-icon-button.js.map +1 -1
  373. package/iconbutton/filled-link-icon-button.d.ts +15 -3
  374. package/iconbutton/filled-link-icon-button.js +16 -4
  375. package/iconbutton/filled-link-icon-button.js.map +1 -1
  376. package/iconbutton/filled-tonal-icon-button-toggle.d.ts +15 -3
  377. package/iconbutton/filled-tonal-icon-button-toggle.js +16 -4
  378. package/iconbutton/filled-tonal-icon-button-toggle.js.map +1 -1
  379. package/iconbutton/filled-tonal-icon-button.d.ts +15 -3
  380. package/iconbutton/filled-tonal-icon-button.js +16 -4
  381. package/iconbutton/filled-tonal-icon-button.js.map +1 -1
  382. package/iconbutton/filled-tonal-link-icon-button.d.ts +15 -3
  383. package/iconbutton/filled-tonal-link-icon-button.js +16 -4
  384. package/iconbutton/filled-tonal-link-icon-button.js.map +1 -1
  385. package/iconbutton/harness.d.ts +1 -1
  386. package/iconbutton/harness.js +1 -1
  387. package/iconbutton/harness.js.map +1 -1
  388. package/iconbutton/lib/_filled-icon-button.scss +123 -2
  389. package/iconbutton/lib/_filled-tonal-icon-button.scss +123 -2
  390. package/iconbutton/lib/_outlined-icon-button.scss +133 -1
  391. package/iconbutton/lib/{_icon-button-theme.scss → _shared.scss} +76 -71
  392. package/iconbutton/lib/_standard-icon-button.scss +94 -2
  393. package/iconbutton/lib/filled-styles.css.js +1 -1
  394. package/iconbutton/lib/filled-styles.css.js.map +1 -1
  395. package/iconbutton/lib/filled-styles.scss +1 -11
  396. package/iconbutton/lib/filled-tonal-styles.css.js +1 -1
  397. package/iconbutton/lib/filled-tonal-styles.css.js.map +1 -1
  398. package/iconbutton/lib/filled-tonal-styles.scss +1 -11
  399. package/iconbutton/lib/icon-button-toggle.d.ts +42 -23
  400. package/iconbutton/lib/icon-button-toggle.js +64 -62
  401. package/iconbutton/lib/icon-button-toggle.js.map +1 -1
  402. package/iconbutton/lib/icon-button.d.ts +22 -30
  403. package/iconbutton/lib/icon-button.js +52 -71
  404. package/iconbutton/lib/icon-button.js.map +1 -1
  405. package/iconbutton/lib/link-icon-button.d.ts +11 -2
  406. package/iconbutton/lib/link-icon-button.js +23 -18
  407. package/iconbutton/lib/link-icon-button.js.map +1 -1
  408. package/iconbutton/lib/outlined-styles.css.js +1 -1
  409. package/iconbutton/lib/outlined-styles.css.js.map +1 -1
  410. package/iconbutton/lib/outlined-styles.scss +1 -11
  411. package/iconbutton/lib/shared-styles.css.d.ts +1 -0
  412. package/iconbutton/lib/shared-styles.css.js +9 -0
  413. package/iconbutton/lib/shared-styles.css.js.map +1 -0
  414. package/iconbutton/lib/shared-styles.scss +8 -0
  415. package/iconbutton/lib/standard-styles.css.js +1 -1
  416. package/iconbutton/lib/standard-styles.css.js.map +1 -1
  417. package/iconbutton/lib/standard-styles.scss +1 -11
  418. package/iconbutton/outlined-icon-button-toggle.d.ts +15 -3
  419. package/iconbutton/outlined-icon-button-toggle.js +16 -4
  420. package/iconbutton/outlined-icon-button-toggle.js.map +1 -1
  421. package/iconbutton/outlined-icon-button.d.ts +15 -3
  422. package/iconbutton/outlined-icon-button.js +16 -4
  423. package/iconbutton/outlined-icon-button.js.map +1 -1
  424. package/iconbutton/outlined-link-icon-button.d.ts +15 -3
  425. package/iconbutton/outlined-link-icon-button.js +16 -4
  426. package/iconbutton/outlined-link-icon-button.js.map +1 -1
  427. package/iconbutton/standard-icon-button-toggle.d.ts +15 -3
  428. package/iconbutton/standard-icon-button-toggle.js +16 -4
  429. package/iconbutton/standard-icon-button-toggle.js.map +1 -1
  430. package/iconbutton/standard-icon-button.d.ts +15 -3
  431. package/iconbutton/standard-icon-button.js +16 -4
  432. package/iconbutton/standard-icon-button.js.map +1 -1
  433. package/iconbutton/standard-link-icon-button.d.ts +15 -3
  434. package/iconbutton/standard-link-icon-button.js +16 -4
  435. package/iconbutton/standard-link-icon-button.js.map +1 -1
  436. package/list/_list-item.scss +1 -2
  437. package/list/_list.scss +1 -2
  438. package/list/harness.d.ts +1 -1
  439. package/list/harness.js +1 -1
  440. package/list/harness.js.map +1 -1
  441. package/list/lib/_list.scss +58 -21
  442. package/list/lib/_tokens.scss +2 -2
  443. package/list/lib/avatar/_list-item-avatar.scss +25 -1
  444. package/list/lib/avatar/list-item-avatar-styles.css.js +1 -1
  445. package/list/lib/avatar/list-item-avatar-styles.css.js.map +1 -1
  446. package/list/lib/avatar/list-item-avatar-styles.scss +1 -13
  447. package/list/lib/divider/_list-divider.scss +33 -1
  448. package/list/lib/divider/list-divider-styles.css.js +1 -1
  449. package/list/lib/divider/list-divider-styles.css.js.map +1 -1
  450. package/list/lib/divider/list-divider-styles.scss +1 -11
  451. package/list/lib/divider/list-divider.d.ts +1 -1
  452. package/list/lib/divider/list-divider.js +1 -1
  453. package/list/lib/divider/list-divider.js.map +1 -1
  454. package/list/lib/icon/_list-item-icon.scss +32 -2
  455. package/list/lib/icon/list-item-icon-styles.css.js +1 -1
  456. package/list/lib/icon/list-item-icon-styles.css.js.map +1 -1
  457. package/list/lib/icon/list-item-icon-styles.scss +1 -13
  458. package/list/lib/image/_list-item-image.scss +44 -1
  459. package/list/lib/image/list-item-image-styles.css.js +1 -1
  460. package/list/lib/image/list-item-image-styles.css.js.map +1 -1
  461. package/list/lib/image/list-item-image-styles.scss +1 -13
  462. package/list/lib/list-styles.css.js +1 -1
  463. package/list/lib/list-styles.css.js.map +1 -1
  464. package/list/lib/list-styles.scss +1 -9
  465. package/list/lib/list.d.ts +5 -1
  466. package/list/lib/list.js +13 -2
  467. package/list/lib/list.js.map +1 -1
  468. package/list/lib/listitem/_list-item.scss +156 -59
  469. package/list/lib/listitem/harness.d.ts +1 -1
  470. package/list/lib/listitem/harness.js +1 -1
  471. package/list/lib/listitem/harness.js.map +1 -1
  472. package/list/lib/listitem/list-item-styles.css.js +1 -1
  473. package/list/lib/listitem/list-item-styles.css.js.map +1 -1
  474. package/list/lib/listitem/list-item-styles.scss +1 -9
  475. package/list/lib/listitem/list-item.d.ts +5 -5
  476. package/list/lib/listitem/list-item.js +6 -6
  477. package/list/lib/listitem/list-item.js.map +1 -1
  478. package/list/lib/video/_list-item-video.scss +45 -2
  479. package/list/lib/video/list-item-video-styles.css.js +1 -1
  480. package/list/lib/video/list-item-video-styles.css.js.map +1 -1
  481. package/list/lib/video/list-item-video-styles.scss +1 -13
  482. package/localization/localize.d.ts +15 -0
  483. package/localization/localize.js +18 -0
  484. package/localization/localize.js.map +1 -0
  485. package/menu/harness.d.ts +1 -1
  486. package/menu/harness.js +1 -1
  487. package/menu/harness.js.map +1 -1
  488. package/menu/lib/_menu-button.scss +1 -1
  489. package/menu/lib/_menu.scss +105 -2
  490. package/menu/lib/menu-button-styles.scss +5 -6
  491. package/menu/lib/menu-styles.css.js +1 -1
  492. package/menu/lib/menu-styles.css.js.map +1 -1
  493. package/menu/lib/menu-styles.scss +5 -14
  494. package/menu/lib/menu.js +3 -3
  495. package/menu/lib/menu.js.map +1 -1
  496. package/menu/lib/menuitem/harness.d.ts +1 -1
  497. package/menu/lib/menuitem/harness.js +1 -1
  498. package/menu/lib/menuitem/harness.js.map +1 -1
  499. package/menu/lib/menuitem/menu-item.d.ts +2 -2
  500. package/menu/lib/menuitem/menu-item.js +1 -1
  501. package/menu/lib/menuitem/menu-item.js.map +1 -1
  502. package/menusurface/_menu-surface.scss +1 -2
  503. package/menusurface/lib/_md-comp-menu-surface.scss +35 -0
  504. package/menusurface/lib/_menu-surface.scss +30 -1
  505. package/menusurface/lib/menu-surface-styles.css.js +1 -1
  506. package/menusurface/lib/menu-surface-styles.css.js.map +1 -1
  507. package/menusurface/lib/menu-surface-styles.scss +1 -9
  508. package/menusurface/lib/menu-surface.d.ts +5 -2
  509. package/menusurface/lib/menu-surface.js +48 -89
  510. package/menusurface/lib/menu-surface.js.map +1 -1
  511. package/navigationbar/_navigation-bar.scss +1 -2
  512. package/navigationbar/harness.d.ts +1 -1
  513. package/navigationbar/harness.js +1 -1
  514. package/navigationbar/harness.js.map +1 -1
  515. package/navigationbar/lib/_navigation-bar.scss +44 -6
  516. package/navigationbar/lib/constants.d.ts +1 -1
  517. package/navigationbar/lib/constants.js.map +1 -1
  518. package/navigationbar/lib/navigation-bar-styles.css.js +1 -1
  519. package/navigationbar/lib/navigation-bar-styles.css.js.map +1 -1
  520. package/navigationbar/lib/navigation-bar-styles.scss +1 -13
  521. package/navigationbar/lib/navigation-bar.d.ts +4 -3
  522. package/navigationbar/lib/navigation-bar.js +35 -44
  523. package/navigationbar/lib/navigation-bar.js.map +1 -1
  524. package/navigationbar/lib/state.d.ts +1 -1
  525. package/navigationbar/lib/state.js.map +1 -1
  526. package/navigationdrawer/_navigation-drawer-modal.scss +1 -1
  527. package/navigationdrawer/_navigation-drawer.scss +1 -1
  528. package/navigationdrawer/lib/_navigation-drawer-modal.scss +54 -12
  529. package/navigationdrawer/lib/_navigation-drawer.scss +48 -9
  530. package/navigationdrawer/lib/_shared.scss +49 -0
  531. package/navigationdrawer/lib/navigation-drawer-modal-styles.css.js +1 -1
  532. package/navigationdrawer/lib/navigation-drawer-modal-styles.css.js.map +1 -1
  533. package/navigationdrawer/lib/navigation-drawer-modal-styles.scss +1 -5
  534. package/navigationdrawer/lib/navigation-drawer-modal.d.ts +7 -7
  535. package/navigationdrawer/lib/navigation-drawer-modal.js +13 -14
  536. package/navigationdrawer/lib/navigation-drawer-modal.js.map +1 -1
  537. package/navigationdrawer/lib/navigation-drawer-styles.css.js +1 -1
  538. package/navigationdrawer/lib/navigation-drawer-styles.css.js.map +1 -1
  539. package/navigationdrawer/lib/navigation-drawer-styles.scss +1 -11
  540. package/navigationdrawer/lib/navigation-drawer.d.ts +6 -6
  541. package/navigationdrawer/lib/navigation-drawer.js +13 -14
  542. package/navigationdrawer/lib/navigation-drawer.js.map +1 -1
  543. package/navigationdrawer/lib/shared-styles.css.d.ts +1 -0
  544. package/navigationdrawer/lib/shared-styles.css.js +9 -0
  545. package/navigationdrawer/lib/shared-styles.css.js.map +1 -0
  546. package/navigationdrawer/lib/shared-styles.scss +8 -0
  547. package/navigationdrawer/navigation-drawer-modal.js +2 -1
  548. package/navigationdrawer/navigation-drawer-modal.js.map +1 -1
  549. package/navigationdrawer/navigation-drawer.js +2 -1
  550. package/navigationdrawer/navigation-drawer.js.map +1 -1
  551. package/navigationtab/_navigation-tab.scss +1 -2
  552. package/navigationtab/harness.d.ts +1 -1
  553. package/navigationtab/harness.js +1 -1
  554. package/navigationtab/harness.js.map +1 -1
  555. package/navigationtab/lib/_navigation-tab.scss +224 -77
  556. package/navigationtab/lib/navigation-tab-styles.css.js +1 -1
  557. package/navigationtab/lib/navigation-tab-styles.css.js.map +1 -1
  558. package/navigationtab/lib/navigation-tab-styles.scss +1 -14
  559. package/navigationtab/lib/navigation-tab.d.ts +4 -4
  560. package/navigationtab/lib/navigation-tab.js +6 -6
  561. package/navigationtab/lib/navigation-tab.js.map +1 -1
  562. package/package.json +76 -12
  563. package/radio/harness.d.ts +1 -1
  564. package/radio/harness.js +1 -1
  565. package/radio/harness.js.map +1 -1
  566. package/radio/lib/_radio-theme.scss +7 -6
  567. package/radio/lib/_radio.scss +5 -5
  568. package/radio/lib/radio-styles.css.js +1 -1
  569. package/radio/lib/radio-styles.css.js.map +1 -1
  570. package/radio/lib/radio.d.ts +4 -7
  571. package/radio/lib/radio.js +11 -12
  572. package/radio/lib/radio.js.map +1 -1
  573. package/ripple/_ripple-theme.scss +13 -2
  574. package/ripple/_ripple.scss +6 -0
  575. package/ripple/directive.d.ts +63 -0
  576. package/ripple/directive.js +266 -0
  577. package/ripple/directive.js.map +1 -0
  578. package/ripple/lib/_md-comp-ripple.scss +29 -0
  579. package/ripple/lib/_ripple.scss +82 -53
  580. package/ripple/lib/ripple-styles.css.js +1 -1
  581. package/ripple/lib/ripple-styles.css.js.map +1 -1
  582. package/ripple/lib/ripple-styles.scss +1 -9
  583. package/ripple/lib/ripple.d.ts +1 -1
  584. package/ripple/lib/ripple.js +1 -1
  585. package/ripple/lib/ripple.js.map +1 -1
  586. package/sass/_assert.scss +5 -0
  587. package/sass/_color-scheme.scss +88 -0
  588. package/sass/_color.scss +30 -50
  589. package/sass/_feature-flags.scss +3 -3
  590. package/segmentedbutton/lib/_outlined-segmented-button.scss +26 -2
  591. package/segmentedbutton/lib/_shared.scss +388 -0
  592. package/segmentedbutton/lib/outlined-styles.css.js +1 -1
  593. package/segmentedbutton/lib/outlined-styles.css.js.map +1 -1
  594. package/segmentedbutton/lib/outlined-styles.scss +1 -10
  595. package/segmentedbutton/lib/segmented-button.d.ts +3 -3
  596. package/segmentedbutton/lib/segmented-button.js +5 -5
  597. package/segmentedbutton/lib/segmented-button.js.map +1 -1
  598. package/segmentedbutton/lib/shared-styles.css.d.ts +1 -0
  599. package/segmentedbutton/lib/shared-styles.css.js +9 -0
  600. package/segmentedbutton/lib/shared-styles.css.js.map +1 -0
  601. package/segmentedbutton/lib/shared-styles.scss +8 -0
  602. package/segmentedbutton/outlined-segmented-button.js +1 -1
  603. package/segmentedbutton/outlined-segmented-button.js.map +1 -1
  604. package/segmentedbuttonset/lib/_outlined-segmented-button-set.scss +22 -4
  605. package/segmentedbuttonset/lib/_shared.scss +46 -0
  606. package/segmentedbuttonset/lib/outlined-styles.css.js +1 -1
  607. package/segmentedbuttonset/lib/outlined-styles.css.js.map +1 -1
  608. package/segmentedbuttonset/lib/outlined-styles.scss +1 -10
  609. package/segmentedbuttonset/lib/segmented-button-set.js +1 -1
  610. package/segmentedbuttonset/lib/segmented-button-set.js.map +1 -1
  611. package/segmentedbuttonset/lib/shared-styles.css.js +1 -1
  612. package/segmentedbuttonset/lib/shared-styles.css.js.map +1 -1
  613. package/segmentedbuttonset/lib/shared-styles.scss +2 -2
  614. package/switch/_switch.scss +1 -2
  615. package/switch/harness.d.ts +1 -1
  616. package/switch/harness.js +1 -1
  617. package/switch/harness.js.map +1 -1
  618. package/switch/lib/_handle.scss +121 -0
  619. package/switch/lib/_icon.scss +33 -0
  620. package/switch/lib/_switch.scss +211 -119
  621. package/switch/lib/_track.scss +57 -0
  622. package/switch/lib/switch-styles.css.js +1 -1
  623. package/switch/lib/switch-styles.css.js.map +1 -1
  624. package/switch/lib/switch-styles.scss +1 -4
  625. package/switch/lib/switch.d.ts +42 -18
  626. package/switch/lib/switch.js +86 -47
  627. package/switch/lib/switch.js.map +1 -1
  628. package/switch/switch.d.ts +6 -1
  629. package/switch/switch.js +6 -1
  630. package/switch/switch.js.map +1 -1
  631. package/textfield/_filled-text-field.scss +1 -4
  632. package/textfield/_outlined-text-field.scss +1 -4
  633. package/textfield/filled-text-field.d.ts +1 -1
  634. package/textfield/filled-text-field.js +1 -1
  635. package/textfield/filled-text-field.js.map +1 -1
  636. package/textfield/harness.d.ts +1 -1
  637. package/textfield/harness.js +1 -1
  638. package/textfield/harness.js.map +1 -1
  639. package/textfield/lib/_filled-text-field.scss +147 -0
  640. package/textfield/lib/_icon.scss +71 -1
  641. package/textfield/lib/_input.scss +65 -21
  642. package/textfield/lib/_outlined-text-field.scss +137 -0
  643. package/textfield/lib/_shared.scss +59 -0
  644. package/textfield/lib/filled-forced-colors-styles.css.js +1 -1
  645. package/textfield/lib/filled-forced-colors-styles.css.js.map +1 -1
  646. package/textfield/lib/filled-forced-colors-styles.scss +17 -7
  647. package/textfield/lib/filled-styles.css.js +1 -1
  648. package/textfield/lib/filled-styles.css.js.map +1 -1
  649. package/textfield/lib/filled-styles.scss +2 -9
  650. package/textfield/lib/outlined-forced-colors-styles.css.js +1 -1
  651. package/textfield/lib/outlined-forced-colors-styles.css.js.map +1 -1
  652. package/textfield/lib/outlined-forced-colors-styles.scss +17 -7
  653. package/textfield/lib/outlined-styles.css.js +1 -1
  654. package/textfield/lib/outlined-styles.css.js.map +1 -1
  655. package/textfield/lib/outlined-styles.scss +2 -9
  656. package/textfield/lib/shared-styles.css.js +1 -1
  657. package/textfield/lib/shared-styles.css.js.map +1 -1
  658. package/textfield/lib/shared-styles.scss +2 -6
  659. package/textfield/lib/text-field.d.ts +88 -9
  660. package/textfield/lib/text-field.js +228 -70
  661. package/textfield/lib/text-field.js.map +1 -1
  662. package/textfield/outlined-text-field.d.ts +1 -1
  663. package/textfield/outlined-text-field.js +1 -1
  664. package/textfield/outlined-text-field.js.map +1 -1
  665. package/tokens/_index.scss +1 -1
  666. package/tokens/{latest → v0_144}/_index.scss +15 -94
  667. package/tokens/v0_144/_md-comp-assist-chip.scss +109 -0
  668. package/tokens/v0_144/_md-comp-badge.scss +58 -0
  669. package/tokens/v0_144/_md-comp-banner.scss +116 -0
  670. package/tokens/v0_144/_md-comp-bottom-app-bar.scss +36 -0
  671. package/tokens/v0_144/_md-comp-carousel-item.scss +65 -0
  672. package/tokens/v0_144/_md-comp-checkbox.scss +147 -0
  673. package/tokens/v0_144/_md-comp-circular-progress-indicator.scss +39 -0
  674. package/tokens/v0_144/_md-comp-data-table.scss +100 -0
  675. package/tokens/v0_144/_md-comp-date-input-modal.scss +89 -0
  676. package/tokens/v0_144/_md-comp-date-picker-docked.scss +246 -0
  677. package/tokens/v0_144/_md-comp-date-picker-modal.scss +305 -0
  678. package/tokens/v0_144/_md-comp-dialog.scss +146 -0
  679. package/tokens/{latest → v0_144}/_md-comp-divider.scss +5 -5
  680. package/tokens/v0_144/_md-comp-elevated-button.scss +91 -0
  681. package/tokens/v0_144/_md-comp-elevated-card.scss +59 -0
  682. package/tokens/v0_144/_md-comp-extended-fab-branded.scss +86 -0
  683. package/tokens/v0_144/_md-comp-extended-fab-primary.scss +94 -0
  684. package/tokens/v0_144/_md-comp-extended-fab-secondary.scss +95 -0
  685. package/tokens/v0_144/_md-comp-extended-fab-surface.scss +90 -0
  686. package/tokens/v0_144/_md-comp-extended-fab-tertiary.scss +97 -0
  687. package/tokens/v0_144/_md-comp-fab-branded-large.scss +61 -0
  688. package/tokens/v0_144/_md-comp-fab-branded.scss +60 -0
  689. package/tokens/v0_144/_md-comp-fab-primary-large.scss +65 -0
  690. package/tokens/v0_144/_md-comp-fab-primary-small.scss +65 -0
  691. package/tokens/v0_144/_md-comp-fab-primary.scss +65 -0
  692. package/tokens/v0_144/_md-comp-fab-secondary-large.scss +66 -0
  693. package/tokens/v0_144/_md-comp-fab-secondary-small.scss +66 -0
  694. package/tokens/v0_144/_md-comp-fab-secondary.scss +66 -0
  695. package/tokens/v0_144/_md-comp-fab-surface-large.scss +64 -0
  696. package/tokens/v0_144/_md-comp-fab-surface-small.scss +64 -0
  697. package/tokens/v0_144/_md-comp-fab-surface.scss +64 -0
  698. package/tokens/v0_144/_md-comp-fab-tertiary-large.scss +66 -0
  699. package/tokens/v0_144/_md-comp-fab-tertiary-small.scss +66 -0
  700. package/tokens/v0_144/_md-comp-fab-tertiary.scss +66 -0
  701. package/tokens/v0_144/_md-comp-filled-autocomplete.scss +268 -0
  702. package/tokens/v0_144/_md-comp-filled-button.scss +95 -0
  703. package/tokens/v0_144/_md-comp-filled-card.scss +60 -0
  704. package/tokens/v0_144/_md-comp-filled-icon-button.scss +79 -0
  705. package/tokens/v0_144/_md-comp-filled-menu-button.scss +98 -0
  706. package/tokens/v0_144/_md-comp-filled-select.scss +276 -0
  707. package/tokens/v0_144/_md-comp-filled-text-field.scss +190 -0
  708. package/tokens/v0_144/_md-comp-filled-tonal-button.scss +99 -0
  709. package/tokens/v0_144/_md-comp-filled-tonal-icon-button.scss +86 -0
  710. package/tokens/v0_144/_md-comp-filter-chip.scss +236 -0
  711. package/tokens/v0_144/_md-comp-full-screen-dialog.scss +161 -0
  712. package/tokens/v0_144/_md-comp-icon-button.scss +70 -0
  713. package/tokens/v0_144/_md-comp-input-chip.scss +234 -0
  714. package/tokens/v0_144/_md-comp-linear-progress-indicator.scss +41 -0
  715. package/tokens/v0_144/_md-comp-list.scss +257 -0
  716. package/tokens/v0_144/_md-comp-menu.scss +123 -0
  717. package/tokens/v0_144/_md-comp-navigation-bar.scss +121 -0
  718. package/tokens/v0_144/_md-comp-navigation-drawer.scss +168 -0
  719. package/tokens/v0_144/_md-comp-navigation-rail.scss +168 -0
  720. package/tokens/v0_144/_md-comp-outlined-autocomplete.scss +258 -0
  721. package/tokens/v0_144/_md-comp-outlined-button.scss +88 -0
  722. package/tokens/v0_144/_md-comp-outlined-card.scss +65 -0
  723. package/tokens/v0_144/_md-comp-outlined-icon-button.scss +81 -0
  724. package/tokens/v0_144/_md-comp-outlined-menu-button.scss +94 -0
  725. package/tokens/v0_144/_md-comp-outlined-segmented-button.scss +112 -0
  726. package/tokens/v0_144/_md-comp-outlined-select.scss +266 -0
  727. package/tokens/v0_144/_md-comp-outlined-text-field.scss +172 -0
  728. package/tokens/v0_144/_md-comp-plain-tooltip.scss +55 -0
  729. package/tokens/v0_144/_md-comp-primary-navigation-tab.scss +123 -0
  730. package/tokens/v0_144/_md-comp-radio-button.scss +68 -0
  731. package/tokens/v0_144/_md-comp-rich-tooltip.scss +121 -0
  732. package/tokens/{v0_93/_md-comp-divider.scss → v0_144/_md-comp-scrim.scss} +5 -5
  733. package/tokens/v0_144/_md-comp-search-bar.scss +99 -0
  734. package/tokens/v0_144/_md-comp-search-view.scss +93 -0
  735. package/tokens/v0_144/_md-comp-secondary-navigation-tab.scss +86 -0
  736. package/tokens/v0_144/_md-comp-sheet-bottom.scss +45 -0
  737. package/tokens/v0_144/_md-comp-sheet-floating.scss +34 -0
  738. package/tokens/v0_144/_md-comp-sheet-side.scss +89 -0
  739. package/tokens/v0_144/_md-comp-slider.scss +116 -0
  740. package/tokens/v0_144/_md-comp-snackbar.scss +103 -0
  741. package/tokens/v0_144/_md-comp-standard-menu-button.scss +98 -0
  742. package/tokens/v0_144/_md-comp-suggestion-chip.scss +125 -0
  743. package/tokens/v0_144/_md-comp-switch.scss +145 -0
  744. package/tokens/v0_144/_md-comp-text-button.scss +81 -0
  745. package/tokens/v0_144/_md-comp-time-input.scss +218 -0
  746. package/tokens/v0_144/_md-comp-time-picker.scss +267 -0
  747. package/tokens/v0_144/_md-comp-top-app-bar-large.scss +63 -0
  748. package/tokens/v0_144/_md-comp-top-app-bar-medium.scss +63 -0
  749. package/tokens/v0_144/_md-comp-top-app-bar-small-centered.scss +67 -0
  750. package/tokens/v0_144/_md-comp-top-app-bar-small.scss +65 -0
  751. package/tokens/v0_144/_md-ref-palette.scss +107 -0
  752. package/tokens/v0_144/_md-ref-typeface.scss +21 -0
  753. package/tokens/v0_144/_md-sys-color.scss +706 -0
  754. package/tokens/v0_144/_md-sys-elevation.scss +30 -0
  755. package/tokens/v0_144/_md-sys-motion.scss +53 -0
  756. package/tokens/v0_144/_md-sys-shape.scss +30 -0
  757. package/tokens/v0_144/_md-sys-state.scss +19 -0
  758. package/tokens/v0_144/_md-sys-typescale.scss +285 -0
  759. package/badge/lib/_badge-theme.scss +0 -118
  760. package/button/lib/_button-theme.scss +0 -204
  761. package/button/lib/_button.scss +0 -88
  762. package/button/lib/_elevated-button-theme.scss +0 -53
  763. package/button/lib/_elevation-theme.scss +0 -94
  764. package/button/lib/_filled-button-theme.scss +0 -53
  765. package/button/lib/_icon-theme.scss +0 -67
  766. package/button/lib/_outlined-button-theme.scss +0 -112
  767. package/button/lib/_text-button-theme.scss +0 -57
  768. package/button/lib/_tonal-button-theme.scss +0 -53
  769. package/checkbox/lib/_checkbox-theme.scss +0 -532
  770. package/chips/action/lib/adapter.d.ts +0 -21
  771. package/chips/action/lib/adapter.js +0 -7
  772. package/chips/action/lib/adapter.js.map +0 -1
  773. package/chips/action/lib/foundation.d.ts +0 -31
  774. package/chips/action/lib/foundation.js +0 -151
  775. package/chips/action/lib/foundation.js.map +0 -1
  776. package/chips/action/lib/primary-foundation.d.ts +0 -16
  777. package/chips/action/lib/primary-foundation.js +0 -24
  778. package/chips/action/lib/primary-foundation.js.map +0 -1
  779. package/chips/action/lib/trailing-action.js.map +0 -1
  780. package/chips/action/lib/trailing-foundation.d.ts +0 -16
  781. package/chips/action/lib/trailing-foundation.js +0 -23
  782. package/chips/action/lib/trailing-foundation.js.map +0 -1
  783. package/compat/animation/animationframe.js.map +0 -1
  784. package/compat/base/aria-property.d.ts +0 -39
  785. package/compat/base/aria-property.js +0 -93
  786. package/compat/base/aria-property.js.map +0 -1
  787. package/compat/base/foundation.d.ts +0 -44
  788. package/compat/base/foundation.js +0 -45
  789. package/compat/base/foundation.js.map +0 -1
  790. package/compat/base/observer.d.ts +0 -16
  791. package/compat/base/observer.js +0 -43
  792. package/compat/base/observer.js.map +0 -1
  793. package/compat/base/utils.d.ts +0 -7
  794. package/compat/base/utils.js +0 -39
  795. package/compat/base/utils.js.map +0 -1
  796. package/compat/density/_density.scss +0 -106
  797. package/compat/dom/keyboard.d.ts +0 -33
  798. package/compat/dom/keyboard.js +0 -109
  799. package/compat/dom/keyboard.js.map +0 -1
  800. package/compat/theme/_color-palette.scss +0 -277
  801. package/compat/theme/_css.scss +0 -92
  802. package/compat/theme/_custom-properties.scss +0 -309
  803. package/compat/theme/_gss.scss +0 -45
  804. package/compat/theme/_keys.scss +0 -507
  805. package/compat/theme/_map-ext.scss +0 -68
  806. package/compat/theme/_replace.scss +0 -108
  807. package/compat/theme/_selector-ext.scss +0 -522
  808. package/compat/theme/_shadow-dom.scss +0 -474
  809. package/compat/theme/_state.scss +0 -752
  810. package/compat/theme/_theme-color.scss +0 -344
  811. package/compat/theme/_theme.scss +0 -334
  812. package/compat/touchtarget/_touch-target.scss +0 -56
  813. package/fab/lib/_fab-extended-theme.scss +0 -108
  814. package/fab/lib/_fab-shared-theme.scss +0 -202
  815. package/fab/lib/_fab-shared.scss +0 -114
  816. package/fab/lib/_fab-theme.scss +0 -107
  817. package/field/lib/_content-theme.scss +0 -80
  818. package/field/lib/_filled-field-theme.scss +0 -382
  819. package/field/lib/_label-theme.scss +0 -123
  820. package/field/lib/_outlined-field-theme.scss +0 -311
  821. package/field/lib/_supporting-text-theme.scss +0 -107
  822. package/focus/lib/_focus-ring-theme.scss +0 -89
  823. package/formfield/formfield.js +0 -22
  824. package/formfield/formfield.js.map +0 -1
  825. package/formfield/lib/_formfield-theme.scss +0 -41
  826. package/formfield/lib/_formfield.scss +0 -40
  827. package/formfield/lib/formfield-styles.css.js +0 -9
  828. package/formfield/lib/formfield-styles.css.js.map +0 -1
  829. package/formfield/lib/formfield-styles.scss +0 -16
  830. package/formfield/lib/formfield.d.ts +0 -22
  831. package/formfield/lib/formfield.js +0 -73
  832. package/formfield/lib/formfield.js.map +0 -1
  833. package/iconbutton/lib/_filled-icon-button-theme.scss +0 -138
  834. package/iconbutton/lib/_filled-tonal-icon-button-theme.scss +0 -144
  835. package/iconbutton/lib/_icon-button.scss +0 -91
  836. package/iconbutton/lib/_outlined-icon-button-theme.scss +0 -187
  837. package/iconbutton/lib/_standard-icon-button-theme.scss +0 -107
  838. package/iconbutton/lib/icon-button-styles.css.js +0 -9
  839. package/iconbutton/lib/icon-button-styles.css.js.map +0 -1
  840. package/list/lib/_list-theme.scss +0 -51
  841. package/list/lib/avatar/_list-item-avatar-theme.scss +0 -30
  842. package/list/lib/divider/_list-divider-theme.scss +0 -30
  843. package/list/lib/icon/_list-item-icon-theme.scss +0 -32
  844. package/list/lib/image/_list-item-image-theme.scss +0 -36
  845. package/list/lib/listitem/_list-item-theme.scss +0 -337
  846. package/list/lib/video/_list-item-video-theme.scss +0 -36
  847. package/menu/lib/_menu-theme.scss +0 -118
  848. package/menusurface/lib/_menu-surface-theme.scss +0 -58
  849. package/navigationbar/lib/_navigation-bar-theme.scss +0 -87
  850. package/navigationdrawer/lib/_navigation-drawer-modal-theme.scss +0 -138
  851. package/navigationdrawer/lib/_navigation-drawer-theme.scss +0 -113
  852. package/navigationtab/lib/_navigation-tab-theme.scss +0 -343
  853. package/ripple/lib/_ripple-theme.scss +0 -98
  854. package/segmentedbutton/lib/_outlined-segmented-button-theme.scss +0 -167
  855. package/segmentedbutton/lib/_segmented-button-theme.scss +0 -316
  856. package/segmentedbutton/lib/_segmented-button.scss +0 -159
  857. package/segmentedbutton/lib/segmented-button-styles.css.js +0 -9
  858. package/segmentedbutton/lib/segmented-button-styles.css.js.map +0 -1
  859. package/segmentedbuttonset/lib/_outlined-segmented-button-set-theme.scss +0 -53
  860. package/segmentedbuttonset/lib/_segmented-button-set-theme.scss +0 -41
  861. package/segmentedbuttonset/lib/_segmented-button-set.scss +0 -21
  862. package/switch/lib/_switch-handle-theme.scss +0 -137
  863. package/switch/lib/_switch-icon-theme.scss +0 -52
  864. package/switch/lib/_switch-theme.scss +0 -232
  865. package/switch/lib/_switch-track-theme.scss +0 -117
  866. package/textfield/lib/_filled-text-field-theme.scss +0 -203
  867. package/textfield/lib/_icon-theme.scss +0 -100
  868. package/textfield/lib/_input-theme.scss +0 -91
  869. package/textfield/lib/_outlined-text-field-theme.scss +0 -186
  870. package/textfield/lib/_text-field.scss +0 -28
  871. package/tokens/latest/_md-comp-assist-chip.scss +0 -98
  872. package/tokens/latest/_md-comp-badge.scss +0 -51
  873. package/tokens/latest/_md-comp-banner.scss +0 -99
  874. package/tokens/latest/_md-comp-bottom-app-bar.scss +0 -36
  875. package/tokens/latest/_md-comp-checkbox.scss +0 -119
  876. package/tokens/latest/_md-comp-circular-progress-indicator.scss +0 -37
  877. package/tokens/latest/_md-comp-date-input-modal.scss +0 -76
  878. package/tokens/latest/_md-comp-date-picker-docked.scss +0 -210
  879. package/tokens/latest/_md-comp-date-picker-modal.scss +0 -254
  880. package/tokens/latest/_md-comp-dialog.scss +0 -115
  881. package/tokens/latest/_md-comp-elevated-button.scss +0 -83
  882. package/tokens/latest/_md-comp-elevated-card.scss +0 -59
  883. package/tokens/latest/_md-comp-extended-fab-branded.scss +0 -77
  884. package/tokens/latest/_md-comp-extended-fab-primary.scss +0 -80
  885. package/tokens/latest/_md-comp-extended-fab-secondary.scss +0 -83
  886. package/tokens/latest/_md-comp-extended-fab-surface.scss +0 -81
  887. package/tokens/latest/_md-comp-extended-fab-tertiary.scss +0 -80
  888. package/tokens/latest/_md-comp-fab-branded-large.scss +0 -59
  889. package/tokens/latest/_md-comp-fab-branded.scss +0 -58
  890. package/tokens/latest/_md-comp-fab-primary-large.scss +0 -61
  891. package/tokens/latest/_md-comp-fab-primary-small.scss +0 -61
  892. package/tokens/latest/_md-comp-fab-primary.scss +0 -61
  893. package/tokens/latest/_md-comp-fab-secondary-large.scss +0 -63
  894. package/tokens/latest/_md-comp-fab-secondary-small.scss +0 -62
  895. package/tokens/latest/_md-comp-fab-secondary.scss +0 -63
  896. package/tokens/latest/_md-comp-fab-surface-large.scss +0 -62
  897. package/tokens/latest/_md-comp-fab-surface-small.scss +0 -62
  898. package/tokens/latest/_md-comp-fab-surface.scss +0 -62
  899. package/tokens/latest/_md-comp-fab-tertiary-large.scss +0 -61
  900. package/tokens/latest/_md-comp-fab-tertiary-small.scss +0 -61
  901. package/tokens/latest/_md-comp-fab-tertiary.scss +0 -61
  902. package/tokens/latest/_md-comp-filled-autocomplete.scss +0 -235
  903. package/tokens/latest/_md-comp-filled-button.scss +0 -87
  904. package/tokens/latest/_md-comp-filled-card.scss +0 -59
  905. package/tokens/latest/_md-comp-filled-icon-button.scss +0 -72
  906. package/tokens/latest/_md-comp-filled-menu-button.scss +0 -89
  907. package/tokens/latest/_md-comp-filled-select.scss +0 -243
  908. package/tokens/latest/_md-comp-filled-text-field.scss +0 -146
  909. package/tokens/latest/_md-comp-filled-tonal-button.scss +0 -88
  910. package/tokens/latest/_md-comp-filled-tonal-icon-button.scss +0 -83
  911. package/tokens/latest/_md-comp-filter-chip.scss +0 -172
  912. package/tokens/latest/_md-comp-full-screen-dialog.scss +0 -131
  913. package/tokens/latest/_md-comp-icon-button.scss +0 -66
  914. package/tokens/latest/_md-comp-input-chip.scss +0 -112
  915. package/tokens/latest/_md-comp-linear-progress-indicator.scss +0 -39
  916. package/tokens/latest/_md-comp-list.scss +0 -205
  917. package/tokens/latest/_md-comp-menu.scss +0 -113
  918. package/tokens/latest/_md-comp-navigation-bar.scss +0 -97
  919. package/tokens/latest/_md-comp-navigation-drawer.scss +0 -137
  920. package/tokens/latest/_md-comp-navigation-rail.scss +0 -132
  921. package/tokens/latest/_md-comp-outlined-autocomplete.scss +0 -223
  922. package/tokens/latest/_md-comp-outlined-button.scss +0 -80
  923. package/tokens/latest/_md-comp-outlined-card.scss +0 -65
  924. package/tokens/latest/_md-comp-outlined-icon-button.scss +0 -68
  925. package/tokens/latest/_md-comp-outlined-menu-button.scss +0 -83
  926. package/tokens/latest/_md-comp-outlined-segmented-button.scss +0 -97
  927. package/tokens/latest/_md-comp-outlined-select.scss +0 -231
  928. package/tokens/latest/_md-comp-outlined-text-field.scss +0 -140
  929. package/tokens/latest/_md-comp-plain-tooltip.scss +0 -46
  930. package/tokens/latest/_md-comp-primary-navigation-tab.scss +0 -110
  931. package/tokens/latest/_md-comp-radio-button.scss +0 -58
  932. package/tokens/latest/_md-comp-rich-tooltip.scss +0 -98
  933. package/tokens/latest/_md-comp-search-bar.scss +0 -84
  934. package/tokens/latest/_md-comp-search-view.scss +0 -79
  935. package/tokens/latest/_md-comp-secondary-navigation-tab.scss +0 -78
  936. package/tokens/latest/_md-comp-sheet-bottom.scss +0 -41
  937. package/tokens/latest/_md-comp-sheet-floating.scss +0 -34
  938. package/tokens/latest/_md-comp-sheet-side.scss +0 -75
  939. package/tokens/latest/_md-comp-slider.scss +0 -105
  940. package/tokens/latest/_md-comp-snackbar.scss +0 -91
  941. package/tokens/latest/_md-comp-standard-menu-button.scss +0 -82
  942. package/tokens/latest/_md-comp-suggestion-chip.scss +0 -90
  943. package/tokens/latest/_md-comp-switch.scss +0 -126
  944. package/tokens/latest/_md-comp-text-button.scss +0 -75
  945. package/tokens/latest/_md-comp-time-input.scss +0 -184
  946. package/tokens/latest/_md-comp-time-picker.scss +0 -235
  947. package/tokens/latest/_md-comp-top-app-bar-large.scss +0 -57
  948. package/tokens/latest/_md-comp-top-app-bar-medium.scss +0 -56
  949. package/tokens/latest/_md-comp-top-app-bar-small-centered.scss +0 -60
  950. package/tokens/latest/_md-comp-top-app-bar-small.scss +0 -58
  951. package/tokens/latest/_md-ref-palette.scss +0 -95
  952. package/tokens/latest/_md-ref-typeface.scss +0 -20
  953. package/tokens/latest/_md-sys-color.scss +0 -1006
  954. package/tokens/latest/_md-sys-elevation.scss +0 -30
  955. package/tokens/latest/_md-sys-motion.scss +0 -51
  956. package/tokens/latest/_md-sys-shape.scss +0 -26
  957. package/tokens/latest/_md-sys-state.scss +0 -19
  958. package/tokens/latest/_md-sys-typescale.scss +0 -204
  959. package/tokens/v0_75/_index.scss +0 -154
  960. package/tokens/v0_75/_md-comp-assist-chip.scss +0 -98
  961. package/tokens/v0_75/_md-comp-badge.scss +0 -51
  962. package/tokens/v0_75/_md-comp-banner.scss +0 -99
  963. package/tokens/v0_75/_md-comp-bottom-app-bar.scss +0 -36
  964. package/tokens/v0_75/_md-comp-checkbox.scss +0 -59
  965. package/tokens/v0_75/_md-comp-circular-progress-indicator.scss +0 -37
  966. package/tokens/v0_75/_md-comp-dialog.scss +0 -102
  967. package/tokens/v0_75/_md-comp-elevated-button.scss +0 -83
  968. package/tokens/v0_75/_md-comp-elevated-card.scss +0 -56
  969. package/tokens/v0_75/_md-comp-extended-fab-branded.scss +0 -77
  970. package/tokens/v0_75/_md-comp-extended-fab-primary.scss +0 -80
  971. package/tokens/v0_75/_md-comp-extended-fab-secondary.scss +0 -83
  972. package/tokens/v0_75/_md-comp-extended-fab-surface.scss +0 -81
  973. package/tokens/v0_75/_md-comp-extended-fab-tertiary.scss +0 -80
  974. package/tokens/v0_75/_md-comp-fab-branded-large.scss +0 -59
  975. package/tokens/v0_75/_md-comp-fab-branded.scss +0 -58
  976. package/tokens/v0_75/_md-comp-fab-primary-large.scss +0 -61
  977. package/tokens/v0_75/_md-comp-fab-primary-small.scss +0 -61
  978. package/tokens/v0_75/_md-comp-fab-primary.scss +0 -61
  979. package/tokens/v0_75/_md-comp-fab-secondary-large.scss +0 -63
  980. package/tokens/v0_75/_md-comp-fab-secondary-small.scss +0 -62
  981. package/tokens/v0_75/_md-comp-fab-secondary.scss +0 -63
  982. package/tokens/v0_75/_md-comp-fab-surface-large.scss +0 -62
  983. package/tokens/v0_75/_md-comp-fab-surface-small.scss +0 -62
  984. package/tokens/v0_75/_md-comp-fab-surface.scss +0 -62
  985. package/tokens/v0_75/_md-comp-fab-tertiary-large.scss +0 -61
  986. package/tokens/v0_75/_md-comp-fab-tertiary-small.scss +0 -61
  987. package/tokens/v0_75/_md-comp-fab-tertiary.scss +0 -61
  988. package/tokens/v0_75/_md-comp-filled-button-tonal.scss +0 -84
  989. package/tokens/v0_75/_md-comp-filled-button.scss +0 -87
  990. package/tokens/v0_75/_md-comp-filled-card.scss +0 -56
  991. package/tokens/v0_75/_md-comp-filled-icon-button.scss +0 -72
  992. package/tokens/v0_75/_md-comp-filled-text-field.scss +0 -142
  993. package/tokens/v0_75/_md-comp-filled-tonal-button.scss +0 -88
  994. package/tokens/v0_75/_md-comp-filled-tonal-icon-button.scss +0 -83
  995. package/tokens/v0_75/_md-comp-filter-chip.scss +0 -172
  996. package/tokens/v0_75/_md-comp-full-screen-dialog.scss +0 -131
  997. package/tokens/v0_75/_md-comp-icon-button.scss +0 -79
  998. package/tokens/v0_75/_md-comp-input-chip.scss +0 -112
  999. package/tokens/v0_75/_md-comp-linear-progress-indicator.scss +0 -39
  1000. package/tokens/v0_75/_md-comp-list.scss +0 -205
  1001. package/tokens/v0_75/_md-comp-menu.scss +0 -113
  1002. package/tokens/v0_75/_md-comp-navigation-bar.scss +0 -131
  1003. package/tokens/v0_75/_md-comp-navigation-drawer.scss +0 -137
  1004. package/tokens/v0_75/_md-comp-navigation-rail.scss +0 -136
  1005. package/tokens/v0_75/_md-comp-outlined-button.scss +0 -80
  1006. package/tokens/v0_75/_md-comp-outlined-card.scss +0 -62
  1007. package/tokens/v0_75/_md-comp-outlined-icon-button.scss +0 -68
  1008. package/tokens/v0_75/_md-comp-outlined-segmented-button.scss +0 -96
  1009. package/tokens/v0_75/_md-comp-outlined-text-field.scss +0 -136
  1010. package/tokens/v0_75/_md-comp-primary-navigation-tab.scss +0 -116
  1011. package/tokens/v0_75/_md-comp-radio-button.scss +0 -58
  1012. package/tokens/v0_75/_md-comp-rich-tooltip.scss +0 -98
  1013. package/tokens/v0_75/_md-comp-secondary-navigation-tab.scss +0 -75
  1014. package/tokens/v0_75/_md-comp-slider.scss +0 -129
  1015. package/tokens/v0_75/_md-comp-snackbar.scss +0 -77
  1016. package/tokens/v0_75/_md-comp-suggestion-chip.scss +0 -90
  1017. package/tokens/v0_75/_md-comp-switch.scss +0 -92
  1018. package/tokens/v0_75/_md-comp-text-button.scss +0 -75
  1019. package/tokens/v0_75/_md-comp-top-app-bar-compact-centered.scss +0 -53
  1020. package/tokens/v0_75/_md-comp-top-app-bar-compact.scss +0 -43
  1021. package/tokens/v0_75/_md-comp-top-app-bar-large.scss +0 -57
  1022. package/tokens/v0_75/_md-comp-top-app-bar-medium.scss +0 -56
  1023. package/tokens/v0_75/_md-comp-top-app-bar-small-centered.scss +0 -60
  1024. package/tokens/v0_75/_md-comp-top-app-bar-small.scss +0 -58
  1025. package/tokens/v0_75/_md-ref-palette.scss +0 -186
  1026. package/tokens/v0_75/_md-ref-typeface.scss +0 -25
  1027. package/tokens/v0_75/_md-sys-color.scss +0 -86
  1028. package/tokens/v0_75/_md-sys-elevation.scss +0 -30
  1029. package/tokens/v0_75/_md-sys-motion.scss +0 -61
  1030. package/tokens/v0_75/_md-sys-shape.scss +0 -29
  1031. package/tokens/v0_75/_md-sys-state.scss +0 -19
  1032. package/tokens/v0_75/_md-sys-typescale.scss +0 -252
  1033. package/tokens/v0_93/_index.scss +0 -184
  1034. package/tokens/v0_93/_md-comp-assist-chip.scss +0 -98
  1035. package/tokens/v0_93/_md-comp-badge.scss +0 -51
  1036. package/tokens/v0_93/_md-comp-banner.scss +0 -99
  1037. package/tokens/v0_93/_md-comp-bottom-app-bar.scss +0 -36
  1038. package/tokens/v0_93/_md-comp-checkbox.scss +0 -119
  1039. package/tokens/v0_93/_md-comp-circular-progress-indicator.scss +0 -37
  1040. package/tokens/v0_93/_md-comp-date-input-modal.scss +0 -76
  1041. package/tokens/v0_93/_md-comp-date-picker-docked.scss +0 -210
  1042. package/tokens/v0_93/_md-comp-date-picker-modal.scss +0 -254
  1043. package/tokens/v0_93/_md-comp-dialog.scss +0 -101
  1044. package/tokens/v0_93/_md-comp-elevated-button.scss +0 -83
  1045. package/tokens/v0_93/_md-comp-elevated-card.scss +0 -59
  1046. package/tokens/v0_93/_md-comp-extended-fab-branded.scss +0 -77
  1047. package/tokens/v0_93/_md-comp-extended-fab-primary.scss +0 -80
  1048. package/tokens/v0_93/_md-comp-extended-fab-secondary.scss +0 -83
  1049. package/tokens/v0_93/_md-comp-extended-fab-surface.scss +0 -81
  1050. package/tokens/v0_93/_md-comp-extended-fab-tertiary.scss +0 -80
  1051. package/tokens/v0_93/_md-comp-fab-branded-large.scss +0 -59
  1052. package/tokens/v0_93/_md-comp-fab-branded.scss +0 -58
  1053. package/tokens/v0_93/_md-comp-fab-primary-large.scss +0 -61
  1054. package/tokens/v0_93/_md-comp-fab-primary-small.scss +0 -61
  1055. package/tokens/v0_93/_md-comp-fab-primary.scss +0 -61
  1056. package/tokens/v0_93/_md-comp-fab-secondary-large.scss +0 -63
  1057. package/tokens/v0_93/_md-comp-fab-secondary-small.scss +0 -62
  1058. package/tokens/v0_93/_md-comp-fab-secondary.scss +0 -63
  1059. package/tokens/v0_93/_md-comp-fab-surface-large.scss +0 -62
  1060. package/tokens/v0_93/_md-comp-fab-surface-small.scss +0 -62
  1061. package/tokens/v0_93/_md-comp-fab-surface.scss +0 -62
  1062. package/tokens/v0_93/_md-comp-fab-tertiary-large.scss +0 -61
  1063. package/tokens/v0_93/_md-comp-fab-tertiary-small.scss +0 -61
  1064. package/tokens/v0_93/_md-comp-fab-tertiary.scss +0 -61
  1065. package/tokens/v0_93/_md-comp-filled-autocomplete.scss +0 -235
  1066. package/tokens/v0_93/_md-comp-filled-button.scss +0 -87
  1067. package/tokens/v0_93/_md-comp-filled-card.scss +0 -59
  1068. package/tokens/v0_93/_md-comp-filled-icon-button.scss +0 -72
  1069. package/tokens/v0_93/_md-comp-filled-menu-button.scss +0 -89
  1070. package/tokens/v0_93/_md-comp-filled-select.scss +0 -243
  1071. package/tokens/v0_93/_md-comp-filled-text-field.scss +0 -146
  1072. package/tokens/v0_93/_md-comp-filled-tonal-button.scss +0 -88
  1073. package/tokens/v0_93/_md-comp-filled-tonal-icon-button.scss +0 -83
  1074. package/tokens/v0_93/_md-comp-filter-chip.scss +0 -172
  1075. package/tokens/v0_93/_md-comp-full-screen-dialog.scss +0 -131
  1076. package/tokens/v0_93/_md-comp-icon-button.scss +0 -66
  1077. package/tokens/v0_93/_md-comp-input-chip.scss +0 -112
  1078. package/tokens/v0_93/_md-comp-linear-progress-indicator.scss +0 -39
  1079. package/tokens/v0_93/_md-comp-list.scss +0 -205
  1080. package/tokens/v0_93/_md-comp-menu.scss +0 -113
  1081. package/tokens/v0_93/_md-comp-navigation-bar.scss +0 -97
  1082. package/tokens/v0_93/_md-comp-navigation-drawer.scss +0 -137
  1083. package/tokens/v0_93/_md-comp-navigation-rail.scss +0 -132
  1084. package/tokens/v0_93/_md-comp-outlined-autocomplete.scss +0 -223
  1085. package/tokens/v0_93/_md-comp-outlined-button.scss +0 -80
  1086. package/tokens/v0_93/_md-comp-outlined-card.scss +0 -65
  1087. package/tokens/v0_93/_md-comp-outlined-icon-button.scss +0 -68
  1088. package/tokens/v0_93/_md-comp-outlined-menu-button.scss +0 -83
  1089. package/tokens/v0_93/_md-comp-outlined-segmented-button.scss +0 -97
  1090. package/tokens/v0_93/_md-comp-outlined-select.scss +0 -231
  1091. package/tokens/v0_93/_md-comp-outlined-text-field.scss +0 -140
  1092. package/tokens/v0_93/_md-comp-plain-tooltip.scss +0 -46
  1093. package/tokens/v0_93/_md-comp-primary-navigation-tab.scss +0 -110
  1094. package/tokens/v0_93/_md-comp-radio-button.scss +0 -58
  1095. package/tokens/v0_93/_md-comp-rich-tooltip.scss +0 -98
  1096. package/tokens/v0_93/_md-comp-search-bar.scss +0 -84
  1097. package/tokens/v0_93/_md-comp-search-view.scss +0 -79
  1098. package/tokens/v0_93/_md-comp-secondary-navigation-tab.scss +0 -78
  1099. package/tokens/v0_93/_md-comp-sheet-bottom.scss +0 -41
  1100. package/tokens/v0_93/_md-comp-sheet-side.scss +0 -75
  1101. package/tokens/v0_93/_md-comp-slider.scss +0 -105
  1102. package/tokens/v0_93/_md-comp-snackbar.scss +0 -91
  1103. package/tokens/v0_93/_md-comp-standard-menu-button.scss +0 -82
  1104. package/tokens/v0_93/_md-comp-suggestion-chip.scss +0 -90
  1105. package/tokens/v0_93/_md-comp-switch.scss +0 -126
  1106. package/tokens/v0_93/_md-comp-text-button.scss +0 -75
  1107. package/tokens/v0_93/_md-comp-time-input.scss +0 -184
  1108. package/tokens/v0_93/_md-comp-time-picker.scss +0 -235
  1109. package/tokens/v0_93/_md-comp-top-app-bar-large.scss +0 -57
  1110. package/tokens/v0_93/_md-comp-top-app-bar-medium.scss +0 -56
  1111. package/tokens/v0_93/_md-comp-top-app-bar-small-centered.scss +0 -60
  1112. package/tokens/v0_93/_md-comp-top-app-bar-small.scss +0 -58
  1113. package/tokens/v0_93/_md-ref-palette.scss +0 -95
  1114. package/tokens/v0_93/_md-ref-typeface.scss +0 -20
  1115. package/tokens/v0_93/_md-sys-color.scss +0 -1006
  1116. package/tokens/v0_93/_md-sys-elevation.scss +0 -30
  1117. package/tokens/v0_93/_md-sys-motion.scss +0 -51
  1118. package/tokens/v0_93/_md-sys-shape.scss +0 -26
  1119. package/tokens/v0_93/_md-sys-state.scss +0 -19
  1120. package/tokens/v0_93/_md-sys-typescale.scss +0 -204
@@ -1 +1 @@
1
- {"version":3,"file":"menu-surface-styles.css.js","sourceRoot":"","sources":["menu-surface-styles.css.ts"],"names":[],"mappings":"AAAA;;;;IAII;AACH,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AACxB,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;CACzB,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n import {css} from 'lit';\n export const styles = css`.md3-menu-surface{box-sizing:border-box;display:none;opacity:0;overflow:auto;margin:0;max-height:calc(100vh - 32px);max-width:calc(100vw - 32px);padding:0;position:absolute;transform:scale(1);transform-origin:top left;transition:opacity .03s linear,transform .12s cubic-bezier(0, 0, 0.2, 1),height 250ms cubic-bezier(0, 0, 0.2, 1);will-change:transform,opacity;z-index:8}.md3-menu-surface .md3-elevation-overlay{z-index:0}.md3-menu-surface:focus{outline:none}.md3-menu-surface--animating-open{display:inline-block;opacity:0;transform:scale(0.8)}.md3-menu-surface--open{display:inline-block;opacity:1;transform:scale(1)}.md3-menu-surface--animating-closed{display:inline-block;opacity:0;transition:opacity .075s linear}.md3-menu-surface--anchor{overflow:visible;position:relative}.md3-menu-surface--fixed{position:fixed}.md3-menu-surface--fullwidth{width:100%}.md3-menu-surface--is-open-below{border-top-left-radius:0px;border-top-right-radius:0px}.md3-menu-surface{--md-elevation-box-shadow-for-gss:0px 1px 2px 0px rgb(var(--md-sys-color-shadow-rgb, 0, 0, 0), 0.3), 0px 2px 6px 2px rgb(var(--md-sys-color-shadow-rgb, 0, 0, 0), 0.15);box-shadow:var(--md-menu-surface-container-elevation-shadow, var(--md-elevation-box-shadow-for-gss));border-radius:var(--md-menu-surface-container-shape, 4px)}/*# sourceMappingURL=menu-surface-styles.css.map */\n`;\n "]}
1
+ {"version":3,"file":"menu-surface-styles.css.js","sourceRoot":"","sources":["menu-surface-styles.css.ts"],"names":[],"mappings":"AAAA;;;;IAII;AACH,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AACxB,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;CACzB,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n import {css} from 'lit';\n export const styles = css`:host{--_container-elevation-shadow: var(--md-menu-surface-container-elevation-shadow, 0px 1px 2px 0px rgb(var(--md-sys-color-shadow-rgb, 0, 0, 0), 0.3), 0px 2px 6px 2px rgb(var(--md-sys-color-shadow-rgb, 0, 0, 0), 0.15));--_container-shape: var(--md-menu-surface-container-shape, 4px)}.md3-menu-surface{border-radius:var(--_container-shape);box-sizing:border-box;display:none;opacity:0;overflow:auto;margin:0;max-height:calc(100vh - 32px);max-width:calc(100vw - 32px);padding:0;position:absolute;transform:scale(1);transform-origin:top left;transition:opacity .03s linear,transform .12s cubic-bezier(0, 0, 0.2, 1),height 250ms cubic-bezier(0, 0, 0.2, 1);will-change:transform,opacity;z-index:8;box-shadow:var(--_container-elevation-shadow)}.md3-menu-surface .md3-elevation-overlay{z-index:0}.md3-menu-surface:focus{outline:none}.md3-menu-surface--animating-open{display:inline-block;opacity:0;transform:scale(0.8)}.md3-menu-surface--open{display:inline-block;opacity:1;transform:scale(1)}.md3-menu-surface--animating-closed{display:inline-block;opacity:0;transition:opacity .075s linear}.md3-menu-surface--anchor{overflow:visible;position:relative}.md3-menu-surface--fixed{position:fixed}.md3-menu-surface--fullwidth{width:100%}.md3-menu-surface--is-open-below{border-top-left-radius:0px;border-top-right-radius:0px}/*# sourceMappingURL=menu-surface-styles.css.map */\n`;\n "]}
@@ -3,14 +3,6 @@
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  //
5
5
 
6
- // stylelint-disable selector-class-pattern --
7
- // Selector '.md3-*' should only be used in this project.
8
-
9
6
  @use './menu-surface';
10
- @use './menu-surface-theme';
11
-
12
- @include menu-surface.static-styles();
13
7
 
14
- .md3-menu-surface {
15
- @include menu-surface-theme.theme-styles(menu-surface-theme.$light-theme);
16
- }
8
+ @include menu-surface.styles;
@@ -3,7 +3,8 @@
3
3
  * Copyright 2022 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { LitElement } from 'lit';
6
+ import { LitElement, PropertyValues } from 'lit';
7
+ import { ClassInfo } from 'lit/directives/class-map.js';
7
8
  import { MDCMenuSurfaceAdapter } from './adapter.js';
8
9
  import { Corner as CornerEnum } from './constants.js';
9
10
  import { MDCMenuSurfaceFoundation } from './foundation.js';
@@ -28,7 +29,6 @@ export declare abstract class MenuSurface extends LitElement {
28
29
  open: boolean;
29
30
  stayOpenOnBodyClick: boolean;
30
31
  skipRestoreFocus: boolean;
31
- protected bitwiseCorner: CornerEnum;
32
32
  protected previousFlipMenuHorizontally: boolean;
33
33
  /**
34
34
  * Whether to align the menu surface to the opposite side of the default
@@ -47,6 +47,9 @@ export declare abstract class MenuSurface extends LitElement {
47
47
  protected previousAnchor: HTMLElement | null;
48
48
  protected onBodyClickBound: (evt: MouseEvent) => void;
49
49
  render(): import("lit-html").TemplateResult<1>;
50
+ /** @soyTemplate */
51
+ protected getRenderClasses(): ClassInfo;
52
+ protected updated(changedProperties: PropertyValues<MenuSurface>): void;
50
53
  protected firstUpdated(): void;
51
54
  createAdapter(): MDCMenuSurfaceAdapter;
52
55
  protected onKeydown(evt: KeyboardEvent): void;
@@ -6,13 +6,11 @@
6
6
  import { __decorate, __metadata } from "tslib";
7
7
  // Style preference for leading underscores.
8
8
  // tslint:disable:strip-private-property-underscore
9
- // TODO(b/239222919): remove compat dependencies
10
- import { observer } from '@material/web/compat/base/observer.js';
11
- import { deepActiveElementPath, doesElementContainFocus } from '@material/web/compat/base/utils.js';
12
9
  import { html, LitElement } from 'lit';
13
10
  import { property, query, state } from 'lit/decorators.js';
14
11
  import { classMap } from 'lit/directives/class-map.js';
15
12
  import { styleMap } from 'lit/directives/style-map.js';
13
+ import { isRtl } from '../../controller/is-rtl.js';
16
14
  import { Corner as CornerEnum } from './constants.js';
17
15
  import { MDCMenuSurfaceFoundation } from './foundation.js';
18
16
  // tslint:disable:no-bitwise
@@ -44,7 +42,6 @@ export class MenuSurface extends LitElement {
44
42
  this.open = false;
45
43
  this.stayOpenOnBodyClick = false;
46
44
  this.skipRestoreFocus = false;
47
- this.bitwiseCorner = CornerEnum.TOP_START;
48
45
  this.previousFlipMenuHorizontally = false;
49
46
  /**
50
47
  * Whether to align the menu surface to the opposite side of the default
@@ -64,10 +61,6 @@ export class MenuSurface extends LitElement {
64
61
  this.onBodyClickBound = () => undefined;
65
62
  }
66
63
  render() {
67
- const classes = {
68
- 'md3-menu-surface--fixed': this.fixed,
69
- 'md3-menu-surface--fullwidth': this.fullwidth,
70
- };
71
64
  const styles = {
72
65
  'top': this.styleTop,
73
66
  'left': this.styleLeft,
@@ -78,7 +71,7 @@ export class MenuSurface extends LitElement {
78
71
  };
79
72
  return html `
80
73
  <div
81
- class="md3-menu-surface ${classMap(classes)}"
74
+ class="md3-menu-surface ${classMap(this.getRenderClasses())}"
82
75
  style="${styleMap(styles)}"
83
76
  @keydown=${this.onKeydown}
84
77
  @opened=${this.registerBodyClick}
@@ -86,6 +79,49 @@ export class MenuSurface extends LitElement {
86
79
  <slot></slot>
87
80
  </div>`;
88
81
  }
82
+ /** @soyTemplate */
83
+ getRenderClasses() {
84
+ return {
85
+ 'md3-menu-surface--fixed': this.fixed,
86
+ 'md3-menu-surface--fullwidth': this.fullwidth,
87
+ };
88
+ }
89
+ updated(changedProperties) {
90
+ if (changedProperties.has('absolute') && !this.fixed) {
91
+ this.mdcFoundation.setIsHoisted(this.absolute);
92
+ }
93
+ if (changedProperties.has('fixed') && !this.absolute) {
94
+ this.mdcFoundation.setFixedPosition(this.fixed);
95
+ }
96
+ if ((changedProperties.has('x') || changedProperties.has('y')) &&
97
+ this.x !== null && this.y !== null) {
98
+ this.mdcFoundation.setAbsolutePosition(this.x, this.y);
99
+ this.mdcFoundation.setAnchorMargin({ left: this.x, top: this.y, right: -this.y, bottom: this.y });
100
+ }
101
+ if (changedProperties.has('quick')) {
102
+ this.mdcFoundation.setQuickOpen(this.quick);
103
+ }
104
+ if (changedProperties.has('open')) {
105
+ const wasOpen = changedProperties.get('open');
106
+ if (this.open) {
107
+ this.mdcFoundation.open();
108
+ // wasOpen helps with first render (when it is `undefined`) perf
109
+ }
110
+ else if (wasOpen !== undefined) {
111
+ this.mdcFoundation.close(this.skipRestoreFocus);
112
+ }
113
+ }
114
+ if (changedProperties.has('flipMenuHorizontally')) {
115
+ if (this.previousFlipMenuHorizontally !== this.flipMenuHorizontally) {
116
+ this.mdcFoundation.flipCornerHorizontally();
117
+ }
118
+ this.previousFlipMenuHorizontally = this.flipMenuHorizontally;
119
+ }
120
+ if (changedProperties.has('corner') && this.corner) {
121
+ const bitwiseCorner = stringToCorner[this.corner];
122
+ this.mdcFoundation.setAnchorCorner(bitwiseCorner);
123
+ }
124
+ }
89
125
  firstUpdated() {
90
126
  if (this.mdcFoundation !== undefined) {
91
127
  this.mdcFoundation.destroy();
@@ -128,12 +164,7 @@ export class MenuSurface extends LitElement {
128
164
  this.mdcRoot.dispatchEvent(ev);
129
165
  },
130
166
  isElementInContainer: () => false,
131
- isRtl: () => {
132
- if (this.mdcRoot) {
133
- return getComputedStyle(this.mdcRoot).direction === 'rtl';
134
- }
135
- return false;
136
- },
167
+ isRtl: () => this.mdcRoot ? isRtl(this.mdcRoot) : false,
137
168
  setTransformOrigin: (origin) => {
138
169
  const root = this.mdcRoot;
139
170
  if (!root) {
@@ -142,15 +173,10 @@ export class MenuSurface extends LitElement {
142
173
  this.styleTransformOrigin = origin;
143
174
  },
144
175
  isFocused: () => {
145
- return doesElementContainFocus(this);
176
+ return this.matches(':focus-within');
146
177
  },
147
178
  saveFocus: () => {
148
- const activeElementPath = deepActiveElementPath();
149
- const pathLength = activeElementPath.length;
150
- if (!pathLength) {
151
- this.previouslyFocused = null;
152
- }
153
- this.previouslyFocused = activeElementPath[pathLength - 1];
179
+ this.previouslyFocused = document.activeElement;
154
180
  },
155
181
  restoreFocus: () => {
156
182
  if (!this.previouslyFocused) {
@@ -250,11 +276,6 @@ __decorate([
250
276
  ], MenuSurface.prototype, "slotElement", void 0);
251
277
  __decorate([
252
278
  property({ type: Boolean }),
253
- observer(function (isAbsolute) {
254
- if (this.mdcFoundation && !this.fixed) {
255
- this.mdcFoundation.setIsHoisted(isAbsolute);
256
- }
257
- }),
258
279
  __metadata("design:type", Object)
259
280
  ], MenuSurface.prototype, "absolute", void 0);
260
281
  __decorate([
@@ -263,55 +284,22 @@ __decorate([
263
284
  ], MenuSurface.prototype, "fullwidth", void 0);
264
285
  __decorate([
265
286
  property({ type: Boolean }),
266
- observer(function (isFixed) {
267
- if (this.mdcFoundation && !this.absolute) {
268
- this.mdcFoundation.setFixedPosition(isFixed);
269
- }
270
- }),
271
287
  __metadata("design:type", Object)
272
288
  ], MenuSurface.prototype, "fixed", void 0);
273
289
  __decorate([
274
290
  property({ type: Number }),
275
- observer(function (value) {
276
- if (this.mdcFoundation && this.y !== null && value !== null) {
277
- this.mdcFoundation.setAbsolutePosition(value, this.y);
278
- this.mdcFoundation.setAnchorMargin({ left: value, top: this.y, right: -value, bottom: this.y });
279
- }
280
- }),
281
291
  __metadata("design:type", Number)
282
292
  ], MenuSurface.prototype, "x", void 0);
283
293
  __decorate([
284
294
  property({ type: Number }),
285
- observer(function (value) {
286
- if (this.mdcFoundation && this.x !== null && value !== null) {
287
- this.mdcFoundation.setAbsolutePosition(this.x, value);
288
- this.mdcFoundation.setAnchorMargin({ left: this.x, top: value, right: -this.x, bottom: value });
289
- }
290
- }),
291
295
  __metadata("design:type", Number)
292
296
  ], MenuSurface.prototype, "y", void 0);
293
297
  __decorate([
294
298
  property({ type: Boolean }),
295
- observer(function (value) {
296
- if (this.mdcFoundation) {
297
- this.mdcFoundation.setQuickOpen(value);
298
- }
299
- }),
300
299
  __metadata("design:type", Object)
301
300
  ], MenuSurface.prototype, "quick", void 0);
302
301
  __decorate([
303
302
  property({ type: Boolean, reflect: true }),
304
- observer(function (isOpen, wasOpen) {
305
- if (this.mdcFoundation) {
306
- if (isOpen) {
307
- this.mdcFoundation.open();
308
- // wasOpen helps with first render (when it is `undefined`) perf
309
- }
310
- else if (wasOpen !== undefined) {
311
- this.mdcFoundation.close(this.skipRestoreFocus);
312
- }
313
- }
314
- }),
315
303
  __metadata("design:type", Object)
316
304
  ], MenuSurface.prototype, "open", void 0);
317
305
  __decorate([
@@ -323,40 +311,11 @@ __decorate([
323
311
  __metadata("design:type", Object)
324
312
  ], MenuSurface.prototype, "skipRestoreFocus", void 0);
325
313
  __decorate([
326
- state(),
327
- observer(function (value) {
328
- if (this.mdcFoundation) {
329
- if (value) {
330
- this.mdcFoundation.setAnchorCorner(value);
331
- }
332
- else {
333
- this.mdcFoundation.setAnchorCorner(value);
334
- }
335
- }
336
- }),
337
- __metadata("design:type", Number)
338
- ], MenuSurface.prototype, "bitwiseCorner", void 0);
339
- __decorate([
340
- observer(function (flipMenuHorizontally) {
341
- if (!this.mdcFoundation)
342
- return;
343
- if (this.previousFlipMenuHorizontally !== flipMenuHorizontally) {
344
- this.mdcFoundation.flipCornerHorizontally();
345
- }
346
- this.previousFlipMenuHorizontally = flipMenuHorizontally;
347
- }),
348
314
  property({ type: Boolean }),
349
315
  __metadata("design:type", Object)
350
316
  ], MenuSurface.prototype, "flipMenuHorizontally", void 0);
351
317
  __decorate([
352
318
  property({ type: String }),
353
- observer(function (value) {
354
- if (this.mdcFoundation) {
355
- if (value) {
356
- this.bitwiseCorner = stringToCorner[value];
357
- }
358
- }
359
- }),
360
319
  __metadata("design:type", String)
361
320
  ], MenuSurface.prototype, "corner", void 0);
362
321
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"menu-surface.js","sourceRoot":"","sources":["menu-surface.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,4CAA4C;AAC5C,mDAAmD;AAEnD,gDAAgD;AAChD,OAAO,EAAC,QAAQ,EAAC,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAC,qBAAqB,EAAE,uBAAuB,EAAC,MAAM,oCAAoC,CAAC;AAClG,OAAO,EAAC,IAAI,EAAE,UAAU,EAAC,MAAM,KAAK,CAAC;AACrC,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AAGrD,OAAO,EAAC,MAAM,IAAI,UAAU,EAAC,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAC,wBAAwB,EAAC,MAAM,iBAAiB,CA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;IAAR,KAAK,EAAE;;+CAA2B;AAC1B;IAAR,KAAK,EAAE;;gDAA4B;AAC3B;IAAR,KAAK,EAAE;;mDAA+B;AAC9B;IAAR,KAAK,EAAE;;yDAAqC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// Style preference for leading underscores.\n// tslint:disable:strip-private-property-underscore\n\n// TODO(b/239222919): remove compat dependencies\nimport {observer} from '@material/web/compat/base/observer.js';\nimport {deepActiveElementPath, doesElementContainFocus} from '@material/web/compat/base/utils.js';\nimport {html, LitElement} from 'lit';\nimport {property, query, state} from 'lit/decorators.js';\nimport {classMap} from 'lit/directives/class-map.js';\nimport {styleMap} from 'lit/directives/style-map.js';\n\nimport {MDCMenuSurfaceAdapter} from './adapter.js';\nimport {Corner as CornerEnum} from './constants.js';\nimport {MDCMenuSurfaceFoundation} from './foundation.js';\n\nexport type Corner = keyof typeof CornerEnum;\nexport type AnchorableElement = HTMLElement&{anchor: Element | null};\n\n// tslint:disable:no-bitwise\n\n// required for closure compiler\nconst stringToCorner = {\n 'TOP_LEFT': CornerEnum.TOP_LEFT,\n 'TOP_RIGHT': CornerEnum.TOP_RIGHT,\n 'BOTTOM_LEFT': CornerEnum.BOTTOM_LEFT,\n 'BOTTOM_RIGHT': CornerEnum.BOTTOM_RIGHT,\n 'TOP_START': CornerEnum.TOP_START,\n 'TOP_END': CornerEnum.TOP_END,\n 'BOTTOM_START': CornerEnum.BOTTOM_START,\n 'BOTTOM_END': CornerEnum.BOTTOM_END,\n};\n\n/**\n * @fires opened\n * @fires closed\n */\nexport abstract class MenuSurface extends LitElement {\n protected mdcFoundation!: MDCMenuSurfaceFoundation;\n\n @query('.md3-menu-surface') mdcRoot!: HTMLDivElement;\n\n @query('slot') slotElement!: HTMLSlotElement|null;\n\n @property({type: Boolean})\n @observer(function(this: MenuSurface, isAbsolute: boolean) {\n if (this.mdcFoundation && !this.fixed) {\n this.mdcFoundation.setIsHoisted(isAbsolute);\n }\n })\n absolute = false;\n\n @property({type: Boolean}) fullwidth = false;\n\n @property({type: Boolean})\n @observer(function(this: MenuSurface, isFixed: boolean) {\n if (this.mdcFoundation && !this.absolute) {\n this.mdcFoundation.setFixedPosition(isFixed);\n }\n })\n fixed = false;\n\n @property({type: Number})\n @observer(function(this: MenuSurface, value: number|null) {\n if (this.mdcFoundation && this.y !== null && value !== null) {\n this.mdcFoundation.setAbsolutePosition(value, this.y);\n this.mdcFoundation.setAnchorMargin(\n {left: value, top: this.y, right: -value, bottom: this.y});\n }\n })\n x: number|null = null;\n\n @property({type: Number})\n @observer(function(this: MenuSurface, value: number|null) {\n if (this.mdcFoundation && this.x !== null && value !== null) {\n this.mdcFoundation.setAbsolutePosition(this.x, value);\n this.mdcFoundation.setAnchorMargin(\n {left: this.x, top: value, right: -this.x, bottom: value});\n }\n })\n y: number|null = null;\n\n // must be defined before open or else race condition in foundation occurs.\n @property({type: Boolean})\n @observer(function(this: MenuSurface, value: boolean) {\n if (this.mdcFoundation) {\n this.mdcFoundation.setQuickOpen(value);\n }\n })\n quick = false;\n\n @property({type: Boolean, reflect: true})\n @observer(function(this: MenuSurface, isOpen: boolean, wasOpen: boolean) {\n if (this.mdcFoundation) {\n if (isOpen) {\n this.mdcFoundation.open();\n // wasOpen helps with first render (when it is `undefined`) perf\n } else if (wasOpen !== undefined) {\n this.mdcFoundation.close(this.skipRestoreFocus);\n }\n }\n })\n open = false;\n\n @property({type: Boolean}) stayOpenOnBodyClick = false;\n\n @property({type: Boolean}) skipRestoreFocus = false;\n\n @state()\n @observer(function(this: MenuSurface, value: CornerEnum) {\n if (this.mdcFoundation) {\n if (value) {\n this.mdcFoundation.setAnchorCorner(value);\n } else {\n this.mdcFoundation.setAnchorCorner(value);\n }\n }\n })\n protected bitwiseCorner: CornerEnum = CornerEnum.TOP_START;\n\n protected previousFlipMenuHorizontally = false;\n\n /**\n * Whether to align the menu surface to the opposite side of the default\n * alignment.\n */\n @observer(function(this: MenuSurface, flipMenuHorizontally: boolean) {\n if (!this.mdcFoundation) return;\n\n if (this.previousFlipMenuHorizontally !== flipMenuHorizontally) {\n this.mdcFoundation.flipCornerHorizontally();\n }\n this.previousFlipMenuHorizontally = flipMenuHorizontally;\n })\n @property({type: Boolean})\n flipMenuHorizontally = false;\n\n @property({type: String})\n @observer(function(this: MenuSurface, value: Corner) {\n if (this.mdcFoundation) {\n if (value) {\n this.bitwiseCorner = stringToCorner[value];\n }\n }\n })\n corner: Corner = 'BOTTOM_START';\n\n @state() protected styleTop = '';\n @state() protected styleLeft = '';\n @state() protected styleRight = '';\n @state() protected styleBottom = '';\n @state() protected styleMaxHeight = '';\n @state() protected styleTransformOrigin = '';\n\n anchor: HTMLElement|null = null;\n\n protected previouslyFocused: HTMLElement|Element|null = null;\n protected previousAnchor: HTMLElement|null = null;\n protected onBodyClickBound: (evt: MouseEvent) => void = () => undefined;\n\n override render() {\n const classes = {\n 'md3-menu-surface--fixed': this.fixed,\n 'md3-menu-surface--fullwidth': this.fullwidth,\n };\n\n const styles = {\n 'top': this.styleTop,\n 'left': this.styleLeft,\n 'right': this.styleRight,\n 'bottom': this.styleBottom,\n 'max-height': this.styleMaxHeight,\n 'transform-origin': this.styleTransformOrigin,\n };\n\n return html`\n <div\n class=\"md3-menu-surface ${classMap(classes)}\"\n style=\"${styleMap(styles)}\"\n @keydown=${this.onKeydown}\n @opened=${this.registerBodyClick}\n @closed=${this.deregisterBodyClick}>\n <slot></slot>\n </div>`;\n }\n\n protected override firstUpdated() {\n if (this.mdcFoundation !== undefined) {\n this.mdcFoundation.destroy();\n }\n\n this.mdcFoundation = new MDCMenuSurfaceFoundation(this.createAdapter());\n this.mdcFoundation.init();\n }\n\n createAdapter(): MDCMenuSurfaceAdapter {\n return {\n addClass: (className: string) => {\n this.mdcRoot.classList.add(className);\n },\n removeClass: (className: string) => {\n this.mdcRoot.classList.remove(className);\n },\n hasClass: (className: string) =>\n this.mdcRoot.classList.contains(className),\n hasAnchor: () => {\n return !!this.anchor;\n },\n notifyClose: () => {\n const init: CustomEventInit = {bubbles: true, composed: true};\n const ev = new CustomEvent('closed', init);\n this.open = false;\n this.mdcRoot.dispatchEvent(ev);\n },\n notifyClosing: () => {\n const init: CustomEventInit = {bubbles: true, composed: true};\n const ev = new CustomEvent('closing', init);\n this.mdcRoot.dispatchEvent(ev);\n },\n notifyOpen: () => {\n const init: CustomEventInit = {bubbles: true, composed: true};\n const ev = new CustomEvent('opened', init);\n this.open = true;\n this.mdcRoot.dispatchEvent(ev);\n },\n notifyOpening: () => {\n const init: CustomEventInit = {bubbles: true, composed: true};\n const ev = new CustomEvent('opening', init);\n this.mdcRoot.dispatchEvent(ev);\n },\n isElementInContainer: () => false,\n isRtl: () => {\n if (this.mdcRoot) {\n return getComputedStyle(this.mdcRoot).direction === 'rtl';\n }\n\n return false;\n },\n setTransformOrigin: (origin) => {\n const root = this.mdcRoot;\n if (!root) {\n return;\n }\n\n this.styleTransformOrigin = origin;\n },\n isFocused: () => {\n return doesElementContainFocus(this);\n },\n saveFocus: () => {\n const activeElementPath = deepActiveElementPath();\n const pathLength = activeElementPath.length;\n\n if (!pathLength) {\n this.previouslyFocused = null;\n }\n\n this.previouslyFocused = activeElementPath[pathLength - 1];\n },\n restoreFocus: () => {\n if (!this.previouslyFocused) {\n return;\n }\n\n if ('focus' in this.previouslyFocused) {\n this.previouslyFocused.focus();\n }\n },\n getInnerDimensions: () => {\n const mdcRoot = this.mdcRoot;\n\n if (!mdcRoot) {\n return {width: 0, height: 0};\n }\n\n return {width: mdcRoot.offsetWidth, height: mdcRoot.offsetHeight};\n },\n getAnchorDimensions: () => {\n const anchorElement = this.anchor;\n\n return anchorElement ? anchorElement.getBoundingClientRect() : null;\n },\n getBodyDimensions: () => {\n return {\n width: document.body.clientWidth,\n height: document.body.clientHeight,\n };\n },\n getWindowDimensions: () => {\n return {\n width: window.innerWidth,\n height: window.innerHeight,\n };\n },\n getWindowScroll: () => {\n return {\n x: window.pageXOffset,\n y: window.pageYOffset,\n };\n },\n setPosition: (position) => {\n const mdcRoot = this.mdcRoot;\n\n if (!mdcRoot) {\n return;\n }\n\n this.styleLeft = 'left' in position ? `${position.left}px` : '';\n this.styleRight = 'right' in position ? `${position.right}px` : '';\n this.styleTop = 'top' in position ? `${position.top}px` : '';\n this.styleBottom = 'bottom' in position ? `${position.bottom}px` : '';\n },\n setMaxHeight: async (height) => {\n const mdcRoot = this.mdcRoot;\n\n if (!mdcRoot) {\n return;\n }\n\n // must set both for IE support as IE will not set a var\n this.styleMaxHeight = height;\n await this.updateComplete;\n this.styleMaxHeight = `var(--md3-menu-max-height, ${height})`;\n },\n };\n }\n\n protected onKeydown(evt: KeyboardEvent) {\n if (this.mdcFoundation) {\n this.mdcFoundation.handleKeydown(evt);\n }\n }\n\n protected onBodyClick(evt: MouseEvent) {\n if (this.stayOpenOnBodyClick) {\n return;\n }\n const path = evt.composedPath();\n if (path.indexOf(this) === -1) {\n this.close();\n }\n }\n\n protected registerBodyClick() {\n this.onBodyClickBound = this.onBodyClick.bind(this);\n // capture otherwise listener closes menu after quick menu opens\n document.body.addEventListener(\n 'click', this.onBodyClickBound, {passive: true, capture: true});\n }\n\n protected deregisterBodyClick() {\n document.body.removeEventListener(\n 'click', this.onBodyClickBound, {capture: true});\n }\n\n close() {\n this.open = false;\n }\n\n show() {\n this.open = true;\n }\n}\n"]}
1
+ {"version":3,"file":"menu-surface.js","sourceRoot":"","sources":["menu-surface.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,4CAA4C;AAC5C,mDAAmD;AAEnD,OAAO,EAAC,IAAI,EAAE,UAAU,EAAiB,MAAM,KAAK,CAAC;AACrD,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAY,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AAErD,OAAO,EAAC,KAAK,EAA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;;sCAAuB;AAGrB;IAA1B,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;;0CAAe;AAEC;IAAzC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;yCAAc;AAE5B;IAA1B,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;;wDAA6B;AAE5B;IAA1B,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;;qDAA0B;AAQzB;IAA1B,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;;yDAA8B;AAE9B;IAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;2CAAiC;AAEjD;IAAR,KAAK,EAAE;;6CAAyB;AACxB;IAAR,KAAK,EAAE;;8CAA0B;AACzB;IAAR,KAAK,EAAE;;+CAA2B;AAC1B;IAAR,KAAK,EAAE;;gDAA4B;AAC3B;IAAR,KAAK,EAAE;;mDAA+B;AAC9B;IAAR,KAAK,EAAE;;yDAAqC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// Style preference for leading underscores.\n// tslint:disable:strip-private-property-underscore\n\nimport {html, LitElement, PropertyValues} from 'lit';\nimport {property, query, state} from 'lit/decorators.js';\nimport {ClassInfo, classMap} from 'lit/directives/class-map.js';\nimport {styleMap} from 'lit/directives/style-map.js';\n\nimport {isRtl} from '../../controller/is-rtl.js';\n\nimport {MDCMenuSurfaceAdapter} from './adapter.js';\nimport {Corner as CornerEnum} from './constants.js';\nimport {MDCMenuSurfaceFoundation} from './foundation.js';\n\nexport type Corner = keyof typeof CornerEnum;\nexport type AnchorableElement = HTMLElement&{anchor: Element | null};\n\n// tslint:disable:no-bitwise\n\n// required for closure compiler\nconst stringToCorner = {\n 'TOP_LEFT': CornerEnum.TOP_LEFT,\n 'TOP_RIGHT': CornerEnum.TOP_RIGHT,\n 'BOTTOM_LEFT': CornerEnum.BOTTOM_LEFT,\n 'BOTTOM_RIGHT': CornerEnum.BOTTOM_RIGHT,\n 'TOP_START': CornerEnum.TOP_START,\n 'TOP_END': CornerEnum.TOP_END,\n 'BOTTOM_START': CornerEnum.BOTTOM_START,\n 'BOTTOM_END': CornerEnum.BOTTOM_END,\n};\n\n/**\n * @fires opened\n * @fires closed\n */\nexport abstract class MenuSurface extends LitElement {\n protected mdcFoundation!: MDCMenuSurfaceFoundation;\n\n @query('.md3-menu-surface') mdcRoot!: HTMLDivElement;\n\n @query('slot') slotElement!: HTMLSlotElement|null;\n\n @property({type: Boolean}) absolute = false;\n\n @property({type: Boolean}) fullwidth = false;\n\n @property({type: Boolean}) fixed = false;\n\n @property({type: Number}) x: number|null = null;\n\n @property({type: Number}) y: number|null = null;\n\n // must be defined before open or else race condition in foundation occurs.\n @property({type: Boolean}) quick = false;\n\n @property({type: Boolean, reflect: true}) open = false;\n\n @property({type: Boolean}) stayOpenOnBodyClick = false;\n\n @property({type: Boolean}) skipRestoreFocus = false;\n\n protected previousFlipMenuHorizontally = false;\n\n /**\n * Whether to align the menu surface to the opposite side of the default\n * alignment.\n */\n @property({type: Boolean}) flipMenuHorizontally = false;\n\n @property({type: String}) corner: Corner = 'BOTTOM_START';\n\n @state() protected styleTop = '';\n @state() protected styleLeft = '';\n @state() protected styleRight = '';\n @state() protected styleBottom = '';\n @state() protected styleMaxHeight = '';\n @state() protected styleTransformOrigin = '';\n\n anchor: HTMLElement|null = null;\n\n protected previouslyFocused: HTMLElement|Element|null = null;\n protected previousAnchor: HTMLElement|null = null;\n protected onBodyClickBound: (evt: MouseEvent) => void = () => undefined;\n\n override render() {\n const styles = {\n 'top': this.styleTop,\n 'left': this.styleLeft,\n 'right': this.styleRight,\n 'bottom': this.styleBottom,\n 'max-height': this.styleMaxHeight,\n 'transform-origin': this.styleTransformOrigin,\n };\n\n return html`\n <div\n class=\"md3-menu-surface ${classMap(this.getRenderClasses())}\"\n style=\"${styleMap(styles)}\"\n @keydown=${this.onKeydown}\n @opened=${this.registerBodyClick}\n @closed=${this.deregisterBodyClick}>\n <slot></slot>\n </div>`;\n }\n\n /** @soyTemplate */\n protected getRenderClasses(): ClassInfo {\n return {\n 'md3-menu-surface--fixed': this.fixed,\n 'md3-menu-surface--fullwidth': this.fullwidth,\n };\n }\n\n protected override updated(changedProperties: PropertyValues<MenuSurface>) {\n if (changedProperties.has('absolute') && !this.fixed) {\n this.mdcFoundation.setIsHoisted(this.absolute);\n }\n\n if (changedProperties.has('fixed') && !this.absolute) {\n this.mdcFoundation.setFixedPosition(this.fixed);\n }\n\n if ((changedProperties.has('x') || changedProperties.has('y')) &&\n this.x !== null && this.y !== null) {\n this.mdcFoundation.setAbsolutePosition(this.x, this.y);\n this.mdcFoundation.setAnchorMargin(\n {left: this.x, top: this.y, right: -this.y, bottom: this.y});\n }\n\n if (changedProperties.has('quick')) {\n this.mdcFoundation.setQuickOpen(this.quick);\n }\n\n if (changedProperties.has('open')) {\n const wasOpen = changedProperties.get('open');\n if (this.open) {\n this.mdcFoundation.open();\n // wasOpen helps with first render (when it is `undefined`) perf\n } else if (wasOpen !== undefined) {\n this.mdcFoundation.close(this.skipRestoreFocus);\n }\n }\n\n if (changedProperties.has('flipMenuHorizontally')) {\n if (this.previousFlipMenuHorizontally !== this.flipMenuHorizontally) {\n this.mdcFoundation.flipCornerHorizontally();\n }\n this.previousFlipMenuHorizontally = this.flipMenuHorizontally;\n }\n\n if (changedProperties.has('corner') && this.corner) {\n const bitwiseCorner = stringToCorner[this.corner];\n this.mdcFoundation.setAnchorCorner(bitwiseCorner);\n }\n }\n\n protected override firstUpdated() {\n if (this.mdcFoundation !== undefined) {\n this.mdcFoundation.destroy();\n }\n\n this.mdcFoundation = new MDCMenuSurfaceFoundation(this.createAdapter());\n this.mdcFoundation.init();\n }\n\n createAdapter(): MDCMenuSurfaceAdapter {\n return {\n addClass: (className: string) => {\n this.mdcRoot.classList.add(className);\n },\n removeClass: (className: string) => {\n this.mdcRoot.classList.remove(className);\n },\n hasClass: (className: string) =>\n this.mdcRoot.classList.contains(className),\n hasAnchor: () => {\n return !!this.anchor;\n },\n notifyClose: () => {\n const init: CustomEventInit = {bubbles: true, composed: true};\n const ev = new CustomEvent('closed', init);\n this.open = false;\n this.mdcRoot.dispatchEvent(ev);\n },\n notifyClosing: () => {\n const init: CustomEventInit = {bubbles: true, composed: true};\n const ev = new CustomEvent('closing', init);\n this.mdcRoot.dispatchEvent(ev);\n },\n notifyOpen: () => {\n const init: CustomEventInit = {bubbles: true, composed: true};\n const ev = new CustomEvent('opened', init);\n this.open = true;\n this.mdcRoot.dispatchEvent(ev);\n },\n notifyOpening: () => {\n const init: CustomEventInit = {bubbles: true, composed: true};\n const ev = new CustomEvent('opening', init);\n this.mdcRoot.dispatchEvent(ev);\n },\n isElementInContainer: () => false,\n isRtl: () => this.mdcRoot ? isRtl(this.mdcRoot) : false,\n setTransformOrigin: (origin) => {\n const root = this.mdcRoot;\n if (!root) {\n return;\n }\n\n this.styleTransformOrigin = origin;\n },\n isFocused: () => {\n return this.matches(':focus-within');\n },\n saveFocus: () => {\n this.previouslyFocused = document.activeElement;\n },\n restoreFocus: () => {\n if (!this.previouslyFocused) {\n return;\n }\n\n if ('focus' in this.previouslyFocused) {\n this.previouslyFocused.focus();\n }\n },\n getInnerDimensions: () => {\n const mdcRoot = this.mdcRoot;\n\n if (!mdcRoot) {\n return {width: 0, height: 0};\n }\n\n return {width: mdcRoot.offsetWidth, height: mdcRoot.offsetHeight};\n },\n getAnchorDimensions: () => {\n const anchorElement = this.anchor;\n\n return anchorElement ? anchorElement.getBoundingClientRect() : null;\n },\n getBodyDimensions: () => {\n return {\n width: document.body.clientWidth,\n height: document.body.clientHeight,\n };\n },\n getWindowDimensions: () => {\n return {\n width: window.innerWidth,\n height: window.innerHeight,\n };\n },\n getWindowScroll: () => {\n return {\n x: window.pageXOffset,\n y: window.pageYOffset,\n };\n },\n setPosition: (position) => {\n const mdcRoot = this.mdcRoot;\n\n if (!mdcRoot) {\n return;\n }\n\n this.styleLeft = 'left' in position ? `${position.left}px` : '';\n this.styleRight = 'right' in position ? `${position.right}px` : '';\n this.styleTop = 'top' in position ? `${position.top}px` : '';\n this.styleBottom = 'bottom' in position ? `${position.bottom}px` : '';\n },\n setMaxHeight: async (height) => {\n const mdcRoot = this.mdcRoot;\n\n if (!mdcRoot) {\n return;\n }\n\n // must set both for IE support as IE will not set a var\n this.styleMaxHeight = height;\n await this.updateComplete;\n this.styleMaxHeight = `var(--md3-menu-max-height, ${height})`;\n },\n };\n }\n\n protected onKeydown(evt: KeyboardEvent) {\n if (this.mdcFoundation) {\n this.mdcFoundation.handleKeydown(evt);\n }\n }\n\n protected onBodyClick(evt: MouseEvent) {\n if (this.stayOpenOnBodyClick) {\n return;\n }\n const path = evt.composedPath();\n if (path.indexOf(this) === -1) {\n this.close();\n }\n }\n\n protected registerBodyClick() {\n this.onBodyClickBound = this.onBodyClick.bind(this);\n // capture otherwise listener closes menu after quick menu opens\n document.body.addEventListener(\n 'click', this.onBodyClickBound, {passive: true, capture: true});\n }\n\n protected deregisterBodyClick() {\n document.body.removeEventListener(\n 'click', this.onBodyClickBound, {capture: true});\n }\n\n close() {\n this.open = false;\n }\n\n show() {\n this.open = true;\n }\n}\n"]}
@@ -3,5 +3,4 @@
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  //
5
5
 
6
- @forward './lib/navigation-bar-theme' show
7
- theme;
6
+ @forward './lib/navigation-bar' show theme;
@@ -3,8 +3,8 @@
3
3
  * Copyright 2022 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { Harness } from '@material/web/testing/harness.js';
7
6
  import { NavigationTabHarness } from '../navigationtab/harness.js';
7
+ import { Harness } from '../testing/harness.js';
8
8
  import { NavigationBar } from './lib/navigation-bar.js';
9
9
  /**
10
10
  * Test harness for navigation bars.
@@ -3,8 +3,8 @@
3
3
  * Copyright 2022 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { Harness } from '@material/web/testing/harness.js';
7
6
  import { NavigationTabHarness } from '../navigationtab/harness.js';
7
+ import { Harness } from '../testing/harness.js';
8
8
  /**
9
9
  * Test harness for navigation bars.
10
10
  */
@@ -1 +1 @@
1
- {"version":3,"file":"harness.js","sourceRoot":"","sources":["harness.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,OAAO,EAAC,MAAM,kCAAkC,CAAC;AAEzD,OAAO,EAAC,oBAAoB,EAAC,MAAM,6BAA6B,CAAC;AAIjE;;GAEG;AACH,MAAM,OAAO,oBAAqB,SAAQ,OAAsB;IAAhE;;QACW,QAAG,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;IAe/B,CAAC;IAbC;;OAEG;IACgB,KAAK,CAAC,qBAAqB;QAC5C,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC;QAClC,OAAO,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,CAAC,qBAAqB,EAAE,CAAC;IAClD,CAAC;IAES,KAAK,CAAC,MAAM;QACpB,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC;QAClC,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QACxD,OAAO,IAAI,oBAAoB,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;CACF","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {Harness} from '@material/web/testing/harness.js';\n\nimport {NavigationTabHarness} from '../navigationtab/harness.js';\n\nimport {NavigationBar} from './lib/navigation-bar.js';\n\n/**\n * Test harness for navigation bars.\n */\nexport class NavigationBarHarness extends Harness<NavigationBar> {\n readonly tab = this.getTab();\n\n /**\n * Returns the active tab to be used for interaction simulation.\n */\n protected override async getInteractiveElement() {\n await this.element.updateComplete;\n return (await this.tab).getInteractiveElement();\n }\n\n protected async getTab() {\n await this.element.updateComplete;\n const tab = this.element.tabs[this.element.activeIndex];\n return new NavigationTabHarness(tab);\n }\n}\n"]}
1
+ {"version":3,"file":"harness.js","sourceRoot":"","sources":["harness.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,oBAAoB,EAAC,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAC,OAAO,EAAC,MAAM,uBAAuB,CAAC;AAI9C;;GAEG;AACH,MAAM,OAAO,oBAAqB,SAAQ,OAAsB;IAAhE;;QACW,QAAG,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;IAe/B,CAAC;IAbC;;OAEG;IACgB,KAAK,CAAC,qBAAqB;QAC5C,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC;QAClC,OAAO,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,CAAC,qBAAqB,EAAE,CAAC;IAClD,CAAC;IAES,KAAK,CAAC,MAAM;QACpB,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC;QAClC,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QACxD,OAAO,IAAI,oBAAoB,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;CACF","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {NavigationTabHarness} from '../navigationtab/harness.js';\nimport {Harness} from '../testing/harness.js';\n\nimport {NavigationBar} from './lib/navigation-bar.js';\n\n/**\n * Test harness for navigation bars.\n */\nexport class NavigationBarHarness extends Harness<NavigationBar> {\n readonly tab = this.getTab();\n\n /**\n * Returns the active tab to be used for interaction simulation.\n */\n protected override async getInteractiveElement() {\n await this.element.updateComplete;\n return (await this.tab).getInteractiveElement();\n }\n\n protected async getTab() {\n await this.element.updateComplete;\n const tab = this.element.tabs[this.element.activeIndex];\n return new NavigationTabHarness(tab);\n }\n}\n"]}
@@ -6,23 +6,61 @@
6
6
  // stylelint-disable selector-class-pattern --
7
7
  // Selector '.md3-*' should only be used in this project.
8
8
 
9
- @use '@material/web/elevation/lib/elevation-overlay';
9
+ @use '../../elevation/lib/elevation';
10
+ @use '../../sass/theme';
11
+ @use '../../tokens';
10
12
 
11
- @mixin static-styles() {
12
- @include elevation-overlay.static-styles();
13
+ @mixin theme($tokens) {
14
+ $tokens: theme.validate-theme(
15
+ tokens.md-comp-navigation-bar-values(),
16
+ $tokens
17
+ );
18
+ $tokens: elevation.resolve-tokens($tokens, 'container-elevation');
19
+ $tokens: theme.create-theme-vars($tokens, 'navigation-bar');
20
+
21
+ @include theme.emit-theme-vars($tokens);
22
+ }
23
+
24
+ @mixin styles() {
25
+ $tokens: tokens.md-comp-navigation-bar-values();
26
+ $tokens: elevation.resolve-tokens($tokens, 'container-elevation');
27
+
28
+ $tokens: theme.create-theme-vars($tokens, 'navigation-bar');
29
+
30
+ :host {
31
+ @each $token, $value in $tokens {
32
+ --_#{$token}: #{$value};
33
+ }
34
+
35
+ width: 100%;
36
+ }
13
37
 
14
38
  .md3-navigation-bar {
15
39
  display: flex;
16
40
  position: relative;
17
41
  width: 100%;
42
+ background-color: var(--_container-color);
43
+ border-radius: var(--_container-shape);
44
+ height: var(--_container-height);
18
45
 
19
- .md3-elevation-overlay {
20
- z-index: 0;
21
- }
46
+ @include elevation.theme(
47
+ (
48
+ duration: 280ms,
49
+ level: var(--_container-elevation),
50
+ shadow-color: var(--_container-shadow-color),
51
+ surface-tint-color: var(--_container-surface-tint-layer-color),
52
+ )
53
+ );
22
54
 
23
55
  .md3-navigation-bar__tabs-slot-container {
24
56
  display: inherit;
25
57
  width: inherit;
26
58
  }
27
59
  }
60
+
61
+ md-elevation {
62
+ inset: 0;
63
+ position: absolute;
64
+ z-index: 0;
65
+ }
28
66
  }
@@ -3,7 +3,7 @@
3
3
  * Copyright 2022 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { NavigationTabState } from '@material/web/navigationtab/lib/state.js';
6
+ import { NavigationTabState } from '../../navigationtab/lib/state.js';
7
7
  /**
8
8
  * MDCNavigationTabInteractionEventDetail provides details for the interaction
9
9
  * event.
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {NavigationTabState} from '@material/web/navigationtab/lib/state.js';\n\n/**\n * MDCNavigationTabInteractionEventDetail provides details for the interaction\n * event.\n */\nexport interface MDCNavigationTabInteractionEventDetail {\n state: NavigationTabState;\n}\n\n/**\n * NavigationTabInteractionEvent is the custom event for the interaction event.\n */\nexport type NavigationTabInteractionEvent =\n CustomEvent<MDCNavigationTabInteractionEventDetail>;\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {NavigationTabState} from '../../navigationtab/lib/state.js';\n\n/**\n * MDCNavigationTabInteractionEventDetail provides details for the interaction\n * event.\n */\nexport interface MDCNavigationTabInteractionEventDetail {\n state: NavigationTabState;\n}\n\n/**\n * NavigationTabInteractionEvent is the custom event for the interaction event.\n */\nexport type NavigationTabInteractionEvent =\n CustomEvent<MDCNavigationTabInteractionEventDetail>;\n"]}
@@ -4,6 +4,6 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import { css } from 'lit';
7
- export const styles = css `.md3-elevation-overlay{position:absolute;inset:0;border-radius:inherit;pointer-events:none;transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-2}.md3-navigation-bar{display:flex;position:relative;width:100%}.md3-navigation-bar .md3-elevation-overlay{z-index:0}.md3-navigation-bar .md3-navigation-bar__tabs-slot-container{display:inherit;width:inherit}:host{width:100%}.md3-navigation-bar{background-color:var(--md-navigation-bar-container-color, var(--md-sys-color-surface, #fffbfe));border-radius:var(--md-navigation-bar-container-shape, 0);height:var(--md-navigation-bar-container-height, 80px);--md-elevation-box-shadow-for-gss:0px 1px 2px 0px rgb(var(--md-sys-color-shadow-rgb, 0, 0, 0), 0.3), 0px 2px 6px 2px rgb(var(--md-sys-color-shadow-rgb, 0, 0, 0), 0.15);box-shadow:var(--md-navigation-bar-container-elevation-shadow, var(--md-elevation-box-shadow-for-gss))}.md3-navigation-bar .md3-navigation-tab{font-family:var(--md-navigation-bar-label-text-font, Roboto);font-size:var(--md-navigation-bar-label-text-size, 12px);letter-spacing:var(--md-navigation-bar-label-text-tracking, 0.5px);font-weight:var(--md-navigation-bar-label-text-weight, 500);--md-ripple-hover-state-layer-color:var(--md-navigation-bar-inactive-hover-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--md-ripple-focus-state-layer-color:var(--md-navigation-bar-inactive-focus-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--md-ripple-pressed-state-layer-color:var(--md-navigation-bar-inactive-pressed-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--md-ripple-hover-state-layer-opacity:var(--md-navigation-bar-hover-state-layer-opacity, 0.08);--md-ripple-focus-state-layer-opacity:var(--md-navigation-bar-focus-state-layer-opacity, 0.12);--md-ripple-pressed-state-layer-opacity:var(--md-navigation-bar-pressed-state-layer-opacity, 0.12);--md-focus-ring-container-outer-padding-vertical:-4px;--md-focus-ring-container-outer-padding-horizontal:-4px;--md-badge-color:var(--md-navigation-bar-badge-color, var(--md-sys-color-error, #b3261e));--md-badge-size:var(--md-navigation-bar-badge-size, 6px);--md-badge-shape:var(--md-navigation-bar-badge-shape, 3px);--md-badge-large-color:var(--md-navigation-bar-large-badge-color, var(--md-sys-color-error, #b3261e));--md-badge-large-size:var(--md-navigation-bar-large-badge-size, 16px);--md-badge-large-shape:var(--md-navigation-bar-large-badge-shape, 8px)}.md3-navigation-bar .md3-navigation-tab .md3-navigation-tab__icon{width:var(--md-navigation-bar-icon-size, 24px);height:var(--md-navigation-bar-icon-size, 24px);font-size:var(--md-navigation-bar-icon-size, 24px)}.md3-navigation-bar .md3-navigation-tab:not(:disabled).md3-navigation-tab--active .md3-navigation-tab__icon{color:var(--md-navigation-bar-active-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));fill:currentColor}.md3-navigation-bar .md3-navigation-tab:not(:disabled):hover.md3-navigation-tab--active .md3-navigation-tab__icon{color:var(--md-navigation-bar-active-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));fill:currentColor}.md3-navigation-bar .md3-navigation-tab:not(:disabled):focus.md3-navigation-tab--active .md3-navigation-tab__icon{color:var(--md-navigation-bar-active-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));fill:currentColor}.md3-navigation-bar .md3-navigation-tab:not(:disabled):active.md3-navigation-tab--active .md3-navigation-tab__icon{color:var(--md-navigation-bar-active-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));fill:currentColor}.md3-navigation-bar .md3-navigation-tab:disabled.md3-navigation-tab--active .md3-navigation-tab__icon{fill:currentColor}.md3-navigation-bar .md3-navigation-tab:not(:disabled):not(.md3-navigation-tab--active) .md3-navigation-tab__icon{color:var(--md-navigation-bar-inactive-icon-color, var(--md-sys-color-on-surface-variant, #49454f));fill:currentColor}.md3-navigation-bar .md3-navigation-tab:not(:disabled):hover:not(.md3-navigation-tab--active) .md3-navigation-tab__icon{color:var(--md-navigation-bar-inactive-hover-icon-color, var(--md-sys-color-on-surface, #1c1b1f));fill:currentColor}.md3-navigation-bar .md3-navigation-tab:not(:disabled):focus:not(.md3-navigation-tab--active) .md3-navigation-tab__icon{color:var(--md-navigation-bar-inactive-focus-icon-color, var(--md-sys-color-on-surface, #1c1b1f));fill:currentColor}.md3-navigation-bar .md3-navigation-tab:not(:disabled):active:not(.md3-navigation-tab--active) .md3-navigation-tab__icon{color:var(--md-navigation-bar-inactive-pressed-icon-color, var(--md-sys-color-on-surface, #1c1b1f));fill:currentColor}.md3-navigation-bar .md3-navigation-tab:disabled:not(.md3-navigation-tab--active) .md3-navigation-tab__icon{fill:currentColor}.md3-navigation-bar .md3-navigation-tab:not(:disabled).md3-navigation-tab--active .md3-navigation-tab__label-text{color:var(--md-navigation-bar-active-label-text-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-navigation-bar .md3-navigation-tab:not(:disabled):hover.md3-navigation-tab--active .md3-navigation-tab__label-text{color:var(--md-navigation-bar-active-hover-label-text-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-navigation-bar .md3-navigation-tab:not(:disabled):focus.md3-navigation-tab--active .md3-navigation-tab__label-text{color:var(--md-navigation-bar-active-focus-label-text-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-navigation-bar .md3-navigation-tab:not(:disabled):active.md3-navigation-tab--active .md3-navigation-tab__label-text{color:var(--md-navigation-bar-active-pressed-label-text-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-navigation-bar .md3-navigation-tab:not(:disabled):not(.md3-navigation-tab--active) .md3-navigation-tab__label-text{color:var(--md-navigation-bar-inactive-label-text-color, var(--md-sys-color-on-surface-variant, #49454f))}.md3-navigation-bar .md3-navigation-tab:not(:disabled):hover:not(.md3-navigation-tab--active) .md3-navigation-tab__label-text{color:var(--md-navigation-bar-inactive-hover-label-text-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-navigation-bar .md3-navigation-tab:not(:disabled):focus:not(.md3-navigation-tab--active) .md3-navigation-tab__label-text{color:var(--md-navigation-bar-inactive-focus-label-text-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-navigation-bar .md3-navigation-tab:not(:disabled):active:not(.md3-navigation-tab--active) .md3-navigation-tab__label-text{color:var(--md-navigation-bar-inactive-pressed-label-text-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-navigation-bar .md3-navigation-tab .md3-navigation-tab__active-indicator{background-color:var(--md-navigation-bar-active-indicator-color, var(--md-sys-color-secondary-container, #e8def8))}.md3-navigation-bar .md3-navigation-tab .md3-navigation-tab__active-indicator,.md3-navigation-bar .md3-navigation-tab .md3-navigation-tab__icon-content{height:var(--md-navigation-bar-active-indicator-height, 32px)}.md3-navigation-bar .md3-navigation-tab.md3-navigation-tab--active .md3-navigation-tab__active-indicator,.md3-navigation-bar .md3-navigation-tab .md3-navigation-tab__icon-content{width:var(--md-navigation-bar-active-indicator-width, 64px)}.md3-navigation-bar .md3-navigation-tab .md3-navigation-tab__active-indicator{border-radius:var(--md-navigation-bar-active-indicator-shape, 9999px)}.md3-navigation-bar .md3-navigation-tab.md3-navigation-tab--active{--md-ripple-hover-state-layer-color:var(--md-navigation-bar-active-hover-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--md-ripple-focus-state-layer-color:var(--md-navigation-bar-active-focus-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--md-ripple-pressed-state-layer-color:var(--md-navigation-bar-active-pressed-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--md-ripple-hover-state-layer-opacity:var(--md-navigation-bar-hover-state-layer-opacity, 0.08);--md-ripple-focus-state-layer-opacity:var(--md-navigation-bar-focus-state-layer-opacity, 0.12);--md-ripple-pressed-state-layer-opacity:var(--md-navigation-bar-pressed-state-layer-opacity, 0.12)}.md3-navigation-bar .md3-elevation-overlay{background-color:var(--md-navigation-bar-container-surface-tint-layer-color, var(--md-sys-color-primary, #6750a4))}.md3-navigation-bar .md3-elevation-overlay{opacity:var(--md-navigation-bar-container-elevation-overlay-opacity, 0.08)}/*# sourceMappingURL=navigation-bar-styles.css.map */
7
+ export const styles = css `:host{--_active-indicator-color: var(--md-navigation-bar-active-indicator-color, var(--md-sys-color-secondary-container, #e8def8));--_active-indicator-height: var(--md-navigation-bar-active-indicator-height, 32px);--_active-indicator-shape: var(--md-navigation-bar-active-indicator-shape, 9999px);--_active-indicator-width: var(--md-navigation-bar-active-indicator-width, 64px);--_active-focus-icon-color: var(--md-navigation-bar-active-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_active-focus-label-text-color: var(--md-navigation-bar-active-focus-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_active-focus-state-layer-color: var(--md-navigation-bar-active-focus-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_active-hover-icon-color: var(--md-navigation-bar-active-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_active-hover-label-text-color: var(--md-navigation-bar-active-hover-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_active-hover-state-layer-color: var(--md-navigation-bar-active-hover-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_active-icon-color: var(--md-navigation-bar-active-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_active-label-text-color: var(--md-navigation-bar-active-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_active-label-text-weight: var(--md-navigation-bar-active-label-text-weight, 700);--_active-pressed-icon-color: var(--md-navigation-bar-active-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_active-pressed-label-text-color: var(--md-navigation-bar-active-pressed-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_active-pressed-state-layer-color: var(--md-navigation-bar-active-pressed-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_badge-color: var(--md-navigation-bar-badge-color, var(--md-sys-color-error, #b3261e));--_badge-shape: var(--md-navigation-bar-badge-shape, 3px);--_badge-size: var(--md-navigation-bar-badge-size, 6px);--_container-color: var(--md-navigation-bar-container-color, var(--md-sys-color-surface, #fffbfe));--_container-elevation: var(--md-navigation-bar-container-elevation, 2);--_container-height: var(--md-navigation-bar-container-height, 80px);--_container-shadow-color: var(--md-navigation-bar-container-shadow-color, var(--md-sys-color-shadow, #000));--_container-shape: var(--md-navigation-bar-container-shape, 0px);--_container-surface-tint-layer-color: var(--md-navigation-bar-container-surface-tint-layer-color, var(--md-sys-color-primary, #6750a4));--_focus-state-layer-opacity: var(--md-navigation-bar-focus-state-layer-opacity, 0.12);--_hover-state-layer-opacity: var(--md-navigation-bar-hover-state-layer-opacity, 0.08);--_icon-size: var(--md-navigation-bar-icon-size, 24px);--_inactive-focus-icon-color: var(--md-navigation-bar-inactive-focus-icon-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-focus-label-text-color: var(--md-navigation-bar-inactive-focus-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-focus-state-layer-color: var(--md-navigation-bar-inactive-focus-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-hover-icon-color: var(--md-navigation-bar-inactive-hover-icon-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-hover-label-text-color: var(--md-navigation-bar-inactive-hover-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-hover-state-layer-color: var(--md-navigation-bar-inactive-hover-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-icon-color: var(--md-navigation-bar-inactive-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_inactive-label-text-color: var(--md-navigation-bar-inactive-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_inactive-pressed-icon-color: var(--md-navigation-bar-inactive-pressed-icon-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-pressed-label-text-color: var(--md-navigation-bar-inactive-pressed-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-pressed-state-layer-color: var(--md-navigation-bar-inactive-pressed-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_label-text-font: var(--md-navigation-bar-label-text-font, Roboto);--_label-text-line-height: var(--md-navigation-bar-label-text-line-height, 1rem);--_label-text-size: var(--md-navigation-bar-label-text-size, 0.75rem);--_label-text-tracking: var(--md-navigation-bar-label-text-tracking, 0.031rem);--_label-text-type: var(--md-navigation-bar-label-text-type, 500 0.75rem / 1rem Roboto);--_label-text-weight: var(--md-navigation-bar-label-text-weight, 500);--_large-badge-color: var(--md-navigation-bar-large-badge-color, var(--md-sys-color-error, #b3261e));--_large-badge-shape: var(--md-navigation-bar-large-badge-shape, 8px);--_large-badge-size: var(--md-navigation-bar-large-badge-size, 16px);--_pressed-state-layer-opacity: var(--md-navigation-bar-pressed-state-layer-opacity, 0.12);width:100%}.md3-navigation-bar{display:flex;position:relative;width:100%;background-color:var(--_container-color);border-radius:var(--_container-shape);height:var(--_container-height);--md-elevation-duration:280ms;--md-elevation-level:var(--_container-elevation);--md-elevation-shadow-color:var(--_container-shadow-color);--md-elevation-surface-tint-color:var(--_container-surface-tint-layer-color)}.md3-navigation-bar .md3-navigation-bar__tabs-slot-container{display:inherit;width:inherit}md-elevation{inset:0;position:absolute;z-index:0}/*# sourceMappingURL=navigation-bar-styles.css.map */
8
8
  `;
9
9
  //# sourceMappingURL=navigation-bar-styles.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"navigation-bar-styles.css.js","sourceRoot":"","sources":["navigation-bar-styles.css.ts"],"names":[],"mappings":"AAAA;;;;IAII;AACH,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AACxB,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;CACzB,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n import {css} from 'lit';\n export const styles = css`.md3-elevation-overlay{position:absolute;inset:0;border-radius:inherit;pointer-events:none;transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-2}.md3-navigation-bar{display:flex;position:relative;width:100%}.md3-navigation-bar .md3-elevation-overlay{z-index:0}.md3-navigation-bar .md3-navigation-bar__tabs-slot-container{display:inherit;width:inherit}:host{width:100%}.md3-navigation-bar{background-color:var(--md-navigation-bar-container-color, var(--md-sys-color-surface, #fffbfe));border-radius:var(--md-navigation-bar-container-shape, 0);height:var(--md-navigation-bar-container-height, 80px);--md-elevation-box-shadow-for-gss:0px 1px 2px 0px rgb(var(--md-sys-color-shadow-rgb, 0, 0, 0), 0.3), 0px 2px 6px 2px rgb(var(--md-sys-color-shadow-rgb, 0, 0, 0), 0.15);box-shadow:var(--md-navigation-bar-container-elevation-shadow, var(--md-elevation-box-shadow-for-gss))}.md3-navigation-bar .md3-navigation-tab{font-family:var(--md-navigation-bar-label-text-font, Roboto);font-size:var(--md-navigation-bar-label-text-size, 12px);letter-spacing:var(--md-navigation-bar-label-text-tracking, 0.5px);font-weight:var(--md-navigation-bar-label-text-weight, 500);--md-ripple-hover-state-layer-color:var(--md-navigation-bar-inactive-hover-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--md-ripple-focus-state-layer-color:var(--md-navigation-bar-inactive-focus-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--md-ripple-pressed-state-layer-color:var(--md-navigation-bar-inactive-pressed-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--md-ripple-hover-state-layer-opacity:var(--md-navigation-bar-hover-state-layer-opacity, 0.08);--md-ripple-focus-state-layer-opacity:var(--md-navigation-bar-focus-state-layer-opacity, 0.12);--md-ripple-pressed-state-layer-opacity:var(--md-navigation-bar-pressed-state-layer-opacity, 0.12);--md-focus-ring-container-outer-padding-vertical:-4px;--md-focus-ring-container-outer-padding-horizontal:-4px;--md-badge-color:var(--md-navigation-bar-badge-color, var(--md-sys-color-error, #b3261e));--md-badge-size:var(--md-navigation-bar-badge-size, 6px);--md-badge-shape:var(--md-navigation-bar-badge-shape, 3px);--md-badge-large-color:var(--md-navigation-bar-large-badge-color, var(--md-sys-color-error, #b3261e));--md-badge-large-size:var(--md-navigation-bar-large-badge-size, 16px);--md-badge-large-shape:var(--md-navigation-bar-large-badge-shape, 8px)}.md3-navigation-bar .md3-navigation-tab .md3-navigation-tab__icon{width:var(--md-navigation-bar-icon-size, 24px);height:var(--md-navigation-bar-icon-size, 24px);font-size:var(--md-navigation-bar-icon-size, 24px)}.md3-navigation-bar .md3-navigation-tab:not(:disabled).md3-navigation-tab--active .md3-navigation-tab__icon{color:var(--md-navigation-bar-active-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));fill:currentColor}.md3-navigation-bar .md3-navigation-tab:not(:disabled):hover.md3-navigation-tab--active .md3-navigation-tab__icon{color:var(--md-navigation-bar-active-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));fill:currentColor}.md3-navigation-bar .md3-navigation-tab:not(:disabled):focus.md3-navigation-tab--active .md3-navigation-tab__icon{color:var(--md-navigation-bar-active-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));fill:currentColor}.md3-navigation-bar .md3-navigation-tab:not(:disabled):active.md3-navigation-tab--active .md3-navigation-tab__icon{color:var(--md-navigation-bar-active-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));fill:currentColor}.md3-navigation-bar .md3-navigation-tab:disabled.md3-navigation-tab--active .md3-navigation-tab__icon{fill:currentColor}.md3-navigation-bar .md3-navigation-tab:not(:disabled):not(.md3-navigation-tab--active) .md3-navigation-tab__icon{color:var(--md-navigation-bar-inactive-icon-color, var(--md-sys-color-on-surface-variant, #49454f));fill:currentColor}.md3-navigation-bar .md3-navigation-tab:not(:disabled):hover:not(.md3-navigation-tab--active) .md3-navigation-tab__icon{color:var(--md-navigation-bar-inactive-hover-icon-color, var(--md-sys-color-on-surface, #1c1b1f));fill:currentColor}.md3-navigation-bar .md3-navigation-tab:not(:disabled):focus:not(.md3-navigation-tab--active) .md3-navigation-tab__icon{color:var(--md-navigation-bar-inactive-focus-icon-color, var(--md-sys-color-on-surface, #1c1b1f));fill:currentColor}.md3-navigation-bar .md3-navigation-tab:not(:disabled):active:not(.md3-navigation-tab--active) .md3-navigation-tab__icon{color:var(--md-navigation-bar-inactive-pressed-icon-color, var(--md-sys-color-on-surface, #1c1b1f));fill:currentColor}.md3-navigation-bar .md3-navigation-tab:disabled:not(.md3-navigation-tab--active) .md3-navigation-tab__icon{fill:currentColor}.md3-navigation-bar .md3-navigation-tab:not(:disabled).md3-navigation-tab--active .md3-navigation-tab__label-text{color:var(--md-navigation-bar-active-label-text-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-navigation-bar .md3-navigation-tab:not(:disabled):hover.md3-navigation-tab--active .md3-navigation-tab__label-text{color:var(--md-navigation-bar-active-hover-label-text-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-navigation-bar .md3-navigation-tab:not(:disabled):focus.md3-navigation-tab--active .md3-navigation-tab__label-text{color:var(--md-navigation-bar-active-focus-label-text-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-navigation-bar .md3-navigation-tab:not(:disabled):active.md3-navigation-tab--active .md3-navigation-tab__label-text{color:var(--md-navigation-bar-active-pressed-label-text-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-navigation-bar .md3-navigation-tab:not(:disabled):not(.md3-navigation-tab--active) .md3-navigation-tab__label-text{color:var(--md-navigation-bar-inactive-label-text-color, var(--md-sys-color-on-surface-variant, #49454f))}.md3-navigation-bar .md3-navigation-tab:not(:disabled):hover:not(.md3-navigation-tab--active) .md3-navigation-tab__label-text{color:var(--md-navigation-bar-inactive-hover-label-text-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-navigation-bar .md3-navigation-tab:not(:disabled):focus:not(.md3-navigation-tab--active) .md3-navigation-tab__label-text{color:var(--md-navigation-bar-inactive-focus-label-text-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-navigation-bar .md3-navigation-tab:not(:disabled):active:not(.md3-navigation-tab--active) .md3-navigation-tab__label-text{color:var(--md-navigation-bar-inactive-pressed-label-text-color, var(--md-sys-color-on-surface, #1c1b1f))}.md3-navigation-bar .md3-navigation-tab .md3-navigation-tab__active-indicator{background-color:var(--md-navigation-bar-active-indicator-color, var(--md-sys-color-secondary-container, #e8def8))}.md3-navigation-bar .md3-navigation-tab .md3-navigation-tab__active-indicator,.md3-navigation-bar .md3-navigation-tab .md3-navigation-tab__icon-content{height:var(--md-navigation-bar-active-indicator-height, 32px)}.md3-navigation-bar .md3-navigation-tab.md3-navigation-tab--active .md3-navigation-tab__active-indicator,.md3-navigation-bar .md3-navigation-tab .md3-navigation-tab__icon-content{width:var(--md-navigation-bar-active-indicator-width, 64px)}.md3-navigation-bar .md3-navigation-tab .md3-navigation-tab__active-indicator{border-radius:var(--md-navigation-bar-active-indicator-shape, 9999px)}.md3-navigation-bar .md3-navigation-tab.md3-navigation-tab--active{--md-ripple-hover-state-layer-color:var(--md-navigation-bar-active-hover-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--md-ripple-focus-state-layer-color:var(--md-navigation-bar-active-focus-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--md-ripple-pressed-state-layer-color:var(--md-navigation-bar-active-pressed-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--md-ripple-hover-state-layer-opacity:var(--md-navigation-bar-hover-state-layer-opacity, 0.08);--md-ripple-focus-state-layer-opacity:var(--md-navigation-bar-focus-state-layer-opacity, 0.12);--md-ripple-pressed-state-layer-opacity:var(--md-navigation-bar-pressed-state-layer-opacity, 0.12)}.md3-navigation-bar .md3-elevation-overlay{background-color:var(--md-navigation-bar-container-surface-tint-layer-color, var(--md-sys-color-primary, #6750a4))}.md3-navigation-bar .md3-elevation-overlay{opacity:var(--md-navigation-bar-container-elevation-overlay-opacity, 0.08)}/*# sourceMappingURL=navigation-bar-styles.css.map */\n`;\n "]}
1
+ {"version":3,"file":"navigation-bar-styles.css.js","sourceRoot":"","sources":["navigation-bar-styles.css.ts"],"names":[],"mappings":"AAAA;;;;IAII;AACH,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AACxB,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;CACzB,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n import {css} from 'lit';\n export const styles = css`:host{--_active-indicator-color: var(--md-navigation-bar-active-indicator-color, var(--md-sys-color-secondary-container, #e8def8));--_active-indicator-height: var(--md-navigation-bar-active-indicator-height, 32px);--_active-indicator-shape: var(--md-navigation-bar-active-indicator-shape, 9999px);--_active-indicator-width: var(--md-navigation-bar-active-indicator-width, 64px);--_active-focus-icon-color: var(--md-navigation-bar-active-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_active-focus-label-text-color: var(--md-navigation-bar-active-focus-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_active-focus-state-layer-color: var(--md-navigation-bar-active-focus-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_active-hover-icon-color: var(--md-navigation-bar-active-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_active-hover-label-text-color: var(--md-navigation-bar-active-hover-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_active-hover-state-layer-color: var(--md-navigation-bar-active-hover-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_active-icon-color: var(--md-navigation-bar-active-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_active-label-text-color: var(--md-navigation-bar-active-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_active-label-text-weight: var(--md-navigation-bar-active-label-text-weight, 700);--_active-pressed-icon-color: var(--md-navigation-bar-active-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_active-pressed-label-text-color: var(--md-navigation-bar-active-pressed-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_active-pressed-state-layer-color: var(--md-navigation-bar-active-pressed-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_badge-color: var(--md-navigation-bar-badge-color, var(--md-sys-color-error, #b3261e));--_badge-shape: var(--md-navigation-bar-badge-shape, 3px);--_badge-size: var(--md-navigation-bar-badge-size, 6px);--_container-color: var(--md-navigation-bar-container-color, var(--md-sys-color-surface, #fffbfe));--_container-elevation: var(--md-navigation-bar-container-elevation, 2);--_container-height: var(--md-navigation-bar-container-height, 80px);--_container-shadow-color: var(--md-navigation-bar-container-shadow-color, var(--md-sys-color-shadow, #000));--_container-shape: var(--md-navigation-bar-container-shape, 0px);--_container-surface-tint-layer-color: var(--md-navigation-bar-container-surface-tint-layer-color, var(--md-sys-color-primary, #6750a4));--_focus-state-layer-opacity: var(--md-navigation-bar-focus-state-layer-opacity, 0.12);--_hover-state-layer-opacity: var(--md-navigation-bar-hover-state-layer-opacity, 0.08);--_icon-size: var(--md-navigation-bar-icon-size, 24px);--_inactive-focus-icon-color: var(--md-navigation-bar-inactive-focus-icon-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-focus-label-text-color: var(--md-navigation-bar-inactive-focus-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-focus-state-layer-color: var(--md-navigation-bar-inactive-focus-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-hover-icon-color: var(--md-navigation-bar-inactive-hover-icon-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-hover-label-text-color: var(--md-navigation-bar-inactive-hover-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-hover-state-layer-color: var(--md-navigation-bar-inactive-hover-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-icon-color: var(--md-navigation-bar-inactive-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_inactive-label-text-color: var(--md-navigation-bar-inactive-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_inactive-pressed-icon-color: var(--md-navigation-bar-inactive-pressed-icon-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-pressed-label-text-color: var(--md-navigation-bar-inactive-pressed-label-text-color, var(--md-sys-color-on-surface, #1c1b1f));--_inactive-pressed-state-layer-color: var(--md-navigation-bar-inactive-pressed-state-layer-color, var(--md-sys-color-on-surface, #1c1b1f));--_label-text-font: var(--md-navigation-bar-label-text-font, Roboto);--_label-text-line-height: var(--md-navigation-bar-label-text-line-height, 1rem);--_label-text-size: var(--md-navigation-bar-label-text-size, 0.75rem);--_label-text-tracking: var(--md-navigation-bar-label-text-tracking, 0.031rem);--_label-text-type: var(--md-navigation-bar-label-text-type, 500 0.75rem / 1rem Roboto);--_label-text-weight: var(--md-navigation-bar-label-text-weight, 500);--_large-badge-color: var(--md-navigation-bar-large-badge-color, var(--md-sys-color-error, #b3261e));--_large-badge-shape: var(--md-navigation-bar-large-badge-shape, 8px);--_large-badge-size: var(--md-navigation-bar-large-badge-size, 16px);--_pressed-state-layer-opacity: var(--md-navigation-bar-pressed-state-layer-opacity, 0.12);width:100%}.md3-navigation-bar{display:flex;position:relative;width:100%;background-color:var(--_container-color);border-radius:var(--_container-shape);height:var(--_container-height);--md-elevation-duration:280ms;--md-elevation-level:var(--_container-elevation);--md-elevation-shadow-color:var(--_container-shadow-color);--md-elevation-surface-tint-color:var(--_container-surface-tint-layer-color)}.md3-navigation-bar .md3-navigation-bar__tabs-slot-container{display:inherit;width:inherit}md-elevation{inset:0;position:absolute;z-index:0}/*# sourceMappingURL=navigation-bar-styles.css.map */\n`;\n "]}