@salutejs/sdds-cs 0.362.0-next-sbcom.0 → 0.362.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/beta/cjs/Popover/Popover.closeInner.config.js +11 -10
- package/dist/beta/cjs/Popover/Popover.closeNone.config.js +5 -4
- package/dist/beta/cjs/Tooltip/Tooltip.config.js +16 -15
- package/dist/beta/es/Popover/Popover.closeInner.config.js +11 -10
- package/dist/beta/es/Popover/Popover.closeNone.config.js +5 -4
- package/dist/beta/es/Tooltip/Tooltip.config.js +16 -15
- package/dist/emotion/cjs/components/Accordion/Accordion.config.js +26 -25
- package/dist/emotion/cjs/components/Attach/Attach.config.js +121 -120
- package/dist/emotion/cjs/components/Autocomplete/Autocomplete.config.js +123 -122
- package/dist/emotion/cjs/components/Avatar/Avatar.config.js +32 -31
- package/dist/emotion/cjs/components/Badge/Badge.clear.config.js +5 -4
- package/dist/emotion/cjs/components/Badge/Badge.config.js +17 -16
- package/dist/emotion/cjs/components/Breadcrumbs/Breadcrumbs.config.js +11 -10
- package/dist/emotion/cjs/components/Button/Button.config.js +44 -43
- package/dist/emotion/cjs/components/Button/Button.js +3 -3
- package/dist/emotion/cjs/components/ButtonGroup/ButtonGroup.config.js +39 -38
- package/dist/emotion/cjs/components/Calendar/Calendar.config.js +60 -59
- package/dist/emotion/cjs/components/Calendar/CalendarDouble.config.js +60 -59
- package/dist/emotion/cjs/components/Card/Card.config.js +2 -1
- package/dist/emotion/cjs/components/Carousel/Carousel.config.js +9 -8
- package/dist/emotion/cjs/components/Cell/Cell.config.js +41 -40
- package/dist/emotion/cjs/components/Checkbox/Checkbox.config.js +22 -21
- package/dist/emotion/cjs/components/Chip/Chip.config.js +53 -52
- package/dist/emotion/cjs/components/ChipGroup/ChipGroup.config.js +28 -27
- package/dist/emotion/cjs/components/Combobox/Combobox.config.js +160 -159
- package/dist/emotion/cjs/components/DatePicker/DatePicker.config.js +169 -168
- package/dist/emotion/cjs/components/Divider/Divider.config.js +5 -4
- package/dist/emotion/cjs/components/Drawer/Drawer.config.js +3 -2
- package/dist/emotion/cjs/components/Dropdown/Dropdown.config.js +21 -20
- package/dist/emotion/cjs/components/EmptyState/EmptyState.config.js +25 -24
- package/dist/emotion/cjs/components/IconButton/IconButton.config.js +29 -28
- package/dist/emotion/cjs/components/IconButton/IconButton.js +70 -1
- package/dist/emotion/cjs/components/Indicator/Indicator.config.js +8 -7
- package/dist/emotion/cjs/components/Link/Link.config.js +53 -52
- package/dist/emotion/cjs/components/Modal/Modal.config.js +6 -5
- package/dist/emotion/cjs/components/Notification/Notification.config.js +22 -21
- package/dist/emotion/cjs/components/NumberInput/NumberInput.config.js +30 -29
- package/dist/emotion/cjs/components/Pagination/Pagination.config.js +32 -31
- package/dist/emotion/cjs/components/Popover/Popover.config.js +3 -2
- package/dist/emotion/cjs/components/Progress/Progress.config.js +101 -100
- package/dist/emotion/cjs/components/Radiobox/Radiobox.config.js +19 -18
- package/dist/emotion/cjs/components/Range/Range.config.js +70 -69
- package/dist/emotion/cjs/components/Rating/Rating.config.js +33 -32
- package/dist/emotion/cjs/components/Segment/SegmentGroup.config.js +6 -5
- package/dist/emotion/cjs/components/Segment/SegmentItem.config.js +29 -28
- package/dist/emotion/cjs/components/Select/Select.config.js +126 -125
- package/dist/emotion/cjs/components/Sheet/Sheet.config.js +3 -2
- package/dist/emotion/cjs/components/Skeleton/LineSkeleton.config.js +35 -34
- package/dist/emotion/cjs/components/Slider/Slider.config.js +58 -57
- package/dist/emotion/cjs/components/Spinner/Spinner.config.js +8 -7
- package/dist/emotion/cjs/components/Steps/StepItem.config.js +8 -7
- package/dist/emotion/cjs/components/Steps/Steps.config.js +55 -54
- package/dist/emotion/cjs/components/Switch/Switch.config.js +26 -25
- package/dist/emotion/cjs/components/Table/Table.config.js +82 -81
- package/dist/emotion/cjs/components/Tabs/horizontal/HorizontalTabItem.config.js +74 -73
- package/dist/emotion/cjs/components/Tabs/horizontal/HorizontalTabs.config.js +22 -21
- package/dist/emotion/cjs/components/Tabs/vertical/VerticalTabItem.config.js +33 -32
- package/dist/emotion/cjs/components/Tabs/vertical/VerticalTabs.config.js +14 -13
- package/dist/emotion/cjs/components/TextArea/TextArea.clear.config.js +131 -130
- package/dist/emotion/cjs/components/TextArea/TextArea.config.js +160 -159
- package/dist/emotion/cjs/components/TextField/TextField.clear.config.js +119 -118
- package/dist/emotion/cjs/components/TextField/TextField.config.js +167 -166
- package/dist/emotion/cjs/components/TimePicker/TimePicker.config.js +79 -78
- package/dist/emotion/cjs/components/Toast/Toast.config.js +19 -18
- package/dist/emotion/cjs/components/ToastNew/ToastNew.config.js +11 -10
- package/dist/emotion/cjs/components/Tooltip/Tooltip.config.js +13 -12
- package/dist/emotion/cjs/components/Tour/Tour.config.js +2 -1
- package/dist/emotion/cjs/components/Tree/Tree.config.js +22 -21
- package/dist/emotion/cjs/components/Typography/Body.config.js +41 -40
- package/dist/emotion/cjs/components/Typography/Dspl.config.js +25 -24
- package/dist/emotion/cjs/components/Typography/Heading.config.js +41 -40
- package/dist/emotion/cjs/components/Typography/Text.config.js +33 -32
- package/dist/emotion/es/components/Accordion/Accordion.config.js +26 -25
- package/dist/emotion/es/components/Attach/Attach.config.js +121 -120
- package/dist/emotion/es/components/Autocomplete/Autocomplete.config.js +123 -122
- package/dist/emotion/es/components/Avatar/Avatar.config.js +32 -31
- package/dist/emotion/es/components/Badge/Badge.clear.config.js +5 -4
- package/dist/emotion/es/components/Badge/Badge.config.js +17 -16
- package/dist/emotion/es/components/Breadcrumbs/Breadcrumbs.config.js +11 -10
- package/dist/emotion/es/components/Button/Button.config.js +44 -43
- package/dist/emotion/es/components/Button/Button.js +3 -3
- package/dist/emotion/es/components/ButtonGroup/ButtonGroup.config.js +39 -38
- package/dist/emotion/es/components/Calendar/Calendar.config.js +60 -59
- package/dist/emotion/es/components/Calendar/CalendarDouble.config.js +60 -59
- package/dist/emotion/es/components/Card/Card.config.js +2 -1
- package/dist/emotion/es/components/Carousel/Carousel.config.js +9 -8
- package/dist/emotion/es/components/Cell/Cell.config.js +41 -40
- package/dist/emotion/es/components/Checkbox/Checkbox.config.js +22 -21
- package/dist/emotion/es/components/Chip/Chip.config.js +53 -52
- package/dist/emotion/es/components/ChipGroup/ChipGroup.config.js +28 -27
- package/dist/emotion/es/components/Combobox/Combobox.config.js +160 -159
- package/dist/emotion/es/components/DatePicker/DatePicker.config.js +169 -168
- package/dist/emotion/es/components/Divider/Divider.config.js +5 -4
- package/dist/emotion/es/components/Drawer/Drawer.config.js +3 -2
- package/dist/emotion/es/components/Dropdown/Dropdown.config.js +21 -20
- package/dist/emotion/es/components/EmptyState/EmptyState.config.js +25 -24
- package/dist/emotion/es/components/IconButton/IconButton.config.js +29 -28
- package/dist/emotion/es/components/IconButton/IconButton.js +25 -2
- package/dist/emotion/es/components/Indicator/Indicator.config.js +8 -7
- package/dist/emotion/es/components/Link/Link.config.js +53 -52
- package/dist/emotion/es/components/Modal/Modal.config.js +6 -5
- package/dist/emotion/es/components/Notification/Notification.config.js +22 -21
- package/dist/emotion/es/components/NumberInput/NumberInput.config.js +30 -29
- package/dist/emotion/es/components/Pagination/Pagination.config.js +32 -31
- package/dist/emotion/es/components/Popover/Popover.config.js +3 -2
- package/dist/emotion/es/components/Progress/Progress.config.js +101 -100
- package/dist/emotion/es/components/Radiobox/Radiobox.config.js +19 -18
- package/dist/emotion/es/components/Range/Range.config.js +70 -69
- package/dist/emotion/es/components/Rating/Rating.config.js +33 -32
- package/dist/emotion/es/components/Segment/SegmentGroup.config.js +6 -5
- package/dist/emotion/es/components/Segment/SegmentItem.config.js +29 -28
- package/dist/emotion/es/components/Select/Select.config.js +126 -125
- package/dist/emotion/es/components/Sheet/Sheet.config.js +3 -2
- package/dist/emotion/es/components/Skeleton/LineSkeleton.config.js +35 -34
- package/dist/emotion/es/components/Slider/Slider.config.js +58 -57
- package/dist/emotion/es/components/Spinner/Spinner.config.js +8 -7
- package/dist/emotion/es/components/Steps/StepItem.config.js +8 -7
- package/dist/emotion/es/components/Steps/Steps.config.js +55 -54
- package/dist/emotion/es/components/Switch/Switch.config.js +26 -25
- package/dist/emotion/es/components/Table/Table.config.js +82 -81
- package/dist/emotion/es/components/Tabs/horizontal/HorizontalTabItem.config.js +74 -73
- package/dist/emotion/es/components/Tabs/horizontal/HorizontalTabs.config.js +22 -21
- package/dist/emotion/es/components/Tabs/vertical/VerticalTabItem.config.js +33 -32
- package/dist/emotion/es/components/Tabs/vertical/VerticalTabs.config.js +14 -13
- package/dist/emotion/es/components/TextArea/TextArea.clear.config.js +131 -130
- package/dist/emotion/es/components/TextArea/TextArea.config.js +160 -159
- package/dist/emotion/es/components/TextField/TextField.clear.config.js +119 -118
- package/dist/emotion/es/components/TextField/TextField.config.js +167 -166
- package/dist/emotion/es/components/TimePicker/TimePicker.config.js +79 -78
- package/dist/emotion/es/components/Toast/Toast.config.js +19 -18
- package/dist/emotion/es/components/ToastNew/ToastNew.config.js +11 -10
- package/dist/emotion/es/components/Tooltip/Tooltip.config.js +13 -12
- package/dist/emotion/es/components/Tour/Tour.config.js +2 -1
- package/dist/emotion/es/components/Tree/Tree.config.js +22 -21
- package/dist/emotion/es/components/Typography/Body.config.js +41 -40
- package/dist/emotion/es/components/Typography/Dspl.config.js +25 -24
- package/dist/emotion/es/components/Typography/Heading.config.js +41 -40
- package/dist/emotion/es/components/Typography/Text.config.js +33 -32
- package/package.json +8 -8
- package/types/components/Autocomplete/Autocomplete.d.ts +8 -0
- package/types/components/Avatar/Avatar.d.ts +4 -4
- package/types/components/Combobox/Combobox.d.ts +8 -0
- package/types/components/DatePicker/DatePicker.d.ts +2 -0
- package/types/components/IconButton/IconButton.d.ts +28 -11
- package/types/components/Mask/Mask.d.ts +16 -0
- package/types/components/Rating/Rating.d.ts +1 -0
- package/types/components/Select/Select.d.ts +16 -0
- package/types/components/TextField/TextField.d.ts +32 -0
- package/types/components/TimePicker/TimePicker.d.ts +2 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { bodyM, bodyS, bodyXS, outlineAccent, outlineNegative, outlineNegativeHover, outlineSolidPrimary, outlineSolidPrimaryHover, surfaceAccent, surfaceClear, surfaceSolidCard, surfaceSolidCardActive, surfaceSolidCardBrightness, surfaceSolidCardHover, surfaceSolidDefault, surfaceSolidDefaultActive, surfaceSolidDefaultHover, surfaceSolidPrimary, surfaceSolidPrimaryActive, surfaceSolidPrimaryHover, textAccent, textNegative, textNegativeHover, textPrimary, textSecondary } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, textAreaTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -8,114 +9,114 @@ export const config = {
|
|
|
8
9
|
variations: {
|
|
9
10
|
view: {
|
|
10
11
|
default: css`
|
|
11
|
-
${textAreaTokens.borderColor}:
|
|
12
|
-
${textAreaTokens.borderColorHover}:
|
|
13
|
-
${textAreaTokens.borderColorFocus}:
|
|
14
|
-
${textAreaTokens.backgroundColor}:
|
|
15
|
-
${textAreaTokens.backgroundColorHover}:
|
|
16
|
-
${textAreaTokens.backgroundColorActive}:
|
|
17
|
-
${textAreaTokens.backgroundColorFocus}:
|
|
18
|
-
|
|
19
|
-
${textAreaTokens.inputColor}:
|
|
20
|
-
${textAreaTokens.inputColorFocus}:
|
|
21
|
-
${textAreaTokens.inputCaretColor}:
|
|
22
|
-
|
|
23
|
-
${textAreaTokens.placeholderColor}:
|
|
24
|
-
${textAreaTokens.placeholderColorFocus}:
|
|
25
|
-
|
|
26
|
-
${textAreaTokens.leftHelperColor}:
|
|
27
|
-
${textAreaTokens.rightHelperColor}:
|
|
28
|
-
|
|
29
|
-
${textAreaTokens.rightContentColor}:
|
|
30
|
-
|
|
31
|
-
${textAreaTokens.indicatorColor}:
|
|
32
|
-
${textAreaTokens.optionalColor}:
|
|
33
|
-
|
|
34
|
-
${textAreaTokens.scrollbarThumbBackgroundColor}:
|
|
35
|
-
${textAreaTokens.scrollbarThumbBackgroundColorHover}:
|
|
36
|
-
${textAreaTokens.scrollbarThumbBackgroundColorActive}:
|
|
37
|
-
${textAreaTokens.scrollbarTrackBackgroundColor}:
|
|
38
|
-
${textAreaTokens.scrollbarTrackBackgroundColorActive}:
|
|
39
|
-
${textAreaTokens.scrollbarTrackBackgroundColorHover}:
|
|
40
|
-
|
|
41
|
-
${textAreaTokens.dividerColor}:
|
|
42
|
-
${textAreaTokens.dividerColorHover}:
|
|
43
|
-
${textAreaTokens.dividerColorFocus}:
|
|
44
|
-
${textAreaTokens.titleCaptionColor}:
|
|
45
|
-
${textAreaTokens.hintIconColor}:
|
|
12
|
+
${textAreaTokens.borderColor}: ${outlineSolidPrimary};
|
|
13
|
+
${textAreaTokens.borderColorHover}: ${outlineSolidPrimaryHover};
|
|
14
|
+
${textAreaTokens.borderColorFocus}: ${outlineAccent};
|
|
15
|
+
${textAreaTokens.backgroundColor}: ${surfaceSolidCard};
|
|
16
|
+
${textAreaTokens.backgroundColorHover}: ${surfaceSolidCardHover};
|
|
17
|
+
${textAreaTokens.backgroundColorActive}: ${surfaceSolidCardActive};
|
|
18
|
+
${textAreaTokens.backgroundColorFocus}: ${surfaceSolidCard};
|
|
19
|
+
|
|
20
|
+
${textAreaTokens.inputColor}: ${textPrimary};
|
|
21
|
+
${textAreaTokens.inputColorFocus}: ${textPrimary};
|
|
22
|
+
${textAreaTokens.inputCaretColor}: ${textAccent};
|
|
23
|
+
|
|
24
|
+
${textAreaTokens.placeholderColor}: ${textSecondary};
|
|
25
|
+
${textAreaTokens.placeholderColorFocus}: ${textSecondary};
|
|
26
|
+
|
|
27
|
+
${textAreaTokens.leftHelperColor}: ${textSecondary};
|
|
28
|
+
${textAreaTokens.rightHelperColor}: ${textSecondary};
|
|
29
|
+
|
|
30
|
+
${textAreaTokens.rightContentColor}: ${textAccent};
|
|
31
|
+
|
|
32
|
+
${textAreaTokens.indicatorColor}: ${textNegative};
|
|
33
|
+
${textAreaTokens.optionalColor}: ${textSecondary};
|
|
34
|
+
|
|
35
|
+
${textAreaTokens.scrollbarThumbBackgroundColor}: ${surfaceSolidDefault};
|
|
36
|
+
${textAreaTokens.scrollbarThumbBackgroundColorHover}: ${surfaceSolidDefaultHover};
|
|
37
|
+
${textAreaTokens.scrollbarThumbBackgroundColorActive}: ${surfaceSolidDefaultActive};
|
|
38
|
+
${textAreaTokens.scrollbarTrackBackgroundColor}: ${surfaceSolidPrimary};
|
|
39
|
+
${textAreaTokens.scrollbarTrackBackgroundColorActive}: ${surfaceSolidPrimaryActive};
|
|
40
|
+
${textAreaTokens.scrollbarTrackBackgroundColorHover}: ${surfaceSolidPrimaryHover};
|
|
41
|
+
|
|
42
|
+
${textAreaTokens.dividerColor}: ${outlineSolidPrimary};
|
|
43
|
+
${textAreaTokens.dividerColorHover}: ${textSecondary};
|
|
44
|
+
${textAreaTokens.dividerColorFocus}: ${surfaceAccent};
|
|
45
|
+
${textAreaTokens.titleCaptionColor}: ${textSecondary};
|
|
46
|
+
${textAreaTokens.hintIconColor}: ${textSecondary};
|
|
46
47
|
`,
|
|
47
48
|
/**
|
|
48
49
|
* @deprecated
|
|
49
50
|
* использовать `default`
|
|
50
51
|
*/ primary: css`
|
|
51
|
-
${textAreaTokens.borderColor}:
|
|
52
|
-
${textAreaTokens.borderColorHover}:
|
|
53
|
-
${textAreaTokens.borderColorFocus}:
|
|
54
|
-
${textAreaTokens.backgroundColor}:
|
|
55
|
-
${textAreaTokens.backgroundColorHover}:
|
|
56
|
-
${textAreaTokens.backgroundColorActive}:
|
|
57
|
-
${textAreaTokens.backgroundColorFocus}:
|
|
58
|
-
${textAreaTokens.inputColor}:
|
|
59
|
-
${textAreaTokens.inputColorFocus}:
|
|
60
|
-
${textAreaTokens.inputCaretColor}:
|
|
61
|
-
${textAreaTokens.placeholderColor}:
|
|
62
|
-
${textAreaTokens.placeholderColorFocus}:
|
|
63
|
-
|
|
64
|
-
${textAreaTokens.leftHelperColor}:
|
|
65
|
-
${textAreaTokens.rightHelperColor}:
|
|
66
|
-
${textAreaTokens.indicatorColor}:
|
|
67
|
-
${textAreaTokens.optionalColor}:
|
|
68
|
-
${textAreaTokens.rightContentColor}:
|
|
69
|
-
|
|
70
|
-
${textAreaTokens.scrollbarThumbBackgroundColor}:
|
|
71
|
-
${textAreaTokens.scrollbarThumbBackgroundColorHover}:
|
|
72
|
-
${textAreaTokens.scrollbarThumbBackgroundColorActive}:
|
|
73
|
-
${textAreaTokens.scrollbarTrackBackgroundColor}:
|
|
74
|
-
${textAreaTokens.scrollbarTrackBackgroundColorActive}:
|
|
75
|
-
${textAreaTokens.scrollbarTrackBackgroundColorHover}:
|
|
76
|
-
|
|
77
|
-
${textAreaTokens.dividerColor}:
|
|
78
|
-
${textAreaTokens.dividerColorHover}:
|
|
79
|
-
${textAreaTokens.dividerColorFocus}:
|
|
80
|
-
${textAreaTokens.titleCaptionColor}:
|
|
81
|
-
${textAreaTokens.hintIconColor}:
|
|
52
|
+
${textAreaTokens.borderColor}: ${outlineSolidPrimary};
|
|
53
|
+
${textAreaTokens.borderColorHover}: ${outlineSolidPrimaryHover};
|
|
54
|
+
${textAreaTokens.borderColorFocus}: ${outlineAccent};
|
|
55
|
+
${textAreaTokens.backgroundColor}: ${surfaceSolidCard};
|
|
56
|
+
${textAreaTokens.backgroundColorHover}: ${surfaceSolidCardHover};
|
|
57
|
+
${textAreaTokens.backgroundColorActive}: ${surfaceSolidCardActive};
|
|
58
|
+
${textAreaTokens.backgroundColorFocus}: ${surfaceSolidCard};
|
|
59
|
+
${textAreaTokens.inputColor}: ${textPrimary};
|
|
60
|
+
${textAreaTokens.inputColorFocus}: ${textPrimary};
|
|
61
|
+
${textAreaTokens.inputCaretColor}: ${textAccent};
|
|
62
|
+
${textAreaTokens.placeholderColor}: ${textSecondary};
|
|
63
|
+
${textAreaTokens.placeholderColorFocus}: ${textSecondary};
|
|
64
|
+
|
|
65
|
+
${textAreaTokens.leftHelperColor}: ${textSecondary};
|
|
66
|
+
${textAreaTokens.rightHelperColor}: ${textSecondary};
|
|
67
|
+
${textAreaTokens.indicatorColor}: ${textNegative};
|
|
68
|
+
${textAreaTokens.optionalColor}: ${textSecondary};
|
|
69
|
+
${textAreaTokens.rightContentColor}: ${textAccent};
|
|
70
|
+
|
|
71
|
+
${textAreaTokens.scrollbarThumbBackgroundColor}: ${surfaceSolidDefault};
|
|
72
|
+
${textAreaTokens.scrollbarThumbBackgroundColorHover}: ${surfaceSolidDefaultHover};
|
|
73
|
+
${textAreaTokens.scrollbarThumbBackgroundColorActive}: ${surfaceSolidDefaultActive};
|
|
74
|
+
${textAreaTokens.scrollbarTrackBackgroundColor}: ${surfaceSolidPrimary};
|
|
75
|
+
${textAreaTokens.scrollbarTrackBackgroundColorActive}: ${surfaceSolidPrimaryActive};
|
|
76
|
+
${textAreaTokens.scrollbarTrackBackgroundColorHover}: ${surfaceSolidPrimaryHover};
|
|
77
|
+
|
|
78
|
+
${textAreaTokens.dividerColor}: ${outlineSolidPrimary};
|
|
79
|
+
${textAreaTokens.dividerColorHover}: ${textSecondary};
|
|
80
|
+
${textAreaTokens.dividerColorFocus}: ${surfaceAccent};
|
|
81
|
+
${textAreaTokens.titleCaptionColor}: ${textSecondary};
|
|
82
|
+
${textAreaTokens.hintIconColor}: ${textSecondary};
|
|
82
83
|
`,
|
|
83
84
|
negative: css`
|
|
84
|
-
${textAreaTokens.borderColor}:
|
|
85
|
-
${textAreaTokens.borderColorHover}:
|
|
86
|
-
${textAreaTokens.borderColorFocus}:
|
|
87
|
-
${textAreaTokens.backgroundColor}:
|
|
88
|
-
${textAreaTokens.backgroundColorHover}:
|
|
89
|
-
${textAreaTokens.backgroundColorActive}:
|
|
90
|
-
${textAreaTokens.backgroundColorFocus}:
|
|
91
|
-
|
|
92
|
-
${textAreaTokens.inputColor}:
|
|
93
|
-
${textAreaTokens.inputColorFocus}:
|
|
94
|
-
${textAreaTokens.inputCaretColor}:
|
|
95
|
-
|
|
96
|
-
${textAreaTokens.placeholderColor}:
|
|
97
|
-
${textAreaTokens.placeholderColorFocus}:
|
|
98
|
-
|
|
99
|
-
${textAreaTokens.leftHelperColor}:
|
|
100
|
-
${textAreaTokens.rightHelperColor}:
|
|
101
|
-
|
|
102
|
-
${textAreaTokens.rightContentColor}:
|
|
103
|
-
|
|
104
|
-
${textAreaTokens.indicatorColor}:
|
|
105
|
-
${textAreaTokens.optionalColor}:
|
|
106
|
-
|
|
107
|
-
${textAreaTokens.scrollbarThumbBackgroundColor}:
|
|
108
|
-
${textAreaTokens.scrollbarThumbBackgroundColorHover}:
|
|
109
|
-
${textAreaTokens.scrollbarThumbBackgroundColorActive}:
|
|
110
|
-
${textAreaTokens.scrollbarTrackBackgroundColor}:
|
|
111
|
-
${textAreaTokens.scrollbarTrackBackgroundColorActive}:
|
|
112
|
-
${textAreaTokens.scrollbarTrackBackgroundColorHover}:
|
|
113
|
-
|
|
114
|
-
${textAreaTokens.dividerColor}:
|
|
115
|
-
${textAreaTokens.dividerColorHover}:
|
|
85
|
+
${textAreaTokens.borderColor}: ${textNegative};
|
|
86
|
+
${textAreaTokens.borderColorHover}: ${textNegativeHover};
|
|
87
|
+
${textAreaTokens.borderColorFocus}: ${outlineAccent};
|
|
88
|
+
${textAreaTokens.backgroundColor}: ${surfaceSolidCard};
|
|
89
|
+
${textAreaTokens.backgroundColorHover}: ${surfaceSolidCardHover};
|
|
90
|
+
${textAreaTokens.backgroundColorActive}: ${surfaceSolidCardActive};
|
|
91
|
+
${textAreaTokens.backgroundColorFocus}: ${surfaceSolidCard};
|
|
92
|
+
|
|
93
|
+
${textAreaTokens.inputColor}: ${textPrimary};
|
|
94
|
+
${textAreaTokens.inputColorFocus}: ${textPrimary};
|
|
95
|
+
${textAreaTokens.inputCaretColor}: ${textNegative};
|
|
96
|
+
|
|
97
|
+
${textAreaTokens.placeholderColor}: ${textSecondary};
|
|
98
|
+
${textAreaTokens.placeholderColorFocus}: ${textSecondary};
|
|
99
|
+
|
|
100
|
+
${textAreaTokens.leftHelperColor}: ${textNegative};
|
|
101
|
+
${textAreaTokens.rightHelperColor}: ${textSecondary};
|
|
102
|
+
|
|
103
|
+
${textAreaTokens.rightContentColor}: ${textAccent};
|
|
104
|
+
|
|
105
|
+
${textAreaTokens.indicatorColor}: ${textNegative};
|
|
106
|
+
${textAreaTokens.optionalColor}: ${textSecondary};
|
|
107
|
+
|
|
108
|
+
${textAreaTokens.scrollbarThumbBackgroundColor}: ${surfaceSolidDefault};
|
|
109
|
+
${textAreaTokens.scrollbarThumbBackgroundColorHover}: ${surfaceSolidDefaultHover};
|
|
110
|
+
${textAreaTokens.scrollbarThumbBackgroundColorActive}: ${surfaceSolidDefaultActive};
|
|
111
|
+
${textAreaTokens.scrollbarTrackBackgroundColor}: ${surfaceSolidPrimary};
|
|
112
|
+
${textAreaTokens.scrollbarTrackBackgroundColorActive}: ${surfaceSolidPrimaryActive};
|
|
113
|
+
${textAreaTokens.scrollbarTrackBackgroundColorHover}: ${surfaceSolidPrimaryHover};
|
|
114
|
+
|
|
115
|
+
${textAreaTokens.dividerColor}: ${outlineNegative};
|
|
116
|
+
${textAreaTokens.dividerColorHover}: ${outlineNegativeHover};
|
|
116
117
|
${textAreaTokens.dividerColorFocus}: var(--outline-negative-focus);
|
|
117
|
-
${textAreaTokens.titleCaptionColor}:
|
|
118
|
-
${textAreaTokens.hintIconColor}:
|
|
118
|
+
${textAreaTokens.titleCaptionColor}: ${textSecondary};
|
|
119
|
+
${textAreaTokens.hintIconColor}: ${textSecondary};
|
|
119
120
|
`
|
|
120
121
|
},
|
|
121
122
|
size: {
|
|
@@ -144,27 +145,27 @@ export const config = {
|
|
|
144
145
|
|
|
145
146
|
${textAreaTokens.labelMarginBottom}: 0.5rem;
|
|
146
147
|
|
|
147
|
-
${textAreaTokens.labelOuterFontSize}:
|
|
148
|
-
${textAreaTokens.labelInnerFontFamily}:
|
|
149
|
-
${textAreaTokens.labelInnerFontSize}:
|
|
150
|
-
${textAreaTokens.labelInnerFontStyle}:
|
|
151
|
-
${textAreaTokens.labelInnerFontWeight}:
|
|
152
|
-
${textAreaTokens.labelInnerLetterSpacing}:
|
|
153
|
-
${textAreaTokens.labelInnerLineHeight}:
|
|
148
|
+
${textAreaTokens.labelOuterFontSize}: ${bodyS.fontSize};
|
|
149
|
+
${textAreaTokens.labelInnerFontFamily}: ${bodyS.fontFamily};
|
|
150
|
+
${textAreaTokens.labelInnerFontSize}: ${bodyS.fontSize};
|
|
151
|
+
${textAreaTokens.labelInnerFontStyle}: ${bodyS.fontStyle};
|
|
152
|
+
${textAreaTokens.labelInnerFontWeight}: ${bodyS.fontWeight};
|
|
153
|
+
${textAreaTokens.labelInnerLetterSpacing}: ${bodyS.letterSpacing};
|
|
154
|
+
${textAreaTokens.labelInnerLineHeight}: ${bodyS.lineHeight};
|
|
154
155
|
${textAreaTokens.labelInnerTop}: 0.375rem;
|
|
155
156
|
${textAreaTokens.labelInnerMarginBottom}: 0.125rem;
|
|
156
|
-
${textAreaTokens.inputFontFamily}:
|
|
157
|
-
${textAreaTokens.inputFontSize}:
|
|
158
|
-
${textAreaTokens.inputFontStyle}:
|
|
159
|
-
${textAreaTokens.inputFontWeight}:
|
|
160
|
-
${textAreaTokens.inputLetterSpacing}:
|
|
161
|
-
${textAreaTokens.inputLineHeight}:
|
|
162
|
-
${textAreaTokens.helpersFontFamily}:
|
|
163
|
-
${textAreaTokens.helpersFontSize}:
|
|
164
|
-
${textAreaTokens.helpersFontStyle}:
|
|
165
|
-
${textAreaTokens.helpersFontWeight}:
|
|
166
|
-
${textAreaTokens.helpersLetterSpacing}:
|
|
167
|
-
${textAreaTokens.helpersLineHeight}:
|
|
157
|
+
${textAreaTokens.inputFontFamily}: ${bodyM.fontFamily};
|
|
158
|
+
${textAreaTokens.inputFontSize}: ${bodyM.fontSize};
|
|
159
|
+
${textAreaTokens.inputFontStyle}: ${bodyM.fontStyle};
|
|
160
|
+
${textAreaTokens.inputFontWeight}: ${bodyM.fontWeight};
|
|
161
|
+
${textAreaTokens.inputLetterSpacing}: ${bodyM.letterSpacing};
|
|
162
|
+
${textAreaTokens.inputLineHeight}: ${bodyM.lineHeight};
|
|
163
|
+
${textAreaTokens.helpersFontFamily}: ${bodyS.fontFamily};
|
|
164
|
+
${textAreaTokens.helpersFontSize}: ${bodyS.fontSize};
|
|
165
|
+
${textAreaTokens.helpersFontStyle}: ${bodyS.fontStyle};
|
|
166
|
+
${textAreaTokens.helpersFontWeight}: ${bodyS.fontWeight};
|
|
167
|
+
${textAreaTokens.helpersLetterSpacing}: ${bodyS.letterSpacing};
|
|
168
|
+
${textAreaTokens.helpersLineHeight}: ${bodyS.lineHeight};
|
|
168
169
|
|
|
169
170
|
${textAreaTokens.indicatorSizeInner}: 0.375rem;
|
|
170
171
|
${textAreaTokens.indicatorSizeOuter}: 0.375rem;
|
|
@@ -182,21 +183,21 @@ export const config = {
|
|
|
182
183
|
${textAreaTokens.hintInnerLabelPlacementOffset}: -0.751rem -2rem auto auto;
|
|
183
184
|
|
|
184
185
|
${textAreaTokens.titleCaptionInnerLabelOffset}: 0.25rem;
|
|
185
|
-
${textAreaTokens.titleCaptionFontFamily}:
|
|
186
|
-
${textAreaTokens.titleCaptionFontSize}:
|
|
187
|
-
${textAreaTokens.titleCaptionFontStyle}:
|
|
188
|
-
${textAreaTokens.titleCaptionFontWeight}:
|
|
189
|
-
${textAreaTokens.titleCaptionLetterSpacing}:
|
|
190
|
-
${textAreaTokens.titleCaptionLineHeight}:
|
|
186
|
+
${textAreaTokens.titleCaptionFontFamily}: ${bodyXS.fontFamily};
|
|
187
|
+
${textAreaTokens.titleCaptionFontSize}: ${bodyXS.fontSize};
|
|
188
|
+
${textAreaTokens.titleCaptionFontStyle}: ${bodyXS.fontStyle};
|
|
189
|
+
${textAreaTokens.titleCaptionFontWeight}: ${bodyXS.fontWeight};
|
|
190
|
+
${textAreaTokens.titleCaptionLetterSpacing}: ${bodyXS.letterSpacing};
|
|
191
|
+
${textAreaTokens.titleCaptionLineHeight}: ${bodyXS.lineHeight};
|
|
191
192
|
`
|
|
192
193
|
},
|
|
193
194
|
hintView: {
|
|
194
195
|
// TODO: заменить тень на токен https://github.com/salute-developers/plasma/issues/1131
|
|
195
196
|
default: css`
|
|
196
|
-
${textAreaTokens.tooltipBackgroundColor}:
|
|
197
|
+
${textAreaTokens.tooltipBackgroundColor}: ${surfaceSolidCardBrightness};
|
|
197
198
|
${textAreaTokens.tooltipBoxShadow}: 0px 4px 12px 0px rgba(0, 0, 0, 0.16), 0px 1px 4px 0px rgba(0, 0, 0, 0.08);
|
|
198
|
-
${textAreaTokens.tooltipColor}:
|
|
199
|
-
${textAreaTokens.tooltipArrowBackground}:
|
|
199
|
+
${textAreaTokens.tooltipColor}: ${textPrimary};
|
|
200
|
+
${textAreaTokens.tooltipArrowBackground}: ${surfaceSolidCardBrightness};
|
|
200
201
|
`
|
|
201
202
|
},
|
|
202
203
|
hintSize: {
|
|
@@ -211,12 +212,12 @@ export const config = {
|
|
|
211
212
|
${textAreaTokens.tooltipMinHeight}: 2.5rem;
|
|
212
213
|
${textAreaTokens.tooltipBorderRadius}: 0.625rem;
|
|
213
214
|
|
|
214
|
-
${textAreaTokens.tooltipTextFontFamily}:
|
|
215
|
-
${textAreaTokens.tooltipTextFontSize}:
|
|
216
|
-
${textAreaTokens.tooltipTextFontStyle}:
|
|
217
|
-
${textAreaTokens.tooltipTextFontWeight}:
|
|
218
|
-
${textAreaTokens.tooltipTextFontLetterSpacing}:
|
|
219
|
-
${textAreaTokens.tooltipTextFontLineHeight}:
|
|
215
|
+
${textAreaTokens.tooltipTextFontFamily}: ${bodyS.fontFamily};
|
|
216
|
+
${textAreaTokens.tooltipTextFontSize}: ${bodyS.fontSize};
|
|
217
|
+
${textAreaTokens.tooltipTextFontStyle}: ${bodyS.fontStyle};
|
|
218
|
+
${textAreaTokens.tooltipTextFontWeight}: ${bodyS.fontWeight};
|
|
219
|
+
${textAreaTokens.tooltipTextFontLetterSpacing}: ${bodyS.letterSpacing};
|
|
220
|
+
${textAreaTokens.tooltipTextFontLineHeight}: ${bodyS.lineHeight};
|
|
220
221
|
|
|
221
222
|
${textAreaTokens.tooltipContentLeftMargin}: 0.375rem;
|
|
222
223
|
|
|
@@ -236,12 +237,12 @@ export const config = {
|
|
|
236
237
|
${textAreaTokens.tooltipMinHeight}: 2rem;
|
|
237
238
|
${textAreaTokens.tooltipBorderRadius}: 0.5rem;
|
|
238
239
|
|
|
239
|
-
${textAreaTokens.tooltipTextFontFamily}:
|
|
240
|
-
${textAreaTokens.tooltipTextFontSize}:
|
|
241
|
-
${textAreaTokens.tooltipTextFontStyle}:
|
|
242
|
-
${textAreaTokens.tooltipTextFontWeight}:
|
|
243
|
-
${textAreaTokens.tooltipTextFontLetterSpacing}:
|
|
244
|
-
${textAreaTokens.tooltipTextFontLineHeight}:
|
|
240
|
+
${textAreaTokens.tooltipTextFontFamily}: ${bodyXS.fontFamily};
|
|
241
|
+
${textAreaTokens.tooltipTextFontSize}: ${bodyXS.fontSize};
|
|
242
|
+
${textAreaTokens.tooltipTextFontStyle}: ${bodyXS.fontStyle};
|
|
243
|
+
${textAreaTokens.tooltipTextFontWeight}: ${bodyXS.fontWeight};
|
|
244
|
+
${textAreaTokens.tooltipTextFontLetterSpacing}: ${bodyXS.letterSpacing};
|
|
245
|
+
${textAreaTokens.tooltipTextFontLineHeight}: ${bodyXS.lineHeight};
|
|
245
246
|
|
|
246
247
|
${textAreaTokens.tooltipContentLeftMargin}: 0.25rem;
|
|
247
248
|
|
|
@@ -257,32 +258,32 @@ export const config = {
|
|
|
257
258
|
disabled: {
|
|
258
259
|
true: css`
|
|
259
260
|
${textAreaTokens.disabledOpacity}: 1;
|
|
260
|
-
${textAreaTokens.backgroundColor}:
|
|
261
|
-
${textAreaTokens.borderColor}:
|
|
262
|
-
${textAreaTokens.borderColorHover}:
|
|
263
|
-
${textAreaTokens.borderColorFocus}:
|
|
264
|
-
${textAreaTokens.inputColor}:
|
|
265
|
-
${textAreaTokens.inputColorFocus}:
|
|
266
|
-
${textAreaTokens.placeholderColorFocus}:
|
|
267
|
-
${textAreaTokens.labelOuterColor}:
|
|
268
|
-
${textAreaTokens.inputColorDisabled}:
|
|
261
|
+
${textAreaTokens.backgroundColor}: ${surfaceSolidPrimary};
|
|
262
|
+
${textAreaTokens.borderColor}: ${surfaceSolidPrimary};
|
|
263
|
+
${textAreaTokens.borderColorHover}: ${surfaceSolidPrimary};
|
|
264
|
+
${textAreaTokens.borderColorFocus}: ${surfaceSolidPrimary};
|
|
265
|
+
${textAreaTokens.inputColor}: ${textSecondary};
|
|
266
|
+
${textAreaTokens.inputColorFocus}: ${textSecondary};
|
|
267
|
+
${textAreaTokens.placeholderColorFocus}: ${textSecondary};
|
|
268
|
+
${textAreaTokens.labelOuterColor}: ${textPrimary};
|
|
269
|
+
${textAreaTokens.inputColorDisabled}: ${textSecondary};
|
|
269
270
|
`
|
|
270
271
|
},
|
|
271
272
|
readOnly: {
|
|
272
273
|
true: css`
|
|
273
274
|
${textAreaTokens.readOnlyOpacity}: 0.1;
|
|
274
|
-
${textAreaTokens.labelOuterColor}:
|
|
275
|
-
${textAreaTokens.inputColorReadOnly}:
|
|
275
|
+
${textAreaTokens.labelOuterColor}: ${textSecondary};
|
|
276
|
+
${textAreaTokens.inputColorReadOnly}: ${textPrimary};
|
|
276
277
|
${textAreaTokens.dividerColorReadOnly}: var(--surface-transparent-primary);
|
|
277
278
|
${textAreaTokens.contentSlotRightOpacityReadOnly}: 0.4;
|
|
278
|
-
${textAreaTokens.backgroundColor}:
|
|
279
|
-
${textAreaTokens.borderColor}:
|
|
280
|
-
${textAreaTokens.borderColorHover}:
|
|
281
|
-
${textAreaTokens.borderColorFocus}:
|
|
282
|
-
${textAreaTokens.inputColor}:
|
|
283
|
-
${textAreaTokens.inputColorFocus}:
|
|
284
|
-
${textAreaTokens.placeholderColorFocus}:
|
|
285
|
-
${textAreaTokens.labelOuterColor}:
|
|
279
|
+
${textAreaTokens.backgroundColor}: ${surfaceClear};
|
|
280
|
+
${textAreaTokens.borderColor}: ${surfaceClear};
|
|
281
|
+
${textAreaTokens.borderColorHover}: ${surfaceClear};
|
|
282
|
+
${textAreaTokens.borderColorFocus}: ${surfaceClear};
|
|
283
|
+
${textAreaTokens.inputColor}: ${textPrimary};
|
|
284
|
+
${textAreaTokens.inputColorFocus}: ${textPrimary};
|
|
285
|
+
${textAreaTokens.placeholderColorFocus}: ${textSecondary};
|
|
286
|
+
${textAreaTokens.labelOuterColor}: ${textSecondary};
|
|
286
287
|
`
|
|
287
288
|
}
|
|
288
289
|
}
|