@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.
- 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 { 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}:
|
|
12
|
-
${progressTokens.progressFilledBackgroundColor}:
|
|
13
|
-
${progressTokens.labelColor}:
|
|
14
|
-
${progressTokens.labelIconColor}:
|
|
15
|
-
${progressTokens.valueColor}:
|
|
16
|
-
${progressTokens.captionColor}:
|
|
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}:
|
|
20
|
+
${progressTokens.trackBackgroundColor}: ${surfaceSolidSecondary};
|
|
20
21
|
${progressTokens.progressFilledBackgroundColor}: var(--surface-transparent-tertiary);
|
|
21
|
-
${progressTokens.labelColor}:
|
|
22
|
-
${progressTokens.labelIconColor}:
|
|
23
|
-
${progressTokens.valueColor}:
|
|
24
|
-
${progressTokens.captionColor}:
|
|
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}:
|
|
28
|
-
${progressTokens.progressFilledBackgroundColor}:
|
|
29
|
-
${progressTokens.labelColor}:
|
|
30
|
-
${progressTokens.labelIconColor}:
|
|
31
|
-
${progressTokens.valueColor}:
|
|
32
|
-
${progressTokens.captionColor}:
|
|
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}:
|
|
36
|
+
${progressTokens.trackBackgroundColor}: ${surfaceSolidSecondary};
|
|
36
37
|
${progressTokens.progressFilledBackgroundColor}: var(--surface-accent-gradient);
|
|
37
|
-
${progressTokens.labelColor}:
|
|
38
|
-
${progressTokens.labelIconColor}:
|
|
39
|
-
${progressTokens.valueColor}:
|
|
40
|
-
${progressTokens.captionColor}:
|
|
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}:
|
|
44
|
-
${progressTokens.progressFilledBackgroundColor}:
|
|
45
|
-
${progressTokens.labelColor}:
|
|
46
|
-
${progressTokens.labelIconColor}:
|
|
47
|
-
${progressTokens.valueColor}:
|
|
48
|
-
${progressTokens.captionColor}:
|
|
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}:
|
|
52
|
-
${progressTokens.progressFilledBackgroundColor}:
|
|
53
|
-
${progressTokens.labelColor}:
|
|
54
|
-
${progressTokens.labelIconColor}:
|
|
55
|
-
${progressTokens.valueColor}:
|
|
56
|
-
${progressTokens.captionColor}:
|
|
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}:
|
|
60
|
-
${progressTokens.progressFilledBackgroundColor}:
|
|
61
|
-
${progressTokens.labelColor}:
|
|
62
|
-
${progressTokens.labelIconColor}:
|
|
63
|
-
${progressTokens.valueColor}:
|
|
64
|
-
${progressTokens.captionColor}:
|
|
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}:
|
|
68
|
-
${progressTokens.progressFilledBackgroundColor}:
|
|
69
|
-
${progressTokens.labelColor}:
|
|
70
|
-
${progressTokens.labelIconColor}:
|
|
71
|
-
${progressTokens.valueColor}:
|
|
72
|
-
${progressTokens.captionColor}:
|
|
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}:
|
|
82
|
-
${progressTokens.labelFontSize}:
|
|
83
|
-
${progressTokens.labelFontStyle}:
|
|
84
|
-
${progressTokens.labelFontWeight}:
|
|
85
|
-
${progressTokens.labelLetterSpacing}:
|
|
86
|
-
${progressTokens.labelLineHeight}:
|
|
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}:
|
|
89
|
-
${progressTokens.valueFontSize}:
|
|
90
|
-
${progressTokens.valueFontStyle}:
|
|
91
|
-
${progressTokens.valueFontWeight}:
|
|
92
|
-
${progressTokens.valueLetterSpacing}:
|
|
93
|
-
${progressTokens.valueLineHeight}:
|
|
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}:
|
|
97
|
-
${progressTokens.captionFontSize}:
|
|
98
|
-
${progressTokens.captionFontStyle}:
|
|
99
|
-
${progressTokens.captionFontWeight}:
|
|
100
|
-
${progressTokens.captionLetterSpacing}:
|
|
101
|
-
${progressTokens.captionLineHeight}:
|
|
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}:
|
|
110
|
-
${progressTokens.labelFontSize}:
|
|
111
|
-
${progressTokens.labelFontStyle}:
|
|
112
|
-
${progressTokens.labelFontWeight}:
|
|
113
|
-
${progressTokens.labelLetterSpacing}:
|
|
114
|
-
${progressTokens.labelLineHeight}:
|
|
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}:
|
|
117
|
-
${progressTokens.valueFontSize}:
|
|
118
|
-
${progressTokens.valueFontStyle}:
|
|
119
|
-
${progressTokens.valueFontWeight}:
|
|
120
|
-
${progressTokens.valueLetterSpacing}:
|
|
121
|
-
${progressTokens.valueLineHeight}:
|
|
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}:
|
|
125
|
-
${progressTokens.captionFontSize}:
|
|
126
|
-
${progressTokens.captionFontStyle}:
|
|
127
|
-
${progressTokens.captionFontWeight}:
|
|
128
|
-
${progressTokens.captionLetterSpacing}:
|
|
129
|
-
${progressTokens.captionLineHeight}:
|
|
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}:
|
|
138
|
-
${progressTokens.labelFontSize}:
|
|
139
|
-
${progressTokens.labelFontStyle}:
|
|
140
|
-
${progressTokens.labelFontWeight}:
|
|
141
|
-
${progressTokens.labelLetterSpacing}:
|
|
142
|
-
${progressTokens.labelLineHeight}:
|
|
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}:
|
|
145
|
-
${progressTokens.valueFontSize}:
|
|
146
|
-
${progressTokens.valueFontStyle}:
|
|
147
|
-
${progressTokens.valueFontWeight}:
|
|
148
|
-
${progressTokens.valueLetterSpacing}:
|
|
149
|
-
${progressTokens.valueLineHeight}:
|
|
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}:
|
|
153
|
-
${progressTokens.captionFontSize}:
|
|
154
|
-
${progressTokens.captionFontStyle}:
|
|
155
|
-
${progressTokens.captionFontWeight}:
|
|
156
|
-
${progressTokens.captionLetterSpacing}:
|
|
157
|
-
${progressTokens.captionLineHeight}:
|
|
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}:
|
|
23
|
-
${radioboxTokens.labelFontSize}:
|
|
24
|
-
${radioboxTokens.labelFontStyle}:
|
|
25
|
-
${radioboxTokens.labelFontWeight}:
|
|
26
|
-
${radioboxTokens.labelLetterSpacing}:
|
|
27
|
-
${radioboxTokens.labelLineHeight}:
|
|
28
|
-
${radioboxTokens.descriptionFontFamily}:
|
|
29
|
-
${radioboxTokens.descriptionFontSize}:
|
|
30
|
-
${radioboxTokens.descriptionFontStyle}:
|
|
31
|
-
${radioboxTokens.descriptionFontWeight}:
|
|
32
|
-
${radioboxTokens.descriptionLetterSpacing}:
|
|
33
|
-
${radioboxTokens.descriptionLineHeight}:
|
|
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}:
|
|
41
|
-
${radioboxTokens.ellipseColor}:
|
|
42
|
-
${radioboxTokens.descriptionColor}:
|
|
43
|
-
${radioboxTokens.triggerBackgroundColor}:
|
|
44
|
-
${radioboxTokens.triggerBorderColor}:
|
|
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}:
|
|
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}:
|
|
11
|
-
${tokens.borderColor}:
|
|
12
|
-
${tokens.borderColorError}:
|
|
13
|
-
${tokens.borderColorSuccess}:
|
|
14
|
-
|
|
15
|
-
${tokens.dividerColor}:
|
|
16
|
-
${tokens.labelColor}:
|
|
17
|
-
${tokens.leftHelperColor}:
|
|
18
|
-
${tokens.leftHelperColorError}:
|
|
19
|
-
${tokens.leftHelperColorSuccess}:
|
|
20
|
-
|
|
21
|
-
${tokens.embedIconButtonFocusColor}:
|
|
22
|
-
${tokens.contentSlotColor}:
|
|
23
|
-
${tokens.contentSlotColorHover}:
|
|
24
|
-
${tokens.contentSlotColorActive}:
|
|
25
|
-
|
|
26
|
-
${tokens.indicatorColor}:
|
|
27
|
-
|
|
28
|
-
${tokens.textFieldColor}:
|
|
29
|
-
${tokens.textFieldPlaceholderColor}:
|
|
30
|
-
${tokens.textFieldPlaceholderColorFocus}:
|
|
31
|
-
${tokens.textFieldCaretColor}:
|
|
32
|
-
|
|
33
|
-
${tokens.textFieldBorderColorHover}:
|
|
34
|
-
${tokens.textFieldBorderColorFocus}:
|
|
35
|
-
${tokens.textFieldBorderColorError}:
|
|
36
|
-
${tokens.textFieldBorderColorErrorFocus}:
|
|
37
|
-
${tokens.textFieldBorderColorSuccess}:
|
|
38
|
-
${tokens.textFieldBorderColorSuccessFocus}:
|
|
39
|
-
|
|
40
|
-
${tokens.focusColor}:
|
|
41
|
-
${tokens.textFieldTextAfterColor}:
|
|
42
|
-
${tokens.textFieldTextBeforeColor}:
|
|
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}:
|
|
52
|
-
${tokens.dividerFontStyle}:
|
|
53
|
-
${tokens.dividerFontSize}:
|
|
54
|
-
${tokens.dividerFontWeight}:
|
|
55
|
-
${tokens.dividerLetterSpacing}:
|
|
56
|
-
${tokens.dividerLineHeight}:
|
|
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}:
|
|
66
|
-
${tokens.textFieldFontStyle}:
|
|
67
|
-
${tokens.textFieldFontSize}:
|
|
68
|
-
${tokens.textFieldFontWeight}:
|
|
69
|
-
${tokens.textFieldLetterSpacing}:
|
|
70
|
-
${tokens.textFieldLineHeight}:
|
|
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}:
|
|
78
|
-
${tokens.labelFontStyle}:
|
|
79
|
-
${tokens.labelFontSize}:
|
|
80
|
-
${tokens.labelFontWeight}:
|
|
81
|
-
${tokens.labelLetterSpacing}:
|
|
82
|
-
${tokens.labelLineHeight}:
|
|
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}:
|
|
105
|
-
${tokens.leftHelperFontStyle}:
|
|
106
|
-
${tokens.leftHelperFontSize}:
|
|
107
|
-
${tokens.leftHelperFontWeight}:
|
|
108
|
-
${tokens.leftHelperLetterSpacing}:
|
|
109
|
-
${tokens.leftHelperLineHeight}:
|
|
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}:
|
|
116
|
-
${tokens.borderColor}:
|
|
117
|
-
${tokens.textFieldBorderColorFocus}:
|
|
118
|
-
${tokens.textFieldColor}:
|
|
119
|
-
${tokens.textFieldPlaceholderColor}:
|
|
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}:
|
|
125
|
-
${tokens.labelColorReadOnly}:
|
|
126
|
-
${tokens.borderColorReadOnly}:
|
|
127
|
-
${tokens.leftHelperColorReadOnly}:
|
|
128
|
-
${tokens.dividerColorReadOnly}:
|
|
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}:
|
|
134
|
+
${tokens.textFieldColorReadOnly}: ${textPrimary};
|
|
134
135
|
${tokens.textFieldBackgroundColorReadOnly}: transparent;
|
|
135
|
-
${tokens.textFieldPlaceholderColorReadOnly}:
|
|
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}:
|
|
11
|
-
${tokens.helperTextColor}:
|
|
12
|
-
${tokens.iconColor}:
|
|
13
|
-
${tokens.outlineIconColor}:
|
|
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}:
|
|
17
|
-
${tokens.helperTextColor}:
|
|
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}:
|
|
20
|
-
${tokens.outlineIconColor}:
|
|
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}:
|
|
28
|
-
${tokens.fontSize}:
|
|
29
|
-
${tokens.fontStyle}:
|
|
30
|
-
${tokens.fontWeight}:
|
|
31
|
-
${tokens.letterSpacing}:
|
|
32
|
-
${tokens.lineHeight}:
|
|
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}:
|
|
35
|
-
${tokens.helperTextFontSize}:
|
|
36
|
-
${tokens.helperTextFontStyle}:
|
|
37
|
-
${tokens.helperTextFontWeight}:
|
|
38
|
-
${tokens.helperTextLetterSpacing}:
|
|
39
|
-
${tokens.helperTextLineHeight}:
|
|
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}:
|
|
51
|
-
${tokens.fontSize}:
|
|
52
|
-
${tokens.fontStyle}:
|
|
53
|
-
${tokens.fontWeight}:
|
|
54
|
-
${tokens.letterSpacing}:
|
|
55
|
-
${tokens.lineHeight}:
|
|
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}:
|
|
58
|
-
${tokens.helperTextFontSize}:
|
|
59
|
-
${tokens.helperTextFontStyle}:
|
|
60
|
-
${tokens.helperTextFontWeight}:
|
|
61
|
-
${tokens.helperTextLetterSpacing}:
|
|
62
|
-
${tokens.helperTextLineHeight}:
|
|
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;
|