@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 { bodyS, bodyXS, onLightSurfaceSolidCard, outlineAccent, outlineSolidPrimary, outlineSolidPrimaryHover, surfaceAccent, surfaceSolidCard, surfaceSolidCardActive, surfaceSolidDefault, surfaceSolidPrimary, surfaceSolidTertiary, textAccent, textPrimary, textSecondary } from '@salutejs/sdds-themes/tokens/sdds_cs';
1
2
  import { css, sliderTokens } from '@salutejs/plasma-new-hope/emotion';
2
3
  export const config = {
3
4
  defaults: {
@@ -8,64 +9,64 @@ export const config = {
8
9
  variations: {
9
10
  view: {
10
11
  default: css`
11
- ${sliderTokens.labelColor}: var(--text-primary);
12
+ ${sliderTokens.labelColor}: ${textPrimary};
12
13
 
13
- ${sliderTokens.rangeValueColor}: var(--text-secondary);
14
+ ${sliderTokens.rangeValueColor}: ${textSecondary};
14
15
 
15
- ${sliderTokens.thumbBorderColor}: var(--surface-solid-tertiary);
16
- ${sliderTokens.thumbBackgroundColor}: var(--on-light-surface-solid-card);
17
- ${sliderTokens.thumbFocusBorderColor}: var(--surface-solid-default);
16
+ ${sliderTokens.thumbBorderColor}: ${surfaceSolidTertiary};
17
+ ${sliderTokens.thumbBackgroundColor}: ${onLightSurfaceSolidCard};
18
+ ${sliderTokens.thumbFocusBorderColor}: ${surfaceSolidDefault};
18
19
 
19
- ${sliderTokens.railBackgroundColor}: var(--surface-solid-primary);
20
+ ${sliderTokens.railBackgroundColor}: ${surfaceSolidPrimary};
20
21
 
21
- ${sliderTokens.fillColor}: var(--surface-solid-default);
22
+ ${sliderTokens.fillColor}: ${surfaceSolidDefault};
22
23
 
23
- ${sliderTokens.tickDotColor}: var(--surface-solid-primary);
24
- ${sliderTokens.tickDotFilledColor}: var(--surface-solid-default);
24
+ ${sliderTokens.tickDotColor}: ${surfaceSolidPrimary};
25
+ ${sliderTokens.tickDotFilledColor}: ${surfaceSolidDefault};
25
26
 
26
- ${sliderTokens.textFieldCaretColor}: var(--text-accent);
27
- ${sliderTokens.textFieldColor}: var(--text-primary);
28
- ${sliderTokens.textFiledFocusColor}: var(--text-primary);
29
- ${sliderTokens.textFieldPlaceholderColor}: var(--text-secondary);
27
+ ${sliderTokens.textFieldCaretColor}: ${textAccent};
28
+ ${sliderTokens.textFieldColor}: ${textPrimary};
29
+ ${sliderTokens.textFiledFocusColor}: ${textPrimary};
30
+ ${sliderTokens.textFieldPlaceholderColor}: ${textSecondary};
30
31
 
31
- ${sliderTokens.textFieldBorderColor}: var(--outline-solid-primary);
32
- ${sliderTokens.textFieldBorderColorFocus}: var(--outline-accent);
33
- ${sliderTokens.textFieldBorderColorHover}: var(--outline-solid-primary-hover);
32
+ ${sliderTokens.textFieldBorderColor}: ${outlineSolidPrimary};
33
+ ${sliderTokens.textFieldBorderColorFocus}: ${outlineAccent};
34
+ ${sliderTokens.textFieldBorderColorHover}: ${outlineSolidPrimaryHover};
34
35
 
35
- ${sliderTokens.textFieldBackgroundColor}: var(--surface-solid-card);
36
- ${sliderTokens.textFieldBackgroundColorHover}: var(--surface-solid-card);
37
- ${sliderTokens.textFieldBackgroundColorFocus}: var(--surface-solid-card-active);
36
+ ${sliderTokens.textFieldBackgroundColor}: ${surfaceSolidCard};
37
+ ${sliderTokens.textFieldBackgroundColorHover}: ${surfaceSolidCard};
38
+ ${sliderTokens.textFieldBackgroundColorFocus}: ${surfaceSolidCardActive};
38
39
  `,
39
40
  accent: css`
40
- ${sliderTokens.labelColor}: var(--text-primary);
41
+ ${sliderTokens.labelColor}: ${textPrimary};
41
42
 
42
- ${sliderTokens.rangeValueColor}: var(--text-secondary);
43
+ ${sliderTokens.rangeValueColor}: ${textSecondary};
43
44
 
44
- ${sliderTokens.thumbBorderColor}: var(--surface-solid-tertiary);
45
- ${sliderTokens.thumbBackgroundColor}: var(--on-light-surface-solid-card);
46
- ${sliderTokens.thumbFocusBorderColor}: var(--surface-accent);
45
+ ${sliderTokens.thumbBorderColor}: ${surfaceSolidTertiary};
46
+ ${sliderTokens.thumbBackgroundColor}: ${onLightSurfaceSolidCard};
47
+ ${sliderTokens.thumbFocusBorderColor}: ${surfaceAccent};
47
48
 
48
- ${sliderTokens.railBackgroundColor}: var(--surface-solid-primary);
49
+ ${sliderTokens.railBackgroundColor}: ${surfaceSolidPrimary};
49
50
 
50
- ${sliderTokens.fillColor}: var(--surface-accent);
51
+ ${sliderTokens.fillColor}: ${surfaceAccent};
51
52
 
52
- ${sliderTokens.tickDotColor}: var(--surface-solid-primary);
53
- ${sliderTokens.tickDotFilledColor}: var(--surface-accent);
53
+ ${sliderTokens.tickDotColor}: ${surfaceSolidPrimary};
54
+ ${sliderTokens.tickDotFilledColor}: ${surfaceAccent};
54
55
 
55
- ${sliderTokens.textFieldColor}: var(--text-secondary);
56
+ ${sliderTokens.textFieldColor}: ${textSecondary};
56
57
 
57
- ${sliderTokens.textFieldCaretColor}: var(--text-accent);
58
- ${sliderTokens.textFieldColor}: var(--text-primary);
59
- ${sliderTokens.textFiledFocusColor}: var(--text-primary);
60
- ${sliderTokens.textFieldPlaceholderColor}: var(--text-secondary);
58
+ ${sliderTokens.textFieldCaretColor}: ${textAccent};
59
+ ${sliderTokens.textFieldColor}: ${textPrimary};
60
+ ${sliderTokens.textFiledFocusColor}: ${textPrimary};
61
+ ${sliderTokens.textFieldPlaceholderColor}: ${textSecondary};
61
62
 
62
- ${sliderTokens.textFieldBorderColor}: var(--outline-solid-primary);
63
- ${sliderTokens.textFieldBorderColorFocus}: var(--outline-accent);
64
- ${sliderTokens.textFieldBorderColorHover}: var(--outline-solid-primary-hover);
63
+ ${sliderTokens.textFieldBorderColor}: ${outlineSolidPrimary};
64
+ ${sliderTokens.textFieldBorderColorFocus}: ${outlineAccent};
65
+ ${sliderTokens.textFieldBorderColorHover}: ${outlineSolidPrimaryHover};
65
66
 
66
- ${sliderTokens.textFieldBackgroundColor}: var(--surface-solid-card);
67
- ${sliderTokens.textFieldBackgroundColorHover}: var(--surface-solid-card);
68
- ${sliderTokens.textFieldBackgroundColorFocus}: var(--surface-solid-card-active);
67
+ ${sliderTokens.textFieldBackgroundColor}: ${surfaceSolidCard};
68
+ ${sliderTokens.textFieldBackgroundColorHover}: ${surfaceSolidCard};
69
+ ${sliderTokens.textFieldBackgroundColorFocus}: ${surfaceSolidCardActive};
69
70
  `
70
71
  },
71
72
  size: {
@@ -79,24 +80,24 @@ export const config = {
79
80
  ${sliderTokens.labelWrapperOnlyIconMarginRight}: 0.625rem;
80
81
  ${sliderTokens.labelWrapperVerticalMargin}: 0.625rem;
81
82
 
82
- ${sliderTokens.labelFontFamily}: var(--plasma-typo-body-s-font-family);
83
- ${sliderTokens.labelFontSize}: var(--plasma-typo-body-s-font-size);
84
- ${sliderTokens.labelFontStyle}: var(--plasma-typo-body-s-font-style);
85
- ${sliderTokens.labelFontWeight}: var(--plasma-typo-body-s-font-weight);
86
- ${sliderTokens.labelLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
87
- ${sliderTokens.labelLineHeight}: var(--plasma-typo-body-s-line-height);
83
+ ${sliderTokens.labelFontFamily}: ${bodyS.fontFamily};
84
+ ${sliderTokens.labelFontSize}: ${bodyS.fontSize};
85
+ ${sliderTokens.labelFontStyle}: ${bodyS.fontStyle};
86
+ ${sliderTokens.labelFontWeight}: ${bodyS.fontWeight};
87
+ ${sliderTokens.labelLetterSpacing}: ${bodyS.letterSpacing};
88
+ ${sliderTokens.labelLineHeight}: ${bodyS.lineHeight};
88
89
 
89
90
  ${sliderTokens.rangeValueHorizontalMargin}: 0.5rem;
90
91
  ${sliderTokens.rangeValueBottomOffset}: 0.625rem;
91
92
  ${sliderTokens.rangeValueHorizontalOffset}: 0.625rem;
92
93
  ${sliderTokens.rangeValueVerticalMargin}: 0.5rem;
93
94
 
94
- ${sliderTokens.valueFontFamily}: var(--plasma-typo-body-xs-font-family);
95
- ${sliderTokens.valueFontSize}: var(--plasma-typo-body-xs-font-size);
96
- ${sliderTokens.valueFontStyle}: var(--plasma-typo-body-xs-font-style);
97
- ${sliderTokens.valueFontWeight}: var(--plasma-typo-body-xs-font-weight);
98
- ${sliderTokens.valueLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
99
- ${sliderTokens.valueLineHeight}: var(--plasma-typo-body-xs-line-height);
95
+ ${sliderTokens.valueFontFamily}: ${bodyXS.fontFamily};
96
+ ${sliderTokens.valueFontSize}: ${bodyXS.fontSize};
97
+ ${sliderTokens.valueFontStyle}: ${bodyXS.fontStyle};
98
+ ${sliderTokens.valueFontWeight}: ${bodyXS.fontWeight};
99
+ ${sliderTokens.valueLetterSpacing}: ${bodyXS.letterSpacing};
100
+ ${sliderTokens.valueLineHeight}: ${bodyXS.lineHeight};
100
101
 
101
102
  ${sliderTokens.tickSize}: 0.5rem;
102
103
 
@@ -111,12 +112,12 @@ export const config = {
111
112
  ${sliderTokens.textFieldHeight}: 2.5rem;
112
113
  ${sliderTokens.textFieldPadding}: 0.5rem 1rem 0.5rem 1rem;
113
114
  ${sliderTokens.textFieldBorderRadius}: 0.625rem;
114
- ${sliderTokens.textFieldFontFamily}: var(--plasma-typo-body-s-font-family);
115
- ${sliderTokens.textFieldFontSize}: var(--plasma-typo-body-s-font-size);
116
- ${sliderTokens.textFieldFontStyle}: var(--plasma-typo-body-s-font-style);
117
- ${sliderTokens.textFieldFontWeight}: var(--plasma-typo-body-s-font-weight);
118
- ${sliderTokens.textFieldLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
119
- ${sliderTokens.textFieldLineHeight}: var(--plasma-typo-body-s-line-height);
115
+ ${sliderTokens.textFieldFontFamily}: ${bodyS.fontFamily};
116
+ ${sliderTokens.textFieldFontSize}: ${bodyS.fontSize};
117
+ ${sliderTokens.textFieldFontStyle}: ${bodyS.fontStyle};
118
+ ${sliderTokens.textFieldFontWeight}: ${bodyS.fontWeight};
119
+ ${sliderTokens.textFieldLetterSpacing}: ${bodyS.letterSpacing};
120
+ ${sliderTokens.textFieldLineHeight}: ${bodyS.lineHeight};
120
121
  `
121
122
  },
122
123
  pointerSize: {
@@ -1,3 +1,4 @@
1
+ import { textAccent, textNegative, textPositive, textPrimary, textSecondary, textTertiary, textWarning } from '@salutejs/sdds-themes/tokens/sdds_cs';
1
2
  import { css } from '@salutejs/plasma-new-hope/emotion';
2
3
  export const config = {
3
4
  defaults: {
@@ -7,28 +8,28 @@ export const config = {
7
8
  variations: {
8
9
  view: {
9
10
  default: css`
10
- --plasma-spinner-color: var(--text-primary);
11
+ --plasma-spinner-color: ${textPrimary};
11
12
  `,
12
13
  secondary: css`
13
- --plasma-spinner-color: var(--text-secondary);
14
+ --plasma-spinner-color: ${textSecondary};
14
15
  `,
15
16
  tertiary: css`
16
- --plasma-spinner-color: var(--text-tertiary);
17
+ --plasma-spinner-color: ${textTertiary};
17
18
  `,
18
19
  paragraph: css`
19
20
  --plasma-spinner-color: var(--text-paragraph);
20
21
  `,
21
22
  accent: css`
22
- --plasma-spinner-color: var(--text-accent);
23
+ --plasma-spinner-color: ${textAccent};
23
24
  `,
24
25
  positive: css`
25
- --plasma-spinner-color: var(--text-positive);
26
+ --plasma-spinner-color: ${textPositive};
26
27
  `,
27
28
  warning: css`
28
- --plasma-spinner-color: var(--text-warning);
29
+ --plasma-spinner-color: ${textWarning};
29
30
  `,
30
31
  negative: css`
31
- --plasma-spinner-color: var(--text-negative);
32
+ --plasma-spinner-color: ${textNegative};
32
33
  `
33
34
  }
34
35
  }
@@ -1,3 +1,4 @@
1
+ import { inverseTextPrimary, surfaceSolidDefault, surfaceSolidDefaultHover, textPrimary, textPrimaryHover } from '@salutejs/sdds-themes/tokens/sdds_cs';
1
2
  import { css, stepsTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
2
3
  export const config = {
3
4
  defaults: {
@@ -6,14 +7,14 @@ export const config = {
6
7
  variations: {
7
8
  view: {
8
9
  default: css`
9
- ${tokens.completedIndicatorColor}: var(--inverse-text-primary);
10
- ${tokens.completedIndicatorColorHover}: var(--inverse-text-primary);
11
- ${tokens.completedIndicatorBackground}: var(--surface-solid-default);
12
- ${tokens.completedIndicatorBackgroundHover}: var(--surface-solid-default-hover);
13
- ${tokens.completedTitleColor}: var(--text-primary);
14
- ${tokens.completedTitleColorHover}: var(--text-primary-hover);
10
+ ${tokens.completedIndicatorColor}: ${inverseTextPrimary};
11
+ ${tokens.completedIndicatorColorHover}: ${inverseTextPrimary};
12
+ ${tokens.completedIndicatorBackground}: ${surfaceSolidDefault};
13
+ ${tokens.completedIndicatorBackgroundHover}: ${surfaceSolidDefaultHover};
14
+ ${tokens.completedTitleColor}: ${textPrimary};
15
+ ${tokens.completedTitleColorHover}: ${textPrimaryHover};
15
16
 
16
- ${tokens.dividerColor}: var(--surface-solid-default);
17
+ ${tokens.dividerColor}: ${surfaceSolidDefault};
17
18
  `
18
19
  }
19
20
  }
@@ -1,3 +1,4 @@
1
+ import { bodyM, bodyS, inverseTextPrimary, onDarkSurfaceSolidPrimary, surfaceAccent, surfaceClear, surfacePositive, surfacePositiveHover, surfaceSolidTertiary, surfaceSolidTertiaryHover, textAccent, textAccentHover, textPositive, textPositiveHover, textPrimary, textPrimaryHover, textSecondary } from '@salutejs/sdds-themes/tokens/sdds_cs';
1
2
  import { css, stepsTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
2
3
  export const config = {
3
4
  defaults: {
@@ -7,44 +8,44 @@ export const config = {
7
8
  variations: {
8
9
  view: {
9
10
  default: css`
10
- ${tokens.loaderSpinnerColor}: var(--on-dark-surface-solid-primary);
11
+ ${tokens.loaderSpinnerColor}: ${onDarkSurfaceSolidPrimary};
11
12
 
12
- ${tokens.activeTitleColor}: var(--text-primary);
13
- ${tokens.activeTitleColorHover}: var(--text-primary-hover);
14
- ${tokens.activeIndicatorColor}: var(--inverse-text-primary);
15
- ${tokens.activeIndicatorBackground}: var(--on-dark-surface-solid-primary);
13
+ ${tokens.activeTitleColor}: ${textPrimary};
14
+ ${tokens.activeTitleColorHover}: ${textPrimaryHover};
15
+ ${tokens.activeIndicatorColor}: ${inverseTextPrimary};
16
+ ${tokens.activeIndicatorBackground}: ${onDarkSurfaceSolidPrimary};
16
17
 
17
- ${tokens.bulletActiveIndicatorBorder}: solid var(--on-dark-surface-solid-primary);
18
- ${tokens.bulletActiveBackground}: var(--surface-clear);
18
+ ${tokens.bulletActiveIndicatorBorder}: solid ${onDarkSurfaceSolidPrimary};
19
+ ${tokens.bulletActiveBackground}: ${surfaceClear};
19
20
 
20
- ${tokens.completedTitleColor}: var(--text-accent);
21
- ${tokens.completedTitleColorHover}: var(--text-accent-hover);
22
- ${tokens.completedIndicatorColor}: var(--text-positive);
23
- ${tokens.completedIndicatorColorHover}: var(--text-positive-hover);
24
- ${tokens.completedIndicatorBackground}: var(--surface-clear);
25
- ${tokens.completedIndicatorBackgroundHover}: var(--surface-clear);
26
- ${tokens.completedIndicatorBorder}: var(--surface-positive);
27
- ${tokens.completedIndicatorBorderHover}: var(--surface-positive-hover);
21
+ ${tokens.completedTitleColor}: ${textAccent};
22
+ ${tokens.completedTitleColorHover}: ${textAccentHover};
23
+ ${tokens.completedIndicatorColor}: ${textPositive};
24
+ ${tokens.completedIndicatorColorHover}: ${textPositiveHover};
25
+ ${tokens.completedIndicatorBackground}: ${surfaceClear};
26
+ ${tokens.completedIndicatorBackgroundHover}: ${surfaceClear};
27
+ ${tokens.completedIndicatorBorder}: ${surfacePositive};
28
+ ${tokens.completedIndicatorBorderHover}: ${surfacePositiveHover};
28
29
 
29
- ${tokens.completedBulletBorder}: var(--surface-positive);
30
- ${tokens.completedBulletBorderHover}: var(--surface-positive-hover);
31
- ${tokens.completedBulletBackground}: var(--surface-positive);
32
- ${tokens.completedBulletBackgroundHover}: var(--surface-positive-hover);
30
+ ${tokens.completedBulletBorder}: ${surfacePositive};
31
+ ${tokens.completedBulletBorderHover}: ${surfacePositiveHover};
32
+ ${tokens.completedBulletBackground}: ${surfacePositive};
33
+ ${tokens.completedBulletBackgroundHover}: ${surfacePositiveHover};
33
34
 
34
- ${tokens.inactiveTitleColor}: var(--text-primary);
35
- ${tokens.inactiveTitleColorHover}: var(--text-primary-hover);
36
- ${tokens.inactiveIndicatorColor}: var(--text-primary);
37
- ${tokens.inactiveIndicatorColorHover}: var(--text-primary);
35
+ ${tokens.inactiveTitleColor}: ${textPrimary};
36
+ ${tokens.inactiveTitleColorHover}: ${textPrimaryHover};
37
+ ${tokens.inactiveIndicatorColor}: ${textPrimary};
38
+ ${tokens.inactiveIndicatorColorHover}: ${textPrimary};
38
39
 
39
- ${tokens.inactiveIndicatorBackground}: var(--surface-solid-tertiary);
40
- ${tokens.inactiveIndicatorBackgroundHover}: var(--surface-solid-tertiary-hover);
40
+ ${tokens.inactiveIndicatorBackground}: ${surfaceSolidTertiary};
41
+ ${tokens.inactiveIndicatorBackgroundHover}: ${surfaceSolidTertiaryHover};
41
42
 
42
- ${tokens.contentColor}: var(--text-secondary);
43
- ${tokens.focusColor}: var(--surface-accent);
43
+ ${tokens.contentColor}: ${textSecondary};
44
+ ${tokens.focusColor}: ${surfaceAccent};
44
45
 
45
- ${tokens.dividerColor}: var(--surface-positive);
46
- ${tokens.dividerGradientColor}: linear-gradient(90deg, var(--surface-positive) 35%, var(--on-dark-surface-solid-primary) 100%);
47
- ${tokens.dividerVerticalGradientColor}: linear-gradient(180deg, var(--surface-positive) 35%, var(--on-dark-surface-solid-primary) 100%);
46
+ ${tokens.dividerColor}: ${surfacePositive};
47
+ ${tokens.dividerGradientColor}: linear-gradient(90deg, ${surfacePositive} 35%, ${onDarkSurfaceSolidPrimary} 100%);
48
+ ${tokens.dividerVerticalGradientColor}: linear-gradient(180deg, ${surfacePositive} 35%, ${onDarkSurfaceSolidPrimary} 100%);
48
49
 
49
50
  ${tokens.disabledOpacity}: 0.4;
50
51
  `
@@ -62,33 +63,33 @@ export const config = {
62
63
  ${tokens.contentVerticalPadding}: 0.5rem;
63
64
  ${tokens.verticalContentPaddingLeft}: 1rem;
64
65
 
65
- ${tokens.indicatorFontFamily}: var(--plasma-typo-body-s-font-family);
66
- ${tokens.indicatorFontSize}: var(--plasma-typo-body-s-font-size);
67
- ${tokens.indicatorFontStyle}: var(--plasma-typo-body-s-font-style);
68
- ${tokens.indicatorFontWeight}: var(--plasma-typo-body-s-font-weight);
69
- ${tokens.indicatorLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
70
- ${tokens.indicatorLineHeight}: var(--plasma-typo-body-s-line-height);
66
+ ${tokens.indicatorFontFamily}: ${bodyS.fontFamily};
67
+ ${tokens.indicatorFontSize}: ${bodyS.fontSize};
68
+ ${tokens.indicatorFontStyle}: ${bodyS.fontStyle};
69
+ ${tokens.indicatorFontWeight}: ${bodyS.fontWeight};
70
+ ${tokens.indicatorLetterSpacing}: ${bodyS.letterSpacing};
71
+ ${tokens.indicatorLineHeight}: ${bodyS.lineHeight};
71
72
 
72
- ${tokens.activeIndicatorFontFamily}: var(--plasma-typo-body-s-font-family);
73
- ${tokens.activeIndicatorFontSize}: var(--plasma-typo-body-s-font-size);
74
- ${tokens.activeIndicatorFontStyle}: var(--plasma-typo-body-s-font-style);
75
- ${tokens.activeIndicatorFontWeight}: var(--plasma-typo-body-s-font-weight);
76
- ${tokens.activeIndicatorLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
77
- ${tokens.activeIndicatorLineHeight}: var(--plasma-typo-body-s-line-height);
73
+ ${tokens.activeIndicatorFontFamily}: ${bodyS.fontFamily};
74
+ ${tokens.activeIndicatorFontSize}: ${bodyS.fontSize};
75
+ ${tokens.activeIndicatorFontStyle}: ${bodyS.fontStyle};
76
+ ${tokens.activeIndicatorFontWeight}: ${bodyS.fontWeight};
77
+ ${tokens.activeIndicatorLetterSpacing}: ${bodyS.letterSpacing};
78
+ ${tokens.activeIndicatorLineHeight}: ${bodyS.lineHeight};
78
79
 
79
- ${tokens.titleFontFamily}: var(--plasma-typo-body-m-font-family);
80
- ${tokens.titleFontSize}: var(--plasma-typo-body-m-font-size);
81
- ${tokens.titleFontStyle}: var(--plasma-typo-body-m-font-style);
82
- ${tokens.titleFontWeight}: var(--plasma-typo-body-m-font-weight);
83
- ${tokens.titleLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
84
- ${tokens.titleLineHeight}: var(--plasma-typo-body-m-line-height);
80
+ ${tokens.titleFontFamily}: ${bodyM.fontFamily};
81
+ ${tokens.titleFontSize}: ${bodyM.fontSize};
82
+ ${tokens.titleFontStyle}: ${bodyM.fontStyle};
83
+ ${tokens.titleFontWeight}: ${bodyM.fontWeight};
84
+ ${tokens.titleLetterSpacing}: ${bodyM.letterSpacing};
85
+ ${tokens.titleLineHeight}: ${bodyM.lineHeight};
85
86
 
86
- ${tokens.contentFontFamily}: var(--plasma-typo-body-s-font-family);
87
- ${tokens.contentFontSize}: var(--plasma-typo-body-s-font-size);
88
- ${tokens.contentFontStyle}: var(--plasma-typo-body-s-font-style);
89
- ${tokens.contentFontWeight}: var(--plasma-typo-body-s-font-weight);
90
- ${tokens.contentLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
91
- ${tokens.contentLineHeight}: var(--plasma-typo-body-s-line-height);
87
+ ${tokens.contentFontFamily}: ${bodyS.fontFamily};
88
+ ${tokens.contentFontSize}: ${bodyS.fontSize};
89
+ ${tokens.contentFontStyle}: ${bodyS.fontStyle};
90
+ ${tokens.contentFontWeight}: ${bodyS.fontWeight};
91
+ ${tokens.contentLetterSpacing}: ${bodyS.letterSpacing};
92
+ ${tokens.contentLineHeight}: ${bodyS.lineHeight};
92
93
 
93
94
  ${tokens.dividerThickness}: 0.125rem;
94
95
  `
@@ -1,3 +1,4 @@
1
+ import { bodyM, bodyS, bodyXS, outlineAccent, outlineAccentHover, outlineSolidPrimary, outlineSolidPrimaryHover, surfaceAccent, surfaceAccentHover, surfaceSolidCard, surfaceSolidCardHover, textPrimary, textSecondary } from '@salutejs/sdds-themes/tokens/sdds_cs';
1
2
  import { css, switchTokens } from '@salutejs/plasma-new-hope/emotion';
2
3
  export const config = {
3
4
  defaults: {
@@ -10,18 +11,18 @@ export const config = {
10
11
  variations: {
11
12
  size: {
12
13
  s: css`
13
- ${switchTokens.fontFamily}: var(--plasma-typo-body-m-font-family);
14
- ${switchTokens.fontStyle}: var(--plasma-typo-body-m-font-style);
15
- ${switchTokens.fontWeight}: var(--plasma-typo-body-m-font-weight);
16
- ${switchTokens.lineHeight}: var(--plasma-typo-body-m-line-height);
17
- ${switchTokens.fontSize}: var(--plasma-typo-body-m-font-size);
18
- ${switchTokens.letterSpacing}: var(--plasma-typo-body-m-letter-spacing);
19
- ${switchTokens.descriptionFontFamily}: var(--plasma-typo-body-s-font-family);
20
- ${switchTokens.descriptionFontStyle}: var(--plasma-typo-body-s-font-style);
21
- ${switchTokens.descriptionFontWeight}: var(--plasma-typo-body-s-font-weight);
22
- ${switchTokens.descriptionLineHeight}: var(--plasma-typo-body-s-line-height);
23
- ${switchTokens.descriptionFontSize}: var(--plasma-typo-body-s-font-size);
24
- ${switchTokens.descriptionLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
14
+ ${switchTokens.fontFamily}: ${bodyM.fontFamily};
15
+ ${switchTokens.fontStyle}: ${bodyM.fontStyle};
16
+ ${switchTokens.fontWeight}: ${bodyM.fontWeight};
17
+ ${switchTokens.lineHeight}: ${bodyM.lineHeight};
18
+ ${switchTokens.fontSize}: ${bodyM.fontSize};
19
+ ${switchTokens.letterSpacing}: ${bodyM.letterSpacing};
20
+ ${switchTokens.descriptionFontFamily}: ${bodyS.fontFamily};
21
+ ${switchTokens.descriptionFontStyle}: ${bodyS.fontStyle};
22
+ ${switchTokens.descriptionFontWeight}: ${bodyS.fontWeight};
23
+ ${switchTokens.descriptionLineHeight}: ${bodyS.lineHeight};
24
+ ${switchTokens.descriptionFontSize}: ${bodyS.fontSize};
25
+ ${switchTokens.descriptionLetterSpacing}: ${bodyXS.letterSpacing};
25
26
  ${switchTokens.verticalGap}: 0.25rem;
26
27
  ${switchTokens.labelOffset}: 0.75rem;
27
28
  `
@@ -50,21 +51,21 @@ export const config = {
50
51
  },
51
52
  view: {
52
53
  default: css`
53
- ${switchTokens.labelColor}: var(--text-primary);
54
- ${switchTokens.descriptionColor}: var(--text-secondary);
54
+ ${switchTokens.labelColor}: ${textPrimary};
55
+ ${switchTokens.descriptionColor}: ${textSecondary};
55
56
  ${switchTokens.descriptionMaxLines}: 2;
56
- ${switchTokens.trackBackgroundColorOn}: var(--surface-accent);
57
- ${switchTokens.trackBackgroundColorOnHover}: var(--surface-accent-hover);
58
- ${switchTokens.trackBackgroundColorOff}: var(--surface-solid-card);
59
- ${switchTokens.trackBackgroundColorOffHover}: var(--surface-solid-card-hover);
57
+ ${switchTokens.trackBackgroundColorOn}: ${surfaceAccent};
58
+ ${switchTokens.trackBackgroundColorOnHover}: ${surfaceAccentHover};
59
+ ${switchTokens.trackBackgroundColorOff}: ${surfaceSolidCard};
60
+ ${switchTokens.trackBackgroundColorOffHover}: ${surfaceSolidCardHover};
60
61
  ${switchTokens.trackBorderWidthOn}: 0;
61
62
  ${switchTokens.trackBorderWidthOff}: 0.125rem;
62
- ${switchTokens.trackBorderColorOn}: var(--outline-accent);
63
- ${switchTokens.trackBorderColorOnHover}: var(--outline-accent-hover);
64
- ${switchTokens.trackBorderColorOff}: var(--outline-solid-primary);
65
- ${switchTokens.trackBorderColorOffHover}: var(--outline-solid-primary-hover);
66
- ${switchTokens.thumbBackgroundColorOn}: var(--surface-solid-card);
67
- ${switchTokens.thumbBackgroundColorOff}: var(--surface-accent);
63
+ ${switchTokens.trackBorderColorOn}: ${outlineAccent};
64
+ ${switchTokens.trackBorderColorOnHover}: ${outlineAccentHover};
65
+ ${switchTokens.trackBorderColorOff}: ${outlineSolidPrimary};
66
+ ${switchTokens.trackBorderColorOffHover}: ${outlineSolidPrimaryHover};
67
+ ${switchTokens.thumbBackgroundColorOn}: ${surfaceSolidCard};
68
+ ${switchTokens.thumbBackgroundColorOff}: ${surfaceAccent};
68
69
  ${switchTokens.thumbBoxShadow}: 0 1px 1px rgba(0, 0, 0, 0.11);
69
70
  `
70
71
  },
@@ -75,7 +76,7 @@ export const config = {
75
76
  },
76
77
  focused: {
77
78
  true: css`
78
- ${switchTokens.trackFocusColor}: var(--surface-accent);
79
+ ${switchTokens.trackFocusColor}: ${surfaceAccent};
79
80
  `
80
81
  }
81
82
  }