@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
|
@@ -127,7 +127,11 @@ $_default: (
|
|
|
127
127
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
128
128
|
);
|
|
129
129
|
|
|
130
|
-
@function values(
|
|
130
|
+
@function values(
|
|
131
|
+
$deps: $_default,
|
|
132
|
+
$exclude-hardcoded-values: false,
|
|
133
|
+
$exclude-custom-properties: true
|
|
134
|
+
) {
|
|
131
135
|
$tokens: validate.values(
|
|
132
136
|
md-comp-filter-chip.values($deps, $exclude-hardcoded-values),
|
|
133
137
|
$supported-tokens: $supported-tokens,
|
|
@@ -230,5 +234,17 @@ $_default: (
|
|
|
230
234
|
)
|
|
231
235
|
);
|
|
232
236
|
|
|
237
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
238
|
+
// See b/321816473.
|
|
239
|
+
@if not $exclude-custom-properties {
|
|
240
|
+
@each $token, $value in $tokens {
|
|
241
|
+
$tokens: map.set(
|
|
242
|
+
$tokens,
|
|
243
|
+
$token,
|
|
244
|
+
var(--md-filter-chip-#{$token}, #{$value})
|
|
245
|
+
);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
233
249
|
@return $tokens;
|
|
234
250
|
}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
// go/keep-sorted start
|
|
7
7
|
@use 'sass:map';
|
|
8
|
-
@use 'sass:string';
|
|
9
8
|
// go/keep-sorted end
|
|
10
9
|
// go/keep-sorted start
|
|
11
10
|
@use './internal/validate';
|
|
@@ -32,7 +31,11 @@ $_default: (
|
|
|
32
31
|
'md-sys-shape': md-sys-shape.values(),
|
|
33
32
|
);
|
|
34
33
|
|
|
35
|
-
@function values(
|
|
34
|
+
@function values(
|
|
35
|
+
$deps: $_default,
|
|
36
|
+
$exclude-hardcoded-values: false,
|
|
37
|
+
$exclude-custom-properties: true
|
|
38
|
+
) {
|
|
36
39
|
$tokens: (
|
|
37
40
|
'active-width': if($exclude-hardcoded-values, null, 8px),
|
|
38
41
|
'color': map.get($deps, 'md-sys-color', 'secondary'),
|
|
@@ -43,5 +46,19 @@ $_default: (
|
|
|
43
46
|
'width': if($exclude-hardcoded-values, null, 3px),
|
|
44
47
|
);
|
|
45
48
|
|
|
46
|
-
|
|
49
|
+
$tokens: validate.values($tokens, $supported-tokens: $supported-tokens);
|
|
50
|
+
|
|
51
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
52
|
+
// See b/321816473.
|
|
53
|
+
@if not $exclude-custom-properties {
|
|
54
|
+
@each $token, $value in $tokens {
|
|
55
|
+
$tokens: map.set(
|
|
56
|
+
$tokens,
|
|
57
|
+
$token,
|
|
58
|
+
var(--md-focus-ring-#{$token}, #{$value})
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@return $tokens;
|
|
47
64
|
}
|
|
@@ -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';
|
|
@@ -53,7 +56,11 @@ $_default: (
|
|
|
53
56
|
'md-sys-state': md-sys-state.values(),
|
|
54
57
|
);
|
|
55
58
|
|
|
56
|
-
@function values(
|
|
59
|
+
@function values(
|
|
60
|
+
$deps: $_default,
|
|
61
|
+
$exclude-hardcoded-values: false,
|
|
62
|
+
$exclude-custom-properties: true
|
|
63
|
+
) {
|
|
57
64
|
$tokens: validate.values(
|
|
58
65
|
md-comp-icon-button.values($deps, $exclude-hardcoded-values),
|
|
59
66
|
$supported-tokens: $supported-tokens,
|
|
@@ -73,5 +80,17 @@ $_default: (
|
|
|
73
80
|
)
|
|
74
81
|
);
|
|
75
82
|
|
|
83
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
84
|
+
// See b/321816473.
|
|
85
|
+
@if not $exclude-custom-properties {
|
|
86
|
+
@each $token, $value in $tokens {
|
|
87
|
+
$tokens: map.set(
|
|
88
|
+
$tokens,
|
|
89
|
+
$token,
|
|
90
|
+
var(--md-icon-button-#{$token}, #{$value})
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
76
95
|
@return $tokens;
|
|
77
96
|
}
|
|
@@ -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
|
// go/keep-sorted end
|
|
@@ -23,12 +26,23 @@ $supported-tokens: (
|
|
|
23
26
|
);
|
|
24
27
|
}
|
|
25
28
|
|
|
26
|
-
@function values(
|
|
29
|
+
@function values(
|
|
30
|
+
$exclude-hardcoded-values: false,
|
|
31
|
+
$exclude-custom-properties: true
|
|
32
|
+
) {
|
|
27
33
|
$tokens: validate.values(
|
|
28
34
|
(),
|
|
29
35
|
$supported-tokens: $supported-tokens,
|
|
30
36
|
$new-tokens: _get-new-tokens($exclude-hardcoded-values)
|
|
31
37
|
);
|
|
32
38
|
|
|
39
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
40
|
+
// See b/321816473.
|
|
41
|
+
@if not $exclude-custom-properties {
|
|
42
|
+
@each $token, $value in $tokens {
|
|
43
|
+
$tokens: map.set($tokens, $token, var(--md-icon-#{$token}, #{$value}));
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
33
47
|
@return $tokens;
|
|
34
48
|
}
|
|
@@ -115,7 +115,11 @@ $_default: (
|
|
|
115
115
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
116
116
|
);
|
|
117
117
|
|
|
118
|
-
@function values(
|
|
118
|
+
@function values(
|
|
119
|
+
$deps: $_default,
|
|
120
|
+
$exclude-hardcoded-values: false,
|
|
121
|
+
$exclude-custom-properties: true
|
|
122
|
+
) {
|
|
119
123
|
$tokens: validate.values(
|
|
120
124
|
md-comp-input-chip.values($deps, $exclude-hardcoded-values),
|
|
121
125
|
$supported-tokens: $supported-tokens,
|
|
@@ -212,5 +216,17 @@ $_default: (
|
|
|
212
216
|
map.get($deps, 'md-sys-color', 'primary')
|
|
213
217
|
);
|
|
214
218
|
|
|
219
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
220
|
+
// See b/321816473.
|
|
221
|
+
@if not $exclude-custom-properties {
|
|
222
|
+
@each $token, $value in $tokens {
|
|
223
|
+
$tokens: map.set(
|
|
224
|
+
$tokens,
|
|
225
|
+
$token,
|
|
226
|
+
var(--md-input-chip-#{$token}, #{$value})
|
|
227
|
+
);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
215
231
|
@return $tokens;
|
|
216
232
|
}
|
|
@@ -41,10 +41,28 @@ $unsupported-tokens: (
|
|
|
41
41
|
|
|
42
42
|
// TODO(b/275045611) may need to update based on resolution of design
|
|
43
43
|
// for buffer and background animation.
|
|
44
|
-
@function values(
|
|
45
|
-
|
|
44
|
+
@function values(
|
|
45
|
+
$deps: $_default,
|
|
46
|
+
$exclude-hardcoded-values: false,
|
|
47
|
+
$exclude-custom-properties: true
|
|
48
|
+
) {
|
|
49
|
+
$tokens: validate.values(
|
|
46
50
|
md-comp-linear-progress-indicator.values($deps, $exclude-hardcoded-values),
|
|
47
51
|
$supported-tokens: $supported-tokens,
|
|
48
52
|
$unsupported-tokens: $unsupported-tokens
|
|
49
53
|
);
|
|
54
|
+
|
|
55
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
56
|
+
// See b/321816473.
|
|
57
|
+
@if not $exclude-custom-properties {
|
|
58
|
+
@each $token, $value in $tokens {
|
|
59
|
+
$tokens: map.set(
|
|
60
|
+
$tokens,
|
|
61
|
+
$token,
|
|
62
|
+
var(--md-linear-progress-#{$token}, #{$value})
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@return $tokens;
|
|
50
68
|
}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
//
|
|
5
5
|
|
|
6
6
|
// go/keep-sorted start
|
|
7
|
-
@use 'sass:list';
|
|
8
7
|
@use 'sass:map';
|
|
9
8
|
@use 'sass:string';
|
|
10
9
|
// go/keep-sorted end
|
|
@@ -125,7 +124,11 @@ $_default: (
|
|
|
125
124
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
126
125
|
);
|
|
127
126
|
|
|
128
|
-
@function values(
|
|
127
|
+
@function values(
|
|
128
|
+
$deps: $_default,
|
|
129
|
+
$exclude-hardcoded-values: false,
|
|
130
|
+
$exclude-custom-properties: true
|
|
131
|
+
) {
|
|
129
132
|
$original-tokens: md-comp-list.values($deps, $exclude-hardcoded-values);
|
|
130
133
|
|
|
131
134
|
$tokens: validate.values(
|
|
@@ -141,6 +144,18 @@ $_default: (
|
|
|
141
144
|
$renamed-tokens: _get-renamed-tokens($original-tokens)
|
|
142
145
|
);
|
|
143
146
|
|
|
147
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
148
|
+
// See b/321816473.
|
|
149
|
+
@if not $exclude-custom-properties {
|
|
150
|
+
@each $token, $value in $tokens {
|
|
151
|
+
$tokens: map.set(
|
|
152
|
+
$tokens,
|
|
153
|
+
$token,
|
|
154
|
+
var(--md-list-item-#{$token}, #{$value})
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
144
159
|
@return $tokens;
|
|
145
160
|
}
|
|
146
161
|
|
|
@@ -22,11 +22,25 @@ $_default: (
|
|
|
22
22
|
'md-sys-color': md-sys-color.values-light(),
|
|
23
23
|
);
|
|
24
24
|
|
|
25
|
-
@function values(
|
|
25
|
+
@function values(
|
|
26
|
+
$deps: $_default,
|
|
27
|
+
$exclude-hardcoded-values: false,
|
|
28
|
+
$exclude-custom-properties: true
|
|
29
|
+
) {
|
|
26
30
|
$list-tokens: md-comp-list.values($deps, $exclude-hardcoded-values);
|
|
27
31
|
$tokens: (
|
|
28
32
|
'container-color': map.get($list-tokens, 'list-item-container-color'),
|
|
29
33
|
);
|
|
30
34
|
|
|
31
|
-
|
|
35
|
+
$tokens: validate.values($tokens, $supported-tokens: $supported-tokens);
|
|
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($tokens, $token, var(--md-list-#{$token}, #{$value}));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@return $tokens;
|
|
32
46
|
}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
//
|
|
5
5
|
|
|
6
6
|
// go/keep-sorted start
|
|
7
|
-
@use 'sass:list';
|
|
8
7
|
@use 'sass:map';
|
|
9
8
|
@use 'sass:string';
|
|
10
9
|
// go/keep-sorted end
|
|
@@ -73,7 +72,11 @@ $_default: (
|
|
|
73
72
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
74
73
|
);
|
|
75
74
|
|
|
76
|
-
@function values(
|
|
75
|
+
@function values(
|
|
76
|
+
$deps: $_default,
|
|
77
|
+
$exclude-hardcoded-values: false,
|
|
78
|
+
$exclude-custom-properties: true
|
|
79
|
+
) {
|
|
77
80
|
$tokens: md-comp-menu.values($deps);
|
|
78
81
|
|
|
79
82
|
// Like list items, menu items use their parent menu for their container
|
|
@@ -90,6 +93,18 @@ $_default: (
|
|
|
90
93
|
$renamed-tokens: _get-renamed-tokens($tokens)
|
|
91
94
|
);
|
|
92
95
|
|
|
96
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
97
|
+
// See b/321816473.
|
|
98
|
+
@if not $exclude-custom-properties {
|
|
99
|
+
@each $token, $value in $tokens {
|
|
100
|
+
$tokens: map.set(
|
|
101
|
+
$tokens,
|
|
102
|
+
$token,
|
|
103
|
+
var(--md-menu-item-#{$token}, #{$value})
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
93
108
|
@return $tokens;
|
|
94
109
|
}
|
|
95
110
|
|
|
@@ -4,9 +4,7 @@
|
|
|
4
4
|
//
|
|
5
5
|
|
|
6
6
|
// go/keep-sorted start
|
|
7
|
-
@use 'sass:list';
|
|
8
7
|
@use 'sass:map';
|
|
9
|
-
@use 'sass:string';
|
|
10
8
|
// go/keep-sorted end
|
|
11
9
|
// go/keep-sorted start
|
|
12
10
|
@use './internal/validate';
|
|
@@ -40,12 +38,24 @@ $_default: (
|
|
|
40
38
|
'md-sys-shape': md-sys-shape.values(),
|
|
41
39
|
);
|
|
42
40
|
|
|
43
|
-
@function values(
|
|
41
|
+
@function values(
|
|
42
|
+
$deps: $_default,
|
|
43
|
+
$exclude-hardcoded-values: false,
|
|
44
|
+
$exclude-custom-properties: true
|
|
45
|
+
) {
|
|
44
46
|
$tokens: validate.values(
|
|
45
47
|
md-comp-menu.values($deps),
|
|
46
48
|
$supported-tokens: $supported-tokens,
|
|
47
49
|
$unsupported-tokens: $unsupported-tokens
|
|
48
50
|
);
|
|
49
51
|
|
|
52
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
53
|
+
// See b/321816473.
|
|
54
|
+
@if not $exclude-custom-properties {
|
|
55
|
+
@each $token, $value in $tokens {
|
|
56
|
+
$tokens: map.set($tokens, $token, var(--md-menu-#{$token}, #{$value}));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
50
60
|
@return $tokens;
|
|
51
61
|
}
|
|
@@ -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 './md-sys-color';
|
|
8
11
|
@use './md-sys-elevation';
|
|
@@ -20,6 +23,24 @@ $_default: (
|
|
|
20
23
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
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: md-comp-navigation-bar.values($deps, $exclude-hardcoded-values);
|
|
32
|
+
|
|
33
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
34
|
+
// See b/321816473.
|
|
35
|
+
@if not $exclude-custom-properties {
|
|
36
|
+
@each $token, $value in $tokens {
|
|
37
|
+
$tokens: map.set(
|
|
38
|
+
$tokens,
|
|
39
|
+
$token,
|
|
40
|
+
var(--md-navigation-bar-#{$token}, #{$value})
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@return $tokens;
|
|
25
46
|
}
|
|
@@ -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 './md-sys-color';
|
|
8
11
|
@use './md-sys-elevation';
|
|
@@ -20,6 +23,24 @@ $_default: (
|
|
|
20
23
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
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: md-comp-navigation-drawer.values($deps, $exclude-hardcoded-values);
|
|
32
|
+
|
|
33
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
34
|
+
// See b/321816473.
|
|
35
|
+
@if not $exclude-custom-properties {
|
|
36
|
+
@each $token, $value in $tokens {
|
|
37
|
+
$tokens: map.set(
|
|
38
|
+
$tokens,
|
|
39
|
+
$token,
|
|
40
|
+
var(--md-navigation-drawer-#{$token}, #{$value})
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@return $tokens;
|
|
25
46
|
}
|
|
@@ -72,7 +72,11 @@ $_default: (
|
|
|
72
72
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
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-outlined-button.values($deps, $exclude-hardcoded-values),
|
|
78
82
|
$supported-tokens: $supported-tokens,
|
|
@@ -104,5 +108,17 @@ $_default: (
|
|
|
104
108
|
)
|
|
105
109
|
);
|
|
106
110
|
|
|
111
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
112
|
+
// See b/321816473.
|
|
113
|
+
@if not $exclude-custom-properties {
|
|
114
|
+
@each $token, $value in $tokens {
|
|
115
|
+
$tokens: map.set(
|
|
116
|
+
$tokens,
|
|
117
|
+
$token,
|
|
118
|
+
var(--md-outlined-button-#{$token}, #{$value})
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
107
123
|
@return $tokens;
|
|
108
124
|
}
|
|
@@ -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';
|
|
@@ -58,12 +61,28 @@ $_default: (
|
|
|
58
61
|
'md-sys-state': md-sys-state.values(),
|
|
59
62
|
);
|
|
60
63
|
|
|
61
|
-
@function values(
|
|
64
|
+
@function values(
|
|
65
|
+
$deps: $_default,
|
|
66
|
+
$exclude-hardcoded-values: false,
|
|
67
|
+
$exclude-custom-properties: true
|
|
68
|
+
) {
|
|
62
69
|
$tokens: validate.values(
|
|
63
70
|
md-comp-outlined-card.values($deps, $exclude-hardcoded-values),
|
|
64
71
|
$supported-tokens: $supported-tokens,
|
|
65
72
|
$unsupported-tokens: $unsupported-tokens
|
|
66
73
|
);
|
|
67
74
|
|
|
75
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
76
|
+
// See b/321816473.
|
|
77
|
+
@if not $exclude-custom-properties {
|
|
78
|
+
@each $token, $value in $tokens {
|
|
79
|
+
$tokens: map.set(
|
|
80
|
+
$tokens,
|
|
81
|
+
$token,
|
|
82
|
+
var(--md-outlined-card-#{$token}, #{$value})
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
68
87
|
@return $tokens;
|
|
69
88
|
}
|
|
@@ -103,7 +103,11 @@ $_default: (
|
|
|
103
103
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
104
104
|
);
|
|
105
105
|
|
|
106
|
-
@function values(
|
|
106
|
+
@function values(
|
|
107
|
+
$deps: $_default,
|
|
108
|
+
$exclude-hardcoded-values: false,
|
|
109
|
+
$exclude-custom-properties: true
|
|
110
|
+
) {
|
|
107
111
|
$text-field: md-comp-outlined-text-field.values(
|
|
108
112
|
$deps,
|
|
109
113
|
$exclude-hardcoded-values
|
|
@@ -224,5 +228,19 @@ $_default: (
|
|
|
224
228
|
// go/keep-sorted end
|
|
225
229
|
);
|
|
226
230
|
|
|
227
|
-
|
|
231
|
+
$tokens: validate.values($tokens, $supported-tokens: $supported-tokens);
|
|
232
|
+
|
|
233
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
234
|
+
// See b/321816473.
|
|
235
|
+
@if not $exclude-custom-properties {
|
|
236
|
+
@each $token, $value in $tokens {
|
|
237
|
+
$tokens: map.set(
|
|
238
|
+
$tokens,
|
|
239
|
+
$token,
|
|
240
|
+
var(--md-outlined-field-#{$token}, #{$value})
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
@return $tokens;
|
|
228
246
|
}
|
|
@@ -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';
|
|
@@ -57,7 +60,11 @@ $_default: (
|
|
|
57
60
|
'md-sys-state': md-sys-state.values(),
|
|
58
61
|
);
|
|
59
62
|
|
|
60
|
-
@function values(
|
|
63
|
+
@function values(
|
|
64
|
+
$deps: $_default,
|
|
65
|
+
$exclude-hardcoded-values: false,
|
|
66
|
+
$exclude-custom-properties: true
|
|
67
|
+
) {
|
|
61
68
|
$tokens: validate.values(
|
|
62
69
|
md-comp-outlined-icon-button.values($deps, $exclude-hardcoded-values),
|
|
63
70
|
$supported-tokens: $supported-tokens,
|
|
@@ -78,5 +85,17 @@ $_default: (
|
|
|
78
85
|
)
|
|
79
86
|
);
|
|
80
87
|
|
|
88
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
89
|
+
// See b/321816473.
|
|
90
|
+
@if not $exclude-custom-properties {
|
|
91
|
+
@each $token, $value in $tokens {
|
|
92
|
+
$tokens: map.set(
|
|
93
|
+
$tokens,
|
|
94
|
+
$token,
|
|
95
|
+
var(--md-outlined-icon-button-#{$token}, #{$value})
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
81
100
|
@return $tokens;
|
|
82
101
|
}
|
|
@@ -74,7 +74,11 @@ $_default: (
|
|
|
74
74
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
75
75
|
);
|
|
76
76
|
|
|
77
|
-
@function values(
|
|
77
|
+
@function values(
|
|
78
|
+
$deps: $_default,
|
|
79
|
+
$exclude-hardcoded-values: false,
|
|
80
|
+
$exclude-custom-properties: true
|
|
81
|
+
) {
|
|
78
82
|
$tokens: validate.values(
|
|
79
83
|
md-comp-outlined-segmented-button.values($deps, $exclude-hardcoded-values),
|
|
80
84
|
$supported-tokens: $supported-tokens,
|
|
@@ -87,5 +91,17 @@ $_default: (
|
|
|
87
91
|
)
|
|
88
92
|
);
|
|
89
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-outlined-segmented-button-#{$token}, #{$value})
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
90
106
|
@return $tokens;
|
|
91
107
|
}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
// go/keep-sorted start
|
|
7
7
|
@use 'sass:map';
|
|
8
|
-
@use 'sass:string';
|
|
9
8
|
// go/keep-sorted end
|
|
10
9
|
// go/keep-sorted start
|
|
11
10
|
@use './internal/validate';
|
|
@@ -136,7 +135,11 @@ $_default: (
|
|
|
136
135
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
137
136
|
);
|
|
138
137
|
|
|
139
|
-
@function values(
|
|
138
|
+
@function values(
|
|
139
|
+
$deps: $_default,
|
|
140
|
+
$exclude-hardcoded-values: false,
|
|
141
|
+
$exclude-custom-properties: true
|
|
142
|
+
) {
|
|
140
143
|
$tokens: validate.values(
|
|
141
144
|
md-comp-outlined-select.values($deps, $exclude-hardcoded-values),
|
|
142
145
|
$supported-tokens: $supported-tokens,
|
|
@@ -151,5 +154,17 @@ $_default: (
|
|
|
151
154
|
)
|
|
152
155
|
);
|
|
153
156
|
|
|
157
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
158
|
+
// See b/321816473.
|
|
159
|
+
@if not $exclude-custom-properties {
|
|
160
|
+
@each $token, $value in $tokens {
|
|
161
|
+
$tokens: map.set(
|
|
162
|
+
$tokens,
|
|
163
|
+
$token,
|
|
164
|
+
var(--md-outlined-select-#{$token}, #{$value})
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
154
169
|
@return $tokens;
|
|
155
170
|
}
|