@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 { surfaceAccent, surfaceSolidPrimary, surfaceSolidPrimaryActive, surfaceSolidPrimaryHover, textAccent, textAccentActive, textAccentMinor, textPrimary } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, carouselNewTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -7,14 +8,14 @@ export const config = {
|
|
|
7
8
|
variations: {
|
|
8
9
|
view: {
|
|
9
10
|
default: css`
|
|
10
|
-
${tokens.paginationDotBackground}:
|
|
11
|
-
${tokens.paginationDotActiveBackground}:
|
|
12
|
-
${tokens.controlIconButtonColor}:
|
|
13
|
-
${tokens.controlIconButtonBackgroundColor}:
|
|
14
|
-
${tokens.controlIconButtonColorHover}:
|
|
15
|
-
${tokens.controlIconButtonBackgroundColorHover}:
|
|
16
|
-
${tokens.controlIconButtonColorActive}:
|
|
17
|
-
${tokens.controlIconButtonBackgroundColorActive}:
|
|
11
|
+
${tokens.paginationDotBackground}: ${surfaceAccent};
|
|
12
|
+
${tokens.paginationDotActiveBackground}: ${textPrimary};
|
|
13
|
+
${tokens.controlIconButtonColor}: ${textAccent};
|
|
14
|
+
${tokens.controlIconButtonBackgroundColor}: ${surfaceSolidPrimary};
|
|
15
|
+
${tokens.controlIconButtonColorHover}: ${textAccentMinor};
|
|
16
|
+
${tokens.controlIconButtonBackgroundColorHover}: ${surfaceSolidPrimaryHover};
|
|
17
|
+
${tokens.controlIconButtonColorActive}: ${textAccentActive};
|
|
18
|
+
${tokens.controlIconButtonBackgroundColorActive}: ${surfaceSolidPrimaryActive};
|
|
18
19
|
`
|
|
19
20
|
},
|
|
20
21
|
size: {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { bodyM, bodyS, bodyXS, textPrimary, textSecondary } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, cellTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
variations: {
|
|
4
5
|
view: {
|
|
5
6
|
default: css`
|
|
6
|
-
${cellTokens.cellColor}:
|
|
7
|
-
${cellTokens.cellLabelColor}:
|
|
8
|
-
${cellTokens.cellTitleColor}:
|
|
9
|
-
${cellTokens.cellSubtitleColor}:
|
|
7
|
+
${cellTokens.cellColor}: ${textPrimary};
|
|
8
|
+
${cellTokens.cellLabelColor}: ${textSecondary};
|
|
9
|
+
${cellTokens.cellTitleColor}: ${textPrimary};
|
|
10
|
+
${cellTokens.cellSubtitleColor}: ${textSecondary};
|
|
10
11
|
${cellTokens.cellBackgroundColor}: transparent;
|
|
11
12
|
`
|
|
12
13
|
},
|
|
@@ -22,26 +23,26 @@ export const config = {
|
|
|
22
23
|
${cellTokens.cellTextboxGap}: 0.125rem;
|
|
23
24
|
${cellTokens.cellGap}: 0.375rem;
|
|
24
25
|
|
|
25
|
-
${cellTokens.cellLabelFontFamily}:
|
|
26
|
-
${cellTokens.cellLabelFontSize}:
|
|
27
|
-
${cellTokens.cellLabelFontStyle}:
|
|
28
|
-
${cellTokens.cellLabelFontWeight}:
|
|
29
|
-
${cellTokens.cellLabelLetterSpacing}:
|
|
30
|
-
${cellTokens.cellLabelLineHeight}:
|
|
26
|
+
${cellTokens.cellLabelFontFamily}: ${bodyS.fontFamily};
|
|
27
|
+
${cellTokens.cellLabelFontSize}: ${bodyS.fontSize};
|
|
28
|
+
${cellTokens.cellLabelFontStyle}: ${bodyS.fontStyle};
|
|
29
|
+
${cellTokens.cellLabelFontWeight}: ${bodyS.fontWeight};
|
|
30
|
+
${cellTokens.cellLabelLetterSpacing}: ${bodyS.letterSpacing};
|
|
31
|
+
${cellTokens.cellLabelLineHeight}: ${bodyS.lineHeight};
|
|
31
32
|
|
|
32
|
-
${cellTokens.cellTitleFontFamily}:
|
|
33
|
-
${cellTokens.cellTitleFontSize}:
|
|
34
|
-
${cellTokens.cellTitleFontStyle}:
|
|
35
|
-
${cellTokens.cellTitleFontWeight}:
|
|
36
|
-
${cellTokens.cellTitleLetterSpacing}:
|
|
37
|
-
${cellTokens.cellTitleLineHeight}:
|
|
33
|
+
${cellTokens.cellTitleFontFamily}: ${bodyM.fontFamily};
|
|
34
|
+
${cellTokens.cellTitleFontSize}: ${bodyM.fontSize};
|
|
35
|
+
${cellTokens.cellTitleFontStyle}: ${bodyM.fontStyle};
|
|
36
|
+
${cellTokens.cellTitleFontWeight}: ${bodyM.fontWeight};
|
|
37
|
+
${cellTokens.cellTitleLetterSpacing}: ${bodyM.letterSpacing};
|
|
38
|
+
${cellTokens.cellTitleLineHeight}: ${bodyM.lineHeight};
|
|
38
39
|
|
|
39
|
-
${cellTokens.cellSubtitleFontFamily}:
|
|
40
|
-
${cellTokens.cellSubtitleFontSize}:
|
|
41
|
-
${cellTokens.cellSubtitleFontStyle}:
|
|
42
|
-
${cellTokens.cellSubtitleFontWeight}:
|
|
43
|
-
${cellTokens.cellSubtitleLetterSpacing}:
|
|
44
|
-
${cellTokens.cellSubtitleLineHeight}:
|
|
40
|
+
${cellTokens.cellSubtitleFontFamily}: ${bodyS.fontFamily};
|
|
41
|
+
${cellTokens.cellSubtitleFontSize}: ${bodyS.fontSize};
|
|
42
|
+
${cellTokens.cellSubtitleFontStyle}: ${bodyS.fontStyle};
|
|
43
|
+
${cellTokens.cellSubtitleFontWeight}: ${bodyS.fontWeight};
|
|
44
|
+
${cellTokens.cellSubtitleLetterSpacing}: ${bodyS.letterSpacing};
|
|
45
|
+
${cellTokens.cellSubtitleLineHeight}: ${bodyS.lineHeight};
|
|
45
46
|
`,
|
|
46
47
|
xs: css`
|
|
47
48
|
${cellTokens.cellWidth}: 15rem;
|
|
@@ -54,26 +55,26 @@ export const config = {
|
|
|
54
55
|
${cellTokens.cellTextboxGap}: 0.125rem;
|
|
55
56
|
${cellTokens.cellGap}: 0.25rem;
|
|
56
57
|
|
|
57
|
-
${cellTokens.cellLabelFontFamily}:
|
|
58
|
-
${cellTokens.cellLabelFontSize}:
|
|
59
|
-
${cellTokens.cellLabelFontStyle}:
|
|
60
|
-
${cellTokens.cellLabelFontWeight}:
|
|
61
|
-
${cellTokens.cellLabelLetterSpacing}:
|
|
62
|
-
${cellTokens.cellLabelLineHeight}:
|
|
58
|
+
${cellTokens.cellLabelFontFamily}: ${bodyXS.fontFamily};
|
|
59
|
+
${cellTokens.cellLabelFontSize}: ${bodyXS.fontSize};
|
|
60
|
+
${cellTokens.cellLabelFontStyle}: ${bodyXS.fontStyle};
|
|
61
|
+
${cellTokens.cellLabelFontWeight}: ${bodyXS.fontWeight};
|
|
62
|
+
${cellTokens.cellLabelLetterSpacing}: ${bodyXS.letterSpacing};
|
|
63
|
+
${cellTokens.cellLabelLineHeight}: ${bodyXS.lineHeight};
|
|
63
64
|
|
|
64
|
-
${cellTokens.cellTitleFontFamily}:
|
|
65
|
-
${cellTokens.cellTitleFontSize}:
|
|
66
|
-
${cellTokens.cellTitleFontStyle}:
|
|
67
|
-
${cellTokens.cellTitleFontWeight}:
|
|
68
|
-
${cellTokens.cellTitleLetterSpacing}:
|
|
69
|
-
${cellTokens.cellTitleLineHeight}:
|
|
65
|
+
${cellTokens.cellTitleFontFamily}: ${bodyS.fontFamily};
|
|
66
|
+
${cellTokens.cellTitleFontSize}: ${bodyS.fontSize};
|
|
67
|
+
${cellTokens.cellTitleFontStyle}: ${bodyS.fontStyle};
|
|
68
|
+
${cellTokens.cellTitleFontWeight}: ${bodyS.fontWeight};
|
|
69
|
+
${cellTokens.cellTitleLetterSpacing}: ${bodyS.letterSpacing};
|
|
70
|
+
${cellTokens.cellTitleLineHeight}: ${bodyS.lineHeight};
|
|
70
71
|
|
|
71
|
-
${cellTokens.cellSubtitleFontFamily}:
|
|
72
|
-
${cellTokens.cellSubtitleFontSize}:
|
|
73
|
-
${cellTokens.cellSubtitleFontStyle}:
|
|
74
|
-
${cellTokens.cellSubtitleFontWeight}:
|
|
75
|
-
${cellTokens.cellSubtitleLetterSpacing}:
|
|
76
|
-
${cellTokens.cellSubtitleLineHeight}:
|
|
72
|
+
${cellTokens.cellSubtitleFontFamily}: ${bodyXS.fontFamily};
|
|
73
|
+
${cellTokens.cellSubtitleFontSize}: ${bodyXS.fontSize};
|
|
74
|
+
${cellTokens.cellSubtitleFontStyle}: ${bodyXS.fontStyle};
|
|
75
|
+
${cellTokens.cellSubtitleFontWeight}: ${bodyXS.fontWeight};
|
|
76
|
+
${cellTokens.cellSubtitleLetterSpacing}: ${bodyXS.letterSpacing};
|
|
77
|
+
${cellTokens.cellSubtitleLineHeight}: ${bodyXS.lineHeight};
|
|
77
78
|
`
|
|
78
79
|
}
|
|
79
80
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { bodyM, bodyS, onDarkTextPrimary, outlineAccent, outlineSolidPrimary, surfaceSolidTertiary, textAccent, textPrimary, textSecondary } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, checkboxTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -16,41 +17,41 @@ export const config = {
|
|
|
16
17
|
${checkboxTokens.contentTopOffset}: 0rem;
|
|
17
18
|
${checkboxTokens.contentLeftOffset}: 0.75rem;
|
|
18
19
|
${checkboxTokens.descriptionMarginTop}: 0.125rem;
|
|
19
|
-
${checkboxTokens.labelFontFamily}:
|
|
20
|
-
${checkboxTokens.labelFontSize}:
|
|
21
|
-
${checkboxTokens.labelFontStyle}:
|
|
22
|
-
${checkboxTokens.labelFontWeight}:
|
|
23
|
-
${checkboxTokens.labelLetterSpacing}:
|
|
24
|
-
${checkboxTokens.labelLineHeight}:
|
|
25
|
-
${checkboxTokens.descriptionFontFamily}:
|
|
26
|
-
${checkboxTokens.descriptionFontSize}:
|
|
27
|
-
${checkboxTokens.descriptionFontStyle}:
|
|
28
|
-
${checkboxTokens.descriptionFontWeight}:
|
|
29
|
-
${checkboxTokens.descriptionLetterSpacing}:
|
|
30
|
-
${checkboxTokens.descriptionLineHeight}:
|
|
20
|
+
${checkboxTokens.labelFontFamily}: ${bodyM.fontFamily};
|
|
21
|
+
${checkboxTokens.labelFontSize}: ${bodyM.fontSize};
|
|
22
|
+
${checkboxTokens.labelFontStyle}: ${bodyM.fontStyle};
|
|
23
|
+
${checkboxTokens.labelFontWeight}: ${bodyM.fontWeight};
|
|
24
|
+
${checkboxTokens.labelLetterSpacing}: ${bodyM.letterSpacing};
|
|
25
|
+
${checkboxTokens.labelLineHeight}: ${bodyM.lineHeight};
|
|
26
|
+
${checkboxTokens.descriptionFontFamily}: ${bodyS.fontFamily};
|
|
27
|
+
${checkboxTokens.descriptionFontSize}: ${bodyS.fontSize};
|
|
28
|
+
${checkboxTokens.descriptionFontStyle}: ${bodyS.fontStyle};
|
|
29
|
+
${checkboxTokens.descriptionFontWeight}: ${bodyS.fontWeight};
|
|
30
|
+
${checkboxTokens.descriptionLetterSpacing}: ${bodyS.letterSpacing};
|
|
31
|
+
${checkboxTokens.descriptionLineHeight}: ${bodyS.lineHeight};
|
|
31
32
|
`
|
|
32
33
|
},
|
|
33
34
|
view: {
|
|
34
35
|
accent: css`
|
|
35
|
-
${checkboxTokens.fillColor}:
|
|
36
|
-
${checkboxTokens.iconColor}:
|
|
37
|
-
${checkboxTokens.labelColor}:
|
|
38
|
-
${checkboxTokens.descriptionColor}:
|
|
39
|
-
${checkboxTokens.triggerBorderColor}:
|
|
36
|
+
${checkboxTokens.fillColor}: ${textAccent};
|
|
37
|
+
${checkboxTokens.iconColor}: ${onDarkTextPrimary};
|
|
38
|
+
${checkboxTokens.labelColor}: ${textPrimary};
|
|
39
|
+
${checkboxTokens.descriptionColor}: ${textSecondary};
|
|
40
|
+
${checkboxTokens.triggerBorderColor}: ${outlineAccent};
|
|
40
41
|
${checkboxTokens.triggerBackgroundColor}: transparent;
|
|
41
42
|
${checkboxTokens.triggerBorderCheckedColor}: transparent;
|
|
42
43
|
`
|
|
43
44
|
},
|
|
44
45
|
disabled: {
|
|
45
46
|
true: css`
|
|
46
|
-
${checkboxTokens.triggerBorderColor}:
|
|
47
|
-
${checkboxTokens.fillColor}:
|
|
48
|
-
${checkboxTokens.labelColor}:
|
|
47
|
+
${checkboxTokens.triggerBorderColor}: ${outlineSolidPrimary};
|
|
48
|
+
${checkboxTokens.fillColor}: ${surfaceSolidTertiary};
|
|
49
|
+
${checkboxTokens.labelColor}: ${textSecondary};
|
|
49
50
|
`
|
|
50
51
|
},
|
|
51
52
|
focused: {
|
|
52
53
|
true: css`
|
|
53
|
-
${checkboxTokens.focusColor}:
|
|
54
|
+
${checkboxTokens.focusColor}: ${textAccent};
|
|
54
55
|
`
|
|
55
56
|
}
|
|
56
57
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { bodyM, bodyS, onDarkTextPrimary, onDarkTextPrimaryHover, surfaceAccent, surfaceAccentActive, surfaceAccentHover, surfaceSolidCard, surfaceSolidPrimary, surfaceSolidSecondary, textAccent, textAccentMinor, textPrimary } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, chipTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -8,50 +9,50 @@ export const config = {
|
|
|
8
9
|
variations: {
|
|
9
10
|
view: {
|
|
10
11
|
default: css`
|
|
11
|
-
${chipTokens.color}:
|
|
12
|
-
${chipTokens.background}:
|
|
13
|
-
${chipTokens.colorHover}:
|
|
14
|
-
${chipTokens.backgroundHover}:
|
|
15
|
-
${chipTokens.colorActive}:
|
|
16
|
-
${chipTokens.backgroundActive}:
|
|
17
|
-
${chipTokens.backgroundReadOnly}:
|
|
18
|
-
${chipTokens.colorReadOnly}:
|
|
19
|
-
${chipTokens.backgroundReadOnlyHover}:
|
|
20
|
-
${chipTokens.colorReadOnlyHover}:
|
|
21
|
-
${chipTokens.closeIconColor}:
|
|
22
|
-
${chipTokens.closeIconColorHover}:
|
|
23
|
-
${chipTokens.leftContentColor}:
|
|
12
|
+
${chipTokens.color}: ${textPrimary};
|
|
13
|
+
${chipTokens.background}: ${surfaceSolidCard};
|
|
14
|
+
${chipTokens.colorHover}: ${textPrimary};
|
|
15
|
+
${chipTokens.backgroundHover}: ${surfaceSolidCard};
|
|
16
|
+
${chipTokens.colorActive}: ${textPrimary};
|
|
17
|
+
${chipTokens.backgroundActive}: ${surfaceSolidCard};
|
|
18
|
+
${chipTokens.backgroundReadOnly}: ${surfaceSolidCard};
|
|
19
|
+
${chipTokens.colorReadOnly}: ${textPrimary};
|
|
20
|
+
${chipTokens.backgroundReadOnlyHover}: ${surfaceSolidCard};
|
|
21
|
+
${chipTokens.colorReadOnlyHover}: ${textPrimary};
|
|
22
|
+
${chipTokens.closeIconColor}: ${textAccent};
|
|
23
|
+
${chipTokens.closeIconColorHover}: ${textAccentMinor};
|
|
24
|
+
${chipTokens.leftContentColor}: ${textAccent};
|
|
24
25
|
`,
|
|
25
26
|
secondary: css`
|
|
26
|
-
${chipTokens.color}:
|
|
27
|
-
${chipTokens.background}:
|
|
28
|
-
${chipTokens.colorHover}:
|
|
29
|
-
${chipTokens.backgroundHover}:
|
|
30
|
-
${chipTokens.colorActive}:
|
|
31
|
-
${chipTokens.backgroundActive}:
|
|
32
|
-
${chipTokens.backgroundReadOnly}:
|
|
33
|
-
${chipTokens.colorReadOnly}:
|
|
34
|
-
${chipTokens.backgroundReadOnlyHover}:
|
|
35
|
-
${chipTokens.colorReadOnlyHover}:
|
|
36
|
-
${chipTokens.closeIconColor}:
|
|
37
|
-
${chipTokens.closeIconColorHover}:
|
|
38
|
-
${chipTokens.leftContentColor}:
|
|
27
|
+
${chipTokens.color}: ${textPrimary};
|
|
28
|
+
${chipTokens.background}: ${surfaceSolidSecondary};
|
|
29
|
+
${chipTokens.colorHover}: ${textPrimary};
|
|
30
|
+
${chipTokens.backgroundHover}: ${surfaceSolidSecondary};
|
|
31
|
+
${chipTokens.colorActive}: ${textPrimary};
|
|
32
|
+
${chipTokens.backgroundActive}: ${surfaceSolidSecondary};
|
|
33
|
+
${chipTokens.backgroundReadOnly}: ${surfaceSolidPrimary};
|
|
34
|
+
${chipTokens.colorReadOnly}: ${textPrimary};
|
|
35
|
+
${chipTokens.backgroundReadOnlyHover}: ${surfaceSolidPrimary};
|
|
36
|
+
${chipTokens.colorReadOnlyHover}: ${textPrimary};
|
|
37
|
+
${chipTokens.closeIconColor}: ${textAccent};
|
|
38
|
+
${chipTokens.closeIconColorHover}: ${textAccentMinor};
|
|
39
|
+
${chipTokens.leftContentColor}: ${textAccent};
|
|
39
40
|
`,
|
|
40
41
|
accent: css`
|
|
41
|
-
${chipTokens.color}:
|
|
42
|
-
${chipTokens.background}:
|
|
43
|
-
${chipTokens.colorHover}:
|
|
44
|
-
${chipTokens.backgroundHover}:
|
|
45
|
-
${chipTokens.colorActive}:
|
|
46
|
-
${chipTokens.backgroundActive}:
|
|
47
|
-
${chipTokens.backgroundReadOnly}:
|
|
48
|
-
${chipTokens.colorReadOnly}:
|
|
49
|
-
${chipTokens.backgroundReadOnlyHover}:
|
|
50
|
-
${chipTokens.colorReadOnlyHover}:
|
|
42
|
+
${chipTokens.color}: ${onDarkTextPrimary};
|
|
43
|
+
${chipTokens.background}: ${surfaceAccent};
|
|
44
|
+
${chipTokens.colorHover}: ${onDarkTextPrimary};
|
|
45
|
+
${chipTokens.backgroundHover}: ${surfaceAccentHover};
|
|
46
|
+
${chipTokens.colorActive}: ${onDarkTextPrimary};
|
|
47
|
+
${chipTokens.backgroundActive}: ${surfaceAccentActive};
|
|
48
|
+
${chipTokens.backgroundReadOnly}: ${surfaceAccent};
|
|
49
|
+
${chipTokens.colorReadOnly}: ${onDarkTextPrimary};
|
|
50
|
+
${chipTokens.backgroundReadOnlyHover}: ${surfaceAccent};
|
|
51
|
+
${chipTokens.colorReadOnlyHover}: ${onDarkTextPrimary};
|
|
51
52
|
|
|
52
|
-
${chipTokens.closeIconColor}:
|
|
53
|
-
${chipTokens.closeIconColorHover}:
|
|
54
|
-
${chipTokens.leftContentColor}:
|
|
53
|
+
${chipTokens.closeIconColor}: ${onDarkTextPrimary};
|
|
54
|
+
${chipTokens.closeIconColorHover}: ${onDarkTextPrimaryHover};
|
|
55
|
+
${chipTokens.leftContentColor}: ${onDarkTextPrimary};
|
|
55
56
|
`
|
|
56
57
|
},
|
|
57
58
|
size: {
|
|
@@ -62,12 +63,12 @@ export const config = {
|
|
|
62
63
|
${chipTokens.height}: 2.5rem;
|
|
63
64
|
${chipTokens.padding}: 0 1rem;
|
|
64
65
|
|
|
65
|
-
${chipTokens.fontFamily}:
|
|
66
|
-
${chipTokens.fontSize}:
|
|
67
|
-
${chipTokens.fontStyle}:
|
|
68
|
-
${chipTokens.fontWeight}:
|
|
69
|
-
${chipTokens.letterSpacing}:
|
|
70
|
-
${chipTokens.lineHeight}:
|
|
66
|
+
${chipTokens.fontFamily}: ${bodyM.fontFamily};
|
|
67
|
+
${chipTokens.fontSize}: ${bodyM.fontSize};
|
|
68
|
+
${chipTokens.fontStyle}: ${bodyM.fontStyle};
|
|
69
|
+
${chipTokens.fontWeight}: ${bodyM.fontWeight};
|
|
70
|
+
${chipTokens.letterSpacing}: ${bodyM.letterSpacing};
|
|
71
|
+
${chipTokens.lineHeight}: ${bodyM.lineHeight};
|
|
71
72
|
|
|
72
73
|
${chipTokens.leftContentMarginLeft}: -0.25rem;
|
|
73
74
|
${chipTokens.leftContentMarginRight}: 0.25rem;
|
|
@@ -84,12 +85,12 @@ export const config = {
|
|
|
84
85
|
${chipTokens.height}: 1.5rem;
|
|
85
86
|
${chipTokens.padding}: 0.125rem 0.5rem;
|
|
86
87
|
|
|
87
|
-
${chipTokens.fontFamily}:
|
|
88
|
-
${chipTokens.fontSize}:
|
|
89
|
-
${chipTokens.fontStyle}:
|
|
90
|
-
${chipTokens.fontWeight}:
|
|
91
|
-
${chipTokens.letterSpacing}:
|
|
92
|
-
${chipTokens.lineHeight}:
|
|
88
|
+
${chipTokens.fontFamily}: ${bodyS.fontFamily};
|
|
89
|
+
${chipTokens.fontSize}: ${bodyS.fontSize};
|
|
90
|
+
${chipTokens.fontStyle}: ${bodyS.fontStyle};
|
|
91
|
+
${chipTokens.fontWeight}: ${bodyS.fontWeight};
|
|
92
|
+
${chipTokens.letterSpacing}: ${bodyS.letterSpacing};
|
|
93
|
+
${chipTokens.lineHeight}: ${bodyS.lineHeight};
|
|
93
94
|
|
|
94
95
|
${chipTokens.leftContentMarginLeft}: 0;
|
|
95
96
|
${chipTokens.leftContentMarginRight}: 0.25rem;
|
|
@@ -102,7 +103,7 @@ export const config = {
|
|
|
102
103
|
},
|
|
103
104
|
focused: {
|
|
104
105
|
true: css`
|
|
105
|
-
${chipTokens.focusColor}:
|
|
106
|
+
${chipTokens.focusColor}: ${textAccent};
|
|
106
107
|
`
|
|
107
108
|
}
|
|
108
109
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { bodyM, inverseTextPrimary, onDarkTextPrimary, surfaceAccent, surfaceSolidDefault, surfaceSolidPrimary, textPrimary } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, chipGroupTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -7,31 +8,31 @@ export const config = {
|
|
|
7
8
|
variations: {
|
|
8
9
|
view: {
|
|
9
10
|
default: css`
|
|
10
|
-
${tokens.chipFocusColor}:
|
|
11
|
-
${tokens.chipColor}:
|
|
12
|
-
${tokens.chipBackground}:
|
|
13
|
-
${tokens.chipColorHover}:
|
|
14
|
-
${tokens.chipBackgroundHover}:
|
|
15
|
-
${tokens.chipColorActive}:
|
|
16
|
-
${tokens.chipBackgroundActive}:
|
|
11
|
+
${tokens.chipFocusColor}: ${surfaceAccent};
|
|
12
|
+
${tokens.chipColor}: ${inverseTextPrimary};
|
|
13
|
+
${tokens.chipBackground}: ${surfaceSolidDefault};
|
|
14
|
+
${tokens.chipColorHover}: ${inverseTextPrimary};
|
|
15
|
+
${tokens.chipBackgroundHover}: ${surfaceSolidDefault};
|
|
16
|
+
${tokens.chipColorActive}: ${inverseTextPrimary};
|
|
17
|
+
${tokens.chipBackgroundActive}: ${surfaceSolidDefault};
|
|
17
18
|
`,
|
|
18
19
|
secondary: css`
|
|
19
|
-
${tokens.chipFocusColor}:
|
|
20
|
-
${tokens.chipColor}:
|
|
21
|
-
${tokens.chipBackground}:
|
|
22
|
-
${tokens.chipColorHover}:
|
|
23
|
-
${tokens.chipBackgroundHover}:
|
|
24
|
-
${tokens.chipColorActive}:
|
|
25
|
-
${tokens.chipBackgroundActive}:
|
|
20
|
+
${tokens.chipFocusColor}: ${surfaceAccent};
|
|
21
|
+
${tokens.chipColor}: ${textPrimary};
|
|
22
|
+
${tokens.chipBackground}: ${surfaceSolidPrimary};
|
|
23
|
+
${tokens.chipColorHover}: ${textPrimary};
|
|
24
|
+
${tokens.chipBackgroundHover}: ${surfaceSolidPrimary};
|
|
25
|
+
${tokens.chipColorActive}: ${textPrimary};
|
|
26
|
+
${tokens.chipBackgroundActive}: ${surfaceSolidPrimary};
|
|
26
27
|
`,
|
|
27
28
|
accent: css`
|
|
28
|
-
${tokens.chipFocusColor}:
|
|
29
|
-
${tokens.chipColor}:
|
|
30
|
-
${tokens.chipBackground}:
|
|
31
|
-
${tokens.chipColorHover}:
|
|
32
|
-
${tokens.chipBackgroundHover}:
|
|
33
|
-
${tokens.chipColorActive}:
|
|
34
|
-
${tokens.chipBackgroundActive}:
|
|
29
|
+
${tokens.chipFocusColor}: ${surfaceAccent};
|
|
30
|
+
${tokens.chipColor}: ${onDarkTextPrimary};
|
|
31
|
+
${tokens.chipBackground}: ${surfaceAccent};
|
|
32
|
+
${tokens.chipColorHover}: ${onDarkTextPrimary};
|
|
33
|
+
${tokens.chipBackgroundHover}: ${surfaceAccent};
|
|
34
|
+
${tokens.chipColorActive}: ${onDarkTextPrimary};
|
|
35
|
+
${tokens.chipBackgroundActive}: ${surfaceAccent};
|
|
35
36
|
`
|
|
36
37
|
},
|
|
37
38
|
size: {
|
|
@@ -41,12 +42,12 @@ export const config = {
|
|
|
41
42
|
${tokens.chipHeight}: 2.5rem;
|
|
42
43
|
${tokens.chipPadding}: 0 1rem;
|
|
43
44
|
|
|
44
|
-
${tokens.chipFontFamily}:
|
|
45
|
-
${tokens.chipFontSize}:
|
|
46
|
-
${tokens.chipFontStyle}:
|
|
47
|
-
${tokens.chipFontWeight}:
|
|
48
|
-
${tokens.chipLetterSpacing}:
|
|
49
|
-
${tokens.chipLineHeight}:
|
|
45
|
+
${tokens.chipFontFamily}: ${bodyM.fontFamily};
|
|
46
|
+
${tokens.chipFontSize}: ${bodyM.fontSize};
|
|
47
|
+
${tokens.chipFontStyle}: ${bodyM.fontStyle};
|
|
48
|
+
${tokens.chipFontWeight}: ${bodyM.fontWeight};
|
|
49
|
+
${tokens.chipLetterSpacing}: ${bodyM.letterSpacing};
|
|
50
|
+
${tokens.chipLineHeight}: ${bodyM.lineHeight};
|
|
50
51
|
|
|
51
52
|
${tokens.chipLeftContentMarginLeft}: -0.25rem;
|
|
52
53
|
${tokens.chipLeftContentMarginRight}: 0.25rem;
|