@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
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
$supported-tokens: (
|
|
18
18
|
// go/keep-sorted start
|
|
19
|
+
'bottom-space',
|
|
19
20
|
'caret-color',
|
|
20
21
|
'container-shape',
|
|
21
22
|
'disabled-input-text-color',
|
|
@@ -50,6 +51,7 @@ $supported-tokens: (
|
|
|
50
51
|
'error-outline-color',
|
|
51
52
|
'error-supporting-text-color',
|
|
52
53
|
'error-trailing-icon-color',
|
|
54
|
+
'focus-caret-color',
|
|
53
55
|
'focus-input-text-color',
|
|
54
56
|
'focus-label-text-color',
|
|
55
57
|
'focus-leading-icon-color',
|
|
@@ -69,8 +71,10 @@ $supported-tokens: (
|
|
|
69
71
|
'input-text-line-height',
|
|
70
72
|
'input-text-placeholder-color',
|
|
71
73
|
'input-text-prefix-color',
|
|
74
|
+
'input-text-prefix-trailing-space',
|
|
72
75
|
'input-text-size',
|
|
73
76
|
'input-text-suffix-color',
|
|
77
|
+
'input-text-suffix-leading-space',
|
|
74
78
|
'input-text-weight',
|
|
75
79
|
'label-text-color',
|
|
76
80
|
'label-text-font',
|
|
@@ -81,6 +85,7 @@ $supported-tokens: (
|
|
|
81
85
|
'label-text-weight',
|
|
82
86
|
'leading-icon-color',
|
|
83
87
|
'leading-icon-size',
|
|
88
|
+
'leading-space',
|
|
84
89
|
'outline-color',
|
|
85
90
|
'outline-width',
|
|
86
91
|
'supporting-text-color',
|
|
@@ -88,8 +93,10 @@ $supported-tokens: (
|
|
|
88
93
|
'supporting-text-line-height',
|
|
89
94
|
'supporting-text-size',
|
|
90
95
|
'supporting-text-weight',
|
|
96
|
+
'top-space',
|
|
91
97
|
'trailing-icon-color',
|
|
92
98
|
'trailing-icon-size',
|
|
99
|
+
'trailing-space',
|
|
93
100
|
// go/keep-sorted end
|
|
94
101
|
);
|
|
95
102
|
|
|
@@ -110,11 +117,27 @@ $_default: (
|
|
|
110
117
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
111
118
|
);
|
|
112
119
|
|
|
113
|
-
@function values(
|
|
120
|
+
@function values(
|
|
121
|
+
$deps: $_default,
|
|
122
|
+
$exclude-hardcoded-values: false,
|
|
123
|
+
$exclude-custom-properties: true
|
|
124
|
+
) {
|
|
114
125
|
$tokens: validate.values(
|
|
115
126
|
md-comp-outlined-text-field.values($deps, $exclude-hardcoded-values),
|
|
116
127
|
$supported-tokens: $supported-tokens,
|
|
117
|
-
$unsupported-tokens: $unsupported-tokens
|
|
128
|
+
$unsupported-tokens: $unsupported-tokens,
|
|
129
|
+
$new-tokens: (
|
|
130
|
+
'leading-space': if($exclude-hardcoded-values, null, 16px),
|
|
131
|
+
'trailing-space': if($exclude-hardcoded-values, null, 16px),
|
|
132
|
+
'top-space': if($exclude-hardcoded-values, null, 16px),
|
|
133
|
+
'bottom-space': if($exclude-hardcoded-values, null, 16px),
|
|
134
|
+
'input-text-prefix-trailing-space':
|
|
135
|
+
if($exclude-hardcoded-values, null, 2px),
|
|
136
|
+
'input-text-suffix-leading-space':
|
|
137
|
+
if($exclude-hardcoded-values, null, 2px),
|
|
138
|
+
// TODO(b/270705687): remove when focus-caret-color token added
|
|
139
|
+
'focus-caret-color': map.get($deps, 'md-sys-color', 'primary'),
|
|
140
|
+
)
|
|
118
141
|
);
|
|
119
142
|
|
|
120
143
|
$tokens: map.merge(
|
|
@@ -125,5 +148,17 @@ $_default: (
|
|
|
125
148
|
)
|
|
126
149
|
);
|
|
127
150
|
|
|
151
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
152
|
+
// See b/321816473.
|
|
153
|
+
@if not $exclude-custom-properties {
|
|
154
|
+
@each $token, $value in $tokens {
|
|
155
|
+
$tokens: map.set(
|
|
156
|
+
$tokens,
|
|
157
|
+
$token,
|
|
158
|
+
var(--md-outlined-text-field-#{$token}, #{$value})
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
128
163
|
@return $tokens;
|
|
129
164
|
}
|
|
@@ -77,13 +77,17 @@ $_default: (
|
|
|
77
77
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
78
78
|
);
|
|
79
79
|
|
|
80
|
-
@function values(
|
|
80
|
+
@function values(
|
|
81
|
+
$deps: $_default,
|
|
82
|
+
$exclude-hardcoded-values: false,
|
|
83
|
+
$exclude-custom-properties: true
|
|
84
|
+
) {
|
|
81
85
|
$tokens: md-comp-primary-navigation-tab.values(
|
|
82
86
|
$deps,
|
|
83
87
|
$exclude-hardcoded-values: $exclude-hardcoded-values
|
|
84
88
|
);
|
|
85
89
|
|
|
86
|
-
|
|
90
|
+
$tokens: validate.values(
|
|
87
91
|
$tokens,
|
|
88
92
|
$supported-tokens: $supported-tokens,
|
|
89
93
|
$unsupported-tokens: $unsupported-tokens,
|
|
@@ -128,4 +132,18 @@ $_default: (
|
|
|
128
132
|
'with-label-text-label-text-type': 'label-text-type'
|
|
129
133
|
)
|
|
130
134
|
);
|
|
135
|
+
|
|
136
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
137
|
+
// See b/321816473.
|
|
138
|
+
@if not $exclude-custom-properties {
|
|
139
|
+
@each $token, $value in $tokens {
|
|
140
|
+
$tokens: map.set(
|
|
141
|
+
$tokens,
|
|
142
|
+
$token,
|
|
143
|
+
var(--md-primary-tab-#{$token}, #{$value})
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
@return $tokens;
|
|
131
149
|
}
|
|
@@ -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';
|
|
@@ -51,7 +54,11 @@ $_default: (
|
|
|
51
54
|
'md-sys-state': md-sys-state.values(),
|
|
52
55
|
);
|
|
53
56
|
|
|
54
|
-
@function values(
|
|
57
|
+
@function values(
|
|
58
|
+
$deps: $_default,
|
|
59
|
+
$exclude-hardcoded-values: false,
|
|
60
|
+
$exclude-custom-properties: true
|
|
61
|
+
) {
|
|
55
62
|
$tokens: validate.values(
|
|
56
63
|
md-comp-radio-button.values($deps, $exclude-hardcoded-values),
|
|
57
64
|
$supported-tokens: $supported-tokens,
|
|
@@ -69,5 +76,13 @@ $_default: (
|
|
|
69
76
|
)
|
|
70
77
|
);
|
|
71
78
|
|
|
79
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
80
|
+
// See b/321816473.
|
|
81
|
+
@if not $exclude-custom-properties {
|
|
82
|
+
@each $token, $value in $tokens {
|
|
83
|
+
$tokens: map.set($tokens, $token, var(--md-radio-#{$token}, #{$value}));
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
72
87
|
@return $tokens;
|
|
73
88
|
}
|
|
@@ -27,7 +27,7 @@ $_default: (
|
|
|
27
27
|
'md-sys-state': md-sys-state.values(),
|
|
28
28
|
);
|
|
29
29
|
|
|
30
|
-
@function values($deps: $_default) {
|
|
30
|
+
@function values($deps: $_default, $exclude-custom-properties: true) {
|
|
31
31
|
$tokens: (
|
|
32
32
|
'hover-color': map.get($deps, 'md-sys-color', 'on-surface'),
|
|
33
33
|
'hover-opacity': map.get($deps, 'md-sys-state', 'hover-state-layer-opacity'),
|
|
@@ -36,5 +36,15 @@ $_default: (
|
|
|
36
36
|
map.get($deps, 'md-sys-state', 'pressed-state-layer-opacity'),
|
|
37
37
|
);
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
$tokens: validate.values($tokens, $supported-tokens: $supported-tokens);
|
|
40
|
+
|
|
41
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
42
|
+
// See b/321816473.
|
|
43
|
+
@if not $exclude-custom-properties {
|
|
44
|
+
@each $token, $value in $tokens {
|
|
45
|
+
$tokens: map.set($tokens, $token, var(--md-ripple-#{$token}, #{$value}));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@return $tokens;
|
|
40
50
|
}
|
|
@@ -75,7 +75,11 @@ $_default: (
|
|
|
75
75
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
76
76
|
);
|
|
77
77
|
|
|
78
|
-
@function values(
|
|
78
|
+
@function values(
|
|
79
|
+
$deps: $_default,
|
|
80
|
+
$exclude-hardcoded-values: false,
|
|
81
|
+
$exclude-custom-properties: true
|
|
82
|
+
) {
|
|
79
83
|
$tokens: md-comp-secondary-navigation-tab.values(
|
|
80
84
|
$deps,
|
|
81
85
|
$exclude-hardcoded-values: $exclude-hardcoded-values
|
|
@@ -98,6 +102,18 @@ $_default: (
|
|
|
98
102
|
)
|
|
99
103
|
);
|
|
100
104
|
|
|
105
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
106
|
+
// See b/321816473.
|
|
107
|
+
@if not $exclude-custom-properties {
|
|
108
|
+
@each $token, $value in $tokens {
|
|
109
|
+
$tokens: map.set(
|
|
110
|
+
$tokens,
|
|
111
|
+
$token,
|
|
112
|
+
var(--md-secondary-tab-#{$token}, #{$value})
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
101
117
|
@return $tokens;
|
|
102
118
|
}
|
|
103
119
|
|
|
@@ -87,7 +87,11 @@ $_default: (
|
|
|
87
87
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
88
88
|
);
|
|
89
89
|
|
|
90
|
-
@function values(
|
|
90
|
+
@function values(
|
|
91
|
+
$deps: $_default,
|
|
92
|
+
$exclude-hardcoded-values: false,
|
|
93
|
+
$exclude-custom-properties: true
|
|
94
|
+
) {
|
|
91
95
|
$tokens: validate.values(
|
|
92
96
|
md-comp-slider.values($deps, $exclude-hardcoded-values),
|
|
93
97
|
$supported-tokens: $supported-tokens,
|
|
@@ -103,5 +107,13 @@ $_default: (
|
|
|
103
107
|
)
|
|
104
108
|
);
|
|
105
109
|
|
|
110
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
111
|
+
// See b/321816473.
|
|
112
|
+
@if not $exclude-custom-properties {
|
|
113
|
+
@each $token, $value in $tokens {
|
|
114
|
+
$tokens: map.set($tokens, $token, var(--md-slider-#{$token}, #{$value}));
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
106
118
|
@return $tokens;
|
|
107
119
|
}
|
|
@@ -85,7 +85,11 @@ $_default: (
|
|
|
85
85
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
86
86
|
);
|
|
87
87
|
|
|
88
|
-
@function values(
|
|
88
|
+
@function values(
|
|
89
|
+
$deps: $_default,
|
|
90
|
+
$exclude-hardcoded-values: false,
|
|
91
|
+
$exclude-custom-properties: true
|
|
92
|
+
) {
|
|
89
93
|
$tokens: validate.values(
|
|
90
94
|
md-comp-suggestion-chip.values($deps, $exclude-hardcoded-values),
|
|
91
95
|
$supported-tokens: $supported-tokens,
|
|
@@ -122,5 +126,17 @@ $_default: (
|
|
|
122
126
|
)
|
|
123
127
|
);
|
|
124
128
|
|
|
129
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
130
|
+
// See b/321816473.
|
|
131
|
+
@if not $exclude-custom-properties {
|
|
132
|
+
@each $token, $value in $tokens {
|
|
133
|
+
$tokens: map.set(
|
|
134
|
+
$tokens,
|
|
135
|
+
$token,
|
|
136
|
+
var(--md-suggestion-chip-#{$token}, #{$value})
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
125
141
|
@return $tokens;
|
|
126
142
|
}
|
|
@@ -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';
|
|
@@ -96,7 +99,11 @@ $_default: (
|
|
|
96
99
|
'md-sys-state': md-sys-state.values(),
|
|
97
100
|
);
|
|
98
101
|
|
|
99
|
-
@function values(
|
|
102
|
+
@function values(
|
|
103
|
+
$deps: $_default,
|
|
104
|
+
$exclude-hardcoded-values: false,
|
|
105
|
+
$exclude-custom-properties: true
|
|
106
|
+
) {
|
|
100
107
|
$tokens: validate.values(
|
|
101
108
|
md-comp-switch.values($deps, $exclude-hardcoded-values),
|
|
102
109
|
$supported-tokens: $supported-tokens,
|
|
@@ -137,5 +144,13 @@ $_default: (
|
|
|
137
144
|
)
|
|
138
145
|
);
|
|
139
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($tokens, $token, var(--md-switch-#{$token}, #{$value}));
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
140
155
|
@return $tokens;
|
|
141
156
|
}
|
|
@@ -65,7 +65,11 @@ $_default: (
|
|
|
65
65
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
66
66
|
);
|
|
67
67
|
|
|
68
|
-
@function values(
|
|
68
|
+
@function values(
|
|
69
|
+
$deps: $_default,
|
|
70
|
+
$exclude-hardcoded-values: false,
|
|
71
|
+
$exclude-custom-properties: true
|
|
72
|
+
) {
|
|
69
73
|
$tokens: validate.values(
|
|
70
74
|
md-comp-text-button.values($deps, $exclude-hardcoded-values),
|
|
71
75
|
$supported-tokens: $supported-tokens,
|
|
@@ -97,5 +101,17 @@ $_default: (
|
|
|
97
101
|
)
|
|
98
102
|
);
|
|
99
103
|
|
|
104
|
+
// Default to `$exclude-custom-properties: false` in the next breaking change.
|
|
105
|
+
// See b/321816473.
|
|
106
|
+
@if not $exclude-custom-properties {
|
|
107
|
+
@each $token, $value in $tokens {
|
|
108
|
+
$tokens: map.set(
|
|
109
|
+
$tokens,
|
|
110
|
+
$token,
|
|
111
|
+
var(--md-text-button-#{$token}, #{$value})
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
100
116
|
@return $tokens;
|
|
101
117
|
}
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
|
|
96
96
|
@each $token in map.keys($values) {
|
|
97
97
|
@if list.index($supported-tokens, $token) == null {
|
|
98
|
-
@error 'validate.values($supported-tokens)
|
|
98
|
+
@error 'validate.values($supported-tokens) is missing the \'#{$token}\' token. Does it need adding to $unsupported-tokens?';
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
|