@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 { bodyM, bodyMBold, bodyS, bodySBold, onDarkTextPrimary, surfaceAccent, surfaceAccentActive, surfaceAccentHover, surfaceClear, surfaceSolidSecondary, surfaceSolidSecondaryActive, surfaceSolidSecondaryHover, surfaceTransparentAccent, surfaceTransparentAccentActive, textAccent, textAccentActive, textAccentMinor } from '@salutejs/sdds-themes/tokens/sdds_cs';
1
2
  import { css, iconButtonTokens } from '@salutejs/plasma-new-hope/emotion';
2
3
  export const config = {
3
4
  defaults: {
@@ -8,29 +9,29 @@ export const config = {
8
9
  variations: {
9
10
  view: {
10
11
  accent: css`
11
- ${iconButtonTokens.iconButtonColor}: var(--on-dark-text-primary);
12
- ${iconButtonTokens.iconButtonBackgroundColor}: var(--surface-accent);
12
+ ${iconButtonTokens.iconButtonColor}: ${onDarkTextPrimary};
13
+ ${iconButtonTokens.iconButtonBackgroundColor}: ${surfaceAccent};
13
14
  ${iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${iconButtonTokens.iconButtonBackgroundColor});
14
- ${iconButtonTokens.iconButtonBackgroundColorHover}: var(--surface-accent-hover);
15
- ${iconButtonTokens.iconButtonBackgroundColorActive}: var(--surface-accent-active);
15
+ ${iconButtonTokens.iconButtonBackgroundColorHover}: ${surfaceAccentHover};
16
+ ${iconButtonTokens.iconButtonBackgroundColorActive}: ${surfaceAccentActive};
16
17
  `,
17
18
  secondary: css`
18
- ${iconButtonTokens.iconButtonColor}: var(--text-accent);
19
- ${iconButtonTokens.iconButtonColorHover}: var(--text-accent-minor);
19
+ ${iconButtonTokens.iconButtonColor}: ${textAccent};
20
+ ${iconButtonTokens.iconButtonColorHover}: ${textAccentMinor};
20
21
 
21
- ${iconButtonTokens.iconButtonBackgroundColor}: var(--surface-solid-secondary);
22
- ${iconButtonTokens.iconButtonBackgroundColorHover}: var(--surface-solid-secondary-hover);
23
- ${iconButtonTokens.iconButtonBackgroundColorActive}: var(--surface-solid-secondary-active);
22
+ ${iconButtonTokens.iconButtonBackgroundColor}: ${surfaceSolidSecondary};
23
+ ${iconButtonTokens.iconButtonBackgroundColorHover}: ${surfaceSolidSecondaryHover};
24
+ ${iconButtonTokens.iconButtonBackgroundColorActive}: ${surfaceSolidSecondaryActive};
24
25
  ${iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${iconButtonTokens.iconButtonBackgroundColor});
25
26
 
26
- ${iconButtonTokens.iconButtonColorActive}: var(--text-accent-active);
27
+ ${iconButtonTokens.iconButtonColorActive}: ${textAccentActive};
27
28
  `,
28
29
  clear: css`
29
- ${iconButtonTokens.iconButtonColor}: var(--text-accent);
30
- ${iconButtonTokens.iconButtonBackgroundColor}: var(--surface-clear);
31
- ${iconButtonTokens.iconButtonLoadingBackgroundColor}: var(--surface-transparent-accent);
32
- ${iconButtonTokens.iconButtonBackgroundColorHover}: var(--surface-transparent-accent);
33
- ${iconButtonTokens.iconButtonBackgroundColorActive}: var(--surface-transparent-accent-active);
30
+ ${iconButtonTokens.iconButtonColor}: ${textAccent};
31
+ ${iconButtonTokens.iconButtonBackgroundColor}: ${surfaceClear};
32
+ ${iconButtonTokens.iconButtonLoadingBackgroundColor}: ${surfaceTransparentAccent};
33
+ ${iconButtonTokens.iconButtonBackgroundColorHover}: ${surfaceTransparentAccent};
34
+ ${iconButtonTokens.iconButtonBackgroundColorActive}: ${surfaceTransparentAccentActive};
34
35
  `
35
36
  },
36
37
  size: {
@@ -39,12 +40,12 @@ export const config = {
39
40
  ${iconButtonTokens.iconButtonWidth}: 3rem;
40
41
  ${iconButtonTokens.iconButtonPadding}: 0.75rem;
41
42
  ${iconButtonTokens.iconButtonRadius}: 0.75rem;
42
- ${iconButtonTokens.iconButtonFontFamily}: var(--plasma-typo-body-m-font-family);
43
- ${iconButtonTokens.iconButtonFontSize}: var(--plasma-typo-body-m-font-size);
44
- ${iconButtonTokens.iconButtonFontStyle}: var(--plasma-typo-body-m-font-style);
45
- ${iconButtonTokens.iconButtonFontWeight}: var(--plasma-typo-body-m-bold-font-weight);
46
- ${iconButtonTokens.iconButtonLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
47
- ${iconButtonTokens.iconButtonLineHeight}: var(--plasma-typo-body-m-line-height);
43
+ ${iconButtonTokens.iconButtonFontFamily}: ${bodyM.fontFamily};
44
+ ${iconButtonTokens.iconButtonFontSize}: ${bodyM.fontSize};
45
+ ${iconButtonTokens.iconButtonFontStyle}: ${bodyM.fontStyle};
46
+ ${iconButtonTokens.iconButtonFontWeight}: ${bodyMBold.fontWeight};
47
+ ${iconButtonTokens.iconButtonLetterSpacing}: ${bodyM.letterSpacing};
48
+ ${iconButtonTokens.iconButtonLineHeight}: ${bodyM.lineHeight};
48
49
 
49
50
  ${iconButtonTokens.iconButtonSpinnerSize}: 1.375rem;
50
51
  ${iconButtonTokens.iconButtonSpinnerColor}: inherit;
@@ -54,12 +55,12 @@ export const config = {
54
55
  ${iconButtonTokens.iconButtonWidth}: 2.5rem;
55
56
  ${iconButtonTokens.iconButtonPadding}: 1rem;
56
57
  ${iconButtonTokens.iconButtonRadius}: 0.75rem;
57
- ${iconButtonTokens.iconButtonFontFamily}: var(--plasma-typo-body-s-font-family);
58
- ${iconButtonTokens.iconButtonFontSize}: var(--plasma-typo-body-s-font-size);
59
- ${iconButtonTokens.iconButtonFontStyle}: var(--plasma-typo-body-s-font-style);
60
- ${iconButtonTokens.iconButtonFontWeight}: var(--plasma-typo-body-s-bold-font-weight);
61
- ${iconButtonTokens.iconButtonLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
62
- ${iconButtonTokens.iconButtonLineHeight}: var(--plasma-typo-body-s-line-height);
58
+ ${iconButtonTokens.iconButtonFontFamily}: ${bodyS.fontFamily};
59
+ ${iconButtonTokens.iconButtonFontSize}: ${bodyS.fontSize};
60
+ ${iconButtonTokens.iconButtonFontStyle}: ${bodyS.fontStyle};
61
+ ${iconButtonTokens.iconButtonFontWeight}: ${bodySBold.fontWeight};
62
+ ${iconButtonTokens.iconButtonLetterSpacing}: ${bodyS.letterSpacing};
63
+ ${iconButtonTokens.iconButtonLineHeight}: ${bodyS.lineHeight};
63
64
 
64
65
  ${iconButtonTokens.iconButtonSpinnerSize}: 1.375rem;
65
66
  ${iconButtonTokens.iconButtonSpinnerColor}: inherit;
@@ -72,7 +73,7 @@ export const config = {
72
73
  },
73
74
  focused: {
74
75
  true: css`
75
- ${iconButtonTokens.iconButtonFocusColor}: var(--surface-accent);
76
+ ${iconButtonTokens.iconButtonFocusColor}: ${surfaceAccent};
76
77
  `
77
78
  }
78
79
  }
@@ -1,7 +1,30 @@
1
- import { iconButtonConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/emotion';
1
+ import React, { useCallback, forwardRef } from 'react';
2
+ import { iconButtonConfig, component, mergeConfig, buttonClasses, iconButtonTokens } from '@salutejs/plasma-new-hope/emotion';
3
+ import styled from '@emotion/styled';
2
4
  import { config } from './IconButton.config';
3
5
  const mergedConfig = mergeConfig(iconButtonConfig, config);
4
6
  const IconButtonComponent = component(mergedConfig);
7
+ const { iconButtonBackgroundColorActive, iconButtonBackgroundColor, iconButtonColor, iconButtonColorActive } = iconButtonTokens;
8
+ // INFO: Данное поведение запрошено продуктом
9
+ const StyledIconButton = /*#__PURE__*/ styled(IconButtonComponent, {
10
+ target: "ez9pxld0",
11
+ label: "StyledIconButton"
12
+ })("&&.", String(buttonClasses.buttonLoading), "{color:var(", iconButtonColorActive, ",var(", iconButtonColor, "));background:var(", iconButtonBackgroundColorActive, ",var(", iconButtonBackgroundColor, "));pointer-events:none;}", "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3JjL2NvbXBvbmVudHMvSWNvbkJ1dHRvbi9JY29uQnV0dG9uLnRzeCIsInNvdXJjZXMiOlsic3JjL2NvbXBvbmVudHMvSWNvbkJ1dHRvbi9JY29uQnV0dG9uLnRzeCJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgQ29tcG9uZW50UHJvcHMsIHVzZUNhbGxiYWNrLCBNb3VzZUV2ZW50LCBmb3J3YXJkUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHtcbiAgICBpY29uQnV0dG9uQ29uZmlnLFxuICAgIGNvbXBvbmVudCxcbiAgICBtZXJnZUNvbmZpZyxcbiAgICBidXR0b25DbGFzc2VzLFxuICAgIGljb25CdXR0b25Ub2tlbnMsXG59IGZyb20gJ0BzYWx1dGVqcy9wbGFzbWEtbmV3LWhvcGUvZW1vdGlvbic7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IGNvbmZpZyB9IGZyb20gJy4vSWNvbkJ1dHRvbi5jb25maWcnO1xuXG5jb25zdCBtZXJnZWRDb25maWcgPSBtZXJnZUNvbmZpZyhpY29uQnV0dG9uQ29uZmlnLCBjb25maWcpO1xuY29uc3QgSWNvbkJ1dHRvbkNvbXBvbmVudCA9IGNvbXBvbmVudChtZXJnZWRDb25maWcpO1xuXG50eXBlIEljb25CdXR0b25Qcm9wcyA9IENvbXBvbmVudFByb3BzPHR5cGVvZiBJY29uQnV0dG9uQ29tcG9uZW50PjtcblxuY29uc3Qge1xuICAgIGljb25CdXR0b25CYWNrZ3JvdW5kQ29sb3JBY3RpdmUsXG4gICAgaWNvbkJ1dHRvbkJhY2tncm91bmRDb2xvcixcbiAgICBpY29uQnV0dG9uQ29sb3IsXG4gICAgaWNvbkJ1dHRvbkNvbG9yQWN0aXZlLFxufSA9IGljb25CdXR0b25Ub2tlbnM7XG5cbi8vIElORk86INCU0LDQvdC90L7QtSDQv9C+0LLQtdC00LXQvdC40LUg0LfQsNC/0YDQvtGI0LXQvdC+INC/0YDQvtC00YPQutGC0L7QvFxuY29uc3QgU3R5bGVkSWNvbkJ1dHRvbiA9IHN0eWxlZChJY29uQnV0dG9uQ29tcG9uZW50KWBcbiAgICAmJi4ke1N0cmluZyhidXR0b25DbGFzc2VzLmJ1dHRvbkxvYWRpbmcpfSB7XG4gICAgICAgIGNvbG9yOiB2YXIoJHtpY29uQnV0dG9uQ29sb3JBY3RpdmV9LCB2YXIoJHtpY29uQnV0dG9uQ29sb3J9KSk7XG4gICAgICAgIGJhY2tncm91bmQ6IHZhcigke2ljb25CdXR0b25CYWNrZ3JvdW5kQ29sb3JBY3RpdmV9LCB2YXIoJHtpY29uQnV0dG9uQmFja2dyb3VuZENvbG9yfSkpO1xuXG4gICAgICAgIHBvaW50ZXItZXZlbnRzOiBub25lO1xuICAgIH1cbmA7XG5cbi8qKlxuICog0JrQvdC+0L/QutCwINGBINC40LrQvtC90LrQvtC5LlxuICovXG5leHBvcnQgY29uc3QgSWNvbkJ1dHRvbiA9IGZvcndhcmRSZWY8SFRNTEJ1dHRvbkVsZW1lbnQsIEljb25CdXR0b25Qcm9wcz4oKHsgb25DbGljaywgaXNMb2FkaW5nLCAuLi5wcm9wcyB9LCByZWYpID0+IHtcbiAgICBjb25zdCBoYW5kbGVDbGljayA9IHVzZUNhbGxiYWNrKFxuICAgICAgICAoZXZlbnQ6IE1vdXNlRXZlbnQ8SFRNTEJ1dHRvbkVsZW1lbnQ+KSA9PiB7XG4gICAgICAgICAgICBpZiAoIWlzTG9hZGluZykge1xuICAgICAgICAgICAgICAgIG9uQ2xpY2s/LihldmVudCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIFtpc0xvYWRpbmcsIG9uQ2xpY2tdLFxuICAgICk7XG5cbiAgICByZXR1cm4gPFN0eWxlZEljb25CdXR0b24gcmVmPXtyZWZ9IG9uQ2xpY2s9e2hhbmRsZUNsaWNrfSBpc0xvYWRpbmc9e2lzTG9hZGluZ30gey4uLnByb3BzfSAvPjtcbn0pO1xuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCeUIifQ== */");
5
13
  /**
6
14
  * Кнопка с иконкой.
7
- */ export const IconButton = IconButtonComponent;
15
+ */ export const IconButton = /*#__PURE__*/ forwardRef(({ onClick, isLoading, ...props }, ref)=>{
16
+ const handleClick = useCallback((event)=>{
17
+ if (!isLoading) {
18
+ onClick?.(event);
19
+ }
20
+ }, [
21
+ isLoading,
22
+ onClick
23
+ ]);
24
+ return /*#__PURE__*/ React.createElement(StyledIconButton, {
25
+ ref: ref,
26
+ onClick: handleClick,
27
+ isLoading: isLoading,
28
+ ...props
29
+ });
30
+ });
@@ -1,3 +1,4 @@
1
+ import { onLightSurfaceSolidPrimary, surfaceAccent, surfaceNegative, surfacePositive, surfaceSolidDefault, surfaceWarning, textPrimary } from '@salutejs/sdds-themes/tokens/sdds_cs';
1
2
  import { css, indicatorTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
2
3
  export const config = {
3
4
  defaults: {
@@ -7,25 +8,25 @@ export const config = {
7
8
  variations: {
8
9
  view: {
9
10
  default: css`
10
- ${tokens.color}: var(--surface-solid-default);
11
+ ${tokens.color}: ${surfaceSolidDefault};
11
12
  `,
12
13
  accent: css`
13
- ${tokens.color}: var(--surface-accent);
14
+ ${tokens.color}: ${surfaceAccent};
14
15
  `,
15
16
  inactive: css`
16
- ${tokens.color}: var(--on-light-surface-solid-primary);
17
+ ${tokens.color}: ${onLightSurfaceSolidPrimary};
17
18
  `,
18
19
  positive: css`
19
- ${tokens.color}: var(--surface-positive);
20
+ ${tokens.color}: ${surfacePositive};
20
21
  `,
21
22
  negative: css`
22
- ${tokens.color}: var(--surface-negative);
23
+ ${tokens.color}: ${surfaceNegative};
23
24
  `,
24
25
  warning: css`
25
- ${tokens.color}: var(--surface-warning);
26
+ ${tokens.color}: ${surfaceWarning};
26
27
  `,
27
28
  black: css`
28
- ${tokens.color}: var(--text-primary);
29
+ ${tokens.color}: ${textPrimary};
29
30
  `
30
31
  },
31
32
  size: {
@@ -1,3 +1,4 @@
1
+ import { textAccent, textAccentActive, textAccentMinor, textM, textNegative, textNegativeActive, textNegativeHover, textPositive, textPositiveActive, textPositiveHover, textPrimary, textPrimaryActive, textPrimaryHover, textSecondary, textSecondaryActive, textSecondaryHover, textTertiary, textTertiaryActive, textTertiaryHover, textWarning, textWarningActive, textWarningHover } from '@salutejs/sdds-themes/tokens/sdds_cs';
1
2
  import { css, linkTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
2
3
  export const config = {
3
4
  defaults: {
@@ -7,40 +8,40 @@ export const config = {
7
8
  variations: {
8
9
  view: {
9
10
  default: css`
10
- ${tokens.linkFontFamily}: var(--plasma-typo-text-m-font-family);
11
- ${tokens.linkColor}: var(--text-primary);
12
- ${tokens.linkColorHover}: var(--text-primary-hover);
13
- ${tokens.linkColorActive}: var(--text-primary-active);
14
- ${tokens.linkColorVisited}: var(--text-primary);
15
- ${tokens.linkColorVisitedHover}: var(--text-primary-hover);
16
- ${tokens.linkColorVisitedActive}: var(--text-primary-active);
11
+ ${tokens.linkFontFamily}: ${textM.fontFamily};
12
+ ${tokens.linkColor}: ${textPrimary};
13
+ ${tokens.linkColorHover}: ${textPrimaryHover};
14
+ ${tokens.linkColorActive}: ${textPrimaryActive};
15
+ ${tokens.linkColorVisited}: ${textPrimary};
16
+ ${tokens.linkColorVisitedHover}: ${textPrimaryHover};
17
+ ${tokens.linkColorVisitedActive}: ${textPrimaryActive};
17
18
  ${tokens.linkUnderlineBorder}: 0.063rem;
18
19
  ${tokens.linkUnderlineOffset}: 0.25rem;
19
20
  `,
20
21
  secondary: css`
21
- ${tokens.linkFontFamily}: var(--plasma-typo-text-m-font-family);
22
- ${tokens.linkColor}: var(--text-secondary);
23
- ${tokens.linkColorHover}: var(--text-secondary-hover);
24
- ${tokens.linkColorActive}: var(--text-secondary-active);
25
- ${tokens.linkColorVisited}: var(--text-secondary);
26
- ${tokens.linkColorVisitedHover}: var(--text-secondary-hover);
27
- ${tokens.linkColorVisitedActive}: var(--text-secondary-active);
22
+ ${tokens.linkFontFamily}: ${textM.fontFamily};
23
+ ${tokens.linkColor}: ${textSecondary};
24
+ ${tokens.linkColorHover}: ${textSecondaryHover};
25
+ ${tokens.linkColorActive}: ${textSecondaryActive};
26
+ ${tokens.linkColorVisited}: ${textSecondary};
27
+ ${tokens.linkColorVisitedHover}: ${textSecondaryHover};
28
+ ${tokens.linkColorVisitedActive}: ${textSecondaryActive};
28
29
  ${tokens.linkUnderlineBorder}: 0.063rem;
29
30
  ${tokens.linkUnderlineOffset}: 0.25rem;
30
31
  `,
31
32
  tertiary: css`
32
- ${tokens.linkFontFamily}: var(--plasma-typo-text-m-font-family);
33
- ${tokens.linkColor}: var(--text-tertiary);
34
- ${tokens.linkColorHover}: var(--text-tertiary-hover);
35
- ${tokens.linkColorActive}: var(--text-tertiary-active);
36
- ${tokens.linkColorVisited}: var(--text-tertiary);
37
- ${tokens.linkColorVisitedHover}: var(--text-tertiary-hover);
38
- ${tokens.linkColorVisitedActive}: var(--text-tertiary-active);
33
+ ${tokens.linkFontFamily}: ${textM.fontFamily};
34
+ ${tokens.linkColor}: ${textTertiary};
35
+ ${tokens.linkColorHover}: ${textTertiaryHover};
36
+ ${tokens.linkColorActive}: ${textTertiaryActive};
37
+ ${tokens.linkColorVisited}: ${textTertiary};
38
+ ${tokens.linkColorVisitedHover}: ${textTertiaryHover};
39
+ ${tokens.linkColorVisitedActive}: ${textTertiaryActive};
39
40
  ${tokens.linkUnderlineBorder}: 0.063rem;
40
41
  ${tokens.linkUnderlineOffset}: 0.25rem;
41
42
  `,
42
43
  paragraph: css`
43
- ${tokens.linkFontFamily}: var(--plasma-typo-text-m-font-family);
44
+ ${tokens.linkFontFamily}: ${textM.fontFamily};
44
45
  ${tokens.linkColor}: var(--text-paragraph);
45
46
  ${tokens.linkColorHover}: var(--text-paragraph-hover);
46
47
  ${tokens.linkColorActive}: var(--text-paragraph-active);
@@ -51,51 +52,51 @@ export const config = {
51
52
  ${tokens.linkUnderlineOffset}: 0.25rem;
52
53
  `,
53
54
  accent: css`
54
- ${tokens.linkFontFamily}: var(--plasma-typo-text-m-font-family);
55
- ${tokens.linkColor}: var(--text-accent);
56
- ${tokens.linkColorHover}: var(--text-accent-minor);
57
- ${tokens.linkColorActive}: var(--text-accent-active);
58
- ${tokens.linkColorVisited}: var(--text-accent);
59
- ${tokens.linkColorVisitedHover}: var(--text-accent-minor);
60
- ${tokens.linkColorVisitedActive}: var(--text-accent-active);
55
+ ${tokens.linkFontFamily}: ${textM.fontFamily};
56
+ ${tokens.linkColor}: ${textAccent};
57
+ ${tokens.linkColorHover}: ${textAccentMinor};
58
+ ${tokens.linkColorActive}: ${textAccentActive};
59
+ ${tokens.linkColorVisited}: ${textAccent};
60
+ ${tokens.linkColorVisitedHover}: ${textAccentMinor};
61
+ ${tokens.linkColorVisitedActive}: ${textAccentActive};
61
62
  ${tokens.linkUnderlineBorder}: 0.063rem;
62
63
  ${tokens.linkUnderlineOffset}: 0.25rem;
63
64
  `,
64
65
  positive: css`
65
- ${tokens.linkFontFamily}: var(--plasma-typo-text-m-font-family);
66
- ${tokens.linkColor}: var(--text-positive);
67
- ${tokens.linkColorHover}: var(--text-positive-hover);
68
- ${tokens.linkColorActive}: var(--text-positive-active);
69
- ${tokens.linkColorVisited}: var(--text-positive);
70
- ${tokens.linkColorVisitedHover}: var(--text-positive-hover);
71
- ${tokens.linkColorVisitedActive}: var(--text-positive-active);
66
+ ${tokens.linkFontFamily}: ${textM.fontFamily};
67
+ ${tokens.linkColor}: ${textPositive};
68
+ ${tokens.linkColorHover}: ${textPositiveHover};
69
+ ${tokens.linkColorActive}: ${textPositiveActive};
70
+ ${tokens.linkColorVisited}: ${textPositive};
71
+ ${tokens.linkColorVisitedHover}: ${textPositiveHover};
72
+ ${tokens.linkColorVisitedActive}: ${textPositiveActive};
72
73
  ${tokens.linkUnderlineBorder}: 0.063rem;
73
74
  ${tokens.linkUnderlineOffset}: 0.25rem;
74
75
  `,
75
76
  warning: css`
76
- ${tokens.linkFontFamily}: var(--plasma-typo-text-m-font-family);
77
- ${tokens.linkColor}: var(--text-warning);
78
- ${tokens.linkColorHover}: var(--text-warning-hover);
79
- ${tokens.linkColorActive}: var(--text-warning-active);
80
- ${tokens.linkColorVisited}: var(--text-warning);
81
- ${tokens.linkColorVisitedHover}: var(--text-warning-hover);
82
- ${tokens.linkColorVisitedActive}: var(--text-warning-active);
77
+ ${tokens.linkFontFamily}: ${textM.fontFamily};
78
+ ${tokens.linkColor}: ${textWarning};
79
+ ${tokens.linkColorHover}: ${textWarningHover};
80
+ ${tokens.linkColorActive}: ${textWarningActive};
81
+ ${tokens.linkColorVisited}: ${textWarning};
82
+ ${tokens.linkColorVisitedHover}: ${textWarningHover};
83
+ ${tokens.linkColorVisitedActive}: ${textWarningActive};
83
84
  ${tokens.linkUnderlineBorder}: 0.063rem;
84
85
  ${tokens.linkUnderlineOffset}: 0.25rem;
85
86
  `,
86
87
  negative: css`
87
- ${tokens.linkFontFamily}: var(--plasma-typo-text-m-font-family);
88
- ${tokens.linkColor}: var(--text-negative);
89
- ${tokens.linkColorHover}: var(--text-negative-hover);
90
- ${tokens.linkColorActive}: var(--text-negative-active);
91
- ${tokens.linkColorVisited}: var(--text-negative);
92
- ${tokens.linkColorVisitedHover}: var(--text-negative-hover);
93
- ${tokens.linkColorVisitedActive}: var(--text-negative-active);
88
+ ${tokens.linkFontFamily}: ${textM.fontFamily};
89
+ ${tokens.linkColor}: ${textNegative};
90
+ ${tokens.linkColorHover}: ${textNegativeHover};
91
+ ${tokens.linkColorActive}: ${textNegativeActive};
92
+ ${tokens.linkColorVisited}: ${textNegative};
93
+ ${tokens.linkColorVisitedHover}: ${textNegativeHover};
94
+ ${tokens.linkColorVisitedActive}: ${textNegativeActive};
94
95
  ${tokens.linkUnderlineBorder}: 0.063rem;
95
96
  ${tokens.linkUnderlineOffset}: 0.25rem;
96
97
  `,
97
98
  clear: css`
98
- ${tokens.linkFontFamily}: var(--plasma-typo-text-m-font-family);
99
+ ${tokens.linkFontFamily}: ${textM.fontFamily};
99
100
  ${tokens.linkColor}:inherit;
100
101
  ${tokens.linkColorHover}: inherit;
101
102
  ${tokens.linkColorActive}: inherit;
@@ -113,7 +114,7 @@ export const config = {
113
114
  },
114
115
  focused: {
115
116
  true: css`
116
- ${tokens.linkColorFocus}: var(--text-primary);
117
+ ${tokens.linkColorFocus}: ${textPrimary};
117
118
  `
118
119
  }
119
120
  }
@@ -1,3 +1,4 @@
1
+ import { surfaceAccent, surfaceSolidCard, textAccent, textAccentActive, textAccentMinor } from '@salutejs/sdds-themes/tokens/sdds_cs';
1
2
  import { css, modalTokens } from '@salutejs/plasma-new-hope/emotion';
2
3
  export const config = {
3
4
  defaults: {
@@ -8,15 +9,15 @@ export const config = {
8
9
  default: css`
9
10
  ${modalTokens.modalOverlayWithBlurColor}: rgba(35, 35, 35, 0.2);
10
11
  ${modalTokens.modalOverlayColor}: var(--overlay-soft);
11
- ${modalTokens.modalBodyBackground}: var(--surface-solid-card);
12
+ ${modalTokens.modalBodyBackground}: ${surfaceSolidCard};
12
13
  ${modalTokens.modalBodyBorderRadius}: 1.25rem;
13
14
  ${modalTokens.modalBodyPadding}: 2rem;
14
15
  ${modalTokens.modalContentPadding}: 0.625rem;
15
16
  ${modalTokens.modalCloseButtonRadius}: 0.375rem;
16
- ${modalTokens.modalCloseButtonColor}: var(--text-accent);
17
- ${modalTokens.modalCloseButtonHoverColor}: var(--text-accent-minor);
18
- ${modalTokens.modalCloseButtonActiveColor}: var(--text-accent-active);
19
- ${modalTokens.modalOutlineFocusColor}: var(--surface-accent);
17
+ ${modalTokens.modalCloseButtonColor}: ${textAccent};
18
+ ${modalTokens.modalCloseButtonHoverColor}: ${textAccentMinor};
19
+ ${modalTokens.modalCloseButtonActiveColor}: ${textAccentActive};
20
+ ${modalTokens.modalOutlineFocusColor}: ${surfaceAccent};
20
21
  `
21
22
  }
22
23
  }
@@ -1,3 +1,4 @@
1
+ import { bodyM, bodyMBold, bodyS, outlineSolidPrimary, surfaceSolidCard, textAccent, textAccentMinor, textPrimary, textSecondary } from '@salutejs/sdds-themes/tokens/sdds_cs';
1
2
  import { css, notificationTokens } from '@salutejs/plasma-new-hope/emotion';
2
3
  export const config = {
3
4
  defaults: {
@@ -7,13 +8,13 @@ export const config = {
7
8
  variations: {
8
9
  view: {
9
10
  default: css`
10
- ${notificationTokens.titleColor}: var(--text-primary);
11
- ${notificationTokens.contentLeftIconColor}: var(--text-primary);
12
- ${notificationTokens.contentColor}: var(--text-secondary);
13
- ${notificationTokens.background}: var(--surface-solid-card);
11
+ ${notificationTokens.titleColor}: ${textPrimary};
12
+ ${notificationTokens.contentLeftIconColor}: ${textPrimary};
13
+ ${notificationTokens.contentColor}: ${textSecondary};
14
+ ${notificationTokens.background}: ${surfaceSolidCard};
14
15
  ${notificationTokens.borderRadius}: 0.75rem;
15
16
  ${notificationTokens.padding}: 0.75rem;
16
- ${notificationTokens.borderColor}: var(--outline-solid-primary);
17
+ ${notificationTokens.borderColor}: ${outlineSolidPrimary};
17
18
 
18
19
  ${notificationTokens.contentPaddingTop}: 0.125rem;
19
20
  ${notificationTokens.contentPaddingRight}: 0.25rem;
@@ -40,22 +41,22 @@ export const config = {
40
41
  ${notificationTokens.contentLeftIconMargin}: 0.25rem;
41
42
  ${notificationTokens.contentTopIconMargin}: 0.25rem;
42
43
 
43
- ${notificationTokens.contentFontFamily}: var(--plasma-typo-body-s-font-family);
44
- ${notificationTokens.contentFontSize}: var(--plasma-typo-body-s-font-size);
45
- ${notificationTokens.contentFontStyle}: var(--plasma-typo-body-s-font-style);
46
- ${notificationTokens.contentFontWeight}: var(--plasma-typo-body-s-font-weight);
47
- ${notificationTokens.contentFontLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
48
- ${notificationTokens.contentFontLineHeight}: var(--plasma-typo-body-s-line-height);
49
-
50
- ${notificationTokens.titleFontFamily}: var(--plasma-typo-body-m-font-family);
51
- ${notificationTokens.titleFontSize}: var(--plasma-typo-body-m-font-size);
52
- ${notificationTokens.titleFontStyle}: var(--plasma-typo-body-m-font-style);
53
- ${notificationTokens.titleFontWeight}: var(--plasma-typo-body-m-bold-font-weight);
54
- ${notificationTokens.titleFontLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
55
- ${notificationTokens.titleFontLineHeight}: var(--plasma-typo-body-m-line-height);
56
-
57
- ${notificationTokens.closeIconColor}: var(--text-accent);
58
- ${notificationTokens.closeIconColorOnHover}:var(--text-accent-minor);
44
+ ${notificationTokens.contentFontFamily}: ${bodyS.fontFamily};
45
+ ${notificationTokens.contentFontSize}: ${bodyS.fontSize};
46
+ ${notificationTokens.contentFontStyle}: ${bodyS.fontStyle};
47
+ ${notificationTokens.contentFontWeight}: ${bodyS.fontWeight};
48
+ ${notificationTokens.contentFontLetterSpacing}: ${bodyS.letterSpacing};
49
+ ${notificationTokens.contentFontLineHeight}: ${bodyS.lineHeight};
50
+
51
+ ${notificationTokens.titleFontFamily}: ${bodyM.fontFamily};
52
+ ${notificationTokens.titleFontSize}: ${bodyM.fontSize};
53
+ ${notificationTokens.titleFontStyle}: ${bodyM.fontStyle};
54
+ ${notificationTokens.titleFontWeight}: ${bodyMBold.fontWeight};
55
+ ${notificationTokens.titleFontLetterSpacing}: ${bodyM.letterSpacing};
56
+ ${notificationTokens.titleFontLineHeight}: ${bodyM.lineHeight};
57
+
58
+ ${notificationTokens.closeIconColor}: ${textAccent};
59
+ ${notificationTokens.closeIconColorOnHover}:${textAccentMinor};
59
60
 
60
61
  ${notificationTokens.horizontalLayoutGap}: 0.5rem;
61
62
  ${notificationTokens.horizontalLayoutLeftIconMargin}: 0.75rem;
@@ -1,3 +1,4 @@
1
+ import { bodyM, bodyS, bodySBold, outlineAccent, outlineSolidPrimary, surfaceSolidCard, textAccent, textAccentActive, textAccentMinor, textNegative, textPrimary, textTertiary } from '@salutejs/sdds-themes/tokens/sdds_cs';
1
2
  import { css, numberInputTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
2
3
  export const config = {
3
4
  defaults: {
@@ -10,19 +11,19 @@ export const config = {
10
11
  variations: {
11
12
  view: {
12
13
  default: css`
13
- ${tokens.caretColor}: var(--text-accent);
14
- ${tokens.errorColor}: var(--text-negative);
14
+ ${tokens.caretColor}: ${textAccent};
15
+ ${tokens.errorColor}: ${textNegative};
15
16
 
16
- ${tokens.colorSolid}: var(--text-primary);
17
- ${tokens.additionalTextColorSolid}: var(--text-tertiary);
18
- ${tokens.backgroundColorSolid}: var(--surface-solid-card);
19
- ${tokens.wrapperBorderColor}: var(--outline-solid-primary);
20
- ${tokens.wrapperBorderColorFocus}: var(--outline-accent);
17
+ ${tokens.colorSolid}: ${textPrimary};
18
+ ${tokens.additionalTextColorSolid}: ${textTertiary};
19
+ ${tokens.backgroundColorSolid}: ${surfaceSolidCard};
20
+ ${tokens.wrapperBorderColor}: ${outlineSolidPrimary};
21
+ ${tokens.wrapperBorderColorFocus}: ${outlineAccent};
21
22
 
22
- ${tokens.iconButtonColor}: var(--text-accent);
23
- ${tokens.iconButtonBackgroundColor}: var(--surface-solid-card);
24
- ${tokens.iconButtonColorSolidHover}: var(--text-accent-minor);
25
- ${tokens.iconButtonColorSolidActive}: var(--text-accent-active);
23
+ ${tokens.iconButtonColor}: ${textAccent};
24
+ ${tokens.iconButtonBackgroundColor}: ${surfaceSolidCard};
25
+ ${tokens.iconButtonColorSolidHover}: ${textAccentMinor};
26
+ ${tokens.iconButtonColorSolidActive}: ${textAccentActive};
26
27
 
27
28
  ${tokens.actionButtonDisabledOpacity}: 0;
28
29
  ${tokens.actionButtonDisabledCursor}: default;
@@ -37,12 +38,12 @@ export const config = {
37
38
  ${tokens.iconButtonHeight}: 2.5rem;
38
39
  ${tokens.iconButtonWidth}: 2.5rem;
39
40
  ${tokens.iconButtonPadding}: 0.5rem;
40
- ${tokens.iconButtonFontFamily}: var(--plasma-typo-body-s-font-family);
41
- ${tokens.iconButtonFontSize}: var(--plasma-typo-body-s-font-size);
42
- ${tokens.iconButtonFontStyle}: var(--plasma-typo-body-s-font-style);
43
- ${tokens.iconButtonFontWeight}: var(--plasma-typo-body-s-bold-font-weight);
44
- ${tokens.iconButtonLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
45
- ${tokens.iconButtonLineHeight}: var(--plasma-typo-body-s-line-height);
41
+ ${tokens.iconButtonFontFamily}: ${bodyS.fontFamily};
42
+ ${tokens.iconButtonFontSize}: ${bodyS.fontSize};
43
+ ${tokens.iconButtonFontStyle}: ${bodyS.fontStyle};
44
+ ${tokens.iconButtonFontWeight}: ${bodySBold.fontWeight};
45
+ ${tokens.iconButtonLetterSpacing}: ${bodyS.letterSpacing};
46
+ ${tokens.iconButtonLineHeight}: ${bodyS.lineHeight};
46
47
 
47
48
  ${tokens.iconButtonRadius}: 0.75rem;
48
49
  ${tokens.iconButtonSegmentationRadius}: 0.25rem;
@@ -53,19 +54,19 @@ export const config = {
53
54
  ${tokens.textWrapperPadding}: 0.5rem 0.375rem;
54
55
  ${tokens.rootBorderWidth}: 0.125rem;
55
56
 
56
- ${tokens.fontFamily}: var(--plasma-typo-body-m-font-family);
57
- ${tokens.fontSize}: var(--plasma-typo-body-m-font-size);
58
- ${tokens.fontStyle}: var(--plasma-typo-body-m-font-style);
59
- ${tokens.fontWeight}: var(--plasma-typo-body-m-font-weight);
60
- ${tokens.letterSpacing}: var(--plasma-typo-body-m-letter-spacing);
61
- ${tokens.lineHeight}: var(--plasma-typo-body-m-line-height);
57
+ ${tokens.fontFamily}: ${bodyM.fontFamily};
58
+ ${tokens.fontSize}: ${bodyM.fontSize};
59
+ ${tokens.fontStyle}: ${bodyM.fontStyle};
60
+ ${tokens.fontWeight}: ${bodyM.fontWeight};
61
+ ${tokens.letterSpacing}: ${bodyM.letterSpacing};
62
+ ${tokens.lineHeight}: ${bodyM.lineHeight};
62
63
 
63
- ${tokens.additionalTextFontFamily}: var(--plasma-typo-body-s-font-family);
64
- ${tokens.additionalTextFontSize}: var(--plasma-typo-body-s-font-size);
65
- ${tokens.additionalTextFontStyle}: var(--plasma-typo-body-s-font-style);
66
- ${tokens.additionalTextFontWeight}: var(--plasma-typo-body-s-font-weight);
67
- ${tokens.additionalTextLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
68
- ${tokens.additionalTextLineHeight}: var(--plasma-typo-body-s-line-height);
64
+ ${tokens.additionalTextFontFamily}: ${bodyS.fontFamily};
65
+ ${tokens.additionalTextFontSize}: ${bodyS.fontSize};
66
+ ${tokens.additionalTextFontStyle}: ${bodyS.fontStyle};
67
+ ${tokens.additionalTextFontWeight}: ${bodyS.fontWeight};
68
+ ${tokens.additionalTextLetterSpacing}: ${bodyS.letterSpacing};
69
+ ${tokens.additionalTextLineHeight}: ${bodyS.lineHeight};
69
70
 
70
71
  ${tokens.textBeforeMarginRight}: 0.25rem;
71
72
  ${tokens.textAfterMarginLeft}: 0.25rem;
@@ -1,3 +1,4 @@
1
+ import { bodyM, outlineSolidPrimary, surfaceAccent, surfaceClear, surfaceSolidCard, surfaceSolidPrimary, textAccent, textAccentActive, textAccentMinor, textPrimary, textSecondary } from '@salutejs/sdds-themes/tokens/sdds_cs';
1
2
  import { css, paginationTokens } from '@salutejs/plasma-new-hope/emotion';
2
3
  export const config = {
3
4
  defaults: {
@@ -8,47 +9,47 @@ export const config = {
8
9
  variations: {
9
10
  view: {
10
11
  default: css`
11
- ${paginationTokens.buttonColor}: var(--text-accent);
12
- ${paginationTokens.buttonColorHover}: var(--text-accent-minor);
13
- ${paginationTokens.buttonColorActive}: var(--text-accent-active);
14
- ${paginationTokens.buttonBackgroundColor}: var(--surface-clear);
15
- ${paginationTokens.buttonBackgroundColorHover}: var(--surface-clear);
16
- ${paginationTokens.buttonBackgroundColorActive}: var(--surface-clear);
17
- ${paginationTokens.buttonHoverColor}: var(--text-accent-minor);
18
- ${paginationTokens.buttonActiveColor}: var(--text-accent-active);
19
- ${paginationTokens.buttonArrowColor}: var(--text-accent);
20
- ${paginationTokens.buttonArrowColorHover}: var(--text-accent-minor);
21
- ${paginationTokens.buttonArrowColorActive}: var(--text-accent-active);
12
+ ${paginationTokens.buttonColor}: ${textAccent};
13
+ ${paginationTokens.buttonColorHover}: ${textAccentMinor};
14
+ ${paginationTokens.buttonColorActive}: ${textAccentActive};
15
+ ${paginationTokens.buttonBackgroundColor}: ${surfaceClear};
16
+ ${paginationTokens.buttonBackgroundColorHover}: ${surfaceClear};
17
+ ${paginationTokens.buttonBackgroundColorActive}: ${surfaceClear};
18
+ ${paginationTokens.buttonHoverColor}: ${textAccentMinor};
19
+ ${paginationTokens.buttonActiveColor}: ${textAccentActive};
20
+ ${paginationTokens.buttonArrowColor}: ${textAccent};
21
+ ${paginationTokens.buttonArrowColorHover}: ${textAccentMinor};
22
+ ${paginationTokens.buttonArrowColorActive}: ${textAccentActive};
22
23
 
23
- ${paginationTokens.inputBackgroundColor}: var(--surface-solid-card);
24
- ${paginationTokens.selectBackgroundColor}: var(--surface-solid-card);
25
- ${paginationTokens.inputBorderColor}: var(--outline-solid-primary);
24
+ ${paginationTokens.inputBackgroundColor}: ${surfaceSolidCard};
25
+ ${paginationTokens.selectBackgroundColor}: ${surfaceSolidCard};
26
+ ${paginationTokens.inputBorderColor}: ${outlineSolidPrimary};
26
27
 
27
- ${paginationTokens.paginationColor}: var(--text-primary);
28
- ${paginationTokens.paginationHelperTextColor}: var(--text-secondary);
29
- ${paginationTokens.buttonFocusColor}: var(--surface-accent);
30
- ${paginationTokens.paginationDisabledButtonColor}: var(--text-secondary);
31
- ${paginationTokens.paginationDisabledButtonBackgroundColor}: var(--surface-clear);
28
+ ${paginationTokens.paginationColor}: ${textPrimary};
29
+ ${paginationTokens.paginationHelperTextColor}: ${textSecondary};
30
+ ${paginationTokens.buttonFocusColor}: ${surfaceAccent};
31
+ ${paginationTokens.paginationDisabledButtonColor}: ${textSecondary};
32
+ ${paginationTokens.paginationDisabledButtonBackgroundColor}: ${surfaceClear};
32
33
  `
33
34
  },
34
35
  viewCurrentPage: {
35
36
  default: css`
36
- ${paginationTokens.paginationCurrentButtonColor}: var(--text-primary);
37
- ${paginationTokens.paginationCurrentButtonBackgroundColor}: var(--surface-solid-primary);
38
- ${paginationTokens.paginationCurrentButtonHoverColor}: var(--text-primary);
39
- ${paginationTokens.paginationCurrentButtonHoverBackgroundColor}: var(--surface-solid-primary);
40
- ${paginationTokens.paginationCurrentButtonActiveColor}: var(--text-primary);
41
- ${paginationTokens.paginationCurrentButtonActiveBackgroundColor}: var(--surface-solid-primary);
37
+ ${paginationTokens.paginationCurrentButtonColor}: ${textPrimary};
38
+ ${paginationTokens.paginationCurrentButtonBackgroundColor}: ${surfaceSolidPrimary};
39
+ ${paginationTokens.paginationCurrentButtonHoverColor}: ${textPrimary};
40
+ ${paginationTokens.paginationCurrentButtonHoverBackgroundColor}: ${surfaceSolidPrimary};
41
+ ${paginationTokens.paginationCurrentButtonActiveColor}: ${textPrimary};
42
+ ${paginationTokens.paginationCurrentButtonActiveBackgroundColor}: ${surfaceSolidPrimary};
42
43
  `
43
44
  },
44
45
  size: {
45
46
  s: css`
46
- ${paginationTokens.paginationFontFamily}: var(--plasma-typo-body-m-font-family);
47
- ${paginationTokens.paginationFontSize}: var(--plasma-typo-body-m-font-size);
48
- ${paginationTokens.paginationFontStyle}: var(--plasma-typo-body-m-font-style);
49
- ${paginationTokens.paginationFontWeight}: var(--plasma-typo-body-m-font-weight);
50
- ${paginationTokens.paginationLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
51
- ${paginationTokens.paginationLineHeight}: var(--plasma-typo-body-m-line-height);
47
+ ${paginationTokens.paginationFontFamily}: ${bodyM.fontFamily};
48
+ ${paginationTokens.paginationFontSize}: ${bodyM.fontSize};
49
+ ${paginationTokens.paginationFontStyle}: ${bodyM.fontStyle};
50
+ ${paginationTokens.paginationFontWeight}: ${bodyM.fontWeight};
51
+ ${paginationTokens.paginationLetterSpacing}: ${bodyM.letterSpacing};
52
+ ${paginationTokens.paginationLineHeight}: ${bodyM.lineHeight};
52
53
 
53
54
  ${paginationTokens.buttonHeight}: 2.5rem;
54
55
  ${paginationTokens.buttonWidth}: 2.5rem;
@@ -1,3 +1,4 @@
1
+ import { shadowDownHardM, surfaceSolidCard } from '@salutejs/sdds-themes/tokens/sdds_cs';
1
2
  import { css, popoverTokens } from '@salutejs/plasma-new-hope/emotion';
2
3
  export const config = {
3
4
  defaults: {
@@ -6,14 +7,14 @@ export const config = {
6
7
  variations: {
7
8
  view: {
8
9
  default: css`
9
- ${popoverTokens.boxShadow}: var(--shadow-down-hard-m);
10
+ ${popoverTokens.boxShadow}: ${shadowDownHardM};
10
11
 
11
12
  ${popoverTokens.arrowMaskWidth}: 1rem;
12
13
  ${popoverTokens.arrowMaskHeight}: 1rem;
13
14
  ${popoverTokens.arrowMaskImage}: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggY2xpcC1ydWxlPSJldmVub2RkIiBkPSJtMCw5Ljg1bDE2LDBjLTQuNDEsMCAtOCwyLjY5IC04LDZjMCwtMy4zMSAtMy41OSwtNiAtOCwtNnoiIGZpbGw9IiMxNzE3MTciIGZpbGwtcnVsZT0iZXZlbm9kZCIgaWQ9IlRhaWwiLz4KPC9zdmc+");
14
15
  ${popoverTokens.arrowHeight}: 0.375rem;
15
16
  ${popoverTokens.arrowEdgeMargin}: 0.5625rem;
16
- ${popoverTokens.arrowBackground}: var(--surface-solid-card);
17
+ ${popoverTokens.arrowBackground}: ${surfaceSolidCard};
17
18
  `
18
19
  }
19
20
  }