|
1 | 1 | @use 'sass:color';
|
2 |
| -@use '@material/chips/chip-theme' as mdc-chip-theme; |
3 | 2 | @use '../core/tokens/m2/mdc/chip' as tokens-mdc-chip;
|
4 | 3 | @use '../core/tokens/m2/mat/chip' as tokens-mat-chip;
|
5 | 4 | @use '../core/tokens/token-utils';
|
|
17 | 16 | }
|
18 | 17 | @else {
|
19 | 18 | .mat-mdc-standard-chip {
|
20 |
| - @include mdc-chip-theme.theme(tokens-mdc-chip.get-unthemable-tokens()); |
21 | 19 | @include token-utils.create-token-values(
|
22 |
| - tokens-mat-chip.$prefix, tokens-mat-chip.get-unthemable-tokens()); |
| 20 | + tokens-mdc-chip.$prefix, tokens-mdc-chip.get-unthemable-tokens()); |
| 21 | + @include token-utils.create-token-values( |
| 22 | + tokens-mat-chip.$prefix, tokens-mat-chip.get-unthemable-tokens()); |
23 | 23 | }
|
24 | 24 | }
|
25 | 25 | }
|
|
35 | 35 | }
|
36 | 36 | @else {
|
37 | 37 | .mat-mdc-standard-chip {
|
38 |
| - $default-color-tokens: tokens-mdc-chip.get-color-tokens($theme); |
39 |
| - @include mdc-chip-theme.theme($default-color-tokens); |
40 | 38 | @include token-utils.create-token-values(
|
41 |
| - tokens-mat-chip.$prefix, tokens-mat-chip.get-color-tokens($theme)); |
| 39 | + tokens-mdc-chip.$prefix, tokens-mdc-chip.get-color-tokens($theme)); |
| 40 | + @include token-utils.create-token-values( |
| 41 | + tokens-mat-chip.$prefix, tokens-mat-chip.get-color-tokens($theme)); |
42 | 42 |
|
43 | 43 | &.mat-mdc-chip-selected,
|
44 | 44 | &.mat-mdc-chip-highlighted {
|
45 | 45 | &.mat-primary {
|
46 |
| - $primary-color-tokens: tokens-mdc-chip.get-color-tokens($theme, primary); |
47 |
| - @include mdc-chip-theme.theme($primary-color-tokens); |
48 | 46 | @include token-utils.create-token-values(
|
49 |
| - tokens-mat-chip.$prefix, tokens-mat-chip.get-color-tokens($theme, primary)); |
| 47 | + tokens-mdc-chip.$prefix, tokens-mdc-chip.get-color-tokens($theme, primary)); |
| 48 | + @include token-utils.create-token-values( |
| 49 | + tokens-mat-chip.$prefix, tokens-mat-chip.get-color-tokens($theme, primary)); |
50 | 50 | }
|
51 | 51 |
|
52 | 52 | &.mat-accent {
|
53 |
| - $accent-color-tokens: tokens-mdc-chip.get-color-tokens($theme, accent); |
54 |
| - @include mdc-chip-theme.theme($accent-color-tokens); |
55 | 53 | @include token-utils.create-token-values(
|
56 |
| - tokens-mat-chip.$prefix, tokens-mat-chip.get-color-tokens($theme, accent)); |
| 54 | + tokens-mdc-chip.$prefix, tokens-mdc-chip.get-color-tokens($theme, accent)); |
| 55 | + @include token-utils.create-token-values( |
| 56 | + tokens-mat-chip.$prefix, tokens-mat-chip.get-color-tokens($theme, accent)); |
57 | 57 | }
|
58 | 58 |
|
59 | 59 | &.mat-warn {
|
60 |
| - $warn-color-tokens: tokens-mdc-chip.get-color-tokens($theme, warn); |
61 |
| - @include mdc-chip-theme.theme($warn-color-tokens); |
62 | 60 | @include token-utils.create-token-values(
|
63 |
| - tokens-mat-chip.$prefix, tokens-mat-chip.get-color-tokens($theme, warn)); |
| 61 | + tokens-mdc-chip.$prefix, tokens-mdc-chip.get-color-tokens($theme, warn)); |
| 62 | + @include token-utils.create-token-values( |
| 63 | + tokens-mat-chip.$prefix, tokens-mat-chip.get-color-tokens($theme, warn)); |
64 | 64 | }
|
65 | 65 | }
|
66 | 66 | }
|
|
74 | 74 | @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
75 | 75 | }
|
76 | 76 | @else {
|
77 |
| - $typography-tokens: tokens-mdc-chip.get-typography-tokens($theme); |
78 |
| - |
79 | 77 | .mat-mdc-standard-chip {
|
80 |
| - @include mdc-chip-theme.theme($typography-tokens); |
81 | 78 | @include token-utils.create-token-values(
|
82 |
| - tokens-mat-chip.$prefix, tokens-mat-chip.get-typography-tokens($theme)); |
| 79 | + tokens-mdc-chip.$prefix, tokens-mdc-chip.get-typography-tokens($theme)); |
| 80 | + @include token-utils.create-token-values( |
| 81 | + tokens-mat-chip.$prefix, tokens-mat-chip.get-typography-tokens($theme)); |
83 | 82 | }
|
84 | 83 | }
|
85 | 84 | }
|
|
91 | 90 | @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
92 | 91 | }
|
93 | 92 | @else {
|
94 |
| - $density-tokens: tokens-mdc-chip.get-density-tokens($theme); |
95 |
| - |
96 | 93 | .mat-mdc-chip.mat-mdc-standard-chip {
|
97 |
| - @include mdc-chip-theme.theme($density-tokens); |
98 | 94 | @include token-utils.create-token-values(
|
99 |
| - tokens-mat-chip.$prefix, tokens-mat-chip.get-density-tokens($theme)); |
| 95 | + tokens-mdc-chip.$prefix, tokens-mdc-chip.get-density-tokens($theme)); |
| 96 | + @include token-utils.create-token-values( |
| 97 | + tokens-mat-chip.$prefix, tokens-mat-chip.get-density-tokens($theme)); |
100 | 98 | }
|
101 | 99 | }
|
102 | 100 | }
|
|
141 | 139 | 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
|
142 | 140 | $mdc-chip-tokens: token-utils.get-tokens-for($tokens, tokens-mdc-chip.$prefix, $options...);
|
143 | 141 | $mat-chip-tokens: token-utils.get-tokens-for($tokens, tokens-mat-chip.$prefix, $options...);
|
144 |
| - @include mdc-chip-theme.theme($mdc-chip-tokens); |
| 142 | + @include token-utils.create-token-values(tokens-mdc-chip.$prefix, $mdc-chip-tokens); |
145 | 143 | @include token-utils.create-token-values(tokens-mat-chip.$prefix, $mat-chip-tokens);
|
146 | 144 | }
|
0 commit comments