@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 { bodyM, bodyMBold, onDarkTextPrimary, onLightTextAccentMinor, surfaceAccent, surfaceAccentActive, surfaceAccentHover, surfaceClear, surfaceSolidSecondary, surfaceSolidSecondaryActive, surfaceSolidSecondaryHover, surfaceTransparentAccent, surfaceTransparentAccentActive, textAccent, textAccentActive, textAccentMinor, textSecondary } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, buttonTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -8,36 +9,36 @@ export const config = {
|
|
|
8
9
|
variations: {
|
|
9
10
|
view: {
|
|
10
11
|
accent: css`
|
|
11
|
-
${buttonTokens.buttonColor}:
|
|
12
|
-
${buttonTokens.buttonTextColor}:
|
|
13
|
-
${buttonTokens.buttonIconColor}:
|
|
14
|
-
${buttonTokens.buttonValueColor}:
|
|
15
|
-
${buttonTokens.buttonBackgroundColor}:
|
|
12
|
+
${buttonTokens.buttonColor}: ${onDarkTextPrimary};
|
|
13
|
+
${buttonTokens.buttonTextColor}: ${onDarkTextPrimary};
|
|
14
|
+
${buttonTokens.buttonIconColor}: ${onDarkTextPrimary};
|
|
15
|
+
${buttonTokens.buttonValueColor}: ${onLightTextAccentMinor};
|
|
16
|
+
${buttonTokens.buttonBackgroundColor}: ${surfaceAccent};
|
|
16
17
|
${buttonTokens.buttonLoadingBackgroundColor}: var(${buttonTokens.buttonBackgroundColor});
|
|
17
|
-
${buttonTokens.buttonBackgroundColorHover}:
|
|
18
|
-
${buttonTokens.buttonBackgroundColorActive}:
|
|
18
|
+
${buttonTokens.buttonBackgroundColorHover}: ${surfaceAccentHover};
|
|
19
|
+
${buttonTokens.buttonBackgroundColorActive}: ${surfaceAccentActive};
|
|
19
20
|
`,
|
|
20
21
|
secondary: css`
|
|
21
|
-
${buttonTokens.buttonColor}:
|
|
22
|
-
${buttonTokens.buttonColorHover}:
|
|
23
|
-
${buttonTokens.buttonColorActive}:
|
|
24
|
-
${buttonTokens.buttonTextColor}:
|
|
25
|
-
${buttonTokens.buttonIconColor}:
|
|
26
|
-
${buttonTokens.buttonValueColor}:
|
|
27
|
-
${buttonTokens.buttonBackgroundColor}:
|
|
22
|
+
${buttonTokens.buttonColor}: ${textAccent};
|
|
23
|
+
${buttonTokens.buttonColorHover}: ${textAccentMinor};
|
|
24
|
+
${buttonTokens.buttonColorActive}: ${textAccentActive};
|
|
25
|
+
${buttonTokens.buttonTextColor}: ${textAccent};
|
|
26
|
+
${buttonTokens.buttonIconColor}: ${textAccent};
|
|
27
|
+
${buttonTokens.buttonValueColor}: ${textSecondary};
|
|
28
|
+
${buttonTokens.buttonBackgroundColor}: ${surfaceSolidSecondary};
|
|
28
29
|
${buttonTokens.buttonLoadingBackgroundColor}: var(${buttonTokens.buttonBackgroundColor});
|
|
29
|
-
${buttonTokens.buttonBackgroundColorHover}:
|
|
30
|
-
${buttonTokens.buttonBackgroundColorActive}:
|
|
30
|
+
${buttonTokens.buttonBackgroundColorHover}: ${surfaceSolidSecondaryHover};
|
|
31
|
+
${buttonTokens.buttonBackgroundColorActive}: ${surfaceSolidSecondaryActive};
|
|
31
32
|
`,
|
|
32
33
|
clear: css`
|
|
33
|
-
${buttonTokens.buttonColor}:
|
|
34
|
-
${buttonTokens.buttonTextColor}:
|
|
35
|
-
${buttonTokens.buttonIconColor}:
|
|
36
|
-
${buttonTokens.buttonValueColor}:
|
|
37
|
-
${buttonTokens.buttonBackgroundColor}:
|
|
38
|
-
${buttonTokens.buttonLoadingBackgroundColor}:
|
|
39
|
-
${buttonTokens.buttonBackgroundColorHover}:
|
|
40
|
-
${buttonTokens.buttonBackgroundColorActive}:
|
|
34
|
+
${buttonTokens.buttonColor}: ${textAccent};
|
|
35
|
+
${buttonTokens.buttonTextColor}: ${textAccent};
|
|
36
|
+
${buttonTokens.buttonIconColor}: ${textAccent};
|
|
37
|
+
${buttonTokens.buttonValueColor}: ${textAccentMinor};
|
|
38
|
+
${buttonTokens.buttonBackgroundColor}: ${surfaceClear};
|
|
39
|
+
${buttonTokens.buttonLoadingBackgroundColor}: ${surfaceTransparentAccent};
|
|
40
|
+
${buttonTokens.buttonBackgroundColorHover}: ${surfaceTransparentAccent};
|
|
41
|
+
${buttonTokens.buttonBackgroundColorActive}: ${surfaceTransparentAccentActive};
|
|
41
42
|
`
|
|
42
43
|
},
|
|
43
44
|
size: {
|
|
@@ -46,12 +47,12 @@ export const config = {
|
|
|
46
47
|
${buttonTokens.buttonWidth}: 11.25rem;
|
|
47
48
|
${buttonTokens.buttonPadding}: 1rem;
|
|
48
49
|
${buttonTokens.buttonRadius}: 0.75rem;
|
|
49
|
-
${buttonTokens.buttonFontFamily}:
|
|
50
|
-
${buttonTokens.buttonFontSize}:
|
|
51
|
-
${buttonTokens.buttonFontStyle}:
|
|
52
|
-
${buttonTokens.buttonFontWeight}:
|
|
53
|
-
${buttonTokens.buttonLetterSpacing}:
|
|
54
|
-
${buttonTokens.buttonLineHeight}:
|
|
50
|
+
${buttonTokens.buttonFontFamily}: ${bodyM.fontFamily};
|
|
51
|
+
${buttonTokens.buttonFontSize}: ${bodyM.fontSize};
|
|
52
|
+
${buttonTokens.buttonFontStyle}: ${bodyM.fontStyle};
|
|
53
|
+
${buttonTokens.buttonFontWeight}: ${bodyMBold.fontWeight};
|
|
54
|
+
${buttonTokens.buttonLetterSpacing}: ${bodyM.letterSpacing};
|
|
55
|
+
${buttonTokens.buttonLineHeight}: ${bodyM.lineHeight};
|
|
55
56
|
|
|
56
57
|
${buttonTokens.buttonSpinnerSize}: 1.375rem;
|
|
57
58
|
${buttonTokens.buttonSpinnerColor}: inherit;
|
|
@@ -65,12 +66,12 @@ export const config = {
|
|
|
65
66
|
${buttonTokens.buttonWidth}: 11.25rem;
|
|
66
67
|
${buttonTokens.buttonPadding}: 1rem;
|
|
67
68
|
${buttonTokens.buttonRadius}: 0.75rem;
|
|
68
|
-
${buttonTokens.buttonFontFamily}:
|
|
69
|
-
${buttonTokens.buttonFontSize}:
|
|
70
|
-
${buttonTokens.buttonFontStyle}:
|
|
71
|
-
${buttonTokens.buttonFontWeight}:
|
|
72
|
-
${buttonTokens.buttonLetterSpacing}:
|
|
73
|
-
${buttonTokens.buttonLineHeight}:
|
|
69
|
+
${buttonTokens.buttonFontFamily}: ${bodyM.fontFamily};
|
|
70
|
+
${buttonTokens.buttonFontSize}: ${bodyM.fontSize};
|
|
71
|
+
${buttonTokens.buttonFontStyle}: ${bodyM.fontStyle};
|
|
72
|
+
${buttonTokens.buttonFontWeight}: ${bodyMBold.fontWeight};
|
|
73
|
+
${buttonTokens.buttonLetterSpacing}: ${bodyM.letterSpacing};
|
|
74
|
+
${buttonTokens.buttonLineHeight}: ${bodyM.lineHeight};
|
|
74
75
|
|
|
75
76
|
${buttonTokens.buttonSpinnerSize}: 1.375rem;
|
|
76
77
|
${buttonTokens.buttonSpinnerColor}: inherit;
|
|
@@ -82,12 +83,12 @@ export const config = {
|
|
|
82
83
|
sr: css`
|
|
83
84
|
${buttonTokens.buttonHeight}: 2.5rem;
|
|
84
85
|
${buttonTokens.buttonWidth}: 11.25rem;
|
|
85
|
-
${buttonTokens.buttonFontFamily}:
|
|
86
|
-
${buttonTokens.buttonFontSize}:
|
|
87
|
-
${buttonTokens.buttonFontStyle}:
|
|
88
|
-
${buttonTokens.buttonFontWeight}:
|
|
89
|
-
${buttonTokens.buttonLetterSpacing}:
|
|
90
|
-
${buttonTokens.buttonLineHeight}:
|
|
86
|
+
${buttonTokens.buttonFontFamily}: ${bodyM.fontFamily};
|
|
87
|
+
${buttonTokens.buttonFontSize}: ${bodyM.fontSize};
|
|
88
|
+
${buttonTokens.buttonFontStyle}: ${bodyM.fontStyle};
|
|
89
|
+
${buttonTokens.buttonFontWeight}: ${bodyMBold.fontWeight};
|
|
90
|
+
${buttonTokens.buttonLetterSpacing}: ${bodyM.letterSpacing};
|
|
91
|
+
${buttonTokens.buttonLineHeight}: ${bodyM.lineHeight};
|
|
91
92
|
|
|
92
93
|
${buttonTokens.buttonSpinnerSize}: 1.375rem;
|
|
93
94
|
${buttonTokens.buttonSpinnerColor}: inherit;
|
|
@@ -101,7 +102,7 @@ export const config = {
|
|
|
101
102
|
},
|
|
102
103
|
focused: {
|
|
103
104
|
true: css`
|
|
104
|
-
${buttonTokens.buttonFocusColor}:
|
|
105
|
+
${buttonTokens.buttonFocusColor}: ${surfaceAccent};
|
|
105
106
|
`
|
|
106
107
|
},
|
|
107
108
|
stretching: {
|
|
@@ -5,11 +5,11 @@ import styled from '@emotion/styled';
|
|
|
5
5
|
import { config } from './Button.config';
|
|
6
6
|
const mergedConfig = mergeConfig(buttonConfig, config);
|
|
7
7
|
const ButtonComponent = component(mergedConfig);
|
|
8
|
-
// INFO: Данное поведение запрошено
|
|
8
|
+
// INFO: Данное поведение запрошено продуктом
|
|
9
9
|
const StyledButton = /*#__PURE__*/ styled(ButtonComponent, {
|
|
10
|
-
target: "
|
|
10
|
+
target: "e1owdhnp0",
|
|
11
11
|
label: "StyledButton"
|
|
12
|
-
})("&&.", String(buttonClasses.buttonLoading), "{color:var(", buttonTokens.buttonColorActive, ",var(", buttonTokens.buttonColor, "));background:var(", buttonTokens.buttonBackgroundColorActive, ",var(", buttonTokens.buttonBackgroundColor, "));pointer-events:none;}", "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3JjL2NvbXBvbmVudHMvQnV0dG9uL0J1dHRvbi50c3giLCJzb3VyY2VzIjpbInNyYy9jb21wb25lbnRzL0J1dHRvbi9CdXR0b24udHN4Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyBDb21wb25lbnRQcm9wcywgdXNlQ2FsbGJhY2ssIE1vdXNlRXZlbnQsIGZvcndhcmRSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBidXR0b25Db25maWcsIGNvbXBvbmVudCwgbWVyZ2VDb25maWcsIGJ1dHRvbkNsYXNzZXMsIGJ1dHRvblRva2VucyB9IGZyb20gJ0BzYWx1dGVqcy9wbGFzbWEtbmV3LWhvcGUvZW1vdGlvbic7XG5pbXBvcnQgeyBtYWtlUG9seW1vcnBoaWMgfSBmcm9tICdAc2FsdXRlanMvcGxhc21hLW5ldy1ob3BlJztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuaW1wb3J0IHsgY29uZmlnIH0gZnJvbSAnLi9CdXR0b24uY29uZmlnJztcblxuY29uc3QgbWVyZ2VkQ29uZmlnID0gbWVyZ2VDb25maWcoYnV0dG9uQ29uZmlnLCBjb25maWcpO1xuY29uc3QgQnV0dG9uQ29tcG9uZW50ID0gY29tcG9uZW50KG1lcmdlZENvbmZpZyk7XG5cbmV4cG9ydCB0eXBlIEJ1dHRvblByb3BzID0gQ29tcG9uZW50UHJvcHM8dHlwZW9mIEJ1dHRvbkNvbXBvbmVudD47XG5cbi8vIElORk86INCU0LDQvdC90L7QtSDQv9C+0LLQtdC00LXQvdC40LUg0LfQsNC/0YDQvtGI0LXQvdC+INC/
|
|
12
|
+
})("&&.", String(buttonClasses.buttonLoading), "{color:var(", buttonTokens.buttonColorActive, ",var(", buttonTokens.buttonColor, "));background:var(", buttonTokens.buttonBackgroundColorActive, ",var(", buttonTokens.buttonBackgroundColor, "));pointer-events:none;}", "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3JjL2NvbXBvbmVudHMvQnV0dG9uL0J1dHRvbi50c3giLCJzb3VyY2VzIjpbInNyYy9jb21wb25lbnRzL0J1dHRvbi9CdXR0b24udHN4Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyBDb21wb25lbnRQcm9wcywgdXNlQ2FsbGJhY2ssIE1vdXNlRXZlbnQsIGZvcndhcmRSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBidXR0b25Db25maWcsIGNvbXBvbmVudCwgbWVyZ2VDb25maWcsIGJ1dHRvbkNsYXNzZXMsIGJ1dHRvblRva2VucyB9IGZyb20gJ0BzYWx1dGVqcy9wbGFzbWEtbmV3LWhvcGUvZW1vdGlvbic7XG5pbXBvcnQgeyBtYWtlUG9seW1vcnBoaWMgfSBmcm9tICdAc2FsdXRlanMvcGxhc21hLW5ldy1ob3BlJztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuaW1wb3J0IHsgY29uZmlnIH0gZnJvbSAnLi9CdXR0b24uY29uZmlnJztcblxuY29uc3QgbWVyZ2VkQ29uZmlnID0gbWVyZ2VDb25maWcoYnV0dG9uQ29uZmlnLCBjb25maWcpO1xuY29uc3QgQnV0dG9uQ29tcG9uZW50ID0gY29tcG9uZW50KG1lcmdlZENvbmZpZyk7XG5cbmV4cG9ydCB0eXBlIEJ1dHRvblByb3BzID0gQ29tcG9uZW50UHJvcHM8dHlwZW9mIEJ1dHRvbkNvbXBvbmVudD47XG5cbi8vIElORk86INCU0LDQvdC90L7QtSDQv9C+0LLQtdC00LXQvdC40LUg0LfQsNC/0YDQvtGI0LXQvdC+INC/0YDQvtC00YPQutGC0L7QvFxuY29uc3QgU3R5bGVkQnV0dG9uID0gc3R5bGVkKEJ1dHRvbkNvbXBvbmVudClgXG4gICAgJiYuJHtTdHJpbmcoYnV0dG9uQ2xhc3Nlcy5idXR0b25Mb2FkaW5nKX0ge1xuICAgICAgICBjb2xvcjogdmFyKCR7YnV0dG9uVG9rZW5zLmJ1dHRvbkNvbG9yQWN0aXZlfSwgdmFyKCR7YnV0dG9uVG9rZW5zLmJ1dHRvbkNvbG9yfSkpO1xuICAgICAgICBiYWNrZ3JvdW5kOiB2YXIoJHtidXR0b25Ub2tlbnMuYnV0dG9uQmFja2dyb3VuZENvbG9yQWN0aXZlfSwgdmFyKCR7YnV0dG9uVG9rZW5zLmJ1dHRvbkJhY2tncm91bmRDb2xvcn0pKTtcblxuICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTtcbiAgICB9XG5gO1xuXG4vKipcbiAqINCa0L3QvtC/0LrQsC5cbiAqL1xuZXhwb3J0IGNvbnN0IEJ1dHRvbiA9IG1ha2VQb2x5bW9ycGhpYyhcbiAgICBmb3J3YXJkUmVmPE9taXQ8SFRNTEJ1dHRvbkVsZW1lbnQsICd2YWx1ZSc+LCBCdXR0b25Qcm9wcz4oKHsgb25DbGljaywgaXNMb2FkaW5nLCB2YWx1ZSwgLi4ucHJvcHMgfSwgcmVmKSA9PiB7XG4gICAgICAgIGNvbnN0IGhhbmRsZUNsaWNrID0gdXNlQ2FsbGJhY2soXG4gICAgICAgICAgICAoZXZlbnQ6IE1vdXNlRXZlbnQ8SFRNTEJ1dHRvbkVsZW1lbnQ+KSA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKCFpc0xvYWRpbmcpIHtcbiAgICAgICAgICAgICAgICAgICAgb25DbGljaz8uKGV2ZW50KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgW2lzTG9hZGluZywgb25DbGlja10sXG4gICAgICAgICk7XG5cbiAgICAgICAgLy8gQHRzLWlnbm9yZVxuICAgICAgICByZXR1cm4gPFN0eWxlZEJ1dHRvbiB2YWx1ZT17dmFsdWV9IHJlZj17cmVmfSBvbkNsaWNrPXtoYW5kbGVDbGlja30gaXNMb2FkaW5nPXtpc0xvYWRpbmd9IHsuLi5wcm9wc30gLz47XG4gICAgfSksXG4gICAgJ2J1dHRvbicsXG4pO1xuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWFxQiJ9 */");
|
|
13
13
|
/**
|
|
14
14
|
* Кнопка.
|
|
15
15
|
*/ export const Button = makePolymorphic(/*#__PURE__*/ forwardRef(({ onClick, isLoading, value, ...props }, ref)=>{
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { bodyS, bodySBold, onDarkTextPrimary, onLightTextAccentMinor, surfaceAccent, surfaceAccentActive, surfaceAccentHover, surfaceClear, surfaceSolidPrimary, surfaceSolidPrimaryActive, surfaceSolidPrimaryHover, surfaceTransparentAccent, textAccent, textAccentActive, textAccentMinor, textSecondary } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, buttonGroupTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -7,38 +8,38 @@ export const config = {
|
|
|
7
8
|
variations: {
|
|
8
9
|
view: {
|
|
9
10
|
accent: css`
|
|
10
|
-
${buttonGroupTokens.buttonColor}:
|
|
11
|
-
${buttonGroupTokens.buttonTextColor}:
|
|
12
|
-
${buttonGroupTokens.buttonValueColor}:
|
|
13
|
-
${buttonGroupTokens.buttonBackgroundColor}:
|
|
11
|
+
${buttonGroupTokens.buttonColor}: ${onDarkTextPrimary};
|
|
12
|
+
${buttonGroupTokens.buttonTextColor}: ${onDarkTextPrimary};
|
|
13
|
+
${buttonGroupTokens.buttonValueColor}: ${onLightTextAccentMinor};
|
|
14
|
+
${buttonGroupTokens.buttonBackgroundColor}: ${surfaceAccent};
|
|
14
15
|
${buttonGroupTokens.buttonLoadingBackgroundColor}: var(${buttonGroupTokens.buttonBackgroundColor});
|
|
15
|
-
${buttonGroupTokens.buttonColorHover}:
|
|
16
|
-
${buttonGroupTokens.buttonBackgroundColorHover}:
|
|
17
|
-
${buttonGroupTokens.buttonColorActive}:
|
|
18
|
-
${buttonGroupTokens.buttonBackgroundColorActive}:
|
|
16
|
+
${buttonGroupTokens.buttonColorHover}: ${onDarkTextPrimary};
|
|
17
|
+
${buttonGroupTokens.buttonBackgroundColorHover}: ${surfaceAccentHover};
|
|
18
|
+
${buttonGroupTokens.buttonColorActive}: ${onDarkTextPrimary};
|
|
19
|
+
${buttonGroupTokens.buttonBackgroundColorActive}: ${surfaceAccentActive};
|
|
19
20
|
`,
|
|
20
21
|
secondary: css`
|
|
21
|
-
${buttonGroupTokens.buttonColor}:
|
|
22
|
-
${buttonGroupTokens.buttonTextColor}:
|
|
23
|
-
${buttonGroupTokens.buttonIconColor}:
|
|
24
|
-
${buttonGroupTokens.buttonValueColor}:
|
|
25
|
-
${buttonGroupTokens.buttonBackgroundColor}:
|
|
22
|
+
${buttonGroupTokens.buttonColor}: ${textAccent};
|
|
23
|
+
${buttonGroupTokens.buttonTextColor}: ${textAccent};
|
|
24
|
+
${buttonGroupTokens.buttonIconColor}: ${textAccent};
|
|
25
|
+
${buttonGroupTokens.buttonValueColor}: ${textSecondary};
|
|
26
|
+
${buttonGroupTokens.buttonBackgroundColor}: ${surfaceSolidPrimary};
|
|
26
27
|
${buttonGroupTokens.buttonLoadingBackgroundColor}: var(${buttonGroupTokens.buttonBackgroundColor});
|
|
27
|
-
${buttonGroupTokens.buttonColorHover}:
|
|
28
|
-
${buttonGroupTokens.buttonBackgroundColorHover}:
|
|
29
|
-
${buttonGroupTokens.buttonColorActive}:
|
|
30
|
-
${buttonGroupTokens.buttonBackgroundColorActive}:
|
|
28
|
+
${buttonGroupTokens.buttonColorHover}: ${textAccentMinor};
|
|
29
|
+
${buttonGroupTokens.buttonBackgroundColorHover}: ${surfaceSolidPrimaryHover};
|
|
30
|
+
${buttonGroupTokens.buttonColorActive}: ${textAccentActive};
|
|
31
|
+
${buttonGroupTokens.buttonBackgroundColorActive}: ${surfaceSolidPrimaryActive};
|
|
31
32
|
`,
|
|
32
33
|
clear: css`
|
|
33
|
-
${buttonGroupTokens.buttonColor}:
|
|
34
|
-
${buttonGroupTokens.buttonTextColor}:
|
|
35
|
-
${buttonGroupTokens.buttonValueColor}:
|
|
36
|
-
${buttonGroupTokens.buttonBackgroundColor}:
|
|
37
|
-
${buttonGroupTokens.buttonLoadingBackgroundColor}:
|
|
38
|
-
${buttonGroupTokens.buttonColorHover}:
|
|
39
|
-
${buttonGroupTokens.buttonBackgroundColorHover}:
|
|
40
|
-
${buttonGroupTokens.buttonColorActive}:
|
|
41
|
-
${buttonGroupTokens.buttonBackgroundColorActive}:
|
|
34
|
+
${buttonGroupTokens.buttonColor}: ${textAccent};
|
|
35
|
+
${buttonGroupTokens.buttonTextColor}: ${textAccent};
|
|
36
|
+
${buttonGroupTokens.buttonValueColor}: ${textAccent};
|
|
37
|
+
${buttonGroupTokens.buttonBackgroundColor}: ${surfaceClear};
|
|
38
|
+
${buttonGroupTokens.buttonLoadingBackgroundColor}: ${surfaceTransparentAccent};
|
|
39
|
+
${buttonGroupTokens.buttonColorHover}: ${textAccentMinor};
|
|
40
|
+
${buttonGroupTokens.buttonBackgroundColorHover}: ${surfaceTransparentAccent};
|
|
41
|
+
${buttonGroupTokens.buttonColorActive}: ${textAccentActive};
|
|
42
|
+
${buttonGroupTokens.buttonBackgroundColorActive}: ${surfaceClear};
|
|
42
43
|
`
|
|
43
44
|
},
|
|
44
45
|
size: {
|
|
@@ -49,12 +50,12 @@ export const config = {
|
|
|
49
50
|
|
|
50
51
|
${buttonGroupTokens.buttonHeight}: 2.5rem;
|
|
51
52
|
${buttonGroupTokens.buttonPadding}: 1rem;
|
|
52
|
-
${buttonGroupTokens.buttonFontFamily}:
|
|
53
|
-
${buttonGroupTokens.buttonFontSize}:
|
|
54
|
-
${buttonGroupTokens.buttonFontStyle}:
|
|
55
|
-
${buttonGroupTokens.buttonFontWeight}:
|
|
56
|
-
${buttonGroupTokens.buttonLetterSpacing}:
|
|
57
|
-
${buttonGroupTokens.buttonLineHeight}:
|
|
53
|
+
${buttonGroupTokens.buttonFontFamily}: ${bodyS.fontFamily};
|
|
54
|
+
${buttonGroupTokens.buttonFontSize}: ${bodyS.fontSize};
|
|
55
|
+
${buttonGroupTokens.buttonFontStyle}: ${bodyS.fontStyle};
|
|
56
|
+
${buttonGroupTokens.buttonFontWeight}: ${bodySBold.fontWeight};
|
|
57
|
+
${buttonGroupTokens.buttonLetterSpacing}: ${bodyS.letterSpacing};
|
|
58
|
+
${buttonGroupTokens.buttonLineHeight}: ${bodyS.lineHeight};
|
|
58
59
|
`,
|
|
59
60
|
sr: css`
|
|
60
61
|
${buttonGroupTokens.buttonSegmentedRadius}: 0.25rem;
|
|
@@ -62,12 +63,12 @@ export const config = {
|
|
|
62
63
|
${buttonGroupTokens.buttonSideRadius}: 0.75rem;
|
|
63
64
|
|
|
64
65
|
${buttonGroupTokens.buttonHeight}: 2.5rem;
|
|
65
|
-
${buttonGroupTokens.buttonFontFamily}:
|
|
66
|
-
${buttonGroupTokens.buttonFontSize}:
|
|
67
|
-
${buttonGroupTokens.buttonFontStyle}:
|
|
68
|
-
${buttonGroupTokens.buttonFontWeight}:
|
|
69
|
-
${buttonGroupTokens.buttonLetterSpacing}:
|
|
70
|
-
${buttonGroupTokens.buttonLineHeight}:
|
|
66
|
+
${buttonGroupTokens.buttonFontFamily}: ${bodyS.fontFamily};
|
|
67
|
+
${buttonGroupTokens.buttonFontSize}: ${bodyS.fontSize};
|
|
68
|
+
${buttonGroupTokens.buttonFontStyle}: ${bodyS.fontStyle};
|
|
69
|
+
${buttonGroupTokens.buttonFontWeight}: ${bodySBold.fontWeight};
|
|
70
|
+
${buttonGroupTokens.buttonLetterSpacing}: ${bodyS.letterSpacing};
|
|
71
|
+
${buttonGroupTokens.buttonLineHeight}: ${bodyS.lineHeight};
|
|
71
72
|
`
|
|
72
73
|
},
|
|
73
74
|
orientation: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { bodyM, bodyMBold, bodyS, bodySBold, inverseOutlineSolidSecondary, inverseTextPrimary, surfaceAccent, surfaceClear, surfaceTransparentAccent, textAccent, textAccentActive, textAccentMinor, textPrimary, textSecondary } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, calendarBaseTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -7,34 +8,34 @@ export const config = {
|
|
|
7
8
|
variations: {
|
|
8
9
|
view: {
|
|
9
10
|
default: css`
|
|
10
|
-
${calendarBaseTokens.calendarSelectedItemBackground}:
|
|
11
|
-
${calendarBaseTokens.calendarSelectedItemColor}:
|
|
12
|
-
${calendarBaseTokens.calendarSelectableItemBackgroundHover}:
|
|
13
|
-
${calendarBaseTokens.calendarCurrentItemBorderColor}:
|
|
11
|
+
${calendarBaseTokens.calendarSelectedItemBackground}: ${surfaceAccent};
|
|
12
|
+
${calendarBaseTokens.calendarSelectedItemColor}: ${inverseTextPrimary};
|
|
13
|
+
${calendarBaseTokens.calendarSelectableItemBackgroundHover}: ${surfaceTransparentAccent};
|
|
14
|
+
${calendarBaseTokens.calendarCurrentItemBorderColor}: ${inverseOutlineSolidSecondary};
|
|
14
15
|
${calendarBaseTokens.calendarCurrentItemBackgroundHover}: transparent;
|
|
15
|
-
${calendarBaseTokens.calendarCurrentItemColorHover}:
|
|
16
|
-
${calendarBaseTokens.calendarCurrentItemChildBackgroundHover}:
|
|
17
|
-
${calendarBaseTokens.calendarActiveItemBackground}:
|
|
18
|
-
${calendarBaseTokens.calendarActiveItemColor}:
|
|
19
|
-
${calendarBaseTokens.calendarHoveredItemBackground}:
|
|
20
|
-
${calendarBaseTokens.calendarHoveredItemColor}:
|
|
21
|
-
${calendarBaseTokens.calendarRangeBackground}:
|
|
22
|
-
${calendarBaseTokens.calendarOutlineFocusColor}:
|
|
16
|
+
${calendarBaseTokens.calendarCurrentItemColorHover}: ${textPrimary};
|
|
17
|
+
${calendarBaseTokens.calendarCurrentItemChildBackgroundHover}: ${surfaceTransparentAccent};
|
|
18
|
+
${calendarBaseTokens.calendarActiveItemBackground}: ${surfaceAccent};
|
|
19
|
+
${calendarBaseTokens.calendarActiveItemColor}: ${inverseTextPrimary};
|
|
20
|
+
${calendarBaseTokens.calendarHoveredItemBackground}: ${surfaceTransparentAccent};
|
|
21
|
+
${calendarBaseTokens.calendarHoveredItemColor}: ${textPrimary};
|
|
22
|
+
${calendarBaseTokens.calendarRangeBackground}: ${surfaceTransparentAccent};
|
|
23
|
+
${calendarBaseTokens.calendarOutlineFocusColor}: ${surfaceAccent};
|
|
23
24
|
${calendarBaseTokens.calendarContentPrimaryColor}: var(--surface-primary);
|
|
24
|
-
${calendarBaseTokens.calendarContentPrimaryDisabledColor}:
|
|
25
|
-
${calendarBaseTokens.calendarContentSecondaryColor}:
|
|
26
|
-
${calendarBaseTokens.calendarContentSecondaryDisabledColor}:
|
|
27
|
-
${calendarBaseTokens.calendarDayOfWeekColor}:
|
|
28
|
-
${calendarBaseTokens.calendarHeaderArrowColor}:
|
|
25
|
+
${calendarBaseTokens.calendarContentPrimaryDisabledColor}: ${textSecondary};
|
|
26
|
+
${calendarBaseTokens.calendarContentSecondaryColor}: ${textSecondary};
|
|
27
|
+
${calendarBaseTokens.calendarContentSecondaryDisabledColor}: ${textSecondary};
|
|
28
|
+
${calendarBaseTokens.calendarDayOfWeekColor}: ${textSecondary};
|
|
29
|
+
${calendarBaseTokens.calendarHeaderArrowColor}: ${textAccent};
|
|
29
30
|
${calendarBaseTokens.calendarDisabledOpacity}: 1;
|
|
30
31
|
|
|
31
|
-
${calendarBaseTokens.iconButtonColor}:
|
|
32
|
-
${calendarBaseTokens.iconButtonBackgroundColor}:
|
|
33
|
-
${calendarBaseTokens.iconButtonColorHover}:
|
|
34
|
-
${calendarBaseTokens.iconButtonBackgroundColorHover}:
|
|
35
|
-
${calendarBaseTokens.iconButtonColorActive}:
|
|
36
|
-
${calendarBaseTokens.iconButtonBackgroundColorActive}:
|
|
37
|
-
${calendarBaseTokens.iconButtonFocusColor}:
|
|
32
|
+
${calendarBaseTokens.iconButtonColor}: ${textAccent};
|
|
33
|
+
${calendarBaseTokens.iconButtonBackgroundColor}: ${surfaceClear};
|
|
34
|
+
${calendarBaseTokens.iconButtonColorHover}: ${textAccentMinor};
|
|
35
|
+
${calendarBaseTokens.iconButtonBackgroundColorHover}: ${surfaceClear};
|
|
36
|
+
${calendarBaseTokens.iconButtonColorActive}: ${textAccentActive};
|
|
37
|
+
${calendarBaseTokens.iconButtonBackgroundColorActive}: ${surfaceClear};
|
|
38
|
+
${calendarBaseTokens.iconButtonFocusColor}: ${surfaceAccent};
|
|
38
39
|
`
|
|
39
40
|
},
|
|
40
41
|
size: {
|
|
@@ -45,46 +46,46 @@ export const config = {
|
|
|
45
46
|
${calendarBaseTokens.calendarYearsPadding}: 0.5rem 0.5rem 0 0.5rem;
|
|
46
47
|
${calendarBaseTokens.calendarYearItemBorderRadius}: 0.5rem;
|
|
47
48
|
|
|
48
|
-
${calendarBaseTokens.calendarYearFontFamily}:
|
|
49
|
-
${calendarBaseTokens.calendarYearFontSize}:
|
|
50
|
-
${calendarBaseTokens.calendarYearFontStyle}:
|
|
51
|
-
${calendarBaseTokens.calendarYearFontLetterSpacing}:
|
|
52
|
-
${calendarBaseTokens.calendarYearFontLineHeight}:
|
|
53
|
-
${calendarBaseTokens.calendarYearFontWeight}:
|
|
54
|
-
${calendarBaseTokens.calendarYearSelectedFontWeight}:
|
|
49
|
+
${calendarBaseTokens.calendarYearFontFamily}: ${bodyS.fontFamily};
|
|
50
|
+
${calendarBaseTokens.calendarYearFontSize}: ${bodyS.fontSize};
|
|
51
|
+
${calendarBaseTokens.calendarYearFontStyle}: ${bodyS.fontStyle};
|
|
52
|
+
${calendarBaseTokens.calendarYearFontLetterSpacing}: ${bodyS.letterSpacing};
|
|
53
|
+
${calendarBaseTokens.calendarYearFontLineHeight}: ${bodyS.lineHeight};
|
|
54
|
+
${calendarBaseTokens.calendarYearFontWeight}: ${bodyS.fontWeight};
|
|
55
|
+
${calendarBaseTokens.calendarYearSelectedFontWeight}: ${bodySBold.fontWeight};
|
|
55
56
|
|
|
56
57
|
${calendarBaseTokens.calendarQuartersPadding}: 0.5rem 0.5rem 0 0.5rem;
|
|
57
58
|
${calendarBaseTokens.calendarQuarterItemBorderRadius}: 0.5rem;
|
|
58
59
|
|
|
59
|
-
${calendarBaseTokens.calendarQuarterFontFamily}:
|
|
60
|
-
${calendarBaseTokens.calendarQuarterFontSize}:
|
|
61
|
-
${calendarBaseTokens.calendarQuarterFontStyle}:
|
|
62
|
-
${calendarBaseTokens.calendarQuarterFontLetterSpacing}:
|
|
63
|
-
${calendarBaseTokens.calendarQuarterFontLineHeight}:
|
|
64
|
-
${calendarBaseTokens.calendarQuarterFontWeight}:
|
|
65
|
-
${calendarBaseTokens.calendarQuarterSelectedFontWeight}:
|
|
60
|
+
${calendarBaseTokens.calendarQuarterFontFamily}: ${bodyS.fontFamily};
|
|
61
|
+
${calendarBaseTokens.calendarQuarterFontSize}: ${bodyS.fontSize};
|
|
62
|
+
${calendarBaseTokens.calendarQuarterFontStyle}: ${bodyS.fontStyle};
|
|
63
|
+
${calendarBaseTokens.calendarQuarterFontLetterSpacing}: ${bodyS.letterSpacing};
|
|
64
|
+
${calendarBaseTokens.calendarQuarterFontLineHeight}: ${bodyS.lineHeight};
|
|
65
|
+
${calendarBaseTokens.calendarQuarterFontWeight}: ${bodyS.fontWeight};
|
|
66
|
+
${calendarBaseTokens.calendarQuarterSelectedFontWeight}: ${bodySBold.fontWeight};
|
|
66
67
|
|
|
67
68
|
${calendarBaseTokens.calendarMonthsPadding}: 0.5rem 0.5rem 0 0.5rem;
|
|
68
69
|
${calendarBaseTokens.calendarMonthItemBorderRadius}: 0.5rem;
|
|
69
70
|
|
|
70
|
-
${calendarBaseTokens.calendarMonthFontFamily}:
|
|
71
|
-
${calendarBaseTokens.calendarMonthFontSize}:
|
|
72
|
-
${calendarBaseTokens.calendarMonthFontStyle}:
|
|
73
|
-
${calendarBaseTokens.calendarMonthFontLetterSpacing}:
|
|
74
|
-
${calendarBaseTokens.calendarMonthFontLineHeight}:
|
|
75
|
-
${calendarBaseTokens.calendarMonthFontWeight}:
|
|
76
|
-
${calendarBaseTokens.calendarMonthSelectedFontWeight}:
|
|
71
|
+
${calendarBaseTokens.calendarMonthFontFamily}: ${bodyS.fontFamily};
|
|
72
|
+
${calendarBaseTokens.calendarMonthFontSize}: ${bodyS.fontSize};
|
|
73
|
+
${calendarBaseTokens.calendarMonthFontStyle}: ${bodyS.fontStyle};
|
|
74
|
+
${calendarBaseTokens.calendarMonthFontLetterSpacing}: ${bodyS.letterSpacing};
|
|
75
|
+
${calendarBaseTokens.calendarMonthFontLineHeight}: ${bodyS.lineHeight};
|
|
76
|
+
${calendarBaseTokens.calendarMonthFontWeight}: ${bodyS.fontWeight};
|
|
77
|
+
${calendarBaseTokens.calendarMonthSelectedFontWeight}: ${bodySBold.fontWeight};
|
|
77
78
|
|
|
78
79
|
${calendarBaseTokens.calendarDaysPadding}: 0.5rem 0 0 0;
|
|
79
80
|
${calendarBaseTokens.calendarDayItemBorderRadius}: 0.5rem;
|
|
80
81
|
|
|
81
|
-
${calendarBaseTokens.calendarDayFontFamily}:
|
|
82
|
-
${calendarBaseTokens.calendarDayFontSize}:
|
|
83
|
-
${calendarBaseTokens.calendarDayFontStyle}:
|
|
84
|
-
${calendarBaseTokens.calendarDayFontLetterSpacing}:
|
|
85
|
-
${calendarBaseTokens.calendarDayFontLineHeight}:
|
|
86
|
-
${calendarBaseTokens.calendarDayFontWeight}:
|
|
87
|
-
${calendarBaseTokens.calendarDaySelectedFontWeight}:
|
|
82
|
+
${calendarBaseTokens.calendarDayFontFamily}: ${bodyS.fontFamily};
|
|
83
|
+
${calendarBaseTokens.calendarDayFontSize}: ${bodyS.fontSize};
|
|
84
|
+
${calendarBaseTokens.calendarDayFontStyle}: ${bodyS.fontStyle};
|
|
85
|
+
${calendarBaseTokens.calendarDayFontLetterSpacing}: ${bodyS.letterSpacing};
|
|
86
|
+
${calendarBaseTokens.calendarDayFontLineHeight}: ${bodyS.lineHeight};
|
|
87
|
+
${calendarBaseTokens.calendarDayFontWeight}: ${bodyS.fontWeight};
|
|
88
|
+
${calendarBaseTokens.calendarDaySelectedFontWeight}: ${bodySBold.fontWeight};
|
|
88
89
|
|
|
89
90
|
${calendarBaseTokens.calendarCurrentItemBorderWidth}: 0.125rem;
|
|
90
91
|
|
|
@@ -94,13 +95,13 @@ export const config = {
|
|
|
94
95
|
${calendarBaseTokens.calendarHeaderPadding}: 0 0 0 0.5rem;
|
|
95
96
|
${calendarBaseTokens.calendarHeaderDateGap}: 0.25rem;
|
|
96
97
|
|
|
97
|
-
${calendarBaseTokens.calendarHeaderFontFamily}:
|
|
98
|
-
${calendarBaseTokens.calendarHeaderFontSize}:
|
|
99
|
-
${calendarBaseTokens.calendarHeaderFontStyle}:
|
|
100
|
-
${calendarBaseTokens.calendarHeaderFontLetterSpacing}:
|
|
101
|
-
${calendarBaseTokens.calendarHeaderFontLineHeight}:
|
|
102
|
-
${calendarBaseTokens.calendarHeaderFontWeight}:
|
|
103
|
-
${calendarBaseTokens.calendarHeaderFontWeightBold}:
|
|
98
|
+
${calendarBaseTokens.calendarHeaderFontFamily}: ${bodyMBold.fontFamily};
|
|
99
|
+
${calendarBaseTokens.calendarHeaderFontSize}: ${bodyMBold.fontSize};
|
|
100
|
+
${calendarBaseTokens.calendarHeaderFontStyle}: ${bodyMBold.fontStyle};
|
|
101
|
+
${calendarBaseTokens.calendarHeaderFontLetterSpacing}: ${bodyMBold.letterSpacing};
|
|
102
|
+
${calendarBaseTokens.calendarHeaderFontLineHeight}: ${bodyMBold.lineHeight};
|
|
103
|
+
${calendarBaseTokens.calendarHeaderFontWeight}: ${bodyM.fontWeight};
|
|
104
|
+
${calendarBaseTokens.calendarHeaderFontWeightBold}: ${bodyMBold.fontWeight};
|
|
104
105
|
|
|
105
106
|
${calendarBaseTokens.iconButtonHeight}: 2.5rem;
|
|
106
107
|
${calendarBaseTokens.iconButtonWidth}: 2.5rem;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { bodyM, bodyMBold, bodyS, bodySBold, inverseOutlineSolidSecondary, inverseTextPrimary, surfaceAccent, surfaceClear, surfaceTransparentAccent, textAccent, textPrimary, textPrimaryHover, textSecondary } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, calendarDoubleTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -7,34 +8,34 @@ export const config = {
|
|
|
7
8
|
variations: {
|
|
8
9
|
view: {
|
|
9
10
|
default: css`
|
|
10
|
-
${calendarDoubleTokens.calendarSelectedItemBackground}:
|
|
11
|
-
${calendarDoubleTokens.calendarSelectedItemColor}:
|
|
12
|
-
${calendarDoubleTokens.calendarSelectableItemBackgroundHover}:
|
|
13
|
-
${calendarDoubleTokens.calendarCurrentItemBorderColor}:
|
|
11
|
+
${calendarDoubleTokens.calendarSelectedItemBackground}: ${surfaceAccent};
|
|
12
|
+
${calendarDoubleTokens.calendarSelectedItemColor}: ${inverseTextPrimary};
|
|
13
|
+
${calendarDoubleTokens.calendarSelectableItemBackgroundHover}: ${surfaceTransparentAccent};
|
|
14
|
+
${calendarDoubleTokens.calendarCurrentItemBorderColor}: ${inverseOutlineSolidSecondary};
|
|
14
15
|
${calendarDoubleTokens.calendarCurrentItemBackgroundHover}: transparent;
|
|
15
|
-
${calendarDoubleTokens.calendarCurrentItemColorHover}:
|
|
16
|
-
${calendarDoubleTokens.calendarCurrentItemChildBackgroundHover}:
|
|
17
|
-
${calendarDoubleTokens.calendarActiveItemBackground}:
|
|
18
|
-
${calendarDoubleTokens.calendarActiveItemColor}:
|
|
19
|
-
${calendarDoubleTokens.calendarHoveredItemBackground}:
|
|
20
|
-
${calendarDoubleTokens.calendarHoveredItemColor}:
|
|
21
|
-
${calendarDoubleTokens.calendarRangeBackground}:
|
|
22
|
-
${calendarDoubleTokens.calendarOutlineFocusColor}:
|
|
16
|
+
${calendarDoubleTokens.calendarCurrentItemColorHover}: ${textPrimary};
|
|
17
|
+
${calendarDoubleTokens.calendarCurrentItemChildBackgroundHover}: ${surfaceTransparentAccent};
|
|
18
|
+
${calendarDoubleTokens.calendarActiveItemBackground}: ${surfaceAccent};
|
|
19
|
+
${calendarDoubleTokens.calendarActiveItemColor}: ${inverseTextPrimary};
|
|
20
|
+
${calendarDoubleTokens.calendarHoveredItemBackground}: ${surfaceTransparentAccent};
|
|
21
|
+
${calendarDoubleTokens.calendarHoveredItemColor}: ${textPrimary};
|
|
22
|
+
${calendarDoubleTokens.calendarRangeBackground}: ${surfaceTransparentAccent};
|
|
23
|
+
${calendarDoubleTokens.calendarOutlineFocusColor}: ${surfaceAccent};
|
|
23
24
|
${calendarDoubleTokens.calendarContentPrimaryColor}: var(--surface-primary);
|
|
24
|
-
${calendarDoubleTokens.calendarContentPrimaryDisabledColor}:
|
|
25
|
-
${calendarDoubleTokens.calendarContentSecondaryColor}:
|
|
26
|
-
${calendarDoubleTokens.calendarContentSecondaryDisabledColor}:
|
|
27
|
-
${calendarDoubleTokens.calendarDayOfWeekColor}:
|
|
28
|
-
${calendarDoubleTokens.calendarHeaderArrowColor}:
|
|
25
|
+
${calendarDoubleTokens.calendarContentPrimaryDisabledColor}: ${textSecondary};
|
|
26
|
+
${calendarDoubleTokens.calendarContentSecondaryColor}: ${textSecondary};
|
|
27
|
+
${calendarDoubleTokens.calendarContentSecondaryDisabledColor}: ${textSecondary};
|
|
28
|
+
${calendarDoubleTokens.calendarDayOfWeekColor}: ${textSecondary};
|
|
29
|
+
${calendarDoubleTokens.calendarHeaderArrowColor}: ${textAccent};
|
|
29
30
|
${calendarDoubleTokens.calendarDisabledOpacity}: 1;
|
|
30
31
|
|
|
31
|
-
${calendarDoubleTokens.iconButtonColor}:
|
|
32
|
-
${calendarDoubleTokens.iconButtonBackgroundColor}:
|
|
33
|
-
${calendarDoubleTokens.iconButtonColorHover}:
|
|
34
|
-
${calendarDoubleTokens.iconButtonBackgroundColorHover}:
|
|
35
|
-
${calendarDoubleTokens.iconButtonColorActive}:
|
|
36
|
-
${calendarDoubleTokens.iconButtonBackgroundColorActive}:
|
|
37
|
-
${calendarDoubleTokens.iconButtonFocusColor}:
|
|
32
|
+
${calendarDoubleTokens.iconButtonColor}: ${textPrimary};
|
|
33
|
+
${calendarDoubleTokens.iconButtonBackgroundColor}: ${surfaceClear};
|
|
34
|
+
${calendarDoubleTokens.iconButtonColorHover}: ${textPrimaryHover};
|
|
35
|
+
${calendarDoubleTokens.iconButtonBackgroundColorHover}: ${surfaceClear};
|
|
36
|
+
${calendarDoubleTokens.iconButtonColorActive}: ${textPrimaryHover};
|
|
37
|
+
${calendarDoubleTokens.iconButtonBackgroundColorActive}: ${surfaceClear};
|
|
38
|
+
${calendarDoubleTokens.iconButtonFocusColor}: ${surfaceAccent};
|
|
38
39
|
`
|
|
39
40
|
},
|
|
40
41
|
size: {
|
|
@@ -45,45 +46,45 @@ export const config = {
|
|
|
45
46
|
${calendarDoubleTokens.calendarYearsPadding}: 0.5rem 0.5rem 0 0.5rem;
|
|
46
47
|
${calendarDoubleTokens.calendarYearItemBorderRadius}: 0.5rem;
|
|
47
48
|
|
|
48
|
-
${calendarDoubleTokens.calendarYearFontFamily}:
|
|
49
|
-
${calendarDoubleTokens.calendarYearFontSize}:
|
|
50
|
-
${calendarDoubleTokens.calendarYearFontStyle}:
|
|
51
|
-
${calendarDoubleTokens.calendarYearFontLetterSpacing}:
|
|
52
|
-
${calendarDoubleTokens.calendarYearFontLineHeight}:
|
|
53
|
-
${calendarDoubleTokens.calendarYearFontWeight}:
|
|
54
|
-
${calendarDoubleTokens.calendarYearSelectedFontWeight}:
|
|
49
|
+
${calendarDoubleTokens.calendarYearFontFamily}: ${bodyS.fontFamily};
|
|
50
|
+
${calendarDoubleTokens.calendarYearFontSize}: ${bodyS.fontSize};
|
|
51
|
+
${calendarDoubleTokens.calendarYearFontStyle}: ${bodyS.fontStyle};
|
|
52
|
+
${calendarDoubleTokens.calendarYearFontLetterSpacing}: ${bodyS.letterSpacing};
|
|
53
|
+
${calendarDoubleTokens.calendarYearFontLineHeight}: ${bodyS.lineHeight};
|
|
54
|
+
${calendarDoubleTokens.calendarYearFontWeight}: ${bodyS.fontWeight};
|
|
55
|
+
${calendarDoubleTokens.calendarYearSelectedFontWeight}: ${bodySBold.fontWeight};
|
|
55
56
|
|
|
56
57
|
${calendarDoubleTokens.calendarQuartersPadding}: 0.5rem 0.5rem 0 0.5rem;
|
|
57
58
|
${calendarDoubleTokens.calendarQuarterItemBorderRadius}: 0.5rem;
|
|
58
59
|
|
|
59
|
-
${calendarDoubleTokens.calendarQuarterFontFamily}:
|
|
60
|
-
${calendarDoubleTokens.calendarQuarterFontSize}:
|
|
61
|
-
${calendarDoubleTokens.calendarQuarterFontStyle}:
|
|
62
|
-
${calendarDoubleTokens.calendarQuarterFontLetterSpacing}:
|
|
63
|
-
${calendarDoubleTokens.calendarQuarterFontLineHeight}:
|
|
64
|
-
${calendarDoubleTokens.calendarQuarterFontWeight}:
|
|
65
|
-
${calendarDoubleTokens.calendarQuarterSelectedFontWeight}:
|
|
60
|
+
${calendarDoubleTokens.calendarQuarterFontFamily}: ${bodyS.fontFamily};
|
|
61
|
+
${calendarDoubleTokens.calendarQuarterFontSize}: ${bodyS.fontSize};
|
|
62
|
+
${calendarDoubleTokens.calendarQuarterFontStyle}: ${bodyS.fontStyle};
|
|
63
|
+
${calendarDoubleTokens.calendarQuarterFontLetterSpacing}: ${bodyS.letterSpacing};
|
|
64
|
+
${calendarDoubleTokens.calendarQuarterFontLineHeight}: ${bodyS.lineHeight};
|
|
65
|
+
${calendarDoubleTokens.calendarQuarterFontWeight}: ${bodyS.fontWeight};
|
|
66
|
+
${calendarDoubleTokens.calendarQuarterSelectedFontWeight}: ${bodySBold.fontWeight};
|
|
66
67
|
|
|
67
68
|
${calendarDoubleTokens.calendarMonthsPadding}: 0.5rem 0.5rem 0 0.5rem;
|
|
68
69
|
${calendarDoubleTokens.calendarMonthItemBorderRadius}: 0.5rem;
|
|
69
70
|
|
|
70
|
-
${calendarDoubleTokens.calendarMonthFontFamily}:
|
|
71
|
-
${calendarDoubleTokens.calendarMonthFontSize}:
|
|
72
|
-
${calendarDoubleTokens.calendarMonthFontStyle}:
|
|
73
|
-
${calendarDoubleTokens.calendarMonthFontLetterSpacing}:
|
|
74
|
-
${calendarDoubleTokens.calendarMonthFontLineHeight}:
|
|
75
|
-
${calendarDoubleTokens.calendarMonthFontWeight}:
|
|
76
|
-
${calendarDoubleTokens.calendarMonthSelectedFontWeight}:
|
|
71
|
+
${calendarDoubleTokens.calendarMonthFontFamily}: ${bodyS.fontFamily};
|
|
72
|
+
${calendarDoubleTokens.calendarMonthFontSize}: ${bodyS.fontSize};
|
|
73
|
+
${calendarDoubleTokens.calendarMonthFontStyle}: ${bodyS.fontStyle};
|
|
74
|
+
${calendarDoubleTokens.calendarMonthFontLetterSpacing}: ${bodyS.letterSpacing};
|
|
75
|
+
${calendarDoubleTokens.calendarMonthFontLineHeight}: ${bodyS.lineHeight};
|
|
76
|
+
${calendarDoubleTokens.calendarMonthFontWeight}: ${bodyS.fontWeight};
|
|
77
|
+
${calendarDoubleTokens.calendarMonthSelectedFontWeight}: ${bodySBold.fontWeight};
|
|
77
78
|
|
|
78
79
|
${calendarDoubleTokens.calendarDayItemBorderRadius}: 0.5rem;
|
|
79
80
|
|
|
80
|
-
${calendarDoubleTokens.calendarDayFontFamily}:
|
|
81
|
-
${calendarDoubleTokens.calendarDayFontSize}:
|
|
82
|
-
${calendarDoubleTokens.calendarDayFontStyle}:
|
|
83
|
-
${calendarDoubleTokens.calendarDayFontLetterSpacing}:
|
|
84
|
-
${calendarDoubleTokens.calendarDayFontLineHeight}:
|
|
85
|
-
${calendarDoubleTokens.calendarDayFontWeight}:
|
|
86
|
-
${calendarDoubleTokens.calendarDaySelectedFontWeight}:
|
|
81
|
+
${calendarDoubleTokens.calendarDayFontFamily}: ${bodyS.fontFamily};
|
|
82
|
+
${calendarDoubleTokens.calendarDayFontSize}: ${bodyS.fontSize};
|
|
83
|
+
${calendarDoubleTokens.calendarDayFontStyle}: ${bodyS.fontStyle};
|
|
84
|
+
${calendarDoubleTokens.calendarDayFontLetterSpacing}: ${bodyS.letterSpacing};
|
|
85
|
+
${calendarDoubleTokens.calendarDayFontLineHeight}: ${bodyS.lineHeight};
|
|
86
|
+
${calendarDoubleTokens.calendarDayFontWeight}: ${bodyS.fontWeight};
|
|
87
|
+
${calendarDoubleTokens.calendarDaySelectedFontWeight}: ${bodySBold.fontWeight};
|
|
87
88
|
|
|
88
89
|
${calendarDoubleTokens.calendarCurrentItemBorderWidth}: 0.125rem;
|
|
89
90
|
|
|
@@ -94,13 +95,13 @@ export const config = {
|
|
|
94
95
|
${calendarDoubleTokens.calendarHeaderPadding}: 0 0 0 0.5rem;
|
|
95
96
|
${calendarDoubleTokens.calendarHeaderDateGap}: 0.25rem;
|
|
96
97
|
|
|
97
|
-
${calendarDoubleTokens.calendarHeaderFontFamily}:
|
|
98
|
-
${calendarDoubleTokens.calendarHeaderFontSize}:
|
|
99
|
-
${calendarDoubleTokens.calendarHeaderFontStyle}:
|
|
100
|
-
${calendarDoubleTokens.calendarHeaderFontLetterSpacing}:
|
|
101
|
-
${calendarDoubleTokens.calendarHeaderFontLineHeight}:
|
|
102
|
-
${calendarDoubleTokens.calendarHeaderFontWeight}:
|
|
103
|
-
${calendarDoubleTokens.calendarHeaderFontWeightBold}:
|
|
98
|
+
${calendarDoubleTokens.calendarHeaderFontFamily}: ${bodyMBold.fontFamily};
|
|
99
|
+
${calendarDoubleTokens.calendarHeaderFontSize}: ${bodyMBold.fontSize};
|
|
100
|
+
${calendarDoubleTokens.calendarHeaderFontStyle}: ${bodyMBold.fontStyle};
|
|
101
|
+
${calendarDoubleTokens.calendarHeaderFontLetterSpacing}: ${bodyMBold.letterSpacing};
|
|
102
|
+
${calendarDoubleTokens.calendarHeaderFontLineHeight}: ${bodyMBold.lineHeight};
|
|
103
|
+
${calendarDoubleTokens.calendarHeaderFontWeight}: ${bodyM.fontWeight};
|
|
104
|
+
${calendarDoubleTokens.calendarHeaderFontWeightBold}: ${bodyMBold.fontWeight};
|
|
104
105
|
|
|
105
106
|
${calendarDoubleTokens.iconButtonHeight}: 2.5rem;
|
|
106
107
|
${calendarDoubleTokens.iconButtonWidth}: 2.5rem;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { surfaceSolidCard } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, cardTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -7,7 +8,7 @@ export const config = {
|
|
|
7
8
|
variations: {
|
|
8
9
|
view: {
|
|
9
10
|
default: css`
|
|
10
|
-
${tokens.solidBackground}:
|
|
11
|
+
${tokens.solidBackground}: ${surfaceSolidCard};
|
|
11
12
|
`
|
|
12
13
|
},
|
|
13
14
|
size: {
|