@@ -19,6 +19,7 @@ $supported-tokens: (
1919 // go/keep-sorted start
2020 ' active-indicator-color' ,
2121 ' active-indicator-height' ,
22+ ' bottom-space' ,
2223 ' caret-color' ,
2324 ' container-color' ,
2425 ' container-shape' ,
@@ -60,6 +61,7 @@ $supported-tokens: (
6061 ' error-trailing-icon-color' ,
6162 ' focus-active-indicator-color' ,
6263 ' focus-active-indicator-height' ,
64+ ' focus-caret-color' ,
6365 ' focus-input-text-color' ,
6466 ' focus-label-text-color' ,
6567 ' focus-leading-icon-color' ,
@@ -79,8 +81,10 @@ $supported-tokens: (
7981 ' input-text-line-height' ,
8082 ' input-text-placeholder-color' ,
8183 ' input-text-prefix-color' ,
84+ ' input-text-prefix-trailing-space' ,
8285 ' input-text-size' ,
8386 ' input-text-suffix-color' ,
87+ ' input-text-suffix-leading-space' ,
8488 ' input-text-weight' ,
8589 ' label-text-color' ,
8690 ' label-text-font' ,
@@ -91,13 +95,18 @@ $supported-tokens: (
9195 ' label-text-weight' ,
9296 ' leading-icon-color' ,
9397 ' leading-icon-size' ,
98+ ' leading-space' ,
9499 ' supporting-text-color' ,
95100 ' supporting-text-font' ,
96101 ' supporting-text-line-height' ,
97102 ' supporting-text-size' ,
98103 ' supporting-text-weight' ,
104+ ' top-space' ,
99105 ' trailing-icon-color' ,
100106 ' trailing-icon-size' ,
107+ ' trailing-space' ,
108+ ' with-label-bottom-space' ,
109+ ' with-label-top-space' ,
101110 // go/keep-sorted end
102111);
103112
@@ -123,7 +132,21 @@ $_default: (
123132 $tokens : validate .values (
124133 md-comp-filled-text-field .values ($deps , $exclude-hardcoded-values ),
125134 $supported-tokens : $supported-tokens ,
126- $unsupported-tokens : $unsupported-tokens
135+ $unsupported-tokens : $unsupported-tokens ,
136+ $new-tokens : (
137+ ' leading-space' : if ($exclude-hardcoded-values , null , 16px ),
138+ ' trailing-space' : if ($exclude-hardcoded-values , null , 16px ),
139+ ' top-space' : if ($exclude-hardcoded-values , null , 16px ),
140+ ' bottom-space' : if ($exclude-hardcoded-values , null , 16px ),
141+ ' input-text-prefix-trailing-space' :
142+ if ($exclude-hardcoded-values , null , 2px ),
143+ ' input-text-suffix-leading-space' :
144+ if ($exclude-hardcoded-values , null , 2px ),
145+ ' with-label-top-space' : if ($exclude-hardcoded-values , null , 8px ),
146+ ' with-label-bottom-space' : if ($exclude-hardcoded-values , null , 8px ),
147+ // TODO(b/270705687): remove when focus-caret-color token added
148+ ' focus-caret-color' : map .get ($deps , ' md-sys-color' , ' primary' ),
149+ )
127150 );
128151
129152 $tokens : map .merge (
0 commit comments