@angular/material 18.1.0 → 18.1.2

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 (399) hide show
  1. package/button/_button-base.scss +0 -6
  2. package/button/_icon-button-theme.scss +18 -9
  3. package/core/_core.scss +15 -18
  4. package/core/m2/_typography.scss +129 -2
  5. package/core/style/_elevation.scss +116 -27
  6. package/core/theming/_color-api-backwards-compatibility.scss +2 -0
  7. package/core/tokens/_m3-tokens.scss +13 -13
  8. package/core/tokens/_token-utils.scss +98 -25
  9. package/core/tokens/m2/mat/_fab-small.scss +1 -2
  10. package/core/tokens/m2/mat/_fab.scss +1 -2
  11. package/core/tokens/m2/mat/_filled-button.scss +1 -2
  12. package/core/tokens/m2/mat/_form-field.scss +2 -5
  13. package/core/tokens/m2/mat/_optgroup.scss +0 -9
  14. package/core/tokens/m2/mat/_option.scss +0 -9
  15. package/core/tokens/m2/mat/_paginator.scss +1 -2
  16. package/core/tokens/m2/mat/_protected-button.scss +1 -2
  17. package/core/tokens/m2/mdc/_checkbox.scss +1 -2
  18. package/core/tokens/m2/mdc/_circular-progress.scss +2 -2
  19. package/core/tokens/m2/mdc/_filled-button.scss +1 -2
  20. package/core/tokens/m2/mdc/_protected-button.scss +1 -2
  21. package/core/tokens/m2/mdc/_slider.scss +3 -6
  22. package/core/tokens/m2/mdc/_switch.scss +12 -8
  23. package/core/tokens/m3/definitions/_index.scss +94 -0
  24. package/core/tokens/m3/definitions/_md-comp-checkbox.scss +120 -0
  25. package/core/tokens/m3/definitions/_md-comp-circular-progress-indicator.scss +27 -0
  26. package/core/tokens/m3/definitions/_md-comp-data-table.scss +90 -0
  27. package/core/tokens/m3/definitions/_md-comp-dialog.scss +123 -0
  28. package/core/tokens/m3/definitions/_md-comp-elevated-button.scss +87 -0
  29. package/core/tokens/m3/definitions/_md-comp-elevated-card.scss +53 -0
  30. package/core/tokens/m3/definitions/_md-comp-extended-fab-primary.scss +90 -0
  31. package/core/tokens/m3/definitions/_md-comp-extended-fab-secondary.scss +91 -0
  32. package/core/tokens/m3/definitions/_md-comp-extended-fab-tertiary.scss +91 -0
  33. package/core/tokens/m3/definitions/_md-comp-fab-primary-small.scss +59 -0
  34. package/core/tokens/m3/definitions/_md-comp-fab-primary.scss +59 -0
  35. package/core/tokens/m3/definitions/_md-comp-fab-secondary-small.scss +60 -0
  36. package/core/tokens/m3/definitions/_md-comp-fab-secondary.scss +60 -0
  37. package/core/tokens/m3/definitions/_md-comp-fab-tertiary-small.scss +60 -0
  38. package/core/tokens/m3/definitions/_md-comp-fab-tertiary.scss +60 -0
  39. package/core/tokens/m3/definitions/_md-comp-filled-button.scss +85 -0
  40. package/core/tokens/m3/definitions/_md-comp-filled-card.scss +52 -0
  41. package/core/tokens/m3/definitions/_md-comp-filled-icon-button.scss +73 -0
  42. package/core/tokens/m3/definitions/_md-comp-filled-text-field.scss +189 -0
  43. package/core/tokens/m3/definitions/_md-comp-icon-button.scss +64 -0
  44. package/core/tokens/m3/definitions/_md-comp-linear-progress-indicator.scss +29 -0
  45. package/core/tokens/m3/definitions/_md-comp-list.scss +252 -0
  46. package/core/tokens/m3/definitions/_md-comp-outlined-button.scss +80 -0
  47. package/core/tokens/m3/definitions/_md-comp-outlined-card.scss +59 -0
  48. package/core/tokens/m3/definitions/_md-comp-outlined-icon-button.scss +73 -0
  49. package/core/tokens/m3/definitions/_md-comp-outlined-text-field.scss +171 -0
  50. package/core/tokens/m3/definitions/_md-comp-plain-tooltip.scss +51 -0
  51. package/core/tokens/m3/definitions/_md-comp-radio-button.scss +62 -0
  52. package/core/tokens/m3/definitions/_md-comp-secondary-navigation-tab.scss +80 -0
  53. package/core/tokens/m3/definitions/_md-comp-slider.scss +110 -0
  54. package/core/tokens/m3/definitions/_md-comp-snackbar.scss +125 -0
  55. package/core/tokens/m3/definitions/_md-comp-switch.scss +130 -0
  56. package/core/tokens/m3/definitions/_md-comp-text-button.scss +73 -0
  57. package/core/tokens/m3/definitions/_md-ref-palette.scss +100 -0
  58. package/core/tokens/m3/definitions/_md-ref-typeface.scss +14 -0
  59. package/core/tokens/m3/definitions/_md-sys-color.scss +126 -0
  60. package/core/tokens/m3/definitions/_md-sys-elevation.scss +15 -0
  61. package/core/tokens/m3/definitions/_md-sys-motion.scss +46 -0
  62. package/core/tokens/m3/definitions/_md-sys-shape.scss +24 -0
  63. package/core/tokens/m3/definitions/_md-sys-state.scss +13 -0
  64. package/core/tokens/m3/definitions/_md-sys-typescale.scss +308 -0
  65. package/core/tokens/m3/definitions/unused/_md-comp-assist-chip.scss +105 -0
  66. package/core/tokens/m3/definitions/unused/_md-comp-badge.scss +54 -0
  67. package/core/tokens/m3/definitions/unused/_md-comp-banner.scss +71 -0
  68. package/core/tokens/m3/definitions/unused/_md-comp-bottom-app-bar.scss +29 -0
  69. package/core/tokens/m3/definitions/unused/_md-comp-carousel-item.scss +59 -0
  70. package/core/tokens/m3/definitions/unused/_md-comp-date-input-modal.scss +87 -0
  71. package/core/tokens/m3/definitions/unused/_md-comp-date-picker-docked.scss +248 -0
  72. package/core/tokens/m3/definitions/unused/_md-comp-date-picker-modal.scss +313 -0
  73. package/core/tokens/m3/definitions/unused/_md-comp-divider.scss +19 -0
  74. package/core/tokens/m3/definitions/unused/_md-comp-extended-fab-branded.scss +82 -0
  75. package/core/tokens/m3/definitions/unused/_md-comp-extended-fab-surface.scss +86 -0
  76. package/core/tokens/m3/definitions/unused/_md-comp-fab-branded-large.scss +54 -0
  77. package/core/tokens/m3/definitions/unused/_md-comp-fab-branded.scss +54 -0
  78. package/core/tokens/m3/definitions/unused/_md-comp-fab-primary-large.scss +59 -0
  79. package/core/tokens/m3/definitions/unused/_md-comp-fab-secondary-large.scss +60 -0
  80. package/core/tokens/m3/definitions/unused/_md-comp-fab-surface-large.scss +58 -0
  81. package/core/tokens/m3/definitions/unused/_md-comp-fab-surface-small.scss +58 -0
  82. package/core/tokens/m3/definitions/unused/_md-comp-fab-surface.scss +58 -0
  83. package/core/tokens/m3/definitions/unused/_md-comp-fab-tertiary-large.scss +60 -0
  84. package/core/tokens/m3/definitions/unused/_md-comp-filled-autocomplete.scss +269 -0
  85. package/core/tokens/m3/definitions/unused/_md-comp-filled-menu-button.scss +94 -0
  86. package/core/tokens/m3/definitions/unused/_md-comp-filled-select.scss +274 -0
  87. package/core/tokens/m3/definitions/unused/_md-comp-filled-tonal-button.scss +95 -0
  88. package/core/tokens/m3/definitions/unused/_md-comp-filled-tonal-icon-button.scss +80 -0
  89. package/core/tokens/m3/definitions/unused/_md-comp-filter-chip.scss +205 -0
  90. package/core/tokens/m3/definitions/unused/_md-comp-full-screen-dialog.scss +109 -0
  91. package/core/tokens/m3/definitions/unused/_md-comp-input-chip.scss +180 -0
  92. package/core/tokens/m3/definitions/unused/_md-comp-menu.scss +31 -0
  93. package/core/tokens/m3/definitions/unused/_md-comp-navigation-bar.scss +110 -0
  94. package/core/tokens/m3/definitions/unused/_md-comp-navigation-drawer.scss +162 -0
  95. package/core/tokens/m3/definitions/unused/_md-comp-navigation-rail.scss +127 -0
  96. package/core/tokens/m3/definitions/unused/_md-comp-outlined-autocomplete.scss +259 -0
  97. package/core/tokens/m3/definitions/unused/_md-comp-outlined-menu-button.scss +90 -0
  98. package/core/tokens/m3/definitions/unused/_md-comp-outlined-segmented-button.scss +108 -0
  99. package/core/tokens/m3/definitions/unused/_md-comp-outlined-select.scss +264 -0
  100. package/core/tokens/m3/definitions/unused/_md-comp-primary-navigation-tab.scss +117 -0
  101. package/core/tokens/m3/definitions/unused/_md-comp-rich-tooltip.scss +121 -0
  102. package/core/tokens/m3/definitions/unused/_md-comp-scrim.scss +19 -0
  103. package/core/tokens/m3/definitions/unused/_md-comp-search-bar.scss +97 -0
  104. package/core/tokens/m3/definitions/unused/_md-comp-search-view.scss +91 -0
  105. package/core/tokens/m3/definitions/unused/_md-comp-sheet-bottom.scss +39 -0
  106. package/core/tokens/m3/definitions/unused/_md-comp-sheet-floating.scss +28 -0
  107. package/core/tokens/m3/definitions/unused/_md-comp-sheet-side.scss +87 -0
  108. package/core/tokens/m3/definitions/unused/_md-comp-standard-menu-button.scss +94 -0
  109. package/core/tokens/m3/definitions/unused/_md-comp-suggestion-chip.scss +121 -0
  110. package/core/tokens/m3/definitions/unused/_md-comp-time-input.scss +222 -0
  111. package/core/tokens/m3/definitions/unused/_md-comp-time-picker.scss +268 -0
  112. package/core/tokens/m3/definitions/unused/_md-comp-top-app-bar-large.scss +59 -0
  113. package/core/tokens/m3/definitions/unused/_md-comp-top-app-bar-medium.scss +59 -0
  114. package/core/tokens/m3/definitions/unused/_md-comp-top-app-bar-small-centered.scss +62 -0
  115. package/core/tokens/m3/definitions/unused/_md-comp-top-app-bar-small.scss +60 -0
  116. package/core/tokens/m3/mat/_icon-button.scss +31 -2
  117. package/core/tokens/m3/mdc/_icon-button.scss +21 -2
  118. package/core/tokens/m3/mdc/_slider.scss +9 -2
  119. package/core/tokens/m3/mdc/_switch.scss +13 -2
  120. package/esm2022/autocomplete/animations.mjs +1 -2
  121. package/esm2022/autocomplete/autocomplete-origin.mjs +4 -4
  122. package/esm2022/autocomplete/autocomplete-trigger.mjs +4 -4
  123. package/esm2022/autocomplete/autocomplete.mjs +4 -4
  124. package/esm2022/autocomplete/module.mjs +5 -5
  125. package/esm2022/badge/badge-module.mjs +5 -5
  126. package/esm2022/badge/badge.mjs +7 -7
  127. package/esm2022/bottom-sheet/bottom-sheet-container.mjs +4 -4
  128. package/esm2022/bottom-sheet/bottom-sheet-module.mjs +5 -5
  129. package/esm2022/bottom-sheet/bottom-sheet.mjs +4 -4
  130. package/esm2022/button/button-base.mjs +7 -7
  131. package/esm2022/button/button.mjs +7 -7
  132. package/esm2022/button/fab.mjs +17 -17
  133. package/esm2022/button/icon-button.mjs +7 -7
  134. package/esm2022/button/module.mjs +5 -5
  135. package/esm2022/button-toggle/button-toggle-module.mjs +5 -5
  136. package/esm2022/button-toggle/button-toggle.mjs +7 -7
  137. package/esm2022/card/card.mjs +43 -43
  138. package/esm2022/card/module.mjs +5 -5
  139. package/esm2022/checkbox/checkbox-required-validator.mjs +4 -4
  140. package/esm2022/checkbox/checkbox.mjs +4 -4
  141. package/esm2022/checkbox/module.mjs +9 -9
  142. package/esm2022/chips/chip-action.mjs +4 -4
  143. package/esm2022/chips/chip-edit-input.mjs +4 -4
  144. package/esm2022/chips/chip-grid.mjs +5 -5
  145. package/esm2022/chips/chip-icons.mjs +10 -10
  146. package/esm2022/chips/chip-input.mjs +4 -4
  147. package/esm2022/chips/chip-listbox.mjs +4 -4
  148. package/esm2022/chips/chip-option.mjs +4 -4
  149. package/esm2022/chips/chip-row.mjs +4 -4
  150. package/esm2022/chips/chip-set.mjs +4 -4
  151. package/esm2022/chips/chip.mjs +4 -4
  152. package/esm2022/chips/module.mjs +5 -5
  153. package/esm2022/core/common-behaviors/common-module.mjs +5 -5
  154. package/esm2022/core/datetime/index.mjs +9 -9
  155. package/esm2022/core/datetime/native-date-adapter.mjs +4 -4
  156. package/esm2022/core/error/error-options.mjs +7 -7
  157. package/esm2022/core/internal-form-field/internal-form-field.mjs +4 -4
  158. package/esm2022/core/line/line.mjs +8 -8
  159. package/esm2022/core/option/index.mjs +5 -5
  160. package/esm2022/core/option/optgroup.mjs +4 -4
  161. package/esm2022/core/option/option.mjs +4 -4
  162. package/esm2022/core/private/ripple-loader.mjs +4 -4
  163. package/esm2022/core/ripple/index.mjs +5 -5
  164. package/esm2022/core/ripple/ripple.mjs +4 -4
  165. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +5 -5
  166. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +4 -4
  167. package/esm2022/core/version.mjs +1 -1
  168. package/esm2022/datepicker/calendar-body.mjs +4 -4
  169. package/esm2022/datepicker/calendar.mjs +7 -7
  170. package/esm2022/datepicker/date-range-input-parts.mjs +10 -10
  171. package/esm2022/datepicker/date-range-input.mjs +4 -4
  172. package/esm2022/datepicker/date-range-picker.mjs +4 -4
  173. package/esm2022/datepicker/date-range-selection-strategy.mjs +4 -4
  174. package/esm2022/datepicker/date-selection-model.mjs +10 -10
  175. package/esm2022/datepicker/datepicker-actions.mjs +10 -10
  176. package/esm2022/datepicker/datepicker-base.mjs +7 -7
  177. package/esm2022/datepicker/datepicker-input-base.mjs +4 -4
  178. package/esm2022/datepicker/datepicker-input.mjs +4 -4
  179. package/esm2022/datepicker/datepicker-intl.mjs +4 -4
  180. package/esm2022/datepicker/datepicker-module.mjs +5 -5
  181. package/esm2022/datepicker/datepicker-toggle.mjs +7 -7
  182. package/esm2022/datepicker/datepicker.mjs +4 -4
  183. package/esm2022/datepicker/month-view.mjs +4 -4
  184. package/esm2022/datepicker/multi-year-view.mjs +4 -4
  185. package/esm2022/datepicker/year-view.mjs +4 -4
  186. package/esm2022/dialog/dialog-container.mjs +4 -7
  187. package/esm2022/dialog/dialog-content-directives.mjs +16 -16
  188. package/esm2022/dialog/dialog.mjs +4 -4
  189. package/esm2022/dialog/module.mjs +5 -5
  190. package/esm2022/divider/divider-module.mjs +5 -5
  191. package/esm2022/divider/divider.mjs +4 -4
  192. package/esm2022/expansion/accordion.mjs +4 -4
  193. package/esm2022/expansion/expansion-module.mjs +5 -5
  194. package/esm2022/expansion/expansion-panel-content.mjs +4 -4
  195. package/esm2022/expansion/expansion-panel-header.mjs +11 -11
  196. package/esm2022/expansion/expansion-panel.mjs +7 -7
  197. package/esm2022/form-field/directives/error.mjs +4 -4
  198. package/esm2022/form-field/directives/floating-label.mjs +4 -4
  199. package/esm2022/form-field/directives/hint.mjs +4 -4
  200. package/esm2022/form-field/directives/label.mjs +4 -4
  201. package/esm2022/form-field/directives/line-ripple.mjs +4 -4
  202. package/esm2022/form-field/directives/notched-outline.mjs +5 -5
  203. package/esm2022/form-field/directives/prefix.mjs +4 -4
  204. package/esm2022/form-field/directives/suffix.mjs +4 -4
  205. package/esm2022/form-field/form-field-control.mjs +4 -4
  206. package/esm2022/form-field/form-field.mjs +9 -6
  207. package/esm2022/form-field/module.mjs +5 -5
  208. package/esm2022/grid-list/grid-list-module.mjs +5 -5
  209. package/esm2022/grid-list/grid-list.mjs +4 -4
  210. package/esm2022/grid-list/grid-tile.mjs +16 -16
  211. package/esm2022/icon/icon-module.mjs +5 -5
  212. package/esm2022/icon/icon-registry.mjs +4 -4
  213. package/esm2022/icon/icon.mjs +4 -4
  214. package/esm2022/icon/testing/fake-icon-registry.mjs +8 -8
  215. package/esm2022/input/input.mjs +39 -6
  216. package/esm2022/input/module.mjs +5 -5
  217. package/esm2022/list/action-list.mjs +4 -4
  218. package/esm2022/list/list-base.mjs +7 -7
  219. package/esm2022/list/list-item-sections.mjs +19 -19
  220. package/esm2022/list/list-module.mjs +5 -5
  221. package/esm2022/list/list-option.mjs +4 -4
  222. package/esm2022/list/list.mjs +7 -7
  223. package/esm2022/list/nav-list.mjs +4 -4
  224. package/esm2022/list/selection-list.mjs +4 -4
  225. package/esm2022/list/subheader.mjs +4 -4
  226. package/esm2022/list/testing/selection-list-harness.mjs +2 -2
  227. package/esm2022/menu/menu-content.mjs +4 -4
  228. package/esm2022/menu/menu-item.mjs +4 -4
  229. package/esm2022/menu/menu-trigger.mjs +4 -4
  230. package/esm2022/menu/menu.mjs +4 -4
  231. package/esm2022/menu/module.mjs +5 -5
  232. package/esm2022/paginator/module.mjs +5 -5
  233. package/esm2022/paginator/paginator-intl.mjs +4 -4
  234. package/esm2022/paginator/paginator.mjs +4 -4
  235. package/esm2022/progress-bar/module.mjs +5 -5
  236. package/esm2022/progress-bar/progress-bar.mjs +4 -4
  237. package/esm2022/progress-spinner/module.mjs +5 -5
  238. package/esm2022/progress-spinner/progress-spinner.mjs +5 -5
  239. package/esm2022/radio/module.mjs +5 -5
  240. package/esm2022/radio/radio.mjs +7 -7
  241. package/esm2022/select/module.mjs +5 -5
  242. package/esm2022/select/select.mjs +7 -7
  243. package/esm2022/sidenav/drawer.mjs +10 -10
  244. package/esm2022/sidenav/sidenav-module.mjs +5 -5
  245. package/esm2022/sidenav/sidenav.mjs +10 -10
  246. package/esm2022/slide-toggle/module.mjs +9 -9
  247. package/esm2022/slide-toggle/slide-toggle-required-validator.mjs +4 -4
  248. package/esm2022/slide-toggle/slide-toggle.mjs +6 -6
  249. package/esm2022/slider/module.mjs +5 -5
  250. package/esm2022/slider/slider-input.mjs +7 -7
  251. package/esm2022/slider/slider-thumb.mjs +4 -4
  252. package/esm2022/slider/slider.mjs +5 -5
  253. package/esm2022/snack-bar/module.mjs +5 -5
  254. package/esm2022/snack-bar/simple-snack-bar.mjs +4 -4
  255. package/esm2022/snack-bar/snack-bar-container.mjs +4 -4
  256. package/esm2022/snack-bar/snack-bar-content.mjs +10 -10
  257. package/esm2022/snack-bar/snack-bar.mjs +4 -4
  258. package/esm2022/sort/sort-header-intl.mjs +4 -4
  259. package/esm2022/sort/sort-header.mjs +4 -4
  260. package/esm2022/sort/sort-module.mjs +5 -5
  261. package/esm2022/sort/sort.mjs +4 -4
  262. package/esm2022/stepper/step-content.mjs +4 -4
  263. package/esm2022/stepper/step-header.mjs +4 -4
  264. package/esm2022/stepper/step-label.mjs +4 -4
  265. package/esm2022/stepper/stepper-button.mjs +7 -7
  266. package/esm2022/stepper/stepper-icon.mjs +4 -4
  267. package/esm2022/stepper/stepper-intl.mjs +4 -4
  268. package/esm2022/stepper/stepper-module.mjs +5 -5
  269. package/esm2022/stepper/stepper.mjs +7 -7
  270. package/esm2022/table/cell.mjs +22 -22
  271. package/esm2022/table/module.mjs +5 -5
  272. package/esm2022/table/row.mjs +22 -22
  273. package/esm2022/table/table.mjs +7 -7
  274. package/esm2022/table/text-column.mjs +4 -4
  275. package/esm2022/tabs/ink-bar.mjs +4 -4
  276. package/esm2022/tabs/module.mjs +5 -5
  277. package/esm2022/tabs/paginated-tab-header.mjs +4 -4
  278. package/esm2022/tabs/tab-body.mjs +7 -7
  279. package/esm2022/tabs/tab-content.mjs +4 -4
  280. package/esm2022/tabs/tab-group.mjs +4 -4
  281. package/esm2022/tabs/tab-header.mjs +5 -5
  282. package/esm2022/tabs/tab-label-wrapper.mjs +4 -4
  283. package/esm2022/tabs/tab-label.mjs +4 -4
  284. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +11 -11
  285. package/esm2022/tabs/tab.mjs +4 -4
  286. package/esm2022/tabs/testing/tab-harness.mjs +2 -2
  287. package/esm2022/toolbar/toolbar-module.mjs +5 -5
  288. package/esm2022/toolbar/toolbar.mjs +7 -7
  289. package/esm2022/tooltip/module.mjs +5 -5
  290. package/esm2022/tooltip/tooltip.mjs +7 -7
  291. package/esm2022/tree/node.mjs +10 -10
  292. package/esm2022/tree/outlet.mjs +4 -4
  293. package/esm2022/tree/padding.mjs +4 -4
  294. package/esm2022/tree/toggle.mjs +4 -4
  295. package/esm2022/tree/tree-module.mjs +5 -5
  296. package/esm2022/tree/tree.mjs +4 -4
  297. package/fesm2022/autocomplete.mjs +13 -14
  298. package/fesm2022/autocomplete.mjs.map +1 -1
  299. package/fesm2022/badge.mjs +10 -10
  300. package/fesm2022/badge.mjs.map +1 -1
  301. package/fesm2022/bottom-sheet.mjs +10 -10
  302. package/fesm2022/bottom-sheet.mjs.map +1 -1
  303. package/fesm2022/button-toggle.mjs +10 -10
  304. package/fesm2022/button-toggle.mjs.map +1 -1
  305. package/fesm2022/button.mjs +38 -38
  306. package/fesm2022/button.mjs.map +1 -1
  307. package/fesm2022/card.mjs +46 -46
  308. package/fesm2022/card.mjs.map +1 -1
  309. package/fesm2022/checkbox.mjs +14 -14
  310. package/fesm2022/checkbox.mjs.map +1 -1
  311. package/fesm2022/chips.mjs +41 -41
  312. package/fesm2022/chips.mjs.map +1 -1
  313. package/fesm2022/core.mjs +59 -59
  314. package/fesm2022/core.mjs.map +1 -1
  315. package/fesm2022/datepicker.mjs +82 -82
  316. package/fesm2022/datepicker.mjs.map +1 -1
  317. package/fesm2022/dialog.mjs +25 -28
  318. package/fesm2022/dialog.mjs.map +1 -1
  319. package/fesm2022/divider.mjs +7 -7
  320. package/fesm2022/divider.mjs.map +1 -1
  321. package/fesm2022/expansion.mjs +26 -26
  322. package/fesm2022/expansion.mjs.map +1 -1
  323. package/fesm2022/form-field.mjs +40 -37
  324. package/fesm2022/form-field.mjs.map +1 -1
  325. package/fesm2022/grid-list.mjs +22 -22
  326. package/fesm2022/grid-list.mjs.map +1 -1
  327. package/fesm2022/icon/testing.mjs +7 -7
  328. package/fesm2022/icon/testing.mjs.map +1 -1
  329. package/fesm2022/icon.mjs +10 -10
  330. package/fesm2022/icon.mjs.map +1 -1
  331. package/fesm2022/input.mjs +42 -9
  332. package/fesm2022/input.mjs.map +1 -1
  333. package/fesm2022/list/testing.mjs +1 -1
  334. package/fesm2022/list/testing.mjs.map +1 -1
  335. package/fesm2022/list.mjs +49 -49
  336. package/fesm2022/list.mjs.map +1 -1
  337. package/fesm2022/menu.mjs +16 -16
  338. package/fesm2022/menu.mjs.map +1 -1
  339. package/fesm2022/paginator.mjs +10 -10
  340. package/fesm2022/paginator.mjs.map +1 -1
  341. package/fesm2022/progress-bar.mjs +7 -7
  342. package/fesm2022/progress-bar.mjs.map +1 -1
  343. package/fesm2022/progress-spinner.mjs +8 -8
  344. package/fesm2022/progress-spinner.mjs.map +1 -1
  345. package/fesm2022/radio.mjs +10 -10
  346. package/fesm2022/radio.mjs.map +1 -1
  347. package/fesm2022/select.mjs +10 -10
  348. package/fesm2022/select.mjs.map +1 -1
  349. package/fesm2022/sidenav.mjs +22 -22
  350. package/fesm2022/sidenav.mjs.map +1 -1
  351. package/fesm2022/slide-toggle.mjs +16 -16
  352. package/fesm2022/slide-toggle.mjs.map +1 -1
  353. package/fesm2022/slider.mjs +17 -17
  354. package/fesm2022/slider.mjs.map +1 -1
  355. package/fesm2022/snack-bar.mjs +22 -22
  356. package/fesm2022/snack-bar.mjs.map +1 -1
  357. package/fesm2022/sort.mjs +13 -13
  358. package/fesm2022/sort.mjs.map +1 -1
  359. package/fesm2022/stepper.mjs +31 -31
  360. package/fesm2022/stepper.mjs.map +1 -1
  361. package/fesm2022/table.mjs +55 -55
  362. package/fesm2022/table.mjs.map +1 -1
  363. package/fesm2022/tabs/testing.mjs +1 -1
  364. package/fesm2022/tabs/testing.mjs.map +1 -1
  365. package/fesm2022/tabs.mjs +45 -45
  366. package/fesm2022/tabs.mjs.map +1 -1
  367. package/fesm2022/toolbar.mjs +10 -10
  368. package/fesm2022/toolbar.mjs.map +1 -1
  369. package/fesm2022/tooltip.mjs +10 -10
  370. package/fesm2022/tooltip.mjs.map +1 -1
  371. package/fesm2022/tree.mjs +25 -25
  372. package/fesm2022/tree.mjs.map +1 -1
  373. package/form-field/_form-field-focus-overlay.scss +1 -1
  374. package/form-field/_form-field-subscript.scss +1 -3
  375. package/form-field/_form-field-theme.scss +20 -20
  376. package/form-field/_mdc-text-field-density-overrides.scss +2 -2
  377. package/form-field/_mdc-text-field-structure-overrides.scss +2 -13
  378. package/form-field/_mdc-text-field-structure.scss +610 -0
  379. package/input/index.d.ts +13 -1
  380. package/list/testing/index.d.ts +1 -1
  381. package/package.json +3 -51
  382. package/prebuilt-themes/azure-blue.css +1 -1
  383. package/prebuilt-themes/cyan-orange.css +1 -1
  384. package/prebuilt-themes/deeppurple-amber.css +1 -1
  385. package/prebuilt-themes/indigo-pink.css +1 -1
  386. package/prebuilt-themes/magenta-violet.css +1 -1
  387. package/prebuilt-themes/pink-bluegrey.css +1 -1
  388. package/prebuilt-themes/purple-green.css +1 -1
  389. package/prebuilt-themes/rose-red.css +1 -1
  390. package/progress-spinner/_progress-spinner-theme.scss +11 -14
  391. package/schematics/ng-add/index.js +1 -1
  392. package/schematics/ng-add/index.mjs +1 -1
  393. package/schematics/ng-generate/m3-theme/index_bundled.js +2 -2
  394. package/schematics/ng-update/index_bundled.js +31 -31
  395. package/slide-toggle/_slide-toggle-theme.scss +21 -26
  396. package/slider/_slider-theme.scss +24 -41
  397. package/tabs/_tabs-common.scss +14 -0
  398. package/tabs/testing/index.d.ts +1 -1
  399. package/core/mdc-helpers/_mdc-helpers.scss +0 -60
@@ -1,4 +1,3 @@
1
- @use '@material/switch/switch-theme' as mdc-switch-theme;
2
1
  @use '../core/style/sass-utils';
3
2
  @use '../core/theming/theming';
4
3
  @use '../core/theming/inspection';
@@ -16,12 +15,12 @@
16
15
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
17
16
  } @else {
18
17
  @include sass-utils.current-selector-or-root() {
19
- $mat-tokens: tokens-mat-switch.get-unthemable-tokens();
20
- $mdc-tokens: tokens-mdc-switch.get-unthemable-tokens();
21
- @include mdc-switch-theme.theme($mdc-tokens);
18
+ @include token-utils.create-token-values(tokens-mdc-switch.$prefix,
19
+ tokens-mdc-switch.get-unthemable-tokens());
22
20
 
23
21
  .mat-mdc-slide-toggle {
24
- @include token-utils.create-token-values(tokens-mat-switch.$prefix, $mat-tokens);
22
+ @include token-utils.create-token-values(tokens-mat-switch.$prefix,
23
+ tokens-mat-switch.get-unthemable-tokens());
25
24
  }
26
25
  }
27
26
  }
@@ -36,13 +35,12 @@
36
35
  @if inspection.get-theme-version($theme) == 1 {
37
36
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, color), $options...);
38
37
  } @else {
39
- $is-dark: inspection.get-theme-type($theme) == dark;
40
- $mat-tokens: tokens-mat-switch.get-color-tokens($theme);
41
38
  $mdc-tokens: tokens-mdc-switch.get-color-tokens($theme);
42
39
 
43
40
  // Add values for MDC slide toggles tokens
44
41
  @include sass-utils.current-selector-or-root() {
45
- @include mdc-switch-theme.theme($mdc-tokens);
42
+ @include token-utils.create-token-values(tokens-mdc-switch.$prefix,
43
+ tokens-mdc-switch.get-color-tokens($theme));
46
44
 
47
45
  // TODO(wagnermaciel): Use our token system to define this css variable.
48
46
  --mdc-switch-disabled-label-text-color: #{inspection.get-theme-color(
@@ -52,19 +50,18 @@
52
50
  )};
53
51
 
54
52
  .mat-mdc-slide-toggle {
55
- @include token-utils.create-token-values(tokens-mat-switch.$prefix, $mat-tokens);
53
+ @include token-utils.create-token-values(tokens-mat-switch.$prefix,
54
+ tokens-mat-switch.get-color-tokens($theme));
56
55
 
57
56
  // Change the color palette related tokens to accent or warn if applicable
58
57
  &.mat-accent {
59
- @include mdc-switch-theme.theme(
60
- tokens-mdc-switch.private-get-color-palette-color-tokens($theme, accent)
61
- );
58
+ @include token-utils.create-token-values(tokens-mdc-switch.$prefix,
59
+ tokens-mdc-switch.private-get-color-palette-color-tokens($theme, accent));
62
60
  }
63
61
 
64
62
  &.mat-warn {
65
- @include mdc-switch-theme.theme(
66
- tokens-mdc-switch.private-get-color-palette-color-tokens($theme, warn)
67
- );
63
+ @include token-utils.create-token-values(tokens-mdc-switch.$prefix,
64
+ tokens-mdc-switch.private-get-color-palette-color-tokens($theme, warn));
68
65
  }
69
66
  }
70
67
  }
@@ -77,15 +74,13 @@
77
74
  @if inspection.get-theme-version($theme) == 1 {
78
75
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
79
76
  } @else {
80
- $mat-tokens: tokens-mat-switch.get-typography-tokens($theme);
81
- $mdc-tokens: tokens-mdc-switch.get-typography-tokens($theme);
82
-
83
- // Add values for MDC slide toggle tokens
84
77
  @include sass-utils.current-selector-or-root() {
85
- @include mdc-switch-theme.theme($mdc-tokens);
78
+ @include token-utils.create-token-values(tokens-mdc-switch.$prefix,
79
+ tokens-mdc-switch.get-typography-tokens($theme));
86
80
 
87
81
  .mat-mdc-slide-toggle {
88
- @include token-utils.create-token-values(tokens-mat-switch.$prefix, $mat-tokens);
82
+ @include token-utils.create-token-values(tokens-mat-switch.$prefix,
83
+ tokens-mat-switch.get-typography-tokens($theme));
89
84
  }
90
85
  }
91
86
  }
@@ -98,12 +93,12 @@
98
93
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
99
94
  } @else {
100
95
  @include sass-utils.current-selector-or-root() {
101
- $mat-tokens: tokens-mat-switch.get-density-tokens($theme);
102
- $mdc-tokens: tokens-mdc-switch.get-density-tokens($theme);
103
- @include mdc-switch-theme.theme(tokens-mdc-switch.get-density-tokens($theme));
96
+ @include token-utils.create-token-values(tokens-mdc-switch.$prefix,
97
+ tokens-mdc-switch.get-density-tokens($theme));
104
98
 
105
99
  .mat-mdc-slide-toggle {
106
- @include token-utils.create-token-values(tokens-mat-switch.$prefix, $mat-tokens);
100
+ @include token-utils.create-token-values(tokens-mat-switch.$prefix,
101
+ tokens-mat-switch.get-density-tokens($theme));
107
102
  }
108
103
  }
109
104
  }
@@ -158,6 +153,6 @@
158
153
  // only the mdc-switch does.
159
154
  $mat-switch-tokens: token-utils.get-tokens-for($tokens, tokens-mat-switch.$prefix);
160
155
 
161
- @include mdc-switch-theme.theme($mdc-switch-tokens);
156
+ @include token-utils.create-token-values(tokens-mdc-switch.$prefix, $mdc-switch-tokens);
162
157
  @include token-utils.create-token-values(tokens-mat-switch.$prefix, $mat-switch-tokens);
163
158
  }
@@ -1,4 +1,3 @@
1
- @use '@material/slider/slider-theme' as mdc-slider-theme;
2
1
  @use '../core/theming/theming';
3
2
  @use '../core/theming/inspection';
4
3
  @use '../core/theming/validation';
@@ -16,11 +15,11 @@
16
15
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
17
16
  }
18
17
  @else {
19
- // Add default values for tokens not related to color, typography, or density.
20
18
  @include sass-utils.current-selector-or-root() {
21
- $mat-tokens: tokens-mat-slider.get-unthemable-tokens();
22
- @include token-utils.create-token-values(tokens-mat-slider.$prefix, $mat-tokens);
23
- @include mdc-slider-theme.theme(tokens-mdc-slider.get-unthemable-tokens());
19
+ @include token-utils.create-token-values(tokens-mdc-slider.$prefix,
20
+ tokens-mdc-slider.get-unthemable-tokens());
21
+ @include token-utils.create-token-values(tokens-mat-slider.$prefix,
22
+ tokens-mat-slider.get-unthemable-tokens());
24
23
  }
25
24
  }
26
25
  }
@@ -35,40 +34,24 @@
35
34
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, color), $options...);
36
35
  }
37
36
  @else {
38
- $is-dark: inspection.get-theme-type($theme) == dark;
39
-
40
- $mdc-color-tokens: token-utils.resolve-elevation(
41
- tokens-mdc-slider.get-color-tokens($theme),
42
- handle-elevation,
43
- handle-shadow-color
44
- );
45
-
46
- $mat-slider-color-tokens: tokens-mat-slider.get-color-tokens($theme);
47
-
48
- // Add values for MDC slider tokens.
49
- @include sass-utils.current-selector-or-root() {
50
- @include mdc-slider-theme.theme($mdc-color-tokens);
51
- @include token-utils.create-token-values(
52
- tokens-mat-slider.$prefix,
53
- $mat-slider-color-tokens
54
- );
37
+ @include sass-utils.current-selector-or-root() {
38
+ @include token-utils.create-token-values(tokens-mdc-slider.$prefix,
39
+ tokens-mdc-slider.get-color-tokens($theme));
40
+ @include token-utils.create-token-values(tokens-mat-slider.$prefix,
41
+ tokens-mat-slider.get-color-tokens($theme));
55
42
 
56
- .mat-accent {
57
- @include token-utils.create-token-values(
58
- tokens-mat-slider.$prefix,
59
- tokens-mat-slider.private-get-color-palette-color-tokens($theme, accent),
60
- );
61
- @include mdc-slider-theme.theme(
62
- tokens-mdc-slider.private-get-color-palette-color-tokens($theme, accent));
63
- }
43
+ .mat-accent {
44
+ @include token-utils.create-token-values(tokens-mdc-slider.$prefix,
45
+ tokens-mdc-slider.private-get-color-palette-color-tokens($theme, accent));
46
+ @include token-utils.create-token-values(tokens-mat-slider.$prefix,
47
+ tokens-mat-slider.private-get-color-palette-color-tokens($theme, accent));
48
+ }
64
49
 
65
50
  .mat-warn {
66
- @include token-utils.create-token-values(
67
- tokens-mat-slider.$prefix,
68
- tokens-mat-slider.private-get-color-palette-color-tokens($theme, warn),
69
- );
70
- @include mdc-slider-theme.theme(
71
- tokens-mdc-slider.private-get-color-palette-color-tokens($theme, warn));
51
+ @include token-utils.create-token-values(tokens-mdc-slider.$prefix,
52
+ tokens-mdc-slider.private-get-color-palette-color-tokens($theme, warn));
53
+ @include token-utils.create-token-values(tokens-mat-slider.$prefix,
54
+ tokens-mat-slider.private-get-color-palette-color-tokens($theme, warn));
72
55
  }
73
56
  }
74
57
  }
@@ -82,9 +65,9 @@
82
65
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
83
66
  }
84
67
  @else {
85
- // Add values for MDC slider tokens.
86
68
  @include sass-utils.current-selector-or-root() {
87
- @include mdc-slider-theme.theme(tokens-mdc-slider.get-typography-tokens($theme));
69
+ @include token-utils.create-token-values(tokens-mdc-slider.$prefix,
70
+ tokens-mdc-slider.get-typography-tokens($theme));
88
71
  }
89
72
  }
90
73
  }
@@ -97,9 +80,9 @@
97
80
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
98
81
  }
99
82
  @else {
100
- // Add values for MDC slider tokens.
101
83
  @include sass-utils.current-selector-or-root() {
102
- @include mdc-slider-theme.theme(tokens-mdc-slider.get-density-tokens($theme));
84
+ @include token-utils.create-token-values(tokens-mdc-slider.$prefix,
85
+ tokens-mdc-slider.get-density-tokens($theme));
103
86
  }
104
87
  }
105
88
  }
@@ -144,6 +127,6 @@
144
127
  'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
145
128
  $mdc-slider-tokens: token-utils.get-tokens-for($tokens, tokens-mdc-slider.$prefix, $options...);
146
129
  $mat-slider-tokens: token-utils.get-tokens-for($tokens, tokens-mat-slider.$prefix, $options...);
147
- @include mdc-slider-theme.theme($mdc-slider-tokens);
130
+ @include token-utils.create-token-values(tokens-mdc-slider.$prefix, $mdc-slider-tokens);
148
131
  @include token-utils.create-token-values(tokens-mat-slider.$prefix, $mat-slider-tokens);
149
132
  }
@@ -393,6 +393,20 @@ $mat-tab-animation-duration: 500ms !default;
393
393
  [mat-align-tabs='end'] > #{$parent} & {
394
394
  justify-content: flex-end;
395
395
  }
396
+
397
+ // Prevent the header from collapsing when it is a drop list. This is useful,
398
+ // because its height may become zero once all the tabs are dragged out.
399
+ // Note that ideally we would do this by default, rather than only in a drop
400
+ // list, but it ended up being hugely breaking internally.
401
+ .cdk-drop-list &,
402
+ &.cdk-drop-list {
403
+ @include token-utils.use-tokens(
404
+ tokens-mdc-secondary-navigation-tab.$prefix,
405
+ tokens-mdc-secondary-navigation-tab.get-token-slots()
406
+ ) {
407
+ @include token-utils.create-token-slot(min-height, container-height);
408
+ }
409
+ }
396
410
  }
397
411
 
398
412
  // Structural styles for the element that wraps the paginated container's content.
@@ -30,7 +30,7 @@ export declare class MatTabGroupHarness extends ComponentHarness {
30
30
  selectTab(filter?: TabHarnessFilters): Promise<void>;
31
31
  }
32
32
 
33
- /** Harness for interacting with an MDC_based Angular Material tab in tests. */
33
+ /** Harness for interacting with an Angular Material tab in tests. */
34
34
  export declare class MatTabHarness extends ContentContainerComponentHarness<string> {
35
35
  /** The selector for the host element of a `MatTab` instance. */
36
36
  static hostSelector: string;
@@ -1,60 +0,0 @@
1
- // TODO(mmalerba): this file should be split into separate cohesive partials for things like
2
- // "theming", "typography", "core".
3
- @use 'sass:string';
4
- @use '../typography/typography';
5
- @use '@material/feature-targeting' as mdc-feature-targeting;
6
- @use '@material/theme/theme-color' as mdc-theme-color;
7
- @use '@material/theme/css' as mdc-theme-css;
8
-
9
- // A set of standard queries to use with MDC's queryable mixins.
10
- $mdc-base-styles-query: mdc-feature-targeting.without(mdc-feature-targeting.any(color, typography));
11
- $mdc-base-styles-without-animation-query:
12
- mdc-feature-targeting.all($mdc-base-styles-query, mdc-feature-targeting.without(animation));
13
- $mdc-theme-styles-query: color;
14
- $mdc-typography-styles-query: typography;
15
-
16
- // MDC logs a warning if the `contrast-tone` function is called with a CSS variable.
17
- // This function falls back to determining the tone based on whether the theme is light or dark.
18
- @function variable-safe-contrast-tone($value, $is-dark) {
19
- @if ($value == 'dark' or $value == 'light' or type-of($value) == 'color') {
20
- @return mdc-theme-color.contrast-tone($value);
21
- }
22
-
23
- @return if($is-dark, 'light', 'dark');
24
- }
25
-
26
- // Function to create an Angular Material typography config from MDC's predefined typography levels.
27
- // This is used for components where we accidentally ended up supporting null typography configs
28
- // that were silently falling back to MDC's typography. At the moment of writing this includes
29
- // `dialog`, `slider` and `tooltip`.
30
- // Important! We shouldn't introduce any new usages of this pattern and we should eventually clean
31
- // up any existing usages.
32
- @function private-fallback-typography-from-mdc() {
33
- // This is very close to what we have in `define-typography-config`, but we can't use it here,
34
- // because it would cause a circular import and moving it here doesn't make sense.
35
- $font-family: string.unquote('Roboto, sans-serif');
36
- @return (
37
- font-family: $font-family,
38
- headline-1: typography.typography-config-level-from-mdc(headline1, $font-family),
39
- headline-2: typography.typography-config-level-from-mdc(headline2, $font-family),
40
- headline-3: typography.typography-config-level-from-mdc(headline3, $font-family),
41
- headline-4: typography.typography-config-level-from-mdc(headline4, $font-family),
42
- headline-5: typography.typography-config-level-from-mdc(headline5, $font-family),
43
- headline-6: typography.typography-config-level-from-mdc(headline6, $font-family),
44
- subtitle-1: typography.typography-config-level-from-mdc(subtitle1, $font-family),
45
- subtitle-2: typography.typography-config-level-from-mdc(subtitle2, $font-family),
46
- body-1: typography.typography-config-level-from-mdc(body1, $font-family),
47
- body-2: typography.typography-config-level-from-mdc(body2, $font-family),
48
- caption: typography.typography-config-level-from-mdc(caption, $font-family),
49
- button: typography.typography-config-level-from-mdc(button, $font-family),
50
- overline: typography.typography-config-level-from-mdc(overline, $font-family),
51
- );
52
- }
53
-
54
- // Disables MDC's CSS custom property fallbacks for the specified mixin content.
55
- @mixin disable-mdc-fallback-declarations {
56
- $previous-value: mdc-theme-css.$enable-fallback-declarations;
57
- mdc-theme-css.$enable-fallback-declarations: false;
58
- @content;
59
- mdc-theme-css.$enable-fallback-declarations: $previous-value;
60
- }