@salutejs/plasma-hope 1.387.0 → 1.387.1-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 (229) hide show
  1. package/components/Button/views/b2c/ButtonB2C.d.ts +1 -1
  2. package/components/Button/views/web/ButtonWeb.d.ts +1 -1
  3. package/components/Card/CardBadge.d.ts +12 -1
  4. package/components/Card/CardBadge.d.ts.map +1 -1
  5. package/components/Card/CardBadge.js +19 -4
  6. package/components/PreviewGallery/PreviewGalleryItemBase.d.ts +1 -1
  7. package/components/PreviewGallery/PreviewGalleryItemBase.d.ts.map +1 -1
  8. package/components/PreviewGallery/PreviewGalleryItemBase.js +1 -2
  9. package/components/Upload/UploadMessage.d.ts.map +1 -1
  10. package/components/Upload/UploadMessage.js +2 -2
  11. package/es/components/Card/CardBadge.js +17 -3
  12. package/es/components/PreviewGallery/PreviewGalleryItemBase.js +1 -2
  13. package/es/components/Upload/UploadMessage.js +1 -1
  14. package/es/index.js +0 -10
  15. package/index.d.ts +0 -10
  16. package/index.js +0 -110
  17. package/package.json +11 -11
  18. package/components/Badge/Badge.d.ts +0 -21
  19. package/components/Badge/Badge.d.ts.map +0 -1
  20. package/components/Badge/Badge.js +0 -30
  21. package/components/Badge/index.d.ts +0 -5
  22. package/components/Badge/index.d.ts.map +0 -1
  23. package/components/Badge/index.js +0 -25
  24. package/components/Cell/Cell.d.ts +0 -18
  25. package/components/Cell/Cell.d.ts.map +0 -1
  26. package/components/Cell/Cell.js +0 -32
  27. package/components/Cell/index.d.ts +0 -3
  28. package/components/Cell/index.d.ts.map +0 -1
  29. package/components/Cell/index.js +0 -12
  30. package/components/Dropdown/Dropdown.component-test.js +0 -547
  31. package/components/Dropdown/Dropdown.d.ts +0 -20
  32. package/components/Dropdown/Dropdown.d.ts.map +0 -1
  33. package/components/Dropdown/Dropdown.js +0 -64
  34. package/components/Dropdown/Dropdown.types.d.ts +0 -16
  35. package/components/Dropdown/Dropdown.types.d.ts.map +0 -1
  36. package/components/Dropdown/Dropdown.types.js +0 -7
  37. package/components/Dropdown/DropdownItem.d.ts +0 -30
  38. package/components/Dropdown/DropdownItem.d.ts.map +0 -1
  39. package/components/Dropdown/DropdownItem.js +0 -122
  40. package/components/Dropdown/DropdownList.d.ts +0 -22
  41. package/components/Dropdown/DropdownList.d.ts.map +0 -1
  42. package/components/Dropdown/DropdownList.js +0 -23
  43. package/components/Dropdown/DropdownMenu.d.ts +0 -30
  44. package/components/Dropdown/DropdownMenu.d.ts.map +0 -1
  45. package/components/Dropdown/DropdownMenu.js +0 -60
  46. package/components/Dropdown/DropdownPopup.d.ts +0 -18
  47. package/components/Dropdown/DropdownPopup.d.ts.map +0 -1
  48. package/components/Dropdown/DropdownPopup.js +0 -47
  49. package/components/Dropdown/DropdownUncontrolled.d.ts +0 -12
  50. package/components/Dropdown/DropdownUncontrolled.d.ts.map +0 -1
  51. package/components/Dropdown/DropdownUncontrolled.js +0 -69
  52. package/components/Dropdown/index.d.ts +0 -13
  53. package/components/Dropdown/index.d.ts.map +0 -1
  54. package/components/Dropdown/index.js +0 -53
  55. package/components/Dropdown/keyboardNavigation/index.d.ts +0 -2
  56. package/components/Dropdown/keyboardNavigation/index.d.ts.map +0 -1
  57. package/components/Dropdown/keyboardNavigation/index.js +0 -18
  58. package/components/Dropdown/keyboardNavigation/useKeyboardNavigation.d.ts +0 -20
  59. package/components/Dropdown/keyboardNavigation/useKeyboardNavigation.d.ts.map +0 -1
  60. package/components/Dropdown/keyboardNavigation/useKeyboardNavigation.js +0 -58
  61. package/components/Dropdown/keyboardNavigation/useOnComboType.d.ts +0 -6
  62. package/components/Dropdown/keyboardNavigation/useOnComboType.d.ts.map +0 -1
  63. package/components/Dropdown/keyboardNavigation/useOnComboType.js +0 -30
  64. package/components/Dropdown/keyboardNavigation/useSearchString.d.ts +0 -5
  65. package/components/Dropdown/keyboardNavigation/useSearchString.d.ts.map +0 -1
  66. package/components/Dropdown/keyboardNavigation/useSearchString.js +0 -46
  67. package/components/Dropdown/keyboardNavigation/utils.d.ts +0 -39
  68. package/components/Dropdown/keyboardNavigation/utils.d.ts.map +0 -1
  69. package/components/Dropdown/keyboardNavigation/utils.js +0 -175
  70. package/components/Dropdown/withAssistiveDropdown.d.ts +0 -27
  71. package/components/Dropdown/withAssistiveDropdown.d.ts.map +0 -1
  72. package/components/Dropdown/withAssistiveDropdown.js +0 -134
  73. package/components/Editable/Editable.component-test.js +0 -114
  74. package/components/Editable/Editable.d.ts +0 -36
  75. package/components/Editable/Editable.d.ts.map +0 -1
  76. package/components/Editable/Editable.js +0 -154
  77. package/components/Editable/index.d.ts +0 -2
  78. package/components/Editable/index.d.ts.map +0 -1
  79. package/components/Editable/index.js +0 -16
  80. package/components/List/List.d.ts +0 -3
  81. package/components/List/List.d.ts.map +0 -1
  82. package/components/List/List.js +0 -14
  83. package/components/List/ListItem.d.ts +0 -3
  84. package/components/List/ListItem.d.ts.map +0 -1
  85. package/components/List/ListItem.js +0 -14
  86. package/components/List/index.d.ts +0 -3
  87. package/components/List/index.d.ts.map +0 -1
  88. package/components/List/index.js +0 -19
  89. package/components/Price/Price.d.ts +0 -8
  90. package/components/Price/Price.d.ts.map +0 -1
  91. package/components/Price/Price.js +0 -17
  92. package/components/Price/index.d.ts +0 -3
  93. package/components/Price/index.d.ts.map +0 -1
  94. package/components/Price/index.js +0 -12
  95. package/components/Select/Select.d.ts +0 -35
  96. package/components/Select/Select.d.ts.map +0 -1
  97. package/components/Select/Select.js +0 -38
  98. package/components/Select/Select.utils.d.ts +0 -18
  99. package/components/Select/Select.utils.d.ts.map +0 -1
  100. package/components/Select/Select.utils.js +0 -50
  101. package/components/Select/SelectButton.d.ts +0 -20
  102. package/components/Select/SelectButton.d.ts.map +0 -1
  103. package/components/Select/SelectButton.js +0 -75
  104. package/components/Select/SelectDropdown.d.ts +0 -6
  105. package/components/Select/SelectDropdown.d.ts.map +0 -1
  106. package/components/Select/SelectDropdown.js +0 -16
  107. package/components/Select/SelectGroup.d.ts +0 -2
  108. package/components/Select/SelectGroup.d.ts.map +0 -1
  109. package/components/Select/SelectGroup.js +0 -13
  110. package/components/Select/SelectView.d.ts +0 -18
  111. package/components/Select/SelectView.d.ts.map +0 -1
  112. package/components/Select/SelectView.js +0 -29
  113. package/components/Select/index.d.ts +0 -5
  114. package/components/Select/index.d.ts.map +0 -1
  115. package/components/Select/index.js +0 -19
  116. package/components/Select/types.d.ts +0 -4
  117. package/components/Select/types.d.ts.map +0 -1
  118. package/components/Select/types.js +0 -5
  119. package/components/Select/views/b2c/SelectButton.d.ts +0 -4
  120. package/components/Select/views/b2c/SelectButton.d.ts.map +0 -1
  121. package/components/Select/views/b2c/SelectButton.js +0 -18
  122. package/components/Select/views/b2c/SelectDropdown.d.ts +0 -2
  123. package/components/Select/views/b2c/SelectDropdown.d.ts.map +0 -1
  124. package/components/Select/views/b2c/SelectDropdown.js +0 -11
  125. package/components/Select/views/b2c/SelectView.d.ts +0 -7
  126. package/components/Select/views/b2c/SelectView.d.ts.map +0 -1
  127. package/components/Select/views/b2c/SelectView.js +0 -76
  128. package/components/Select/views/web/SelectView.d.ts +0 -7
  129. package/components/Select/views/web/SelectView.d.ts.map +0 -1
  130. package/components/Select/views/web/SelectView.js +0 -73
  131. package/components/Select/withMultiSelect.d.ts +0 -24
  132. package/components/Select/withMultiSelect.d.ts.map +0 -1
  133. package/components/Select/withMultiSelect.js +0 -54
  134. package/components/Select/withSingleSelect.d.ts +0 -20
  135. package/components/Select/withSingleSelect.d.ts.map +0 -1
  136. package/components/Select/withSingleSelect.js +0 -47
  137. package/components/Slider/Slider.d.ts +0 -4
  138. package/components/Slider/Slider.d.ts.map +0 -1
  139. package/components/Slider/Slider.js +0 -14
  140. package/components/Slider/index.d.ts +0 -2
  141. package/components/Slider/index.d.ts.map +0 -1
  142. package/components/Slider/index.js +0 -12
  143. package/components/Switch/Switch.d.ts +0 -6
  144. package/components/Switch/Switch.d.ts.map +0 -1
  145. package/components/Switch/Switch.js +0 -17
  146. package/components/Switch/index.d.ts +0 -3
  147. package/components/Switch/index.d.ts.map +0 -1
  148. package/components/Switch/index.js +0 -12
  149. package/components/Typography/Body/index.d.ts +0 -2
  150. package/components/Typography/Body/index.d.ts.map +0 -1
  151. package/components/Typography/Body/index.js +0 -18
  152. package/components/Typography/Button/index.d.ts +0 -2
  153. package/components/Typography/Button/index.d.ts.map +0 -1
  154. package/components/Typography/Button/index.js +0 -18
  155. package/components/Typography/Caption/index.d.ts +0 -2
  156. package/components/Typography/Caption/index.d.ts.map +0 -1
  157. package/components/Typography/Caption/index.js +0 -12
  158. package/components/Typography/Footnote/index.d.ts +0 -2
  159. package/components/Typography/Footnote/index.d.ts.map +0 -1
  160. package/components/Typography/Footnote/index.js +0 -18
  161. package/components/Typography/Headline/index.d.ts +0 -4
  162. package/components/Typography/Headline/index.d.ts.map +0 -1
  163. package/components/Typography/Headline/index.js +0 -52
  164. package/components/Typography/Paragraph/index.d.ts +0 -2
  165. package/components/Typography/Paragraph/index.d.ts.map +0 -1
  166. package/components/Typography/Paragraph/index.js +0 -36
  167. package/components/Typography/Subtitle/index.d.ts +0 -2
  168. package/components/Typography/Subtitle/index.d.ts.map +0 -1
  169. package/components/Typography/Subtitle/index.js +0 -21
  170. package/components/Typography/Underline/index.d.ts +0 -2
  171. package/components/Typography/Underline/index.d.ts.map +0 -1
  172. package/components/Typography/Underline/index.js +0 -12
  173. package/components/Typography/index.d.ts +0 -11
  174. package/components/Typography/index.d.ts.map +0 -1
  175. package/components/Typography/index.js +0 -223
  176. package/es/components/Badge/Badge.js +0 -22
  177. package/es/components/Badge/index.js +0 -2
  178. package/es/components/Cell/Cell.js +0 -25
  179. package/es/components/Cell/index.js +0 -1
  180. package/es/components/Dropdown/Dropdown.component-test.js +0 -544
  181. package/es/components/Dropdown/Dropdown.js +0 -55
  182. package/es/components/Dropdown/Dropdown.types.js +0 -3
  183. package/es/components/Dropdown/DropdownItem.js +0 -114
  184. package/es/components/Dropdown/DropdownList.js +0 -15
  185. package/es/components/Dropdown/DropdownMenu.js +0 -53
  186. package/es/components/Dropdown/DropdownPopup.js +0 -39
  187. package/es/components/Dropdown/DropdownUncontrolled.js +0 -61
  188. package/es/components/Dropdown/index.js +0 -6
  189. package/es/components/Dropdown/keyboardNavigation/index.js +0 -1
  190. package/es/components/Dropdown/keyboardNavigation/useKeyboardNavigation.js +0 -52
  191. package/es/components/Dropdown/keyboardNavigation/useOnComboType.js +0 -24
  192. package/es/components/Dropdown/keyboardNavigation/useSearchString.js +0 -40
  193. package/es/components/Dropdown/keyboardNavigation/utils.js +0 -170
  194. package/es/components/Dropdown/withAssistiveDropdown.js +0 -126
  195. package/es/components/Editable/Editable.component-test.js +0 -111
  196. package/es/components/Editable/Editable.js +0 -145
  197. package/es/components/Editable/index.js +0 -1
  198. package/es/components/List/List.js +0 -7
  199. package/es/components/List/ListItem.js +0 -7
  200. package/es/components/List/index.js +0 -2
  201. package/es/components/Price/Price.js +0 -10
  202. package/es/components/Price/index.js +0 -1
  203. package/es/components/Select/Select.js +0 -29
  204. package/es/components/Select/Select.utils.js +0 -44
  205. package/es/components/Select/SelectButton.js +0 -67
  206. package/es/components/Select/SelectDropdown.js +0 -9
  207. package/es/components/Select/SelectGroup.js +0 -6
  208. package/es/components/Select/SelectView.js +0 -21
  209. package/es/components/Select/index.js +0 -2
  210. package/es/components/Select/types.js +0 -1
  211. package/es/components/Select/views/b2c/SelectButton.js +0 -12
  212. package/es/components/Select/views/b2c/SelectDropdown.js +0 -5
  213. package/es/components/Select/views/b2c/SelectView.js +0 -67
  214. package/es/components/Select/views/web/SelectView.js +0 -64
  215. package/es/components/Select/withMultiSelect.js +0 -46
  216. package/es/components/Select/withSingleSelect.js +0 -39
  217. package/es/components/Slider/Slider.js +0 -7
  218. package/es/components/Slider/index.js +0 -1
  219. package/es/components/Switch/Switch.js +0 -10
  220. package/es/components/Switch/index.js +0 -1
  221. package/es/components/Typography/Body/index.js +0 -1
  222. package/es/components/Typography/Button/index.js +0 -1
  223. package/es/components/Typography/Caption/index.js +0 -1
  224. package/es/components/Typography/Footnote/index.js +0 -1
  225. package/es/components/Typography/Headline/index.js +0 -20
  226. package/es/components/Typography/Paragraph/index.js +0 -1
  227. package/es/components/Typography/Subtitle/index.js +0 -14
  228. package/es/components/Typography/Underline/index.js +0 -1
  229. package/es/components/Typography/index.js +0 -9
@@ -1,3 +1,3 @@
1
1
  import type { ButtonSizeProps, ButtonViewProps } from '@salutejs/plasma-core';
2
- export declare const ButtonB2C: import("styled-components").StyledComponent<"button", any, import("@salutejs/plasma-core/components/Button/Button.types").StyledButtonProps & Partial<ButtonSizeProps<string | number>> & Partial<ButtonViewProps<"checked" | "primary" | "secondary" | "success" | "warning" | "critical" | "overlay" | "clear">>, never>;
2
+ export declare const ButtonB2C: import("styled-components").StyledComponent<"button", any, import("@salutejs/plasma-core/components/Button/Button.types").StyledButtonProps & Partial<ButtonSizeProps<string | number>> & Partial<ButtonViewProps<"checked" | "overlay" | "clear" | "primary" | "secondary" | "success" | "warning" | "critical">>, never>;
3
3
  //# sourceMappingURL=ButtonB2C.d.ts.map
@@ -1,3 +1,3 @@
1
1
  import type { ButtonSizeProps, ButtonViewProps } from '@salutejs/plasma-core';
2
- export declare const ButtonWeb: import("styled-components").StyledComponent<"button", any, import("@salutejs/plasma-core/components/Button/Button.types").StyledButtonProps & Partial<ButtonSizeProps<string | number>> & Partial<ButtonViewProps<"checked" | "primary" | "secondary" | "success" | "warning" | "critical" | "overlay" | "clear">>, never>;
2
+ export declare const ButtonWeb: import("styled-components").StyledComponent<"button", any, import("@salutejs/plasma-core/components/Button/Button.types").StyledButtonProps & Partial<ButtonSizeProps<string | number>> & Partial<ButtonViewProps<"checked" | "overlay" | "clear" | "primary" | "secondary" | "success" | "warning" | "critical">>, never>;
3
3
  //# sourceMappingURL=ButtonWeb.d.ts.map
@@ -1,2 +1,13 @@
1
- export declare const CardBadge: import("styled-components").StyledComponent<import("react").FC<import("@salutejs/plasma-core").BadgeProps>, any, import("../Badge").BadgeProps, never>;
1
+ import type { BadgeProps as BaseProps } from '@salutejs/plasma-core';
2
+ declare const badgeViews: {
3
+ primary: import("styled-components").FlattenSimpleInterpolation;
4
+ secondary: import("styled-components").FlattenSimpleInterpolation;
5
+ success: import("styled-components").FlattenSimpleInterpolation;
6
+ warning: import("styled-components").FlattenSimpleInterpolation;
7
+ critical: import("styled-components").FlattenSimpleInterpolation;
8
+ };
9
+ export declare const CardBadge: import("styled-components").StyledComponent<import("react").FC<BaseProps>, any, BaseProps & {
10
+ view?: keyof typeof badgeViews;
11
+ }, never>;
12
+ export {};
2
13
  //# sourceMappingURL=CardBadge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CardBadge.d.ts","sourceRoot":"","sources":["../../src/components/Card/CardBadge.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS,wJAErB,CAAC"}
1
+ {"version":3,"file":"CardBadge.d.ts","sourceRoot":"","sources":["../../src/components/Card/CardBadge.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAErE,QAAA,MAAM,UAAU;;;;;;CAqBf,CAAC;AAQF,eAAO,MAAM,SAAS;WAN+B,MAAM,OAAO,UAAU;SAQ3E,CAAC"}
@@ -1,14 +1,29 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.CardBadge = void 0;
7
- var _styledComponents = /*#__PURE__*/_interopRequireDefault(/*#__PURE__*/require("styled-components"));
8
- var _Badge = /*#__PURE__*/require("../Badge");
8
+ var _styledComponents = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("styled-components"));
9
+ var _plasmaCore = /*#__PURE__*/require("@salutejs/plasma-core");
9
10
  var _collectPackageInfo = /*#__PURE__*/require("../../collectPackageInfo");
10
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
11
12
  (0, _collectPackageInfo.collectPackageInfo)('Card/CardBadge');
12
- var CardBadge = exports.CardBadge = /*#__PURE__*/(0, _styledComponents["default"])(_Badge.Badge).withConfig({
13
+ var badgeViews = {
14
+ primary: /*#__PURE__*/(0, _styledComponents.css)(["color:#226af1;background-color:rgba(34,106,241,0.09);"]),
15
+ secondary: /*#__PURE__*/(0, _styledComponents.css)(["color:", ";background-color:", ";"], _plasmaCore.text, _plasmaCore.surfaceLiquid02),
16
+ success: /*#__PURE__*/(0, _styledComponents.css)(["color:#09a552;background-color:rgba(9,165,82,0.08);"]),
17
+ warning: /*#__PURE__*/(0, _styledComponents.css)(["color:#ee6820;background-color:rgba(238,104,32,0.08);"]),
18
+ critical: /*#__PURE__*/(0, _styledComponents.css)(["color:#df2638;background-color:rgba(223,38,56,0.09);"])
19
+ };
20
+ var Badge = /*#__PURE__*/(0, _styledComponents["default"])(_plasmaCore.Badge).withConfig({
13
21
  componentId: "plasma-web-core__sc-1c7gtrx-0"
22
+ })(["border-radius:0.25rem;", ""], function (_ref) {
23
+ var _ref$view = _ref.view,
24
+ view = _ref$view === void 0 ? 'primary' : _ref$view;
25
+ return badgeViews[view];
26
+ });
27
+ var CardBadge = exports.CardBadge = /*#__PURE__*/(0, _styledComponents["default"])(Badge).withConfig({
28
+ componentId: "plasma-web-core__sc-1c7gtrx-1"
14
29
  })(["position:absolute;"]);
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Footnote2 } from '../Typography';
2
+ import { Footnote2 } from '@salutejs/plasma-core';
3
3
  import { AddionalItemProps, StatusType, TooltipItem } from './types';
4
4
  export declare const buttonMixin: (vPosition: "left" | "right", bgColor: string, color: string) => import("styled-components").FlattenSimpleInterpolation;
5
5
  export declare const StyledSelectButton: import("styled-components").StyledComponent<"button", any, {}, never>;
@@ -1 +1 @@
1
- {"version":3,"file":"PreviewGalleryItemBase.d.ts","sourceRoot":"","sources":["../../src/components/PreviewGallery/PreviewGalleryItemBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAKpC,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAErE,eAAO,MAAM,WAAW,cAAe,MAAM,GAAG,OAAO,WAAW,MAAM,SAAS,MAAM,2DAmBtF,CAAC;AAEF,eAAO,MAAM,kBAAkB,uEAE9B,CAAC;AAEF,eAAO,MAAM,iBAAiB,uEAM7B,CAAC;AAEF,eAAO,MAAM,cAAc,4HAM1B,CAAC;AAGF,KAAK,aAAa,GAAG,OAAO,SAAS,CAAC;AAEtC,eAAO,MAAM,aAAa,EAAE,aAK3B,CAAC;AAEF,eAAO,MAAM,UAAU;YAAwB,MAAM;SAuBpD,CAAC;AAEF,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACxB;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAClD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;CACzB;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,0LAe5B,uBAAuB,GAAG,iBAAiB,iBA0CjD,CAAC"}
1
+ {"version":3,"file":"PreviewGalleryItemBase.d.ts","sourceRoot":"","sources":["../../src/components/PreviewGallery/PreviewGalleryItemBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAS,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGzD,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAErE,eAAO,MAAM,WAAW,cAAe,MAAM,GAAG,OAAO,WAAW,MAAM,SAAS,MAAM,2DAmBtF,CAAC;AAEF,eAAO,MAAM,kBAAkB,uEAE9B,CAAC;AAEF,eAAO,MAAM,iBAAiB,uEAM7B,CAAC;AAEF,eAAO,MAAM,cAAc,4HAM1B,CAAC;AAGF,KAAK,aAAa,GAAG,OAAO,SAAS,CAAC;AAEtC,eAAO,MAAM,aAAa,EAAE,aAK3B,CAAC;AAEF,eAAO,MAAM,UAAU;YAAwB,MAAM;SAuBpD,CAAC;AAEF,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACxB;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAClD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;CACzB;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,0LAe5B,uBAAuB,GAAG,iBAAiB,iBA0CjD,CAAC"}
@@ -9,7 +9,6 @@ var _react = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("react"))
9
9
  var _styledComponents = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("styled-components"));
10
10
  var _plasmaCore = /*#__PURE__*/require("@salutejs/plasma-core");
11
11
  var _plasmaIcons = /*#__PURE__*/require("@salutejs/plasma-icons");
12
- var _Typography = /*#__PURE__*/require("../Typography");
13
12
  var _collectPackageInfo = /*#__PURE__*/require("../../collectPackageInfo");
14
13
  var _StyledSelectButton, _StyledIconDrag;
15
14
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
@@ -29,7 +28,7 @@ var StyledIconDrag = exports.StyledIconDrag = /*#__PURE__*/(0, _styledComponents
29
28
 
30
29
  // NOTE: don't know how to fix ts error TS2742
31
30
 
32
- var StyledCaption = exports.StyledCaption = /*#__PURE__*/(0, _styledComponents["default"])(_Typography.Footnote2).withConfig({
31
+ var StyledCaption = exports.StyledCaption = /*#__PURE__*/(0, _styledComponents["default"])(_plasmaCore.Footnote2).withConfig({
33
32
  componentId: "plasma-web-core__sc-1hth9wg-3"
34
33
  })(["position:absolute;left:0.625rem;bottom:0.5rem;color:var(--on-dark-text-tertiary);"]);
35
34
  var StyledItem = exports.StyledItem = /*#__PURE__*/_styledComponents["default"].div.withConfig({
@@ -1 +1 @@
1
- {"version":3,"file":"UploadMessage.d.ts","sourceRoot":"","sources":["../../src/components/Upload/UploadMessage.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAYrC,KAAK,aAAa,GAAG,KAAK,CAAC,EAAE,CAAC;IAAE,MAAM,CAAC,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAAC,CAAC;AAEnF,eAAO,MAAM,aAAa,EAAE,aAK3B,CAAC"}
1
+ {"version":3,"file":"UploadMessage.d.ts","sourceRoot":"","sources":["../../src/components/Upload/UploadMessage.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAYrC,KAAK,aAAa,GAAG,KAAK,CAAC,EAAE,CAAC;IAAE,MAAM,CAAC,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAAC,CAAC;AAEnF,eAAO,MAAM,aAAa,EAAE,aAK3B,CAAC"}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.UploadMessage = void 0;
7
7
  var _styledComponents = /*#__PURE__*/_interopRequireDefault(/*#__PURE__*/require("styled-components"));
8
- var _Typography = /*#__PURE__*/require("../Typography");
8
+ var _plasmaCore = /*#__PURE__*/require("@salutejs/plasma-core");
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
10
  var statuses = {
11
11
  error: {
@@ -18,7 +18,7 @@ var statuses = {
18
18
 
19
19
  // NOTE: don't know how to fix ts error TS2742
20
20
 
21
- var UploadMessage = exports.UploadMessage = /*#__PURE__*/(0, _styledComponents["default"])(_Typography.Caption).withConfig({
21
+ var UploadMessage = exports.UploadMessage = /*#__PURE__*/(0, _styledComponents["default"])(_plasmaCore.Caption).withConfig({
22
22
  componentId: "plasma-web-core__sc-1jn4b7l-0"
23
23
  })(["margin-top:0.25rem;text-align:center;", ""], function (_ref) {
24
24
  var status = _ref.status;
@@ -1,7 +1,21 @@
1
- import styled from 'styled-components';
2
- import { Badge } from '../Badge';
1
+ import styled, { css } from 'styled-components';
2
+ import { Badge as BaseBadge, surfaceLiquid02, text } from '@salutejs/plasma-core';
3
3
  import { collectPackageInfo } from '../../collectPackageInfo';
4
4
  collectPackageInfo('Card/CardBadge');
5
- export var CardBadge = /*#__PURE__*/styled(Badge).withConfig({
5
+ var badgeViews = {
6
+ primary: /*#__PURE__*/css(["color:#226af1;background-color:rgba(34,106,241,0.09);"]),
7
+ secondary: /*#__PURE__*/css(["color:", ";background-color:", ";"], text, surfaceLiquid02),
8
+ success: /*#__PURE__*/css(["color:#09a552;background-color:rgba(9,165,82,0.08);"]),
9
+ warning: /*#__PURE__*/css(["color:#ee6820;background-color:rgba(238,104,32,0.08);"]),
10
+ critical: /*#__PURE__*/css(["color:#df2638;background-color:rgba(223,38,56,0.09);"])
11
+ };
12
+ var Badge = /*#__PURE__*/styled(BaseBadge).withConfig({
6
13
  componentId: "plasma-web-core__sc-1c7gtrx-0"
14
+ })(["border-radius:0.25rem;", ""], function (_ref) {
15
+ var _ref$view = _ref.view,
16
+ view = _ref$view === void 0 ? 'primary' : _ref$view;
17
+ return badgeViews[view];
18
+ });
19
+ export var CardBadge = /*#__PURE__*/styled(Badge).withConfig({
20
+ componentId: "plasma-web-core__sc-1c7gtrx-1"
7
21
  })(["position:absolute;"]);
@@ -1,9 +1,8 @@
1
1
  var _StyledSelectButton, _StyledIconDrag;
2
2
  import React, { memo } from 'react';
3
3
  import styled, { css } from 'styled-components';
4
- import { Image } from '@salutejs/plasma-core';
4
+ import { Image, Footnote2 } from '@salutejs/plasma-core';
5
5
  import { IconDone, IconDrag } from '@salutejs/plasma-icons';
6
- import { Footnote2 } from '../Typography';
7
6
  import { collectPackageInfo } from '../../collectPackageInfo';
8
7
  collectPackageInfo('PreviewGallery/PreviewGalleryItemBase');
9
8
  export var buttonMixin = function buttonMixin(vPosition, bgColor, color) {
@@ -1,5 +1,5 @@
1
1
  import styled from 'styled-components';
2
- import { Caption } from '../Typography';
2
+ import { Caption } from '@salutejs/plasma-core';
3
3
  var statuses = {
4
4
  error: {
5
5
  color: 'var(--text-negative)'
package/es/index.js CHANGED
@@ -1,23 +1,13 @@
1
1
  export * from './components/AudioPlayer';
2
- export * from './components/Badge';
3
2
  export * from './components/Button';
4
3
  export * from './components/Card';
5
- export * from './components/Cell';
6
- export * from './components/Editable';
7
4
  export * from './components/ElasticGrid';
8
- export * from './components/Dropdown';
9
- export * from './components/List';
10
5
  export * from './components/Modal';
11
6
  export * from './components/PaginationDots';
12
7
  export * from './components/Popup';
13
- export * from './components/Price';
14
8
  export * from './components/PreviewGallery';
15
- export * from './components/Select';
16
- export * from './components/Switch';
17
- export * from './components/Slider';
18
9
  export * from './components/TextArea';
19
10
  export * from './components/TextField';
20
- export * from './components/Typography';
21
11
  export * from './components/Upload';
22
12
  export * from './components/UploadAudio';
23
13
  export * from './components/UploadVisual';
package/index.d.ts CHANGED
@@ -1,23 +1,13 @@
1
1
  export * from './components/AudioPlayer';
2
- export * from './components/Badge';
3
2
  export * from './components/Button';
4
3
  export * from './components/Card';
5
- export * from './components/Cell';
6
- export * from './components/Editable';
7
4
  export * from './components/ElasticGrid';
8
- export * from './components/Dropdown';
9
- export * from './components/List';
10
5
  export * from './components/Modal';
11
6
  export * from './components/PaginationDots';
12
7
  export * from './components/Popup';
13
- export * from './components/Price';
14
8
  export * from './components/PreviewGallery';
15
- export * from './components/Select';
16
- export * from './components/Switch';
17
- export * from './components/Slider';
18
9
  export * from './components/TextArea';
19
10
  export * from './components/TextField';
20
- export * from './components/Typography';
21
11
  export * from './components/Upload';
22
12
  export * from './components/UploadAudio';
23
13
  export * from './components/UploadVisual';
package/index.js CHANGED
@@ -14,17 +14,6 @@ Object.keys(_AudioPlayer).forEach(function (key) {
14
14
  }
15
15
  });
16
16
  });
17
- var _Badge = /*#__PURE__*/require("./components/Badge");
18
- Object.keys(_Badge).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _Badge[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function get() {
24
- return _Badge[key];
25
- }
26
- });
27
- });
28
17
  var _Button = /*#__PURE__*/require("./components/Button");
29
18
  Object.keys(_Button).forEach(function (key) {
30
19
  if (key === "default" || key === "__esModule") return;
@@ -47,28 +36,6 @@ Object.keys(_Card).forEach(function (key) {
47
36
  }
48
37
  });
49
38
  });
50
- var _Cell = /*#__PURE__*/require("./components/Cell");
51
- Object.keys(_Cell).forEach(function (key) {
52
- if (key === "default" || key === "__esModule") return;
53
- if (key in exports && exports[key] === _Cell[key]) return;
54
- Object.defineProperty(exports, key, {
55
- enumerable: true,
56
- get: function get() {
57
- return _Cell[key];
58
- }
59
- });
60
- });
61
- var _Editable = /*#__PURE__*/require("./components/Editable");
62
- Object.keys(_Editable).forEach(function (key) {
63
- if (key === "default" || key === "__esModule") return;
64
- if (key in exports && exports[key] === _Editable[key]) return;
65
- Object.defineProperty(exports, key, {
66
- enumerable: true,
67
- get: function get() {
68
- return _Editable[key];
69
- }
70
- });
71
- });
72
39
  var _ElasticGrid = /*#__PURE__*/require("./components/ElasticGrid");
73
40
  Object.keys(_ElasticGrid).forEach(function (key) {
74
41
  if (key === "default" || key === "__esModule") return;
@@ -80,28 +47,6 @@ Object.keys(_ElasticGrid).forEach(function (key) {
80
47
  }
81
48
  });
82
49
  });
83
- var _Dropdown = /*#__PURE__*/require("./components/Dropdown");
84
- Object.keys(_Dropdown).forEach(function (key) {
85
- if (key === "default" || key === "__esModule") return;
86
- if (key in exports && exports[key] === _Dropdown[key]) return;
87
- Object.defineProperty(exports, key, {
88
- enumerable: true,
89
- get: function get() {
90
- return _Dropdown[key];
91
- }
92
- });
93
- });
94
- var _List = /*#__PURE__*/require("./components/List");
95
- Object.keys(_List).forEach(function (key) {
96
- if (key === "default" || key === "__esModule") return;
97
- if (key in exports && exports[key] === _List[key]) return;
98
- Object.defineProperty(exports, key, {
99
- enumerable: true,
100
- get: function get() {
101
- return _List[key];
102
- }
103
- });
104
- });
105
50
  var _Modal = /*#__PURE__*/require("./components/Modal");
106
51
  Object.keys(_Modal).forEach(function (key) {
107
52
  if (key === "default" || key === "__esModule") return;
@@ -135,17 +80,6 @@ Object.keys(_Popup).forEach(function (key) {
135
80
  }
136
81
  });
137
82
  });
138
- var _Price = /*#__PURE__*/require("./components/Price");
139
- Object.keys(_Price).forEach(function (key) {
140
- if (key === "default" || key === "__esModule") return;
141
- if (key in exports && exports[key] === _Price[key]) return;
142
- Object.defineProperty(exports, key, {
143
- enumerable: true,
144
- get: function get() {
145
- return _Price[key];
146
- }
147
- });
148
- });
149
83
  var _PreviewGallery = /*#__PURE__*/require("./components/PreviewGallery");
150
84
  Object.keys(_PreviewGallery).forEach(function (key) {
151
85
  if (key === "default" || key === "__esModule") return;
@@ -157,39 +91,6 @@ Object.keys(_PreviewGallery).forEach(function (key) {
157
91
  }
158
92
  });
159
93
  });
160
- var _Select = /*#__PURE__*/require("./components/Select");
161
- Object.keys(_Select).forEach(function (key) {
162
- if (key === "default" || key === "__esModule") return;
163
- if (key in exports && exports[key] === _Select[key]) return;
164
- Object.defineProperty(exports, key, {
165
- enumerable: true,
166
- get: function get() {
167
- return _Select[key];
168
- }
169
- });
170
- });
171
- var _Switch = /*#__PURE__*/require("./components/Switch");
172
- Object.keys(_Switch).forEach(function (key) {
173
- if (key === "default" || key === "__esModule") return;
174
- if (key in exports && exports[key] === _Switch[key]) return;
175
- Object.defineProperty(exports, key, {
176
- enumerable: true,
177
- get: function get() {
178
- return _Switch[key];
179
- }
180
- });
181
- });
182
- var _Slider = /*#__PURE__*/require("./components/Slider");
183
- Object.keys(_Slider).forEach(function (key) {
184
- if (key === "default" || key === "__esModule") return;
185
- if (key in exports && exports[key] === _Slider[key]) return;
186
- Object.defineProperty(exports, key, {
187
- enumerable: true,
188
- get: function get() {
189
- return _Slider[key];
190
- }
191
- });
192
- });
193
94
  var _TextArea = /*#__PURE__*/require("./components/TextArea");
194
95
  Object.keys(_TextArea).forEach(function (key) {
195
96
  if (key === "default" || key === "__esModule") return;
@@ -212,17 +113,6 @@ Object.keys(_TextField).forEach(function (key) {
212
113
  }
213
114
  });
214
115
  });
215
- var _Typography = /*#__PURE__*/require("./components/Typography");
216
- Object.keys(_Typography).forEach(function (key) {
217
- if (key === "default" || key === "__esModule") return;
218
- if (key in exports && exports[key] === _Typography[key]) return;
219
- Object.defineProperty(exports, key, {
220
- enumerable: true,
221
- get: function get() {
222
- return _Typography[key];
223
- }
224
- });
225
- });
226
116
  var _Upload = /*#__PURE__*/require("./components/Upload");
227
117
  Object.keys(_Upload).forEach(function (key) {
228
118
  if (key === "default" || key === "__esModule") return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-hope",
3
- "version": "1.387.0",
3
+ "version": "1.387.1-dev.0",
4
4
  "description": "Salute Design System / Internal React UI kit for web applications",
5
5
  "author": "Salute Frontend Team <salute.developers@gmail.com>",
6
6
  "publishConfig": {
@@ -43,8 +43,8 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@popperjs/core": "2.9.2",
46
- "@salutejs/plasma-core": "1.240.0",
47
- "@salutejs/plasma-typo": "0.52.0",
46
+ "@salutejs/plasma-core": "1.240.1-dev.0",
47
+ "@salutejs/plasma-typo": "0.52.1-dev.0",
48
48
  "react-file-drop": "3.1.6",
49
49
  "react-popper": "2.3.0",
50
50
  "react-sortable-hoc": "2.0.0"
@@ -57,13 +57,13 @@
57
57
  "@babel/preset-env": "7.24.4",
58
58
  "@babel/preset-react": "7.24.1",
59
59
  "@babel/preset-typescript": "7.24.1",
60
- "@salutejs/plasma-colors": "0.21.0",
61
- "@salutejs/plasma-cy-utils": "0.170.0",
62
- "@salutejs/plasma-icons": "1.248.0",
63
- "@salutejs/plasma-sb-utils": "0.241.0",
64
- "@salutejs/plasma-tokens-b2b": "1.64.0",
65
- "@salutejs/plasma-tokens-b2c": "0.75.0",
66
- "@salutejs/plasma-tokens-web": "1.79.0",
60
+ "@salutejs/plasma-colors": "0.21.1-dev.0",
61
+ "@salutejs/plasma-cy-utils": "0.170.1-dev.0",
62
+ "@salutejs/plasma-icons": "1.248.1-dev.0",
63
+ "@salutejs/plasma-sb-utils": "0.241.1-dev.0",
64
+ "@salutejs/plasma-tokens-b2b": "1.64.1-dev.0",
65
+ "@salutejs/plasma-tokens-b2c": "0.75.1-dev.0",
66
+ "@salutejs/plasma-tokens-web": "1.79.1-dev.0",
67
67
  "@testing-library/react-hooks": "8.0.1",
68
68
  "@types/jest": "27.0.2",
69
69
  "@types/node": "16.7.13",
@@ -108,5 +108,5 @@
108
108
  "salute.developers@gmail.com"
109
109
  ],
110
110
  "sideEffects": false,
111
- "gitHead": "ff6c2b227b6be9c8cb81cf6cd4aa3bc890319738"
111
+ "gitHead": "0bec260b9a0cb12f9621800550014b55fe8f82a7"
112
112
  }
@@ -1,21 +0,0 @@
1
- import type { BadgeProps as BaseProps } from '@salutejs/plasma-core';
2
- export declare const badgeViews: {
3
- primary: import("styled-components").FlattenSimpleInterpolation;
4
- secondary: import("styled-components").FlattenSimpleInterpolation;
5
- success: import("styled-components").FlattenSimpleInterpolation;
6
- warning: import("styled-components").FlattenSimpleInterpolation;
7
- critical: import("styled-components").FlattenSimpleInterpolation;
8
- };
9
- export type BadgeView = keyof typeof badgeViews;
10
- export interface BadgeProps extends BaseProps {
11
- /**
12
- * Вид компонента
13
- */
14
- view?: BadgeView;
15
- }
16
- /**
17
- * Небольшая бирка для ячеек и карточек.
18
- * Компонент может отображаться в нескольких размерах и цветах, может содержать текст и/или иконку.
19
- */
20
- export declare const Badge: import("styled-components").StyledComponent<import("react").FC<BaseProps>, any, BadgeProps, never>;
21
- //# sourceMappingURL=Badge.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAErE,eAAO,MAAM,UAAU;;;;;;CAqBtB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,UAAU,CAAC;AAChD,MAAM,WAAW,UAAW,SAAQ,SAAS;IACzC;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK,oGAIjB,CAAC"}
@@ -1,30 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.badgeViews = exports.Badge = void 0;
8
- var _styledComponents = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("styled-components"));
9
- var _plasmaCore = /*#__PURE__*/require("@salutejs/plasma-core");
10
- var _collectPackageInfo = /*#__PURE__*/require("../../collectPackageInfo");
11
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
12
- (0, _collectPackageInfo.collectPackageInfo)('Badge/Badge');
13
- var badgeViews = exports.badgeViews = {
14
- primary: /*#__PURE__*/(0, _styledComponents.css)(["color:#226af1;background-color:rgba(34,106,241,0.09);"]),
15
- secondary: /*#__PURE__*/(0, _styledComponents.css)(["color:", ";background-color:", ";"], _plasmaCore.text, _plasmaCore.surfaceLiquid02),
16
- success: /*#__PURE__*/(0, _styledComponents.css)(["color:#09a552;background-color:rgba(9,165,82,0.08);"]),
17
- warning: /*#__PURE__*/(0, _styledComponents.css)(["color:#ee6820;background-color:rgba(238,104,32,0.08);"]),
18
- critical: /*#__PURE__*/(0, _styledComponents.css)(["color:#df2638;background-color:rgba(223,38,56,0.09);"])
19
- };
20
- /**
21
- * Небольшая бирка для ячеек и карточек.
22
- * Компонент может отображаться в нескольких размерах и цветах, может содержать текст и/или иконку.
23
- */
24
- var Badge = exports.Badge = /*#__PURE__*/(0, _styledComponents["default"])(_plasmaCore.Badge).withConfig({
25
- componentId: "plasma-web-core__sc-50gfig-0"
26
- })(["border-radius:0.25rem;", ""], function (_ref) {
27
- var _ref$view = _ref.view,
28
- view = _ref$view === void 0 ? 'primary' : _ref$view;
29
- return badgeViews[view];
30
- });
@@ -1,5 +0,0 @@
1
- export { badgeSizes } from '@salutejs/plasma-core';
2
- export type { BadgeSize } from '@salutejs/plasma-core';
3
- export { Badge, badgeViews } from './Badge';
4
- export type { BadgeProps, BadgeView } from './Badge';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/Badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,YAAY,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5C,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "Badge", {
7
- enumerable: true,
8
- get: function get() {
9
- return _Badge.Badge;
10
- }
11
- });
12
- Object.defineProperty(exports, "badgeSizes", {
13
- enumerable: true,
14
- get: function get() {
15
- return _plasmaCore.badgeSizes;
16
- }
17
- });
18
- Object.defineProperty(exports, "badgeViews", {
19
- enumerable: true,
20
- get: function get() {
21
- return _Badge.badgeViews;
22
- }
23
- });
24
- var _plasmaCore = /*#__PURE__*/require("@salutejs/plasma-core");
25
- var _Badge = /*#__PURE__*/require("./Badge");
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- export declare const CellRoot: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const CellContent: import("styled-components").StyledComponent<"div", any, import("@salutejs/plasma-typo").SpacingProps & ((import("@salutejs/plasma-typo").BoldProps | import("@salutejs/plasma-typo").MediumProps) & import("@salutejs/plasma-typo").BreakWordProps), never>;
4
- export interface CellProps {
5
- /**
6
- * Компонент слева.
7
- */
8
- content: React.ReactElement;
9
- /**
10
- * Описание ячейки.
11
- */
12
- description: string;
13
- }
14
- /**
15
- * Базовый компонент для отображения блоков контента в списках и карточках.
16
- */
17
- export declare const Cell: ({ content, description, ...rest }: CellProps) => JSX.Element;
18
- //# sourceMappingURL=Cell.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../src/components/Cell/Cell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,QAAQ,oEAGpB,CAAC;AAEF,eAAO,MAAM,WAAW,6PAEvB,CAAC;AAEF,MAAM,WAAW,SAAS;IACtB;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC;IAC5B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,IAAI,sCAAuC,SAAS,gBAOhE,CAAC"}
@@ -1,32 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.CellRoot = exports.CellContent = exports.Cell = void 0;
7
- var _react = /*#__PURE__*/_interopRequireDefault(/*#__PURE__*/require("react"));
8
- var _styledComponents = /*#__PURE__*/_interopRequireDefault(/*#__PURE__*/require("styled-components"));
9
- var _plasmaTypo = /*#__PURE__*/require("@salutejs/plasma-typo");
10
- var _collectPackageInfo = /*#__PURE__*/require("../../collectPackageInfo");
11
- var _excluded = ["content", "description"];
12
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
14
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
15
- (0, _collectPackageInfo.collectPackageInfo)('Cell/Cell');
16
- var CellRoot = exports.CellRoot = /*#__PURE__*/_styledComponents["default"].div.withConfig({
17
- componentId: "plasma-web-core__sc-1xsof0e-0"
18
- })(["display:flex;align-items:center;"]);
19
- var CellContent = exports.CellContent = /*#__PURE__*/(0, _styledComponents["default"])(_plasmaTypo.BodyM).withConfig({
20
- componentId: "plasma-web-core__sc-1xsof0e-1"
21
- })(["margin-left:var(--cell-content-margin-left,0);"]);
22
- /**
23
- * Базовый компонент для отображения блоков контента в списках и карточках.
24
- */
25
- var Cell = exports.Cell = function Cell(_ref) {
26
- var content = _ref.content,
27
- description = _ref.description,
28
- rest = _objectWithoutProperties(_ref, _excluded);
29
- return /*#__PURE__*/_react["default"].createElement(CellRoot, rest, content, /*#__PURE__*/_react["default"].createElement(CellContent, {
30
- bold: true
31
- }, description));
32
- };
@@ -1,3 +0,0 @@
1
- export { Cell } from './Cell';
2
- export type { CellProps } from './Cell';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/Cell/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "Cell", {
7
- enumerable: true,
8
- get: function get() {
9
- return _Cell.Cell;
10
- }
11
- });
12
- var _Cell = /*#__PURE__*/require("./Cell");