@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 { bodyL, bodyM, bodyS, bodyXS, surfaceAccent, surfaceInfo, surfaceNegative, surfacePositive, surfaceSolidDefault, surfaceSolidSecondary, surfaceWarning, textNegative, textPositive, textPrimary, textSecondary, textWarning } from '@salutejs/sdds-themes/tokens/sdds_cs';
1
2
  import { css, progressTokens } from '@salutejs/plasma-new-hope/emotion';
2
3
  export const config = {
3
4
  defaults: {
@@ -8,68 +9,68 @@ export const config = {
8
9
  variations: {
9
10
  view: {
10
11
  default: css`
11
- ${progressTokens.trackBackgroundColor}: var(--surface-solid-secondary);
12
- ${progressTokens.progressFilledBackgroundColor}: var(--surface-solid-default);
13
- ${progressTokens.labelColor}: var(--text-primary);
14
- ${progressTokens.labelIconColor}: var(--text-primary);
15
- ${progressTokens.valueColor}: var(--text-secondary);
16
- ${progressTokens.captionColor}: var(--text-secondary);
12
+ ${progressTokens.trackBackgroundColor}: ${surfaceSolidSecondary};
13
+ ${progressTokens.progressFilledBackgroundColor}: ${surfaceSolidDefault};
14
+ ${progressTokens.labelColor}: ${textPrimary};
15
+ ${progressTokens.labelIconColor}: ${textPrimary};
16
+ ${progressTokens.valueColor}: ${textSecondary};
17
+ ${progressTokens.captionColor}: ${textSecondary};
17
18
  `,
18
19
  secondary: css`
19
- ${progressTokens.trackBackgroundColor}: var(--surface-solid-secondary);
20
+ ${progressTokens.trackBackgroundColor}: ${surfaceSolidSecondary};
20
21
  ${progressTokens.progressFilledBackgroundColor}: var(--surface-transparent-tertiary);
21
- ${progressTokens.labelColor}: var(--text-primary);
22
- ${progressTokens.labelIconColor}: var(--text-primary);
23
- ${progressTokens.valueColor}: var(--text-secondary);
24
- ${progressTokens.captionColor}: var(--text-secondary);
22
+ ${progressTokens.labelColor}: ${textPrimary};
23
+ ${progressTokens.labelIconColor}: ${textPrimary};
24
+ ${progressTokens.valueColor}: ${textSecondary};
25
+ ${progressTokens.captionColor}: ${textSecondary};
25
26
  `,
26
27
  accent: css`
27
- ${progressTokens.trackBackgroundColor}: var(--surface-solid-secondary);
28
- ${progressTokens.progressFilledBackgroundColor}: var(--surface-accent);
29
- ${progressTokens.labelColor}: var(--text-primary);
30
- ${progressTokens.labelIconColor}: var(--text-primary);
31
- ${progressTokens.valueColor}: var(--text-secondary);
32
- ${progressTokens.captionColor}: var(--text-secondary);
28
+ ${progressTokens.trackBackgroundColor}: ${surfaceSolidSecondary};
29
+ ${progressTokens.progressFilledBackgroundColor}: ${surfaceAccent};
30
+ ${progressTokens.labelColor}: ${textPrimary};
31
+ ${progressTokens.labelIconColor}: ${textPrimary};
32
+ ${progressTokens.valueColor}: ${textSecondary};
33
+ ${progressTokens.captionColor}: ${textSecondary};
33
34
  `,
34
35
  accentGradient: css`
35
- ${progressTokens.trackBackgroundColor}: var(--surface-solid-secondary);
36
+ ${progressTokens.trackBackgroundColor}: ${surfaceSolidSecondary};
36
37
  ${progressTokens.progressFilledBackgroundColor}: var(--surface-accent-gradient);
37
- ${progressTokens.labelColor}: var(--text-primary);
38
- ${progressTokens.labelIconColor}: var(--text-primary);
39
- ${progressTokens.valueColor}: var(--text-secondary);
40
- ${progressTokens.captionColor}: var(--text-secondary);
38
+ ${progressTokens.labelColor}: ${textPrimary};
39
+ ${progressTokens.labelIconColor}: ${textPrimary};
40
+ ${progressTokens.valueColor}: ${textSecondary};
41
+ ${progressTokens.captionColor}: ${textSecondary};
41
42
  `,
42
43
  info: css`
43
- ${progressTokens.trackBackgroundColor}: var(--surface-solid-secondary);
44
- ${progressTokens.progressFilledBackgroundColor}: var(--surface-info);
45
- ${progressTokens.labelColor}: var(--text-primary);
46
- ${progressTokens.labelIconColor}: var(--text-primary);
47
- ${progressTokens.valueColor}: var(--text-secondary);
48
- ${progressTokens.captionColor}: var(--text-secondary);
44
+ ${progressTokens.trackBackgroundColor}: ${surfaceSolidSecondary};
45
+ ${progressTokens.progressFilledBackgroundColor}: ${surfaceInfo};
46
+ ${progressTokens.labelColor}: ${textPrimary};
47
+ ${progressTokens.labelIconColor}: ${textPrimary};
48
+ ${progressTokens.valueColor}: ${textSecondary};
49
+ ${progressTokens.captionColor}: ${textSecondary};
49
50
  `,
50
51
  positive: css`
51
- ${progressTokens.trackBackgroundColor}: var(--surface-solid-secondary);
52
- ${progressTokens.progressFilledBackgroundColor}: var(--surface-positive);
53
- ${progressTokens.labelColor}: var(--text-primary);
54
- ${progressTokens.labelIconColor}: var(--text-primary);
55
- ${progressTokens.valueColor}: var(--text-secondary);
56
- ${progressTokens.captionColor}: var(--text-positive);
52
+ ${progressTokens.trackBackgroundColor}: ${surfaceSolidSecondary};
53
+ ${progressTokens.progressFilledBackgroundColor}: ${surfacePositive};
54
+ ${progressTokens.labelColor}: ${textPrimary};
55
+ ${progressTokens.labelIconColor}: ${textPrimary};
56
+ ${progressTokens.valueColor}: ${textSecondary};
57
+ ${progressTokens.captionColor}: ${textPositive};
57
58
  `,
58
59
  warning: css`
59
- ${progressTokens.trackBackgroundColor}: var(--surface-solid-secondary);
60
- ${progressTokens.progressFilledBackgroundColor}: var(--surface-warning);
61
- ${progressTokens.labelColor}: var(--text-primary);
62
- ${progressTokens.labelIconColor}: var(--text-primary);
63
- ${progressTokens.valueColor}: var(--text-secondary);
64
- ${progressTokens.captionColor}: var(--text-warning);
60
+ ${progressTokens.trackBackgroundColor}: ${surfaceSolidSecondary};
61
+ ${progressTokens.progressFilledBackgroundColor}: ${surfaceWarning};
62
+ ${progressTokens.labelColor}: ${textPrimary};
63
+ ${progressTokens.labelIconColor}: ${textPrimary};
64
+ ${progressTokens.valueColor}: ${textSecondary};
65
+ ${progressTokens.captionColor}: ${textWarning};
65
66
  `,
66
67
  negative: css`
67
- ${progressTokens.trackBackgroundColor}: var(--surface-solid-secondary);
68
- ${progressTokens.progressFilledBackgroundColor}: var(--surface-negative);
69
- ${progressTokens.labelColor}: var(--text-primary);
70
- ${progressTokens.labelIconColor}: var(--text-primary);
71
- ${progressTokens.valueColor}: var(--text-secondary);
72
- ${progressTokens.captionColor}: var(--text-negative);
68
+ ${progressTokens.trackBackgroundColor}: ${surfaceSolidSecondary};
69
+ ${progressTokens.progressFilledBackgroundColor}: ${surfaceNegative};
70
+ ${progressTokens.labelColor}: ${textPrimary};
71
+ ${progressTokens.labelIconColor}: ${textPrimary};
72
+ ${progressTokens.valueColor}: ${textSecondary};
73
+ ${progressTokens.captionColor}: ${textNegative};
73
74
  `
74
75
  },
75
76
  size: {
@@ -78,27 +79,27 @@ export const config = {
78
79
  ${progressTokens.labelWrapperGap}: 0.375rem;
79
80
  ${progressTokens.labelWrapperMarginRight}: 1.5rem;
80
81
 
81
- ${progressTokens.labelFontFamily}: var(--plasma-typo-body-l-font-family);
82
- ${progressTokens.labelFontSize}: var(--plasma-typo-body-l-font-size);
83
- ${progressTokens.labelFontStyle}: var(--plasma-typo-body-l-font-style);
84
- ${progressTokens.labelFontWeight}: var(--plasma-typo-body-l-font-weight);
85
- ${progressTokens.labelLetterSpacing}: var(--plasma-typo-body-l-letter-spacing);
86
- ${progressTokens.labelLineHeight}: var(--plasma-typo-body-l-line-height);
82
+ ${progressTokens.labelFontFamily}: ${bodyL.fontFamily};
83
+ ${progressTokens.labelFontSize}: ${bodyL.fontSize};
84
+ ${progressTokens.labelFontStyle}: ${bodyL.fontStyle};
85
+ ${progressTokens.labelFontWeight}: ${bodyL.fontWeight};
86
+ ${progressTokens.labelLetterSpacing}: ${bodyL.letterSpacing};
87
+ ${progressTokens.labelLineHeight}: ${bodyL.lineHeight};
87
88
 
88
- ${progressTokens.valueFontFamily}: var(--plasma-typo-body-l-font-family);
89
- ${progressTokens.valueFontSize}: var(--plasma-typo-body-l-font-size);
90
- ${progressTokens.valueFontStyle}: var(--plasma-typo-body-l-font-style);
91
- ${progressTokens.valueFontWeight}: var(--plasma-typo-body-l-font-weight);
92
- ${progressTokens.valueLetterSpacing}: var(--plasma-typo-body-l-letter-spacing);
93
- ${progressTokens.valueLineHeight}: var(--plasma-typo-body-l-line-height);
89
+ ${progressTokens.valueFontFamily}: ${bodyL.fontFamily};
90
+ ${progressTokens.valueFontSize}: ${bodyL.fontSize};
91
+ ${progressTokens.valueFontStyle}: ${bodyL.fontStyle};
92
+ ${progressTokens.valueFontWeight}: ${bodyL.fontWeight};
93
+ ${progressTokens.valueLetterSpacing}: ${bodyL.letterSpacing};
94
+ ${progressTokens.valueLineHeight}: ${bodyL.lineHeight};
94
95
  ${progressTokens.valueMarginLeft}: 1.5rem;
95
96
 
96
- ${progressTokens.captionFontFamily}: var(--plasma-typo-body-xs-font-family);
97
- ${progressTokens.captionFontSize}: var(--plasma-typo-body-xs-font-size);
98
- ${progressTokens.captionFontStyle}: var(--plasma-typo-body-xs-font-style);
99
- ${progressTokens.captionFontWeight}: var(--plasma-typo-body-xs-font-weight);
100
- ${progressTokens.captionLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
101
- ${progressTokens.captionLineHeight}: var(--plasma-typo-body-xs-line-height);
97
+ ${progressTokens.captionFontFamily}: ${bodyXS.fontFamily};
98
+ ${progressTokens.captionFontSize}: ${bodyXS.fontSize};
99
+ ${progressTokens.captionFontStyle}: ${bodyXS.fontStyle};
100
+ ${progressTokens.captionFontWeight}: ${bodyXS.fontWeight};
101
+ ${progressTokens.captionLetterSpacing}: ${bodyXS.letterSpacing};
102
+ ${progressTokens.captionLineHeight}: ${bodyXS.lineHeight};
102
103
  ${progressTokens.captionMarginTop}: 0.5rem;
103
104
  `,
104
105
  m: css`
@@ -106,27 +107,27 @@ export const config = {
106
107
  ${progressTokens.labelWrapperGap}: 0.375rem;
107
108
  ${progressTokens.labelWrapperMarginRight}: 1.25rem;
108
109
 
109
- ${progressTokens.labelFontFamily}: var(--plasma-typo-body-m-font-family);
110
- ${progressTokens.labelFontSize}: var(--plasma-typo-body-m-font-size);
111
- ${progressTokens.labelFontStyle}: var(--plasma-typo-body-m-font-style);
112
- ${progressTokens.labelFontWeight}: var(--plasma-typo-body-m-font-weight);
113
- ${progressTokens.labelLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
114
- ${progressTokens.labelLineHeight}: var(--plasma-typo-body-m-line-height);
110
+ ${progressTokens.labelFontFamily}: ${bodyM.fontFamily};
111
+ ${progressTokens.labelFontSize}: ${bodyM.fontSize};
112
+ ${progressTokens.labelFontStyle}: ${bodyM.fontStyle};
113
+ ${progressTokens.labelFontWeight}: ${bodyM.fontWeight};
114
+ ${progressTokens.labelLetterSpacing}: ${bodyM.letterSpacing};
115
+ ${progressTokens.labelLineHeight}: ${bodyM.lineHeight};
115
116
 
116
- ${progressTokens.valueFontFamily}: var(--plasma-typo-body-m-font-family);
117
- ${progressTokens.valueFontSize}: var(--plasma-typo-body-m-font-size);
118
- ${progressTokens.valueFontStyle}: var(--plasma-typo-body-m-font-style);
119
- ${progressTokens.valueFontWeight}: var(--plasma-typo-body-m-font-weight);
120
- ${progressTokens.valueLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
121
- ${progressTokens.valueLineHeight}: var(--plasma-typo-body-m-line-height);
117
+ ${progressTokens.valueFontFamily}: ${bodyM.fontFamily};
118
+ ${progressTokens.valueFontSize}: ${bodyM.fontSize};
119
+ ${progressTokens.valueFontStyle}: ${bodyM.fontStyle};
120
+ ${progressTokens.valueFontWeight}: ${bodyM.fontWeight};
121
+ ${progressTokens.valueLetterSpacing}: ${bodyM.letterSpacing};
122
+ ${progressTokens.valueLineHeight}: ${bodyM.lineHeight};
122
123
  ${progressTokens.valueMarginLeft}: 1.25rem;
123
124
 
124
- ${progressTokens.captionFontFamily}: var(--plasma-typo-body-xs-font-family);
125
- ${progressTokens.captionFontSize}: var(--plasma-typo-body-xs-font-size);
126
- ${progressTokens.captionFontStyle}: var(--plasma-typo-body-xs-font-style);
127
- ${progressTokens.captionFontWeight}: var(--plasma-typo-body-xs-font-weight);
128
- ${progressTokens.captionLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
129
- ${progressTokens.captionLineHeight}: var(--plasma-typo-body-xs-line-height);
125
+ ${progressTokens.captionFontFamily}: ${bodyXS.fontFamily};
126
+ ${progressTokens.captionFontSize}: ${bodyXS.fontSize};
127
+ ${progressTokens.captionFontStyle}: ${bodyXS.fontStyle};
128
+ ${progressTokens.captionFontWeight}: ${bodyXS.fontWeight};
129
+ ${progressTokens.captionLetterSpacing}: ${bodyXS.letterSpacing};
130
+ ${progressTokens.captionLineHeight}: ${bodyXS.lineHeight};
130
131
  ${progressTokens.captionMarginTop}: 0.5rem;
131
132
  `,
132
133
  s: css`
@@ -134,27 +135,27 @@ export const config = {
134
135
  ${progressTokens.labelWrapperGap}: 0.375rem;
135
136
  ${progressTokens.labelWrapperMarginRight}: 1rem;
136
137
 
137
- ${progressTokens.labelFontFamily}: var(--plasma-typo-body-s-font-family);
138
- ${progressTokens.labelFontSize}: var(--plasma-typo-body-s-font-size);
139
- ${progressTokens.labelFontStyle}: var(--plasma-typo-body-s-font-style);
140
- ${progressTokens.labelFontWeight}: var(--plasma-typo-body-s-font-weight);
141
- ${progressTokens.labelLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
142
- ${progressTokens.labelLineHeight}: var(--plasma-typo-body-s-line-height);
138
+ ${progressTokens.labelFontFamily}: ${bodyS.fontFamily};
139
+ ${progressTokens.labelFontSize}: ${bodyS.fontSize};
140
+ ${progressTokens.labelFontStyle}: ${bodyS.fontStyle};
141
+ ${progressTokens.labelFontWeight}: ${bodyS.fontWeight};
142
+ ${progressTokens.labelLetterSpacing}: ${bodyS.letterSpacing};
143
+ ${progressTokens.labelLineHeight}: ${bodyS.lineHeight};
143
144
 
144
- ${progressTokens.valueFontFamily}: var(--plasma-typo-body-s-font-family);
145
- ${progressTokens.valueFontSize}: var(--plasma-typo-body-s-font-size);
146
- ${progressTokens.valueFontStyle}: var(--plasma-typo-body-s-font-style);
147
- ${progressTokens.valueFontWeight}: var(--plasma-typo-body-s-font-weight);
148
- ${progressTokens.valueLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
149
- ${progressTokens.valueLineHeight}: var(--plasma-typo-body-s-line-height);
145
+ ${progressTokens.valueFontFamily}: ${bodyS.fontFamily};
146
+ ${progressTokens.valueFontSize}: ${bodyS.fontSize};
147
+ ${progressTokens.valueFontStyle}: ${bodyS.fontStyle};
148
+ ${progressTokens.valueFontWeight}: ${bodyS.fontWeight};
149
+ ${progressTokens.valueLetterSpacing}: ${bodyS.letterSpacing};
150
+ ${progressTokens.valueLineHeight}: ${bodyS.lineHeight};
150
151
  ${progressTokens.valueMarginLeft}: 1rem;
151
152
 
152
- ${progressTokens.captionFontFamily}: var(--plasma-typo-body-xs-font-family);
153
- ${progressTokens.captionFontSize}: var(--plasma-typo-body-xs-font-size);
154
- ${progressTokens.captionFontStyle}: var(--plasma-typo-body-xs-font-style);
155
- ${progressTokens.captionFontWeight}: var(--plasma-typo-body-xs-font-weight);
156
- ${progressTokens.captionLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
157
- ${progressTokens.captionLineHeight}: var(--plasma-typo-body-xs-line-height);
153
+ ${progressTokens.captionFontFamily}: ${bodyXS.fontFamily};
154
+ ${progressTokens.captionFontSize}: ${bodyXS.fontSize};
155
+ ${progressTokens.captionFontStyle}: ${bodyXS.fontStyle};
156
+ ${progressTokens.captionFontWeight}: ${bodyXS.fontWeight};
157
+ ${progressTokens.captionLetterSpacing}: ${bodyXS.letterSpacing};
158
+ ${progressTokens.captionLineHeight}: ${bodyXS.lineHeight};
158
159
  ${progressTokens.captionMarginTop}: 0.5rem;
159
160
  `
160
161
  },
@@ -1,3 +1,4 @@
1
+ import { bodyM, bodyS, onDarkTextPrimary, outlineAccent, surfaceSolidCard, textAccent, textSecondary } from '@salutejs/sdds-themes/tokens/sdds_cs';
1
2
  import { css, radioboxTokens } from '@salutejs/plasma-new-hope/emotion';
2
3
  export const config = {
3
4
  defaults: {
@@ -19,29 +20,29 @@ export const config = {
19
20
  ${radioboxTokens.contentTopOffset}: 0;
20
21
  ${radioboxTokens.contentLeftOffset}: 0.625rem;
21
22
  ${radioboxTokens.descriptionMarginTop}: 0.125rem;
22
- ${radioboxTokens.labelFontFamily}: var(--plasma-typo-body-m-font-family);
23
- ${radioboxTokens.labelFontSize}: var(--plasma-typo-body-m-font-size);
24
- ${radioboxTokens.labelFontStyle}: var(--plasma-typo-body-m-font-style);
25
- ${radioboxTokens.labelFontWeight}: var(--plasma-typo-body-m-font-weight);
26
- ${radioboxTokens.labelLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
27
- ${radioboxTokens.labelLineHeight}: var(--plasma-typo-body-m-line-height);
28
- ${radioboxTokens.descriptionFontFamily}: var(--plasma-typo-body-s-font-family);
29
- ${radioboxTokens.descriptionFontSize}: var(--plasma-typo-body-s-font-size);
30
- ${radioboxTokens.descriptionFontStyle}: var(--plasma-typo-body-s-font-style);
31
- ${radioboxTokens.descriptionFontWeight}: var(--plasma-typo-body-s-font-weight);
32
- ${radioboxTokens.descriptionLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
33
- ${radioboxTokens.descriptionLineHeight}: var(--plasma-typo-body-s-line-height);
23
+ ${radioboxTokens.labelFontFamily}: ${bodyM.fontFamily};
24
+ ${radioboxTokens.labelFontSize}: ${bodyM.fontSize};
25
+ ${radioboxTokens.labelFontStyle}: ${bodyM.fontStyle};
26
+ ${radioboxTokens.labelFontWeight}: ${bodyM.fontWeight};
27
+ ${radioboxTokens.labelLetterSpacing}: ${bodyM.letterSpacing};
28
+ ${radioboxTokens.labelLineHeight}: ${bodyM.lineHeight};
29
+ ${radioboxTokens.descriptionFontFamily}: ${bodyS.fontFamily};
30
+ ${radioboxTokens.descriptionFontSize}: ${bodyS.fontSize};
31
+ ${radioboxTokens.descriptionFontStyle}: ${bodyS.fontStyle};
32
+ ${radioboxTokens.descriptionFontWeight}: ${bodyS.fontWeight};
33
+ ${radioboxTokens.descriptionLetterSpacing}: ${bodyS.letterSpacing};
34
+ ${radioboxTokens.descriptionLineHeight}: ${bodyS.lineHeight};
34
35
  `
35
36
  },
36
37
  /**
37
38
  * Вид контрола.
38
39
  */ view: {
39
40
  accent: css`
40
- ${radioboxTokens.fillColor}: var(--text-accent);
41
- ${radioboxTokens.ellipseColor}: var(--on-dark-text-primary);
42
- ${radioboxTokens.descriptionColor}: var(--text-secondary);
43
- ${radioboxTokens.triggerBackgroundColor}: var(--surface-solid-card);
44
- ${radioboxTokens.triggerBorderColor}: var(--outline-accent);
41
+ ${radioboxTokens.fillColor}: ${textAccent};
42
+ ${radioboxTokens.ellipseColor}: ${onDarkTextPrimary};
43
+ ${radioboxTokens.descriptionColor}: ${textSecondary};
44
+ ${radioboxTokens.triggerBackgroundColor}: ${surfaceSolidCard};
45
+ ${radioboxTokens.triggerBorderColor}: ${outlineAccent};
45
46
  ${radioboxTokens.triggerBorderCheckedColor}: transparent;
46
47
  `
47
48
  },
@@ -52,7 +53,7 @@ export const config = {
52
53
  },
53
54
  focused: {
54
55
  true: css`
55
- ${radioboxTokens.focusColor}: var(--text-accent);
56
+ ${radioboxTokens.focusColor}: ${textAccent};
56
57
  `
57
58
  }
58
59
  }
@@ -1,3 +1,4 @@
1
+ import { bodyM, bodyS, bodySBold, outlineAccent, outlineNegative, outlineSolidPrimary, outlineSolidPrimaryHover, surfaceAccent, surfaceNegative, surfaceSolidCard, surfaceSolidPrimary, textAccent, textNegative, textPositive, textPrimary, textSecondary, textSecondaryActive, textSecondaryHover, textTertiary } from '@salutejs/sdds-themes/tokens/sdds_cs';
1
2
  import { css, rangeTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
2
3
  export const config = {
3
4
  defaults: {
@@ -7,39 +8,39 @@ export const config = {
7
8
  variations: {
8
9
  view: {
9
10
  default: css`
10
- ${tokens.background}: var(--surface-solid-card);
11
- ${tokens.borderColor}: var(--outline-solid-primary);
12
- ${tokens.borderColorError}: var(--outline-negative);
13
- ${tokens.borderColorSuccess}: var(--outline-accent);
14
-
15
- ${tokens.dividerColor}: var(--text-primary);
16
- ${tokens.labelColor}: var(--text-primary);
17
- ${tokens.leftHelperColor}: var(--text-secondary);
18
- ${tokens.leftHelperColorError}: var(--text-negative);
19
- ${tokens.leftHelperColorSuccess}: var(--text-positive);
20
-
21
- ${tokens.embedIconButtonFocusColor}: var(--surface-accent);
22
- ${tokens.contentSlotColor}: var(--text-secondary);
23
- ${tokens.contentSlotColorHover}: var(--text-secondary-hover);
24
- ${tokens.contentSlotColorActive}: var(--text-secondary-active);
25
-
26
- ${tokens.indicatorColor}: var(--surface-negative);
27
-
28
- ${tokens.textFieldColor}: var(--text-primary);
29
- ${tokens.textFieldPlaceholderColor}: var(--text-secondary);
30
- ${tokens.textFieldPlaceholderColorFocus}: var(--text-tertiary);
31
- ${tokens.textFieldCaretColor}: var(--text-accent);
32
-
33
- ${tokens.textFieldBorderColorHover}: var(--outline-solid-primary-hover);
34
- ${tokens.textFieldBorderColorFocus}: var(--outline-accent);
35
- ${tokens.textFieldBorderColorError}: var(--outline-negative);
36
- ${tokens.textFieldBorderColorErrorFocus}: var(--outline-negative);
37
- ${tokens.textFieldBorderColorSuccess}: var(--outline-accent);
38
- ${tokens.textFieldBorderColorSuccessFocus}: var(--outline-accent);
39
-
40
- ${tokens.focusColor}: var(--text-accent);
41
- ${tokens.textFieldTextAfterColor}: var(--text-secondary);
42
- ${tokens.textFieldTextBeforeColor}: var(--text-secondary);
11
+ ${tokens.background}: ${surfaceSolidCard};
12
+ ${tokens.borderColor}: ${outlineSolidPrimary};
13
+ ${tokens.borderColorError}: ${outlineNegative};
14
+ ${tokens.borderColorSuccess}: ${outlineAccent};
15
+
16
+ ${tokens.dividerColor}: ${textPrimary};
17
+ ${tokens.labelColor}: ${textPrimary};
18
+ ${tokens.leftHelperColor}: ${textSecondary};
19
+ ${tokens.leftHelperColorError}: ${textNegative};
20
+ ${tokens.leftHelperColorSuccess}: ${textPositive};
21
+
22
+ ${tokens.embedIconButtonFocusColor}: ${surfaceAccent};
23
+ ${tokens.contentSlotColor}: ${textSecondary};
24
+ ${tokens.contentSlotColorHover}: ${textSecondaryHover};
25
+ ${tokens.contentSlotColorActive}: ${textSecondaryActive};
26
+
27
+ ${tokens.indicatorColor}: ${surfaceNegative};
28
+
29
+ ${tokens.textFieldColor}: ${textPrimary};
30
+ ${tokens.textFieldPlaceholderColor}: ${textSecondary};
31
+ ${tokens.textFieldPlaceholderColorFocus}: ${textTertiary};
32
+ ${tokens.textFieldCaretColor}: ${textAccent};
33
+
34
+ ${tokens.textFieldBorderColorHover}: ${outlineSolidPrimaryHover};
35
+ ${tokens.textFieldBorderColorFocus}: ${outlineAccent};
36
+ ${tokens.textFieldBorderColorError}: ${outlineNegative};
37
+ ${tokens.textFieldBorderColorErrorFocus}: ${outlineNegative};
38
+ ${tokens.textFieldBorderColorSuccess}: ${outlineAccent};
39
+ ${tokens.textFieldBorderColorSuccessFocus}: ${outlineAccent};
40
+
41
+ ${tokens.focusColor}: ${textAccent};
42
+ ${tokens.textFieldTextAfterColor}: ${textSecondary};
43
+ ${tokens.textFieldTextBeforeColor}: ${textSecondary};
43
44
  `
44
45
  },
45
46
  size: {
@@ -48,12 +49,12 @@ export const config = {
48
49
  ${tokens.borderWidth}: 0.125rem;
49
50
 
50
51
  ${tokens.dividerPadding}: 0 0.375rem;
51
- ${tokens.dividerFontFamily}: var(--plasma-typo-body-s-font-family);
52
- ${tokens.dividerFontStyle}: var(--plasma-typo-body-s-font-style);
53
- ${tokens.dividerFontSize}: var(--plasma-typo-body-s-font-size);
54
- ${tokens.dividerFontWeight}: var(--plasma-typo-body-s-bold-font-weight);
55
- ${tokens.dividerLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
56
- ${tokens.dividerLineHeight}: var(--plasma-typo-body-s-line-height);
52
+ ${tokens.dividerFontFamily}: ${bodyS.fontFamily};
53
+ ${tokens.dividerFontStyle}: ${bodyS.fontStyle};
54
+ ${tokens.dividerFontSize}: ${bodyS.fontSize};
55
+ ${tokens.dividerFontWeight}: ${bodySBold.fontWeight};
56
+ ${tokens.dividerLetterSpacing}: ${bodyS.letterSpacing};
57
+ ${tokens.dividerLineHeight}: ${bodyS.lineHeight};
57
58
 
58
59
  ${tokens.leftContentMargin}: 0 0.375rem 0 0.75rem;
59
60
  ${tokens.rightContentMargin}: 0;
@@ -62,24 +63,24 @@ export const config = {
62
63
  ${tokens.textFieldBorderRadius}: 0.625rem;
63
64
  ${tokens.textFieldBorderWidth}: 0.125rem;
64
65
  ${tokens.textFieldPadding}: 0.6875rem 0.75rem 0.6875rem 0.75rem;
65
- ${tokens.textFieldFontFamily}: var(--plasma-typo-body-m-font-family);
66
- ${tokens.textFieldFontStyle}: var(--plasma-typo-body-m-font-style);
67
- ${tokens.textFieldFontSize}: var(--plasma-typo-body-m-font-size);
68
- ${tokens.textFieldFontWeight}: var(--plasma-typo-body-m-font-weight);
69
- ${tokens.textFieldLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
70
- ${tokens.textFieldLineHeight}: var(--plasma-typo-body-m-line-height);
66
+ ${tokens.textFieldFontFamily}: ${bodyM.fontFamily};
67
+ ${tokens.textFieldFontStyle}: ${bodyM.fontStyle};
68
+ ${tokens.textFieldFontSize}: ${bodyM.fontSize};
69
+ ${tokens.textFieldFontWeight}: ${bodyM.fontWeight};
70
+ ${tokens.textFieldLetterSpacing}: ${bodyM.letterSpacing};
71
+ ${tokens.textFieldLineHeight}: ${bodyM.lineHeight};
71
72
 
72
73
  ${tokens.textFieldLeftContentMargin}: -0.1875rem 0.25rem -0.1875rem -0.125rem;
73
74
  ${tokens.textFieldRightContentMargin}: -0.1875rem -0.125rem -0.1875rem 0.75rem;
74
75
  ${tokens.textFieldTextBeforeMargin}: 0 0.25rem 0 0;
75
76
  ${tokens.textFieldTextAfterMargin}: 0 0 0 0.25rem;
76
77
 
77
- ${tokens.labelFontFamily}: var(--plasma-typo-body-s-font-family);
78
- ${tokens.labelFontStyle}: var(--plasma-typo-body-s-font-style);
79
- ${tokens.labelFontSize}: var(--plasma-typo-body-s-font-size);
80
- ${tokens.labelFontWeight}: var(--plasma-typo-body-s-font-weight);
81
- ${tokens.labelLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
82
- ${tokens.labelLineHeight}: var(--plasma-typo-body-s-line-height);
78
+ ${tokens.labelFontFamily}: ${bodyS.fontFamily};
79
+ ${tokens.labelFontStyle}: ${bodyS.fontStyle};
80
+ ${tokens.labelFontSize}: ${bodyS.fontSize};
81
+ ${tokens.labelFontWeight}: ${bodyS.fontWeight};
82
+ ${tokens.labelLetterSpacing}: ${bodyS.letterSpacing};
83
+ ${tokens.labelLineHeight}: ${bodyS.lineHeight};
83
84
 
84
85
  ${tokens.embedIconButtonHeight}: 2.5rem;
85
86
  ${tokens.embedIconButtonWidth}: 2.5rem;
@@ -101,38 +102,38 @@ export const config = {
101
102
  ${tokens.helpersPadding}: 0.25rem 0 0 0;
102
103
  ${tokens.helpersGap}: 0.25rem;
103
104
 
104
- ${tokens.leftHelperFontFamily}: var(--plasma-typo-body-s-font-family);
105
- ${tokens.leftHelperFontStyle}: var(--plasma-typo-body-s-font-style);
106
- ${tokens.leftHelperFontSize}: var(--plasma-typo-body-s-font-size);
107
- ${tokens.leftHelperFontWeight}: var(--plasma-typo-body-s-font-weight);
108
- ${tokens.leftHelperLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
109
- ${tokens.leftHelperLineHeight}: var(--plasma-typo-body-s-line-height);
105
+ ${tokens.leftHelperFontFamily}: ${bodyS.fontFamily};
106
+ ${tokens.leftHelperFontStyle}: ${bodyS.fontStyle};
107
+ ${tokens.leftHelperFontSize}: ${bodyS.fontSize};
108
+ ${tokens.leftHelperFontWeight}: ${bodyS.fontWeight};
109
+ ${tokens.leftHelperLetterSpacing}: ${bodyS.letterSpacing};
110
+ ${tokens.leftHelperLineHeight}: ${bodyS.lineHeight};
110
111
  `
111
112
  },
112
113
  disabled: {
113
114
  true: css`
114
115
  ${tokens.disabledOpacity}: 1;
115
- ${tokens.background}: var(--surface-solid-primary);
116
- ${tokens.borderColor}: var(--surface-solid-primary);
117
- ${tokens.textFieldBorderColorFocus}: var(--surface-solid-primary);
118
- ${tokens.textFieldColor}: var(--text-secondary);
119
- ${tokens.textFieldPlaceholderColor}: var(--text-secondary);
116
+ ${tokens.background}: ${surfaceSolidPrimary};
117
+ ${tokens.borderColor}: ${surfaceSolidPrimary};
118
+ ${tokens.textFieldBorderColorFocus}: ${surfaceSolidPrimary};
119
+ ${tokens.textFieldColor}: ${textSecondary};
120
+ ${tokens.textFieldPlaceholderColor}: ${textSecondary};
120
121
  `
121
122
  },
122
123
  readOnly: {
123
124
  true: css`
124
- ${tokens.backgroundReadOnly}: var(--surface-solid-card);
125
- ${tokens.labelColorReadOnly}: var(--text-primary);
126
- ${tokens.borderColorReadOnly}: var(--outline-solid-primary);
127
- ${tokens.leftHelperColorReadOnly}: var(--text-secondary);
128
- ${tokens.dividerColorReadOnly}: var(--text-secondary);
125
+ ${tokens.backgroundReadOnly}: ${surfaceSolidCard};
126
+ ${tokens.labelColorReadOnly}: ${textPrimary};
127
+ ${tokens.borderColorReadOnly}: ${outlineSolidPrimary};
128
+ ${tokens.leftHelperColorReadOnly}: ${textSecondary};
129
+ ${tokens.dividerColorReadOnly}: ${textSecondary};
129
130
  ${tokens.readOnlyOpacity}: 1;
130
131
  ${tokens.dividerOpacityReadOnly}: 1;
131
132
  ${tokens.rightContentOpacityReadOnly}: 0.4;
132
133
 
133
- ${tokens.textFieldColorReadOnly}: var(--text-primary);
134
+ ${tokens.textFieldColorReadOnly}: ${textPrimary};
134
135
  ${tokens.textFieldBackgroundColorReadOnly}: transparent;
135
- ${tokens.textFieldPlaceholderColorReadOnly}: var(--text-secondary);
136
+ ${tokens.textFieldPlaceholderColorReadOnly}: ${textSecondary};
136
137
  `
137
138
  }
138
139
  }
@@ -1,3 +1,4 @@
1
+ import { bodyM, bodyMBold, bodyS, bodySBold, textPrimary, textSecondary, textTertiary, textWarning } from '@salutejs/sdds-themes/tokens/sdds_cs';
1
2
  import { css, ratingTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
2
3
  export const config = {
3
4
  defaults: {
@@ -7,36 +8,36 @@ export const config = {
7
8
  variations: {
8
9
  view: {
9
10
  default: css`
10
- ${tokens.color}: var(--text-primary);
11
- ${tokens.helperTextColor}: var(--text-secondary);
12
- ${tokens.iconColor}: var(--text-primary);
13
- ${tokens.outlineIconColor}: var(--text-primary);
11
+ ${tokens.color}: ${textPrimary};
12
+ ${tokens.helperTextColor}: ${textSecondary};
13
+ ${tokens.iconColor}: ${textPrimary};
14
+ ${tokens.outlineIconColor}: ${textPrimary};
14
15
  `,
15
16
  accent: css`
16
- ${tokens.color}: var(--text-primary);
17
- ${tokens.helperTextColor}: var(--text-secondary);
17
+ ${tokens.color}: ${textPrimary};
18
+ ${tokens.helperTextColor}: ${textSecondary};
18
19
  // TODO: change with token data-yellow, when it will be added to theme
19
- ${tokens.iconColor}: var(--text-warning);
20
- ${tokens.outlineIconColor}: var(--text-tertiary);
20
+ ${tokens.iconColor}: ${textWarning};
21
+ ${tokens.outlineIconColor}: ${textTertiary};
21
22
  `
22
23
  },
23
24
  size: {
24
25
  s: css`
25
26
  ${tokens.gap}: 0.25rem;
26
27
 
27
- ${tokens.fontFamily}: var(--plasma-typo-body-s-font-family);
28
- ${tokens.fontSize}: var(--plasma-typo-body-s-font-size);
29
- ${tokens.fontStyle}: var(--plasma-typo-body-s-font-style);
30
- ${tokens.fontWeight}: var(--plasma-typo-body-s-bold-font-weight);
31
- ${tokens.letterSpacing}: var(--plasma-typo-body-s-letter-spacing);
32
- ${tokens.lineHeight}: var(--plasma-typo-body-s-line-height);
28
+ ${tokens.fontFamily}: ${bodyS.fontFamily};
29
+ ${tokens.fontSize}: ${bodyS.fontSize};
30
+ ${tokens.fontStyle}: ${bodyS.fontStyle};
31
+ ${tokens.fontWeight}: ${bodySBold.fontWeight};
32
+ ${tokens.letterSpacing}: ${bodyS.letterSpacing};
33
+ ${tokens.lineHeight}: ${bodyS.lineHeight};
33
34
 
34
- ${tokens.helperTextFontFamily}: var(--plasma-typo-body-s-font-family);
35
- ${tokens.helperTextFontSize}: var(--plasma-typo-body-s-font-size);
36
- ${tokens.helperTextFontStyle}: var(--plasma-typo-body-s-font-style);
37
- ${tokens.helperTextFontWeight}: var(--plasma-typo-body-s-font-weight);
38
- ${tokens.helperTextLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
39
- ${tokens.helperTextLineHeight}: var(--plasma-typo-body-s-line-height);
35
+ ${tokens.helperTextFontFamily}: ${bodyS.fontFamily};
36
+ ${tokens.helperTextFontSize}: ${bodyS.fontSize};
37
+ ${tokens.helperTextFontStyle}: ${bodyS.fontStyle};
38
+ ${tokens.helperTextFontWeight}: ${bodyS.fontWeight};
39
+ ${tokens.helperTextLetterSpacing}: ${bodyS.letterSpacing};
40
+ ${tokens.helperTextLineHeight}: ${bodyS.lineHeight};
40
41
 
41
42
  ${tokens.contentGap}: 0.5rem;
42
43
  ${tokens.singleIconContentGap}: 0.25rem;
@@ -47,19 +48,19 @@ export const config = {
47
48
  h4: css`
48
49
  ${tokens.gap}: 0.25rem;
49
50
 
50
- ${tokens.fontFamily}: var(--plasma-typo-body-m-font-family);
51
- ${tokens.fontSize}: var(--plasma-typo-body-m-font-size);
52
- ${tokens.fontStyle}: var(--plasma-typo-body-m-font-style);
53
- ${tokens.fontWeight}: var(--plasma-typo-body-m-bold-font-weight);
54
- ${tokens.letterSpacing}: var(--plasma-typo-body-m-letter-spacing);
55
- ${tokens.lineHeight}: var(--plasma-typo-body-m-line-height);
51
+ ${tokens.fontFamily}: ${bodyM.fontFamily};
52
+ ${tokens.fontSize}: ${bodyM.fontSize};
53
+ ${tokens.fontStyle}: ${bodyM.fontStyle};
54
+ ${tokens.fontWeight}: ${bodyMBold.fontWeight};
55
+ ${tokens.letterSpacing}: ${bodyM.letterSpacing};
56
+ ${tokens.lineHeight}: ${bodyM.lineHeight};
56
57
 
57
- ${tokens.helperTextFontFamily}: var(--plasma-typo-body-s-font-family);
58
- ${tokens.helperTextFontSize}: var(--plasma-typo-body-s-font-size);
59
- ${tokens.helperTextFontStyle}: var(--plasma-typo-body-s-font-style);
60
- ${tokens.helperTextFontWeight}: var(--plasma-typo-body-s-font-weight);
61
- ${tokens.helperTextLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
62
- ${tokens.helperTextLineHeight}: var(--plasma-typo-body-s-line-height);
58
+ ${tokens.helperTextFontFamily}: ${bodyS.fontFamily};
59
+ ${tokens.helperTextFontSize}: ${bodyS.fontSize};
60
+ ${tokens.helperTextFontStyle}: ${bodyS.fontStyle};
61
+ ${tokens.helperTextFontWeight}: ${bodyS.fontWeight};
62
+ ${tokens.helperTextLetterSpacing}: ${bodyS.letterSpacing};
63
+ ${tokens.helperTextLineHeight}: ${bodyS.lineHeight};
63
64
 
64
65
  ${tokens.contentGap}: 0.625rem;
65
66
  ${tokens.singleIconContentGap}: 0.25rem;