@angular/material 19.0.0-next.9 → 19.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/autocomplete/_autocomplete-theme.scss +8 -4
  2. package/autocomplete/index.d.ts +5 -6
  3. package/badge/_badge-theme.scss +10 -6
  4. package/badge/index.d.ts +1 -2
  5. package/bottom-sheet/_bottom-sheet-theme.scss +8 -4
  6. package/button/_button-theme.scss +10 -6
  7. package/button/_fab-theme.scss +10 -6
  8. package/button/_icon-button-theme.scss +8 -4
  9. package/button/index.d.ts +1 -1
  10. package/button-toggle/_button-toggle-theme.scss +11 -6
  11. package/button-toggle/index.d.ts +2 -1
  12. package/card/_card-theme.scss +8 -4
  13. package/card/index.d.ts +2 -3
  14. package/checkbox/_checkbox-theme.scss +10 -6
  15. package/chips/_chips-theme.scss +10 -6
  16. package/core/_core-theme.scss +4 -7
  17. package/core/_core.scss +2 -5
  18. package/core/m2/_theming.scss +2 -1
  19. package/core/option/_optgroup-theme.scss +8 -4
  20. package/core/option/_option-theme.scss +10 -6
  21. package/core/ripple/_ripple-theme.scss +8 -4
  22. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +10 -6
  23. package/core/theming/_config-validation.scss +4 -4
  24. package/core/theming/_definition.scss +12 -2
  25. package/core/theming/_theming.scss +2 -1
  26. package/core/tokens/_m3-system.scss +55 -39
  27. package/core/tokens/_m3-tokens.scss +3 -3
  28. package/core/tokens/_token-definition.scss +4 -3
  29. package/core/tokens/m2/mat/_badge.scss +1 -1
  30. package/core/tokens/m2/mat/_datepicker.scss +1 -1
  31. package/core/tokens/m2/mat/_menu.scss +5 -3
  32. package/core/tokens/m2/mat/_sort.scss +1 -1
  33. package/core/tokens/m3/mat/_menu.scss +6 -3
  34. package/core/tokens/m3/mdc/_filled-text-field.scss +9 -11
  35. package/datepicker/_datepicker-theme.scss +10 -6
  36. package/datepicker/index.d.ts +36 -37
  37. package/dialog/_dialog-theme.scss +8 -4
  38. package/dialog/index.d.ts +1 -0
  39. package/divider/_divider-theme.scss +8 -4
  40. package/expansion/_expansion-theme.scss +8 -4
  41. package/fesm2022/autocomplete/testing.mjs +2 -5
  42. package/fesm2022/autocomplete/testing.mjs.map +1 -1
  43. package/fesm2022/autocomplete.mjs +225 -151
  44. package/fesm2022/autocomplete.mjs.map +1 -1
  45. package/fesm2022/badge/testing.mjs +2 -5
  46. package/fesm2022/badge/testing.mjs.map +1 -1
  47. package/fesm2022/badge.mjs +45 -36
  48. package/fesm2022/badge.mjs.map +1 -1
  49. package/fesm2022/bottom-sheet/testing.mjs +1 -1
  50. package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
  51. package/fesm2022/bottom-sheet.mjs +79 -57
  52. package/fesm2022/bottom-sheet.mjs.map +1 -1
  53. package/fesm2022/button/testing.mjs +2 -2
  54. package/fesm2022/button/testing.mjs.map +1 -1
  55. package/fesm2022/button-toggle/testing.mjs +4 -7
  56. package/fesm2022/button-toggle/testing.mjs.map +1 -1
  57. package/fesm2022/button-toggle.mjs +84 -47
  58. package/fesm2022/button-toggle.mjs.map +1 -1
  59. package/fesm2022/button.mjs +98 -71
  60. package/fesm2022/button.mjs.map +1 -1
  61. package/fesm2022/card/testing.mjs +3 -6
  62. package/fesm2022/card/testing.mjs.map +1 -1
  63. package/fesm2022/card.mjs +53 -55
  64. package/fesm2022/card.mjs.map +1 -1
  65. package/fesm2022/checkbox/testing.mjs +4 -7
  66. package/fesm2022/checkbox/testing.mjs.map +1 -1
  67. package/fesm2022/checkbox.mjs +105 -63
  68. package/fesm2022/checkbox.mjs.map +1 -1
  69. package/fesm2022/chips/testing.mjs +11 -14
  70. package/fesm2022/chips/testing.mjs.map +1 -1
  71. package/fesm2022/chips.mjs +317 -268
  72. package/fesm2022/chips.mjs.map +1 -1
  73. package/fesm2022/core/testing.mjs +5 -11
  74. package/fesm2022/core/testing.mjs.map +1 -1
  75. package/fesm2022/core.mjs +237 -187
  76. package/fesm2022/core.mjs.map +1 -1
  77. package/fesm2022/datepicker/testing.mjs +13 -22
  78. package/fesm2022/datepicker/testing.mjs.map +1 -1
  79. package/fesm2022/datepicker.mjs +821 -568
  80. package/fesm2022/datepicker.mjs.map +1 -1
  81. package/fesm2022/dialog/testing.mjs +15 -9
  82. package/fesm2022/dialog/testing.mjs.map +1 -1
  83. package/fesm2022/dialog.mjs +221 -153
  84. package/fesm2022/dialog.mjs.map +1 -1
  85. package/fesm2022/divider/testing.mjs +1 -1
  86. package/fesm2022/divider/testing.mjs.map +1 -1
  87. package/fesm2022/divider.mjs +9 -11
  88. package/fesm2022/divider.mjs.map +1 -1
  89. package/fesm2022/expansion/testing.mjs +7 -10
  90. package/fesm2022/expansion/testing.mjs.map +1 -1
  91. package/fesm2022/expansion.mjs +85 -76
  92. package/fesm2022/expansion.mjs.map +1 -1
  93. package/fesm2022/form-field/testing.mjs +12 -15
  94. package/fesm2022/form-field/testing.mjs.map +1 -1
  95. package/fesm2022/form-field.mjs +179 -126
  96. package/fesm2022/form-field.mjs.map +1 -1
  97. package/fesm2022/grid-list/testing.mjs +11 -17
  98. package/fesm2022/grid-list/testing.mjs.map +1 -1
  99. package/fesm2022/grid-list.mjs +72 -50
  100. package/fesm2022/grid-list.mjs.map +1 -1
  101. package/fesm2022/icon/testing.mjs +8 -8
  102. package/fesm2022/icon/testing.mjs.map +1 -1
  103. package/fesm2022/icon.mjs +65 -45
  104. package/fesm2022/icon.mjs.map +1 -1
  105. package/fesm2022/input/testing.mjs +3 -3
  106. package/fesm2022/input/testing.mjs.map +1 -1
  107. package/fesm2022/input.mjs +104 -72
  108. package/fesm2022/input.mjs.map +1 -1
  109. package/fesm2022/list/testing.mjs +21 -38
  110. package/fesm2022/list/testing.mjs.map +1 -1
  111. package/fesm2022/list.mjs +191 -180
  112. package/fesm2022/list.mjs.map +1 -1
  113. package/fesm2022/menu/testing.mjs +3 -6
  114. package/fesm2022/menu/testing.mjs.map +1 -1
  115. package/fesm2022/menu.mjs +178 -168
  116. package/fesm2022/menu.mjs.map +1 -1
  117. package/fesm2022/paginator/testing.mjs +10 -13
  118. package/fesm2022/paginator/testing.mjs.map +1 -1
  119. package/fesm2022/paginator.mjs +84 -59
  120. package/fesm2022/paginator.mjs.map +1 -1
  121. package/fesm2022/progress-bar/testing.mjs +1 -1
  122. package/fesm2022/progress-bar/testing.mjs.map +1 -1
  123. package/fesm2022/progress-bar.mjs +35 -34
  124. package/fesm2022/progress-bar.mjs.map +1 -1
  125. package/fesm2022/progress-spinner/testing.mjs +1 -1
  126. package/fesm2022/progress-spinner/testing.mjs.map +1 -1
  127. package/fesm2022/progress-spinner.mjs +27 -13
  128. package/fesm2022/progress-spinner.mjs.map +1 -1
  129. package/fesm2022/radio/testing.mjs +6 -12
  130. package/fesm2022/radio/testing.mjs.map +1 -1
  131. package/fesm2022/radio.mjs +123 -88
  132. package/fesm2022/radio.mjs.map +1 -1
  133. package/fesm2022/select/testing.mjs +6 -9
  134. package/fesm2022/select/testing.mjs.map +1 -1
  135. package/fesm2022/select.mjs +220 -182
  136. package/fesm2022/select.mjs.map +1 -1
  137. package/fesm2022/sidenav/testing.mjs +6 -6
  138. package/fesm2022/sidenav/testing.mjs.map +1 -1
  139. package/fesm2022/sidenav.mjs +132 -119
  140. package/fesm2022/sidenav.mjs.map +1 -1
  141. package/fesm2022/slide-toggle/testing.mjs +3 -6
  142. package/fesm2022/slide-toggle/testing.mjs.map +1 -1
  143. package/fesm2022/slide-toggle.mjs +78 -49
  144. package/fesm2022/slide-toggle.mjs.map +1 -1
  145. package/fesm2022/slider/testing.mjs +2 -2
  146. package/fesm2022/slider/testing.mjs.map +1 -1
  147. package/fesm2022/slider.mjs +260 -190
  148. package/fesm2022/slider.mjs.map +1 -1
  149. package/fesm2022/snack-bar/testing.mjs +4 -7
  150. package/fesm2022/snack-bar/testing.mjs.map +1 -1
  151. package/fesm2022/snack-bar.mjs +141 -107
  152. package/fesm2022/snack-bar.mjs.map +1 -1
  153. package/fesm2022/sort/testing.mjs +3 -6
  154. package/fesm2022/sort/testing.mjs.map +1 -1
  155. package/fesm2022/sort.mjs +93 -72
  156. package/fesm2022/sort.mjs.map +1 -1
  157. package/fesm2022/stepper/testing.mjs +4 -4
  158. package/fesm2022/stepper/testing.mjs.map +1 -1
  159. package/fesm2022/stepper.mjs +143 -105
  160. package/fesm2022/stepper.mjs.map +1 -1
  161. package/fesm2022/table/testing.mjs +13 -25
  162. package/fesm2022/table/testing.mjs.map +1 -1
  163. package/fesm2022/table.mjs +182 -177
  164. package/fesm2022/table.mjs.map +1 -1
  165. package/fesm2022/tabs/testing.mjs +5 -5
  166. package/fesm2022/tabs/testing.mjs.map +1 -1
  167. package/fesm2022/tabs.mjs +326 -247
  168. package/fesm2022/tabs.mjs.map +1 -1
  169. package/fesm2022/timepicker/testing.mjs +7 -16
  170. package/fesm2022/timepicker/testing.mjs.map +1 -1
  171. package/fesm2022/timepicker.mjs +157 -153
  172. package/fesm2022/timepicker.mjs.map +1 -1
  173. package/fesm2022/toolbar/testing.mjs +2 -5
  174. package/fesm2022/toolbar/testing.mjs.map +1 -1
  175. package/fesm2022/toolbar.mjs +25 -15
  176. package/fesm2022/toolbar.mjs.map +1 -1
  177. package/fesm2022/tooltip/testing.mjs +6 -9
  178. package/fesm2022/tooltip/testing.mjs.map +1 -1
  179. package/fesm2022/tooltip.mjs +96 -72
  180. package/fesm2022/tooltip.mjs.map +1 -1
  181. package/fesm2022/tree/testing.mjs +3 -6
  182. package/fesm2022/tree/testing.mjs.map +1 -1
  183. package/fesm2022/tree.mjs +56 -54
  184. package/fesm2022/tree.mjs.map +1 -1
  185. package/form-field/_form-field-theme.scss +9 -5
  186. package/form-field/index.d.ts +9 -9
  187. package/grid-list/_grid-list-theme.scss +8 -4
  188. package/icon/_icon-theme.scss +10 -6
  189. package/input/_input-theme.scss +8 -4
  190. package/list/_list-theme.scss +8 -4
  191. package/list/index.d.ts +20 -21
  192. package/menu/_menu-theme.scss +8 -4
  193. package/menu/index.d.ts +15 -17
  194. package/package.json +2 -2
  195. package/paginator/_paginator-theme.scss +8 -4
  196. package/prebuilt-themes/azure-blue.css +1 -1
  197. package/prebuilt-themes/cyan-orange.css +1 -1
  198. package/prebuilt-themes/deeppurple-amber.css +1 -1
  199. package/prebuilt-themes/indigo-pink.css +1 -1
  200. package/prebuilt-themes/magenta-violet.css +1 -1
  201. package/prebuilt-themes/pink-bluegrey.css +1 -1
  202. package/prebuilt-themes/purple-green.css +1 -1
  203. package/prebuilt-themes/rose-red.css +1 -1
  204. package/progress-bar/_progress-bar-theme.scss +11 -9
  205. package/progress-spinner/_progress-spinner-theme.scss +11 -9
  206. package/progress-spinner/index.d.ts +3 -4
  207. package/radio/_radio-theme.scss +10 -6
  208. package/radio/index.d.ts +2 -3
  209. package/schematics/ng-add/index.js +1 -1
  210. package/schematics/ng-add/index.mjs +1 -1
  211. package/schematics/ng-add/theming/create-custom-theme.js +1 -6
  212. package/schematics/ng-add/theming/create-custom-theme.mjs +1 -6
  213. package/schematics/ng-generate/theme-color/index_bundled.js +35 -9
  214. package/schematics/ng-generate/theme-color/index_bundled.js.map +2 -2
  215. package/schematics/ng-update/index_bundled.js +6 -1
  216. package/schematics/ng-update/index_bundled.js.map +1 -1
  217. package/select/_select-theme.scss +10 -6
  218. package/select/index.d.ts +7 -7
  219. package/sidenav/_sidenav-theme.scss +8 -4
  220. package/slide-toggle/_slide-toggle-theme.scss +10 -6
  221. package/slider/_slider-theme.scss +10 -6
  222. package/snack-bar/_snack-bar-theme.scss +10 -6
  223. package/sort/_sort-theme.scss +8 -4
  224. package/stepper/_stepper-theme.scss +10 -6
  225. package/stepper/index.d.ts +14 -15
  226. package/table/_table-theme.scss +8 -4
  227. package/tabs/_tabs-theme.scss +10 -6
  228. package/timepicker/_timepicker-theme.scss +10 -6
  229. package/toolbar/_toolbar-theme.scss +10 -6
  230. package/tooltip/_tooltip-theme.scss +8 -4
  231. package/tooltip/index.d.ts +5 -6
  232. package/tree/_tree-theme.scss +8 -4
@@ -6,6 +6,16 @@
6
6
  @use '../tokens/m3-tokens';
7
7
  @use './config-validation';
8
8
 
9
+ // Prefix used for component token fallback variables, e.g.
10
+ // `color: var(--mdc-text-button-label-text-color, var(--mat-sys-primary));`
11
+ $system-fallback-prefix: mat-sys;
12
+
13
+ // Default system level prefix to use when directly calling the `system-level-*` mixins.
14
+ // Prefix used for component token fallback variables, e.g.
15
+ // `color: var(--mdc-text-button-label-text-color, var(--mat-sys-primary));`
16
+ // TODO: Remove this variable after internal clients are migrated from "sys"
17
+ $system-level-prefix: mat-sys;
18
+
9
19
  /// Map key used to store internals of theme config.
10
20
  $internals: _mat-theming-internals-do-not-access;
11
21
  /// The theme version of generated themes.
@@ -40,7 +50,7 @@ $theme-version: 1;
40
50
  $type: map.get($config, theme-type) or light;
41
51
  $primary: map.get($config, primary) or palettes.$violet-palette;
42
52
  $tertiary: map.get($config, tertiary) or $primary;
43
- $system-variables-prefix: map.get($config, system-variables-prefix) or sys;
53
+ $system-variables-prefix: map.get($config, system-variables-prefix) or $system-level-prefix;
44
54
  sass-utils.$use-system-color-variables: map.get($config, use-system-variables) or false;
45
55
 
46
56
  @return (
@@ -76,7 +86,7 @@ $theme-version: 1;
76
86
  $bold: map.get($config, bold-weight) or 700;
77
87
  $medium: map.get($config, medium-weight) or 500;
78
88
  $regular: map.get($config, regular-weight) or 400;
79
- $system-variables-prefix: map.get($config, system-variables-prefix) or sys;
89
+ $system-variables-prefix: map.get($config, system-variables-prefix) or $system-level-prefix;
80
90
  sass-utils.$use-system-typography-variables: map.get($config, use-system-variables) or false;
81
91
 
82
92
  @return (
@@ -2,6 +2,7 @@
2
2
  @use 'sass:map';
3
3
  @use 'sass:math';
4
4
  @use 'sass:meta';
5
+ @use 'sass:color';
5
6
 
6
7
  // Whether to enable compatibility with legacy methods for accessing theme information.
7
8
  $theme-legacy-inspection-api-compatibility: true !default;
@@ -332,7 +333,7 @@ $private-internal-name: _mat-theming-internals-do-not-access;
332
333
  // We convert the rgba color into a solid one by taking the opacity from the rgba
333
334
  // value and using it to determine the percentage of the background to put
334
335
  // into foreground when mixing the colors together.
335
- @return mix($background-color, rgba($color, 1), (1 - opacity($color)) * 100%);
336
+ @return color.mix($background-color, rgba($color, 1), (1 - color.opacity($color)) * 100%);
336
337
  }
337
338
 
338
339
  // Clamps the density scale to a number between the given min and max.
@@ -1,5 +1,6 @@
1
1
  @use '../style/elevation';
2
2
  @use '../style/sass-utils';
3
+ @use '../theming/config-validation';
3
4
  @use '../theming/definition';
4
5
  @use './m3/definitions';
5
6
  @use 'sass:map';
@@ -7,22 +8,15 @@
7
8
  @use 'sass:list';
8
9
  @use './m3-tokens';
9
10
 
10
- // Prefix used for component token fallback variables, e.g.
11
- // `color: var(--mdc-text-button-label-text-color, var(--mat-sys-primary));`
12
- $_system-fallback-prefix: mat-sys;
13
-
14
- // Default system level prefix to use when directly calling the `system-level-*` mixins
15
- $_system-level-prefix: sys;
16
-
17
11
  /// Emits necessary CSS variables for Material's system level values for the values defined in the
18
12
  /// config map. The config map can have values color, typography, and/or density.
19
13
  ///
20
14
  /// 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.
15
+ /// primary and tertiary colors with a `color-scheme` theme type. Otherwise if the color value is a
16
+ /// map, it must have a `primary` value containing an Angular Material color palette, and
17
+ /// optionally a different `tertiary` palette (defaults to primary palette) and `theme-type` that
18
+ /// is either `light`, `dark`, or 'color-scheme` (defaults to `color-scheme`). Color variable
19
+ /// definitions will not be emitted if there are no color values in the config.
26
20
  ///
27
21
  /// If the config map's typography value is a font family string, it will be used as the
28
22
  /// plain and brand font family with default bold, medium, and regular weights of 700, 500, and 400,
@@ -44,11 +38,19 @@ $_system-level-prefix: sys;
44
38
  $color: map.get($config, color);
45
39
  $color-config: null;
46
40
  @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);
41
+ // validate-palette returns null if it is a valid M3 palette
42
+ $is-palette: config-validation.validate-palette($color) == null;
43
+
44
+ // Default to "color-scheme" theme type if the config's color does not provide one.
45
+ @if (not $is-palette and not map.has-key($color, theme-type)) {
46
+ $color: map.set($color, theme-type, color-scheme);
47
+ }
48
+
49
+ $color-config: if($is-palette,
50
+ definition.define-colors((primary: $color, theme-type: color-scheme)),
51
+ definition.define-colors($color));
52
+ @include system-level-colors($color-config, $overrides, definition.$system-fallback-prefix);
53
+ @include system-level-elevation($color-config, $overrides, definition.$system-fallback-prefix);
52
54
  }
53
55
 
54
56
  $typography: map.get($config, typography);
@@ -57,7 +59,8 @@ $_system-level-prefix: sys;
57
59
  $typography-config: if(meta.type-of($typography) == 'map',
58
60
  definition.define-typography($typography),
59
61
  definition.define-typography((plain-family: $typography)));
60
- @include system-level-typography($typography-config, $overrides, $_system-fallback-prefix);
62
+ @include system-level-typography(
63
+ $typography-config, $overrides, definition.$system-fallback-prefix);
61
64
  }
62
65
 
63
66
  $density: map.get($config, density);
@@ -79,14 +82,13 @@ $_system-level-prefix: sys;
79
82
  }
80
83
  }
81
84
 
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);
85
+ @include system-level-shape($overrides: $overrides, $prefix: definition.$system-fallback-prefix);
86
+ @include system-level-state($overrides: $overrides, $prefix: definition.$system-fallback-prefix);
85
87
  }
86
88
 
87
89
  /// Emits the system-level CSS variables for each of the provided override values. E.g. to
88
90
  /// change the primary color to red, use `mat.theme-overrides((primary: red));`
89
- @mixin theme-overrides($overrides, $prefix: $_system-fallback-prefix) {
91
+ @mixin theme-overrides($overrides, $prefix: definition.$system-fallback-prefix) {
90
92
  $sys-names: map-merge-all(
91
93
  definitions.md-sys-color-values-light(),
92
94
  definitions.md-sys-typescale-values(),
@@ -119,16 +121,14 @@ $_system-level-prefix: sys;
119
121
 
120
122
  @if (not $prefix) {
121
123
  $prefix: map.get($theme, _mat-theming-internals-do-not-access,
122
- color-system-variables-prefix) or $_system-level-prefix;
124
+ color-system-variables-prefix) or definition.$system-level-prefix;
123
125
  }
124
126
 
125
127
  $ref: (
126
128
  md-ref-palette: m3-tokens.generate-ref-palette-tokens($primary, $tertiary, $error)
127
129
  );
128
130
 
129
- $sys-colors: if($type == dark,
130
- definitions.md-sys-color-values-dark($ref),
131
- definitions.md-sys-color-values-light($ref));
131
+ $sys-colors: _generate-sys-colors($ref, $type);
132
132
 
133
133
  // Manually insert a subset of palette values that are used directly by components
134
134
  // instead of system variables.
@@ -144,6 +144,30 @@ $_system-level-prefix: sys;
144
144
  }
145
145
  }
146
146
 
147
+ @function _generate-sys-colors($ref, $type) {
148
+ $light-sys-colors: definitions.md-sys-color-values-light($ref);
149
+ @if ($type == light) {
150
+ @return $light-sys-colors;
151
+ }
152
+
153
+ $dark-sys-colors: definitions.md-sys-color-values-dark($ref);
154
+ @if ($type == dark) {
155
+ @return $dark-sys-colors;
156
+ }
157
+
158
+ @if ($type == color-scheme) {
159
+ $light-dark-sys-colors: ();
160
+ @each $name, $light-value in $light-sys-colors {
161
+ $dark-value: map.get($dark-sys-colors, $name);
162
+ $light-dark-sys-colors:
163
+ map.set($light-dark-sys-colors, $name, light-dark($light-value, $dark-value));
164
+ }
165
+ @return $light-dark-sys-colors;
166
+ }
167
+
168
+ @error 'Unknown theme-type provided: #{$type}';
169
+ }
170
+
147
171
  @mixin system-level-typography($theme, $overrides: (), $prefix: null) {
148
172
  $font-definition: map.get($theme, _mat-theming-internals-do-not-access, font-definition);
149
173
  $brand: map.get($font-definition, brand);
@@ -157,7 +181,7 @@ $_system-level-prefix: sys;
157
181
 
158
182
  @if (not $prefix) {
159
183
  $prefix: map.get($theme, _mat-theming-internals-do-not-access,
160
- typography-system-variables-prefix) or $_system-level-prefix;
184
+ typography-system-variables-prefix) or definition.$system-level-prefix;
161
185
  }
162
186
 
163
187
  & {
@@ -167,7 +191,7 @@ $_system-level-prefix: sys;
167
191
  }
168
192
  }
169
193
 
170
- @mixin system-level-elevation($theme, $overrides: (), $prefix: $_system-level-prefix) {
194
+ @mixin system-level-elevation($theme, $overrides: (), $prefix: definition.$system-level-prefix) {
171
195
  $shadow-color: map.get(
172
196
  $theme, _mat-theming-internals-do-not-access, color-tokens, (mdc, theme), shadow);
173
197
 
@@ -180,7 +204,7 @@ $_system-level-prefix: sys;
180
204
  }
181
205
  }
182
206
 
183
- @mixin system-level-shape($theme: (), $overrides: (), $prefix: $_system-level-prefix) {
207
+ @mixin system-level-shape($theme: (), $overrides: (), $prefix: definition.$system-level-prefix) {
184
208
  & {
185
209
  @each $name, $value in definitions.md-sys-shape-values() {
186
210
  --#{$prefix}-#{$name}: #{map.get($overrides, $name) or $value};
@@ -188,7 +212,7 @@ $_system-level-prefix: sys;
188
212
  }
189
213
  }
190
214
 
191
- @mixin system-level-state($theme: (), $overrides: (), $prefix: $_system-level-prefix) {
215
+ @mixin system-level-state($theme: (), $overrides: (), $prefix: definition.$system-level-prefix) {
192
216
  & {
193
217
  @each $name, $value in definitions.md-sys-state-values() {
194
218
  --#{$prefix}-#{$name}: #{map.get($overrides, $name) or $value};
@@ -196,21 +220,13 @@ $_system-level-prefix: sys;
196
220
  }
197
221
  }
198
222
 
199
- @mixin system-level-motion($theme: (), $overrides: (), $prefix: $_system-level-prefix) {
200
- & {
201
- @each $name, $value in definitions.md-sys-motion-values() {
202
- --#{$prefix}-#{$name}: #{map.get($overrides, $name) or $value};
203
- }
204
- }
205
- }
206
-
207
223
  // Return a new map where the values are the same as the provided map's
208
224
  // keys, prefixed with "--mat-sys-". For example:
209
225
  // (key1: '', key2: '') --> (key1: --mat-sys-key1, key2: --mat-sys-key2)
210
226
  @function _create-system-app-vars-map($map) {
211
227
  $new-map: ();
212
228
  @each $key, $value in $map {
213
- $new-map: map.set($new-map, $key, --#{$_system-fallback-prefix}-#{$key});
229
+ $new-map: map.set($new-map, $key, --#{definition.$system-fallback-prefix}-#{$key});
214
230
  }
215
231
  @return $new-map;
216
232
  }
@@ -130,7 +130,7 @@ $_cached-token-slots: null;
130
130
  @function create-map($keys, $prefix) {
131
131
  $result: ();
132
132
  @each $key in $keys {
133
- $result: map-merge($result, ($key: var(--#{$prefix}-#{$key})));
133
+ $result: map.merge($result, ($key: var(--#{$prefix}-#{$key})));
134
134
  }
135
135
  @return $result;
136
136
  }
@@ -191,8 +191,8 @@ $_cached-token-slots: null;
191
191
  'tertiary-fixed',
192
192
  'tertiary-fixed-dim'
193
193
  );
194
- @return map-merge(create-map($keys, $prefix), (
195
- shadow: map.get($mdc-sys-color, shadow)
194
+ @return map.merge(create-map($keys, $prefix), (
195
+ shadow: map.get($mdc-sys-color, shadow)
196
196
  ));
197
197
  }
198
198
 
@@ -124,11 +124,12 @@ $_system-fallbacks: null;
124
124
  /// Maps the values in a map to new values using the given mapping function
125
125
  /// @param {Map} $map The maps whose values will be mapped to new values.
126
126
  /// @param {Function} $fn The value mapping function.
127
- /// @param {Map} A new map with its values updated using the mapping function.
128
- @function map-values($map, $fn) {
127
+ /// @param {ArgList} $args Additional arguments to pass to the mapping function.
128
+ /// @return {Map} A new map with its values updated using the mapping function.
129
+ @function map-values($map, $fn, $args...) {
129
130
  $result: ();
130
131
  @each $key, $value in $map {
131
- $result: map.set($result, $key, meta.call($fn, $value));
132
+ $result: map.set($result, $key, meta.call($fn, $value, $args...));
132
133
  }
133
134
  @return $result;
134
135
  }
@@ -56,7 +56,7 @@ $prefix: (mat, badge);
56
56
  // the value to determine the percentage of the background to put into foreground when
57
57
  // mixing the colors together.
58
58
  @if (meta.type-of($disabled-background) == color and meta.type-of($app-background) == color) {
59
- $badge-opacity: opacity($disabled-background);
59
+ $badge-opacity: color.opacity($disabled-background);
60
60
  $disabled-background: color.mix($app-background,
61
61
  rgba($disabled-background, 1), (1 - $badge-opacity) * 100%);
62
62
  }
@@ -60,7 +60,7 @@ $private-default-overlap-color: #a8dab5;
60
60
  // for a solid border, but because we're using a dashed border for the
61
61
  // preview range, we need to bump its opacity to ensure that it's visible.
62
62
  @if meta.type-of($preview-outline-color) == color {
63
- $preview-outline-opacity: math.min(opacity($preview-outline-color) * 2, 1);
63
+ $preview-outline-opacity: math.min(color.opacity($preview-outline-color) * 2, 1);
64
64
  $preview-outline-color: rgba($preview-outline-color, $preview-outline-opacity);
65
65
  }
66
66
 
@@ -1,6 +1,7 @@
1
1
  @use '../../token-definition';
2
2
  @use '../../../theming/inspection';
3
3
  @use '../../../style/sass-utils';
4
+ @use '../../../style/elevation';
4
5
 
5
6
  // The prefix used to generate the fully qualified name for tokens in this file.
6
7
  $prefix: (mat, menu);
@@ -18,9 +19,10 @@ $prefix: (mat, menu);
18
19
  item-trailing-spacing: 16px,
19
20
  item-with-icon-leading-spacing: 16px,
20
21
  item-with-icon-trailing-spacing: 16px,
21
- // Note that this uses a value, rather than a computed box-shadow, because we use
22
- // the value at runtime to determine which shadow to set based on the menu's depth.
23
- base-elevation-level: 8,
22
+ container-elevation-shadow: elevation.get-box-shadow(8),
23
+
24
+ // Unused
25
+ base-elevation-level: null,
24
26
  );
25
27
  }
26
28
 
@@ -26,7 +26,7 @@ $prefix: (mat, sort);
26
26
  // when mixing the colors together. Otherwise, if it resolves to something different
27
27
  // (e.g. it resolves to a CSS variable), we use the color directly.
28
28
  @if (meta.type-of($table-background) == color and meta.type-of($text-color) == color) {
29
- $text-opacity: opacity($text-color);
29
+ $text-opacity: color.opacity($text-color);
30
30
  $arrow-color: color.mix($table-background, rgba($text-color, 1), (1 - $text-opacity) * 100%);
31
31
  }
32
32
  @else {
@@ -1,6 +1,7 @@
1
1
  @use 'sass:map';
2
2
  @use '../../../style/sass-utils';
3
3
  @use '../../token-definition';
4
+ @use '../../../style/elevation';
4
5
 
5
6
  // The prefix used to generate the fully qualified name for tokens in this file.
6
7
  $prefix: (mat, menu);
@@ -35,9 +36,11 @@ $prefix: (mat, menu);
35
36
  item-with-icon-leading-spacing: token-definition.hardcode(12px, $exclude-hardcoded),
36
37
  item-with-icon-trailing-spacing: token-definition.hardcode(12px, $exclude-hardcoded),
37
38
  container-color: map.get($systems, md-sys-color, surface-container),
38
- // Note that this uses a value, rather than a computed box-shadow, because we use
39
- // the value at runtime to determine which shadow to set based on the menu's depth.
40
- base-elevation-level: token-definition.hardcode(2, $exclude-hardcoded),
39
+ container-elevation-shadow: token-definition.hardcode(
40
+ elevation.get-box-shadow(2), $exclude-hardcoded),
41
+
42
+ // Unused
43
+ base-elevation-level: null,
41
44
  )
42
45
  );
43
46
 
@@ -1,6 +1,5 @@
1
1
  @use 'sass:map';
2
2
  @use 'sass:meta';
3
- @use 'sass:list';
4
3
  @use '../../token-definition';
5
4
 
6
5
  // The prefix used to generate the fully qualified name for tokens in this file.
@@ -34,8 +33,8 @@ $prefix: (mdc, filled-text-field);
34
33
  );
35
34
 
36
35
  @return token-definition.namespace-tokens($prefix, (
37
- _fix-tokens($mdc-tokens),
38
- token-definition.map-values($variant-tokens, meta.get-function(_fix-tokens))
36
+ _fix-tokens($mdc-tokens, $systems),
37
+ token-definition.map-values($variant-tokens, meta.get-function(_fix-tokens), $systems)
39
38
  ), $token-slots);
40
39
  }
41
40
 
@@ -43,8 +42,9 @@ $prefix: (mdc, filled-text-field);
43
42
  /// Fixes inconsistent values in the filled text field tokens so that they can produce valid
44
43
  /// styles.
45
44
  /// @param {Map} $initial-tokens Map of filled text field tokens currently being generated.
45
+ /// @param {Map} $systems The MDC system tokens
46
46
  /// @return {Map} The given tokens, with the invalid values replaced with valid ones.
47
- @function _fix-tokens($initial-tokens) {
47
+ @function _fix-tokens($initial-tokens, $systems) {
48
48
  // Need to get the hardcoded values, because they include opacities that are used for the disabled
49
49
  // state.
50
50
  $hardcoded-tokens: token-definition.get-mdc-tokens('filled-text-field', (), false);
@@ -80,13 +80,11 @@ $prefix: (mdc, filled-text-field);
80
80
  )
81
81
  ));
82
82
 
83
- $container-shape: map.get($tokens, container-shape);
84
-
85
- // The M2 token slots define a single `container-shape` slot while the M3 tokens provide a list
86
- // of shapes (e.g. top/bottom/left/right). Extract the first value so it matches the expected
87
- // token slot in M2.
88
- @if meta.type-of($container-shape) == 'list' {
89
- $tokens: map.set($tokens, container-shape, list.nth($container-shape, 1));
83
+ // The system tokens have this set as `corner-extra-small-top` which assumes that the value will
84
+ // be set as a `border-radius`, however we set it as `border-top-left-radius` and
85
+ // `border-top-right-radius`. Changing it at this point will be breaking so instead we remap it.
86
+ @if (map.get($tokens, container-shape)) {
87
+ $tokens: map.set($tokens, container-shape, map.get($systems, md-sys-shape, corner-extra-small));
90
88
  }
91
89
 
92
90
  @return $tokens;
@@ -145,18 +145,22 @@ $calendar-weekday-table-font-size: 11px !default;
145
145
  }
146
146
  }
147
147
 
148
- /// Outputs the CSS variable values for the given tokens.
149
- /// @param {Map} $tokens The token values to emit.
150
- @mixin overrides($tokens: ()) {
151
- @include token-utils.batch-create-token-values(
152
- $tokens,
148
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
149
+ @function _define-overrides() {
150
+ @return (
153
151
  (
154
152
  namespace: tokens-mat-datepicker.$prefix,
155
153
  tokens: tokens-mat-datepicker.get-token-slots(),
156
- )
154
+ ),
157
155
  );
158
156
  }
159
157
 
158
+ /// Outputs the CSS variable values for the given tokens.
159
+ /// @param {Map} $tokens The token values to emit.
160
+ @mixin overrides($tokens: ()) {
161
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
162
+ }
163
+
160
164
  /// Outputs all (base, color, typography, and density) theme styles for the mat-datepicker.
161
165
  /// @param {Map} $theme The theme to generate styles for.
162
166
  /// @param {ArgList} Additional optional arguments (only supported for M3 themes):
@@ -17,13 +17,12 @@ import { FactoryProvider } from '@angular/core';
17
17
  import { FocusOrigin } from '@angular/cdk/a11y';
18
18
  import { FormGroupDirective } from '@angular/forms';
19
19
  import * as i0 from '@angular/core';
20
- import * as i1 from '@angular/common';
21
- import * as i2 from '@angular/material/button';
22
- import * as i20 from '@angular/cdk/scrolling';
23
- import * as i3 from '@angular/cdk/overlay';
24
- import * as i4 from '@angular/cdk/a11y';
25
- import * as i5 from '@angular/cdk/portal';
26
- import * as i6 from '@angular/material/core';
20
+ import * as i1 from '@angular/material/button';
21
+ import * as i19 from '@angular/cdk/scrolling';
22
+ import * as i2 from '@angular/cdk/overlay';
23
+ import * as i3 from '@angular/cdk/a11y';
24
+ import * as i4 from '@angular/cdk/portal';
25
+ import * as i5 from '@angular/material/core';
27
26
  import { InjectionToken } from '@angular/core';
28
27
  import { MatButton } from '@angular/material/button';
29
28
  import { MatFormFieldControl } from '@angular/material/form-field';
@@ -116,20 +115,6 @@ export declare type ExtractDateTypeFromSelection<T> = T extends DateRange<infer
116
115
  declare function getActiveOffset<D>(dateAdapter: DateAdapter<D>, activeDate: D, minDate: D | null, maxDate: D | null): number;
117
116
 
118
117
  declare namespace i10 {
119
- export {
120
- MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY,
121
- MAT_DATEPICKER_SCROLL_STRATEGY,
122
- DatepickerDropdownPositionX,
123
- DatepickerDropdownPositionY,
124
- MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER,
125
- MatDatepickerContent,
126
- MatDatepickerControl,
127
- MatDatepickerPanel,
128
- MatDatepickerBase
129
- }
130
- }
131
-
132
- declare namespace i11 {
133
118
  export {
134
119
  MAT_DATEPICKER_VALUE_ACCESSOR,
135
120
  MAT_DATEPICKER_VALIDATORS,
@@ -137,26 +122,26 @@ declare namespace i11 {
137
122
  }
138
123
  }
139
124
 
140
- declare namespace i12 {
125
+ declare namespace i11 {
141
126
  export {
142
127
  MatDatepickerToggleIcon,
143
128
  MatDatepickerToggle
144
129
  }
145
130
  }
146
131
 
147
- declare namespace i13 {
132
+ declare namespace i12 {
148
133
  export {
149
134
  MatMonthView
150
135
  }
151
136
  }
152
137
 
153
- declare namespace i14 {
138
+ declare namespace i13 {
154
139
  export {
155
140
  MatYearView
156
141
  }
157
142
  }
158
143
 
159
- declare namespace i15 {
144
+ declare namespace i14 {
160
145
  export {
161
146
  isSameMultiYearView,
162
147
  getActiveOffset,
@@ -166,13 +151,13 @@ declare namespace i15 {
166
151
  }
167
152
  }
168
153
 
169
- declare namespace i16 {
154
+ declare namespace i15 {
170
155
  export {
171
156
  MatDateRangeInput
172
157
  }
173
158
  }
174
159
 
175
- declare namespace i17 {
160
+ declare namespace i16 {
176
161
  export {
177
162
  MatDateRangeInputParent,
178
163
  MAT_DATE_RANGE_INPUT_PARENT,
@@ -181,14 +166,14 @@ declare namespace i17 {
181
166
  }
182
167
  }
183
168
 
184
- declare namespace i18 {
169
+ declare namespace i17 {
185
170
  export {
186
171
  MatDateRangePickerInput,
187
172
  MatDateRangePicker
188
173
  }
189
174
  }
190
175
 
191
- declare namespace i19 {
176
+ declare namespace i18 {
192
177
  export {
193
178
  MatDatepickerApply,
194
179
  MatDatepickerCancel,
@@ -196,7 +181,7 @@ declare namespace i19 {
196
181
  }
197
182
  }
198
183
 
199
- declare namespace i7 {
184
+ declare namespace i6 {
200
185
  export {
201
186
  MatCalendarView,
202
187
  MatCalendarHeader,
@@ -204,7 +189,7 @@ declare namespace i7 {
204
189
  }
205
190
  }
206
191
 
207
- declare namespace i8 {
192
+ declare namespace i7 {
208
193
  export {
209
194
  MatCalendarCellCssClasses,
210
195
  MatCalendarCellClassFunction,
@@ -214,12 +199,26 @@ declare namespace i8 {
214
199
  }
215
200
  }
216
201
 
217
- declare namespace i9 {
202
+ declare namespace i8 {
218
203
  export {
219
204
  MatDatepicker
220
205
  }
221
206
  }
222
207
 
208
+ declare namespace i9 {
209
+ export {
210
+ MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY,
211
+ MAT_DATEPICKER_SCROLL_STRATEGY,
212
+ DatepickerDropdownPositionX,
213
+ DatepickerDropdownPositionY,
214
+ MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER,
215
+ MatDatepickerContent,
216
+ MatDatepickerControl,
217
+ MatDatepickerPanel,
218
+ MatDatepickerBase
219
+ }
220
+ }
221
+
223
222
  declare function isSameMultiYearView<D>(dateAdapter: DateAdapter<D>, date1: D, date2: D, minDate: D | null, maxDate: D | null): boolean;
224
223
 
225
224
  /**
@@ -455,6 +454,10 @@ export declare class MatCalendarBody<D = any> implements OnChanges, OnDestroy, A
455
454
  _cellPadding: string;
456
455
  /** Width of an individual cell. */
457
456
  _cellWidth: string;
457
+ /** ID for the start date label. */
458
+ _startDateLabelId: string;
459
+ /** ID for the end date label. */
460
+ _endDateLabelId: string;
458
461
  private _didDragSinceMouseDown;
459
462
  private _injector;
460
463
  /**
@@ -555,9 +558,6 @@ export declare class MatCalendarBody<D = any> implements OnChanges, OnDestroy, A
555
558
  private _touchendHandler;
556
559
  /** Finds the MatCalendarCell that corresponds to a DOM node. */
557
560
  private _getCellFromElement;
558
- private _id;
559
- _startDateLabelId: string;
560
- _endDateLabelId: string;
561
561
  static ɵfac: i0.ɵɵFactoryDeclaration<MatCalendarBody<any>, never>;
562
562
  static ɵcmp: i0.ɵɵComponentDeclaration<MatCalendarBody<any>, "[mat-calendar-body]", ["matCalendarBody"], { "label": { "alias": "label"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "todayValue": { "alias": "todayValue"; "required": false; }; "startValue": { "alias": "startValue"; "required": false; }; "endValue": { "alias": "endValue"; "required": false; }; "labelMinRequiredCells": { "alias": "labelMinRequiredCells"; "required": false; }; "numCols": { "alias": "numCols"; "required": false; }; "activeCell": { "alias": "activeCell"; "required": false; }; "isRange": { "alias": "isRange"; "required": false; }; "cellAspectRatio": { "alias": "cellAspectRatio"; "required": false; }; "comparisonStart": { "alias": "comparisonStart"; "required": false; }; "comparisonEnd": { "alias": "comparisonEnd"; "required": false; }; "previewStart": { "alias": "previewStart"; "required": false; }; "previewEnd": { "alias": "previewEnd"; "required": false; }; "startDateAccessibleName": { "alias": "startDateAccessibleName"; "required": false; }; "endDateAccessibleName": { "alias": "endDateAccessibleName"; "required": false; }; }, { "selectedValueChange": "selectedValueChange"; "previewChange": "previewChange"; "activeDateChange": "activeDateChange"; "dragStarted": "dragStarted"; "dragEnded": "dragEnded"; }, never, never, true, never>;
563
563
  }
@@ -621,7 +621,6 @@ export declare class MatCalendarHeader<D> {
621
621
  * for the minimum year, and the second string is the formatted label for the maximum year.
622
622
  */
623
623
  private _formatMinAndMaxYearLabels;
624
- private _id;
625
624
  _periodButtonLabelId: string;
626
625
  static ɵfac: i0.ɵɵFactoryDeclaration<MatCalendarHeader<any>, never>;
627
626
  static ɵcmp: i0.ɵɵComponentDeclaration<MatCalendarHeader<any>, "mat-calendar-header", ["matCalendarHeader"], {}, {}, never, ["*"], true, never>;
@@ -1148,7 +1147,7 @@ export declare class MatDatepickerIntl {
1148
1147
 
1149
1148
  export declare class MatDatepickerModule {
1150
1149
  static ɵfac: i0.ɵɵFactoryDeclaration<MatDatepickerModule, never>;
1151
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatDatepickerModule, never, [typeof i1.CommonModule, typeof i2.MatButtonModule, typeof i3.OverlayModule, typeof i4.A11yModule, typeof i5.PortalModule, typeof i6.MatCommonModule, typeof i7.MatCalendar, typeof i8.MatCalendarBody, typeof i9.MatDatepicker, typeof i10.MatDatepickerContent, typeof i11.MatDatepickerInput, typeof i12.MatDatepickerToggle, typeof i12.MatDatepickerToggleIcon, typeof i13.MatMonthView, typeof i14.MatYearView, typeof i15.MatMultiYearView, typeof i7.MatCalendarHeader, typeof i16.MatDateRangeInput, typeof i17.MatStartDate, typeof i17.MatEndDate, typeof i18.MatDateRangePicker, typeof i19.MatDatepickerActions, typeof i19.MatDatepickerCancel, typeof i19.MatDatepickerApply], [typeof i20.CdkScrollableModule, typeof i7.MatCalendar, typeof i8.MatCalendarBody, typeof i9.MatDatepicker, typeof i10.MatDatepickerContent, typeof i11.MatDatepickerInput, typeof i12.MatDatepickerToggle, typeof i12.MatDatepickerToggleIcon, typeof i13.MatMonthView, typeof i14.MatYearView, typeof i15.MatMultiYearView, typeof i7.MatCalendarHeader, typeof i16.MatDateRangeInput, typeof i17.MatStartDate, typeof i17.MatEndDate, typeof i18.MatDateRangePicker, typeof i19.MatDatepickerActions, typeof i19.MatDatepickerCancel, typeof i19.MatDatepickerApply]>;
1150
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatDatepickerModule, never, [typeof i1.MatButtonModule, typeof i2.OverlayModule, typeof i3.A11yModule, typeof i4.PortalModule, typeof i5.MatCommonModule, typeof i6.MatCalendar, typeof i7.MatCalendarBody, typeof i8.MatDatepicker, typeof i9.MatDatepickerContent, typeof i10.MatDatepickerInput, typeof i11.MatDatepickerToggle, typeof i11.MatDatepickerToggleIcon, typeof i12.MatMonthView, typeof i13.MatYearView, typeof i14.MatMultiYearView, typeof i6.MatCalendarHeader, typeof i15.MatDateRangeInput, typeof i16.MatStartDate, typeof i16.MatEndDate, typeof i17.MatDateRangePicker, typeof i18.MatDatepickerActions, typeof i18.MatDatepickerCancel, typeof i18.MatDatepickerApply], [typeof i19.CdkScrollableModule, typeof i6.MatCalendar, typeof i7.MatCalendarBody, typeof i8.MatDatepicker, typeof i9.MatDatepickerContent, typeof i10.MatDatepickerInput, typeof i11.MatDatepickerToggle, typeof i11.MatDatepickerToggleIcon, typeof i12.MatMonthView, typeof i13.MatYearView, typeof i14.MatMultiYearView, typeof i6.MatCalendarHeader, typeof i15.MatDateRangeInput, typeof i16.MatStartDate, typeof i16.MatEndDate, typeof i17.MatDateRangePicker, typeof i18.MatDatepickerActions, typeof i18.MatDatepickerCancel, typeof i18.MatDatepickerApply]>;
1152
1151
  static ɵinj: i0.ɵɵInjectorDeclaration<MatDatepickerModule>;
1153
1152
  }
1154
1153
 
@@ -67,9 +67,9 @@
67
67
  }
68
68
  }
69
69
 
70
- @mixin overrides($tokens: ()) {
71
- @include token-utils.batch-create-token-values(
72
- $tokens,
70
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
71
+ @function _define-overrides() {
72
+ @return (
73
73
  (
74
74
  namespace: tokens-mdc-dialog.$prefix,
75
75
  tokens: tokens-mdc-dialog.get-token-slots(),
@@ -77,10 +77,14 @@
77
77
  (
78
78
  namespace: tokens-mat-dialog.$prefix,
79
79
  tokens: tokens-mat-dialog.get-token-slots(),
80
- )
80
+ ),
81
81
  );
82
82
  }
83
83
 
84
+ @mixin overrides($tokens: ()) {
85
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
86
+ }
87
+
84
88
  @mixin theme($theme) {
85
89
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-dialog') {
86
90
  @if inspection.get-theme-version($theme) == 1 {