@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, outlineAccent, outlineNegative, outlineNegativeHover, outlineSolidPrimary, outlineSolidPrimaryHover, surfaceAccent, surfaceClear, surfaceSolidCard, surfaceSolidCardActive, surfaceSolidCardBrightness, surfaceSolidCardHover, surfaceSolidDefault, surfaceSolidDefaultActive, surfaceSolidDefaultHover, surfaceSolidPrimary, surfaceSolidPrimaryActive, surfaceSolidPrimaryHover, textAccent, textNegative, textNegativeHover, textPrimary, textSecondary } from '@salutejs/sdds-themes/tokens/sdds_cs';
1
2
  import { css, textAreaTokens } from '@salutejs/plasma-new-hope/emotion';
2
3
  export const config = {
3
4
  defaults: {
@@ -8,114 +9,114 @@ export const config = {
8
9
  variations: {
9
10
  view: {
10
11
  default: css`
11
- ${textAreaTokens.borderColor}: var(--outline-solid-primary);
12
- ${textAreaTokens.borderColorHover}: var(--outline-solid-primary-hover);
13
- ${textAreaTokens.borderColorFocus}: var(--outline-accent);
14
- ${textAreaTokens.backgroundColor}: var(--surface-solid-card);
15
- ${textAreaTokens.backgroundColorHover}: var(--surface-solid-card-hover);
16
- ${textAreaTokens.backgroundColorActive}: var(--surface-solid-card-active);
17
- ${textAreaTokens.backgroundColorFocus}: var(--surface-solid-card);
18
-
19
- ${textAreaTokens.inputColor}: var(--text-primary);
20
- ${textAreaTokens.inputColorFocus}: var(--text-primary);
21
- ${textAreaTokens.inputCaretColor}: var(--text-accent);
22
-
23
- ${textAreaTokens.placeholderColor}: var(--text-secondary);
24
- ${textAreaTokens.placeholderColorFocus}: var(--text-secondary);
25
-
26
- ${textAreaTokens.leftHelperColor}: var(--text-secondary);
27
- ${textAreaTokens.rightHelperColor}: var(--text-secondary);
28
-
29
- ${textAreaTokens.rightContentColor}: var(--text-accent);
30
-
31
- ${textAreaTokens.indicatorColor}: var(--text-negative);
32
- ${textAreaTokens.optionalColor}: var(--text-secondary);
33
-
34
- ${textAreaTokens.scrollbarThumbBackgroundColor}: var(--surface-solid-default);
35
- ${textAreaTokens.scrollbarThumbBackgroundColorHover}: var(--surface-solid-default-hover);
36
- ${textAreaTokens.scrollbarThumbBackgroundColorActive}: var(--surface-solid-default-active);
37
- ${textAreaTokens.scrollbarTrackBackgroundColor}: var(--surface-solid-primary);
38
- ${textAreaTokens.scrollbarTrackBackgroundColorActive}: var(--surface-solid-primary-active);
39
- ${textAreaTokens.scrollbarTrackBackgroundColorHover}: var(--surface-solid-primary-hover);
40
-
41
- ${textAreaTokens.dividerColor}: var(--outline-solid-primary);
42
- ${textAreaTokens.dividerColorHover}: var(--text-secondary);
43
- ${textAreaTokens.dividerColorFocus}: var(--surface-accent);
44
- ${textAreaTokens.titleCaptionColor}: var(--text-secondary);
45
- ${textAreaTokens.hintIconColor}: var(--text-secondary);
12
+ ${textAreaTokens.borderColor}: ${outlineSolidPrimary};
13
+ ${textAreaTokens.borderColorHover}: ${outlineSolidPrimaryHover};
14
+ ${textAreaTokens.borderColorFocus}: ${outlineAccent};
15
+ ${textAreaTokens.backgroundColor}: ${surfaceSolidCard};
16
+ ${textAreaTokens.backgroundColorHover}: ${surfaceSolidCardHover};
17
+ ${textAreaTokens.backgroundColorActive}: ${surfaceSolidCardActive};
18
+ ${textAreaTokens.backgroundColorFocus}: ${surfaceSolidCard};
19
+
20
+ ${textAreaTokens.inputColor}: ${textPrimary};
21
+ ${textAreaTokens.inputColorFocus}: ${textPrimary};
22
+ ${textAreaTokens.inputCaretColor}: ${textAccent};
23
+
24
+ ${textAreaTokens.placeholderColor}: ${textSecondary};
25
+ ${textAreaTokens.placeholderColorFocus}: ${textSecondary};
26
+
27
+ ${textAreaTokens.leftHelperColor}: ${textSecondary};
28
+ ${textAreaTokens.rightHelperColor}: ${textSecondary};
29
+
30
+ ${textAreaTokens.rightContentColor}: ${textAccent};
31
+
32
+ ${textAreaTokens.indicatorColor}: ${textNegative};
33
+ ${textAreaTokens.optionalColor}: ${textSecondary};
34
+
35
+ ${textAreaTokens.scrollbarThumbBackgroundColor}: ${surfaceSolidDefault};
36
+ ${textAreaTokens.scrollbarThumbBackgroundColorHover}: ${surfaceSolidDefaultHover};
37
+ ${textAreaTokens.scrollbarThumbBackgroundColorActive}: ${surfaceSolidDefaultActive};
38
+ ${textAreaTokens.scrollbarTrackBackgroundColor}: ${surfaceSolidPrimary};
39
+ ${textAreaTokens.scrollbarTrackBackgroundColorActive}: ${surfaceSolidPrimaryActive};
40
+ ${textAreaTokens.scrollbarTrackBackgroundColorHover}: ${surfaceSolidPrimaryHover};
41
+
42
+ ${textAreaTokens.dividerColor}: ${outlineSolidPrimary};
43
+ ${textAreaTokens.dividerColorHover}: ${textSecondary};
44
+ ${textAreaTokens.dividerColorFocus}: ${surfaceAccent};
45
+ ${textAreaTokens.titleCaptionColor}: ${textSecondary};
46
+ ${textAreaTokens.hintIconColor}: ${textSecondary};
46
47
  `,
47
48
  /**
48
49
  * @deprecated
49
50
  * использовать `default`
50
51
  */ primary: css`
51
- ${textAreaTokens.borderColor}: var(--outline-solid-primary);
52
- ${textAreaTokens.borderColorHover}: var(--outline-solid-primary-hover);
53
- ${textAreaTokens.borderColorFocus}: var(--outline-accent);
54
- ${textAreaTokens.backgroundColor}: var(--surface-solid-card);
55
- ${textAreaTokens.backgroundColorHover}: var(--surface-solid-card-hover);
56
- ${textAreaTokens.backgroundColorActive}: var(--surface-solid-card-active);
57
- ${textAreaTokens.backgroundColorFocus}: var(--surface-solid-card);
58
- ${textAreaTokens.inputColor}: var(--text-primary);
59
- ${textAreaTokens.inputColorFocus}: var(--text-primary);
60
- ${textAreaTokens.inputCaretColor}: var(--text-accent);
61
- ${textAreaTokens.placeholderColor}: var(--text-secondary);
62
- ${textAreaTokens.placeholderColorFocus}: var(--text-secondary);
63
-
64
- ${textAreaTokens.leftHelperColor}: var(--text-secondary);
65
- ${textAreaTokens.rightHelperColor}: var(--text-secondary);
66
- ${textAreaTokens.indicatorColor}: var(--text-negative);
67
- ${textAreaTokens.optionalColor}: var(--text-secondary);
68
- ${textAreaTokens.rightContentColor}: var(--text-accent);
69
-
70
- ${textAreaTokens.scrollbarThumbBackgroundColor}: var(--surface-solid-default);
71
- ${textAreaTokens.scrollbarThumbBackgroundColorHover}: var(--surface-solid-default-hover);
72
- ${textAreaTokens.scrollbarThumbBackgroundColorActive}: var(--surface-solid-default-active);
73
- ${textAreaTokens.scrollbarTrackBackgroundColor}: var(--surface-solid-primary);
74
- ${textAreaTokens.scrollbarTrackBackgroundColorActive}: var(--surface-solid-primary-active);
75
- ${textAreaTokens.scrollbarTrackBackgroundColorHover}: var(--surface-solid-primary-hover);
76
-
77
- ${textAreaTokens.dividerColor}: var(--outline-solid-primary);
78
- ${textAreaTokens.dividerColorHover}: var(--text-secondary);
79
- ${textAreaTokens.dividerColorFocus}: var(--surface-accent);
80
- ${textAreaTokens.titleCaptionColor}: var(--text-secondary);
81
- ${textAreaTokens.hintIconColor}: var(--text-secondary);
52
+ ${textAreaTokens.borderColor}: ${outlineSolidPrimary};
53
+ ${textAreaTokens.borderColorHover}: ${outlineSolidPrimaryHover};
54
+ ${textAreaTokens.borderColorFocus}: ${outlineAccent};
55
+ ${textAreaTokens.backgroundColor}: ${surfaceSolidCard};
56
+ ${textAreaTokens.backgroundColorHover}: ${surfaceSolidCardHover};
57
+ ${textAreaTokens.backgroundColorActive}: ${surfaceSolidCardActive};
58
+ ${textAreaTokens.backgroundColorFocus}: ${surfaceSolidCard};
59
+ ${textAreaTokens.inputColor}: ${textPrimary};
60
+ ${textAreaTokens.inputColorFocus}: ${textPrimary};
61
+ ${textAreaTokens.inputCaretColor}: ${textAccent};
62
+ ${textAreaTokens.placeholderColor}: ${textSecondary};
63
+ ${textAreaTokens.placeholderColorFocus}: ${textSecondary};
64
+
65
+ ${textAreaTokens.leftHelperColor}: ${textSecondary};
66
+ ${textAreaTokens.rightHelperColor}: ${textSecondary};
67
+ ${textAreaTokens.indicatorColor}: ${textNegative};
68
+ ${textAreaTokens.optionalColor}: ${textSecondary};
69
+ ${textAreaTokens.rightContentColor}: ${textAccent};
70
+
71
+ ${textAreaTokens.scrollbarThumbBackgroundColor}: ${surfaceSolidDefault};
72
+ ${textAreaTokens.scrollbarThumbBackgroundColorHover}: ${surfaceSolidDefaultHover};
73
+ ${textAreaTokens.scrollbarThumbBackgroundColorActive}: ${surfaceSolidDefaultActive};
74
+ ${textAreaTokens.scrollbarTrackBackgroundColor}: ${surfaceSolidPrimary};
75
+ ${textAreaTokens.scrollbarTrackBackgroundColorActive}: ${surfaceSolidPrimaryActive};
76
+ ${textAreaTokens.scrollbarTrackBackgroundColorHover}: ${surfaceSolidPrimaryHover};
77
+
78
+ ${textAreaTokens.dividerColor}: ${outlineSolidPrimary};
79
+ ${textAreaTokens.dividerColorHover}: ${textSecondary};
80
+ ${textAreaTokens.dividerColorFocus}: ${surfaceAccent};
81
+ ${textAreaTokens.titleCaptionColor}: ${textSecondary};
82
+ ${textAreaTokens.hintIconColor}: ${textSecondary};
82
83
  `,
83
84
  negative: css`
84
- ${textAreaTokens.borderColor}: var(--text-negative);
85
- ${textAreaTokens.borderColorHover}: var(--text-negative-hover);
86
- ${textAreaTokens.borderColorFocus}: var(--outline-accent);
87
- ${textAreaTokens.backgroundColor}: var(--surface-solid-card);
88
- ${textAreaTokens.backgroundColorHover}: var(--surface-solid-card-hover);
89
- ${textAreaTokens.backgroundColorActive}: var(--surface-solid-card-active);
90
- ${textAreaTokens.backgroundColorFocus}: var(--surface-solid-card);
91
-
92
- ${textAreaTokens.inputColor}: var(--text-primary);
93
- ${textAreaTokens.inputColorFocus}: var(--text-primary);
94
- ${textAreaTokens.inputCaretColor}: var(--text-negative);
95
-
96
- ${textAreaTokens.placeholderColor}: var(--text-secondary);
97
- ${textAreaTokens.placeholderColorFocus}: var(--text-secondary);
98
-
99
- ${textAreaTokens.leftHelperColor}: var(--text-negative);
100
- ${textAreaTokens.rightHelperColor}: var(--text-secondary);
101
-
102
- ${textAreaTokens.rightContentColor}: var(--text-accent);
103
-
104
- ${textAreaTokens.indicatorColor}: var(--text-negative);
105
- ${textAreaTokens.optionalColor}: var(--text-secondary);
106
-
107
- ${textAreaTokens.scrollbarThumbBackgroundColor}: var(--surface-solid-default);
108
- ${textAreaTokens.scrollbarThumbBackgroundColorHover}: var(--surface-solid-default-hover);
109
- ${textAreaTokens.scrollbarThumbBackgroundColorActive}: var(--surface-solid-default-active);
110
- ${textAreaTokens.scrollbarTrackBackgroundColor}: var(--surface-solid-primary);
111
- ${textAreaTokens.scrollbarTrackBackgroundColorActive}: var(--surface-solid-primary-active);
112
- ${textAreaTokens.scrollbarTrackBackgroundColorHover}: var(--surface-solid-primary-hover);
113
-
114
- ${textAreaTokens.dividerColor}: var(--outline-negative);
115
- ${textAreaTokens.dividerColorHover}: var(--outline-negative-hover);
85
+ ${textAreaTokens.borderColor}: ${textNegative};
86
+ ${textAreaTokens.borderColorHover}: ${textNegativeHover};
87
+ ${textAreaTokens.borderColorFocus}: ${outlineAccent};
88
+ ${textAreaTokens.backgroundColor}: ${surfaceSolidCard};
89
+ ${textAreaTokens.backgroundColorHover}: ${surfaceSolidCardHover};
90
+ ${textAreaTokens.backgroundColorActive}: ${surfaceSolidCardActive};
91
+ ${textAreaTokens.backgroundColorFocus}: ${surfaceSolidCard};
92
+
93
+ ${textAreaTokens.inputColor}: ${textPrimary};
94
+ ${textAreaTokens.inputColorFocus}: ${textPrimary};
95
+ ${textAreaTokens.inputCaretColor}: ${textNegative};
96
+
97
+ ${textAreaTokens.placeholderColor}: ${textSecondary};
98
+ ${textAreaTokens.placeholderColorFocus}: ${textSecondary};
99
+
100
+ ${textAreaTokens.leftHelperColor}: ${textNegative};
101
+ ${textAreaTokens.rightHelperColor}: ${textSecondary};
102
+
103
+ ${textAreaTokens.rightContentColor}: ${textAccent};
104
+
105
+ ${textAreaTokens.indicatorColor}: ${textNegative};
106
+ ${textAreaTokens.optionalColor}: ${textSecondary};
107
+
108
+ ${textAreaTokens.scrollbarThumbBackgroundColor}: ${surfaceSolidDefault};
109
+ ${textAreaTokens.scrollbarThumbBackgroundColorHover}: ${surfaceSolidDefaultHover};
110
+ ${textAreaTokens.scrollbarThumbBackgroundColorActive}: ${surfaceSolidDefaultActive};
111
+ ${textAreaTokens.scrollbarTrackBackgroundColor}: ${surfaceSolidPrimary};
112
+ ${textAreaTokens.scrollbarTrackBackgroundColorActive}: ${surfaceSolidPrimaryActive};
113
+ ${textAreaTokens.scrollbarTrackBackgroundColorHover}: ${surfaceSolidPrimaryHover};
114
+
115
+ ${textAreaTokens.dividerColor}: ${outlineNegative};
116
+ ${textAreaTokens.dividerColorHover}: ${outlineNegativeHover};
116
117
  ${textAreaTokens.dividerColorFocus}: var(--outline-negative-focus);
117
- ${textAreaTokens.titleCaptionColor}: var(--text-secondary);
118
- ${textAreaTokens.hintIconColor}: var(--text-secondary);
118
+ ${textAreaTokens.titleCaptionColor}: ${textSecondary};
119
+ ${textAreaTokens.hintIconColor}: ${textSecondary};
119
120
  `
120
121
  },
121
122
  size: {
@@ -144,27 +145,27 @@ export const config = {
144
145
 
145
146
  ${textAreaTokens.labelMarginBottom}: 0.5rem;
146
147
 
147
- ${textAreaTokens.labelOuterFontSize}: var(--plasma-typo-body-s-font-size);
148
- ${textAreaTokens.labelInnerFontFamily}: var(--plasma-typo-body-s-font-family);
149
- ${textAreaTokens.labelInnerFontSize}: var(--plasma-typo-body-s-font-size);
150
- ${textAreaTokens.labelInnerFontStyle}: var(--plasma-typo-body-s-font-style);
151
- ${textAreaTokens.labelInnerFontWeight}: var(--plasma-typo-body-s-font-weight);
152
- ${textAreaTokens.labelInnerLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
153
- ${textAreaTokens.labelInnerLineHeight}: var(--plasma-typo-body-s-line-height);
148
+ ${textAreaTokens.labelOuterFontSize}: ${bodyS.fontSize};
149
+ ${textAreaTokens.labelInnerFontFamily}: ${bodyS.fontFamily};
150
+ ${textAreaTokens.labelInnerFontSize}: ${bodyS.fontSize};
151
+ ${textAreaTokens.labelInnerFontStyle}: ${bodyS.fontStyle};
152
+ ${textAreaTokens.labelInnerFontWeight}: ${bodyS.fontWeight};
153
+ ${textAreaTokens.labelInnerLetterSpacing}: ${bodyS.letterSpacing};
154
+ ${textAreaTokens.labelInnerLineHeight}: ${bodyS.lineHeight};
154
155
  ${textAreaTokens.labelInnerTop}: 0.375rem;
155
156
  ${textAreaTokens.labelInnerMarginBottom}: 0.125rem;
156
- ${textAreaTokens.inputFontFamily}: var(--plasma-typo-body-m-font-family);
157
- ${textAreaTokens.inputFontSize}: var(--plasma-typo-body-m-font-size);
158
- ${textAreaTokens.inputFontStyle}: var(--plasma-typo-body-m-font-style);
159
- ${textAreaTokens.inputFontWeight}: var(--plasma-typo-body-m-font-weight);
160
- ${textAreaTokens.inputLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
161
- ${textAreaTokens.inputLineHeight}: var(--plasma-typo-body-m-line-height);
162
- ${textAreaTokens.helpersFontFamily}: var(--plasma-typo-body-s-font-family);
163
- ${textAreaTokens.helpersFontSize}: var(--plasma-typo-body-s-font-size);
164
- ${textAreaTokens.helpersFontStyle}: var(--plasma-typo-body-s-font-style);
165
- ${textAreaTokens.helpersFontWeight}: var(--plasma-typo-body-s-font-weight);
166
- ${textAreaTokens.helpersLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
167
- ${textAreaTokens.helpersLineHeight}: var(--plasma-typo-body-s-line-height);
157
+ ${textAreaTokens.inputFontFamily}: ${bodyM.fontFamily};
158
+ ${textAreaTokens.inputFontSize}: ${bodyM.fontSize};
159
+ ${textAreaTokens.inputFontStyle}: ${bodyM.fontStyle};
160
+ ${textAreaTokens.inputFontWeight}: ${bodyM.fontWeight};
161
+ ${textAreaTokens.inputLetterSpacing}: ${bodyM.letterSpacing};
162
+ ${textAreaTokens.inputLineHeight}: ${bodyM.lineHeight};
163
+ ${textAreaTokens.helpersFontFamily}: ${bodyS.fontFamily};
164
+ ${textAreaTokens.helpersFontSize}: ${bodyS.fontSize};
165
+ ${textAreaTokens.helpersFontStyle}: ${bodyS.fontStyle};
166
+ ${textAreaTokens.helpersFontWeight}: ${bodyS.fontWeight};
167
+ ${textAreaTokens.helpersLetterSpacing}: ${bodyS.letterSpacing};
168
+ ${textAreaTokens.helpersLineHeight}: ${bodyS.lineHeight};
168
169
 
169
170
  ${textAreaTokens.indicatorSizeInner}: 0.375rem;
170
171
  ${textAreaTokens.indicatorSizeOuter}: 0.375rem;
@@ -182,21 +183,21 @@ export const config = {
182
183
  ${textAreaTokens.hintInnerLabelPlacementOffset}: -0.751rem -2rem auto auto;
183
184
 
184
185
  ${textAreaTokens.titleCaptionInnerLabelOffset}: 0.25rem;
185
- ${textAreaTokens.titleCaptionFontFamily}: var(--plasma-typo-body-xs-font-family);
186
- ${textAreaTokens.titleCaptionFontSize}: var(--plasma-typo-body-xs-font-size);
187
- ${textAreaTokens.titleCaptionFontStyle}: var(--plasma-typo-body-xs-font-style);
188
- ${textAreaTokens.titleCaptionFontWeight}: var(--plasma-typo-body-xs-font-weight);
189
- ${textAreaTokens.titleCaptionLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
190
- ${textAreaTokens.titleCaptionLineHeight}: var(--plasma-typo-body-xs-line-height);
186
+ ${textAreaTokens.titleCaptionFontFamily}: ${bodyXS.fontFamily};
187
+ ${textAreaTokens.titleCaptionFontSize}: ${bodyXS.fontSize};
188
+ ${textAreaTokens.titleCaptionFontStyle}: ${bodyXS.fontStyle};
189
+ ${textAreaTokens.titleCaptionFontWeight}: ${bodyXS.fontWeight};
190
+ ${textAreaTokens.titleCaptionLetterSpacing}: ${bodyXS.letterSpacing};
191
+ ${textAreaTokens.titleCaptionLineHeight}: ${bodyXS.lineHeight};
191
192
  `
192
193
  },
193
194
  hintView: {
194
195
  // TODO: заменить тень на токен https://github.com/salute-developers/plasma/issues/1131
195
196
  default: css`
196
- ${textAreaTokens.tooltipBackgroundColor}: var(--surface-solid-card-brightness);
197
+ ${textAreaTokens.tooltipBackgroundColor}: ${surfaceSolidCardBrightness};
197
198
  ${textAreaTokens.tooltipBoxShadow}: 0px 4px 12px 0px rgba(0, 0, 0, 0.16), 0px 1px 4px 0px rgba(0, 0, 0, 0.08);
198
- ${textAreaTokens.tooltipColor}: var(--text-primary);
199
- ${textAreaTokens.tooltipArrowBackground}: var(--surface-solid-card-brightness);
199
+ ${textAreaTokens.tooltipColor}: ${textPrimary};
200
+ ${textAreaTokens.tooltipArrowBackground}: ${surfaceSolidCardBrightness};
200
201
  `
201
202
  },
202
203
  hintSize: {
@@ -211,12 +212,12 @@ export const config = {
211
212
  ${textAreaTokens.tooltipMinHeight}: 2.5rem;
212
213
  ${textAreaTokens.tooltipBorderRadius}: 0.625rem;
213
214
 
214
- ${textAreaTokens.tooltipTextFontFamily}: var(--plasma-typo-body-s-font-family);
215
- ${textAreaTokens.tooltipTextFontSize}: var(--plasma-typo-body-s-font-size);
216
- ${textAreaTokens.tooltipTextFontStyle}: var(--plasma-typo-body-s-font-style);
217
- ${textAreaTokens.tooltipTextFontWeight}: var(--plasma-typo-body-s-font-weight);
218
- ${textAreaTokens.tooltipTextFontLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
219
- ${textAreaTokens.tooltipTextFontLineHeight}: var(--plasma-typo-body-s-line-height);
215
+ ${textAreaTokens.tooltipTextFontFamily}: ${bodyS.fontFamily};
216
+ ${textAreaTokens.tooltipTextFontSize}: ${bodyS.fontSize};
217
+ ${textAreaTokens.tooltipTextFontStyle}: ${bodyS.fontStyle};
218
+ ${textAreaTokens.tooltipTextFontWeight}: ${bodyS.fontWeight};
219
+ ${textAreaTokens.tooltipTextFontLetterSpacing}: ${bodyS.letterSpacing};
220
+ ${textAreaTokens.tooltipTextFontLineHeight}: ${bodyS.lineHeight};
220
221
 
221
222
  ${textAreaTokens.tooltipContentLeftMargin}: 0.375rem;
222
223
 
@@ -236,12 +237,12 @@ export const config = {
236
237
  ${textAreaTokens.tooltipMinHeight}: 2rem;
237
238
  ${textAreaTokens.tooltipBorderRadius}: 0.5rem;
238
239
 
239
- ${textAreaTokens.tooltipTextFontFamily}: var(--plasma-typo-body-xs-font-family);
240
- ${textAreaTokens.tooltipTextFontSize}: var(--plasma-typo-body-xs-font-size);
241
- ${textAreaTokens.tooltipTextFontStyle}: var(--plasma-typo-body-xs-font-style);
242
- ${textAreaTokens.tooltipTextFontWeight}: var(--plasma-typo-body-xs-font-weight);
243
- ${textAreaTokens.tooltipTextFontLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
244
- ${textAreaTokens.tooltipTextFontLineHeight}: var(--plasma-typo-body-xs-line-height);
240
+ ${textAreaTokens.tooltipTextFontFamily}: ${bodyXS.fontFamily};
241
+ ${textAreaTokens.tooltipTextFontSize}: ${bodyXS.fontSize};
242
+ ${textAreaTokens.tooltipTextFontStyle}: ${bodyXS.fontStyle};
243
+ ${textAreaTokens.tooltipTextFontWeight}: ${bodyXS.fontWeight};
244
+ ${textAreaTokens.tooltipTextFontLetterSpacing}: ${bodyXS.letterSpacing};
245
+ ${textAreaTokens.tooltipTextFontLineHeight}: ${bodyXS.lineHeight};
245
246
 
246
247
  ${textAreaTokens.tooltipContentLeftMargin}: 0.25rem;
247
248
 
@@ -257,32 +258,32 @@ export const config = {
257
258
  disabled: {
258
259
  true: css`
259
260
  ${textAreaTokens.disabledOpacity}: 1;
260
- ${textAreaTokens.backgroundColor}: var(--surface-solid-primary);
261
- ${textAreaTokens.borderColor}: var(--surface-solid-primary);
262
- ${textAreaTokens.borderColorHover}: var(--surface-solid-primary);
263
- ${textAreaTokens.borderColorFocus}: var(--surface-solid-primary);
264
- ${textAreaTokens.inputColor}: var(--text-secondary);
265
- ${textAreaTokens.inputColorFocus}: var(--text-secondary);
266
- ${textAreaTokens.placeholderColorFocus}: var(--text-secondary);
267
- ${textAreaTokens.labelOuterColor}: var(--text-primary);
268
- ${textAreaTokens.inputColorDisabled}: var(--text-secondary);
261
+ ${textAreaTokens.backgroundColor}: ${surfaceSolidPrimary};
262
+ ${textAreaTokens.borderColor}: ${surfaceSolidPrimary};
263
+ ${textAreaTokens.borderColorHover}: ${surfaceSolidPrimary};
264
+ ${textAreaTokens.borderColorFocus}: ${surfaceSolidPrimary};
265
+ ${textAreaTokens.inputColor}: ${textSecondary};
266
+ ${textAreaTokens.inputColorFocus}: ${textSecondary};
267
+ ${textAreaTokens.placeholderColorFocus}: ${textSecondary};
268
+ ${textAreaTokens.labelOuterColor}: ${textPrimary};
269
+ ${textAreaTokens.inputColorDisabled}: ${textSecondary};
269
270
  `
270
271
  },
271
272
  readOnly: {
272
273
  true: css`
273
274
  ${textAreaTokens.readOnlyOpacity}: 0.1;
274
- ${textAreaTokens.labelOuterColor}: var(--text-secondary);
275
- ${textAreaTokens.inputColorReadOnly}: var(--text-primary);
275
+ ${textAreaTokens.labelOuterColor}: ${textSecondary};
276
+ ${textAreaTokens.inputColorReadOnly}: ${textPrimary};
276
277
  ${textAreaTokens.dividerColorReadOnly}: var(--surface-transparent-primary);
277
278
  ${textAreaTokens.contentSlotRightOpacityReadOnly}: 0.4;
278
- ${textAreaTokens.backgroundColor}: var(--surface-clear);
279
- ${textAreaTokens.borderColor}: var(--surface-clear);
280
- ${textAreaTokens.borderColorHover}: var(--surface-clear);
281
- ${textAreaTokens.borderColorFocus}: var(--surface-clear);
282
- ${textAreaTokens.inputColor}: var(--text-primary);
283
- ${textAreaTokens.inputColorFocus}: var(--text-primary);
284
- ${textAreaTokens.placeholderColorFocus}: var(--text-secondary);
285
- ${textAreaTokens.labelOuterColor}: var(--text-secondary);
279
+ ${textAreaTokens.backgroundColor}: ${surfaceClear};
280
+ ${textAreaTokens.borderColor}: ${surfaceClear};
281
+ ${textAreaTokens.borderColorHover}: ${surfaceClear};
282
+ ${textAreaTokens.borderColorFocus}: ${surfaceClear};
283
+ ${textAreaTokens.inputColor}: ${textPrimary};
284
+ ${textAreaTokens.inputColorFocus}: ${textPrimary};
285
+ ${textAreaTokens.placeholderColorFocus}: ${textSecondary};
286
+ ${textAreaTokens.labelOuterColor}: ${textSecondary};
286
287
  `
287
288
  }
288
289
  }