@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
package/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var components_addon_component = require('./component-81e75437.js');
5
+ var components_addon_component = require('./component-1b03bea6.js');
6
6
 
7
7
 
8
8
 
@@ -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,4 +1,4 @@
1
- import React, { useContext, forwardRef, useRef } from 'react';
1
+ import React, { useContext, forwardRef, useRef, useState } from 'react';
2
2
  import mergeRefs from 'react-merge-refs';
3
3
  import cn from 'classnames';
4
4
  import { Comment } from '@alfalab/core-components-comment/modern';
@@ -8,15 +8,37 @@ import { Amount as Amount$1 } from '@alfalab/core-components-amount/modern';
8
8
  import { Typography } from '@alfalab/core-components-typography/modern';
9
9
  import { Button } from '@alfalab/core-components-button/modern';
10
10
 
11
- const 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"};
11
+ const 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"};
12
12
  require('./components/addon/index.css')
13
13
 
14
- const Addon = ({ children, verticalAlign = 'top', addonPadding = 'default', dataTestId, }) => {
14
+ const ADDON_COMPONENT = {
15
+ button: 'button',
16
+ section: 'section',
17
+ };
18
+ const Addon = ({ children, verticalAlign = 'top', addonPadding = 'default', dataTestId, onClick, }) => {
15
19
  const pureCellContext = useContext(PureCellContext);
16
- return (React.createElement("section", { className: cn(styles$a.component, styles$a[addonPadding], styles$a[verticalAlign]), "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'addon') }, children));
20
+ const Component = onClick ? ADDON_COMPONENT.button : ADDON_COMPONENT.section;
21
+ const onMouseEvents = {
22
+ onClick: (e) => {
23
+ e.stopPropagation();
24
+ onClick?.();
25
+ },
26
+ onMouseEnter: () => {
27
+ pureCellContext.unsetMainHover?.();
28
+ },
29
+ onMouseLeave: () => {
30
+ pureCellContext.setMainHover?.();
31
+ },
32
+ onMouseDown: (e) => {
33
+ e.stopPropagation();
34
+ },
35
+ };
36
+ return (React.createElement(Component, { className: cn(styles$a.component, styles$a[addonPadding], styles$a[verticalAlign], {
37
+ [styles$a.button]: onClick,
38
+ }), "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'addon'), ...(onClick && onMouseEvents) }, children));
17
39
  };
18
40
 
19
- const styles$9 = {"component":"pure-cell__component_1loxt"};
41
+ const styles$9 = {"component":"pure-cell__component_3ozhf"};
20
42
  require('./components/amount/index.css')
21
43
 
22
44
  const Amount = ({ weight = 'normal', textView = 'component', color = 'primary', minority, minorUnits = 100, dataTestId, ...restProps }) => {
@@ -25,7 +47,7 @@ const Amount = ({ weight = 'normal', textView = 'component', color = 'primary',
25
47
  React.createElement(Amount$1, { minority: minority || minorUnits, bold: weight === 'bold' ? 'full' : 'none', dataTestId: getDataTestId(dataTestId || pureCellContext.dataTestId, 'amount'), ...restProps })));
26
48
  };
27
49
 
28
- const styles$8 = {"component":"pure-cell__component_rcgyg","weight":"pure-cell__weight_rcgyg"};
50
+ const styles$8 = {"component":"pure-cell__component_15g1c","weight":"pure-cell__weight_15g1c"};
29
51
  require('./components/amount-title/index.css')
30
52
 
31
53
  const AmountTitle = ({ minority, minorUnits = 100, className, color = 'primary', dataTestId, titleProps = {}, ...restProps }) => {
@@ -36,11 +58,11 @@ const AmountTitle = ({ minority, minorUnits = 100, className, color = 'primary',
36
58
  color,
37
59
  ...titleProps,
38
60
  };
39
- return (React.createElement(Typography.Title, { ...titleDefaultProps, dataTestId: getDataTestId(dataTestId || pureCellContext.dataTestId, 'amount-title'), className: cn(styles$8.component, titleProps.className) },
61
+ return (React.createElement(Typography.TitleResponsive, { ...titleDefaultProps, dataTestId: getDataTestId(dataTestId || pureCellContext.dataTestId, 'amount-title'), className: cn(styles$8.component, titleProps.className) },
40
62
  React.createElement(Amount$1, { minority: minority || minorUnits, className: cn(styles$8.weight, className), dataTestId: getDataTestId(dataTestId || pureCellContext.dataTestId, 'core-amount-title'), ...restProps, bold: 'none' })));
41
63
  };
42
64
 
43
- const styles$7 = {"component":"pure-cell__component_skrok","categoryName":"pure-cell__categoryName_skrok","categoryPercent":"pure-cell__categoryPercent_skrok","rightAddon":"pure-cell__rightAddon_skrok"};
65
+ const styles$7 = {"component":"pure-cell__component_r9n5z","categoryName":"pure-cell__categoryName_r9n5z","categoryPercent":"pure-cell__categoryPercent_r9n5z","rightAddon":"pure-cell__rightAddon_r9n5z"};
44
66
  require('./components/category/index.css')
45
67
 
46
68
  const Category = ({ categoryName, categoryPercent, rightAddons, dataTestId, }) => {
@@ -53,7 +75,7 @@ const Category = ({ categoryName, categoryPercent, rightAddons, dataTestId, }) =
53
75
  rightAddons !== undefined && (React.createElement("div", { className: styles$7.rightAddon, "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'category-right-addon') }, rightAddons))));
54
76
  };
55
77
 
56
- const styles$6 = {"component":"pure-cell__component_usovd","horizontal":"pure-cell__horizontal_usovd"};
78
+ const styles$6 = {"component":"pure-cell__component_3ubiy","horizontal":"pure-cell__horizontal_3ubiy"};
57
79
  require('./components/content/index.css')
58
80
 
59
81
  const Content = ({ children, dataTestId }) => {
@@ -61,7 +83,7 @@ const Content = ({ children, dataTestId }) => {
61
83
  return (React.createElement("section", { className: cn(styles$6.component, { [styles$6.horizontal]: direction === 'horizontal' }), "data-test-id": getDataTestId(dataTestId || contextDataTestId, 'content') }, children));
62
84
  };
63
85
 
64
- const styles$5 = {"component":"pure-cell__component_17wih","none":"pure-cell__none_17wih","default":"pure-cell__default_17wih"};
86
+ const styles$5 = {"component":"pure-cell__component_uyhv6","none":"pure-cell__none_uyhv6","default":"pure-cell__default_uyhv6"};
65
87
  require('./components/footer/index.css')
66
88
 
67
89
  const Footer = ({ children, footerPadding = 'default', dataTestId }) => {
@@ -69,12 +91,28 @@ const Footer = ({ children, footerPadding = 'default', dataTestId }) => {
69
91
  return (React.createElement("footer", { className: cn(styles$5.component, styles$5[footerPadding]), "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'footer') }, children));
70
92
  };
71
93
 
72
- const styles$4 = {"component":"pure-cell__component_6ojmm"};
94
+ const styles$4 = {"component":"pure-cell__component_1l487"};
73
95
  require('./components/footer-button/index.css')
74
96
 
75
- const FooterButton = forwardRef(({ children, dataTestId, ...props }, ref) => {
97
+ const FooterButton = forwardRef(({ children, dataTestId, onClick, onMouseDown, onMouseEnter, onMouseLeave, ...props }, ref) => {
76
98
  const pureCellContext = useContext(PureCellContext);
77
- return (React.createElement(Button, { ...props, size: 'xxs', dataTestId: getDataTestId(dataTestId || pureCellContext.dataTestId, 'button'), className: styles$4.component, ref: ref }, children));
99
+ const handleClick = (e) => {
100
+ e.stopPropagation();
101
+ onClick?.(e);
102
+ };
103
+ const handleMouseEnter = (e) => {
104
+ onMouseEnter?.(e);
105
+ pureCellContext.unsetMainHover?.();
106
+ };
107
+ const handleMouseLeave = (e) => {
108
+ onMouseLeave?.(e);
109
+ pureCellContext.setMainHover?.();
110
+ };
111
+ const handleMouseDown = (e) => {
112
+ onMouseDown?.(e);
113
+ e.stopPropagation();
114
+ };
115
+ return (React.createElement(Button, { ...props, size: 'xxs', dataTestId: getDataTestId(dataTestId || pureCellContext.dataTestId, 'button'), className: styles$4.component, ref: ref, onClick: handleClick, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, onMouseDown: handleMouseDown }, children));
78
116
  });
79
117
 
80
118
  const FooterText = ({ children, color = 'secondary', dataTestId }) => {
@@ -82,26 +120,66 @@ const FooterText = ({ children, color = 'secondary', dataTestId }) => {
82
120
  return (React.createElement(Typography.Text, { view: 'primary-small', color: color, "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'footer-title') }, children));
83
121
  };
84
122
 
85
- const 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"};
123
+ const 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"};
86
124
  require('./components/graphics/index.css')
87
125
 
88
- const Graphics = ({ children, dataTestId, verticalAlign = 'top', graphicPadding, }) => {
126
+ const GRAPHICS_COMPONENT = {
127
+ button: 'button',
128
+ section: 'section',
129
+ };
130
+ const Graphics = ({ children, dataTestId, verticalAlign = 'top', graphicPadding, onClick, }) => {
89
131
  const pureCellContext = useContext(PureCellContext);
132
+ const Component = onClick ? GRAPHICS_COMPONENT.button : GRAPHICS_COMPONENT.section;
90
133
  const defaultGraphicPadding = pureCellContext.direction === 'horizontal' ? 'airy' : 'default';
91
- 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));
134
+ const onMouseEvents = {
135
+ onClick: (e) => {
136
+ e.stopPropagation();
137
+ onClick?.();
138
+ },
139
+ onMouseEnter: () => {
140
+ pureCellContext.unsetMainHover?.();
141
+ },
142
+ onMouseLeave: () => {
143
+ pureCellContext.setMainHover?.();
144
+ },
145
+ onMouseDown: (e) => {
146
+ e.stopPropagation();
147
+ },
148
+ };
149
+ return (React.createElement(Component, { className: cn(styles$3.component, styles$3[verticalAlign], styles$3[pureCellContext.direction || 'horizontal'], styles$3[graphicPadding || defaultGraphicPadding], { [styles$3.button]: onClick }), "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'graphics'), ...(onClick && onMouseEvents) }, children));
92
150
  };
93
151
 
94
- const styles$2 = {"component":"pure-cell__component_19tfu","vertical":"pure-cell__vertical_19tfu","reverse":"pure-cell__reverse_19tfu"};
152
+ const styles$2 = {"component":"pure-cell__component_351av","vertical":"pure-cell__vertical_351av","reverse":"pure-cell__reverse_351av","button":"pure-cell__button_351av"};
95
153
  require('./components/main/index.css')
96
154
 
97
- const Main = ({ children, isReverse, className, dataTestId }) => {
98
- const { direction = 'horizontal', dataTestId: contextDataTestId } = useContext(PureCellContext);
99
- return (React.createElement("div", { className: cn(styles$2.component, styles$2[direction], {
155
+ const MAIN_COMPONENT = {
156
+ button: 'button',
157
+ section: 'section',
158
+ };
159
+ const Main = ({ children, isReverse, className, dataTestId, onClick }) => {
160
+ const { direction = 'horizontal', dataTestId: contextDataTestId, setMainHover, unsetMainHover, } = useContext(PureCellContext);
161
+ const Component = onClick ? MAIN_COMPONENT.button : MAIN_COMPONENT.section;
162
+ const onMouseEvents = {
163
+ onClick: (e) => {
164
+ e.stopPropagation();
165
+ onClick?.();
166
+ },
167
+ onMouseEnter: () => {
168
+ unsetMainHover?.();
169
+ },
170
+ onMouseLeave: () => {
171
+ setMainHover?.();
172
+ },
173
+ onMouseDown: (e) => {
174
+ e.stopPropagation();
175
+ },
176
+ };
177
+ return (React.createElement(Component, { className: cn(styles$2.component, styles$2[direction], {
100
178
  [styles$2.reverse]: isReverse,
101
- }, className), "data-test-id": getDataTestId(dataTestId || contextDataTestId, 'main') }, children));
179
+ }, { [styles$2.button]: onClick }, className), "data-test-id": getDataTestId(dataTestId || contextDataTestId, 'main'), ...(onClick && onMouseEvents) }, children));
102
180
  };
103
181
 
104
- const 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"};
182
+ const 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"};
105
183
  require('./components/text/index.css')
106
184
 
107
185
  const Text = ({ children, value, rowLimit, view = 'component-primary', titleWeight, titleColor, valueColor, dataTestId, }) => {
@@ -116,7 +194,7 @@ const Text = ({ children, value, rowLimit, view = 'component-primary', titleWeig
116
194
  React.createElement(Typography.Text, { view: view, tag: 'div', color: valueColor, className: className, "data-test-id": getDataTestId(dataTestId || contextDataTestId, 'text_value') }, value)))));
117
195
  };
118
196
 
119
- const 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"};
197
+ const 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"};
120
198
  require('./index.css')
121
199
 
122
200
  /* eslint-disable react/jsx-no-constructed-context-values */
@@ -125,11 +203,31 @@ const PureCellContext = React.createContext({});
125
203
  const PureCellComponent = forwardRef(({ className, dataTestId, onClick, href, tag: Component = (href && 'a') || (onClick && 'button') || 'section', children, horizontalPadding = 'none', verticalPadding = 'none', direction = 'horizontal', ...restProps }, ref) => {
126
204
  const cellRef = useRef(null);
127
205
  const [focused] = useFocus(cellRef, 'keyboard');
206
+ const [hoverState, setHoverState] = useState(false);
207
+ const [activeState, setActiveState] = useState(false);
208
+ const setHover = () => setHoverState(true);
209
+ const unsetHover = () => setHoverState(false);
210
+ const setActive = () => setActiveState(true);
211
+ const unsetActive = () => setActiveState(false);
212
+ const mouseEvents = {
213
+ onMouseEnter: setHover,
214
+ onMouseLeave: unsetHover,
215
+ onMouseDown: setActive,
216
+ onMouseUp: unsetActive,
217
+ };
128
218
  const addClasses = {
129
219
  [styles.component]: true,
130
220
  [styles.focused]: focused,
131
221
  [styles[direction]]: true,
132
222
  [styles[horizontalPadding]]: true,
223
+ [styles.hover]: hoverState,
224
+ [styles.active]: activeState,
225
+ };
226
+ const contextState = {
227
+ direction,
228
+ dataTestId,
229
+ setMainHover: setHover,
230
+ unsetMainHover: unsetHover,
133
231
  };
134
232
  if (typeof verticalPadding === 'string') {
135
233
  addClasses[styles[verticalPadding]] = typeof verticalPadding === 'string';
@@ -142,15 +240,15 @@ const PureCellComponent = forwardRef(({ className, dataTestId, onClick, href, ta
142
240
  const { target } = restProps;
143
241
  // Для совместимости с react-router-dom, меняем href на to
144
242
  const hrefProps = { [typeof Component === 'string' ? 'href' : 'to']: href };
145
- return (React.createElement(Component, { rel: target === '_blank' ? 'noreferrer noopener' : undefined, ...restProps, ...hrefProps, ref: mergeRefs([cellRef, ref]), className: cn(styles.link, addClasses, className), "data-test-id": dataTestId, onClick: onClick },
146
- React.createElement(PureCellContext.Provider, { value: { direction, dataTestId } }, children)));
243
+ return (React.createElement(Component, { 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 },
244
+ React.createElement(PureCellContext.Provider, { value: contextState }, children)));
147
245
  }
148
246
  if (onClick) {
149
- return (React.createElement(Component, { ...restProps, ref: mergeRefs([cellRef, ref]), className: cn(styles.button, addClasses, className), "data-test-id": dataTestId, onClick: onClick },
150
- React.createElement(PureCellContext.Provider, { value: { direction, dataTestId } }, children)));
247
+ return (React.createElement(Component, { ...restProps, ref: mergeRefs([cellRef, ref]), className: cn(styles.button, addClasses, className), "data-test-id": dataTestId, onClick: onClick, ...mouseEvents },
248
+ React.createElement(PureCellContext.Provider, { value: contextState }, children)));
151
249
  }
152
250
  return (React.createElement(Component, { ...restProps, ref: ref, tabIndex: 0, className: cn(addClasses, className), "data-test-id": dataTestId },
153
- React.createElement(PureCellContext.Provider, { value: { direction, dataTestId } }, children)));
251
+ React.createElement(PureCellContext.Provider, { value: contextState }, children)));
154
252
  });
155
253
  /**
156
254
  * Универсальный конструктор для сборки любой ячейки.
@@ -3,4 +3,4 @@ import 'react-merge-refs';
3
3
  import 'classnames';
4
4
  import '@alfalab/core-components-comment/modern';
5
5
  import '@alfalab/hooks';
6
- export { P as PureCell, f as PureCellContext } from './component-ef65ce67.js';
6
+ export { P as PureCell, f as PureCellContext } from './component-766c0ee4.js';
@@ -1,4 +1,4 @@
1
1
  import 'react';
2
2
  import 'classnames';
3
3
  import '@alfalab/core-components-shared/modern';
4
- export { A as Addon } from '../../component-ef65ce67.js';
4
+ export { A as Addon } from '../../component-766c0ee4.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-ef65ce67";
1
+ export * from "../../component-766c0ee4";
@@ -1 +1 @@
1
- export { A as Addon } from '../../component-ef65ce67.js';
1
+ export { A as Addon } from '../../component-766c0ee4.js';
@@ -3,4 +3,4 @@ import 'classnames';
3
3
  import '@alfalab/core-components-amount/modern';
4
4
  import '@alfalab/core-components-shared/modern';
5
5
  import '@alfalab/core-components-typography/modern';
6
- export { a as Amount } from '../../component-ef65ce67.js';
6
+ export { a as Amount } from '../../component-766c0ee4.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-ef65ce67";
1
+ export * from "../../component-766c0ee4";
@@ -1 +1 @@
1
- export { a as Amount } from '../../component-ef65ce67.js';
1
+ export { a as Amount } from '../../component-766c0ee4.js';
@@ -3,4 +3,4 @@ import 'classnames';
3
3
  import '@alfalab/core-components-amount/modern';
4
4
  import '@alfalab/core-components-shared/modern';
5
5
  import '@alfalab/core-components-typography/modern';
6
- export { b as AmountTitle } from '../../component-ef65ce67.js';
6
+ export { b as AmountTitle } from '../../component-766c0ee4.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-ef65ce67";
1
+ export * from "../../component-766c0ee4";
@@ -1 +1 @@
1
- export { b as AmountTitle } from '../../component-ef65ce67.js';
1
+ export { b as AmountTitle } from '../../component-766c0ee4.js';
@@ -1,4 +1,4 @@
1
1
  import 'react';
2
2
  import '@alfalab/core-components-shared/modern';
3
3
  import '@alfalab/core-components-typography/modern';
4
- export { C as Category } from '../../component-ef65ce67.js';
4
+ export { C as Category } from '../../component-766c0ee4.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-ef65ce67";
1
+ export * from "../../component-766c0ee4";
@@ -1 +1 @@
1
- export { C as Category } from '../../component-ef65ce67.js';
1
+ export { C as Category } from '../../component-766c0ee4.js';
@@ -1,4 +1,4 @@
1
1
  import 'react';
2
2
  import 'classnames';
3
3
  import '@alfalab/core-components-shared/modern';
4
- export { c as Content } from '../../component-ef65ce67.js';
4
+ export { c as Content } from '../../component-766c0ee4.js';
@@ -1,4 +1,4 @@
1
- /* hash: va9lm */
1
+ /* hash: 1ncof */
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,11 +14,11 @@
14
14
  } :root {
15
15
  } :root {
16
16
  } :root {
17
- } .pure-cell__component_usovd {
17
+ } .pure-cell__component_3ubiy {
18
18
  flex-basis: 100%;
19
19
  display: grid;
20
20
  grid-template-columns: 1fr auto
21
- } .pure-cell__component_usovd.pure-cell__horizontal_usovd {
21
+ } .pure-cell__component_3ubiy.pure-cell__horizontal_3ubiy {
22
22
  /* for button */
23
23
  align-self: stretch;
24
24
  }
@@ -1 +1 @@
1
- export * from "../../component-ef65ce67";
1
+ export * from "../../component-766c0ee4";
@@ -1 +1 @@
1
- export { c as Content } from '../../component-ef65ce67.js';
1
+ export { c as Content } from '../../component-766c0ee4.js';
@@ -1,4 +1,4 @@
1
1
  import 'react';
2
2
  import 'classnames';
3
3
  import '@alfalab/core-components-shared/modern';
4
- export { F as Footer } from '../../component-ef65ce67.js';
4
+ export { F as Footer } from '../../component-766c0ee4.js';