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