|
1 | | -@use '@material/textfield/filled-text-field-theme' as mdc-filled-text-field-theme; |
2 | | -@use '@material/textfield/outlined-text-field-theme' as mdc-outlined-text-field-theme; |
3 | 1 | @use '../core/tokens/m2/mdc/filled-text-field' as tokens-mdc-filled-text-field; |
4 | 2 | @use '../core/tokens/m2/mdc/outlined-text-field' as tokens-mdc-outlined-text-field; |
5 | 3 | @use '../core/tokens/m2/mat/form-field' as tokens-mat-form-field; |
|
43 | 41 | } |
44 | 42 | @else { |
45 | 43 | @include sass-utils.current-selector-or-root() { |
46 | | - @include mdc-filled-text-field-theme.theme( |
47 | | - tokens-mdc-filled-text-field.get-color-tokens($theme)); |
48 | | - @include mdc-outlined-text-field-theme.theme( |
49 | | - tokens-mdc-outlined-text-field.get-color-tokens($theme)); |
| 44 | + @include token-utils.create-token-values(tokens-mdc-filled-text-field.$prefix, |
| 45 | + tokens-mdc-filled-text-field.get-color-tokens($theme)); |
| 46 | + @include token-utils.create-token-values(tokens-mdc-outlined-text-field.$prefix, |
| 47 | + tokens-mdc-outlined-text-field.get-color-tokens($theme)); |
50 | 48 | @include token-utils.create-token-values(tokens-mat-form-field.$prefix, |
51 | 49 | tokens-mat-form-field.get-color-tokens($theme)); |
52 | 50 | } |
53 | 51 |
|
54 | 52 | .mat-mdc-form-field.mat-accent { |
55 | | - @include mdc-filled-text-field-theme.theme( |
56 | | - tokens-mdc-filled-text-field.private-get-color-palette-color-tokens($theme, accent)); |
57 | | - @include mdc-outlined-text-field-theme.theme( |
58 | | - tokens-mdc-outlined-text-field.private-get-color-palette-color-tokens($theme, accent)); |
| 53 | + @include token-utils.create-token-values(tokens-mdc-filled-text-field.$prefix, |
| 54 | + tokens-mdc-filled-text-field.private-get-color-palette-color-tokens($theme, accent)); |
| 55 | + @include token-utils.create-token-values(tokens-mdc-outlined-text-field.$prefix, |
| 56 | + tokens-mdc-outlined-text-field.private-get-color-palette-color-tokens($theme, accent)); |
59 | 57 | @include token-utils.create-token-values(tokens-mat-form-field.$prefix, |
60 | 58 | tokens-mat-form-field.private-get-color-palette-color-tokens($theme, accent)); |
61 | 59 | } |
62 | 60 |
|
63 | 61 | .mat-mdc-form-field.mat-warn { |
64 | | - @include mdc-filled-text-field-theme.theme( |
65 | | - tokens-mdc-filled-text-field.private-get-color-palette-color-tokens($theme, warn)); |
66 | | - @include mdc-outlined-text-field-theme.theme( |
67 | | - tokens-mdc-outlined-text-field.private-get-color-palette-color-tokens($theme, warn)); |
| 62 | + @include token-utils.create-token-values(tokens-mdc-filled-text-field.$prefix, |
| 63 | + tokens-mdc-filled-text-field.private-get-color-palette-color-tokens($theme, warn)); |
| 64 | + @include token-utils.create-token-values(tokens-mdc-outlined-text-field.$prefix, |
| 65 | + tokens-mdc-outlined-text-field.private-get-color-palette-color-tokens($theme, warn)); |
68 | 66 | @include token-utils.create-token-values(tokens-mat-form-field.$prefix, |
69 | 67 | tokens-mat-form-field.private-get-color-palette-color-tokens($theme, warn)); |
70 | 68 | } |
|
79 | 77 | } |
80 | 78 | @else { |
81 | 79 | @include sass-utils.current-selector-or-root() { |
82 | | - @include mdc-filled-text-field-theme.theme( |
83 | | - tokens-mdc-filled-text-field.get-typography-tokens($theme)); |
84 | | - @include mdc-outlined-text-field-theme.theme( |
85 | | - tokens-mdc-outlined-text-field.get-typography-tokens($theme)); |
| 80 | + @include token-utils.create-token-values(tokens-mdc-filled-text-field.$prefix, |
| 81 | + tokens-mdc-filled-text-field.get-typography-tokens($theme)); |
| 82 | + @include token-utils.create-token-values(tokens-mdc-outlined-text-field.$prefix, |
| 83 | + tokens-mdc-outlined-text-field.get-typography-tokens($theme)); |
86 | 84 | @include token-utils.create-token-values(tokens-mat-form-field.$prefix, |
87 | 85 | tokens-mat-form-field.get-typography-tokens($theme)); |
88 | 86 | } |
|
152 | 150 | token-utils.get-tokens-for($tokens, tokens-mdc-outlined-text-field.$prefix, $options...); |
153 | 151 | $mat-form-field-tokens: |
154 | 152 | token-utils.get-tokens-for($tokens, tokens-mat-form-field.$prefix, $options...); |
155 | | - @include mdc-filled-text-field-theme.theme($mdc-filled-text-field-tokens); |
156 | | - @include mdc-outlined-text-field-theme.theme($mdc-outlined-text-field-tokens); |
| 153 | + @include token-utils.create-token-values(tokens-mdc-filled-text-field.$prefix, |
| 154 | + $mdc-filled-text-field-tokens); |
| 155 | + @include token-utils.create-token-values(tokens-mdc-outlined-text-field.$prefix, |
| 156 | + $mdc-outlined-text-field-tokens); |
157 | 157 | @include token-utils.create-token-values(tokens-mat-form-field.$prefix, $mat-form-field-tokens); |
158 | 158 | } |
0 commit comments