@salutejs/sdds-cs 0.361.0-next-sbcom.0 → 0.362.0-dev.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 (149) hide show
  1. package/dist/beta/cjs/Popover/Popover.closeInner.config.js +11 -10
  2. package/dist/beta/cjs/Popover/Popover.closeNone.config.js +5 -4
  3. package/dist/beta/cjs/Tooltip/Tooltip.config.js +16 -15
  4. package/dist/beta/es/Popover/Popover.closeInner.config.js +11 -10
  5. package/dist/beta/es/Popover/Popover.closeNone.config.js +5 -4
  6. package/dist/beta/es/Tooltip/Tooltip.config.js +16 -15
  7. package/dist/emotion/cjs/components/Accordion/Accordion.config.js +26 -25
  8. package/dist/emotion/cjs/components/Attach/Attach.config.js +121 -120
  9. package/dist/emotion/cjs/components/Autocomplete/Autocomplete.config.js +123 -122
  10. package/dist/emotion/cjs/components/Avatar/Avatar.config.js +32 -31
  11. package/dist/emotion/cjs/components/Badge/Badge.clear.config.js +5 -4
  12. package/dist/emotion/cjs/components/Badge/Badge.config.js +17 -16
  13. package/dist/emotion/cjs/components/Breadcrumbs/Breadcrumbs.config.js +11 -10
  14. package/dist/emotion/cjs/components/Button/Button.config.js +44 -43
  15. package/dist/emotion/cjs/components/Button/Button.js +3 -3
  16. package/dist/emotion/cjs/components/ButtonGroup/ButtonGroup.config.js +39 -38
  17. package/dist/emotion/cjs/components/Calendar/Calendar.config.js +60 -59
  18. package/dist/emotion/cjs/components/Calendar/CalendarDouble.config.js +60 -59
  19. package/dist/emotion/cjs/components/Card/Card.config.js +2 -1
  20. package/dist/emotion/cjs/components/Carousel/Carousel.config.js +9 -8
  21. package/dist/emotion/cjs/components/Cell/Cell.config.js +41 -40
  22. package/dist/emotion/cjs/components/Checkbox/Checkbox.config.js +22 -21
  23. package/dist/emotion/cjs/components/Chip/Chip.config.js +53 -52
  24. package/dist/emotion/cjs/components/ChipGroup/ChipGroup.config.js +28 -27
  25. package/dist/emotion/cjs/components/Combobox/Combobox.config.js +160 -159
  26. package/dist/emotion/cjs/components/DatePicker/DatePicker.config.js +169 -168
  27. package/dist/emotion/cjs/components/Divider/Divider.config.js +5 -4
  28. package/dist/emotion/cjs/components/Drawer/Drawer.config.js +3 -2
  29. package/dist/emotion/cjs/components/Dropdown/Dropdown.config.js +21 -20
  30. package/dist/emotion/cjs/components/EmptyState/EmptyState.config.js +25 -24
  31. package/dist/emotion/cjs/components/IconButton/IconButton.config.js +29 -28
  32. package/dist/emotion/cjs/components/IconButton/IconButton.js +70 -1
  33. package/dist/emotion/cjs/components/Indicator/Indicator.config.js +8 -7
  34. package/dist/emotion/cjs/components/Link/Link.config.js +53 -52
  35. package/dist/emotion/cjs/components/Modal/Modal.config.js +6 -5
  36. package/dist/emotion/cjs/components/Notification/Notification.config.js +22 -21
  37. package/dist/emotion/cjs/components/NumberInput/NumberInput.config.js +30 -29
  38. package/dist/emotion/cjs/components/Pagination/Pagination.config.js +32 -31
  39. package/dist/emotion/cjs/components/Popover/Popover.config.js +3 -2
  40. package/dist/emotion/cjs/components/Progress/Progress.config.js +101 -100
  41. package/dist/emotion/cjs/components/Radiobox/Radiobox.config.js +19 -18
  42. package/dist/emotion/cjs/components/Range/Range.config.js +70 -69
  43. package/dist/emotion/cjs/components/Rating/Rating.config.js +33 -32
  44. package/dist/emotion/cjs/components/Segment/SegmentGroup.config.js +6 -5
  45. package/dist/emotion/cjs/components/Segment/SegmentItem.config.js +29 -28
  46. package/dist/emotion/cjs/components/Select/Select.config.js +126 -125
  47. package/dist/emotion/cjs/components/Sheet/Sheet.config.js +3 -2
  48. package/dist/emotion/cjs/components/Skeleton/LineSkeleton.config.js +35 -34
  49. package/dist/emotion/cjs/components/Slider/Slider.config.js +58 -57
  50. package/dist/emotion/cjs/components/Spinner/Spinner.config.js +8 -7
  51. package/dist/emotion/cjs/components/Steps/StepItem.config.js +8 -7
  52. package/dist/emotion/cjs/components/Steps/Steps.config.js +55 -54
  53. package/dist/emotion/cjs/components/Switch/Switch.config.js +26 -25
  54. package/dist/emotion/cjs/components/Table/Table.config.js +82 -81
  55. package/dist/emotion/cjs/components/Tabs/horizontal/HorizontalTabItem.config.js +74 -73
  56. package/dist/emotion/cjs/components/Tabs/horizontal/HorizontalTabs.config.js +22 -21
  57. package/dist/emotion/cjs/components/Tabs/vertical/VerticalTabItem.config.js +33 -32
  58. package/dist/emotion/cjs/components/Tabs/vertical/VerticalTabs.config.js +14 -13
  59. package/dist/emotion/cjs/components/TextArea/TextArea.clear.config.js +131 -130
  60. package/dist/emotion/cjs/components/TextArea/TextArea.config.js +160 -159
  61. package/dist/emotion/cjs/components/TextField/TextField.clear.config.js +119 -118
  62. package/dist/emotion/cjs/components/TextField/TextField.config.js +167 -166
  63. package/dist/emotion/cjs/components/TimePicker/TimePicker.config.js +79 -78
  64. package/dist/emotion/cjs/components/Toast/Toast.config.js +19 -18
  65. package/dist/emotion/cjs/components/ToastNew/ToastNew.config.js +11 -10
  66. package/dist/emotion/cjs/components/Tooltip/Tooltip.config.js +13 -12
  67. package/dist/emotion/cjs/components/Tour/Tour.config.js +2 -1
  68. package/dist/emotion/cjs/components/Tree/Tree.config.js +22 -21
  69. package/dist/emotion/cjs/components/Typography/Body.config.js +41 -40
  70. package/dist/emotion/cjs/components/Typography/Dspl.config.js +25 -24
  71. package/dist/emotion/cjs/components/Typography/Heading.config.js +41 -40
  72. package/dist/emotion/cjs/components/Typography/Text.config.js +33 -32
  73. package/dist/emotion/es/components/Accordion/Accordion.config.js +26 -25
  74. package/dist/emotion/es/components/Attach/Attach.config.js +121 -120
  75. package/dist/emotion/es/components/Autocomplete/Autocomplete.config.js +123 -122
  76. package/dist/emotion/es/components/Avatar/Avatar.config.js +32 -31
  77. package/dist/emotion/es/components/Badge/Badge.clear.config.js +5 -4
  78. package/dist/emotion/es/components/Badge/Badge.config.js +17 -16
  79. package/dist/emotion/es/components/Breadcrumbs/Breadcrumbs.config.js +11 -10
  80. package/dist/emotion/es/components/Button/Button.config.js +44 -43
  81. package/dist/emotion/es/components/Button/Button.js +3 -3
  82. package/dist/emotion/es/components/ButtonGroup/ButtonGroup.config.js +39 -38
  83. package/dist/emotion/es/components/Calendar/Calendar.config.js +60 -59
  84. package/dist/emotion/es/components/Calendar/CalendarDouble.config.js +60 -59
  85. package/dist/emotion/es/components/Card/Card.config.js +2 -1
  86. package/dist/emotion/es/components/Carousel/Carousel.config.js +9 -8
  87. package/dist/emotion/es/components/Cell/Cell.config.js +41 -40
  88. package/dist/emotion/es/components/Checkbox/Checkbox.config.js +22 -21
  89. package/dist/emotion/es/components/Chip/Chip.config.js +53 -52
  90. package/dist/emotion/es/components/ChipGroup/ChipGroup.config.js +28 -27
  91. package/dist/emotion/es/components/Combobox/Combobox.config.js +160 -159
  92. package/dist/emotion/es/components/DatePicker/DatePicker.config.js +169 -168
  93. package/dist/emotion/es/components/Divider/Divider.config.js +5 -4
  94. package/dist/emotion/es/components/Drawer/Drawer.config.js +3 -2
  95. package/dist/emotion/es/components/Dropdown/Dropdown.config.js +21 -20
  96. package/dist/emotion/es/components/EmptyState/EmptyState.config.js +25 -24
  97. package/dist/emotion/es/components/IconButton/IconButton.config.js +29 -28
  98. package/dist/emotion/es/components/IconButton/IconButton.js +25 -2
  99. package/dist/emotion/es/components/Indicator/Indicator.config.js +8 -7
  100. package/dist/emotion/es/components/Link/Link.config.js +53 -52
  101. package/dist/emotion/es/components/Modal/Modal.config.js +6 -5
  102. package/dist/emotion/es/components/Notification/Notification.config.js +22 -21
  103. package/dist/emotion/es/components/NumberInput/NumberInput.config.js +30 -29
  104. package/dist/emotion/es/components/Pagination/Pagination.config.js +32 -31
  105. package/dist/emotion/es/components/Popover/Popover.config.js +3 -2
  106. package/dist/emotion/es/components/Progress/Progress.config.js +101 -100
  107. package/dist/emotion/es/components/Radiobox/Radiobox.config.js +19 -18
  108. package/dist/emotion/es/components/Range/Range.config.js +70 -69
  109. package/dist/emotion/es/components/Rating/Rating.config.js +33 -32
  110. package/dist/emotion/es/components/Segment/SegmentGroup.config.js +6 -5
  111. package/dist/emotion/es/components/Segment/SegmentItem.config.js +29 -28
  112. package/dist/emotion/es/components/Select/Select.config.js +126 -125
  113. package/dist/emotion/es/components/Sheet/Sheet.config.js +3 -2
  114. package/dist/emotion/es/components/Skeleton/LineSkeleton.config.js +35 -34
  115. package/dist/emotion/es/components/Slider/Slider.config.js +58 -57
  116. package/dist/emotion/es/components/Spinner/Spinner.config.js +8 -7
  117. package/dist/emotion/es/components/Steps/StepItem.config.js +8 -7
  118. package/dist/emotion/es/components/Steps/Steps.config.js +55 -54
  119. package/dist/emotion/es/components/Switch/Switch.config.js +26 -25
  120. package/dist/emotion/es/components/Table/Table.config.js +82 -81
  121. package/dist/emotion/es/components/Tabs/horizontal/HorizontalTabItem.config.js +74 -73
  122. package/dist/emotion/es/components/Tabs/horizontal/HorizontalTabs.config.js +22 -21
  123. package/dist/emotion/es/components/Tabs/vertical/VerticalTabItem.config.js +33 -32
  124. package/dist/emotion/es/components/Tabs/vertical/VerticalTabs.config.js +14 -13
  125. package/dist/emotion/es/components/TextArea/TextArea.clear.config.js +131 -130
  126. package/dist/emotion/es/components/TextArea/TextArea.config.js +160 -159
  127. package/dist/emotion/es/components/TextField/TextField.clear.config.js +119 -118
  128. package/dist/emotion/es/components/TextField/TextField.config.js +167 -166
  129. package/dist/emotion/es/components/TimePicker/TimePicker.config.js +79 -78
  130. package/dist/emotion/es/components/Toast/Toast.config.js +19 -18
  131. package/dist/emotion/es/components/ToastNew/ToastNew.config.js +11 -10
  132. package/dist/emotion/es/components/Tooltip/Tooltip.config.js +13 -12
  133. package/dist/emotion/es/components/Tour/Tour.config.js +2 -1
  134. package/dist/emotion/es/components/Tree/Tree.config.js +22 -21
  135. package/dist/emotion/es/components/Typography/Body.config.js +41 -40
  136. package/dist/emotion/es/components/Typography/Dspl.config.js +25 -24
  137. package/dist/emotion/es/components/Typography/Heading.config.js +41 -40
  138. package/dist/emotion/es/components/Typography/Text.config.js +33 -32
  139. package/package.json +8 -8
  140. package/types/components/Autocomplete/Autocomplete.d.ts +8 -0
  141. package/types/components/Avatar/Avatar.d.ts +4 -4
  142. package/types/components/Combobox/Combobox.d.ts +8 -0
  143. package/types/components/DatePicker/DatePicker.d.ts +2 -0
  144. package/types/components/IconButton/IconButton.d.ts +28 -11
  145. package/types/components/Mask/Mask.d.ts +16 -0
  146. package/types/components/Rating/Rating.d.ts +1 -0
  147. package/types/components/Select/Select.d.ts +16 -0
  148. package/types/components/TextField/TextField.d.ts +32 -0
  149. package/types/components/TimePicker/TimePicker.d.ts +2 -0
@@ -1,3 +1,4 @@
1
+ import { bodyM, bodyS, bodyXS, inverseTextPrimary, inverseTextSecondary, onDarkTextPrimary, outlineAccent, outlineNegative, outlineNegativeHover, outlineSolidPrimary, outlineSolidPrimaryHover, surfaceClear, surfaceNegative, surfaceSolidCard, surfaceSolidDefault, surfaceSolidDefaultHover, surfaceSolidPrimary, surfaceTransparentAccent, textAccent, textAccentActive, textAccentMinor, textNegative, textPrimary, textSecondary, textSecondaryActive, textSecondaryHover, textTertiary } from '@salutejs/sdds-themes/tokens/sdds_cs';
1
2
  import { css, comboboxTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
2
3
  export const config = {
3
4
  defaults: {
@@ -9,126 +10,126 @@ export const config = {
9
10
  variations: {
10
11
  view: {
11
12
  default: css`
12
- ${tokens.textFieldColor}: var(--text-primary);
13
- ${tokens.textFieldClearColor}: var(--text-primary);
14
-
15
- ${tokens.textFieldPlaceholderColor}: var(--text-secondary);
16
- ${tokens.textFieldPlaceholderColorFocus}: var(--text-tertiary);
17
- ${tokens.textFieldClearPlaceholderColor}: var(--text-secondary);
18
- ${tokens.textFieldClearPlaceholderColorFocus}: var(--text-tertiary);
19
-
20
- ${tokens.textFieldBackgroundColor}: var(--surface-solid-card);
21
- ${tokens.textFieldBackgroundColorFocus}: var(--surface-solid-card);
22
- ${tokens.textFieldCaretColor}: var(--text-accent);
23
- ${tokens.textFieldTextBeforeColor}: var(--text-secondary);
24
- ${tokens.textFieldTextAfterColor}: var(--text-secondary);
25
- ${tokens.textFieldLabelColor}: var(--text-primary);
26
- ${tokens.textFieldLeftHelperColor}: var(--text-secondary);
27
- ${tokens.textFieldFocusColor}: var(--text-accent);
28
-
29
- ${tokens.textFieldBorderColor}: var(--outline-solid-primary);
30
- ${tokens.textFieldBorderColorHover}: var(--outline-solid-primary-hover);
31
- ${tokens.textFieldBorderColorFocus}: var(--outline-accent);
32
-
33
- ${tokens.textFieldContentSlotColor}: var(--text-secondary);
34
- ${tokens.textFieldContentSlotColorHover}: var(--text-secondary-hover);
35
- ${tokens.textFieldContentSlotColorActive}: var(--text-secondary-active);
36
- ${tokens.textFieldContentSlotRightColor}: var(--text-accent);
37
- ${tokens.textFieldContentSlotRightColorHover}:var(--text-accent-minor);
38
- ${tokens.textFieldContentSlotRightColorActive}: var(--text-accent-active);
39
-
40
- ${tokens.textFieldIndicatorColor}: var(--surface-negative);
41
- ${tokens.textFieldOptionalColor}: var(--text-tertiary);
42
-
43
- ${tokens.textFieldChipCloseIconColor}: var(--text-secondary);
44
- ${tokens.textFieldChipCloseIconColorHover}: var(--text-secondary-hover);
45
- ${tokens.textFieldChipCloseIconColorReadonly}: var(--text-secondary);
46
- ${tokens.textFieldChipColor}: var(--text-primary);
13
+ ${tokens.textFieldColor}: ${textPrimary};
14
+ ${tokens.textFieldClearColor}: ${textPrimary};
15
+
16
+ ${tokens.textFieldPlaceholderColor}: ${textSecondary};
17
+ ${tokens.textFieldPlaceholderColorFocus}: ${textTertiary};
18
+ ${tokens.textFieldClearPlaceholderColor}: ${textSecondary};
19
+ ${tokens.textFieldClearPlaceholderColorFocus}: ${textTertiary};
20
+
21
+ ${tokens.textFieldBackgroundColor}: ${surfaceSolidCard};
22
+ ${tokens.textFieldBackgroundColorFocus}: ${surfaceSolidCard};
23
+ ${tokens.textFieldCaretColor}: ${textAccent};
24
+ ${tokens.textFieldTextBeforeColor}: ${textSecondary};
25
+ ${tokens.textFieldTextAfterColor}: ${textSecondary};
26
+ ${tokens.textFieldLabelColor}: ${textPrimary};
27
+ ${tokens.textFieldLeftHelperColor}: ${textSecondary};
28
+ ${tokens.textFieldFocusColor}: ${textAccent};
29
+
30
+ ${tokens.textFieldBorderColor}: ${outlineSolidPrimary};
31
+ ${tokens.textFieldBorderColorHover}: ${outlineSolidPrimaryHover};
32
+ ${tokens.textFieldBorderColorFocus}: ${outlineAccent};
33
+
34
+ ${tokens.textFieldContentSlotColor}: ${textSecondary};
35
+ ${tokens.textFieldContentSlotColorHover}: ${textSecondaryHover};
36
+ ${tokens.textFieldContentSlotColorActive}: ${textSecondaryActive};
37
+ ${tokens.textFieldContentSlotRightColor}: ${textAccent};
38
+ ${tokens.textFieldContentSlotRightColorHover}:${textAccentMinor};
39
+ ${tokens.textFieldContentSlotRightColorActive}: ${textAccentActive};
40
+
41
+ ${tokens.textFieldIndicatorColor}: ${surfaceNegative};
42
+ ${tokens.textFieldOptionalColor}: ${textTertiary};
43
+
44
+ ${tokens.textFieldChipCloseIconColor}: ${textSecondary};
45
+ ${tokens.textFieldChipCloseIconColorHover}: ${textSecondaryHover};
46
+ ${tokens.textFieldChipCloseIconColorReadonly}: ${textSecondary};
47
+ ${tokens.textFieldChipColor}: ${textPrimary};
47
48
  ${tokens.textFieldChipBackground}: var(--surface-transparent-secondary);
48
- ${tokens.textFieldChipColorHover}: var(--text-primary);
49
+ ${tokens.textFieldChipColorHover}: ${textPrimary};
49
50
  ${tokens.textFieldChipBackgroundHover}: var(--surface-transparent-secondary-hover);
50
- ${tokens.textFieldChipColorActive}: var(--text-primary);
51
+ ${tokens.textFieldChipColorActive}: ${textPrimary};
51
52
  ${tokens.textFieldChipBackgroundActive}: var(--surface-transparent-secondary-active);
52
53
  ${tokens.textFieldChipBackgroundReadOnly}: var(--surface-transparent-secondary);
53
- ${tokens.textFieldChipColorReadOnly}: var(--text-primary);
54
+ ${tokens.textFieldChipColorReadOnly}: ${textPrimary};
54
55
  ${tokens.textFieldChipBackgroundReadOnlyHover}: var(--surface-transparent-secondary);
55
- ${tokens.textFieldChipColorReadOnlyHover}: var(--text-primary);
56
+ ${tokens.textFieldChipColorReadOnlyHover}: ${textPrimary};
56
57
  ${tokens.textFieldChipOpacityReadonly}: 0.72;
57
- ${tokens.dropdownBorderColor}: var(--surface-solid-primary);
58
+ ${tokens.dropdownBorderColor}: ${surfaceSolidPrimary};
58
59
 
59
- ${tokens.disclosureIconColor}: var(--text-accent);
60
- ${tokens.disclosureIconColorHover}: var(--text-accent-minor);
61
- ${tokens.itemBackgroundHover}: var(--surface-transparent-accent);
60
+ ${tokens.disclosureIconColor}: ${textAccent};
61
+ ${tokens.disclosureIconColorHover}: ${textAccentMinor};
62
+ ${tokens.itemBackgroundHover}: ${surfaceTransparentAccent};
62
63
 
63
- ${tokens.dividerColor}: var(--surface-solid-primary);
64
+ ${tokens.dividerColor}: ${surfaceSolidPrimary};
64
65
 
65
- ${tokens.itemIconColor}: var(--text-accent);
66
+ ${tokens.itemIconColor}: ${textAccent};
66
67
 
67
- ${tokens.checkboxFillColor}: var(--text-accent);
68
- ${tokens.checkboxIconColor}: var(--on-dark-text-primary);
68
+ ${tokens.checkboxFillColor}: ${textAccent};
69
+ ${tokens.checkboxIconColor}: ${onDarkTextPrimary};
69
70
  ${tokens.checkboxTriggerBorderCheckedColor}: none;
70
- ${tokens.checkboxTriggerBorderColor}: var(--outline-accent);
71
+ ${tokens.checkboxTriggerBorderColor}: ${outlineAccent};
71
72
  `,
72
73
  negative: css`
73
- ${tokens.textFieldColor}: var(--text-primary);
74
- ${tokens.textFieldClearColor}: var(--text-primary);
75
-
76
- ${tokens.textFieldPlaceholderColor}: var(--text-secondary);
77
- ${tokens.textFieldPlaceholderColorFocus}: var(--text-tertiary);
78
- ${tokens.textFieldClearPlaceholderColor}: var(--text-secondary);
79
- ${tokens.textFieldClearPlaceholderColorFocus}: var(--text-tertiary);
80
-
81
- ${tokens.textFieldBackgroundColor}: var(--surface-solid-card);
82
- ${tokens.textFieldBackgroundColorFocus}: var(--surface-solid-card);
83
- ${tokens.textFieldCaretColor}: var(--text-accent);
84
- ${tokens.textFieldTextBeforeColor}: var(--text-secondary);
85
- ${tokens.textFieldTextAfterColor}: var(--text-secondary);
86
- ${tokens.textFieldLabelColor}: var(--text-primary);
87
- ${tokens.textFieldLeftHelperColor}: var(--text-negative);
88
- ${tokens.textFieldFocusColor}: var(--text-accent);
89
-
90
- ${tokens.textFieldBorderColor}: var(--outline-negative);
91
- ${tokens.textFieldBorderColorHover}: var(--outline-negative-hover);
92
- ${tokens.textFieldBorderColorFocus}: var(--outline-accent);
93
-
94
- ${tokens.textFieldContentSlotColor}: var(--text-secondary);
95
- ${tokens.textFieldContentSlotColorHover}: var(--text-secondary-hover);
96
- ${tokens.textFieldContentSlotColorActive}: var(--text-secondary-active);
97
- ${tokens.textFieldContentSlotRightColor}: var(--text-accent);
98
- ${tokens.textFieldContentSlotRightColorHover}: var(--text-accent-minor);
99
- ${tokens.textFieldContentSlotRightColorActive}: var(--text-accent-active);
100
-
101
- ${tokens.textFieldIndicatorColor}: var(--surface-negative);
102
- ${tokens.textFieldOptionalColor}: var(--text-tertiary);
103
-
104
- ${tokens.textFieldChipCloseIconColor}: var(--text-secondary);
105
- ${tokens.textFieldChipCloseIconColorHover}: var(--text-secondary-hover);
106
- ${tokens.textFieldChipCloseIconColorReadonly}: var(--text-secondary);
107
- ${tokens.textFieldChipColor}: var(--text-primary);
74
+ ${tokens.textFieldColor}: ${textPrimary};
75
+ ${tokens.textFieldClearColor}: ${textPrimary};
76
+
77
+ ${tokens.textFieldPlaceholderColor}: ${textSecondary};
78
+ ${tokens.textFieldPlaceholderColorFocus}: ${textTertiary};
79
+ ${tokens.textFieldClearPlaceholderColor}: ${textSecondary};
80
+ ${tokens.textFieldClearPlaceholderColorFocus}: ${textTertiary};
81
+
82
+ ${tokens.textFieldBackgroundColor}: ${surfaceSolidCard};
83
+ ${tokens.textFieldBackgroundColorFocus}: ${surfaceSolidCard};
84
+ ${tokens.textFieldCaretColor}: ${textAccent};
85
+ ${tokens.textFieldTextBeforeColor}: ${textSecondary};
86
+ ${tokens.textFieldTextAfterColor}: ${textSecondary};
87
+ ${tokens.textFieldLabelColor}: ${textPrimary};
88
+ ${tokens.textFieldLeftHelperColor}: ${textNegative};
89
+ ${tokens.textFieldFocusColor}: ${textAccent};
90
+
91
+ ${tokens.textFieldBorderColor}: ${outlineNegative};
92
+ ${tokens.textFieldBorderColorHover}: ${outlineNegativeHover};
93
+ ${tokens.textFieldBorderColorFocus}: ${outlineAccent};
94
+
95
+ ${tokens.textFieldContentSlotColor}: ${textSecondary};
96
+ ${tokens.textFieldContentSlotColorHover}: ${textSecondaryHover};
97
+ ${tokens.textFieldContentSlotColorActive}: ${textSecondaryActive};
98
+ ${tokens.textFieldContentSlotRightColor}: ${textAccent};
99
+ ${tokens.textFieldContentSlotRightColorHover}: ${textAccentMinor};
100
+ ${tokens.textFieldContentSlotRightColorActive}: ${textAccentActive};
101
+
102
+ ${tokens.textFieldIndicatorColor}: ${surfaceNegative};
103
+ ${tokens.textFieldOptionalColor}: ${textTertiary};
104
+
105
+ ${tokens.textFieldChipCloseIconColor}: ${textSecondary};
106
+ ${tokens.textFieldChipCloseIconColorHover}: ${textSecondaryHover};
107
+ ${tokens.textFieldChipCloseIconColorReadonly}: ${textSecondary};
108
+ ${tokens.textFieldChipColor}: ${textPrimary};
108
109
  ${tokens.textFieldChipBackground}: var(--surface-transparent-secondary);
109
- ${tokens.textFieldChipColorHover}: var(--text-primary);
110
+ ${tokens.textFieldChipColorHover}: ${textPrimary};
110
111
  ${tokens.textFieldChipBackgroundHover}: var(--surface-transparent-secondary-hover);
111
- ${tokens.textFieldChipColorActive}: var(--text-primary);
112
+ ${tokens.textFieldChipColorActive}: ${textPrimary};
112
113
  ${tokens.textFieldChipBackgroundActive}: var(--surface-transparent-secondary-active);
113
114
  ${tokens.textFieldChipBackgroundReadOnly}: var(--surface-transparent-secondary);
114
- ${tokens.textFieldChipColorReadOnly}: var(--text-primary);
115
+ ${tokens.textFieldChipColorReadOnly}: ${textPrimary};
115
116
  ${tokens.textFieldChipBackgroundReadOnlyHover}: var(--surface-transparent-secondary);
116
- ${tokens.textFieldChipColorReadOnlyHover}: var(--text-primary);
117
+ ${tokens.textFieldChipColorReadOnlyHover}: ${textPrimary};
117
118
  ${tokens.textFieldChipOpacityReadonly}: 0.72;
118
- ${tokens.dropdownBorderColor}: var(--surface-solid-primary);
119
+ ${tokens.dropdownBorderColor}: ${surfaceSolidPrimary};
119
120
 
120
- ${tokens.disclosureIconColor}: var(--text-accent);
121
- ${tokens.disclosureIconColorHover}: var(--text-accent-minor);
122
- ${tokens.itemBackgroundHover}: var(--surface-transparent-accent);
121
+ ${tokens.disclosureIconColor}: ${textAccent};
122
+ ${tokens.disclosureIconColorHover}: ${textAccentMinor};
123
+ ${tokens.itemBackgroundHover}: ${surfaceTransparentAccent};
123
124
 
124
- ${tokens.dividerColor}: var(--surface-solid-primary);
125
+ ${tokens.dividerColor}: ${surfaceSolidPrimary};
125
126
 
126
- ${tokens.itemIconColor}: var(--text-accent);
127
+ ${tokens.itemIconColor}: ${textAccent};
127
128
 
128
- ${tokens.checkboxFillColor}: var(--text-accent);
129
- ${tokens.checkboxIconColor}: var(--on-dark-text-primary);
129
+ ${tokens.checkboxFillColor}: ${textAccent};
130
+ ${tokens.checkboxIconColor}: ${onDarkTextPrimary};
130
131
  ${tokens.checkboxTriggerBorderCheckedColor}: none;
131
- ${tokens.checkboxTriggerBorderColor}: var(--outline-accent);
132
+ ${tokens.checkboxTriggerBorderColor}: ${outlineAccent};
132
133
  `
133
134
  },
134
135
  size: {
@@ -145,28 +146,28 @@ export const config = {
145
146
  ${tokens.textFieldTextBeforeMargin}: 0 0.25rem 0 0;
146
147
  ${tokens.textFieldTextAfterMargin}: 0 0 0 0.25rem;
147
148
 
148
- ${tokens.textFieldFontFamily}: var(--plasma-typo-body-m-font-family);
149
- ${tokens.textFieldFontSize}: var(--plasma-typo-body-m-font-size);
150
- ${tokens.textFieldFontStyle}: var(--plasma-typo-body-m-font-style);
151
- ${tokens.textFieldFontWeight}: var(--plasma-typo-body-m-font-weight);
152
- ${tokens.textFieldLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
153
- ${tokens.textFieldLineHeight}: var(--plasma-typo-body-m-line-height);
149
+ ${tokens.textFieldFontFamily}: ${bodyM.fontFamily};
150
+ ${tokens.textFieldFontSize}: ${bodyM.fontSize};
151
+ ${tokens.textFieldFontStyle}: ${bodyM.fontStyle};
152
+ ${tokens.textFieldFontWeight}: ${bodyM.fontWeight};
153
+ ${tokens.textFieldLetterSpacing}: ${bodyM.letterSpacing};
154
+ ${tokens.textFieldLineHeight}: ${bodyM.lineHeight};
154
155
 
155
156
  ${tokens.textFieldLabelOffset}: 0.5rem;
156
- ${tokens.textFieldLabelFontFamily}: var(--plasma-typo-body-s-font-family);
157
- ${tokens.textFieldLabelFontSize}: var(--plasma-typo-body-s-font-size);
158
- ${tokens.textFieldLabelFontStyle}: var(--plasma-typo-body-s-font-style);
159
- ${tokens.textFieldLabelFontWeight}: var(--plasma-typo-body-s-font-weight);
160
- ${tokens.textFieldLabelLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
161
- ${tokens.textFieldLabelLineHeight}: var(--plasma-typo-body-s-line-height);
162
-
163
- ${tokens.textFieldLeftHelperPadding}: 0.25rem 0 0 0;
164
- ${tokens.textFieldLeftHelperFontFamily}: var(--plasma-typo-body-s-font-family);
165
- ${tokens.textFieldLeftHelperFontSize}: var(--plasma-typo-body-s-font-size);
166
- ${tokens.textFieldLeftHelperFontStyle}: var(--plasma-typo-body-s-font-style);
167
- ${tokens.textFieldLeftHelperFontWeight}: var(--plasma-typo-body-s-font-weight);
168
- ${tokens.textFieldLeftHelperLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
169
- ${tokens.textFieldLeftHelperLineHeight}: var(--plasma-typo-body-s-line-height);
157
+ ${tokens.textFieldLabelFontFamily}: ${bodyS.fontFamily};
158
+ ${tokens.textFieldLabelFontSize}: ${bodyS.fontSize};
159
+ ${tokens.textFieldLabelFontStyle}: ${bodyS.fontStyle};
160
+ ${tokens.textFieldLabelFontWeight}: ${bodyS.fontWeight};
161
+ ${tokens.textFieldLabelLetterSpacing}: ${bodyS.letterSpacing};
162
+ ${tokens.textFieldLabelLineHeight}: ${bodyS.lineHeight};
163
+
164
+ ${tokens.textFieldLeftHelperOffset}: 0.25rem 0 0 0;
165
+ ${tokens.textFieldLeftHelperFontFamily}: ${bodyS.fontFamily};
166
+ ${tokens.textFieldLeftHelperFontSize}: ${bodyS.fontSize};
167
+ ${tokens.textFieldLeftHelperFontStyle}: ${bodyS.fontStyle};
168
+ ${tokens.textFieldLeftHelperFontWeight}: ${bodyS.fontWeight};
169
+ ${tokens.textFieldLeftHelperLetterSpacing}: ${bodyS.letterSpacing};
170
+ ${tokens.textFieldLeftHelperLineHeight}: ${bodyS.lineHeight};
170
171
 
171
172
  ${tokens.textFieldLabelInnerPadding}: 0.3125rem 0 0 0;
172
173
  ${tokens.textFieldContentLabelInnerPadding}: 1.0625rem 0 0.3125rem 0;
@@ -189,12 +190,12 @@ export const config = {
189
190
  ${tokens.textFieldChipClearContentMarginLeft}: 0.375rem;
190
191
  ${tokens.textFieldChipClearContentMarginRight}: 0rem;
191
192
  ${tokens.textFieldChipCloseIconSize}: 1rem;
192
- ${tokens.textFieldChipFontFamily}: var(--plasma-typo-body-s-font-family);
193
- ${tokens.textFieldChipFontSize}: var(--plasma-typo-body-s-font-size);
194
- ${tokens.textFieldChipFontStyle}: var(--plasma-typo-body-s-font-style);
195
- ${tokens.textFieldChipFontWeight}: var(--plasma-typo-body-s-font-weight);
196
- ${tokens.textFieldChipLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
197
- ${tokens.textFieldChipLineHeight}: var(--plasma-typo-body-s-line-height);
193
+ ${tokens.textFieldChipFontFamily}: ${bodyS.fontFamily};
194
+ ${tokens.textFieldChipFontSize}: ${bodyS.fontSize};
195
+ ${tokens.textFieldChipFontStyle}: ${bodyS.fontStyle};
196
+ ${tokens.textFieldChipFontWeight}: ${bodyS.fontWeight};
197
+ ${tokens.textFieldChipLetterSpacing}: ${bodyS.letterSpacing};
198
+ ${tokens.textFieldChipLineHeight}: ${bodyS.lineHeight};
198
199
 
199
200
  ${tokens.emptyStatePadding}: 0.625rem 0.875rem 0.625rem 0.875rem;
200
201
  ${tokens.padding}: 0.125rem;
@@ -208,12 +209,12 @@ export const config = {
208
209
  ${tokens.itemIconSizeTight}: 1rem;
209
210
  ${tokens.itemIconMargin}: 0 0.375rem 0 0;
210
211
 
211
- ${tokens.fontFamily}: var(--plasma-typo-body-m-font-family);
212
- ${tokens.fontSize}: var(--plasma-typo-body-m-font-size);
213
- ${tokens.fontStyle}: var(--plasma-typo-body-m-font-style);
214
- ${tokens.fontWeight}: var(--plasma-typo-body-m-font-weight);
215
- ${tokens.fontLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
216
- ${tokens.fontLineHeight}: var(--plasma-typo-body-m-line-height);
212
+ ${tokens.fontFamily}: ${bodyM.fontFamily};
213
+ ${tokens.fontSize}: ${bodyM.fontSize};
214
+ ${tokens.fontStyle}: ${bodyM.fontStyle};
215
+ ${tokens.fontWeight}: ${bodyM.fontWeight};
216
+ ${tokens.fontLetterSpacing}: ${bodyM.letterSpacing};
217
+ ${tokens.fontLineHeight}: ${bodyM.lineHeight};
217
218
 
218
219
  ${tokens.cellPadding}: 0rem;
219
220
  ${tokens.cellPaddingLeftContent}: 0rem;
@@ -221,12 +222,12 @@ export const config = {
221
222
  ${tokens.cellPaddingRightContent}: 0rem;
222
223
  ${tokens.cellTextboxGap}: 0.125rem;
223
224
  ${tokens.cellGap}: 0.375rem;
224
- ${tokens.cellTitleFontFamily}: var(--plasma-typo-body-m-font-family);
225
- ${tokens.cellTitleFontSize}: var(--plasma-typo-body-m-font-size);
226
- ${tokens.cellTitleFontStyle}: var(--plasma-typo-body-m-font-style);
227
- ${tokens.cellTitleFontWeight}: var(--plasma-typo-body-m-font-weight);
228
- ${tokens.cellTitleLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
229
- ${tokens.cellTitleLineHeight}: var(--plasma-typo-body-m-line-height);
225
+ ${tokens.cellTitleFontFamily}: ${bodyM.fontFamily};
226
+ ${tokens.cellTitleFontSize}: ${bodyM.fontSize};
227
+ ${tokens.cellTitleFontStyle}: ${bodyM.fontStyle};
228
+ ${tokens.cellTitleFontWeight}: ${bodyM.fontWeight};
229
+ ${tokens.cellTitleLetterSpacing}: ${bodyM.letterSpacing};
230
+ ${tokens.cellTitleLineHeight}: ${bodyM.lineHeight};
230
231
 
231
232
  ${tokens.checkboxTriggerSize}: 1.25rem;
232
233
  ${tokens.checkboxTriggerSizeTight}: 0.875rem;
@@ -248,50 +249,50 @@ export const config = {
248
249
  labelPlacement: {
249
250
  inner: css`
250
251
  ${tokens.textFieldPlaceholderColor}: var(--plasma-input-label-color, var(--plasma-input-placeholder-color, var(--plasma-colors-secondary)));
251
- ${tokens.textFieldLabelInnerFontFamily}: var(--plasma-typo-body-xs-font-family);
252
- ${tokens.textFieldLabelInnerFontSize}: var(--plasma-typo-body-xs-font-size);
253
- ${tokens.textFieldLabelInnerFontStyle}: var(--plasma-typo-body-xs-font-style);
254
- ${tokens.textFieldLabelInnerFontWeight}: var(--plasma-typo-body-xs-font-weight);
255
- ${tokens.textFieldLabelInnerLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
256
- ${tokens.textFieldLabelInnerLineHeight}: var(--plasma-typo-body-xs-line-height);
252
+ ${tokens.textFieldLabelInnerFontFamily}: ${bodyXS.fontFamily};
253
+ ${tokens.textFieldLabelInnerFontSize}: ${bodyXS.fontSize};
254
+ ${tokens.textFieldLabelInnerFontStyle}: ${bodyXS.fontStyle};
255
+ ${tokens.textFieldLabelInnerFontWeight}: ${bodyXS.fontWeight};
256
+ ${tokens.textFieldLabelInnerLetterSpacing}: ${bodyXS.letterSpacing};
257
+ ${tokens.textFieldLabelInnerLineHeight}: ${bodyXS.lineHeight};
257
258
  `,
258
259
  outer: css``
259
260
  },
260
261
  chipView: {
261
262
  default: css`
262
- ${tokens.textFieldChipColor}: var(--inverse-text-primary);
263
- ${tokens.textFieldChipColorHover}: var(--inverse-text-primary);
264
- ${tokens.textFieldChipBackground}: var(--surface-solid-default);
265
- ${tokens.textFieldChipBackgroundHover}: var(--surface-solid-default-hover);
266
- ${tokens.textFieldChipCloseIconColor}: var(--inverse-text-secondary);
267
- ${tokens.textFieldChipCloseIconColorHover}: var(--inverse-text-primary);
263
+ ${tokens.textFieldChipColor}: ${inverseTextPrimary};
264
+ ${tokens.textFieldChipColorHover}: ${inverseTextPrimary};
265
+ ${tokens.textFieldChipBackground}: ${surfaceSolidDefault};
266
+ ${tokens.textFieldChipBackgroundHover}: ${surfaceSolidDefaultHover};
267
+ ${tokens.textFieldChipCloseIconColor}: ${inverseTextSecondary};
268
+ ${tokens.textFieldChipCloseIconColorHover}: ${inverseTextPrimary};
268
269
  ${tokens.textFieldChipOpacityReadonly}: 1;
269
270
  `
270
271
  },
271
272
  disabled: {
272
273
  true: css`
273
274
  ${tokens.textFieldDisabledOpacity}: 1;
274
- ${tokens.textFieldBackgroundColor}: var(--surface-solid-primary);
275
- ${tokens.textFieldBackgroundColorFocus}: var(--surface-solid-primary);
276
- ${tokens.textFieldBorderColor}: var(--surface-solid-primary);
277
- ${tokens.textFieldBorderColorHover}: var(--surface-solid-primary);
278
- ${tokens.textFieldBorderColorFocus}: var(--surface-solid-primary);
279
- ${tokens.textFieldColor}: var(--text-secondary);
275
+ ${tokens.textFieldBackgroundColor}: ${surfaceSolidPrimary};
276
+ ${tokens.textFieldBackgroundColorFocus}: ${surfaceSolidPrimary};
277
+ ${tokens.textFieldBorderColor}: ${surfaceSolidPrimary};
278
+ ${tokens.textFieldBorderColorHover}: ${surfaceSolidPrimary};
279
+ ${tokens.textFieldBorderColorFocus}: ${surfaceSolidPrimary};
280
+ ${tokens.textFieldColor}: ${textSecondary};
280
281
  `
281
282
  },
282
283
  readOnly: {
283
284
  true: css`
284
- ${tokens.textFieldColorReadOnly}: var(--text-primary);
285
- ${tokens.textFieldBackgroundColorReadOnly}: var(--surface-clear);
286
- ${tokens.textFieldPlaceholderColorReadOnly}: var(--text-secondary);
287
- ${tokens.textFieldLeftHelperColorReadOnly}: var(--text-secondary);
288
- ${tokens.textFieldLabelColorReadOnly}: var(--text-secondary);
289
- ${tokens.textFieldColor}: var(--text-primary);
285
+ ${tokens.textFieldColorReadOnly}: ${textPrimary};
286
+ ${tokens.textFieldBackgroundColorReadOnly}: ${surfaceClear};
287
+ ${tokens.textFieldPlaceholderColorReadOnly}: ${textSecondary};
288
+ ${tokens.textFieldLeftHelperColorReadOnly}: ${textSecondary};
289
+ ${tokens.textFieldLabelColorReadOnly}: ${textSecondary};
290
+ ${tokens.textFieldColor}: ${textPrimary};
290
291
  ${tokens.disclosureIconColor}: transparent;
291
292
  ${tokens.disclosureIconColorHover}: transparent;
292
293
  ${tokens.textFieldPadding}: 0;
293
294
  ${tokens.textFieldLabelOffset}: 0.25rem;
294
- ${tokens.textFieldLeftHelperPadding}: 0rem 0 0 0;
295
+ ${tokens.textFieldLeftHelperOffset}: 0rem 0 0 0;
295
296
  ${tokens.textFieldBorderColor}: transparent;
296
297
  ${tokens.textFieldBorderWidth}: 0;
297
298
  `