@angular/material 19.0.0-next.1 → 19.0.0-next.3

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 (642) hide show
  1. package/_index.scss +3 -4
  2. package/button/_button-base.scss +2 -2
  3. package/button/index.d.ts +2 -10
  4. package/checkbox/_checkbox-common.scss +4 -4
  5. package/checkbox/index.d.ts +0 -7
  6. package/chips/index.d.ts +1 -10
  7. package/core/_core.scss +1 -7
  8. package/core/focus-indicators/_private.scss +21 -82
  9. package/core/index.d.ts +10 -167
  10. package/core/ripple/_ripple.scss +1 -1
  11. package/core/style/_elevation.scss +1 -1
  12. package/core/style/_menu-common.scss +1 -1
  13. package/core/style/_sass-utils.scss +4 -0
  14. package/core/theming/_palettes.scss +132 -45
  15. package/core/tokens/_m3-system.scss +93 -20
  16. package/core/tokens/m3/definitions/_md-sys-color.scss +6 -6
  17. package/core/tokens/m3/mat/_sidenav.scss +0 -1
  18. package/fesm2022/autocomplete.mjs +14 -14
  19. package/fesm2022/autocomplete.mjs.map +1 -1
  20. package/fesm2022/badge.mjs +11 -11
  21. package/fesm2022/badge.mjs.map +1 -1
  22. package/fesm2022/bottom-sheet.mjs +11 -11
  23. package/fesm2022/bottom-sheet.mjs.map +1 -1
  24. package/fesm2022/button-toggle.mjs +11 -11
  25. package/fesm2022/button-toggle.mjs.map +1 -1
  26. package/fesm2022/button.mjs +42 -53
  27. package/fesm2022/button.mjs.map +1 -1
  28. package/fesm2022/card.mjs +46 -46
  29. package/fesm2022/checkbox.mjs +16 -19
  30. package/fesm2022/checkbox.mjs.map +1 -1
  31. package/fesm2022/chips.mjs +46 -57
  32. package/fesm2022/chips.mjs.map +1 -1
  33. package/fesm2022/core.mjs +122 -256
  34. package/fesm2022/core.mjs.map +1 -1
  35. package/fesm2022/datepicker.mjs +87 -87
  36. package/fesm2022/datepicker.mjs.map +1 -1
  37. package/fesm2022/dialog.mjs +26 -26
  38. package/fesm2022/dialog.mjs.map +1 -1
  39. package/fesm2022/divider.mjs +7 -7
  40. package/fesm2022/expansion.mjs +28 -28
  41. package/fesm2022/expansion.mjs.map +1 -1
  42. package/fesm2022/form-field.mjs +36 -36
  43. package/fesm2022/form-field.mjs.map +1 -1
  44. package/fesm2022/grid-list.mjs +22 -22
  45. package/fesm2022/icon/testing.mjs +7 -7
  46. package/fesm2022/icon.mjs +10 -10
  47. package/fesm2022/input.mjs +7 -7
  48. package/fesm2022/list.mjs +59 -59
  49. package/fesm2022/list.mjs.map +1 -1
  50. package/fesm2022/menu.mjs +18 -18
  51. package/fesm2022/menu.mjs.map +1 -1
  52. package/fesm2022/paginator.mjs +11 -11
  53. package/fesm2022/paginator.mjs.map +1 -1
  54. package/fesm2022/progress-bar.mjs +8 -8
  55. package/fesm2022/progress-bar.mjs.map +1 -1
  56. package/fesm2022/progress-spinner.mjs +8 -8
  57. package/fesm2022/progress-spinner.mjs.map +1 -1
  58. package/fesm2022/radio.mjs +11 -11
  59. package/fesm2022/radio.mjs.map +1 -1
  60. package/fesm2022/select.mjs +12 -12
  61. package/fesm2022/select.mjs.map +1 -1
  62. package/fesm2022/sidenav.mjs +26 -26
  63. package/fesm2022/sidenav.mjs.map +1 -1
  64. package/fesm2022/slide-toggle.mjs +16 -16
  65. package/fesm2022/slide-toggle.mjs.map +1 -1
  66. package/fesm2022/slider.mjs +18 -18
  67. package/fesm2022/slider.mjs.map +1 -1
  68. package/fesm2022/snack-bar.mjs +23 -23
  69. package/fesm2022/snack-bar.mjs.map +1 -1
  70. package/fesm2022/sort.mjs +14 -14
  71. package/fesm2022/sort.mjs.map +1 -1
  72. package/fesm2022/stepper.mjs +33 -33
  73. package/fesm2022/stepper.mjs.map +1 -1
  74. package/fesm2022/table.mjs +57 -57
  75. package/fesm2022/table.mjs.map +1 -1
  76. package/fesm2022/tabs.mjs +48 -48
  77. package/fesm2022/tabs.mjs.map +1 -1
  78. package/fesm2022/toolbar.mjs +11 -11
  79. package/fesm2022/toolbar.mjs.map +1 -1
  80. package/fesm2022/tooltip.mjs +26 -17
  81. package/fesm2022/tooltip.mjs.map +1 -1
  82. package/fesm2022/tree.mjs +25 -25
  83. package/form-field/_form-field-high-contrast.scss +4 -4
  84. package/form-field/_mdc-text-field-structure.scss +2 -2
  85. package/list/_list-inherited-structure.scss +1 -1
  86. package/list/_list-item-hcm-indicator.scss +1 -1
  87. package/package.json +2 -146
  88. package/prebuilt-themes/azure-blue.css +1 -1
  89. package/prebuilt-themes/cyan-orange.css +1 -1
  90. package/prebuilt-themes/deeppurple-amber.css +1 -1
  91. package/prebuilt-themes/indigo-pink.css +1 -1
  92. package/prebuilt-themes/magenta-violet.css +1 -1
  93. package/prebuilt-themes/pink-bluegrey.css +1 -1
  94. package/prebuilt-themes/purple-green.css +1 -1
  95. package/prebuilt-themes/rose-red.css +1 -1
  96. package/schematics/ng-add/index.js +1 -1
  97. package/schematics/ng-add/index.mjs +1 -1
  98. package/schematics/ng-generate/m3-theme/index_bundled.js +2 -2
  99. package/schematics/ng-update/index_bundled.js +27 -27
  100. package/tabs/_tabs-common.scss +2 -2
  101. package/tree/index.d.ts +2 -2
  102. package/core/focus-indicators/_focus-indicators-theme.scss +0 -11
  103. package/core/focus-indicators/_focus-indicators.scss +0 -6
  104. package/esm2022/autocomplete/animations.mjs +0 -24
  105. package/esm2022/autocomplete/autocomplete-origin.mjs +0 -31
  106. package/esm2022/autocomplete/autocomplete-trigger.mjs +0 -902
  107. package/esm2022/autocomplete/autocomplete.mjs +0 -238
  108. package/esm2022/autocomplete/autocomplete_public_index.mjs +0 -5
  109. package/esm2022/autocomplete/index.mjs +0 -9
  110. package/esm2022/autocomplete/module.mjs +0 -61
  111. package/esm2022/autocomplete/public-api.mjs +0 -14
  112. package/esm2022/autocomplete/testing/autocomplete-harness-filters.mjs +0 -9
  113. package/esm2022/autocomplete/testing/autocomplete-harness.mjs +0 -105
  114. package/esm2022/autocomplete/testing/index.mjs +0 -9
  115. package/esm2022/autocomplete/testing/public-api.mjs +0 -10
  116. package/esm2022/badge/badge-module.mjs +0 -27
  117. package/esm2022/badge/badge.mjs +0 -288
  118. package/esm2022/badge/badge_public_index.mjs +0 -5
  119. package/esm2022/badge/index.mjs +0 -9
  120. package/esm2022/badge/public-api.mjs +0 -10
  121. package/esm2022/badge/testing/badge-harness-filters.mjs +0 -9
  122. package/esm2022/badge/testing/badge-harness.mjs +0 -71
  123. package/esm2022/badge/testing/index.mjs +0 -9
  124. package/esm2022/badge/testing/public-api.mjs +0 -10
  125. package/esm2022/bottom-sheet/bottom-sheet-animations.mjs +0 -26
  126. package/esm2022/bottom-sheet/bottom-sheet-config.mjs +0 -48
  127. package/esm2022/bottom-sheet/bottom-sheet-container.mjs +0 -85
  128. package/esm2022/bottom-sheet/bottom-sheet-module.mjs +0 -28
  129. package/esm2022/bottom-sheet/bottom-sheet-ref.mjs +0 -104
  130. package/esm2022/bottom-sheet/bottom-sheet.mjs +0 -115
  131. package/esm2022/bottom-sheet/bottom-sheet_public_index.mjs +0 -5
  132. package/esm2022/bottom-sheet/index.mjs +0 -9
  133. package/esm2022/bottom-sheet/public-api.mjs +0 -14
  134. package/esm2022/bottom-sheet/testing/bottom-sheet-harness-filters.mjs +0 -9
  135. package/esm2022/bottom-sheet/testing/bottom-sheet-harness.mjs +0 -35
  136. package/esm2022/bottom-sheet/testing/index.mjs +0 -9
  137. package/esm2022/bottom-sheet/testing/public-api.mjs +0 -10
  138. package/esm2022/button/button-base.mjs +0 -230
  139. package/esm2022/button/button.mjs +0 -67
  140. package/esm2022/button/button_public_index.mjs +0 -5
  141. package/esm2022/button/fab.mjs +0 -166
  142. package/esm2022/button/icon-button.mjs +0 -56
  143. package/esm2022/button/index.mjs +0 -9
  144. package/esm2022/button/module.mjs +0 -65
  145. package/esm2022/button/public-api.mjs +0 -13
  146. package/esm2022/button/testing/button-harness-filters.mjs +0 -9
  147. package/esm2022/button/testing/button-harness.mjs +0 -80
  148. package/esm2022/button/testing/index.mjs +0 -9
  149. package/esm2022/button/testing/public-api.mjs +0 -10
  150. package/esm2022/button-toggle/button-toggle-module.mjs +0 -24
  151. package/esm2022/button-toggle/button-toggle.mjs +0 -651
  152. package/esm2022/button-toggle/button-toggle_public_index.mjs +0 -5
  153. package/esm2022/button-toggle/index.mjs +0 -9
  154. package/esm2022/button-toggle/public-api.mjs +0 -10
  155. package/esm2022/button-toggle/testing/button-toggle-group-harness-filters.mjs +0 -9
  156. package/esm2022/button-toggle/testing/button-toggle-group-harness.mjs +0 -47
  157. package/esm2022/button-toggle/testing/button-toggle-harness-filters.mjs +0 -9
  158. package/esm2022/button-toggle/testing/button-toggle-harness.mjs +0 -105
  159. package/esm2022/button-toggle/testing/index.mjs +0 -9
  160. package/esm2022/button-toggle/testing/public-api.mjs +0 -12
  161. package/esm2022/card/card.mjs +0 -273
  162. package/esm2022/card/card_public_index.mjs +0 -5
  163. package/esm2022/card/index.mjs +0 -9
  164. package/esm2022/card/module.mjs +0 -67
  165. package/esm2022/card/public-api.mjs +0 -10
  166. package/esm2022/card/testing/card-harness-filters.mjs +0 -9
  167. package/esm2022/card/testing/card-harness.mjs +0 -50
  168. package/esm2022/card/testing/index.mjs +0 -9
  169. package/esm2022/card/testing/public-api.mjs +0 -10
  170. package/esm2022/checkbox/checkbox-config.mjs +0 -22
  171. package/esm2022/checkbox/checkbox-required-validator.mjs +0 -41
  172. package/esm2022/checkbox/checkbox.mjs +0 -443
  173. package/esm2022/checkbox/checkbox_public_index.mjs +0 -5
  174. package/esm2022/checkbox/index.mjs +0 -9
  175. package/esm2022/checkbox/module.mjs +0 -41
  176. package/esm2022/checkbox/public-api.mjs +0 -12
  177. package/esm2022/checkbox/testing/checkbox-harness-filters.mjs +0 -9
  178. package/esm2022/checkbox/testing/checkbox-harness.mjs +0 -138
  179. package/esm2022/checkbox/testing/index.mjs +0 -9
  180. package/esm2022/checkbox/testing/public-api.mjs +0 -9
  181. package/esm2022/chips/chip-action.mjs +0 -113
  182. package/esm2022/chips/chip-edit-input.mjs +0 -61
  183. package/esm2022/chips/chip-grid.mjs +0 -420
  184. package/esm2022/chips/chip-icons.mjs +0 -107
  185. package/esm2022/chips/chip-input.mjs +0 -192
  186. package/esm2022/chips/chip-listbox.mjs +0 -369
  187. package/esm2022/chips/chip-option.mjs +0 -190
  188. package/esm2022/chips/chip-row.mjs +0 -173
  189. package/esm2022/chips/chip-set.mjs +0 -283
  190. package/esm2022/chips/chip-text-control.mjs +0 -9
  191. package/esm2022/chips/chip.mjs +0 -322
  192. package/esm2022/chips/chips_public_index.mjs +0 -5
  193. package/esm2022/chips/index.mjs +0 -9
  194. package/esm2022/chips/module.mjs +0 -85
  195. package/esm2022/chips/public-api.mjs +0 -20
  196. package/esm2022/chips/testing/chip-avatar-harness.mjs +0 -22
  197. package/esm2022/chips/testing/chip-edit-input-harness.mjs +0 -33
  198. package/esm2022/chips/testing/chip-grid-harness.mjs +0 -45
  199. package/esm2022/chips/testing/chip-harness-filters.mjs +0 -9
  200. package/esm2022/chips/testing/chip-harness.mjs +0 -62
  201. package/esm2022/chips/testing/chip-input-harness.mjs +0 -85
  202. package/esm2022/chips/testing/chip-listbox-harness.mjs +0 -61
  203. package/esm2022/chips/testing/chip-option-harness.mjs +0 -45
  204. package/esm2022/chips/testing/chip-remove-harness.mjs +0 -26
  205. package/esm2022/chips/testing/chip-row-harness.mjs +0 -40
  206. package/esm2022/chips/testing/chip-set-harness.mjs +0 -26
  207. package/esm2022/chips/testing/index.mjs +0 -9
  208. package/esm2022/chips/testing/public-api.mjs +0 -19
  209. package/esm2022/chips/tokens.mjs +0 -39
  210. package/esm2022/core/animation/animation.mjs +0 -21
  211. package/esm2022/core/common-behaviors/color.mjs +0 -33
  212. package/esm2022/core/common-behaviors/common-module.mjs +0 -127
  213. package/esm2022/core/common-behaviors/constructor.mjs +0 -9
  214. package/esm2022/core/common-behaviors/disable-ripple.mjs +0 -24
  215. package/esm2022/core/common-behaviors/disabled.mjs +0 -23
  216. package/esm2022/core/common-behaviors/error-state.mjs +0 -66
  217. package/esm2022/core/common-behaviors/index.mjs +0 -15
  218. package/esm2022/core/common-behaviors/initialized.mjs +0 -62
  219. package/esm2022/core/common-behaviors/tabindex.mjs +0 -25
  220. package/esm2022/core/core_public_index.mjs +0 -5
  221. package/esm2022/core/datetime/date-adapter.mjs +0 -109
  222. package/esm2022/core/datetime/date-formats.mjs +0 -10
  223. package/esm2022/core/datetime/index.mjs +0 -46
  224. package/esm2022/core/datetime/native-date-adapter.mjs +0 -221
  225. package/esm2022/core/datetime/native-date-formats.mjs +0 -19
  226. package/esm2022/core/error/error-options.mjs +0 -33
  227. package/esm2022/core/index.mjs +0 -9
  228. package/esm2022/core/internal-form-field/internal-form-field.mjs +0 -29
  229. package/esm2022/core/line/line.mjs +0 -64
  230. package/esm2022/core/option/index.mjs +0 -30
  231. package/esm2022/core/option/optgroup.mjs +0 -71
  232. package/esm2022/core/option/option-parent.mjs +0 -13
  233. package/esm2022/core/option/option.mjs +0 -283
  234. package/esm2022/core/private/index.mjs +0 -9
  235. package/esm2022/core/private/ripple-loader.mjs +0 -160
  236. package/esm2022/core/public-api.mjs +0 -19
  237. package/esm2022/core/ripple/index.mjs +0 -27
  238. package/esm2022/core/ripple/ripple-event-manager.mjs +0 -69
  239. package/esm2022/core/ripple/ripple-ref.mjs +0 -39
  240. package/esm2022/core/ripple/ripple-renderer.mjs +0 -354
  241. package/esm2022/core/ripple/ripple.mjs +0 -156
  242. package/esm2022/core/selection/index.mjs +0 -10
  243. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +0 -24
  244. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +0 -62
  245. package/esm2022/core/testing/index.mjs +0 -9
  246. package/esm2022/core/testing/optgroup-harness-filters.mjs +0 -9
  247. package/esm2022/core/testing/optgroup-harness.mjs +0 -43
  248. package/esm2022/core/testing/option-harness-filters.mjs +0 -9
  249. package/esm2022/core/testing/option-harness.mjs +0 -53
  250. package/esm2022/core/testing/public-api.mjs +0 -12
  251. package/esm2022/core/version.mjs +0 -11
  252. package/esm2022/datepicker/aria-accessible-name.mjs +0 -159
  253. package/esm2022/datepicker/calendar-body.mjs +0 -509
  254. package/esm2022/datepicker/calendar.mjs +0 -426
  255. package/esm2022/datepicker/date-range-input-parts.mjs +0 -372
  256. package/esm2022/datepicker/date-range-input.mjs +0 -369
  257. package/esm2022/datepicker/date-range-picker.mjs +0 -51
  258. package/esm2022/datepicker/date-range-selection-strategy.mjs +0 -97
  259. package/esm2022/datepicker/date-selection-model.mjs +0 -188
  260. package/esm2022/datepicker/datepicker-actions.mjs +0 -91
  261. package/esm2022/datepicker/datepicker-animations.mjs +0 -35
  262. package/esm2022/datepicker/datepicker-base.mjs +0 -609
  263. package/esm2022/datepicker/datepicker-errors.mjs +0 -14
  264. package/esm2022/datepicker/datepicker-input-base.mjs +0 -311
  265. package/esm2022/datepicker/datepicker-input.mjs +0 -200
  266. package/esm2022/datepicker/datepicker-intl.mjs +0 -69
  267. package/esm2022/datepicker/datepicker-module.mjs +0 -138
  268. package/esm2022/datepicker/datepicker-toggle.mjs +0 -113
  269. package/esm2022/datepicker/datepicker.mjs +0 -38
  270. package/esm2022/datepicker/datepicker_public_index.mjs +0 -5
  271. package/esm2022/datepicker/index.mjs +0 -9
  272. package/esm2022/datepicker/month-view.mjs +0 -460
  273. package/esm2022/datepicker/multi-year-view.mjs +0 -330
  274. package/esm2022/datepicker/public-api.mjs +0 -27
  275. package/esm2022/datepicker/testing/calendar-cell-harness.mjs +0 -138
  276. package/esm2022/datepicker/testing/calendar-harness.mjs +0 -83
  277. package/esm2022/datepicker/testing/date-range-input-harness.mjs +0 -98
  278. package/esm2022/datepicker/testing/datepicker-harness-filters.mjs +0 -9
  279. package/esm2022/datepicker/testing/datepicker-input-harness-base.mjs +0 -81
  280. package/esm2022/datepicker/testing/datepicker-input-harness.mjs +0 -58
  281. package/esm2022/datepicker/testing/datepicker-toggle-harness.mjs +0 -41
  282. package/esm2022/datepicker/testing/datepicker-trigger-harness-base.mjs +0 -65
  283. package/esm2022/datepicker/testing/index.mjs +0 -9
  284. package/esm2022/datepicker/testing/public-api.mjs +0 -14
  285. package/esm2022/datepicker/year-view.mjs +0 -324
  286. package/esm2022/dialog/dialog-animations.mjs +0 -38
  287. package/esm2022/dialog/dialog-config.mjs +0 -59
  288. package/esm2022/dialog/dialog-container.mjs +0 -253
  289. package/esm2022/dialog/dialog-content-directives.mjs +0 -212
  290. package/esm2022/dialog/dialog-ref.mjs +0 -177
  291. package/esm2022/dialog/dialog.mjs +0 -212
  292. package/esm2022/dialog/dialog_public_index.mjs +0 -5
  293. package/esm2022/dialog/index.mjs +0 -9
  294. package/esm2022/dialog/module.mjs +0 -45
  295. package/esm2022/dialog/public-api.mjs +0 -15
  296. package/esm2022/dialog/testing/dialog-harness-filters.mjs +0 -9
  297. package/esm2022/dialog/testing/dialog-harness.mjs +0 -84
  298. package/esm2022/dialog/testing/dialog-opener.mjs +0 -58
  299. package/esm2022/dialog/testing/index.mjs +0 -10
  300. package/esm2022/dialog/testing/public-api.mjs +0 -10
  301. package/esm2022/divider/divider-module.mjs +0 -24
  302. package/esm2022/divider/divider.mjs +0 -48
  303. package/esm2022/divider/divider_public_index.mjs +0 -5
  304. package/esm2022/divider/index.mjs +0 -9
  305. package/esm2022/divider/public-api.mjs +0 -10
  306. package/esm2022/divider/testing/divider-harness-filters.mjs +0 -9
  307. package/esm2022/divider/testing/divider-harness.mjs +0 -22
  308. package/esm2022/divider/testing/index.mjs +0 -9
  309. package/esm2022/divider/testing/public-api.mjs +0 -10
  310. package/esm2022/expansion/accordion-base.mjs +0 -14
  311. package/esm2022/expansion/accordion.mjs +0 -96
  312. package/esm2022/expansion/expansion-animations.mjs +0 -51
  313. package/esm2022/expansion/expansion-module.mjs +0 -65
  314. package/esm2022/expansion/expansion-panel-base.mjs +0 -14
  315. package/esm2022/expansion/expansion-panel-content.mjs +0 -35
  316. package/esm2022/expansion/expansion-panel-header.mjs +0 -218
  317. package/esm2022/expansion/expansion-panel.mjs +0 -211
  318. package/esm2022/expansion/expansion_public_index.mjs +0 -5
  319. package/esm2022/expansion/index.mjs +0 -9
  320. package/esm2022/expansion/public-api.mjs +0 -16
  321. package/esm2022/expansion/testing/accordion-harness.mjs +0 -31
  322. package/esm2022/expansion/testing/expansion-harness-filters.mjs +0 -9
  323. package/esm2022/expansion/testing/expansion-harness.mjs +0 -128
  324. package/esm2022/expansion/testing/index.mjs +0 -9
  325. package/esm2022/expansion/testing/public-api.mjs +0 -11
  326. package/esm2022/form-field/directives/error.mjs +0 -48
  327. package/esm2022/form-field/directives/floating-label.mjs +0 -135
  328. package/esm2022/form-field/directives/hint.mjs +0 -40
  329. package/esm2022/form-field/directives/label.mjs +0 -22
  330. package/esm2022/form-field/directives/line-ripple.mjs +0 -60
  331. package/esm2022/form-field/directives/notched-outline.mjs +0 -66
  332. package/esm2022/form-field/directives/prefix.mjs +0 -38
  333. package/esm2022/form-field/directives/suffix.mjs +0 -38
  334. package/esm2022/form-field/form-field-animations.mjs +0 -24
  335. package/esm2022/form-field/form-field-control.mjs +0 -11
  336. package/esm2022/form-field/form-field-errors.mjs +0 -20
  337. package/esm2022/form-field/form-field.mjs +0 -620
  338. package/esm2022/form-field/form-field_public_index.mjs +0 -5
  339. package/esm2022/form-field/index.mjs +0 -9
  340. package/esm2022/form-field/module.mjs +0 -51
  341. package/esm2022/form-field/public-api.mjs +0 -18
  342. package/esm2022/form-field/testing/control/form-field-control-harness.mjs +0 -15
  343. package/esm2022/form-field/testing/control/index.mjs +0 -9
  344. package/esm2022/form-field/testing/error-harness.mjs +0 -29
  345. package/esm2022/form-field/testing/form-field-harness-filters.mjs +0 -9
  346. package/esm2022/form-field/testing/form-field-harness.mjs +0 -179
  347. package/esm2022/form-field/testing/index.mjs +0 -9
  348. package/esm2022/form-field/testing/public-api.mjs +0 -15
  349. package/esm2022/grid-list/grid-list-base.mjs +0 -14
  350. package/esm2022/grid-list/grid-list-module.mjs +0 -59
  351. package/esm2022/grid-list/grid-list.mjs +0 -146
  352. package/esm2022/grid-list/grid-list_public_index.mjs +0 -5
  353. package/esm2022/grid-list/grid-tile.mjs +0 -128
  354. package/esm2022/grid-list/index.mjs +0 -9
  355. package/esm2022/grid-list/public-api.mjs +0 -14
  356. package/esm2022/grid-list/testing/grid-list-harness-filters.mjs +0 -9
  357. package/esm2022/grid-list/testing/grid-list-harness.mjs +0 -76
  358. package/esm2022/grid-list/testing/grid-tile-harness.mjs +0 -71
  359. package/esm2022/grid-list/testing/index.mjs +0 -9
  360. package/esm2022/grid-list/testing/public-api.mjs +0 -11
  361. package/esm2022/grid-list/tile-coordinator.mjs +0 -145
  362. package/esm2022/grid-list/tile-styler.mjs +0 -231
  363. package/esm2022/icon/fake-svgs.mjs +0 -62
  364. package/esm2022/icon/icon-module.mjs +0 -24
  365. package/esm2022/icon/icon-registry.mjs +0 -592
  366. package/esm2022/icon/icon.mjs +0 -379
  367. package/esm2022/icon/icon_public_index.mjs +0 -5
  368. package/esm2022/icon/index.mjs +0 -9
  369. package/esm2022/icon/public-api.mjs +0 -11
  370. package/esm2022/icon/testing/fake-icon-registry.mjs +0 -92
  371. package/esm2022/icon/testing/icon-harness-filters.mjs +0 -14
  372. package/esm2022/icon/testing/icon-harness.mjs +0 -60
  373. package/esm2022/icon/testing/index.mjs +0 -9
  374. package/esm2022/icon/testing/public-api.mjs +0 -11
  375. package/esm2022/icon/testing/testing_public_index.mjs +0 -5
  376. package/esm2022/icon/trusted-types.mjs +0 -43
  377. package/esm2022/index.mjs +0 -14
  378. package/esm2022/input/index.mjs +0 -9
  379. package/esm2022/input/input-errors.mjs +0 -12
  380. package/esm2022/input/input-value-accessor.mjs +0 -16
  381. package/esm2022/input/input.mjs +0 -524
  382. package/esm2022/input/input_public_index.mjs +0 -5
  383. package/esm2022/input/module.mjs +0 -26
  384. package/esm2022/input/public-api.mjs +0 -14
  385. package/esm2022/input/testing/index.mjs +0 -9
  386. package/esm2022/input/testing/input-harness-filters.mjs +0 -9
  387. package/esm2022/input/testing/input-harness.mjs +0 -119
  388. package/esm2022/input/testing/native-option-harness.mjs +0 -42
  389. package/esm2022/input/testing/native-select-harness-filters.mjs +0 -9
  390. package/esm2022/input/testing/native-select-harness.mjs +0 -79
  391. package/esm2022/input/testing/public-api.mjs +0 -13
  392. package/esm2022/list/action-list.mjs +0 -31
  393. package/esm2022/list/index.mjs +0 -9
  394. package/esm2022/list/list-base.mjs +0 -284
  395. package/esm2022/list/list-item-sections.mjs +0 -144
  396. package/esm2022/list/list-module.mjs +0 -97
  397. package/esm2022/list/list-option-types.mjs +0 -16
  398. package/esm2022/list/list-option.mjs +0 -295
  399. package/esm2022/list/list.mjs +0 -103
  400. package/esm2022/list/list_public_index.mjs +0 -5
  401. package/esm2022/list/nav-list.mjs +0 -37
  402. package/esm2022/list/public-api.mjs +0 -18
  403. package/esm2022/list/selection-list.mjs +0 -391
  404. package/esm2022/list/subheader.mjs +0 -28
  405. package/esm2022/list/testing/action-list-harness.mjs +0 -59
  406. package/esm2022/list/testing/index.mjs +0 -9
  407. package/esm2022/list/testing/list-harness-base.mjs +0 -95
  408. package/esm2022/list/testing/list-harness-filters.mjs +0 -9
  409. package/esm2022/list/testing/list-harness.mjs +0 -41
  410. package/esm2022/list/testing/list-item-harness-base.mjs +0 -162
  411. package/esm2022/list/testing/nav-list-harness.mjs +0 -69
  412. package/esm2022/list/testing/public-api.mjs +0 -14
  413. package/esm2022/list/testing/selection-list-harness.mjs +0 -122
  414. package/esm2022/list/tokens.mjs +0 -11
  415. package/esm2022/menu/index.mjs +0 -9
  416. package/esm2022/menu/menu-animations.mjs +0 -61
  417. package/esm2022/menu/menu-content.mjs +0 -87
  418. package/esm2022/menu/menu-errors.mjs +0 -35
  419. package/esm2022/menu/menu-item.mjs +0 -148
  420. package/esm2022/menu/menu-panel.mjs +0 -14
  421. package/esm2022/menu/menu-positions.mjs +0 -9
  422. package/esm2022/menu/menu-trigger.mjs +0 -542
  423. package/esm2022/menu/menu.mjs +0 -405
  424. package/esm2022/menu/menu_public_index.mjs +0 -5
  425. package/esm2022/menu/module.mjs +0 -63
  426. package/esm2022/menu/public-api.mjs +0 -16
  427. package/esm2022/menu/testing/index.mjs +0 -9
  428. package/esm2022/menu/testing/menu-harness-filters.mjs +0 -9
  429. package/esm2022/menu/testing/menu-harness.mjs +0 -166
  430. package/esm2022/menu/testing/public-api.mjs +0 -10
  431. package/esm2022/paginator/index.mjs +0 -9
  432. package/esm2022/paginator/module.mjs +0 -28
  433. package/esm2022/paginator/paginator-intl.mjs +0 -62
  434. package/esm2022/paginator/paginator.mjs +0 -266
  435. package/esm2022/paginator/paginator_public_index.mjs +0 -5
  436. package/esm2022/paginator/public-api.mjs +0 -11
  437. package/esm2022/paginator/testing/index.mjs +0 -9
  438. package/esm2022/paginator/testing/paginator-harness-filters.mjs +0 -9
  439. package/esm2022/paginator/testing/paginator-harness.mjs +0 -98
  440. package/esm2022/paginator/testing/public-api.mjs +0 -10
  441. package/esm2022/progress-bar/index.mjs +0 -9
  442. package/esm2022/progress-bar/module.mjs +0 -24
  443. package/esm2022/progress-bar/progress-bar.mjs +0 -181
  444. package/esm2022/progress-bar/progress-bar_public_index.mjs +0 -5
  445. package/esm2022/progress-bar/public-api.mjs +0 -10
  446. package/esm2022/progress-bar/testing/index.mjs +0 -9
  447. package/esm2022/progress-bar/testing/progress-bar-harness-filters.mjs +0 -9
  448. package/esm2022/progress-bar/testing/progress-bar-harness.mjs +0 -33
  449. package/esm2022/progress-bar/testing/public-api.mjs +0 -10
  450. package/esm2022/progress-bar/testing/testing_public_index.mjs +0 -5
  451. package/esm2022/progress-spinner/index.mjs +0 -9
  452. package/esm2022/progress-spinner/module.mjs +0 -25
  453. package/esm2022/progress-spinner/progress-spinner.mjs +0 -166
  454. package/esm2022/progress-spinner/progress-spinner_public_index.mjs +0 -5
  455. package/esm2022/progress-spinner/public-api.mjs +0 -10
  456. package/esm2022/progress-spinner/testing/index.mjs +0 -9
  457. package/esm2022/progress-spinner/testing/progress-spinner-harness-filters.mjs +0 -9
  458. package/esm2022/progress-spinner/testing/progress-spinner-harness.mjs +0 -35
  459. package/esm2022/progress-spinner/testing/public-api.mjs +0 -10
  460. package/esm2022/progress-spinner/testing/testing_public_index.mjs +0 -5
  461. package/esm2022/radio/index.mjs +0 -9
  462. package/esm2022/radio/module.mjs +0 -25
  463. package/esm2022/radio/public-api.mjs +0 -10
  464. package/esm2022/radio/radio.mjs +0 -680
  465. package/esm2022/radio/radio_public_index.mjs +0 -5
  466. package/esm2022/radio/testing/index.mjs +0 -9
  467. package/esm2022/radio/testing/public-api.mjs +0 -10
  468. package/esm2022/radio/testing/radio-harness-filters.mjs +0 -9
  469. package/esm2022/radio/testing/radio-harness.mjs +0 -228
  470. package/esm2022/select/index.mjs +0 -9
  471. package/esm2022/select/module.mjs +0 -59
  472. package/esm2022/select/public-api.mjs +0 -15
  473. package/esm2022/select/select-animations.mjs +0 -38
  474. package/esm2022/select/select-errors.mjs +0 -35
  475. package/esm2022/select/select.mjs +0 -1160
  476. package/esm2022/select/select_public_index.mjs +0 -5
  477. package/esm2022/select/testing/index.mjs +0 -9
  478. package/esm2022/select/testing/public-api.mjs +0 -10
  479. package/esm2022/select/testing/select-harness-filters.mjs +0 -9
  480. package/esm2022/select/testing/select-harness.mjs +0 -129
  481. package/esm2022/sidenav/drawer-animations.mjs +0 -33
  482. package/esm2022/sidenav/drawer.mjs +0 -863
  483. package/esm2022/sidenav/index.mjs +0 -9
  484. package/esm2022/sidenav/public-api.mjs +0 -12
  485. package/esm2022/sidenav/sidenav-module.mjs +0 -60
  486. package/esm2022/sidenav/sidenav.mjs +0 -148
  487. package/esm2022/sidenav/sidenav_public_index.mjs +0 -5
  488. package/esm2022/sidenav/testing/drawer-container-harness.mjs +0 -36
  489. package/esm2022/sidenav/testing/drawer-content-harness.mjs +0 -23
  490. package/esm2022/sidenav/testing/drawer-harness-filters.mjs +0 -9
  491. package/esm2022/sidenav/testing/drawer-harness.mjs +0 -49
  492. package/esm2022/sidenav/testing/index.mjs +0 -9
  493. package/esm2022/sidenav/testing/public-api.mjs +0 -15
  494. package/esm2022/sidenav/testing/sidenav-container-harness.mjs +0 -36
  495. package/esm2022/sidenav/testing/sidenav-content-harness.mjs +0 -23
  496. package/esm2022/sidenav/testing/sidenav-harness.mjs +0 -28
  497. package/esm2022/slide-toggle/index.mjs +0 -9
  498. package/esm2022/slide-toggle/module.mjs +0 -41
  499. package/esm2022/slide-toggle/public-api.mjs +0 -12
  500. package/esm2022/slide-toggle/slide-toggle-config.mjs +0 -14
  501. package/esm2022/slide-toggle/slide-toggle-required-validator.mjs +0 -44
  502. package/esm2022/slide-toggle/slide-toggle.mjs +0 -273
  503. package/esm2022/slide-toggle/slide-toggle_public_index.mjs +0 -5
  504. package/esm2022/slide-toggle/testing/index.mjs +0 -9
  505. package/esm2022/slide-toggle/testing/public-api.mjs +0 -10
  506. package/esm2022/slide-toggle/testing/slide-toggle-harness-filters.mjs +0 -9
  507. package/esm2022/slide-toggle/testing/slide-toggle-harness.mjs +0 -110
  508. package/esm2022/slider/index.mjs +0 -9
  509. package/esm2022/slider/module.mjs +0 -39
  510. package/esm2022/slider/public-api.mjs +0 -13
  511. package/esm2022/slider/slider-input.mjs +0 -701
  512. package/esm2022/slider/slider-interface.mjs +0 -56
  513. package/esm2022/slider/slider-thumb.mjs +0 -231
  514. package/esm2022/slider/slider.mjs +0 -746
  515. package/esm2022/slider/slider_public_index.mjs +0 -5
  516. package/esm2022/slider/testing/index.mjs +0 -9
  517. package/esm2022/slider/testing/public-api.mjs +0 -11
  518. package/esm2022/slider/testing/slider-harness-filters.mjs +0 -7
  519. package/esm2022/slider/testing/slider-harness.mjs +0 -67
  520. package/esm2022/slider/testing/slider-thumb-harness.mjs +0 -95
  521. package/esm2022/snack-bar/index.mjs +0 -9
  522. package/esm2022/snack-bar/module.mjs +0 -47
  523. package/esm2022/snack-bar/public-api.mjs +0 -16
  524. package/esm2022/snack-bar/simple-snack-bar.mjs +0 -40
  525. package/esm2022/snack-bar/snack-bar-animations.mjs +0 -30
  526. package/esm2022/snack-bar/snack-bar-config.mjs +0 -33
  527. package/esm2022/snack-bar/snack-bar-container.mjs +0 -277
  528. package/esm2022/snack-bar/snack-bar-content.mjs +0 -55
  529. package/esm2022/snack-bar/snack-bar-ref.mjs +0 -89
  530. package/esm2022/snack-bar/snack-bar.mjs +0 -267
  531. package/esm2022/snack-bar/snack-bar_public_index.mjs +0 -5
  532. package/esm2022/snack-bar/testing/index.mjs +0 -9
  533. package/esm2022/snack-bar/testing/public-api.mjs +0 -10
  534. package/esm2022/snack-bar/testing/snack-bar-harness-filters.mjs +0 -9
  535. package/esm2022/snack-bar/testing/snack-bar-harness.mjs +0 -101
  536. package/esm2022/sort/index.mjs +0 -9
  537. package/esm2022/sort/public-api.mjs +0 -14
  538. package/esm2022/sort/sort-animations.mjs +0 -69
  539. package/esm2022/sort/sort-direction.mjs +0 -9
  540. package/esm2022/sort/sort-errors.mjs +0 -24
  541. package/esm2022/sort/sort-header-intl.mjs +0 -41
  542. package/esm2022/sort/sort-header.mjs +0 -317
  543. package/esm2022/sort/sort-module.mjs +0 -27
  544. package/esm2022/sort/sort.mjs +0 -155
  545. package/esm2022/sort/sort_public_index.mjs +0 -5
  546. package/esm2022/sort/testing/index.mjs +0 -9
  547. package/esm2022/sort/testing/public-api.mjs +0 -11
  548. package/esm2022/sort/testing/sort-harness-filters.mjs +0 -2
  549. package/esm2022/sort/testing/sort-harness.mjs +0 -36
  550. package/esm2022/sort/testing/sort-header-harness.mjs +0 -56
  551. package/esm2022/stepper/index.mjs +0 -9
  552. package/esm2022/stepper/public-api.mjs +0 -17
  553. package/esm2022/stepper/step-content.mjs +0 -27
  554. package/esm2022/stepper/step-header.mjs +0 -105
  555. package/esm2022/stepper/step-label.mjs +0 -22
  556. package/esm2022/stepper/stepper-animations.mjs +0 -47
  557. package/esm2022/stepper/stepper-button.mjs +0 -43
  558. package/esm2022/stepper/stepper-icon.mjs +0 -30
  559. package/esm2022/stepper/stepper-intl.mjs +0 -43
  560. package/esm2022/stepper/stepper-module.mjs +0 -88
  561. package/esm2022/stepper/stepper.mjs +0 -205
  562. package/esm2022/stepper/stepper_public_index.mjs +0 -5
  563. package/esm2022/stepper/testing/index.mjs +0 -9
  564. package/esm2022/stepper/testing/public-api.mjs +0 -12
  565. package/esm2022/stepper/testing/step-harness-filters.mjs +0 -7
  566. package/esm2022/stepper/testing/step-harness.mjs +0 -90
  567. package/esm2022/stepper/testing/stepper-button-harnesses.mjs +0 -48
  568. package/esm2022/stepper/testing/stepper-harness.mjs +0 -51
  569. package/esm2022/table/cell.mjs +0 -147
  570. package/esm2022/table/index.mjs +0 -9
  571. package/esm2022/table/module.mjs +0 -93
  572. package/esm2022/table/public-api.mjs +0 -14
  573. package/esm2022/table/row.mjs +0 -163
  574. package/esm2022/table/table-data-source.mjs +0 -317
  575. package/esm2022/table/table.mjs +0 -122
  576. package/esm2022/table/table_public_index.mjs +0 -5
  577. package/esm2022/table/testing/cell-harness.mjs +0 -77
  578. package/esm2022/table/testing/index.mjs +0 -9
  579. package/esm2022/table/testing/public-api.mjs +0 -12
  580. package/esm2022/table/testing/row-harness.mjs +0 -84
  581. package/esm2022/table/testing/table-harness-filters.mjs +0 -2
  582. package/esm2022/table/testing/table-harness.mjs +0 -86
  583. package/esm2022/table/text-column.mjs +0 -60
  584. package/esm2022/tabs/index.mjs +0 -9
  585. package/esm2022/tabs/ink-bar.mjs +0 -149
  586. package/esm2022/tabs/module.mjs +0 -60
  587. package/esm2022/tabs/paginated-tab-header.mjs +0 -539
  588. package/esm2022/tabs/public-api.mjs +0 -21
  589. package/esm2022/tabs/tab-body.mjs +0 -199
  590. package/esm2022/tabs/tab-config.mjs +0 -11
  591. package/esm2022/tabs/tab-content.mjs +0 -32
  592. package/esm2022/tabs/tab-group.mjs +0 -469
  593. package/esm2022/tabs/tab-header.mjs +0 -86
  594. package/esm2022/tabs/tab-label-wrapper.mjs +0 -49
  595. package/esm2022/tabs/tab-label.mjs +0 -44
  596. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +0 -388
  597. package/esm2022/tabs/tab.mjs +0 -128
  598. package/esm2022/tabs/tabs-animations.mjs +0 -45
  599. package/esm2022/tabs/tabs_public_index.mjs +0 -5
  600. package/esm2022/tabs/testing/index.mjs +0 -9
  601. package/esm2022/tabs/testing/public-api.mjs +0 -13
  602. package/esm2022/tabs/testing/tab-group-harness.mjs +0 -56
  603. package/esm2022/tabs/testing/tab-harness-filters.mjs +0 -2
  604. package/esm2022/tabs/testing/tab-harness.mjs +0 -66
  605. package/esm2022/tabs/testing/tab-link-harness.mjs +0 -40
  606. package/esm2022/tabs/testing/tab-nav-bar-harness.mjs +0 -66
  607. package/esm2022/tabs/testing/tab-nav-panel-harness.mjs +0 -27
  608. package/esm2022/toolbar/index.mjs +0 -9
  609. package/esm2022/toolbar/public-api.mjs +0 -10
  610. package/esm2022/toolbar/testing/index.mjs +0 -9
  611. package/esm2022/toolbar/testing/public-api.mjs +0 -10
  612. package/esm2022/toolbar/testing/toolbar-harness-filters.mjs +0 -9
  613. package/esm2022/toolbar/testing/toolbar-harness.mjs +0 -44
  614. package/esm2022/toolbar/toolbar-module.mjs +0 -24
  615. package/esm2022/toolbar/toolbar.mjs +0 -84
  616. package/esm2022/toolbar/toolbar_public_index.mjs +0 -5
  617. package/esm2022/tooltip/index.mjs +0 -9
  618. package/esm2022/tooltip/module.mjs +0 -29
  619. package/esm2022/tooltip/public-api.mjs +0 -11
  620. package/esm2022/tooltip/testing/index.mjs +0 -9
  621. package/esm2022/tooltip/testing/public-api.mjs +0 -10
  622. package/esm2022/tooltip/testing/tooltip-harness-filters.mjs +0 -9
  623. package/esm2022/tooltip/testing/tooltip-harness.mjs +0 -66
  624. package/esm2022/tooltip/tooltip-animations.mjs +0 -24
  625. package/esm2022/tooltip/tooltip.mjs +0 -920
  626. package/esm2022/tooltip/tooltip_public_index.mjs +0 -5
  627. package/esm2022/tree/data-source/flat-data-source.mjs +0 -156
  628. package/esm2022/tree/data-source/nested-data-source.mjs +0 -38
  629. package/esm2022/tree/index.mjs +0 -9
  630. package/esm2022/tree/node.mjs +0 -220
  631. package/esm2022/tree/outlet.mjs +0 -46
  632. package/esm2022/tree/padding.mjs +0 -46
  633. package/esm2022/tree/public-api.mjs +0 -16
  634. package/esm2022/tree/testing/index.mjs +0 -9
  635. package/esm2022/tree/testing/node-harness.mjs +0 -73
  636. package/esm2022/tree/testing/public-api.mjs +0 -11
  637. package/esm2022/tree/testing/tree-harness-filters.mjs +0 -9
  638. package/esm2022/tree/testing/tree-harness.mjs +0 -123
  639. package/esm2022/tree/toggle.mjs +0 -27
  640. package/esm2022/tree/tree-module.mjs +0 -50
  641. package/esm2022/tree/tree.mjs +0 -34
  642. package/esm2022/tree/tree_public_index.mjs +0 -5
@@ -1,33 +1,4 @@
1
- @use 'sass:color';
2
1
  @use 'sass:map';
3
- @use 'sass:math';
4
-
5
- /// Estimate a hue using the given previous and next hues.
6
- @function _estimate-hue($hues, $hue, $prev-hue, $next-hue) {
7
- $weight: math.div($next-hue - $hue, $next-hue - $prev-hue) * 100%;
8
- @return color.mix(map.get($hues, $prev-hue), map.get($hues, $next-hue), $weight);
9
- }
10
-
11
- // TODO(mmalerba): Remove this and add correct values for these hues.
12
- /// The Material Design spec references some neutral hues that are not generated by
13
- /// https://m3.material.io/theme-builder. For now we use this function to estimate the missing hues
14
- /// by blending the nearest hues that are generated.
15
- /// Note: when updating, the corresponding logic in the theme generation schematic should be
16
- /// updated as well. See `src/material/schematics/ng-generate/m3-theme/index.ts#patchMissingHues`
17
- @function _patch-missing-hues($palette) {
18
- $neutral: map.get($palette, neutral);
19
- $palette: map.set($palette, neutral, 4, _estimate-hue($neutral, 4, 0, 10));
20
- $palette: map.set($palette, neutral, 6, _estimate-hue($neutral, 6, 0, 10));
21
- $palette: map.set($palette, neutral, 12, _estimate-hue($neutral, 12, 10, 20));
22
- $palette: map.set($palette, neutral, 17, _estimate-hue($neutral, 17, 10, 20));
23
- $palette: map.set($palette, neutral, 22, _estimate-hue($neutral, 22, 20, 25));
24
- $palette: map.set($palette, neutral, 24, _estimate-hue($neutral, 24, 20, 25));
25
- $palette: map.set($palette, neutral, 87, _estimate-hue($neutral, 87, 80, 90));
26
- $palette: map.set($palette, neutral, 92, _estimate-hue($neutral, 92, 90, 95));
27
- $palette: map.set($palette, neutral, 94, _estimate-hue($neutral, 94, 90, 95));
28
- $palette: map.set($palette, neutral, 96, _estimate-hue($neutral, 96, 95, 98));
29
- @return $palette;
30
- }
31
2
 
32
3
  /// Adds the error colors to the given palette.
33
4
  @function _patch-error-palette($palette) {
@@ -56,12 +27,8 @@
56
27
  );
57
28
  }
58
29
 
59
- @function _apply-patches($palette) {
60
- @return _patch-missing-hues(_patch-error-palette($palette));
61
- }
62
-
63
30
  /// Red color palette to be used as primary or tertiary palette.
64
- $red-palette: _apply-patches((
31
+ $red-palette: _patch-error-palette((
65
32
  0: #000000,
66
33
  10: #410000,
67
34
  20: #690100,
@@ -113,6 +80,16 @@ $red-palette: _apply-patches((
113
80
  98: #fff8f6,
114
81
  99: #fffbff,
115
82
  100: #ffffff,
83
+ 4: #130d0c,
84
+ 6: #181211,
85
+ 12: #251e1d,
86
+ 17: #302828,
87
+ 22: #3b3332,
88
+ 24: #3f3737,
89
+ 87: #e4d7d6,
90
+ 92: #f3e5e4,
91
+ 94: #f9ebe9,
92
+ 96: #fef1ef,
116
93
  ),
117
94
  neutral-variant: (
118
95
  0: #000000,
@@ -135,7 +112,7 @@ $red-palette: _apply-patches((
135
112
  ));
136
113
 
137
114
  /// Green color palette to be used as primary or tertiary palette.
138
- $green-palette: _apply-patches((
115
+ $green-palette: _patch-error-palette((
139
116
  0: #000000,
140
117
  10: #002200,
141
118
  20: #013a00,
@@ -187,6 +164,16 @@ $green-palette: _apply-patches((
187
164
  98: #f9faf3,
188
165
  99: #fcfdf6,
189
166
  100: #ffffff,
167
+ 4: #0c0f0b,
168
+ 6: #121410,
169
+ 12: #1e201c,
170
+ 17: #282b26,
171
+ 22: #333531,
172
+ 24: #383a35,
173
+ 87: #dadbd3,
174
+ 92: #e8e9e1,
175
+ 94: #eeeee7,
176
+ 96: #f3f4ed,
190
177
  ),
191
178
  neutral-variant: (
192
179
  0: #000000,
@@ -209,7 +196,7 @@ $green-palette: _apply-patches((
209
196
  ));
210
197
 
211
198
  /// Blue color palette to be used as primary or tertiary palette.
212
- $blue-palette: _apply-patches((
199
+ $blue-palette: _patch-error-palette((
213
200
  0: #000000,
214
201
  10: #00006e,
215
202
  20: #0001ac,
@@ -261,6 +248,16 @@ $blue-palette: _apply-patches((
261
248
  98: #fcf8fd,
262
249
  99: #fffbff,
263
250
  100: #ffffff,
251
+ 4: #0e0e11,
252
+ 6: #131316,
253
+ 12: #201f22,
254
+ 17: #2a292d,
255
+ 22: #353438,
256
+ 24: #3a393c,
257
+ 87: #dcd9dd,
258
+ 92: #ebe7eb,
259
+ 94: #f0edf1,
260
+ 96: #f6f2f7,
264
261
  ),
265
262
  neutral-variant: (
266
263
  0: #000000,
@@ -283,7 +280,7 @@ $blue-palette: _apply-patches((
283
280
  ));
284
281
 
285
282
  /// Yellow color palette to be used as primary or tertiary palette.
286
- $yellow-palette: _apply-patches((
283
+ $yellow-palette: _patch-error-palette((
287
284
  0: #000000,
288
285
  10: #1d1d00,
289
286
  20: #323200,
@@ -335,6 +332,16 @@ $yellow-palette: _apply-patches((
335
332
  98: #fdf9f0,
336
333
  99: #fffbff,
337
334
  100: #ffffff,
335
+ 4: #0f0e0a,
336
+ 6: #14140f,
337
+ 12: #20201b,
338
+ 17: #2b2a25,
339
+ 22: #36352f,
340
+ 24: #3a3933,
341
+ 87: #dddad1,
342
+ 92: #ece8df,
343
+ 94: #f1ede5,
344
+ 96: #f7f3ea,
338
345
  ),
339
346
  neutral-variant: (
340
347
  0: #000000,
@@ -357,7 +364,7 @@ $yellow-palette: _apply-patches((
357
364
  ));
358
365
 
359
366
  /// Cyan color palette to be used as primary or tertiary palette.
360
- $cyan-palette: _apply-patches((
367
+ $cyan-palette: _patch-error-palette((
361
368
  0: #000000,
362
369
  10: #002020,
363
370
  20: #003737,
@@ -409,6 +416,16 @@ $cyan-palette: _apply-patches((
409
416
  98: #f7faf9,
410
417
  99: #fafdfc,
411
418
  100: #ffffff,
419
+ 4: #0b0f0e,
420
+ 6: #101414,
421
+ 12: #1c2020,
422
+ 17: #272b2a,
423
+ 22: #313635,
424
+ 24: #363a39,
425
+ 87: #d7dbd9,
426
+ 92: #e6e9e7,
427
+ 94: #ebefed,
428
+ 96: #f1f4f3,
412
429
  ),
413
430
  neutral-variant: (
414
431
  0: #000000,
@@ -431,7 +448,7 @@ $cyan-palette: _apply-patches((
431
448
  ));
432
449
 
433
450
  /// Magenta color palette to be used as primary or tertiary palette.
434
- $magenta-palette: _apply-patches((
451
+ $magenta-palette: _patch-error-palette((
435
452
  0: #000000,
436
453
  10: #380038,
437
454
  20: #5b005b,
@@ -483,6 +500,16 @@ $magenta-palette: _apply-patches((
483
500
  98: #fff7f9,
484
501
  99: #fffbff,
485
502
  100: #ffffff,
503
+ 4: #110d10,
504
+ 6: #161215,
505
+ 12: #231e22,
506
+ 17: #2d292c,
507
+ 22: #383337,
508
+ 24: #3d383b,
509
+ 87: #e1d7dc,
510
+ 92: #efe6ea,
511
+ 94: #f5ebf0,
512
+ 96: #fbf1f5,
486
513
  ),
487
514
  neutral-variant: (
488
515
  0: #000000,
@@ -505,7 +532,7 @@ $magenta-palette: _apply-patches((
505
532
  ));
506
533
 
507
534
  /// Orange color palette to be used as primary or tertiary palette.
508
- $orange-palette: _apply-patches((
535
+ $orange-palette: _patch-error-palette((
509
536
  0: #000000,
510
537
  10: #311300,
511
538
  20: #502400,
@@ -557,6 +584,16 @@ $orange-palette: _apply-patches((
557
584
  98: #fff8f5,
558
585
  99: #fffbff,
559
586
  100: #ffffff,
587
+ 4: #120d0b,
588
+ 6: #181210,
589
+ 12: #241e1b,
590
+ 17: #2f2926,
591
+ 22: #3a3330,
592
+ 24: #3f3834,
593
+ 87: #e3d8d3,
594
+ 92: #f2e6e1,
595
+ 94: #f8ebe6,
596
+ 96: #fef1ec,
560
597
  ),
561
598
  neutral-variant: (
562
599
  0: #000000,
@@ -579,7 +616,7 @@ $orange-palette: _apply-patches((
579
616
  ));
580
617
 
581
618
  /// Chartreuse color palette to be used as primary or tertiary palette.
582
- $chartreuse-palette: _apply-patches((
619
+ $chartreuse-palette: _patch-error-palette((
583
620
  0: #000000,
584
621
  10: #0b2000,
585
622
  20: #173800,
@@ -631,6 +668,16 @@ $chartreuse-palette: _apply-patches((
631
668
  98: #fafaf2,
632
669
  99: #fdfdf5,
633
670
  100: #ffffff,
671
+ 4: #0c0f0b,
672
+ 6: #121410,
673
+ 12: #1e201c,
674
+ 17: #282b26,
675
+ 22: #333531,
676
+ 24: #383a35,
677
+ 87: #dadbd3,
678
+ 92: #e8e9e1,
679
+ 94: #eeeee7,
680
+ 96: #f3f4ed,
634
681
  ),
635
682
  neutral-variant: (
636
683
  0: #000000,
@@ -653,7 +700,7 @@ $chartreuse-palette: _apply-patches((
653
700
  ));
654
701
 
655
702
  /// Spring Green color palette to be used as primary or tertiary palette.
656
- $spring-green-palette: _apply-patches((
703
+ $spring-green-palette: _patch-error-palette((
657
704
  0: #000000,
658
705
  10: #00210b,
659
706
  20: #003917,
@@ -705,6 +752,16 @@ $spring-green-palette: _apply-patches((
705
752
  98: #f9faf4,
706
753
  99: #fcfdf7,
707
754
  100: #ffffff,
755
+ 4: #0c0f0c,
756
+ 6: #111411,
757
+ 12: #1d201d,
758
+ 17: #282b27,
759
+ 22: #323632,
760
+ 24: #373a36,
761
+ 87: #d9dbd5,
762
+ 92: #e7e9e3,
763
+ 94: #edefe8,
764
+ 96: #f2f4ee,
708
765
  ),
709
766
  neutral-variant: (
710
767
  0: #000000,
@@ -727,7 +784,7 @@ $spring-green-palette: _apply-patches((
727
784
  ));
728
785
 
729
786
  /// Azure color palette to be used as primary or tertiary palette.
730
- $azure-palette: _apply-patches((
787
+ $azure-palette: _patch-error-palette((
731
788
  0: #000000,
732
789
  10: #001b3f,
733
790
  20: #002f65,
@@ -779,6 +836,16 @@ $azure-palette: _apply-patches((
779
836
  98: #faf9fd,
780
837
  99: #fdfbff,
781
838
  100: #ffffff,
839
+ 4: #0d0e11,
840
+ 6: #121316,
841
+ 12: #1f2022,
842
+ 17: #292a2c,
843
+ 22: #343537,
844
+ 24: #38393c,
845
+ 87: #dbd9dd,
846
+ 92: #e9e7eb,
847
+ 94: #efedf0,
848
+ 96: #f4f3f6,
782
849
  ),
783
850
  neutral-variant: (
784
851
  0: #000000,
@@ -801,7 +868,7 @@ $azure-palette: _apply-patches((
801
868
  ));
802
869
 
803
870
  /// Violet color palette to be used as primary or tertiary palette.
804
- $violet-palette: _apply-patches((
871
+ $violet-palette: _patch-error-palette((
805
872
  0: #000000,
806
873
  10: #270057,
807
874
  20: #42008a,
@@ -853,6 +920,16 @@ $violet-palette: _apply-patches((
853
920
  98: #fef8fc,
854
921
  99: #fffbff,
855
922
  100: #ffffff,
923
+ 4: #0f0d11,
924
+ 6: #151316,
925
+ 12: #211f22,
926
+ 17: #2b292d,
927
+ 22: #363437,
928
+ 24: #3b383c,
929
+ 87: #ded8dd,
930
+ 92: #ede6eb,
931
+ 94: #f2ecf1,
932
+ 96: #f8f2f6,
856
933
  ),
857
934
  neutral-variant: (
858
935
  0: #000000,
@@ -875,7 +952,7 @@ $violet-palette: _apply-patches((
875
952
  ));
876
953
 
877
954
  /// Rose color palette to be used as primary or tertiary palette.
878
- $rose-palette: _apply-patches((
955
+ $rose-palette: _patch-error-palette((
879
956
  0: #000000,
880
957
  10: #3f001b,
881
958
  20: #65002f,
@@ -927,6 +1004,16 @@ $rose-palette: _apply-patches((
927
1004
  98: #fff8f8,
928
1005
  99: #fffbff,
929
1006
  100: #ffffff,
1007
+ 4: #120d0e,
1008
+ 6: #171213,
1009
+ 12: #241e1f,
1010
+ 17: #2f2829,
1011
+ 22: #3a3334,
1012
+ 24: #3e3738,
1013
+ 87: #e3d7d8,
1014
+ 92: #f1e5e6,
1015
+ 94: #f7ebec,
1016
+ 96: #fdf1f2,
930
1017
  ),
931
1018
  neutral-variant: (
932
1019
  0: #000000,
@@ -1,8 +1,11 @@
1
1
  @use '../style/elevation';
2
2
  @use '../style/sass-utils';
3
- @use './m3-tokens';
3
+ @use '../theming/definition';
4
4
  @use './m3/definitions';
5
5
  @use 'sass:map';
6
+ @use 'sass:meta';
7
+ @use 'sass:list';
8
+ @use './m3-tokens';
6
9
 
7
10
  // Prefix used for component token fallback variables, e.g.
8
11
  // `color: var(--mdc-text-button-label-text-color, var(--mat-app-primary));`
@@ -11,16 +14,74 @@ $_system-fallback-prefix: mat-app;
11
14
  // Default system level prefix to use when directly calling the `system-level-*` mixins
12
15
  $_system-level-prefix: sys;
13
16
 
14
- // Emits CSS variables for Material's system level values. Uses the
15
- // namespace prefix in $_system-fallback-prefix.
16
- // e.g. --mat-app-surface: #E5E5E5
17
- @mixin theme($theme, $overrides: ()) {
18
- @include system-level-colors($theme, $overrides, $_system-fallback-prefix);
19
- @include system-level-typography($theme, $overrides, $_system-fallback-prefix);
20
- @include system-level-elevation($theme, $overrides, $_system-fallback-prefix);
21
- @include system-level-shape($theme, $overrides, $_system-fallback-prefix);
22
- @include system-level-motion($theme, $overrides, $_system-fallback-prefix);
23
- @include system-level-state($theme, $overrides, $_system-fallback-prefix);
17
+ /// Emits necessary CSS variables for Material's system level values for the values defined in the
18
+ /// config map. The config map can have values color, typography, and/or density.
19
+ ///
20
+ /// If the config map's color value is an Angular Material color palette, it will be used as the
21
+ /// primary and tertiary colors with a light theme type. Otherwise if the color value is a map,
22
+ /// it must have a `primary` value containing an Angular Material color palette, and optionally
23
+ /// a different `tertiary` palette (defaults to primary palette) and `theme-type` that is either
24
+ /// `light` or `dark` (defaults to light). Color variable definitions will not be emitted if there
25
+ /// are no color values in the config.
26
+ ///
27
+ /// If the config map's typography value is a font family string, it will be used as the
28
+ /// plain and brand font family with default bold, medium, and regular weights of 700, 500, and 400,
29
+ /// respectfully. Otherwise if the typography value is a map, it must have a `plain-family` font
30
+ /// family value, and optionally a different `brand-family` font family (defaults to the plain
31
+ /// value) and weights for `bold-weight` (default: 700), `bold-weight` (default: 500), and
32
+ /// `bold-weight` (default: 400). Typography variable definitions will not be emitted if there are
33
+ /// no typography values in the config.
34
+ ///
35
+ /// If the config map's density value is a number, it will be used as the density scale. Otherwise
36
+ /// if the density value is a map, it must have a `scale` value. Density variable definitions will
37
+ /// not be emitted if there are no density values in the config.
38
+ ///
39
+ /// The application variables emitted use the namespace prefix "--mat-app".
40
+ /// e.g. --mat-app-surface: #E5E5E5
41
+ ///
42
+ /// @param {Map} $config The color configuration with optional keys color, typography, or density.
43
+ @mixin theme($config, $overrides: ()) {
44
+ $color: map.get($config, color);
45
+ $color-config: null;
46
+ @if ($color) {
47
+ $color-config: if(meta.type-of($color) == 'map',
48
+ definition.define-colors($color),
49
+ definition.define-colors((primary: $color)));
50
+ @include system-level-colors($color-config, $overrides, $_system-fallback-prefix);
51
+ @include system-level-elevation($color-config, $overrides, $_system-fallback-prefix);
52
+ }
53
+
54
+ $typography: map.get($config, typography);
55
+ $typography-config: null;
56
+ @if ($typography) {
57
+ $typography-config: if(meta.type-of($typography) == 'map',
58
+ definition.define-typography($typography),
59
+ definition.define-typography((plain-family: $typography)));
60
+ @include system-level-typography($typography-config, $overrides, $_system-fallback-prefix);
61
+ }
62
+
63
+ $density: map.get($config, density);
64
+ $density-config: null;
65
+ @if ($density) {
66
+ $density-config: if(meta.type-of($density) == 'map',
67
+ definition.define-density($density),
68
+ definition.define-density((scale: $density)));
69
+ $scale: map.get($density-config, _mat-theming-internals-do-not-access, density-scale);
70
+ @if ($scale != 0) {
71
+ $all-tokens: m3-tokens.generate-density-tokens($scale);
72
+ @each $component-tokens in $all-tokens {
73
+ $namespace: list.nth($component-tokens, 1);
74
+ @each $tokens in list.nth($component-tokens, 2) {
75
+ --#{list.nth($namespace, 1)}-#{list.nth($namespace, 2)}-#{
76
+ list.nth($tokens, 1)}: #{list.nth($tokens, 2)};
77
+ }
78
+ }
79
+ }
80
+ }
81
+
82
+ @include system-level-shape($overrides: $overrides, $prefix: $_system-fallback-prefix);
83
+ @include system-level-motion($overrides:$overrides, $prefix: $_system-fallback-prefix);
84
+ @include system-level-state($overrides: $overrides, $prefix: $_system-fallback-prefix);
24
85
  }
25
86
 
26
87
  @mixin system-level-colors($theme, $overrides: (), $prefix: null) {
@@ -50,6 +111,13 @@ $_system-level-prefix: sys;
50
111
  definitions.md-sys-color-values-dark($ref),
51
112
  definitions.md-sys-color-values-light($ref));
52
113
 
114
+ // Manually insert a subset of palette values that are used directly by components
115
+ // instead of system variables.
116
+ $sys-colors: map.set($sys-colors,
117
+ 'neutral-variant20', map.get($ref, md-ref-palette, neutral-variant20));
118
+ $sys-colors: map.set($sys-colors,
119
+ 'neutral10', map.get($ref, md-ref-palette, neutral10));
120
+
53
121
  & {
54
122
  @each $name, $value in $sys-colors {
55
123
  --#{$prefix}-#{$name}: #{map.get($overrides, $name) or $value};
@@ -84,19 +152,16 @@ $_system-level-prefix: sys;
84
152
  $shadow-color: map.get(
85
153
  $theme, _mat-theming-internals-do-not-access, color-tokens, (mdc, theme), shadow);
86
154
 
87
- @for $level from 0 through 24 {
88
- $value: elevation.get-box-shadow($level, $shadow-color);
89
- --#{$prefix}-elevation-shadow-level-#{$level}: #{$value};
90
- }
91
-
92
155
  @each $name, $value in definitions.md-sys-elevation-values() {
93
156
  $level: map.get($overrides, $name) or $value;
94
157
  $value: elevation.get-box-shadow($level, $shadow-color);
95
- --#{$prefix}-#{$name}: #{$value};
158
+ & {
159
+ --#{$prefix}-#{$name}: #{$value};
160
+ }
96
161
  }
97
162
  }
98
163
 
99
- @mixin system-level-shape($theme, $overrides: (), $prefix: $_system-level-prefix) {
164
+ @mixin system-level-shape($theme: (), $overrides: (), $prefix: $_system-level-prefix) {
100
165
  & {
101
166
  @each $name, $value in definitions.md-sys-shape-values() {
102
167
  --#{$prefix}-#{$name}: #{map.get($overrides, $name) or $value};
@@ -104,7 +169,7 @@ $_system-level-prefix: sys;
104
169
  }
105
170
  }
106
171
 
107
- @mixin system-level-state($theme, $overrides: (), $prefix: $_system-level-prefix) {
172
+ @mixin system-level-state($theme: (), $overrides: (), $prefix: $_system-level-prefix) {
108
173
  & {
109
174
  @each $name, $value in definitions.md-sys-state-values() {
110
175
  --#{$prefix}-#{$name}: #{map.get($overrides, $name) or $value};
@@ -112,7 +177,7 @@ $_system-level-prefix: sys;
112
177
  }
113
178
  }
114
179
 
115
- @mixin system-level-motion($theme, $overrides: (), $prefix: $_system-level-prefix) {
180
+ @mixin system-level-motion($theme: (), $overrides: (), $prefix: $_system-level-prefix) {
116
181
  & {
117
182
  @each $name, $value in definitions.md-sys-motion-values() {
118
183
  --#{$prefix}-#{$name}: #{map.get($overrides, $name) or $value};
@@ -146,6 +211,14 @@ $_system-level-prefix: sys;
146
211
  _create-system-app-vars-map(definitions.md-sys-state-values()),
147
212
  'md-sys-shape':
148
213
  _create-system-app-vars-map(definitions.md-sys-shape-values()),
214
+ // Add a subset of palette-specific colors used by components instead of system values
215
+ 'md-ref-palette':
216
+ _create-system-app-vars-map(
217
+ (
218
+ neutral10: '', // Form field native select option text color
219
+ neutral-variant20: '', // Sidenav scrim (container background shadow when opened),
220
+ )
221
+ ),
149
222
  );
150
223
 
151
224
  @return sass-utils.deep-merge-all(
@@ -13,7 +13,7 @@ $_default-dark: (
13
13
 
14
14
  @function values-dark($deps: $_default-dark) {
15
15
  @return (
16
- 'background': map.get($deps, 'md-ref-palette', 'neutral10'),
16
+ 'background': map.get($deps, 'md-ref-palette', 'neutral6'),
17
17
  'error': map.get($deps, 'md-ref-palette', 'error80'),
18
18
  'error-container': map.get($deps, 'md-ref-palette', 'error30'),
19
19
  'inverse-on-surface': map.get($deps, 'md-ref-palette', 'neutral20'),
@@ -32,7 +32,7 @@ $_default-dark: (
32
32
  'on-secondary-fixed-variant':
33
33
  map.get($deps, 'md-ref-palette', 'secondary30'),
34
34
  'on-surface': map.get($deps, 'md-ref-palette', 'neutral90'),
35
- 'on-surface-variant': map.get($deps, 'md-ref-palette', 'neutral-variant80'),
35
+ 'on-surface-variant': map.get($deps, 'md-ref-palette', 'neutral-variant90'),
36
36
  'on-tertiary': map.get($deps, 'md-ref-palette', 'tertiary20'),
37
37
  'on-tertiary-container': map.get($deps, 'md-ref-palette', 'tertiary90'),
38
38
  'on-tertiary-fixed': map.get($deps, 'md-ref-palette', 'tertiary10'),
@@ -49,11 +49,11 @@ $_default-dark: (
49
49
  'secondary-fixed': map.get($deps, 'md-ref-palette', 'secondary90'),
50
50
  'secondary-fixed-dim': map.get($deps, 'md-ref-palette', 'secondary80'),
51
51
  'shadow': map.get($deps, 'md-ref-palette', 'neutral0'),
52
- 'surface': map.get($deps, 'md-ref-palette', 'neutral10'),
52
+ 'surface': map.get($deps, 'md-ref-palette', 'neutral6'),
53
53
  'surface-bright': map.get($deps, 'md-ref-palette', 'neutral24'),
54
54
  'surface-container': map.get($deps, 'md-ref-palette', 'neutral12'),
55
55
  'surface-container-high': map.get($deps, 'md-ref-palette', 'neutral17'),
56
- 'surface-container-highest': map.get($deps, 'md-ref-palette', 'neutral22'),
56
+ 'surface-container-highest': map.get($deps, 'md-ref-palette', 'neutral24'),
57
57
  'surface-container-low': map.get($deps, 'md-ref-palette', 'neutral10'),
58
58
  'surface-container-lowest': map.get($deps, 'md-ref-palette', 'neutral4'),
59
59
  'surface-dim': map.get($deps, 'md-ref-palette', 'neutral6'),
@@ -72,7 +72,7 @@ $_default-light: (
72
72
 
73
73
  @function values-light($deps: $_default-light) {
74
74
  @return (
75
- 'background': map.get($deps, 'md-ref-palette', 'neutral99'),
75
+ 'background': map.get($deps, 'md-ref-palette', 'neutral98'),
76
76
  'error': map.get($deps, 'md-ref-palette', 'error40'),
77
77
  'error-container': map.get($deps, 'md-ref-palette', 'error90'),
78
78
  'inverse-on-surface': map.get($deps, 'md-ref-palette', 'neutral95'),
@@ -108,7 +108,7 @@ $_default-light: (
108
108
  'secondary-fixed': map.get($deps, 'md-ref-palette', 'secondary90'),
109
109
  'secondary-fixed-dim': map.get($deps, 'md-ref-palette', 'secondary80'),
110
110
  'shadow': map.get($deps, 'md-ref-palette', 'neutral0'),
111
- 'surface': map.get($deps, 'md-ref-palette', 'neutral99'),
111
+ 'surface': map.get($deps, 'md-ref-palette', 'neutral98'),
112
112
  'surface-bright': map.get($deps, 'md-ref-palette', 'neutral98'),
113
113
  'surface-container': map.get($deps, 'md-ref-palette', 'neutral94'),
114
114
  'surface-container-high': map.get($deps, 'md-ref-palette', 'neutral92'),
@@ -20,7 +20,6 @@ $prefix: (mat, sidenav);
20
20
  container-text-color: map.get($systems, md-sys-color, on-surface-variant),
21
21
  content-background-color: map.get($systems, md-sys-color, background),
22
22
  content-text-color: map.get($systems, md-sys-color, on-background),
23
- // TODO: This should be `md-sys-color` `scrim` but causes changes in clients.
24
23
  scrim-color: sass-utils.safe-color-change(
25
24
  map.get($systems, md-ref-palette, neutral-variant20), $alpha: 0.4),
26
25
  );