@angular/material 19.0.0-next.8 → 19.0.0-next.9

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 (146) hide show
  1. package/_index.scss +1 -2
  2. package/autocomplete/_autocomplete-theme.scss +30 -21
  3. package/badge/_badge-theme.scss +31 -21
  4. package/bottom-sheet/_bottom-sheet-theme.scss +25 -17
  5. package/button/_button-theme.scss +220 -100
  6. package/button/_fab-theme.scss +88 -41
  7. package/button/_icon-button-theme.scss +31 -22
  8. package/button/index.d.ts +2 -2
  9. package/button-toggle/_button-toggle-theme.scss +52 -32
  10. package/card/_card-theme.scss +72 -35
  11. package/checkbox/_checkbox-theme.scss +6 -4
  12. package/chips/_chips-theme.scss +57 -27
  13. package/core/_core-theme.scss +51 -30
  14. package/core/_core.scss +1 -1
  15. package/core/option/_optgroup-theme.scss +22 -15
  16. package/core/option/_option-theme.scss +27 -18
  17. package/core/ripple/_ripple-theme.scss +26 -18
  18. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +40 -18
  19. package/core/tokens/_m3-system.scss +34 -6
  20. package/core/tokens/_token-utils.scss +91 -34
  21. package/core/tokens/m2/mat/_badge.scss +12 -3
  22. package/core/tokens/m2/mdc/_radio.scss +1 -1
  23. package/core/tokens/m3/definitions/_md-comp-elevated-card.scss +1 -1
  24. package/core/tokens/m3/mat/_badge.scss +6 -3
  25. package/datepicker/_datepicker-theme.scss +46 -29
  26. package/datepicker/index.d.ts +1 -1
  27. package/dialog/_dialog-theme.scss +39 -20
  28. package/divider/_divider-theme.scss +21 -14
  29. package/expansion/_expansion-theme.scss +29 -21
  30. package/fesm2022/autocomplete.mjs +14 -16
  31. package/fesm2022/autocomplete.mjs.map +1 -1
  32. package/fesm2022/badge.mjs +11 -12
  33. package/fesm2022/badge.mjs.map +1 -1
  34. package/fesm2022/bottom-sheet.mjs +11 -11
  35. package/fesm2022/bottom-sheet.mjs.map +1 -1
  36. package/fesm2022/button-toggle.mjs +11 -12
  37. package/fesm2022/button-toggle.mjs.map +1 -1
  38. package/fesm2022/button.mjs +42 -42
  39. package/fesm2022/button.mjs.map +1 -1
  40. package/fesm2022/card.mjs +49 -60
  41. package/fesm2022/card.mjs.map +1 -1
  42. package/fesm2022/checkbox.mjs +16 -17
  43. package/fesm2022/checkbox.mjs.map +1 -1
  44. package/fesm2022/chips.mjs +48 -54
  45. package/fesm2022/chips.mjs.map +1 -1
  46. package/fesm2022/core.mjs +71 -73
  47. package/fesm2022/core.mjs.map +1 -1
  48. package/fesm2022/datepicker.mjs +95 -105
  49. package/fesm2022/datepicker.mjs.map +1 -1
  50. package/fesm2022/dialog/testing.mjs +0 -1
  51. package/fesm2022/dialog/testing.mjs.map +1 -1
  52. package/fesm2022/dialog.mjs +28 -33
  53. package/fesm2022/dialog.mjs.map +1 -1
  54. package/fesm2022/divider.mjs +8 -8
  55. package/fesm2022/divider.mjs.map +1 -1
  56. package/fesm2022/expansion.mjs +28 -33
  57. package/fesm2022/expansion.mjs.map +1 -1
  58. package/fesm2022/form-field.mjs +38 -45
  59. package/fesm2022/form-field.mjs.map +1 -1
  60. package/fesm2022/grid-list.mjs +26 -29
  61. package/fesm2022/grid-list.mjs.map +1 -1
  62. package/fesm2022/icon/testing.mjs +7 -7
  63. package/fesm2022/icon/testing.mjs.map +1 -1
  64. package/fesm2022/icon.mjs +11 -11
  65. package/fesm2022/icon.mjs.map +1 -1
  66. package/fesm2022/input.mjs +7 -8
  67. package/fesm2022/input.mjs.map +1 -1
  68. package/fesm2022/list.mjs +57 -66
  69. package/fesm2022/list.mjs.map +1 -1
  70. package/fesm2022/menu.mjs +18 -20
  71. package/fesm2022/menu.mjs.map +1 -1
  72. package/fesm2022/paginator.mjs +11 -11
  73. package/fesm2022/paginator.mjs.map +1 -1
  74. package/fesm2022/progress-bar.mjs +8 -8
  75. package/fesm2022/progress-bar.mjs.map +1 -1
  76. package/fesm2022/progress-spinner.mjs +8 -8
  77. package/fesm2022/progress-spinner.mjs.map +1 -1
  78. package/fesm2022/radio.mjs +11 -12
  79. package/fesm2022/radio.mjs.map +1 -1
  80. package/fesm2022/select.mjs +12 -13
  81. package/fesm2022/select.mjs.map +1 -1
  82. package/fesm2022/sidenav.mjs +28 -30
  83. package/fesm2022/sidenav.mjs.map +1 -1
  84. package/fesm2022/slide-toggle.mjs +16 -17
  85. package/fesm2022/slide-toggle.mjs.map +1 -1
  86. package/fesm2022/slider.mjs +18 -20
  87. package/fesm2022/slider.mjs.map +1 -1
  88. package/fesm2022/snack-bar.mjs +25 -28
  89. package/fesm2022/snack-bar.mjs.map +1 -1
  90. package/fesm2022/sort.mjs +14 -15
  91. package/fesm2022/sort.mjs.map +1 -1
  92. package/fesm2022/stepper.mjs +34 -39
  93. package/fesm2022/stepper.mjs.map +1 -1
  94. package/fesm2022/table.mjs +57 -73
  95. package/fesm2022/table.mjs.map +1 -1
  96. package/fesm2022/tabs.mjs +51 -56
  97. package/fesm2022/tabs.mjs.map +1 -1
  98. package/fesm2022/timepicker.mjs +17 -18
  99. package/fesm2022/timepicker.mjs.map +1 -1
  100. package/fesm2022/toolbar.mjs +11 -12
  101. package/fesm2022/toolbar.mjs.map +1 -1
  102. package/fesm2022/tooltip.mjs +11 -12
  103. package/fesm2022/tooltip.mjs.map +1 -1
  104. package/fesm2022/tree.mjs +26 -32
  105. package/fesm2022/tree.mjs.map +1 -1
  106. package/form-field/_form-field-theme.scss +105 -56
  107. package/form-field/index.d.ts +1 -1
  108. package/grid-list/_grid-list-theme.scss +18 -12
  109. package/icon/_icon-theme.scss +15 -11
  110. package/input/_input-theme.scss +11 -8
  111. package/list/_list-theme.scss +82 -44
  112. package/menu/_menu-theme.scss +26 -18
  113. package/package.json +2 -2
  114. package/paginator/_paginator-theme.scss +32 -20
  115. package/prebuilt-themes/azure-blue.css +1 -1
  116. package/prebuilt-themes/cyan-orange.css +1 -1
  117. package/prebuilt-themes/deeppurple-amber.css +1 -1
  118. package/prebuilt-themes/indigo-pink.css +1 -1
  119. package/prebuilt-themes/magenta-violet.css +1 -1
  120. package/prebuilt-themes/pink-bluegrey.css +1 -1
  121. package/prebuilt-themes/purple-green.css +1 -1
  122. package/prebuilt-themes/rose-red.css +1 -1
  123. package/progress-bar/_progress-bar-theme.scss +13 -11
  124. package/progress-spinner/_progress-spinner-theme.scss +34 -20
  125. package/radio/_radio-theme.scss +50 -26
  126. package/schematics/collection.json +3 -3
  127. package/schematics/ng-add/index.js +1 -1
  128. package/schematics/ng-add/index.mjs +1 -1
  129. package/schematics/ng-generate/{m3-theme → theme-color}/index_bundled.js +454 -288
  130. package/schematics/ng-generate/theme-color/index_bundled.js.map +7 -0
  131. package/schematics/ng-generate/{m3-theme → theme-color}/schema.json +7 -13
  132. package/select/_select-theme.scss +31 -22
  133. package/sidenav/_sidenav-theme.scss +21 -14
  134. package/slide-toggle/_slide-toggle-theme.scss +42 -22
  135. package/slider/_slider-theme.scss +55 -35
  136. package/snack-bar/_snack-bar-theme.scss +22 -14
  137. package/sort/_sort-theme.scss +26 -18
  138. package/stepper/_stepper-theme.scss +33 -24
  139. package/table/_table-theme.scss +29 -20
  140. package/tabs/_tabs-theme.scss +89 -46
  141. package/tabs/index.d.ts +2 -2
  142. package/timepicker/_timepicker-theme.scss +30 -21
  143. package/toolbar/_toolbar-theme.scss +28 -19
  144. package/tooltip/_tooltip-theme.scss +11 -12
  145. package/tree/_tree-theme.scss +26 -18
  146. package/schematics/ng-generate/m3-theme/index_bundled.js.map +0 -7
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema",
3
3
  "$id": "SchematicsMaterialM3Theme",
4
- "title": "Material 3 Theme Schema",
4
+ "title": "Material 3 Theme Color Schema",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "primaryColor": {
@@ -24,22 +24,16 @@
24
24
  "description": "Color for neutral color palette",
25
25
  "x-prompt": "What HEX color should be used represent the neutral color palette? (Leave blank to use generated colors from Material)"
26
26
  },
27
- "directory": {
28
- "type": "string",
29
- "description": "Workspace-relative path to a directory where generated theme file will be created",
30
- "x-prompt": "What is the directory you want to place the generated theme file in? (Enter the relative path such as 'src/app/styles/' or leave blank to generate at your project root)"
31
- },
32
- "useSystemVariables": {
27
+ "includeHighContrast": {
33
28
  "type": "boolean",
34
29
  "default": false,
35
- "description": "Whether to use system-level variables for the theme.",
36
- "x-prompt": "Do you want to use system-level variables in the theme? System-level variables make dynamic theming easier through CSS custom properties, but increase the bundle size."
30
+ "description": "Whether to create high contrast override theme mixins",
31
+ "x-prompt": "Do you want to generate high contrast value override mixins for your themes?. Providing a high contrast version of your theme when a user specifies helps increase the accesibility of your application."
37
32
  },
38
- "themeTypes": {
33
+ "directory": {
39
34
  "type": "string",
40
- "enum": ["light", "dark", "both"],
41
- "description": "The components to migrate.",
42
- "x-prompt": "Choose light, dark, or both to generate the corresponding themes"
35
+ "description": "Workspace-relative path to a directory where generated theme file will be created",
36
+ "x-prompt": "What is the directory you want to place the generated theme file in? (Enter the relative path such as 'src/app/styles/' or leave blank to generate at your project root)"
43
37
  }
44
38
  }
45
39
  }
@@ -13,8 +13,7 @@
13
13
  @mixin base($theme) {
14
14
  @if inspection.get-theme-version($theme) == 1 {
15
15
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
16
- }
17
- @else {
16
+ } @else {
18
17
  @include sass-utils.current-selector-or-root() {
19
18
  $mat-tokens: tokens-mat-select.get-unthemable-tokens();
20
19
  @include token-utils.create-token-values(tokens-mat-select.$prefix, $mat-tokens);
@@ -30,20 +29,25 @@
30
29
  @mixin color($theme, $options...) {
31
30
  @if inspection.get-theme-version($theme) == 1 {
32
31
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, color), $options...);
33
- }
34
- @else {
32
+ } @else {
35
33
  @include sass-utils.current-selector-or-root() {
36
- @include token-utils.create-token-values(tokens-mat-select.$prefix,
37
- tokens-mat-select.get-color-tokens($theme));
34
+ @include token-utils.create-token-values(
35
+ tokens-mat-select.$prefix,
36
+ tokens-mat-select.get-color-tokens($theme)
37
+ );
38
38
 
39
39
  .mat-mdc-form-field.mat-accent {
40
- @include token-utils.create-token-values(tokens-mat-select.$prefix,
41
- tokens-mat-select.get-color-tokens($theme, accent));
40
+ @include token-utils.create-token-values(
41
+ tokens-mat-select.$prefix,
42
+ tokens-mat-select.get-color-tokens($theme, accent)
43
+ );
42
44
  }
43
45
 
44
46
  .mat-mdc-form-field.mat-warn {
45
- @include token-utils.create-token-values(tokens-mat-select.$prefix,
46
- tokens-mat-select.get-color-tokens($theme, warn));
47
+ @include token-utils.create-token-values(
48
+ tokens-mat-select.$prefix,
49
+ tokens-mat-select.get-color-tokens($theme, warn)
50
+ );
47
51
  }
48
52
  }
49
53
  }
@@ -54,11 +58,12 @@
54
58
  @mixin typography($theme) {
55
59
  @if inspection.get-theme-version($theme) == 1 {
56
60
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
57
- }
58
- @else {
61
+ } @else {
59
62
  @include sass-utils.current-selector-or-root() {
60
- @include token-utils.create-token-values(tokens-mat-select.$prefix,
61
- tokens-mat-select.get-typography-tokens($theme));
63
+ @include token-utils.create-token-values(
64
+ tokens-mat-select.$prefix,
65
+ tokens-mat-select.get-typography-tokens($theme)
66
+ );
62
67
  }
63
68
  }
64
69
  }
@@ -68,11 +73,12 @@
68
73
  @mixin density($theme) {
69
74
  @if inspection.get-theme-version($theme) == 1 {
70
75
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
71
- }
72
- @else {
76
+ } @else {
73
77
  @include sass-utils.current-selector-or-root() {
74
- @include token-utils.create-token-values(tokens-mat-select.$prefix,
75
- tokens-mat-select.get-density-tokens($theme));
78
+ @include token-utils.create-token-values(
79
+ tokens-mat-select.$prefix,
80
+ tokens-mat-select.get-density-tokens($theme)
81
+ );
76
82
  }
77
83
  }
78
84
  }
@@ -82,7 +88,10 @@
82
88
  @mixin overrides($tokens: ()) {
83
89
  @include token-utils.batch-create-token-values(
84
90
  $tokens,
85
- (prefix: tokens-mat-select.$prefix, tokens: tokens-mat-select.get-token-slots()),
91
+ (
92
+ namespace: tokens-mat-select.$prefix,
93
+ tokens: tokens-mat-select.get-token-slots(),
94
+ )
86
95
  );
87
96
  }
88
97
 
@@ -95,8 +104,7 @@
95
104
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-select') {
96
105
  @if inspection.get-theme-version($theme) == 1 {
97
106
  @include _theme-from-tokens(inspection.get-theme-tokens($theme), $options...);
98
- }
99
- @else {
107
+ } @else {
100
108
  @include base($theme);
101
109
  @if inspection.theme-has($theme, color) {
102
110
  @include color($theme);
@@ -113,7 +121,8 @@
113
121
 
114
122
  @mixin _theme-from-tokens($tokens, $options...) {
115
123
  @include validation.selector-defined(
116
- 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
124
+ 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
125
+ );
117
126
  $mat-select-tokens: token-utils.get-tokens-for($tokens, tokens-mat-select.$prefix, $options...);
118
127
  @include token-utils.create-token-values(tokens-mat-select.$prefix, $mat-select-tokens);
119
128
  }
@@ -9,11 +9,12 @@
9
9
  @mixin base($theme) {
10
10
  @if inspection.get-theme-version($theme) == 1 {
11
11
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
12
- }
13
- @else {
12
+ } @else {
14
13
  @include sass-utils.current-selector-or-root() {
15
14
  @include token-utils.create-token-values(
16
- tokens-mat-sidenav.$prefix, tokens-mat-sidenav.get-unthemable-tokens());
15
+ tokens-mat-sidenav.$prefix,
16
+ tokens-mat-sidenav.get-unthemable-tokens()
17
+ );
17
18
  }
18
19
  }
19
20
  }
@@ -21,11 +22,12 @@
21
22
  @mixin color($theme) {
22
23
  @if inspection.get-theme-version($theme) == 1 {
23
24
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
24
- }
25
- @else {
25
+ } @else {
26
26
  @include sass-utils.current-selector-or-root() {
27
- @include token-utils.create-token-values(tokens-mat-sidenav.$prefix,
28
- tokens-mat-sidenav.get-color-tokens($theme));
27
+ @include token-utils.create-token-values(
28
+ tokens-mat-sidenav.$prefix,
29
+ tokens-mat-sidenav.get-color-tokens($theme)
30
+ );
29
31
  }
30
32
  }
31
33
  }
@@ -33,21 +35,24 @@
33
35
  @mixin typography($theme) {
34
36
  @if inspection.get-theme-version($theme) == 1 {
35
37
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
38
+ } @else {
36
39
  }
37
- @else {}
38
40
  }
39
41
 
40
42
  @mixin density($theme) {
41
43
  @if inspection.get-theme-version($theme) == 1 {
42
44
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
45
+ } @else {
43
46
  }
44
- @else {}
45
47
  }
46
48
 
47
49
  @mixin overrides($tokens: ()) {
48
50
  @include token-utils.batch-create-token-values(
49
51
  $tokens,
50
- (prefix: tokens-mat-sidenav.$prefix, tokens: tokens-mat-sidenav.get-token-slots()),
52
+ (
53
+ namespace: tokens-mat-sidenav.$prefix,
54
+ tokens: tokens-mat-sidenav.get-token-slots(),
55
+ )
51
56
  );
52
57
  }
53
58
 
@@ -55,8 +60,7 @@
55
60
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-sidenav') {
56
61
  @if inspection.get-theme-version($theme) == 1 {
57
62
  @include _theme-from-tokens(inspection.get-theme-tokens($theme));
58
- }
59
- @else {
63
+ } @else {
60
64
  @include base($theme);
61
65
  @if inspection.theme-has($theme, color) {
62
66
  @include color($theme);
@@ -73,9 +77,12 @@
73
77
 
74
78
  @mixin _theme-from-tokens($tokens) {
75
79
  @include validation.selector-defined(
76
- 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
80
+ 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
81
+ );
77
82
  @if ($tokens != ()) {
78
83
  @include token-utils.create-token-values(
79
- tokens-mat-sidenav.$prefix, map.get($tokens, tokens-mat-sidenav.$prefix));
84
+ tokens-mat-sidenav.$prefix,
85
+ map.get($tokens, tokens-mat-sidenav.$prefix)
86
+ );
80
87
  }
81
88
  }
@@ -15,12 +15,16 @@
15
15
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
16
16
  } @else {
17
17
  @include sass-utils.current-selector-or-root() {
18
- @include token-utils.create-token-values(tokens-mdc-switch.$prefix,
19
- tokens-mdc-switch.get-unthemable-tokens());
18
+ @include token-utils.create-token-values(
19
+ tokens-mdc-switch.$prefix,
20
+ tokens-mdc-switch.get-unthemable-tokens()
21
+ );
20
22
 
21
23
  .mat-mdc-slide-toggle {
22
- @include token-utils.create-token-values(tokens-mat-switch.$prefix,
23
- tokens-mat-switch.get-unthemable-tokens());
24
+ @include token-utils.create-token-values(
25
+ tokens-mat-switch.$prefix,
26
+ tokens-mat-switch.get-unthemable-tokens()
27
+ );
24
28
  }
25
29
  }
26
30
  }
@@ -39,8 +43,10 @@
39
43
 
40
44
  // Add values for MDC slide toggles tokens
41
45
  @include sass-utils.current-selector-or-root() {
42
- @include token-utils.create-token-values(tokens-mdc-switch.$prefix,
43
- tokens-mdc-switch.get-color-tokens($theme));
46
+ @include token-utils.create-token-values(
47
+ tokens-mdc-switch.$prefix,
48
+ tokens-mdc-switch.get-color-tokens($theme)
49
+ );
44
50
 
45
51
  & {
46
52
  // TODO(wagnermaciel): Use our token system to define this css variable.
@@ -52,18 +58,24 @@
52
58
  }
53
59
 
54
60
  .mat-mdc-slide-toggle {
55
- @include token-utils.create-token-values(tokens-mat-switch.$prefix,
56
- tokens-mat-switch.get-color-tokens($theme));
61
+ @include token-utils.create-token-values(
62
+ tokens-mat-switch.$prefix,
63
+ tokens-mat-switch.get-color-tokens($theme)
64
+ );
57
65
 
58
66
  // Change the color palette related tokens to accent or warn if applicable
59
67
  &.mat-accent {
60
- @include token-utils.create-token-values(tokens-mdc-switch.$prefix,
61
- tokens-mdc-switch.private-get-color-palette-color-tokens($theme, accent));
68
+ @include token-utils.create-token-values(
69
+ tokens-mdc-switch.$prefix,
70
+ tokens-mdc-switch.private-get-color-palette-color-tokens($theme, accent)
71
+ );
62
72
  }
63
73
 
64
74
  &.mat-warn {
65
- @include token-utils.create-token-values(tokens-mdc-switch.$prefix,
66
- tokens-mdc-switch.private-get-color-palette-color-tokens($theme, warn));
75
+ @include token-utils.create-token-values(
76
+ tokens-mdc-switch.$prefix,
77
+ tokens-mdc-switch.private-get-color-palette-color-tokens($theme, warn)
78
+ );
67
79
  }
68
80
  }
69
81
  }
@@ -77,12 +89,16 @@
77
89
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
78
90
  } @else {
79
91
  @include sass-utils.current-selector-or-root() {
80
- @include token-utils.create-token-values(tokens-mdc-switch.$prefix,
81
- tokens-mdc-switch.get-typography-tokens($theme));
92
+ @include token-utils.create-token-values(
93
+ tokens-mdc-switch.$prefix,
94
+ tokens-mdc-switch.get-typography-tokens($theme)
95
+ );
82
96
 
83
97
  .mat-mdc-slide-toggle {
84
- @include token-utils.create-token-values(tokens-mat-switch.$prefix,
85
- tokens-mat-switch.get-typography-tokens($theme));
98
+ @include token-utils.create-token-values(
99
+ tokens-mat-switch.$prefix,
100
+ tokens-mat-switch.get-typography-tokens($theme)
101
+ );
86
102
  }
87
103
  }
88
104
  }
@@ -95,12 +111,16 @@
95
111
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
96
112
  } @else {
97
113
  @include sass-utils.current-selector-or-root() {
98
- @include token-utils.create-token-values(tokens-mdc-switch.$prefix,
99
- tokens-mdc-switch.get-density-tokens($theme));
114
+ @include token-utils.create-token-values(
115
+ tokens-mdc-switch.$prefix,
116
+ tokens-mdc-switch.get-density-tokens($theme)
117
+ );
100
118
 
101
119
  .mat-mdc-slide-toggle {
102
- @include token-utils.create-token-values(tokens-mat-switch.$prefix,
103
- tokens-mat-switch.get-density-tokens($theme));
120
+ @include token-utils.create-token-values(
121
+ tokens-mat-switch.$prefix,
122
+ tokens-mat-switch.get-density-tokens($theme)
123
+ );
104
124
  }
105
125
  }
106
126
  }
@@ -112,11 +132,11 @@
112
132
  @include token-utils.batch-create-token-values(
113
133
  $tokens,
114
134
  (
115
- prefix: tokens-mat-switch.$prefix,
135
+ namespace: tokens-mat-switch.$prefix,
116
136
  tokens: tokens-mat-switch.get-token-slots(),
117
137
  ),
118
138
  (
119
- prefix: tokens-mdc-switch.$prefix,
139
+ namespace: tokens-mdc-switch.$prefix,
120
140
  tokens: tokens-mdc-switch.get-token-slots(),
121
141
  )
122
142
  );
@@ -13,13 +13,16 @@
13
13
  @mixin base($theme) {
14
14
  @if inspection.get-theme-version($theme) == 1 {
15
15
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
16
- }
17
- @else {
16
+ } @else {
18
17
  @include sass-utils.current-selector-or-root() {
19
- @include token-utils.create-token-values(tokens-mdc-slider.$prefix,
20
- tokens-mdc-slider.get-unthemable-tokens());
21
- @include token-utils.create-token-values(tokens-mat-slider.$prefix,
22
- tokens-mat-slider.get-unthemable-tokens());
18
+ @include token-utils.create-token-values(
19
+ tokens-mdc-slider.$prefix,
20
+ tokens-mdc-slider.get-unthemable-tokens()
21
+ );
22
+ @include token-utils.create-token-values(
23
+ tokens-mat-slider.$prefix,
24
+ tokens-mat-slider.get-unthemable-tokens()
25
+ );
23
26
  }
24
27
  }
25
28
  }
@@ -32,57 +35,68 @@
32
35
  @mixin color($theme, $options...) {
33
36
  @if inspection.get-theme-version($theme) == 1 {
34
37
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, color), $options...);
35
- }
36
- @else {
38
+ } @else {
37
39
  @include sass-utils.current-selector-or-root() {
38
- @include token-utils.create-token-values(tokens-mdc-slider.$prefix,
39
- tokens-mdc-slider.get-color-tokens($theme));
40
- @include token-utils.create-token-values(tokens-mat-slider.$prefix,
41
- tokens-mat-slider.get-color-tokens($theme));
40
+ @include token-utils.create-token-values(
41
+ tokens-mdc-slider.$prefix,
42
+ tokens-mdc-slider.get-color-tokens($theme)
43
+ );
44
+ @include token-utils.create-token-values(
45
+ tokens-mat-slider.$prefix,
46
+ tokens-mat-slider.get-color-tokens($theme)
47
+ );
42
48
 
43
49
  .mat-accent {
44
- @include token-utils.create-token-values(tokens-mdc-slider.$prefix,
45
- tokens-mdc-slider.private-get-color-palette-color-tokens($theme, accent));
46
- @include token-utils.create-token-values(tokens-mat-slider.$prefix,
47
- tokens-mat-slider.private-get-color-palette-color-tokens($theme, accent));
50
+ @include token-utils.create-token-values(
51
+ tokens-mdc-slider.$prefix,
52
+ tokens-mdc-slider.private-get-color-palette-color-tokens($theme, accent)
53
+ );
54
+ @include token-utils.create-token-values(
55
+ tokens-mat-slider.$prefix,
56
+ tokens-mat-slider.private-get-color-palette-color-tokens($theme, accent)
57
+ );
48
58
  }
49
59
 
50
60
  .mat-warn {
51
- @include token-utils.create-token-values(tokens-mdc-slider.$prefix,
52
- tokens-mdc-slider.private-get-color-palette-color-tokens($theme, warn));
53
- @include token-utils.create-token-values(tokens-mat-slider.$prefix,
54
- tokens-mat-slider.private-get-color-palette-color-tokens($theme, warn));
61
+ @include token-utils.create-token-values(
62
+ tokens-mdc-slider.$prefix,
63
+ tokens-mdc-slider.private-get-color-palette-color-tokens($theme, warn)
64
+ );
65
+ @include token-utils.create-token-values(
66
+ tokens-mat-slider.$prefix,
67
+ tokens-mat-slider.private-get-color-palette-color-tokens($theme, warn)
68
+ );
55
69
  }
56
70
  }
57
71
  }
58
72
  }
59
73
 
60
-
61
74
  /// Outputs typography theme styles for the mat-slider.
62
75
  /// @param {Map} $theme The theme to generate typography styles for.
63
76
  @mixin typography($theme) {
64
77
  @if inspection.get-theme-version($theme) == 1 {
65
78
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
66
- }
67
- @else {
79
+ } @else {
68
80
  @include sass-utils.current-selector-or-root() {
69
- @include token-utils.create-token-values(tokens-mdc-slider.$prefix,
70
- tokens-mdc-slider.get-typography-tokens($theme));
81
+ @include token-utils.create-token-values(
82
+ tokens-mdc-slider.$prefix,
83
+ tokens-mdc-slider.get-typography-tokens($theme)
84
+ );
71
85
  }
72
86
  }
73
87
  }
74
88
 
75
-
76
89
  /// Outputs density theme styles for the mat-slider.
77
90
  /// @param {Map} $theme The theme to generate density styles for.
78
91
  @mixin density($theme) {
79
92
  @if inspection.get-theme-version($theme) == 1 {
80
93
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
81
- }
82
- @else {
94
+ } @else {
83
95
  @include sass-utils.current-selector-or-root() {
84
- @include token-utils.create-token-values(tokens-mdc-slider.$prefix,
85
- tokens-mdc-slider.get-density-tokens($theme));
96
+ @include token-utils.create-token-values(
97
+ tokens-mdc-slider.$prefix,
98
+ tokens-mdc-slider.get-density-tokens($theme)
99
+ );
86
100
  }
87
101
  }
88
102
  }
@@ -92,8 +106,14 @@
92
106
  @mixin overrides($tokens: ()) {
93
107
  @include token-utils.batch-create-token-values(
94
108
  $tokens,
95
- (prefix: tokens-mat-slider.$prefix, tokens: tokens-mat-slider.get-token-slots()),
96
- (prefix: tokens-mdc-slider.$prefix, tokens: tokens-mdc-slider.get-token-slots()),
109
+ (
110
+ namespace: tokens-mat-slider.$prefix,
111
+ tokens: tokens-mat-slider.get-token-slots(),
112
+ ),
113
+ (
114
+ namespace: tokens-mdc-slider.$prefix,
115
+ tokens: tokens-mdc-slider.get-token-slots(),
116
+ )
97
117
  );
98
118
  }
99
119
 
@@ -106,8 +126,7 @@
106
126
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-slider') {
107
127
  @if inspection.get-theme-version($theme) == 1 {
108
128
  @include _theme-from-tokens(inspection.get-theme-tokens($theme), $options...);
109
- }
110
- @else {
129
+ } @else {
111
130
  @include base($theme);
112
131
  @if inspection.theme-has($theme, color) {
113
132
  @include color($theme);
@@ -124,7 +143,8 @@
124
143
 
125
144
  @mixin _theme-from-tokens($tokens, $options...) {
126
145
  @include validation.selector-defined(
127
- 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
146
+ 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
147
+ );
128
148
  $mdc-slider-tokens: token-utils.get-tokens-for($tokens, tokens-mdc-slider.$prefix, $options...);
129
149
  $mat-slider-tokens: token-utils.get-tokens-for($tokens, tokens-mat-slider.$prefix, $options...);
130
150
  @include token-utils.create-token-values(tokens-mdc-slider.$prefix, $mdc-slider-tokens);
@@ -11,8 +11,7 @@
11
11
  @mixin base($theme) {
12
12
  @if inspection.get-theme-version($theme) == 1 {
13
13
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
14
- }
15
- @else {
14
+ } @else {
16
15
  // Add default values for tokens not related to color, typography, or density.
17
16
  @include sass-utils.current-selector-or-root() {
18
17
  @include token-utils.create-token-values(
@@ -26,8 +25,7 @@
26
25
  @mixin color($theme) {
27
26
  @if inspection.get-theme-version($theme) == 1 {
28
27
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
29
- }
30
- @else {
28
+ } @else {
31
29
  @include sass-utils.current-selector-or-root() {
32
30
  @include token-utils.create-token-values(
33
31
  tokens-mdc-snack-bar.$prefix,
@@ -44,8 +42,7 @@
44
42
  @mixin typography($theme) {
45
43
  @if inspection.get-theme-version($theme) == 1 {
46
44
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
47
- }
48
- @else {
45
+ } @else {
49
46
  @include sass-utils.current-selector-or-root() {
50
47
  @include token-utils.create-token-values(
51
48
  tokens-mdc-snack-bar.$prefix,
@@ -55,15 +52,22 @@
55
52
  }
56
53
  }
57
54
 
58
- @mixin density($theme) {}
55
+ @mixin density($theme) {
56
+ }
59
57
 
60
58
  /// Outputs the CSS variable values for the given tokens.
61
59
  /// @param {Map} $tokens The token values to emit.
62
60
  @mixin overrides($tokens: ()) {
63
61
  @include token-utils.batch-create-token-values(
64
62
  $tokens,
65
- (prefix: tokens-mdc-snack-bar.$prefix, tokens: tokens-mdc-snack-bar.get-token-slots()),
66
- (prefix: tokens-mat-snack-bar.$prefix, tokens: tokens-mat-snack-bar.get-token-slots()),
63
+ (
64
+ namespace: tokens-mdc-snack-bar.$prefix,
65
+ tokens: tokens-mdc-snack-bar.get-token-slots(),
66
+ ),
67
+ (
68
+ namespace: tokens-mat-snack-bar.$prefix,
69
+ tokens: tokens-mat-snack-bar.get-token-slots(),
70
+ )
67
71
  );
68
72
  }
69
73
 
@@ -71,8 +75,7 @@
71
75
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-snack-bar') {
72
76
  @if inspection.get-theme-version($theme) == 1 {
73
77
  @include _theme-from-tokens(inspection.get-theme-tokens($theme));
74
- }
75
- @else {
78
+ } @else {
76
79
  @include base($theme);
77
80
  @if inspection.theme-has($theme, color) {
78
81
  @include color($theme);
@@ -89,11 +92,16 @@
89
92
 
90
93
  @mixin _theme-from-tokens($tokens) {
91
94
  @include validation.selector-defined(
92
- 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
95
+ 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
96
+ );
93
97
  @if ($tokens != ()) {
94
98
  @include token-utils.create-token-values(
95
- tokens-mdc-snack-bar.$prefix, map.get($tokens, tokens-mdc-snack-bar.$prefix));
99
+ tokens-mdc-snack-bar.$prefix,
100
+ map.get($tokens, tokens-mdc-snack-bar.$prefix)
101
+ );
96
102
  @include token-utils.create-token-values(
97
- tokens-mat-snack-bar.$prefix, map.get($tokens, tokens-mat-snack-bar.$prefix));
103
+ tokens-mat-snack-bar.$prefix,
104
+ map.get($tokens, tokens-mat-snack-bar.$prefix)
105
+ );
98
106
  }
99
107
  }
@@ -10,18 +10,19 @@
10
10
  @mixin base($theme) {
11
11
  @if inspection.get-theme-version($theme) == 1 {
12
12
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
13
+ } @else {
13
14
  }
14
- @else {}
15
15
  }
16
16
 
17
17
  @mixin color($theme) {
18
18
  @if inspection.get-theme-version($theme) == 1 {
19
19
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
20
- }
21
- @else {
20
+ } @else {
22
21
  @include sass-utils.current-selector-or-root() {
23
- @include token-utils.create-token-values(tokens-mat-sort.$prefix,
24
- tokens-mat-sort.get-color-tokens($theme));
22
+ @include token-utils.create-token-values(
23
+ tokens-mat-sort.$prefix,
24
+ tokens-mat-sort.get-color-tokens($theme)
25
+ );
25
26
  }
26
27
  }
27
28
  }
@@ -29,11 +30,12 @@
29
30
  @mixin typography($theme) {
30
31
  @if inspection.get-theme-version($theme) == 1 {
31
32
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
32
- }
33
- @else {
33
+ } @else {
34
34
  @include sass-utils.current-selector-or-root() {
35
- @include token-utils.create-token-values(tokens-mat-sort.$prefix,
36
- tokens-mat-sort.get-typography-tokens($theme));
35
+ @include token-utils.create-token-values(
36
+ tokens-mat-sort.$prefix,
37
+ tokens-mat-sort.get-typography-tokens($theme)
38
+ );
37
39
  }
38
40
  }
39
41
  }
@@ -41,11 +43,12 @@
41
43
  @mixin density($theme) {
42
44
  @if inspection.get-theme-version($theme) == 1 {
43
45
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
44
- }
45
- @else {
46
+ } @else {
46
47
  @include sass-utils.current-selector-or-root() {
47
- @include token-utils.create-token-values(tokens-mat-sort.$prefix,
48
- tokens-mat-sort.get-density-tokens($theme));
48
+ @include token-utils.create-token-values(
49
+ tokens-mat-sort.$prefix,
50
+ tokens-mat-sort.get-density-tokens($theme)
51
+ );
49
52
  }
50
53
  }
51
54
  }
@@ -53,7 +56,10 @@
53
56
  @mixin overrides($tokens: ()) {
54
57
  @include token-utils.batch-create-token-values(
55
58
  $tokens,
56
- (prefix: tokens-mat-sort.$prefix, tokens: tokens-mat-sort.get-token-slots()),
59
+ (
60
+ namespace: tokens-mat-sort.$prefix,
61
+ tokens: tokens-mat-sort.get-token-slots(),
62
+ )
57
63
  );
58
64
  }
59
65
 
@@ -61,8 +67,7 @@
61
67
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-sort') {
62
68
  @if inspection.get-theme-version($theme) == 1 {
63
69
  @include _theme-from-tokens(inspection.get-theme-tokens($theme));
64
- }
65
- @else {
70
+ } @else {
66
71
  @include base($theme);
67
72
  @if inspection.theme-has($theme, color) {
68
73
  @include color($theme);
@@ -79,9 +84,12 @@
79
84
 
80
85
  @mixin _theme-from-tokens($tokens) {
81
86
  @include validation.selector-defined(
82
- 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
87
+ 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
88
+ );
83
89
  @if ($tokens != ()) {
84
90
  @include token-utils.create-token-values(
85
- tokens-mat-sort.$prefix, map.get($tokens, tokens-mat-sort.$prefix));
91
+ tokens-mat-sort.$prefix,
92
+ map.get($tokens, tokens-mat-sort.$prefix)
93
+ );
86
94
  }
87
95
  }