@salutejs/sdds-dfa 0.370.0-dev.0 → 0.371.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.
Files changed (42) hide show
  1. package/README.md +5 -5
  2. package/dist/styled-components/cjs/components/Autocomplete/Autocomplete.clear.config.js +706 -0
  3. package/dist/styled-components/cjs/components/Autocomplete/Autocomplete.config.js +40 -0
  4. package/dist/styled-components/cjs/components/Autocomplete/Autocomplete.js +14 -1
  5. package/dist/styled-components/cjs/components/DatePicker/DatePicker.clear.config.js +5 -0
  6. package/dist/styled-components/cjs/components/DatePicker/DatePicker.config.js +5 -0
  7. package/dist/styled-components/cjs/components/DateTimePicker/DateTimePicker.config.js +5 -0
  8. package/dist/styled-components/cjs/components/Range/Range.clear.config.js +5 -0
  9. package/dist/styled-components/cjs/components/Range/Range.config.js +5 -0
  10. package/dist/styled-components/cjs/components/Select/Select.clear.config.js +1258 -0
  11. package/dist/styled-components/cjs/components/Select/Select.config.js +39 -0
  12. package/dist/styled-components/cjs/components/Select/Select.js +8 -1
  13. package/dist/styled-components/cjs/components/TextArea/TextArea.clear.config.js +5 -0
  14. package/dist/styled-components/cjs/components/TextArea/TextArea.config.js +5 -0
  15. package/dist/styled-components/cjs/components/TextField/TextField.clear.config.js +23 -3
  16. package/dist/styled-components/cjs/components/TextField/TextField.config.js +5 -0
  17. package/dist/styled-components/cjs/components/TimePicker/TimePicker.config.js +37 -0
  18. package/dist/styled-components/es/components/Autocomplete/Autocomplete.clear.config.js +696 -0
  19. package/dist/styled-components/es/components/Autocomplete/Autocomplete.config.js +40 -0
  20. package/dist/styled-components/es/components/Autocomplete/Autocomplete.js +9 -2
  21. package/dist/styled-components/es/components/DatePicker/DatePicker.clear.config.js +5 -0
  22. package/dist/styled-components/es/components/DatePicker/DatePicker.config.js +5 -0
  23. package/dist/styled-components/es/components/DateTimePicker/DateTimePicker.config.js +5 -0
  24. package/dist/styled-components/es/components/Range/Range.clear.config.js +5 -0
  25. package/dist/styled-components/es/components/Range/Range.config.js +5 -0
  26. package/dist/styled-components/es/components/Select/Select.clear.config.js +1248 -0
  27. package/dist/styled-components/es/components/Select/Select.config.js +39 -0
  28. package/dist/styled-components/es/components/Select/Select.js +9 -2
  29. package/dist/styled-components/es/components/TextArea/TextArea.clear.config.js +5 -0
  30. package/dist/styled-components/es/components/TextArea/TextArea.config.js +5 -0
  31. package/dist/styled-components/es/components/TextField/TextField.clear.config.js +23 -3
  32. package/dist/styled-components/es/components/TextField/TextField.config.js +5 -0
  33. package/dist/styled-components/es/components/TimePicker/TimePicker.config.js +37 -0
  34. package/package.json +11 -11
  35. package/types/components/Autocomplete/Autocomplete.clear.config.d.ts +39 -0
  36. package/types/components/Autocomplete/Autocomplete.d.ts +2017 -10
  37. package/types/components/Calendar/Calendar.d.ts +3 -1
  38. package/types/components/DatePicker/DatePicker.d.ts +36 -36
  39. package/types/components/DateTimePicker/DateTimePicker.d.ts +2 -2
  40. package/types/components/Select/Select.clear.config.d.ts +53 -0
  41. package/types/components/Select/Select.d.ts +36 -10
  42. package/types/components/TimePicker/TimePicker.d.ts +2 -0
@@ -0,0 +1,1248 @@
1
+ import { css, selectTokens as tokens } from '@salutejs/plasma-new-hope/styled-components';
2
+ import { bodyL, bodyM, bodyS, bodyXS, inverseTextPrimary, inverseTextPrimaryActive, inverseTextPrimaryHover, inverseTextSecondary, inverseTextSecondaryHover, onDarkSurfaceSolidDefault, onDarkSurfaceSolidDefaultActive, onDarkSurfaceSolidDefaultHover, onDarkTextPrimary, onDarkTextPrimaryActive, onDarkTextPrimaryHover, onDarkTextSecondary, onDarkTextSecondaryActive, onDarkTextSecondaryHover, onLightSurfaceSolidDefault, onLightSurfaceSolidDefaultActive, onLightSurfaceSolidDefaultHover, onLightSurfaceTransparentDeep, onLightSurfaceTransparentDeepActive, onLightSurfaceTransparentDeepHover, onLightTextPrimary, onLightTextPrimaryActive, onLightTextPrimaryHover, onLightTextSecondary, onLightTextSecondaryActive, onLightTextSecondaryHover, surfaceAccent, surfaceAccentActive, surfaceAccentHover, surfaceClear, surfaceNegative, surfaceNegativeActive, surfaceNegativeHover, surfacePositive, surfacePositiveActive, surfacePositiveHover, surfaceSolidCard, surfaceSolidCardBrightness, surfaceSolidDefault, surfaceSolidDefaultHover, surfaceTransparentPrimary, surfaceTransparentSecondary, surfaceTransparentSecondaryActive, surfaceTransparentSecondaryHover, surfaceTransparentTertiary, surfaceWarning, surfaceWarningActive, surfaceWarningHover, textAccent, textNegative, textPositive, textPrimary, textPrimaryActive, textPrimaryHover, textSecondary, textSecondaryActive, textSecondaryHover, textTertiary, textWarning } from '@salutejs/sdds-themes/tokens/sdds_dfa';
3
+ export const config = {
4
+ defaults: {
5
+ view: 'default',
6
+ size: 'm',
7
+ labelPlacement: 'outer',
8
+ chipView: 'default',
9
+ hintView: 'default',
10
+ hintSize: 'm'
11
+ },
12
+ variations: {
13
+ view: {
14
+ default: css`
15
+ ${tokens.textFieldColor}: ${textPrimary};
16
+
17
+ ${tokens.textFieldPlaceholderColor}: ${textSecondary};
18
+ ${tokens.textFieldPlaceholderColorFocus}: ${textTertiary};
19
+
20
+ ${tokens.textFieldBackgroundColor}: transparent;
21
+ ${tokens.textFieldBackgroundColorFocus}: transparent;
22
+ ${tokens.textFieldBackgroundColorHover}: transparent;
23
+ ${tokens.textFieldDividerColor}: ${surfaceTransparentTertiary};
24
+ ${tokens.textFieldDividerColorHover}: ${textSecondary};
25
+ ${tokens.textFieldDividerColorFocus}: ${surfaceAccent};
26
+ ${tokens.textFieldClearPlaceholderColor}: ${textSecondary};
27
+ ${tokens.textFieldClearPlaceholderColorFocus}: ${textTertiary};
28
+ ${tokens.textFieldTextBeforeColor}: ${textTertiary};
29
+ ${tokens.textFieldTextAfterColor}: ${textTertiary};
30
+ ${tokens.textFieldLabelColor}: ${textPrimary};
31
+ ${tokens.textFieldLeftHelperColor}: ${textSecondary};
32
+ ${tokens.textFieldTitleCaptionColor}: ${textSecondary};
33
+ ${tokens.textFieldFocusColor}: ${textAccent};
34
+
35
+ ${tokens.textFieldContentSlotColor}: ${textSecondary};
36
+ ${tokens.textFieldContentSlotColorHover}: ${textSecondaryHover};
37
+ ${tokens.textFieldContentSlotColorActive}: ${textSecondaryActive};
38
+
39
+ ${tokens.textFieldIndicatorColor}: ${surfaceNegative};
40
+ ${tokens.textFieldOptionalColor}: ${textTertiary};
41
+
42
+ ${tokens.buttonColor}: ${inverseTextPrimary};
43
+ ${tokens.buttonColorHover}: ${inverseTextPrimaryHover};
44
+ ${tokens.buttonColorActive}: ${inverseTextPrimaryActive};
45
+ ${tokens.buttonArrowColor}: ${inverseTextSecondary};
46
+ ${tokens.buttonArrowColorHover}: ${inverseTextSecondaryHover};
47
+ ${tokens.buttonArrowColorActive}: ${inverseTextSecondaryHover};
48
+ ${tokens.buttonBackgroundColor}: ${surfaceSolidDefault};
49
+ ${tokens.buttonBackgroundColorHover}: ${surfaceSolidDefaultHover};
50
+ ${tokens.buttonBackgroundColorActive}: ${surfaceSolidDefaultHover};
51
+
52
+ ${tokens.disclosureIconColor}: ${textSecondary};
53
+ ${tokens.disclosureIconColorHover}: ${textSecondaryHover};
54
+ ${tokens.itemBackgroundHover}: ${surfaceTransparentSecondary};
55
+ ${tokens.itemDisabledOpacity}: 0.4;
56
+ ${tokens.itemDisabledColor}: ${textPrimary};
57
+ ${tokens.textFieldHintIconColor}: ${textSecondary};
58
+
59
+ ${tokens.dividerColor}: ${surfaceTransparentTertiary};
60
+
61
+ ${tokens.itemIconColor}: ${textAccent};
62
+
63
+ ${tokens.checkboxFillColor}: ${surfaceAccent};
64
+ ${tokens.checkboxIconColor}: ${onDarkTextPrimary};
65
+ ${tokens.checkboxTriggerBorderCheckedColor}: transparent;
66
+ ${tokens.checkboxTriggerBorderColor}: ${textSecondary};
67
+ `,
68
+ positive: css`
69
+ ${tokens.textFieldColor}: ${textPositive};
70
+ ${tokens.textFieldColorFocus}: ${textPrimary};
71
+
72
+ ${tokens.textFieldPlaceholderColor}: ${textPositive};
73
+ ${tokens.textFieldPlaceholderColorHover}: ${textSecondary};
74
+ ${tokens.textFieldPlaceholderColorFocus}: ${textTertiary};
75
+
76
+ ${tokens.textFieldBackgroundColor}: transparent;
77
+ ${tokens.textFieldBackgroundColorFocus}: transparent;
78
+ ${tokens.textFieldBackgroundColorHover}: transparent;
79
+ ${tokens.textFieldDividerColor}: ${surfacePositive};
80
+ ${tokens.textFieldDividerColorHover}: ${surfacePositive};
81
+ ${tokens.textFieldDividerColorFocus}: ${surfaceAccent};
82
+ ${tokens.textFieldClearPlaceholderColor}: ${textPositive};
83
+ ${tokens.textFieldClearPlaceholderColorFocus}: ${textTertiary};
84
+ ${tokens.textFieldTextBeforeColor}: ${textTertiary};
85
+ ${tokens.textFieldTextAfterColor}: ${textTertiary};
86
+ ${tokens.textFieldLabelColor}: ${textPrimary};
87
+ ${tokens.textFieldLeftHelperColor}: ${textPositive};
88
+ ${tokens.textFieldTitleCaptionColor}: ${textSecondary};
89
+ ${tokens.textFieldFocusColor}: ${textAccent};
90
+
91
+ ${tokens.textFieldContentSlotColor}: ${textSecondary};
92
+ ${tokens.textFieldContentSlotColorHover}: ${textSecondaryHover};
93
+ ${tokens.textFieldContentSlotColorActive}: ${textSecondaryActive};
94
+
95
+ ${tokens.textFieldIndicatorColor}: ${surfaceNegative};
96
+ ${tokens.textFieldOptionalColor}: ${textTertiary};
97
+
98
+ ${tokens.buttonColor}: ${onDarkTextPrimary};
99
+ ${tokens.buttonColorHover}: ${onDarkTextPrimaryHover};
100
+ ${tokens.buttonColorActive}: ${onDarkTextPrimaryActive};
101
+ ${tokens.buttonArrowColor}: ${onDarkTextSecondary};
102
+ ${tokens.buttonArrowColorHover}: ${onDarkTextSecondaryHover};
103
+ ${tokens.buttonArrowColorActive}: ${onDarkTextSecondaryHover};
104
+ ${tokens.buttonBackgroundColor}:${surfacePositive};
105
+ ${tokens.buttonBackgroundColorHover}:${surfacePositiveHover};
106
+ ${tokens.buttonBackgroundColorActive}:${surfacePositiveActive};
107
+
108
+ ${tokens.disclosureIconColor}: ${textSecondary};
109
+ ${tokens.disclosureIconColorHover}: ${textSecondaryHover};
110
+ ${tokens.itemBackgroundHover}: ${surfaceTransparentSecondary};
111
+ ${tokens.itemDisabledOpacity}: 0.4;
112
+ ${tokens.itemDisabledColor}: ${textPrimary};
113
+ ${tokens.textFieldHintIconColor}: ${textSecondary};
114
+
115
+ ${tokens.dividerColor}: ${surfaceTransparentTertiary};
116
+
117
+ ${tokens.itemIconColor}: ${textAccent};
118
+
119
+ ${tokens.checkboxFillColor}: ${surfaceAccent};
120
+ ${tokens.checkboxIconColor}: ${onDarkTextPrimary};
121
+ ${tokens.checkboxTriggerBorderCheckedColor}: transparent;
122
+ ${tokens.checkboxTriggerBorderColor}: ${textSecondary};
123
+ `,
124
+ warning: css`
125
+ ${tokens.textFieldColor}: ${textWarning};
126
+ ${tokens.textFieldColorFocus}: ${textPrimary};
127
+
128
+ ${tokens.textFieldPlaceholderColor}: ${textWarning};
129
+ ${tokens.textFieldPlaceholderColorHover}: ${textSecondary};
130
+ ${tokens.textFieldPlaceholderColorFocus}: ${textTertiary};
131
+
132
+ ${tokens.textFieldBackgroundColor}: transparent;
133
+ ${tokens.textFieldBackgroundColorFocus}: transparent;
134
+ ${tokens.textFieldBackgroundColorHover}: transparent;
135
+ ${tokens.textFieldDividerColor}: ${surfaceWarning};
136
+ ${tokens.textFieldDividerColorHover}: ${surfaceWarning};
137
+ ${tokens.textFieldDividerColorFocus}: ${surfaceAccent};
138
+ ${tokens.textFieldClearPlaceholderColor}: ${textWarning};
139
+ ${tokens.textFieldClearPlaceholderColorFocus}: ${textTertiary};
140
+ ${tokens.textFieldTextBeforeColor}: ${textTertiary};
141
+ ${tokens.textFieldTextAfterColor}: ${textTertiary};
142
+ ${tokens.textFieldLabelColor}: ${textPrimary};
143
+ ${tokens.textFieldLeftHelperColor}: ${textWarning};
144
+ ${tokens.textFieldTitleCaptionColor}: ${textSecondary};
145
+ ${tokens.textFieldFocusColor}: ${textAccent};
146
+
147
+ ${tokens.textFieldContentSlotColor}: ${textSecondary};
148
+ ${tokens.textFieldContentSlotColorHover}: ${textSecondaryHover};
149
+ ${tokens.textFieldContentSlotColorActive}: ${textSecondaryActive};
150
+
151
+ ${tokens.textFieldIndicatorColor}: ${surfaceNegative};
152
+ ${tokens.textFieldOptionalColor}: ${textTertiary};
153
+
154
+ ${tokens.buttonColor}: ${onDarkTextPrimary};
155
+ ${tokens.buttonColorHover}: ${onDarkTextPrimaryHover};
156
+ ${tokens.buttonColorActive}: ${onDarkTextPrimaryActive};
157
+ ${tokens.buttonArrowColor}: ${onDarkTextSecondary};
158
+ ${tokens.buttonArrowColorHover}: ${onDarkTextSecondaryHover};
159
+ ${tokens.buttonArrowColorActive}: ${onDarkTextSecondaryHover};
160
+ ${tokens.buttonBackgroundColor}:${surfaceWarning};
161
+ ${tokens.buttonBackgroundColorHover}:${surfaceWarningHover};
162
+ ${tokens.buttonBackgroundColorActive}:${surfaceWarningActive};
163
+
164
+ ${tokens.disclosureIconColor}: ${textSecondary};
165
+ ${tokens.disclosureIconColorHover}: ${textSecondaryHover};
166
+ ${tokens.itemBackgroundHover}: ${surfaceTransparentSecondary};
167
+ ${tokens.itemDisabledOpacity}: 0.4;
168
+ ${tokens.itemDisabledColor}: ${textPrimary};
169
+ ${tokens.textFieldHintIconColor}: ${textSecondary};
170
+
171
+ ${tokens.dividerColor}: ${surfaceTransparentTertiary};
172
+
173
+ ${tokens.itemIconColor}: ${textAccent};
174
+
175
+ ${tokens.checkboxFillColor}: ${surfaceAccent};
176
+ ${tokens.checkboxIconColor}: ${onDarkTextPrimary};
177
+ ${tokens.checkboxTriggerBorderCheckedColor}: transparent;
178
+ ${tokens.checkboxTriggerBorderColor}: ${textSecondary};
179
+ `,
180
+ negative: css`
181
+ ${tokens.textFieldColor}: ${textNegative};
182
+ ${tokens.textFieldColorFocus}: ${textPrimary};
183
+
184
+ ${tokens.textFieldPlaceholderColor}: ${textNegative};
185
+ ${tokens.textFieldPlaceholderColorHover}: ${textSecondary};
186
+ ${tokens.textFieldPlaceholderColorFocus}: ${textTertiary};
187
+
188
+ ${tokens.textFieldBackgroundColor}: transparent;
189
+ ${tokens.textFieldBackgroundColorFocus}: transparent;
190
+ ${tokens.textFieldBackgroundColorHover}: transparent;
191
+ ${tokens.textFieldDividerColor}: ${surfaceNegative};
192
+ ${tokens.textFieldDividerColorHover}: ${surfaceNegative};
193
+ ${tokens.textFieldDividerColorFocus}: ${surfaceAccent};
194
+ ${tokens.textFieldClearPlaceholderColor}: ${textNegative};
195
+ ${tokens.textFieldClearPlaceholderColorFocus}: ${textTertiary};
196
+ ${tokens.textFieldTextBeforeColor}: ${textTertiary};
197
+ ${tokens.textFieldTextAfterColor}: ${textTertiary};
198
+ ${tokens.textFieldLabelColor}: ${textPrimary};
199
+ ${tokens.textFieldLeftHelperColor}: ${textNegative};
200
+ ${tokens.textFieldTitleCaptionColor}: ${textSecondary};
201
+ ${tokens.textFieldFocusColor}: ${textAccent};
202
+
203
+ ${tokens.textFieldContentSlotColor}: ${textSecondary};
204
+ ${tokens.textFieldContentSlotColorHover}: ${textSecondaryHover};
205
+ ${tokens.textFieldContentSlotColorActive}: ${textSecondaryActive};
206
+
207
+ ${tokens.textFieldIndicatorColor}: ${surfaceNegative};
208
+ ${tokens.textFieldOptionalColor}: ${textTertiary};
209
+
210
+ ${tokens.buttonColor}: ${onDarkTextPrimary};
211
+ ${tokens.buttonColorHover}: ${onDarkTextPrimaryHover};
212
+ ${tokens.buttonColorActive}: ${onDarkTextPrimaryActive};
213
+ ${tokens.buttonArrowColor}: ${onDarkTextSecondary};
214
+ ${tokens.buttonArrowColorHover}: ${onDarkTextSecondaryHover};
215
+ ${tokens.buttonArrowColorActive}: ${onDarkTextSecondaryHover};
216
+ ${tokens.buttonBackgroundColor}:${surfaceNegative};
217
+ ${tokens.buttonBackgroundColorHover}: ${surfaceNegativeHover};
218
+ ${tokens.buttonBackgroundColorActive}:${surfaceNegativeActive};
219
+
220
+ ${tokens.disclosureIconColor}: ${textSecondary};
221
+ ${tokens.disclosureIconColorHover}: ${textSecondaryHover};
222
+ ${tokens.itemBackgroundHover}: ${surfaceTransparentSecondary};
223
+ ${tokens.itemDisabledOpacity}: 0.4;
224
+ ${tokens.itemDisabledColor}: ${textPrimary};
225
+ ${tokens.textFieldHintIconColor}: ${textSecondary};
226
+
227
+ ${tokens.dividerColor}: ${surfaceTransparentTertiary};
228
+
229
+ ${tokens.itemIconColor}: ${textAccent};
230
+
231
+ ${tokens.checkboxFillColor}: ${surfaceAccent};
232
+ ${tokens.checkboxIconColor}: ${onDarkTextPrimary};
233
+ ${tokens.checkboxTriggerBorderCheckedColor}: transparent;
234
+ ${tokens.checkboxTriggerBorderColor}: ${textSecondary};
235
+ `,
236
+ accent: css`
237
+ ${tokens.textFieldBackgroundColor}: transparent;
238
+ ${tokens.textFieldBackgroundColorHover}: transparent;
239
+ ${tokens.textFieldBackgroundColorFocus}: transparent;
240
+ ${tokens.textFieldDividerColor}: ${surfaceTransparentTertiary};
241
+ ${tokens.textFieldDividerColorHover}: ${textSecondary};
242
+ ${tokens.textFieldDividerColorFocus}: ${surfaceAccent};
243
+ ${tokens.textFieldClearPlaceholderColor}: ${textSecondary};
244
+ ${tokens.textFieldClearPlaceholderColorFocus}: ${textTertiary};
245
+ ${tokens.buttonColor}: ${onDarkTextPrimary};
246
+ ${tokens.buttonColorHover}: ${onDarkTextPrimaryHover};
247
+ ${tokens.buttonColorActive}: ${onDarkTextPrimaryActive};
248
+ ${tokens.buttonArrowColor}: ${onDarkTextSecondary};
249
+ ${tokens.buttonArrowColorHover}: ${onDarkTextSecondaryHover};
250
+ ${tokens.buttonArrowColorActive}: ${onDarkTextSecondaryHover};
251
+ ${tokens.buttonBackgroundColor}: ${surfaceAccent};
252
+ ${tokens.buttonBackgroundColorHover}: ${surfaceAccentHover};
253
+ ${tokens.buttonBackgroundColorActive}: ${surfaceAccentActive};
254
+
255
+ ${tokens.disclosureIconColor}: ${textSecondary};
256
+ ${tokens.disclosureIconColorHover}: ${textSecondaryHover};
257
+ ${tokens.itemBackgroundHover}: ${surfaceTransparentSecondary};
258
+ ${tokens.itemDisabledOpacity}: 0.4;
259
+ ${tokens.itemDisabledColor}: ${textPrimary};
260
+
261
+ ${tokens.dividerColor}: ${surfaceTransparentTertiary};
262
+
263
+ ${tokens.itemIconColor}: ${textAccent};
264
+
265
+ ${tokens.checkboxFillColor}: ${surfaceAccent};
266
+ ${tokens.checkboxIconColor}: ${onDarkTextPrimary};
267
+ ${tokens.checkboxTriggerBorderCheckedColor}: transparent;
268
+ ${tokens.checkboxTriggerBorderColor}: ${textSecondary};
269
+ `,
270
+ secondary: css`
271
+ ${tokens.textFieldBackgroundColor}: transparent;
272
+ ${tokens.textFieldBackgroundColorHover}: transparent;
273
+ ${tokens.textFieldBackgroundColorFocus}: transparent;
274
+ ${tokens.textFieldDividerColor}: ${surfaceTransparentTertiary};
275
+ ${tokens.textFieldDividerColorHover}: ${textSecondary};
276
+ ${tokens.textFieldDividerColorFocus}: ${surfaceAccent};
277
+ ${tokens.textFieldClearPlaceholderColor}: ${textSecondary};
278
+ ${tokens.textFieldClearPlaceholderColorFocus}: ${textTertiary};
279
+ ${tokens.buttonColor}: ${textPrimary};
280
+ ${tokens.buttonColorHover}: ${textPrimaryHover};
281
+ ${tokens.buttonColorActive}: ${textPrimaryActive};
282
+ ${tokens.buttonArrowColor}: ${textSecondary};
283
+ ${tokens.buttonArrowColorHover}: ${textSecondaryHover};
284
+ ${tokens.buttonArrowColorActive}: ${textSecondaryHover};
285
+ ${tokens.buttonBackgroundColor}: ${surfaceTransparentSecondary};
286
+ ${tokens.buttonBackgroundColorHover}: ${surfaceTransparentSecondaryHover};
287
+ ${tokens.buttonBackgroundColorActive}: ${surfaceTransparentSecondaryActive};
288
+
289
+ ${tokens.disclosureIconColor}: ${textSecondary};
290
+ ${tokens.disclosureIconColorHover}: ${textSecondaryHover};
291
+ ${tokens.itemBackgroundHover}: ${surfaceTransparentSecondary};
292
+ ${tokens.itemDisabledOpacity}: 0.4;
293
+ ${tokens.itemDisabledColor}: ${textPrimary};
294
+
295
+ ${tokens.dividerColor}: ${surfaceTransparentTertiary};
296
+
297
+ ${tokens.itemIconColor}: ${textAccent};
298
+
299
+ ${tokens.checkboxFillColor}: ${surfaceAccent};
300
+ ${tokens.checkboxIconColor}: ${onDarkTextPrimary};
301
+ ${tokens.checkboxTriggerBorderCheckedColor}: transparent;
302
+ ${tokens.checkboxTriggerBorderColor}: ${textSecondary};
303
+ `,
304
+ clear: css`
305
+ ${tokens.textFieldBackgroundColor}: transparent;
306
+ ${tokens.textFieldBackgroundColorHover}: transparent;
307
+ ${tokens.textFieldBackgroundColorFocus}: transparent;
308
+ ${tokens.textFieldDividerColor}: ${surfaceTransparentTertiary};
309
+ ${tokens.textFieldDividerColorHover}: ${textSecondary};
310
+ ${tokens.textFieldDividerColorFocus}: ${surfaceAccent};
311
+ ${tokens.textFieldClearPlaceholderColor}: ${textSecondary};
312
+ ${tokens.textFieldClearPlaceholderColorFocus}: ${textTertiary};
313
+ ${tokens.buttonColor}: ${textPrimary};
314
+ ${tokens.buttonColorHover}: ${textPrimaryHover};
315
+ ${tokens.buttonColorActive}: ${textPrimaryActive};
316
+ ${tokens.buttonArrowColor}: ${textSecondary};
317
+ ${tokens.buttonArrowColorHover}: ${textSecondaryHover};
318
+ ${tokens.buttonArrowColorActive}: ${textSecondaryActive};
319
+ ${tokens.buttonBackgroundColor}: ${surfaceClear};
320
+ ${tokens.buttonBackgroundColorHover}: ${surfaceClear};
321
+ ${tokens.buttonBackgroundColorActive}: ${surfaceClear};
322
+
323
+ ${tokens.disclosureIconColor}: ${textSecondary};
324
+ ${tokens.disclosureIconColorHover}: ${textSecondaryHover};
325
+ ${tokens.itemBackgroundHover}: ${surfaceTransparentSecondary};
326
+ ${tokens.itemDisabledOpacity}: 0.4;
327
+ ${tokens.itemDisabledColor}: ${textPrimary};
328
+
329
+ ${tokens.dividerColor}: ${surfaceTransparentTertiary};
330
+
331
+ ${tokens.itemIconColor}: ${textAccent};
332
+
333
+ ${tokens.checkboxFillColor}: ${surfaceAccent};
334
+ ${tokens.checkboxIconColor}: ${onDarkTextPrimary};
335
+ ${tokens.checkboxTriggerBorderCheckedColor}: transparent;
336
+ ${tokens.checkboxTriggerBorderColor}: ${textSecondary};
337
+ `,
338
+ dark: css`
339
+ ${tokens.textFieldBackgroundColor}: transparent;
340
+ ${tokens.textFieldBackgroundColorHover}: transparent;
341
+ ${tokens.textFieldBackgroundColorFocus}: transparent;
342
+ ${tokens.textFieldDividerColor}: ${surfaceTransparentTertiary};
343
+ ${tokens.textFieldDividerColorHover}: ${textSecondary};
344
+ ${tokens.textFieldDividerColorFocus}: ${surfaceAccent};
345
+ ${tokens.textFieldClearPlaceholderColor}: ${textSecondary};
346
+ ${tokens.textFieldClearPlaceholderColorFocus}: ${textTertiary};
347
+ ${tokens.buttonColor}: ${onDarkTextPrimary};
348
+ ${tokens.buttonColorHover}: ${onDarkTextPrimaryHover};
349
+ ${tokens.buttonColorActive}: ${onDarkTextPrimaryActive};
350
+ ${tokens.buttonArrowColor}: ${onDarkTextSecondary};
351
+ ${tokens.buttonArrowColorHover}: ${onDarkTextSecondaryHover};
352
+ ${tokens.buttonArrowColorActive}: ${onDarkTextSecondaryActive};
353
+ ${tokens.buttonBackgroundColor}:${onLightSurfaceTransparentDeep};
354
+ ${tokens.buttonBackgroundColorHover}:${onLightSurfaceTransparentDeepHover};
355
+ ${tokens.buttonBackgroundColorActive}:${onLightSurfaceTransparentDeepActive};
356
+
357
+ ${tokens.disclosureIconColor}: ${textSecondary};
358
+ ${tokens.disclosureIconColorHover}: ${textSecondaryHover};
359
+ ${tokens.itemBackgroundHover}: ${surfaceTransparentSecondary};
360
+ ${tokens.itemDisabledOpacity}: 0.4;
361
+ ${tokens.itemDisabledColor}: ${textPrimary};
362
+
363
+ ${tokens.dividerColor}: ${surfaceTransparentTertiary};
364
+
365
+ ${tokens.itemIconColor}: ${textAccent};
366
+
367
+ ${tokens.checkboxFillColor}: ${surfaceAccent};
368
+ ${tokens.checkboxIconColor}: ${onDarkTextPrimary};
369
+ ${tokens.checkboxTriggerBorderCheckedColor}: transparent;
370
+ ${tokens.checkboxTriggerBorderColor}: ${textSecondary};
371
+ `,
372
+ black: css`
373
+ ${tokens.textFieldBackgroundColor}: transparent;
374
+ ${tokens.textFieldBackgroundColorHover}: transparent;
375
+ ${tokens.textFieldBackgroundColorFocus}: transparent;
376
+ ${tokens.textFieldDividerColor}: ${surfaceTransparentTertiary};
377
+ ${tokens.textFieldDividerColorHover}: ${textSecondary};
378
+ ${tokens.textFieldDividerColorFocus}: ${surfaceAccent};
379
+ ${tokens.textFieldClearPlaceholderColor}: ${textSecondary};
380
+ ${tokens.textFieldClearPlaceholderColorFocus}: ${textTertiary};
381
+ ${tokens.buttonColor}: ${onDarkTextPrimary};
382
+ ${tokens.buttonColorHover}: ${onDarkTextPrimaryHover};
383
+ ${tokens.buttonColorActive}: ${onDarkTextPrimaryActive};
384
+ ${tokens.buttonArrowColor}: ${onDarkTextSecondary};
385
+ ${tokens.buttonArrowColorHover}: ${onDarkTextSecondaryHover};
386
+ ${tokens.buttonArrowColorActive}: ${onDarkTextSecondaryActive};
387
+ ${tokens.buttonBackgroundColor}:${onLightSurfaceSolidDefault};
388
+ ${tokens.buttonBackgroundColorHover}:${onLightSurfaceSolidDefaultHover};
389
+ ${tokens.buttonBackgroundColorActive}: ${onLightSurfaceSolidDefaultActive};
390
+
391
+ ${tokens.disclosureIconColor}: ${textSecondary};
392
+ ${tokens.disclosureIconColorHover}: ${textSecondaryHover};
393
+ ${tokens.itemBackgroundHover}: ${surfaceTransparentSecondary};
394
+ ${tokens.itemDisabledOpacity}: 0.4;
395
+ ${tokens.itemDisabledColor}: ${textPrimary};
396
+
397
+ ${tokens.dividerColor}: ${surfaceTransparentTertiary};
398
+
399
+ ${tokens.itemIconColor}: ${textAccent};
400
+
401
+ ${tokens.checkboxFillColor}: ${surfaceAccent};
402
+ ${tokens.checkboxIconColor}: ${onDarkTextPrimary};
403
+ ${tokens.checkboxTriggerBorderCheckedColor}: transparent;
404
+ ${tokens.checkboxTriggerBorderColor}: ${textSecondary};
405
+ `,
406
+ white: css`
407
+ ${tokens.textFieldBackgroundColor}: transparent;
408
+ ${tokens.textFieldBackgroundColorHover}: transparent;
409
+ ${tokens.textFieldBackgroundColorFocus}: transparent;
410
+ ${tokens.textFieldDividerColor}: ${surfaceTransparentTertiary};
411
+ ${tokens.textFieldDividerColorHover}: ${textSecondary};
412
+ ${tokens.textFieldDividerColorFocus}: ${surfaceAccent};
413
+ ${tokens.textFieldClearPlaceholderColor}: ${textSecondary};
414
+ ${tokens.textFieldClearPlaceholderColorFocus}: ${textTertiary};
415
+ ${tokens.buttonColor}: ${onLightTextPrimary};
416
+ ${tokens.buttonColorHover}: ${onLightTextPrimaryHover};
417
+ ${tokens.buttonColorActive}: ${onLightTextPrimaryActive};
418
+ ${tokens.buttonArrowColor}: ${onLightTextSecondary};
419
+ ${tokens.buttonArrowColorHover}: ${onLightTextSecondaryHover};
420
+ ${tokens.buttonArrowColorActive}: ${onLightTextSecondaryActive};
421
+ ${tokens.buttonBackgroundColor}:${onDarkSurfaceSolidDefault};
422
+ ${tokens.buttonBackgroundColorHover}:${onDarkSurfaceSolidDefaultHover};
423
+ ${tokens.buttonBackgroundColorActive}:${onDarkSurfaceSolidDefaultActive};
424
+
425
+ ${tokens.itemBackgroundHover}: ${surfaceTransparentSecondary};
426
+ ${tokens.disclosureIconColor}: ${textSecondary};
427
+ ${tokens.disclosureIconColorHover}: ${textSecondaryHover};
428
+ ${tokens.itemDisabledOpacity}: 0.4;
429
+ ${tokens.itemDisabledColor}: ${textPrimary};
430
+
431
+ ${tokens.dividerColor}: ${surfaceTransparentTertiary};
432
+
433
+ ${tokens.itemIconColor}: ${textAccent};
434
+
435
+ ${tokens.checkboxFillColor}: ${surfaceAccent};
436
+ ${tokens.checkboxIconColor}: ${onDarkTextPrimary};
437
+ ${tokens.checkboxTriggerBorderCheckedColor}: transparent;
438
+ ${tokens.checkboxTriggerBorderColor}: ${textSecondary};
439
+ `
440
+ },
441
+ size: {
442
+ xl: css`
443
+ ${tokens.textFieldBorderWidth}: 0;
444
+ ${tokens.textFieldHeight}: 4rem;
445
+ ${tokens.textFieldPadding}: 1.3125rem 0;
446
+ ${tokens.textFieldPaddingWithChips}: 0.375rem 0;
447
+ ${tokens.textFieldBorderRadius}: 0;
448
+
449
+ ${tokens.textFieldLeftContentMargin}: -0.0625rem 0.5rem -0.0625rem 0rem;
450
+ ${tokens.textFieldRightContentMargin}: -0.0625rem 0rem -0.0625rem 0.75rem;
451
+ ${tokens.textFieldRightContentWithHintMargin}: -0.0625rem -0.438rem -0.0625rem 0.75rem;
452
+
453
+ ${tokens.textFieldContentRightWrapperGap}: 0.25rem;
454
+ ${tokens.textFieldContentRightWrapperMargin}: -0.438rem -0.438rem -0.438rem 0;
455
+
456
+ ${tokens.textFieldTextBeforeMargin}: 0 0.25rem 0 0;
457
+ ${tokens.textFieldTextAfterMargin}: 0 0 0 0.25rem;
458
+
459
+ ${tokens.textFieldFontFamily}: ${bodyL.fontFamily};
460
+ ${tokens.textFieldFontSize}: ${bodyL.fontSize};
461
+ ${tokens.textFieldFontStyle}: ${bodyL.fontStyle};
462
+ ${tokens.textFieldFontWeight}: ${bodyL.fontWeight};
463
+ ${tokens.textFieldLetterSpacing}: ${bodyL.letterSpacing};
464
+ ${tokens.textFieldLineHeight}: ${bodyL.lineHeight};
465
+
466
+ ${tokens.textFieldLabelOffset}: 0.75rem;
467
+ ${tokens.textFieldLabelFontFamily}: ${bodyL.fontFamily};
468
+ ${tokens.textFieldLabelFontSize}: ${bodyL.fontSize};
469
+ ${tokens.textFieldLabelFontStyle}: ${bodyL.fontStyle};
470
+ ${tokens.textFieldLabelFontWeight}: ${bodyL.fontWeight};
471
+ ${tokens.textFieldLabelLetterSpacing}: ${bodyL.letterSpacing};
472
+ ${tokens.textFieldLabelLineHeight}: ${bodyL.lineHeight};
473
+ ${tokens.textFieldTitleCaptionMargin}: 0.375rem;
474
+ ${tokens.textFieldTitleCaptionFontFamily}: ${bodyXS.fontFamily};
475
+ ${tokens.textFieldTitleCaptionFontSize}: ${bodyXS.fontSize};
476
+ ${tokens.textFieldTitleCaptionFontStyle}: ${bodyXS.fontStyle};
477
+ ${tokens.textFieldTitleCaptionFontWeight}: ${bodyXS.fontWeight};
478
+ ${tokens.textFieldTitleCaptionLetterSpacing}: ${bodyXS.letterSpacing};
479
+ ${tokens.textFieldTitleCaptionLineHeight}: ${bodyXS.lineHeight};
480
+
481
+ ${tokens.textFieldHintMargin}: -0.688rem -0.5rem;
482
+ ${tokens.textFieldHintTargetSize}: 2.375rem;
483
+ ${tokens.textFieldHintInnerLabelPlacementOffset}: 0.82rem -2.938rem auto auto;
484
+ ${tokens.textFieldClearHintInnerLabelPlacementOffset}: 0.82rem -2.188rem auto auto;
485
+
486
+ ${tokens.textFieldLeftHelperOffset}: 0.25rem 0 0 0;
487
+ ${tokens.textFieldLeftHelperFontFamily}: ${bodyXS.fontFamily};
488
+ ${tokens.textFieldLeftHelperFontSize}: ${bodyXS.fontSize};
489
+ ${tokens.textFieldLeftHelperFontStyle}: ${bodyXS.fontStyle};
490
+ ${tokens.textFieldLeftHelperFontWeight}: ${bodyXS.fontWeight};
491
+ ${tokens.textFieldLeftHelperLetterSpacing}: ${bodyXS.letterSpacing};
492
+ ${tokens.textFieldLeftHelperLineHeight}: ${bodyXS.lineHeight};
493
+
494
+ ${tokens.textFieldLabelInnerPadding}: 0.8125rem 0 0.125rem 0;
495
+ ${tokens.textFieldContentLabelInnerPadding}: 1.813rem 0 0.813rem 0;
496
+
497
+ ${tokens.textFieldIndicatorSizeInner}: 0.5rem;
498
+ ${tokens.textFieldIndicatorSizeOuter}: 0.375rem;
499
+ ${tokens.textFieldIndicatorLabelPlacementInner}: 0 0 0 0;
500
+ ${tokens.textFieldIndicatorLabelPlacementOuter}: 0.5rem auto auto -0.75rem;
501
+ ${tokens.textFieldIndicatorLabelPlacementInnerRight}: 0 0 auto auto;
502
+ ${tokens.textFieldIndicatorLabelPlacementOuterRight}: 0.25rem -0.625rem auto auto;
503
+ ${tokens.textFieldClearIndicatorLabelPlacementInner}: 1.75rem auto auto -0.875rem;
504
+ ${tokens.textFieldClearIndicatorLabelPlacementInnerRight}: 1.75rem -0.875rem auto auto;
505
+ ${tokens.textFieldClearIndicatorHintInnerRight}: 1.75rem -2.488rem auto auto;
506
+
507
+ ${tokens.textFieldChipGap}: 0.25rem;
508
+ ${tokens.textFieldChipBorderRadius}: 0.625rem;
509
+ ${tokens.textFieldChipWidth}: auto;
510
+ ${tokens.textFieldChipHeight}: 3.25rem;
511
+ ${tokens.textFieldChipPadding}: 0 0.75rem 0 1rem;
512
+ ${tokens.textFieldChipClearContentMarginLeft}: 0.625rem;
513
+ ${tokens.textFieldChipClearContentMarginRight}: 0rem;
514
+ ${tokens.textFieldChipCloseIconSize}: 1.5rem;
515
+ ${tokens.textFieldChipFontFamily}: ${bodyL.fontFamily};
516
+ ${tokens.textFieldChipFontSize}: ${bodyL.fontSize};
517
+ ${tokens.textFieldChipFontStyle}: ${bodyL.fontStyle};
518
+ ${tokens.textFieldChipFontWeight}: ${bodyL.fontWeight};
519
+ ${tokens.textFieldChipLetterSpacing}: ${bodyL.letterSpacing};
520
+ ${tokens.textFieldChipLineHeight}: ${bodyL.lineHeight};
521
+
522
+ ${tokens.buttonArrowMargin}: 0 -0.125rem 0 0.5rem;
523
+ ${tokens.targetHeight}: 4rem;
524
+ ${tokens.buttonPadding}: 1.75rem 0 1.75rem;
525
+
526
+ ${tokens.emptyStatePadding}: 1.25rem 1rem;
527
+ ${tokens.padding}: 0.125rem;
528
+ ${tokens.borderRadius}: 1rem;
529
+
530
+ ${tokens.itemHeight}: 1.5rem;
531
+ ${tokens.itemPadding}: 1.25rem 1rem;
532
+ ${tokens.itemPaddingTight}: 1rem 1rem;
533
+ ${tokens.itemBorderRadius}: 0.875rem;
534
+ ${tokens.itemIconMargin}: 0 0.625rem 0 0;
535
+ ${tokens.itemIconSize}: 1.5rem;
536
+ ${tokens.itemIconSizeTight}: 1.5rem;
537
+ ${tokens.itemGap}: 0.5rem;
538
+ ${tokens.itemTreeOffsetWidth}: 2rem;
539
+
540
+ ${tokens.cellPadding}: 0rem;
541
+ ${tokens.cellPaddingLeftContent}: 0rem;
542
+ ${tokens.cellPaddingContent}: 0rem;
543
+ ${tokens.cellPaddingRightContent}: 0rem;
544
+ ${tokens.cellTextboxGap}: 0.125rem;
545
+ ${tokens.cellGap}: 0.375rem;
546
+ ${tokens.cellTitleFontFamily}: ${bodyL.fontFamily};
547
+ ${tokens.cellTitleFontSize}: ${bodyL.fontSize};
548
+ ${tokens.cellTitleFontStyle}: ${bodyL.fontStyle};
549
+ ${tokens.cellTitleFontWeight}: ${bodyL.fontWeight};
550
+ ${tokens.cellTitleLetterSpacing}: ${bodyL.letterSpacing};
551
+ ${tokens.cellTitleLineHeight}: ${bodyL.lineHeight};
552
+
553
+ ${tokens.fontFamily}: ${bodyL.fontFamily};
554
+ ${tokens.fontSize}: ${bodyL.fontSize};
555
+ ${tokens.fontStyle}: ${bodyL.fontStyle};
556
+ ${tokens.fontWeight}: ${bodyL.fontWeight};
557
+ ${tokens.fontLetterSpacing}: ${bodyL.letterSpacing};
558
+ ${tokens.fontLineHeight}: ${bodyL.lineHeight};
559
+
560
+ ${tokens.checkboxTriggerSize}: 1.25rem;
561
+ ${tokens.checkboxTriggerSizeTight}: 1.25rem;
562
+ ${tokens.checkboxTriggerBorderRadius}: 0.375rem;
563
+ ${tokens.checkboxTriggerBorderRadiusTight}: 0.375rem;
564
+ ${tokens.checkboxTriggerBorderWidth}: 0.125rem;
565
+
566
+ ${tokens.indicatorSize}: 0.375rem;
567
+
568
+ ${tokens.dividerMarginTop}: 0.5rem;
569
+ ${tokens.dividerMarginRight}: 1.125rem;
570
+ ${tokens.dividerMarginBottom}: 0.5rem;
571
+ ${tokens.dividerMarginLeft}: 1.125rem;
572
+ ${tokens.dividerMarginTopTight}: 0.375rem;
573
+ ${tokens.dividerMarginBottomTight}: 0.375rem;
574
+ `,
575
+ l: css`
576
+ ${tokens.textFieldBorderWidth}: 0;
577
+ ${tokens.textFieldHeight}: 3.5rem;
578
+ ${tokens.textFieldPadding}: 1.0625rem 0;
579
+ ${tokens.textFieldPaddingWithChips}: 0.375rem 0;
580
+ ${tokens.textFieldBorderRadius}: 0;
581
+
582
+ ${tokens.textFieldLeftContentMargin}: -0.0625rem 0.5rem -0.0625rem 0;
583
+ ${tokens.textFieldRightContentMargin}: -0.0625rem 0 -0.0625rem 0.75rem;
584
+ ${tokens.textFieldRightContentWithHintMargin}: -0.0625rem -0.438rem -0.0625rem 0.75rem;
585
+
586
+ ${tokens.textFieldContentRightWrapperGap}: 0.25rem;
587
+ ${tokens.textFieldContentRightWrapperMargin}: -0.438rem -0.438rem -0.438rem 0;
588
+
589
+ ${tokens.textFieldTextBeforeMargin}: 0 0.25rem 0 0;
590
+ ${tokens.textFieldTextAfterMargin}: 0 0 0 0.25rem;
591
+
592
+ ${tokens.textFieldFontFamily}: ${bodyL.fontFamily};
593
+ ${tokens.textFieldFontSize}: ${bodyL.fontSize};
594
+ ${tokens.textFieldFontStyle}: ${bodyL.fontStyle};
595
+ ${tokens.textFieldFontWeight}: ${bodyL.fontWeight};
596
+ ${tokens.textFieldLetterSpacing}: ${bodyL.letterSpacing};
597
+ ${tokens.textFieldLineHeight}: ${bodyL.lineHeight};
598
+
599
+ ${tokens.textFieldLabelOffset}: 0.75rem;
600
+ ${tokens.textFieldLabelFontFamily}: ${bodyL.fontFamily};
601
+ ${tokens.textFieldLabelFontSize}: ${bodyL.fontSize};
602
+ ${tokens.textFieldLabelFontStyle}: ${bodyL.fontStyle};
603
+ ${tokens.textFieldLabelFontWeight}: ${bodyL.fontWeight};
604
+ ${tokens.textFieldLabelLetterSpacing}: ${bodyL.letterSpacing};
605
+ ${tokens.textFieldLabelLineHeight}: ${bodyL.lineHeight};
606
+ ${tokens.textFieldTitleCaptionMargin}: 0.375rem;
607
+ ${tokens.textFieldTitleCaptionFontFamily}: ${bodyXS.fontFamily};
608
+ ${tokens.textFieldTitleCaptionFontSize}: ${bodyXS.fontSize};
609
+ ${tokens.textFieldTitleCaptionFontStyle}: ${bodyXS.fontStyle};
610
+ ${tokens.textFieldTitleCaptionFontWeight}: ${bodyXS.fontWeight};
611
+ ${tokens.textFieldTitleCaptionLetterSpacing}: ${bodyXS.letterSpacing};
612
+ ${tokens.textFieldTitleCaptionLineHeight}: ${bodyXS.lineHeight};
613
+
614
+ ${tokens.textFieldHintMargin}: -0.688rem -0.5rem;
615
+ ${tokens.textFieldHintTargetSize}: 2.375rem;
616
+ ${tokens.textFieldHintInnerLabelPlacementOffset}: 0.563rem -2.938rem auto auto;
617
+ ${tokens.textFieldClearHintInnerLabelPlacementOffset}: 0.563rem -2.188rem auto auto;
618
+
619
+ ${tokens.textFieldLeftHelperOffset}: 0.25rem 0 0 0;
620
+ ${tokens.textFieldLeftHelperFontFamily}: ${bodyXS.fontFamily};
621
+ ${tokens.textFieldLeftHelperFontSize}: ${bodyXS.fontSize};
622
+ ${tokens.textFieldLeftHelperFontStyle}: ${bodyXS.fontStyle};
623
+ ${tokens.textFieldLeftHelperFontWeight}: ${bodyXS.fontWeight};
624
+ ${tokens.textFieldLeftHelperLetterSpacing}: ${bodyXS.letterSpacing};
625
+ ${tokens.textFieldLeftHelperLineHeight}: ${bodyXS.lineHeight};
626
+
627
+ ${tokens.textFieldLabelInnerPadding}: 0.5625rem 0 0.125rem 0;
628
+ ${tokens.textFieldContentLabelInnerPadding}: 1.5625rem 0 0.5625rem 0;
629
+
630
+ ${tokens.textFieldIndicatorSizeInner}: 0.5rem;
631
+ ${tokens.textFieldIndicatorSizeOuter}: 0.375rem;
632
+ ${tokens.textFieldIndicatorLabelPlacementInner}: 0 0 0 0;
633
+ ${tokens.textFieldIndicatorLabelPlacementOuter}: 0.5rem auto auto -0.75rem;
634
+ ${tokens.textFieldIndicatorLabelPlacementInnerRight}: 0 0 auto auto;
635
+ ${tokens.textFieldIndicatorLabelPlacementOuterRight}: 0.25rem -0.625rem auto auto;
636
+ ${tokens.textFieldClearIndicatorLabelPlacementInner}: 1.5rem auto auto -0.875rem;
637
+ ${tokens.textFieldClearIndicatorLabelPlacementInnerRight}: 1.5rem -0.875rem auto auto;
638
+ ${tokens.textFieldClearIndicatorHintInnerRight}: 1.5rem -2.488rem auto auto;
639
+
640
+ ${tokens.textFieldChipGap}: 0.25rem;
641
+ ${tokens.textFieldChipBorderRadius}: 0.5rem;
642
+ ${tokens.textFieldChipWidth}: auto;
643
+ ${tokens.textFieldChipHeight}: 2.75rem;
644
+ ${tokens.textFieldChipPadding}: 0 0.75rem 0 1rem;
645
+ ${tokens.textFieldChipClearContentMarginLeft}: 0.625rem;
646
+ ${tokens.textFieldChipClearContentMarginRight}: 0rem;
647
+ ${tokens.textFieldChipCloseIconSize}: 1.5rem;
648
+ ${tokens.textFieldChipFontFamily}: ${bodyL.fontFamily};
649
+ ${tokens.textFieldChipFontSize}: ${bodyL.fontSize};
650
+ ${tokens.textFieldChipFontStyle}: ${bodyL.fontStyle};
651
+ ${tokens.textFieldChipFontWeight}: ${bodyL.fontWeight};
652
+ ${tokens.textFieldChipLetterSpacing}: ${bodyL.letterSpacing};
653
+ ${tokens.textFieldChipLineHeight}: ${bodyL.lineHeight};
654
+
655
+ ${tokens.buttonArrowMargin}: 0 -0.125rem 0 0.5rem;
656
+ ${tokens.targetHeight}: 3.5rem;
657
+ ${tokens.buttonPadding}: 1.5rem 0 1.5rem;
658
+
659
+ ${tokens.emptyStatePadding}: 1rem;
660
+ ${tokens.padding}: 0.125rem;
661
+ ${tokens.borderRadius}: 0.875rem;
662
+
663
+ ${tokens.itemHeight}: 1.5rem;
664
+ ${tokens.itemPadding}: 1rem 0.875rem;
665
+ ${tokens.itemPaddingTight}: 0.75rem 0.875rem;
666
+ ${tokens.itemBorderRadius}: 0.75rem;
667
+ ${tokens.itemIconMargin}: 0 0.5rem 0 0;
668
+ ${tokens.itemIconSize}: 1.5rem;
669
+ ${tokens.itemIconSizeTight}: 1.5rem;
670
+ ${tokens.itemGap}: 0.5rem;
671
+ ${tokens.itemTreeOffsetWidth}: 2rem;
672
+
673
+ ${tokens.cellPadding}: 0rem;
674
+ ${tokens.cellPaddingLeftContent}: 0rem;
675
+ ${tokens.cellPaddingContent}: 0rem;
676
+ ${tokens.cellPaddingRightContent}: 0rem;
677
+ ${tokens.cellTextboxGap}: 0.125rem;
678
+ ${tokens.cellGap}: 0.375rem;
679
+ ${tokens.cellTitleFontFamily}: ${bodyL.fontFamily};
680
+ ${tokens.cellTitleFontSize}: ${bodyL.fontSize};
681
+ ${tokens.cellTitleFontStyle}: ${bodyL.fontStyle};
682
+ ${tokens.cellTitleFontWeight}: ${bodyL.fontWeight};
683
+ ${tokens.cellTitleLetterSpacing}: ${bodyL.letterSpacing};
684
+ ${tokens.cellTitleLineHeight}: ${bodyL.lineHeight};
685
+
686
+ ${tokens.fontFamily}: ${bodyL.fontFamily};
687
+ ${tokens.fontSize}: ${bodyL.fontSize};
688
+ ${tokens.fontStyle}: ${bodyL.fontStyle};
689
+ ${tokens.fontWeight}: ${bodyL.fontWeight};
690
+ ${tokens.fontLetterSpacing}: ${bodyL.letterSpacing};
691
+ ${tokens.fontLineHeight}: ${bodyL.lineHeight};
692
+
693
+ ${tokens.checkboxTriggerSize}: 1.25rem;
694
+ ${tokens.checkboxTriggerSizeTight}: 1.25rem;
695
+ ${tokens.checkboxTriggerBorderRadius}: 0.375rem;
696
+ ${tokens.checkboxTriggerBorderRadiusTight}: 0.375rem;
697
+ ${tokens.checkboxTriggerBorderWidth}: 0.125rem;
698
+
699
+ ${tokens.indicatorSize}: 0.375rem;
700
+
701
+ ${tokens.dividerMarginTop}: 0.5rem;
702
+ ${tokens.dividerMarginRight}: 1rem;
703
+ ${tokens.dividerMarginBottom}: 0.5rem;
704
+ ${tokens.dividerMarginLeft}: 1rem;
705
+ ${tokens.dividerMarginTopTight}: 0.375rem;
706
+ ${tokens.dividerMarginBottomTight}: 0.375rem;
707
+ `,
708
+ m: css`
709
+ ${tokens.textFieldBorderWidth}: 0;
710
+ ${tokens.textFieldHeight}: 3rem;
711
+ ${tokens.textFieldPadding}: 0.875rem 0;
712
+ ${tokens.textFieldPaddingWithChips}: 0.375rem 0;
713
+ ${tokens.textFieldBorderRadius}: 0;
714
+
715
+ ${tokens.textFieldLeftContentMargin}: -0.125rem 0.375rem -0.125rem 0;
716
+ ${tokens.textFieldRightContentMargin}: -0.125rem 0 -0.125rem 0.75rem;
717
+ ${tokens.textFieldRightContentWithHintMargin}: -0.125rem -0.438rem -0.125rem 0.75rem;
718
+
719
+ ${tokens.textFieldContentRightWrapperGap}: 0.25rem;
720
+ ${tokens.textFieldContentRightWrapperMargin}: -0.438rem -0.438rem -0.438rem 0;
721
+
722
+ ${tokens.textFieldTextBeforeMargin}: 0 0.25rem 0 0;
723
+ ${tokens.textFieldTextAfterMargin}: 0 0 0 0.25rem;
724
+
725
+ ${tokens.textFieldFontFamily}: ${bodyM.fontFamily};
726
+ ${tokens.textFieldFontSize}: ${bodyM.fontSize};
727
+ ${tokens.textFieldFontStyle}: ${bodyM.fontStyle};
728
+ ${tokens.textFieldFontWeight}: ${bodyM.fontWeight};
729
+ ${tokens.textFieldLetterSpacing}: ${bodyM.letterSpacing};
730
+ ${tokens.textFieldLineHeight}: ${bodyM.lineHeight};
731
+
732
+ ${tokens.textFieldLabelOffset}: 0.625rem;
733
+ ${tokens.textFieldLabelFontFamily}: ${bodyM.fontFamily};
734
+ ${tokens.textFieldLabelFontSize}: ${bodyM.fontSize};
735
+ ${tokens.textFieldLabelFontStyle}: ${bodyM.fontStyle};
736
+ ${tokens.textFieldLabelFontWeight}: ${bodyM.fontWeight};
737
+ ${tokens.textFieldLabelLetterSpacing}: ${bodyM.letterSpacing};
738
+ ${tokens.textFieldLabelLineHeight}: ${bodyM.lineHeight};
739
+ ${tokens.textFieldTitleCaptionMargin}: 0.3125rem;
740
+ ${tokens.textFieldTitleCaptionFontFamily}: ${bodyXS.fontFamily};
741
+ ${tokens.textFieldTitleCaptionFontSize}: ${bodyXS.fontSize};
742
+ ${tokens.textFieldTitleCaptionFontStyle}: ${bodyXS.fontStyle};
743
+ ${tokens.textFieldTitleCaptionFontWeight}: ${bodyXS.fontWeight};
744
+ ${tokens.textFieldTitleCaptionLetterSpacing}: ${bodyXS.letterSpacing};
745
+ ${tokens.textFieldTitleCaptionLineHeight}: ${bodyXS.lineHeight};
746
+
747
+ ${tokens.textFieldHintMargin}: -0.688rem -0.5rem;
748
+ ${tokens.textFieldHintTargetSize}: 2.375rem;
749
+ ${tokens.textFieldHintInnerLabelPlacementOffset}: 0.312rem -2.813rem auto auto;
750
+ ${tokens.textFieldClearHintInnerLabelPlacementOffset}: 0.312rem -2.188rem auto auto;
751
+
752
+ ${tokens.textFieldLeftHelperOffset}: 0.25rem 0 0 0;
753
+ ${tokens.textFieldLeftHelperFontFamily}: ${bodyXS.fontFamily};
754
+ ${tokens.textFieldLeftHelperFontSize}: ${bodyXS.fontSize};
755
+ ${tokens.textFieldLeftHelperFontStyle}: ${bodyXS.fontStyle};
756
+ ${tokens.textFieldLeftHelperFontWeight}: ${bodyXS.fontWeight};
757
+ ${tokens.textFieldLeftHelperLetterSpacing}: ${bodyXS.letterSpacing};
758
+ ${tokens.textFieldLeftHelperLineHeight}: ${bodyXS.lineHeight};
759
+
760
+ ${tokens.textFieldLabelInnerPadding}: 0.375rem 0 0.125rem 0;
761
+ ${tokens.textFieldContentLabelInnerPadding}: 1.375rem 0 0.375rem 0;
762
+
763
+ ${tokens.textFieldIndicatorSizeInner}: 0.5rem;
764
+ ${tokens.textFieldIndicatorSizeOuter}: 0.375rem;
765
+ ${tokens.textFieldIndicatorLabelPlacementInner}: 0 0 0 0;
766
+ ${tokens.textFieldIndicatorLabelPlacementOuter}: 0.375rem auto auto -0.75rem;
767
+ ${tokens.textFieldIndicatorLabelPlacementInnerRight}: 0 0 auto auto;
768
+ ${tokens.textFieldIndicatorLabelPlacementOuterRight}: 0.25rem -0.6875rem auto auto;
769
+ ${tokens.textFieldClearIndicatorLabelPlacementInner}: 1.25rem auto auto -0.875rem;
770
+ ${tokens.textFieldClearIndicatorLabelPlacementInnerRight}: 1.25rem -0.875rem auto auto;
771
+ ${tokens.textFieldClearIndicatorHintInnerRight}: 1.25rem -2.488rem auto auto;
772
+
773
+ ${tokens.textFieldChipGap}: 0.25rem;
774
+ ${tokens.textFieldChipBorderRadius}: 0.375rem;
775
+ ${tokens.textFieldChipWidth}: auto;
776
+ ${tokens.textFieldChipHeight}: 2.25rem;
777
+ ${tokens.textFieldChipPadding}: 0 0.625rem 0 0.875rem;
778
+ ${tokens.textFieldChipClearContentMarginLeft}: 0.5rem;
779
+ ${tokens.textFieldChipClearContentMarginRight}: 0rem;
780
+ ${tokens.textFieldChipCloseIconSize}: 1.25rem;
781
+ ${tokens.textFieldChipFontFamily}: ${bodyM.fontFamily};
782
+ ${tokens.textFieldChipFontSize}: ${bodyM.fontSize};
783
+ ${tokens.textFieldChipFontStyle}: ${bodyM.fontStyle};
784
+ ${tokens.textFieldChipFontWeight}: ${bodyM.fontWeight};
785
+ ${tokens.textFieldChipLetterSpacing}: ${bodyM.letterSpacing};
786
+ ${tokens.textFieldChipLineHeight}: ${bodyM.lineHeight};
787
+
788
+ ${tokens.buttonArrowMargin}: 0 -0.125rem 0 0.375rem;
789
+ ${tokens.targetHeight}: 3rem;
790
+ ${tokens.buttonPadding}: 1.25rem 0 1.25rem;
791
+
792
+ ${tokens.emptyStatePadding}: 0.875rem 1rem 0.875rem 1rem;
793
+ ${tokens.padding}: 0.125rem;
794
+ ${tokens.borderRadius}: 0.75rem;
795
+
796
+ ${tokens.itemHeight}: 1.5rem;
797
+ ${tokens.itemPadding}: 0.75rem 0.75rem;
798
+ ${tokens.itemPaddingTight}: 0.5rem 0.75rem;
799
+ ${tokens.itemBorderRadius}: 0.625rem;
800
+ ${tokens.itemIconMargin}: 0 0.375rem 0 0;
801
+ ${tokens.itemIconSize}: 1.5rem;
802
+ ${tokens.itemIconSizeTight}: 1.5rem;
803
+ ${tokens.itemGap}: 0.375rem;
804
+ ${tokens.itemTreeOffsetWidth}: 2rem;
805
+
806
+ ${tokens.cellPadding}: 0rem;
807
+ ${tokens.cellPaddingLeftContent}: 0rem;
808
+ ${tokens.cellPaddingContent}: 0rem;
809
+ ${tokens.cellPaddingRightContent}: 0rem;
810
+ ${tokens.cellTextboxGap}: 0.125rem;
811
+ ${tokens.cellGap}: 0.375rem;
812
+ ${tokens.cellTitleFontFamily}: ${bodyM.fontFamily};
813
+ ${tokens.cellTitleFontSize}: ${bodyM.fontSize};
814
+ ${tokens.cellTitleFontStyle}: ${bodyM.fontStyle};
815
+ ${tokens.cellTitleFontWeight}: ${bodyM.fontWeight};
816
+ ${tokens.cellTitleLetterSpacing}: ${bodyM.letterSpacing};
817
+ ${tokens.cellTitleLineHeight}: ${bodyM.lineHeight};
818
+
819
+ ${tokens.fontFamily}: ${bodyM.fontFamily};
820
+ ${tokens.fontSize}: ${bodyM.fontSize};
821
+ ${tokens.fontStyle}: ${bodyM.fontStyle};
822
+ ${tokens.fontWeight}: ${bodyM.fontWeight};
823
+ ${tokens.fontLetterSpacing}: ${bodyM.letterSpacing};
824
+ ${tokens.fontLineHeight}: ${bodyM.lineHeight};
825
+
826
+ ${tokens.checkboxTriggerSize}: 1.25rem;
827
+ ${tokens.checkboxTriggerSizeTight}: 1.25rem;
828
+ ${tokens.checkboxTriggerBorderRadius}: 0.375rem;
829
+ ${tokens.checkboxTriggerBorderRadiusTight}: 0.375rem;
830
+ ${tokens.checkboxTriggerBorderWidth}: 0.125rem;
831
+
832
+ ${tokens.indicatorSize}: 0.375rem;
833
+
834
+ ${tokens.dividerMarginTop}: 0.375rem;
835
+ ${tokens.dividerMarginRight}: 0.875rem;
836
+ ${tokens.dividerMarginBottom}: 0.375rem;
837
+ ${tokens.dividerMarginLeft}: 0.875rem;
838
+ ${tokens.dividerMarginTopTight}: 0.375rem;
839
+ ${tokens.dividerMarginBottomTight}: 0.375rem;
840
+ `,
841
+ s: css`
842
+ ${tokens.textFieldBorderWidth}: 0;
843
+ ${tokens.textFieldHeight}: 2.5rem;
844
+ ${tokens.textFieldPadding}: 0.6875rem 0;
845
+ ${tokens.textFieldPaddingWithChips}: 0.375rem 0;
846
+ ${tokens.textFieldBorderRadius}: 0;
847
+
848
+ ${tokens.textFieldLeftContentMargin}: -0.1875rem 0.25rem -0.1875rem 0;
849
+ ${tokens.textFieldRightContentMargin}: -0.1875rem 0 -0.1875rem 0.75rem;
850
+ ${tokens.textFieldRightContentWithHintMargin}: -0.1875rem -0.438rem -0.1875rem 0.75rem;
851
+
852
+ ${tokens.textFieldContentRightWrapperGap}: 0.25rem;
853
+ ${tokens.textFieldContentRightWrapperMargin}: -0.438rem -0.438rem -0.438rem 0;
854
+
855
+ ${tokens.textFieldTextBeforeMargin}: 0 0.25rem 0 0;
856
+ ${tokens.textFieldTextAfterMargin}: 0 0 0 0.25rem;
857
+
858
+ ${tokens.textFieldFontFamily}: ${bodyS.fontFamily};
859
+ ${tokens.textFieldFontSize}: ${bodyS.fontSize};
860
+ ${tokens.textFieldFontStyle}: ${bodyS.fontStyle};
861
+ ${tokens.textFieldFontWeight}: ${bodyS.fontWeight};
862
+ ${tokens.textFieldLetterSpacing}: ${bodyS.letterSpacing};
863
+ ${tokens.textFieldLineHeight}: ${bodyS.lineHeight};
864
+
865
+ ${tokens.textFieldLabelOffset}: 0.5rem;
866
+ ${tokens.textFieldLabelFontFamily}: ${bodyS.fontFamily};
867
+ ${tokens.textFieldLabelFontSize}: ${bodyS.fontSize};
868
+ ${tokens.textFieldLabelFontStyle}: ${bodyS.fontStyle};
869
+ ${tokens.textFieldLabelFontWeight}: ${bodyS.fontWeight};
870
+ ${tokens.textFieldLabelLetterSpacing}: ${bodyS.letterSpacing};
871
+ ${tokens.textFieldLabelLineHeight}: ${bodyS.lineHeight};
872
+ ${tokens.textFieldTitleCaptionMargin}: 0.1875rem;
873
+ ${tokens.textFieldTitleCaptionFontFamily}: ${bodyXS.fontFamily};
874
+ ${tokens.textFieldTitleCaptionFontSize}: ${bodyXS.fontSize};
875
+ ${tokens.textFieldTitleCaptionFontStyle}: ${bodyXS.fontStyle};
876
+ ${tokens.textFieldTitleCaptionFontWeight}: ${bodyXS.fontWeight};
877
+ ${tokens.textFieldTitleCaptionLetterSpacing}: ${bodyXS.letterSpacing};
878
+ ${tokens.textFieldTitleCaptionLineHeight}: ${bodyXS.lineHeight};
879
+
880
+ ${tokens.textFieldHintMargin}: -0.688rem -0.5rem;
881
+ ${tokens.textFieldHintTargetSize}: 2.375rem;
882
+ ${tokens.textFieldHintInnerLabelPlacementOffset}: 0.062rem -2.688rem auto auto;
883
+ ${tokens.textFieldClearHintInnerLabelPlacementOffset}: 0.062rem -2.188rem auto auto;
884
+
885
+ ${tokens.textFieldLeftHelperOffset}: 0.25rem 0 0 0;
886
+ ${tokens.textFieldLeftHelperFontFamily}: ${bodyXS.fontFamily};
887
+ ${tokens.textFieldLeftHelperFontSize}: ${bodyXS.fontSize};
888
+ ${tokens.textFieldLeftHelperFontStyle}: ${bodyXS.fontStyle};
889
+ ${tokens.textFieldLeftHelperFontWeight}: ${bodyXS.fontWeight};
890
+ ${tokens.textFieldLeftHelperLetterSpacing}: ${bodyXS.letterSpacing};
891
+ ${tokens.textFieldLeftHelperLineHeight}: ${bodyXS.lineHeight};
892
+
893
+ ${tokens.textFieldLabelInnerPadding}: 0.3125rem 0 0 0;
894
+ ${tokens.textFieldContentLabelInnerPadding}: 1.0625rem 0 0.3125rem 0;
895
+
896
+ ${tokens.textFieldIndicatorSizeInner}: 0.375rem;
897
+ ${tokens.textFieldIndicatorSizeOuter}: 0.375rem;
898
+ ${tokens.textFieldIndicatorLabelPlacementInner}: 0 0 0 0;
899
+ ${tokens.textFieldIndicatorLabelPlacementOuter}: 0.3125rem auto auto -0.6875rem;
900
+ ${tokens.textFieldIndicatorLabelPlacementInnerRight}: 0 0 auto auto;
901
+ ${tokens.textFieldIndicatorLabelPlacementOuterRight}: 0.25rem -0.625rem auto auto;
902
+ ${tokens.textFieldClearIndicatorLabelPlacementInner}: 1.063rem auto auto -0.75rem;
903
+ ${tokens.textFieldClearIndicatorLabelPlacementInnerRight}: 1.063rem -0.75rem auto auto;
904
+ ${tokens.textFieldClearIndicatorHintInnerRight}: 1.063rem -2.238rem auto auto;
905
+
906
+ ${tokens.textFieldChipGap}: 0.25rem;
907
+ ${tokens.textFieldChipBorderRadius}: 0.25rem;
908
+ ${tokens.textFieldChipWidth}: auto;
909
+ ${tokens.textFieldChipHeight}: 1.75rem;
910
+ ${tokens.textFieldChipPadding}: 0 0.5rem 0 0.75rem;
911
+ ${tokens.textFieldChipClearContentMarginLeft}: 0.375rem;
912
+ ${tokens.textFieldChipClearContentMarginRight}: 0rem;
913
+ ${tokens.textFieldChipCloseIconSize}: 1rem;
914
+ ${tokens.textFieldChipFontFamily}: ${bodyS.fontFamily};
915
+ ${tokens.textFieldChipFontSize}: ${bodyS.fontSize};
916
+ ${tokens.textFieldChipFontStyle}: ${bodyS.fontStyle};
917
+ ${tokens.textFieldChipFontWeight}: ${bodyS.fontWeight};
918
+ ${tokens.textFieldChipLetterSpacing}: ${bodyS.letterSpacing};
919
+ ${tokens.textFieldChipLineHeight}: ${bodyS.lineHeight};
920
+
921
+ ${tokens.buttonArrowMargin}: 0 -0.125rem 0 0.25rem;
922
+ ${tokens.targetHeight}: 2.5rem;
923
+ ${tokens.buttonPadding}: 1rem 0 1rem;
924
+
925
+ ${tokens.emptyStatePadding}: 0.625rem 0.875rem 0.625rem 0.875rem;
926
+ ${tokens.padding}: 0.125rem;
927
+ ${tokens.borderRadius}: 0.625rem;
928
+
929
+ ${tokens.itemHeight}: 1.5rem;
930
+ ${tokens.itemPadding}: 0.5rem 0.625rem;
931
+ ${tokens.itemPaddingTight}: 0.25rem 0.75rem;
932
+ ${tokens.itemBorderRadius}: 0.5rem;
933
+ ${tokens.itemIconSize}: 1.5rem;
934
+ ${tokens.itemIconSizeTight}: 1rem;
935
+ ${tokens.itemIconMargin}: 0 0.375rem 0 0;
936
+ ${tokens.itemGap}: 0.375rem;
937
+ ${tokens.itemTreeOffsetWidth}: 1.875rem;
938
+
939
+ ${tokens.cellPadding}: 0rem;
940
+ ${tokens.cellPaddingLeftContent}: 0rem;
941
+ ${tokens.cellPaddingContent}: 0rem;
942
+ ${tokens.cellPaddingRightContent}: 0rem;
943
+ ${tokens.cellTextboxGap}: 0.125rem;
944
+ ${tokens.cellGap}: 0.375rem;
945
+ ${tokens.cellTitleFontFamily}: ${bodyS.fontFamily};
946
+ ${tokens.cellTitleFontSize}: ${bodyS.fontSize};
947
+ ${tokens.cellTitleFontStyle}: ${bodyS.fontStyle};
948
+ ${tokens.cellTitleFontWeight}: ${bodyS.fontWeight};
949
+ ${tokens.cellTitleLetterSpacing}: ${bodyS.letterSpacing};
950
+ ${tokens.cellTitleLineHeight}: ${bodyS.lineHeight};
951
+
952
+ ${tokens.fontFamily}: ${bodyS.fontFamily};
953
+ ${tokens.fontSize}: ${bodyS.fontSize};
954
+ ${tokens.fontStyle}: ${bodyS.fontStyle};
955
+ ${tokens.fontWeight}: ${bodyS.fontWeight};
956
+ ${tokens.fontLetterSpacing}: ${bodyS.letterSpacing};
957
+ ${tokens.fontLineHeight}: ${bodyS.lineHeight};
958
+
959
+ ${tokens.checkboxTriggerSize}: 1.25rem;
960
+ ${tokens.checkboxTriggerSizeTight}: 0.875rem;
961
+ ${tokens.checkboxTriggerBorderRadius}: 0.375rem;
962
+ ${tokens.checkboxTriggerBorderRadiusTight}: 0.25rem;
963
+ ${tokens.checkboxTriggerBorderWidth}: 0.125rem;
964
+
965
+ ${tokens.indicatorSize}: 0.375rem;
966
+
967
+ ${tokens.dividerMarginTop}: 0.375rem;
968
+ ${tokens.dividerMarginRight}: 0.75rem;
969
+ ${tokens.dividerMarginBottom}: 0.375rem;
970
+ ${tokens.dividerMarginLeft}: 0.75rem;
971
+ ${tokens.dividerMarginTopTight}: 0.25rem;
972
+ ${tokens.dividerMarginBottomTight}: 0.25rem;
973
+ `,
974
+ xs: css`
975
+ ${tokens.textFieldBorderWidth}: 0;
976
+ ${tokens.textFieldHeight}: 2rem;
977
+ ${tokens.textFieldPadding}: 0.5625rem 0;
978
+ ${tokens.textFieldPaddingWithChips}: 0.375rem 0;
979
+ ${tokens.textFieldBorderRadius}: 0;
980
+
981
+ ${tokens.textFieldLeftContentMargin}: -0.0625rem 0.25rem -0.0625rem 0;
982
+ ${tokens.textFieldRightContentMargin}: -0.0625rem 0 -0.0625rem 0.75rem;
983
+ ${tokens.textFieldRightContentWithHintMargin}: -0.0625rem -0.688rem -0.0625rem 0.75rem;
984
+
985
+ ${tokens.textFieldContentRightWrapperGap}: 0.25rem;
986
+ ${tokens.textFieldContentRightWrapperMargin}: -0.688rem -0.688rem -0.688rem 0;
987
+
988
+ ${tokens.textFieldTextBeforeMargin}: 0 0.25rem 0 0;
989
+ ${tokens.textFieldTextAfterMargin}: 0 0 0 0.25rem;
990
+
991
+ ${tokens.textFieldFontFamily}: ${bodyXS.fontFamily};
992
+ ${tokens.textFieldFontSize}: ${bodyXS.fontSize};
993
+ ${tokens.textFieldFontStyle}: ${bodyXS.fontStyle};
994
+ ${tokens.textFieldFontWeight}: ${bodyXS.fontWeight};
995
+ ${tokens.textFieldLetterSpacing}: ${bodyXS.letterSpacing};
996
+ ${tokens.textFieldLineHeight}: ${bodyXS.lineHeight};
997
+
998
+ ${tokens.textFieldLabelOffset}: 0.375rem;
999
+ ${tokens.textFieldLabelFontFamily}: ${bodyXS.fontFamily};
1000
+ ${tokens.textFieldLabelFontSize}: ${bodyXS.fontSize};
1001
+ ${tokens.textFieldLabelFontStyle}: ${bodyXS.fontStyle};
1002
+ ${tokens.textFieldLabelFontWeight}: ${bodyXS.fontWeight};
1003
+ ${tokens.textFieldLabelLetterSpacing}: ${bodyXS.letterSpacing};
1004
+ ${tokens.textFieldLabelLineHeight}: ${bodyXS.lineHeight};
1005
+ ${tokens.textFieldTitleCaptionMargin}: 0;
1006
+ ${tokens.textFieldTitleCaptionFontFamily}: ${bodyXS.fontFamily};
1007
+ ${tokens.textFieldTitleCaptionFontSize}: ${bodyXS.fontSize};
1008
+ ${tokens.textFieldTitleCaptionFontStyle}: ${bodyXS.fontStyle};
1009
+ ${tokens.textFieldTitleCaptionFontWeight}: ${bodyXS.fontWeight};
1010
+ ${tokens.textFieldTitleCaptionLetterSpacing}: ${bodyXS.letterSpacing};
1011
+ ${tokens.textFieldTitleCaptionLineHeight}: ${bodyXS.lineHeight};
1012
+
1013
+ ${tokens.textFieldHintMargin}: -0.75rem -0.625rem -0.75rem -0.5rem;
1014
+ ${tokens.textFieldHintTargetSize}: 2.375rem;
1015
+ ${tokens.textFieldHintInnerLabelPlacementOffset}: -0.188rem -2.1875rem auto auto;
1016
+ ${tokens.textFieldClearHintInnerLabelPlacementOffset}: -0.188rem -1.938rem auto auto;
1017
+
1018
+ ${tokens.textFieldLeftHelperOffset}: 0.25rem 0 0 0;
1019
+ ${tokens.textFieldLeftHelperFontFamily}: ${bodyXS.fontFamily};
1020
+ ${tokens.textFieldLeftHelperFontSize}: ${bodyXS.fontSize};
1021
+ ${tokens.textFieldLeftHelperFontStyle}: ${bodyXS.fontStyle};
1022
+ ${tokens.textFieldLeftHelperFontWeight}: ${bodyXS.fontWeight};
1023
+ ${tokens.textFieldLeftHelperLetterSpacing}: ${bodyXS.letterSpacing};
1024
+ ${tokens.textFieldLeftHelperLineHeight}: ${bodyXS.lineHeight};
1025
+
1026
+ ${tokens.textFieldLabelInnerPadding}: 0.3125rem 0 0 0;
1027
+ ${tokens.textFieldContentLabelInnerPadding}: 1.0625rem 0 0.3125rem 0;
1028
+
1029
+ ${tokens.textFieldIndicatorSizeInner}: 0.375rem;
1030
+ ${tokens.textFieldIndicatorSizeOuter}: 0.375rem;
1031
+ ${tokens.textFieldIndicatorLabelPlacementInner}: 0 0 0 0;
1032
+ ${tokens.textFieldIndicatorLabelPlacementOuter}: 0.25rem auto auto -0.625rem;
1033
+ ${tokens.textFieldIndicatorLabelPlacementInnerRight}: 0 0 auto auto;
1034
+ ${tokens.textFieldIndicatorLabelPlacementOuterRight}: 0.125rem -0.6875rem auto auto;
1035
+ ${tokens.textFieldClearIndicatorLabelPlacementInner}: 0.813rem auto auto -0.625rem;
1036
+ ${tokens.textFieldClearIndicatorLabelPlacementInnerRight}: 0.813rem -0.625rem auto auto;
1037
+ ${tokens.textFieldClearIndicatorHintInnerRight}: 0.813rem -1.988rem auto auto;
1038
+
1039
+ ${tokens.textFieldChipGap}: 0.25rem;
1040
+ ${tokens.textFieldChipBorderRadius}: 0.125rem;
1041
+ ${tokens.textFieldChipWidth}: auto;
1042
+ ${tokens.textFieldChipHeight}: 1.25rem;
1043
+ ${tokens.textFieldChipPadding}: 0 0.375rem 0 0.625rem;
1044
+ ${tokens.textFieldChipClearContentMarginLeft}: 0.25rem;
1045
+ ${tokens.textFieldChipClearContentMarginRight}: 0rem;
1046
+ ${tokens.textFieldChipCloseIconSize}: 0.75rem;
1047
+ ${tokens.textFieldChipFontFamily}: ${bodyXS.fontFamily};
1048
+ ${tokens.textFieldChipFontSize}: ${bodyXS.fontSize};
1049
+ ${tokens.textFieldChipFontStyle}: ${bodyXS.fontStyle};
1050
+ ${tokens.textFieldChipFontWeight}: ${bodyXS.fontWeight};
1051
+ ${tokens.textFieldChipLetterSpacing}: ${bodyXS.letterSpacing};
1052
+ ${tokens.textFieldChipLineHeight}: ${bodyXS.lineHeight};
1053
+
1054
+ ${tokens.buttonArrowMargin}: 0 -0.125rem 0 0.25rem;
1055
+ ${tokens.targetHeight}: 2rem;
1056
+ ${tokens.buttonPadding}: 0.75rem 0 0.75rem;
1057
+
1058
+ ${tokens.emptyStatePadding}: 0.5rem 0.625rem 0.5rem 0.625rem;
1059
+ ${tokens.padding}: 0.125rem;
1060
+ ${tokens.borderRadius}: 0.5rem;
1061
+
1062
+ ${tokens.itemHeight}: 1rem;
1063
+ ${tokens.itemPadding}: 0.5rem 0.375rem;
1064
+ ${tokens.itemPaddingTight}: 0.25rem 0.375rem;
1065
+ ${tokens.itemBorderRadius}: 0.375rem;
1066
+ ${tokens.itemIconSize}: 1rem;
1067
+ ${tokens.itemIconSizeTight}: 1rem;
1068
+ ${tokens.itemIconMargin}: 0 0.25rem 0 0;
1069
+ ${tokens.itemGap}: 0.25rem;
1070
+ ${tokens.itemTreeOffsetWidth}: 1.25rem;
1071
+
1072
+ ${tokens.cellPadding}: 0rem;
1073
+ ${tokens.cellPaddingLeftContent}: 0rem;
1074
+ ${tokens.cellPaddingContent}: 0rem;
1075
+ ${tokens.cellPaddingRightContent}: 0rem;
1076
+ ${tokens.cellTextboxGap}: 0.125rem;
1077
+ ${tokens.cellGap}: 0.25rem;
1078
+ ${tokens.cellTitleFontFamily}: ${bodyXS.fontFamily};
1079
+ ${tokens.cellTitleFontSize}: ${bodyXS.fontSize};
1080
+ ${tokens.cellTitleFontStyle}: ${bodyXS.fontStyle};
1081
+ ${tokens.cellTitleFontWeight}: ${bodyXS.fontWeight};
1082
+ ${tokens.cellTitleLetterSpacing}: ${bodyXS.letterSpacing};
1083
+ ${tokens.cellTitleLineHeight}: ${bodyXS.lineHeight};
1084
+
1085
+ ${tokens.fontFamily}: ${bodyXS.fontFamily};
1086
+ ${tokens.fontSize}: ${bodyXS.fontSize};
1087
+ ${tokens.fontStyle}: ${bodyXS.fontStyle};
1088
+ ${tokens.fontWeight}: ${bodyXS.fontWeight};
1089
+ ${tokens.fontLetterSpacing}: ${bodyXS.letterSpacing};
1090
+ ${tokens.fontLineHeight}: ${bodyXS.lineHeight};
1091
+
1092
+ ${tokens.checkboxTriggerSize}: 0.875rem;
1093
+ ${tokens.checkboxTriggerSizeTight}: 0.875rem;
1094
+ ${tokens.checkboxTriggerBorderRadius}: 0.25rem;
1095
+ ${tokens.checkboxTriggerBorderRadiusTight}: 0.25rem;
1096
+ ${tokens.checkboxTriggerBorderWidth}: 0.125rem;
1097
+
1098
+ ${tokens.indicatorSize}: 0.375rem;
1099
+
1100
+ ${tokens.dividerMarginTop}: 0.25rem;
1101
+ ${tokens.dividerMarginRight}: 0.5rem;
1102
+ ${tokens.dividerMarginBottom}: 0.225rem;
1103
+ ${tokens.dividerMarginLeft}: 0.5rem;
1104
+ ${tokens.dividerMarginTopTight}: 0.125rem;
1105
+ ${tokens.dividerMarginBottomTight}: 0.125rem;
1106
+ `
1107
+ },
1108
+ labelPlacement: {
1109
+ inner: css`
1110
+ ${tokens.textFieldPlaceholderColor}: ${textSecondary};
1111
+ ${tokens.textFieldLabelInnerFontFamily}: ${bodyXS.fontFamily};
1112
+ ${tokens.textFieldLabelInnerFontSize}: ${bodyXS.fontSize};
1113
+ ${tokens.textFieldLabelInnerFontStyle}: ${bodyXS.fontStyle};
1114
+ ${tokens.textFieldLabelInnerFontWeight}: ${bodyXS.fontWeight};
1115
+ ${tokens.textFieldLabelInnerLetterSpacing}: ${bodyXS.letterSpacing};
1116
+ ${tokens.textFieldLabelInnerLineHeight}: ${bodyXS.lineHeight};
1117
+ `,
1118
+ outer: css``
1119
+ },
1120
+ chipView: {
1121
+ default: css`
1122
+ ${tokens.textFieldChipColor}: ${inverseTextPrimary};
1123
+ ${tokens.textFieldChipColorHover}: ${inverseTextPrimary};
1124
+ ${tokens.textFieldChipBackground}: ${surfaceSolidDefault};
1125
+ ${tokens.textFieldChipBackgroundHover}: ${surfaceSolidDefaultHover};
1126
+ ${tokens.textFieldChipCloseIconColor}: ${inverseTextSecondary};
1127
+ ${tokens.textFieldChipCloseIconColorReadonly}: ${inverseTextSecondary};
1128
+ ${tokens.textFieldChipCloseIconColorHover}: ${inverseTextPrimary};
1129
+
1130
+ ${tokens.textFieldChipBackgroundReadOnly}: ${surfaceSolidDefault};
1131
+ ${tokens.textFieldChipColorReadOnly}: ${inverseTextPrimary};
1132
+ ${tokens.textFieldChipBackgroundReadOnlyHover}: ${surfaceSolidDefault};
1133
+ ${tokens.textFieldChipColorReadOnlyHover}: ${inverseTextPrimary};
1134
+ ${tokens.textFieldChipOpacityReadonly}: 1;
1135
+ `,
1136
+ secondary: css`
1137
+ ${tokens.textFieldChipColor}: ${textPrimary};
1138
+ ${tokens.textFieldChipColorHover}: ${textPrimary};
1139
+ ${tokens.textFieldChipBackground}: ${surfaceTransparentSecondary};
1140
+ ${tokens.textFieldChipBackgroundHover}: ${surfaceTransparentSecondaryHover};
1141
+ ${tokens.textFieldChipCloseIconColor}: ${textSecondary};
1142
+ ${tokens.textFieldChipCloseIconColorHover}: ${textSecondaryHover};
1143
+ ${tokens.textFieldChipCloseIconColorReadonly}: ${textSecondary};
1144
+
1145
+ ${tokens.textFieldChipBackgroundReadOnly}: ${surfaceTransparentSecondary};
1146
+ ${tokens.textFieldChipColorReadOnly}: ${textPrimary};
1147
+ ${tokens.textFieldChipBackgroundReadOnlyHover}: ${surfaceTransparentSecondary};
1148
+ ${tokens.textFieldChipColorReadOnlyHover}: ${textPrimary};
1149
+ ${tokens.textFieldChipOpacityReadonly}: 1;
1150
+ `,
1151
+ accent: css`
1152
+ ${tokens.textFieldChipColor}: ${onDarkTextPrimary};
1153
+ ${tokens.textFieldChipColorHover}: ${onDarkTextPrimary};
1154
+ ${tokens.textFieldChipBackground}: ${surfaceAccent};
1155
+ ${tokens.textFieldChipBackgroundHover}: ${surfaceAccentHover};
1156
+ ${tokens.textFieldChipCloseIconColor}: ${onDarkTextSecondary};
1157
+ ${tokens.textFieldChipCloseIconColorReadonly}: ${onDarkTextSecondary};
1158
+ ${tokens.textFieldChipCloseIconColorHover}: ${onDarkTextPrimary};
1159
+
1160
+ ${tokens.textFieldChipBackgroundReadOnly}: ${surfaceAccent};
1161
+ ${tokens.textFieldChipColorReadOnly}: ${onDarkTextPrimary};
1162
+ ${tokens.textFieldChipBackgroundReadOnlyHover}: ${surfaceAccent};
1163
+ ${tokens.textFieldChipColorReadOnlyHover}: ${onDarkTextPrimary};
1164
+ ${tokens.textFieldChipOpacityReadonly}: 1;
1165
+ `
1166
+ },
1167
+ hintView: {
1168
+ default: css`
1169
+ ${tokens.textFieldTooltipBackgroundColor}: ${surfaceSolidCardBrightness};
1170
+ ${tokens.textFieldTooltipBoxShadow}: var(--shadow-down-hard-m, 0px 4px 12px 0px rgba(0, 0, 0, 0.16),0px 1px 4px 0px rgba(0, 0, 0, 0.08));
1171
+ ${tokens.textFieldTooltipColor}: ${textPrimary};
1172
+ ${tokens.textFieldTooltipArrowBackground}: ${surfaceSolidCard};
1173
+ `
1174
+ },
1175
+ hintSize: {
1176
+ m: css`
1177
+ ${tokens.textFieldTooltipPaddingTop}: 0.6875rem;
1178
+ ${tokens.textFieldTooltipPaddingRight}: 0.875rem;
1179
+ ${tokens.textFieldTooltipPaddingBottom}: 0.6875rem;
1180
+ ${tokens.textFieldTooltipPaddingLeft}: 0.875rem;
1181
+
1182
+ ${tokens.textFieldTooltipMinHeight}: 2.5rem;
1183
+ ${tokens.textFieldTooltipBorderRadius}: 0.625rem;
1184
+
1185
+ ${tokens.textFieldTooltipTextFontFamily}: ${bodyS.fontFamily};
1186
+ ${tokens.textFieldTooltipTextFontSize}: ${bodyS.fontSize};
1187
+ ${tokens.textFieldTooltipTextFontStyle}: ${bodyS.fontStyle};
1188
+ ${tokens.textFieldTooltipTextFontWeight}: ${bodyS.fontWeight};
1189
+ ${tokens.textFieldTooltipTextFontLetterSpacing}: ${bodyS.letterSpacing};
1190
+ ${tokens.textFieldTooltipTextFontLineHeight}: ${bodyS.lineHeight};
1191
+
1192
+ ${tokens.textFieldTooltipContentLeftMargin}: 0.375rem;
1193
+
1194
+ ${tokens.textFieldTooltipArrowMaskWidth}: 1.25rem;
1195
+ ${tokens.textFieldTooltipArrowMaskHeight}: 1.25rem;
1196
+ ${tokens.textFieldTooltipArrowMaskImage}: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggY2xpcC1ydWxlPSJldmVub2RkIiBkPSJtMC4xNywxMS44M2wyMCwwYy01LjUyLDAgLTEwLDMuNTkgLTEwLDhjMCwtNC40MSAtNC40OCwtOCAtMTAsLTh6IiBmaWxsPSIjMTcxNzE3IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGlkPSJUYWlsIi8+Cjwvc3ZnPg==");
1197
+ ${tokens.textFieldTooltipArrowHeight}: 0.5rem;
1198
+ ${tokens.textFieldTooltipArrowEdgeMargin}: 0.625rem;
1199
+ `,
1200
+ s: css`
1201
+ ${tokens.textFieldTooltipPaddingTop}: 0.5rem;
1202
+ ${tokens.textFieldTooltipPaddingRight}: 0.75rem;
1203
+ ${tokens.textFieldTooltipPaddingBottom}: 0.5rem;
1204
+ ${tokens.textFieldTooltipPaddingLeft}: 0.75rem;
1205
+
1206
+ ${tokens.textFieldTooltipMinHeight}: 2rem;
1207
+ ${tokens.textFieldTooltipBorderRadius}: 0.5rem;
1208
+
1209
+ ${tokens.textFieldTooltipTextFontFamily}: ${bodyXS.fontFamily};
1210
+ ${tokens.textFieldTooltipTextFontSize}: ${bodyXS.fontSize};
1211
+ ${tokens.textFieldTooltipTextFontStyle}: ${bodyXS.fontStyle};
1212
+ ${tokens.textFieldTooltipTextFontWeight}: ${bodyXS.fontWeight};
1213
+ ${tokens.textFieldTooltipTextFontLetterSpacing}: ${bodyXS.letterSpacing};
1214
+ ${tokens.textFieldTooltipTextFontLineHeight}: ${bodyXS.lineHeight};
1215
+
1216
+ ${tokens.textFieldTooltipContentLeftMargin}: 0.25rem;
1217
+
1218
+ ${tokens.textFieldTooltipArrowMaskWidth}: 1rem;
1219
+ ${tokens.textFieldTooltipArrowMaskHeight}: 1rem;
1220
+ ${tokens.textFieldTooltipArrowMaskImage}: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggY2xpcC1ydWxlPSJldmVub2RkIiBkPSJtMCw5Ljg1bDE2LDBjLTQuNDEsMCAtOCwyLjY5IC04LDZjMCwtMy4zMSAtMy41OSwtNiAtOCwtNnoiIGZpbGw9IiMxNzE3MTciIGZpbGwtcnVsZT0iZXZlbm9kZCIgaWQ9IlRhaWwiLz4KPC9zdmc+");
1221
+ ${tokens.textFieldTooltipArrowHeight}: 0.375rem;
1222
+ ${tokens.textFieldTooltipArrowEdgeMargin}: 0.5625rem;
1223
+ `
1224
+ },
1225
+ disabled: {
1226
+ true: css`
1227
+ ${tokens.textFieldBackgroundColor}: transparent;
1228
+ ${tokens.textFieldBackgroundColorHover}: transparent;
1229
+ ${tokens.textFieldBackgroundColorFocus}: transparent;
1230
+ ${tokens.textFieldDisabledOpacity}: 0.4;
1231
+ `
1232
+ },
1233
+ readOnly: {
1234
+ true: css`
1235
+ ${tokens.textFieldBorderWidth}: 0;
1236
+ ${tokens.textFieldDividerColorReadOnly}: ${surfaceTransparentPrimary};
1237
+ ${tokens.disclosureIconOpacityReadOnly}: 0.4;
1238
+ ${tokens.textFieldReadOnlyOpacity}: 0.1;
1239
+ ${tokens.textFieldColorReadOnly}: ${textPrimary};
1240
+ ${tokens.textFieldBackgroundColorReadOnly}: transparent;
1241
+ ${tokens.textFieldPlaceholderColorReadOnly}: ${textSecondary};
1242
+ ${tokens.textFieldLeftHelperColorReadOnly}: ${textSecondary};
1243
+ ${tokens.textFieldTitleCaptionColorReadOnly}: ${textSecondary};
1244
+ ${tokens.textFieldLabelColorReadOnly}: ${textPrimary};
1245
+ `
1246
+ }
1247
+ }
1248
+ };