@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, inverseTextPrimary, inverseTextSecondary, onDarkTextPrimary, outlineAccent, outlineNegative, outlineNegativeHover, outlineSolidPrimary, outlineSolidPrimaryHover, surfaceClear, surfaceNegative, surfaceSolidCard, surfaceSolidDefault, surfaceSolidDefaultHover, surfaceSolidPrimary, surfaceTransparentAccent, textAccent, textAccentActive, textAccentMinor, textNegative, textPrimary, textSecondary, textSecondaryActive, textSecondaryHover, textTertiary } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, comboboxTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const config = {
|
|
3
4
|
defaults: {
|
|
@@ -9,126 +10,126 @@ export const config = {
|
|
|
9
10
|
variations: {
|
|
10
11
|
view: {
|
|
11
12
|
default: css`
|
|
12
|
-
${tokens.textFieldColor}:
|
|
13
|
-
${tokens.textFieldClearColor}:
|
|
14
|
-
|
|
15
|
-
${tokens.textFieldPlaceholderColor}:
|
|
16
|
-
${tokens.textFieldPlaceholderColorFocus}:
|
|
17
|
-
${tokens.textFieldClearPlaceholderColor}:
|
|
18
|
-
${tokens.textFieldClearPlaceholderColorFocus}:
|
|
19
|
-
|
|
20
|
-
${tokens.textFieldBackgroundColor}:
|
|
21
|
-
${tokens.textFieldBackgroundColorFocus}:
|
|
22
|
-
${tokens.textFieldCaretColor}:
|
|
23
|
-
${tokens.textFieldTextBeforeColor}:
|
|
24
|
-
${tokens.textFieldTextAfterColor}:
|
|
25
|
-
${tokens.textFieldLabelColor}:
|
|
26
|
-
${tokens.textFieldLeftHelperColor}:
|
|
27
|
-
${tokens.textFieldFocusColor}:
|
|
28
|
-
|
|
29
|
-
${tokens.textFieldBorderColor}:
|
|
30
|
-
${tokens.textFieldBorderColorHover}:
|
|
31
|
-
${tokens.textFieldBorderColorFocus}:
|
|
32
|
-
|
|
33
|
-
${tokens.textFieldContentSlotColor}:
|
|
34
|
-
${tokens.textFieldContentSlotColorHover}:
|
|
35
|
-
${tokens.textFieldContentSlotColorActive}:
|
|
36
|
-
${tokens.textFieldContentSlotRightColor}:
|
|
37
|
-
${tokens.textFieldContentSlotRightColorHover}
|
|
38
|
-
${tokens.textFieldContentSlotRightColorActive}:
|
|
39
|
-
|
|
40
|
-
${tokens.textFieldIndicatorColor}:
|
|
41
|
-
${tokens.textFieldOptionalColor}:
|
|
42
|
-
|
|
43
|
-
${tokens.textFieldChipCloseIconColor}:
|
|
44
|
-
${tokens.textFieldChipCloseIconColorHover}:
|
|
45
|
-
${tokens.textFieldChipCloseIconColorReadonly}:
|
|
46
|
-
${tokens.textFieldChipColor}:
|
|
13
|
+
${tokens.textFieldColor}: ${textPrimary};
|
|
14
|
+
${tokens.textFieldClearColor}: ${textPrimary};
|
|
15
|
+
|
|
16
|
+
${tokens.textFieldPlaceholderColor}: ${textSecondary};
|
|
17
|
+
${tokens.textFieldPlaceholderColorFocus}: ${textTertiary};
|
|
18
|
+
${tokens.textFieldClearPlaceholderColor}: ${textSecondary};
|
|
19
|
+
${tokens.textFieldClearPlaceholderColorFocus}: ${textTertiary};
|
|
20
|
+
|
|
21
|
+
${tokens.textFieldBackgroundColor}: ${surfaceSolidCard};
|
|
22
|
+
${tokens.textFieldBackgroundColorFocus}: ${surfaceSolidCard};
|
|
23
|
+
${tokens.textFieldCaretColor}: ${textAccent};
|
|
24
|
+
${tokens.textFieldTextBeforeColor}: ${textSecondary};
|
|
25
|
+
${tokens.textFieldTextAfterColor}: ${textSecondary};
|
|
26
|
+
${tokens.textFieldLabelColor}: ${textPrimary};
|
|
27
|
+
${tokens.textFieldLeftHelperColor}: ${textSecondary};
|
|
28
|
+
${tokens.textFieldFocusColor}: ${textAccent};
|
|
29
|
+
|
|
30
|
+
${tokens.textFieldBorderColor}: ${outlineSolidPrimary};
|
|
31
|
+
${tokens.textFieldBorderColorHover}: ${outlineSolidPrimaryHover};
|
|
32
|
+
${tokens.textFieldBorderColorFocus}: ${outlineAccent};
|
|
33
|
+
|
|
34
|
+
${tokens.textFieldContentSlotColor}: ${textSecondary};
|
|
35
|
+
${tokens.textFieldContentSlotColorHover}: ${textSecondaryHover};
|
|
36
|
+
${tokens.textFieldContentSlotColorActive}: ${textSecondaryActive};
|
|
37
|
+
${tokens.textFieldContentSlotRightColor}: ${textAccent};
|
|
38
|
+
${tokens.textFieldContentSlotRightColorHover}:${textAccentMinor};
|
|
39
|
+
${tokens.textFieldContentSlotRightColorActive}: ${textAccentActive};
|
|
40
|
+
|
|
41
|
+
${tokens.textFieldIndicatorColor}: ${surfaceNegative};
|
|
42
|
+
${tokens.textFieldOptionalColor}: ${textTertiary};
|
|
43
|
+
|
|
44
|
+
${tokens.textFieldChipCloseIconColor}: ${textSecondary};
|
|
45
|
+
${tokens.textFieldChipCloseIconColorHover}: ${textSecondaryHover};
|
|
46
|
+
${tokens.textFieldChipCloseIconColorReadonly}: ${textSecondary};
|
|
47
|
+
${tokens.textFieldChipColor}: ${textPrimary};
|
|
47
48
|
${tokens.textFieldChipBackground}: var(--surface-transparent-secondary);
|
|
48
|
-
${tokens.textFieldChipColorHover}:
|
|
49
|
+
${tokens.textFieldChipColorHover}: ${textPrimary};
|
|
49
50
|
${tokens.textFieldChipBackgroundHover}: var(--surface-transparent-secondary-hover);
|
|
50
|
-
${tokens.textFieldChipColorActive}:
|
|
51
|
+
${tokens.textFieldChipColorActive}: ${textPrimary};
|
|
51
52
|
${tokens.textFieldChipBackgroundActive}: var(--surface-transparent-secondary-active);
|
|
52
53
|
${tokens.textFieldChipBackgroundReadOnly}: var(--surface-transparent-secondary);
|
|
53
|
-
${tokens.textFieldChipColorReadOnly}:
|
|
54
|
+
${tokens.textFieldChipColorReadOnly}: ${textPrimary};
|
|
54
55
|
${tokens.textFieldChipBackgroundReadOnlyHover}: var(--surface-transparent-secondary);
|
|
55
|
-
${tokens.textFieldChipColorReadOnlyHover}:
|
|
56
|
+
${tokens.textFieldChipColorReadOnlyHover}: ${textPrimary};
|
|
56
57
|
${tokens.textFieldChipOpacityReadonly}: 0.72;
|
|
57
|
-
${tokens.dropdownBorderColor}:
|
|
58
|
+
${tokens.dropdownBorderColor}: ${surfaceSolidPrimary};
|
|
58
59
|
|
|
59
|
-
${tokens.disclosureIconColor}:
|
|
60
|
-
${tokens.disclosureIconColorHover}:
|
|
61
|
-
${tokens.itemBackgroundHover}:
|
|
60
|
+
${tokens.disclosureIconColor}: ${textAccent};
|
|
61
|
+
${tokens.disclosureIconColorHover}: ${textAccentMinor};
|
|
62
|
+
${tokens.itemBackgroundHover}: ${surfaceTransparentAccent};
|
|
62
63
|
|
|
63
|
-
${tokens.dividerColor}:
|
|
64
|
+
${tokens.dividerColor}: ${surfaceSolidPrimary};
|
|
64
65
|
|
|
65
|
-
${tokens.itemIconColor}:
|
|
66
|
+
${tokens.itemIconColor}: ${textAccent};
|
|
66
67
|
|
|
67
|
-
${tokens.checkboxFillColor}:
|
|
68
|
-
${tokens.checkboxIconColor}:
|
|
68
|
+
${tokens.checkboxFillColor}: ${textAccent};
|
|
69
|
+
${tokens.checkboxIconColor}: ${onDarkTextPrimary};
|
|
69
70
|
${tokens.checkboxTriggerBorderCheckedColor}: none;
|
|
70
|
-
${tokens.checkboxTriggerBorderColor}:
|
|
71
|
+
${tokens.checkboxTriggerBorderColor}: ${outlineAccent};
|
|
71
72
|
`,
|
|
72
73
|
negative: css`
|
|
73
|
-
${tokens.textFieldColor}:
|
|
74
|
-
${tokens.textFieldClearColor}:
|
|
75
|
-
|
|
76
|
-
${tokens.textFieldPlaceholderColor}:
|
|
77
|
-
${tokens.textFieldPlaceholderColorFocus}:
|
|
78
|
-
${tokens.textFieldClearPlaceholderColor}:
|
|
79
|
-
${tokens.textFieldClearPlaceholderColorFocus}:
|
|
80
|
-
|
|
81
|
-
${tokens.textFieldBackgroundColor}:
|
|
82
|
-
${tokens.textFieldBackgroundColorFocus}:
|
|
83
|
-
${tokens.textFieldCaretColor}:
|
|
84
|
-
${tokens.textFieldTextBeforeColor}:
|
|
85
|
-
${tokens.textFieldTextAfterColor}:
|
|
86
|
-
${tokens.textFieldLabelColor}:
|
|
87
|
-
${tokens.textFieldLeftHelperColor}:
|
|
88
|
-
${tokens.textFieldFocusColor}:
|
|
89
|
-
|
|
90
|
-
${tokens.textFieldBorderColor}:
|
|
91
|
-
${tokens.textFieldBorderColorHover}:
|
|
92
|
-
${tokens.textFieldBorderColorFocus}:
|
|
93
|
-
|
|
94
|
-
${tokens.textFieldContentSlotColor}:
|
|
95
|
-
${tokens.textFieldContentSlotColorHover}:
|
|
96
|
-
${tokens.textFieldContentSlotColorActive}:
|
|
97
|
-
${tokens.textFieldContentSlotRightColor}:
|
|
98
|
-
${tokens.textFieldContentSlotRightColorHover}:
|
|
99
|
-
${tokens.textFieldContentSlotRightColorActive}:
|
|
100
|
-
|
|
101
|
-
${tokens.textFieldIndicatorColor}:
|
|
102
|
-
${tokens.textFieldOptionalColor}:
|
|
103
|
-
|
|
104
|
-
${tokens.textFieldChipCloseIconColor}:
|
|
105
|
-
${tokens.textFieldChipCloseIconColorHover}:
|
|
106
|
-
${tokens.textFieldChipCloseIconColorReadonly}:
|
|
107
|
-
${tokens.textFieldChipColor}:
|
|
74
|
+
${tokens.textFieldColor}: ${textPrimary};
|
|
75
|
+
${tokens.textFieldClearColor}: ${textPrimary};
|
|
76
|
+
|
|
77
|
+
${tokens.textFieldPlaceholderColor}: ${textSecondary};
|
|
78
|
+
${tokens.textFieldPlaceholderColorFocus}: ${textTertiary};
|
|
79
|
+
${tokens.textFieldClearPlaceholderColor}: ${textSecondary};
|
|
80
|
+
${tokens.textFieldClearPlaceholderColorFocus}: ${textTertiary};
|
|
81
|
+
|
|
82
|
+
${tokens.textFieldBackgroundColor}: ${surfaceSolidCard};
|
|
83
|
+
${tokens.textFieldBackgroundColorFocus}: ${surfaceSolidCard};
|
|
84
|
+
${tokens.textFieldCaretColor}: ${textAccent};
|
|
85
|
+
${tokens.textFieldTextBeforeColor}: ${textSecondary};
|
|
86
|
+
${tokens.textFieldTextAfterColor}: ${textSecondary};
|
|
87
|
+
${tokens.textFieldLabelColor}: ${textPrimary};
|
|
88
|
+
${tokens.textFieldLeftHelperColor}: ${textNegative};
|
|
89
|
+
${tokens.textFieldFocusColor}: ${textAccent};
|
|
90
|
+
|
|
91
|
+
${tokens.textFieldBorderColor}: ${outlineNegative};
|
|
92
|
+
${tokens.textFieldBorderColorHover}: ${outlineNegativeHover};
|
|
93
|
+
${tokens.textFieldBorderColorFocus}: ${outlineAccent};
|
|
94
|
+
|
|
95
|
+
${tokens.textFieldContentSlotColor}: ${textSecondary};
|
|
96
|
+
${tokens.textFieldContentSlotColorHover}: ${textSecondaryHover};
|
|
97
|
+
${tokens.textFieldContentSlotColorActive}: ${textSecondaryActive};
|
|
98
|
+
${tokens.textFieldContentSlotRightColor}: ${textAccent};
|
|
99
|
+
${tokens.textFieldContentSlotRightColorHover}: ${textAccentMinor};
|
|
100
|
+
${tokens.textFieldContentSlotRightColorActive}: ${textAccentActive};
|
|
101
|
+
|
|
102
|
+
${tokens.textFieldIndicatorColor}: ${surfaceNegative};
|
|
103
|
+
${tokens.textFieldOptionalColor}: ${textTertiary};
|
|
104
|
+
|
|
105
|
+
${tokens.textFieldChipCloseIconColor}: ${textSecondary};
|
|
106
|
+
${tokens.textFieldChipCloseIconColorHover}: ${textSecondaryHover};
|
|
107
|
+
${tokens.textFieldChipCloseIconColorReadonly}: ${textSecondary};
|
|
108
|
+
${tokens.textFieldChipColor}: ${textPrimary};
|
|
108
109
|
${tokens.textFieldChipBackground}: var(--surface-transparent-secondary);
|
|
109
|
-
${tokens.textFieldChipColorHover}:
|
|
110
|
+
${tokens.textFieldChipColorHover}: ${textPrimary};
|
|
110
111
|
${tokens.textFieldChipBackgroundHover}: var(--surface-transparent-secondary-hover);
|
|
111
|
-
${tokens.textFieldChipColorActive}:
|
|
112
|
+
${tokens.textFieldChipColorActive}: ${textPrimary};
|
|
112
113
|
${tokens.textFieldChipBackgroundActive}: var(--surface-transparent-secondary-active);
|
|
113
114
|
${tokens.textFieldChipBackgroundReadOnly}: var(--surface-transparent-secondary);
|
|
114
|
-
${tokens.textFieldChipColorReadOnly}:
|
|
115
|
+
${tokens.textFieldChipColorReadOnly}: ${textPrimary};
|
|
115
116
|
${tokens.textFieldChipBackgroundReadOnlyHover}: var(--surface-transparent-secondary);
|
|
116
|
-
${tokens.textFieldChipColorReadOnlyHover}:
|
|
117
|
+
${tokens.textFieldChipColorReadOnlyHover}: ${textPrimary};
|
|
117
118
|
${tokens.textFieldChipOpacityReadonly}: 0.72;
|
|
118
|
-
${tokens.dropdownBorderColor}:
|
|
119
|
+
${tokens.dropdownBorderColor}: ${surfaceSolidPrimary};
|
|
119
120
|
|
|
120
|
-
${tokens.disclosureIconColor}:
|
|
121
|
-
${tokens.disclosureIconColorHover}:
|
|
122
|
-
${tokens.itemBackgroundHover}:
|
|
121
|
+
${tokens.disclosureIconColor}: ${textAccent};
|
|
122
|
+
${tokens.disclosureIconColorHover}: ${textAccentMinor};
|
|
123
|
+
${tokens.itemBackgroundHover}: ${surfaceTransparentAccent};
|
|
123
124
|
|
|
124
|
-
${tokens.dividerColor}:
|
|
125
|
+
${tokens.dividerColor}: ${surfaceSolidPrimary};
|
|
125
126
|
|
|
126
|
-
${tokens.itemIconColor}:
|
|
127
|
+
${tokens.itemIconColor}: ${textAccent};
|
|
127
128
|
|
|
128
|
-
${tokens.checkboxFillColor}:
|
|
129
|
-
${tokens.checkboxIconColor}:
|
|
129
|
+
${tokens.checkboxFillColor}: ${textAccent};
|
|
130
|
+
${tokens.checkboxIconColor}: ${onDarkTextPrimary};
|
|
130
131
|
${tokens.checkboxTriggerBorderCheckedColor}: none;
|
|
131
|
-
${tokens.checkboxTriggerBorderColor}:
|
|
132
|
+
${tokens.checkboxTriggerBorderColor}: ${outlineAccent};
|
|
132
133
|
`
|
|
133
134
|
},
|
|
134
135
|
size: {
|
|
@@ -145,28 +146,28 @@ export const config = {
|
|
|
145
146
|
${tokens.textFieldTextBeforeMargin}: 0 0.25rem 0 0;
|
|
146
147
|
${tokens.textFieldTextAfterMargin}: 0 0 0 0.25rem;
|
|
147
148
|
|
|
148
|
-
${tokens.textFieldFontFamily}:
|
|
149
|
-
${tokens.textFieldFontSize}:
|
|
150
|
-
${tokens.textFieldFontStyle}:
|
|
151
|
-
${tokens.textFieldFontWeight}:
|
|
152
|
-
${tokens.textFieldLetterSpacing}:
|
|
153
|
-
${tokens.textFieldLineHeight}:
|
|
149
|
+
${tokens.textFieldFontFamily}: ${bodyM.fontFamily};
|
|
150
|
+
${tokens.textFieldFontSize}: ${bodyM.fontSize};
|
|
151
|
+
${tokens.textFieldFontStyle}: ${bodyM.fontStyle};
|
|
152
|
+
${tokens.textFieldFontWeight}: ${bodyM.fontWeight};
|
|
153
|
+
${tokens.textFieldLetterSpacing}: ${bodyM.letterSpacing};
|
|
154
|
+
${tokens.textFieldLineHeight}: ${bodyM.lineHeight};
|
|
154
155
|
|
|
155
156
|
${tokens.textFieldLabelOffset}: 0.5rem;
|
|
156
|
-
${tokens.textFieldLabelFontFamily}:
|
|
157
|
-
${tokens.textFieldLabelFontSize}:
|
|
158
|
-
${tokens.textFieldLabelFontStyle}:
|
|
159
|
-
${tokens.textFieldLabelFontWeight}:
|
|
160
|
-
${tokens.textFieldLabelLetterSpacing}:
|
|
161
|
-
${tokens.textFieldLabelLineHeight}:
|
|
162
|
-
|
|
163
|
-
${tokens.
|
|
164
|
-
${tokens.textFieldLeftHelperFontFamily}:
|
|
165
|
-
${tokens.textFieldLeftHelperFontSize}:
|
|
166
|
-
${tokens.textFieldLeftHelperFontStyle}:
|
|
167
|
-
${tokens.textFieldLeftHelperFontWeight}:
|
|
168
|
-
${tokens.textFieldLeftHelperLetterSpacing}:
|
|
169
|
-
${tokens.textFieldLeftHelperLineHeight}:
|
|
157
|
+
${tokens.textFieldLabelFontFamily}: ${bodyS.fontFamily};
|
|
158
|
+
${tokens.textFieldLabelFontSize}: ${bodyS.fontSize};
|
|
159
|
+
${tokens.textFieldLabelFontStyle}: ${bodyS.fontStyle};
|
|
160
|
+
${tokens.textFieldLabelFontWeight}: ${bodyS.fontWeight};
|
|
161
|
+
${tokens.textFieldLabelLetterSpacing}: ${bodyS.letterSpacing};
|
|
162
|
+
${tokens.textFieldLabelLineHeight}: ${bodyS.lineHeight};
|
|
163
|
+
|
|
164
|
+
${tokens.textFieldLeftHelperOffset}: 0.25rem 0 0 0;
|
|
165
|
+
${tokens.textFieldLeftHelperFontFamily}: ${bodyS.fontFamily};
|
|
166
|
+
${tokens.textFieldLeftHelperFontSize}: ${bodyS.fontSize};
|
|
167
|
+
${tokens.textFieldLeftHelperFontStyle}: ${bodyS.fontStyle};
|
|
168
|
+
${tokens.textFieldLeftHelperFontWeight}: ${bodyS.fontWeight};
|
|
169
|
+
${tokens.textFieldLeftHelperLetterSpacing}: ${bodyS.letterSpacing};
|
|
170
|
+
${tokens.textFieldLeftHelperLineHeight}: ${bodyS.lineHeight};
|
|
170
171
|
|
|
171
172
|
${tokens.textFieldLabelInnerPadding}: 0.3125rem 0 0 0;
|
|
172
173
|
${tokens.textFieldContentLabelInnerPadding}: 1.0625rem 0 0.3125rem 0;
|
|
@@ -189,12 +190,12 @@ export const config = {
|
|
|
189
190
|
${tokens.textFieldChipClearContentMarginLeft}: 0.375rem;
|
|
190
191
|
${tokens.textFieldChipClearContentMarginRight}: 0rem;
|
|
191
192
|
${tokens.textFieldChipCloseIconSize}: 1rem;
|
|
192
|
-
${tokens.textFieldChipFontFamily}:
|
|
193
|
-
${tokens.textFieldChipFontSize}:
|
|
194
|
-
${tokens.textFieldChipFontStyle}:
|
|
195
|
-
${tokens.textFieldChipFontWeight}:
|
|
196
|
-
${tokens.textFieldChipLetterSpacing}:
|
|
197
|
-
${tokens.textFieldChipLineHeight}:
|
|
193
|
+
${tokens.textFieldChipFontFamily}: ${bodyS.fontFamily};
|
|
194
|
+
${tokens.textFieldChipFontSize}: ${bodyS.fontSize};
|
|
195
|
+
${tokens.textFieldChipFontStyle}: ${bodyS.fontStyle};
|
|
196
|
+
${tokens.textFieldChipFontWeight}: ${bodyS.fontWeight};
|
|
197
|
+
${tokens.textFieldChipLetterSpacing}: ${bodyS.letterSpacing};
|
|
198
|
+
${tokens.textFieldChipLineHeight}: ${bodyS.lineHeight};
|
|
198
199
|
|
|
199
200
|
${tokens.emptyStatePadding}: 0.625rem 0.875rem 0.625rem 0.875rem;
|
|
200
201
|
${tokens.padding}: 0.125rem;
|
|
@@ -208,12 +209,12 @@ export const config = {
|
|
|
208
209
|
${tokens.itemIconSizeTight}: 1rem;
|
|
209
210
|
${tokens.itemIconMargin}: 0 0.375rem 0 0;
|
|
210
211
|
|
|
211
|
-
${tokens.fontFamily}:
|
|
212
|
-
${tokens.fontSize}:
|
|
213
|
-
${tokens.fontStyle}:
|
|
214
|
-
${tokens.fontWeight}:
|
|
215
|
-
${tokens.fontLetterSpacing}:
|
|
216
|
-
${tokens.fontLineHeight}:
|
|
212
|
+
${tokens.fontFamily}: ${bodyM.fontFamily};
|
|
213
|
+
${tokens.fontSize}: ${bodyM.fontSize};
|
|
214
|
+
${tokens.fontStyle}: ${bodyM.fontStyle};
|
|
215
|
+
${tokens.fontWeight}: ${bodyM.fontWeight};
|
|
216
|
+
${tokens.fontLetterSpacing}: ${bodyM.letterSpacing};
|
|
217
|
+
${tokens.fontLineHeight}: ${bodyM.lineHeight};
|
|
217
218
|
|
|
218
219
|
${tokens.cellPadding}: 0rem;
|
|
219
220
|
${tokens.cellPaddingLeftContent}: 0rem;
|
|
@@ -221,12 +222,12 @@ export const config = {
|
|
|
221
222
|
${tokens.cellPaddingRightContent}: 0rem;
|
|
222
223
|
${tokens.cellTextboxGap}: 0.125rem;
|
|
223
224
|
${tokens.cellGap}: 0.375rem;
|
|
224
|
-
${tokens.cellTitleFontFamily}:
|
|
225
|
-
${tokens.cellTitleFontSize}:
|
|
226
|
-
${tokens.cellTitleFontStyle}:
|
|
227
|
-
${tokens.cellTitleFontWeight}:
|
|
228
|
-
${tokens.cellTitleLetterSpacing}:
|
|
229
|
-
${tokens.cellTitleLineHeight}:
|
|
225
|
+
${tokens.cellTitleFontFamily}: ${bodyM.fontFamily};
|
|
226
|
+
${tokens.cellTitleFontSize}: ${bodyM.fontSize};
|
|
227
|
+
${tokens.cellTitleFontStyle}: ${bodyM.fontStyle};
|
|
228
|
+
${tokens.cellTitleFontWeight}: ${bodyM.fontWeight};
|
|
229
|
+
${tokens.cellTitleLetterSpacing}: ${bodyM.letterSpacing};
|
|
230
|
+
${tokens.cellTitleLineHeight}: ${bodyM.lineHeight};
|
|
230
231
|
|
|
231
232
|
${tokens.checkboxTriggerSize}: 1.25rem;
|
|
232
233
|
${tokens.checkboxTriggerSizeTight}: 0.875rem;
|
|
@@ -248,50 +249,50 @@ export const config = {
|
|
|
248
249
|
labelPlacement: {
|
|
249
250
|
inner: css`
|
|
250
251
|
${tokens.textFieldPlaceholderColor}: var(--plasma-input-label-color, var(--plasma-input-placeholder-color, var(--plasma-colors-secondary)));
|
|
251
|
-
${tokens.textFieldLabelInnerFontFamily}:
|
|
252
|
-
${tokens.textFieldLabelInnerFontSize}:
|
|
253
|
-
${tokens.textFieldLabelInnerFontStyle}:
|
|
254
|
-
${tokens.textFieldLabelInnerFontWeight}:
|
|
255
|
-
${tokens.textFieldLabelInnerLetterSpacing}:
|
|
256
|
-
${tokens.textFieldLabelInnerLineHeight}:
|
|
252
|
+
${tokens.textFieldLabelInnerFontFamily}: ${bodyXS.fontFamily};
|
|
253
|
+
${tokens.textFieldLabelInnerFontSize}: ${bodyXS.fontSize};
|
|
254
|
+
${tokens.textFieldLabelInnerFontStyle}: ${bodyXS.fontStyle};
|
|
255
|
+
${tokens.textFieldLabelInnerFontWeight}: ${bodyXS.fontWeight};
|
|
256
|
+
${tokens.textFieldLabelInnerLetterSpacing}: ${bodyXS.letterSpacing};
|
|
257
|
+
${tokens.textFieldLabelInnerLineHeight}: ${bodyXS.lineHeight};
|
|
257
258
|
`,
|
|
258
259
|
outer: css``
|
|
259
260
|
},
|
|
260
261
|
chipView: {
|
|
261
262
|
default: css`
|
|
262
|
-
${tokens.textFieldChipColor}:
|
|
263
|
-
${tokens.textFieldChipColorHover}:
|
|
264
|
-
${tokens.textFieldChipBackground}:
|
|
265
|
-
${tokens.textFieldChipBackgroundHover}:
|
|
266
|
-
${tokens.textFieldChipCloseIconColor}:
|
|
267
|
-
${tokens.textFieldChipCloseIconColorHover}:
|
|
263
|
+
${tokens.textFieldChipColor}: ${inverseTextPrimary};
|
|
264
|
+
${tokens.textFieldChipColorHover}: ${inverseTextPrimary};
|
|
265
|
+
${tokens.textFieldChipBackground}: ${surfaceSolidDefault};
|
|
266
|
+
${tokens.textFieldChipBackgroundHover}: ${surfaceSolidDefaultHover};
|
|
267
|
+
${tokens.textFieldChipCloseIconColor}: ${inverseTextSecondary};
|
|
268
|
+
${tokens.textFieldChipCloseIconColorHover}: ${inverseTextPrimary};
|
|
268
269
|
${tokens.textFieldChipOpacityReadonly}: 1;
|
|
269
270
|
`
|
|
270
271
|
},
|
|
271
272
|
disabled: {
|
|
272
273
|
true: css`
|
|
273
274
|
${tokens.textFieldDisabledOpacity}: 1;
|
|
274
|
-
${tokens.textFieldBackgroundColor}:
|
|
275
|
-
${tokens.textFieldBackgroundColorFocus}:
|
|
276
|
-
${tokens.textFieldBorderColor}:
|
|
277
|
-
${tokens.textFieldBorderColorHover}:
|
|
278
|
-
${tokens.textFieldBorderColorFocus}:
|
|
279
|
-
${tokens.textFieldColor}:
|
|
275
|
+
${tokens.textFieldBackgroundColor}: ${surfaceSolidPrimary};
|
|
276
|
+
${tokens.textFieldBackgroundColorFocus}: ${surfaceSolidPrimary};
|
|
277
|
+
${tokens.textFieldBorderColor}: ${surfaceSolidPrimary};
|
|
278
|
+
${tokens.textFieldBorderColorHover}: ${surfaceSolidPrimary};
|
|
279
|
+
${tokens.textFieldBorderColorFocus}: ${surfaceSolidPrimary};
|
|
280
|
+
${tokens.textFieldColor}: ${textSecondary};
|
|
280
281
|
`
|
|
281
282
|
},
|
|
282
283
|
readOnly: {
|
|
283
284
|
true: css`
|
|
284
|
-
${tokens.textFieldColorReadOnly}:
|
|
285
|
-
${tokens.textFieldBackgroundColorReadOnly}:
|
|
286
|
-
${tokens.textFieldPlaceholderColorReadOnly}:
|
|
287
|
-
${tokens.textFieldLeftHelperColorReadOnly}:
|
|
288
|
-
${tokens.textFieldLabelColorReadOnly}:
|
|
289
|
-
${tokens.textFieldColor}:
|
|
285
|
+
${tokens.textFieldColorReadOnly}: ${textPrimary};
|
|
286
|
+
${tokens.textFieldBackgroundColorReadOnly}: ${surfaceClear};
|
|
287
|
+
${tokens.textFieldPlaceholderColorReadOnly}: ${textSecondary};
|
|
288
|
+
${tokens.textFieldLeftHelperColorReadOnly}: ${textSecondary};
|
|
289
|
+
${tokens.textFieldLabelColorReadOnly}: ${textSecondary};
|
|
290
|
+
${tokens.textFieldColor}: ${textPrimary};
|
|
290
291
|
${tokens.disclosureIconColor}: transparent;
|
|
291
292
|
${tokens.disclosureIconColorHover}: transparent;
|
|
292
293
|
${tokens.textFieldPadding}: 0;
|
|
293
294
|
${tokens.textFieldLabelOffset}: 0.25rem;
|
|
294
|
-
${tokens.
|
|
295
|
+
${tokens.textFieldLeftHelperOffset}: 0rem 0 0 0;
|
|
295
296
|
${tokens.textFieldBorderColor}: transparent;
|
|
296
297
|
${tokens.textFieldBorderWidth}: 0;
|
|
297
298
|
`
|