@angular/material 21.0.0-next.1 → 21.0.0-next.10

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 (389) hide show
  1. package/chips/_m3-chip.scss +2 -5
  2. package/core/focus-indicators/_private.scss +16 -0
  3. package/core/tokens/_classes.scss +130 -145
  4. package/core/tokens/m2/_md-sys-color-internal.scss +11 -0
  5. package/core/tokens/m2/_md-sys-color.scss +28 -19
  6. package/core/tokens/m3/_md-sys-color-internal.scss +11 -0
  7. package/core/tokens/m3/_md-sys-color.scss +5 -31
  8. package/core/tokens/m3/_md-sys-typescale-internal.scss +5 -0
  9. package/core/tokens/m3/_md-sys-typescale.scss +2 -16
  10. package/fesm2022/{animation.mjs → _animation-chunk.mjs} +2 -23
  11. package/fesm2022/_animation-chunk.mjs.map +1 -0
  12. package/fesm2022/{date-formats.mjs → _date-formats-chunk.mjs} +3 -11
  13. package/fesm2022/_date-formats-chunk.mjs.map +1 -0
  14. package/fesm2022/{date-range-input-harness.mjs → _date-range-input-harness-chunk.mjs} +1 -1
  15. package/fesm2022/_date-range-input-harness-chunk.mjs.map +1 -0
  16. package/fesm2022/{error-options.mjs → _error-options-chunk.mjs} +1 -1
  17. package/fesm2022/_error-options-chunk.mjs.map +1 -0
  18. package/fesm2022/{error-state.mjs → _error-state-chunk.mjs} +1 -1
  19. package/fesm2022/_error-state-chunk.mjs.map +1 -0
  20. package/fesm2022/_form-field-chunk.mjs +1114 -0
  21. package/fesm2022/_form-field-chunk.mjs.map +1 -0
  22. package/fesm2022/{icon-button.mjs → _icon-button-chunk.mjs} +4 -4
  23. package/fesm2022/_icon-button-chunk.mjs.map +1 -0
  24. package/fesm2022/{icon-registry.mjs → _icon-registry-chunk.mjs} +3 -30
  25. package/fesm2022/_icon-registry-chunk.mjs.map +1 -0
  26. package/fesm2022/{input-harness.mjs → _input-harness-chunk.mjs} +1 -1
  27. package/fesm2022/_input-harness-chunk.mjs.map +1 -0
  28. package/fesm2022/{input-value-accessor.mjs → _input-value-accessor-chunk.mjs} +1 -1
  29. package/fesm2022/_input-value-accessor-chunk.mjs.map +1 -0
  30. package/fesm2022/{internal-form-field.mjs → _internal-form-field-chunk.mjs} +1 -1
  31. package/fesm2022/_internal-form-field-chunk.mjs.map +1 -0
  32. package/fesm2022/{line.mjs → _line-chunk.mjs} +6 -6
  33. package/fesm2022/_line-chunk.mjs.map +1 -0
  34. package/fesm2022/{option.mjs → _option-chunk.mjs} +6 -6
  35. package/fesm2022/_option-chunk.mjs.map +1 -0
  36. package/fesm2022/{option-harness.mjs → _option-harness-chunk.mjs} +1 -1
  37. package/fesm2022/_option-harness-chunk.mjs.map +1 -0
  38. package/fesm2022/{option-module.mjs → _option-module-chunk.mjs} +9 -9
  39. package/fesm2022/_option-module-chunk.mjs.map +1 -0
  40. package/fesm2022/{pseudo-checkbox.mjs → _pseudo-checkbox-chunk.mjs} +2 -2
  41. package/fesm2022/_pseudo-checkbox-chunk.mjs.map +1 -0
  42. package/fesm2022/{pseudo-checkbox-module.mjs → _pseudo-checkbox-module-chunk.mjs} +7 -7
  43. package/fesm2022/_pseudo-checkbox-module-chunk.mjs.map +1 -0
  44. package/fesm2022/{public-api.mjs → _public-api-chunk.mjs} +1 -1
  45. package/fesm2022/_public-api-chunk.mjs.map +1 -0
  46. package/fesm2022/{ripple.mjs → _ripple-chunk.mjs} +4 -4
  47. package/fesm2022/_ripple-chunk.mjs.map +1 -0
  48. package/fesm2022/{ripple-loader.mjs → _ripple-loader-chunk.mjs} +3 -3
  49. package/fesm2022/_ripple-loader-chunk.mjs.map +1 -0
  50. package/fesm2022/{ripple-module.mjs → _ripple-module-chunk.mjs} +7 -7
  51. package/fesm2022/_ripple-module-chunk.mjs.map +1 -0
  52. package/fesm2022/{structural-styles.mjs → _structural-styles-chunk.mjs} +1 -1
  53. package/fesm2022/_structural-styles-chunk.mjs.map +1 -0
  54. package/fesm2022/{tooltip2.mjs → _tooltip-chunk.mjs} +8 -35
  55. package/fesm2022/_tooltip-chunk.mjs.map +1 -0
  56. package/fesm2022/{autocomplete/testing.mjs → autocomplete-testing.mjs} +3 -3
  57. package/fesm2022/autocomplete-testing.mjs.map +1 -0
  58. package/fesm2022/autocomplete.mjs +20 -52
  59. package/fesm2022/autocomplete.mjs.map +1 -1
  60. package/fesm2022/{badge/testing.mjs → badge-testing.mjs} +1 -1
  61. package/fesm2022/badge-testing.mjs.map +1 -0
  62. package/fesm2022/badge.mjs +6 -7
  63. package/fesm2022/badge.mjs.map +1 -1
  64. package/fesm2022/{bottom-sheet/testing.mjs → bottom-sheet-testing.mjs} +1 -1
  65. package/fesm2022/bottom-sheet-testing.mjs.map +1 -0
  66. package/fesm2022/bottom-sheet.mjs +12 -90
  67. package/fesm2022/bottom-sheet.mjs.map +1 -1
  68. package/fesm2022/{button/testing.mjs → button-testing.mjs} +6 -2
  69. package/fesm2022/button-testing.mjs.map +1 -0
  70. package/fesm2022/{button-toggle/testing.mjs → button-toggle-testing.mjs} +1 -1
  71. package/fesm2022/button-toggle-testing.mjs.map +1 -0
  72. package/fesm2022/button-toggle.mjs +17 -26
  73. package/fesm2022/button-toggle.mjs.map +1 -1
  74. package/fesm2022/button.mjs +24 -46
  75. package/fesm2022/button.mjs.map +1 -1
  76. package/fesm2022/{card/testing.mjs → card-testing.mjs} +1 -1
  77. package/fesm2022/card-testing.mjs.map +1 -0
  78. package/fesm2022/card.mjs +6 -8
  79. package/fesm2022/card.mjs.map +1 -1
  80. package/fesm2022/{checkbox/testing.mjs → checkbox-testing.mjs} +1 -1
  81. package/fesm2022/checkbox-testing.mjs.map +1 -0
  82. package/fesm2022/checkbox.mjs +21 -31
  83. package/fesm2022/checkbox.mjs.map +1 -1
  84. package/fesm2022/{chips/testing.mjs → chips-testing.mjs} +1 -7
  85. package/fesm2022/chips-testing.mjs.map +1 -0
  86. package/fesm2022/chips.mjs +42 -22
  87. package/fesm2022/chips.mjs.map +1 -1
  88. package/fesm2022/{core/testing.mjs → core-testing.mjs} +2 -2
  89. package/fesm2022/core-testing.mjs.map +1 -0
  90. package/fesm2022/core.mjs +17 -24
  91. package/fesm2022/core.mjs.map +1 -1
  92. package/fesm2022/{datepicker/testing.mjs → datepicker-testing.mjs} +3 -3
  93. package/fesm2022/datepicker-testing.mjs.map +1 -0
  94. package/fesm2022/datepicker.mjs +114 -268
  95. package/fesm2022/datepicker.mjs.map +1 -1
  96. package/fesm2022/{dialog/testing.mjs → dialog-testing.mjs} +7 -8
  97. package/fesm2022/dialog-testing.mjs.map +1 -0
  98. package/fesm2022/dialog.mjs +882 -115
  99. package/fesm2022/dialog.mjs.map +1 -1
  100. package/fesm2022/{divider/testing.mjs → divider-testing.mjs} +1 -1
  101. package/fesm2022/divider-testing.mjs.map +1 -0
  102. package/fesm2022/divider.mjs +5 -7
  103. package/fesm2022/divider.mjs.map +1 -1
  104. package/fesm2022/{expansion/testing.mjs → expansion-testing.mjs} +1 -1
  105. package/fesm2022/expansion-testing.mjs.map +1 -0
  106. package/fesm2022/expansion.mjs +10 -114
  107. package/fesm2022/expansion.mjs.map +1 -1
  108. package/fesm2022/{form-field/testing/control.mjs → form-field-testing-control.mjs} +1 -1
  109. package/fesm2022/form-field-testing-control.mjs.map +1 -0
  110. package/fesm2022/{form-field/testing.mjs → form-field-testing.mjs} +5 -5
  111. package/fesm2022/form-field-testing.mjs.map +1 -0
  112. package/fesm2022/form-field.mjs +20 -51
  113. package/fesm2022/form-field.mjs.map +1 -1
  114. package/fesm2022/{grid-list/testing.mjs → grid-list-testing.mjs} +2 -2
  115. package/fesm2022/grid-list-testing.mjs.map +1 -0
  116. package/fesm2022/grid-list.mjs +9 -14
  117. package/fesm2022/grid-list.mjs.map +1 -1
  118. package/fesm2022/{icon/testing.mjs → icon-testing.mjs} +2 -2
  119. package/fesm2022/icon-testing.mjs.map +1 -0
  120. package/fesm2022/icon.mjs +17 -25
  121. package/fesm2022/icon.mjs.map +1 -1
  122. package/fesm2022/{input/testing.mjs → input-testing.mjs} +3 -3
  123. package/fesm2022/{input/testing.mjs.map → input-testing.mjs.map} +1 -1
  124. package/fesm2022/input.mjs +12 -13
  125. package/fesm2022/input.mjs.map +1 -1
  126. package/fesm2022/{list/testing.mjs → list-testing.mjs} +2 -2
  127. package/fesm2022/list-testing.mjs.map +1 -0
  128. package/fesm2022/list.mjs +14 -15
  129. package/fesm2022/list.mjs.map +1 -1
  130. package/fesm2022/{menu/testing.mjs → menu-testing.mjs} +1 -1
  131. package/fesm2022/menu-testing.mjs.map +1 -0
  132. package/fesm2022/menu.mjs +25 -173
  133. package/fesm2022/menu.mjs.map +1 -1
  134. package/fesm2022/{paginator/testing.mjs → paginator-testing.mjs} +2 -2
  135. package/fesm2022/paginator-testing.mjs.map +1 -0
  136. package/fesm2022/paginator.mjs +23 -44
  137. package/fesm2022/paginator.mjs.map +1 -1
  138. package/fesm2022/{progress-bar/testing.mjs → progress-bar-testing.mjs} +1 -1
  139. package/fesm2022/progress-bar-testing.mjs.map +1 -0
  140. package/fesm2022/progress-bar.mjs +20 -25
  141. package/fesm2022/progress-bar.mjs.map +1 -1
  142. package/fesm2022/{progress-spinner/testing.mjs → progress-spinner-testing.mjs} +1 -1
  143. package/fesm2022/progress-spinner-testing.mjs.map +1 -0
  144. package/fesm2022/progress-spinner.mjs +7 -17
  145. package/fesm2022/progress-spinner.mjs.map +1 -1
  146. package/fesm2022/{radio/testing.mjs → radio-testing.mjs} +1 -1
  147. package/fesm2022/radio-testing.mjs.map +1 -0
  148. package/fesm2022/radio.mjs +16 -25
  149. package/fesm2022/radio.mjs.map +1 -1
  150. package/fesm2022/{select/testing.mjs → select-testing.mjs} +1 -1
  151. package/fesm2022/select-testing.mjs.map +1 -0
  152. package/fesm2022/select.mjs +1299 -96
  153. package/fesm2022/select.mjs.map +1 -1
  154. package/fesm2022/{sidenav/testing.mjs → sidenav-testing.mjs} +1 -1
  155. package/fesm2022/sidenav-testing.mjs.map +1 -0
  156. package/fesm2022/sidenav.mjs +10 -100
  157. package/fesm2022/sidenav.mjs.map +1 -1
  158. package/fesm2022/{slide-toggle/testing.mjs → slide-toggle-testing.mjs} +1 -1
  159. package/fesm2022/slide-toggle-testing.mjs.map +1 -0
  160. package/fesm2022/slide-toggle.mjs +9 -10
  161. package/fesm2022/slide-toggle.mjs.map +1 -1
  162. package/fesm2022/{slider/testing.mjs → slider-testing.mjs} +1 -1
  163. package/fesm2022/slider-testing.mjs.map +1 -0
  164. package/fesm2022/slider.mjs +11 -25
  165. package/fesm2022/slider.mjs.map +1 -1
  166. package/fesm2022/{snack-bar/testing.mjs → snack-bar-testing.mjs} +1 -1
  167. package/fesm2022/snack-bar-testing.mjs.map +1 -0
  168. package/fesm2022/snack-bar.mjs +15 -109
  169. package/fesm2022/snack-bar.mjs.map +1 -1
  170. package/fesm2022/{sort/testing.mjs → sort-testing.mjs} +1 -1
  171. package/fesm2022/sort-testing.mjs.map +1 -0
  172. package/fesm2022/sort.mjs +11 -338
  173. package/fesm2022/sort.mjs.map +1 -1
  174. package/fesm2022/{stepper/testing.mjs → stepper-testing.mjs} +3 -2
  175. package/fesm2022/stepper-testing.mjs.map +1 -0
  176. package/fesm2022/stepper.mjs +19 -192
  177. package/fesm2022/stepper.mjs.map +1 -1
  178. package/fesm2022/{table/testing.mjs → table-testing.mjs} +36 -4
  179. package/fesm2022/table-testing.mjs.map +1 -0
  180. package/fesm2022/table.mjs +14 -11
  181. package/fesm2022/table.mjs.map +1 -1
  182. package/fesm2022/{tabs/testing.mjs → tabs-testing.mjs} +1 -1
  183. package/fesm2022/tabs-testing.mjs.map +1 -0
  184. package/fesm2022/tabs.mjs +27 -181
  185. package/fesm2022/tabs.mjs.map +1 -1
  186. package/fesm2022/{timepicker/testing.mjs → timepicker-testing.mjs} +2 -2
  187. package/fesm2022/timepicker-testing.mjs.map +1 -0
  188. package/fesm2022/timepicker.mjs +27 -21
  189. package/fesm2022/timepicker.mjs.map +1 -1
  190. package/fesm2022/{toolbar/testing.mjs → toolbar-testing.mjs} +1 -1
  191. package/fesm2022/toolbar-testing.mjs.map +1 -0
  192. package/fesm2022/toolbar.mjs +5 -7
  193. package/fesm2022/toolbar.mjs.map +1 -1
  194. package/fesm2022/{tooltip/testing.mjs → tooltip-testing.mjs} +1 -1
  195. package/fesm2022/tooltip-testing.mjs.map +1 -0
  196. package/fesm2022/tooltip.mjs +22 -55
  197. package/fesm2022/tooltip.mjs.map +1 -1
  198. package/fesm2022/{tree/testing.mjs → tree-testing.mjs} +1 -1
  199. package/fesm2022/tree-testing.mjs.map +1 -0
  200. package/fesm2022/tree.mjs +6 -8
  201. package/fesm2022/tree.mjs.map +1 -1
  202. package/package.json +115 -114
  203. package/prebuilt-themes/deeppurple-amber.css +1 -1
  204. package/prebuilt-themes/indigo-pink.css +1 -1
  205. package/prebuilt-themes/pink-bluegrey.css +1 -1
  206. package/prebuilt-themes/purple-green.css +1 -1
  207. package/schematics/ng-add/index.js +1 -1
  208. package/slider/_m2-slider.scss +1 -0
  209. package/slider/_m3-slider.scss +5 -2
  210. package/{badge.d.d.ts → types/_badge-chunk.d.ts} +1 -1
  211. package/{button-toggle.d.d.ts → types/_button-toggle-chunk.d.ts} +1 -7
  212. package/{date-adapter.d.d.ts → types/_date-adapter-chunk.d.ts} +1 -7
  213. package/{form-field.d.d.ts → types/_form-field-chunk.d.ts} +2 -2
  214. package/{form-field-module.d.d.ts → types/_form-field-module-chunk.d.ts} +4 -4
  215. package/{icon-module.d.d.ts → types/_icon-module-chunk.d.ts} +4 -10
  216. package/{icon-registry.d.d.ts → types/_icon-registry-chunk.d.ts} +2 -18
  217. package/{line.d.d.ts → types/_line-chunk.d.ts} +2 -2
  218. package/types/_option-module-chunk.d.ts +13 -0
  219. package/{paginator.d.d.ts → types/_paginator-chunk.d.ts} +4 -20
  220. package/{progress-spinner.d.d.ts → types/_progress-spinner-chunk.d.ts} +4 -10
  221. package/{pseudo-checkbox-module.d.d.ts → types/_pseudo-checkbox-module-chunk.d.ts} +2 -2
  222. package/{ripple.d.d.ts → types/_ripple-chunk.d.ts} +3 -3
  223. package/{ripple-module.d.d.ts → types/_ripple-module-chunk.d.ts} +3 -3
  224. package/{sort.d.d.ts → types/_sort-chunk.d.ts} +1 -1
  225. package/{autocomplete/testing/index.d.ts → types/autocomplete-testing.d.ts} +2 -2
  226. package/{autocomplete/index.d.ts → types/autocomplete.d.ts} +10 -33
  227. package/{badge/testing/index.d.ts → types/badge-testing.d.ts} +2 -2
  228. package/types/badge.d.ts +14 -0
  229. package/{bottom-sheet/index.d.ts → types/bottom-sheet.d.ts} +10 -14
  230. package/{button/testing/index.d.ts → types/button-testing.d.ts} +2 -0
  231. package/{button-toggle/testing/index.d.ts → types/button-toggle-testing.d.ts} +1 -1
  232. package/types/button-toggle.d.ts +16 -0
  233. package/{button/index.d.ts → types/button.d.ts} +7 -14
  234. package/{card/index.d.ts → types/card.d.ts} +2 -3
  235. package/{checkbox/index.d.ts → types/checkbox.d.ts} +4 -11
  236. package/{chips/index.d.ts → types/chips.d.ts} +55 -50
  237. package/{core/testing/index.d.ts → types/core-testing.d.ts} +1 -1
  238. package/{core/index.d.ts → types/core.d.ts} +14 -41
  239. package/{datepicker/testing/index.d.ts → types/datepicker-testing.d.ts} +2 -2
  240. package/{datepicker/index.d.ts → types/datepicker.d.ts} +48 -101
  241. package/{dialog/testing/index.d.ts → types/dialog-testing.d.ts} +1 -1
  242. package/{dialog/index.d.ts → types/dialog.d.ts} +9 -32
  243. package/{divider/index.d.ts → types/divider.d.ts} +2 -3
  244. package/{expansion/index.d.ts → types/expansion.d.ts} +5 -41
  245. package/{form-field/testing/control/index.d.ts → types/form-field-testing-control.d.ts} +1 -1
  246. package/{form-field/testing/index.d.ts → types/form-field-testing.d.ts} +4 -4
  247. package/{form-field/index.d.ts → types/form-field.d.ts} +6 -17
  248. package/{grid-list/index.d.ts → types/grid-list.d.ts} +3 -4
  249. package/{icon/testing/index.d.ts → types/icon-testing.d.ts} +1 -1
  250. package/types/icon.d.ts +8 -0
  251. package/{input/testing/index.d.ts → types/input-testing.d.ts} +2 -2
  252. package/{input/index.d.ts → types/input.d.ts} +10 -11
  253. package/{list/testing/index.d.ts → types/list-testing.d.ts} +2 -2
  254. package/{list/index.d.ts → types/list.d.ts} +10 -11
  255. package/{menu/index.d.ts → types/menu.d.ts} +7 -48
  256. package/{paginator/testing/index.d.ts → types/paginator-testing.d.ts} +1 -1
  257. package/types/paginator.d.ts +35 -0
  258. package/{progress-bar/index.d.ts → types/progress-bar.d.ts} +4 -11
  259. package/{progress-spinner/testing/index.d.ts → types/progress-spinner-testing.d.ts} +2 -2
  260. package/{progress-spinner/index.d.ts → types/progress-spinner.d.ts} +5 -6
  261. package/{radio/index.d.ts → types/radio.d.ts} +6 -13
  262. package/{select-module.d.d.ts → types/select.d.ts} +19 -26
  263. package/{sidenav/index.d.ts → types/sidenav.d.ts} +4 -21
  264. package/{slide-toggle/index.d.ts → types/slide-toggle.d.ts} +3 -4
  265. package/{slider/index.d.ts → types/slider.d.ts} +5 -5
  266. package/{snack-bar/index.d.ts → types/snack-bar.d.ts} +9 -25
  267. package/{sort/testing/index.d.ts → types/sort-testing.d.ts} +1 -1
  268. package/{sort/index.d.ts → types/sort.d.ts} +8 -40
  269. package/{stepper/index.d.ts → types/stepper.d.ts} +11 -39
  270. package/{table/testing/index.d.ts → types/table-testing.d.ts} +27 -1
  271. package/{table/index.d.ts → types/table.d.ts} +11 -11
  272. package/{tabs/index.d.ts → types/tabs.d.ts} +6 -22
  273. package/{timepicker/testing/index.d.ts → types/timepicker-testing.d.ts} +1 -1
  274. package/{timepicker/index.d.ts → types/timepicker.d.ts} +151 -130
  275. package/{toolbar/index.d.ts → types/toolbar.d.ts} +2 -3
  276. package/{tooltip-module.d.d.ts → types/tooltip.d.ts} +7 -29
  277. package/{tree/index.d.ts → types/tree.d.ts} +2 -3
  278. package/badge/index.d.ts +0 -15
  279. package/button-toggle/index.d.ts +0 -17
  280. package/common-module.d.d.ts +0 -44
  281. package/fesm2022/animation.mjs.map +0 -1
  282. package/fesm2022/autocomplete/testing.mjs.map +0 -1
  283. package/fesm2022/badge/testing.mjs.map +0 -1
  284. package/fesm2022/bottom-sheet/testing.mjs.map +0 -1
  285. package/fesm2022/button/testing.mjs.map +0 -1
  286. package/fesm2022/button-toggle/testing.mjs.map +0 -1
  287. package/fesm2022/card/testing.mjs.map +0 -1
  288. package/fesm2022/checkbox/testing.mjs.map +0 -1
  289. package/fesm2022/chips/testing.mjs.map +0 -1
  290. package/fesm2022/common-module.mjs +0 -42
  291. package/fesm2022/common-module.mjs.map +0 -1
  292. package/fesm2022/core/testing.mjs.map +0 -1
  293. package/fesm2022/date-formats.mjs.map +0 -1
  294. package/fesm2022/date-range-input-harness.mjs.map +0 -1
  295. package/fesm2022/datepicker/testing.mjs.map +0 -1
  296. package/fesm2022/dialog/testing.mjs.map +0 -1
  297. package/fesm2022/dialog-module.mjs +0 -891
  298. package/fesm2022/dialog-module.mjs.map +0 -1
  299. package/fesm2022/divider/testing.mjs.map +0 -1
  300. package/fesm2022/error-options.mjs.map +0 -1
  301. package/fesm2022/error-state.mjs.map +0 -1
  302. package/fesm2022/expansion/testing.mjs.map +0 -1
  303. package/fesm2022/form-field/testing/control.mjs.map +0 -1
  304. package/fesm2022/form-field/testing.mjs.map +0 -1
  305. package/fesm2022/form-field-module.mjs +0 -39
  306. package/fesm2022/form-field-module.mjs.map +0 -1
  307. package/fesm2022/form-field2.mjs +0 -1114
  308. package/fesm2022/form-field2.mjs.map +0 -1
  309. package/fesm2022/grid-list/testing.mjs.map +0 -1
  310. package/fesm2022/icon/testing.mjs.map +0 -1
  311. package/fesm2022/icon-button.mjs.map +0 -1
  312. package/fesm2022/icon-registry.mjs.map +0 -1
  313. package/fesm2022/input-harness.mjs.map +0 -1
  314. package/fesm2022/input-value-accessor.mjs.map +0 -1
  315. package/fesm2022/internal-form-field.mjs.map +0 -1
  316. package/fesm2022/line.mjs.map +0 -1
  317. package/fesm2022/list/testing.mjs.map +0 -1
  318. package/fesm2022/menu/testing.mjs.map +0 -1
  319. package/fesm2022/option-harness.mjs.map +0 -1
  320. package/fesm2022/option-module.mjs.map +0 -1
  321. package/fesm2022/option.mjs.map +0 -1
  322. package/fesm2022/paginator/testing.mjs.map +0 -1
  323. package/fesm2022/progress-bar/testing.mjs.map +0 -1
  324. package/fesm2022/progress-spinner/testing.mjs.map +0 -1
  325. package/fesm2022/pseudo-checkbox-module.mjs.map +0 -1
  326. package/fesm2022/pseudo-checkbox.mjs.map +0 -1
  327. package/fesm2022/public-api.mjs.map +0 -1
  328. package/fesm2022/radio/testing.mjs.map +0 -1
  329. package/fesm2022/ripple-loader.mjs.map +0 -1
  330. package/fesm2022/ripple-module.mjs.map +0 -1
  331. package/fesm2022/ripple.mjs.map +0 -1
  332. package/fesm2022/select/testing.mjs.map +0 -1
  333. package/fesm2022/select-module.mjs +0 -1318
  334. package/fesm2022/select-module.mjs.map +0 -1
  335. package/fesm2022/sidenav/testing.mjs.map +0 -1
  336. package/fesm2022/slide-toggle/testing.mjs.map +0 -1
  337. package/fesm2022/slider/testing.mjs.map +0 -1
  338. package/fesm2022/snack-bar/testing.mjs.map +0 -1
  339. package/fesm2022/sort/testing.mjs.map +0 -1
  340. package/fesm2022/stepper/testing.mjs.map +0 -1
  341. package/fesm2022/structural-styles.mjs.map +0 -1
  342. package/fesm2022/table/testing.mjs.map +0 -1
  343. package/fesm2022/tabs/testing.mjs.map +0 -1
  344. package/fesm2022/timepicker/testing.mjs.map +0 -1
  345. package/fesm2022/toolbar/testing.mjs.map +0 -1
  346. package/fesm2022/tooltip/testing.mjs.map +0 -1
  347. package/fesm2022/tooltip-module.mjs +0 -24
  348. package/fesm2022/tooltip-module.mjs.map +0 -1
  349. package/fesm2022/tooltip2.mjs.map +0 -1
  350. package/fesm2022/tree/testing.mjs.map +0 -1
  351. package/icon/index.d.ts +0 -9
  352. package/option-module.d.d.ts +0 -13
  353. package/paginator/index.d.ts +0 -36
  354. package/select/index.d.ts +0 -38
  355. package/tooltip/index.d.ts +0 -21
  356. /package/{date-range-input-harness.d.d.ts → types/_date-range-input-harness-chunk.d.ts} +0 -0
  357. /package/{dialog.d.d.ts → types/_dialog-chunk.d.ts} +0 -0
  358. /package/{error-options.d.d.ts → types/_error-options-chunk.d.ts} +0 -0
  359. /package/{form-field-control.d.d.ts → types/_form-field-control-chunk.d.ts} +0 -0
  360. /package/{form-field-control-harness.d.d.ts → types/_form-field-control-harness-chunk.d.ts} +0 -0
  361. /package/{input-harness.d.d.ts → types/_input-harness-chunk.d.ts} +0 -0
  362. /package/{list-option-types.d.d.ts → types/_list-option-types-chunk.d.ts} +0 -0
  363. /package/{option.d.d.ts → types/_option-chunk.d.ts} +0 -0
  364. /package/{option-harness.d.d.ts → types/_option-harness-chunk.d.ts} +0 -0
  365. /package/{option-parent.d.d.ts → types/_option-parent-chunk.d.ts} +0 -0
  366. /package/{palette.d.d.ts → types/_palette-chunk.d.ts} +0 -0
  367. /package/{ripple-loader.d.d.ts → types/_ripple-loader-chunk.d.ts} +0 -0
  368. /package/{sort-direction.d.d.ts → types/_sort-direction-chunk.d.ts} +0 -0
  369. /package/{bottom-sheet/testing/index.d.ts → types/bottom-sheet-testing.d.ts} +0 -0
  370. /package/{card/testing/index.d.ts → types/card-testing.d.ts} +0 -0
  371. /package/{checkbox/testing/index.d.ts → types/checkbox-testing.d.ts} +0 -0
  372. /package/{chips/testing/index.d.ts → types/chips-testing.d.ts} +0 -0
  373. /package/{divider/testing/index.d.ts → types/divider-testing.d.ts} +0 -0
  374. /package/{expansion/testing/index.d.ts → types/expansion-testing.d.ts} +0 -0
  375. /package/{grid-list/testing/index.d.ts → types/grid-list-testing.d.ts} +0 -0
  376. /package/{index.d.ts → types/material.d.ts} +0 -0
  377. /package/{menu/testing/index.d.ts → types/menu-testing.d.ts} +0 -0
  378. /package/{progress-bar/testing/index.d.ts → types/progress-bar-testing.d.ts} +0 -0
  379. /package/{radio/testing/index.d.ts → types/radio-testing.d.ts} +0 -0
  380. /package/{select/testing/index.d.ts → types/select-testing.d.ts} +0 -0
  381. /package/{sidenav/testing/index.d.ts → types/sidenav-testing.d.ts} +0 -0
  382. /package/{slide-toggle/testing/index.d.ts → types/slide-toggle-testing.d.ts} +0 -0
  383. /package/{slider/testing/index.d.ts → types/slider-testing.d.ts} +0 -0
  384. /package/{snack-bar/testing/index.d.ts → types/snack-bar-testing.d.ts} +0 -0
  385. /package/{stepper/testing/index.d.ts → types/stepper-testing.d.ts} +0 -0
  386. /package/{tabs/testing/index.d.ts → types/tabs-testing.d.ts} +0 -0
  387. /package/{toolbar/testing/index.d.ts → types/toolbar-testing.d.ts} +0 -0
  388. /package/{tooltip/testing/index.d.ts → types/tooltip-testing.d.ts} +0 -0
  389. /package/{tree/testing/index.d.ts → types/tree-testing.d.ts} +0 -0
@@ -49,11 +49,8 @@
49
49
  chip-selected-label-text-color: map.get($system, on-secondary-container),
50
50
  chip-selected-trailing-action-state-layer-color: map.get($system, on-secondary-container),
51
51
  chip-selected-trailing-icon-color: map.get($system, on-secondary-container),
52
- // Parent chips will show focus/hover state as well so need stronger focus/hover styling here
53
- chip-trailing-action-focus-state-layer-opacity:
54
- calc(map.get($system, focus-state-layer-opacity) * 2),
55
- chip-trailing-action-hover-state-layer-opacity:
56
- calc(map.get($system, hover-state-layer-opacity) * 2),
52
+ chip-trailing-action-focus-state-layer-opacity: map.get($system, focus-state-layer-opacity),
53
+ chip-trailing-action-hover-state-layer-opacity: map.get($system, hover-state-layer-opacity),
57
54
  chip-trailing-action-state-layer-color: map.get($system, on-surface-variant),
58
55
  chip-with-icon-disabled-icon-color: map.get($system, on-surface),
59
56
  chip-with-icon-icon-color: map.get($system, on-surface-variant),
@@ -86,6 +86,10 @@ $default-border-radius: 4px;
86
86
  $config: map.merge($default-config, $config);
87
87
 
88
88
  @include _customize-focus-indicators($config);
89
+
90
+ // Strong focus indicators currently need chip labels to have overflow visible.
91
+ // TODO(b/446709063) revisit the structure to find a way to remove this dependency.
92
+ @include _chip-label-overflow-visible();
89
93
  }
90
94
 
91
95
  @mixin strong-focus-indicators-color($theme-or-color) {
@@ -108,3 +112,15 @@ $default-border-radius: 4px;
108
112
  }
109
113
  }
110
114
  }
115
+
116
+ @mixin _chip-label-overflow-visible {
117
+ .mat-mdc-standard-chip {
118
+ // MDC sets `overflow: hidden` on these elements in order to truncate the text. This conflicts
119
+ // with how we structure and style the strong focus indicators so we need to override it.
120
+ .mdc-evolution-chip__cell--primary,
121
+ .mdc-evolution-chip__action--primary,
122
+ .mat-mdc-chip-action-label {
123
+ overflow: visible;
124
+ }
125
+ }
126
+ }
@@ -1,141 +1,117 @@
1
1
  // Utility classes that can be used to style elements with the most commonly used system tokens in
2
- // Material Design. Includes color, typography, elevation, and shape.
2
+ // Material Design. Includes color, typography, elevation, state, and shape.
3
3
  @mixin system-classes() {
4
4
 
5
5
  // ***********************************************************************************************
6
- // Background
6
+ // Background - Applies background colors defined by Material Design.
7
+ // See https://m3.material.io/styles/color/roles for detailed guidance.
7
8
  // ***********************************************************************************************
8
9
 
9
- // Styles an element with a primary color background and applies an accessible contrasting
10
- // color for text and icons. Use for key components across the UI, such as buttons that
11
- // have greater importance on the page. In Angular Material, this is used for the selected
12
- // date in a datepicker, the handle of a slider, and the background of a checkbox.
10
+ // Styles an element with a primary color background. Use for key components across the UI, such
11
+ // as buttons that have greater importance on the page. In Angular Material, this is used for the
12
+ // selected date in a datepicker, the handle of a slider, and the background of a checkbox.
13
13
  .mat-bg-primary {
14
14
  background-color: var(--mat-sys-primary);
15
- color: var(--mat-sys-on-primary);
16
15
  }
17
16
 
18
- // Styles an element with a primary container color background and applies an accessible
19
- // contrasting color for text and icons. Use for filling components that should stand out
20
- // on a surface. In Angular Material, this is used for
21
- // the container of a floating action button.
17
+ // Styles an element with a primary container color background. Use for filling components that
18
+ // should stand out on a surface. In Angular Material, this is used for the container of a
19
+ // floating action button.
22
20
  .mat-bg-primary-container {
23
21
  background-color: var(--mat-sys-primary-container);
24
- color: var(--mat-sys-on-primary-container);
25
22
  }
26
23
 
27
- // Styles an element with a secondary color background and applies an accessible contrasting
28
- // color for text and icons. Use for less prominent components in the UI that have a different
29
- // color scheme than the primary.
24
+ // Styles an element with a secondary color background. Use for less prominent components in the
25
+ // UI that have a different color scheme than the primary.
30
26
  .mat-bg-secondary {
31
27
  background-color: var(--mat-sys-secondary);
32
- color: var(--mat-sys-on-secondary);
33
28
  }
34
29
 
35
- // Styles an element with a secondary container color background and applies an accessible
36
- // contrasting color for text and icons. Use for components that need less emphasis than
37
- // secondary, such as filter chips. In Angular Material, this is used for selected items
38
- // in a list and the container of a tonal button.
30
+ // Styles an element with a secondary container color background. Use for components that need
31
+ // less emphasis than secondary, such as filter chips. In Angular Material, this is used for
32
+ // selected items in a list and the container of a tonal button.
39
33
  .mat-bg-secondary-container {
40
34
  background-color: var(--mat-sys-secondary-container);
41
- color: var(--mat-sys-on-secondary-container);
42
35
  }
43
36
 
44
- // Styles an element with an error color background and applies an accessible contrasting
45
- // color for text and icons. Use for indicating an error state, such as an invalid text field, or
46
- // for the background of an important notification. In Angular Material, this is used for the
47
- // background of a badge.
37
+ // Styles an element with an error color background. Use for indicating an error state, such as
38
+ // an invalid text field, or for the background of an important notification. In Angular
39
+ // Material, this is used for the background of a badge.
48
40
  .mat-bg-error {
49
41
  background-color: var(--mat-sys-error);
50
- color: var(--mat-sys-on-error);
51
42
  }
52
43
 
53
- // Styles an element with an error container color background and applies an accessible
54
- // contrasting color for text and icons. Use for components that need less emphasis than
55
- // error, such as a container for error text.
44
+ // Styles an element with an error container color background. Use for components that need less
45
+ // emphasis than error, such as a container for error text.
56
46
  .mat-bg-error-container {
57
47
  background-color: var(--mat-sys-error-container);
58
- color: var(--mat-sys-on-error-container);
59
48
  }
60
49
 
61
- // Styles an element with a surface color background and applies an accessible contrasting
62
- // color for text and icons. Use for general surfaces of components. In Angular Material, this is
63
- // used for the background of many components, like tables, dialogs, menus, and toolbars.
50
+ // Styles an element with a surface color background. Use for general surfaces of components. In
51
+ // Angular Material, this is used for the background of many components, like tables, dialogs,
52
+ // menus, and toolbars.
64
53
  .mat-bg-surface {
65
54
  background-color: var(--mat-sys-surface);
66
- color: var(--mat-sys-on-surface);
67
55
  }
68
56
 
69
- // Styles an element with a surface variant color background and applies an accessible
70
- // contrasting color for text and icons. Use for surfaces that need to stand out from the
71
- // main surface color. In Angular Material, this is used for the background of a filled
72
- // form field and the track of a progress bar.
57
+ // Styles an element with a surface variant color background. Use for surfaces that need to stand
58
+ // out from the main surface color. In Angular Material, this is used for the background of a
59
+ // filled form field and the track of a progress bar.
73
60
  .mat-bg-surface-variant {
74
61
  background-color: var(--mat-sys-surface-variant);
75
- color: var(--mat-sys-on-surface-variant);
76
62
  }
77
63
 
78
- // Styles an element with the "highest" surface container color background and applies an
79
- // accessible contrasting color for text and icons. Use for surfaces that need the most
80
- // emphasis against the main surface color. In Angular Material, this is used for the
81
- // background of a filled card.
64
+ // Styles an element with the "highest" surface container color background. Use for surfaces that
65
+ // need the most emphasis against the main surface color. In Angular Material, this is used for
66
+ // the background of a filled card.
82
67
  .mat-bg-surface-container-highest {
83
68
  background-color: var(--mat-sys-surface-container-highest);
84
- color: var(--mat-sys-on-surface);
85
69
  }
86
70
 
87
- // Styles an element with a "high" surface container color background and applies an accessible
88
- // contrasting color for text and icons. Use for surfaces that need more emphasis against
89
- // the main surface color. In Angular Material, this is used for the background of a datepicker.
71
+ // Styles an element with a "high" surface container color background. Use for surfaces that need
72
+ // more emphasis against the main surface color. In Angular Material, this is used for the
73
+ // background of a datepicker.
90
74
  .mat-bg-surface-container-high {
91
75
  background-color: var(--mat-sys-surface-container-high);
92
- color: var(--mat-sys-on-surface);
93
76
  }
94
77
 
95
- // Styles an element with a surface container color background and applies an accessible
96
- // contrasting color for text and icons. Use for surfaces that need to stand out from the
97
- // main surface color. In Angular Material, this is used for the background of a menu.
78
+ // Styles an element with a surface container color background. Use for surfaces that need to
79
+ // stand out from the main surface color. In Angular Material, this is used for the background
80
+ // of a menu.
98
81
  .mat-bg-surface-container {
99
82
  background-color: var(--mat-sys-surface-container);
100
- color: var(--mat-sys-on-surface);
101
83
  }
102
84
 
103
- // Styles an element with a "low" surface container color background and applies an accessible
104
- // contrasting color for text and icons. Use for surfaces that need less emphasis against
105
- // the main surface color. In Angular Material, this is used for the background of a bottom sheet.
85
+ // Styles an element with a "low" surface container color background. Use for surfaces that need
86
+ // less emphasis against the main surface color. In Angular Material, this is used for the
87
+ // background of a bottom sheet.
106
88
  .mat-bg-surface-container-low {
107
89
  background-color: var(--mat-sys-surface-container-low);
108
- color: var(--mat-sys-on-surface);
109
90
  }
110
91
 
111
- // Styles an element with the "lowest" surface container color background and applies an
112
- // accessible contrasting color for text and icons. Use for surfaces that need the least
113
- // emphasis against the main surface color.
92
+ // Styles an element with the "lowest" surface container color background. Use for surfaces that
93
+ // need the least emphasis against the main surface color.
114
94
  .mat-bg-surface-container-lowest {
115
95
  background-color: var(--mat-sys-surface-container-lowest);
116
- color: var(--mat-sys-on-surface);
117
96
  }
118
97
 
119
- // Styles an element with an inverse surface color background and applies an accessible
120
- // contrasting color for text and icons. Use for making elements stand out against the
121
- // default color scheme. Good for temporary notifications. In Angular Material, this is used for
122
- // the background of a snackbar and a tooltip.
98
+ // Styles an element with an inverse surface color background. Use for making elements stand out
99
+ // against the default color scheme. Good for temporary notifications. In Angular Material, this
100
+ // is used for the background of a snackbar and a tooltip.
123
101
  .mat-bg-inverse-surface {
124
102
  background-color: var(--mat-sys-inverse-surface);
125
- color: var(--mat-sys-inverse-on-surface);
126
103
  }
127
104
 
128
- // Styles an element with a disabled color background and applies an accessible contrasting
129
- // color for text and icons. Use for disabled components. In Angular Material, this is used
130
- // for components generally filled with the primary color but are currently disabled.
105
+ // Styles an element with a disabled color background. Use for disabled components. In Angular
106
+ // Material, this is used for components generally filled with the primary color but are
107
+ // currently disabled.
131
108
  .mat-bg-disabled {
132
- color: color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent);
133
109
  background-color: color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent);
134
110
  }
135
111
 
136
112
 
137
113
  // ***********************************************************************************************
138
- // Text
114
+ // Text - Apply colors to text
139
115
  // ***********************************************************************************************
140
116
 
141
117
  // Styles the text of an element with the primary color. Use for text that needs to stand out.
@@ -144,8 +120,7 @@
144
120
  color: var(--mat-sys-primary);
145
121
  }
146
122
 
147
- // Styles the text of an element with the secondary color. Use for text that needs less emphasis
148
- // than primary text.
123
+ // Styles the text of an element with the secondary color. Use for text that needs to stand out.
149
124
  .mat-text-secondary {
150
125
  color: var(--mat-sys-secondary);
151
126
  }
@@ -157,14 +132,64 @@
157
132
  }
158
133
 
159
134
  // Styles the text of an element with the disabled color. Use for text in disabled components.
160
- // In Angular Material this is used to show text is disabled, generally on a "surface" background.
161
135
  .mat-text-disabled {
162
136
  color: color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent);
163
137
  }
164
138
 
139
+ // Styles the text of an element with the on-surface-variant color. Use for text that should have
140
+ // a lower emphasis than the surrounding text. This can include subheading, captions, and hint
141
+ // text.
142
+ .mat-text-on-surface-variant {
143
+ color: var(--mat-sys-on-surface-variant);
144
+ }
145
+
146
+ // Styles the text of an element with a color that contrasts well against a primary background.
147
+ .mat-text-on-primary {
148
+ color: var(--mat-sys-on-primary);
149
+ }
150
+
151
+ // Styles the text of an element with a color that contrasts well against a primary-container
152
+ // background.
153
+ .mat-text-on-primary-container {
154
+ color: var(--mat-sys-on-primary-container);
155
+ }
156
+
157
+ // Styles the text of an element with a color that contrasts well against a secondary background.
158
+ .mat-text-on-secondary {
159
+ color: var(--mat-sys-on-secondary);
160
+ }
161
+
162
+ // Styles the text of an element with a color that contrasts well against a secondary-container
163
+ // background.
164
+ .mat-text-on-secondary-container {
165
+ color: var(--mat-sys-on-secondary-container);
166
+ }
167
+
168
+ // Styles the text of an element with a color that contrasts well against an error background.
169
+ .mat-text-on-error {
170
+ color: var(--mat-sys-on-error);
171
+ }
172
+
173
+ // Styles the text of an element with a color that contrasts well against an error-container
174
+ // background.
175
+ .mat-text-on-error-container {
176
+ color: var(--mat-sys-on-error-container);
177
+ }
178
+
179
+ // Styles the text of an element with a color that contrasts well against a surface background.
180
+ .mat-text-on-surface {
181
+ color: var(--mat-sys-on-surface);
182
+ }
183
+
184
+ // Styles the text of an element with a color that contrasts well against an inverse-surface
185
+ // background.
186
+ .mat-text-inverse-on-surface {
187
+ color: var(--mat-sys-inverse-on-surface);
188
+ }
165
189
 
166
190
  // ***********************************************************************************************
167
- // Font
191
+ // Font - Apply typography styles
192
+ // See https://m3.material.io/styles/typography/applying-type for guidance.
168
193
  // ***********************************************************************************************
169
194
 
170
195
  // Sets the font to the body small typeface. Use for small body text, such as captions. In Angular
@@ -230,6 +255,26 @@
230
255
  letter-spacing: var(--mat-sys-headline-large-tracking);
231
256
  }
232
257
 
258
+ // Sets the font to the label small typeface. Use for small labels, such as text in a badge.
259
+ .mat-font-label-sm {
260
+ font: var(--mat-sys-label-small);
261
+ letter-spacing: var(--mat-sys-label-small-tracking);
262
+ }
263
+
264
+ // Sets the font to the label medium typeface. Use for medium labels. In Angular Material, this
265
+ // is used for the slider label.
266
+ .mat-font-label-md {
267
+ font: var(--mat-sys-label-medium);
268
+ letter-spacing: var(--mat-sys-label-medium-tracking);
269
+ }
270
+
271
+ // Sets the font to the label large typeface. Use for large labels. In Angular Material, this is
272
+ // used for buttons, chips, and menu labels.
273
+ .mat-font-label-lg {
274
+ font: var(--mat-sys-label-large);
275
+ letter-spacing: var(--mat-sys-label-large-tracking);
276
+ }
277
+
233
278
  // Sets the font to the title small typeface. Use for small titles, such as a card title. In
234
279
  // Angular Material, this is used for the header of a table and the label of an option group.
235
280
  .mat-font-title-sm {
@@ -255,50 +300,51 @@
255
300
 
256
301
 
257
302
  // ***********************************************************************************************
258
- // Corner
303
+ // Corner - Apply varying amounts of a border radius
304
+ // See https://m3.material.io/styles/shape/corner-radius-scale for guidance.
259
305
  // ***********************************************************************************************
260
306
 
261
307
  // Sets the border radius to extra small. Use for components that need a small amount of rounding,
262
308
  // such as a chip. In Angular Material, this is used for the shape of a snackbar and a tooltip.
263
- .mat-rounded-extra-sm {
309
+ .mat-corner-xs {
264
310
  border-radius: var(--mat-sys-corner-extra-small);
265
311
  }
266
312
 
267
313
  // Sets the border radius to small. Use for components that need a small amount of rounding, such
268
314
  // as a text field.
269
- .mat-rounded-sm {
315
+ .mat-corner-sm {
270
316
  border-radius: var(--mat-sys-corner-small);
271
317
  }
272
318
 
273
319
  // Sets the border radius to medium. Use for components that need a medium amount of rounding,
274
320
  // such as a button. In Angular Material, this is used for the shape of a card.
275
- .mat-rounded-md {
321
+ .mat-corner-md {
276
322
  border-radius: var(--mat-sys-corner-medium);
277
323
  }
278
324
 
279
325
  // Sets the border radius to large. Use for components that need a large amount of rounding, such
280
326
  // as a card. In Angular Material, this is used for the shape of a floating action button and a
281
327
  // datepicker.
282
- .mat-rounded-lg {
328
+ .mat-corner-lg {
283
329
  border-radius: var(--mat-sys-corner-large);
284
330
  }
285
331
 
286
332
  // Sets the border radius to extra large. Use for components that need a large amount of
287
333
  // rounding. In Angular Material, this is used for the shape of a button toggle and the shape of
288
334
  // a dialog.
289
- .mat-rounded-xl {
335
+ .mat-corner-xl {
290
336
  border-radius: var(--mat-sys-corner-extra-large);
291
337
  }
292
338
 
293
339
  // Sets the border radius to full. Use for components that are circular, such as a user avatar.
294
340
  // In Angular Material, this is used for the shape of a badge and the shape of a button.
295
- .mat-rounded-full {
341
+ .mat-corner-full {
296
342
  border-radius: var(--mat-sys-corner-full);
297
343
  }
298
344
 
299
345
 
300
346
  // ***********************************************************************************************
301
- // Border
347
+ // Border - Applies a 1px solid border
302
348
  // ***********************************************************************************************
303
349
 
304
350
  // Adds an outline to an element. Use for components that need a visible boundary. In Angular
@@ -314,70 +360,9 @@
314
360
  border: 1px solid var(--mat-sys-outline-variant);
315
361
  }
316
362
 
317
-
318
- // ***********************************************************************************************
319
- // State
320
- // ***********************************************************************************************
321
-
322
- // Adds hover, focus, and active states to an element by applying varying shades of the surface
323
- // color. Use for interactive components that are not based on a primary color.
324
- .mat-stateful {
325
- &:hover {
326
- background: color-mix(
327
- in srgb,
328
- var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%),
329
- transparent
330
- );
331
- }
332
-
333
- &:focus {
334
- background: color-mix(
335
- in srgb,
336
- var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%),
337
- transparent
338
- );
339
- }
340
-
341
- &:active {
342
- background: color-mix(
343
- in srgb,
344
- var(--mat-sys-on-surface) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%),
345
- transparent
346
- );
347
- }
348
- }
349
-
350
- // Adds hover, focus, and active states to an element by applying varying shades of the primary
351
- // color. Use for interactive components that are not based on a primary color.
352
- .mat-stateful-primary {
353
- &:hover {
354
- background: color-mix(
355
- in srgb,
356
- var(--mat-sys-primary) calc(var(--mat-sys-hover-state-layer-opacity) * 100%),
357
- transparent
358
- );
359
- }
360
-
361
- &:focus {
362
- background: color-mix(
363
- in srgb,
364
- var(--mat-sys-primary) calc(var(--mat-sys-focus-state-layer-opacity) * 100%),
365
- transparent
366
- );
367
- }
368
-
369
- &:active {
370
- background: color-mix(
371
- in srgb,
372
- var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%),
373
- transparent
374
- );
375
- }
376
- }
377
-
378
-
379
363
  // ***********************************************************************************************
380
- // Elevation
364
+ // Shadow - Applies elevation levels through box-shadow
365
+ // See https://m3.material.io/styles/elevation/applying-elevation for guidance.
381
366
  // ***********************************************************************************************
382
367
 
383
368
  // Use to slightly raise the appearance of a surface. In Angular Material, this is used for the
@@ -0,0 +1,11 @@
1
+ // Dark system color values that are google3-internal and diverge from the
2
+ // external Material Design spec.
3
+ @function values-dark($palettes) {
4
+ @return ();
5
+ }
6
+
7
+ // Light system color values that are google3-internal and diverge from the
8
+ // external Material Design spec.
9
+ @function values-light($palettes) {
10
+ @return ();
11
+ }
@@ -1,8 +1,9 @@
1
- @use 'sass:map';
2
1
  @use '../../m2/palette';
2
+ @use './md-sys-color-internal';
3
+ @use 'sass:map';
3
4
 
4
5
  @function md-sys-color-values-dark($palettes) {
5
- @return (
6
+ $values: (
6
7
  primary: map.get($palettes, primary, default),
7
8
  on-primary: map.get($palettes, primary, default-contrast),
8
9
  inverse-primary: map.get($palettes, primary, 600),
@@ -22,24 +23,24 @@
22
23
  inverse-on-surface: rgba(black, 0.87),
23
24
  outline: rgba(white, 0.12),
24
25
  outline-variant: rgba(white, 0.38),
25
- error-container: map.get($palettes, warn, default),
26
+ error-container: map.get($palettes, warn, 900),
26
27
  on-background: white,
27
- on-error-container: map.get($palettes, warn, default-contrast),
28
- on-primary-container: map.get($palettes, primary, default-contrast),
28
+ on-error-container: map.get($palettes, warn, 50),
29
+ on-primary-container: map.get($palettes, primary, 50),
29
30
  on-primary-fixed: map.get($palettes, primary, default-contrast),
30
31
  on-primary-fixed-variant: map.get($palettes, primary, default-contrast),
31
- on-secondary-container: map.get($palettes, accent, default-contrast),
32
+ on-secondary-container: map.get($palettes, accent, 50),
32
33
  on-secondary-fixed: map.get($palettes, accent, default-contrast),
33
34
  on-secondary-fixed-variant: map.get($palettes, accent, default-contrast),
34
35
  on-tertiary: map.get($palettes, accent, default-contrast),
35
- on-tertiary-container: map.get($palettes, accent, default-contrast),
36
+ on-tertiary-container: map.get($palettes, accent, 50),
36
37
  on-tertiary-fixed: map.get($palettes, accent, default-contrast),
37
38
  on-tertiary-fixed-variant: map.get($palettes, accent, default-contrast),
38
- primary-container: map.get($palettes, primary, default),
39
+ primary-container: map.get($palettes, primary, 900),
39
40
  primary-fixed: map.get($palettes, primary, default),
40
41
  primary-fixed-dim: map.get($palettes, primary, default),
41
42
  scrim: black,
42
- secondary-container: map.get($palettes, accent, default),
43
+ secondary-container: map.get($palettes, accent, 900),
43
44
  secondary-fixed: map.get($palettes, accent, default),
44
45
  secondary-fixed-dim: map.get($palettes, accent, default),
45
46
  surface-bright: map.get(palette.$grey-palette, 800),
@@ -51,14 +52,18 @@
51
52
  surface-dim: map.get(palette.$grey-palette, 800),
52
53
  surface-tint: map.get(palette.$grey-palette, 800),
53
54
  tertiary: map.get($palettes, accent, default),
54
- tertiary-container: map.get($palettes, accent, default),
55
+ tertiary-container: map.get($palettes, accent, 900),
55
56
  tertiary-fixed: map.get($palettes, accent, default),
56
57
  tertiary-fixed-dim: map.get($palettes, accent, default),
57
58
  );
59
+
60
+ $values: map.merge($values, md-sys-color-internal.values-dark($palettes));
61
+
62
+ @return $values;
58
63
  }
59
64
 
60
65
  @function md-sys-color-values-light($palettes) {
61
- @return (
66
+ $values: (
62
67
  primary: map.get($palettes, primary, default),
63
68
  on-primary: map.get($palettes, primary, default-contrast),
64
69
  inverse-primary: map.get($palettes, primary, 300),
@@ -78,24 +83,24 @@
78
83
  inverse-on-surface: white,
79
84
  outline: rgba(black, 0.12),
80
85
  outline-variant: rgba(black, 0.38),
81
- error-container: map.get($palettes, warn, default),
86
+ error-container: map.get($palettes, warn, 50),
82
87
  on-background: rgba(black, 0.87),
83
- on-error-container: map.get($palettes, warn, default-contrast),
84
- on-primary-container: map.get($palettes, primary, default-contrast),
88
+ on-error-container: map.get($palettes, warn, 700),
89
+ on-primary-container: map.get($palettes, primary, 700),
85
90
  on-primary-fixed: map.get($palettes, primary, default-contrast),
86
91
  on-primary-fixed-variant: map.get($palettes, primary, default-contrast),
87
- on-secondary-container: map.get($palettes, accent, default-contrast),
92
+ on-secondary-container: map.get($palettes, accent, 700),
88
93
  on-secondary-fixed: map.get($palettes, accent, default-contrast),
89
94
  on-secondary-fixed-variant: map.get($palettes, accent, default-contrast),
90
95
  on-tertiary: map.get($palettes, accent, default-contrast),
91
- on-tertiary-container: map.get($palettes, accent, default-contrast),
96
+ on-tertiary-container: map.get($palettes, accent, 700),
92
97
  on-tertiary-fixed: map.get($palettes, accent, default-contrast),
93
98
  on-tertiary-fixed-variant: map.get($palettes, accent, default-contrast),
94
- primary-container: map.get($palettes, primary, default),
99
+ primary-container: map.get($palettes, primary, 50),
95
100
  primary-fixed: map.get($palettes, primary, default),
96
101
  primary-fixed-dim: map.get($palettes, primary, default),
97
102
  scrim: black,
98
- secondary-container: map.get($palettes, accent, default),
103
+ secondary-container: map.get($palettes, accent, 50),
99
104
  secondary-fixed: map.get($palettes, accent, default),
100
105
  secondary-fixed-dim: map.get($palettes, accent, default),
101
106
  surface-bright: white,
@@ -107,8 +112,12 @@
107
112
  surface-dim: white,
108
113
  surface-tint: white,
109
114
  tertiary: map.get($palettes, accent, default),
110
- tertiary-container: map.get($palettes, accent, default),
115
+ tertiary-container: map.get($palettes, accent, 50),
111
116
  tertiary-fixed: map.get($palettes, accent, default),
112
117
  tertiary-fixed-dim: map.get($palettes, accent, default),
113
118
  );
119
+
120
+ $values: map.merge($values, md-sys-color-internal.values-light($palettes));
121
+
122
+ @return $values;
114
123
  }
@@ -0,0 +1,11 @@
1
+ // Dark system color values that are internal-only and diverge from the
2
+ // external Material Design spec.
3
+ @function values-dark($palettes) {
4
+ @return ();
5
+ }
6
+
7
+ // Light system color values that are internal-only and diverge from the
8
+ // external Material Design spec.
9
+ @function values-light($palettes) {
10
+ @return ();
11
+ }