@material/web 1.0.0-pre.11 → 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/README.md +18 -1
- package/button/lib/_icon.scss +9 -9
- package/button/lib/_outlined-button.scss +4 -0
- package/button/lib/button.d.ts +0 -6
- package/button/lib/button.js +2 -14
- package/button/lib/button.js.map +1 -1
- 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/assist-chip.js +2 -1
- package/chips/assist-chip.js.map +1 -1
- package/chips/filter-chip.js +3 -1
- package/chips/filter-chip.js.map +1 -1
- package/chips/harness.d.ts +2 -5
- package/chips/harness.js +9 -6
- package/chips/harness.js.map +1 -1
- package/chips/input-chip.js +5 -1
- package/chips/input-chip.js.map +1 -1
- package/chips/lib/_elevated.scss +14 -0
- package/chips/lib/_selectable.scss +8 -0
- package/chips/lib/_shared.scss +1 -0
- package/chips/lib/_trailing-icon.scss +1 -1
- package/chips/lib/assist-chip.d.ts +1 -0
- package/chips/lib/assist-chip.js +1 -0
- package/chips/lib/assist-chip.js.map +1 -1
- package/chips/lib/assist-forced-colors-styles.css.d.ts +1 -0
- package/chips/lib/assist-forced-colors-styles.css.js +9 -0
- package/chips/lib/assist-forced-colors-styles.css.js.map +1 -0
- package/chips/lib/assist-forced-colors-styles.scss +27 -0
- package/chips/lib/chip-set.js +4 -4
- package/chips/lib/chip-set.js.map +1 -1
- package/chips/lib/elevated-styles.css.js +1 -1
- package/chips/lib/elevated-styles.css.js.map +1 -1
- package/chips/lib/filter-chip.d.ts +1 -0
- package/chips/lib/filter-chip.js +2 -1
- package/chips/lib/filter-chip.js.map +1 -1
- package/chips/lib/filter-forced-colors-styles.css.d.ts +1 -0
- package/chips/lib/filter-forced-colors-styles.css.js +9 -0
- package/chips/lib/filter-forced-colors-styles.css.js.map +1 -0
- package/chips/lib/filter-forced-colors-styles.scss +34 -0
- package/chips/lib/input-chip.d.ts +2 -0
- package/chips/lib/input-chip.js +4 -2
- package/chips/lib/input-chip.js.map +1 -1
- package/chips/lib/input-forced-colors-styles.css.d.ts +1 -0
- package/chips/lib/input-forced-colors-styles.css.js +9 -0
- package/chips/lib/input-forced-colors-styles.css.js.map +1 -0
- package/chips/lib/input-forced-colors-styles.scss +39 -0
- package/chips/lib/input-styles.css.js +1 -1
- package/chips/lib/input-styles.css.js.map +1 -1
- package/chips/lib/selectable-styles.css.js +1 -1
- package/chips/lib/selectable-styles.css.js.map +1 -1
- package/chips/lib/shared-styles.css.js +1 -1
- package/chips/lib/shared-styles.css.js.map +1 -1
- package/chips/lib/suggestion-forced-colors-styles.css.d.ts +1 -0
- package/chips/lib/suggestion-forced-colors-styles.css.js +9 -0
- package/chips/lib/suggestion-forced-colors-styles.css.js.map +1 -0
- package/chips/lib/suggestion-forced-colors-styles.scss +27 -0
- package/chips/lib/trailing-icon-styles.css.js +1 -1
- package/chips/lib/trailing-icon-styles.css.js.map +1 -1
- package/chips/suggestion-chip.js +2 -1
- package/chips/suggestion-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/dialog/lib/dialog.d.ts +9 -3
- package/dialog/lib/dialog.js +24 -16
- package/dialog/lib/dialog.js.map +1 -1
- package/fab/branded-fab.d.ts +1 -0
- package/fab/lib/_fab.scss +12 -0
- package/fab/lib/fab-styles.css.js +1 -1
- package/fab/lib/fab-styles.css.js.map +1 -1
- package/fab/lib/fab.d.ts +1 -0
- package/fab/lib/shared.d.ts +9 -0
- package/fab/lib/shared.js +23 -2
- package/fab/lib/shared.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 +100 -15
- 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/iconbutton/lib/icon-button.js +1 -1
- package/iconbutton/lib/icon-button.js.map +1 -1
- package/labs/navigationbar/lib/navigation-bar.js +2 -2
- package/labs/navigationbar/lib/navigation-bar.js.map +1 -1
- package/labs/navigationtab/lib/navigation-tab.js +3 -3
- package/labs/navigationtab/lib/navigation-tab.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/segmented-button.js +2 -2
- package/labs/segmentedbutton/lib/segmented-button.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/list.d.ts +28 -10
- package/list/lib/list.js +57 -19
- package/list/lib/list.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/listitem/list-item.js +4 -4
- package/list/lib/listitem/list-item.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/menu/lib/menu.d.ts +15 -1
- package/menu/lib/menu.js +29 -6
- package/menu/lib/menu.js.map +1 -1
- package/package.json +5 -4
- package/radio/lib/single-selection-controller.js +2 -3
- package/radio/lib/single-selection-controller.js.map +1 -1
- package/select/harness.js +1 -1
- package/select/harness.js.map +1 -1
- package/select/lib/_shared.scss +2 -1
- package/select/lib/select.d.ts +1 -11
- package/select/lib/select.js +15 -51
- package/select/lib/select.js.map +1 -1
- package/select/lib/shared-styles.css.js +1 -1
- package/select/lib/shared-styles.css.js.map +1 -1
- package/slider/lib/slider.d.ts +3 -3
- package/slider/lib/slider.js +10 -10
- package/slider/lib/slider.js.map +1 -1
- package/switch/lib/switch.js +1 -1
- package/switch/lib/switch.js.map +1 -1
- package/tabs/lib/tab.js +4 -2
- package/tabs/lib/tab.js.map +1 -1
- package/tabs/lib/tabs.js +3 -1
- 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 +44 -98
- 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-input-chip.scss +7 -0
- 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-suggestion-chip.scss +1 -0
- package/tokens/_md-comp-text-button.scss +17 -7
- package/tokens/_values.scss +1 -1
|
@@ -26,29 +26,29 @@ $supported-tokens: (
|
|
|
26
26
|
'disabled-container-color',
|
|
27
27
|
'disabled-container-elevation',
|
|
28
28
|
'disabled-container-opacity',
|
|
29
|
+
'disabled-icon-color',
|
|
30
|
+
'disabled-icon-opacity',
|
|
29
31
|
'disabled-label-text-color',
|
|
30
32
|
'disabled-label-text-opacity',
|
|
31
33
|
'focus-container-elevation',
|
|
34
|
+
'focus-icon-color',
|
|
32
35
|
'focus-label-text-color',
|
|
33
36
|
'hover-container-elevation',
|
|
37
|
+
'hover-icon-color',
|
|
34
38
|
'hover-label-text-color',
|
|
35
39
|
'hover-state-layer-color',
|
|
36
40
|
'hover-state-layer-opacity',
|
|
41
|
+
'icon-color',
|
|
42
|
+
'icon-size',
|
|
37
43
|
'label-text-color',
|
|
38
44
|
'label-text-type',
|
|
39
45
|
'pressed-container-elevation',
|
|
46
|
+
'pressed-icon-color',
|
|
40
47
|
'pressed-label-text-color',
|
|
41
48
|
'pressed-state-layer-color',
|
|
42
49
|
'pressed-state-layer-opacity',
|
|
43
50
|
'spacing-leading',
|
|
44
51
|
'spacing-trailing',
|
|
45
|
-
'with-icon-disabled-icon-color',
|
|
46
|
-
'with-icon-disabled-icon-opacity',
|
|
47
|
-
'with-icon-focus-icon-color',
|
|
48
|
-
'with-icon-hover-icon-color',
|
|
49
|
-
'with-icon-icon-color',
|
|
50
|
-
'with-icon-icon-size',
|
|
51
|
-
'with-icon-pressed-icon-color',
|
|
52
52
|
'with-icon-spacing-leading',
|
|
53
53
|
'with-icon-spacing-trailing',
|
|
54
54
|
'with-trailing-icon-spacing-leading',
|
|
@@ -93,6 +93,16 @@ $_default: (
|
|
|
93
93
|
'with-trailing-icon-spacing-trailing':
|
|
94
94
|
if($exclude-hardcoded-values, null, 16px),
|
|
95
95
|
// go/keep-sorted end
|
|
96
|
+
),
|
|
97
|
+
$renamed-tokens: (
|
|
98
|
+
// Remove "with-*" prefixes (b/273534858)
|
|
99
|
+
'with-icon-disabled-icon-color': 'disabled-icon-color',
|
|
100
|
+
'with-icon-disabled-icon-opacity': 'disabled-icon-opacity',
|
|
101
|
+
'with-icon-focus-icon-color': 'focus-icon-color',
|
|
102
|
+
'with-icon-hover-icon-color': 'hover-icon-color',
|
|
103
|
+
'with-icon-icon-color': 'icon-color',
|
|
104
|
+
'with-icon-icon-size': 'icon-size',
|
|
105
|
+
'with-icon-pressed-icon-color': 'pressed-icon-color'
|
|
96
106
|
)
|
|
97
107
|
);
|
|
98
108
|
|
|
@@ -199,5 +199,12 @@ $_default: (
|
|
|
199
199
|
)
|
|
200
200
|
);
|
|
201
201
|
|
|
202
|
+
// TODO(b/288199264): remove once input chip leading icon color is fixed
|
|
203
|
+
$tokens: map.set(
|
|
204
|
+
$tokens,
|
|
205
|
+
'leading-icon-color',
|
|
206
|
+
map.get($deps, 'md-sys-color', 'primary')
|
|
207
|
+
);
|
|
208
|
+
|
|
202
209
|
@return $tokens;
|
|
203
210
|
}
|
|
@@ -43,11 +43,14 @@ $supported-tokens: (
|
|
|
43
43
|
'list-item-leading-avatar-label-type',
|
|
44
44
|
'list-item-leading-avatar-shape',
|
|
45
45
|
'list-item-leading-avatar-size',
|
|
46
|
+
'list-item-leading-element-leading-space',
|
|
46
47
|
'list-item-leading-icon-color',
|
|
47
48
|
'list-item-leading-icon-size',
|
|
48
49
|
'list-item-leading-image-height',
|
|
49
50
|
'list-item-leading-image-shape',
|
|
50
51
|
'list-item-leading-image-width',
|
|
52
|
+
'list-item-leading-space',
|
|
53
|
+
'list-item-leading-video-leading-space',
|
|
51
54
|
'list-item-leading-video-shape',
|
|
52
55
|
'list-item-leading-video-width',
|
|
53
56
|
'list-item-one-line-container-height',
|
|
@@ -60,8 +63,10 @@ $supported-tokens: (
|
|
|
60
63
|
'list-item-supporting-text-color',
|
|
61
64
|
'list-item-supporting-text-type',
|
|
62
65
|
'list-item-three-line-container-height',
|
|
66
|
+
'list-item-trailing-element-headline-trailing-element-space',
|
|
63
67
|
'list-item-trailing-icon-color',
|
|
64
68
|
'list-item-trailing-icon-size',
|
|
69
|
+
'list-item-trailing-space',
|
|
65
70
|
'list-item-trailing-supporting-text-color',
|
|
66
71
|
'list-item-trailing-supporting-text-line-height',
|
|
67
72
|
'list-item-trailing-supporting-text-type',
|
|
@@ -19,33 +19,31 @@ $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',
|
|
24
26
|
'disabled-outline-color',
|
|
25
27
|
'disabled-outline-opacity',
|
|
28
|
+
'focus-icon-color',
|
|
26
29
|
'focus-label-text-color',
|
|
27
|
-
'
|
|
30
|
+
'hover-icon-color',
|
|
28
31
|
'hover-label-text-color',
|
|
29
|
-
'hover-outline-color',
|
|
30
32
|
'hover-state-layer-color',
|
|
31
33
|
'hover-state-layer-opacity',
|
|
34
|
+
'icon-color',
|
|
35
|
+
'icon-size',
|
|
32
36
|
'label-text-color',
|
|
33
37
|
'label-text-type',
|
|
34
38
|
'outline-color',
|
|
35
39
|
'outline-width',
|
|
40
|
+
'pressed-icon-color',
|
|
36
41
|
'pressed-label-text-color',
|
|
37
42
|
'pressed-outline-color',
|
|
38
43
|
'pressed-state-layer-color',
|
|
39
44
|
'pressed-state-layer-opacity',
|
|
40
45
|
'spacing-leading',
|
|
41
46
|
'spacing-trailing',
|
|
42
|
-
'with-icon-disabled-icon-color',
|
|
43
|
-
'with-icon-disabled-icon-opacity',
|
|
44
|
-
'with-icon-focus-icon-color',
|
|
45
|
-
'with-icon-hover-icon-color',
|
|
46
|
-
'with-icon-icon-color',
|
|
47
|
-
'with-icon-icon-size',
|
|
48
|
-
'with-icon-pressed-icon-color',
|
|
49
47
|
'with-icon-spacing-leading',
|
|
50
48
|
'with-icon-spacing-trailing',
|
|
51
49
|
'with-trailing-icon-spacing-leading',
|
|
@@ -55,8 +53,10 @@ $supported-tokens: (
|
|
|
55
53
|
|
|
56
54
|
$unsupported-tokens: (
|
|
57
55
|
// go/keep-sorted start
|
|
56
|
+
'focus-outline-color',
|
|
58
57
|
'focus-state-layer-color',
|
|
59
58
|
'focus-state-layer-opacity',
|
|
59
|
+
'hover-outline-color',
|
|
60
60
|
'label-text-font',
|
|
61
61
|
'label-text-line-height',
|
|
62
62
|
'label-text-size',
|
|
@@ -89,6 +89,16 @@ $_default: (
|
|
|
89
89
|
'with-trailing-icon-spacing-trailing':
|
|
90
90
|
if($exclude-hardcoded-values, null, 16px),
|
|
91
91
|
// go/keep-sorted end
|
|
92
|
+
),
|
|
93
|
+
$renamed-tokens: (
|
|
94
|
+
// Remove "with-*" prefixes (b/273534858)
|
|
95
|
+
'with-icon-disabled-icon-color': 'disabled-icon-color',
|
|
96
|
+
'with-icon-disabled-icon-opacity': 'disabled-icon-opacity',
|
|
97
|
+
'with-icon-focus-icon-color': 'focus-icon-color',
|
|
98
|
+
'with-icon-hover-icon-color': 'hover-icon-color',
|
|
99
|
+
'with-icon-icon-color': 'icon-color',
|
|
100
|
+
'with-icon-icon-size': 'icon-size',
|
|
101
|
+
'with-icon-pressed-icon-color': 'pressed-icon-color'
|
|
92
102
|
)
|
|
93
103
|
);
|
|
94
104
|
|
|
@@ -16,54 +16,54 @@
|
|
|
16
16
|
|
|
17
17
|
$supported-tokens: (
|
|
18
18
|
// go/keep-sorted start
|
|
19
|
-
'container-height',
|
|
20
19
|
'disabled-icon-color',
|
|
21
|
-
'disabled-icon-opacity',
|
|
22
20
|
'disabled-label-text-color',
|
|
23
|
-
'disabled-label-text-opacity',
|
|
24
21
|
'disabled-outline-color',
|
|
25
|
-
'disabled-outline-opacity',
|
|
26
|
-
'focus-state-layer-opacity',
|
|
27
22
|
'hover-state-layer-opacity',
|
|
23
|
+
'icon-size',
|
|
28
24
|
'label-text-type',
|
|
29
25
|
'outline-color',
|
|
30
|
-
'outline-width',
|
|
31
26
|
'pressed-state-layer-opacity',
|
|
32
27
|
'selected-container-color',
|
|
33
28
|
'selected-focus-icon-color',
|
|
34
29
|
'selected-focus-label-text-color',
|
|
35
|
-
'selected-focus-state-layer-color',
|
|
36
30
|
'selected-hover-icon-color',
|
|
37
31
|
'selected-hover-label-text-color',
|
|
38
32
|
'selected-hover-state-layer-color',
|
|
33
|
+
'selected-icon-color',
|
|
39
34
|
'selected-label-text-color',
|
|
40
35
|
'selected-pressed-icon-color',
|
|
41
36
|
'selected-pressed-label-text-color',
|
|
42
37
|
'selected-pressed-state-layer-color',
|
|
43
|
-
'selected-with-icon-icon-color',
|
|
44
|
-
'shape',
|
|
45
38
|
'unselected-focus-icon-color',
|
|
46
39
|
'unselected-focus-label-text-color',
|
|
47
|
-
'unselected-focus-state-layer-color',
|
|
48
40
|
'unselected-hover-icon-color',
|
|
49
41
|
'unselected-hover-label-text-color',
|
|
50
42
|
'unselected-hover-state-layer-color',
|
|
43
|
+
'unselected-icon-color',
|
|
51
44
|
'unselected-label-text-color',
|
|
52
45
|
'unselected-pressed-icon-color',
|
|
53
46
|
'unselected-pressed-label-text-color',
|
|
54
47
|
'unselected-pressed-state-layer-color',
|
|
55
|
-
'unselected-with-icon-icon-color',
|
|
56
|
-
'with-icon-icon-size',
|
|
57
48
|
// go/keep-sorted end
|
|
58
49
|
);
|
|
59
50
|
|
|
60
51
|
$unsupported-tokens: (
|
|
61
52
|
// go/keep-sorted start
|
|
53
|
+
'container-height',
|
|
54
|
+
'disabled-icon-opacity',
|
|
55
|
+
'disabled-label-text-opacity',
|
|
56
|
+
'disabled-outline-opacity',
|
|
57
|
+
'focus-state-layer-opacity',
|
|
62
58
|
'label-text-font',
|
|
63
59
|
'label-text-line-height',
|
|
64
60
|
'label-text-size',
|
|
65
61
|
'label-text-tracking',
|
|
66
62
|
'label-text-weight',
|
|
63
|
+
'outline-width',
|
|
64
|
+
'selected-focus-state-layer-color',
|
|
65
|
+
'shape',
|
|
66
|
+
'unselected-focus-state-layer-color',
|
|
67
67
|
// go/keep-sorted end
|
|
68
68
|
);
|
|
69
69
|
|
|
@@ -78,7 +78,13 @@ $_default: (
|
|
|
78
78
|
$tokens: values.validate(
|
|
79
79
|
md-comp-outlined-segmented-button.values($deps, $exclude-hardcoded-values),
|
|
80
80
|
$supported-tokens: $supported-tokens,
|
|
81
|
-
$unsupported-tokens: $unsupported-tokens
|
|
81
|
+
$unsupported-tokens: $unsupported-tokens,
|
|
82
|
+
$renamed-tokens: (
|
|
83
|
+
// Remove "with-*" prefixes (b/273534858)
|
|
84
|
+
'with-icon-icon-size': 'icon-size',
|
|
85
|
+
'selected-with-icon-icon-color': 'selected-icon-color',
|
|
86
|
+
'unselected-with-icon-icon-color': 'unselected-icon-color'
|
|
87
|
+
)
|
|
82
88
|
);
|
|
83
89
|
|
|
84
90
|
// TODO(b/271876162): remove when tokens compiler emits typescale tokens
|
|
@@ -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
|
}
|