@salutejs/sdds-cs 0.362.0-next-sbcom.0 → 0.362.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, bodyMBold, bodyS, bodySBold, bodyXS, inverseOutlineSolidSecondary, inverseTextPrimary, outlineAccent, outlineNegative, outlineSolidPrimary, outlineSolidPrimaryHover, shadowDownSoftS, surfaceAccent, surfaceClear, surfaceNegative, surfaceSolidCard, surfaceSolidPrimary, surfaceTransparentAccent, textAccent, textAccentActive, textAccentHover, textAccentMinor, textNegative, textPositive, textPrimary, textPrimaryHover, textSecondary, textTertiary } from '@salutejs/sdds-themes/tokens/sdds_cs';
1
2
  import { datePickerTokens as tokens, css } from '@salutejs/plasma-new-hope/emotion';
2
3
  export const config = {
3
4
  defaults: {
@@ -7,94 +8,94 @@ export const config = {
7
8
  variations: {
8
9
  view: {
9
10
  default: css`
10
- ${tokens.outlineFocusColor}: var(--surface-accent);
11
-
12
- ${tokens.background}: var(--surface-solid-card);
13
- ${tokens.borderColor}: var(--outline-solid-primary);
14
- ${tokens.borderColorHover}: var(--outline-solid-primary-hover);
15
- ${tokens.borderColorFocus}: var(--outline-accent);
16
- ${tokens.borderColorError}: var(--outline-negative);
17
- ${tokens.borderColorSuccess}: var(--outline-accent);
18
-
19
- ${tokens.dividerColor}: var(--text-primary);
20
- ${tokens.labelColor}: var(--text-primary);
21
- ${tokens.leftHelperColor}: var(--text-secondary);
22
- ${tokens.leftHelperColorError}: var(--text-negative);
23
- ${tokens.leftHelperColorSuccess}: var(--text-positive);
24
-
25
- ${tokens.textFieldColor}: var(--text-primary);
26
- ${tokens.textFieldPlaceholderColor}: var(--text-secondary);
27
- ${tokens.textFieldPlaceholderColorFocus}: var(--text-tertiary);
28
- ${tokens.textFieldCaretColor}: var(--text-accent);
29
-
30
- ${tokens.labelInnerFontFamily}: var(--plasma-typo-body-xs-font-family);
31
- ${tokens.labelInnerFontSize}: var(--plasma-typo-body-xs-font-size);
32
- ${tokens.labelInnerFontStyle}: var(--plasma-typo-body-xs-font-style);
33
- ${tokens.labelInnerFontWeight}: var(--plasma-typo-body-xs-font-weight);
34
- ${tokens.labelInnerLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
35
- ${tokens.labelInnerLineHeight}: var(--plasma-typo-body-xs-line-height);
36
-
37
- ${tokens.indicatorColor}: var(--surface-negative);
38
-
39
- ${tokens.textFieldBorderColor}: var(--outline-solid-primary);
40
- ${tokens.textFieldBorderColorHover}: var(--outline-solid-primary-hover);
41
- ${tokens.textFieldBorderColorFocus}: var(--outline-accent);
42
- ${tokens.textFieldBorderColorError}: var(--outline-negative);
43
- ${tokens.textFieldBorderColorErrorFocus}: var(--outline-negative);
44
- ${tokens.textFieldBorderColorSuccess}: var(--outline-accent);
45
- ${tokens.textFieldBorderColorSuccessFocus}: var(--outline-accent);
46
- ${tokens.textFieldBackgroundColor}: var(--surface-solid-card);
47
-
48
- ${tokens.textFieldContentSlotColor}: var(--text-secondary);
49
-
50
- ${tokens.embedIconButtonFocusColor}: var(--surface-accent);
51
- ${tokens.contentSlotRightColor}: var(--text-accent);
52
- ${tokens.contentSlotRightColorHover}: var(--text-accent-hover);
53
- ${tokens.contentSlotRightColorActive}: var(--text-accent-active);
54
-
55
- ${tokens.textFieldTextBeforeColor}: var(--text-secondary);
56
- ${tokens.textFieldTextAfterColor}: var(--text-secondary);
57
-
58
- ${tokens.focusColor}: var(--text-accent);
59
-
60
- ${tokens.popoverShadow}: var(--shadow-down-soft-s);
11
+ ${tokens.outlineFocusColor}: ${surfaceAccent};
12
+
13
+ ${tokens.background}: ${surfaceSolidCard};
14
+ ${tokens.borderColor}: ${outlineSolidPrimary};
15
+ ${tokens.borderColorHover}: ${outlineSolidPrimaryHover};
16
+ ${tokens.borderColorFocus}: ${outlineAccent};
17
+ ${tokens.borderColorError}: ${outlineNegative};
18
+ ${tokens.borderColorSuccess}: ${outlineAccent};
19
+
20
+ ${tokens.dividerColor}: ${textPrimary};
21
+ ${tokens.labelColor}: ${textPrimary};
22
+ ${tokens.leftHelperColor}: ${textSecondary};
23
+ ${tokens.leftHelperColorError}: ${textNegative};
24
+ ${tokens.leftHelperColorSuccess}: ${textPositive};
25
+
26
+ ${tokens.textFieldColor}: ${textPrimary};
27
+ ${tokens.textFieldPlaceholderColor}: ${textSecondary};
28
+ ${tokens.textFieldPlaceholderColorFocus}: ${textTertiary};
29
+ ${tokens.textFieldCaretColor}: ${textAccent};
30
+
31
+ ${tokens.labelInnerFontFamily}: ${bodyXS.fontFamily};
32
+ ${tokens.labelInnerFontSize}: ${bodyXS.fontSize};
33
+ ${tokens.labelInnerFontStyle}: ${bodyXS.fontStyle};
34
+ ${tokens.labelInnerFontWeight}: ${bodyXS.fontWeight};
35
+ ${tokens.labelInnerLetterSpacing}: ${bodyXS.letterSpacing};
36
+ ${tokens.labelInnerLineHeight}: ${bodyXS.lineHeight};
37
+
38
+ ${tokens.indicatorColor}: ${surfaceNegative};
39
+
40
+ ${tokens.textFieldBorderColor}: ${outlineSolidPrimary};
41
+ ${tokens.textFieldBorderColorHover}: ${outlineSolidPrimaryHover};
42
+ ${tokens.textFieldBorderColorFocus}: ${outlineAccent};
43
+ ${tokens.textFieldBorderColorError}: ${outlineNegative};
44
+ ${tokens.textFieldBorderColorErrorFocus}: ${outlineNegative};
45
+ ${tokens.textFieldBorderColorSuccess}: ${outlineAccent};
46
+ ${tokens.textFieldBorderColorSuccessFocus}: ${outlineAccent};
47
+ ${tokens.textFieldBackgroundColor}: ${surfaceSolidCard};
48
+
49
+ ${tokens.textFieldContentSlotColor}: ${textSecondary};
50
+
51
+ ${tokens.embedIconButtonFocusColor}: ${surfaceAccent};
52
+ ${tokens.contentSlotRightColor}: ${textAccent};
53
+ ${tokens.contentSlotRightColorHover}: ${textAccentHover};
54
+ ${tokens.contentSlotRightColorActive}: ${textAccentActive};
55
+
56
+ ${tokens.textFieldTextBeforeColor}: ${textSecondary};
57
+ ${tokens.textFieldTextAfterColor}: ${textSecondary};
58
+
59
+ ${tokens.focusColor}: ${textAccent};
60
+
61
+ ${tokens.popoverShadow}: ${shadowDownSoftS};
61
62
  ${tokens.popoverSeparatorBackground}: var(--surface-transparent-secondary);
62
- ${tokens.popoverBackgroundColor}: var(--surface-solid-card);
63
+ ${tokens.popoverBackgroundColor}: ${surfaceSolidCard};
63
64
 
64
- ${tokens.calendarSelectedItemBackground}: var(--surface-accent);
65
- ${tokens.calendarSelectedItemColor}: var(--inverse-text-primary);
66
- ${tokens.calendarSelectableItemBackgroundHover}: var(--surface-transparent-accent);
67
- ${tokens.calendarCurrentItemBorderColor}: var(--inverse-outline-solid-secondary);
65
+ ${tokens.calendarSelectedItemBackground}: ${surfaceAccent};
66
+ ${tokens.calendarSelectedItemColor}: ${inverseTextPrimary};
67
+ ${tokens.calendarSelectableItemBackgroundHover}: ${surfaceTransparentAccent};
68
+ ${tokens.calendarCurrentItemBorderColor}: ${inverseOutlineSolidSecondary};
68
69
  ${tokens.calendarCurrentItemBackgroundHover}: transparent;
69
- ${tokens.calendarCurrentItemColorHover}: var(--text-primary);
70
- ${tokens.calendarCurrentItemChildBackgroundHover}: var(--surface-transparent-accent);
71
- ${tokens.calendarActiveItemBackground}: var(--surface-accent);
72
- ${tokens.calendarActiveItemColor}: var(--inverse-text-primary);
73
- ${tokens.calendarHoveredItemBackground}: var(--surface-accent);
74
- ${tokens.calendarHoveredItemColor}: var(--text-primary);
75
- ${tokens.calendarRangeBackground}: var(--surface-transparent-accent);
76
- ${tokens.calendarOutlineFocusColor}: var(--surface-accent);
77
- ${tokens.calendarContentPrimaryColor}: var(--text-primary);
78
- ${tokens.calendarContentSecondaryColor}: var(--text-secondary);
79
- ${tokens.calendarContentPrimaryDisabledColor}: var(--text-secondary);
80
- ${tokens.calendarContentSecondaryDisabledColor}: var(--text-secondary);
81
- ${tokens.calendarHeaderArrowColor}: var(--text-accent);
82
- ${tokens.calendarBorderColor}: var(--outline-solid-primary);
83
- ${tokens.calendarDayOfWeekColor}: var(--text-secondary);
70
+ ${tokens.calendarCurrentItemColorHover}: ${textPrimary};
71
+ ${tokens.calendarCurrentItemChildBackgroundHover}: ${surfaceTransparentAccent};
72
+ ${tokens.calendarActiveItemBackground}: ${surfaceAccent};
73
+ ${tokens.calendarActiveItemColor}: ${inverseTextPrimary};
74
+ ${tokens.calendarHoveredItemBackground}: ${surfaceAccent};
75
+ ${tokens.calendarHoveredItemColor}: ${textPrimary};
76
+ ${tokens.calendarRangeBackground}: ${surfaceTransparentAccent};
77
+ ${tokens.calendarOutlineFocusColor}: ${surfaceAccent};
78
+ ${tokens.calendarContentPrimaryColor}: ${textPrimary};
79
+ ${tokens.calendarContentSecondaryColor}: ${textSecondary};
80
+ ${tokens.calendarContentPrimaryDisabledColor}: ${textSecondary};
81
+ ${tokens.calendarContentSecondaryDisabledColor}: ${textSecondary};
82
+ ${tokens.calendarHeaderArrowColor}: ${textAccent};
83
+ ${tokens.calendarBorderColor}: ${outlineSolidPrimary};
84
+ ${tokens.calendarDayOfWeekColor}: ${textSecondary};
84
85
  ${tokens.calendarDisabledOpacity}: 0.4;
85
86
 
86
- ${tokens.iconButtonColor}: var(--text-accent);
87
- ${tokens.iconButtonBackgroundColor}: var(--surface-clear);
88
- ${tokens.iconButtonColorHover}: var(--text-primary-hover);
89
- ${tokens.iconButtonBackgroundColorHover}: var(--surface-clear);
90
- ${tokens.iconButtonColorActive}: var(--text-primary-hover);
91
- ${tokens.iconButtonBackgroundColorActive}: var(--surface-clear);
92
- ${tokens.iconButtonFocusColor}: var(--surface-accent);
87
+ ${tokens.iconButtonColor}: ${textAccent};
88
+ ${tokens.iconButtonBackgroundColor}: ${surfaceClear};
89
+ ${tokens.iconButtonColorHover}: ${textPrimaryHover};
90
+ ${tokens.iconButtonBackgroundColorHover}: ${surfaceClear};
91
+ ${tokens.iconButtonColorActive}: ${textPrimaryHover};
92
+ ${tokens.iconButtonBackgroundColorActive}: ${surfaceClear};
93
+ ${tokens.iconButtonFocusColor}: ${surfaceAccent};
93
94
 
94
- ${tokens.textFieldContentRightSlotColor}: var(--text-accent);
95
- ${tokens.textFieldContentRightSlotColorHover}: var(--text-accent-minor);
95
+ ${tokens.textFieldContentRightSlotColor}: ${textAccent};
96
+ ${tokens.textFieldContentRightSlotColorHover}: ${textAccentMinor};
96
97
 
97
- ${tokens.shortcutColor}: var(--text-primary);
98
+ ${tokens.shortcutColor}: ${textPrimary};
98
99
  ${tokens.shortcutBackgroundHover}: var(--surface-transparent-secondary);
99
100
  `
100
101
  },
@@ -105,12 +106,12 @@ export const config = {
105
106
  ${tokens.borderWidth}: 0.125rem;
106
107
 
107
108
  ${tokens.dividerPadding}: 0 0.375rem;
108
- ${tokens.dividerFontFamily}: var(--plasma-typo-body-m-font-family);
109
- ${tokens.dividerFontStyle}: var(--plasma-typo-body-m-font-style);
110
- ${tokens.dividerFontSize}: var(--plasma-typo-body-m-font-size);
111
- ${tokens.dividerFontWeight}: var(--plasma-typo-body-m-font-weight);
112
- ${tokens.dividerLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
113
- ${tokens.dividerLineHeight}: var(--plasma-typo-body-m-line-height);
109
+ ${tokens.dividerFontFamily}: ${bodyM.fontFamily};
110
+ ${tokens.dividerFontStyle}: ${bodyM.fontStyle};
111
+ ${tokens.dividerFontSize}: ${bodyM.fontSize};
112
+ ${tokens.dividerFontWeight}: ${bodyM.fontWeight};
113
+ ${tokens.dividerLetterSpacing}: ${bodyM.letterSpacing};
114
+ ${tokens.dividerLineHeight}: ${bodyM.lineHeight};
114
115
 
115
116
  ${tokens.leftContentMargin}: 0 0 0 0.75rem;
116
117
  ${tokens.rightContentMargin}: 0;
@@ -120,12 +121,12 @@ export const config = {
120
121
  ${tokens.contentLabelInnerPadding}: 1.0625rem 0 0.3125rem 0;
121
122
 
122
123
  ${tokens.labelWrapperOffset}: 0.5rem;
123
- ${tokens.labelFontFamily}: var(--plasma-typo-body-s-font-family);
124
- ${tokens.labelFontStyle}: var(--plasma-typo-body-s-font-style);
125
- ${tokens.labelFontSize}: var(--plasma-typo-body-s-font-size);
126
- ${tokens.labelFontWeight}: var(--plasma-typo-body-s-font-weight);
127
- ${tokens.labelLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
128
- ${tokens.labelLineHeight}: var(--plasma-typo-body-s-line-height);
124
+ ${tokens.labelFontFamily}: ${bodyS.fontFamily};
125
+ ${tokens.labelFontStyle}: ${bodyS.fontStyle};
126
+ ${tokens.labelFontSize}: ${bodyS.fontSize};
127
+ ${tokens.labelFontWeight}: ${bodyS.fontWeight};
128
+ ${tokens.labelLetterSpacing}: ${bodyS.letterSpacing};
129
+ ${tokens.labelLineHeight}: ${bodyS.lineHeight};
129
130
 
130
131
  ${tokens.embedIconButtonHeight}: 2.5rem;
131
132
  ${tokens.embedIconButtonWidth}: 2.5rem;
@@ -150,20 +151,20 @@ export const config = {
150
151
  ${tokens.textFieldBorderRadius}: 0.625rem;
151
152
  ${tokens.textFieldBorderWidth}: 0.125rem;
152
153
  ${tokens.textFieldPadding}: 0.6875rem 0.75rem 0.6875rem 0.75rem;
153
- ${tokens.textFieldFontFamily}: var(--plasma-typo-body-m-font-family);
154
- ${tokens.textFieldFontStyle}: var(--plasma-typo-body-m-font-style);
155
- ${tokens.textFieldFontSize}: var(--plasma-typo-body-m-font-size);
156
- ${tokens.textFieldFontWeight}: var(--plasma-typo-body-m-font-weight);
157
- ${tokens.textFieldLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
158
- ${tokens.textFieldLineHeight}: var(--plasma-typo-body-m-line-height);
154
+ ${tokens.textFieldFontFamily}: ${bodyM.fontFamily};
155
+ ${tokens.textFieldFontStyle}: ${bodyM.fontStyle};
156
+ ${tokens.textFieldFontSize}: ${bodyM.fontSize};
157
+ ${tokens.textFieldFontWeight}: ${bodyM.fontWeight};
158
+ ${tokens.textFieldLetterSpacing}: ${bodyM.letterSpacing};
159
+ ${tokens.textFieldLineHeight}: ${bodyM.lineHeight};
159
160
 
160
161
  ${tokens.leftHelperOffset}: 0.25rem 0 0 0;
161
- ${tokens.leftHelperFontFamily}: var(--plasma-typo-body-s-font-family);
162
- ${tokens.leftHelperFontStyle}: var(--plasma-typo-body-s-font-style);
163
- ${tokens.leftHelperFontSize}: var(--plasma-typo-body-s-font-size);
164
- ${tokens.leftHelperFontWeight}: var(--plasma-typo-body-s-font-weight);
165
- ${tokens.leftHelperLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
166
- ${tokens.leftHelperLineHeight}: var(--plasma-typo-body-s-line-height);
162
+ ${tokens.leftHelperFontFamily}: ${bodyS.fontFamily};
163
+ ${tokens.leftHelperFontStyle}: ${bodyS.fontStyle};
164
+ ${tokens.leftHelperFontSize}: ${bodyS.fontSize};
165
+ ${tokens.leftHelperFontWeight}: ${bodyS.fontWeight};
166
+ ${tokens.leftHelperLetterSpacing}: ${bodyS.letterSpacing};
167
+ ${tokens.leftHelperLineHeight}: ${bodyS.lineHeight};
167
168
 
168
169
  ${tokens.textFieldLeftContentMargin}: -0.1875rem 0.25rem -0.1875rem -0.125rem;
169
170
  ${tokens.textFieldRightContentMargin}: -0.1875rem -0.125rem -0.1875rem 0.75rem;
@@ -182,46 +183,46 @@ export const config = {
182
183
  ${tokens.calendarYearsPadding}: 0.5rem 0 0 0;
183
184
  ${tokens.calendarYearItemBorderRadius}: 0.5rem;
184
185
 
185
- ${tokens.calendarYearFontFamily}: var(--plasma-typo-body-s-font-family);
186
- ${tokens.calendarYearFontSize}: var(--plasma-typo-body-s-font-size);
187
- ${tokens.calendarYearFontStyle}: var(--plasma-typo-body-s-font-style);
188
- ${tokens.calendarYearFontLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
189
- ${tokens.calendarYearFontLineHeight}: var(--plasma-typo-body-s-line-height);
190
- ${tokens.calendarYearFontWeight}: var(--plasma-typo-body-s-font-weight);
191
- ${tokens.calendarYearSelectedFontWeight}: var(--plasma-typo-body-s-bold-font-weight);
186
+ ${tokens.calendarYearFontFamily}: ${bodyS.fontFamily};
187
+ ${tokens.calendarYearFontSize}: ${bodyS.fontSize};
188
+ ${tokens.calendarYearFontStyle}: ${bodyS.fontStyle};
189
+ ${tokens.calendarYearFontLetterSpacing}: ${bodyS.letterSpacing};
190
+ ${tokens.calendarYearFontLineHeight}: ${bodyS.lineHeight};
191
+ ${tokens.calendarYearFontWeight}: ${bodyS.fontWeight};
192
+ ${tokens.calendarYearSelectedFontWeight}: ${bodySBold.fontWeight};
192
193
 
193
194
  ${tokens.calendarQuartersPadding}: 0.5rem 0 0 0;
194
195
  ${tokens.calendarQuarterItemBorderRadius}: 0.5rem;
195
196
 
196
- ${tokens.calendarQuarterFontFamily}: var(--plasma-typo-body-s-font-family);
197
- ${tokens.calendarQuarterFontSize}: var(--plasma-typo-body-s-font-size);
198
- ${tokens.calendarQuarterFontStyle}: var(--plasma-typo-body-s-font-style);
199
- ${tokens.calendarQuarterFontLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
200
- ${tokens.calendarQuarterFontLineHeight}: var(--plasma-typo-body-s-line-height);
201
- ${tokens.calendarQuarterFontWeight}: var(--plasma-typo-body-s-font-weight);
202
- ${tokens.calendarQuarterSelectedFontWeight}: var(--plasma-typo-body-s-bold-font-weight);
197
+ ${tokens.calendarQuarterFontFamily}: ${bodyS.fontFamily};
198
+ ${tokens.calendarQuarterFontSize}: ${bodyS.fontSize};
199
+ ${tokens.calendarQuarterFontStyle}: ${bodyS.fontStyle};
200
+ ${tokens.calendarQuarterFontLetterSpacing}: ${bodyS.letterSpacing};
201
+ ${tokens.calendarQuarterFontLineHeight}: ${bodyS.lineHeight};
202
+ ${tokens.calendarQuarterFontWeight}: ${bodyS.fontWeight};
203
+ ${tokens.calendarQuarterSelectedFontWeight}: ${bodySBold.fontWeight};
203
204
 
204
205
  ${tokens.calendarMonthsPadding}: 0.5rem 0 0 0;
205
206
  ${tokens.calendarMonthItemBorderRadius}: 0.5rem;
206
207
 
207
- ${tokens.calendarMonthFontFamily}: var(--plasma-typo-body-s-font-family);
208
- ${tokens.calendarMonthFontSize}: var(--plasma-typo-body-s-font-size);
209
- ${tokens.calendarMonthFontStyle}: var(--plasma-typo-body-s-font-style);
210
- ${tokens.calendarMonthFontLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
211
- ${tokens.calendarMonthFontLineHeight}: var(--plasma-typo-body-s-line-height);
212
- ${tokens.calendarMonthFontWeight}: var(--plasma-typo-body-s-font-weight);
213
- ${tokens.calendarMonthSelectedFontWeight}: var(--plasma-typo-body-s-bold-font-weight);
208
+ ${tokens.calendarMonthFontFamily}: ${bodyS.fontFamily};
209
+ ${tokens.calendarMonthFontSize}: ${bodyS.fontSize};
210
+ ${tokens.calendarMonthFontStyle}: ${bodyS.fontStyle};
211
+ ${tokens.calendarMonthFontLetterSpacing}: ${bodyS.letterSpacing};
212
+ ${tokens.calendarMonthFontLineHeight}: ${bodyS.lineHeight};
213
+ ${tokens.calendarMonthFontWeight}: ${bodyS.fontWeight};
214
+ ${tokens.calendarMonthSelectedFontWeight}: ${bodySBold.fontWeight};
214
215
 
215
216
  ${tokens.calendarDaysPadding}: 0.5rem 0 0 0;
216
217
  ${tokens.calendarDayItemBorderRadius}: 0.5rem;
217
218
 
218
- ${tokens.calendarDayFontFamily}: var(--plasma-typo-body-s-font-family);
219
- ${tokens.calendarDayFontSize}: var(--plasma-typo-body-s-font-size);
220
- ${tokens.calendarDayFontStyle}: var(--plasma-typo-body-s-font-style);
221
- ${tokens.calendarDayFontLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
222
- ${tokens.calendarDayFontLineHeight}: var(--plasma-typo-body-s-line-height);
223
- ${tokens.calendarDayFontWeight}: var(--plasma-typo-body-s-font-weight);
224
- ${tokens.calendarDaySelectedFontWeight}: var(--plasma-typo-body-s-bold-font-weight);
219
+ ${tokens.calendarDayFontFamily}: ${bodyS.fontFamily};
220
+ ${tokens.calendarDayFontSize}: ${bodyS.fontSize};
221
+ ${tokens.calendarDayFontStyle}: ${bodyS.fontStyle};
222
+ ${tokens.calendarDayFontLetterSpacing}: ${bodyS.letterSpacing};
223
+ ${tokens.calendarDayFontLineHeight}: ${bodyS.lineHeight};
224
+ ${tokens.calendarDayFontWeight}: ${bodyS.fontWeight};
225
+ ${tokens.calendarDaySelectedFontWeight}: ${bodySBold.fontWeight};
225
226
 
226
227
  ${tokens.calendarCurrentItemBorderWidth}: 0.125rem;
227
228
 
@@ -232,25 +233,25 @@ export const config = {
232
233
  ${tokens.calendarHeaderPadding}: 0 0 0 0.5rem;
233
234
  ${tokens.calendarHeaderDateGap}: 0.25rem;
234
235
 
235
- ${tokens.calendarHeaderFontFamily}: var(--plasma-typo-body-m-bold-font-family);
236
- ${tokens.calendarHeaderFontSize}: var(--plasma-typo-body-m-bold-font-size);
237
- ${tokens.calendarHeaderFontStyle}: var(--plasma-typo-body-m-bold-font-style);
238
- ${tokens.calendarHeaderFontLetterSpacing}: var(--plasma-typo-body-m-bold-letter-spacing);
239
- ${tokens.calendarHeaderFontLineHeight}: var(--plasma-typo-body-m-bold-line-height);
240
- ${tokens.calendarHeaderFontWeight}: var(--plasma-typo-body-m-bold-font-weight);
241
- ${tokens.calendarHeaderFontWeightBold}: var(--plasma-typo-body-m-bold-font-weight);
236
+ ${tokens.calendarHeaderFontFamily}: ${bodyMBold.fontFamily};
237
+ ${tokens.calendarHeaderFontSize}: ${bodyMBold.fontSize};
238
+ ${tokens.calendarHeaderFontStyle}: ${bodyMBold.fontStyle};
239
+ ${tokens.calendarHeaderFontLetterSpacing}: ${bodyMBold.letterSpacing};
240
+ ${tokens.calendarHeaderFontLineHeight}: ${bodyMBold.lineHeight};
241
+ ${tokens.calendarHeaderFontWeight}: ${bodyMBold.fontWeight};
242
+ ${tokens.calendarHeaderFontWeightBold}: ${bodyMBold.fontWeight};
242
243
 
243
244
  ${tokens.iconButtonHeight}: 2rem;
244
245
  ${tokens.iconButtonWidth}: 2rem;
245
246
  ${tokens.iconButtonPadding}: 0.75rem;
246
247
  ${tokens.iconButtonRadius}: 0.5rem;
247
248
 
248
- ${tokens.shortcutFontFamily}: var(--plasma-typo-body-s-font-family);
249
- ${tokens.shortcutFontStyle}: var(--plasma-typo-body-s-font-style);
250
- ${tokens.shortcutFontSize}: var(--plasma-typo-body-s-font-size);
251
- ${tokens.shortcutFontWeight}: var(--plasma-typo-body-s-font-weight);
252
- ${tokens.shortcutLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
253
- ${tokens.shortcutLineHeight}: var(--plasma-typo-body-s-line-height);
249
+ ${tokens.shortcutFontFamily}: ${bodyS.fontFamily};
250
+ ${tokens.shortcutFontStyle}: ${bodyS.fontStyle};
251
+ ${tokens.shortcutFontSize}: ${bodyS.fontSize};
252
+ ${tokens.shortcutFontWeight}: ${bodyS.fontWeight};
253
+ ${tokens.shortcutLetterSpacing}: ${bodyS.letterSpacing};
254
+ ${tokens.shortcutLineHeight}: ${bodyS.lineHeight};
254
255
 
255
256
  ${tokens.shortcutPadding}: 0.688rem 0.5rem;
256
257
  ${tokens.shortcutGap}: 0.375rem;
@@ -259,36 +260,36 @@ export const config = {
259
260
  },
260
261
  disabled: {
261
262
  true: css`
262
- ${tokens.background}: var(--surface-solid-primary);
263
- ${tokens.borderColor}: var(--surface-solid-primary);
264
- ${tokens.borderColorHover}: var(--surface-solid-primary);
265
- ${tokens.borderColorFocus}: var(--surface-solid-primary);
266
- ${tokens.borderColorSuccess}: var(--surface-solid-primary);
267
- ${tokens.textFieldBorderColorFocus}: var(--surface-solid-primary);
268
- ${tokens.textFieldColor}: var(--text-secondary);
269
- ${tokens.textFieldPlaceholderColor}: var(--text-secondary);
270
- ${tokens.textFieldColor}: var(--text-secondary);
271
- ${tokens.textFieldPlaceholderColor}: var(--text-secondary);
272
- ${tokens.textFieldCaretColor}: var(--text-secondary);
273
- ${tokens.textFieldBackgroundColor}: var(--surface-solid-primary);
274
- ${tokens.labelColor}: var(--text-secondary);
263
+ ${tokens.background}: ${surfaceSolidPrimary};
264
+ ${tokens.borderColor}: ${surfaceSolidPrimary};
265
+ ${tokens.borderColorHover}: ${surfaceSolidPrimary};
266
+ ${tokens.borderColorFocus}: ${surfaceSolidPrimary};
267
+ ${tokens.borderColorSuccess}: ${surfaceSolidPrimary};
268
+ ${tokens.textFieldBorderColorFocus}: ${surfaceSolidPrimary};
269
+ ${tokens.textFieldColor}: ${textSecondary};
270
+ ${tokens.textFieldPlaceholderColor}: ${textSecondary};
271
+ ${tokens.textFieldColor}: ${textSecondary};
272
+ ${tokens.textFieldPlaceholderColor}: ${textSecondary};
273
+ ${tokens.textFieldCaretColor}: ${textSecondary};
274
+ ${tokens.textFieldBackgroundColor}: ${surfaceSolidPrimary};
275
+ ${tokens.labelColor}: ${textSecondary};
275
276
  `
276
277
  },
277
278
  readOnly: {
278
279
  true: css`
279
- ${tokens.backgroundReadOnly}: var(--surface-clear);
280
- ${tokens.borderColorReadOnly}: var(--outline-solid-primary);
280
+ ${tokens.backgroundReadOnly}: ${surfaceClear};
281
+ ${tokens.borderColorReadOnly}: ${outlineSolidPrimary};
281
282
 
282
- ${tokens.labelColor}: var(--text-primary);
283
- ${tokens.labelColorReadOnly}: var(--text-primary);
284
- ${tokens.leftHelperColorReadOnly}: var(--text-secondary);
283
+ ${tokens.labelColor}: ${textPrimary};
284
+ ${tokens.labelColorReadOnly}: ${textPrimary};
285
+ ${tokens.leftHelperColorReadOnly}: ${textSecondary};
285
286
 
286
- ${tokens.dividerColorReadOnly}: var(--text-secondary);
287
+ ${tokens.dividerColorReadOnly}: ${textSecondary};
287
288
  ${tokens.dividerOpacityReadOnly}: 0.4;
288
289
 
289
- ${tokens.textFieldColorReadOnly}: var(--text-primary);
290
- ${tokens.textFieldBackgroundColorReadOnly}: var(--surface-clear);
291
- ${tokens.textFieldPlaceholderColorReadOnly}: var(--text-secondary);
290
+ ${tokens.textFieldColorReadOnly}: ${textPrimary};
291
+ ${tokens.textFieldBackgroundColorReadOnly}: ${surfaceClear};
292
+ ${tokens.textFieldPlaceholderColorReadOnly}: ${textSecondary};
292
293
  ${tokens.borderColor}: transparent;
293
294
  ${tokens.borderWidth}: 0;
294
295
  `
@@ -1,3 +1,4 @@
1
+ import { inverseSurfaceSolidDefault, onDarkSurfaceSolidDefault, onLightSurfaceSolidDefault, surfaceSolidTertiary } from '@salutejs/sdds-themes/tokens/sdds_cs';
1
2
  import { css, dividerTokens } from '@salutejs/plasma-new-hope/emotion';
2
3
  export const config = {
3
4
  defaults: {
@@ -8,17 +9,17 @@ export const config = {
8
9
  variations: {
9
10
  view: {
10
11
  default: css`
11
- ${dividerTokens.background}: var(--surface-solid-tertiary);
12
+ ${dividerTokens.background}: ${surfaceSolidTertiary};
12
13
  `,
13
14
  dark: css`
14
- ${dividerTokens.background}: var(--on-dark-surface-solid-default);
15
+ ${dividerTokens.background}: ${onDarkSurfaceSolidDefault};
15
16
  `,
16
17
  light: css`
17
- ${dividerTokens.background}: var(--on-light-surface-solid-default);
18
+ ${dividerTokens.background}: ${onLightSurfaceSolidDefault};
18
19
  `,
19
20
  // TODO поменять на корректный токен --inverse-surface-transparent-tertiary когда он появится
20
21
  inverse: css`
21
- ${dividerTokens.background}: var(--inverse-surface-solid-default);
22
+ ${dividerTokens.background}: ${inverseSurfaceSolidDefault};
22
23
  `
23
24
  },
24
25
  size: {
@@ -1,3 +1,4 @@
1
+ import { surfaceSolidCard, textAccent } from '@salutejs/sdds-themes/tokens/sdds_cs';
1
2
  import { css, drawerTokens } from '@salutejs/plasma-new-hope/emotion';
2
3
  export const config = {
3
4
  defaults: {
@@ -7,12 +8,12 @@ export const config = {
7
8
  variations: {
8
9
  view: {
9
10
  default: css`
10
- ${drawerTokens.background}: var(--surface-solid-card);
11
+ ${drawerTokens.background}: ${surfaceSolidCard};
11
12
  ${drawerTokens.shadow}: 0 3.75rem 7rem -0.5rem rgba(0, 0, 0, 0.08);
12
13
  ${drawerTokens.contentBackgroundColor}: var(--surface-transparent-primary);
13
14
  ${drawerTokens.drawerOverlayWithBlurColor}: var(--overlay-blur);
14
15
  ${drawerTokens.drawerOverlayColor}: var(--overlay-soft);
15
- ${drawerTokens.closeIconColor}: var(--text-accent);
16
+ ${drawerTokens.closeIconColor}: ${textAccent};
16
17
  `
17
18
  },
18
19
  size: {
@@ -1,3 +1,4 @@
1
+ import { bodyM, outlineSolidPrimary, surfaceAccent, surfaceClear, surfaceSolidCardBrightness, surfaceSolidPrimary, surfaceTransparentAccent, textAccent, textPrimary } from '@salutejs/sdds-themes/tokens/sdds_cs';
1
2
  import { css, dropdownTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
2
3
  export const config = {
3
4
  defaults: {
@@ -26,12 +27,12 @@ export const config = {
26
27
  ${tokens.dividerMarginTopTight}: 0.25rem;
27
28
  ${tokens.dividerMarginBottomTight}: 0.25rem;
28
29
 
29
- ${tokens.itemFontFamily}: var(--plasma-typo-body-m-font-family);
30
- ${tokens.itemFontSize}: var(--plasma-typo-body-m-font-size);
31
- ${tokens.itemFontStyle}: var(--plasma-typo-body-m-font-style);
32
- ${tokens.itemFontWeightBold}: var(--plasma-typo-body-m-font-weight);
33
- ${tokens.itemFontLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
34
- ${tokens.itemFontLineHeight}: var(--plasma-typo-body-m-line-height);
30
+ ${tokens.itemFontFamily}: ${bodyM.fontFamily};
31
+ ${tokens.itemFontSize}: ${bodyM.fontSize};
32
+ ${tokens.itemFontStyle}: ${bodyM.fontStyle};
33
+ ${tokens.itemFontWeightBold}: ${bodyM.fontWeight};
34
+ ${tokens.itemFontLetterSpacing}: ${bodyM.letterSpacing};
35
+ ${tokens.itemFontLineHeight}: ${bodyM.lineHeight};
35
36
 
36
37
  ${tokens.cellPadding}: 0rem;
37
38
  ${tokens.cellPaddingLeftContent}: 0rem;
@@ -39,27 +40,27 @@ export const config = {
39
40
  ${tokens.cellPaddingRightContent}: 0rem;
40
41
  ${tokens.cellTextboxGap}: 0.125rem;
41
42
  ${tokens.cellGap}: 0.375rem;
42
- ${tokens.cellTitleFontFamily}: var(--plasma-typo-body-m-font-family);
43
- ${tokens.cellTitleFontSize}: var(--plasma-typo-body-m-font-size);
44
- ${tokens.cellTitleFontStyle}: var(--plasma-typo-body-m-font-style);
45
- ${tokens.cellTitleFontWeight}: var(--plasma-typo-body-m-font-weight);
46
- ${tokens.cellTitleLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
47
- ${tokens.cellTitleLineHeight}: var(--plasma-typo-body-m-line-height);
43
+ ${tokens.cellTitleFontFamily}: ${bodyM.fontFamily};
44
+ ${tokens.cellTitleFontSize}: ${bodyM.fontSize};
45
+ ${tokens.cellTitleFontStyle}: ${bodyM.fontStyle};
46
+ ${tokens.cellTitleFontWeight}: ${bodyM.fontWeight};
47
+ ${tokens.cellTitleLetterSpacing}: ${bodyM.letterSpacing};
48
+ ${tokens.cellTitleLineHeight}: ${bodyM.lineHeight};
48
49
  `
49
50
  },
50
51
  view: {
51
52
  default: css`
52
53
  ${tokens.dividerColor}: var(--surface-transparent-tertiary);
53
54
  ${tokens.disabledOpacity}: 0.4;
54
- ${tokens.borderColor}: var(--outline-solid-primary);
55
- ${tokens.focusColor}: var(--surface-accent);
56
- ${tokens.background}: var(--surface-solid-card-brightness);
55
+ ${tokens.borderColor}: ${outlineSolidPrimary};
56
+ ${tokens.focusColor}: ${surfaceAccent};
57
+ ${tokens.background}: ${surfaceSolidCardBrightness};
57
58
  ${tokens.boxShadow}: 0px 4px 14px -4px rgba(8, 8, 8, 0.08), 0px 1px 4px -1px rgba(0, 0, 0, 0.04);
58
- ${tokens.itemBackground}: var(--surface-clear);
59
- ${tokens.itemBackgroundHover}: var(--surface-transparent-accent);
60
- ${tokens.itemColor}: var(--text-primary);
61
- ${tokens.dividerColor}: var(--surface-solid-primary);
62
- ${tokens.disclosureIconColor}: var(--text-accent);
59
+ ${tokens.itemBackground}: ${surfaceClear};
60
+ ${tokens.itemBackgroundHover}: ${surfaceTransparentAccent};
61
+ ${tokens.itemColor}: ${textPrimary};
62
+ ${tokens.dividerColor}: ${surfaceSolidPrimary};
63
+ ${tokens.disclosureIconColor}: ${textAccent};
63
64
  `
64
65
  }
65
66
  }
@@ -1,3 +1,4 @@
1
+ import { bodyL, bodyM, bodyS, bodyXS } from '@salutejs/sdds-themes/tokens/sdds_cs';
1
2
  import { css, emptyStateTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
2
3
  export const config = {
3
4
  defaults: {
@@ -12,12 +13,12 @@ export const config = {
12
13
  ${tokens.descriptionMargin}: 0 0 1rem 0;
13
14
  ${tokens.buttonMargin}: -1rem 0 0 0;
14
15
  ${tokens.buttonHeight}: 3.5rem;
15
- ${tokens.fontFamily}: var(--plasma-typo-body-l-font-family);
16
- ${tokens.fontSize}: var(--plasma-typo-body-l-font-size);
17
- ${tokens.fontStyle}: var(--plasma-typo-body-l-font-style);
18
- ${tokens.fontWeight}: var(--plasma-typo-body-l-font-weight);
19
- ${tokens.fontLetterSpacing}: var(--plasma-typo-body-l-letter-spacing);
20
- ${tokens.fontLineHeight}: var(--plasma-typo-body-l-line-height);
16
+ ${tokens.fontFamily}: ${bodyL.fontFamily};
17
+ ${tokens.fontSize}: ${bodyL.fontSize};
18
+ ${tokens.fontStyle}: ${bodyL.fontStyle};
19
+ ${tokens.fontWeight}: ${bodyL.fontWeight};
20
+ ${tokens.fontLetterSpacing}: ${bodyL.letterSpacing};
21
+ ${tokens.fontLineHeight}: ${bodyL.lineHeight};
21
22
  `,
22
23
  m: css`
23
24
  ${tokens.borderRadius}: 0.75rem;
@@ -26,12 +27,12 @@ export const config = {
26
27
  ${tokens.descriptionMargin}: 0 0 0.875rem 0;
27
28
  ${tokens.buttonMargin}: -0.875rem 0 0 0;
28
29
  ${tokens.buttonHeight}: 3rem;
29
- ${tokens.fontFamily}: var(--plasma-typo-body-m-font-family);
30
- ${tokens.fontSize}: var(--plasma-typo-body-m-font-size);
31
- ${tokens.fontStyle}: var(--plasma-typo-body-m-font-style);
32
- ${tokens.fontWeight}: var(--plasma-typo-body-m-font-weight);
33
- ${tokens.fontLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
34
- ${tokens.fontLineHeight}: var(--plasma-typo-body-m-line-height);
30
+ ${tokens.fontFamily}: ${bodyM.fontFamily};
31
+ ${tokens.fontSize}: ${bodyM.fontSize};
32
+ ${tokens.fontStyle}: ${bodyM.fontStyle};
33
+ ${tokens.fontWeight}: ${bodyM.fontWeight};
34
+ ${tokens.fontLetterSpacing}: ${bodyM.letterSpacing};
35
+ ${tokens.fontLineHeight}: ${bodyM.lineHeight};
35
36
  `,
36
37
  s: css`
37
38
  ${tokens.borderRadius}: 0.625rem;
@@ -40,12 +41,12 @@ export const config = {
40
41
  ${tokens.descriptionMargin}: 0 0 0.625rem 0;
41
42
  ${tokens.buttonMargin}: -0.625rem 0 0 0;
42
43
  ${tokens.buttonHeight}: 2.5rem;
43
- ${tokens.fontFamily}: var(--plasma-typo-body-s-font-family);
44
- ${tokens.fontSize}: var(--plasma-typo-body-s-font-size);
45
- ${tokens.fontStyle}: var(--plasma-typo-body-s-font-style);
46
- ${tokens.fontWeight}: var(--plasma-typo-body-s-font-weight);
47
- ${tokens.fontLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
48
- ${tokens.fontLineHeight}: var(--plasma-typo-body-s-line-height);
44
+ ${tokens.fontFamily}: ${bodyS.fontFamily};
45
+ ${tokens.fontSize}: ${bodyS.fontSize};
46
+ ${tokens.fontStyle}: ${bodyS.fontStyle};
47
+ ${tokens.fontWeight}: ${bodyS.fontWeight};
48
+ ${tokens.fontLetterSpacing}: ${bodyS.letterSpacing};
49
+ ${tokens.fontLineHeight}: ${bodyS.lineHeight};
49
50
  `,
50
51
  xs: css`
51
52
  ${tokens.borderRadius}: 0.5rem;
@@ -54,12 +55,12 @@ export const config = {
54
55
  ${tokens.descriptionMargin}: 0 0 0.5rem 0;
55
56
  ${tokens.buttonMargin}: -0.5rem 0 0 0;
56
57
  ${tokens.buttonHeight}: 2rem;
57
- ${tokens.fontFamily}: var(--plasma-typo-body-xs-font-family);
58
- ${tokens.fontSize}: var(--plasma-typo-body-xs-font-size);
59
- ${tokens.fontStyle}: var(--plasma-typo-body-xs-font-style);
60
- ${tokens.fontWeight}: var(--plasma-typo-body-xs-font-weight);
61
- ${tokens.fontLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
62
- ${tokens.fontLineHeight}: var(--plasma-typo-body-xs-line-height);
58
+ ${tokens.fontFamily}: ${bodyXS.fontFamily};
59
+ ${tokens.fontSize}: ${bodyXS.fontSize};
60
+ ${tokens.fontStyle}: ${bodyXS.fontStyle};
61
+ ${tokens.fontWeight}: ${bodyXS.fontWeight};
62
+ ${tokens.fontLetterSpacing}: ${bodyXS.letterSpacing};
63
+ ${tokens.fontLineHeight}: ${bodyXS.lineHeight};
63
64
  `
64
65
  }
65
66
  }