@salutejs/sdds-cs 0.361.0-next-sbcom.0 → 0.362.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/beta/cjs/Popover/Popover.closeInner.config.js +11 -10
- package/dist/beta/cjs/Popover/Popover.closeNone.config.js +5 -4
- package/dist/beta/cjs/Tooltip/Tooltip.config.js +16 -15
- package/dist/beta/es/Popover/Popover.closeInner.config.js +11 -10
- package/dist/beta/es/Popover/Popover.closeNone.config.js +5 -4
- package/dist/beta/es/Tooltip/Tooltip.config.js +16 -15
- package/dist/emotion/cjs/components/Accordion/Accordion.config.js +26 -25
- package/dist/emotion/cjs/components/Attach/Attach.config.js +121 -120
- package/dist/emotion/cjs/components/Autocomplete/Autocomplete.config.js +123 -122
- package/dist/emotion/cjs/components/Avatar/Avatar.config.js +32 -31
- package/dist/emotion/cjs/components/Badge/Badge.clear.config.js +5 -4
- package/dist/emotion/cjs/components/Badge/Badge.config.js +17 -16
- package/dist/emotion/cjs/components/Breadcrumbs/Breadcrumbs.config.js +11 -10
- package/dist/emotion/cjs/components/Button/Button.config.js +44 -43
- package/dist/emotion/cjs/components/Button/Button.js +3 -3
- package/dist/emotion/cjs/components/ButtonGroup/ButtonGroup.config.js +39 -38
- package/dist/emotion/cjs/components/Calendar/Calendar.config.js +60 -59
- package/dist/emotion/cjs/components/Calendar/CalendarDouble.config.js +60 -59
- package/dist/emotion/cjs/components/Card/Card.config.js +2 -1
- package/dist/emotion/cjs/components/Carousel/Carousel.config.js +9 -8
- package/dist/emotion/cjs/components/Cell/Cell.config.js +41 -40
- package/dist/emotion/cjs/components/Checkbox/Checkbox.config.js +22 -21
- package/dist/emotion/cjs/components/Chip/Chip.config.js +53 -52
- package/dist/emotion/cjs/components/ChipGroup/ChipGroup.config.js +28 -27
- package/dist/emotion/cjs/components/Combobox/Combobox.config.js +160 -159
- package/dist/emotion/cjs/components/DatePicker/DatePicker.config.js +169 -168
- package/dist/emotion/cjs/components/Divider/Divider.config.js +5 -4
- package/dist/emotion/cjs/components/Drawer/Drawer.config.js +3 -2
- package/dist/emotion/cjs/components/Dropdown/Dropdown.config.js +21 -20
- package/dist/emotion/cjs/components/EmptyState/EmptyState.config.js +25 -24
- package/dist/emotion/cjs/components/IconButton/IconButton.config.js +29 -28
- package/dist/emotion/cjs/components/IconButton/IconButton.js +70 -1
- package/dist/emotion/cjs/components/Indicator/Indicator.config.js +8 -7
- package/dist/emotion/cjs/components/Link/Link.config.js +53 -52
- package/dist/emotion/cjs/components/Modal/Modal.config.js +6 -5
- package/dist/emotion/cjs/components/Notification/Notification.config.js +22 -21
- package/dist/emotion/cjs/components/NumberInput/NumberInput.config.js +30 -29
- package/dist/emotion/cjs/components/Pagination/Pagination.config.js +32 -31
- package/dist/emotion/cjs/components/Popover/Popover.config.js +3 -2
- package/dist/emotion/cjs/components/Progress/Progress.config.js +101 -100
- package/dist/emotion/cjs/components/Radiobox/Radiobox.config.js +19 -18
- package/dist/emotion/cjs/components/Range/Range.config.js +70 -69
- package/dist/emotion/cjs/components/Rating/Rating.config.js +33 -32
- package/dist/emotion/cjs/components/Segment/SegmentGroup.config.js +6 -5
- package/dist/emotion/cjs/components/Segment/SegmentItem.config.js +29 -28
- package/dist/emotion/cjs/components/Select/Select.config.js +126 -125
- package/dist/emotion/cjs/components/Sheet/Sheet.config.js +3 -2
- package/dist/emotion/cjs/components/Skeleton/LineSkeleton.config.js +35 -34
- package/dist/emotion/cjs/components/Slider/Slider.config.js +58 -57
- package/dist/emotion/cjs/components/Spinner/Spinner.config.js +8 -7
- package/dist/emotion/cjs/components/Steps/StepItem.config.js +8 -7
- package/dist/emotion/cjs/components/Steps/Steps.config.js +55 -54
- package/dist/emotion/cjs/components/Switch/Switch.config.js +26 -25
- package/dist/emotion/cjs/components/Table/Table.config.js +82 -81
- package/dist/emotion/cjs/components/Tabs/horizontal/HorizontalTabItem.config.js +74 -73
- package/dist/emotion/cjs/components/Tabs/horizontal/HorizontalTabs.config.js +22 -21
- package/dist/emotion/cjs/components/Tabs/vertical/VerticalTabItem.config.js +33 -32
- package/dist/emotion/cjs/components/Tabs/vertical/VerticalTabs.config.js +14 -13
- package/dist/emotion/cjs/components/TextArea/TextArea.clear.config.js +131 -130
- package/dist/emotion/cjs/components/TextArea/TextArea.config.js +160 -159
- package/dist/emotion/cjs/components/TextField/TextField.clear.config.js +119 -118
- package/dist/emotion/cjs/components/TextField/TextField.config.js +167 -166
- package/dist/emotion/cjs/components/TimePicker/TimePicker.config.js +79 -78
- package/dist/emotion/cjs/components/Toast/Toast.config.js +19 -18
- package/dist/emotion/cjs/components/ToastNew/ToastNew.config.js +11 -10
- package/dist/emotion/cjs/components/Tooltip/Tooltip.config.js +13 -12
- package/dist/emotion/cjs/components/Tour/Tour.config.js +2 -1
- package/dist/emotion/cjs/components/Tree/Tree.config.js +22 -21
- package/dist/emotion/cjs/components/Typography/Body.config.js +41 -40
- package/dist/emotion/cjs/components/Typography/Dspl.config.js +25 -24
- package/dist/emotion/cjs/components/Typography/Heading.config.js +41 -40
- package/dist/emotion/cjs/components/Typography/Text.config.js +33 -32
- package/dist/emotion/es/components/Accordion/Accordion.config.js +26 -25
- package/dist/emotion/es/components/Attach/Attach.config.js +121 -120
- package/dist/emotion/es/components/Autocomplete/Autocomplete.config.js +123 -122
- package/dist/emotion/es/components/Avatar/Avatar.config.js +32 -31
- package/dist/emotion/es/components/Badge/Badge.clear.config.js +5 -4
- package/dist/emotion/es/components/Badge/Badge.config.js +17 -16
- package/dist/emotion/es/components/Breadcrumbs/Breadcrumbs.config.js +11 -10
- package/dist/emotion/es/components/Button/Button.config.js +44 -43
- package/dist/emotion/es/components/Button/Button.js +3 -3
- package/dist/emotion/es/components/ButtonGroup/ButtonGroup.config.js +39 -38
- package/dist/emotion/es/components/Calendar/Calendar.config.js +60 -59
- package/dist/emotion/es/components/Calendar/CalendarDouble.config.js +60 -59
- package/dist/emotion/es/components/Card/Card.config.js +2 -1
- package/dist/emotion/es/components/Carousel/Carousel.config.js +9 -8
- package/dist/emotion/es/components/Cell/Cell.config.js +41 -40
- package/dist/emotion/es/components/Checkbox/Checkbox.config.js +22 -21
- package/dist/emotion/es/components/Chip/Chip.config.js +53 -52
- package/dist/emotion/es/components/ChipGroup/ChipGroup.config.js +28 -27
- package/dist/emotion/es/components/Combobox/Combobox.config.js +160 -159
- package/dist/emotion/es/components/DatePicker/DatePicker.config.js +169 -168
- package/dist/emotion/es/components/Divider/Divider.config.js +5 -4
- package/dist/emotion/es/components/Drawer/Drawer.config.js +3 -2
- package/dist/emotion/es/components/Dropdown/Dropdown.config.js +21 -20
- package/dist/emotion/es/components/EmptyState/EmptyState.config.js +25 -24
- package/dist/emotion/es/components/IconButton/IconButton.config.js +29 -28
- package/dist/emotion/es/components/IconButton/IconButton.js +25 -2
- package/dist/emotion/es/components/Indicator/Indicator.config.js +8 -7
- package/dist/emotion/es/components/Link/Link.config.js +53 -52
- package/dist/emotion/es/components/Modal/Modal.config.js +6 -5
- package/dist/emotion/es/components/Notification/Notification.config.js +22 -21
- package/dist/emotion/es/components/NumberInput/NumberInput.config.js +30 -29
- package/dist/emotion/es/components/Pagination/Pagination.config.js +32 -31
- package/dist/emotion/es/components/Popover/Popover.config.js +3 -2
- package/dist/emotion/es/components/Progress/Progress.config.js +101 -100
- package/dist/emotion/es/components/Radiobox/Radiobox.config.js +19 -18
- package/dist/emotion/es/components/Range/Range.config.js +70 -69
- package/dist/emotion/es/components/Rating/Rating.config.js +33 -32
- package/dist/emotion/es/components/Segment/SegmentGroup.config.js +6 -5
- package/dist/emotion/es/components/Segment/SegmentItem.config.js +29 -28
- package/dist/emotion/es/components/Select/Select.config.js +126 -125
- package/dist/emotion/es/components/Sheet/Sheet.config.js +3 -2
- package/dist/emotion/es/components/Skeleton/LineSkeleton.config.js +35 -34
- package/dist/emotion/es/components/Slider/Slider.config.js +58 -57
- package/dist/emotion/es/components/Spinner/Spinner.config.js +8 -7
- package/dist/emotion/es/components/Steps/StepItem.config.js +8 -7
- package/dist/emotion/es/components/Steps/Steps.config.js +55 -54
- package/dist/emotion/es/components/Switch/Switch.config.js +26 -25
- package/dist/emotion/es/components/Table/Table.config.js +82 -81
- package/dist/emotion/es/components/Tabs/horizontal/HorizontalTabItem.config.js +74 -73
- package/dist/emotion/es/components/Tabs/horizontal/HorizontalTabs.config.js +22 -21
- package/dist/emotion/es/components/Tabs/vertical/VerticalTabItem.config.js +33 -32
- package/dist/emotion/es/components/Tabs/vertical/VerticalTabs.config.js +14 -13
- package/dist/emotion/es/components/TextArea/TextArea.clear.config.js +131 -130
- package/dist/emotion/es/components/TextArea/TextArea.config.js +160 -159
- package/dist/emotion/es/components/TextField/TextField.clear.config.js +119 -118
- package/dist/emotion/es/components/TextField/TextField.config.js +167 -166
- package/dist/emotion/es/components/TimePicker/TimePicker.config.js +79 -78
- package/dist/emotion/es/components/Toast/Toast.config.js +19 -18
- package/dist/emotion/es/components/ToastNew/ToastNew.config.js +11 -10
- package/dist/emotion/es/components/Tooltip/Tooltip.config.js +13 -12
- package/dist/emotion/es/components/Tour/Tour.config.js +2 -1
- package/dist/emotion/es/components/Tree/Tree.config.js +22 -21
- package/dist/emotion/es/components/Typography/Body.config.js +41 -40
- package/dist/emotion/es/components/Typography/Dspl.config.js +25 -24
- package/dist/emotion/es/components/Typography/Heading.config.js +41 -40
- package/dist/emotion/es/components/Typography/Text.config.js +33 -32
- package/package.json +8 -8
- package/types/components/Autocomplete/Autocomplete.d.ts +8 -0
- package/types/components/Avatar/Avatar.d.ts +4 -4
- package/types/components/Combobox/Combobox.d.ts +8 -0
- package/types/components/DatePicker/DatePicker.d.ts +2 -0
- package/types/components/IconButton/IconButton.d.ts +28 -11
- package/types/components/Mask/Mask.d.ts +16 -0
- package/types/components/Rating/Rating.d.ts +1 -0
- package/types/components/Select/Select.d.ts +16 -0
- package/types/components/TextField/TextField.d.ts +32 -0
- 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}:
|
|
12
|
+
${sliderTokens.labelColor}: ${textPrimary};
|
|
12
13
|
|
|
13
|
-
${sliderTokens.rangeValueColor}:
|
|
14
|
+
${sliderTokens.rangeValueColor}: ${textSecondary};
|
|
14
15
|
|
|
15
|
-
${sliderTokens.thumbBorderColor}:
|
|
16
|
-
${sliderTokens.thumbBackgroundColor}:
|
|
17
|
-
${sliderTokens.thumbFocusBorderColor}:
|
|
16
|
+
${sliderTokens.thumbBorderColor}: ${surfaceSolidTertiary};
|
|
17
|
+
${sliderTokens.thumbBackgroundColor}: ${onLightSurfaceSolidCard};
|
|
18
|
+
${sliderTokens.thumbFocusBorderColor}: ${surfaceSolidDefault};
|
|
18
19
|
|
|
19
|
-
${sliderTokens.railBackgroundColor}:
|
|
20
|
+
${sliderTokens.railBackgroundColor}: ${surfaceSolidPrimary};
|
|
20
21
|
|
|
21
|
-
${sliderTokens.fillColor}:
|
|
22
|
+
${sliderTokens.fillColor}: ${surfaceSolidDefault};
|
|
22
23
|
|
|
23
|
-
${sliderTokens.tickDotColor}:
|
|
24
|
-
${sliderTokens.tickDotFilledColor}:
|
|
24
|
+
${sliderTokens.tickDotColor}: ${surfaceSolidPrimary};
|
|
25
|
+
${sliderTokens.tickDotFilledColor}: ${surfaceSolidDefault};
|
|
25
26
|
|
|
26
|
-
${sliderTokens.textFieldCaretColor}:
|
|
27
|
-
${sliderTokens.textFieldColor}:
|
|
28
|
-
${sliderTokens.textFiledFocusColor}:
|
|
29
|
-
${sliderTokens.textFieldPlaceholderColor}:
|
|
27
|
+
${sliderTokens.textFieldCaretColor}: ${textAccent};
|
|
28
|
+
${sliderTokens.textFieldColor}: ${textPrimary};
|
|
29
|
+
${sliderTokens.textFiledFocusColor}: ${textPrimary};
|
|
30
|
+
${sliderTokens.textFieldPlaceholderColor}: ${textSecondary};
|
|
30
31
|
|
|
31
|
-
${sliderTokens.textFieldBorderColor}:
|
|
32
|
-
${sliderTokens.textFieldBorderColorFocus}:
|
|
33
|
-
${sliderTokens.textFieldBorderColorHover}:
|
|
32
|
+
${sliderTokens.textFieldBorderColor}: ${outlineSolidPrimary};
|
|
33
|
+
${sliderTokens.textFieldBorderColorFocus}: ${outlineAccent};
|
|
34
|
+
${sliderTokens.textFieldBorderColorHover}: ${outlineSolidPrimaryHover};
|
|
34
35
|
|
|
35
|
-
${sliderTokens.textFieldBackgroundColor}:
|
|
36
|
-
${sliderTokens.textFieldBackgroundColorHover}:
|
|
37
|
-
${sliderTokens.textFieldBackgroundColorFocus}:
|
|
36
|
+
${sliderTokens.textFieldBackgroundColor}: ${surfaceSolidCard};
|
|
37
|
+
${sliderTokens.textFieldBackgroundColorHover}: ${surfaceSolidCard};
|
|
38
|
+
${sliderTokens.textFieldBackgroundColorFocus}: ${surfaceSolidCardActive};
|
|
38
39
|
`,
|
|
39
40
|
accent: css`
|
|
40
|
-
${sliderTokens.labelColor}:
|
|
41
|
+
${sliderTokens.labelColor}: ${textPrimary};
|
|
41
42
|
|
|
42
|
-
${sliderTokens.rangeValueColor}:
|
|
43
|
+
${sliderTokens.rangeValueColor}: ${textSecondary};
|
|
43
44
|
|
|
44
|
-
${sliderTokens.thumbBorderColor}:
|
|
45
|
-
${sliderTokens.thumbBackgroundColor}:
|
|
46
|
-
${sliderTokens.thumbFocusBorderColor}:
|
|
45
|
+
${sliderTokens.thumbBorderColor}: ${surfaceSolidTertiary};
|
|
46
|
+
${sliderTokens.thumbBackgroundColor}: ${onLightSurfaceSolidCard};
|
|
47
|
+
${sliderTokens.thumbFocusBorderColor}: ${surfaceAccent};
|
|
47
48
|
|
|
48
|
-
${sliderTokens.railBackgroundColor}:
|
|
49
|
+
${sliderTokens.railBackgroundColor}: ${surfaceSolidPrimary};
|
|
49
50
|
|
|
50
|
-
${sliderTokens.fillColor}:
|
|
51
|
+
${sliderTokens.fillColor}: ${surfaceAccent};
|
|
51
52
|
|
|
52
|
-
${sliderTokens.tickDotColor}:
|
|
53
|
-
${sliderTokens.tickDotFilledColor}:
|
|
53
|
+
${sliderTokens.tickDotColor}: ${surfaceSolidPrimary};
|
|
54
|
+
${sliderTokens.tickDotFilledColor}: ${surfaceAccent};
|
|
54
55
|
|
|
55
|
-
${sliderTokens.textFieldColor}:
|
|
56
|
+
${sliderTokens.textFieldColor}: ${textSecondary};
|
|
56
57
|
|
|
57
|
-
${sliderTokens.textFieldCaretColor}:
|
|
58
|
-
${sliderTokens.textFieldColor}:
|
|
59
|
-
${sliderTokens.textFiledFocusColor}:
|
|
60
|
-
${sliderTokens.textFieldPlaceholderColor}:
|
|
58
|
+
${sliderTokens.textFieldCaretColor}: ${textAccent};
|
|
59
|
+
${sliderTokens.textFieldColor}: ${textPrimary};
|
|
60
|
+
${sliderTokens.textFiledFocusColor}: ${textPrimary};
|
|
61
|
+
${sliderTokens.textFieldPlaceholderColor}: ${textSecondary};
|
|
61
62
|
|
|
62
|
-
${sliderTokens.textFieldBorderColor}:
|
|
63
|
-
${sliderTokens.textFieldBorderColorFocus}:
|
|
64
|
-
${sliderTokens.textFieldBorderColorHover}:
|
|
63
|
+
${sliderTokens.textFieldBorderColor}: ${outlineSolidPrimary};
|
|
64
|
+
${sliderTokens.textFieldBorderColorFocus}: ${outlineAccent};
|
|
65
|
+
${sliderTokens.textFieldBorderColorHover}: ${outlineSolidPrimaryHover};
|
|
65
66
|
|
|
66
|
-
${sliderTokens.textFieldBackgroundColor}:
|
|
67
|
-
${sliderTokens.textFieldBackgroundColorHover}:
|
|
68
|
-
${sliderTokens.textFieldBackgroundColorFocus}:
|
|
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}:
|
|
83
|
-
${sliderTokens.labelFontSize}:
|
|
84
|
-
${sliderTokens.labelFontStyle}:
|
|
85
|
-
${sliderTokens.labelFontWeight}:
|
|
86
|
-
${sliderTokens.labelLetterSpacing}:
|
|
87
|
-
${sliderTokens.labelLineHeight}:
|
|
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}:
|
|
95
|
-
${sliderTokens.valueFontSize}:
|
|
96
|
-
${sliderTokens.valueFontStyle}:
|
|
97
|
-
${sliderTokens.valueFontWeight}:
|
|
98
|
-
${sliderTokens.valueLetterSpacing}:
|
|
99
|
-
${sliderTokens.valueLineHeight}:
|
|
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}:
|
|
115
|
-
${sliderTokens.textFieldFontSize}:
|
|
116
|
-
${sliderTokens.textFieldFontStyle}:
|
|
117
|
-
${sliderTokens.textFieldFontWeight}:
|
|
118
|
-
${sliderTokens.textFieldLetterSpacing}:
|
|
119
|
-
${sliderTokens.textFieldLineHeight}:
|
|
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:
|
|
11
|
+
--plasma-spinner-color: ${textPrimary};
|
|
11
12
|
`,
|
|
12
13
|
secondary: css`
|
|
13
|
-
--plasma-spinner-color:
|
|
14
|
+
--plasma-spinner-color: ${textSecondary};
|
|
14
15
|
`,
|
|
15
16
|
tertiary: css`
|
|
16
|
-
--plasma-spinner-color:
|
|
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:
|
|
23
|
+
--plasma-spinner-color: ${textAccent};
|
|
23
24
|
`,
|
|
24
25
|
positive: css`
|
|
25
|
-
--plasma-spinner-color:
|
|
26
|
+
--plasma-spinner-color: ${textPositive};
|
|
26
27
|
`,
|
|
27
28
|
warning: css`
|
|
28
|
-
--plasma-spinner-color:
|
|
29
|
+
--plasma-spinner-color: ${textWarning};
|
|
29
30
|
`,
|
|
30
31
|
negative: css`
|
|
31
|
-
--plasma-spinner-color:
|
|
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}:
|
|
10
|
-
${tokens.completedIndicatorColorHover}:
|
|
11
|
-
${tokens.completedIndicatorBackground}:
|
|
12
|
-
${tokens.completedIndicatorBackgroundHover}:
|
|
13
|
-
${tokens.completedTitleColor}:
|
|
14
|
-
${tokens.completedTitleColorHover}:
|
|
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}:
|
|
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}:
|
|
11
|
+
${tokens.loaderSpinnerColor}: ${onDarkSurfaceSolidPrimary};
|
|
11
12
|
|
|
12
|
-
${tokens.activeTitleColor}:
|
|
13
|
-
${tokens.activeTitleColorHover}:
|
|
14
|
-
${tokens.activeIndicatorColor}:
|
|
15
|
-
${tokens.activeIndicatorBackground}:
|
|
13
|
+
${tokens.activeTitleColor}: ${textPrimary};
|
|
14
|
+
${tokens.activeTitleColorHover}: ${textPrimaryHover};
|
|
15
|
+
${tokens.activeIndicatorColor}: ${inverseTextPrimary};
|
|
16
|
+
${tokens.activeIndicatorBackground}: ${onDarkSurfaceSolidPrimary};
|
|
16
17
|
|
|
17
|
-
${tokens.bulletActiveIndicatorBorder}: solid
|
|
18
|
-
${tokens.bulletActiveBackground}:
|
|
18
|
+
${tokens.bulletActiveIndicatorBorder}: solid ${onDarkSurfaceSolidPrimary};
|
|
19
|
+
${tokens.bulletActiveBackground}: ${surfaceClear};
|
|
19
20
|
|
|
20
|
-
${tokens.completedTitleColor}:
|
|
21
|
-
${tokens.completedTitleColorHover}:
|
|
22
|
-
${tokens.completedIndicatorColor}:
|
|
23
|
-
${tokens.completedIndicatorColorHover}:
|
|
24
|
-
${tokens.completedIndicatorBackground}:
|
|
25
|
-
${tokens.completedIndicatorBackgroundHover}:
|
|
26
|
-
${tokens.completedIndicatorBorder}:
|
|
27
|
-
${tokens.completedIndicatorBorderHover}:
|
|
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}:
|
|
30
|
-
${tokens.completedBulletBorderHover}:
|
|
31
|
-
${tokens.completedBulletBackground}:
|
|
32
|
-
${tokens.completedBulletBackgroundHover}:
|
|
30
|
+
${tokens.completedBulletBorder}: ${surfacePositive};
|
|
31
|
+
${tokens.completedBulletBorderHover}: ${surfacePositiveHover};
|
|
32
|
+
${tokens.completedBulletBackground}: ${surfacePositive};
|
|
33
|
+
${tokens.completedBulletBackgroundHover}: ${surfacePositiveHover};
|
|
33
34
|
|
|
34
|
-
${tokens.inactiveTitleColor}:
|
|
35
|
-
${tokens.inactiveTitleColorHover}:
|
|
36
|
-
${tokens.inactiveIndicatorColor}:
|
|
37
|
-
${tokens.inactiveIndicatorColorHover}:
|
|
35
|
+
${tokens.inactiveTitleColor}: ${textPrimary};
|
|
36
|
+
${tokens.inactiveTitleColorHover}: ${textPrimaryHover};
|
|
37
|
+
${tokens.inactiveIndicatorColor}: ${textPrimary};
|
|
38
|
+
${tokens.inactiveIndicatorColorHover}: ${textPrimary};
|
|
38
39
|
|
|
39
|
-
${tokens.inactiveIndicatorBackground}:
|
|
40
|
-
${tokens.inactiveIndicatorBackgroundHover}:
|
|
40
|
+
${tokens.inactiveIndicatorBackground}: ${surfaceSolidTertiary};
|
|
41
|
+
${tokens.inactiveIndicatorBackgroundHover}: ${surfaceSolidTertiaryHover};
|
|
41
42
|
|
|
42
|
-
${tokens.contentColor}:
|
|
43
|
-
${tokens.focusColor}:
|
|
43
|
+
${tokens.contentColor}: ${textSecondary};
|
|
44
|
+
${tokens.focusColor}: ${surfaceAccent};
|
|
44
45
|
|
|
45
|
-
${tokens.dividerColor}:
|
|
46
|
-
${tokens.dividerGradientColor}: linear-gradient(90deg,
|
|
47
|
-
${tokens.dividerVerticalGradientColor}: linear-gradient(180deg,
|
|
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}:
|
|
66
|
-
${tokens.indicatorFontSize}:
|
|
67
|
-
${tokens.indicatorFontStyle}:
|
|
68
|
-
${tokens.indicatorFontWeight}:
|
|
69
|
-
${tokens.indicatorLetterSpacing}:
|
|
70
|
-
${tokens.indicatorLineHeight}:
|
|
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}:
|
|
73
|
-
${tokens.activeIndicatorFontSize}:
|
|
74
|
-
${tokens.activeIndicatorFontStyle}:
|
|
75
|
-
${tokens.activeIndicatorFontWeight}:
|
|
76
|
-
${tokens.activeIndicatorLetterSpacing}:
|
|
77
|
-
${tokens.activeIndicatorLineHeight}:
|
|
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}:
|
|
80
|
-
${tokens.titleFontSize}:
|
|
81
|
-
${tokens.titleFontStyle}:
|
|
82
|
-
${tokens.titleFontWeight}:
|
|
83
|
-
${tokens.titleLetterSpacing}:
|
|
84
|
-
${tokens.titleLineHeight}:
|
|
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}:
|
|
87
|
-
${tokens.contentFontSize}:
|
|
88
|
-
${tokens.contentFontStyle}:
|
|
89
|
-
${tokens.contentFontWeight}:
|
|
90
|
-
${tokens.contentLetterSpacing}:
|
|
91
|
-
${tokens.contentLineHeight}:
|
|
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}:
|
|
14
|
-
${switchTokens.fontStyle}:
|
|
15
|
-
${switchTokens.fontWeight}:
|
|
16
|
-
${switchTokens.lineHeight}:
|
|
17
|
-
${switchTokens.fontSize}:
|
|
18
|
-
${switchTokens.letterSpacing}:
|
|
19
|
-
${switchTokens.descriptionFontFamily}:
|
|
20
|
-
${switchTokens.descriptionFontStyle}:
|
|
21
|
-
${switchTokens.descriptionFontWeight}:
|
|
22
|
-
${switchTokens.descriptionLineHeight}:
|
|
23
|
-
${switchTokens.descriptionFontSize}:
|
|
24
|
-
${switchTokens.descriptionLetterSpacing}:
|
|
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}:
|
|
54
|
-
${switchTokens.descriptionColor}:
|
|
54
|
+
${switchTokens.labelColor}: ${textPrimary};
|
|
55
|
+
${switchTokens.descriptionColor}: ${textSecondary};
|
|
55
56
|
${switchTokens.descriptionMaxLines}: 2;
|
|
56
|
-
${switchTokens.trackBackgroundColorOn}:
|
|
57
|
-
${switchTokens.trackBackgroundColorOnHover}:
|
|
58
|
-
${switchTokens.trackBackgroundColorOff}:
|
|
59
|
-
${switchTokens.trackBackgroundColorOffHover}:
|
|
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}:
|
|
63
|
-
${switchTokens.trackBorderColorOnHover}:
|
|
64
|
-
${switchTokens.trackBorderColorOff}:
|
|
65
|
-
${switchTokens.trackBorderColorOffHover}:
|
|
66
|
-
${switchTokens.thumbBackgroundColorOn}:
|
|
67
|
-
${switchTokens.thumbBackgroundColorOff}:
|
|
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}:
|
|
79
|
+
${switchTokens.trackFocusColor}: ${surfaceAccent};
|
|
79
80
|
`
|
|
80
81
|
}
|
|
81
82
|
}
|