@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.
Files changed (149) hide show
  1. package/dist/beta/cjs/Popover/Popover.closeInner.config.js +11 -10
  2. package/dist/beta/cjs/Popover/Popover.closeNone.config.js +5 -4
  3. package/dist/beta/cjs/Tooltip/Tooltip.config.js +16 -15
  4. package/dist/beta/es/Popover/Popover.closeInner.config.js +11 -10
  5. package/dist/beta/es/Popover/Popover.closeNone.config.js +5 -4
  6. package/dist/beta/es/Tooltip/Tooltip.config.js +16 -15
  7. package/dist/emotion/cjs/components/Accordion/Accordion.config.js +26 -25
  8. package/dist/emotion/cjs/components/Attach/Attach.config.js +121 -120
  9. package/dist/emotion/cjs/components/Autocomplete/Autocomplete.config.js +123 -122
  10. package/dist/emotion/cjs/components/Avatar/Avatar.config.js +32 -31
  11. package/dist/emotion/cjs/components/Badge/Badge.clear.config.js +5 -4
  12. package/dist/emotion/cjs/components/Badge/Badge.config.js +17 -16
  13. package/dist/emotion/cjs/components/Breadcrumbs/Breadcrumbs.config.js +11 -10
  14. package/dist/emotion/cjs/components/Button/Button.config.js +44 -43
  15. package/dist/emotion/cjs/components/Button/Button.js +3 -3
  16. package/dist/emotion/cjs/components/ButtonGroup/ButtonGroup.config.js +39 -38
  17. package/dist/emotion/cjs/components/Calendar/Calendar.config.js +60 -59
  18. package/dist/emotion/cjs/components/Calendar/CalendarDouble.config.js +60 -59
  19. package/dist/emotion/cjs/components/Card/Card.config.js +2 -1
  20. package/dist/emotion/cjs/components/Carousel/Carousel.config.js +9 -8
  21. package/dist/emotion/cjs/components/Cell/Cell.config.js +41 -40
  22. package/dist/emotion/cjs/components/Checkbox/Checkbox.config.js +22 -21
  23. package/dist/emotion/cjs/components/Chip/Chip.config.js +53 -52
  24. package/dist/emotion/cjs/components/ChipGroup/ChipGroup.config.js +28 -27
  25. package/dist/emotion/cjs/components/Combobox/Combobox.config.js +160 -159
  26. package/dist/emotion/cjs/components/DatePicker/DatePicker.config.js +169 -168
  27. package/dist/emotion/cjs/components/Divider/Divider.config.js +5 -4
  28. package/dist/emotion/cjs/components/Drawer/Drawer.config.js +3 -2
  29. package/dist/emotion/cjs/components/Dropdown/Dropdown.config.js +21 -20
  30. package/dist/emotion/cjs/components/EmptyState/EmptyState.config.js +25 -24
  31. package/dist/emotion/cjs/components/IconButton/IconButton.config.js +29 -28
  32. package/dist/emotion/cjs/components/IconButton/IconButton.js +70 -1
  33. package/dist/emotion/cjs/components/Indicator/Indicator.config.js +8 -7
  34. package/dist/emotion/cjs/components/Link/Link.config.js +53 -52
  35. package/dist/emotion/cjs/components/Modal/Modal.config.js +6 -5
  36. package/dist/emotion/cjs/components/Notification/Notification.config.js +22 -21
  37. package/dist/emotion/cjs/components/NumberInput/NumberInput.config.js +30 -29
  38. package/dist/emotion/cjs/components/Pagination/Pagination.config.js +32 -31
  39. package/dist/emotion/cjs/components/Popover/Popover.config.js +3 -2
  40. package/dist/emotion/cjs/components/Progress/Progress.config.js +101 -100
  41. package/dist/emotion/cjs/components/Radiobox/Radiobox.config.js +19 -18
  42. package/dist/emotion/cjs/components/Range/Range.config.js +70 -69
  43. package/dist/emotion/cjs/components/Rating/Rating.config.js +33 -32
  44. package/dist/emotion/cjs/components/Segment/SegmentGroup.config.js +6 -5
  45. package/dist/emotion/cjs/components/Segment/SegmentItem.config.js +29 -28
  46. package/dist/emotion/cjs/components/Select/Select.config.js +126 -125
  47. package/dist/emotion/cjs/components/Sheet/Sheet.config.js +3 -2
  48. package/dist/emotion/cjs/components/Skeleton/LineSkeleton.config.js +35 -34
  49. package/dist/emotion/cjs/components/Slider/Slider.config.js +58 -57
  50. package/dist/emotion/cjs/components/Spinner/Spinner.config.js +8 -7
  51. package/dist/emotion/cjs/components/Steps/StepItem.config.js +8 -7
  52. package/dist/emotion/cjs/components/Steps/Steps.config.js +55 -54
  53. package/dist/emotion/cjs/components/Switch/Switch.config.js +26 -25
  54. package/dist/emotion/cjs/components/Table/Table.config.js +82 -81
  55. package/dist/emotion/cjs/components/Tabs/horizontal/HorizontalTabItem.config.js +74 -73
  56. package/dist/emotion/cjs/components/Tabs/horizontal/HorizontalTabs.config.js +22 -21
  57. package/dist/emotion/cjs/components/Tabs/vertical/VerticalTabItem.config.js +33 -32
  58. package/dist/emotion/cjs/components/Tabs/vertical/VerticalTabs.config.js +14 -13
  59. package/dist/emotion/cjs/components/TextArea/TextArea.clear.config.js +131 -130
  60. package/dist/emotion/cjs/components/TextArea/TextArea.config.js +160 -159
  61. package/dist/emotion/cjs/components/TextField/TextField.clear.config.js +119 -118
  62. package/dist/emotion/cjs/components/TextField/TextField.config.js +167 -166
  63. package/dist/emotion/cjs/components/TimePicker/TimePicker.config.js +79 -78
  64. package/dist/emotion/cjs/components/Toast/Toast.config.js +19 -18
  65. package/dist/emotion/cjs/components/ToastNew/ToastNew.config.js +11 -10
  66. package/dist/emotion/cjs/components/Tooltip/Tooltip.config.js +13 -12
  67. package/dist/emotion/cjs/components/Tour/Tour.config.js +2 -1
  68. package/dist/emotion/cjs/components/Tree/Tree.config.js +22 -21
  69. package/dist/emotion/cjs/components/Typography/Body.config.js +41 -40
  70. package/dist/emotion/cjs/components/Typography/Dspl.config.js +25 -24
  71. package/dist/emotion/cjs/components/Typography/Heading.config.js +41 -40
  72. package/dist/emotion/cjs/components/Typography/Text.config.js +33 -32
  73. package/dist/emotion/es/components/Accordion/Accordion.config.js +26 -25
  74. package/dist/emotion/es/components/Attach/Attach.config.js +121 -120
  75. package/dist/emotion/es/components/Autocomplete/Autocomplete.config.js +123 -122
  76. package/dist/emotion/es/components/Avatar/Avatar.config.js +32 -31
  77. package/dist/emotion/es/components/Badge/Badge.clear.config.js +5 -4
  78. package/dist/emotion/es/components/Badge/Badge.config.js +17 -16
  79. package/dist/emotion/es/components/Breadcrumbs/Breadcrumbs.config.js +11 -10
  80. package/dist/emotion/es/components/Button/Button.config.js +44 -43
  81. package/dist/emotion/es/components/Button/Button.js +3 -3
  82. package/dist/emotion/es/components/ButtonGroup/ButtonGroup.config.js +39 -38
  83. package/dist/emotion/es/components/Calendar/Calendar.config.js +60 -59
  84. package/dist/emotion/es/components/Calendar/CalendarDouble.config.js +60 -59
  85. package/dist/emotion/es/components/Card/Card.config.js +2 -1
  86. package/dist/emotion/es/components/Carousel/Carousel.config.js +9 -8
  87. package/dist/emotion/es/components/Cell/Cell.config.js +41 -40
  88. package/dist/emotion/es/components/Checkbox/Checkbox.config.js +22 -21
  89. package/dist/emotion/es/components/Chip/Chip.config.js +53 -52
  90. package/dist/emotion/es/components/ChipGroup/ChipGroup.config.js +28 -27
  91. package/dist/emotion/es/components/Combobox/Combobox.config.js +160 -159
  92. package/dist/emotion/es/components/DatePicker/DatePicker.config.js +169 -168
  93. package/dist/emotion/es/components/Divider/Divider.config.js +5 -4
  94. package/dist/emotion/es/components/Drawer/Drawer.config.js +3 -2
  95. package/dist/emotion/es/components/Dropdown/Dropdown.config.js +21 -20
  96. package/dist/emotion/es/components/EmptyState/EmptyState.config.js +25 -24
  97. package/dist/emotion/es/components/IconButton/IconButton.config.js +29 -28
  98. package/dist/emotion/es/components/IconButton/IconButton.js +25 -2
  99. package/dist/emotion/es/components/Indicator/Indicator.config.js +8 -7
  100. package/dist/emotion/es/components/Link/Link.config.js +53 -52
  101. package/dist/emotion/es/components/Modal/Modal.config.js +6 -5
  102. package/dist/emotion/es/components/Notification/Notification.config.js +22 -21
  103. package/dist/emotion/es/components/NumberInput/NumberInput.config.js +30 -29
  104. package/dist/emotion/es/components/Pagination/Pagination.config.js +32 -31
  105. package/dist/emotion/es/components/Popover/Popover.config.js +3 -2
  106. package/dist/emotion/es/components/Progress/Progress.config.js +101 -100
  107. package/dist/emotion/es/components/Radiobox/Radiobox.config.js +19 -18
  108. package/dist/emotion/es/components/Range/Range.config.js +70 -69
  109. package/dist/emotion/es/components/Rating/Rating.config.js +33 -32
  110. package/dist/emotion/es/components/Segment/SegmentGroup.config.js +6 -5
  111. package/dist/emotion/es/components/Segment/SegmentItem.config.js +29 -28
  112. package/dist/emotion/es/components/Select/Select.config.js +126 -125
  113. package/dist/emotion/es/components/Sheet/Sheet.config.js +3 -2
  114. package/dist/emotion/es/components/Skeleton/LineSkeleton.config.js +35 -34
  115. package/dist/emotion/es/components/Slider/Slider.config.js +58 -57
  116. package/dist/emotion/es/components/Spinner/Spinner.config.js +8 -7
  117. package/dist/emotion/es/components/Steps/StepItem.config.js +8 -7
  118. package/dist/emotion/es/components/Steps/Steps.config.js +55 -54
  119. package/dist/emotion/es/components/Switch/Switch.config.js +26 -25
  120. package/dist/emotion/es/components/Table/Table.config.js +82 -81
  121. package/dist/emotion/es/components/Tabs/horizontal/HorizontalTabItem.config.js +74 -73
  122. package/dist/emotion/es/components/Tabs/horizontal/HorizontalTabs.config.js +22 -21
  123. package/dist/emotion/es/components/Tabs/vertical/VerticalTabItem.config.js +33 -32
  124. package/dist/emotion/es/components/Tabs/vertical/VerticalTabs.config.js +14 -13
  125. package/dist/emotion/es/components/TextArea/TextArea.clear.config.js +131 -130
  126. package/dist/emotion/es/components/TextArea/TextArea.config.js +160 -159
  127. package/dist/emotion/es/components/TextField/TextField.clear.config.js +119 -118
  128. package/dist/emotion/es/components/TextField/TextField.config.js +167 -166
  129. package/dist/emotion/es/components/TimePicker/TimePicker.config.js +79 -78
  130. package/dist/emotion/es/components/Toast/Toast.config.js +19 -18
  131. package/dist/emotion/es/components/ToastNew/ToastNew.config.js +11 -10
  132. package/dist/emotion/es/components/Tooltip/Tooltip.config.js +13 -12
  133. package/dist/emotion/es/components/Tour/Tour.config.js +2 -1
  134. package/dist/emotion/es/components/Tree/Tree.config.js +22 -21
  135. package/dist/emotion/es/components/Typography/Body.config.js +41 -40
  136. package/dist/emotion/es/components/Typography/Dspl.config.js +25 -24
  137. package/dist/emotion/es/components/Typography/Heading.config.js +41 -40
  138. package/dist/emotion/es/components/Typography/Text.config.js +33 -32
  139. package/package.json +8 -8
  140. package/types/components/Autocomplete/Autocomplete.d.ts +8 -0
  141. package/types/components/Avatar/Avatar.d.ts +4 -4
  142. package/types/components/Combobox/Combobox.d.ts +8 -0
  143. package/types/components/DatePicker/DatePicker.d.ts +2 -0
  144. package/types/components/IconButton/IconButton.d.ts +28 -11
  145. package/types/components/Mask/Mask.d.ts +16 -0
  146. package/types/components/Rating/Rating.d.ts +1 -0
  147. package/types/components/Select/Select.d.ts +16 -0
  148. package/types/components/TextField/TextField.d.ts +32 -0
  149. 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}: var(--surface-accent);
11
- ${tokens.paginationDotActiveBackground}: var(--text-primary);
12
- ${tokens.controlIconButtonColor}: var(--text-accent);
13
- ${tokens.controlIconButtonBackgroundColor}: var(--surface-solid-primary);
14
- ${tokens.controlIconButtonColorHover}: var(--text-accent-minor);
15
- ${tokens.controlIconButtonBackgroundColorHover}: var(--surface-solid-primary-hover);
16
- ${tokens.controlIconButtonColorActive}: var(--text-accent-active);
17
- ${tokens.controlIconButtonBackgroundColorActive}: var(--surface-solid-primary-active);
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}: var(--text-primary);
7
- ${cellTokens.cellLabelColor}: var(--text-secondary);
8
- ${cellTokens.cellTitleColor}: var(--text-primary);
9
- ${cellTokens.cellSubtitleColor}: var(--text-secondary);
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}: var(--plasma-typo-body-s-font-family);
26
- ${cellTokens.cellLabelFontSize}: var(--plasma-typo-body-s-font-size);
27
- ${cellTokens.cellLabelFontStyle}: var(--plasma-typo-body-s-font-style);
28
- ${cellTokens.cellLabelFontWeight}: var(--plasma-typo-body-s-font-weight);
29
- ${cellTokens.cellLabelLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
30
- ${cellTokens.cellLabelLineHeight}: var(--plasma-typo-body-s-line-height);
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}: var(--plasma-typo-body-m-font-family);
33
- ${cellTokens.cellTitleFontSize}: var(--plasma-typo-body-m-font-size);
34
- ${cellTokens.cellTitleFontStyle}: var(--plasma-typo-body-m-font-style);
35
- ${cellTokens.cellTitleFontWeight}: var(--plasma-typo-body-m-font-weight);
36
- ${cellTokens.cellTitleLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
37
- ${cellTokens.cellTitleLineHeight}: var(--plasma-typo-body-m-line-height);
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}: var(--plasma-typo-body-s-font-family);
40
- ${cellTokens.cellSubtitleFontSize}: var(--plasma-typo-body-s-font-size);
41
- ${cellTokens.cellSubtitleFontStyle}: var(--plasma-typo-body-s-font-style);
42
- ${cellTokens.cellSubtitleFontWeight}: var(--plasma-typo-body-s-font-weight);
43
- ${cellTokens.cellSubtitleLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
44
- ${cellTokens.cellSubtitleLineHeight}: var(--plasma-typo-body-s-line-height);
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}: var(--plasma-typo-body-xs-font-family);
58
- ${cellTokens.cellLabelFontSize}: var(--plasma-typo-body-xs-font-size);
59
- ${cellTokens.cellLabelFontStyle}: var(--plasma-typo-body-xs-font-style);
60
- ${cellTokens.cellLabelFontWeight}: var(--plasma-typo-body-xs-font-weight);
61
- ${cellTokens.cellLabelLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
62
- ${cellTokens.cellLabelLineHeight}: var(--plasma-typo-body-xs-line-height);
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}: var(--plasma-typo-body-s-font-family);
65
- ${cellTokens.cellTitleFontSize}: var(--plasma-typo-body-s-font-size);
66
- ${cellTokens.cellTitleFontStyle}: var(--plasma-typo-body-s-font-style);
67
- ${cellTokens.cellTitleFontWeight}: var(--plasma-typo-body-s-font-weight);
68
- ${cellTokens.cellTitleLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
69
- ${cellTokens.cellTitleLineHeight}: var(--plasma-typo-body-s-line-height);
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}: var(--plasma-typo-body-xs-font-family);
72
- ${cellTokens.cellSubtitleFontSize}: var(--plasma-typo-body-xs-font-size);
73
- ${cellTokens.cellSubtitleFontStyle}: var(--plasma-typo-body-xs-font-style);
74
- ${cellTokens.cellSubtitleFontWeight}: var(--plasma-typo-body-xs-font-weight);
75
- ${cellTokens.cellSubtitleLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
76
- ${cellTokens.cellSubtitleLineHeight}: var(--plasma-typo-body-xs-line-height);
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}: var(--plasma-typo-body-m-font-family);
20
- ${checkboxTokens.labelFontSize}: var(--plasma-typo-body-m-font-size);
21
- ${checkboxTokens.labelFontStyle}: var(--plasma-typo-body-m-font-style);
22
- ${checkboxTokens.labelFontWeight}: var(--plasma-typo-body-m-font-weight);
23
- ${checkboxTokens.labelLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
24
- ${checkboxTokens.labelLineHeight}: var(--plasma-typo-body-m-line-height);
25
- ${checkboxTokens.descriptionFontFamily}: var(--plasma-typo-body-s-font-family);
26
- ${checkboxTokens.descriptionFontSize}: var(--plasma-typo-body-s-font-size);
27
- ${checkboxTokens.descriptionFontStyle}: var(--plasma-typo-body-s-font-style);
28
- ${checkboxTokens.descriptionFontWeight}: var(--plasma-typo-body-s-font-weight);
29
- ${checkboxTokens.descriptionLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
30
- ${checkboxTokens.descriptionLineHeight}: var(--plasma-typo-body-s-line-height);
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}: var(--text-accent);
36
- ${checkboxTokens.iconColor}: var(--on-dark-text-primary);
37
- ${checkboxTokens.labelColor}: var(--text-primary);
38
- ${checkboxTokens.descriptionColor}: var(--text-secondary);
39
- ${checkboxTokens.triggerBorderColor}: var(--outline-accent);
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}: var(--outline-solid-primary);
47
- ${checkboxTokens.fillColor}: var(--surface-solid-tertiary);
48
- ${checkboxTokens.labelColor}: var(--text-secondary);
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}: var(--text-accent);
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}: var(--text-primary);
12
- ${chipTokens.background}: var(--surface-solid-card);
13
- ${chipTokens.colorHover}: var(--text-primary);
14
- ${chipTokens.backgroundHover}: var(--surface-solid-card);
15
- ${chipTokens.colorActive}: var(--text-primary);
16
- ${chipTokens.backgroundActive}: var(--surface-solid-card);
17
- ${chipTokens.backgroundReadOnly}: var(--surface-solid-card);
18
- ${chipTokens.colorReadOnly}: var(--text-primary);
19
- ${chipTokens.backgroundReadOnlyHover}: var(--surface-solid-card);
20
- ${chipTokens.colorReadOnlyHover}: var(--text-primary);
21
- ${chipTokens.closeIconColor}: var(--text-accent);
22
- ${chipTokens.closeIconColorHover}: var(--text-accent-minor);
23
- ${chipTokens.leftContentColor}: var(--text-accent);
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}: var(--text-primary);
27
- ${chipTokens.background}: var(--surface-solid-secondary);
28
- ${chipTokens.colorHover}: var(--text-primary);
29
- ${chipTokens.backgroundHover}: var(--surface-solid-secondary);
30
- ${chipTokens.colorActive}: var(--text-primary);
31
- ${chipTokens.backgroundActive}: var(--surface-solid-secondary);
32
- ${chipTokens.backgroundReadOnly}: var(--surface-solid-primary);
33
- ${chipTokens.colorReadOnly}: var(--text-primary);
34
- ${chipTokens.backgroundReadOnlyHover}: var(--surface-solid-primary);
35
- ${chipTokens.colorReadOnlyHover}: var(--text-primary);
36
- ${chipTokens.closeIconColor}: var(--text-accent);
37
- ${chipTokens.closeIconColorHover}: var(--text-accent-minor);
38
- ${chipTokens.leftContentColor}: var(--text-accent);
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}: var(--on-dark-text-primary);
42
- ${chipTokens.background}: var(--surface-accent);
43
- ${chipTokens.colorHover}: var(--on-dark-text-primary);
44
- ${chipTokens.backgroundHover}: var(--surface-accent-hover);
45
- ${chipTokens.colorActive}: var(--on-dark-text-primary);
46
- ${chipTokens.backgroundActive}: var(--surface-accent-active);
47
- ${chipTokens.backgroundReadOnly}: var(--surface-accent);
48
- ${chipTokens.colorReadOnly}: var(--on-dark-text-primary);
49
- ${chipTokens.backgroundReadOnlyHover}: var(--surface-accent);
50
- ${chipTokens.colorReadOnlyHover}: var(--on-dark-text-primary);
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}: var(--on-dark-text-primary);
53
- ${chipTokens.closeIconColorHover}: var(--on-dark-text-primary-hover);
54
- ${chipTokens.leftContentColor}: var(--on-dark-text-primary);
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}: var(--plasma-typo-body-m-font-family);
66
- ${chipTokens.fontSize}: var(--plasma-typo-body-m-font-size);
67
- ${chipTokens.fontStyle}: var(--plasma-typo-body-m-font-style);
68
- ${chipTokens.fontWeight}: var(--plasma-typo-body-m-font-weight);
69
- ${chipTokens.letterSpacing}: var(--plasma-typo-body-m-letter-spacing);
70
- ${chipTokens.lineHeight}: var(--plasma-typo-body-m-line-height);
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}: var(--plasma-typo-body-s-font-family);
88
- ${chipTokens.fontSize}: var(--plasma-typo-body-s-font-size);
89
- ${chipTokens.fontStyle}: var(--plasma-typo-body-s-font-style);
90
- ${chipTokens.fontWeight}: var(--plasma-typo-body-s-font-weight);
91
- ${chipTokens.letterSpacing}: var(--plasma-typo-body-s-letter-spacing);
92
- ${chipTokens.lineHeight}: var(--plasma-typo-body-s-line-height);
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}: var(--text-accent);
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}: var(--surface-accent);
11
- ${tokens.chipColor}: var(--inverse-text-primary);
12
- ${tokens.chipBackground}: var(--surface-solid-default);
13
- ${tokens.chipColorHover}: var(--inverse-text-primary);
14
- ${tokens.chipBackgroundHover}: var(--surface-solid-default);
15
- ${tokens.chipColorActive}: var(--inverse-text-primary);
16
- ${tokens.chipBackgroundActive}: var(--surface-solid-default);
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}: var(--surface-accent);
20
- ${tokens.chipColor}: var(--text-primary);
21
- ${tokens.chipBackground}: var(--surface-solid-primary);
22
- ${tokens.chipColorHover}: var(--text-primary);
23
- ${tokens.chipBackgroundHover}: var(--surface-solid-primary);
24
- ${tokens.chipColorActive}: var(--text-primary);
25
- ${tokens.chipBackgroundActive}: var(--surface-solid-primary);
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}: var(--surface-accent);
29
- ${tokens.chipColor}: var(--on-dark-text-primary);
30
- ${tokens.chipBackground}: var(--surface-accent);
31
- ${tokens.chipColorHover}: var(--on-dark-text-primary);
32
- ${tokens.chipBackgroundHover}: var(--surface-accent);
33
- ${tokens.chipColorActive}: var(--on-dark-text-primary);
34
- ${tokens.chipBackgroundActive}: var(--surface-accent);
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}: var(--plasma-typo-body-m-font-family);
45
- ${tokens.chipFontSize}: var(--plasma-typo-body-m-font-size);
46
- ${tokens.chipFontStyle}: var(--plasma-typo-body-m-font-style);
47
- ${tokens.chipFontWeight}: var(--plasma-typo-body-m-font-weight);
48
- ${tokens.chipLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
49
- ${tokens.chipLineHeight}: var(--plasma-typo-body-m-line-height);
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;