@alfalab/core-components-pure-cell 4.8.0 → 4.9.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 (205) hide show
  1. package/{esm/component-c5ff489c.d.ts → component-5aa16b0d.d.ts} +12 -0
  2. package/{component-40566f8c.js → component-5aa16b0d.js} +133 -27
  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-40566f8c.d.ts → cssm/component-719b272a.d.ts} +12 -0
  50. package/cssm/{component-063660c0.js → component-719b272a.js} +122 -16
  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/{cssm/component-21d7b687.d.ts → esm/component-6a954af1.d.ts} +4 -0
  93. package/{modern/component-4f06f921.d.ts → esm/component-f3f965f3.d.ts} +12 -0
  94. package/esm/{component-c5ff489c.js → component-f3f965f3.js} +135 -29
  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/{cssm/component-063660c0.d.ts → modern/component-1f635679.d.ts} +12 -0
  146. package/modern/{component-4f06f921.js → component-1f635679.js} +125 -27
  147. package/modern/{component-21d7b687.d.ts → component-6a954af1.d.ts} +4 -0
  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/footer-button/component.tsx +32 -1
  200. package/src/components/graphics/component.tsx +33 -2
  201. package/src/components/graphics/index.module.css +16 -1
  202. package/src/components/main/component.tsx +39 -4
  203. package/src/components/main/index.module.css +16 -1
  204. package/src/index.module.css +4 -4
  205. 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
+ }
@@ -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;
@@ -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_a9h8y","none":"pure-cell__none_a9h8y","default":"pure-cell__default_a9h8y","addonPadding":"pure-cell__addonPadding_a9h8y","auto":"pure-cell__auto_a9h8y","top":"pure-cell__top_a9h8y","center":"pure-cell__center_a9h8y","bottom":"pure-cell__bottom_a9h8y"};
12
+ var styles$a = {"component":"pure-cell__component_1y3kr","none":"pure-cell__none_1y3kr","default":"pure-cell__default_1y3kr","addonPadding":"pure-cell__addonPadding_1y3kr","auto":"pure-cell__auto_1y3kr","top":"pure-cell__top_1y3kr","center":"pure-cell__center_1y3kr","bottom":"pure-cell__bottom_1y3kr","button":"pure-cell__button_1y3kr"};
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_u1eeb"};
46
+ var styles$9 = {"component":"pure-cell__component_1uqa7"};
22
47
  require('./components/amount/index.css')
23
48
 
24
49
  var Amount = function (_a) {
@@ -28,7 +53,7 @@ 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_f3mfl","weight":"pure-cell__weight_f3mfl"};
56
+ var styles$8 = {"component":"pure-cell__component_c9jh6","weight":"pure-cell__weight_c9jh6"};
32
57
  require('./components/amount-title/index.css')
33
58
 
34
59
  var AmountTitle = function (_a) {
@@ -39,7 +64,7 @@ var AmountTitle = function (_a) {
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_x893m","categoryName":"pure-cell__categoryName_x893m","categoryPercent":"pure-cell__categoryPercent_x893m","rightAddon":"pure-cell__rightAddon_x893m"};
67
+ var styles$7 = {"component":"pure-cell__component_11m41","categoryName":"pure-cell__categoryName_11m41","categoryPercent":"pure-cell__categoryPercent_11m41","rightAddon":"pure-cell__rightAddon_11m41"};
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_355fw","horizontal":"pure-cell__horizontal_355fw"};
81
+ var styles$6 = {"component":"pure-cell__component_lrchz","horizontal":"pure-cell__horizontal_lrchz"};
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_vnny8","none":"pure-cell__none_vnny8","default":"pure-cell__default_vnny8"};
91
+ var styles$5 = {"component":"pure-cell__component_stkzt","none":"pure-cell__none_stkzt","default":"pure-cell__default_stkzt"};
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_cfj2h"};
100
+ var styles$4 = {"component":"pure-cell__component_f9m0w"};
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_kmuuv","top":"pure-cell__top_kmuuv","center":"pure-cell__center_kmuuv","bottom":"pure-cell__bottom_kmuuv","horizontal":"pure-cell__horizontal_kmuuv","none":"pure-cell__none_kmuuv","airy":"pure-cell__airy_kmuuv","default":"pure-cell__default_kmuuv","compact":"pure-cell__compact_kmuuv","tiny":"pure-cell__tiny_kmuuv","vertical":"pure-cell__vertical_kmuuv"};
133
+ var styles$3 = {"component":"pure-cell__component_19mg8","top":"pure-cell__top_19mg8","center":"pure-cell__center_19mg8","bottom":"pure-cell__bottom_19mg8","horizontal":"pure-cell__horizontal_19mg8","none":"pure-cell__none_19mg8","airy":"pure-cell__airy_19mg8","default":"pure-cell__default_19mg8","compact":"pure-cell__compact_19mg8","tiny":"pure-cell__tiny_19mg8","vertical":"pure-cell__vertical_19mg8","button":"pure-cell__button_19mg8"};
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_2fv7t","vertical":"pure-cell__vertical_2fv7t","reverse":"pure-cell__reverse_2fv7t"};
166
+ var styles$2 = {"component":"pure-cell__component_10s3g","vertical":"pure-cell__vertical_10s3g","reverse":"pure-cell__reverse_10s3g","button":"pure-cell__button_10s3g"};
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_16dfl","rowLimit1":"pure-cell__rowLimit1_16dfl","rowLimit2":"pure-cell__rowLimit2_16dfl","component":"pure-cell__component_16dfl","vertical":"pure-cell__vertical_16dfl","title":"pure-cell__title_16dfl","value":"pure-cell__value_16dfl"};
198
+ var styles$1 = {"horizontal":"pure-cell__horizontal_13jcm","rowLimit1":"pure-cell__rowLimit1_13jcm","rowLimit2":"pure-cell__rowLimit2_13jcm","component":"pure-cell__component_13jcm","vertical":"pure-cell__vertical_13jcm","title":"pure-cell__title_13jcm","value":"pure-cell__value_13jcm"};
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_yqcv9","horizontal":"pure-cell__horizontal_yqcv9","vertical":"pure-cell__vertical_yqcv9","button":"pure-cell__button_yqcv9","link":"pure-cell__link_yqcv9","none":"pure-cell__none_yqcv9","airy":"pure-cell__airy_yqcv9","default":"pure-cell__default_yqcv9","compact":"pure-cell__compact_yqcv9","tiny":"pure-cell__tiny_yqcv9","noneTop":"pure-cell__noneTop_yqcv9","airyTop":"pure-cell__airyTop_yqcv9","defaultTop":"pure-cell__defaultTop_yqcv9","compactTop":"pure-cell__compactTop_yqcv9","tinyTop":"pure-cell__tinyTop_yqcv9","noneBottom":"pure-cell__noneBottom_yqcv9","airyBottom":"pure-cell__airyBottom_yqcv9","defaultBottom":"pure-cell__defaultBottom_yqcv9","compactBottom":"pure-cell__compactBottom_yqcv9","tinyBottom":"pure-cell__tinyBottom_yqcv9","left":"pure-cell__left_yqcv9","right":"pure-cell__right_yqcv9","both":"pure-cell__both_yqcv9","focused":"pure-cell__focused_yqcv9"};
215
+ var styles = {"component":"pure-cell__component_njcbn","horizontal":"pure-cell__horizontal_njcbn","vertical":"pure-cell__vertical_njcbn","button":"pure-cell__button_njcbn","hover":"pure-cell__hover_njcbn","active":"pure-cell__active_njcbn","link":"pure-cell__link_njcbn","none":"pure-cell__none_njcbn","airy":"pure-cell__airy_njcbn","default":"pure-cell__default_njcbn","compact":"pure-cell__compact_njcbn","tiny":"pure-cell__tiny_njcbn","noneTop":"pure-cell__noneTop_njcbn","airyTop":"pure-cell__airyTop_njcbn","defaultTop":"pure-cell__defaultTop_njcbn","compactTop":"pure-cell__compactTop_njcbn","tinyTop":"pure-cell__tinyTop_njcbn","noneBottom":"pure-cell__noneBottom_njcbn","airyBottom":"pure-cell__airyBottom_njcbn","defaultBottom":"pure-cell__defaultBottom_njcbn","compactBottom":"pure-cell__compactBottom_njcbn","tinyBottom":"pure-cell__tinyBottom_njcbn","left":"pure-cell__left_njcbn","right":"pure-cell__right_njcbn","both":"pure-cell__both_njcbn","focused":"pure-cell__focused_njcbn"};
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
  * Универсальный конструктор для сборки любой ячейки.
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-c5ff489c.js';
7
+ export { P as PureCell, f as PureCellContext } from './component-f3f965f3.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-c5ff489c.js';
5
+ export { A as Addon } from '../../component-f3f965f3.js';
@@ -1,4 +1,4 @@
1
- /* hash: 1sxcw */
1
+ /* hash: gmyku */
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_a9h8y {
18
+ } :root {
19
+ --pure-cell-clickable-area-hover-opacity: 1;
20
+ --pure-cell-clickable-area-active-opacity: 1;
21
+ } .pure-cell__component_1y3kr {
19
22
  display: flex;
20
23
  flex-direction: column;
21
24
  align-items: flex-end
22
- } .pure-cell__component_a9h8y > * {
25
+ } .pure-cell__component_1y3kr > * {
23
26
  justify-content: flex-end;
24
- } .pure-cell__component_a9h8y.pure-cell__none_a9h8y {
27
+ } .pure-cell__component_1y3kr.pure-cell__none_1y3kr {
25
28
  padding-left: 0;
26
- } .pure-cell__component_a9h8y.pure-cell__default_a9h8y {
29
+ } .pure-cell__component_1y3kr.pure-cell__default_1y3kr {
27
30
  padding-left: var(--gap-m);
28
- } .pure-cell__component_a9h8y.pure-cell__addonPadding_a9h8y {
31
+ } .pure-cell__component_1y3kr.pure-cell__addonPadding_1y3kr {
29
32
  padding-left: var(--gap-m);
30
- } .pure-cell__component_a9h8y.pure-cell__auto_a9h8y {
33
+ } .pure-cell__component_1y3kr.pure-cell__auto_1y3kr {
31
34
  align-self: auto;
32
- } .pure-cell__component_a9h8y.pure-cell__top_a9h8y {
35
+ } .pure-cell__component_1y3kr.pure-cell__top_1y3kr {
33
36
  align-self: flex-start;
34
- } .pure-cell__component_a9h8y.pure-cell__center_a9h8y {
37
+ } .pure-cell__component_1y3kr.pure-cell__center_1y3kr {
35
38
  align-self: center;
36
- } .pure-cell__component_a9h8y.pure-cell__bottom_a9h8y {
39
+ } .pure-cell__component_1y3kr.pure-cell__bottom_1y3kr {
37
40
  align-self: flex-end;
41
+ } .pure-cell__button_1y3kr {
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_1y3kr:hover {
60
+ opacity: var(--pure-cell-clickable-area-hover-opacity);
61
+ } .pure-cell__button_1y3kr:active {
62
+ opacity: var(--pure-cell-clickable-area-active-opacity);
38
63
  }
@@ -1 +1 @@
1
- export * from "../../component-c5ff489c";
1
+ export * from "../../component-f3f965f3";
@@ -1 +1 @@
1
- export { A as Addon } from '../../component-c5ff489c.js';
1
+ export { A as Addon } from '../../component-f3f965f3.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-c5ff489c.js';
7
+ export { a as Amount } from '../../component-f3f965f3.js';
@@ -1,4 +1,4 @@
1
- /* hash: oucpi */
1
+ /* hash: 16dsw */
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_u1eeb {
18
+ } .pure-cell__component_1uqa7 {
19
19
  padding: var(--gap-3xs) 0;
20
20
  display: flex;
21
21
  }
@@ -1 +1 @@
1
- export * from "../../component-c5ff489c";
1
+ export * from "../../component-f3f965f3";
@@ -1 +1 @@
1
- export { a as Amount } from '../../component-c5ff489c.js';
1
+ export { a as Amount } from '../../component-f3f965f3.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-c5ff489c.js';
7
+ export { b as AmountTitle } from '../../component-f3f965f3.js';
@@ -1,4 +1,4 @@
1
- /* hash: 1np9r */
1
+ /* hash: 1trwa */
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_f3mfl {
17
+ } .pure-cell__component_c9jh6 {
18
18
  display: flex;
19
- } .pure-cell__weight_f3mfl {
19
+ } .pure-cell__weight_c9jh6 {
20
20
  font-weight: inherit;
21
21
  }
@@ -1 +1 @@
1
- export * from "../../component-c5ff489c";
1
+ export * from "../../component-f3f965f3";
@@ -1 +1 @@
1
- export { b as AmountTitle } from '../../component-c5ff489c.js';
1
+ export { b as AmountTitle } from '../../component-f3f965f3.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-c5ff489c.js';
4
+ export { C as Category } from '../../component-f3f965f3.js';
@@ -1,4 +1,4 @@
1
- /* hash: 1kjsm */
1
+ /* hash: 1tpgt */
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_x893m {
22
+ } .pure-cell__component_11m41 {
23
23
  display: flex;
24
24
  overflow: hidden;
25
25
  padding: var(--gap-3xs) 0;
26
- } .pure-cell__categoryName_x893m {
26
+ } .pure-cell__categoryName_11m41 {
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_x893m {
32
+ } .pure-cell__categoryPercent_11m41 {
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_x893m {
37
+ } .pure-cell__rightAddon_11m41 {
38
38
  margin-left: var(--gap-2xs);
39
39
  }
@@ -1 +1 @@
1
- export * from "../../component-c5ff489c";
1
+ export * from "../../component-f3f965f3";
@@ -1 +1 @@
1
- export { C as Category } from '../../component-c5ff489c.js';
1
+ export { C as Category } from '../../component-f3f965f3.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-c5ff489c.js';
4
+ export { c as Content } from '../../component-f3f965f3.js';