@angular/material 20.1.0-next.1 → 20.1.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. package/_index.scss +1 -2
  2. package/autocomplete/_autocomplete-theme.scss +28 -37
  3. package/badge/_badge-theme.scss +35 -44
  4. package/badge/_m2-badge.scss +3 -2
  5. package/bottom-sheet/_bottom-sheet-theme.scss +28 -40
  6. package/bottom-sheet/_m2-bottom-sheet.scss +6 -9
  7. package/button/_button-theme.scss +37 -55
  8. package/button/_fab-theme.scss +42 -56
  9. package/button/_icon-button-theme.scss +30 -48
  10. package/button/_m2-button.scss +21 -25
  11. package/button/_m2-fab.scss +5 -5
  12. package/button/testing/index.d.ts +1 -0
  13. package/button-toggle/_button-toggle-theme.scss +29 -44
  14. package/button-toggle/_m2-button-toggle.scss +11 -17
  15. package/card/_card-theme.scss +28 -36
  16. package/card/_m2-card.scss +11 -13
  17. package/checkbox/_checkbox-theme.scss +35 -50
  18. package/checkbox/_m2-checkbox.scss +6 -5
  19. package/chips/_chips-theme.scss +24 -30
  20. package/chips/_m2-chip.scss +6 -5
  21. package/core/_core-theme.scss +48 -67
  22. package/core/focus-indicators/_private.scss +2 -5
  23. package/core/m2/_theming.scss +32 -41
  24. package/core/option/_m2-optgroup.scss +6 -6
  25. package/core/option/_m2-option.scss +6 -5
  26. package/core/option/_optgroup-theme.scss +28 -30
  27. package/core/option/_option-theme.scss +35 -34
  28. package/core/ripple/_ripple-theme.scss +28 -33
  29. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +55 -45
  30. package/core/theming/_all-theme.scss +38 -42
  31. package/core/theming/_definition.scss +20 -13
  32. package/core/theming/_inspection.scss +0 -12
  33. package/core/theming/_m2-inspection.scss +0 -33
  34. package/core/theming/_theming.scss +4 -172
  35. package/core/tokens/_m2-utils.scss +5 -65
  36. package/core/tokens/_m3-utils.scss +2 -14
  37. package/core/tokens/_token-utils.scss +7 -27
  38. package/core/tokens/m2/_index.scss +6 -0
  39. package/core/tokens/m2/_md-sys-color.scss +123 -0
  40. package/core/tokens/m2/_md-sys-elevation.scss +16 -0
  41. package/core/tokens/m2/_md-sys-motion.scss +36 -0
  42. package/core/tokens/m2/_md-sys-shape.scss +22 -0
  43. package/core/tokens/m2/_md-sys-state.scss +15 -0
  44. package/core/tokens/m2/_md-sys-typescale.scss +68 -0
  45. package/core/tokens/m3/_md-sys-color.scss +2 -2
  46. package/core/tokens/m3/_md-sys-typescale.scss +1 -1
  47. package/core/tokens/m3/_theme.scss +14 -26
  48. package/datepicker/_datepicker-theme.scss +38 -40
  49. package/datepicker/_m2-datepicker.scss +7 -14
  50. package/dialog/_dialog-theme.scss +28 -34
  51. package/dialog/_m2-dialog.scss +11 -13
  52. package/divider/_divider-theme.scss +28 -30
  53. package/expansion/_expansion-theme.scss +28 -39
  54. package/expansion/_m2-expansion.scss +11 -10
  55. package/expansion/_m3-expansion.scss +2 -0
  56. package/fesm2022/animation-DfMFjxHu.mjs.map +1 -1
  57. package/fesm2022/autocomplete/testing.mjs.map +1 -1
  58. package/fesm2022/autocomplete.mjs +1 -1
  59. package/fesm2022/autocomplete.mjs.map +1 -1
  60. package/fesm2022/badge/testing.mjs.map +1 -1
  61. package/fesm2022/badge.mjs.map +1 -1
  62. package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
  63. package/fesm2022/bottom-sheet.mjs.map +1 -1
  64. package/fesm2022/button/testing.mjs +7 -4
  65. package/fesm2022/button/testing.mjs.map +1 -1
  66. package/fesm2022/button-toggle/testing.mjs.map +1 -1
  67. package/fesm2022/button-toggle.mjs.map +1 -1
  68. package/fesm2022/button.mjs.map +1 -1
  69. package/fesm2022/card/testing.mjs.map +1 -1
  70. package/fesm2022/card.mjs.map +1 -1
  71. package/fesm2022/checkbox/testing.mjs.map +1 -1
  72. package/fesm2022/checkbox.mjs.map +1 -1
  73. package/fesm2022/chips/testing.mjs.map +1 -1
  74. package/fesm2022/chips.mjs +1 -1
  75. package/fesm2022/chips.mjs.map +1 -1
  76. package/fesm2022/common-module-cKSwHniA.mjs.map +1 -1
  77. package/fesm2022/core/testing.mjs.map +1 -1
  78. package/fesm2022/core.mjs +1 -1
  79. package/fesm2022/core.mjs.map +1 -1
  80. package/fesm2022/date-formats-K6TQue-Y.mjs.map +1 -1
  81. package/fesm2022/date-range-input-harness-DEyfkeOs.mjs.map +1 -1
  82. package/fesm2022/datepicker/testing.mjs.map +1 -1
  83. package/fesm2022/datepicker.mjs +1 -1
  84. package/fesm2022/datepicker.mjs.map +1 -1
  85. package/fesm2022/dialog/testing.mjs.map +1 -1
  86. package/fesm2022/dialog.mjs.map +1 -1
  87. package/fesm2022/divider/testing.mjs.map +1 -1
  88. package/fesm2022/divider.mjs.map +1 -1
  89. package/fesm2022/error-options-DCNQlTOA.mjs.map +1 -1
  90. package/fesm2022/error-state-Dtb1IHM-.mjs.map +1 -1
  91. package/fesm2022/expansion/testing.mjs.map +1 -1
  92. package/fesm2022/expansion.mjs +2 -2
  93. package/fesm2022/expansion.mjs.map +1 -1
  94. package/fesm2022/form-field/testing/control.mjs.map +1 -1
  95. package/fesm2022/form-field/testing.mjs.map +1 -1
  96. package/fesm2022/{form-field-C9DZXojn.mjs → form-field-CFbrnFED.mjs} +3 -3
  97. package/fesm2022/form-field-CFbrnFED.mjs.map +1 -0
  98. package/fesm2022/form-field.mjs +2 -2
  99. package/fesm2022/form-field.mjs.map +1 -1
  100. package/fesm2022/grid-list/testing.mjs.map +1 -1
  101. package/fesm2022/grid-list.mjs.map +1 -1
  102. package/fesm2022/icon/testing.mjs.map +1 -1
  103. package/fesm2022/icon-button-DxiIc1ex.mjs.map +1 -1
  104. package/fesm2022/icon-registry-CwOTJ7YM.mjs.map +1 -1
  105. package/fesm2022/icon.mjs.map +1 -1
  106. package/fesm2022/index-BFRo2fUq.mjs.map +1 -1
  107. package/fesm2022/index-DwiL-HGk.mjs.map +1 -1
  108. package/fesm2022/input/testing.mjs.map +1 -1
  109. package/fesm2022/input-harness-C5Msdc4-.mjs.map +1 -1
  110. package/fesm2022/input-value-accessor-D1GvPuqO.mjs.map +1 -1
  111. package/fesm2022/input.mjs +3 -27
  112. package/fesm2022/input.mjs.map +1 -1
  113. package/fesm2022/internal-form-field-D5iFxU6d.mjs.map +1 -1
  114. package/fesm2022/line-Bz5f9Cyx.mjs.map +1 -1
  115. package/fesm2022/list/testing.mjs.map +1 -1
  116. package/fesm2022/list.mjs.map +1 -1
  117. package/fesm2022/material.mjs.map +1 -1
  118. package/fesm2022/menu/testing.mjs +97 -13
  119. package/fesm2022/menu/testing.mjs.map +1 -1
  120. package/fesm2022/menu.mjs +343 -122
  121. package/fesm2022/menu.mjs.map +1 -1
  122. package/fesm2022/{module-BDiw_nWS.mjs → module-B0CLRw5e.mjs} +3 -3
  123. package/fesm2022/module-B0CLRw5e.mjs.map +1 -0
  124. package/fesm2022/{module-DzZHEh7B.mjs → module-B62K-792.mjs} +2 -2
  125. package/fesm2022/module-B62K-792.mjs.map +1 -0
  126. package/fesm2022/module-CWxMD37a.mjs.map +1 -1
  127. package/fesm2022/module-Ce6F7TNm.mjs.map +1 -1
  128. package/fesm2022/option-BzhYL_xC.mjs.map +1 -1
  129. package/fesm2022/option-harness-BFcc-M_4.mjs.map +1 -1
  130. package/fesm2022/paginator/testing.mjs.map +1 -1
  131. package/fesm2022/paginator.mjs +3 -3
  132. package/fesm2022/paginator.mjs.map +1 -1
  133. package/fesm2022/progress-bar/testing.mjs.map +1 -1
  134. package/fesm2022/progress-bar.mjs.map +1 -1
  135. package/fesm2022/progress-spinner/testing.mjs.map +1 -1
  136. package/fesm2022/progress-spinner.mjs.map +1 -1
  137. package/fesm2022/pseudo-checkbox-DDmgx3P4.mjs.map +1 -1
  138. package/fesm2022/pseudo-checkbox-module-4F8Up4PL.mjs.map +1 -1
  139. package/fesm2022/public-api-BoO5eSq-.mjs.map +1 -1
  140. package/fesm2022/radio/testing.mjs.map +1 -1
  141. package/fesm2022/radio.mjs.map +1 -1
  142. package/fesm2022/ripple-BYgV4oZC.mjs.map +1 -1
  143. package/fesm2022/ripple-loader-BnMiRtmT.mjs.map +1 -1
  144. package/fesm2022/select/testing.mjs.map +1 -1
  145. package/fesm2022/select.mjs +3 -3
  146. package/fesm2022/select.mjs.map +1 -1
  147. package/fesm2022/sidenav/testing.mjs.map +1 -1
  148. package/fesm2022/sidenav.mjs.map +1 -1
  149. package/fesm2022/slide-toggle/testing.mjs.map +1 -1
  150. package/fesm2022/slide-toggle.mjs +2 -2
  151. package/fesm2022/slide-toggle.mjs.map +1 -1
  152. package/fesm2022/slider/testing.mjs.map +1 -1
  153. package/fesm2022/slider.mjs.map +1 -1
  154. package/fesm2022/snack-bar/testing.mjs.map +1 -1
  155. package/fesm2022/snack-bar.mjs +2 -2
  156. package/fesm2022/snack-bar.mjs.map +1 -1
  157. package/fesm2022/sort/testing.mjs.map +1 -1
  158. package/fesm2022/sort.mjs.map +1 -1
  159. package/fesm2022/stepper/testing.mjs.map +1 -1
  160. package/fesm2022/stepper.mjs.map +1 -1
  161. package/fesm2022/structural-styles-CObeNzjn.mjs.map +1 -1
  162. package/fesm2022/table/testing.mjs.map +1 -1
  163. package/fesm2022/table.mjs.map +1 -1
  164. package/fesm2022/tabs/testing.mjs.map +1 -1
  165. package/fesm2022/tabs.mjs.map +1 -1
  166. package/fesm2022/timepicker/testing.mjs.map +1 -1
  167. package/fesm2022/timepicker.mjs +1 -1
  168. package/fesm2022/timepicker.mjs.map +1 -1
  169. package/fesm2022/toolbar/testing.mjs.map +1 -1
  170. package/fesm2022/toolbar.mjs.map +1 -1
  171. package/fesm2022/tooltip/testing.mjs.map +1 -1
  172. package/fesm2022/tooltip.mjs.map +1 -1
  173. package/fesm2022/tree/testing.mjs.map +1 -1
  174. package/fesm2022/tree.mjs.map +1 -1
  175. package/form-field/_form-field-theme.scss +35 -51
  176. package/form-field/_m2-form-field.scss +21 -29
  177. package/grid-list/_grid-list-theme.scss +28 -28
  178. package/grid-list/_m2-grid-list.scss +7 -9
  179. package/icon/_icon-theme.scss +40 -41
  180. package/input/_input-theme.scss +1 -4
  181. package/input/index.d.ts +0 -11
  182. package/list/_list-theme.scss +55 -53
  183. package/list/_m2-list.scss +16 -26
  184. package/menu/_m2-menu.scss +6 -6
  185. package/menu/_menu-theme.scss +28 -33
  186. package/menu/index.d.ts +145 -61
  187. package/menu/testing/index.d.ts +50 -2
  188. package/package.json +2 -2
  189. package/paginator/_m2-paginator.scss +7 -8
  190. package/paginator/_paginator-theme.scss +28 -33
  191. package/prebuilt-themes/deeppurple-amber.css +1 -1
  192. package/prebuilt-themes/indigo-pink.css +1 -1
  193. package/prebuilt-themes/pink-bluegrey.css +1 -1
  194. package/prebuilt-themes/purple-green.css +1 -1
  195. package/progress-bar/_progress-bar-theme.scss +35 -43
  196. package/progress-spinner/_progress-spinner-theme.scss +42 -43
  197. package/radio/_m2-radio.scss +6 -5
  198. package/radio/_radio-theme.scss +33 -46
  199. package/schematics/ng-add/index.js +1 -1
  200. package/select/_m2-select.scss +6 -5
  201. package/select/_select-theme.scss +38 -51
  202. package/sidenav/_sidenav-theme.scss +28 -30
  203. package/slide-toggle/_m2-slide-toggle.scss +45 -58
  204. package/slide-toggle/_m3-slide-toggle.scss +1 -0
  205. package/slide-toggle/_slide-toggle-theme.scss +41 -79
  206. package/slider/_m2-slider.scss +6 -9
  207. package/slider/_slider-theme.scss +38 -45
  208. package/snack-bar/_m2-snack-bar.scss +5 -5
  209. package/snack-bar/_snack-bar-theme.scss +28 -31
  210. package/sort/_sort-theme.scss +28 -33
  211. package/stepper/_m2-stepper.scss +10 -13
  212. package/stepper/_stepper-theme.scss +41 -49
  213. package/table/_m2-table.scss +16 -23
  214. package/table/_table-theme.scss +28 -36
  215. package/tabs/_m2-tabs.scss +6 -5
  216. package/tabs/_tabs-theme.scss +35 -43
  217. package/timepicker/_timepicker-theme.scss +28 -46
  218. package/toolbar/_m2-toolbar.scss +6 -7
  219. package/toolbar/_toolbar-theme.scss +55 -46
  220. package/tooltip/_m2-tooltip.scss +5 -6
  221. package/tooltip/_tooltip-theme.scss +28 -37
  222. package/tree/_m2-tree.scss +4 -3
  223. package/tree/_tree-theme.scss +28 -38
  224. package/core/tokens/_format-tokens.scss +0 -5
  225. package/fesm2022/form-field-C9DZXojn.mjs.map +0 -1
  226. package/fesm2022/module-BDiw_nWS.mjs.map +0 -1
  227. package/fesm2022/module-DzZHEh7B.mjs.map +0 -1
@@ -1,4 +1,3 @@
1
- @use '../../theming/palettes';
2
1
  @use './md-sys-color';
3
2
  @use './md-sys-elevation';
4
3
  @use './md-sys-shape';
@@ -17,31 +16,20 @@
17
16
  @return $new-map;
18
17
  }
19
18
 
20
- /// Map key used to store internals of theme config.
21
- $internals: _mat-theming-internals-do-not-access;
22
-
23
- $placeholder-palettes: md-sys-color.md-sys-color-values-light(palettes.$blue-palette);
24
- $placeholder-palettes: map.set($placeholder-palettes, primary, palettes.$blue-palette);
25
- $app-vars: (
26
- 'md-sys-color': _create-system-app-vars-map(
27
- md-sys-color.md-sys-color-values-light($placeholder-palettes)),
28
- 'md-sys-typescale': _create-system-app-vars-map(md-sys-typescale.md-sys-typescale-values((
29
- brand: (Roboto),
30
- plain: (Roboto),
31
- bold: 700,
32
- medium: 500,
33
- regular: 400
34
- ))),
35
- 'md-sys-elevation': _create-system-app-vars-map(md-sys-elevation.md-sys-elevation-values()),
36
- 'md-sys-state': _create-system-app-vars-map(md-sys-state.md-sys-state-values()),
37
- 'md-sys-shape': _create-system-app-vars-map(md-sys-shape.md-sys-shape-values()),
38
- // Add a subset of palette-specific colors used by components instead of system values
39
- 'md-ref-palette': _create-system-app-vars-map(
40
- (
41
- neutral10: '', // Form field native select option text color
42
- neutral-variant20: '', // Sidenav scrim (container background shadow when opened),
43
- )
19
+ $_sys-maps: (
20
+ md-sys-color.md-sys-color-values-light(),
21
+ md-sys-typescale.md-sys-typescale-values(),
22
+ md-sys-elevation.md-sys-elevation-values(),
23
+ md-sys-state.md-sys-state-values(),
24
+ md-sys-shape.md-sys-shape-values(),
25
+ (
26
+ neutral10: '', // Form field native select option text color
27
+ neutral-variant20: '', // Sidenav scrim (container background shadow when opened),
44
28
  ),
45
29
  );
46
30
 
47
- $sys-theme: ($internals: $app-vars);
31
+ $_system: ();
32
+ @each $sys-map in $_sys-maps {
33
+ $_system: map.merge($_system, _create-system-app-vars-map($sys-map));
34
+ }
35
+ $sys-theme: (_mat-system: $_system);
@@ -2,10 +2,8 @@
2
2
  @use 'sass:map';
3
3
  @use './m2-datepicker';
4
4
  @use './m3-datepicker';
5
- @use '../core/theming/theming';
6
5
  @use '../core/theming/inspection';
7
6
  @use '../core/tokens/token-utils';
8
- @use '../core/style/sass-utils';
9
7
  @use '../core/typography/typography';
10
8
  @use '../button/icon-button-theme';
11
9
 
@@ -13,37 +11,35 @@
13
11
  /// for the mat-datepicker.
14
12
  /// @param {Map} $theme The theme to generate base styles for.
15
13
  @mixin base($theme) {
14
+ $tokens: m2-datepicker.get-unthemable-tokens();
16
15
  @if inspection.get-theme-version($theme) == 1 {
17
- @include token-utils.create-token-values(map.get(m3-datepicker.get-tokens($theme), base));
18
- } @else {
19
- @include sass-utils.current-selector-or-root() {
20
- @include token-utils.create-token-values-mixed(m2-datepicker.get-unthemable-tokens());
21
- }
16
+ $tokens: map.get(m3-datepicker.get-tokens($theme), base);
22
17
  }
18
+
19
+ @include token-utils.values($tokens);
23
20
  }
24
21
 
25
22
  /// Outputs color theme styles for the mat-datepicker.
26
23
  /// @param {Map} $theme The theme to generate color styles for.
27
24
  /// @param {String} $color-variant The color variant to use for the component (M3 only)
28
25
  @mixin color($theme, $color-variant: null) {
26
+ $tokens: m2-datepicker.get-color-tokens($theme, primary);
29
27
  @if inspection.get-theme-version($theme) == 1 {
30
- @include token-utils.create-token-values(
31
- map.get(m3-datepicker.get-tokens($theme, $color-variant), color));
32
- } @else {
33
- @include sass-utils.current-selector-or-root() {
34
- @include token-utils.create-token-values-mixed(
35
- m2-datepicker.get-color-tokens($theme, primary));
36
- }
28
+ $tokens: map.get(m3-datepicker.get-tokens($theme, $color-variant), color);
29
+ }
37
30
 
31
+ @include token-utils.values($tokens);
32
+
33
+ @if inspection.get-theme-version($theme) != 1 {
38
34
  .mat-datepicker-content, .mat-datepicker-toggle-active {
39
35
  &.mat-accent {
40
- @include token-utils.create-token-values-mixed(
41
- m2-datepicker.get-color-tokens($theme, secondary));
36
+ $tokens: m2-datepicker.get-color-tokens($theme, secondary);
37
+ @include token-utils.values($tokens);
42
38
  }
43
39
 
44
40
  &.mat-warn {
45
- @include token-utils.create-token-values-mixed(
46
- m2-datepicker.get-color-tokens($theme, error));
41
+ $tokens: m2-datepicker.get-color-tokens($theme, error);
42
+ @include token-utils.values($tokens);
47
43
  }
48
44
  }
49
45
  }
@@ -52,13 +48,12 @@
52
48
  /// Outputs typography theme styles for the mat-datepicker.
53
49
  /// @param {Map} $theme The theme to generate typography styles for.
54
50
  @mixin typography($theme) {
51
+ $tokens: m2-datepicker.get-typography-tokens($theme);
55
52
  @if inspection.get-theme-version($theme) == 1 {
56
- @include token-utils.create-token-values(map.get(m3-datepicker.get-tokens($theme), typography));
57
- } @else {
58
- @include sass-utils.current-selector-or-root() {
59
- @include token-utils.create-token-values-mixed(m2-datepicker.get-typography-tokens($theme));
60
- }
53
+ $tokens: map.get(m3-datepicker.get-tokens($theme), typography);
61
54
  }
55
+
56
+ @include token-utils.values($tokens);
62
57
  }
63
58
 
64
59
  @mixin date-range-colors(
@@ -78,9 +73,14 @@
78
73
  /// Outputs density theme styles for the mat-datepicker.
79
74
  /// @param {Map} $theme The theme to generate density styles for.
80
75
  @mixin density($theme) {
76
+ $tokens: m2-datepicker.get-density-tokens($theme);
81
77
  @if inspection.get-theme-version($theme) == 1 {
82
- @include token-utils.create-token-values(map.get(m3-datepicker.get-tokens($theme), density));
83
- } @else {
78
+ $tokens: map.get(m3-datepicker.get-tokens($theme), density);
79
+ }
80
+
81
+ @include token-utils.values($tokens);
82
+
83
+ @if inspection.get-theme-version($theme) != 1 {
84
84
  // TODO(crisbeto): move this into the structural styles
85
85
  // once the icon button density is switched to tokens.
86
86
 
@@ -112,23 +112,21 @@
112
112
  /// @param {Map} $theme The theme to generate styles for.
113
113
  /// @param {String} $color-variant The color variant to use for the component (M3 only)
114
114
  @mixin theme($theme, $color-variant: null) {
115
- @include theming.private-check-duplicate-theme-styles($theme, 'mat-datepicker') {
116
- @if inspection.get-theme-version($theme) == 1 {
117
- @include base($theme);
118
- @include color($theme, $color-variant);
115
+ @if inspection.get-theme-version($theme) == 1 {
116
+ @include base($theme);
117
+ @include color($theme, $color-variant);
118
+ @include density($theme);
119
+ @include typography($theme);
120
+ } @else {
121
+ @include base($theme);
122
+ @if inspection.theme-has($theme, color) {
123
+ @include color($theme);
124
+ }
125
+ @if inspection.theme-has($theme, density) {
119
126
  @include density($theme);
127
+ }
128
+ @if inspection.theme-has($theme, typography) {
120
129
  @include typography($theme);
121
- } @else {
122
- @include base($theme);
123
- @if inspection.theme-has($theme, color) {
124
- @include color($theme);
125
- }
126
- @if inspection.theme-has($theme, density) {
127
- @include density($theme);
128
- }
129
- @if inspection.theme-has($theme, typography) {
130
- @include typography($theme);
131
- }
132
130
  }
133
131
  }
134
132
  }
@@ -1,5 +1,4 @@
1
1
  @use 'sass:color';
2
- @use '../core/theming/inspection';
3
2
  @use '../core/style/elevation';
4
3
  @use '../core/tokens/m3-utils';
5
4
  @use '../core/tokens/m2-utils';
@@ -65,27 +64,21 @@
65
64
 
66
65
  // Tokens that can be configured through Angular Material's typography theming API.
67
66
  @function get-typography-tokens($theme) {
67
+ $system: m2-utils.get-system($theme);
68
68
  @return (
69
69
  // TODO(crisbeto): the typography tokens for other components set every typography dimension of
70
70
  // an element (e.g. size, weight, line height, letter spacing). These tokens only set the values
71
71
  // that were set in the previous theming API to reduce the amount of subtle screenshot
72
72
  // differences. We should look into introducing the other tokens in a follow-up.
73
- datepicker-calendar-text-font: inspection.get-theme-typography($theme, body-1, font-family),
73
+ datepicker-calendar-text-font: map.get($system, body-large-font),
74
74
  datepicker-calendar-text-size: 13px,
75
-
76
- datepicker-calendar-body-label-text-size:
77
- inspection.get-theme-typography($theme, button, font-size),
78
- datepicker-calendar-body-label-text-weight:
79
- inspection.get-theme-typography($theme, button, font-weight),
80
-
81
- datepicker-calendar-period-button-text-size:
82
- inspection.get-theme-typography($theme, button, font-size),
83
- datepicker-calendar-period-button-text-weight:
84
- inspection.get-theme-typography($theme, button, font-weight),
85
-
75
+ datepicker-calendar-body-label-text-size: map.get($system, label-small-size),
76
+ datepicker-calendar-body-label-text-weight: map.get($system, label-small-weight),
77
+ datepicker-calendar-period-button-text-size: map.get($system, label-small-size),
78
+ datepicker-calendar-period-button-text-weight: map.get($system, label-small-weight),
86
79
  datepicker-calendar-header-text-size: 11px,
87
80
  datepicker-calendar-header-text-weight:
88
- inspection.get-theme-typography($theme, body-1, font-weight),
81
+ map.get($system, body-large-weight),
89
82
  );
90
83
  }
91
84
 
@@ -1,48 +1,44 @@
1
1
  @use 'sass:map';
2
- @use '../core/style/sass-utils';
3
2
  @use './m2-dialog';
4
3
  @use './m3-dialog';
5
4
  @use '../core/tokens/token-utils';
6
- @use '../core/theming/theming';
7
5
  @use '../core/theming/inspection';
8
6
  @use '../core/typography/typography';
9
7
 
10
8
  @mixin base($theme) {
9
+ $tokens: m2-dialog.get-unthemable-tokens();
11
10
  @if inspection.get-theme-version($theme) == 1 {
12
- @include token-utils.create-token-values(map.get(m3-dialog.get-tokens($theme), base));
13
- } @else {
14
- // Add default values for tokens not related to color, typography, or density.
15
- @include sass-utils.current-selector-or-root() {
16
- @include token-utils.create-token-values-mixed(m2-dialog.get-unthemable-tokens());
17
- }
11
+ $tokens: map.get(m3-dialog.get-tokens($theme), base);
18
12
  }
13
+
14
+ @include token-utils.values($tokens);
19
15
  }
20
16
 
21
17
  @mixin color($theme) {
18
+ $tokens: m2-dialog.get-color-tokens($theme);
22
19
  @if inspection.get-theme-version($theme) == 1 {
23
- @include token-utils.create-token-values(map.get(m3-dialog.get-tokens($theme), color));
24
- } @else {
25
- @include sass-utils.current-selector-or-root() {
26
- @include token-utils.create-token-values-mixed(m2-dialog.get-color-tokens($theme));
27
- }
20
+ $tokens: map.get(m3-dialog.get-tokens($theme), color);
28
21
  }
22
+
23
+ @include token-utils.values($tokens);
29
24
  }
30
25
 
31
26
  @mixin typography($theme) {
27
+ $tokens: m2-dialog.get-typography-tokens($theme);
32
28
  @if inspection.get-theme-version($theme) == 1 {
33
- @include token-utils.create-token-values(map.get(m3-dialog.get-tokens($theme), typography));
34
- } @else {
35
- @include sass-utils.current-selector-or-root() {
36
- @include token-utils.create-token-values-mixed(m2-dialog.get-typography-tokens($theme));
37
- }
29
+ $tokens: map.get(m3-dialog.get-tokens($theme), typography);
38
30
  }
31
+
32
+ @include token-utils.values($tokens);
39
33
  }
40
34
 
41
35
  @mixin density($theme) {
36
+ $tokens: m2-dialog.get-density-tokens($theme);
42
37
  @if inspection.get-theme-version($theme) == 1 {
43
- @include token-utils.create-token-values(map.get(m3-dialog.get-tokens($theme), density));
44
- } @else {
38
+ $tokens: map.get(m3-dialog.get-tokens($theme), density);
45
39
  }
40
+
41
+ @include token-utils.values($tokens);
46
42
  }
47
43
 
48
44
  /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
@@ -60,23 +56,21 @@
60
56
  }
61
57
 
62
58
  @mixin theme($theme) {
63
- @include theming.private-check-duplicate-theme-styles($theme, 'mat-dialog') {
64
- @if inspection.get-theme-version($theme) == 1 {
65
- @include base($theme);
59
+ @if inspection.get-theme-version($theme) == 1 {
60
+ @include base($theme);
61
+ @include color($theme);
62
+ @include density($theme);
63
+ @include typography($theme);
64
+ } @else {
65
+ @include base($theme);
66
+ @if inspection.theme-has($theme, color) {
66
67
  @include color($theme);
68
+ }
69
+ @if inspection.theme-has($theme, density) {
67
70
  @include density($theme);
71
+ }
72
+ @if inspection.theme-has($theme, typography) {
68
73
  @include typography($theme);
69
- } @else {
70
- @include base($theme);
71
- @if inspection.theme-has($theme, color) {
72
- @include color($theme);
73
- }
74
- @if inspection.theme-has($theme, density) {
75
- @include density($theme);
76
- }
77
- @if inspection.theme-has($theme, typography) {
78
- @include typography($theme);
79
- }
80
74
  }
81
75
  }
82
76
  }
@@ -1,5 +1,4 @@
1
1
  @use '../core/style/elevation';
2
- @use '../core/theming/inspection';
3
2
  @use '../core/tokens/m2-utils';
4
3
  @use 'sass:map';
5
4
 
@@ -35,19 +34,18 @@
35
34
 
36
35
  // Tokens that can be configured through Angular Material's typography theming API.
37
36
  @function get-typography-tokens($theme) {
37
+ $system: m2-utils.get-system($theme);
38
38
  @return (
39
- dialog-subhead-font: inspection.get-theme-typography($theme, headline-6, font-family),
40
- dialog-subhead-line-height: inspection.get-theme-typography($theme, headline-6, line-height),
41
- dialog-subhead-size: inspection.get-theme-typography($theme, headline-6, font-size),
42
- dialog-subhead-weight: inspection.get-theme-typography($theme, headline-6, font-weight),
43
- dialog-subhead-tracking: inspection.get-theme-typography($theme, headline-6, letter-spacing),
44
- dialog-supporting-text-font: inspection.get-theme-typography($theme, body-1, font-family),
45
- dialog-supporting-text-line-height:
46
- inspection.get-theme-typography($theme, body-1, line-height),
47
- dialog-supporting-text-size: inspection.get-theme-typography($theme, body-1, font-size),
48
- dialog-supporting-text-weight: inspection.get-theme-typography($theme, body-1, font-weight),
49
- dialog-supporting-text-tracking:
50
- inspection.get-theme-typography($theme, body-1, letter-spacing),
39
+ dialog-subhead-font: map.get($system, title-small-font),
40
+ dialog-subhead-line-height: map.get($system, title-small-line-height),
41
+ dialog-subhead-size: map.get($system, title-small-size),
42
+ dialog-subhead-weight: map.get($system, title-small-weight),
43
+ dialog-subhead-tracking: map.get($system, title-small-tracking),
44
+ dialog-supporting-text-font: map.get($system, body-large-font),
45
+ dialog-supporting-text-line-height: map.get($system, body-large-line-height),
46
+ dialog-supporting-text-size: map.get($system, body-large-size),
47
+ dialog-supporting-text-weight: map.get($system, body-large-weight),
48
+ dialog-supporting-text-tracking: map.get($system, body-large-tracking),
51
49
  );
52
50
  }
53
51
 
@@ -1,43 +1,43 @@
1
1
  @use 'sass:map';
2
- @use '../core/style/sass-utils';
3
- @use '../core/theming/theming';
4
2
  @use '../core/theming/inspection';
5
3
  @use '../core/tokens/token-utils';
6
4
  @use './m2-divider';
7
5
  @use './m3-divider';
8
6
 
9
7
  @mixin base($theme) {
8
+ $tokens: m2-divider.get-unthemable-tokens();
10
9
  @if inspection.get-theme-version($theme) == 1 {
11
- @include token-utils.create-token-values(map.get(m3-divider.get-tokens($theme), base));
12
- } @else {
13
- @include sass-utils.current-selector-or-root() {
14
- @include token-utils.create-token-values-mixed(m2-divider.get-unthemable-tokens());
15
- }
10
+ $tokens: map.get(m3-divider.get-tokens($theme), base);
16
11
  }
12
+
13
+ @include token-utils.values($tokens);
17
14
  }
18
15
 
19
16
  @mixin color($theme) {
17
+ $tokens: m2-divider.get-color-tokens($theme);
20
18
  @if inspection.get-theme-version($theme) == 1 {
21
- @include token-utils.create-token-values(map.get(m3-divider.get-tokens($theme), color));
22
- } @else {
23
- @include sass-utils.current-selector-or-root() {
24
- @include token-utils.create-token-values-mixed(m2-divider.get-color-tokens($theme));
25
- }
19
+ $tokens: map.get(m3-divider.get-tokens($theme), color);
26
20
  }
21
+
22
+ @include token-utils.values($tokens);
27
23
  }
28
24
 
29
25
  @mixin typography($theme) {
26
+ $tokens: m2-divider.get-typography-tokens($theme);
30
27
  @if inspection.get-theme-version($theme) == 1 {
31
- @include token-utils.create-token-values(map.get(m3-divider.get-tokens($theme), typography));
32
- } @else {
28
+ $tokens: map.get(m3-divider.get-tokens($theme), typography);
33
29
  }
30
+
31
+ @include token-utils.values($tokens);
34
32
  }
35
33
 
36
34
  @mixin density($theme) {
35
+ $tokens: m2-divider.get-density-tokens($theme);
37
36
  @if inspection.get-theme-version($theme) == 1 {
38
- @include token-utils.create-token-values(map.get(m3-divider.get-tokens($theme), density));
39
- } @else {
37
+ $tokens: map.get(m3-divider.get-tokens($theme), density);
40
38
  }
39
+
40
+ @include token-utils.values($tokens);
41
41
  }
42
42
 
43
43
  /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
@@ -55,23 +55,21 @@
55
55
  }
56
56
 
57
57
  @mixin theme($theme) {
58
- @include theming.private-check-duplicate-theme-styles($theme, 'mat-divider') {
59
- @if inspection.get-theme-version($theme) == 1 {
60
- @include base($theme);
58
+ @if inspection.get-theme-version($theme) == 1 {
59
+ @include base($theme);
60
+ @include color($theme);
61
+ @include density($theme);
62
+ @include typography($theme);
63
+ } @else {
64
+ @include base($theme);
65
+ @if inspection.theme-has($theme, color) {
61
66
  @include color($theme);
67
+ }
68
+ @if inspection.theme-has($theme, density) {
62
69
  @include density($theme);
70
+ }
71
+ @if inspection.theme-has($theme, typography) {
63
72
  @include typography($theme);
64
- } @else {
65
- @include base($theme);
66
- @if inspection.theme-has($theme, color) {
67
- @include color($theme);
68
- }
69
- @if inspection.theme-has($theme, density) {
70
- @include density($theme);
71
- }
72
- @if inspection.theme-has($theme, typography) {
73
- @include typography($theme);
74
- }
75
73
  }
76
74
  }
77
75
  }
@@ -1,53 +1,44 @@
1
1
  @use 'sass:map';
2
- @use '../core/theming/theming';
3
2
  @use '../core/theming/inspection';
4
3
  @use '../core/typography/typography';
5
- @use '../core/style/sass-utils';
6
4
  @use '../core/tokens/token-utils';
7
5
  @use './m2-expansion';
8
6
  @use './m3-expansion';
9
7
 
10
8
  @mixin base($theme) {
9
+ $tokens: m2-expansion.get-unthemable-tokens();
11
10
  @if inspection.get-theme-version($theme) == 1 {
12
- @include token-utils.create-token-values(map.get(m3-expansion.get-tokens($theme), base));
13
- } @else {
14
- @include sass-utils.current-selector-or-root() {
15
- @include token-utils.create-token-values-mixed(m2-expansion.get-unthemable-tokens());
16
- }
11
+ $tokens: map.get(m3-expansion.get-tokens($theme), base);
17
12
  }
13
+
14
+ @include token-utils.values($tokens);
18
15
  }
19
16
 
20
17
  @mixin color($theme) {
18
+ $tokens: m2-expansion.get-color-tokens($theme);
21
19
  @if inspection.get-theme-version($theme) == 1 {
22
- @include token-utils.create-token-values(map.get(m3-expansion.get-tokens($theme), color));
23
- } @else {
24
- @include sass-utils.current-selector-or-root() {
25
- @include token-utils.create-token-values-mixed(m2-expansion.get-color-tokens($theme));
26
- }
20
+ $tokens: map.get(m3-expansion.get-tokens($theme), color);
27
21
  }
22
+
23
+ @include token-utils.values($tokens);
28
24
  }
29
25
 
30
26
  @mixin typography($theme) {
27
+ $tokens: m2-expansion.get-typography-tokens($theme);
31
28
  @if inspection.get-theme-version($theme) == 1 {
32
- @include token-utils.create-token-values(map.get(m3-expansion.get-tokens($theme), typography));
33
- } @else {
34
- // TODO(mmalerba): Stop calling this and resolve resulting screen diffs.
35
- $theme: inspection.private-get-typography-back-compat-theme($theme);
36
-
37
- @include sass-utils.current-selector-or-root() {
38
- @include token-utils.create-token-values-mixed(m2-expansion.get-typography-tokens($theme));
39
- }
29
+ $tokens: map.get(m3-expansion.get-tokens($theme), typography);
40
30
  }
31
+
32
+ @include token-utils.values($tokens);
41
33
  }
42
34
 
43
35
  @mixin density($theme) {
36
+ $tokens: m2-expansion.get-density-tokens($theme);
44
37
  @if inspection.get-theme-version($theme) == 1 {
45
- @include token-utils.create-token-values(map.get(m3-expansion.get-tokens($theme), density));
46
- } @else {
47
- @include sass-utils.current-selector-or-root() {
48
- @include token-utils.create-token-values-mixed(m2-expansion.get-density-tokens($theme));
49
- }
38
+ $tokens: map.get(m3-expansion.get-tokens($theme), density);
50
39
  }
40
+
41
+ @include token-utils.values($tokens);
51
42
  }
52
43
 
53
44
  /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
@@ -65,23 +56,21 @@
65
56
  }
66
57
 
67
58
  @mixin theme($theme) {
68
- @include theming.private-check-duplicate-theme-styles($theme, 'mat-expansion') {
69
- @if inspection.get-theme-version($theme) == 1 {
70
- @include base($theme);
59
+ @if inspection.get-theme-version($theme) == 1 {
60
+ @include base($theme);
61
+ @include color($theme);
62
+ @include density($theme);
63
+ @include typography($theme);
64
+ } @else {
65
+ @include base($theme);
66
+ @if inspection.theme-has($theme, color) {
71
67
  @include color($theme);
68
+ }
69
+ @if inspection.theme-has($theme, density) {
72
70
  @include density($theme);
71
+ }
72
+ @if inspection.theme-has($theme, typography) {
73
73
  @include typography($theme);
74
- } @else {
75
- @include base($theme);
76
- @if inspection.theme-has($theme, color) {
77
- @include color($theme);
78
- }
79
- @if inspection.theme-has($theme, density) {
80
- @include density($theme);
81
- }
82
- @if inspection.theme-has($theme, typography) {
83
- @include typography($theme);
84
- }
85
74
  }
86
75
  }
87
76
  }
@@ -3,12 +3,14 @@
3
3
  @use '../core/theming/inspection';
4
4
  @use '../core/tokens/m2-utils';
5
5
  @use '../core/tokens/m3-utils';
6
+ @use '../core/style/elevation';
6
7
 
7
8
  // Tokens that can't be configured through Angular Material's current theming API,
8
9
  // but may be in a future version of the theming API.
9
10
  @function get-unthemable-tokens() {
10
11
  @return (
11
12
  expansion-container-shape: 4px,
13
+ expansion-container-elevation-shadow: elevation.get-box-shadow(2),
12
14
  expansion-legacy-header-indicator-display: inline-block,
13
15
  expansion-header-indicator-display: none,
14
16
  );
@@ -35,10 +37,11 @@
35
37
 
36
38
  // Tokens that can be configured through Angular Material's typography theming API.
37
39
  @function get-typography-tokens($theme) {
40
+ $system: m2-utils.get-system($theme);
38
41
  @return (
39
- expansion-header-text-font: inspection.get-theme-typography($theme, subtitle-2, font-family),
40
- expansion-header-text-size: inspection.get-theme-typography($theme, subtitle-2, font-size),
41
- expansion-header-text-weight: inspection.get-theme-typography($theme, subtitle-2, font-weight),
42
+ expansion-header-text-font: map.get($system, label-medium-font),
43
+ expansion-header-text-size: map.get($system, label-medium-size),
44
+ expansion-header-text-weight: map.get($system, label-medium-weight),
42
45
 
43
46
  // TODO(crisbeto): these two properties weren't set at all before the introduction of tokens,
44
47
  // but it's inconsistent not to provide them since the container sets all of them. Eventually
@@ -46,13 +49,11 @@
46
49
  expansion-header-text-line-height: inherit,
47
50
  expansion-header-text-tracking: inherit,
48
51
 
49
- expansion-container-text-font: inspection.get-theme-typography($theme, body-2, font-family),
50
- expansion-container-text-line-height:
51
- inspection.get-theme-typography($theme, body-2, line-height),
52
- expansion-container-text-size: inspection.get-theme-typography($theme, body-2, font-size),
53
- expansion-container-text-tracking:
54
- inspection.get-theme-typography($theme, body-2, letter-spacing),
55
- expansion-container-text-weight: inspection.get-theme-typography($theme, body-2, font-weight),
52
+ expansion-container-text-font: map.get($system, body-medium-font),
53
+ expansion-container-text-line-height: map.get($system, body-medium-line-height),
54
+ expansion-container-text-size: map.get($system, body-medium-size),
55
+ expansion-container-text-tracking: map.get($system, body-medium-tracking),
56
+ expansion-container-text-weight: map.get($system, body-medium-weight),
56
57
  );
57
58
  }
58
59
 
@@ -4,6 +4,7 @@
4
4
  @use '../core/theming/theming';
5
5
  @use '../core/theming/inspection';
6
6
  @use '../core/tokens/m3';
7
+ @use '../core/style/elevation';
7
8
 
8
9
  // The prefix used to generate the fully qualified name for tokens in this file.
9
10
  $prefix: (mat, expansion);
@@ -17,6 +18,7 @@ $prefix: (mat, expansion);
17
18
  expansion-container-shape: 12px,
18
19
  expansion-header-indicator-display: inline-block,
19
20
  expansion-legacy-header-indicator-display: none,
21
+ expansion-container-elevation-shadow: elevation.get-box-shadow(2),
20
22
  ),
21
23
  color: (
22
24
  expansion-actions-divider-color: map.get($system, outline),
@@ -1 +1 @@
1
- {"version":3,"file":"animation-DfMFjxHu.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/material/core/animation/animation.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {MediaMatcher} from '@angular/cdk/layout';\nimport {ANIMATION_MODULE_TYPE, inject, InjectionToken} from '@angular/core';\n\n/** Object used to configure the animation in Angular Material. */\nexport interface AnimationsConfig {\n /** Whether all animations should be disabled. */\n animationsDisabled?: boolean;\n}\n\n/** Injection token used to configure the animations in Angular Material. */\nexport const MATERIAL_ANIMATIONS = new InjectionToken<AnimationsConfig>('MATERIAL_ANIMATIONS');\n\n/**\n * @deprecated No longer used, will be removed.\n * @breaking-change 21.0.0\n * @docs-private\n */\nexport class AnimationCurves {\n static STANDARD_CURVE = 'cubic-bezier(0.4,0.0,0.2,1)';\n static DECELERATION_CURVE = 'cubic-bezier(0.0,0.0,0.2,1)';\n static ACCELERATION_CURVE = 'cubic-bezier(0.4,0.0,1,1)';\n static SHARP_CURVE = 'cubic-bezier(0.4,0.0,0.6,1)';\n}\n\n/**\n * @deprecated No longer used, will be removed.\n * @breaking-change 21.0.0\n * @docs-private\n */\nexport class AnimationDurations {\n static COMPLEX = '375ms';\n static ENTERING = '225ms';\n static EXITING = '195ms';\n}\n\n/**\n * Returns whether animations have been disabled by DI. Must be called in a DI context.\n * @docs-private\n */\nexport function _animationsDisabled(): boolean {\n if (\n inject(MATERIAL_ANIMATIONS, {optional: true})?.animationsDisabled ||\n inject(ANIMATION_MODULE_TYPE, {optional: true}) === 'NoopAnimations'\n ) {\n return true;\n }\n\n const mediaMatcher = inject(MediaMatcher);\n return mediaMatcher.matchMedia('(prefers-reduced-motion)').matches;\n}\n"],"names":[],"mappings":";;;AAiBA;MACa,mBAAmB,GAAG,IAAI,cAAc,CAAmB,qBAAqB;AAE7F;;;;AAIG;MACU,eAAe,CAAA;AAC1B,IAAA,OAAO,cAAc,GAAG,6BAA6B;AACrD,IAAA,OAAO,kBAAkB,GAAG,6BAA6B;AACzD,IAAA,OAAO,kBAAkB,GAAG,2BAA2B;AACvD,IAAA,OAAO,WAAW,GAAG,6BAA6B;;AAGpD;;;;AAIG;MACU,kBAAkB,CAAA;AAC7B,IAAA,OAAO,OAAO,GAAG,OAAO;AACxB,IAAA,OAAO,QAAQ,GAAG,OAAO;AACzB,IAAA,OAAO,OAAO,GAAG,OAAO;;AAG1B;;;AAGG;SACa,mBAAmB,GAAA;IACjC,IACE,MAAM,CAAC,mBAAmB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,EAAE,kBAAkB;AACjE,QAAA,MAAM,CAAC,qBAAqB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,KAAK,gBAAgB,EACpE;AACA,QAAA,OAAO,IAAI;;AAGb,IAAA,MAAM,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;IACzC,OAAO,YAAY,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC,OAAO;AACpE;;;;"}
1
+ {"version":3,"file":"animation-DfMFjxHu.mjs","sources":["../../../../../k8-fastbuild-ST-46c76129e412/bin/src/material/core/animation/animation.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {MediaMatcher} from '@angular/cdk/layout';\nimport {ANIMATION_MODULE_TYPE, inject, InjectionToken} from '@angular/core';\n\n/** Object used to configure the animation in Angular Material. */\nexport interface AnimationsConfig {\n /** Whether all animations should be disabled. */\n animationsDisabled?: boolean;\n}\n\n/** Injection token used to configure the animations in Angular Material. */\nexport const MATERIAL_ANIMATIONS = new InjectionToken<AnimationsConfig>('MATERIAL_ANIMATIONS');\n\n/**\n * @deprecated No longer used, will be removed.\n * @breaking-change 21.0.0\n * @docs-private\n */\nexport class AnimationCurves {\n static STANDARD_CURVE = 'cubic-bezier(0.4,0.0,0.2,1)';\n static DECELERATION_CURVE = 'cubic-bezier(0.0,0.0,0.2,1)';\n static ACCELERATION_CURVE = 'cubic-bezier(0.4,0.0,1,1)';\n static SHARP_CURVE = 'cubic-bezier(0.4,0.0,0.6,1)';\n}\n\n/**\n * @deprecated No longer used, will be removed.\n * @breaking-change 21.0.0\n * @docs-private\n */\nexport class AnimationDurations {\n static COMPLEX = '375ms';\n static ENTERING = '225ms';\n static EXITING = '195ms';\n}\n\n/**\n * Returns whether animations have been disabled by DI. Must be called in a DI context.\n * @docs-private\n */\nexport function _animationsDisabled(): boolean {\n if (\n inject(MATERIAL_ANIMATIONS, {optional: true})?.animationsDisabled ||\n inject(ANIMATION_MODULE_TYPE, {optional: true}) === 'NoopAnimations'\n ) {\n return true;\n }\n\n const mediaMatcher = inject(MediaMatcher);\n return mediaMatcher.matchMedia('(prefers-reduced-motion)').matches;\n}\n"],"names":[],"mappings":";;;AAiBA;MACa,mBAAmB,GAAG,IAAI,cAAc,CAAmB,qBAAqB;AAE7F;;;;AAIG;MACU,eAAe,CAAA;AAC1B,IAAA,OAAO,cAAc,GAAG,6BAA6B;AACrD,IAAA,OAAO,kBAAkB,GAAG,6BAA6B;AACzD,IAAA,OAAO,kBAAkB,GAAG,2BAA2B;AACvD,IAAA,OAAO,WAAW,GAAG,6BAA6B;;AAGpD;;;;AAIG;MACU,kBAAkB,CAAA;AAC7B,IAAA,OAAO,OAAO,GAAG,OAAO;AACxB,IAAA,OAAO,QAAQ,GAAG,OAAO;AACzB,IAAA,OAAO,OAAO,GAAG,OAAO;;AAG1B;;;AAGG;SACa,mBAAmB,GAAA;IACjC,IACE,MAAM,CAAC,mBAAmB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,EAAE,kBAAkB;AACjE,QAAA,MAAM,CAAC,qBAAqB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,KAAK,gBAAgB,EACpE;AACA,QAAA,OAAO,IAAI;;AAGb,IAAA,MAAM,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;IACzC,OAAO,YAAY,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC,OAAO;AACpE;;;;"}