@material/web 1.2.0 → 1.2.1-nightly.6ecda49.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 +7 -30
- package/button/internal/_filled-button.scss +7 -30
- package/button/internal/_filled-tonal-button.scss +7 -30
- package/button/internal/_outlined-button.scss +7 -30
- package/button/internal/_text-button.scss +7 -30
- package/button/internal/elevated-styles.css.js +1 -1
- package/button/internal/elevated-styles.css.js.map +1 -1
- package/button/internal/filled-styles.css.js +1 -1
- package/button/internal/filled-styles.css.js.map +1 -1
- package/button/internal/filled-tonal-styles.css.js +1 -1
- package/button/internal/filled-tonal-styles.css.js.map +1 -1
- package/button/internal/outlined-styles.css.js +1 -1
- package/button/internal/outlined-styles.css.js.map +1 -1
- package/button/internal/text-styles.css.js +1 -1
- package/button/internal/text-styles.css.js.map +1 -1
- package/checkbox/internal/_checkbox.scss +3 -37
- package/chips/internal/_assist-chip.scss +8 -30
- package/chips/internal/_filter-chip.scss +8 -30
- package/chips/internal/_input-chip.scss +8 -30
- package/chips/internal/_suggestion-chip.scss +8 -30
- package/chips/internal/assist-styles.css.js +1 -1
- package/chips/internal/assist-styles.css.js.map +1 -1
- package/chips/internal/filter-styles.css.js +1 -1
- package/chips/internal/filter-styles.css.js.map +1 -1
- package/chips/internal/input-styles.css.js +1 -1
- package/chips/internal/input-styles.css.js.map +1 -1
- package/chips/internal/suggestion-styles.css.js +1 -1
- package/chips/internal/suggestion-styles.css.js.map +1 -1
- package/dialog/internal/_dialog.scss +3 -40
- package/divider/internal/_divider.scss +3 -4
- package/elevation/internal/_elevation.scss +3 -4
- package/fab/internal/_fab-branded.scss +8 -50
- package/fab/internal/_fab.scss +13 -70
- package/fab/internal/fab-branded-styles.css.js +1 -1
- package/fab/internal/fab-branded-styles.css.js.map +1 -1
- package/fab/internal/fab-styles.css.js +1 -1
- package/fab/internal/fab-styles.css.js.map +1 -1
- package/field/internal/_filled-field.scss +6 -23
- package/field/internal/_outlined-field.scss +6 -20
- package/field/internal/filled-styles.css.js +1 -1
- package/field/internal/filled-styles.css.js.map +1 -1
- package/field/internal/outlined-styles.css.js +1 -1
- package/field/internal/outlined-styles.css.js.map +1 -1
- package/focus/internal/_focus-ring.scss +14 -38
- package/icon/internal/_icon.scss +3 -4
- package/iconbutton/internal/_filled-icon-button.scss +7 -30
- package/iconbutton/internal/_filled-tonal-icon-button.scss +7 -30
- package/iconbutton/internal/_icon-button.scss +4 -2
- package/iconbutton/internal/_outlined-icon-button.scss +7 -30
- package/iconbutton/internal/filled-styles.css.js +1 -1
- package/iconbutton/internal/filled-styles.css.js.map +1 -1
- package/iconbutton/internal/filled-tonal-styles.css.js +1 -1
- package/iconbutton/internal/filled-tonal-styles.css.js.map +1 -1
- package/iconbutton/internal/outlined-styles.css.js +1 -1
- package/iconbutton/internal/outlined-styles.css.js.map +1 -1
- 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/segmentedbutton/internal/outlined-styles.css.js +1 -1
- package/labs/segmentedbutton/internal/outlined-styles.css.js.map +1 -1
- package/labs/segmentedbuttonset/internal/_outlined-segmented-button-set.scss +9 -20
- package/labs/segmentedbuttonset/internal/outlined-styles.css.js +1 -1
- package/labs/segmentedbuttonset/internal/outlined-styles.css.js.map +1 -1
- 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 +7 -45
- package/select/internal/_outlined-select.scss +7 -30
- package/select/internal/filled-select-styles.css.js +1 -1
- package/select/internal/filled-select-styles.css.js.map +1 -1
- package/select/internal/outlined-select-styles.css.js +1 -1
- package/select/internal/outlined-select-styles.css.js.map +1 -1
- package/slider/internal/_slider.scss +4 -2
- package/switch/internal/_switch.scss +3 -52
- package/tabs/internal/_primary-tab.scss +8 -30
- package/tabs/internal/_secondary-tab.scss +8 -30
- package/tabs/internal/primary-tab-styles.css.js +1 -1
- package/tabs/internal/primary-tab-styles.css.js.map +1 -1
- package/tabs/internal/secondary-tab-styles.css.js +1 -1
- package/tabs/internal/secondary-tab-styles.css.js.map +1 -1
- package/textfield/internal/_filled-text-field.scss +6 -58
- package/textfield/internal/_outlined-text-field.scss +6 -51
- 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 +40 -7
- package/tokens/_md-comp-badge.scss +14 -1
- package/tokens/_md-comp-checkbox.scss +36 -2
- package/tokens/_md-comp-circular-progress.scss +17 -1
- package/tokens/_md-comp-dialog.scss +28 -2
- package/tokens/_md-comp-divider.scss +19 -2
- package/tokens/_md-comp-elevated-button.scss +40 -7
- package/tokens/_md-comp-elevated-card.scss +20 -1
- package/tokens/_md-comp-elevation.scss +18 -1
- package/tokens/_md-comp-fab-branded.scss +49 -3
- package/tokens/_md-comp-fab.scss +55 -2
- package/tokens/_md-comp-filled-button.scss +40 -7
- package/tokens/_md-comp-filled-card.scss +20 -1
- package/tokens/_md-comp-filled-field.scss +36 -2
- package/tokens/_md-comp-filled-icon-button.scss +35 -2
- package/tokens/_md-comp-filled-select.scss +35 -2
- package/tokens/_md-comp-filled-text-field.scss +59 -3
- package/tokens/_md-comp-filled-tonal-button.scss +40 -7
- package/tokens/_md-comp-filled-tonal-icon-button.scss +39 -2
- package/tokens/_md-comp-filter-chip.scss +40 -7
- package/tokens/_md-comp-focus-ring.scss +35 -2
- package/tokens/_md-comp-icon-button.scss +20 -1
- package/tokens/_md-comp-icon.scss +15 -1
- package/tokens/_md-comp-input-chip.scss +40 -7
- 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 +40 -7
- package/tokens/_md-comp-outlined-card.scss +20 -1
- package/tokens/_md-comp-outlined-field.scss +36 -2
- package/tokens/_md-comp-outlined-icon-button.scss +39 -2
- package/tokens/_md-comp-outlined-segmented-button.scss +36 -2
- package/tokens/_md-comp-outlined-select.scss +36 -3
- package/tokens/_md-comp-outlined-text-field.scss +55 -3
- package/tokens/_md-comp-primary-tab.scss +33 -2
- package/tokens/_md-comp-radio.scss +16 -1
- package/tokens/_md-comp-ripple.scss +12 -2
- package/tokens/_md-comp-secondary-tab.scss +30 -1
- package/tokens/_md-comp-slider.scss +13 -1
- package/tokens/_md-comp-suggestion-chip.scss +40 -7
- package/tokens/_md-comp-switch.scss +43 -2
- package/tokens/_md-comp-text-button.scss +40 -7
- package/tokens/internal/_shape.scss +93 -0
- package/tokens/internal/_validate.scss +1 -1
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
@use 'sass:string';
|
|
9
9
|
// go/keep-sorted end
|
|
10
10
|
// go/keep-sorted start
|
|
11
|
+
@use './internal/shape';
|
|
11
12
|
@use './internal/validate';
|
|
12
13
|
@use './md-sys-color';
|
|
13
14
|
@use './md-sys-motion';
|
|
@@ -22,6 +23,10 @@ $supported-tokens: (
|
|
|
22
23
|
'inward-offset',
|
|
23
24
|
'outward-offset',
|
|
24
25
|
'shape',
|
|
26
|
+
'shape-end-end',
|
|
27
|
+
'shape-end-start',
|
|
28
|
+
'shape-start-end',
|
|
29
|
+
'shape-start-start',
|
|
25
30
|
'width',
|
|
26
31
|
// go/keep-sorted end
|
|
27
32
|
);
|
|
@@ -32,7 +37,11 @@ $_default: (
|
|
|
32
37
|
'md-sys-shape': md-sys-shape.values(),
|
|
33
38
|
);
|
|
34
39
|
|
|
35
|
-
@function values(
|
|
40
|
+
@function values(
|
|
41
|
+
$deps: $_default,
|
|
42
|
+
$exclude-hardcoded-values: false,
|
|
43
|
+
$exclude-custom-properties: true
|
|
44
|
+
) {
|
|
36
45
|
$tokens: (
|
|
37
46
|
'active-width': if($exclude-hardcoded-values, null, 8px),
|
|
38
47
|
'color': map.get($deps, 'md-sys-color', 'secondary'),
|
|
@@ -43,5 +52,29 @@ $_default: (
|
|
|
43
52
|
'width': if($exclude-hardcoded-values, null, 3px),
|
|
44
53
|
);
|
|
45
54
|
|
|
46
|
-
|
|
55
|
+
$new-tokens: shape.get-new-logical-shape-tokens($tokens, 'shape');
|
|
56
|
+
$tokens: validate.values(
|
|
57
|
+
$tokens,
|
|
58
|
+
$supported-tokens: $supported-tokens,
|
|
59
|
+
$new-tokens: $new-tokens
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
63
|
+
// See b/321816473.
|
|
64
|
+
@if not $exclude-custom-properties {
|
|
65
|
+
@each $token, $value in $tokens {
|
|
66
|
+
@if string.index($token, 'shape-') == 1 {
|
|
67
|
+
// Add fallback to shorthand for logical shape properties.
|
|
68
|
+
$value: var(--md-focus-ring-shape, #{$value});
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
$tokens: map.set(
|
|
72
|
+
$tokens,
|
|
73
|
+
$token,
|
|
74
|
+
var(--md-focus-ring-#{$token}, #{$value})
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@return $tokens;
|
|
47
80
|
}
|
|
@@ -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
|
}
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
// go/keep-sorted start
|
|
7
7
|
@use 'sass:map';
|
|
8
|
+
@use 'sass:string';
|
|
8
9
|
// go/keep-sorted end
|
|
9
10
|
// go/keep-sorted start
|
|
11
|
+
@use './internal/shape';
|
|
10
12
|
@use './internal/validate';
|
|
11
13
|
@use './md-sys-color';
|
|
12
14
|
@use './md-sys-elevation';
|
|
@@ -22,6 +24,10 @@ $supported-tokens: (
|
|
|
22
24
|
'avatar-size',
|
|
23
25
|
'container-height',
|
|
24
26
|
'container-shape',
|
|
27
|
+
'container-shape-end-end',
|
|
28
|
+
'container-shape-end-start',
|
|
29
|
+
'container-shape-start-end',
|
|
30
|
+
'container-shape-start-start',
|
|
25
31
|
'disabled-avatar-opacity',
|
|
26
32
|
'disabled-label-text-color',
|
|
27
33
|
'disabled-label-text-opacity',
|
|
@@ -115,12 +121,15 @@ $_default: (
|
|
|
115
121
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
116
122
|
);
|
|
117
123
|
|
|
118
|
-
@function values(
|
|
119
|
-
$
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
+
@function values(
|
|
125
|
+
$deps: $_default,
|
|
126
|
+
$exclude-hardcoded-values: false,
|
|
127
|
+
$exclude-custom-properties: true
|
|
128
|
+
) {
|
|
129
|
+
$tokens: md-comp-input-chip.values($deps, $exclude-hardcoded-values);
|
|
130
|
+
$new-tokens: map.merge(
|
|
131
|
+
shape.get-new-logical-shape-tokens($tokens, 'container-shape'),
|
|
132
|
+
(
|
|
124
133
|
'leading-space': if($exclude-hardcoded-values, null, 16px),
|
|
125
134
|
'trailing-space': if($exclude-hardcoded-values, null, 16px),
|
|
126
135
|
'icon-label-space': if($exclude-hardcoded-values, null, 8px),
|
|
@@ -128,7 +137,14 @@ $_default: (
|
|
|
128
137
|
if($exclude-hardcoded-values, null, 8px),
|
|
129
138
|
'with-trailing-icon-trailing-space':
|
|
130
139
|
if($exclude-hardcoded-values, null, 8px),
|
|
131
|
-
)
|
|
140
|
+
)
|
|
141
|
+
);
|
|
142
|
+
|
|
143
|
+
$tokens: validate.values(
|
|
144
|
+
$tokens,
|
|
145
|
+
$supported-tokens: $supported-tokens,
|
|
146
|
+
$unsupported-tokens: $unsupported-tokens,
|
|
147
|
+
$new-tokens: $new-tokens,
|
|
132
148
|
$renamed-tokens: (
|
|
133
149
|
// Remove "unselected-*" prefix (b/275577569)
|
|
134
150
|
'disabled-unselected-outline-color': 'disabled-outline-color',
|
|
@@ -212,5 +228,22 @@ $_default: (
|
|
|
212
228
|
map.get($deps, 'md-sys-color', 'primary')
|
|
213
229
|
);
|
|
214
230
|
|
|
231
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
232
|
+
// See b/321816473.
|
|
233
|
+
@if not $exclude-custom-properties {
|
|
234
|
+
@each $token, $value in $tokens {
|
|
235
|
+
@if string.index($token, 'container-shape-') == 1 {
|
|
236
|
+
// Add fallback to shorthand for logical shape properties.
|
|
237
|
+
$value: var(--md-input-chip-container-shape, #{$value});
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
$tokens: map.set(
|
|
241
|
+
$tokens,
|
|
242
|
+
$token,
|
|
243
|
+
var(--md-input-chip-#{$token}, #{$value})
|
|
244
|
+
);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
215
248
|
@return $tokens;
|
|
216
249
|
}
|
|
@@ -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
|
}
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
// go/keep-sorted start
|
|
7
7
|
@use 'sass:map';
|
|
8
|
+
@use 'sass:string';
|
|
8
9
|
// go/keep-sorted end
|
|
9
10
|
// go/keep-sorted start
|
|
11
|
+
@use './internal/shape';
|
|
10
12
|
@use './internal/validate';
|
|
11
13
|
@use './md-sys-color';
|
|
12
14
|
@use './md-sys-shape';
|
|
@@ -19,6 +21,10 @@ $supported-tokens: (
|
|
|
19
21
|
// go/keep-sorted start
|
|
20
22
|
'container-height',
|
|
21
23
|
'container-shape',
|
|
24
|
+
'container-shape-end-end',
|
|
25
|
+
'container-shape-end-start',
|
|
26
|
+
'container-shape-start-end',
|
|
27
|
+
'container-shape-start-start',
|
|
22
28
|
'disabled-icon-color',
|
|
23
29
|
'disabled-icon-opacity',
|
|
24
30
|
'disabled-label-text-color',
|
|
@@ -72,12 +78,15 @@ $_default: (
|
|
|
72
78
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
73
79
|
);
|
|
74
80
|
|
|
75
|
-
@function values(
|
|
76
|
-
$
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
+
@function values(
|
|
82
|
+
$deps: $_default,
|
|
83
|
+
$exclude-hardcoded-values: false,
|
|
84
|
+
$exclude-custom-properties: true
|
|
85
|
+
) {
|
|
86
|
+
$tokens: md-comp-outlined-button.values($deps, $exclude-hardcoded-values);
|
|
87
|
+
$new-tokens: map.merge(
|
|
88
|
+
shape.get-new-logical-shape-tokens($tokens, 'container-shape'),
|
|
89
|
+
(
|
|
81
90
|
// b/198759625 - Remove once spacing tokens are formally added
|
|
82
91
|
// go/keep-sorted start
|
|
83
92
|
'leading-space': if($exclude-hardcoded-values, null, 24px),
|
|
@@ -91,7 +100,14 @@ $_default: (
|
|
|
91
100
|
'with-trailing-icon-trailing-space':
|
|
92
101
|
if($exclude-hardcoded-values, null, 16px),
|
|
93
102
|
// go/keep-sorted end
|
|
94
|
-
)
|
|
103
|
+
)
|
|
104
|
+
);
|
|
105
|
+
|
|
106
|
+
$tokens: validate.values(
|
|
107
|
+
$tokens,
|
|
108
|
+
$supported-tokens: $supported-tokens,
|
|
109
|
+
$unsupported-tokens: $unsupported-tokens,
|
|
110
|
+
$new-tokens: $new-tokens,
|
|
95
111
|
$renamed-tokens: (
|
|
96
112
|
// Remove "with-*" prefixes (b/273534858)
|
|
97
113
|
'with-icon-disabled-icon-color': 'disabled-icon-color',
|
|
@@ -104,5 +120,22 @@ $_default: (
|
|
|
104
120
|
)
|
|
105
121
|
);
|
|
106
122
|
|
|
123
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
124
|
+
// See b/321816473.
|
|
125
|
+
@if not $exclude-custom-properties {
|
|
126
|
+
@each $token, $value in $tokens {
|
|
127
|
+
@if string.index($token, 'container-shape-') == 1 {
|
|
128
|
+
// Add fallback to shorthand for logical shape properties.
|
|
129
|
+
$value: var(--md-outlined-button-container-shape, #{$value});
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
$tokens: map.set(
|
|
133
|
+
$tokens,
|
|
134
|
+
$token,
|
|
135
|
+
var(--md-outlined-button-#{$token}, #{$value})
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
107
140
|
@return $tokens;
|
|
108
141
|
}
|
|
@@ -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
|
}
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
// go/keep-sorted start
|
|
7
7
|
@use 'sass:map';
|
|
8
|
+
@use 'sass:string';
|
|
8
9
|
// go/keep-sorted end
|
|
9
10
|
// go/keep-sorted start
|
|
11
|
+
@use './internal/shape';
|
|
10
12
|
@use './internal/validate';
|
|
11
13
|
@use './md-sys-color';
|
|
12
14
|
@use './md-sys-shape';
|
|
@@ -19,6 +21,10 @@ $supported-tokens: (
|
|
|
19
21
|
// go/keep-sorted start
|
|
20
22
|
'bottom-space',
|
|
21
23
|
'container-shape',
|
|
24
|
+
'container-shape-end-end',
|
|
25
|
+
'container-shape-end-start',
|
|
26
|
+
'container-shape-start-end',
|
|
27
|
+
'container-shape-start-start',
|
|
22
28
|
'content-color',
|
|
23
29
|
'content-font',
|
|
24
30
|
'content-line-height',
|
|
@@ -103,7 +109,11 @@ $_default: (
|
|
|
103
109
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
104
110
|
);
|
|
105
111
|
|
|
106
|
-
@function values(
|
|
112
|
+
@function values(
|
|
113
|
+
$deps: $_default,
|
|
114
|
+
$exclude-hardcoded-values: false,
|
|
115
|
+
$exclude-custom-properties: true
|
|
116
|
+
) {
|
|
107
117
|
$text-field: md-comp-outlined-text-field.values(
|
|
108
118
|
$deps,
|
|
109
119
|
$exclude-hardcoded-values
|
|
@@ -224,5 +234,29 @@ $_default: (
|
|
|
224
234
|
// go/keep-sorted end
|
|
225
235
|
);
|
|
226
236
|
|
|
227
|
-
|
|
237
|
+
$new-tokens: shape.get-new-logical-shape-tokens($tokens, 'container-shape');
|
|
238
|
+
$tokens: validate.values(
|
|
239
|
+
$tokens,
|
|
240
|
+
$supported-tokens: $supported-tokens,
|
|
241
|
+
$new-tokens: $new-tokens
|
|
242
|
+
);
|
|
243
|
+
|
|
244
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
245
|
+
// See b/321816473.
|
|
246
|
+
@if not $exclude-custom-properties {
|
|
247
|
+
@each $token, $value in $tokens {
|
|
248
|
+
@if string.index($token, 'container-shape-') == 1 {
|
|
249
|
+
// Add fallback to shorthand for logical shape properties.
|
|
250
|
+
$value: var(--md-outlined-field-container-shape, #{$value});
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
$tokens: map.set(
|
|
254
|
+
$tokens,
|
|
255
|
+
$token,
|
|
256
|
+
var(--md-outlined-field-#{$token}, #{$value})
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
@return $tokens;
|
|
228
262
|
}
|