@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
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "config", {
|
|
|
8
8
|
return config;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
+
const _sdds_cs = require("@salutejs/sdds-themes/tokens/sdds_cs");
|
|
11
12
|
const _emotion = require("@salutejs/plasma-new-hope/emotion");
|
|
12
13
|
const config = {
|
|
13
14
|
defaults: {
|
|
@@ -17,18 +18,18 @@ const config = {
|
|
|
17
18
|
variations: {
|
|
18
19
|
view: {
|
|
19
20
|
default: (0, _emotion.css)`
|
|
20
|
-
${_emotion._beta_popoverTokens.backgroundColor}:
|
|
21
|
-
${_emotion._beta_popoverTokens.boxShadow}:
|
|
22
|
-
${_emotion._beta_popoverTokens.iconColor}:
|
|
23
|
-
${_emotion._beta_popoverTokens.iconColorHover}:
|
|
24
|
-
${_emotion._beta_popoverTokens.iconColorActive}:
|
|
21
|
+
${_emotion._beta_popoverTokens.backgroundColor}: ${_sdds_cs.surfaceSolidCard};
|
|
22
|
+
${_emotion._beta_popoverTokens.boxShadow}: ${_sdds_cs.shadowDownHardM};
|
|
23
|
+
${_emotion._beta_popoverTokens.iconColor}: ${_sdds_cs.textSecondary};
|
|
24
|
+
${_emotion._beta_popoverTokens.iconColorHover}: ${_sdds_cs.textSecondaryHover};
|
|
25
|
+
${_emotion._beta_popoverTokens.iconColorActive}: ${_sdds_cs.textSecondaryActive};
|
|
25
26
|
`,
|
|
26
27
|
info: (0, _emotion.css)`
|
|
27
|
-
${_emotion._beta_popoverTokens.backgroundColor}:
|
|
28
|
-
${_emotion._beta_popoverTokens.boxShadow}:
|
|
29
|
-
${_emotion._beta_popoverTokens.iconColor}:
|
|
30
|
-
${_emotion._beta_popoverTokens.iconColorHover}:
|
|
31
|
-
${_emotion._beta_popoverTokens.iconColorActive}:
|
|
28
|
+
${_emotion._beta_popoverTokens.backgroundColor}: ${_sdds_cs.surfaceAccent};
|
|
29
|
+
${_emotion._beta_popoverTokens.boxShadow}: ${_sdds_cs.shadowDownHardM};
|
|
30
|
+
${_emotion._beta_popoverTokens.iconColor}: ${_sdds_cs.onDarkTextSecondary};
|
|
31
|
+
${_emotion._beta_popoverTokens.iconColorHover}: ${_sdds_cs.onDarkTextSecondaryHover};
|
|
32
|
+
${_emotion._beta_popoverTokens.iconColorActive}: ${_sdds_cs.onDarkTextSecondaryActive};
|
|
32
33
|
`
|
|
33
34
|
},
|
|
34
35
|
size: {
|
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "config", {
|
|
|
8
8
|
return config;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
+
const _sdds_cs = require("@salutejs/sdds-themes/tokens/sdds_cs");
|
|
11
12
|
const _emotion = require("@salutejs/plasma-new-hope/emotion");
|
|
12
13
|
const config = {
|
|
13
14
|
defaults: {
|
|
@@ -17,12 +18,12 @@ const config = {
|
|
|
17
18
|
variations: {
|
|
18
19
|
view: {
|
|
19
20
|
default: (0, _emotion.css)`
|
|
20
|
-
${_emotion._beta_popoverTokens.backgroundColor}:
|
|
21
|
-
${_emotion._beta_popoverTokens.boxShadow}:
|
|
21
|
+
${_emotion._beta_popoverTokens.backgroundColor}: ${_sdds_cs.surfaceSolidCard};
|
|
22
|
+
${_emotion._beta_popoverTokens.boxShadow}: ${_sdds_cs.shadowDownHardM};
|
|
22
23
|
`,
|
|
23
24
|
info: (0, _emotion.css)`
|
|
24
|
-
${_emotion._beta_popoverTokens.backgroundColor}:
|
|
25
|
-
${_emotion._beta_popoverTokens.boxShadow}:
|
|
25
|
+
${_emotion._beta_popoverTokens.backgroundColor}: ${_sdds_cs.surfaceAccent};
|
|
26
|
+
${_emotion._beta_popoverTokens.boxShadow}: ${_sdds_cs.shadowDownHardM};
|
|
26
27
|
`
|
|
27
28
|
},
|
|
28
29
|
size: {
|
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "config", {
|
|
|
8
8
|
return config;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
+
const _sdds_cs = require("@salutejs/sdds-themes/tokens/sdds_cs");
|
|
11
12
|
const _emotion = require("@salutejs/plasma-new-hope/emotion");
|
|
12
13
|
const config = {
|
|
13
14
|
defaults: {
|
|
@@ -17,9 +18,9 @@ const config = {
|
|
|
17
18
|
variations: {
|
|
18
19
|
view: {
|
|
19
20
|
default: (0, _emotion.css)`
|
|
20
|
-
${_emotion._beta_tooltipTokens.backgroundColor}:
|
|
21
|
-
${_emotion._beta_tooltipTokens.boxShadow}:
|
|
22
|
-
${_emotion._beta_tooltipTokens.color}:
|
|
21
|
+
${_emotion._beta_tooltipTokens.backgroundColor}: ${_sdds_cs.inverseSurfaceSolidCardBrightness};
|
|
22
|
+
${_emotion._beta_tooltipTokens.boxShadow}: ${_sdds_cs.shadowDownHardM};
|
|
23
|
+
${_emotion._beta_tooltipTokens.color}: ${_sdds_cs.inverseTextPrimary};
|
|
23
24
|
`
|
|
24
25
|
},
|
|
25
26
|
size: {
|
|
@@ -27,23 +28,23 @@ const config = {
|
|
|
27
28
|
${_emotion._beta_tooltipTokens.borderRadius}: 0.625rem;
|
|
28
29
|
${_emotion._beta_tooltipTokens.padding}: 0.75rem 0.875rem;
|
|
29
30
|
${_emotion._beta_tooltipTokens.gap}: 0.375rem;
|
|
30
|
-
${_emotion._beta_tooltipTokens.fontFamily}:
|
|
31
|
-
${_emotion._beta_tooltipTokens.fontSize}:
|
|
32
|
-
${_emotion._beta_tooltipTokens.fontStyle}:
|
|
33
|
-
${_emotion._beta_tooltipTokens.fontWeight}:
|
|
34
|
-
${_emotion._beta_tooltipTokens.letterSpacing}:
|
|
35
|
-
${_emotion._beta_tooltipTokens.lineHeight}:
|
|
31
|
+
${_emotion._beta_tooltipTokens.fontFamily}: ${_sdds_cs.bodyS.fontFamily};
|
|
32
|
+
${_emotion._beta_tooltipTokens.fontSize}: ${_sdds_cs.bodyS.fontSize};
|
|
33
|
+
${_emotion._beta_tooltipTokens.fontStyle}: ${_sdds_cs.bodyS.fontStyle};
|
|
34
|
+
${_emotion._beta_tooltipTokens.fontWeight}: ${_sdds_cs.bodyS.fontWeight};
|
|
35
|
+
${_emotion._beta_tooltipTokens.letterSpacing}: ${_sdds_cs.bodyS.letterSpacing};
|
|
36
|
+
${_emotion._beta_tooltipTokens.lineHeight}: ${_sdds_cs.bodyS.lineHeight};
|
|
36
37
|
`,
|
|
37
38
|
s: (0, _emotion.css)`
|
|
38
39
|
${_emotion._beta_tooltipTokens.borderRadius}: 0.5rem;
|
|
39
40
|
${_emotion._beta_tooltipTokens.padding}: 0.5rem 0.75rem;
|
|
40
41
|
${_emotion._beta_tooltipTokens.gap}: 0.25rem;
|
|
41
|
-
${_emotion._beta_tooltipTokens.fontFamily}:
|
|
42
|
-
${_emotion._beta_tooltipTokens.fontSize}:
|
|
43
|
-
${_emotion._beta_tooltipTokens.fontStyle}:
|
|
44
|
-
${_emotion._beta_tooltipTokens.fontWeight}:
|
|
45
|
-
${_emotion._beta_tooltipTokens.letterSpacing}:
|
|
46
|
-
${_emotion._beta_tooltipTokens.lineHeight}:
|
|
42
|
+
${_emotion._beta_tooltipTokens.fontFamily}: ${_sdds_cs.bodyXS.fontFamily};
|
|
43
|
+
${_emotion._beta_tooltipTokens.fontSize}: ${_sdds_cs.bodyXS.fontSize};
|
|
44
|
+
${_emotion._beta_tooltipTokens.fontStyle}: ${_sdds_cs.bodyXS.fontStyle};
|
|
45
|
+
${_emotion._beta_tooltipTokens.fontWeight}: ${_sdds_cs.bodyXS.fontWeight};
|
|
46
|
+
${_emotion._beta_tooltipTokens.letterSpacing}: ${_sdds_cs.bodyXS.letterSpacing};
|
|
47
|
+
${_emotion._beta_tooltipTokens.lineHeight}: ${_sdds_cs.bodyXS.lineHeight};
|
|
47
48
|
`
|
|
48
49
|
}
|
|
49
50
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { onDarkTextSecondary, onDarkTextSecondaryActive, onDarkTextSecondaryHover, shadowDownHardM, surfaceAccent, surfaceSolidCard, textSecondary, textSecondaryActive, textSecondaryHover } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, _beta_popoverTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -7,18 +8,18 @@ export const config = {
|
|
|
7
8
|
variations: {
|
|
8
9
|
view: {
|
|
9
10
|
default: css`
|
|
10
|
-
${tokens.backgroundColor}:
|
|
11
|
-
${tokens.boxShadow}:
|
|
12
|
-
${tokens.iconColor}:
|
|
13
|
-
${tokens.iconColorHover}:
|
|
14
|
-
${tokens.iconColorActive}:
|
|
11
|
+
${tokens.backgroundColor}: ${surfaceSolidCard};
|
|
12
|
+
${tokens.boxShadow}: ${shadowDownHardM};
|
|
13
|
+
${tokens.iconColor}: ${textSecondary};
|
|
14
|
+
${tokens.iconColorHover}: ${textSecondaryHover};
|
|
15
|
+
${tokens.iconColorActive}: ${textSecondaryActive};
|
|
15
16
|
`,
|
|
16
17
|
info: css`
|
|
17
|
-
${tokens.backgroundColor}:
|
|
18
|
-
${tokens.boxShadow}:
|
|
19
|
-
${tokens.iconColor}:
|
|
20
|
-
${tokens.iconColorHover}:
|
|
21
|
-
${tokens.iconColorActive}:
|
|
18
|
+
${tokens.backgroundColor}: ${surfaceAccent};
|
|
19
|
+
${tokens.boxShadow}: ${shadowDownHardM};
|
|
20
|
+
${tokens.iconColor}: ${onDarkTextSecondary};
|
|
21
|
+
${tokens.iconColorHover}: ${onDarkTextSecondaryHover};
|
|
22
|
+
${tokens.iconColorActive}: ${onDarkTextSecondaryActive};
|
|
22
23
|
`
|
|
23
24
|
},
|
|
24
25
|
size: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { shadowDownHardM, surfaceAccent, surfaceSolidCard } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, _beta_popoverTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -7,12 +8,12 @@ export const config = {
|
|
|
7
8
|
variations: {
|
|
8
9
|
view: {
|
|
9
10
|
default: css`
|
|
10
|
-
${tokens.backgroundColor}:
|
|
11
|
-
${tokens.boxShadow}:
|
|
11
|
+
${tokens.backgroundColor}: ${surfaceSolidCard};
|
|
12
|
+
${tokens.boxShadow}: ${shadowDownHardM};
|
|
12
13
|
`,
|
|
13
14
|
info: css`
|
|
14
|
-
${tokens.backgroundColor}:
|
|
15
|
-
${tokens.boxShadow}:
|
|
15
|
+
${tokens.backgroundColor}: ${surfaceAccent};
|
|
16
|
+
${tokens.boxShadow}: ${shadowDownHardM};
|
|
16
17
|
`
|
|
17
18
|
},
|
|
18
19
|
size: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { bodyS, bodyXS, inverseSurfaceSolidCardBrightness, inverseTextPrimary, shadowDownHardM } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, _beta_tooltipTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -7,9 +8,9 @@ export const config = {
|
|
|
7
8
|
variations: {
|
|
8
9
|
view: {
|
|
9
10
|
default: css`
|
|
10
|
-
${tokens.backgroundColor}:
|
|
11
|
-
${tokens.boxShadow}:
|
|
12
|
-
${tokens.color}:
|
|
11
|
+
${tokens.backgroundColor}: ${inverseSurfaceSolidCardBrightness};
|
|
12
|
+
${tokens.boxShadow}: ${shadowDownHardM};
|
|
13
|
+
${tokens.color}: ${inverseTextPrimary};
|
|
13
14
|
`
|
|
14
15
|
},
|
|
15
16
|
size: {
|
|
@@ -17,23 +18,23 @@ export const config = {
|
|
|
17
18
|
${tokens.borderRadius}: 0.625rem;
|
|
18
19
|
${tokens.padding}: 0.75rem 0.875rem;
|
|
19
20
|
${tokens.gap}: 0.375rem;
|
|
20
|
-
${tokens.fontFamily}:
|
|
21
|
-
${tokens.fontSize}:
|
|
22
|
-
${tokens.fontStyle}:
|
|
23
|
-
${tokens.fontWeight}:
|
|
24
|
-
${tokens.letterSpacing}:
|
|
25
|
-
${tokens.lineHeight}:
|
|
21
|
+
${tokens.fontFamily}: ${bodyS.fontFamily};
|
|
22
|
+
${tokens.fontSize}: ${bodyS.fontSize};
|
|
23
|
+
${tokens.fontStyle}: ${bodyS.fontStyle};
|
|
24
|
+
${tokens.fontWeight}: ${bodyS.fontWeight};
|
|
25
|
+
${tokens.letterSpacing}: ${bodyS.letterSpacing};
|
|
26
|
+
${tokens.lineHeight}: ${bodyS.lineHeight};
|
|
26
27
|
`,
|
|
27
28
|
s: css`
|
|
28
29
|
${tokens.borderRadius}: 0.5rem;
|
|
29
30
|
${tokens.padding}: 0.5rem 0.75rem;
|
|
30
31
|
${tokens.gap}: 0.25rem;
|
|
31
|
-
${tokens.fontFamily}:
|
|
32
|
-
${tokens.fontSize}:
|
|
33
|
-
${tokens.fontStyle}:
|
|
34
|
-
${tokens.fontWeight}:
|
|
35
|
-
${tokens.letterSpacing}:
|
|
36
|
-
${tokens.lineHeight}:
|
|
32
|
+
${tokens.fontFamily}: ${bodyXS.fontFamily};
|
|
33
|
+
${tokens.fontSize}: ${bodyXS.fontSize};
|
|
34
|
+
${tokens.fontStyle}: ${bodyXS.fontStyle};
|
|
35
|
+
${tokens.fontWeight}: ${bodyXS.fontWeight};
|
|
36
|
+
${tokens.letterSpacing}: ${bodyXS.letterSpacing};
|
|
37
|
+
${tokens.lineHeight}: ${bodyXS.lineHeight};
|
|
37
38
|
`
|
|
38
39
|
}
|
|
39
40
|
}
|
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "config", {
|
|
|
8
8
|
return config;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
+
const _sdds_cs = require("@salutejs/sdds-themes/tokens/sdds_cs");
|
|
11
12
|
const _emotion = require("@salutejs/plasma-new-hope/emotion");
|
|
12
13
|
const config = {
|
|
13
14
|
defaults: {
|
|
@@ -20,12 +21,12 @@ const config = {
|
|
|
20
21
|
${_emotion.accordionTokens.accordionGap}: 0.125rem;
|
|
21
22
|
${_emotion.accordionTokens.accordionWidth}: 20rem;
|
|
22
23
|
${_emotion.accordionTokens.accordionItemPadding}: var(${_emotion.accordionTokens.accordionItemPaddingVertical}) var(${_emotion.accordionTokens.accordionItemPaddingHorizontal});
|
|
23
|
-
${_emotion.accordionTokens.accordionItemBackground}:
|
|
24
|
-
${_emotion.accordionTokens.accordionItemTitleColor}:
|
|
25
|
-
${_emotion.accordionTokens.accordionItemTextColor}:
|
|
26
|
-
${_emotion.accordionTokens.accordionItemIconColor}:
|
|
27
|
-
${_emotion.accordionTokens.accordionItemFocus}:
|
|
28
|
-
${_emotion.accordionTokens.accordionBackground}:
|
|
24
|
+
${_emotion.accordionTokens.accordionItemBackground}: ${_sdds_cs.surfaceSolidCard};
|
|
25
|
+
${_emotion.accordionTokens.accordionItemTitleColor}: ${_sdds_cs.textPrimary};
|
|
26
|
+
${_emotion.accordionTokens.accordionItemTextColor}: ${_sdds_cs.textPrimary};
|
|
27
|
+
${_emotion.accordionTokens.accordionItemIconColor}: ${_sdds_cs.textAccent};
|
|
28
|
+
${_emotion.accordionTokens.accordionItemFocus}: ${_sdds_cs.surfaceAccent};
|
|
29
|
+
${_emotion.accordionTokens.accordionBackground}: ${_sdds_cs.surfaceClear};
|
|
29
30
|
${_emotion.accordionTokens.accordionItemBorderBottom}: 0;
|
|
30
31
|
${_emotion.accordionTokens.accordionItemPaddingHorizontalLeft}: var(${_emotion.accordionTokens.accordionItemPaddingHorizontal});
|
|
31
32
|
`,
|
|
@@ -33,14 +34,14 @@ const config = {
|
|
|
33
34
|
${_emotion.accordionTokens.accordionGap}: 0;
|
|
34
35
|
${_emotion.accordionTokens.accordionWidth}: 20rem;
|
|
35
36
|
${_emotion.accordionTokens.accordionItemPadding}: var(${_emotion.accordionTokens.accordionItemPaddingVertical}) 0rem;
|
|
36
|
-
${_emotion.accordionTokens.accordionItemBackground}:
|
|
37
|
-
${_emotion.accordionTokens.accordionItemTitleColor}:
|
|
38
|
-
${_emotion.accordionTokens.accordionItemTextColor}:
|
|
39
|
-
${_emotion.accordionTokens.accordionItemIconColor}:
|
|
40
|
-
${_emotion.accordionTokens.accordionItemFocus}:
|
|
37
|
+
${_emotion.accordionTokens.accordionItemBackground}: ${_sdds_cs.surfaceClear};
|
|
38
|
+
${_emotion.accordionTokens.accordionItemTitleColor}: ${_sdds_cs.textPrimary};
|
|
39
|
+
${_emotion.accordionTokens.accordionItemTextColor}: ${_sdds_cs.textPrimary};
|
|
40
|
+
${_emotion.accordionTokens.accordionItemIconColor}: ${_sdds_cs.textAccent};
|
|
41
|
+
${_emotion.accordionTokens.accordionItemFocus}: ${_sdds_cs.surfaceAccent};
|
|
41
42
|
${_emotion.accordionTokens.accordionItemViewBorderRadius}: 0rem;
|
|
42
|
-
${_emotion.accordionTokens.accordionBackground}:
|
|
43
|
-
${_emotion.accordionTokens.accordionItemBorderBottom}: 0.125rem solid
|
|
43
|
+
${_emotion.accordionTokens.accordionBackground}: ${_sdds_cs.surfaceClear};
|
|
44
|
+
${_emotion.accordionTokens.accordionItemBorderBottom}: 0.125rem solid ${_sdds_cs.surfaceSolidTertiary};
|
|
44
45
|
${_emotion.accordionTokens.accordionItemPaddingHorizontalLeft}: 0;
|
|
45
46
|
`
|
|
46
47
|
},
|
|
@@ -52,19 +53,19 @@ const config = {
|
|
|
52
53
|
${_emotion.accordionTokens.accordionItemGap}: 0.375rem;
|
|
53
54
|
${_emotion.accordionTokens.accordionItemBorderRadius}: 0.625rem;
|
|
54
55
|
|
|
55
|
-
${_emotion.accordionTokens.accordionItemTitleFontFamily}:
|
|
56
|
-
${_emotion.accordionTokens.accordionItemTitleFontSize}:
|
|
57
|
-
${_emotion.accordionTokens.accordionItemTitleFontStyle}:
|
|
58
|
-
${_emotion.accordionTokens.accordionItemTitleFontWeight}:
|
|
59
|
-
${_emotion.accordionTokens.accordionItemTitleLetterSpacing}:
|
|
60
|
-
${_emotion.accordionTokens.accordionItemTitleLineHeight}:
|
|
56
|
+
${_emotion.accordionTokens.accordionItemTitleFontFamily}: ${_sdds_cs.bodyM.fontFamily};
|
|
57
|
+
${_emotion.accordionTokens.accordionItemTitleFontSize}: ${_sdds_cs.bodyM.fontSize};
|
|
58
|
+
${_emotion.accordionTokens.accordionItemTitleFontStyle}: ${_sdds_cs.bodyM.fontStyle};
|
|
59
|
+
${_emotion.accordionTokens.accordionItemTitleFontWeight}: ${_sdds_cs.bodyMBold.fontWeight};
|
|
60
|
+
${_emotion.accordionTokens.accordionItemTitleLetterSpacing}: ${_sdds_cs.bodyM.letterSpacing};
|
|
61
|
+
${_emotion.accordionTokens.accordionItemTitleLineHeight}: ${_sdds_cs.bodyM.lineHeight};
|
|
61
62
|
|
|
62
|
-
${_emotion.accordionTokens.accordionItemTextFontFamily}:
|
|
63
|
-
${_emotion.accordionTokens.accordionItemTextFontSize}:
|
|
64
|
-
${_emotion.accordionTokens.accordionItemTextFontStyle}:
|
|
65
|
-
${_emotion.accordionTokens.accordionItemTextFontWeight}:
|
|
66
|
-
${_emotion.accordionTokens.accordionItemTextLetterSpacing}:
|
|
67
|
-
${_emotion.accordionTokens.accordionItemTextLineHeight}:
|
|
63
|
+
${_emotion.accordionTokens.accordionItemTextFontFamily}: ${_sdds_cs.bodyM.fontFamily};
|
|
64
|
+
${_emotion.accordionTokens.accordionItemTextFontSize}: ${_sdds_cs.bodyM.fontSize};
|
|
65
|
+
${_emotion.accordionTokens.accordionItemTextFontStyle}: ${_sdds_cs.bodyM.fontStyle};
|
|
66
|
+
${_emotion.accordionTokens.accordionItemTextFontWeight}: ${_sdds_cs.bodyM.fontWeight};
|
|
67
|
+
${_emotion.accordionTokens.accordionItemTextLetterSpacing}: ${_sdds_cs.bodyM.letterSpacing};
|
|
68
|
+
${_emotion.accordionTokens.accordionItemTextLineHeight}: ${_sdds_cs.bodyM.lineHeight};
|
|
68
69
|
`
|
|
69
70
|
}
|
|
70
71
|
}
|