@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, bodySBold, bodyXS, bodyXSBold, onDarkTextPrimary, textAccent, textSecondary } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, tableTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -15,12 +16,12 @@ export const config = {
|
|
|
15
16
|
},
|
|
16
17
|
size: {
|
|
17
18
|
l: css`
|
|
18
|
-
${tokens.fontFamily}:
|
|
19
|
-
${tokens.fontSize}:
|
|
20
|
-
${tokens.fontStyle}:
|
|
21
|
-
${tokens.fontWeight}:
|
|
22
|
-
${tokens.letterSpacing}:
|
|
23
|
-
${tokens.lineHeight}:
|
|
19
|
+
${tokens.fontFamily}: ${bodyL.fontFamily};
|
|
20
|
+
${tokens.fontSize}: ${bodyL.fontSize};
|
|
21
|
+
${tokens.fontStyle}: ${bodyL.fontStyle};
|
|
22
|
+
${tokens.fontWeight}: ${bodyL.fontWeight};
|
|
23
|
+
${tokens.letterSpacing}: ${bodyL.letterSpacing};
|
|
24
|
+
${tokens.lineHeight}: ${bodyL.lineHeight};
|
|
24
25
|
|
|
25
26
|
${tokens.headerRowHeight}: 3.125rem;
|
|
26
27
|
${tokens.rowHeight}: 3.125rem;
|
|
@@ -30,9 +31,9 @@ export const config = {
|
|
|
30
31
|
${tokens.checkboxTriggerBorderCheckedColor}: transparent;
|
|
31
32
|
${tokens.checkboxTriggerSize}: 1.25rem;
|
|
32
33
|
${tokens.checkboxTriggerBorderRadius}: 0.375rem;
|
|
33
|
-
${tokens.checkboxTriggerBorderColor}:
|
|
34
|
-
${tokens.checkboxFillColor}:
|
|
35
|
-
${tokens.checkboxTriggerIconColor}:
|
|
34
|
+
${tokens.checkboxTriggerBorderColor}: ${textSecondary};
|
|
35
|
+
${tokens.checkboxFillColor}: ${textAccent};
|
|
36
|
+
${tokens.checkboxTriggerIconColor}: ${onDarkTextPrimary};
|
|
36
37
|
|
|
37
38
|
${tokens.editableCellIconGap}: 0.5rem;
|
|
38
39
|
${tokens.editableCellIconButtonWidth}: 3rem;
|
|
@@ -47,12 +48,12 @@ export const config = {
|
|
|
47
48
|
${tokens.filterDividerMargin}: 0.375rem 0.75rem;
|
|
48
49
|
|
|
49
50
|
${tokens.buttonHeight}: 2.5rem;
|
|
50
|
-
${tokens.buttonFontFamily}:
|
|
51
|
-
${tokens.buttonFontSize}:
|
|
52
|
-
${tokens.buttonFontStyle}:
|
|
53
|
-
${tokens.buttonFontWeight}:
|
|
54
|
-
${tokens.buttonLetterSpacing}:
|
|
55
|
-
${tokens.buttonLineHeight}:
|
|
51
|
+
${tokens.buttonFontFamily}: ${bodyS.fontFamily};
|
|
52
|
+
${tokens.buttonFontSize}: ${bodyS.fontSize};
|
|
53
|
+
${tokens.buttonFontStyle}: ${bodyS.fontStyle};
|
|
54
|
+
${tokens.buttonFontWeight}: ${bodySBold.fontWeight};
|
|
55
|
+
${tokens.buttonLetterSpacing}: ${bodyS.letterSpacing};
|
|
56
|
+
${tokens.buttonLineHeight}: ${bodyS.lineHeight};
|
|
56
57
|
|
|
57
58
|
${tokens.selectPadding}: 0.125rem;
|
|
58
59
|
${tokens.selectBorderRadius}: 0.875rem;
|
|
@@ -62,12 +63,12 @@ export const config = {
|
|
|
62
63
|
${tokens.selectItemIconMargin}: 0 0.375rem 0 0;
|
|
63
64
|
${tokens.selectItemIconSize}: 1.5rem;
|
|
64
65
|
${tokens.selectCellPadding}: 0;
|
|
65
|
-
${tokens.selectCellTitleFontFamily}:
|
|
66
|
-
${tokens.selectCellTitleFontSize}:
|
|
67
|
-
${tokens.selectCellTitleFontStyle}:
|
|
68
|
-
${tokens.selectCellTitleFontWeight}:
|
|
69
|
-
${tokens.selectCellTitleLetterSpacing}:
|
|
70
|
-
${tokens.selectCellTitleLineHeight}:
|
|
66
|
+
${tokens.selectCellTitleFontFamily}: ${bodyM.fontFamily};
|
|
67
|
+
${tokens.selectCellTitleFontSize}: ${bodyM.fontSize};
|
|
68
|
+
${tokens.selectCellTitleFontStyle}: ${bodyM.fontStyle};
|
|
69
|
+
${tokens.selectCellTitleFontWeight}: ${bodyM.fontWeight};
|
|
70
|
+
${tokens.selectCellTitleLetterSpacing}: ${bodyM.letterSpacing};
|
|
71
|
+
${tokens.selectCellTitleLineHeight}: ${bodyM.lineHeight};
|
|
71
72
|
${tokens.selectCheckboxTriggerSize}: 1.25rem;
|
|
72
73
|
${tokens.selectCheckboxTriggerBorderRadius}: 0.375rem;
|
|
73
74
|
${tokens.selectCheckboxTriggerBorderWidth}: 0.125rem;
|
|
@@ -75,20 +76,20 @@ export const config = {
|
|
|
75
76
|
${tokens.selectControlPanelPadding}: 0.5rem 0.875rem;
|
|
76
77
|
${tokens.selectControlPanelGap}: 0.5rem;
|
|
77
78
|
|
|
78
|
-
${tokens.linkButtonFontFamily}:
|
|
79
|
-
${tokens.linkButtonFontSize}:
|
|
80
|
-
${tokens.linkButtonFontStyle}:
|
|
81
|
-
${tokens.linkButtonFontWeight}:
|
|
82
|
-
${tokens.linkButtonLetterSpacing}:
|
|
83
|
-
${tokens.linkButtonLineHeight}:
|
|
79
|
+
${tokens.linkButtonFontFamily}: ${bodyS.fontFamily};
|
|
80
|
+
${tokens.linkButtonFontSize}: ${bodyS.fontSize};
|
|
81
|
+
${tokens.linkButtonFontStyle}: ${bodyS.fontStyle};
|
|
82
|
+
${tokens.linkButtonFontWeight}: ${bodySBold.fontWeight};
|
|
83
|
+
${tokens.linkButtonLetterSpacing}: ${bodyS.letterSpacing};
|
|
84
|
+
${tokens.linkButtonLineHeight}: ${bodyS.lineHeight};
|
|
84
85
|
`,
|
|
85
86
|
m: css`
|
|
86
|
-
${tokens.fontFamily}:
|
|
87
|
-
${tokens.fontSize}:
|
|
88
|
-
${tokens.fontStyle}:
|
|
89
|
-
${tokens.fontWeight}:
|
|
90
|
-
${tokens.letterSpacing}:
|
|
91
|
-
${tokens.lineHeight}:
|
|
87
|
+
${tokens.fontFamily}: ${bodyM.fontFamily};
|
|
88
|
+
${tokens.fontSize}: ${bodyM.fontSize};
|
|
89
|
+
${tokens.fontStyle}: ${bodyM.fontStyle};
|
|
90
|
+
${tokens.fontWeight}: ${bodyM.fontWeight};
|
|
91
|
+
${tokens.letterSpacing}: ${bodyM.letterSpacing};
|
|
92
|
+
${tokens.lineHeight}: ${bodyM.lineHeight};
|
|
92
93
|
|
|
93
94
|
${tokens.headerRowHeight}: 2.75rem;
|
|
94
95
|
${tokens.rowHeight}: 2.75rem;
|
|
@@ -98,9 +99,9 @@ export const config = {
|
|
|
98
99
|
${tokens.checkboxTriggerBorderCheckedColor}: transparent;
|
|
99
100
|
${tokens.checkboxTriggerSize}: 1.25rem;
|
|
100
101
|
${tokens.checkboxTriggerBorderRadius}: 0.375rem;
|
|
101
|
-
${tokens.checkboxTriggerBorderColor}:
|
|
102
|
-
${tokens.checkboxFillColor}:
|
|
103
|
-
${tokens.checkboxTriggerIconColor}:
|
|
102
|
+
${tokens.checkboxTriggerBorderColor}: ${textSecondary};
|
|
103
|
+
${tokens.checkboxFillColor}: ${textAccent};
|
|
104
|
+
${tokens.checkboxTriggerIconColor}: ${onDarkTextPrimary};
|
|
104
105
|
|
|
105
106
|
${tokens.editableCellIconGap}: 0.375rem;
|
|
106
107
|
${tokens.editableCellIconButtonWidth}: 2.5rem;
|
|
@@ -115,12 +116,12 @@ export const config = {
|
|
|
115
116
|
${tokens.filterDividerMargin}: 0.375rem 0.75rem;
|
|
116
117
|
|
|
117
118
|
${tokens.buttonHeight}: 2rem;
|
|
118
|
-
${tokens.buttonFontFamily}:
|
|
119
|
-
${tokens.buttonFontSize}:
|
|
120
|
-
${tokens.buttonFontStyle}:
|
|
121
|
-
${tokens.buttonFontWeight}:
|
|
122
|
-
${tokens.buttonLetterSpacing}:
|
|
123
|
-
${tokens.buttonLineHeight}:
|
|
119
|
+
${tokens.buttonFontFamily}: ${bodyXS.fontFamily};
|
|
120
|
+
${tokens.buttonFontSize}: ${bodyXS.fontSize};
|
|
121
|
+
${tokens.buttonFontStyle}: ${bodyXS.fontStyle};
|
|
122
|
+
${tokens.buttonFontWeight}: ${bodyXSBold.fontWeight};
|
|
123
|
+
${tokens.buttonLetterSpacing}: ${bodyXS.letterSpacing};
|
|
124
|
+
${tokens.buttonLineHeight}: ${bodyXS.lineHeight};
|
|
124
125
|
|
|
125
126
|
${tokens.selectPadding}: 0.125rem;
|
|
126
127
|
${tokens.selectBorderRadius}: 0.75rem;
|
|
@@ -130,12 +131,12 @@ export const config = {
|
|
|
130
131
|
${tokens.selectItemIconMargin}: 0 0.375rem 0 0;
|
|
131
132
|
${tokens.selectItemIconSize}: 1.5rem;
|
|
132
133
|
${tokens.selectCellPadding}: 0;
|
|
133
|
-
${tokens.selectCellTitleFontFamily}:
|
|
134
|
-
${tokens.selectCellTitleFontSize}:
|
|
135
|
-
${tokens.selectCellTitleFontStyle}:
|
|
136
|
-
${tokens.selectCellTitleFontWeight}:
|
|
137
|
-
${tokens.selectCellTitleLetterSpacing}:
|
|
138
|
-
${tokens.selectCellTitleLineHeight}:
|
|
134
|
+
${tokens.selectCellTitleFontFamily}: ${bodyS.fontFamily};
|
|
135
|
+
${tokens.selectCellTitleFontSize}: ${bodyS.fontSize};
|
|
136
|
+
${tokens.selectCellTitleFontStyle}: ${bodyS.fontStyle};
|
|
137
|
+
${tokens.selectCellTitleFontWeight}: ${bodyS.fontWeight};
|
|
138
|
+
${tokens.selectCellTitleLetterSpacing}: ${bodyS.letterSpacing};
|
|
139
|
+
${tokens.selectCellTitleLineHeight}: ${bodyS.lineHeight};
|
|
139
140
|
${tokens.selectCheckboxTriggerSize}: 1.25rem;
|
|
140
141
|
${tokens.selectCheckboxTriggerBorderRadius}: 0.375rem;
|
|
141
142
|
${tokens.selectCheckboxTriggerBorderWidth}: 0.125rem;
|
|
@@ -143,20 +144,20 @@ export const config = {
|
|
|
143
144
|
${tokens.selectControlPanelPadding}: 0.25rem 0.75rem;
|
|
144
145
|
${tokens.selectControlPanelGap}: 0.625rem;
|
|
145
146
|
|
|
146
|
-
${tokens.linkButtonFontFamily}:
|
|
147
|
-
${tokens.linkButtonFontSize}:
|
|
148
|
-
${tokens.linkButtonFontStyle}:
|
|
149
|
-
${tokens.linkButtonFontWeight}:
|
|
150
|
-
${tokens.linkButtonLetterSpacing}:
|
|
151
|
-
${tokens.linkButtonLineHeight}:
|
|
147
|
+
${tokens.linkButtonFontFamily}: ${bodyXS.fontFamily};
|
|
148
|
+
${tokens.linkButtonFontSize}: ${bodyXS.fontSize};
|
|
149
|
+
${tokens.linkButtonFontStyle}: ${bodyXS.fontStyle};
|
|
150
|
+
${tokens.linkButtonFontWeight}: ${bodyXSBold.fontWeight};
|
|
151
|
+
${tokens.linkButtonLetterSpacing}: ${bodyXS.letterSpacing};
|
|
152
|
+
${tokens.linkButtonLineHeight}: ${bodyXS.lineHeight};
|
|
152
153
|
`,
|
|
153
154
|
s: css`
|
|
154
|
-
${tokens.fontFamily}:
|
|
155
|
-
${tokens.fontSize}:
|
|
156
|
-
${tokens.fontStyle}:
|
|
157
|
-
${tokens.fontWeight}:
|
|
158
|
-
${tokens.letterSpacing}:
|
|
159
|
-
${tokens.lineHeight}:
|
|
155
|
+
${tokens.fontFamily}: ${bodyS.fontFamily};
|
|
156
|
+
${tokens.fontSize}: ${bodyS.fontSize};
|
|
157
|
+
${tokens.fontStyle}: ${bodyS.fontStyle};
|
|
158
|
+
${tokens.fontWeight}: ${bodyS.fontWeight};
|
|
159
|
+
${tokens.letterSpacing}: ${bodyS.letterSpacing};
|
|
160
|
+
${tokens.lineHeight}: ${bodyS.lineHeight};
|
|
160
161
|
|
|
161
162
|
${tokens.headerRowHeight}: 2.125rem;
|
|
162
163
|
${tokens.rowHeight}: 2.125rem;
|
|
@@ -166,9 +167,9 @@ export const config = {
|
|
|
166
167
|
${tokens.checkboxTriggerBorderCheckedColor}: transparent;
|
|
167
168
|
${tokens.checkboxTriggerSize}: 0.875rem;
|
|
168
169
|
${tokens.checkboxTriggerBorderRadius}: 0.25rem;
|
|
169
|
-
${tokens.checkboxTriggerBorderColor}:
|
|
170
|
-
${tokens.checkboxFillColor}:
|
|
171
|
-
${tokens.checkboxTriggerIconColor}:
|
|
170
|
+
${tokens.checkboxTriggerBorderColor}: ${textSecondary};
|
|
171
|
+
${tokens.checkboxFillColor}: ${textAccent};
|
|
172
|
+
${tokens.checkboxTriggerIconColor}: ${onDarkTextPrimary};
|
|
172
173
|
|
|
173
174
|
${tokens.editableCellIconGap}: 0.25rem;
|
|
174
175
|
${tokens.editableCellIconButtonWidth}: 2rem;
|
|
@@ -183,12 +184,12 @@ export const config = {
|
|
|
183
184
|
${tokens.filterDividerMargin}: 0.25rem 0.5rem;
|
|
184
185
|
|
|
185
186
|
${tokens.buttonHeight}: 1.5rem;
|
|
186
|
-
${tokens.buttonFontFamily}:
|
|
187
|
-
${tokens.buttonFontSize}:
|
|
188
|
-
${tokens.buttonFontStyle}:
|
|
189
|
-
${tokens.buttonFontWeight}:
|
|
190
|
-
${tokens.buttonLetterSpacing}:
|
|
191
|
-
${tokens.buttonLineHeight}:
|
|
187
|
+
${tokens.buttonFontFamily}: ${bodyXS.fontFamily};
|
|
188
|
+
${tokens.buttonFontSize}: ${bodyXS.fontSize};
|
|
189
|
+
${tokens.buttonFontStyle}: ${bodyXS.fontStyle};
|
|
190
|
+
${tokens.buttonFontWeight}: ${bodyXSBold.fontWeight};
|
|
191
|
+
${tokens.buttonLetterSpacing}: ${bodyXS.letterSpacing};
|
|
192
|
+
${tokens.buttonLineHeight}: ${bodyXS.lineHeight};
|
|
192
193
|
|
|
193
194
|
${tokens.selectPadding}: 0.125rem;
|
|
194
195
|
${tokens.selectBorderRadius}: 0.625rem;
|
|
@@ -198,12 +199,12 @@ export const config = {
|
|
|
198
199
|
${tokens.selectItemIconMargin}: 0 0.25rem 0 0;
|
|
199
200
|
${tokens.selectItemIconSize}: 1rem;
|
|
200
201
|
${tokens.selectCellPadding}: 0;
|
|
201
|
-
${tokens.selectCellTitleFontFamily}:
|
|
202
|
-
${tokens.selectCellTitleFontSize}:
|
|
203
|
-
${tokens.selectCellTitleFontStyle}:
|
|
204
|
-
${tokens.selectCellTitleFontWeight}:
|
|
205
|
-
${tokens.selectCellTitleLetterSpacing}:
|
|
206
|
-
${tokens.selectCellTitleLineHeight}:
|
|
202
|
+
${tokens.selectCellTitleFontFamily}: ${bodyXS.fontFamily};
|
|
203
|
+
${tokens.selectCellTitleFontSize}: ${bodyXS.fontSize};
|
|
204
|
+
${tokens.selectCellTitleFontStyle}: ${bodyXS.fontStyle};
|
|
205
|
+
${tokens.selectCellTitleFontWeight}: ${bodyXS.fontWeight};
|
|
206
|
+
${tokens.selectCellTitleLetterSpacing}: ${bodyXS.letterSpacing};
|
|
207
|
+
${tokens.selectCellTitleLineHeight}: ${bodyXS.lineHeight};
|
|
207
208
|
${tokens.selectCheckboxTriggerSize}: 0.875rem;
|
|
208
209
|
${tokens.selectCheckboxTriggerBorderRadius}: 0.25rem;
|
|
209
210
|
${tokens.selectCheckboxTriggerBorderWidth}: 0.125rem;
|
|
@@ -211,12 +212,12 @@ export const config = {
|
|
|
211
212
|
${tokens.selectControlPanelPadding}: 0.25rem 0.5rem;
|
|
212
213
|
${tokens.selectControlPanelGap}: 0.25rem;
|
|
213
214
|
|
|
214
|
-
${tokens.linkButtonFontFamily}:
|
|
215
|
-
${tokens.linkButtonFontSize}:
|
|
216
|
-
${tokens.linkButtonFontStyle}:
|
|
217
|
-
${tokens.linkButtonFontWeight}:
|
|
218
|
-
${tokens.linkButtonLetterSpacing}:
|
|
219
|
-
${tokens.linkButtonLineHeight}:
|
|
215
|
+
${tokens.linkButtonFontFamily}: ${bodyXS.fontFamily};
|
|
216
|
+
${tokens.linkButtonFontSize}: ${bodyXS.fontSize};
|
|
217
|
+
${tokens.linkButtonFontStyle}: ${bodyXS.fontStyle};
|
|
218
|
+
${tokens.linkButtonFontWeight}: ${bodyXSBold.fontWeight};
|
|
219
|
+
${tokens.linkButtonLetterSpacing}: ${bodyXS.letterSpacing};
|
|
220
|
+
${tokens.linkButtonLineHeight}: ${bodyXS.lineHeight};
|
|
220
221
|
`
|
|
221
222
|
}
|
|
222
223
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { bodyM, bodyMBold, inverseTextPrimary, onDarkTextSecondary, surfaceAccent, surfaceSolidDefault, surfaceSolidDefaultHover, textAccent, textAccentActive, textAccentMinor, textPrimary, textSecondary, textSecondaryActive, textSecondaryHover, textTertiary } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, tabsTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -7,109 +8,109 @@ export const config = {
|
|
|
7
8
|
variations: {
|
|
8
9
|
view: {
|
|
9
10
|
clear: css`
|
|
10
|
-
${tabsTokens.itemColor}:
|
|
11
|
-
${tabsTokens.itemValueColor}:
|
|
11
|
+
${tabsTokens.itemColor}: ${textSecondary};
|
|
12
|
+
${tabsTokens.itemValueColor}: ${textTertiary};
|
|
12
13
|
${tabsTokens.itemBackgroundColor}: transparent;
|
|
13
|
-
${tabsTokens.itemColorHover}:
|
|
14
|
-
${tabsTokens.itemValueColorHover}:
|
|
15
|
-
${tabsTokens.itemColorActive}:
|
|
16
|
-
${tabsTokens.itemValueColorActive}:
|
|
14
|
+
${tabsTokens.itemColorHover}: ${textSecondaryHover};
|
|
15
|
+
${tabsTokens.itemValueColorHover}: ${textSecondary};
|
|
16
|
+
${tabsTokens.itemColorActive}: ${textSecondaryActive};
|
|
17
|
+
${tabsTokens.itemValueColorActive}: ${textSecondary};
|
|
17
18
|
${tabsTokens.itemBackgroundColorHover}: transparent;
|
|
18
|
-
${tabsTokens.itemSelectedColor}:
|
|
19
|
-
${tabsTokens.itemSelectedValueColor}:
|
|
19
|
+
${tabsTokens.itemSelectedColor}: ${textPrimary};
|
|
20
|
+
${tabsTokens.itemSelectedValueColor}: ${textSecondary};
|
|
20
21
|
${tabsTokens.itemSelectedBackgroundColor}: transparent;
|
|
21
|
-
${tabsTokens.itemSelectedColorHover}:
|
|
22
|
-
${tabsTokens.itemSelectedValueColorHover}:
|
|
22
|
+
${tabsTokens.itemSelectedColorHover}: ${textPrimary};
|
|
23
|
+
${tabsTokens.itemSelectedValueColorHover}: ${textSecondary};
|
|
23
24
|
${tabsTokens.itemSelectedBackgroundColorHover}: transparent;
|
|
24
25
|
${tabsTokens.itemBackgroundTransition}: background-color 0.3s ease-in-out;
|
|
25
26
|
|
|
26
|
-
${tabsTokens.outlineFocusColor}:
|
|
27
|
+
${tabsTokens.outlineFocusColor}: ${surfaceAccent};
|
|
27
28
|
|
|
28
29
|
${tabsTokens.itemSelectedDividerHeight}: 0rem;
|
|
29
|
-
${tabsTokens.itemSelectedDividerColor}:
|
|
30
|
-
${tabsTokens.itemSelectedDividerColorHover}:
|
|
30
|
+
${tabsTokens.itemSelectedDividerColor}: ${surfaceSolidDefault};
|
|
31
|
+
${tabsTokens.itemSelectedDividerColorHover}: ${surfaceSolidDefaultHover};
|
|
31
32
|
|
|
32
33
|
${tabsTokens.itemCursor}: default;
|
|
33
34
|
${tabsTokens.itemCursorOverNotSelected}: pointer;
|
|
34
35
|
`,
|
|
35
36
|
secondary: css`
|
|
36
|
-
${tabsTokens.itemColor}:
|
|
37
|
-
${tabsTokens.itemValueColor}:
|
|
37
|
+
${tabsTokens.itemColor}: ${textPrimary};
|
|
38
|
+
${tabsTokens.itemValueColor}: ${textSecondary};
|
|
38
39
|
${tabsTokens.itemBackgroundColor}: transparent;
|
|
39
|
-
${tabsTokens.itemColorHover}:
|
|
40
|
-
${tabsTokens.itemValueColorHover}:
|
|
41
|
-
${tabsTokens.itemColorActive}:
|
|
42
|
-
${tabsTokens.itemValueColorActive}:
|
|
40
|
+
${tabsTokens.itemColorHover}: ${textSecondaryHover};
|
|
41
|
+
${tabsTokens.itemValueColorHover}: ${textSecondary};
|
|
42
|
+
${tabsTokens.itemColorActive}: ${textSecondaryActive};
|
|
43
|
+
${tabsTokens.itemValueColorActive}: ${textSecondary};
|
|
43
44
|
${tabsTokens.itemBackgroundColorHover}: transparent;
|
|
44
|
-
${tabsTokens.itemSelectedColor}:
|
|
45
|
-
${tabsTokens.itemSelectedValueColor}:
|
|
45
|
+
${tabsTokens.itemSelectedColor}: ${textPrimary};
|
|
46
|
+
${tabsTokens.itemSelectedValueColor}: ${textSecondary};
|
|
46
47
|
${tabsTokens.itemSelectedBackgroundColor}: var(--surface-transparent-card);
|
|
47
|
-
${tabsTokens.itemSelectedColorHover}:
|
|
48
|
-
${tabsTokens.itemSelectedValueColorHover}:
|
|
48
|
+
${tabsTokens.itemSelectedColorHover}: ${textPrimary};
|
|
49
|
+
${tabsTokens.itemSelectedValueColorHover}: ${textSecondary};
|
|
49
50
|
${tabsTokens.itemSelectedBackgroundColorHover}: var(--surface-transparent-card);
|
|
50
51
|
${tabsTokens.itemBackgroundTransition}: background-color 0.3s ease-in-out;
|
|
51
52
|
|
|
52
53
|
${tabsTokens.itemMarginLeftFilled}: 0.125rem;
|
|
53
54
|
|
|
54
|
-
${tabsTokens.outlineFocusColor}:
|
|
55
|
+
${tabsTokens.outlineFocusColor}: ${surfaceAccent};
|
|
55
56
|
|
|
56
57
|
${tabsTokens.itemSelectedDividerHeight}: 0rem;
|
|
57
|
-
${tabsTokens.itemSelectedDividerColor}:
|
|
58
|
-
${tabsTokens.itemSelectedDividerColorHover}:
|
|
58
|
+
${tabsTokens.itemSelectedDividerColor}: ${surfaceSolidDefault};
|
|
59
|
+
${tabsTokens.itemSelectedDividerColorHover}: ${surfaceSolidDefaultHover};
|
|
59
60
|
|
|
60
61
|
${tabsTokens.itemCursor}: default;
|
|
61
62
|
${tabsTokens.itemCursorOverNotSelected}: pointer;
|
|
62
63
|
`,
|
|
63
64
|
divider: css`
|
|
64
|
-
${tabsTokens.itemColor}:
|
|
65
|
-
${tabsTokens.itemValueColor}:
|
|
65
|
+
${tabsTokens.itemColor}: ${textAccent};
|
|
66
|
+
${tabsTokens.itemValueColor}: ${textSecondary};
|
|
66
67
|
${tabsTokens.itemBackgroundColor}: transparent;
|
|
67
|
-
${tabsTokens.itemColorHover}:
|
|
68
|
-
${tabsTokens.itemValueColorHover}:
|
|
69
|
-
${tabsTokens.itemColorActive}:
|
|
70
|
-
${tabsTokens.itemValueColorActive}:
|
|
68
|
+
${tabsTokens.itemColorHover}: ${textAccentMinor};
|
|
69
|
+
${tabsTokens.itemValueColorHover}: ${textSecondary};
|
|
70
|
+
${tabsTokens.itemColorActive}: ${textAccentActive};
|
|
71
|
+
${tabsTokens.itemValueColorActive}: ${textSecondary};
|
|
71
72
|
${tabsTokens.itemBackgroundColorHover}: transparent;
|
|
72
|
-
${tabsTokens.itemSelectedColor}:
|
|
73
|
-
${tabsTokens.itemSelectedValueColor}:
|
|
73
|
+
${tabsTokens.itemSelectedColor}: ${textPrimary};
|
|
74
|
+
${tabsTokens.itemSelectedValueColor}: ${textSecondary};
|
|
74
75
|
${tabsTokens.itemSelectedBackgroundColor}: transparent;
|
|
75
|
-
${tabsTokens.itemSelectedColorHover}:
|
|
76
|
-
${tabsTokens.itemSelectedValueColorHover}:
|
|
76
|
+
${tabsTokens.itemSelectedColorHover}: ${textPrimary};
|
|
77
|
+
${tabsTokens.itemSelectedValueColorHover}: ${textSecondary};
|
|
77
78
|
${tabsTokens.itemSelectedBackgroundColorHover}: transparent;
|
|
78
79
|
${tabsTokens.itemBackgroundTransition}: background-color 0.3s ease-in-out;
|
|
79
80
|
|
|
80
|
-
${tabsTokens.outlineFocusColor}:
|
|
81
|
+
${tabsTokens.outlineFocusColor}: ${surfaceAccent};
|
|
81
82
|
|
|
82
83
|
${tabsTokens.itemSelectedDividerHeight}: 0.125rem;
|
|
83
|
-
${tabsTokens.itemSelectedDividerColor}:
|
|
84
|
-
${tabsTokens.itemSelectedDividerColorHover}:
|
|
84
|
+
${tabsTokens.itemSelectedDividerColor}: ${surfaceSolidDefault};
|
|
85
|
+
${tabsTokens.itemSelectedDividerColorHover}: ${surfaceSolidDefaultHover};
|
|
85
86
|
|
|
86
87
|
${tabsTokens.itemCursor}: default;
|
|
87
88
|
${tabsTokens.itemCursorOverNotSelected}: pointer;
|
|
88
89
|
`,
|
|
89
90
|
default: css`
|
|
90
|
-
${tabsTokens.itemColor}:
|
|
91
|
-
${tabsTokens.itemValueColor}:
|
|
91
|
+
${tabsTokens.itemColor}: ${textPrimary};
|
|
92
|
+
${tabsTokens.itemValueColor}: ${textSecondary};
|
|
92
93
|
${tabsTokens.itemBackgroundColor}: transparent;
|
|
93
|
-
${tabsTokens.itemColorHover}:
|
|
94
|
-
${tabsTokens.itemValueColorHover}:
|
|
95
|
-
${tabsTokens.itemColorActive}:
|
|
96
|
-
${tabsTokens.itemValueColorActive}:
|
|
94
|
+
${tabsTokens.itemColorHover}: ${textSecondaryHover};
|
|
95
|
+
${tabsTokens.itemValueColorHover}: ${textSecondary};
|
|
96
|
+
${tabsTokens.itemColorActive}: ${textSecondaryActive};
|
|
97
|
+
${tabsTokens.itemValueColorActive}: ${textSecondary};
|
|
97
98
|
${tabsTokens.itemBackgroundColorHover}: transparent;
|
|
98
|
-
${tabsTokens.itemSelectedColor}:
|
|
99
|
-
${tabsTokens.itemSelectedValueColor}:
|
|
100
|
-
${tabsTokens.itemSelectedBackgroundColor}:
|
|
101
|
-
${tabsTokens.itemSelectedColorHover}:
|
|
102
|
-
${tabsTokens.itemSelectedValueColorHover}:
|
|
103
|
-
${tabsTokens.itemSelectedBackgroundColorHover}:
|
|
99
|
+
${tabsTokens.itemSelectedColor}: ${inverseTextPrimary};
|
|
100
|
+
${tabsTokens.itemSelectedValueColor}: ${onDarkTextSecondary};
|
|
101
|
+
${tabsTokens.itemSelectedBackgroundColor}: ${surfaceSolidDefault};
|
|
102
|
+
${tabsTokens.itemSelectedColorHover}: ${inverseTextPrimary};
|
|
103
|
+
${tabsTokens.itemSelectedValueColorHover}: ${onDarkTextSecondary};
|
|
104
|
+
${tabsTokens.itemSelectedBackgroundColorHover}: ${surfaceSolidDefault};
|
|
104
105
|
${tabsTokens.itemBackgroundTransition}: background-color 0.3s ease-in-out;
|
|
105
106
|
|
|
106
107
|
${tabsTokens.itemMarginLeftFilled}: 0.125rem;
|
|
107
108
|
|
|
108
|
-
${tabsTokens.outlineFocusColor}:
|
|
109
|
+
${tabsTokens.outlineFocusColor}: ${surfaceAccent};
|
|
109
110
|
|
|
110
111
|
${tabsTokens.itemSelectedDividerHeight}: 0rem;
|
|
111
|
-
${tabsTokens.itemSelectedDividerColor}:
|
|
112
|
-
${tabsTokens.itemSelectedDividerColorHover}:
|
|
112
|
+
${tabsTokens.itemSelectedDividerColor}: ${surfaceSolidDefault};
|
|
113
|
+
${tabsTokens.itemSelectedDividerColorHover}: ${surfaceSolidDefaultHover};
|
|
113
114
|
|
|
114
115
|
${tabsTokens.itemCursor}: default;
|
|
115
116
|
${tabsTokens.itemCursorOverNotSelected}: pointer;
|
|
@@ -126,32 +127,32 @@ export const config = {
|
|
|
126
127
|
${tabsTokens.itemContentGap}: 0.25rem;
|
|
127
128
|
${tabsTokens.itemContentPadding}: 0.125rem;
|
|
128
129
|
|
|
129
|
-
${tabsTokens.fontFamily}:
|
|
130
|
-
${tabsTokens.fontSize}:
|
|
131
|
-
${tabsTokens.fontStyle}:
|
|
132
|
-
${tabsTokens.fontWeight}:
|
|
133
|
-
${tabsTokens.letterSpacing}:
|
|
134
|
-
${tabsTokens.lineHeight}:
|
|
130
|
+
${tabsTokens.fontFamily}: ${bodyMBold.fontFamily};
|
|
131
|
+
${tabsTokens.fontSize}: ${bodyMBold.fontSize};
|
|
132
|
+
${tabsTokens.fontStyle}: ${bodyMBold.fontStyle};
|
|
133
|
+
${tabsTokens.fontWeight}: ${bodyMBold.fontWeight};
|
|
134
|
+
${tabsTokens.letterSpacing}: ${bodyMBold.letterSpacing};
|
|
135
|
+
${tabsTokens.lineHeight}: ${bodyMBold.lineHeight};
|
|
135
136
|
|
|
136
|
-
${tabsTokens.valueFontFamily}:
|
|
137
|
-
${tabsTokens.valueFontSize}:
|
|
138
|
-
${tabsTokens.valueFontStyle}:
|
|
139
|
-
${tabsTokens.valueFontWeight}:
|
|
140
|
-
${tabsTokens.valueLetterSpacing}:
|
|
141
|
-
${tabsTokens.valueLineHeight}:
|
|
137
|
+
${tabsTokens.valueFontFamily}: ${bodyM.fontFamily};
|
|
138
|
+
${tabsTokens.valueFontSize}: ${bodyM.fontSize};
|
|
139
|
+
${tabsTokens.valueFontStyle}: ${bodyM.fontStyle};
|
|
140
|
+
${tabsTokens.valueFontWeight}: ${bodyM.fontWeight};
|
|
141
|
+
${tabsTokens.valueLetterSpacing}: ${bodyM.letterSpacing};
|
|
142
|
+
${tabsTokens.valueLineHeight}: ${bodyM.lineHeight};
|
|
142
143
|
|
|
143
144
|
${tabsTokens.actionContentMarginLeft}: 0.125rem;
|
|
144
145
|
`
|
|
145
146
|
},
|
|
146
147
|
disabled: {
|
|
147
148
|
true: css`
|
|
148
|
-
${tabsTokens.itemColor}:
|
|
149
|
-
${tabsTokens.itemValueColor}:
|
|
150
|
-
${tabsTokens.itemColorHover}:
|
|
151
|
-
${tabsTokens.itemValueColorHover}:
|
|
152
|
-
${tabsTokens.itemColorActive}:
|
|
153
|
-
${tabsTokens.itemValueColorActive}:
|
|
154
|
-
${tabsTokens.itemSelectedColor}:
|
|
149
|
+
${tabsTokens.itemColor}: ${textSecondary};
|
|
150
|
+
${tabsTokens.itemValueColor}: ${textSecondary};
|
|
151
|
+
${tabsTokens.itemColorHover}: ${textSecondary};
|
|
152
|
+
${tabsTokens.itemValueColorHover}: ${textSecondary};
|
|
153
|
+
${tabsTokens.itemColorActive}: ${textSecondary};
|
|
154
|
+
${tabsTokens.itemValueColorActive}: ${textSecondary};
|
|
155
|
+
${tabsTokens.itemSelectedColor}: ${textSecondary};
|
|
155
156
|
${tabsTokens.itemSelectedDividerColor}: none;
|
|
156
157
|
${tabsTokens.itemSelectedDividerColorHover}: none;
|
|
157
158
|
`
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { outlineSolidPrimary, surfaceAccent, textAccent, textAccentActive, textAccentMinor, textSecondary, textSecondaryActive, textSecondaryHover } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, tabsTokens } 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
|
clear: css`
|
|
10
|
-
${tabsTokens.arrowColor}:
|
|
11
|
-
${tabsTokens.arrowColorHover}:
|
|
12
|
-
${tabsTokens.arrowColorActive}:
|
|
11
|
+
${tabsTokens.arrowColor}: ${textSecondary};
|
|
12
|
+
${tabsTokens.arrowColorHover}: ${textSecondaryHover};
|
|
13
|
+
${tabsTokens.arrowColorActive}: ${textSecondaryActive};
|
|
13
14
|
${tabsTokens.tabsBackgroundColor}: transparent;
|
|
14
|
-
${tabsTokens.outlineFocusColor}:
|
|
15
|
+
${tabsTokens.outlineFocusColor}: ${surfaceAccent};
|
|
15
16
|
|
|
16
17
|
${tabsTokens.tabsDividerHeight}: 0rem;
|
|
17
18
|
${tabsTokens.tabsDividerColor}: transparent;
|
|
18
19
|
${tabsTokens.tabsDividerBorderRadius}: 0rem;
|
|
19
20
|
`,
|
|
20
21
|
filled: css`
|
|
21
|
-
${tabsTokens.arrowColor}:
|
|
22
|
-
${tabsTokens.arrowColorHover}:
|
|
23
|
-
${tabsTokens.arrowColorActive}:
|
|
22
|
+
${tabsTokens.arrowColor}: ${textSecondary};
|
|
23
|
+
${tabsTokens.arrowColorHover}: ${textSecondaryHover};
|
|
24
|
+
${tabsTokens.arrowColorActive}: ${textSecondaryActive};
|
|
24
25
|
${tabsTokens.tabsBackgroundColor}: var(--surface-transparent-primary);
|
|
25
|
-
${tabsTokens.outlineFocusColor}:
|
|
26
|
+
${tabsTokens.outlineFocusColor}: ${surfaceAccent};
|
|
26
27
|
|
|
27
28
|
${tabsTokens.tabsDividerHeight}: 0rem;
|
|
28
29
|
${tabsTokens.tabsDividerColor}: transparent;
|
|
29
30
|
${tabsTokens.tabsDividerBorderRadius}: 0rem;
|
|
30
31
|
`,
|
|
31
32
|
divider: css`
|
|
32
|
-
${tabsTokens.arrowColor}:
|
|
33
|
-
${tabsTokens.arrowColorHover}:
|
|
34
|
-
${tabsTokens.arrowColorActive}:
|
|
33
|
+
${tabsTokens.arrowColor}: ${textAccent};
|
|
34
|
+
${tabsTokens.arrowColorHover}: ${textAccentMinor};
|
|
35
|
+
${tabsTokens.arrowColorActive}: ${textAccentActive};
|
|
35
36
|
${tabsTokens.tabsBackgroundColor}: transparent;
|
|
36
|
-
${tabsTokens.outlineFocusColor}:
|
|
37
|
+
${tabsTokens.outlineFocusColor}: ${surfaceAccent};
|
|
37
38
|
|
|
38
39
|
${tabsTokens.tabsDividerHeight}: 0.0625rem;
|
|
39
|
-
${tabsTokens.tabsDividerColor}:
|
|
40
|
+
${tabsTokens.tabsDividerColor}: ${outlineSolidPrimary};
|
|
40
41
|
${tabsTokens.tabsDividerBorderRadius}: 0.0625rem;
|
|
41
42
|
`
|
|
42
43
|
},
|
|
@@ -112,14 +113,14 @@ export const config = {
|
|
|
112
113
|
},
|
|
113
114
|
disabled: {
|
|
114
115
|
true: css`
|
|
115
|
-
${tabsTokens.arrowColor}:
|
|
116
|
-
${tabsTokens.itemColor}:
|
|
117
|
-
${tabsTokens.itemValueColor}:
|
|
118
|
-
${tabsTokens.itemColorHover}:
|
|
119
|
-
${tabsTokens.itemValueColorHover}:
|
|
120
|
-
${tabsTokens.itemColorActive}:
|
|
121
|
-
${tabsTokens.itemValueColorActive}:
|
|
122
|
-
${tabsTokens.itemSelectedColor}:
|
|
116
|
+
${tabsTokens.arrowColor}: ${textSecondary};
|
|
117
|
+
${tabsTokens.itemColor}: ${textSecondary};
|
|
118
|
+
${tabsTokens.itemValueColor}: ${textSecondary};
|
|
119
|
+
${tabsTokens.itemColorHover}: ${textSecondary};
|
|
120
|
+
${tabsTokens.itemValueColorHover}: ${textSecondary};
|
|
121
|
+
${tabsTokens.itemColorActive}: ${textSecondary};
|
|
122
|
+
${tabsTokens.itemValueColorActive}: ${textSecondary};
|
|
123
|
+
${tabsTokens.itemSelectedColor}: ${textSecondary};
|
|
123
124
|
${tabsTokens.itemSelectedDividerColor}: none;
|
|
124
125
|
${tabsTokens.itemSelectedDividerColorHover}: none;
|
|
125
126
|
${tabsTokens.tabsDividerColor}: transparent;
|