@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 { bodyM, bodyMBold, bodyS, bodySBold, bodyXS, inverseOutlineSolidSecondary, inverseTextPrimary, outlineAccent, outlineNegative, outlineSolidPrimary, outlineSolidPrimaryHover, shadowDownSoftS, surfaceAccent, surfaceClear, surfaceNegative, surfaceSolidCard, surfaceSolidPrimary, surfaceTransparentAccent, textAccent, textAccentActive, textAccentHover, textAccentMinor, textNegative, textPositive, textPrimary, textPrimaryHover, textSecondary, textTertiary } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { datePickerTokens as tokens, css } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -7,94 +8,94 @@ export const config = {
|
|
|
7
8
|
variations: {
|
|
8
9
|
view: {
|
|
9
10
|
default: css`
|
|
10
|
-
${tokens.outlineFocusColor}:
|
|
11
|
-
|
|
12
|
-
${tokens.background}:
|
|
13
|
-
${tokens.borderColor}:
|
|
14
|
-
${tokens.borderColorHover}:
|
|
15
|
-
${tokens.borderColorFocus}:
|
|
16
|
-
${tokens.borderColorError}:
|
|
17
|
-
${tokens.borderColorSuccess}:
|
|
18
|
-
|
|
19
|
-
${tokens.dividerColor}:
|
|
20
|
-
${tokens.labelColor}:
|
|
21
|
-
${tokens.leftHelperColor}:
|
|
22
|
-
${tokens.leftHelperColorError}:
|
|
23
|
-
${tokens.leftHelperColorSuccess}:
|
|
24
|
-
|
|
25
|
-
${tokens.textFieldColor}:
|
|
26
|
-
${tokens.textFieldPlaceholderColor}:
|
|
27
|
-
${tokens.textFieldPlaceholderColorFocus}:
|
|
28
|
-
${tokens.textFieldCaretColor}:
|
|
29
|
-
|
|
30
|
-
${tokens.labelInnerFontFamily}:
|
|
31
|
-
${tokens.labelInnerFontSize}:
|
|
32
|
-
${tokens.labelInnerFontStyle}:
|
|
33
|
-
${tokens.labelInnerFontWeight}:
|
|
34
|
-
${tokens.labelInnerLetterSpacing}:
|
|
35
|
-
${tokens.labelInnerLineHeight}:
|
|
36
|
-
|
|
37
|
-
${tokens.indicatorColor}:
|
|
38
|
-
|
|
39
|
-
${tokens.textFieldBorderColor}:
|
|
40
|
-
${tokens.textFieldBorderColorHover}:
|
|
41
|
-
${tokens.textFieldBorderColorFocus}:
|
|
42
|
-
${tokens.textFieldBorderColorError}:
|
|
43
|
-
${tokens.textFieldBorderColorErrorFocus}:
|
|
44
|
-
${tokens.textFieldBorderColorSuccess}:
|
|
45
|
-
${tokens.textFieldBorderColorSuccessFocus}:
|
|
46
|
-
${tokens.textFieldBackgroundColor}:
|
|
47
|
-
|
|
48
|
-
${tokens.textFieldContentSlotColor}:
|
|
49
|
-
|
|
50
|
-
${tokens.embedIconButtonFocusColor}:
|
|
51
|
-
${tokens.contentSlotRightColor}:
|
|
52
|
-
${tokens.contentSlotRightColorHover}:
|
|
53
|
-
${tokens.contentSlotRightColorActive}:
|
|
54
|
-
|
|
55
|
-
${tokens.textFieldTextBeforeColor}:
|
|
56
|
-
${tokens.textFieldTextAfterColor}:
|
|
57
|
-
|
|
58
|
-
${tokens.focusColor}:
|
|
59
|
-
|
|
60
|
-
${tokens.popoverShadow}:
|
|
11
|
+
${tokens.outlineFocusColor}: ${surfaceAccent};
|
|
12
|
+
|
|
13
|
+
${tokens.background}: ${surfaceSolidCard};
|
|
14
|
+
${tokens.borderColor}: ${outlineSolidPrimary};
|
|
15
|
+
${tokens.borderColorHover}: ${outlineSolidPrimaryHover};
|
|
16
|
+
${tokens.borderColorFocus}: ${outlineAccent};
|
|
17
|
+
${tokens.borderColorError}: ${outlineNegative};
|
|
18
|
+
${tokens.borderColorSuccess}: ${outlineAccent};
|
|
19
|
+
|
|
20
|
+
${tokens.dividerColor}: ${textPrimary};
|
|
21
|
+
${tokens.labelColor}: ${textPrimary};
|
|
22
|
+
${tokens.leftHelperColor}: ${textSecondary};
|
|
23
|
+
${tokens.leftHelperColorError}: ${textNegative};
|
|
24
|
+
${tokens.leftHelperColorSuccess}: ${textPositive};
|
|
25
|
+
|
|
26
|
+
${tokens.textFieldColor}: ${textPrimary};
|
|
27
|
+
${tokens.textFieldPlaceholderColor}: ${textSecondary};
|
|
28
|
+
${tokens.textFieldPlaceholderColorFocus}: ${textTertiary};
|
|
29
|
+
${tokens.textFieldCaretColor}: ${textAccent};
|
|
30
|
+
|
|
31
|
+
${tokens.labelInnerFontFamily}: ${bodyXS.fontFamily};
|
|
32
|
+
${tokens.labelInnerFontSize}: ${bodyXS.fontSize};
|
|
33
|
+
${tokens.labelInnerFontStyle}: ${bodyXS.fontStyle};
|
|
34
|
+
${tokens.labelInnerFontWeight}: ${bodyXS.fontWeight};
|
|
35
|
+
${tokens.labelInnerLetterSpacing}: ${bodyXS.letterSpacing};
|
|
36
|
+
${tokens.labelInnerLineHeight}: ${bodyXS.lineHeight};
|
|
37
|
+
|
|
38
|
+
${tokens.indicatorColor}: ${surfaceNegative};
|
|
39
|
+
|
|
40
|
+
${tokens.textFieldBorderColor}: ${outlineSolidPrimary};
|
|
41
|
+
${tokens.textFieldBorderColorHover}: ${outlineSolidPrimaryHover};
|
|
42
|
+
${tokens.textFieldBorderColorFocus}: ${outlineAccent};
|
|
43
|
+
${tokens.textFieldBorderColorError}: ${outlineNegative};
|
|
44
|
+
${tokens.textFieldBorderColorErrorFocus}: ${outlineNegative};
|
|
45
|
+
${tokens.textFieldBorderColorSuccess}: ${outlineAccent};
|
|
46
|
+
${tokens.textFieldBorderColorSuccessFocus}: ${outlineAccent};
|
|
47
|
+
${tokens.textFieldBackgroundColor}: ${surfaceSolidCard};
|
|
48
|
+
|
|
49
|
+
${tokens.textFieldContentSlotColor}: ${textSecondary};
|
|
50
|
+
|
|
51
|
+
${tokens.embedIconButtonFocusColor}: ${surfaceAccent};
|
|
52
|
+
${tokens.contentSlotRightColor}: ${textAccent};
|
|
53
|
+
${tokens.contentSlotRightColorHover}: ${textAccentHover};
|
|
54
|
+
${tokens.contentSlotRightColorActive}: ${textAccentActive};
|
|
55
|
+
|
|
56
|
+
${tokens.textFieldTextBeforeColor}: ${textSecondary};
|
|
57
|
+
${tokens.textFieldTextAfterColor}: ${textSecondary};
|
|
58
|
+
|
|
59
|
+
${tokens.focusColor}: ${textAccent};
|
|
60
|
+
|
|
61
|
+
${tokens.popoverShadow}: ${shadowDownSoftS};
|
|
61
62
|
${tokens.popoverSeparatorBackground}: var(--surface-transparent-secondary);
|
|
62
|
-
${tokens.popoverBackgroundColor}:
|
|
63
|
+
${tokens.popoverBackgroundColor}: ${surfaceSolidCard};
|
|
63
64
|
|
|
64
|
-
${tokens.calendarSelectedItemBackground}:
|
|
65
|
-
${tokens.calendarSelectedItemColor}:
|
|
66
|
-
${tokens.calendarSelectableItemBackgroundHover}:
|
|
67
|
-
${tokens.calendarCurrentItemBorderColor}:
|
|
65
|
+
${tokens.calendarSelectedItemBackground}: ${surfaceAccent};
|
|
66
|
+
${tokens.calendarSelectedItemColor}: ${inverseTextPrimary};
|
|
67
|
+
${tokens.calendarSelectableItemBackgroundHover}: ${surfaceTransparentAccent};
|
|
68
|
+
${tokens.calendarCurrentItemBorderColor}: ${inverseOutlineSolidSecondary};
|
|
68
69
|
${tokens.calendarCurrentItemBackgroundHover}: transparent;
|
|
69
|
-
${tokens.calendarCurrentItemColorHover}:
|
|
70
|
-
${tokens.calendarCurrentItemChildBackgroundHover}:
|
|
71
|
-
${tokens.calendarActiveItemBackground}:
|
|
72
|
-
${tokens.calendarActiveItemColor}:
|
|
73
|
-
${tokens.calendarHoveredItemBackground}:
|
|
74
|
-
${tokens.calendarHoveredItemColor}:
|
|
75
|
-
${tokens.calendarRangeBackground}:
|
|
76
|
-
${tokens.calendarOutlineFocusColor}:
|
|
77
|
-
${tokens.calendarContentPrimaryColor}:
|
|
78
|
-
${tokens.calendarContentSecondaryColor}:
|
|
79
|
-
${tokens.calendarContentPrimaryDisabledColor}:
|
|
80
|
-
${tokens.calendarContentSecondaryDisabledColor}:
|
|
81
|
-
${tokens.calendarHeaderArrowColor}:
|
|
82
|
-
${tokens.calendarBorderColor}:
|
|
83
|
-
${tokens.calendarDayOfWeekColor}:
|
|
70
|
+
${tokens.calendarCurrentItemColorHover}: ${textPrimary};
|
|
71
|
+
${tokens.calendarCurrentItemChildBackgroundHover}: ${surfaceTransparentAccent};
|
|
72
|
+
${tokens.calendarActiveItemBackground}: ${surfaceAccent};
|
|
73
|
+
${tokens.calendarActiveItemColor}: ${inverseTextPrimary};
|
|
74
|
+
${tokens.calendarHoveredItemBackground}: ${surfaceAccent};
|
|
75
|
+
${tokens.calendarHoveredItemColor}: ${textPrimary};
|
|
76
|
+
${tokens.calendarRangeBackground}: ${surfaceTransparentAccent};
|
|
77
|
+
${tokens.calendarOutlineFocusColor}: ${surfaceAccent};
|
|
78
|
+
${tokens.calendarContentPrimaryColor}: ${textPrimary};
|
|
79
|
+
${tokens.calendarContentSecondaryColor}: ${textSecondary};
|
|
80
|
+
${tokens.calendarContentPrimaryDisabledColor}: ${textSecondary};
|
|
81
|
+
${tokens.calendarContentSecondaryDisabledColor}: ${textSecondary};
|
|
82
|
+
${tokens.calendarHeaderArrowColor}: ${textAccent};
|
|
83
|
+
${tokens.calendarBorderColor}: ${outlineSolidPrimary};
|
|
84
|
+
${tokens.calendarDayOfWeekColor}: ${textSecondary};
|
|
84
85
|
${tokens.calendarDisabledOpacity}: 0.4;
|
|
85
86
|
|
|
86
|
-
${tokens.iconButtonColor}:
|
|
87
|
-
${tokens.iconButtonBackgroundColor}:
|
|
88
|
-
${tokens.iconButtonColorHover}:
|
|
89
|
-
${tokens.iconButtonBackgroundColorHover}:
|
|
90
|
-
${tokens.iconButtonColorActive}:
|
|
91
|
-
${tokens.iconButtonBackgroundColorActive}:
|
|
92
|
-
${tokens.iconButtonFocusColor}:
|
|
87
|
+
${tokens.iconButtonColor}: ${textAccent};
|
|
88
|
+
${tokens.iconButtonBackgroundColor}: ${surfaceClear};
|
|
89
|
+
${tokens.iconButtonColorHover}: ${textPrimaryHover};
|
|
90
|
+
${tokens.iconButtonBackgroundColorHover}: ${surfaceClear};
|
|
91
|
+
${tokens.iconButtonColorActive}: ${textPrimaryHover};
|
|
92
|
+
${tokens.iconButtonBackgroundColorActive}: ${surfaceClear};
|
|
93
|
+
${tokens.iconButtonFocusColor}: ${surfaceAccent};
|
|
93
94
|
|
|
94
|
-
${tokens.textFieldContentRightSlotColor}:
|
|
95
|
-
${tokens.textFieldContentRightSlotColorHover}:
|
|
95
|
+
${tokens.textFieldContentRightSlotColor}: ${textAccent};
|
|
96
|
+
${tokens.textFieldContentRightSlotColorHover}: ${textAccentMinor};
|
|
96
97
|
|
|
97
|
-
${tokens.shortcutColor}:
|
|
98
|
+
${tokens.shortcutColor}: ${textPrimary};
|
|
98
99
|
${tokens.shortcutBackgroundHover}: var(--surface-transparent-secondary);
|
|
99
100
|
`
|
|
100
101
|
},
|
|
@@ -105,12 +106,12 @@ export const config = {
|
|
|
105
106
|
${tokens.borderWidth}: 0.125rem;
|
|
106
107
|
|
|
107
108
|
${tokens.dividerPadding}: 0 0.375rem;
|
|
108
|
-
${tokens.dividerFontFamily}:
|
|
109
|
-
${tokens.dividerFontStyle}:
|
|
110
|
-
${tokens.dividerFontSize}:
|
|
111
|
-
${tokens.dividerFontWeight}:
|
|
112
|
-
${tokens.dividerLetterSpacing}:
|
|
113
|
-
${tokens.dividerLineHeight}:
|
|
109
|
+
${tokens.dividerFontFamily}: ${bodyM.fontFamily};
|
|
110
|
+
${tokens.dividerFontStyle}: ${bodyM.fontStyle};
|
|
111
|
+
${tokens.dividerFontSize}: ${bodyM.fontSize};
|
|
112
|
+
${tokens.dividerFontWeight}: ${bodyM.fontWeight};
|
|
113
|
+
${tokens.dividerLetterSpacing}: ${bodyM.letterSpacing};
|
|
114
|
+
${tokens.dividerLineHeight}: ${bodyM.lineHeight};
|
|
114
115
|
|
|
115
116
|
${tokens.leftContentMargin}: 0 0 0 0.75rem;
|
|
116
117
|
${tokens.rightContentMargin}: 0;
|
|
@@ -120,12 +121,12 @@ export const config = {
|
|
|
120
121
|
${tokens.contentLabelInnerPadding}: 1.0625rem 0 0.3125rem 0;
|
|
121
122
|
|
|
122
123
|
${tokens.labelWrapperOffset}: 0.5rem;
|
|
123
|
-
${tokens.labelFontFamily}:
|
|
124
|
-
${tokens.labelFontStyle}:
|
|
125
|
-
${tokens.labelFontSize}:
|
|
126
|
-
${tokens.labelFontWeight}:
|
|
127
|
-
${tokens.labelLetterSpacing}:
|
|
128
|
-
${tokens.labelLineHeight}:
|
|
124
|
+
${tokens.labelFontFamily}: ${bodyS.fontFamily};
|
|
125
|
+
${tokens.labelFontStyle}: ${bodyS.fontStyle};
|
|
126
|
+
${tokens.labelFontSize}: ${bodyS.fontSize};
|
|
127
|
+
${tokens.labelFontWeight}: ${bodyS.fontWeight};
|
|
128
|
+
${tokens.labelLetterSpacing}: ${bodyS.letterSpacing};
|
|
129
|
+
${tokens.labelLineHeight}: ${bodyS.lineHeight};
|
|
129
130
|
|
|
130
131
|
${tokens.embedIconButtonHeight}: 2.5rem;
|
|
131
132
|
${tokens.embedIconButtonWidth}: 2.5rem;
|
|
@@ -150,20 +151,20 @@ export const config = {
|
|
|
150
151
|
${tokens.textFieldBorderRadius}: 0.625rem;
|
|
151
152
|
${tokens.textFieldBorderWidth}: 0.125rem;
|
|
152
153
|
${tokens.textFieldPadding}: 0.6875rem 0.75rem 0.6875rem 0.75rem;
|
|
153
|
-
${tokens.textFieldFontFamily}:
|
|
154
|
-
${tokens.textFieldFontStyle}:
|
|
155
|
-
${tokens.textFieldFontSize}:
|
|
156
|
-
${tokens.textFieldFontWeight}:
|
|
157
|
-
${tokens.textFieldLetterSpacing}:
|
|
158
|
-
${tokens.textFieldLineHeight}:
|
|
154
|
+
${tokens.textFieldFontFamily}: ${bodyM.fontFamily};
|
|
155
|
+
${tokens.textFieldFontStyle}: ${bodyM.fontStyle};
|
|
156
|
+
${tokens.textFieldFontSize}: ${bodyM.fontSize};
|
|
157
|
+
${tokens.textFieldFontWeight}: ${bodyM.fontWeight};
|
|
158
|
+
${tokens.textFieldLetterSpacing}: ${bodyM.letterSpacing};
|
|
159
|
+
${tokens.textFieldLineHeight}: ${bodyM.lineHeight};
|
|
159
160
|
|
|
160
161
|
${tokens.leftHelperOffset}: 0.25rem 0 0 0;
|
|
161
|
-
${tokens.leftHelperFontFamily}:
|
|
162
|
-
${tokens.leftHelperFontStyle}:
|
|
163
|
-
${tokens.leftHelperFontSize}:
|
|
164
|
-
${tokens.leftHelperFontWeight}:
|
|
165
|
-
${tokens.leftHelperLetterSpacing}:
|
|
166
|
-
${tokens.leftHelperLineHeight}:
|
|
162
|
+
${tokens.leftHelperFontFamily}: ${bodyS.fontFamily};
|
|
163
|
+
${tokens.leftHelperFontStyle}: ${bodyS.fontStyle};
|
|
164
|
+
${tokens.leftHelperFontSize}: ${bodyS.fontSize};
|
|
165
|
+
${tokens.leftHelperFontWeight}: ${bodyS.fontWeight};
|
|
166
|
+
${tokens.leftHelperLetterSpacing}: ${bodyS.letterSpacing};
|
|
167
|
+
${tokens.leftHelperLineHeight}: ${bodyS.lineHeight};
|
|
167
168
|
|
|
168
169
|
${tokens.textFieldLeftContentMargin}: -0.1875rem 0.25rem -0.1875rem -0.125rem;
|
|
169
170
|
${tokens.textFieldRightContentMargin}: -0.1875rem -0.125rem -0.1875rem 0.75rem;
|
|
@@ -182,46 +183,46 @@ export const config = {
|
|
|
182
183
|
${tokens.calendarYearsPadding}: 0.5rem 0 0 0;
|
|
183
184
|
${tokens.calendarYearItemBorderRadius}: 0.5rem;
|
|
184
185
|
|
|
185
|
-
${tokens.calendarYearFontFamily}:
|
|
186
|
-
${tokens.calendarYearFontSize}:
|
|
187
|
-
${tokens.calendarYearFontStyle}:
|
|
188
|
-
${tokens.calendarYearFontLetterSpacing}:
|
|
189
|
-
${tokens.calendarYearFontLineHeight}:
|
|
190
|
-
${tokens.calendarYearFontWeight}:
|
|
191
|
-
${tokens.calendarYearSelectedFontWeight}:
|
|
186
|
+
${tokens.calendarYearFontFamily}: ${bodyS.fontFamily};
|
|
187
|
+
${tokens.calendarYearFontSize}: ${bodyS.fontSize};
|
|
188
|
+
${tokens.calendarYearFontStyle}: ${bodyS.fontStyle};
|
|
189
|
+
${tokens.calendarYearFontLetterSpacing}: ${bodyS.letterSpacing};
|
|
190
|
+
${tokens.calendarYearFontLineHeight}: ${bodyS.lineHeight};
|
|
191
|
+
${tokens.calendarYearFontWeight}: ${bodyS.fontWeight};
|
|
192
|
+
${tokens.calendarYearSelectedFontWeight}: ${bodySBold.fontWeight};
|
|
192
193
|
|
|
193
194
|
${tokens.calendarQuartersPadding}: 0.5rem 0 0 0;
|
|
194
195
|
${tokens.calendarQuarterItemBorderRadius}: 0.5rem;
|
|
195
196
|
|
|
196
|
-
${tokens.calendarQuarterFontFamily}:
|
|
197
|
-
${tokens.calendarQuarterFontSize}:
|
|
198
|
-
${tokens.calendarQuarterFontStyle}:
|
|
199
|
-
${tokens.calendarQuarterFontLetterSpacing}:
|
|
200
|
-
${tokens.calendarQuarterFontLineHeight}:
|
|
201
|
-
${tokens.calendarQuarterFontWeight}:
|
|
202
|
-
${tokens.calendarQuarterSelectedFontWeight}:
|
|
197
|
+
${tokens.calendarQuarterFontFamily}: ${bodyS.fontFamily};
|
|
198
|
+
${tokens.calendarQuarterFontSize}: ${bodyS.fontSize};
|
|
199
|
+
${tokens.calendarQuarterFontStyle}: ${bodyS.fontStyle};
|
|
200
|
+
${tokens.calendarQuarterFontLetterSpacing}: ${bodyS.letterSpacing};
|
|
201
|
+
${tokens.calendarQuarterFontLineHeight}: ${bodyS.lineHeight};
|
|
202
|
+
${tokens.calendarQuarterFontWeight}: ${bodyS.fontWeight};
|
|
203
|
+
${tokens.calendarQuarterSelectedFontWeight}: ${bodySBold.fontWeight};
|
|
203
204
|
|
|
204
205
|
${tokens.calendarMonthsPadding}: 0.5rem 0 0 0;
|
|
205
206
|
${tokens.calendarMonthItemBorderRadius}: 0.5rem;
|
|
206
207
|
|
|
207
|
-
${tokens.calendarMonthFontFamily}:
|
|
208
|
-
${tokens.calendarMonthFontSize}:
|
|
209
|
-
${tokens.calendarMonthFontStyle}:
|
|
210
|
-
${tokens.calendarMonthFontLetterSpacing}:
|
|
211
|
-
${tokens.calendarMonthFontLineHeight}:
|
|
212
|
-
${tokens.calendarMonthFontWeight}:
|
|
213
|
-
${tokens.calendarMonthSelectedFontWeight}:
|
|
208
|
+
${tokens.calendarMonthFontFamily}: ${bodyS.fontFamily};
|
|
209
|
+
${tokens.calendarMonthFontSize}: ${bodyS.fontSize};
|
|
210
|
+
${tokens.calendarMonthFontStyle}: ${bodyS.fontStyle};
|
|
211
|
+
${tokens.calendarMonthFontLetterSpacing}: ${bodyS.letterSpacing};
|
|
212
|
+
${tokens.calendarMonthFontLineHeight}: ${bodyS.lineHeight};
|
|
213
|
+
${tokens.calendarMonthFontWeight}: ${bodyS.fontWeight};
|
|
214
|
+
${tokens.calendarMonthSelectedFontWeight}: ${bodySBold.fontWeight};
|
|
214
215
|
|
|
215
216
|
${tokens.calendarDaysPadding}: 0.5rem 0 0 0;
|
|
216
217
|
${tokens.calendarDayItemBorderRadius}: 0.5rem;
|
|
217
218
|
|
|
218
|
-
${tokens.calendarDayFontFamily}:
|
|
219
|
-
${tokens.calendarDayFontSize}:
|
|
220
|
-
${tokens.calendarDayFontStyle}:
|
|
221
|
-
${tokens.calendarDayFontLetterSpacing}:
|
|
222
|
-
${tokens.calendarDayFontLineHeight}:
|
|
223
|
-
${tokens.calendarDayFontWeight}:
|
|
224
|
-
${tokens.calendarDaySelectedFontWeight}:
|
|
219
|
+
${tokens.calendarDayFontFamily}: ${bodyS.fontFamily};
|
|
220
|
+
${tokens.calendarDayFontSize}: ${bodyS.fontSize};
|
|
221
|
+
${tokens.calendarDayFontStyle}: ${bodyS.fontStyle};
|
|
222
|
+
${tokens.calendarDayFontLetterSpacing}: ${bodyS.letterSpacing};
|
|
223
|
+
${tokens.calendarDayFontLineHeight}: ${bodyS.lineHeight};
|
|
224
|
+
${tokens.calendarDayFontWeight}: ${bodyS.fontWeight};
|
|
225
|
+
${tokens.calendarDaySelectedFontWeight}: ${bodySBold.fontWeight};
|
|
225
226
|
|
|
226
227
|
${tokens.calendarCurrentItemBorderWidth}: 0.125rem;
|
|
227
228
|
|
|
@@ -232,25 +233,25 @@ export const config = {
|
|
|
232
233
|
${tokens.calendarHeaderPadding}: 0 0 0 0.5rem;
|
|
233
234
|
${tokens.calendarHeaderDateGap}: 0.25rem;
|
|
234
235
|
|
|
235
|
-
${tokens.calendarHeaderFontFamily}:
|
|
236
|
-
${tokens.calendarHeaderFontSize}:
|
|
237
|
-
${tokens.calendarHeaderFontStyle}:
|
|
238
|
-
${tokens.calendarHeaderFontLetterSpacing}:
|
|
239
|
-
${tokens.calendarHeaderFontLineHeight}:
|
|
240
|
-
${tokens.calendarHeaderFontWeight}:
|
|
241
|
-
${tokens.calendarHeaderFontWeightBold}:
|
|
236
|
+
${tokens.calendarHeaderFontFamily}: ${bodyMBold.fontFamily};
|
|
237
|
+
${tokens.calendarHeaderFontSize}: ${bodyMBold.fontSize};
|
|
238
|
+
${tokens.calendarHeaderFontStyle}: ${bodyMBold.fontStyle};
|
|
239
|
+
${tokens.calendarHeaderFontLetterSpacing}: ${bodyMBold.letterSpacing};
|
|
240
|
+
${tokens.calendarHeaderFontLineHeight}: ${bodyMBold.lineHeight};
|
|
241
|
+
${tokens.calendarHeaderFontWeight}: ${bodyMBold.fontWeight};
|
|
242
|
+
${tokens.calendarHeaderFontWeightBold}: ${bodyMBold.fontWeight};
|
|
242
243
|
|
|
243
244
|
${tokens.iconButtonHeight}: 2rem;
|
|
244
245
|
${tokens.iconButtonWidth}: 2rem;
|
|
245
246
|
${tokens.iconButtonPadding}: 0.75rem;
|
|
246
247
|
${tokens.iconButtonRadius}: 0.5rem;
|
|
247
248
|
|
|
248
|
-
${tokens.shortcutFontFamily}:
|
|
249
|
-
${tokens.shortcutFontStyle}:
|
|
250
|
-
${tokens.shortcutFontSize}:
|
|
251
|
-
${tokens.shortcutFontWeight}:
|
|
252
|
-
${tokens.shortcutLetterSpacing}:
|
|
253
|
-
${tokens.shortcutLineHeight}:
|
|
249
|
+
${tokens.shortcutFontFamily}: ${bodyS.fontFamily};
|
|
250
|
+
${tokens.shortcutFontStyle}: ${bodyS.fontStyle};
|
|
251
|
+
${tokens.shortcutFontSize}: ${bodyS.fontSize};
|
|
252
|
+
${tokens.shortcutFontWeight}: ${bodyS.fontWeight};
|
|
253
|
+
${tokens.shortcutLetterSpacing}: ${bodyS.letterSpacing};
|
|
254
|
+
${tokens.shortcutLineHeight}: ${bodyS.lineHeight};
|
|
254
255
|
|
|
255
256
|
${tokens.shortcutPadding}: 0.688rem 0.5rem;
|
|
256
257
|
${tokens.shortcutGap}: 0.375rem;
|
|
@@ -259,36 +260,36 @@ export const config = {
|
|
|
259
260
|
},
|
|
260
261
|
disabled: {
|
|
261
262
|
true: css`
|
|
262
|
-
${tokens.background}:
|
|
263
|
-
${tokens.borderColor}:
|
|
264
|
-
${tokens.borderColorHover}:
|
|
265
|
-
${tokens.borderColorFocus}:
|
|
266
|
-
${tokens.borderColorSuccess}:
|
|
267
|
-
${tokens.textFieldBorderColorFocus}:
|
|
268
|
-
${tokens.textFieldColor}:
|
|
269
|
-
${tokens.textFieldPlaceholderColor}:
|
|
270
|
-
${tokens.textFieldColor}:
|
|
271
|
-
${tokens.textFieldPlaceholderColor}:
|
|
272
|
-
${tokens.textFieldCaretColor}:
|
|
273
|
-
${tokens.textFieldBackgroundColor}:
|
|
274
|
-
${tokens.labelColor}:
|
|
263
|
+
${tokens.background}: ${surfaceSolidPrimary};
|
|
264
|
+
${tokens.borderColor}: ${surfaceSolidPrimary};
|
|
265
|
+
${tokens.borderColorHover}: ${surfaceSolidPrimary};
|
|
266
|
+
${tokens.borderColorFocus}: ${surfaceSolidPrimary};
|
|
267
|
+
${tokens.borderColorSuccess}: ${surfaceSolidPrimary};
|
|
268
|
+
${tokens.textFieldBorderColorFocus}: ${surfaceSolidPrimary};
|
|
269
|
+
${tokens.textFieldColor}: ${textSecondary};
|
|
270
|
+
${tokens.textFieldPlaceholderColor}: ${textSecondary};
|
|
271
|
+
${tokens.textFieldColor}: ${textSecondary};
|
|
272
|
+
${tokens.textFieldPlaceholderColor}: ${textSecondary};
|
|
273
|
+
${tokens.textFieldCaretColor}: ${textSecondary};
|
|
274
|
+
${tokens.textFieldBackgroundColor}: ${surfaceSolidPrimary};
|
|
275
|
+
${tokens.labelColor}: ${textSecondary};
|
|
275
276
|
`
|
|
276
277
|
},
|
|
277
278
|
readOnly: {
|
|
278
279
|
true: css`
|
|
279
|
-
${tokens.backgroundReadOnly}:
|
|
280
|
-
${tokens.borderColorReadOnly}:
|
|
280
|
+
${tokens.backgroundReadOnly}: ${surfaceClear};
|
|
281
|
+
${tokens.borderColorReadOnly}: ${outlineSolidPrimary};
|
|
281
282
|
|
|
282
|
-
${tokens.labelColor}:
|
|
283
|
-
${tokens.labelColorReadOnly}:
|
|
284
|
-
${tokens.leftHelperColorReadOnly}:
|
|
283
|
+
${tokens.labelColor}: ${textPrimary};
|
|
284
|
+
${tokens.labelColorReadOnly}: ${textPrimary};
|
|
285
|
+
${tokens.leftHelperColorReadOnly}: ${textSecondary};
|
|
285
286
|
|
|
286
|
-
${tokens.dividerColorReadOnly}:
|
|
287
|
+
${tokens.dividerColorReadOnly}: ${textSecondary};
|
|
287
288
|
${tokens.dividerOpacityReadOnly}: 0.4;
|
|
288
289
|
|
|
289
|
-
${tokens.textFieldColorReadOnly}:
|
|
290
|
-
${tokens.textFieldBackgroundColorReadOnly}:
|
|
291
|
-
${tokens.textFieldPlaceholderColorReadOnly}:
|
|
290
|
+
${tokens.textFieldColorReadOnly}: ${textPrimary};
|
|
291
|
+
${tokens.textFieldBackgroundColorReadOnly}: ${surfaceClear};
|
|
292
|
+
${tokens.textFieldPlaceholderColorReadOnly}: ${textSecondary};
|
|
292
293
|
${tokens.borderColor}: transparent;
|
|
293
294
|
${tokens.borderWidth}: 0;
|
|
294
295
|
`
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { inverseSurfaceSolidDefault, onDarkSurfaceSolidDefault, onLightSurfaceSolidDefault, surfaceSolidTertiary } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, dividerTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -8,17 +9,17 @@ export const config = {
|
|
|
8
9
|
variations: {
|
|
9
10
|
view: {
|
|
10
11
|
default: css`
|
|
11
|
-
${dividerTokens.background}:
|
|
12
|
+
${dividerTokens.background}: ${surfaceSolidTertiary};
|
|
12
13
|
`,
|
|
13
14
|
dark: css`
|
|
14
|
-
${dividerTokens.background}:
|
|
15
|
+
${dividerTokens.background}: ${onDarkSurfaceSolidDefault};
|
|
15
16
|
`,
|
|
16
17
|
light: css`
|
|
17
|
-
${dividerTokens.background}:
|
|
18
|
+
${dividerTokens.background}: ${onLightSurfaceSolidDefault};
|
|
18
19
|
`,
|
|
19
20
|
// TODO поменять на корректный токен --inverse-surface-transparent-tertiary когда он появится
|
|
20
21
|
inverse: css`
|
|
21
|
-
${dividerTokens.background}:
|
|
22
|
+
${dividerTokens.background}: ${inverseSurfaceSolidDefault};
|
|
22
23
|
`
|
|
23
24
|
},
|
|
24
25
|
size: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { surfaceSolidCard, textAccent } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, drawerTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -7,12 +8,12 @@ export const config = {
|
|
|
7
8
|
variations: {
|
|
8
9
|
view: {
|
|
9
10
|
default: css`
|
|
10
|
-
${drawerTokens.background}:
|
|
11
|
+
${drawerTokens.background}: ${surfaceSolidCard};
|
|
11
12
|
${drawerTokens.shadow}: 0 3.75rem 7rem -0.5rem rgba(0, 0, 0, 0.08);
|
|
12
13
|
${drawerTokens.contentBackgroundColor}: var(--surface-transparent-primary);
|
|
13
14
|
${drawerTokens.drawerOverlayWithBlurColor}: var(--overlay-blur);
|
|
14
15
|
${drawerTokens.drawerOverlayColor}: var(--overlay-soft);
|
|
15
|
-
${drawerTokens.closeIconColor}:
|
|
16
|
+
${drawerTokens.closeIconColor}: ${textAccent};
|
|
16
17
|
`
|
|
17
18
|
},
|
|
18
19
|
size: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { bodyM, outlineSolidPrimary, surfaceAccent, surfaceClear, surfaceSolidCardBrightness, surfaceSolidPrimary, surfaceTransparentAccent, textAccent, textPrimary } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, dropdownTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -26,12 +27,12 @@ export const config = {
|
|
|
26
27
|
${tokens.dividerMarginTopTight}: 0.25rem;
|
|
27
28
|
${tokens.dividerMarginBottomTight}: 0.25rem;
|
|
28
29
|
|
|
29
|
-
${tokens.itemFontFamily}:
|
|
30
|
-
${tokens.itemFontSize}:
|
|
31
|
-
${tokens.itemFontStyle}:
|
|
32
|
-
${tokens.itemFontWeightBold}:
|
|
33
|
-
${tokens.itemFontLetterSpacing}:
|
|
34
|
-
${tokens.itemFontLineHeight}:
|
|
30
|
+
${tokens.itemFontFamily}: ${bodyM.fontFamily};
|
|
31
|
+
${tokens.itemFontSize}: ${bodyM.fontSize};
|
|
32
|
+
${tokens.itemFontStyle}: ${bodyM.fontStyle};
|
|
33
|
+
${tokens.itemFontWeightBold}: ${bodyM.fontWeight};
|
|
34
|
+
${tokens.itemFontLetterSpacing}: ${bodyM.letterSpacing};
|
|
35
|
+
${tokens.itemFontLineHeight}: ${bodyM.lineHeight};
|
|
35
36
|
|
|
36
37
|
${tokens.cellPadding}: 0rem;
|
|
37
38
|
${tokens.cellPaddingLeftContent}: 0rem;
|
|
@@ -39,27 +40,27 @@ export const config = {
|
|
|
39
40
|
${tokens.cellPaddingRightContent}: 0rem;
|
|
40
41
|
${tokens.cellTextboxGap}: 0.125rem;
|
|
41
42
|
${tokens.cellGap}: 0.375rem;
|
|
42
|
-
${tokens.cellTitleFontFamily}:
|
|
43
|
-
${tokens.cellTitleFontSize}:
|
|
44
|
-
${tokens.cellTitleFontStyle}:
|
|
45
|
-
${tokens.cellTitleFontWeight}:
|
|
46
|
-
${tokens.cellTitleLetterSpacing}:
|
|
47
|
-
${tokens.cellTitleLineHeight}:
|
|
43
|
+
${tokens.cellTitleFontFamily}: ${bodyM.fontFamily};
|
|
44
|
+
${tokens.cellTitleFontSize}: ${bodyM.fontSize};
|
|
45
|
+
${tokens.cellTitleFontStyle}: ${bodyM.fontStyle};
|
|
46
|
+
${tokens.cellTitleFontWeight}: ${bodyM.fontWeight};
|
|
47
|
+
${tokens.cellTitleLetterSpacing}: ${bodyM.letterSpacing};
|
|
48
|
+
${tokens.cellTitleLineHeight}: ${bodyM.lineHeight};
|
|
48
49
|
`
|
|
49
50
|
},
|
|
50
51
|
view: {
|
|
51
52
|
default: css`
|
|
52
53
|
${tokens.dividerColor}: var(--surface-transparent-tertiary);
|
|
53
54
|
${tokens.disabledOpacity}: 0.4;
|
|
54
|
-
${tokens.borderColor}:
|
|
55
|
-
${tokens.focusColor}:
|
|
56
|
-
${tokens.background}:
|
|
55
|
+
${tokens.borderColor}: ${outlineSolidPrimary};
|
|
56
|
+
${tokens.focusColor}: ${surfaceAccent};
|
|
57
|
+
${tokens.background}: ${surfaceSolidCardBrightness};
|
|
57
58
|
${tokens.boxShadow}: 0px 4px 14px -4px rgba(8, 8, 8, 0.08), 0px 1px 4px -1px rgba(0, 0, 0, 0.04);
|
|
58
|
-
${tokens.itemBackground}:
|
|
59
|
-
${tokens.itemBackgroundHover}:
|
|
60
|
-
${tokens.itemColor}:
|
|
61
|
-
${tokens.dividerColor}:
|
|
62
|
-
${tokens.disclosureIconColor}:
|
|
59
|
+
${tokens.itemBackground}: ${surfaceClear};
|
|
60
|
+
${tokens.itemBackgroundHover}: ${surfaceTransparentAccent};
|
|
61
|
+
${tokens.itemColor}: ${textPrimary};
|
|
62
|
+
${tokens.dividerColor}: ${surfaceSolidPrimary};
|
|
63
|
+
${tokens.disclosureIconColor}: ${textAccent};
|
|
63
64
|
`
|
|
64
65
|
}
|
|
65
66
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { bodyL, bodyM, bodyS, bodyXS } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, emptyStateTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -12,12 +13,12 @@ export const config = {
|
|
|
12
13
|
${tokens.descriptionMargin}: 0 0 1rem 0;
|
|
13
14
|
${tokens.buttonMargin}: -1rem 0 0 0;
|
|
14
15
|
${tokens.buttonHeight}: 3.5rem;
|
|
15
|
-
${tokens.fontFamily}:
|
|
16
|
-
${tokens.fontSize}:
|
|
17
|
-
${tokens.fontStyle}:
|
|
18
|
-
${tokens.fontWeight}:
|
|
19
|
-
${tokens.fontLetterSpacing}:
|
|
20
|
-
${tokens.fontLineHeight}:
|
|
16
|
+
${tokens.fontFamily}: ${bodyL.fontFamily};
|
|
17
|
+
${tokens.fontSize}: ${bodyL.fontSize};
|
|
18
|
+
${tokens.fontStyle}: ${bodyL.fontStyle};
|
|
19
|
+
${tokens.fontWeight}: ${bodyL.fontWeight};
|
|
20
|
+
${tokens.fontLetterSpacing}: ${bodyL.letterSpacing};
|
|
21
|
+
${tokens.fontLineHeight}: ${bodyL.lineHeight};
|
|
21
22
|
`,
|
|
22
23
|
m: css`
|
|
23
24
|
${tokens.borderRadius}: 0.75rem;
|
|
@@ -26,12 +27,12 @@ export const config = {
|
|
|
26
27
|
${tokens.descriptionMargin}: 0 0 0.875rem 0;
|
|
27
28
|
${tokens.buttonMargin}: -0.875rem 0 0 0;
|
|
28
29
|
${tokens.buttonHeight}: 3rem;
|
|
29
|
-
${tokens.fontFamily}:
|
|
30
|
-
${tokens.fontSize}:
|
|
31
|
-
${tokens.fontStyle}:
|
|
32
|
-
${tokens.fontWeight}:
|
|
33
|
-
${tokens.fontLetterSpacing}:
|
|
34
|
-
${tokens.fontLineHeight}:
|
|
30
|
+
${tokens.fontFamily}: ${bodyM.fontFamily};
|
|
31
|
+
${tokens.fontSize}: ${bodyM.fontSize};
|
|
32
|
+
${tokens.fontStyle}: ${bodyM.fontStyle};
|
|
33
|
+
${tokens.fontWeight}: ${bodyM.fontWeight};
|
|
34
|
+
${tokens.fontLetterSpacing}: ${bodyM.letterSpacing};
|
|
35
|
+
${tokens.fontLineHeight}: ${bodyM.lineHeight};
|
|
35
36
|
`,
|
|
36
37
|
s: css`
|
|
37
38
|
${tokens.borderRadius}: 0.625rem;
|
|
@@ -40,12 +41,12 @@ export const config = {
|
|
|
40
41
|
${tokens.descriptionMargin}: 0 0 0.625rem 0;
|
|
41
42
|
${tokens.buttonMargin}: -0.625rem 0 0 0;
|
|
42
43
|
${tokens.buttonHeight}: 2.5rem;
|
|
43
|
-
${tokens.fontFamily}:
|
|
44
|
-
${tokens.fontSize}:
|
|
45
|
-
${tokens.fontStyle}:
|
|
46
|
-
${tokens.fontWeight}:
|
|
47
|
-
${tokens.fontLetterSpacing}:
|
|
48
|
-
${tokens.fontLineHeight}:
|
|
44
|
+
${tokens.fontFamily}: ${bodyS.fontFamily};
|
|
45
|
+
${tokens.fontSize}: ${bodyS.fontSize};
|
|
46
|
+
${tokens.fontStyle}: ${bodyS.fontStyle};
|
|
47
|
+
${tokens.fontWeight}: ${bodyS.fontWeight};
|
|
48
|
+
${tokens.fontLetterSpacing}: ${bodyS.letterSpacing};
|
|
49
|
+
${tokens.fontLineHeight}: ${bodyS.lineHeight};
|
|
49
50
|
`,
|
|
50
51
|
xs: css`
|
|
51
52
|
${tokens.borderRadius}: 0.5rem;
|
|
@@ -54,12 +55,12 @@ export const config = {
|
|
|
54
55
|
${tokens.descriptionMargin}: 0 0 0.5rem 0;
|
|
55
56
|
${tokens.buttonMargin}: -0.5rem 0 0 0;
|
|
56
57
|
${tokens.buttonHeight}: 2rem;
|
|
57
|
-
${tokens.fontFamily}:
|
|
58
|
-
${tokens.fontSize}:
|
|
59
|
-
${tokens.fontStyle}:
|
|
60
|
-
${tokens.fontWeight}:
|
|
61
|
-
${tokens.fontLetterSpacing}:
|
|
62
|
-
${tokens.fontLineHeight}:
|
|
58
|
+
${tokens.fontFamily}: ${bodyXS.fontFamily};
|
|
59
|
+
${tokens.fontSize}: ${bodyXS.fontSize};
|
|
60
|
+
${tokens.fontStyle}: ${bodyXS.fontStyle};
|
|
61
|
+
${tokens.fontWeight}: ${bodyXS.fontWeight};
|
|
62
|
+
${tokens.fontLetterSpacing}: ${bodyXS.letterSpacing};
|
|
63
|
+
${tokens.fontLineHeight}: ${bodyXS.lineHeight};
|
|
63
64
|
`
|
|
64
65
|
}
|
|
65
66
|
}
|