@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, onDarkTextPrimary, surfaceAccent, surfaceAccentActive, surfaceAccentHover, surfaceClear, surfaceSolidSecondary, surfaceSolidSecondaryActive, surfaceSolidSecondaryHover, surfaceTransparentAccent, surfaceTransparentAccentActive, textAccent, textAccentActive, textAccentMinor } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, iconButtonTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -8,29 +9,29 @@ export const config = {
|
|
|
8
9
|
variations: {
|
|
9
10
|
view: {
|
|
10
11
|
accent: css`
|
|
11
|
-
${iconButtonTokens.iconButtonColor}:
|
|
12
|
-
${iconButtonTokens.iconButtonBackgroundColor}:
|
|
12
|
+
${iconButtonTokens.iconButtonColor}: ${onDarkTextPrimary};
|
|
13
|
+
${iconButtonTokens.iconButtonBackgroundColor}: ${surfaceAccent};
|
|
13
14
|
${iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${iconButtonTokens.iconButtonBackgroundColor});
|
|
14
|
-
${iconButtonTokens.iconButtonBackgroundColorHover}:
|
|
15
|
-
${iconButtonTokens.iconButtonBackgroundColorActive}:
|
|
15
|
+
${iconButtonTokens.iconButtonBackgroundColorHover}: ${surfaceAccentHover};
|
|
16
|
+
${iconButtonTokens.iconButtonBackgroundColorActive}: ${surfaceAccentActive};
|
|
16
17
|
`,
|
|
17
18
|
secondary: css`
|
|
18
|
-
${iconButtonTokens.iconButtonColor}:
|
|
19
|
-
${iconButtonTokens.iconButtonColorHover}:
|
|
19
|
+
${iconButtonTokens.iconButtonColor}: ${textAccent};
|
|
20
|
+
${iconButtonTokens.iconButtonColorHover}: ${textAccentMinor};
|
|
20
21
|
|
|
21
|
-
${iconButtonTokens.iconButtonBackgroundColor}:
|
|
22
|
-
${iconButtonTokens.iconButtonBackgroundColorHover}:
|
|
23
|
-
${iconButtonTokens.iconButtonBackgroundColorActive}:
|
|
22
|
+
${iconButtonTokens.iconButtonBackgroundColor}: ${surfaceSolidSecondary};
|
|
23
|
+
${iconButtonTokens.iconButtonBackgroundColorHover}: ${surfaceSolidSecondaryHover};
|
|
24
|
+
${iconButtonTokens.iconButtonBackgroundColorActive}: ${surfaceSolidSecondaryActive};
|
|
24
25
|
${iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${iconButtonTokens.iconButtonBackgroundColor});
|
|
25
26
|
|
|
26
|
-
${iconButtonTokens.iconButtonColorActive}:
|
|
27
|
+
${iconButtonTokens.iconButtonColorActive}: ${textAccentActive};
|
|
27
28
|
`,
|
|
28
29
|
clear: css`
|
|
29
|
-
${iconButtonTokens.iconButtonColor}:
|
|
30
|
-
${iconButtonTokens.iconButtonBackgroundColor}:
|
|
31
|
-
${iconButtonTokens.iconButtonLoadingBackgroundColor}:
|
|
32
|
-
${iconButtonTokens.iconButtonBackgroundColorHover}:
|
|
33
|
-
${iconButtonTokens.iconButtonBackgroundColorActive}:
|
|
30
|
+
${iconButtonTokens.iconButtonColor}: ${textAccent};
|
|
31
|
+
${iconButtonTokens.iconButtonBackgroundColor}: ${surfaceClear};
|
|
32
|
+
${iconButtonTokens.iconButtonLoadingBackgroundColor}: ${surfaceTransparentAccent};
|
|
33
|
+
${iconButtonTokens.iconButtonBackgroundColorHover}: ${surfaceTransparentAccent};
|
|
34
|
+
${iconButtonTokens.iconButtonBackgroundColorActive}: ${surfaceTransparentAccentActive};
|
|
34
35
|
`
|
|
35
36
|
},
|
|
36
37
|
size: {
|
|
@@ -39,12 +40,12 @@ export const config = {
|
|
|
39
40
|
${iconButtonTokens.iconButtonWidth}: 3rem;
|
|
40
41
|
${iconButtonTokens.iconButtonPadding}: 0.75rem;
|
|
41
42
|
${iconButtonTokens.iconButtonRadius}: 0.75rem;
|
|
42
|
-
${iconButtonTokens.iconButtonFontFamily}:
|
|
43
|
-
${iconButtonTokens.iconButtonFontSize}:
|
|
44
|
-
${iconButtonTokens.iconButtonFontStyle}:
|
|
45
|
-
${iconButtonTokens.iconButtonFontWeight}:
|
|
46
|
-
${iconButtonTokens.iconButtonLetterSpacing}:
|
|
47
|
-
${iconButtonTokens.iconButtonLineHeight}:
|
|
43
|
+
${iconButtonTokens.iconButtonFontFamily}: ${bodyM.fontFamily};
|
|
44
|
+
${iconButtonTokens.iconButtonFontSize}: ${bodyM.fontSize};
|
|
45
|
+
${iconButtonTokens.iconButtonFontStyle}: ${bodyM.fontStyle};
|
|
46
|
+
${iconButtonTokens.iconButtonFontWeight}: ${bodyMBold.fontWeight};
|
|
47
|
+
${iconButtonTokens.iconButtonLetterSpacing}: ${bodyM.letterSpacing};
|
|
48
|
+
${iconButtonTokens.iconButtonLineHeight}: ${bodyM.lineHeight};
|
|
48
49
|
|
|
49
50
|
${iconButtonTokens.iconButtonSpinnerSize}: 1.375rem;
|
|
50
51
|
${iconButtonTokens.iconButtonSpinnerColor}: inherit;
|
|
@@ -54,12 +55,12 @@ export const config = {
|
|
|
54
55
|
${iconButtonTokens.iconButtonWidth}: 2.5rem;
|
|
55
56
|
${iconButtonTokens.iconButtonPadding}: 1rem;
|
|
56
57
|
${iconButtonTokens.iconButtonRadius}: 0.75rem;
|
|
57
|
-
${iconButtonTokens.iconButtonFontFamily}:
|
|
58
|
-
${iconButtonTokens.iconButtonFontSize}:
|
|
59
|
-
${iconButtonTokens.iconButtonFontStyle}:
|
|
60
|
-
${iconButtonTokens.iconButtonFontWeight}:
|
|
61
|
-
${iconButtonTokens.iconButtonLetterSpacing}:
|
|
62
|
-
${iconButtonTokens.iconButtonLineHeight}:
|
|
58
|
+
${iconButtonTokens.iconButtonFontFamily}: ${bodyS.fontFamily};
|
|
59
|
+
${iconButtonTokens.iconButtonFontSize}: ${bodyS.fontSize};
|
|
60
|
+
${iconButtonTokens.iconButtonFontStyle}: ${bodyS.fontStyle};
|
|
61
|
+
${iconButtonTokens.iconButtonFontWeight}: ${bodySBold.fontWeight};
|
|
62
|
+
${iconButtonTokens.iconButtonLetterSpacing}: ${bodyS.letterSpacing};
|
|
63
|
+
${iconButtonTokens.iconButtonLineHeight}: ${bodyS.lineHeight};
|
|
63
64
|
|
|
64
65
|
${iconButtonTokens.iconButtonSpinnerSize}: 1.375rem;
|
|
65
66
|
${iconButtonTokens.iconButtonSpinnerColor}: inherit;
|
|
@@ -72,7 +73,7 @@ export const config = {
|
|
|
72
73
|
},
|
|
73
74
|
focused: {
|
|
74
75
|
true: css`
|
|
75
|
-
${iconButtonTokens.iconButtonFocusColor}:
|
|
76
|
+
${iconButtonTokens.iconButtonFocusColor}: ${surfaceAccent};
|
|
76
77
|
`
|
|
77
78
|
}
|
|
78
79
|
}
|
|
@@ -1,7 +1,30 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import React, { useCallback, forwardRef } from 'react';
|
|
2
|
+
import { iconButtonConfig, component, mergeConfig, buttonClasses, iconButtonTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
3
|
+
import styled from '@emotion/styled';
|
|
2
4
|
import { config } from './IconButton.config';
|
|
3
5
|
const mergedConfig = mergeConfig(iconButtonConfig, config);
|
|
4
6
|
const IconButtonComponent = component(mergedConfig);
|
|
7
|
+
const { iconButtonBackgroundColorActive, iconButtonBackgroundColor, iconButtonColor, iconButtonColorActive } = iconButtonTokens;
|
|
8
|
+
// INFO: Данное поведение запрошено продуктом
|
|
9
|
+
const StyledIconButton = /*#__PURE__*/ styled(IconButtonComponent, {
|
|
10
|
+
target: "ez9pxld0",
|
|
11
|
+
label: "StyledIconButton"
|
|
12
|
+
})("&&.", String(buttonClasses.buttonLoading), "{color:var(", iconButtonColorActive, ",var(", iconButtonColor, "));background:var(", iconButtonBackgroundColorActive, ",var(", iconButtonBackgroundColor, "));pointer-events:none;}", "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3JjL2NvbXBvbmVudHMvSWNvbkJ1dHRvbi9JY29uQnV0dG9uLnRzeCIsInNvdXJjZXMiOlsic3JjL2NvbXBvbmVudHMvSWNvbkJ1dHRvbi9JY29uQnV0dG9uLnRzeCJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgQ29tcG9uZW50UHJvcHMsIHVzZUNhbGxiYWNrLCBNb3VzZUV2ZW50LCBmb3J3YXJkUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHtcbiAgICBpY29uQnV0dG9uQ29uZmlnLFxuICAgIGNvbXBvbmVudCxcbiAgICBtZXJnZUNvbmZpZyxcbiAgICBidXR0b25DbGFzc2VzLFxuICAgIGljb25CdXR0b25Ub2tlbnMsXG59IGZyb20gJ0BzYWx1dGVqcy9wbGFzbWEtbmV3LWhvcGUvZW1vdGlvbic7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IGNvbmZpZyB9IGZyb20gJy4vSWNvbkJ1dHRvbi5jb25maWcnO1xuXG5jb25zdCBtZXJnZWRDb25maWcgPSBtZXJnZUNvbmZpZyhpY29uQnV0dG9uQ29uZmlnLCBjb25maWcpO1xuY29uc3QgSWNvbkJ1dHRvbkNvbXBvbmVudCA9IGNvbXBvbmVudChtZXJnZWRDb25maWcpO1xuXG50eXBlIEljb25CdXR0b25Qcm9wcyA9IENvbXBvbmVudFByb3BzPHR5cGVvZiBJY29uQnV0dG9uQ29tcG9uZW50PjtcblxuY29uc3Qge1xuICAgIGljb25CdXR0b25CYWNrZ3JvdW5kQ29sb3JBY3RpdmUsXG4gICAgaWNvbkJ1dHRvbkJhY2tncm91bmRDb2xvcixcbiAgICBpY29uQnV0dG9uQ29sb3IsXG4gICAgaWNvbkJ1dHRvbkNvbG9yQWN0aXZlLFxufSA9IGljb25CdXR0b25Ub2tlbnM7XG5cbi8vIElORk86INCU0LDQvdC90L7QtSDQv9C+0LLQtdC00LXQvdC40LUg0LfQsNC/0YDQvtGI0LXQvdC+INC/0YDQvtC00YPQutGC0L7QvFxuY29uc3QgU3R5bGVkSWNvbkJ1dHRvbiA9IHN0eWxlZChJY29uQnV0dG9uQ29tcG9uZW50KWBcbiAgICAmJi4ke1N0cmluZyhidXR0b25DbGFzc2VzLmJ1dHRvbkxvYWRpbmcpfSB7XG4gICAgICAgIGNvbG9yOiB2YXIoJHtpY29uQnV0dG9uQ29sb3JBY3RpdmV9LCB2YXIoJHtpY29uQnV0dG9uQ29sb3J9KSk7XG4gICAgICAgIGJhY2tncm91bmQ6IHZhcigke2ljb25CdXR0b25CYWNrZ3JvdW5kQ29sb3JBY3RpdmV9LCB2YXIoJHtpY29uQnV0dG9uQmFja2dyb3VuZENvbG9yfSkpO1xuXG4gICAgICAgIHBvaW50ZXItZXZlbnRzOiBub25lO1xuICAgIH1cbmA7XG5cbi8qKlxuICog0JrQvdC+0L/QutCwINGBINC40LrQvtC90LrQvtC5LlxuICovXG5leHBvcnQgY29uc3QgSWNvbkJ1dHRvbiA9IGZvcndhcmRSZWY8SFRNTEJ1dHRvbkVsZW1lbnQsIEljb25CdXR0b25Qcm9wcz4oKHsgb25DbGljaywgaXNMb2FkaW5nLCAuLi5wcm9wcyB9LCByZWYpID0+IHtcbiAgICBjb25zdCBoYW5kbGVDbGljayA9IHVzZUNhbGxiYWNrKFxuICAgICAgICAoZXZlbnQ6IE1vdXNlRXZlbnQ8SFRNTEJ1dHRvbkVsZW1lbnQ+KSA9PiB7XG4gICAgICAgICAgICBpZiAoIWlzTG9hZGluZykge1xuICAgICAgICAgICAgICAgIG9uQ2xpY2s/LihldmVudCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIFtpc0xvYWRpbmcsIG9uQ2xpY2tdLFxuICAgICk7XG5cbiAgICByZXR1cm4gPFN0eWxlZEljb25CdXR0b24gcmVmPXtyZWZ9IG9uQ2xpY2s9e2hhbmRsZUNsaWNrfSBpc0xvYWRpbmc9e2lzTG9hZGluZ30gey4uLnByb3BzfSAvPjtcbn0pO1xuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCeUIifQ== */");
|
|
5
13
|
/**
|
|
6
14
|
* Кнопка с иконкой.
|
|
7
|
-
*/ export const IconButton =
|
|
15
|
+
*/ export const IconButton = /*#__PURE__*/ forwardRef(({ onClick, isLoading, ...props }, ref)=>{
|
|
16
|
+
const handleClick = useCallback((event)=>{
|
|
17
|
+
if (!isLoading) {
|
|
18
|
+
onClick?.(event);
|
|
19
|
+
}
|
|
20
|
+
}, [
|
|
21
|
+
isLoading,
|
|
22
|
+
onClick
|
|
23
|
+
]);
|
|
24
|
+
return /*#__PURE__*/ React.createElement(StyledIconButton, {
|
|
25
|
+
ref: ref,
|
|
26
|
+
onClick: handleClick,
|
|
27
|
+
isLoading: isLoading,
|
|
28
|
+
...props
|
|
29
|
+
});
|
|
30
|
+
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { onLightSurfaceSolidPrimary, surfaceAccent, surfaceNegative, surfacePositive, surfaceSolidDefault, surfaceWarning, textPrimary } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, indicatorTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -7,25 +8,25 @@ export const config = {
|
|
|
7
8
|
variations: {
|
|
8
9
|
view: {
|
|
9
10
|
default: css`
|
|
10
|
-
${tokens.color}:
|
|
11
|
+
${tokens.color}: ${surfaceSolidDefault};
|
|
11
12
|
`,
|
|
12
13
|
accent: css`
|
|
13
|
-
${tokens.color}:
|
|
14
|
+
${tokens.color}: ${surfaceAccent};
|
|
14
15
|
`,
|
|
15
16
|
inactive: css`
|
|
16
|
-
${tokens.color}:
|
|
17
|
+
${tokens.color}: ${onLightSurfaceSolidPrimary};
|
|
17
18
|
`,
|
|
18
19
|
positive: css`
|
|
19
|
-
${tokens.color}:
|
|
20
|
+
${tokens.color}: ${surfacePositive};
|
|
20
21
|
`,
|
|
21
22
|
negative: css`
|
|
22
|
-
${tokens.color}:
|
|
23
|
+
${tokens.color}: ${surfaceNegative};
|
|
23
24
|
`,
|
|
24
25
|
warning: css`
|
|
25
|
-
${tokens.color}:
|
|
26
|
+
${tokens.color}: ${surfaceWarning};
|
|
26
27
|
`,
|
|
27
28
|
black: css`
|
|
28
|
-
${tokens.color}:
|
|
29
|
+
${tokens.color}: ${textPrimary};
|
|
29
30
|
`
|
|
30
31
|
},
|
|
31
32
|
size: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { textAccent, textAccentActive, textAccentMinor, textM, textNegative, textNegativeActive, textNegativeHover, textPositive, textPositiveActive, textPositiveHover, textPrimary, textPrimaryActive, textPrimaryHover, textSecondary, textSecondaryActive, textSecondaryHover, textTertiary, textTertiaryActive, textTertiaryHover, textWarning, textWarningActive, textWarningHover } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, linkTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -7,40 +8,40 @@ export const config = {
|
|
|
7
8
|
variations: {
|
|
8
9
|
view: {
|
|
9
10
|
default: css`
|
|
10
|
-
${tokens.linkFontFamily}:
|
|
11
|
-
${tokens.linkColor}:
|
|
12
|
-
${tokens.linkColorHover}:
|
|
13
|
-
${tokens.linkColorActive}:
|
|
14
|
-
${tokens.linkColorVisited}:
|
|
15
|
-
${tokens.linkColorVisitedHover}:
|
|
16
|
-
${tokens.linkColorVisitedActive}:
|
|
11
|
+
${tokens.linkFontFamily}: ${textM.fontFamily};
|
|
12
|
+
${tokens.linkColor}: ${textPrimary};
|
|
13
|
+
${tokens.linkColorHover}: ${textPrimaryHover};
|
|
14
|
+
${tokens.linkColorActive}: ${textPrimaryActive};
|
|
15
|
+
${tokens.linkColorVisited}: ${textPrimary};
|
|
16
|
+
${tokens.linkColorVisitedHover}: ${textPrimaryHover};
|
|
17
|
+
${tokens.linkColorVisitedActive}: ${textPrimaryActive};
|
|
17
18
|
${tokens.linkUnderlineBorder}: 0.063rem;
|
|
18
19
|
${tokens.linkUnderlineOffset}: 0.25rem;
|
|
19
20
|
`,
|
|
20
21
|
secondary: css`
|
|
21
|
-
${tokens.linkFontFamily}:
|
|
22
|
-
${tokens.linkColor}:
|
|
23
|
-
${tokens.linkColorHover}:
|
|
24
|
-
${tokens.linkColorActive}:
|
|
25
|
-
${tokens.linkColorVisited}:
|
|
26
|
-
${tokens.linkColorVisitedHover}:
|
|
27
|
-
${tokens.linkColorVisitedActive}:
|
|
22
|
+
${tokens.linkFontFamily}: ${textM.fontFamily};
|
|
23
|
+
${tokens.linkColor}: ${textSecondary};
|
|
24
|
+
${tokens.linkColorHover}: ${textSecondaryHover};
|
|
25
|
+
${tokens.linkColorActive}: ${textSecondaryActive};
|
|
26
|
+
${tokens.linkColorVisited}: ${textSecondary};
|
|
27
|
+
${tokens.linkColorVisitedHover}: ${textSecondaryHover};
|
|
28
|
+
${tokens.linkColorVisitedActive}: ${textSecondaryActive};
|
|
28
29
|
${tokens.linkUnderlineBorder}: 0.063rem;
|
|
29
30
|
${tokens.linkUnderlineOffset}: 0.25rem;
|
|
30
31
|
`,
|
|
31
32
|
tertiary: css`
|
|
32
|
-
${tokens.linkFontFamily}:
|
|
33
|
-
${tokens.linkColor}:
|
|
34
|
-
${tokens.linkColorHover}:
|
|
35
|
-
${tokens.linkColorActive}:
|
|
36
|
-
${tokens.linkColorVisited}:
|
|
37
|
-
${tokens.linkColorVisitedHover}:
|
|
38
|
-
${tokens.linkColorVisitedActive}:
|
|
33
|
+
${tokens.linkFontFamily}: ${textM.fontFamily};
|
|
34
|
+
${tokens.linkColor}: ${textTertiary};
|
|
35
|
+
${tokens.linkColorHover}: ${textTertiaryHover};
|
|
36
|
+
${tokens.linkColorActive}: ${textTertiaryActive};
|
|
37
|
+
${tokens.linkColorVisited}: ${textTertiary};
|
|
38
|
+
${tokens.linkColorVisitedHover}: ${textTertiaryHover};
|
|
39
|
+
${tokens.linkColorVisitedActive}: ${textTertiaryActive};
|
|
39
40
|
${tokens.linkUnderlineBorder}: 0.063rem;
|
|
40
41
|
${tokens.linkUnderlineOffset}: 0.25rem;
|
|
41
42
|
`,
|
|
42
43
|
paragraph: css`
|
|
43
|
-
${tokens.linkFontFamily}:
|
|
44
|
+
${tokens.linkFontFamily}: ${textM.fontFamily};
|
|
44
45
|
${tokens.linkColor}: var(--text-paragraph);
|
|
45
46
|
${tokens.linkColorHover}: var(--text-paragraph-hover);
|
|
46
47
|
${tokens.linkColorActive}: var(--text-paragraph-active);
|
|
@@ -51,51 +52,51 @@ export const config = {
|
|
|
51
52
|
${tokens.linkUnderlineOffset}: 0.25rem;
|
|
52
53
|
`,
|
|
53
54
|
accent: css`
|
|
54
|
-
${tokens.linkFontFamily}:
|
|
55
|
-
${tokens.linkColor}:
|
|
56
|
-
${tokens.linkColorHover}:
|
|
57
|
-
${tokens.linkColorActive}:
|
|
58
|
-
${tokens.linkColorVisited}:
|
|
59
|
-
${tokens.linkColorVisitedHover}:
|
|
60
|
-
${tokens.linkColorVisitedActive}:
|
|
55
|
+
${tokens.linkFontFamily}: ${textM.fontFamily};
|
|
56
|
+
${tokens.linkColor}: ${textAccent};
|
|
57
|
+
${tokens.linkColorHover}: ${textAccentMinor};
|
|
58
|
+
${tokens.linkColorActive}: ${textAccentActive};
|
|
59
|
+
${tokens.linkColorVisited}: ${textAccent};
|
|
60
|
+
${tokens.linkColorVisitedHover}: ${textAccentMinor};
|
|
61
|
+
${tokens.linkColorVisitedActive}: ${textAccentActive};
|
|
61
62
|
${tokens.linkUnderlineBorder}: 0.063rem;
|
|
62
63
|
${tokens.linkUnderlineOffset}: 0.25rem;
|
|
63
64
|
`,
|
|
64
65
|
positive: css`
|
|
65
|
-
${tokens.linkFontFamily}:
|
|
66
|
-
${tokens.linkColor}:
|
|
67
|
-
${tokens.linkColorHover}:
|
|
68
|
-
${tokens.linkColorActive}:
|
|
69
|
-
${tokens.linkColorVisited}:
|
|
70
|
-
${tokens.linkColorVisitedHover}:
|
|
71
|
-
${tokens.linkColorVisitedActive}:
|
|
66
|
+
${tokens.linkFontFamily}: ${textM.fontFamily};
|
|
67
|
+
${tokens.linkColor}: ${textPositive};
|
|
68
|
+
${tokens.linkColorHover}: ${textPositiveHover};
|
|
69
|
+
${tokens.linkColorActive}: ${textPositiveActive};
|
|
70
|
+
${tokens.linkColorVisited}: ${textPositive};
|
|
71
|
+
${tokens.linkColorVisitedHover}: ${textPositiveHover};
|
|
72
|
+
${tokens.linkColorVisitedActive}: ${textPositiveActive};
|
|
72
73
|
${tokens.linkUnderlineBorder}: 0.063rem;
|
|
73
74
|
${tokens.linkUnderlineOffset}: 0.25rem;
|
|
74
75
|
`,
|
|
75
76
|
warning: css`
|
|
76
|
-
${tokens.linkFontFamily}:
|
|
77
|
-
${tokens.linkColor}:
|
|
78
|
-
${tokens.linkColorHover}:
|
|
79
|
-
${tokens.linkColorActive}:
|
|
80
|
-
${tokens.linkColorVisited}:
|
|
81
|
-
${tokens.linkColorVisitedHover}:
|
|
82
|
-
${tokens.linkColorVisitedActive}:
|
|
77
|
+
${tokens.linkFontFamily}: ${textM.fontFamily};
|
|
78
|
+
${tokens.linkColor}: ${textWarning};
|
|
79
|
+
${tokens.linkColorHover}: ${textWarningHover};
|
|
80
|
+
${tokens.linkColorActive}: ${textWarningActive};
|
|
81
|
+
${tokens.linkColorVisited}: ${textWarning};
|
|
82
|
+
${tokens.linkColorVisitedHover}: ${textWarningHover};
|
|
83
|
+
${tokens.linkColorVisitedActive}: ${textWarningActive};
|
|
83
84
|
${tokens.linkUnderlineBorder}: 0.063rem;
|
|
84
85
|
${tokens.linkUnderlineOffset}: 0.25rem;
|
|
85
86
|
`,
|
|
86
87
|
negative: css`
|
|
87
|
-
${tokens.linkFontFamily}:
|
|
88
|
-
${tokens.linkColor}:
|
|
89
|
-
${tokens.linkColorHover}:
|
|
90
|
-
${tokens.linkColorActive}:
|
|
91
|
-
${tokens.linkColorVisited}:
|
|
92
|
-
${tokens.linkColorVisitedHover}:
|
|
93
|
-
${tokens.linkColorVisitedActive}:
|
|
88
|
+
${tokens.linkFontFamily}: ${textM.fontFamily};
|
|
89
|
+
${tokens.linkColor}: ${textNegative};
|
|
90
|
+
${tokens.linkColorHover}: ${textNegativeHover};
|
|
91
|
+
${tokens.linkColorActive}: ${textNegativeActive};
|
|
92
|
+
${tokens.linkColorVisited}: ${textNegative};
|
|
93
|
+
${tokens.linkColorVisitedHover}: ${textNegativeHover};
|
|
94
|
+
${tokens.linkColorVisitedActive}: ${textNegativeActive};
|
|
94
95
|
${tokens.linkUnderlineBorder}: 0.063rem;
|
|
95
96
|
${tokens.linkUnderlineOffset}: 0.25rem;
|
|
96
97
|
`,
|
|
97
98
|
clear: css`
|
|
98
|
-
${tokens.linkFontFamily}:
|
|
99
|
+
${tokens.linkFontFamily}: ${textM.fontFamily};
|
|
99
100
|
${tokens.linkColor}:inherit;
|
|
100
101
|
${tokens.linkColorHover}: inherit;
|
|
101
102
|
${tokens.linkColorActive}: inherit;
|
|
@@ -113,7 +114,7 @@ export const config = {
|
|
|
113
114
|
},
|
|
114
115
|
focused: {
|
|
115
116
|
true: css`
|
|
116
|
-
${tokens.linkColorFocus}:
|
|
117
|
+
${tokens.linkColorFocus}: ${textPrimary};
|
|
117
118
|
`
|
|
118
119
|
}
|
|
119
120
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { surfaceAccent, surfaceSolidCard, textAccent, textAccentActive, textAccentMinor } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, modalTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -8,15 +9,15 @@ export const config = {
|
|
|
8
9
|
default: css`
|
|
9
10
|
${modalTokens.modalOverlayWithBlurColor}: rgba(35, 35, 35, 0.2);
|
|
10
11
|
${modalTokens.modalOverlayColor}: var(--overlay-soft);
|
|
11
|
-
${modalTokens.modalBodyBackground}:
|
|
12
|
+
${modalTokens.modalBodyBackground}: ${surfaceSolidCard};
|
|
12
13
|
${modalTokens.modalBodyBorderRadius}: 1.25rem;
|
|
13
14
|
${modalTokens.modalBodyPadding}: 2rem;
|
|
14
15
|
${modalTokens.modalContentPadding}: 0.625rem;
|
|
15
16
|
${modalTokens.modalCloseButtonRadius}: 0.375rem;
|
|
16
|
-
${modalTokens.modalCloseButtonColor}:
|
|
17
|
-
${modalTokens.modalCloseButtonHoverColor}:
|
|
18
|
-
${modalTokens.modalCloseButtonActiveColor}:
|
|
19
|
-
${modalTokens.modalOutlineFocusColor}:
|
|
17
|
+
${modalTokens.modalCloseButtonColor}: ${textAccent};
|
|
18
|
+
${modalTokens.modalCloseButtonHoverColor}: ${textAccentMinor};
|
|
19
|
+
${modalTokens.modalCloseButtonActiveColor}: ${textAccentActive};
|
|
20
|
+
${modalTokens.modalOutlineFocusColor}: ${surfaceAccent};
|
|
20
21
|
`
|
|
21
22
|
}
|
|
22
23
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { bodyM, bodyMBold, bodyS, outlineSolidPrimary, surfaceSolidCard, textAccent, textAccentMinor, textPrimary, textSecondary } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, notificationTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -7,13 +8,13 @@ export const config = {
|
|
|
7
8
|
variations: {
|
|
8
9
|
view: {
|
|
9
10
|
default: css`
|
|
10
|
-
${notificationTokens.titleColor}:
|
|
11
|
-
${notificationTokens.contentLeftIconColor}:
|
|
12
|
-
${notificationTokens.contentColor}:
|
|
13
|
-
${notificationTokens.background}:
|
|
11
|
+
${notificationTokens.titleColor}: ${textPrimary};
|
|
12
|
+
${notificationTokens.contentLeftIconColor}: ${textPrimary};
|
|
13
|
+
${notificationTokens.contentColor}: ${textSecondary};
|
|
14
|
+
${notificationTokens.background}: ${surfaceSolidCard};
|
|
14
15
|
${notificationTokens.borderRadius}: 0.75rem;
|
|
15
16
|
${notificationTokens.padding}: 0.75rem;
|
|
16
|
-
${notificationTokens.borderColor}:
|
|
17
|
+
${notificationTokens.borderColor}: ${outlineSolidPrimary};
|
|
17
18
|
|
|
18
19
|
${notificationTokens.contentPaddingTop}: 0.125rem;
|
|
19
20
|
${notificationTokens.contentPaddingRight}: 0.25rem;
|
|
@@ -40,22 +41,22 @@ export const config = {
|
|
|
40
41
|
${notificationTokens.contentLeftIconMargin}: 0.25rem;
|
|
41
42
|
${notificationTokens.contentTopIconMargin}: 0.25rem;
|
|
42
43
|
|
|
43
|
-
${notificationTokens.contentFontFamily}:
|
|
44
|
-
${notificationTokens.contentFontSize}:
|
|
45
|
-
${notificationTokens.contentFontStyle}:
|
|
46
|
-
${notificationTokens.contentFontWeight}:
|
|
47
|
-
${notificationTokens.contentFontLetterSpacing}:
|
|
48
|
-
${notificationTokens.contentFontLineHeight}:
|
|
49
|
-
|
|
50
|
-
${notificationTokens.titleFontFamily}:
|
|
51
|
-
${notificationTokens.titleFontSize}:
|
|
52
|
-
${notificationTokens.titleFontStyle}:
|
|
53
|
-
${notificationTokens.titleFontWeight}:
|
|
54
|
-
${notificationTokens.titleFontLetterSpacing}:
|
|
55
|
-
${notificationTokens.titleFontLineHeight}:
|
|
56
|
-
|
|
57
|
-
${notificationTokens.closeIconColor}:
|
|
58
|
-
${notificationTokens.closeIconColorOnHover}
|
|
44
|
+
${notificationTokens.contentFontFamily}: ${bodyS.fontFamily};
|
|
45
|
+
${notificationTokens.contentFontSize}: ${bodyS.fontSize};
|
|
46
|
+
${notificationTokens.contentFontStyle}: ${bodyS.fontStyle};
|
|
47
|
+
${notificationTokens.contentFontWeight}: ${bodyS.fontWeight};
|
|
48
|
+
${notificationTokens.contentFontLetterSpacing}: ${bodyS.letterSpacing};
|
|
49
|
+
${notificationTokens.contentFontLineHeight}: ${bodyS.lineHeight};
|
|
50
|
+
|
|
51
|
+
${notificationTokens.titleFontFamily}: ${bodyM.fontFamily};
|
|
52
|
+
${notificationTokens.titleFontSize}: ${bodyM.fontSize};
|
|
53
|
+
${notificationTokens.titleFontStyle}: ${bodyM.fontStyle};
|
|
54
|
+
${notificationTokens.titleFontWeight}: ${bodyMBold.fontWeight};
|
|
55
|
+
${notificationTokens.titleFontLetterSpacing}: ${bodyM.letterSpacing};
|
|
56
|
+
${notificationTokens.titleFontLineHeight}: ${bodyM.lineHeight};
|
|
57
|
+
|
|
58
|
+
${notificationTokens.closeIconColor}: ${textAccent};
|
|
59
|
+
${notificationTokens.closeIconColorOnHover}:${textAccentMinor};
|
|
59
60
|
|
|
60
61
|
${notificationTokens.horizontalLayoutGap}: 0.5rem;
|
|
61
62
|
${notificationTokens.horizontalLayoutLeftIconMargin}: 0.75rem;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { bodyM, bodyS, bodySBold, outlineAccent, outlineSolidPrimary, surfaceSolidCard, textAccent, textAccentActive, textAccentMinor, textNegative, textPrimary, textTertiary } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, numberInputTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -10,19 +11,19 @@ export const config = {
|
|
|
10
11
|
variations: {
|
|
11
12
|
view: {
|
|
12
13
|
default: css`
|
|
13
|
-
${tokens.caretColor}:
|
|
14
|
-
${tokens.errorColor}:
|
|
14
|
+
${tokens.caretColor}: ${textAccent};
|
|
15
|
+
${tokens.errorColor}: ${textNegative};
|
|
15
16
|
|
|
16
|
-
${tokens.colorSolid}:
|
|
17
|
-
${tokens.additionalTextColorSolid}:
|
|
18
|
-
${tokens.backgroundColorSolid}:
|
|
19
|
-
${tokens.wrapperBorderColor}:
|
|
20
|
-
${tokens.wrapperBorderColorFocus}:
|
|
17
|
+
${tokens.colorSolid}: ${textPrimary};
|
|
18
|
+
${tokens.additionalTextColorSolid}: ${textTertiary};
|
|
19
|
+
${tokens.backgroundColorSolid}: ${surfaceSolidCard};
|
|
20
|
+
${tokens.wrapperBorderColor}: ${outlineSolidPrimary};
|
|
21
|
+
${tokens.wrapperBorderColorFocus}: ${outlineAccent};
|
|
21
22
|
|
|
22
|
-
${tokens.iconButtonColor}:
|
|
23
|
-
${tokens.iconButtonBackgroundColor}:
|
|
24
|
-
${tokens.iconButtonColorSolidHover}:
|
|
25
|
-
${tokens.iconButtonColorSolidActive}:
|
|
23
|
+
${tokens.iconButtonColor}: ${textAccent};
|
|
24
|
+
${tokens.iconButtonBackgroundColor}: ${surfaceSolidCard};
|
|
25
|
+
${tokens.iconButtonColorSolidHover}: ${textAccentMinor};
|
|
26
|
+
${tokens.iconButtonColorSolidActive}: ${textAccentActive};
|
|
26
27
|
|
|
27
28
|
${tokens.actionButtonDisabledOpacity}: 0;
|
|
28
29
|
${tokens.actionButtonDisabledCursor}: default;
|
|
@@ -37,12 +38,12 @@ export const config = {
|
|
|
37
38
|
${tokens.iconButtonHeight}: 2.5rem;
|
|
38
39
|
${tokens.iconButtonWidth}: 2.5rem;
|
|
39
40
|
${tokens.iconButtonPadding}: 0.5rem;
|
|
40
|
-
${tokens.iconButtonFontFamily}:
|
|
41
|
-
${tokens.iconButtonFontSize}:
|
|
42
|
-
${tokens.iconButtonFontStyle}:
|
|
43
|
-
${tokens.iconButtonFontWeight}:
|
|
44
|
-
${tokens.iconButtonLetterSpacing}:
|
|
45
|
-
${tokens.iconButtonLineHeight}:
|
|
41
|
+
${tokens.iconButtonFontFamily}: ${bodyS.fontFamily};
|
|
42
|
+
${tokens.iconButtonFontSize}: ${bodyS.fontSize};
|
|
43
|
+
${tokens.iconButtonFontStyle}: ${bodyS.fontStyle};
|
|
44
|
+
${tokens.iconButtonFontWeight}: ${bodySBold.fontWeight};
|
|
45
|
+
${tokens.iconButtonLetterSpacing}: ${bodyS.letterSpacing};
|
|
46
|
+
${tokens.iconButtonLineHeight}: ${bodyS.lineHeight};
|
|
46
47
|
|
|
47
48
|
${tokens.iconButtonRadius}: 0.75rem;
|
|
48
49
|
${tokens.iconButtonSegmentationRadius}: 0.25rem;
|
|
@@ -53,19 +54,19 @@ export const config = {
|
|
|
53
54
|
${tokens.textWrapperPadding}: 0.5rem 0.375rem;
|
|
54
55
|
${tokens.rootBorderWidth}: 0.125rem;
|
|
55
56
|
|
|
56
|
-
${tokens.fontFamily}:
|
|
57
|
-
${tokens.fontSize}:
|
|
58
|
-
${tokens.fontStyle}:
|
|
59
|
-
${tokens.fontWeight}:
|
|
60
|
-
${tokens.letterSpacing}:
|
|
61
|
-
${tokens.lineHeight}:
|
|
57
|
+
${tokens.fontFamily}: ${bodyM.fontFamily};
|
|
58
|
+
${tokens.fontSize}: ${bodyM.fontSize};
|
|
59
|
+
${tokens.fontStyle}: ${bodyM.fontStyle};
|
|
60
|
+
${tokens.fontWeight}: ${bodyM.fontWeight};
|
|
61
|
+
${tokens.letterSpacing}: ${bodyM.letterSpacing};
|
|
62
|
+
${tokens.lineHeight}: ${bodyM.lineHeight};
|
|
62
63
|
|
|
63
|
-
${tokens.additionalTextFontFamily}:
|
|
64
|
-
${tokens.additionalTextFontSize}:
|
|
65
|
-
${tokens.additionalTextFontStyle}:
|
|
66
|
-
${tokens.additionalTextFontWeight}:
|
|
67
|
-
${tokens.additionalTextLetterSpacing}:
|
|
68
|
-
${tokens.additionalTextLineHeight}:
|
|
64
|
+
${tokens.additionalTextFontFamily}: ${bodyS.fontFamily};
|
|
65
|
+
${tokens.additionalTextFontSize}: ${bodyS.fontSize};
|
|
66
|
+
${tokens.additionalTextFontStyle}: ${bodyS.fontStyle};
|
|
67
|
+
${tokens.additionalTextFontWeight}: ${bodyS.fontWeight};
|
|
68
|
+
${tokens.additionalTextLetterSpacing}: ${bodyS.letterSpacing};
|
|
69
|
+
${tokens.additionalTextLineHeight}: ${bodyS.lineHeight};
|
|
69
70
|
|
|
70
71
|
${tokens.textBeforeMarginRight}: 0.25rem;
|
|
71
72
|
${tokens.textAfterMarginLeft}: 0.25rem;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { bodyM, outlineSolidPrimary, surfaceAccent, surfaceClear, surfaceSolidCard, surfaceSolidPrimary, textAccent, textAccentActive, textAccentMinor, textPrimary, textSecondary } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, paginationTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -8,47 +9,47 @@ export const config = {
|
|
|
8
9
|
variations: {
|
|
9
10
|
view: {
|
|
10
11
|
default: css`
|
|
11
|
-
${paginationTokens.buttonColor}:
|
|
12
|
-
${paginationTokens.buttonColorHover}:
|
|
13
|
-
${paginationTokens.buttonColorActive}:
|
|
14
|
-
${paginationTokens.buttonBackgroundColor}:
|
|
15
|
-
${paginationTokens.buttonBackgroundColorHover}:
|
|
16
|
-
${paginationTokens.buttonBackgroundColorActive}:
|
|
17
|
-
${paginationTokens.buttonHoverColor}:
|
|
18
|
-
${paginationTokens.buttonActiveColor}:
|
|
19
|
-
${paginationTokens.buttonArrowColor}:
|
|
20
|
-
${paginationTokens.buttonArrowColorHover}:
|
|
21
|
-
${paginationTokens.buttonArrowColorActive}:
|
|
12
|
+
${paginationTokens.buttonColor}: ${textAccent};
|
|
13
|
+
${paginationTokens.buttonColorHover}: ${textAccentMinor};
|
|
14
|
+
${paginationTokens.buttonColorActive}: ${textAccentActive};
|
|
15
|
+
${paginationTokens.buttonBackgroundColor}: ${surfaceClear};
|
|
16
|
+
${paginationTokens.buttonBackgroundColorHover}: ${surfaceClear};
|
|
17
|
+
${paginationTokens.buttonBackgroundColorActive}: ${surfaceClear};
|
|
18
|
+
${paginationTokens.buttonHoverColor}: ${textAccentMinor};
|
|
19
|
+
${paginationTokens.buttonActiveColor}: ${textAccentActive};
|
|
20
|
+
${paginationTokens.buttonArrowColor}: ${textAccent};
|
|
21
|
+
${paginationTokens.buttonArrowColorHover}: ${textAccentMinor};
|
|
22
|
+
${paginationTokens.buttonArrowColorActive}: ${textAccentActive};
|
|
22
23
|
|
|
23
|
-
${paginationTokens.inputBackgroundColor}:
|
|
24
|
-
${paginationTokens.selectBackgroundColor}:
|
|
25
|
-
${paginationTokens.inputBorderColor}:
|
|
24
|
+
${paginationTokens.inputBackgroundColor}: ${surfaceSolidCard};
|
|
25
|
+
${paginationTokens.selectBackgroundColor}: ${surfaceSolidCard};
|
|
26
|
+
${paginationTokens.inputBorderColor}: ${outlineSolidPrimary};
|
|
26
27
|
|
|
27
|
-
${paginationTokens.paginationColor}:
|
|
28
|
-
${paginationTokens.paginationHelperTextColor}:
|
|
29
|
-
${paginationTokens.buttonFocusColor}:
|
|
30
|
-
${paginationTokens.paginationDisabledButtonColor}:
|
|
31
|
-
${paginationTokens.paginationDisabledButtonBackgroundColor}:
|
|
28
|
+
${paginationTokens.paginationColor}: ${textPrimary};
|
|
29
|
+
${paginationTokens.paginationHelperTextColor}: ${textSecondary};
|
|
30
|
+
${paginationTokens.buttonFocusColor}: ${surfaceAccent};
|
|
31
|
+
${paginationTokens.paginationDisabledButtonColor}: ${textSecondary};
|
|
32
|
+
${paginationTokens.paginationDisabledButtonBackgroundColor}: ${surfaceClear};
|
|
32
33
|
`
|
|
33
34
|
},
|
|
34
35
|
viewCurrentPage: {
|
|
35
36
|
default: css`
|
|
36
|
-
${paginationTokens.paginationCurrentButtonColor}:
|
|
37
|
-
${paginationTokens.paginationCurrentButtonBackgroundColor}:
|
|
38
|
-
${paginationTokens.paginationCurrentButtonHoverColor}:
|
|
39
|
-
${paginationTokens.paginationCurrentButtonHoverBackgroundColor}:
|
|
40
|
-
${paginationTokens.paginationCurrentButtonActiveColor}:
|
|
41
|
-
${paginationTokens.paginationCurrentButtonActiveBackgroundColor}:
|
|
37
|
+
${paginationTokens.paginationCurrentButtonColor}: ${textPrimary};
|
|
38
|
+
${paginationTokens.paginationCurrentButtonBackgroundColor}: ${surfaceSolidPrimary};
|
|
39
|
+
${paginationTokens.paginationCurrentButtonHoverColor}: ${textPrimary};
|
|
40
|
+
${paginationTokens.paginationCurrentButtonHoverBackgroundColor}: ${surfaceSolidPrimary};
|
|
41
|
+
${paginationTokens.paginationCurrentButtonActiveColor}: ${textPrimary};
|
|
42
|
+
${paginationTokens.paginationCurrentButtonActiveBackgroundColor}: ${surfaceSolidPrimary};
|
|
42
43
|
`
|
|
43
44
|
},
|
|
44
45
|
size: {
|
|
45
46
|
s: css`
|
|
46
|
-
${paginationTokens.paginationFontFamily}:
|
|
47
|
-
${paginationTokens.paginationFontSize}:
|
|
48
|
-
${paginationTokens.paginationFontStyle}:
|
|
49
|
-
${paginationTokens.paginationFontWeight}:
|
|
50
|
-
${paginationTokens.paginationLetterSpacing}:
|
|
51
|
-
${paginationTokens.paginationLineHeight}:
|
|
47
|
+
${paginationTokens.paginationFontFamily}: ${bodyM.fontFamily};
|
|
48
|
+
${paginationTokens.paginationFontSize}: ${bodyM.fontSize};
|
|
49
|
+
${paginationTokens.paginationFontStyle}: ${bodyM.fontStyle};
|
|
50
|
+
${paginationTokens.paginationFontWeight}: ${bodyM.fontWeight};
|
|
51
|
+
${paginationTokens.paginationLetterSpacing}: ${bodyM.letterSpacing};
|
|
52
|
+
${paginationTokens.paginationLineHeight}: ${bodyM.lineHeight};
|
|
52
53
|
|
|
53
54
|
${paginationTokens.buttonHeight}: 2.5rem;
|
|
54
55
|
${paginationTokens.buttonWidth}: 2.5rem;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { shadowDownHardM, surfaceSolidCard } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, popoverTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -6,14 +7,14 @@ export const config = {
|
|
|
6
7
|
variations: {
|
|
7
8
|
view: {
|
|
8
9
|
default: css`
|
|
9
|
-
${popoverTokens.boxShadow}:
|
|
10
|
+
${popoverTokens.boxShadow}: ${shadowDownHardM};
|
|
10
11
|
|
|
11
12
|
${popoverTokens.arrowMaskWidth}: 1rem;
|
|
12
13
|
${popoverTokens.arrowMaskHeight}: 1rem;
|
|
13
14
|
${popoverTokens.arrowMaskImage}: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggY2xpcC1ydWxlPSJldmVub2RkIiBkPSJtMCw5Ljg1bDE2LDBjLTQuNDEsMCAtOCwyLjY5IC04LDZjMCwtMy4zMSAtMy41OSwtNiAtOCwtNnoiIGZpbGw9IiMxNzE3MTciIGZpbGwtcnVsZT0iZXZlbm9kZCIgaWQ9IlRhaWwiLz4KPC9zdmc+");
|
|
14
15
|
${popoverTokens.arrowHeight}: 0.375rem;
|
|
15
16
|
${popoverTokens.arrowEdgeMargin}: 0.5625rem;
|
|
16
|
-
${popoverTokens.arrowBackground}:
|
|
17
|
+
${popoverTokens.arrowBackground}: ${surfaceSolidCard};
|
|
17
18
|
`
|
|
18
19
|
}
|
|
19
20
|
}
|