@material/web 1.0.0-pre.12 → 1.0.0-pre.13
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/lib/_icon.scss +9 -9
- package/button/lib/_outlined-button.scss +4 -0
- package/button/lib/elevated-styles.css.js +1 -1
- package/button/lib/elevated-styles.css.js.map +1 -1
- package/button/lib/filled-styles.css.js +1 -1
- package/button/lib/filled-styles.css.js.map +1 -1
- package/button/lib/outlined-styles.css.js +1 -1
- package/button/lib/outlined-styles.css.js.map +1 -1
- package/button/lib/shared-styles.css.js +1 -1
- package/button/lib/shared-styles.css.js.map +1 -1
- package/button/lib/text-styles.css.js +1 -1
- package/button/lib/text-styles.css.js.map +1 -1
- package/button/lib/tonal-styles.css.js +1 -1
- package/button/lib/tonal-styles.css.js.map +1 -1
- package/chips/lib/filter-chip.js +1 -1
- package/chips/lib/filter-chip.js.map +1 -1
- package/chips/lib/input-chip.js +1 -1
- package/chips/lib/input-chip.js.map +1 -1
- package/dialog/lib/_dialog.scss +2 -2
- package/dialog/lib/_tokens.scss +5 -22
- package/dialog/lib/dialog-styles.css.js +1 -1
- package/dialog/lib/dialog-styles.css.js.map +1 -1
- package/field/lib/_supporting-text.scss +6 -16
- package/field/lib/field.d.ts +26 -2
- package/field/lib/field.js +98 -13
- package/field/lib/field.js.map +1 -1
- package/field/lib/outlined-field.d.ts +1 -2
- package/field/lib/outlined-field.js.map +1 -1
- package/field/lib/shared-styles.css.js +1 -1
- package/field/lib/shared-styles.css.js.map +1 -1
- package/labs/segmentedbutton/lib/_shared.scss +7 -7
- package/labs/segmentedbutton/lib/outlined-styles.css.js +1 -1
- package/labs/segmentedbutton/lib/outlined-styles.css.js.map +1 -1
- package/labs/segmentedbutton/lib/shared-styles.css.js +1 -1
- package/labs/segmentedbutton/lib/shared-styles.css.js.map +1 -1
- package/labs/segmentedbuttonset/lib/outlined-styles.css.js +1 -1
- package/labs/segmentedbuttonset/lib/outlined-styles.css.js.map +1 -1
- package/list/harness.d.ts +24 -0
- package/list/harness.js +25 -0
- package/list/harness.js.map +1 -1
- package/list/lib/listitem/harness.d.ts +21 -1
- package/list/lib/listitem/harness.js +16 -2
- package/list/lib/listitem/harness.js.map +1 -1
- package/list/lib/listitemlink/list-item-link-only.d.ts +1 -0
- package/list/lib/listitemlink/list-item-link-only.js +4 -1
- package/list/lib/listitemlink/list-item-link-only.js.map +1 -1
- package/menu/harness.js.map +1 -1
- package/package.json +2 -1
- package/radio/lib/single-selection-controller.js +2 -3
- package/radio/lib/single-selection-controller.js.map +1 -1
- package/select/harness.js.map +1 -1
- package/select/lib/select.d.ts +0 -10
- package/select/lib/select.js +4 -40
- package/select/lib/select.js.map +1 -1
- package/tabs/lib/tab.js +3 -1
- package/tabs/lib/tab.js.map +1 -1
- package/tabs/lib/tabs.js +2 -0
- package/tabs/lib/tabs.js.map +1 -1
- package/textfield/lib/_shared.scss +0 -4
- package/textfield/lib/shared-styles.css.js +1 -1
- package/textfield/lib/shared-styles.css.js.map +1 -1
- package/textfield/lib/text-field.d.ts +2 -13
- package/textfield/lib/text-field.js +35 -89
- package/textfield/lib/text-field.js.map +1 -1
- package/tokens/_md-comp-dialog.scss +48 -6
- package/tokens/_md-comp-elevated-button.scss +17 -7
- package/tokens/_md-comp-elevation.scss +11 -2
- package/tokens/_md-comp-filled-button.scss +17 -7
- package/tokens/_md-comp-filled-tonal-button.scss +17 -7
- package/tokens/_md-comp-list-item.scss +5 -0
- package/tokens/_md-comp-menu-item.scss +1 -0
- package/tokens/_md-comp-outlined-button.scss +19 -9
- package/tokens/_md-comp-outlined-segmented-button.scss +19 -13
- package/tokens/_md-comp-slider.scss +48 -2
- package/tokens/_md-comp-text-button.scss +17 -7
- package/tokens/_values.scss +1 -1
|
@@ -13,8 +13,50 @@
|
|
|
13
13
|
@use './md-sys-state';
|
|
14
14
|
@use './md-sys-typescale';
|
|
15
15
|
@use './v0_172/md-comp-slider';
|
|
16
|
+
@use './values';
|
|
16
17
|
// go/keep-sorted end
|
|
17
18
|
|
|
19
|
+
$supported-tokens: (
|
|
20
|
+
// go/keep-sorted start
|
|
21
|
+
'active-track-color',
|
|
22
|
+
'active-track-height',
|
|
23
|
+
'active-track-shape',
|
|
24
|
+
'disabled-active-track-color',
|
|
25
|
+
'disabled-active-track-opacity',
|
|
26
|
+
'disabled-handle-color',
|
|
27
|
+
'disabled-handle-elevation',
|
|
28
|
+
'disabled-inactive-track-color',
|
|
29
|
+
'disabled-inactive-track-opacity',
|
|
30
|
+
'focus-handle-color',
|
|
31
|
+
'handle-color',
|
|
32
|
+
'handle-elevation',
|
|
33
|
+
'handle-height',
|
|
34
|
+
'handle-shadow-color',
|
|
35
|
+
'handle-shape',
|
|
36
|
+
'handle-width',
|
|
37
|
+
'hover-handle-color',
|
|
38
|
+
'hover-state-layer-color',
|
|
39
|
+
'hover-state-layer-opacity',
|
|
40
|
+
'inactive-track-color',
|
|
41
|
+
'inactive-track-height',
|
|
42
|
+
'inactive-track-shape',
|
|
43
|
+
'label-container-color',
|
|
44
|
+
'label-container-height',
|
|
45
|
+
'label-label-text-color',
|
|
46
|
+
'label-label-text-type',
|
|
47
|
+
'pressed-handle-color',
|
|
48
|
+
'pressed-state-layer-color',
|
|
49
|
+
'pressed-state-layer-opacity',
|
|
50
|
+
'state-layer-size',
|
|
51
|
+
'with-overlap-handle-outline-color',
|
|
52
|
+
'with-overlap-handle-outline-width',
|
|
53
|
+
'with-tick-marks-active-container-color',
|
|
54
|
+
'with-tick-marks-container-size',
|
|
55
|
+
'with-tick-marks-disabled-container-color',
|
|
56
|
+
'with-tick-marks-inactive-container-color',
|
|
57
|
+
// go/keep-sorted end
|
|
58
|
+
);
|
|
59
|
+
|
|
18
60
|
$_default: (
|
|
19
61
|
'md-sys-color': md-sys-color.values-light(),
|
|
20
62
|
'md-sys-elevation': md-sys-elevation.values(),
|
|
@@ -44,8 +86,11 @@ $_unsupported-tokens: (
|
|
|
44
86
|
);
|
|
45
87
|
|
|
46
88
|
@function values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
47
|
-
$tokens:
|
|
48
|
-
|
|
89
|
+
$tokens: values.validate(
|
|
90
|
+
md-comp-slider.values($deps, $exclude-hardcoded-values),
|
|
91
|
+
$supported-tokens: $supported-tokens,
|
|
92
|
+
$unsupported-tokens: $_unsupported-tokens
|
|
93
|
+
);
|
|
49
94
|
|
|
50
95
|
// TODO(b/271876162): remove when tokens compiler emits typescale tokens
|
|
51
96
|
$tokens: map.merge(
|
|
@@ -55,5 +100,6 @@ $_unsupported-tokens: (
|
|
|
55
100
|
map.get($deps, 'md-sys-typescale', 'label-medium'),
|
|
56
101
|
)
|
|
57
102
|
);
|
|
103
|
+
|
|
58
104
|
@return $tokens;
|
|
59
105
|
}
|
|
@@ -19,26 +19,26 @@ $supported-tokens: (
|
|
|
19
19
|
// go/keep-sorted start
|
|
20
20
|
'container-height',
|
|
21
21
|
'container-shape',
|
|
22
|
+
'disabled-icon-color',
|
|
23
|
+
'disabled-icon-opacity',
|
|
22
24
|
'disabled-label-text-color',
|
|
23
25
|
'disabled-label-text-opacity',
|
|
26
|
+
'focus-icon-color',
|
|
24
27
|
'focus-label-text-color',
|
|
28
|
+
'hover-icon-color',
|
|
25
29
|
'hover-label-text-color',
|
|
26
30
|
'hover-state-layer-color',
|
|
27
31
|
'hover-state-layer-opacity',
|
|
32
|
+
'icon-color',
|
|
33
|
+
'icon-size',
|
|
28
34
|
'label-text-color',
|
|
29
35
|
'label-text-type',
|
|
36
|
+
'pressed-icon-color',
|
|
30
37
|
'pressed-label-text-color',
|
|
31
38
|
'pressed-state-layer-color',
|
|
32
39
|
'pressed-state-layer-opacity',
|
|
33
40
|
'spacing-leading',
|
|
34
41
|
'spacing-trailing',
|
|
35
|
-
'with-icon-disabled-icon-color',
|
|
36
|
-
'with-icon-disabled-icon-opacity',
|
|
37
|
-
'with-icon-focus-icon-color',
|
|
38
|
-
'with-icon-hover-icon-color',
|
|
39
|
-
'with-icon-icon-color',
|
|
40
|
-
'with-icon-icon-size',
|
|
41
|
-
'with-icon-pressed-icon-color',
|
|
42
42
|
'with-icon-spacing-leading',
|
|
43
43
|
'with-icon-spacing-trailing',
|
|
44
44
|
'with-trailing-icon-spacing-leading',
|
|
@@ -82,6 +82,16 @@ $_default: (
|
|
|
82
82
|
'with-trailing-icon-spacing-trailing':
|
|
83
83
|
if($exclude-hardcoded-values, null, 12px),
|
|
84
84
|
// go/keep-sorted end
|
|
85
|
+
),
|
|
86
|
+
$renamed-tokens: (
|
|
87
|
+
// Remove "with-*" prefixes (b/273534858)
|
|
88
|
+
'with-icon-disabled-icon-color': 'disabled-icon-color',
|
|
89
|
+
'with-icon-disabled-icon-opacity': 'disabled-icon-opacity',
|
|
90
|
+
'with-icon-focus-icon-color': 'focus-icon-color',
|
|
91
|
+
'with-icon-hover-icon-color': 'hover-icon-color',
|
|
92
|
+
'with-icon-icon-color': 'icon-color',
|
|
93
|
+
'with-icon-icon-size': 'icon-size',
|
|
94
|
+
'with-icon-pressed-icon-color': 'pressed-icon-color'
|
|
85
95
|
)
|
|
86
96
|
);
|
|
87
97
|
|
package/tokens/_values.scss
CHANGED
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
@each $token in map.keys($values) {
|
|
97
|
-
@if list.index($supported-tokens, $token) ==
|
|
97
|
+
@if list.index($supported-tokens, $token) == null {
|
|
98
98
|
@error 'values.validate($supported-tokens)) is missing the \'#{$token}\' token. Does it need adding to $unsupported-tokens?';
|
|
99
99
|
}
|
|
100
100
|
}
|