@angular/material-experimental 17.2.0-next.1 → 17.2.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/_index.scss CHANGED
@@ -9,5 +9,6 @@
9
9
  @forward './theming/m3-palettes' as m3-* show $m3-red-palette, $m3-green-palette, $m3-blue-palette,
10
10
  $m3-yellow-palette, $m3-cyan-palette, $m3-magenta-palette, $m3-orange-palette,
11
11
  $m3-chartreuse-palette, $m3-azure-palette, $m3-violet-palette, $m3-rose-palette;
12
+ @forward './theming/color-api-back-compat' show color-variants-back-compat;
12
13
 
13
14
  // Additional public APIs for individual components
@@ -7,5 +7,5 @@
7
7
  */
8
8
  import { Version } from '@angular/core';
9
9
  /** Current version of the Material experimental package. */
10
- export const VERSION = new Version('17.2.0-next.1');
10
+ export const VERSION = new Version('17.2.0-rc.0');
11
11
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC1leHBlcmltZW50YWwvdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRXRDLDREQUE0RDtBQUM1RCxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsSUFBSSxPQUFPLENBQUMsbUJBQW1CLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgTExDIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIGxpY2Vuc2UgdGhhdCBjYW4gYmVcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9hbmd1bGFyLmlvL2xpY2Vuc2VcbiAqL1xuXG5pbXBvcnQge1ZlcnNpb259IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG4vKiogQ3VycmVudCB2ZXJzaW9uIG9mIHRoZSBNYXRlcmlhbCBleHBlcmltZW50YWwgcGFja2FnZS4gKi9cbmV4cG9ydCBjb25zdCBWRVJTSU9OID0gbmV3IFZlcnNpb24oJzAuMC4wLVBMQUNFSE9MREVSJyk7XG4iXX0=
@@ -1,7 +1,7 @@
1
1
  import { Version } from '@angular/core';
2
2
 
3
3
  /** Current version of the Material experimental package. */
4
- const VERSION = new Version('17.2.0-next.1');
4
+ const VERSION = new Version('17.2.0-rc.0');
5
5
 
6
6
  export { VERSION };
7
7
  //# sourceMappingURL=material-experimental.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"material-experimental.mjs","sources":["../../../../../../src/material-experimental/version.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.io/license\n */\n\nimport {Version} from '@angular/core';\n\n/** Current version of the Material experimental package. */\nexport const VERSION = new Version('17.2.0-next.1');\n"],"names":[],"mappings":";;AAUA;MACa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;;;"}
1
+ {"version":3,"file":"material-experimental.mjs","sources":["../../../../../../src/material-experimental/version.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.io/license\n */\n\nimport {Version} from '@angular/core';\n\n/** Current version of the Material experimental package. */\nexport const VERSION = new Version('17.2.0-rc.0');\n"],"names":[],"mappings":";;AAUA;MACa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/material-experimental",
3
- "version": "17.2.0-next.1",
3
+ "version": "17.2.0-rc.0",
4
4
  "description": "Experimental components for Angular Material",
5
5
  "repository": {
6
6
  "type": "git",
@@ -49,12 +49,12 @@
49
49
  },
50
50
  "peerDependencies": {
51
51
  "@angular/animations": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
52
- "@angular/cdk": "17.2.0-next.1",
52
+ "@angular/cdk": "17.2.0-rc.0",
53
53
  "@angular/core": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
54
54
  "@angular/common": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
55
55
  "@angular/forms": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
56
56
  "@angular/platform-browser": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
57
- "@angular/material": "17.2.0-next.1"
57
+ "@angular/material": "17.2.0-rc.0"
58
58
  },
59
59
  "dependencies": {
60
60
  "tslib": "^2.3.0",
@@ -0,0 +1,98 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin color-variant-styles($theme, $color-variant) {
4
+ // Some components use the secondary color rather than primary color for `.mat-primary`.
5
+ // Those components should use the $secondary-color-variant.
6
+ $secondary-color-variant: if($color-variant == primary, secondary, $color-variant);
7
+
8
+ @include mat.option-color($theme, $color-variant: $secondary-color-variant);
9
+ @include mat.progress-spinner-color($theme, $color-variant: $color-variant);
10
+ @include mat.pseudo-checkbox-color($theme, $color-variant: $color-variant);
11
+ @include mat.stepper-color($theme, $color-variant: $color-variant);
12
+
13
+ &.mat-icon {
14
+ @include mat.icon-color($theme, $color-variant: $color-variant);
15
+ }
16
+
17
+ &.mat-mdc-checkbox {
18
+ @include mat.checkbox-color($theme, $color-variant: $color-variant);
19
+ }
20
+
21
+ &.mat-mdc-slider {
22
+ @include mat.slider-color($theme, $color-variant: $color-variant);
23
+ }
24
+
25
+ &.mat-mdc-tab-group,
26
+ &.mat-mdc-tab-nav-bar {
27
+ @include mat.tabs-color($theme, $color-variant: $color-variant);
28
+ }
29
+
30
+ &.mat-mdc-slide-toggle {
31
+ @include mat.slide-toggle-color($theme, $color-variant: $color-variant);
32
+ }
33
+
34
+ &.mat-mdc-form-field {
35
+ @include mat.select-color($theme, $color-variant: $color-variant);
36
+ }
37
+
38
+ &.mat-mdc-radio-button {
39
+ @include mat.radio-color($theme, $color-variant: $color-variant);
40
+ }
41
+
42
+ &.mat-mdc-progress-bar {
43
+ @include mat.progress-bar-color($theme, $color-variant: $color-variant);
44
+ }
45
+
46
+ &.mat-mdc-form-field {
47
+ @include mat.form-field-color($theme, $color-variant: $color-variant);
48
+ }
49
+
50
+ &.mat-datepicker-content {
51
+ @include mat.datepicker-color($theme, $color-variant: $color-variant);
52
+ }
53
+
54
+ &.mat-mdc-button-base {
55
+ @include mat.button-color($theme, $color-variant: $color-variant);
56
+ }
57
+
58
+ &.mat-mdc-standard-chip {
59
+ @include mat.chips-color($theme, $color-variant: $secondary-color-variant);
60
+ }
61
+
62
+ .mdc-list-item__start,
63
+ .mdc-list-item__end {
64
+ @include mat.checkbox-color($theme, $color-variant: $color-variant);
65
+ @include mat.radio-color($theme, $color-variant: $color-variant);
66
+ }
67
+
68
+ // M3 dropped support for warn/error color FABs.
69
+ @if $color-variant != error {
70
+ &.mat-mdc-fab,
71
+ &.mat-mdc-mini-fab {
72
+ @include mat.fab-color($theme, $color-variant: $color-variant);
73
+ }
74
+ }
75
+ }
76
+
77
+ @mixin color-variants-back-compat($theme) {
78
+ .mat-primary {
79
+ @include color-variant-styles($theme, primary);
80
+ }
81
+ .mat-badge {
82
+ @include mat.badge-color($theme, $color-variant: primary);
83
+ }
84
+
85
+ .mat-accent {
86
+ @include color-variant-styles($theme, tertiary);
87
+ }
88
+ .mat-badge-accent {
89
+ @include mat.badge-color($theme, $color-variant: tertiary);
90
+ }
91
+
92
+ .mat-warn {
93
+ @include color-variant-styles($theme, error);
94
+ }
95
+ .mat-badge-warn {
96
+ @include mat.badge-color($theme, $color-variant: error);
97
+ }
98
+ }
@@ -1,5 +1,6 @@
1
1
  @use 'sass:map';
2
2
  @use '@angular/material' as mat;
3
+ @use '@material/elevation/elevation-theme' as mdc-elevation;
3
4
 
4
5
  /// Hardcode the given value, or null if hardcoded values are excluded.
5
6
  @function _hardcode($value, $exclude-hardcoded) {
@@ -28,6 +29,9 @@
28
29
  @function autocomplete($systems, $exclude-hardcoded) {
29
30
  @return (
30
31
  background-color: map.get($systems, md-sys-color, surface-container),
32
+ container-shape: map.get($systems, md-sys-shape, corner-extra-small),
33
+ container-elevation-shadow:
34
+ _hardcode(mdc-elevation.elevation-box-shadow(2), $exclude-hardcoded),
31
35
  );
32
36
  }
33
37
 
@@ -186,13 +190,51 @@
186
190
  );
187
191
  }
188
192
 
193
+ /// Generates custom tokens for the mat-chip.
194
+ /// @param {Map} $systems The MDC system tokens
195
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
196
+ /// @return {Map} A set of custom tokens for the mat-chip
197
+ @function chip($systems, $exclude-hardcoded) {
198
+ @return ((
199
+ disabled-container-opacity: _hardcode(1, $exclude-hardcoded),
200
+ selected-trailing-icon-color: map.get($systems, md-sys-color, on-secondary-container),
201
+ selected-disabled-trailing-icon-color: map.get($systems, md-sys-color, on-surface),
202
+ trailing-action-state-layer-color: map.get($systems, md-sys-color, on-surface-variant),
203
+ selected-trailing-action-state-layer-color:
204
+ map.get($systems, md-sys-color, on-secondary-container),
205
+ trailing-action-hover-state-layer-opacity:
206
+ map.get($systems, md-sys-state, hover-state-layer-opacity),
207
+ trailing-action-focus-state-layer-opacity:
208
+ map.get($systems, md-sys-state, focus-state-layer-opacity),
209
+ trailing-action-opacity: _hardcode(1, $exclude-hardcoded),
210
+ trailing-action-focus-opacity: _hardcode(1, $exclude-hardcoded),
211
+ ), (
212
+ primary: (
213
+ selected-trailing-icon-color: map.get($systems, md-sys-color, on-primary-container),
214
+ selected-trailing-action-state-layer-color:
215
+ map.get($systems, md-sys-color, on-primary-container),
216
+ ),
217
+ secondary: (), // Default, no overrides needed.
218
+ tertiary: (
219
+ selected-trailing-icon-color: map.get($systems, md-sys-color, on-tertiary-container),
220
+ selected-trailing-action-state-layer-color:
221
+ map.get($systems, md-sys-color, on-tertiary-container),
222
+ ),
223
+ error: (
224
+ selected-trailing-icon-color: map.get($systems, md-sys-color, on-error-container),
225
+ selected-trailing-action-state-layer-color:
226
+ map.get($systems, md-sys-color, on-error-container),
227
+ ),
228
+ ));
229
+ }
230
+
189
231
  /// Generates custom tokens for the mdc-chip. (MDC has a chip component, but they
190
232
  /// seem to have made up the tokens rather than using ones generated from the token database,
191
233
  /// therefore we need a custom token function for it).
192
234
  /// @param {Map} $systems The MDC system tokens
193
235
  /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
194
236
  /// @return {Map} A set of custom tokens for the mdc-chip
195
- @function chip($systems, $exclude-hardcoded) {
237
+ @function mdc-chip($systems, $exclude-hardcoded) {
196
238
  @return (mat.private-merge-all(
197
239
  _generate-typography-tokens($systems, label-text, label-large),
198
240
  (
@@ -208,16 +250,10 @@
208
250
  ),
209
251
  with-icon-icon-size: _hardcode(18px, $exclude-hardcoded),
210
252
  with-icon-icon-color: map.get($systems, md-sys-color, on-surface-variant),
211
- with-icon-disabled-icon-color: mat.private-safe-color-change(
212
- map.get($systems, md-sys-color, on-surface),
213
- $alpha: 0.38,
214
- ),
253
+ with-icon-disabled-icon-color: map.get($systems, md-sys-color, on-surface),
215
254
  with-icon-selected-icon-color: map.get($systems, md-sys-color, on-secondary-container),
216
255
  with-trailing-icon-trailing-icon-color: map.get($systems, md-sys-color, on-surface-variant),
217
- with-trailing-icon-disabled-trailing-icon-color: mat.private-safe-color-change(
218
- map.get($systems, md-sys-color, on-surface),
219
- $alpha: 0.38,
220
- ),
256
+ with-trailing-icon-disabled-trailing-icon-color: map.get($systems, md-sys-color, on-surface),
221
257
  focus-state-layer-opacity: map.get($systems, md-sys-state, focus-state-layer-opacity),
222
258
  focus-state-layer-color: map.get($systems, md-sys-color, on-surface-variant),
223
259
  outline-width: _hardcode(1px, $exclude-hardcoded),
@@ -227,18 +263,48 @@
227
263
  $alpha: 0.12,
228
264
  ),
229
265
  focus-outline-color: map.get($systems, md-sys-color, on-surface-variant),
266
+ hover-state-layer-color: map.get($systems, md-sys-color, on-surface-variant),
267
+ hover-state-layer-opacity: map.get($systems, md-sys-state, hover-state-layer-opacity),
268
+ with-avatar-disabled-avatar-opacity: _hardcode(0.38, $exclude-hardcoded),
269
+ elevated-selected-container-color: map.get($systems, md-sys-color, secondary-container),
270
+ flat-selected-outline-width: _hardcode(0, $exclude-hardcoded),
271
+ selected-label-text-color: map.get($systems, md-sys-color, on-secondary-container),
272
+ flat-disabled-selected-container-color: mat.private-safe-color-change(
273
+ map.get($systems, md-sys-color, on-surface),
274
+ $alpha: 0.12,
275
+ ),
276
+ selected-hover-state-layer-color: map.get($systems, md-sys-color, on-secondary-container),
277
+ selected-hover-state-layer-opacity:
278
+ map.get($systems, md-sys-state, hover-state-layer-opacity),
279
+ selected-focus-state-layer-color: map.get($systems, md-sys-color, on-secondary-container),
280
+ selected-focus-state-layer-opacity:
281
+ map.get($systems, md-sys-state, focus-state-layer-opacity),
282
+ with-icon-disabled-icon-opacity: _hardcode(0.38, $exclude-hardcoded),
283
+ with-trailing-icon-disabled-trailing-icon-opacity: _hardcode(0.38, $exclude-hardcoded),
230
284
  ),
231
285
  ), (
232
286
  // Color variants:
233
287
  primary: (
234
288
  with-icon-selected-icon-color: map.get($systems, md-sys-color, on-primary-container),
289
+ elevated-selected-container-color: map.get($systems, md-sys-color, primary-container),
290
+ selected-label-text-color: map.get($systems, md-sys-color, on-primary-container),
291
+ selected-hover-state-layer-color: map.get($systems, md-sys-color, on-primary-container),
292
+ selected-focus-state-layer-color: map.get($systems, md-sys-color, on-primary-container),
235
293
  ),
236
294
  secondary: (), // Default, no overrides needed.
237
295
  tertiary: (
238
296
  with-icon-selected-icon-color: map.get($systems, md-sys-color, on-tertiary-container),
297
+ elevated-selected-container-color: map.get($systems, md-sys-color, tertiary-container),
298
+ selected-label-text-color: map.get($systems, md-sys-color, on-tertiary-container),
299
+ selected-hover-state-layer-color: map.get($systems, md-sys-color, on-tertiary-container),
300
+ selected-focus-state-layer-color: map.get($systems, md-sys-color, on-tertiary-container),
239
301
  ),
240
302
  error: (
241
303
  with-icon-selected-icon-color: map.get($systems, md-sys-color, on-error-container),
304
+ elevated-selected-container-color: map.get($systems, md-sys-color, error-container),
305
+ selected-label-text-color: map.get($systems, md-sys-color, on-error-container),
306
+ selected-hover-state-layer-color: map.get($systems, md-sys-color, on-error-container),
307
+ selected-focus-state-layer-color: map.get($systems, md-sys-color, on-error-container),
242
308
  )
243
309
  ));
244
310
  }
@@ -1005,6 +1071,8 @@
1005
1071
  map.get($systems, md-sys-color, on-surface), $alpha: 0.38),
1006
1072
  focused-arrow-color: map.get($systems, md-sys-color, primary),
1007
1073
  invalid-arrow-color: map.get($systems, md-sys-color, error),
1074
+ container-elevation-shadow:
1075
+ _hardcode(mdc-elevation.elevation-box-shadow(2), $exclude-hardcoded),
1008
1076
  )
1009
1077
  ), (
1010
1078
  // Color variants:
@@ -1027,12 +1095,14 @@
1027
1095
  /// @return {Map} A set of custom tokens for the mat-sidenav
1028
1096
  @function sidenav($systems, $exclude-hardcoded) {
1029
1097
  @return (
1030
- container-shape: 16px,
1031
- container-divider-color: map.get($systems, md-sys-color, outline),
1098
+ container-elevation-shadow: _hardcode(none, $exclude-hardcoded),
1099
+ container-divider-color: _hardcode(transparent, $exclude-hardcoded),
1100
+ container-width: _hardcode(360px, $exclude-hardcoded),
1101
+ container-shape: map.get($systems, md-sys-shape, corner-large),
1032
1102
  container-background-color: map.get($systems, md-sys-color, surface),
1033
1103
  container-text-color: map.get($systems, md-sys-color, on-surface-variant),
1034
- content-background-color: _hardcode(inherit, $exclude-hardcoded),
1035
- content-text-color: _hardcode(inherit, $exclude-hardcoded),
1104
+ content-background-color: map.get($systems, md-sys-color, background),
1105
+ content-text-color: map.get($systems, md-sys-color, on-background),
1036
1106
  scrim-color: mat.private-safe-color-change(
1037
1107
  map.get($systems, md-ref-palette, neutral-variant20), $alpha: 0.4),
1038
1108
  );
@@ -1085,6 +1155,35 @@
1085
1155
  ));
1086
1156
  }
1087
1157
 
1158
+ /// Generates custom tokens for the mat-slide-toggle.
1159
+ /// @param {Map} $systems The MDC system tokens
1160
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
1161
+ /// @return {Map} A set of custom tokens for the mat-slide-toggle
1162
+ @function switch($systems, $exclude-hardcoded) {
1163
+ @return ((
1164
+ unselected-handle-size: 16px,
1165
+ selected-handle-size: 24px,
1166
+ with-icon-handle-size: 24px,
1167
+ pressed-handle-size: 28px,
1168
+ selected-handle-horizontal-margin: 0 24px,
1169
+ selected-with-icon-handle-horizontal-margin: 0 24px,
1170
+ selected-pressed-handle-horizontal-margin: 0 22px,
1171
+ unselected-handle-horizontal-margin: 0 8px,
1172
+ unselected-with-icon-handle-horizontal-margin: 0 4px,
1173
+ unselected-pressed-handle-horizontal-margin: 0 2px,
1174
+ // The hidden and visible track represent whichever track is visible or
1175
+ // hidden in the ui. This could be the .mdc-switch__track :before or
1176
+ // :after depending on whether the switch is selected or unselected.
1177
+ //
1178
+ // The m2 slide-toggle uses transforms to hide & show the tracks while
1179
+ // the m3 slide-toggle uses opacity.
1180
+ visible-track-opacity: 1,
1181
+ hidden-track-opacity: 0,
1182
+ visible-track-transition: opacity 75ms,
1183
+ hidden-track-transition: opacity 75ms,
1184
+ ), ());
1185
+ }
1186
+
1088
1187
  /// Generates custom tokens for the mat-snack-bar.
1089
1188
  /// @param {Map} $systems The MDC system tokens
1090
1189
  /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
@@ -464,6 +464,17 @@
464
464
  @return $tokens;
465
465
  }
466
466
 
467
+ /// Fixes values in the list tokens that are inconsistent with its usage.
468
+ /// @param {Map} $initial-tokens Map of list tokens currently being generated.
469
+ /// @return {Map} The given tokens, with the inconsistent values replaced with valid ones.
470
+ @function _fix-list-tokens($tokens) {
471
+ // This does not match the spec, which defines this to be `md.sys.color.surface`.
472
+ // However, this interferes with the use case of placing a list on other components. For example,
473
+ // the bottom sheet's container color is `md.sys.color.surface-container-low`. Instead, allow the
474
+ // list to just display the colors for its background.
475
+ @return map.set($tokens, list-item-container-color, transparent);
476
+ }
477
+
467
478
  /// Generates a set of namespaced tokens for all components.
468
479
  /// @param {Map} $systems The MDC system tokens
469
480
  /// @param {Boolean} $include-non-systemized Whether to include non-systemized tokens
@@ -514,7 +525,7 @@
514
525
  ),
515
526
  _namespace-tokens(
516
527
  (mdc, chip),
517
- custom-tokens.chip($systems, $exclude-hardcoded),
528
+ custom-tokens.mdc-chip($systems, $exclude-hardcoded),
518
529
  $token-slots
519
530
  ),
520
531
  _namespace-tokens(
@@ -660,7 +671,9 @@
660
671
  ),
661
672
  _namespace-tokens(
662
673
  (mdc, list),
663
- mdc-tokens.md-comp-list-values($systems, $exclude-hardcoded),
674
+ _fix-list-tokens(
675
+ mdc-tokens.md-comp-list-values($systems, $exclude-hardcoded)
676
+ ),
664
677
  $token-slots
665
678
  ),
666
679
  _namespace-tokens(
@@ -753,6 +766,11 @@
753
766
  custom-tokens.card($systems, $exclude-hardcoded),
754
767
  $token-slots
755
768
  ),
769
+ _namespace-tokens(
770
+ (mat, chip),
771
+ custom-tokens.chip($systems, $exclude-hardcoded),
772
+ $token-slots
773
+ ),
756
774
  _namespace-tokens(
757
775
  (mat, datepicker),
758
776
  custom-tokens.datepicker($systems, $exclude-hardcoded),
@@ -904,6 +922,11 @@
904
922
  custom-tokens.stepper($systems, $exclude-hardcoded),
905
923
  $token-slots
906
924
  ),
925
+ _namespace-tokens(
926
+ (mat, switch),
927
+ custom-tokens.switch($systems, $exclude-hardcoded),
928
+ $token-slots
929
+ ),
907
930
  _namespace-tokens(
908
931
  (mat, tab-header),
909
932
  custom-tokens.tab-header($systems, $exclude-hardcoded),