@alfalab/core-components-pure-cell 4.8.1 → 4.10.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 (206) hide show
  1. package/{esm/component-6a644022.d.ts → component-1b03bea6.d.ts} +12 -0
  2. package/{component-81e75437.js → component-1b03bea6.js} +134 -28
  3. package/{component-21d7b687.d.ts → component-6a954af1.d.ts} +4 -0
  4. package/component.js +1 -1
  5. package/components/addon/component.js +2 -1
  6. package/components/addon/index.css +35 -10
  7. package/components/addon/index.d.ts +1 -1
  8. package/components/addon/index.js +1 -1
  9. package/components/amount/component.js +1 -1
  10. package/components/amount/index.css +2 -2
  11. package/components/amount/index.d.ts +1 -1
  12. package/components/amount/index.js +1 -1
  13. package/components/amount-title/component.js +1 -1
  14. package/components/amount-title/index.css +3 -3
  15. package/components/amount-title/index.d.ts +1 -1
  16. package/components/amount-title/index.js +1 -1
  17. package/components/category/component.js +1 -1
  18. package/components/category/index.css +5 -5
  19. package/components/category/index.d.ts +1 -1
  20. package/components/category/index.js +1 -1
  21. package/components/content/component.js +1 -1
  22. package/components/content/index.css +3 -3
  23. package/components/content/index.d.ts +1 -1
  24. package/components/content/index.js +1 -1
  25. package/components/footer/component.js +1 -1
  26. package/components/footer/index.css +4 -4
  27. package/components/footer/index.d.ts +1 -1
  28. package/components/footer/index.js +1 -1
  29. package/components/footer-button/component.js +1 -1
  30. package/components/footer-button/index.css +2 -2
  31. package/components/footer-button/index.d.ts +1 -1
  32. package/components/footer-button/index.js +1 -1
  33. package/components/footer-text/component.js +1 -1
  34. package/components/footer-text/index.d.ts +1 -1
  35. package/components/footer-text/index.js +1 -1
  36. package/components/graphics/component.js +2 -1
  37. package/components/graphics/index.css +41 -15
  38. package/components/graphics/index.d.ts +1 -1
  39. package/components/graphics/index.js +1 -1
  40. package/components/main/component.js +2 -1
  41. package/components/main/index.css +31 -5
  42. package/components/main/index.d.ts +1 -1
  43. package/components/main/index.js +1 -1
  44. package/components/text/component.js +1 -1
  45. package/components/text/index.css +7 -7
  46. package/components/text/index.d.ts +1 -1
  47. package/components/text/index.js +1 -1
  48. package/{esm/component-21d7b687.d.ts → cssm/component-6a954af1.d.ts} +4 -0
  49. package/{component-81e75437.d.ts → cssm/component-e3105fca.d.ts} +12 -0
  50. package/cssm/{component-063660c0.js → component-e3105fca.js} +123 -17
  51. package/cssm/component.js +1 -1
  52. package/cssm/components/addon/component.js +2 -1
  53. package/cssm/components/addon/index.d.ts +1 -1
  54. package/cssm/components/addon/index.js +1 -1
  55. package/cssm/components/addon/index.module.css +25 -0
  56. package/cssm/components/amount/component.js +1 -1
  57. package/cssm/components/amount/index.d.ts +1 -1
  58. package/cssm/components/amount/index.js +1 -1
  59. package/cssm/components/amount-title/component.js +1 -1
  60. package/cssm/components/amount-title/index.d.ts +1 -1
  61. package/cssm/components/amount-title/index.js +1 -1
  62. package/cssm/components/category/component.js +1 -1
  63. package/cssm/components/category/index.d.ts +1 -1
  64. package/cssm/components/category/index.js +1 -1
  65. package/cssm/components/content/component.js +1 -1
  66. package/cssm/components/content/index.d.ts +1 -1
  67. package/cssm/components/content/index.js +1 -1
  68. package/cssm/components/footer/component.js +1 -1
  69. package/cssm/components/footer/index.d.ts +1 -1
  70. package/cssm/components/footer/index.js +1 -1
  71. package/cssm/components/footer-button/component.js +1 -1
  72. package/cssm/components/footer-button/index.d.ts +1 -1
  73. package/cssm/components/footer-button/index.js +1 -1
  74. package/cssm/components/footer-text/component.js +1 -1
  75. package/cssm/components/footer-text/index.d.ts +1 -1
  76. package/cssm/components/footer-text/index.js +1 -1
  77. package/cssm/components/graphics/component.js +2 -1
  78. package/cssm/components/graphics/index.d.ts +1 -1
  79. package/cssm/components/graphics/index.js +1 -1
  80. package/cssm/components/graphics/index.module.css +26 -0
  81. package/cssm/components/main/component.js +2 -1
  82. package/cssm/components/main/index.d.ts +1 -1
  83. package/cssm/components/main/index.js +1 -1
  84. package/cssm/components/main/index.module.css +27 -1
  85. package/cssm/components/text/component.js +1 -1
  86. package/cssm/components/text/index.d.ts +1 -1
  87. package/cssm/components/text/index.js +1 -1
  88. package/cssm/index.d.ts +2 -2
  89. package/cssm/index.js +1 -1
  90. package/cssm/index.module.css +4 -4
  91. package/cssm/vars.css +17 -0
  92. package/{modern/component-ef65ce67.d.ts → esm/component-02d56ae7.d.ts} +12 -0
  93. package/esm/{component-6a644022.js → component-02d56ae7.js} +136 -30
  94. package/{cssm/component-21d7b687.d.ts → esm/component-6a954af1.d.ts} +4 -0
  95. package/esm/component.js +1 -1
  96. package/esm/components/addon/component.js +2 -1
  97. package/esm/components/addon/index.css +35 -10
  98. package/esm/components/addon/index.d.ts +1 -1
  99. package/esm/components/addon/index.js +1 -1
  100. package/esm/components/amount/component.js +1 -1
  101. package/esm/components/amount/index.css +2 -2
  102. package/esm/components/amount/index.d.ts +1 -1
  103. package/esm/components/amount/index.js +1 -1
  104. package/esm/components/amount-title/component.js +1 -1
  105. package/esm/components/amount-title/index.css +3 -3
  106. package/esm/components/amount-title/index.d.ts +1 -1
  107. package/esm/components/amount-title/index.js +1 -1
  108. package/esm/components/category/component.js +1 -1
  109. package/esm/components/category/index.css +5 -5
  110. package/esm/components/category/index.d.ts +1 -1
  111. package/esm/components/category/index.js +1 -1
  112. package/esm/components/content/component.js +1 -1
  113. package/esm/components/content/index.css +3 -3
  114. package/esm/components/content/index.d.ts +1 -1
  115. package/esm/components/content/index.js +1 -1
  116. package/esm/components/footer/component.js +1 -1
  117. package/esm/components/footer/index.css +4 -4
  118. package/esm/components/footer/index.d.ts +1 -1
  119. package/esm/components/footer/index.js +1 -1
  120. package/esm/components/footer-button/component.js +1 -1
  121. package/esm/components/footer-button/index.css +2 -2
  122. package/esm/components/footer-button/index.d.ts +1 -1
  123. package/esm/components/footer-button/index.js +1 -1
  124. package/esm/components/footer-text/component.js +1 -1
  125. package/esm/components/footer-text/index.d.ts +1 -1
  126. package/esm/components/footer-text/index.js +1 -1
  127. package/esm/components/graphics/component.js +2 -1
  128. package/esm/components/graphics/index.css +41 -15
  129. package/esm/components/graphics/index.d.ts +1 -1
  130. package/esm/components/graphics/index.js +1 -1
  131. package/esm/components/main/component.js +2 -1
  132. package/esm/components/main/index.css +31 -5
  133. package/esm/components/main/index.d.ts +1 -1
  134. package/esm/components/main/index.js +1 -1
  135. package/esm/components/text/component.js +1 -1
  136. package/esm/components/text/index.css +7 -7
  137. package/esm/components/text/index.d.ts +1 -1
  138. package/esm/components/text/index.js +1 -1
  139. package/esm/index.css +29 -29
  140. package/esm/index.d.ts +2 -2
  141. package/esm/index.js +1 -1
  142. package/index.css +29 -29
  143. package/index.d.ts +2 -2
  144. package/index.js +1 -1
  145. package/modern/{component-21d7b687.d.ts → component-6a954af1.d.ts} +4 -0
  146. package/{cssm/component-063660c0.d.ts → modern/component-766c0ee4.d.ts} +12 -0
  147. package/modern/{component-ef65ce67.js → component-766c0ee4.js} +126 -28
  148. package/modern/component.js +1 -1
  149. package/modern/components/addon/component.js +1 -1
  150. package/modern/components/addon/index.css +35 -10
  151. package/modern/components/addon/index.d.ts +1 -1
  152. package/modern/components/addon/index.js +1 -1
  153. package/modern/components/amount/component.js +1 -1
  154. package/modern/components/amount/index.css +2 -2
  155. package/modern/components/amount/index.d.ts +1 -1
  156. package/modern/components/amount/index.js +1 -1
  157. package/modern/components/amount-title/component.js +1 -1
  158. package/modern/components/amount-title/index.css +3 -3
  159. package/modern/components/amount-title/index.d.ts +1 -1
  160. package/modern/components/amount-title/index.js +1 -1
  161. package/modern/components/category/component.js +1 -1
  162. package/modern/components/category/index.css +5 -5
  163. package/modern/components/category/index.d.ts +1 -1
  164. package/modern/components/category/index.js +1 -1
  165. package/modern/components/content/component.js +1 -1
  166. package/modern/components/content/index.css +3 -3
  167. package/modern/components/content/index.d.ts +1 -1
  168. package/modern/components/content/index.js +1 -1
  169. package/modern/components/footer/component.js +1 -1
  170. package/modern/components/footer/index.css +4 -4
  171. package/modern/components/footer/index.d.ts +1 -1
  172. package/modern/components/footer/index.js +1 -1
  173. package/modern/components/footer-button/component.js +1 -1
  174. package/modern/components/footer-button/index.css +2 -2
  175. package/modern/components/footer-button/index.d.ts +1 -1
  176. package/modern/components/footer-button/index.js +1 -1
  177. package/modern/components/footer-text/component.js +1 -1
  178. package/modern/components/footer-text/index.d.ts +1 -1
  179. package/modern/components/footer-text/index.js +1 -1
  180. package/modern/components/graphics/component.js +1 -1
  181. package/modern/components/graphics/index.css +41 -15
  182. package/modern/components/graphics/index.d.ts +1 -1
  183. package/modern/components/graphics/index.js +1 -1
  184. package/modern/components/main/component.js +1 -1
  185. package/modern/components/main/index.css +31 -5
  186. package/modern/components/main/index.d.ts +1 -1
  187. package/modern/components/main/index.js +1 -1
  188. package/modern/components/text/component.js +1 -1
  189. package/modern/components/text/index.css +7 -7
  190. package/modern/components/text/index.d.ts +1 -1
  191. package/modern/components/text/index.js +1 -1
  192. package/modern/index.css +29 -29
  193. package/modern/index.d.ts +2 -2
  194. package/modern/index.js +1 -1
  195. package/package.json +3 -3
  196. package/src/component.tsx +33 -5
  197. package/src/components/addon/component.tsx +35 -3
  198. package/src/components/addon/index.module.css +15 -1
  199. package/src/components/amount-title/component.tsx +2 -2
  200. package/src/components/footer-button/component.tsx +32 -1
  201. package/src/components/graphics/component.tsx +33 -2
  202. package/src/components/graphics/index.module.css +16 -1
  203. package/src/components/main/component.tsx +39 -4
  204. package/src/components/main/index.module.css +16 -1
  205. package/src/index.module.css +4 -4
  206. package/src/vars.css +6 -0
@@ -37,18 +37,18 @@
37
37
  cursor: pointer;
38
38
  transition: opacity 0.15s ease-in-out;
39
39
  padding: 0
40
- } .button:hover {
40
+ } .button.hover {
41
41
  opacity: 0.8;
42
- } .button:active {
42
+ } .button.active {
43
43
  opacity: 0.6;
44
44
  } .link {
45
45
  text-decoration: none;
46
46
  color: inherit;
47
47
  cursor: pointer;
48
48
  transition: opacity 0.15s ease-in-out
49
- } .link:hover {
49
+ } .link.hover {
50
50
  opacity: 0.8;
51
- } .link:active {
51
+ } .link.active {
52
52
  opacity: 0.6;
53
53
  } .none {
54
54
  padding: 0;
package/cssm/vars.css ADDED
@@ -0,0 +1,17 @@
1
+ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
2
+ } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
+ } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
+ } :root {
5
+ } :root {
6
+
7
+ /* Hard */
8
+
9
+ /* Up */
10
+
11
+ /* Hard up */
12
+ } :root {
13
+ } :root {
14
+ } :root {
15
+ } :root {
16
+ } :root {
17
+ }
@@ -23,6 +23,10 @@ type Props = {
23
23
  * Используется модификатор -main
24
24
  */
25
25
  dataTestId?: string;
26
+ /**
27
+ * Клик по контенту.
28
+ */
29
+ onClick?: () => void;
26
30
  };
27
31
  declare const Main: React.FC<Props>;
28
32
  type Props$0 = {
@@ -43,6 +47,10 @@ type Props$0 = {
43
47
  * Отступ от графики
44
48
  */
45
49
  graphicPadding?: "airy" | "default" | "compact" | "tiny" | "none";
50
+ /**
51
+ * Клик по контенту графики.
52
+ */
53
+ onClick?: () => void;
46
54
  };
47
55
  declare const Graphics: React.FC<Props$0>;
48
56
  type Props$1 = {
@@ -174,6 +182,10 @@ type Props$7 = {
174
182
  * Используется модификатор -addon
175
183
  */
176
184
  dataTestId?: string;
185
+ /**
186
+ * Клик по контенту аддона.
187
+ */
188
+ onClick?: () => void;
177
189
  };
178
190
  declare const Addon: React.FC<Props$7>;
179
191
  type Props$8 = {
@@ -1,5 +1,5 @@
1
- import { __rest, __assign } from 'tslib';
2
- import React, { useContext, forwardRef, useRef } from 'react';
1
+ import { __assign, __rest } from 'tslib';
2
+ import React, { useContext, forwardRef, useRef, useState } from 'react';
3
3
  import mergeRefs from 'react-merge-refs';
4
4
  import cn from 'classnames';
5
5
  import { Comment } from '@alfalab/core-components-comment/esm';
@@ -9,16 +9,41 @@ import { Amount as Amount$1 } from '@alfalab/core-components-amount/esm';
9
9
  import { Typography } from '@alfalab/core-components-typography/esm';
10
10
  import { Button } from '@alfalab/core-components-button/esm';
11
11
 
12
- var styles$a = {"component":"pure-cell__component_1769n","none":"pure-cell__none_1769n","default":"pure-cell__default_1769n","addonPadding":"pure-cell__addonPadding_1769n","auto":"pure-cell__auto_1769n","top":"pure-cell__top_1769n","center":"pure-cell__center_1769n","bottom":"pure-cell__bottom_1769n"};
12
+ var styles$a = {"component":"pure-cell__component_10lw5","none":"pure-cell__none_10lw5","default":"pure-cell__default_10lw5","addonPadding":"pure-cell__addonPadding_10lw5","auto":"pure-cell__auto_10lw5","top":"pure-cell__top_10lw5","center":"pure-cell__center_10lw5","bottom":"pure-cell__bottom_10lw5","button":"pure-cell__button_10lw5"};
13
13
  require('./components/addon/index.css')
14
14
 
15
+ var ADDON_COMPONENT = {
16
+ button: 'button',
17
+ section: 'section',
18
+ };
15
19
  var Addon = function (_a) {
16
- var children = _a.children, _b = _a.verticalAlign, verticalAlign = _b === void 0 ? 'top' : _b, _c = _a.addonPadding, addonPadding = _c === void 0 ? 'default' : _c, dataTestId = _a.dataTestId;
20
+ var _b;
21
+ var children = _a.children, _c = _a.verticalAlign, verticalAlign = _c === void 0 ? 'top' : _c, _d = _a.addonPadding, addonPadding = _d === void 0 ? 'default' : _d, dataTestId = _a.dataTestId, onClick = _a.onClick;
17
22
  var pureCellContext = useContext(PureCellContext);
18
- return (React.createElement("section", { className: cn(styles$a.component, styles$a[addonPadding], styles$a[verticalAlign]), "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'addon') }, children));
23
+ var Component = onClick ? ADDON_COMPONENT.button : ADDON_COMPONENT.section;
24
+ var onMouseEvents = {
25
+ onClick: function (e) {
26
+ e.stopPropagation();
27
+ onClick === null || onClick === void 0 ? void 0 : onClick();
28
+ },
29
+ onMouseEnter: function () {
30
+ var _a;
31
+ (_a = pureCellContext.unsetMainHover) === null || _a === void 0 ? void 0 : _a.call(pureCellContext);
32
+ },
33
+ onMouseLeave: function () {
34
+ var _a;
35
+ (_a = pureCellContext.setMainHover) === null || _a === void 0 ? void 0 : _a.call(pureCellContext);
36
+ },
37
+ onMouseDown: function (e) {
38
+ e.stopPropagation();
39
+ },
40
+ };
41
+ return (React.createElement(Component, __assign({ className: cn(styles$a.component, styles$a[addonPadding], styles$a[verticalAlign], (_b = {},
42
+ _b[styles$a.button] = onClick,
43
+ _b)), "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'addon') }, (onClick && onMouseEvents)), children));
19
44
  };
20
45
 
21
- var styles$9 = {"component":"pure-cell__component_1loxt"};
46
+ var styles$9 = {"component":"pure-cell__component_3ozhf"};
22
47
  require('./components/amount/index.css')
23
48
 
24
49
  var Amount = function (_a) {
@@ -28,18 +53,18 @@ var Amount = function (_a) {
28
53
  React.createElement(Amount$1, __assign({ minority: minority || minorUnits, bold: weight === 'bold' ? 'full' : 'none', dataTestId: getDataTestId(dataTestId || pureCellContext.dataTestId, 'amount') }, restProps))));
29
54
  };
30
55
 
31
- var styles$8 = {"component":"pure-cell__component_rcgyg","weight":"pure-cell__weight_rcgyg"};
56
+ var styles$8 = {"component":"pure-cell__component_15g1c","weight":"pure-cell__weight_15g1c"};
32
57
  require('./components/amount-title/index.css')
33
58
 
34
59
  var AmountTitle = function (_a) {
35
60
  var minority = _a.minority, _b = _a.minorUnits, minorUnits = _b === void 0 ? 100 : _b, className = _a.className, _c = _a.color, color = _c === void 0 ? 'primary' : _c, dataTestId = _a.dataTestId, _d = _a.titleProps, titleProps = _d === void 0 ? {} : _d, restProps = __rest(_a, ["minority", "minorUnits", "className", "color", "dataTestId", "titleProps"]);
36
61
  var pureCellContext = useContext(PureCellContext);
37
62
  var titleDefaultProps = __assign({ tag: 'h4', view: 'small', color: color }, titleProps);
38
- return (React.createElement(Typography.Title, __assign({}, titleDefaultProps, { dataTestId: getDataTestId(dataTestId || pureCellContext.dataTestId, 'amount-title'), className: cn(styles$8.component, titleProps.className) }),
63
+ return (React.createElement(Typography.TitleResponsive, __assign({}, titleDefaultProps, { dataTestId: getDataTestId(dataTestId || pureCellContext.dataTestId, 'amount-title'), className: cn(styles$8.component, titleProps.className) }),
39
64
  React.createElement(Amount$1, __assign({ minority: minority || minorUnits, className: cn(styles$8.weight, className), dataTestId: getDataTestId(dataTestId || pureCellContext.dataTestId, 'core-amount-title') }, restProps, { bold: 'none' }))));
40
65
  };
41
66
 
42
- var styles$7 = {"component":"pure-cell__component_skrok","categoryName":"pure-cell__categoryName_skrok","categoryPercent":"pure-cell__categoryPercent_skrok","rightAddon":"pure-cell__rightAddon_skrok"};
67
+ var styles$7 = {"component":"pure-cell__component_r9n5z","categoryName":"pure-cell__categoryName_r9n5z","categoryPercent":"pure-cell__categoryPercent_r9n5z","rightAddon":"pure-cell__rightAddon_r9n5z"};
43
68
  require('./components/category/index.css')
44
69
 
45
70
  var Category = function (_a) {
@@ -53,7 +78,7 @@ var Category = function (_a) {
53
78
  rightAddons !== undefined && (React.createElement("div", { className: styles$7.rightAddon, "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'category-right-addon') }, rightAddons))));
54
79
  };
55
80
 
56
- var styles$6 = {"component":"pure-cell__component_usovd","horizontal":"pure-cell__horizontal_usovd"};
81
+ var styles$6 = {"component":"pure-cell__component_3ubiy","horizontal":"pure-cell__horizontal_3ubiy"};
57
82
  require('./components/content/index.css')
58
83
 
59
84
  var Content = function (_a) {
@@ -63,7 +88,7 @@ var Content = function (_a) {
63
88
  return (React.createElement("section", { className: cn(styles$6.component, (_b = {}, _b[styles$6.horizontal] = direction === 'horizontal', _b)), "data-test-id": getDataTestId(dataTestId || contextDataTestId, 'content') }, children));
64
89
  };
65
90
 
66
- var styles$5 = {"component":"pure-cell__component_17wih","none":"pure-cell__none_17wih","default":"pure-cell__default_17wih"};
91
+ var styles$5 = {"component":"pure-cell__component_uyhv6","none":"pure-cell__none_uyhv6","default":"pure-cell__default_uyhv6"};
67
92
  require('./components/footer/index.css')
68
93
 
69
94
  var Footer = function (_a) {
@@ -72,13 +97,31 @@ var Footer = function (_a) {
72
97
  return (React.createElement("footer", { className: cn(styles$5.component, styles$5[footerPadding]), "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'footer') }, children));
73
98
  };
74
99
 
75
- var styles$4 = {"component":"pure-cell__component_6ojmm"};
100
+ var styles$4 = {"component":"pure-cell__component_1l487"};
76
101
  require('./components/footer-button/index.css')
77
102
 
78
103
  var FooterButton = forwardRef(function (_a, ref) {
79
- var children = _a.children, dataTestId = _a.dataTestId, props = __rest(_a, ["children", "dataTestId"]);
104
+ var children = _a.children, dataTestId = _a.dataTestId, onClick = _a.onClick, onMouseDown = _a.onMouseDown, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, props = __rest(_a, ["children", "dataTestId", "onClick", "onMouseDown", "onMouseEnter", "onMouseLeave"]);
80
105
  var pureCellContext = useContext(PureCellContext);
81
- return (React.createElement(Button, __assign({}, props, { size: 'xxs', dataTestId: getDataTestId(dataTestId || pureCellContext.dataTestId, 'button'), className: styles$4.component, ref: ref }), children));
106
+ var handleClick = function (e) {
107
+ e.stopPropagation();
108
+ onClick === null || onClick === void 0 ? void 0 : onClick(e);
109
+ };
110
+ var handleMouseEnter = function (e) {
111
+ var _a;
112
+ onMouseEnter === null || onMouseEnter === void 0 ? void 0 : onMouseEnter(e);
113
+ (_a = pureCellContext.unsetMainHover) === null || _a === void 0 ? void 0 : _a.call(pureCellContext);
114
+ };
115
+ var handleMouseLeave = function (e) {
116
+ var _a;
117
+ onMouseLeave === null || onMouseLeave === void 0 ? void 0 : onMouseLeave(e);
118
+ (_a = pureCellContext.setMainHover) === null || _a === void 0 ? void 0 : _a.call(pureCellContext);
119
+ };
120
+ var handleMouseDown = function (e) {
121
+ onMouseDown === null || onMouseDown === void 0 ? void 0 : onMouseDown(e);
122
+ e.stopPropagation();
123
+ };
124
+ return (React.createElement(Button, __assign({}, props, { size: 'xxs', dataTestId: getDataTestId(dataTestId || pureCellContext.dataTestId, 'button'), className: styles$4.component, ref: ref, onClick: handleClick, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, onMouseDown: handleMouseDown }), children));
82
125
  });
83
126
 
84
127
  var FooterText = function (_a) {
@@ -87,29 +130,72 @@ var FooterText = function (_a) {
87
130
  return (React.createElement(Typography.Text, { view: 'primary-small', color: color, "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'footer-title') }, children));
88
131
  };
89
132
 
90
- var styles$3 = {"component":"pure-cell__component_xhf99","top":"pure-cell__top_xhf99","center":"pure-cell__center_xhf99","bottom":"pure-cell__bottom_xhf99","horizontal":"pure-cell__horizontal_xhf99","none":"pure-cell__none_xhf99","airy":"pure-cell__airy_xhf99","default":"pure-cell__default_xhf99","compact":"pure-cell__compact_xhf99","tiny":"pure-cell__tiny_xhf99","vertical":"pure-cell__vertical_xhf99"};
133
+ var styles$3 = {"component":"pure-cell__component_1ywkt","top":"pure-cell__top_1ywkt","center":"pure-cell__center_1ywkt","bottom":"pure-cell__bottom_1ywkt","horizontal":"pure-cell__horizontal_1ywkt","none":"pure-cell__none_1ywkt","airy":"pure-cell__airy_1ywkt","default":"pure-cell__default_1ywkt","compact":"pure-cell__compact_1ywkt","tiny":"pure-cell__tiny_1ywkt","vertical":"pure-cell__vertical_1ywkt","button":"pure-cell__button_1ywkt"};
91
134
  require('./components/graphics/index.css')
92
135
 
136
+ var GRAPHICS_COMPONENT = {
137
+ button: 'button',
138
+ section: 'section',
139
+ };
93
140
  var Graphics = function (_a) {
94
- var children = _a.children, dataTestId = _a.dataTestId, _b = _a.verticalAlign, verticalAlign = _b === void 0 ? 'top' : _b, graphicPadding = _a.graphicPadding;
141
+ var _b;
142
+ var children = _a.children, dataTestId = _a.dataTestId, _c = _a.verticalAlign, verticalAlign = _c === void 0 ? 'top' : _c, graphicPadding = _a.graphicPadding, onClick = _a.onClick;
95
143
  var pureCellContext = useContext(PureCellContext);
144
+ var Component = onClick ? GRAPHICS_COMPONENT.button : GRAPHICS_COMPONENT.section;
96
145
  var defaultGraphicPadding = pureCellContext.direction === 'horizontal' ? 'airy' : 'default';
97
- return (React.createElement("section", { className: cn(styles$3.component, styles$3[verticalAlign], styles$3[pureCellContext.direction || 'horizontal'], styles$3[graphicPadding || defaultGraphicPadding]), "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'graphics') }, children));
146
+ var onMouseEvents = {
147
+ onClick: function (e) {
148
+ e.stopPropagation();
149
+ onClick === null || onClick === void 0 ? void 0 : onClick();
150
+ },
151
+ onMouseEnter: function () {
152
+ var _a;
153
+ (_a = pureCellContext.unsetMainHover) === null || _a === void 0 ? void 0 : _a.call(pureCellContext);
154
+ },
155
+ onMouseLeave: function () {
156
+ var _a;
157
+ (_a = pureCellContext.setMainHover) === null || _a === void 0 ? void 0 : _a.call(pureCellContext);
158
+ },
159
+ onMouseDown: function (e) {
160
+ e.stopPropagation();
161
+ },
162
+ };
163
+ return (React.createElement(Component, __assign({ className: cn(styles$3.component, styles$3[verticalAlign], styles$3[pureCellContext.direction || 'horizontal'], styles$3[graphicPadding || defaultGraphicPadding], (_b = {}, _b[styles$3.button] = onClick, _b)), "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'graphics') }, (onClick && onMouseEvents)), children));
98
164
  };
99
165
 
100
- var styles$2 = {"component":"pure-cell__component_19tfu","vertical":"pure-cell__vertical_19tfu","reverse":"pure-cell__reverse_19tfu"};
166
+ var styles$2 = {"component":"pure-cell__component_351av","vertical":"pure-cell__vertical_351av","reverse":"pure-cell__reverse_351av","button":"pure-cell__button_351av"};
101
167
  require('./components/main/index.css')
102
168
 
169
+ var MAIN_COMPONENT = {
170
+ button: 'button',
171
+ section: 'section',
172
+ };
103
173
  var Main = function (_a) {
104
- var _b;
105
- var children = _a.children, isReverse = _a.isReverse, className = _a.className, dataTestId = _a.dataTestId;
106
- var _c = useContext(PureCellContext), _d = _c.direction, direction = _d === void 0 ? 'horizontal' : _d, contextDataTestId = _c.dataTestId;
107
- return (React.createElement("div", { className: cn(styles$2.component, styles$2[direction], (_b = {},
174
+ var _b, _c;
175
+ var children = _a.children, isReverse = _a.isReverse, className = _a.className, dataTestId = _a.dataTestId, onClick = _a.onClick;
176
+ var _d = useContext(PureCellContext), _e = _d.direction, direction = _e === void 0 ? 'horizontal' : _e, contextDataTestId = _d.dataTestId, setMainHover = _d.setMainHover, unsetMainHover = _d.unsetMainHover;
177
+ var Component = onClick ? MAIN_COMPONENT.button : MAIN_COMPONENT.section;
178
+ var onMouseEvents = {
179
+ onClick: function (e) {
180
+ e.stopPropagation();
181
+ onClick === null || onClick === void 0 ? void 0 : onClick();
182
+ },
183
+ onMouseEnter: function () {
184
+ unsetMainHover === null || unsetMainHover === void 0 ? void 0 : unsetMainHover();
185
+ },
186
+ onMouseLeave: function () {
187
+ setMainHover === null || setMainHover === void 0 ? void 0 : setMainHover();
188
+ },
189
+ onMouseDown: function (e) {
190
+ e.stopPropagation();
191
+ },
192
+ };
193
+ return (React.createElement(Component, __assign({ className: cn(styles$2.component, styles$2[direction], (_b = {},
108
194
  _b[styles$2.reverse] = isReverse,
109
- _b), className), "data-test-id": getDataTestId(dataTestId || contextDataTestId, 'main') }, children));
195
+ _b), (_c = {}, _c[styles$2.button] = onClick, _c), className), "data-test-id": getDataTestId(dataTestId || contextDataTestId, 'main') }, (onClick && onMouseEvents)), children));
110
196
  };
111
197
 
112
- var styles$1 = {"horizontal":"pure-cell__horizontal_1ima4","rowLimit1":"pure-cell__rowLimit1_1ima4","rowLimit2":"pure-cell__rowLimit2_1ima4","component":"pure-cell__component_1ima4","vertical":"pure-cell__vertical_1ima4","title":"pure-cell__title_1ima4","value":"pure-cell__value_1ima4"};
198
+ var styles$1 = {"horizontal":"pure-cell__horizontal_g10oe","rowLimit1":"pure-cell__rowLimit1_g10oe","rowLimit2":"pure-cell__rowLimit2_g10oe","component":"pure-cell__component_g10oe","vertical":"pure-cell__vertical_g10oe","title":"pure-cell__title_g10oe","value":"pure-cell__value_g10oe"};
113
199
  require('./components/text/index.css')
114
200
 
115
201
  var Text = function (_a) {
@@ -126,7 +212,7 @@ var Text = function (_a) {
126
212
  React.createElement(Typography.Text, { view: view, tag: 'div', color: valueColor, className: className, "data-test-id": getDataTestId(dataTestId || contextDataTestId, 'text_value') }, value)))));
127
213
  };
128
214
 
129
- var styles = {"component":"pure-cell__component_1vn59","horizontal":"pure-cell__horizontal_1vn59","vertical":"pure-cell__vertical_1vn59","button":"pure-cell__button_1vn59","link":"pure-cell__link_1vn59","none":"pure-cell__none_1vn59","airy":"pure-cell__airy_1vn59","default":"pure-cell__default_1vn59","compact":"pure-cell__compact_1vn59","tiny":"pure-cell__tiny_1vn59","noneTop":"pure-cell__noneTop_1vn59","airyTop":"pure-cell__airyTop_1vn59","defaultTop":"pure-cell__defaultTop_1vn59","compactTop":"pure-cell__compactTop_1vn59","tinyTop":"pure-cell__tinyTop_1vn59","noneBottom":"pure-cell__noneBottom_1vn59","airyBottom":"pure-cell__airyBottom_1vn59","defaultBottom":"pure-cell__defaultBottom_1vn59","compactBottom":"pure-cell__compactBottom_1vn59","tinyBottom":"pure-cell__tinyBottom_1vn59","left":"pure-cell__left_1vn59","right":"pure-cell__right_1vn59","both":"pure-cell__both_1vn59","focused":"pure-cell__focused_1vn59"};
215
+ var styles = {"component":"pure-cell__component_8dxyc","horizontal":"pure-cell__horizontal_8dxyc","vertical":"pure-cell__vertical_8dxyc","button":"pure-cell__button_8dxyc","hover":"pure-cell__hover_8dxyc","active":"pure-cell__active_8dxyc","link":"pure-cell__link_8dxyc","none":"pure-cell__none_8dxyc","airy":"pure-cell__airy_8dxyc","default":"pure-cell__default_8dxyc","compact":"pure-cell__compact_8dxyc","tiny":"pure-cell__tiny_8dxyc","noneTop":"pure-cell__noneTop_8dxyc","airyTop":"pure-cell__airyTop_8dxyc","defaultTop":"pure-cell__defaultTop_8dxyc","compactTop":"pure-cell__compactTop_8dxyc","tinyTop":"pure-cell__tinyTop_8dxyc","noneBottom":"pure-cell__noneBottom_8dxyc","airyBottom":"pure-cell__airyBottom_8dxyc","defaultBottom":"pure-cell__defaultBottom_8dxyc","compactBottom":"pure-cell__compactBottom_8dxyc","tinyBottom":"pure-cell__tinyBottom_8dxyc","left":"pure-cell__left_8dxyc","right":"pure-cell__right_8dxyc","both":"pure-cell__both_8dxyc","focused":"pure-cell__focused_8dxyc"};
130
216
  require('./index.css')
131
217
 
132
218
  // eslint-disable-next-line @typescript-eslint/no-redeclare
@@ -136,12 +222,32 @@ var PureCellComponent = forwardRef(function (_a, ref) {
136
222
  var className = _a.className, dataTestId = _a.dataTestId, onClick = _a.onClick, href = _a.href, _d = _a.tag, Component = _d === void 0 ? (href && 'a') || (onClick && 'button') || 'section' : _d, children = _a.children, _e = _a.horizontalPadding, horizontalPadding = _e === void 0 ? 'none' : _e, _f = _a.verticalPadding, verticalPadding = _f === void 0 ? 'none' : _f, _g = _a.direction, direction = _g === void 0 ? 'horizontal' : _g, restProps = __rest(_a, ["className", "dataTestId", "onClick", "href", "tag", "children", "horizontalPadding", "verticalPadding", "direction"]);
137
223
  var cellRef = useRef(null);
138
224
  var focused = useFocus(cellRef, 'keyboard')[0];
225
+ var _h = useState(false), hoverState = _h[0], setHoverState = _h[1];
226
+ var _j = useState(false), activeState = _j[0], setActiveState = _j[1];
227
+ var setHover = function () { return setHoverState(true); };
228
+ var unsetHover = function () { return setHoverState(false); };
229
+ var setActive = function () { return setActiveState(true); };
230
+ var unsetActive = function () { return setActiveState(false); };
231
+ var mouseEvents = {
232
+ onMouseEnter: setHover,
233
+ onMouseLeave: unsetHover,
234
+ onMouseDown: setActive,
235
+ onMouseUp: unsetActive,
236
+ };
139
237
  var addClasses = (_b = {},
140
238
  _b[styles.component] = true,
141
239
  _b[styles.focused] = focused,
142
240
  _b[styles[direction]] = true,
143
241
  _b[styles[horizontalPadding]] = true,
242
+ _b[styles.hover] = hoverState,
243
+ _b[styles.active] = activeState,
144
244
  _b);
245
+ var contextState = {
246
+ direction: direction,
247
+ dataTestId: dataTestId,
248
+ setMainHover: setHover,
249
+ unsetMainHover: unsetHover,
250
+ };
145
251
  if (typeof verticalPadding === 'string') {
146
252
  addClasses[styles[verticalPadding]] = typeof verticalPadding === 'string';
147
253
  }
@@ -153,15 +259,15 @@ var PureCellComponent = forwardRef(function (_a, ref) {
153
259
  var target = restProps.target;
154
260
  // Для совместимости с react-router-dom, меняем href на to
155
261
  var hrefProps = (_c = {}, _c[typeof Component === 'string' ? 'href' : 'to'] = href, _c);
156
- return (React.createElement(Component, __assign({ rel: target === '_blank' ? 'noreferrer noopener' : undefined }, restProps, hrefProps, { ref: mergeRefs([cellRef, ref]), className: cn(styles.link, addClasses, className), "data-test-id": dataTestId, onClick: onClick }),
157
- React.createElement(PureCellContext.Provider, { value: { direction: direction, dataTestId: dataTestId } }, children)));
262
+ return (React.createElement(Component, __assign({ rel: target === '_blank' ? 'noreferrer noopener' : undefined }, restProps, hrefProps, { ref: mergeRefs([cellRef, ref]), className: cn(styles.link, addClasses, className), "data-test-id": dataTestId, onClick: onClick }, mouseEvents),
263
+ React.createElement(PureCellContext.Provider, { value: contextState }, children)));
158
264
  }
159
265
  if (onClick) {
160
- return (React.createElement(Component, __assign({}, restProps, { ref: mergeRefs([cellRef, ref]), className: cn(styles.button, addClasses, className), "data-test-id": dataTestId, onClick: onClick }),
161
- React.createElement(PureCellContext.Provider, { value: { direction: direction, dataTestId: dataTestId } }, children)));
266
+ return (React.createElement(Component, __assign({}, restProps, { ref: mergeRefs([cellRef, ref]), className: cn(styles.button, addClasses, className), "data-test-id": dataTestId, onClick: onClick }, mouseEvents),
267
+ React.createElement(PureCellContext.Provider, { value: contextState }, children)));
162
268
  }
163
269
  return (React.createElement(Component, __assign({}, restProps, { ref: ref, tabIndex: 0, className: cn(addClasses, className), "data-test-id": dataTestId }),
164
- React.createElement(PureCellContext.Provider, { value: { direction: direction, dataTestId: dataTestId } }, children)));
270
+ React.createElement(PureCellContext.Provider, { value: contextState }, children)));
165
271
  });
166
272
  /**
167
273
  * Универсальный конструктор для сборки любой ячейки.
@@ -7,6 +7,8 @@ type PureCellContext = {
7
7
  /** Направление */
8
8
  direction?: 'horizontal' | 'vertical';
9
9
  dataTestId?: string;
10
+ setMainHover?: () => void;
11
+ unsetMainHover?: () => void;
10
12
  };
11
13
  declare const PureCellContext: React.Context<PureCellContext>;
12
14
  type BasePureCellProps = {
@@ -67,6 +69,7 @@ declare const PureCell: React.ForwardRefExoticComponent<PureCellProps & React.Re
67
69
  isReverse?: boolean | undefined;
68
70
  className?: string | undefined;
69
71
  dataTestId?: string | undefined;
72
+ onClick?: (() => void) | undefined;
70
73
  }>;
71
74
  Graphics: React.FC<import("./components/graphics/index").Props>;
72
75
  Content: React.FC<{
@@ -99,6 +102,7 @@ declare const PureCell: React.ForwardRefExoticComponent<PureCellProps & React.Re
99
102
  addonPadding?: "none" | "default" | undefined;
100
103
  children: import("./components/types").AddonElement;
101
104
  dataTestId?: string | undefined;
105
+ onClick?: (() => void) | undefined;
102
106
  }>;
103
107
  Footer: React.FC<{
104
108
  children: import("./components/types").FooterElement;
package/esm/component.js CHANGED
@@ -4,4 +4,4 @@ import 'react-merge-refs';
4
4
  import 'classnames';
5
5
  import '@alfalab/core-components-comment/esm';
6
6
  import '@alfalab/hooks';
7
- export { P as PureCell, f as PureCellContext } from './component-6a644022.js';
7
+ export { P as PureCell, f as PureCellContext } from './component-02d56ae7.js';
@@ -1,4 +1,5 @@
1
+ import 'tslib';
1
2
  import 'react';
2
3
  import 'classnames';
3
4
  import '@alfalab/core-components-shared/esm';
4
- export { A as Addon } from '../../component-6a644022.js';
5
+ export { A as Addon } from '../../component-02d56ae7.js';
@@ -1,4 +1,4 @@
1
- /* hash: sxa08 */
1
+ /* hash: 8ebll */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -15,24 +15,49 @@
15
15
  --gap-m: 16px;
16
16
  } :root {
17
17
  } :root {
18
- } .pure-cell__component_1769n {
18
+ } :root {
19
+ --pure-cell-clickable-area-hover-opacity: 1;
20
+ --pure-cell-clickable-area-active-opacity: 1;
21
+ } .pure-cell__component_10lw5 {
19
22
  display: flex;
20
23
  flex-direction: column;
21
24
  align-items: flex-end
22
- } .pure-cell__component_1769n > * {
25
+ } .pure-cell__component_10lw5 > * {
23
26
  justify-content: flex-end;
24
- } .pure-cell__component_1769n.pure-cell__none_1769n {
27
+ } .pure-cell__component_10lw5.pure-cell__none_10lw5 {
25
28
  padding-left: 0;
26
- } .pure-cell__component_1769n.pure-cell__default_1769n {
29
+ } .pure-cell__component_10lw5.pure-cell__default_10lw5 {
27
30
  padding-left: var(--gap-m);
28
- } .pure-cell__component_1769n.pure-cell__addonPadding_1769n {
31
+ } .pure-cell__component_10lw5.pure-cell__addonPadding_10lw5 {
29
32
  padding-left: var(--gap-m);
30
- } .pure-cell__component_1769n.pure-cell__auto_1769n {
33
+ } .pure-cell__component_10lw5.pure-cell__auto_10lw5 {
31
34
  align-self: auto;
32
- } .pure-cell__component_1769n.pure-cell__top_1769n {
35
+ } .pure-cell__component_10lw5.pure-cell__top_10lw5 {
33
36
  align-self: flex-start;
34
- } .pure-cell__component_1769n.pure-cell__center_1769n {
37
+ } .pure-cell__component_10lw5.pure-cell__center_10lw5 {
35
38
  align-self: center;
36
- } .pure-cell__component_1769n.pure-cell__bottom_1769n {
39
+ } .pure-cell__component_10lw5.pure-cell__bottom_10lw5 {
37
40
  align-self: flex-end;
41
+ } .pure-cell__button_10lw5 {
42
+ box-sizing: border-box;
43
+ background-color: transparent;
44
+ -webkit-tap-highlight-color: transparent;
45
+ outline: none;
46
+ border: 0;
47
+ margin: 0;
48
+ box-shadow: none;
49
+ border-radius: 0;
50
+ -webkit-user-select: none;
51
+ user-select: none;
52
+ vertical-align: middle;
53
+ appearance: none;
54
+ text-decoration: none;
55
+ min-width: 0;
56
+ cursor: pointer;
57
+ padding: 0;
58
+ transition: opacity 0.15s ease-in-out
59
+ } .pure-cell__button_10lw5:hover {
60
+ opacity: var(--pure-cell-clickable-area-hover-opacity);
61
+ } .pure-cell__button_10lw5:active {
62
+ opacity: var(--pure-cell-clickable-area-active-opacity);
38
63
  }
@@ -1 +1 @@
1
- export * from "../../component-6a644022";
1
+ export * from "../../component-02d56ae7";
@@ -1 +1 @@
1
- export { A as Addon } from '../../component-6a644022.js';
1
+ export { A as Addon } from '../../component-02d56ae7.js';
@@ -4,4 +4,4 @@ import 'classnames';
4
4
  import '@alfalab/core-components-amount/esm';
5
5
  import '@alfalab/core-components-shared/esm';
6
6
  import '@alfalab/core-components-typography/esm';
7
- export { a as Amount } from '../../component-6a644022.js';
7
+ export { a as Amount } from '../../component-02d56ae7.js';
@@ -1,4 +1,4 @@
1
- /* hash: 1oonj */
1
+ /* hash: wm8p4 */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -15,7 +15,7 @@
15
15
  --gap-3xs: 2px;
16
16
  } :root {
17
17
  } :root {
18
- } .pure-cell__component_1loxt {
18
+ } .pure-cell__component_3ozhf {
19
19
  padding: var(--gap-3xs) 0;
20
20
  display: flex;
21
21
  }
@@ -1 +1 @@
1
- export * from "../../component-6a644022";
1
+ export * from "../../component-02d56ae7";
@@ -1 +1 @@
1
- export { a as Amount } from '../../component-6a644022.js';
1
+ export { a as Amount } from '../../component-02d56ae7.js';
@@ -4,4 +4,4 @@ import 'classnames';
4
4
  import '@alfalab/core-components-amount/esm';
5
5
  import '@alfalab/core-components-shared/esm';
6
6
  import '@alfalab/core-components-typography/esm';
7
- export { b as AmountTitle } from '../../component-6a644022.js';
7
+ export { b as AmountTitle } from '../../component-02d56ae7.js';
@@ -1,4 +1,4 @@
1
- /* hash: znsy9 */
1
+ /* hash: 4icg4 */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -14,8 +14,8 @@
14
14
  } :root {
15
15
  } :root {
16
16
  } :root {
17
- } .pure-cell__component_rcgyg {
17
+ } .pure-cell__component_15g1c {
18
18
  display: flex;
19
- } .pure-cell__weight_rcgyg {
19
+ } .pure-cell__weight_15g1c {
20
20
  font-weight: inherit;
21
21
  }
@@ -1 +1 @@
1
- export * from "../../component-6a644022";
1
+ export * from "../../component-02d56ae7";
@@ -1 +1 @@
1
- export { b as AmountTitle } from '../../component-6a644022.js';
1
+ export { b as AmountTitle } from '../../component-02d56ae7.js';
@@ -1,4 +1,4 @@
1
1
  import 'react';
2
2
  import '@alfalab/core-components-shared/esm';
3
3
  import '@alfalab/core-components-typography/esm';
4
- export { C as Category } from '../../component-6a644022.js';
4
+ export { C as Category } from '../../component-02d56ae7.js';
@@ -1,4 +1,4 @@
1
- /* hash: cz7e1 */
1
+ /* hash: 1jxwm */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-secondary: #f2f3f5; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -19,21 +19,21 @@
19
19
  --gap-xs: 8px;
20
20
  } :root {
21
21
  } :root {
22
- } .pure-cell__component_skrok {
22
+ } .pure-cell__component_r9n5z {
23
23
  display: flex;
24
24
  overflow: hidden;
25
25
  padding: var(--gap-3xs) 0;
26
- } .pure-cell__categoryName_skrok {
26
+ } .pure-cell__categoryName_r9n5z {
27
27
  display: -webkit-box;
28
28
  -webkit-line-clamp: 1;
29
29
  -webkit-box-orient: vertical;
30
30
  overflow: hidden;
31
31
  word-break: break-all;
32
- } .pure-cell__categoryPercent_skrok {
32
+ } .pure-cell__categoryPercent_r9n5z {
33
33
  padding: 0 var(--gap-xs);
34
34
  background-color: var(--color-light-bg-secondary);
35
35
  border-radius: var(--border-radius-xl);
36
36
  margin-left: var(--gap-2xs);
37
- } .pure-cell__rightAddon_skrok {
37
+ } .pure-cell__rightAddon_r9n5z {
38
38
  margin-left: var(--gap-2xs);
39
39
  }
@@ -1 +1 @@
1
- export * from "../../component-6a644022";
1
+ export * from "../../component-02d56ae7";
@@ -1 +1 @@
1
- export { C as Category } from '../../component-6a644022.js';
1
+ export { C as Category } from '../../component-02d56ae7.js';
@@ -1,4 +1,4 @@
1
1
  import 'react';
2
2
  import 'classnames';
3
3
  import '@alfalab/core-components-shared/esm';
4
- export { c as Content } from '../../component-6a644022.js';
4
+ export { c as Content } from '../../component-02d56ae7.js';