@angular/material 18.0.0-next.5 → 18.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (376) hide show
  1. package/_index.scss +67 -60
  2. package/autocomplete/_autocomplete-theme.scss +7 -0
  3. package/badge/_badge-theme.scss +9 -0
  4. package/bottom-sheet/_bottom-sheet-theme.scss +7 -0
  5. package/button/_button-theme.scss +25 -0
  6. package/button/_fab-theme.scss +13 -0
  7. package/button/_icon-button-theme.scss +8 -0
  8. package/button-toggle/_button-toggle-theme.scss +12 -0
  9. package/card/_card-theme.scss +9 -0
  10. package/checkbox/_checkbox-theme.scss +2 -4
  11. package/chips/_chips-theme.scss +10 -0
  12. package/core/_core-theme.scss +17 -0
  13. package/core/m2/_index.scss +52 -0
  14. package/core/m2/_theming.scss +295 -0
  15. package/core/{typography/_property-getters.scss → m2/_typography-utils.scss} +14 -0
  16. package/core/{typography/_definition.scss → m2/_typography.scss} +1 -1
  17. package/core/option/_optgroup-theme.scss +7 -0
  18. package/core/option/_option-theme.scss +9 -0
  19. package/core/ripple/_ripple-theme.scss +7 -0
  20. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +13 -0
  21. package/core/style/_sass-utils.scss +14 -1
  22. package/core/theming/_color-api-backwards-compatibility.scss +128 -0
  23. package/core/theming/_config-validation.scss +173 -0
  24. package/core/theming/_definition.scss +113 -0
  25. package/core/theming/_m2-inspection.scss +23 -22
  26. package/core/theming/_palettes.scss +947 -0
  27. package/core/theming/_theming-deprecated.scss +9 -9
  28. package/core/theming/_theming.scss +73 -339
  29. package/core/tokens/_density.scss +191 -0
  30. package/core/tokens/_format-tokens.scss +5 -0
  31. package/core/tokens/_m3-tokens.scss +382 -0
  32. package/core/tokens/_token-utils.scss +179 -42
  33. package/core/tokens/m2/mat/_chip.scss +3 -3
  34. package/core/tokens/m2/mat/_form-field.scss +3 -3
  35. package/core/tokens/m2/mat/_switch.scss +1 -0
  36. package/core/tokens/m2/mdc/_checkbox.scss +3 -2
  37. package/core/tokens/m2/mdc/_chip.scss +3 -3
  38. package/core/tokens/m2/mdc/_radio.scss +3 -2
  39. package/core/tokens/m3/_index.scss +161 -0
  40. package/core/tokens/m3/mat/_app.scss +19 -0
  41. package/core/tokens/m3/mat/_autocomplete.scss +22 -0
  42. package/core/tokens/m3/mat/_badge.scss +77 -0
  43. package/core/tokens/m3/mat/_bottom-sheet.scss +24 -0
  44. package/core/tokens/m3/mat/_card.scss +24 -0
  45. package/core/tokens/m3/mat/_checkbox.scss +21 -0
  46. package/core/tokens/m3/mat/_chip.scss +46 -0
  47. package/core/tokens/m3/mat/_datepicker.scss +123 -0
  48. package/core/tokens/m3/mat/_dialog.scss +30 -0
  49. package/core/tokens/m3/mat/_divider.scss +19 -0
  50. package/core/tokens/m3/mat/_expansion.scss +41 -0
  51. package/core/tokens/m3/mat/_fab-small.scss +50 -0
  52. package/core/tokens/m3/mat/_fab.scss +50 -0
  53. package/core/tokens/m3/mat/_filled-button.scss +54 -0
  54. package/core/tokens/m3/mat/_form-field.scss +59 -0
  55. package/core/tokens/m3/mat/_full-pseudo-checkbox.scss +42 -0
  56. package/core/tokens/m3/mat/_grid-list.scss +21 -0
  57. package/core/tokens/m3/mat/_icon-button.scss +27 -0
  58. package/core/tokens/m3/mat/_icon.scss +33 -0
  59. package/core/tokens/m3/mat/_list.scss +19 -0
  60. package/core/tokens/m3/mat/_menu.scss +42 -0
  61. package/core/tokens/m3/mat/_minimal-pseudo-checkbox.scss +33 -0
  62. package/core/tokens/m3/mat/_optgroup.scss +22 -0
  63. package/core/tokens/m3/mat/_option.scss +55 -0
  64. package/core/tokens/m3/mat/_outlined-button.scss +54 -0
  65. package/core/tokens/m3/mat/_paginator.scss +27 -0
  66. package/core/tokens/m3/mat/_protected-button.scss +55 -0
  67. package/core/tokens/m3/mat/_radio.scss +34 -0
  68. package/core/tokens/m3/mat/_ripple.scss +19 -0
  69. package/core/tokens/m3/mat/_select.scss +46 -0
  70. package/core/tokens/m3/mat/_sidenav.scss +28 -0
  71. package/core/tokens/m3/mat/_slider.scss +56 -0
  72. package/core/tokens/m3/mat/_snack-bar.scss +18 -0
  73. package/core/tokens/m3/mat/_sort.scss +18 -0
  74. package/core/tokens/m3/mat/_standard-button-toggle.scss +57 -0
  75. package/core/tokens/m3/mat/_stepper.scss +79 -0
  76. package/core/tokens/m3/mat/_switch.scss +45 -0
  77. package/core/tokens/m3/mat/_tab-header.scss +51 -0
  78. package/core/tokens/m3/mat/_table.scss +28 -0
  79. package/core/tokens/m3/mat/_text-button.scss +55 -0
  80. package/core/tokens/m3/mat/_toolbar.scss +23 -0
  81. package/core/tokens/m3/mat/_tree.scss +22 -0
  82. package/core/tokens/m3/mdc/_checkbox.scss +110 -0
  83. package/core/tokens/m3/mdc/_chip.scss +91 -0
  84. package/core/tokens/m3/mdc/_circular-progress.scss +29 -0
  85. package/core/tokens/m3/mdc/_dialog.scss +39 -0
  86. package/core/tokens/m3/mdc/_elevated-card.scss +15 -0
  87. package/core/tokens/m3/mdc/_extended-fab.scss +21 -0
  88. package/core/tokens/m3/mdc/_fab-small.scss +21 -0
  89. package/core/tokens/m3/mdc/_fab.scss +21 -0
  90. package/core/tokens/m3/mdc/_filled-button.scss +86 -0
  91. package/core/tokens/m3/mdc/_filled-text-field.scss +92 -0
  92. package/core/tokens/m3/mdc/_form-field.scss +25 -0
  93. package/core/tokens/m3/mdc/_icon-button.scss +39 -0
  94. package/core/tokens/m3/mdc/_linear-progress.scss +32 -0
  95. package/core/tokens/m3/mdc/_list.scss +37 -0
  96. package/core/tokens/m3/mdc/_outlined-button.scss +83 -0
  97. package/core/tokens/m3/mdc/_outlined-card.scss +15 -0
  98. package/core/tokens/m3/mdc/_outlined-text-field.scss +85 -0
  99. package/core/tokens/m3/mdc/_plain-tooltip.scss +15 -0
  100. package/core/tokens/m3/mdc/_protected-button.scss +84 -0
  101. package/core/tokens/m3/mdc/_radio.scss +46 -0
  102. package/core/tokens/m3/mdc/_slider.scss +61 -0
  103. package/core/tokens/m3/mdc/_snack-bar.scss +15 -0
  104. package/core/tokens/m3/mdc/_switch.scss +70 -0
  105. package/core/tokens/m3/mdc/_tab-indicator.scss +33 -0
  106. package/core/tokens/m3/mdc/_tab.scss +15 -0
  107. package/core/tokens/m3/mdc/_text-button.scss +79 -0
  108. package/core/typography/_all-typography.scss +3 -2
  109. package/core/typography/_typography-utils.scss +0 -26
  110. package/core/typography/_typography.scss +0 -2
  111. package/core/typography/_versioning.scss +3 -3
  112. package/datepicker/_datepicker-theme.scss +9 -0
  113. package/datepicker/index.d.ts +5 -0
  114. package/dialog/_dialog-theme.scss +8 -0
  115. package/dialog/index.d.ts +4 -3
  116. package/divider/_divider-theme.scss +7 -0
  117. package/esm2022/autocomplete/autocomplete-origin.mjs +3 -3
  118. package/esm2022/autocomplete/autocomplete-trigger.mjs +3 -3
  119. package/esm2022/autocomplete/autocomplete.mjs +3 -3
  120. package/esm2022/autocomplete/module.mjs +4 -4
  121. package/esm2022/badge/badge-module.mjs +4 -4
  122. package/esm2022/badge/badge.mjs +6 -6
  123. package/esm2022/bottom-sheet/bottom-sheet-container.mjs +3 -3
  124. package/esm2022/bottom-sheet/bottom-sheet-module.mjs +4 -4
  125. package/esm2022/bottom-sheet/bottom-sheet.mjs +3 -3
  126. package/esm2022/button/button-base.mjs +6 -6
  127. package/esm2022/button/button.mjs +6 -6
  128. package/esm2022/button/fab.mjs +12 -12
  129. package/esm2022/button/icon-button.mjs +6 -6
  130. package/esm2022/button/module.mjs +4 -4
  131. package/esm2022/button-toggle/button-toggle-module.mjs +4 -4
  132. package/esm2022/button-toggle/button-toggle.mjs +6 -6
  133. package/esm2022/card/card.mjs +42 -42
  134. package/esm2022/card/module.mjs +4 -4
  135. package/esm2022/checkbox/checkbox-required-validator.mjs +3 -3
  136. package/esm2022/checkbox/checkbox.mjs +3 -3
  137. package/esm2022/checkbox/module.mjs +8 -8
  138. package/esm2022/chips/chip-action.mjs +3 -3
  139. package/esm2022/chips/chip-edit-input.mjs +3 -3
  140. package/esm2022/chips/chip-grid.mjs +3 -3
  141. package/esm2022/chips/chip-icons.mjs +9 -9
  142. package/esm2022/chips/chip-input.mjs +3 -3
  143. package/esm2022/chips/chip-listbox.mjs +3 -3
  144. package/esm2022/chips/chip-option.mjs +3 -3
  145. package/esm2022/chips/chip-row.mjs +3 -3
  146. package/esm2022/chips/chip-set.mjs +3 -3
  147. package/esm2022/chips/chip.mjs +3 -3
  148. package/esm2022/chips/module.mjs +4 -4
  149. package/esm2022/core/common-behaviors/common-module.mjs +4 -4
  150. package/esm2022/core/datetime/index.mjs +8 -8
  151. package/esm2022/core/datetime/native-date-adapter.mjs +3 -3
  152. package/esm2022/core/error/error-options.mjs +6 -6
  153. package/esm2022/core/internal-form-field/internal-form-field.mjs +3 -3
  154. package/esm2022/core/line/line.mjs +7 -7
  155. package/esm2022/core/option/index.mjs +4 -4
  156. package/esm2022/core/option/optgroup.mjs +3 -3
  157. package/esm2022/core/option/option.mjs +3 -3
  158. package/esm2022/core/private/ripple-loader.mjs +3 -3
  159. package/esm2022/core/ripple/index.mjs +4 -4
  160. package/esm2022/core/ripple/ripple.mjs +3 -3
  161. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +4 -4
  162. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
  163. package/esm2022/core/version.mjs +1 -1
  164. package/esm2022/datepicker/calendar-body.mjs +3 -3
  165. package/esm2022/datepicker/calendar.mjs +6 -6
  166. package/esm2022/datepicker/date-range-input-parts.mjs +9 -9
  167. package/esm2022/datepicker/date-range-input.mjs +9 -4
  168. package/esm2022/datepicker/date-range-picker.mjs +3 -3
  169. package/esm2022/datepicker/date-range-selection-strategy.mjs +3 -3
  170. package/esm2022/datepicker/date-selection-model.mjs +9 -9
  171. package/esm2022/datepicker/datepicker-actions.mjs +9 -9
  172. package/esm2022/datepicker/datepicker-base.mjs +6 -6
  173. package/esm2022/datepicker/datepicker-input-base.mjs +3 -3
  174. package/esm2022/datepicker/datepicker-input.mjs +3 -3
  175. package/esm2022/datepicker/datepicker-intl.mjs +3 -3
  176. package/esm2022/datepicker/datepicker-module.mjs +4 -4
  177. package/esm2022/datepicker/datepicker-toggle.mjs +6 -6
  178. package/esm2022/datepicker/datepicker.mjs +3 -3
  179. package/esm2022/datepicker/month-view.mjs +3 -3
  180. package/esm2022/datepicker/multi-year-view.mjs +3 -3
  181. package/esm2022/datepicker/year-view.mjs +3 -3
  182. package/esm2022/dialog/dialog-container.mjs +3 -3
  183. package/esm2022/dialog/dialog-content-directives.mjs +19 -16
  184. package/esm2022/dialog/dialog.mjs +3 -3
  185. package/esm2022/dialog/module.mjs +4 -4
  186. package/esm2022/divider/divider-module.mjs +4 -4
  187. package/esm2022/divider/divider.mjs +3 -3
  188. package/esm2022/expansion/accordion.mjs +3 -3
  189. package/esm2022/expansion/expansion-module.mjs +4 -4
  190. package/esm2022/expansion/expansion-panel-content.mjs +3 -3
  191. package/esm2022/expansion/expansion-panel-header.mjs +9 -9
  192. package/esm2022/expansion/expansion-panel.mjs +6 -6
  193. package/esm2022/form-field/directives/error.mjs +3 -3
  194. package/esm2022/form-field/directives/floating-label.mjs +3 -3
  195. package/esm2022/form-field/directives/hint.mjs +3 -3
  196. package/esm2022/form-field/directives/label.mjs +3 -3
  197. package/esm2022/form-field/directives/line-ripple.mjs +3 -3
  198. package/esm2022/form-field/directives/notched-outline.mjs +3 -3
  199. package/esm2022/form-field/directives/prefix.mjs +3 -3
  200. package/esm2022/form-field/directives/suffix.mjs +3 -3
  201. package/esm2022/form-field/form-field-control.mjs +4 -4
  202. package/esm2022/form-field/form-field.mjs +6 -6
  203. package/esm2022/form-field/module.mjs +4 -4
  204. package/esm2022/grid-list/grid-list-module.mjs +4 -4
  205. package/esm2022/grid-list/grid-list.mjs +3 -3
  206. package/esm2022/grid-list/grid-tile.mjs +15 -15
  207. package/esm2022/icon/icon-module.mjs +4 -4
  208. package/esm2022/icon/icon-registry.mjs +3 -3
  209. package/esm2022/icon/icon.mjs +3 -3
  210. package/esm2022/icon/testing/fake-icon-registry.mjs +7 -7
  211. package/esm2022/input/input.mjs +3 -3
  212. package/esm2022/input/module.mjs +4 -4
  213. package/esm2022/list/action-list.mjs +3 -3
  214. package/esm2022/list/list-base.mjs +6 -6
  215. package/esm2022/list/list-item-sections.mjs +18 -18
  216. package/esm2022/list/list-module.mjs +4 -4
  217. package/esm2022/list/list-option.mjs +3 -3
  218. package/esm2022/list/list.mjs +6 -6
  219. package/esm2022/list/nav-list.mjs +3 -3
  220. package/esm2022/list/selection-list.mjs +3 -3
  221. package/esm2022/list/subheader.mjs +3 -3
  222. package/esm2022/menu/menu-content.mjs +3 -3
  223. package/esm2022/menu/menu-item.mjs +3 -3
  224. package/esm2022/menu/menu-trigger.mjs +3 -3
  225. package/esm2022/menu/menu.mjs +3 -3
  226. package/esm2022/menu/module.mjs +4 -4
  227. package/esm2022/paginator/module.mjs +4 -4
  228. package/esm2022/paginator/paginator-intl.mjs +3 -3
  229. package/esm2022/paginator/paginator.mjs +3 -3
  230. package/esm2022/progress-bar/module.mjs +4 -4
  231. package/esm2022/progress-bar/progress-bar.mjs +5 -5
  232. package/esm2022/progress-spinner/module.mjs +4 -4
  233. package/esm2022/progress-spinner/progress-spinner.mjs +3 -3
  234. package/esm2022/radio/module.mjs +4 -4
  235. package/esm2022/radio/radio.mjs +6 -6
  236. package/esm2022/select/module.mjs +4 -4
  237. package/esm2022/select/select.mjs +12 -7
  238. package/esm2022/sidenav/drawer.mjs +9 -9
  239. package/esm2022/sidenav/sidenav-module.mjs +4 -4
  240. package/esm2022/sidenav/sidenav.mjs +9 -9
  241. package/esm2022/slide-toggle/module.mjs +8 -8
  242. package/esm2022/slide-toggle/slide-toggle-required-validator.mjs +3 -3
  243. package/esm2022/slide-toggle/slide-toggle.mjs +6 -6
  244. package/esm2022/slider/module.mjs +4 -4
  245. package/esm2022/slider/slider-input.mjs +6 -6
  246. package/esm2022/slider/slider-thumb.mjs +3 -3
  247. package/esm2022/slider/slider.mjs +3 -3
  248. package/esm2022/snack-bar/module.mjs +4 -4
  249. package/esm2022/snack-bar/simple-snack-bar.mjs +3 -3
  250. package/esm2022/snack-bar/snack-bar-container.mjs +3 -3
  251. package/esm2022/snack-bar/snack-bar-content.mjs +9 -9
  252. package/esm2022/snack-bar/snack-bar.mjs +3 -3
  253. package/esm2022/sort/sort-header-intl.mjs +3 -3
  254. package/esm2022/sort/sort-header.mjs +3 -3
  255. package/esm2022/sort/sort-module.mjs +4 -4
  256. package/esm2022/sort/sort.mjs +3 -3
  257. package/esm2022/stepper/step-content.mjs +3 -3
  258. package/esm2022/stepper/step-header.mjs +3 -3
  259. package/esm2022/stepper/step-label.mjs +3 -3
  260. package/esm2022/stepper/stepper-button.mjs +6 -6
  261. package/esm2022/stepper/stepper-icon.mjs +3 -3
  262. package/esm2022/stepper/stepper-intl.mjs +3 -3
  263. package/esm2022/stepper/stepper-module.mjs +4 -4
  264. package/esm2022/stepper/stepper.mjs +6 -6
  265. package/esm2022/table/cell.mjs +21 -21
  266. package/esm2022/table/module.mjs +4 -4
  267. package/esm2022/table/row.mjs +21 -21
  268. package/esm2022/table/table.mjs +6 -6
  269. package/esm2022/table/text-column.mjs +3 -3
  270. package/esm2022/tabs/ink-bar.mjs +3 -3
  271. package/esm2022/tabs/module.mjs +4 -4
  272. package/esm2022/tabs/paginated-tab-header.mjs +3 -3
  273. package/esm2022/tabs/tab-body.mjs +6 -6
  274. package/esm2022/tabs/tab-content.mjs +3 -3
  275. package/esm2022/tabs/tab-group.mjs +3 -3
  276. package/esm2022/tabs/tab-header.mjs +3 -3
  277. package/esm2022/tabs/tab-label-wrapper.mjs +3 -3
  278. package/esm2022/tabs/tab-label.mjs +3 -3
  279. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +9 -9
  280. package/esm2022/tabs/tab.mjs +3 -3
  281. package/esm2022/toolbar/toolbar-module.mjs +4 -4
  282. package/esm2022/toolbar/toolbar.mjs +6 -6
  283. package/esm2022/tooltip/module.mjs +4 -4
  284. package/esm2022/tooltip/tooltip.mjs +6 -6
  285. package/esm2022/tree/node.mjs +9 -9
  286. package/esm2022/tree/outlet.mjs +3 -3
  287. package/esm2022/tree/padding.mjs +3 -3
  288. package/esm2022/tree/toggle.mjs +3 -3
  289. package/esm2022/tree/tree-module.mjs +4 -4
  290. package/esm2022/tree/tree.mjs +3 -3
  291. package/expansion/_expansion-theme.scss +7 -0
  292. package/fesm2022/autocomplete.mjs +13 -13
  293. package/fesm2022/badge.mjs +10 -10
  294. package/fesm2022/bottom-sheet.mjs +10 -10
  295. package/fesm2022/button-toggle.mjs +10 -10
  296. package/fesm2022/button.mjs +34 -34
  297. package/fesm2022/card.mjs +46 -46
  298. package/fesm2022/checkbox.mjs +14 -14
  299. package/fesm2022/chips.mjs +40 -40
  300. package/fesm2022/core.mjs +59 -59
  301. package/fesm2022/core.mjs.map +1 -1
  302. package/fesm2022/datepicker.mjs +87 -82
  303. package/fesm2022/datepicker.mjs.map +1 -1
  304. package/fesm2022/dialog.mjs +28 -25
  305. package/fesm2022/dialog.mjs.map +1 -1
  306. package/fesm2022/divider.mjs +7 -7
  307. package/fesm2022/expansion.mjs +25 -25
  308. package/fesm2022/form-field.mjs +36 -36
  309. package/fesm2022/form-field.mjs.map +1 -1
  310. package/fesm2022/grid-list.mjs +22 -22
  311. package/fesm2022/icon/testing.mjs +7 -7
  312. package/fesm2022/icon.mjs +10 -10
  313. package/fesm2022/input.mjs +7 -7
  314. package/fesm2022/list.mjs +49 -49
  315. package/fesm2022/menu.mjs +16 -16
  316. package/fesm2022/paginator.mjs +10 -10
  317. package/fesm2022/progress-bar.mjs +8 -8
  318. package/fesm2022/progress-bar.mjs.map +1 -1
  319. package/fesm2022/progress-spinner.mjs +7 -7
  320. package/fesm2022/radio.mjs +10 -10
  321. package/fesm2022/select.mjs +15 -10
  322. package/fesm2022/select.mjs.map +1 -1
  323. package/fesm2022/sidenav.mjs +22 -22
  324. package/fesm2022/slide-toggle.mjs +16 -16
  325. package/fesm2022/slide-toggle.mjs.map +1 -1
  326. package/fesm2022/slider.mjs +16 -16
  327. package/fesm2022/snack-bar.mjs +22 -22
  328. package/fesm2022/sort.mjs +13 -13
  329. package/fesm2022/stepper.mjs +31 -31
  330. package/fesm2022/table.mjs +55 -55
  331. package/fesm2022/tabs.mjs +43 -43
  332. package/fesm2022/toolbar.mjs +10 -10
  333. package/fesm2022/tooltip.mjs +10 -10
  334. package/fesm2022/tree.mjs +25 -25
  335. package/form-field/_form-field-theme.scss +15 -0
  336. package/form-field/index.d.ts +6 -0
  337. package/grid-list/_grid-list-theme.scss +7 -0
  338. package/icon/_icon-theme.scss +9 -0
  339. package/input/_input-theme.scss +8 -0
  340. package/list/_list-theme.scss +8 -0
  341. package/menu/_menu-theme.scss +7 -0
  342. package/package.json +3 -2
  343. package/paginator/_paginator-theme.scss +7 -0
  344. package/prebuilt-themes/azure-blue.css +1 -1
  345. package/prebuilt-themes/cyan-orange.css +1 -1
  346. package/prebuilt-themes/deeppurple-amber.css +1 -1
  347. package/prebuilt-themes/indigo-pink.css +1 -1
  348. package/prebuilt-themes/magenta-violet.css +1 -1
  349. package/prebuilt-themes/pink-bluegrey.css +1 -1
  350. package/prebuilt-themes/purple-green.css +1 -1
  351. package/prebuilt-themes/rose-red.css +1 -1
  352. package/progress-bar/_progress-bar-theme.scss +11 -0
  353. package/progress-spinner/_progress-spinner-theme.scss +11 -0
  354. package/radio/_radio-theme.scss +10 -0
  355. package/schematics/ng-add/index.js +1 -1
  356. package/schematics/ng-add/index.mjs +1 -1
  357. package/schematics/ng-add/theming/create-custom-theme.js +5 -6
  358. package/schematics/ng-add/theming/create-custom-theme.mjs +5 -6
  359. package/schematics/ng-generate/m3-theme/index_bundled.js +4 -4
  360. package/schematics/ng-generate/m3-theme/index_bundled.js.map +1 -1
  361. package/schematics/ng-update/index_bundled.js +240 -26
  362. package/schematics/ng-update/index_bundled.js.map +4 -4
  363. package/select/_select-theme.scss +9 -0
  364. package/select/index.d.ts +5 -0
  365. package/sidenav/_sidenav-theme.scss +7 -0
  366. package/slide-toggle/_slide-toggle-theme.scss +11 -0
  367. package/slider/_slider-theme.scss +10 -0
  368. package/snack-bar/_snack-bar-theme.scss +10 -0
  369. package/sort/_sort-theme.scss +7 -0
  370. package/stepper/_stepper-theme.scss +9 -0
  371. package/table/_table-theme.scss +7 -0
  372. package/tabs/_tabs-theme.scss +20 -0
  373. package/toolbar/_toolbar-theme.scss +9 -0
  374. package/tooltip/_tooltip-theme.scss +8 -0
  375. package/tree/_tree-theme.scss +7 -0
  376. /package/core/{theming → m2}/_palette.scss +0 -0
@@ -0,0 +1,24 @@
1
+ @use 'sass:map';
2
+ @use '../../../style/sass-utils';
3
+ @use '../../token-utils';
4
+
5
+ // The prefix used to generate the fully qualified name for tokens in this file.
6
+ $prefix: (mat, bottom-sheet);
7
+
8
+ /// Generates custom tokens for the mat-bottom-sheet.
9
+ /// @param {Map} $systems The MDC system tokens
10
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
11
+ /// @param {Map} $token-slots Possible token slots
12
+ /// @return {Map} A set of custom tokens for the mat-bottom-sheet
13
+ @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
14
+ $tokens: sass-utils.merge-all(
15
+ token-utils.generate-typography-tokens($systems, container-text, body-large),
16
+ (
17
+ container-shape: token-utils.hardcode(28px, $exclude-hardcoded),
18
+ container-text-color: map.get($systems, md-sys-color, on-surface),
19
+ container-background-color: map.get($systems, md-sys-color, surface-container-low),
20
+ ),
21
+ );
22
+
23
+ @return token-utils.namespace-tokens($prefix, $tokens, $token-slots);
24
+ }
@@ -0,0 +1,24 @@
1
+ @use 'sass:map';
2
+ @use '../../../style/sass-utils';
3
+ @use '../../token-utils';
4
+
5
+ // The prefix used to generate the fully qualified name for tokens in this file.
6
+ $prefix: (mat, card);
7
+
8
+ /// Generates custom tokens for the mat-card.
9
+ /// @param {Map} $systems The MDC system tokens
10
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
11
+ /// @param {Map} $token-slots Possible token slots
12
+ /// @return {Map} A set of custom tokens for the mat-card
13
+ @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
14
+ $tokens: sass-utils.merge-all(
15
+ token-utils.generate-typography-tokens($systems, title-text, title-large),
16
+ token-utils.generate-typography-tokens($systems, subtitle-text, title-medium),
17
+ (
18
+ subtitle-text-color: map.get($systems, md-sys-color, on-surface)
19
+ )
20
+ );
21
+
22
+ @return token-utils.namespace-tokens($prefix, $tokens, $token-slots);
23
+ }
24
+
@@ -0,0 +1,21 @@
1
+ @use 'sass:map';
2
+ @use '../../../style/sass-utils';
3
+ @use '../../token-utils';
4
+
5
+ // The prefix used to generate the fully qualified name for tokens in this file.
6
+ $prefix: (mat, checkbox);
7
+
8
+ /// Generates custom tokens for mat-checkbox.
9
+ /// @param {Map} $systems The MDC system tokens
10
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
11
+ /// @param {Map} $token-slots Possible token slots
12
+ /// @return {Map} A set of custom tokens for mat-checkbox
13
+ @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
14
+ $tokens: (
15
+ disabled-label-color: sass-utils.safe-color-change(
16
+ map.get($systems, md-sys-color, on-surface), $alpha: 0.38),
17
+ );
18
+
19
+ @return token-utils.namespace-tokens($prefix, $tokens, $token-slots);
20
+ }
21
+
@@ -0,0 +1,46 @@
1
+ @use 'sass:map';
2
+ @use '../../token-utils';
3
+
4
+ // The prefix used to generate the fully qualified name for tokens in this file.
5
+ $prefix: (mat, chip);
6
+
7
+ /// Generates custom tokens for the mat-chip.
8
+ /// @param {Map} $systems The MDC system tokens
9
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
10
+ /// @param {Map} $token-slots Possible token slots
11
+ /// @return {Map} A set of custom tokens for the mat-chip
12
+ @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
13
+ $tokens: ((
14
+ disabled-container-opacity: token-utils.hardcode(1, $exclude-hardcoded),
15
+ selected-trailing-icon-color: map.get($systems, md-sys-color, on-secondary-container),
16
+ selected-disabled-trailing-icon-color: map.get($systems, md-sys-color, on-surface),
17
+ trailing-action-state-layer-color: map.get($systems, md-sys-color, on-surface-variant),
18
+ selected-trailing-action-state-layer-color:
19
+ map.get($systems, md-sys-color, on-secondary-container),
20
+ trailing-action-hover-state-layer-opacity:
21
+ map.get($systems, md-sys-state, hover-state-layer-opacity),
22
+ trailing-action-focus-state-layer-opacity:
23
+ map.get($systems, md-sys-state, focus-state-layer-opacity),
24
+ trailing-action-opacity: token-utils.hardcode(1, $exclude-hardcoded),
25
+ trailing-action-focus-opacity: token-utils.hardcode(1, $exclude-hardcoded),
26
+ ), (
27
+ primary: (
28
+ selected-trailing-icon-color: map.get($systems, md-sys-color, on-primary-container),
29
+ selected-trailing-action-state-layer-color:
30
+ map.get($systems, md-sys-color, on-primary-container),
31
+ ),
32
+ secondary: (), // Default, no overrides needed.
33
+ tertiary: (
34
+ selected-trailing-icon-color: map.get($systems, md-sys-color, on-tertiary-container),
35
+ selected-trailing-action-state-layer-color:
36
+ map.get($systems, md-sys-color, on-tertiary-container),
37
+ ),
38
+ error: (
39
+ selected-trailing-icon-color: map.get($systems, md-sys-color, on-error-container),
40
+ selected-trailing-action-state-layer-color:
41
+ map.get($systems, md-sys-color, on-error-container),
42
+ ),
43
+ ));
44
+
45
+ @return token-utils.namespace-tokens($prefix, $tokens, $token-slots);
46
+ }
@@ -0,0 +1,123 @@
1
+ @use 'sass:map';
2
+ @use '../../../style/sass-utils';
3
+ @use '../../token-utils';
4
+ @use '@material/elevation' as mdc-elevation;
5
+
6
+ // The prefix used to generate the fully qualified name for tokens in this file.
7
+ $prefix: (mat, datepicker);
8
+
9
+ /// Generates custom tokens for the mat-datepicker.
10
+ /// @param {Map} $systems The MDC system tokens
11
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
12
+ /// @param {Map} $token-slots Possible token slots
13
+ /// @return {Map} A set of custom tokens for the mat-datepicker
14
+ @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
15
+ $tokens: ((
16
+ calendar-date-in-range-state-background-color:
17
+ map.get($systems, md-sys-color, primary-container),
18
+ calendar-date-in-comparison-range-state-background-color:
19
+ map.get($systems, md-sys-color, tertiary-container),
20
+ calendar-date-in-overlap-range-state-background-color:
21
+ map.get($systems, md-sys-color, secondary-container),
22
+ calendar-date-in-overlap-range-selected-state-background-color:
23
+ map.get($systems, md-sys-color, secondary),
24
+ calendar-date-selected-state-text-color: map.get($systems, md-sys-color, on-primary),
25
+ calendar-date-selected-state-background-color: map.get($systems, md-sys-color, primary),
26
+ calendar-date-selected-disabled-state-background-color: sass-utils.safe-color-change(
27
+ map.get($systems, md-sys-color, on-surface),
28
+ $alpha: 0.38
29
+ ),
30
+ calendar-date-today-selected-state-outline-color: map.get($systems, md-sys-color, primary),
31
+ calendar-date-focus-state-background-color: sass-utils.safe-color-change(
32
+ map.get($systems, md-sys-color, on-surface),
33
+ $alpha: map.get($systems, md-sys-state, focus-state-layer-opacity)
34
+ ),
35
+ calendar-date-hover-state-background-color: sass-utils.safe-color-change(
36
+ map.get($systems, md-sys-color, on-surface),
37
+ $alpha: map.get($systems, md-sys-state, hover-state-layer-opacity)
38
+ ),
39
+ toggle-active-state-icon-color: map.get($systems, md-sys-color, on-surface-variant),
40
+ toggle-icon-color: map.get($systems, md-sys-color, on-surface-variant),
41
+ calendar-body-label-text-color: map.get($systems, md-sys-color, on-surface),
42
+ calendar-period-button-text-color: map.get($systems, md-sys-color, on-surface-variant),
43
+ calendar-period-button-icon-color: map.get($systems, md-sys-color, on-surface-variant),
44
+ calendar-navigation-button-icon-color: map.get($systems, md-sys-color, on-surface-variant),
45
+ calendar-header-divider-color: token-utils.hardcode(transparent, $exclude-hardcoded),
46
+ calendar-header-text-color: map.get($systems, md-sys-color, on-surface-variant),
47
+ calendar-date-today-outline-color: map.get($systems, md-sys-color, primary),
48
+ calendar-date-today-disabled-state-outline-color: sass-utils.safe-color-change(
49
+ map.get($systems, md-sys-color, on-surface),
50
+ $alpha: 0.38
51
+ ),
52
+ calendar-date-text-color: map.get($systems, md-sys-color, on-surface),
53
+ calendar-date-outline-color: token-utils.hardcode(transparent, $exclude-hardcoded),
54
+ calendar-date-disabled-state-text-color: sass-utils.safe-color-change(
55
+ map.get($systems, md-sys-color, on-surface),
56
+ $alpha: 0.38
57
+ ),
58
+ calendar-date-preview-state-outline-color: map.get($systems, md-sys-color, primary),
59
+ range-input-separator-color: map.get($systems, md-sys-color, on-surface),
60
+ range-input-disabled-state-separator-color: sass-utils.safe-color-change(
61
+ map.get($systems, md-sys-color, on-surface),
62
+ $alpha: 0.38
63
+ ),
64
+ range-input-disabled-state-text-color: sass-utils.safe-color-change(
65
+ map.get($systems, md-sys-color, on-surface),
66
+ $alpha: 0.38
67
+ ),
68
+ calendar-container-background-color: map.get($systems, md-sys-color, surface-container-high),
69
+ calendar-container-text-color: map.get($systems, md-sys-color, on-surface),
70
+ calendar-container-elevation-shadow: token-utils.hardcode(mdc-elevation.elevation-box-shadow(0),
71
+ $exclude-hardcoded),
72
+ calendar-container-touch-elevation-shadow:
73
+ token-utils.hardcode(mdc-elevation.elevation-box-shadow(0), $exclude-hardcoded),
74
+ calendar-container-shape: map.get($systems, md-sys-shape, corner-large),
75
+ calendar-container-touch-shape: map.get($systems, md-sys-shape, corner-extra-large),
76
+ calendar-text-font: map.get($systems, md-sys-typescale, body-large-font),
77
+ calendar-text-size: map.get($systems, md-sys-typescale, body-large-size),
78
+ calendar-body-label-text-size: map.get($systems, md-sys-typescale, title-small-size),
79
+ calendar-body-label-text-weight: map.get($systems, md-sys-typescale, title-small-weight),
80
+ calendar-period-button-text-size: map.get($systems, md-sys-typescale, title-small-size),
81
+ calendar-period-button-text-weight: map.get($systems, md-sys-typescale, title-small-weight),
82
+ calendar-header-text-size: map.get($systems, md-sys-typescale, title-small-size),
83
+ calendar-header-text-weight: map.get($systems, md-sys-typescale, title-small-weight),
84
+ ), (
85
+ // Color variants:
86
+ primary: (), // Default, no overrides needed.
87
+ secondary: (
88
+ calendar-date-in-range-state-background-color:
89
+ map.get($systems, md-sys-color, secondary-container),
90
+ calendar-date-selected-state-text-color: map.get($systems, md-sys-color, on-secondary),
91
+ calendar-date-selected-state-background-color: map.get($systems, md-sys-color, secondary),
92
+ calendar-date-today-selected-state-outline-color: map.get($systems, md-sys-color, secondary),
93
+ calendar-date-today-outline-color: map.get($systems, md-sys-color, secondary),
94
+ calendar-date-preview-state-outline-color: map.get($systems, md-sys-color, secondary),
95
+ calendar-date-in-overlap-range-state-background-color:
96
+ map.get($systems, md-sys-color, primary-container),
97
+ calendar-date-in-overlap-range-selected-state-background-color:
98
+ map.get($systems, md-sys-color, primary),
99
+ ),
100
+ tertiary: (
101
+ calendar-date-in-range-state-background-color:
102
+ map.get($systems, md-sys-color, tertiary-container),
103
+ calendar-date-selected-state-text-color: map.get($systems, md-sys-color, on-tertiary),
104
+ calendar-date-selected-state-background-color: map.get($systems, md-sys-color, tertiary),
105
+ calendar-date-today-selected-state-outline-color: map.get($systems, md-sys-color, tertiary),
106
+ calendar-date-today-outline-color: map.get($systems, md-sys-color, tertiary),
107
+ calendar-date-preview-state-outline-color: map.get($systems, md-sys-color, tertiary),
108
+ calendar-date-in-comparison-range-state-background-color:
109
+ map.get($systems, md-sys-color, primary-container),
110
+ ),
111
+ error: (
112
+ calendar-date-in-range-state-background-color:
113
+ map.get($systems, md-sys-color, error-container),
114
+ calendar-date-selected-state-text-color: map.get($systems, md-sys-color, on-error),
115
+ calendar-date-selected-state-background-color: map.get($systems, md-sys-color, error),
116
+ calendar-date-today-selected-state-outline-color: map.get($systems, md-sys-color, error),
117
+ calendar-date-today-outline-color: map.get($systems, md-sys-color, error),
118
+ calendar-date-preview-state-outline-color: map.get($systems, md-sys-color, error),
119
+ )
120
+ ));
121
+
122
+ @return token-utils.namespace-tokens($prefix, $tokens, $token-slots);
123
+ }
@@ -0,0 +1,30 @@
1
+ @use '../../token-utils';
2
+
3
+ // The prefix used to generate the fully qualified name for tokens in this file.
4
+ $prefix: (mat, dialog);
5
+
6
+ /// Generates custom tokens for the dialog.
7
+ /// @param {Map} $systems The MDC system tokens
8
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
9
+ /// @param {Map} $token-slots Possible token slots
10
+ /// @return {Map} A set of custom tokens for the dialog
11
+ @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
12
+ $tokens: (
13
+ container-max-width: token-utils.hardcode(560px, $exclude-hardcoded),
14
+ container-small-max-width: token-utils.hardcode(calc(100vw - 32px), $exclude-hardcoded),
15
+ container-min-width: token-utils.hardcode(280px, $exclude-hardcoded),
16
+ actions-alignment: token-utils.hardcode(flex-end, $exclude-hardcoded),
17
+ content-padding: token-utils.hardcode(20px 24px, $exclude-hardcoded),
18
+ with-actions-content-padding: token-utils.hardcode(20px 24px 0, $exclude-hardcoded),
19
+ actions-padding: token-utils.hardcode(16px 24px, $exclude-hardcoded),
20
+
21
+ // The vertical padding values are a bit weird, because MDC uses a `::before` pseudo
22
+ // element to size the title which in turn means that we can't set a specific padding
23
+ // and get the exact same space out of it. These values were determined through
24
+ // trial and error so that the first line of text is 24px from the top and the bottom
25
+ // of the text is 16px from the content under it.
26
+ headline-padding: token-utils.hardcode(6px 24px 13px, $exclude-hardcoded),
27
+ );
28
+
29
+ @return token-utils.namespace-tokens($prefix, $tokens, $token-slots);
30
+ }
@@ -0,0 +1,19 @@
1
+ @use 'sass:map';
2
+ @use '../../token-utils';
3
+
4
+ // The prefix used to generate the fully qualified name for tokens in this file.
5
+ $prefix: (mat, divider);
6
+
7
+ /// Generates custom tokens for the mat-divider.
8
+ /// @param {Map} $systems The MDC system tokens
9
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
10
+ /// @param {Map} $token-slots Possible token slots
11
+ /// @return {Map} A set of custom tokens for the mat-divider
12
+ @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
13
+ $tokens: (
14
+ width: token-utils.hardcode(1px, $exclude-hardcoded),
15
+ color: map.get($systems, md-sys-color, outline-variant),
16
+ );
17
+
18
+ @return token-utils.namespace-tokens($prefix, $tokens, $token-slots);
19
+ }
@@ -0,0 +1,41 @@
1
+ @use 'sass:map';
2
+ @use '../../../style/sass-utils';
3
+ @use '../../token-utils';
4
+
5
+ // The prefix used to generate the fully qualified name for tokens in this file.
6
+ $prefix: (mat, expansion);
7
+
8
+ /// Generates custom tokens for the mat-expansion.
9
+ /// @param {Map} $systems The MDC system tokens
10
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
11
+ /// @param {Map} $token-slots Possible token slots
12
+ /// @return {Map} A set of custom tokens for the mat-expansion
13
+ @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
14
+ $tokens: sass-utils.merge-all(
15
+ token-utils.generate-typography-tokens($systems, header-text, title-medium),
16
+ token-utils.generate-typography-tokens($systems, container-text, body-large),
17
+ (
18
+ container-shape: token-utils.hardcode(12px, $exclude-hardcoded),
19
+ legacy-header-indicator-display: token-utils.hardcode(none, $exclude-hardcoded),
20
+ header-indicator-display: token-utils.hardcode(inline-block, $exclude-hardcoded),
21
+ container-background-color: map.get($systems, md-sys-color, surface),
22
+ container-text-color: map.get($systems, md-sys-color, on-surface),
23
+ actions-divider-color: map.get($systems, md-sys-color, outline-variant),
24
+ header-hover-state-layer-color: sass-utils.safe-color-change(
25
+ map.get($systems, md-sys-color, on-surface),
26
+ $alpha: map.get($systems, md-sys-state, hover-state-layer-opacity)
27
+ ),
28
+ header-focus-state-layer-color: sass-utils.safe-color-change(
29
+ map.get($systems, md-sys-color, on-surface),
30
+ $alpha: map.get($systems, md-sys-state, focus-state-layer-opacity)
31
+ ),
32
+ header-disabled-state-text-color: sass-utils.safe-color-change(
33
+ map.get($systems, md-sys-color, on-surface), $alpha: 0.38),
34
+ header-text-color: map.get($systems, md-sys-color, on-surface),
35
+ header-description-color: map.get($systems, md-sys-color, on-surface-variant),
36
+ header-indicator-color: map.get($systems, md-sys-color, on-surface-variant),
37
+ )
38
+ );
39
+
40
+ @return token-utils.namespace-tokens($prefix, $tokens, $token-slots);
41
+ }
@@ -0,0 +1,50 @@
1
+ @use 'sass:map';
2
+ @use '../../../style/sass-utils';
3
+ @use '../../token-utils';
4
+
5
+ // The prefix used to generate the fully qualified name for tokens in this file.
6
+ $prefix: (mat, fab-small);
7
+
8
+ /// Generates custom tokens for the mat-mini-fab.
9
+ /// @param {Map} $systems The MDC system tokens
10
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
11
+ /// @param {Map} $token-slots Possible token slots
12
+ /// @return {Map} A set of custom tokens for the mat-mini-fab
13
+ @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
14
+ $tokens: ((
15
+ foreground-color: map.get($systems, md-sys-color, on-primary-container),
16
+ state-layer-color: map.get($systems, md-sys-color, on-primary-container),
17
+ ripple-color: sass-utils.safe-color-change(
18
+ map.get($systems, md-sys-color, on-primary-container),
19
+ $alpha: map.get($systems, md-sys-state, pressed-state-layer-opacity)
20
+ ),
21
+ hover-state-layer-opacity: map.get($systems, md-sys-state, hover-state-layer-opacity),
22
+ focus-state-layer-opacity: map.get($systems, md-sys-state, focus-state-layer-opacity),
23
+ pressed-state-layer-opacity: map.get($systems, md-sys-state, pressed-state-layer-opacity),
24
+ disabled-state-container-color: sass-utils.safe-color-change(
25
+ map.get($systems, md-sys-color, on-surface), $alpha: 0.12),
26
+ disabled-state-foreground-color: sass-utils.safe-color-change(
27
+ map.get($systems, md-sys-color, on-surface), $alpha: 0.38),
28
+ ), (
29
+ // Color variants
30
+ primary: (), // Default, no overrides needed.
31
+ secondary: (
32
+ foreground-color: map.get($systems, md-sys-color, on-secondary-container),
33
+ state-layer-color: map.get($systems, md-sys-color, on-secondary-container),
34
+ ripple-color: sass-utils.safe-color-change(
35
+ map.get($systems, md-sys-color, on-secondary-container),
36
+ $alpha: map.get($systems, md-sys-state, pressed-state-layer-opacity)
37
+ ),
38
+ ),
39
+ tertiary: (
40
+ foreground-color: map.get($systems, md-sys-color, on-tertiary-container),
41
+ state-layer-color: map.get($systems, md-sys-color, on-tertiary-container),
42
+ ripple-color: sass-utils.safe-color-change(
43
+ map.get($systems, md-sys-color, on-tertiary-container),
44
+ $alpha: map.get($systems, md-sys-state, pressed-state-layer-opacity)
45
+ ),
46
+ )
47
+ ));
48
+
49
+ @return token-utils.namespace-tokens($prefix, $tokens, $token-slots);
50
+ }
@@ -0,0 +1,50 @@
1
+ @use 'sass:map';
2
+ @use '../../../style/sass-utils';
3
+ @use '../../token-utils';
4
+
5
+ // The prefix used to generate the fully qualified name for tokens in this file.
6
+ $prefix: (mat, fab);
7
+
8
+ /// Generates custom tokens for the mat-fab.
9
+ /// @param {Map} $systems The MDC system tokens
10
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
11
+ /// @param {Map} $token-slots Possible token slots
12
+ /// @return {Map} A set of custom tokens for the mat-fab
13
+ @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
14
+ $tokens: ((
15
+ foreground-color: map.get($systems, md-sys-color, on-primary-container),
16
+ state-layer-color: map.get($systems, md-sys-color, on-primary-container),
17
+ ripple-color: sass-utils.safe-color-change(
18
+ map.get($systems, md-sys-color, on-primary-container),
19
+ $alpha: map.get($systems, md-sys-state, pressed-state-layer-opacity)
20
+ ),
21
+ hover-state-layer-opacity: map.get($systems, md-sys-state, hover-state-layer-opacity),
22
+ focus-state-layer-opacity: map.get($systems, md-sys-state, focus-state-layer-opacity),
23
+ pressed-state-layer-opacity: map.get($systems, md-sys-state, pressed-state-layer-opacity),
24
+ disabled-state-container-color: sass-utils.safe-color-change(
25
+ map.get($systems, md-sys-color, on-surface), $alpha: 0.12),
26
+ disabled-state-foreground-color: sass-utils.safe-color-change(
27
+ map.get($systems, md-sys-color, on-surface), $alpha: 0.38),
28
+ ), (
29
+ // Color variants
30
+ primary: (), // Default, no overrides needed.
31
+ secondary: (
32
+ foreground-color: map.get($systems, md-sys-color, on-secondary-container),
33
+ state-layer-color: map.get($systems, md-sys-color, on-secondary-container),
34
+ ripple-color: sass-utils.safe-color-change(
35
+ map.get($systems, md-sys-color, on-secondary-container),
36
+ $alpha: map.get($systems, md-sys-state, pressed-state-layer-opacity)
37
+ ),
38
+ ),
39
+ tertiary: (
40
+ foreground-color: map.get($systems, md-sys-color, on-tertiary-container),
41
+ state-layer-color: map.get($systems, md-sys-color, on-tertiary-container),
42
+ ripple-color: sass-utils.safe-color-change(
43
+ map.get($systems, md-sys-color, on-tertiary-container),
44
+ $alpha: map.get($systems, md-sys-state, pressed-state-layer-opacity)
45
+ ),
46
+ )
47
+ ));
48
+
49
+ @return token-utils.namespace-tokens($prefix, $tokens, $token-slots);
50
+ }
@@ -0,0 +1,54 @@
1
+ @use 'sass:map';
2
+ @use '../../../style/sass-utils';
3
+ @use '../../token-utils';
4
+
5
+ // The prefix used to generate the fully qualified name for tokens in this file.
6
+ $prefix: (mat, filled-button);
7
+
8
+ /// Generates custom tokens for the mat-flat-button.
9
+ /// @param {Map} $systems The MDC system tokens
10
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
11
+ /// @param {Map} $token-slots Possible token slots
12
+ /// @return {Map} A set of custom tokens for the mat-flat-button
13
+ @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
14
+ $tokens: ((
15
+ horizontal-padding: token-utils.hardcode(24px, $exclude-hardcoded),
16
+ icon-spacing: token-utils.hardcode(8px, $exclude-hardcoded),
17
+ icon-offset: token-utils.hardcode(-8px, $exclude-hardcoded),
18
+ state-layer-color: map.get($systems, md-sys-color, on-primary),
19
+ disabled-state-layer-color: map.get($systems, md-sys-color, on-surface-variant),
20
+ ripple-color: sass-utils.safe-color-change(
21
+ map.get($systems, md-sys-color, on-primary),
22
+ $alpha: map.get($systems, md-sys-state, pressed-state-layer-opacity)
23
+ ),
24
+ hover-state-layer-opacity: map.get($systems, md-sys-state, hover-state-layer-opacity),
25
+ focus-state-layer-opacity: map.get($systems, md-sys-state, focus-state-layer-opacity),
26
+ pressed-state-layer-opacity: map.get($systems, md-sys-state, pressed-state-layer-opacity),
27
+ ), (
28
+ // Color variants:
29
+ primary: (), // Default, no overrides needed.
30
+ secondary: (
31
+ state-layer-color: map.get($systems, md-sys-color, on-secondary),
32
+ ripple-color: sass-utils.safe-color-change(
33
+ map.get($systems, md-sys-color, on-secondary),
34
+ $alpha: map.get($systems, md-sys-state, pressed-state-layer-opacity)
35
+ ),
36
+ ),
37
+ tertiary: (
38
+ state-layer-color: map.get($systems, md-sys-color, on-tertiary),
39
+ ripple-color: sass-utils.safe-color-change(
40
+ map.get($systems, md-sys-color, on-tertiary),
41
+ $alpha: map.get($systems, md-sys-state, pressed-state-layer-opacity)
42
+ ),
43
+ ),
44
+ error: (
45
+ state-layer-color: map.get($systems, md-sys-color, on-error),
46
+ ripple-color: sass-utils.safe-color-change(
47
+ map.get($systems, md-sys-color, on-error),
48
+ $alpha: map.get($systems, md-sys-state, pressed-state-layer-opacity)
49
+ ),
50
+ )
51
+ ));
52
+
53
+ @return token-utils.namespace-tokens($prefix, $tokens, $token-slots);
54
+ }
@@ -0,0 +1,59 @@
1
+ @use 'sass:map';
2
+ @use '../../../style/sass-utils';
3
+ @use '../../token-utils';
4
+
5
+ // The prefix used to generate the fully qualified name for tokens in this file.
6
+ $prefix: (mat, form-field);
7
+
8
+ /// Generates custom tokens for the mat-form-field.
9
+ /// @param {Map} $systems The MDC system tokens
10
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
11
+ /// @param {Map} $token-slots Possible token slots
12
+ /// @return {Map} A set of custom tokens for the mat-form-field
13
+ @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
14
+ $tokens: sass-utils.merge-all(
15
+ token-utils.generate-typography-tokens($systems, container-text, body-large),
16
+ token-utils.generate-typography-tokens($systems, subscript-text, body-small),
17
+ (
18
+ disabled-input-text-placeholder-color: sass-utils.safe-color-change(
19
+ map.get($systems, md-sys-color, on-surface), $alpha: 0.38),
20
+ state-layer-color: map.get($systems, md-sys-color, on-surface),
21
+ error-text-color: map.get($systems, md-sys-color, error),
22
+ select-option-text-color: map.get($systems, md-ref-palette, neutral10),
23
+ select-disabled-option-text-color: sass-utils.safe-color-change(
24
+ map.get($systems, md-ref-palette, neutral10), $alpha: 0.38),
25
+ enabled-select-arrow-color: map.get($systems, md-sys-color, on-surface-variant),
26
+ disabled-select-arrow-color: sass-utils.safe-color-change(
27
+ map.get($systems, md-sys-color, on-surface), $alpha: 0.38),
28
+ hover-state-layer-opacity: map.get($systems, md-sys-state, hover-state-layer-opacity),
29
+ focus-state-layer-opacity: token-utils.hardcode(0, $exclude-hardcoded),
30
+ focus-select-arrow-color: map.get($systems, md-sys-color, primary),
31
+ outlined-label-text-populated-size: map.get($systems, md-sys-typeface, body-large-size),
32
+
33
+ leading-icon-color: map.get($systems, md-sys-color, on-surface-variant),
34
+ disabled-leading-icon-color: sass-utils.safe-color-change(
35
+ map.get($systems, md-sys-color, on-surface), $alpha: 0.38),
36
+
37
+ trailing-icon-color: map.get($systems, md-sys-color, on-surface-variant),
38
+ disabled-trailing-icon-color: sass-utils.safe-color-change(
39
+ map.get($systems, md-sys-color, on-surface), $alpha: 0.38),
40
+ error-focus-trailing-icon-color: map.get($systems, md-sys-color, error),
41
+ error-hover-trailing-icon-color: map.get($systems, md-sys-color, on-error-container),
42
+ error-trailing-icon-color: map.get($systems, md-sys-color, error),
43
+ )
44
+ ), (
45
+ // Color variants:
46
+ primary: (), // Default, no overrides needed.
47
+ secondary: (
48
+ focus-select-arrow-color: map.get($systems, md-sys-color, secondary),
49
+ ),
50
+ tertiary: (
51
+ focus-select-arrow-color: map.get($systems, md-sys-color, tertiary),
52
+ ),
53
+ error: (
54
+ focus-select-arrow-color: map.get($systems, md-sys-color, error),
55
+ )
56
+ );
57
+
58
+ @return token-utils.namespace-tokens($prefix, $tokens, $token-slots);
59
+ }
@@ -0,0 +1,42 @@
1
+ @use 'sass:map';
2
+ @use '../../../style/sass-utils';
3
+ @use '../../token-utils';
4
+
5
+ // The prefix used to generate the fully qualified name for tokens in this file.
6
+ $prefix: (mat, full-pseudo-checkbox);
7
+
8
+ /// Generates custom tokens for the full variant of mat-pseudo-checkbox.
9
+ /// @param {Map} $systems The MDC system tokens
10
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
11
+ /// @param {Map} $token-slots Possible token slots
12
+ /// @return {Map} A set of custom tokens for the full variant of mat-pseudo-checkbox
13
+ @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
14
+ $disabled-color: sass-utils.safe-color-change(
15
+ map.get($systems, md-sys-color, on-surface), $alpha: 0.38);
16
+
17
+ $tokens: ((
18
+ selected-icon-color: map.get($systems, md-sys-color, primary),
19
+ selected-checkmark-color: map.get($systems, md-sys-color, on-primary),
20
+ unselected-icon-color: map.get($systems, md-sys-color, on-surface-variant),
21
+ disabled-selected-checkmark-color: map.get($systems, md-sys-color, surface),
22
+ disabled-unselected-icon-color: $disabled-color,
23
+ disabled-selected-icon-color: $disabled-color,
24
+ ), (
25
+ // Color variants:
26
+ primary: (), // Default, no overrides needed.
27
+ secondary: (
28
+ selected-icon-color: map.get($systems, md-sys-color, secondary),
29
+ selected-checkmark-color: map.get($systems, md-sys-color, on-secondary),
30
+ ),
31
+ tertiary: (
32
+ selected-icon-color: map.get($systems, md-sys-color, tertiary),
33
+ selected-checkmark-color: map.get($systems, md-sys-color, on-tertiary),
34
+ ),
35
+ error: (
36
+ selected-icon-color: map.get($systems, md-sys-color, error),
37
+ selected-checkmark-color: map.get($systems, md-sys-color, on-error),
38
+ )
39
+ ));
40
+
41
+ @return token-utils.namespace-tokens($prefix, $tokens, $token-slots);
42
+ }
@@ -0,0 +1,21 @@
1
+ @use 'sass:map';
2
+ @use '../../token-utils';
3
+
4
+ // The prefix used to generate the fully qualified name for tokens in this file.
5
+ $prefix: (mat, grid-list);
6
+
7
+ /// Generates custom tokens for the mat-grid-list.
8
+ /// @param {Map} $systems The MDC system tokens
9
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
10
+ /// @param {Map} $token-slots Possible token slots
11
+ /// @return {Map} A set of custom tokens for the mat-grid-list
12
+ @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
13
+ $tokens: (
14
+ tile-header-primary-text-size: map.get($systems, md-sys-typescale, body-large),
15
+ tile-header-secondary-text-size: map.get($systems, md-sys-typescale, body-medium),
16
+ tile-footer-primary-text-size: map.get($systems, md-sys-typescale, body-large),
17
+ tile-footer-secondary-text-size: map.get($systems, md-sys-typescale, body-medium),
18
+ );
19
+
20
+ @return token-utils.namespace-tokens($prefix, $tokens, $token-slots);
21
+ }
@@ -0,0 +1,27 @@
1
+ @use 'sass:map';
2
+ @use '../../../style/sass-utils';
3
+ @use '../../token-utils';
4
+
5
+ // The prefix used to generate the fully qualified name for tokens in this file.
6
+ $prefix: (mat, icon-button);
7
+
8
+ /// Generates custom tokens for the mat-icon-button.
9
+ /// @param {Map} $systems The MDC system tokens
10
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
11
+ /// @param {Map} $token-slots Possible token slots
12
+ /// @return {Map} A set of custom tokens for the mat-icon-button
13
+ @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
14
+ $tokens: (
15
+ state-layer-color: map.get($systems, md-sys-color, on-surface-variant),
16
+ disabled-state-layer-color: map.get($systems, md-sys-color, on-surface-variant),
17
+ ripple-color: sass-utils.safe-color-change(
18
+ map.get($systems, md-sys-color, on-surface-variant),
19
+ $alpha: map.get($systems, md-sys-state, pressed-state-layer-opacity)
20
+ ),
21
+ hover-state-layer-opacity: map.get($systems, md-sys-state, hover-state-layer-opacity),
22
+ focus-state-layer-opacity: map.get($systems, md-sys-state, focus-state-layer-opacity),
23
+ pressed-state-layer-opacity: map.get($systems, md-sys-state, pressed-state-layer-opacity),
24
+ );
25
+
26
+ @return token-utils.namespace-tokens($prefix, $tokens, $token-slots);
27
+ }