@material/web 1.2.0 → 1.2.1-nightly.84536d7.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/button/internal/_elevated-button.scss +4 -2
- package/button/internal/_filled-button.scss +4 -2
- package/button/internal/_filled-tonal-button.scss +4 -2
- package/button/internal/_outlined-button.scss +4 -2
- package/button/internal/_text-button.scss +4 -2
- package/checkbox/internal/_checkbox.scss +14 -23
- package/chips/internal/_assist-chip.scss +4 -2
- package/chips/internal/_filter-chip.scss +4 -2
- package/chips/internal/_input-chip.scss +4 -2
- package/chips/internal/_suggestion-chip.scss +4 -2
- package/dialog/internal/_dialog.scss +3 -4
- package/divider/internal/_divider.scss +3 -4
- package/elevation/internal/_elevation.scss +3 -4
- package/fab/internal/_fab-branded.scss +4 -2
- package/fab/internal/_fab.scss +4 -2
- package/field/internal/_filled-field.scss +13 -2
- package/field/internal/_outlined-field.scss +4 -2
- package/focus/internal/_focus-ring.scss +13 -23
- package/icon/internal/_icon.scss +3 -4
- package/iconbutton/internal/_filled-icon-button.scss +4 -2
- package/iconbutton/internal/_filled-tonal-icon-button.scss +4 -2
- package/iconbutton/internal/_icon-button.scss +4 -2
- package/iconbutton/internal/_outlined-icon-button.scss +4 -2
- package/labs/card/internal/_elevated-card.scss +4 -2
- package/labs/card/internal/_filled-card.scss +4 -2
- package/labs/card/internal/_outlined-card.scss +4 -2
- package/labs/segmentedbuttonset/internal/_outlined-segmented-button-set.scss +4 -2
- package/list/internal/_list.scss +3 -4
- package/list/internal/listitem/_list-item.scss +3 -4
- package/menu/internal/_menu.scss +3 -4
- package/menu/internal/menuitem/_menu-item.scss +3 -4
- package/package.json +1 -1
- package/progress/internal/_circular-progress.scss +4 -2
- package/progress/internal/_linear-progress.scss +4 -2
- package/radio/internal/_radio.scss +3 -4
- package/ripple/internal/_ripple.scss +3 -4
- package/select/internal/_filled-select.scss +14 -2
- package/select/internal/_outlined-select.scss +4 -2
- package/slider/internal/_slider.scss +4 -2
- package/switch/internal/_switch.scss +3 -4
- package/tabs/internal/_primary-tab.scss +4 -2
- package/tabs/internal/_secondary-tab.scss +4 -2
- package/textfield/internal/_filled-text-field.scss +13 -28
- package/textfield/internal/_outlined-text-field.scss +4 -24
- package/textfield/internal/filled-styles.css.js +1 -1
- package/textfield/internal/filled-styles.css.js.map +1 -1
- package/textfield/internal/outlined-styles.css.js +1 -1
- package/textfield/internal/outlined-styles.css.js.map +1 -1
- package/tokens/_md-comp-assist-chip.scss +17 -1
- package/tokens/_md-comp-badge.scss +14 -1
- package/tokens/_md-comp-checkbox.scss +23 -2
- package/tokens/_md-comp-circular-progress.scss +17 -1
- package/tokens/_md-comp-dialog.scss +13 -1
- package/tokens/_md-comp-divider.scss +19 -2
- package/tokens/_md-comp-elevated-button.scss +17 -1
- package/tokens/_md-comp-elevated-card.scss +20 -1
- package/tokens/_md-comp-elevation.scss +18 -1
- package/tokens/_md-comp-fab-branded.scss +17 -1
- package/tokens/_md-comp-fab.scss +13 -1
- package/tokens/_md-comp-filled-button.scss +17 -1
- package/tokens/_md-comp-filled-card.scss +20 -1
- package/tokens/_md-comp-filled-field.scss +20 -2
- package/tokens/_md-comp-filled-icon-button.scss +20 -1
- package/tokens/_md-comp-filled-select.scss +17 -1
- package/tokens/_md-comp-filled-text-field.scss +41 -2
- package/tokens/_md-comp-filled-tonal-button.scss +17 -1
- package/tokens/_md-comp-filled-tonal-icon-button.scss +20 -1
- package/tokens/_md-comp-filter-chip.scss +17 -1
- package/tokens/_md-comp-focus-ring.scss +20 -3
- package/tokens/_md-comp-icon-button.scss +20 -1
- package/tokens/_md-comp-icon.scss +15 -1
- package/tokens/_md-comp-input-chip.scss +17 -1
- package/tokens/_md-comp-item.scss +1 -0
- package/tokens/_md-comp-linear-progress.scss +20 -2
- package/tokens/_md-comp-list-item.scss +17 -2
- package/tokens/_md-comp-list.scss +16 -2
- package/tokens/_md-comp-menu-item.scss +17 -2
- package/tokens/_md-comp-menu.scss +13 -3
- package/tokens/_md-comp-navigation-bar.scss +23 -2
- package/tokens/_md-comp-navigation-drawer.scss +23 -2
- package/tokens/_md-comp-outlined-button.scss +17 -1
- package/tokens/_md-comp-outlined-card.scss +20 -1
- package/tokens/_md-comp-outlined-field.scss +20 -2
- package/tokens/_md-comp-outlined-icon-button.scss +20 -1
- package/tokens/_md-comp-outlined-segmented-button.scss +17 -1
- package/tokens/_md-comp-outlined-select.scss +17 -2
- package/tokens/_md-comp-outlined-text-field.scss +37 -2
- package/tokens/_md-comp-primary-tab.scss +20 -2
- package/tokens/_md-comp-radio.scss +16 -1
- package/tokens/_md-comp-ripple.scss +12 -2
- package/tokens/_md-comp-secondary-tab.scss +17 -1
- package/tokens/_md-comp-slider.scss +13 -1
- package/tokens/_md-comp-suggestion-chip.scss +17 -1
- package/tokens/_md-comp-switch.scss +16 -1
- package/tokens/_md-comp-text-button.scss +17 -1
- package/tokens/internal/_validate.scss +1 -1
|
@@ -21,8 +21,21 @@ $_default: (
|
|
|
21
21
|
|
|
22
22
|
$_unsupported-tokens: ('large-label-text-tracking', 'large-label-text-type');
|
|
23
23
|
|
|
24
|
-
@function values(
|
|
24
|
+
@function values(
|
|
25
|
+
$deps: $_default,
|
|
26
|
+
$exclude-hardcoded-values: false,
|
|
27
|
+
$exclude-custom-properties: true
|
|
28
|
+
) {
|
|
25
29
|
$tokens: md-comp-badge.values($deps, $exclude-hardcoded-values);
|
|
26
30
|
$tokens: map.remove($tokens, $_unsupported-tokens...);
|
|
31
|
+
|
|
32
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
33
|
+
// See b/321816473.
|
|
34
|
+
@if not $exclude-custom-properties {
|
|
35
|
+
@each $token, $value in $tokens {
|
|
36
|
+
$tokens: map.set($tokens, $token, var(--md-badge-#{$token}, #{$value}));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
27
40
|
@return $tokens;
|
|
28
41
|
}
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
//
|
|
5
5
|
|
|
6
|
+
// go/keep-sorted start
|
|
7
|
+
@use 'sass:map';
|
|
8
|
+
// go/keep-sorted end
|
|
6
9
|
// go/keep-sorted start
|
|
7
10
|
@use './internal/validate';
|
|
8
11
|
@use './md-sys-color';
|
|
@@ -89,9 +92,15 @@ $_default: (
|
|
|
89
92
|
'md-sys-state': md-sys-state.values(),
|
|
90
93
|
);
|
|
91
94
|
|
|
92
|
-
@function values(
|
|
95
|
+
@function values(
|
|
96
|
+
$deps: $_default,
|
|
97
|
+
$exclude-hardcoded-values: false,
|
|
98
|
+
$exclude-custom-properties: true
|
|
99
|
+
) {
|
|
100
|
+
$tokens: md-comp-checkbox.values($deps, $exclude-hardcoded-values);
|
|
101
|
+
|
|
93
102
|
$tokens: validate.values(
|
|
94
|
-
|
|
103
|
+
$tokens,
|
|
95
104
|
$supported-tokens: $supported-tokens,
|
|
96
105
|
$unsupported-tokens: $unsupported-tokens,
|
|
97
106
|
$renamed-tokens: (
|
|
@@ -120,5 +129,17 @@ $_default: (
|
|
|
120
129
|
)
|
|
121
130
|
);
|
|
122
131
|
|
|
132
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
133
|
+
// See b/321816473.
|
|
134
|
+
@if not $exclude-custom-properties {
|
|
135
|
+
@each $token, $value in $tokens {
|
|
136
|
+
$tokens: map.set(
|
|
137
|
+
$tokens,
|
|
138
|
+
$token,
|
|
139
|
+
var(--md-checkbox-#{$token}, #{$value})
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
123
144
|
@return $tokens;
|
|
124
145
|
}
|
|
@@ -38,7 +38,11 @@ $_default: (
|
|
|
38
38
|
'md-sys-shape': md-sys-shape.values(),
|
|
39
39
|
);
|
|
40
40
|
|
|
41
|
-
@function values(
|
|
41
|
+
@function values(
|
|
42
|
+
$deps: $_default,
|
|
43
|
+
$exclude-hardcoded-values: false,
|
|
44
|
+
$exclude-custom-properties: true
|
|
45
|
+
) {
|
|
42
46
|
$tokens: validate.values(
|
|
43
47
|
md-comp-circular-progress-indicator.values(
|
|
44
48
|
$deps,
|
|
@@ -61,5 +65,17 @@ $_default: (
|
|
|
61
65
|
);
|
|
62
66
|
}
|
|
63
67
|
|
|
68
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
69
|
+
// See b/321816473.
|
|
70
|
+
@if not $exclude-custom-properties {
|
|
71
|
+
@each $token, $value in $tokens {
|
|
72
|
+
$tokens: map.set(
|
|
73
|
+
$tokens,
|
|
74
|
+
$token,
|
|
75
|
+
var(--md-circular-progress-#{$token}, #{$value})
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
64
80
|
@return $tokens;
|
|
65
81
|
}
|
|
@@ -72,7 +72,11 @@ $unsupported-tokens: (
|
|
|
72
72
|
// go/keep-sorted end
|
|
73
73
|
);
|
|
74
74
|
|
|
75
|
-
@function values(
|
|
75
|
+
@function values(
|
|
76
|
+
$deps: $_default,
|
|
77
|
+
$exclude-hardcoded-values: false,
|
|
78
|
+
$exclude-custom-properties: true
|
|
79
|
+
) {
|
|
76
80
|
$tokens: validate.values(
|
|
77
81
|
md-comp-dialog.values($deps, $exclude-hardcoded-values),
|
|
78
82
|
$supported-tokens: $supported-tokens,
|
|
@@ -84,5 +88,13 @@ $unsupported-tokens: (
|
|
|
84
88
|
)
|
|
85
89
|
);
|
|
86
90
|
|
|
91
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
92
|
+
// See b/321816473.
|
|
93
|
+
@if not $exclude-custom-properties {
|
|
94
|
+
@each $token, $value in $tokens {
|
|
95
|
+
$tokens: map.set($tokens, $token, var(--md-dialog-#{$token}, #{$value}));
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
87
99
|
@return $tokens;
|
|
88
100
|
}
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
//
|
|
5
5
|
|
|
6
|
+
// go/keep-sorted start
|
|
7
|
+
@use 'sass:map';
|
|
8
|
+
// go/keep-sorted end
|
|
6
9
|
// go/keep-sorted start
|
|
7
10
|
@use './internal/validate';
|
|
8
11
|
@use './md-sys-color';
|
|
@@ -20,9 +23,23 @@ $_default: (
|
|
|
20
23
|
'md-sys-color': md-sys-color.values-light(),
|
|
21
24
|
);
|
|
22
25
|
|
|
23
|
-
@function values(
|
|
24
|
-
|
|
26
|
+
@function values(
|
|
27
|
+
$deps: $_default,
|
|
28
|
+
$exclude-hardcoded-values: false,
|
|
29
|
+
$exclude-custom-properties: true
|
|
30
|
+
) {
|
|
31
|
+
$tokens: validate.values(
|
|
25
32
|
md-comp-divider.values($deps, $exclude-hardcoded-values),
|
|
26
33
|
$supported-tokens: $supported-tokens
|
|
27
34
|
);
|
|
35
|
+
|
|
36
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
37
|
+
// See b/321816473.
|
|
38
|
+
@if not $exclude-custom-properties {
|
|
39
|
+
@each $token, $value in $tokens {
|
|
40
|
+
$tokens: map.set($tokens, $token, var(--md-divider-#{$token}, #{$value}));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@return $tokens;
|
|
28
45
|
}
|
|
@@ -76,7 +76,11 @@ $_default: (
|
|
|
76
76
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
77
77
|
);
|
|
78
78
|
|
|
79
|
-
@function values(
|
|
79
|
+
@function values(
|
|
80
|
+
$deps: $_default,
|
|
81
|
+
$exclude-hardcoded-values: false,
|
|
82
|
+
$exclude-custom-properties: true
|
|
83
|
+
) {
|
|
80
84
|
$tokens: validate.values(
|
|
81
85
|
md-comp-elevated-button.values($deps, $exclude-hardcoded-values),
|
|
82
86
|
$supported-tokens: $supported-tokens,
|
|
@@ -108,5 +112,17 @@ $_default: (
|
|
|
108
112
|
)
|
|
109
113
|
);
|
|
110
114
|
|
|
115
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
116
|
+
// See b/321816473.
|
|
117
|
+
@if not $exclude-custom-properties {
|
|
118
|
+
@each $token, $value in $tokens {
|
|
119
|
+
$tokens: map.set(
|
|
120
|
+
$tokens,
|
|
121
|
+
$token,
|
|
122
|
+
var(--md-elevated-button-#{$token}, #{$value})
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
111
127
|
@return $tokens;
|
|
112
128
|
}
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
//
|
|
5
5
|
|
|
6
|
+
// go/keep-sorted start
|
|
7
|
+
@use 'sass:map';
|
|
8
|
+
// go/keep-sorted end
|
|
6
9
|
// go/keep-sorted start
|
|
7
10
|
@use './internal/validate';
|
|
8
11
|
@use './md-sys-color';
|
|
@@ -52,12 +55,28 @@ $_default: (
|
|
|
52
55
|
'md-sys-state': md-sys-state.values(),
|
|
53
56
|
);
|
|
54
57
|
|
|
55
|
-
@function values(
|
|
58
|
+
@function values(
|
|
59
|
+
$deps: $_default,
|
|
60
|
+
$exclude-hardcoded-values: false,
|
|
61
|
+
$exclude-custom-properties: true
|
|
62
|
+
) {
|
|
56
63
|
$tokens: validate.values(
|
|
57
64
|
md-comp-elevated-card.values($deps, $exclude-hardcoded-values),
|
|
58
65
|
$supported-tokens: $supported-tokens,
|
|
59
66
|
$unsupported-tokens: $unsupported-tokens
|
|
60
67
|
);
|
|
61
68
|
|
|
69
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
70
|
+
// See b/321816473.
|
|
71
|
+
@if not $exclude-custom-properties {
|
|
72
|
+
@each $token, $value in $tokens {
|
|
73
|
+
$tokens: map.set(
|
|
74
|
+
$tokens,
|
|
75
|
+
$token,
|
|
76
|
+
var(--md-elevated-card-#{$token}, #{$value})
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
62
81
|
@return $tokens;
|
|
63
82
|
}
|
|
@@ -24,10 +24,27 @@ $_default: (
|
|
|
24
24
|
'md-sys-elevation': md-sys-elevation.values(),
|
|
25
25
|
);
|
|
26
26
|
|
|
27
|
-
@function values(
|
|
27
|
+
@function values(
|
|
28
|
+
$deps: $_default,
|
|
29
|
+
$exclude-hardcoded-values: false,
|
|
30
|
+
$exclude-custom-properties: true
|
|
31
|
+
) {
|
|
28
32
|
$tokens: (
|
|
29
33
|
'level': map.get($deps, 'md-sys-elevation', 'level0'),
|
|
30
34
|
'shadow-color': map.get($deps, 'md-sys-color', 'shadow'),
|
|
31
35
|
);
|
|
36
|
+
|
|
37
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
38
|
+
// See b/321816473.
|
|
39
|
+
@if not $exclude-custom-properties {
|
|
40
|
+
@each $token, $value in $tokens {
|
|
41
|
+
$tokens: map.set(
|
|
42
|
+
$tokens,
|
|
43
|
+
$token,
|
|
44
|
+
var(--md-elevation-#{$token}, #{$value})
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
32
49
|
@return validate.values($tokens, $supported-tokens: $supported-tokens);
|
|
33
50
|
}
|
|
@@ -99,7 +99,11 @@ $_default: (
|
|
|
99
99
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
100
100
|
);
|
|
101
101
|
|
|
102
|
-
@function values(
|
|
102
|
+
@function values(
|
|
103
|
+
$deps: $_default,
|
|
104
|
+
$exclude-hardcoded-values: false,
|
|
105
|
+
$exclude-custom-properties: true
|
|
106
|
+
) {
|
|
103
107
|
$tokens: validate.values(
|
|
104
108
|
md-comp-fab-branded.values($deps, $exclude-hardcoded-values),
|
|
105
109
|
$supported-tokens: $supported-tokens,
|
|
@@ -107,5 +111,17 @@ $_default: (
|
|
|
107
111
|
$new-tokens: _get-new-tokens($deps, $exclude-hardcoded-values)
|
|
108
112
|
);
|
|
109
113
|
|
|
114
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
115
|
+
// See b/321816473.
|
|
116
|
+
@if not $exclude-custom-properties {
|
|
117
|
+
@each $token, $value in $tokens {
|
|
118
|
+
$tokens: map.set(
|
|
119
|
+
$tokens,
|
|
120
|
+
$token,
|
|
121
|
+
var(--md-fab-branded-#{$token}, #{$value})
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
110
126
|
@return $tokens;
|
|
111
127
|
}
|
package/tokens/_md-comp-fab.scss
CHANGED
|
@@ -231,7 +231,11 @@ $_default: (
|
|
|
231
231
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
232
232
|
);
|
|
233
233
|
|
|
234
|
-
@function values(
|
|
234
|
+
@function values(
|
|
235
|
+
$deps: $_default,
|
|
236
|
+
$exclude-hardcoded-values: false,
|
|
237
|
+
$exclude-custom-properties: true
|
|
238
|
+
) {
|
|
235
239
|
$tokens: md-comp-fab-surface.values($deps, $exclude-hardcoded-values);
|
|
236
240
|
|
|
237
241
|
$tokens: validate.values(
|
|
@@ -241,5 +245,13 @@ $_default: (
|
|
|
241
245
|
$new-tokens: _get-new-tokens($deps, $exclude-hardcoded-values)
|
|
242
246
|
);
|
|
243
247
|
|
|
248
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
249
|
+
// See b/321816473.
|
|
250
|
+
@if not $exclude-custom-properties {
|
|
251
|
+
@each $token, $value in $tokens {
|
|
252
|
+
$tokens: map.set($tokens, $token, var(--md-fab-#{$token}, #{$value}));
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
244
256
|
@return $tokens;
|
|
245
257
|
}
|
|
@@ -76,7 +76,11 @@ $_default: (
|
|
|
76
76
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
77
77
|
);
|
|
78
78
|
|
|
79
|
-
@function values(
|
|
79
|
+
@function values(
|
|
80
|
+
$deps: $_default,
|
|
81
|
+
$exclude-hardcoded-values: false,
|
|
82
|
+
$exclude-custom-properties: true
|
|
83
|
+
) {
|
|
80
84
|
$tokens: validate.values(
|
|
81
85
|
md-comp-filled-button.values($deps, $exclude-hardcoded-values),
|
|
82
86
|
$supported-tokens: $supported-tokens,
|
|
@@ -108,5 +112,17 @@ $_default: (
|
|
|
108
112
|
)
|
|
109
113
|
);
|
|
110
114
|
|
|
115
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
116
|
+
// See b/321816473.
|
|
117
|
+
@if not $exclude-custom-properties {
|
|
118
|
+
@each $token, $value in $tokens {
|
|
119
|
+
$tokens: map.set(
|
|
120
|
+
$tokens,
|
|
121
|
+
$token,
|
|
122
|
+
var(--md-filled-button-#{$token}, #{$value})
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
111
127
|
@return $tokens;
|
|
112
128
|
}
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
//
|
|
5
5
|
|
|
6
|
+
// go/keep-sorted start
|
|
7
|
+
@use 'sass:map';
|
|
8
|
+
// go/keep-sorted end
|
|
6
9
|
// go/keep-sorted start
|
|
7
10
|
@use './internal/validate';
|
|
8
11
|
@use './md-sys-color';
|
|
@@ -52,12 +55,28 @@ $_default: (
|
|
|
52
55
|
'md-sys-state': md-sys-state.values(),
|
|
53
56
|
);
|
|
54
57
|
|
|
55
|
-
@function values(
|
|
58
|
+
@function values(
|
|
59
|
+
$deps: $_default,
|
|
60
|
+
$exclude-hardcoded-values: false,
|
|
61
|
+
$exclude-custom-properties: true
|
|
62
|
+
) {
|
|
56
63
|
$tokens: validate.values(
|
|
57
64
|
md-comp-filled-card.values($deps, $exclude-hardcoded-values),
|
|
58
65
|
$supported-tokens: $supported-tokens,
|
|
59
66
|
$unsupported-tokens: $unsupported-tokens
|
|
60
67
|
);
|
|
61
68
|
|
|
69
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
70
|
+
// See b/321816473.
|
|
71
|
+
@if not $exclude-custom-properties {
|
|
72
|
+
@each $token, $value in $tokens {
|
|
73
|
+
$tokens: map.set(
|
|
74
|
+
$tokens,
|
|
75
|
+
$token,
|
|
76
|
+
var(--md-filled-card-#{$token}, #{$value})
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
62
81
|
@return $tokens;
|
|
63
82
|
}
|
|
@@ -110,7 +110,11 @@ $_default: (
|
|
|
110
110
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
111
111
|
);
|
|
112
112
|
|
|
113
|
-
@function values(
|
|
113
|
+
@function values(
|
|
114
|
+
$deps: $_default,
|
|
115
|
+
$exclude-hardcoded-values: false,
|
|
116
|
+
$exclude-custom-properties: true
|
|
117
|
+
) {
|
|
114
118
|
$text-field: md-comp-filled-text-field.values(
|
|
115
119
|
$deps,
|
|
116
120
|
$exclude-hardcoded-values
|
|
@@ -249,5 +253,19 @@ $_default: (
|
|
|
249
253
|
// go/keep-sorted end
|
|
250
254
|
);
|
|
251
255
|
|
|
252
|
-
|
|
256
|
+
$tokens: validate.values($tokens, $supported-tokens: $supported-tokens);
|
|
257
|
+
|
|
258
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
259
|
+
// See b/321816473.
|
|
260
|
+
@if not $exclude-custom-properties {
|
|
261
|
+
@each $token, $value in $tokens {
|
|
262
|
+
$tokens: map.set(
|
|
263
|
+
$tokens,
|
|
264
|
+
$token,
|
|
265
|
+
var(--md-filled-field-#{$token}, #{$value})
|
|
266
|
+
);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
@return $tokens;
|
|
253
271
|
}
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
//
|
|
5
5
|
|
|
6
|
+
// go/keep-sorted start
|
|
7
|
+
@use 'sass:map';
|
|
8
|
+
// go/keep-sorted end
|
|
6
9
|
// go/keep-sorted start
|
|
7
10
|
@use './internal/validate';
|
|
8
11
|
@use './md-sys-color';
|
|
@@ -64,7 +67,11 @@ $_default: (
|
|
|
64
67
|
'md-sys-state': md-sys-state.values(),
|
|
65
68
|
);
|
|
66
69
|
|
|
67
|
-
@function values(
|
|
70
|
+
@function values(
|
|
71
|
+
$deps: $_default,
|
|
72
|
+
$exclude-hardcoded-values: false,
|
|
73
|
+
$exclude-custom-properties: true
|
|
74
|
+
) {
|
|
68
75
|
$tokens: validate.values(
|
|
69
76
|
md-comp-filled-icon-button.values($deps, $exclude-hardcoded-values),
|
|
70
77
|
$supported-tokens: $supported-tokens,
|
|
@@ -84,5 +91,17 @@ $_default: (
|
|
|
84
91
|
)
|
|
85
92
|
);
|
|
86
93
|
|
|
94
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
95
|
+
// See b/321816473.
|
|
96
|
+
@if not $exclude-custom-properties {
|
|
97
|
+
@each $token, $value in $tokens {
|
|
98
|
+
$tokens: map.set(
|
|
99
|
+
$tokens,
|
|
100
|
+
$token,
|
|
101
|
+
var(--md-filled-icon-button-#{$token}, #{$value})
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
87
106
|
@return $tokens;
|
|
88
107
|
}
|
|
@@ -150,7 +150,11 @@ $_default: (
|
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
@function values(
|
|
153
|
+
@function values(
|
|
154
|
+
$deps: $_default,
|
|
155
|
+
$exclude-hardcoded-values: false,
|
|
156
|
+
$exclude-custom-properties: true
|
|
157
|
+
) {
|
|
154
158
|
$original-tokens: md-comp-filled-select.values(
|
|
155
159
|
$deps,
|
|
156
160
|
$exclude-hardcoded-values
|
|
@@ -165,5 +169,17 @@ $_default: (
|
|
|
165
169
|
$unsupported-tokens: $unsupported-tokens
|
|
166
170
|
);
|
|
167
171
|
|
|
172
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
173
|
+
// See b/321816473.
|
|
174
|
+
@if not $exclude-custom-properties {
|
|
175
|
+
@each $token, $value in $tokens {
|
|
176
|
+
$tokens: map.set(
|
|
177
|
+
$tokens,
|
|
178
|
+
$token,
|
|
179
|
+
var(--md-filled-select-#{$token}, #{$value})
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
168
184
|
@return $tokens;
|
|
169
185
|
}
|
|
@@ -19,6 +19,7 @@ $supported-tokens: (
|
|
|
19
19
|
// go/keep-sorted start
|
|
20
20
|
'active-indicator-color',
|
|
21
21
|
'active-indicator-height',
|
|
22
|
+
'bottom-space',
|
|
22
23
|
'caret-color',
|
|
23
24
|
'container-color',
|
|
24
25
|
'container-shape',
|
|
@@ -60,6 +61,7 @@ $supported-tokens: (
|
|
|
60
61
|
'error-trailing-icon-color',
|
|
61
62
|
'focus-active-indicator-color',
|
|
62
63
|
'focus-active-indicator-height',
|
|
64
|
+
'focus-caret-color',
|
|
63
65
|
'focus-input-text-color',
|
|
64
66
|
'focus-label-text-color',
|
|
65
67
|
'focus-leading-icon-color',
|
|
@@ -79,8 +81,10 @@ $supported-tokens: (
|
|
|
79
81
|
'input-text-line-height',
|
|
80
82
|
'input-text-placeholder-color',
|
|
81
83
|
'input-text-prefix-color',
|
|
84
|
+
'input-text-prefix-trailing-space',
|
|
82
85
|
'input-text-size',
|
|
83
86
|
'input-text-suffix-color',
|
|
87
|
+
'input-text-suffix-leading-space',
|
|
84
88
|
'input-text-weight',
|
|
85
89
|
'label-text-color',
|
|
86
90
|
'label-text-font',
|
|
@@ -91,13 +95,18 @@ $supported-tokens: (
|
|
|
91
95
|
'label-text-weight',
|
|
92
96
|
'leading-icon-color',
|
|
93
97
|
'leading-icon-size',
|
|
98
|
+
'leading-space',
|
|
94
99
|
'supporting-text-color',
|
|
95
100
|
'supporting-text-font',
|
|
96
101
|
'supporting-text-line-height',
|
|
97
102
|
'supporting-text-size',
|
|
98
103
|
'supporting-text-weight',
|
|
104
|
+
'top-space',
|
|
99
105
|
'trailing-icon-color',
|
|
100
106
|
'trailing-icon-size',
|
|
107
|
+
'trailing-space',
|
|
108
|
+
'with-label-bottom-space',
|
|
109
|
+
'with-label-top-space',
|
|
101
110
|
// go/keep-sorted end
|
|
102
111
|
);
|
|
103
112
|
|
|
@@ -119,11 +128,29 @@ $_default: (
|
|
|
119
128
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
120
129
|
);
|
|
121
130
|
|
|
122
|
-
@function values(
|
|
131
|
+
@function values(
|
|
132
|
+
$deps: $_default,
|
|
133
|
+
$exclude-hardcoded-values: false,
|
|
134
|
+
$exclude-custom-properties: true
|
|
135
|
+
) {
|
|
123
136
|
$tokens: validate.values(
|
|
124
137
|
md-comp-filled-text-field.values($deps, $exclude-hardcoded-values),
|
|
125
138
|
$supported-tokens: $supported-tokens,
|
|
126
|
-
$unsupported-tokens: $unsupported-tokens
|
|
139
|
+
$unsupported-tokens: $unsupported-tokens,
|
|
140
|
+
$new-tokens: (
|
|
141
|
+
'leading-space': if($exclude-hardcoded-values, null, 16px),
|
|
142
|
+
'trailing-space': if($exclude-hardcoded-values, null, 16px),
|
|
143
|
+
'top-space': if($exclude-hardcoded-values, null, 16px),
|
|
144
|
+
'bottom-space': if($exclude-hardcoded-values, null, 16px),
|
|
145
|
+
'input-text-prefix-trailing-space':
|
|
146
|
+
if($exclude-hardcoded-values, null, 2px),
|
|
147
|
+
'input-text-suffix-leading-space':
|
|
148
|
+
if($exclude-hardcoded-values, null, 2px),
|
|
149
|
+
'with-label-top-space': if($exclude-hardcoded-values, null, 8px),
|
|
150
|
+
'with-label-bottom-space': if($exclude-hardcoded-values, null, 8px),
|
|
151
|
+
// TODO(b/270705687): remove when focus-caret-color token added
|
|
152
|
+
'focus-caret-color': map.get($deps, 'md-sys-color', 'primary'),
|
|
153
|
+
)
|
|
127
154
|
);
|
|
128
155
|
|
|
129
156
|
$tokens: map.merge(
|
|
@@ -134,5 +161,17 @@ $_default: (
|
|
|
134
161
|
)
|
|
135
162
|
);
|
|
136
163
|
|
|
164
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
165
|
+
// See b/321816473.
|
|
166
|
+
@if not $exclude-custom-properties {
|
|
167
|
+
@each $token, $value in $tokens {
|
|
168
|
+
$tokens: map.set(
|
|
169
|
+
$tokens,
|
|
170
|
+
$token,
|
|
171
|
+
var(--md-filled-text-field-#{$token}, #{$value})
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
137
176
|
@return $tokens;
|
|
138
177
|
}
|
|
@@ -76,7 +76,11 @@ $_default: (
|
|
|
76
76
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
77
77
|
);
|
|
78
78
|
|
|
79
|
-
@function values(
|
|
79
|
+
@function values(
|
|
80
|
+
$deps: $_default,
|
|
81
|
+
$exclude-hardcoded-values: false,
|
|
82
|
+
$exclude-custom-properties: true
|
|
83
|
+
) {
|
|
80
84
|
$tokens: validate.values(
|
|
81
85
|
md-comp-filled-tonal-button.values($deps, $exclude-hardcoded-values),
|
|
82
86
|
$supported-tokens: $supported-tokens,
|
|
@@ -108,5 +112,17 @@ $_default: (
|
|
|
108
112
|
)
|
|
109
113
|
);
|
|
110
114
|
|
|
115
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
116
|
+
// See b/321816473.
|
|
117
|
+
@if not $exclude-custom-properties {
|
|
118
|
+
@each $token, $value in $tokens {
|
|
119
|
+
$tokens: map.set(
|
|
120
|
+
$tokens,
|
|
121
|
+
$token,
|
|
122
|
+
var(--md-filled-tonal-button-#{$token}, #{$value})
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
111
127
|
@return $tokens;
|
|
112
128
|
}
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
//
|
|
5
5
|
|
|
6
|
+
// go/keep-sorted start
|
|
7
|
+
@use 'sass:map';
|
|
8
|
+
// go/keep-sorted end
|
|
6
9
|
// go/keep-sorted start
|
|
7
10
|
@use './internal/validate';
|
|
8
11
|
@use './md-sys-color';
|
|
@@ -64,7 +67,11 @@ $_default: (
|
|
|
64
67
|
'md-sys-state': md-sys-state.values(),
|
|
65
68
|
);
|
|
66
69
|
|
|
67
|
-
@function values(
|
|
70
|
+
@function values(
|
|
71
|
+
$deps: $_default,
|
|
72
|
+
$exclude-hardcoded-values: false,
|
|
73
|
+
$exclude-custom-properties: true
|
|
74
|
+
) {
|
|
68
75
|
$tokens: validate.values(
|
|
69
76
|
md-comp-filled-tonal-icon-button.values($deps, $exclude-hardcoded-values),
|
|
70
77
|
$supported-tokens: $supported-tokens,
|
|
@@ -84,5 +91,17 @@ $_default: (
|
|
|
84
91
|
)
|
|
85
92
|
);
|
|
86
93
|
|
|
94
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
95
|
+
// See b/321816473.
|
|
96
|
+
@if not $exclude-custom-properties {
|
|
97
|
+
@each $token, $value in $tokens {
|
|
98
|
+
$tokens: map.set(
|
|
99
|
+
$tokens,
|
|
100
|
+
$token,
|
|
101
|
+
var(--md-filled-tonal-icon-button-#{$token}, #{$value})
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
87
106
|
@return $tokens;
|
|
88
107
|
}
|