@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.
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
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "config", {
8
8
  return config;
9
9
  }
10
10
  });
11
+ const _sdds_cs = require("@salutejs/sdds-themes/tokens/sdds_cs");
11
12
  const _emotion = require("@salutejs/plasma-new-hope/emotion");
12
13
  const config = {
13
14
  defaults: {
@@ -22,12 +23,12 @@ const config = {
22
23
  ${_emotion.emptyStateTokens.descriptionMargin}: 0 0 1rem 0;
23
24
  ${_emotion.emptyStateTokens.buttonMargin}: -1rem 0 0 0;
24
25
  ${_emotion.emptyStateTokens.buttonHeight}: 3.5rem;
25
- ${_emotion.emptyStateTokens.fontFamily}: var(--plasma-typo-body-l-font-family);
26
- ${_emotion.emptyStateTokens.fontSize}: var(--plasma-typo-body-l-font-size);
27
- ${_emotion.emptyStateTokens.fontStyle}: var(--plasma-typo-body-l-font-style);
28
- ${_emotion.emptyStateTokens.fontWeight}: var(--plasma-typo-body-l-font-weight);
29
- ${_emotion.emptyStateTokens.fontLetterSpacing}: var(--plasma-typo-body-l-letter-spacing);
30
- ${_emotion.emptyStateTokens.fontLineHeight}: var(--plasma-typo-body-l-line-height);
26
+ ${_emotion.emptyStateTokens.fontFamily}: ${_sdds_cs.bodyL.fontFamily};
27
+ ${_emotion.emptyStateTokens.fontSize}: ${_sdds_cs.bodyL.fontSize};
28
+ ${_emotion.emptyStateTokens.fontStyle}: ${_sdds_cs.bodyL.fontStyle};
29
+ ${_emotion.emptyStateTokens.fontWeight}: ${_sdds_cs.bodyL.fontWeight};
30
+ ${_emotion.emptyStateTokens.fontLetterSpacing}: ${_sdds_cs.bodyL.letterSpacing};
31
+ ${_emotion.emptyStateTokens.fontLineHeight}: ${_sdds_cs.bodyL.lineHeight};
31
32
  `,
32
33
  m: (0, _emotion.css)`
33
34
  ${_emotion.emptyStateTokens.borderRadius}: 0.75rem;
@@ -36,12 +37,12 @@ const config = {
36
37
  ${_emotion.emptyStateTokens.descriptionMargin}: 0 0 0.875rem 0;
37
38
  ${_emotion.emptyStateTokens.buttonMargin}: -0.875rem 0 0 0;
38
39
  ${_emotion.emptyStateTokens.buttonHeight}: 3rem;
39
- ${_emotion.emptyStateTokens.fontFamily}: var(--plasma-typo-body-m-font-family);
40
- ${_emotion.emptyStateTokens.fontSize}: var(--plasma-typo-body-m-font-size);
41
- ${_emotion.emptyStateTokens.fontStyle}: var(--plasma-typo-body-m-font-style);
42
- ${_emotion.emptyStateTokens.fontWeight}: var(--plasma-typo-body-m-font-weight);
43
- ${_emotion.emptyStateTokens.fontLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
44
- ${_emotion.emptyStateTokens.fontLineHeight}: var(--plasma-typo-body-m-line-height);
40
+ ${_emotion.emptyStateTokens.fontFamily}: ${_sdds_cs.bodyM.fontFamily};
41
+ ${_emotion.emptyStateTokens.fontSize}: ${_sdds_cs.bodyM.fontSize};
42
+ ${_emotion.emptyStateTokens.fontStyle}: ${_sdds_cs.bodyM.fontStyle};
43
+ ${_emotion.emptyStateTokens.fontWeight}: ${_sdds_cs.bodyM.fontWeight};
44
+ ${_emotion.emptyStateTokens.fontLetterSpacing}: ${_sdds_cs.bodyM.letterSpacing};
45
+ ${_emotion.emptyStateTokens.fontLineHeight}: ${_sdds_cs.bodyM.lineHeight};
45
46
  `,
46
47
  s: (0, _emotion.css)`
47
48
  ${_emotion.emptyStateTokens.borderRadius}: 0.625rem;
@@ -50,12 +51,12 @@ const config = {
50
51
  ${_emotion.emptyStateTokens.descriptionMargin}: 0 0 0.625rem 0;
51
52
  ${_emotion.emptyStateTokens.buttonMargin}: -0.625rem 0 0 0;
52
53
  ${_emotion.emptyStateTokens.buttonHeight}: 2.5rem;
53
- ${_emotion.emptyStateTokens.fontFamily}: var(--plasma-typo-body-s-font-family);
54
- ${_emotion.emptyStateTokens.fontSize}: var(--plasma-typo-body-s-font-size);
55
- ${_emotion.emptyStateTokens.fontStyle}: var(--plasma-typo-body-s-font-style);
56
- ${_emotion.emptyStateTokens.fontWeight}: var(--plasma-typo-body-s-font-weight);
57
- ${_emotion.emptyStateTokens.fontLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
58
- ${_emotion.emptyStateTokens.fontLineHeight}: var(--plasma-typo-body-s-line-height);
54
+ ${_emotion.emptyStateTokens.fontFamily}: ${_sdds_cs.bodyS.fontFamily};
55
+ ${_emotion.emptyStateTokens.fontSize}: ${_sdds_cs.bodyS.fontSize};
56
+ ${_emotion.emptyStateTokens.fontStyle}: ${_sdds_cs.bodyS.fontStyle};
57
+ ${_emotion.emptyStateTokens.fontWeight}: ${_sdds_cs.bodyS.fontWeight};
58
+ ${_emotion.emptyStateTokens.fontLetterSpacing}: ${_sdds_cs.bodyS.letterSpacing};
59
+ ${_emotion.emptyStateTokens.fontLineHeight}: ${_sdds_cs.bodyS.lineHeight};
59
60
  `,
60
61
  xs: (0, _emotion.css)`
61
62
  ${_emotion.emptyStateTokens.borderRadius}: 0.5rem;
@@ -64,12 +65,12 @@ const config = {
64
65
  ${_emotion.emptyStateTokens.descriptionMargin}: 0 0 0.5rem 0;
65
66
  ${_emotion.emptyStateTokens.buttonMargin}: -0.5rem 0 0 0;
66
67
  ${_emotion.emptyStateTokens.buttonHeight}: 2rem;
67
- ${_emotion.emptyStateTokens.fontFamily}: var(--plasma-typo-body-xs-font-family);
68
- ${_emotion.emptyStateTokens.fontSize}: var(--plasma-typo-body-xs-font-size);
69
- ${_emotion.emptyStateTokens.fontStyle}: var(--plasma-typo-body-xs-font-style);
70
- ${_emotion.emptyStateTokens.fontWeight}: var(--plasma-typo-body-xs-font-weight);
71
- ${_emotion.emptyStateTokens.fontLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
72
- ${_emotion.emptyStateTokens.fontLineHeight}: var(--plasma-typo-body-xs-line-height);
68
+ ${_emotion.emptyStateTokens.fontFamily}: ${_sdds_cs.bodyXS.fontFamily};
69
+ ${_emotion.emptyStateTokens.fontSize}: ${_sdds_cs.bodyXS.fontSize};
70
+ ${_emotion.emptyStateTokens.fontStyle}: ${_sdds_cs.bodyXS.fontStyle};
71
+ ${_emotion.emptyStateTokens.fontWeight}: ${_sdds_cs.bodyXS.fontWeight};
72
+ ${_emotion.emptyStateTokens.fontLetterSpacing}: ${_sdds_cs.bodyXS.letterSpacing};
73
+ ${_emotion.emptyStateTokens.fontLineHeight}: ${_sdds_cs.bodyXS.lineHeight};
73
74
  `
74
75
  }
75
76
  }
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "config", {
8
8
  return config;
9
9
  }
10
10
  });
11
+ const _sdds_cs = require("@salutejs/sdds-themes/tokens/sdds_cs");
11
12
  const _emotion = require("@salutejs/plasma-new-hope/emotion");
12
13
  const config = {
13
14
  defaults: {
@@ -18,29 +19,29 @@ const config = {
18
19
  variations: {
19
20
  view: {
20
21
  accent: (0, _emotion.css)`
21
- ${_emotion.iconButtonTokens.iconButtonColor}: var(--on-dark-text-primary);
22
- ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: var(--surface-accent);
22
+ ${_emotion.iconButtonTokens.iconButtonColor}: ${_sdds_cs.onDarkTextPrimary};
23
+ ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: ${_sdds_cs.surfaceAccent};
23
24
  ${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_emotion.iconButtonTokens.iconButtonBackgroundColor});
24
- ${_emotion.iconButtonTokens.iconButtonBackgroundColorHover}: var(--surface-accent-hover);
25
- ${_emotion.iconButtonTokens.iconButtonBackgroundColorActive}: var(--surface-accent-active);
25
+ ${_emotion.iconButtonTokens.iconButtonBackgroundColorHover}: ${_sdds_cs.surfaceAccentHover};
26
+ ${_emotion.iconButtonTokens.iconButtonBackgroundColorActive}: ${_sdds_cs.surfaceAccentActive};
26
27
  `,
27
28
  secondary: (0, _emotion.css)`
28
- ${_emotion.iconButtonTokens.iconButtonColor}: var(--text-accent);
29
- ${_emotion.iconButtonTokens.iconButtonColorHover}: var(--text-accent-minor);
29
+ ${_emotion.iconButtonTokens.iconButtonColor}: ${_sdds_cs.textAccent};
30
+ ${_emotion.iconButtonTokens.iconButtonColorHover}: ${_sdds_cs.textAccentMinor};
30
31
 
31
- ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: var(--surface-solid-secondary);
32
- ${_emotion.iconButtonTokens.iconButtonBackgroundColorHover}: var(--surface-solid-secondary-hover);
33
- ${_emotion.iconButtonTokens.iconButtonBackgroundColorActive}: var(--surface-solid-secondary-active);
32
+ ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: ${_sdds_cs.surfaceSolidSecondary};
33
+ ${_emotion.iconButtonTokens.iconButtonBackgroundColorHover}: ${_sdds_cs.surfaceSolidSecondaryHover};
34
+ ${_emotion.iconButtonTokens.iconButtonBackgroundColorActive}: ${_sdds_cs.surfaceSolidSecondaryActive};
34
35
  ${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_emotion.iconButtonTokens.iconButtonBackgroundColor});
35
36
 
36
- ${_emotion.iconButtonTokens.iconButtonColorActive}: var(--text-accent-active);
37
+ ${_emotion.iconButtonTokens.iconButtonColorActive}: ${_sdds_cs.textAccentActive};
37
38
  `,
38
39
  clear: (0, _emotion.css)`
39
- ${_emotion.iconButtonTokens.iconButtonColor}: var(--text-accent);
40
- ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: var(--surface-clear);
41
- ${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(--surface-transparent-accent);
42
- ${_emotion.iconButtonTokens.iconButtonBackgroundColorHover}: var(--surface-transparent-accent);
43
- ${_emotion.iconButtonTokens.iconButtonBackgroundColorActive}: var(--surface-transparent-accent-active);
40
+ ${_emotion.iconButtonTokens.iconButtonColor}: ${_sdds_cs.textAccent};
41
+ ${_emotion.iconButtonTokens.iconButtonBackgroundColor}: ${_sdds_cs.surfaceClear};
42
+ ${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: ${_sdds_cs.surfaceTransparentAccent};
43
+ ${_emotion.iconButtonTokens.iconButtonBackgroundColorHover}: ${_sdds_cs.surfaceTransparentAccent};
44
+ ${_emotion.iconButtonTokens.iconButtonBackgroundColorActive}: ${_sdds_cs.surfaceTransparentAccentActive};
44
45
  `
45
46
  },
46
47
  size: {
@@ -49,12 +50,12 @@ const config = {
49
50
  ${_emotion.iconButtonTokens.iconButtonWidth}: 3rem;
50
51
  ${_emotion.iconButtonTokens.iconButtonPadding}: 0.75rem;
51
52
  ${_emotion.iconButtonTokens.iconButtonRadius}: 0.75rem;
52
- ${_emotion.iconButtonTokens.iconButtonFontFamily}: var(--plasma-typo-body-m-font-family);
53
- ${_emotion.iconButtonTokens.iconButtonFontSize}: var(--plasma-typo-body-m-font-size);
54
- ${_emotion.iconButtonTokens.iconButtonFontStyle}: var(--plasma-typo-body-m-font-style);
55
- ${_emotion.iconButtonTokens.iconButtonFontWeight}: var(--plasma-typo-body-m-bold-font-weight);
56
- ${_emotion.iconButtonTokens.iconButtonLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
57
- ${_emotion.iconButtonTokens.iconButtonLineHeight}: var(--plasma-typo-body-m-line-height);
53
+ ${_emotion.iconButtonTokens.iconButtonFontFamily}: ${_sdds_cs.bodyM.fontFamily};
54
+ ${_emotion.iconButtonTokens.iconButtonFontSize}: ${_sdds_cs.bodyM.fontSize};
55
+ ${_emotion.iconButtonTokens.iconButtonFontStyle}: ${_sdds_cs.bodyM.fontStyle};
56
+ ${_emotion.iconButtonTokens.iconButtonFontWeight}: ${_sdds_cs.bodyMBold.fontWeight};
57
+ ${_emotion.iconButtonTokens.iconButtonLetterSpacing}: ${_sdds_cs.bodyM.letterSpacing};
58
+ ${_emotion.iconButtonTokens.iconButtonLineHeight}: ${_sdds_cs.bodyM.lineHeight};
58
59
 
59
60
  ${_emotion.iconButtonTokens.iconButtonSpinnerSize}: 1.375rem;
60
61
  ${_emotion.iconButtonTokens.iconButtonSpinnerColor}: inherit;
@@ -64,12 +65,12 @@ const config = {
64
65
  ${_emotion.iconButtonTokens.iconButtonWidth}: 2.5rem;
65
66
  ${_emotion.iconButtonTokens.iconButtonPadding}: 1rem;
66
67
  ${_emotion.iconButtonTokens.iconButtonRadius}: 0.75rem;
67
- ${_emotion.iconButtonTokens.iconButtonFontFamily}: var(--plasma-typo-body-s-font-family);
68
- ${_emotion.iconButtonTokens.iconButtonFontSize}: var(--plasma-typo-body-s-font-size);
69
- ${_emotion.iconButtonTokens.iconButtonFontStyle}: var(--plasma-typo-body-s-font-style);
70
- ${_emotion.iconButtonTokens.iconButtonFontWeight}: var(--plasma-typo-body-s-bold-font-weight);
71
- ${_emotion.iconButtonTokens.iconButtonLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
72
- ${_emotion.iconButtonTokens.iconButtonLineHeight}: var(--plasma-typo-body-s-line-height);
68
+ ${_emotion.iconButtonTokens.iconButtonFontFamily}: ${_sdds_cs.bodyS.fontFamily};
69
+ ${_emotion.iconButtonTokens.iconButtonFontSize}: ${_sdds_cs.bodyS.fontSize};
70
+ ${_emotion.iconButtonTokens.iconButtonFontStyle}: ${_sdds_cs.bodyS.fontStyle};
71
+ ${_emotion.iconButtonTokens.iconButtonFontWeight}: ${_sdds_cs.bodySBold.fontWeight};
72
+ ${_emotion.iconButtonTokens.iconButtonLetterSpacing}: ${_sdds_cs.bodyS.letterSpacing};
73
+ ${_emotion.iconButtonTokens.iconButtonLineHeight}: ${_sdds_cs.bodyS.lineHeight};
73
74
 
74
75
  ${_emotion.iconButtonTokens.iconButtonSpinnerSize}: 1.375rem;
75
76
  ${_emotion.iconButtonTokens.iconButtonSpinnerColor}: inherit;
@@ -82,7 +83,7 @@ const config = {
82
83
  },
83
84
  focused: {
84
85
  true: (0, _emotion.css)`
85
- ${_emotion.iconButtonTokens.iconButtonFocusColor}: var(--surface-accent);
86
+ ${_emotion.iconButtonTokens.iconButtonFocusColor}: ${_sdds_cs.surfaceAccent};
86
87
  `
87
88
  }
88
89
  }
@@ -8,8 +8,77 @@ Object.defineProperty(exports, "IconButton", {
8
8
  return IconButton;
9
9
  }
10
10
  });
11
+ const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
11
12
  const _emotion = require("@salutejs/plasma-new-hope/emotion");
13
+ const _styled = /*#__PURE__*/ _interop_require_default(require("@emotion/styled"));
12
14
  const _IconButtonconfig = require("./IconButton.config");
15
+ function _interop_require_default(obj) {
16
+ return obj && obj.__esModule ? obj : {
17
+ default: obj
18
+ };
19
+ }
20
+ function _getRequireWildcardCache(nodeInterop) {
21
+ if (typeof WeakMap !== "function") return null;
22
+ var cacheBabelInterop = new WeakMap();
23
+ var cacheNodeInterop = new WeakMap();
24
+ return (_getRequireWildcardCache = function(nodeInterop) {
25
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
26
+ })(nodeInterop);
27
+ }
28
+ function _interop_require_wildcard(obj, nodeInterop) {
29
+ if (!nodeInterop && obj && obj.__esModule) {
30
+ return obj;
31
+ }
32
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
33
+ return {
34
+ default: obj
35
+ };
36
+ }
37
+ var cache = _getRequireWildcardCache(nodeInterop);
38
+ if (cache && cache.has(obj)) {
39
+ return cache.get(obj);
40
+ }
41
+ var newObj = {
42
+ __proto__: null
43
+ };
44
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
45
+ for(var key in obj){
46
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
47
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
48
+ if (desc && (desc.get || desc.set)) {
49
+ Object.defineProperty(newObj, key, desc);
50
+ } else {
51
+ newObj[key] = obj[key];
52
+ }
53
+ }
54
+ }
55
+ newObj.default = obj;
56
+ if (cache) {
57
+ cache.set(obj, newObj);
58
+ }
59
+ return newObj;
60
+ }
13
61
  const mergedConfig = (0, _emotion.mergeConfig)(_emotion.iconButtonConfig, _IconButtonconfig.config);
14
62
  const IconButtonComponent = (0, _emotion.component)(mergedConfig);
15
- const IconButton = IconButtonComponent;
63
+ const { iconButtonBackgroundColorActive, iconButtonBackgroundColor, iconButtonColor, iconButtonColorActive } = _emotion.iconButtonTokens;
64
+ // INFO: Данное поведение запрошено продуктом
65
+ const StyledIconButton = /*#__PURE__*/ (0, _styled.default)(IconButtonComponent, {
66
+ target: "ez9pxld0",
67
+ label: "StyledIconButton"
68
+ })("&&.", String(_emotion.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== */");
69
+ const IconButton = /*#__PURE__*/ (0, _react.forwardRef)(({ onClick, isLoading, ...props }, ref)=>{
70
+ const handleClick = (0, _react.useCallback)((event)=>{
71
+ if (!isLoading) {
72
+ onClick?.(event);
73
+ }
74
+ }, [
75
+ isLoading,
76
+ onClick
77
+ ]);
78
+ return /*#__PURE__*/ _react.default.createElement(StyledIconButton, {
79
+ ref: ref,
80
+ onClick: handleClick,
81
+ isLoading: isLoading,
82
+ ...props
83
+ });
84
+ });
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "config", {
8
8
  return config;
9
9
  }
10
10
  });
11
+ const _sdds_cs = require("@salutejs/sdds-themes/tokens/sdds_cs");
11
12
  const _emotion = require("@salutejs/plasma-new-hope/emotion");
12
13
  const config = {
13
14
  defaults: {
@@ -17,25 +18,25 @@ const config = {
17
18
  variations: {
18
19
  view: {
19
20
  default: (0, _emotion.css)`
20
- ${_emotion.indicatorTokens.color}: var(--surface-solid-default);
21
+ ${_emotion.indicatorTokens.color}: ${_sdds_cs.surfaceSolidDefault};
21
22
  `,
22
23
  accent: (0, _emotion.css)`
23
- ${_emotion.indicatorTokens.color}: var(--surface-accent);
24
+ ${_emotion.indicatorTokens.color}: ${_sdds_cs.surfaceAccent};
24
25
  `,
25
26
  inactive: (0, _emotion.css)`
26
- ${_emotion.indicatorTokens.color}: var(--on-light-surface-solid-primary);
27
+ ${_emotion.indicatorTokens.color}: ${_sdds_cs.onLightSurfaceSolidPrimary};
27
28
  `,
28
29
  positive: (0, _emotion.css)`
29
- ${_emotion.indicatorTokens.color}: var(--surface-positive);
30
+ ${_emotion.indicatorTokens.color}: ${_sdds_cs.surfacePositive};
30
31
  `,
31
32
  negative: (0, _emotion.css)`
32
- ${_emotion.indicatorTokens.color}: var(--surface-negative);
33
+ ${_emotion.indicatorTokens.color}: ${_sdds_cs.surfaceNegative};
33
34
  `,
34
35
  warning: (0, _emotion.css)`
35
- ${_emotion.indicatorTokens.color}: var(--surface-warning);
36
+ ${_emotion.indicatorTokens.color}: ${_sdds_cs.surfaceWarning};
36
37
  `,
37
38
  black: (0, _emotion.css)`
38
- ${_emotion.indicatorTokens.color}: var(--text-primary);
39
+ ${_emotion.indicatorTokens.color}: ${_sdds_cs.textPrimary};
39
40
  `
40
41
  },
41
42
  size: {
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "config", {
8
8
  return config;
9
9
  }
10
10
  });
11
+ const _sdds_cs = require("@salutejs/sdds-themes/tokens/sdds_cs");
11
12
  const _emotion = require("@salutejs/plasma-new-hope/emotion");
12
13
  const config = {
13
14
  defaults: {
@@ -17,40 +18,40 @@ const config = {
17
18
  variations: {
18
19
  view: {
19
20
  default: (0, _emotion.css)`
20
- ${_emotion.linkTokens.linkFontFamily}: var(--plasma-typo-text-m-font-family);
21
- ${_emotion.linkTokens.linkColor}: var(--text-primary);
22
- ${_emotion.linkTokens.linkColorHover}: var(--text-primary-hover);
23
- ${_emotion.linkTokens.linkColorActive}: var(--text-primary-active);
24
- ${_emotion.linkTokens.linkColorVisited}: var(--text-primary);
25
- ${_emotion.linkTokens.linkColorVisitedHover}: var(--text-primary-hover);
26
- ${_emotion.linkTokens.linkColorVisitedActive}: var(--text-primary-active);
21
+ ${_emotion.linkTokens.linkFontFamily}: ${_sdds_cs.textM.fontFamily};
22
+ ${_emotion.linkTokens.linkColor}: ${_sdds_cs.textPrimary};
23
+ ${_emotion.linkTokens.linkColorHover}: ${_sdds_cs.textPrimaryHover};
24
+ ${_emotion.linkTokens.linkColorActive}: ${_sdds_cs.textPrimaryActive};
25
+ ${_emotion.linkTokens.linkColorVisited}: ${_sdds_cs.textPrimary};
26
+ ${_emotion.linkTokens.linkColorVisitedHover}: ${_sdds_cs.textPrimaryHover};
27
+ ${_emotion.linkTokens.linkColorVisitedActive}: ${_sdds_cs.textPrimaryActive};
27
28
  ${_emotion.linkTokens.linkUnderlineBorder}: 0.063rem;
28
29
  ${_emotion.linkTokens.linkUnderlineOffset}: 0.25rem;
29
30
  `,
30
31
  secondary: (0, _emotion.css)`
31
- ${_emotion.linkTokens.linkFontFamily}: var(--plasma-typo-text-m-font-family);
32
- ${_emotion.linkTokens.linkColor}: var(--text-secondary);
33
- ${_emotion.linkTokens.linkColorHover}: var(--text-secondary-hover);
34
- ${_emotion.linkTokens.linkColorActive}: var(--text-secondary-active);
35
- ${_emotion.linkTokens.linkColorVisited}: var(--text-secondary);
36
- ${_emotion.linkTokens.linkColorVisitedHover}: var(--text-secondary-hover);
37
- ${_emotion.linkTokens.linkColorVisitedActive}: var(--text-secondary-active);
32
+ ${_emotion.linkTokens.linkFontFamily}: ${_sdds_cs.textM.fontFamily};
33
+ ${_emotion.linkTokens.linkColor}: ${_sdds_cs.textSecondary};
34
+ ${_emotion.linkTokens.linkColorHover}: ${_sdds_cs.textSecondaryHover};
35
+ ${_emotion.linkTokens.linkColorActive}: ${_sdds_cs.textSecondaryActive};
36
+ ${_emotion.linkTokens.linkColorVisited}: ${_sdds_cs.textSecondary};
37
+ ${_emotion.linkTokens.linkColorVisitedHover}: ${_sdds_cs.textSecondaryHover};
38
+ ${_emotion.linkTokens.linkColorVisitedActive}: ${_sdds_cs.textSecondaryActive};
38
39
  ${_emotion.linkTokens.linkUnderlineBorder}: 0.063rem;
39
40
  ${_emotion.linkTokens.linkUnderlineOffset}: 0.25rem;
40
41
  `,
41
42
  tertiary: (0, _emotion.css)`
42
- ${_emotion.linkTokens.linkFontFamily}: var(--plasma-typo-text-m-font-family);
43
- ${_emotion.linkTokens.linkColor}: var(--text-tertiary);
44
- ${_emotion.linkTokens.linkColorHover}: var(--text-tertiary-hover);
45
- ${_emotion.linkTokens.linkColorActive}: var(--text-tertiary-active);
46
- ${_emotion.linkTokens.linkColorVisited}: var(--text-tertiary);
47
- ${_emotion.linkTokens.linkColorVisitedHover}: var(--text-tertiary-hover);
48
- ${_emotion.linkTokens.linkColorVisitedActive}: var(--text-tertiary-active);
43
+ ${_emotion.linkTokens.linkFontFamily}: ${_sdds_cs.textM.fontFamily};
44
+ ${_emotion.linkTokens.linkColor}: ${_sdds_cs.textTertiary};
45
+ ${_emotion.linkTokens.linkColorHover}: ${_sdds_cs.textTertiaryHover};
46
+ ${_emotion.linkTokens.linkColorActive}: ${_sdds_cs.textTertiaryActive};
47
+ ${_emotion.linkTokens.linkColorVisited}: ${_sdds_cs.textTertiary};
48
+ ${_emotion.linkTokens.linkColorVisitedHover}: ${_sdds_cs.textTertiaryHover};
49
+ ${_emotion.linkTokens.linkColorVisitedActive}: ${_sdds_cs.textTertiaryActive};
49
50
  ${_emotion.linkTokens.linkUnderlineBorder}: 0.063rem;
50
51
  ${_emotion.linkTokens.linkUnderlineOffset}: 0.25rem;
51
52
  `,
52
53
  paragraph: (0, _emotion.css)`
53
- ${_emotion.linkTokens.linkFontFamily}: var(--plasma-typo-text-m-font-family);
54
+ ${_emotion.linkTokens.linkFontFamily}: ${_sdds_cs.textM.fontFamily};
54
55
  ${_emotion.linkTokens.linkColor}: var(--text-paragraph);
55
56
  ${_emotion.linkTokens.linkColorHover}: var(--text-paragraph-hover);
56
57
  ${_emotion.linkTokens.linkColorActive}: var(--text-paragraph-active);
@@ -61,51 +62,51 @@ const config = {
61
62
  ${_emotion.linkTokens.linkUnderlineOffset}: 0.25rem;
62
63
  `,
63
64
  accent: (0, _emotion.css)`
64
- ${_emotion.linkTokens.linkFontFamily}: var(--plasma-typo-text-m-font-family);
65
- ${_emotion.linkTokens.linkColor}: var(--text-accent);
66
- ${_emotion.linkTokens.linkColorHover}: var(--text-accent-minor);
67
- ${_emotion.linkTokens.linkColorActive}: var(--text-accent-active);
68
- ${_emotion.linkTokens.linkColorVisited}: var(--text-accent);
69
- ${_emotion.linkTokens.linkColorVisitedHover}: var(--text-accent-minor);
70
- ${_emotion.linkTokens.linkColorVisitedActive}: var(--text-accent-active);
65
+ ${_emotion.linkTokens.linkFontFamily}: ${_sdds_cs.textM.fontFamily};
66
+ ${_emotion.linkTokens.linkColor}: ${_sdds_cs.textAccent};
67
+ ${_emotion.linkTokens.linkColorHover}: ${_sdds_cs.textAccentMinor};
68
+ ${_emotion.linkTokens.linkColorActive}: ${_sdds_cs.textAccentActive};
69
+ ${_emotion.linkTokens.linkColorVisited}: ${_sdds_cs.textAccent};
70
+ ${_emotion.linkTokens.linkColorVisitedHover}: ${_sdds_cs.textAccentMinor};
71
+ ${_emotion.linkTokens.linkColorVisitedActive}: ${_sdds_cs.textAccentActive};
71
72
  ${_emotion.linkTokens.linkUnderlineBorder}: 0.063rem;
72
73
  ${_emotion.linkTokens.linkUnderlineOffset}: 0.25rem;
73
74
  `,
74
75
  positive: (0, _emotion.css)`
75
- ${_emotion.linkTokens.linkFontFamily}: var(--plasma-typo-text-m-font-family);
76
- ${_emotion.linkTokens.linkColor}: var(--text-positive);
77
- ${_emotion.linkTokens.linkColorHover}: var(--text-positive-hover);
78
- ${_emotion.linkTokens.linkColorActive}: var(--text-positive-active);
79
- ${_emotion.linkTokens.linkColorVisited}: var(--text-positive);
80
- ${_emotion.linkTokens.linkColorVisitedHover}: var(--text-positive-hover);
81
- ${_emotion.linkTokens.linkColorVisitedActive}: var(--text-positive-active);
76
+ ${_emotion.linkTokens.linkFontFamily}: ${_sdds_cs.textM.fontFamily};
77
+ ${_emotion.linkTokens.linkColor}: ${_sdds_cs.textPositive};
78
+ ${_emotion.linkTokens.linkColorHover}: ${_sdds_cs.textPositiveHover};
79
+ ${_emotion.linkTokens.linkColorActive}: ${_sdds_cs.textPositiveActive};
80
+ ${_emotion.linkTokens.linkColorVisited}: ${_sdds_cs.textPositive};
81
+ ${_emotion.linkTokens.linkColorVisitedHover}: ${_sdds_cs.textPositiveHover};
82
+ ${_emotion.linkTokens.linkColorVisitedActive}: ${_sdds_cs.textPositiveActive};
82
83
  ${_emotion.linkTokens.linkUnderlineBorder}: 0.063rem;
83
84
  ${_emotion.linkTokens.linkUnderlineOffset}: 0.25rem;
84
85
  `,
85
86
  warning: (0, _emotion.css)`
86
- ${_emotion.linkTokens.linkFontFamily}: var(--plasma-typo-text-m-font-family);
87
- ${_emotion.linkTokens.linkColor}: var(--text-warning);
88
- ${_emotion.linkTokens.linkColorHover}: var(--text-warning-hover);
89
- ${_emotion.linkTokens.linkColorActive}: var(--text-warning-active);
90
- ${_emotion.linkTokens.linkColorVisited}: var(--text-warning);
91
- ${_emotion.linkTokens.linkColorVisitedHover}: var(--text-warning-hover);
92
- ${_emotion.linkTokens.linkColorVisitedActive}: var(--text-warning-active);
87
+ ${_emotion.linkTokens.linkFontFamily}: ${_sdds_cs.textM.fontFamily};
88
+ ${_emotion.linkTokens.linkColor}: ${_sdds_cs.textWarning};
89
+ ${_emotion.linkTokens.linkColorHover}: ${_sdds_cs.textWarningHover};
90
+ ${_emotion.linkTokens.linkColorActive}: ${_sdds_cs.textWarningActive};
91
+ ${_emotion.linkTokens.linkColorVisited}: ${_sdds_cs.textWarning};
92
+ ${_emotion.linkTokens.linkColorVisitedHover}: ${_sdds_cs.textWarningHover};
93
+ ${_emotion.linkTokens.linkColorVisitedActive}: ${_sdds_cs.textWarningActive};
93
94
  ${_emotion.linkTokens.linkUnderlineBorder}: 0.063rem;
94
95
  ${_emotion.linkTokens.linkUnderlineOffset}: 0.25rem;
95
96
  `,
96
97
  negative: (0, _emotion.css)`
97
- ${_emotion.linkTokens.linkFontFamily}: var(--plasma-typo-text-m-font-family);
98
- ${_emotion.linkTokens.linkColor}: var(--text-negative);
99
- ${_emotion.linkTokens.linkColorHover}: var(--text-negative-hover);
100
- ${_emotion.linkTokens.linkColorActive}: var(--text-negative-active);
101
- ${_emotion.linkTokens.linkColorVisited}: var(--text-negative);
102
- ${_emotion.linkTokens.linkColorVisitedHover}: var(--text-negative-hover);
103
- ${_emotion.linkTokens.linkColorVisitedActive}: var(--text-negative-active);
98
+ ${_emotion.linkTokens.linkFontFamily}: ${_sdds_cs.textM.fontFamily};
99
+ ${_emotion.linkTokens.linkColor}: ${_sdds_cs.textNegative};
100
+ ${_emotion.linkTokens.linkColorHover}: ${_sdds_cs.textNegativeHover};
101
+ ${_emotion.linkTokens.linkColorActive}: ${_sdds_cs.textNegativeActive};
102
+ ${_emotion.linkTokens.linkColorVisited}: ${_sdds_cs.textNegative};
103
+ ${_emotion.linkTokens.linkColorVisitedHover}: ${_sdds_cs.textNegativeHover};
104
+ ${_emotion.linkTokens.linkColorVisitedActive}: ${_sdds_cs.textNegativeActive};
104
105
  ${_emotion.linkTokens.linkUnderlineBorder}: 0.063rem;
105
106
  ${_emotion.linkTokens.linkUnderlineOffset}: 0.25rem;
106
107
  `,
107
108
  clear: (0, _emotion.css)`
108
- ${_emotion.linkTokens.linkFontFamily}: var(--plasma-typo-text-m-font-family);
109
+ ${_emotion.linkTokens.linkFontFamily}: ${_sdds_cs.textM.fontFamily};
109
110
  ${_emotion.linkTokens.linkColor}:inherit;
110
111
  ${_emotion.linkTokens.linkColorHover}: inherit;
111
112
  ${_emotion.linkTokens.linkColorActive}: inherit;
@@ -123,7 +124,7 @@ const config = {
123
124
  },
124
125
  focused: {
125
126
  true: (0, _emotion.css)`
126
- ${_emotion.linkTokens.linkColorFocus}: var(--text-primary);
127
+ ${_emotion.linkTokens.linkColorFocus}: ${_sdds_cs.textPrimary};
127
128
  `
128
129
  }
129
130
  }
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "config", {
8
8
  return config;
9
9
  }
10
10
  });
11
+ const _sdds_cs = require("@salutejs/sdds-themes/tokens/sdds_cs");
11
12
  const _emotion = require("@salutejs/plasma-new-hope/emotion");
12
13
  const config = {
13
14
  defaults: {
@@ -18,15 +19,15 @@ const config = {
18
19
  default: (0, _emotion.css)`
19
20
  ${_emotion.modalTokens.modalOverlayWithBlurColor}: rgba(35, 35, 35, 0.2);
20
21
  ${_emotion.modalTokens.modalOverlayColor}: var(--overlay-soft);
21
- ${_emotion.modalTokens.modalBodyBackground}: var(--surface-solid-card);
22
+ ${_emotion.modalTokens.modalBodyBackground}: ${_sdds_cs.surfaceSolidCard};
22
23
  ${_emotion.modalTokens.modalBodyBorderRadius}: 1.25rem;
23
24
  ${_emotion.modalTokens.modalBodyPadding}: 2rem;
24
25
  ${_emotion.modalTokens.modalContentPadding}: 0.625rem;
25
26
  ${_emotion.modalTokens.modalCloseButtonRadius}: 0.375rem;
26
- ${_emotion.modalTokens.modalCloseButtonColor}: var(--text-accent);
27
- ${_emotion.modalTokens.modalCloseButtonHoverColor}: var(--text-accent-minor);
28
- ${_emotion.modalTokens.modalCloseButtonActiveColor}: var(--text-accent-active);
29
- ${_emotion.modalTokens.modalOutlineFocusColor}: var(--surface-accent);
27
+ ${_emotion.modalTokens.modalCloseButtonColor}: ${_sdds_cs.textAccent};
28
+ ${_emotion.modalTokens.modalCloseButtonHoverColor}: ${_sdds_cs.textAccentMinor};
29
+ ${_emotion.modalTokens.modalCloseButtonActiveColor}: ${_sdds_cs.textAccentActive};
30
+ ${_emotion.modalTokens.modalOutlineFocusColor}: ${_sdds_cs.surfaceAccent};
30
31
  `
31
32
  }
32
33
  }
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "config", {
8
8
  return config;
9
9
  }
10
10
  });
11
+ const _sdds_cs = require("@salutejs/sdds-themes/tokens/sdds_cs");
11
12
  const _emotion = require("@salutejs/plasma-new-hope/emotion");
12
13
  const config = {
13
14
  defaults: {
@@ -17,13 +18,13 @@ const config = {
17
18
  variations: {
18
19
  view: {
19
20
  default: (0, _emotion.css)`
20
- ${_emotion.notificationTokens.titleColor}: var(--text-primary);
21
- ${_emotion.notificationTokens.contentLeftIconColor}: var(--text-primary);
22
- ${_emotion.notificationTokens.contentColor}: var(--text-secondary);
23
- ${_emotion.notificationTokens.background}: var(--surface-solid-card);
21
+ ${_emotion.notificationTokens.titleColor}: ${_sdds_cs.textPrimary};
22
+ ${_emotion.notificationTokens.contentLeftIconColor}: ${_sdds_cs.textPrimary};
23
+ ${_emotion.notificationTokens.contentColor}: ${_sdds_cs.textSecondary};
24
+ ${_emotion.notificationTokens.background}: ${_sdds_cs.surfaceSolidCard};
24
25
  ${_emotion.notificationTokens.borderRadius}: 0.75rem;
25
26
  ${_emotion.notificationTokens.padding}: 0.75rem;
26
- ${_emotion.notificationTokens.borderColor}: var(--outline-solid-primary);
27
+ ${_emotion.notificationTokens.borderColor}: ${_sdds_cs.outlineSolidPrimary};
27
28
 
28
29
  ${_emotion.notificationTokens.contentPaddingTop}: 0.125rem;
29
30
  ${_emotion.notificationTokens.contentPaddingRight}: 0.25rem;
@@ -50,22 +51,22 @@ const config = {
50
51
  ${_emotion.notificationTokens.contentLeftIconMargin}: 0.25rem;
51
52
  ${_emotion.notificationTokens.contentTopIconMargin}: 0.25rem;
52
53
 
53
- ${_emotion.notificationTokens.contentFontFamily}: var(--plasma-typo-body-s-font-family);
54
- ${_emotion.notificationTokens.contentFontSize}: var(--plasma-typo-body-s-font-size);
55
- ${_emotion.notificationTokens.contentFontStyle}: var(--plasma-typo-body-s-font-style);
56
- ${_emotion.notificationTokens.contentFontWeight}: var(--plasma-typo-body-s-font-weight);
57
- ${_emotion.notificationTokens.contentFontLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
58
- ${_emotion.notificationTokens.contentFontLineHeight}: var(--plasma-typo-body-s-line-height);
59
-
60
- ${_emotion.notificationTokens.titleFontFamily}: var(--plasma-typo-body-m-font-family);
61
- ${_emotion.notificationTokens.titleFontSize}: var(--plasma-typo-body-m-font-size);
62
- ${_emotion.notificationTokens.titleFontStyle}: var(--plasma-typo-body-m-font-style);
63
- ${_emotion.notificationTokens.titleFontWeight}: var(--plasma-typo-body-m-bold-font-weight);
64
- ${_emotion.notificationTokens.titleFontLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
65
- ${_emotion.notificationTokens.titleFontLineHeight}: var(--plasma-typo-body-m-line-height);
66
-
67
- ${_emotion.notificationTokens.closeIconColor}: var(--text-accent);
68
- ${_emotion.notificationTokens.closeIconColorOnHover}:var(--text-accent-minor);
54
+ ${_emotion.notificationTokens.contentFontFamily}: ${_sdds_cs.bodyS.fontFamily};
55
+ ${_emotion.notificationTokens.contentFontSize}: ${_sdds_cs.bodyS.fontSize};
56
+ ${_emotion.notificationTokens.contentFontStyle}: ${_sdds_cs.bodyS.fontStyle};
57
+ ${_emotion.notificationTokens.contentFontWeight}: ${_sdds_cs.bodyS.fontWeight};
58
+ ${_emotion.notificationTokens.contentFontLetterSpacing}: ${_sdds_cs.bodyS.letterSpacing};
59
+ ${_emotion.notificationTokens.contentFontLineHeight}: ${_sdds_cs.bodyS.lineHeight};
60
+
61
+ ${_emotion.notificationTokens.titleFontFamily}: ${_sdds_cs.bodyM.fontFamily};
62
+ ${_emotion.notificationTokens.titleFontSize}: ${_sdds_cs.bodyM.fontSize};
63
+ ${_emotion.notificationTokens.titleFontStyle}: ${_sdds_cs.bodyM.fontStyle};
64
+ ${_emotion.notificationTokens.titleFontWeight}: ${_sdds_cs.bodyMBold.fontWeight};
65
+ ${_emotion.notificationTokens.titleFontLetterSpacing}: ${_sdds_cs.bodyM.letterSpacing};
66
+ ${_emotion.notificationTokens.titleFontLineHeight}: ${_sdds_cs.bodyM.lineHeight};
67
+
68
+ ${_emotion.notificationTokens.closeIconColor}: ${_sdds_cs.textAccent};
69
+ ${_emotion.notificationTokens.closeIconColorOnHover}:${_sdds_cs.textAccentMinor};
69
70
 
70
71
  ${_emotion.notificationTokens.horizontalLayoutGap}: 0.5rem;
71
72
  ${_emotion.notificationTokens.horizontalLayoutLeftIconMargin}: 0.75rem;