@alfalab/core-components-pure-cell 2.0.5 → 2.0.6

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 (165) hide show
  1. package/{component-06198138.d.ts → component-04c6d9c4.d.ts} +0 -0
  2. package/{component-06198138.js → component-04c6d9c4.js} +2 -2
  3. package/{esm/component-2a2f6f06.d.ts → component-3f80589a.d.ts} +1 -1
  4. package/{component-d93a7f6c.js → component-3f80589a.js} +20 -19
  5. package/{modern/component-7c76812e.d.ts → component-cf0927a9.d.ts} +1 -1
  6. package/component.js +3 -3
  7. package/components/addon/component.js +2 -2
  8. package/components/addon/index.css +10 -8
  9. package/components/addon/index.js +1 -1
  10. package/components/amount/component.js +2 -2
  11. package/components/amount/index.css +2 -2
  12. package/components/amount/index.js +1 -1
  13. package/components/amount-title/component.js +2 -2
  14. package/components/amount-title/index.css +3 -3
  15. package/components/amount-title/index.js +1 -1
  16. package/components/category/component.js +2 -2
  17. package/components/category/index.css +4 -4
  18. package/components/category/index.js +1 -1
  19. package/components/comment/component.js +2 -2
  20. package/components/comment/index.css +3 -3
  21. package/components/comment/index.js +1 -1
  22. package/components/content/component.js +3 -3
  23. package/components/content/index.css +3 -3
  24. package/components/content/index.d.ts +1 -1
  25. package/components/content/index.js +3 -3
  26. package/components/footer/component.js +2 -2
  27. package/components/footer/index.css +4 -4
  28. package/components/footer/index.js +1 -1
  29. package/components/footer-button/component.js +2 -2
  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 +2 -2
  33. package/components/footer-text/component.js +1 -1
  34. package/components/footer-text/index.js +1 -1
  35. package/components/graphics/component.js +2 -2
  36. package/components/graphics/index.css +2 -2
  37. package/components/graphics/index.js +1 -1
  38. package/components/main/component.js +3 -3
  39. package/components/main/index.css +4 -4
  40. package/components/main/index.d.ts +1 -1
  41. package/components/main/index.js +3 -3
  42. package/components/text/component.js +3 -3
  43. package/components/text/index.css +8 -8
  44. package/components/text/index.d.ts +1 -1
  45. package/components/text/index.js +3 -3
  46. package/cssm/{component-7c76812e.d.ts → component-cf0927a9.d.ts} +1 -1
  47. package/{modern/component-048093d7.d.ts → cssm/component-f60efddd.d.ts} +1 -1
  48. package/cssm/{component-1338a186.js → component-f60efddd.js} +14 -13
  49. package/cssm/component.js +1 -1
  50. package/cssm/components/addon/index.module.css +4 -2
  51. package/cssm/components/content/component.js +1 -1
  52. package/cssm/components/content/index.d.ts +1 -1
  53. package/cssm/components/content/index.js +1 -1
  54. package/cssm/components/main/component.js +1 -1
  55. package/cssm/components/main/index.d.ts +1 -1
  56. package/cssm/components/main/index.js +1 -1
  57. package/cssm/components/text/component.js +1 -1
  58. package/cssm/components/text/index.d.ts +1 -1
  59. package/cssm/components/text/index.js +1 -1
  60. package/cssm/index.d.ts +1 -1
  61. package/cssm/index.js +1 -1
  62. package/cssm/index.module.css +1 -1
  63. package/{cssm/component-1338a186.d.ts → esm/component-cc5a30ff.d.ts} +1 -1
  64. package/esm/{component-2a2f6f06.js → component-cc5a30ff.js} +20 -19
  65. package/esm/{component-7c76812e.d.ts → component-cf0927a9.d.ts} +1 -1
  66. package/esm/{component-274bb79c.d.ts → component-d1a6702b.d.ts} +0 -0
  67. package/esm/{component-274bb79c.js → component-d1a6702b.js} +2 -2
  68. package/esm/component.js +3 -3
  69. package/esm/components/addon/component.js +2 -2
  70. package/esm/components/addon/index.css +10 -8
  71. package/esm/components/addon/index.js +1 -1
  72. package/esm/components/amount/component.js +2 -2
  73. package/esm/components/amount/index.css +2 -2
  74. package/esm/components/amount/index.js +1 -1
  75. package/esm/components/amount-title/component.js +2 -2
  76. package/esm/components/amount-title/index.css +3 -3
  77. package/esm/components/amount-title/index.js +1 -1
  78. package/esm/components/category/component.js +2 -2
  79. package/esm/components/category/index.css +4 -4
  80. package/esm/components/category/index.js +1 -1
  81. package/esm/components/comment/component.js +2 -2
  82. package/esm/components/comment/index.css +3 -3
  83. package/esm/components/comment/index.js +1 -1
  84. package/esm/components/content/component.js +3 -3
  85. package/esm/components/content/index.css +3 -3
  86. package/esm/components/content/index.d.ts +1 -1
  87. package/esm/components/content/index.js +3 -3
  88. package/esm/components/footer/component.js +2 -2
  89. package/esm/components/footer/index.css +4 -4
  90. package/esm/components/footer/index.js +1 -1
  91. package/esm/components/footer-button/component.js +2 -2
  92. package/esm/components/footer-button/index.css +2 -2
  93. package/esm/components/footer-button/index.d.ts +1 -1
  94. package/esm/components/footer-button/index.js +2 -2
  95. package/esm/components/footer-text/component.js +1 -1
  96. package/esm/components/footer-text/index.js +1 -1
  97. package/esm/components/graphics/component.js +2 -2
  98. package/esm/components/graphics/index.css +2 -2
  99. package/esm/components/graphics/index.js +1 -1
  100. package/esm/components/main/component.js +3 -3
  101. package/esm/components/main/index.css +4 -4
  102. package/esm/components/main/index.d.ts +1 -1
  103. package/esm/components/main/index.js +3 -3
  104. package/esm/components/text/component.js +3 -3
  105. package/esm/components/text/index.css +8 -8
  106. package/esm/components/text/index.d.ts +1 -1
  107. package/esm/components/text/index.js +3 -3
  108. package/esm/{getDataTestId-b29f8e58.d.ts → getDataTestId-84bfcaab.d.ts} +0 -0
  109. package/esm/{getDataTestId-b29f8e58.js → getDataTestId-84bfcaab.js} +0 -0
  110. package/esm/index.css +19 -19
  111. package/esm/index.d.ts +1 -1
  112. package/esm/index.js +3 -3
  113. package/{getDataTestId-d09c6093.d.ts → getDataTestId-49bb5c39.d.ts} +0 -0
  114. package/{getDataTestId-d09c6093.js → getDataTestId-49bb5c39.js} +0 -0
  115. package/index.css +19 -19
  116. package/index.d.ts +1 -1
  117. package/index.js +3 -3
  118. package/{component-d93a7f6c.d.ts → modern/component-2ad59c5c.d.ts} +1 -1
  119. package/modern/{component-048093d7.js → component-2ad59c5c.js} +19 -18
  120. package/{component-7c76812e.d.ts → modern/component-cf0927a9.d.ts} +7 -7
  121. package/modern/component.js +2 -2
  122. package/modern/components/addon/component.js +2 -2
  123. package/modern/components/addon/index.css +10 -8
  124. package/modern/components/addon/index.js +1 -1
  125. package/modern/components/amount/component.js +2 -2
  126. package/modern/components/amount/index.css +2 -2
  127. package/modern/components/amount/index.js +1 -1
  128. package/modern/components/amount-title/component.js +2 -2
  129. package/modern/components/amount-title/index.css +3 -3
  130. package/modern/components/amount-title/index.js +1 -1
  131. package/modern/components/category/component.js +2 -2
  132. package/modern/components/category/index.css +4 -4
  133. package/modern/components/category/index.js +1 -1
  134. package/modern/components/comment/component.js +2 -2
  135. package/modern/components/comment/index.css +3 -3
  136. package/modern/components/comment/index.js +1 -1
  137. package/modern/components/content/component.js +2 -2
  138. package/modern/components/content/index.css +3 -3
  139. package/modern/components/content/index.d.ts +1 -1
  140. package/modern/components/content/index.js +2 -2
  141. package/modern/components/footer/component.js +2 -2
  142. package/modern/components/footer/index.css +4 -4
  143. package/modern/components/footer/index.js +1 -1
  144. package/modern/components/footer-button/component.js +2 -2
  145. package/modern/components/footer-button/index.css +2 -2
  146. package/modern/components/footer-button/index.js +1 -1
  147. package/modern/components/footer-text/component.js +1 -1
  148. package/modern/components/footer-text/index.js +1 -1
  149. package/modern/components/graphics/component.js +2 -2
  150. package/modern/components/graphics/index.css +2 -2
  151. package/modern/components/graphics/index.js +1 -1
  152. package/modern/components/main/component.js +2 -2
  153. package/modern/components/main/index.css +4 -4
  154. package/modern/components/main/index.d.ts +1 -1
  155. package/modern/components/main/index.js +2 -2
  156. package/modern/components/text/component.js +2 -2
  157. package/modern/components/text/index.css +8 -8
  158. package/modern/components/text/index.d.ts +1 -1
  159. package/modern/components/text/index.js +2 -2
  160. package/modern/{getDataTestId-e4e2ae09.d.ts → getDataTestId-8debaee9.d.ts} +0 -0
  161. package/modern/{getDataTestId-e4e2ae09.js → getDataTestId-8debaee9.js} +0 -0
  162. package/modern/index.css +19 -19
  163. package/modern/index.d.ts +1 -1
  164. package/modern/index.js +2 -2
  165. package/package.json +2 -2
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('react');
6
- require('../../getDataTestId-d09c6093.js');
6
+ require('../../getDataTestId-49bb5c39.js');
7
7
  require('@alfalab/core-components-typography');
8
8
  var components_footerText_component = require('./component.js');
9
9
 
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
- var getDataTestId = require('../../getDataTestId-d09c6093.js');
6
+ var getDataTestId = require('../../getDataTestId-49bb5c39.js');
7
7
 
8
8
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
9
 
10
10
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
11
11
 
12
- var styles = {"component":"pure-cell__component_1punw"};
12
+ var styles = {"component":"pure-cell__component_e753v"};
13
13
  require('./index.css')
14
14
 
15
15
  var Graphics = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1s164 */
1
+ /* hash: ajmgp */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -7,6 +7,6 @@
7
7
 
8
8
  /* Hard up */
9
9
  }
10
- .pure-cell__component_1punw {
10
+ .pure-cell__component_e753v {
11
11
  flex-basis: auto;
12
12
  }
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('react');
6
- require('../../getDataTestId-d09c6093.js');
6
+ require('../../getDataTestId-49bb5c39.js');
7
7
  var components_graphics_component = require('./component.js');
8
8
 
9
9
 
@@ -2,12 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('../../component-06198138.js');
5
+ require('../../component-04c6d9c4.js');
6
6
  require('react');
7
7
  require('react-merge-refs');
8
8
  require('classnames');
9
9
  require('@alfalab/hooks');
10
- require('../../getDataTestId-d09c6093.js');
10
+ require('../../getDataTestId-49bb5c39.js');
11
11
  require('../addon/component.js');
12
12
  require('@alfalab/core-components-typography');
13
13
  require('@alfalab/core-components-amount');
@@ -15,7 +15,7 @@ require('../amount/component.js');
15
15
  require('../amount-title/component.js');
16
16
  require('../category/component.js');
17
17
  require('../comment/component.js');
18
- var components_content_component = require('../../component-d93a7f6c.js');
18
+ var components_content_component = require('../../component-3f80589a.js');
19
19
  require('../footer/component.js');
20
20
  require('@alfalab/core-components-button');
21
21
  require('../footer-text/component.js');
@@ -1,4 +1,4 @@
1
- /* hash: 1lz21 */
1
+ /* hash: 58slw */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -10,7 +10,7 @@
10
10
  :root {
11
11
  --gap-3xs: 2px;
12
12
  }
13
- .pure-cell__component_1nfpy {
13
+ .pure-cell__component_1q2xz {
14
14
  display: flex;
15
15
  flex-direction: column;
16
16
  align-self: center;
@@ -18,7 +18,7 @@
18
18
  /* can use /r/n */
19
19
  white-space: pre-line
20
20
  }
21
- .pure-cell__component_1nfpy.pure-cell__vertical_1nfpy {
21
+ .pure-cell__component_1q2xz.pure-cell__vertical_1q2xz {
22
22
  grid-row-gap: var(--gap-3xs);
23
23
  justify-content: center;
24
24
  align-items: center;
@@ -26,6 +26,6 @@
26
26
  /* for button */
27
27
  text-align: center;
28
28
  }
29
- .pure-cell__component_1nfpy.pure-cell__reverse_1nfpy {
29
+ .pure-cell__component_1q2xz.pure-cell__reverse_1q2xz {
30
30
  flex-direction: column-reverse;
31
31
  }
@@ -1 +1 @@
1
- export * from "../../component-d93a7f6c";
1
+ export * from "../../component-3f80589a";
@@ -2,12 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('../../component-06198138.js');
5
+ require('../../component-04c6d9c4.js');
6
6
  require('react');
7
7
  require('react-merge-refs');
8
8
  require('classnames');
9
9
  require('@alfalab/hooks');
10
- require('../../getDataTestId-d09c6093.js');
10
+ require('../../getDataTestId-49bb5c39.js');
11
11
  require('../addon/component.js');
12
12
  require('@alfalab/core-components-typography');
13
13
  require('@alfalab/core-components-amount');
@@ -15,7 +15,7 @@ require('../amount/component.js');
15
15
  require('../amount-title/component.js');
16
16
  require('../category/component.js');
17
17
  require('../comment/component.js');
18
- var components_content_component = require('../../component-d93a7f6c.js');
18
+ var components_content_component = require('../../component-3f80589a.js');
19
19
  require('../footer/component.js');
20
20
  require('@alfalab/core-components-button');
21
21
  require('../footer-text/component.js');
@@ -2,12 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('../../component-06198138.js');
5
+ require('../../component-04c6d9c4.js');
6
6
  require('react');
7
7
  require('react-merge-refs');
8
8
  require('classnames');
9
9
  require('@alfalab/hooks');
10
- require('../../getDataTestId-d09c6093.js');
10
+ require('../../getDataTestId-49bb5c39.js');
11
11
  require('../addon/component.js');
12
12
  require('@alfalab/core-components-typography');
13
13
  require('@alfalab/core-components-amount');
@@ -15,7 +15,7 @@ require('../amount/component.js');
15
15
  require('../amount-title/component.js');
16
16
  require('../category/component.js');
17
17
  require('../comment/component.js');
18
- var components_content_component = require('../../component-d93a7f6c.js');
18
+ var components_content_component = require('../../component-3f80589a.js');
19
19
  require('../footer/component.js');
20
20
  require('@alfalab/core-components-button');
21
21
  require('../footer-text/component.js');
@@ -1,4 +1,4 @@
1
- /* hash: e1hh9 */
1
+ /* hash: r334g */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -11,37 +11,37 @@
11
11
  --gap-3xs: 2px;
12
12
  --gap-m: 16px;
13
13
  }
14
- .pure-cell__horizontal_13qu2 {
14
+ .pure-cell__horizontal_1dq04 {
15
15
  padding: var(--gap-3xs) 0;
16
16
  }
17
- .pure-cell__rowLimit1_13qu2 {
17
+ .pure-cell__rowLimit1_1dq04 {
18
18
  display: -webkit-box;
19
19
  -webkit-line-clamp: 1;
20
20
  -webkit-box-orient: vertical;
21
21
  overflow: hidden;
22
22
  }
23
- .pure-cell__rowLimit2_13qu2 {
23
+ .pure-cell__rowLimit2_1dq04 {
24
24
  display: -webkit-box;
25
25
  -webkit-line-clamp: 2;
26
26
  -webkit-box-orient: vertical;
27
27
  overflow: hidden;
28
28
  }
29
- .pure-cell__component_13qu2 {
29
+ .pure-cell__component_1dq04 {
30
30
  display: flex;
31
31
  flex-direction: row;
32
32
  flex-wrap: nowrap;
33
33
  justify-content: space-between;
34
34
  margin: var(--gap-3xs) 0;
35
35
  }
36
- .pure-cell__component_13qu2 .pure-cell__multiline_13qu2 {
36
+ .pure-cell__component_1dq04 .pure-cell__multiline_1dq04 {
37
37
  display: -webkit-box;
38
38
  -webkit-line-clamp: 5;
39
39
  -webkit-box-orient: vertical;
40
40
  overflow: hidden;
41
41
  }
42
- .pure-cell__component_13qu2 .pure-cell__vertical_13qu2 {
42
+ .pure-cell__component_1dq04 .pure-cell__vertical_1dq04 {
43
43
  justify-content: center;
44
44
  }
45
- .pure-cell__title_13qu2 {
45
+ .pure-cell__title_1dq04 {
46
46
  margin-right: var(--gap-m);
47
47
  }
@@ -1 +1 @@
1
- export * from "../../component-d93a7f6c";
1
+ export * from "../../component-3f80589a";
@@ -2,12 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('../../component-06198138.js');
5
+ require('../../component-04c6d9c4.js');
6
6
  require('react');
7
7
  require('react-merge-refs');
8
8
  require('classnames');
9
9
  require('@alfalab/hooks');
10
- require('../../getDataTestId-d09c6093.js');
10
+ require('../../getDataTestId-49bb5c39.js');
11
11
  require('../addon/component.js');
12
12
  require('@alfalab/core-components-typography');
13
13
  require('@alfalab/core-components-amount');
@@ -15,7 +15,7 @@ require('../amount/component.js');
15
15
  require('../amount-title/component.js');
16
16
  require('../category/component.js');
17
17
  require('../comment/component.js');
18
- var components_content_component = require('../../component-d93a7f6c.js');
18
+ var components_content_component = require('../../component-3f80589a.js');
19
19
  require('../footer/component.js');
20
20
  require('@alfalab/core-components-button');
21
21
  require('../footer-text/component.js');
@@ -65,7 +65,7 @@ declare const PureCell: React.ForwardRefExoticComponent<(Partial<AnchorPureCellP
65
65
  isMultiline?: boolean | undefined;
66
66
  view: "primary-small" | "component";
67
67
  titleColor: "link" | "primary" | "secondary" | "tertiary" | "disabled" | "accent" | "attention" | "positive" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "negative";
68
- value?: string | undefined;
68
+ value?: React.ReactNode;
69
69
  valueColor?: "link" | "primary" | "secondary" | "tertiary" | "disabled" | "accent" | "attention" | "positive" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "negative" | undefined;
70
70
  dataTestId?: string | undefined;
71
71
  children?: React.ReactNode;
@@ -49,7 +49,7 @@ type Props$1 = {
49
49
  /**
50
50
  * Value ячейки
51
51
  */
52
- value?: string;
52
+ value?: ReactNode;
53
53
  /**
54
54
  * Цвет value
55
55
  */
@@ -53,40 +53,41 @@ var Text = function (_a) {
53
53
  return (React__default['default'].createElement("div", { className: cn__default['default'](styles__default$2['default'].component, (_b = {},
54
54
  _b[styles__default$2['default'].vertical] = direction !== 'horizontal',
55
55
  _b)) },
56
- React__default['default'].createElement("span", { className: cn__default['default'](styles__default$2['default'].title) },
57
- React__default['default'].createElement(coreComponentsTypography.Typography.Text, { view: view, color: titleColor, className: cn__default['default'](rowLimit && styles__default$2['default']["rowLimit" + rowLimit], (_c = {},
58
- _c[styles__default$2['default'].rowLimit1] = !isMultiline,
59
- _c)), "data-test-id": getDataTestId.getDataTestId(dataTestId, 'text') }, children)),
60
- React__default['default'].createElement("span", null,
61
- React__default['default'].createElement(coreComponentsTypography.Typography.Text, { view: view, color: valueColor, className: cn__default['default']((_d = {},
62
- _d[styles__default$2['default']["rowLimit" + rowLimit]] = rowLimit,
63
- _d[styles__default$2['default'].multiline] = isMultiline,
64
- _d)), "data-test-id": getDataTestId.getDataTestId(dataTestId, 'text') }, value))));
56
+ React__default['default'].createElement("span", { className: cn__default['default'](styles__default$2['default'].title) }, typeof children === 'string' ? (React__default['default'].createElement(coreComponentsTypography.Typography.Text, { view: view, color: titleColor, className: cn__default['default'](rowLimit && styles__default$2['default']["rowLimit" + rowLimit], (_c = {},
57
+ _c[styles__default$2['default'].rowLimit1] = !isMultiline,
58
+ _c)), "data-test-id": getDataTestId.getDataTestId(dataTestId, 'text') }, children)) : (children)),
59
+ React__default['default'].createElement("span", null, typeof value === 'string' ? (React__default['default'].createElement(coreComponentsTypography.Typography.Text, { view: view, color: valueColor, className: cn__default['default']((_d = {},
60
+ _d[styles__default$2['default']["rowLimit" + rowLimit]] = rowLimit,
61
+ _d[styles__default$2['default'].multiline] = isMultiline,
62
+ _d)), "data-test-id": getDataTestId.getDataTestId(dataTestId, 'text') }, value)) : (value))));
65
63
  };
66
64
 
67
65
  var PureCellContext = React__default['default'].createContext({});
68
66
  var PureCellComponent = React.forwardRef(function (_a, ref) {
69
67
  var _b, _c;
70
- 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 ? 'default' : _e, _f = _a.verticalPadding, verticalPadding = _f === void 0 ? 'none' : _f, _g = _a.direction, direction = _g === void 0 ? 'horizontal' : _g, restProps = components_footerButton_component.__rest(_a, ["className", "dataTestId", "onClick", "href", "tag", "children", "horizontalPadding", "verticalPadding", "direction"]);
68
+ 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 = components_footerButton_component.__rest(_a, ["className", "dataTestId", "onClick", "href", "tag", "children", "horizontalPadding", "verticalPadding", "direction"]);
71
69
  var cellRef = React.useRef(null);
72
70
  var focused = hooks.useFocus(cellRef, 'keyboard')[0];
73
71
  var addClasses = (_b = {},
74
72
  _b[styles__default$3['default'].component] = true,
75
73
  _b[styles__default$3['default'].focused] = focused,
76
74
  _b[styles__default$3['default'][direction]] = true,
75
+ _b[styles__default$3['default'].defaultPadding] = verticalPadding === 'default',
76
+ _b[styles__default$3['default'][verticalPadding]] = verticalPadding !== 'default',
77
+ _b[styles__default$3['default'][horizontalPadding]] = true,
77
78
  _b);
78
79
  if (href) {
79
80
  var target = restProps.target;
80
81
  // Для совместимости с react-router-dom, меняем href на to
81
82
  var hrefProps = (_c = {}, _c[typeof Component === 'string' ? 'href' : 'to'] = href, _c);
82
- return (React__default['default'].createElement(Component, components_footerButton_component.__assign({ rel: target === '_blank' ? 'noreferrer noopener' : undefined }, restProps, hrefProps, { ref: mergeRefs__default['default']([cellRef, ref]), className: cn__default['default'](styles__default$3['default'].link, addClasses, className, styles__default$3['default'][horizontalPadding], styles__default$3['default'][verticalPadding]), "data-test-id": dataTestId, onClick: onClick }),
83
+ return (React__default['default'].createElement(Component, components_footerButton_component.__assign({ rel: target === '_blank' ? 'noreferrer noopener' : undefined }, restProps, hrefProps, { ref: mergeRefs__default['default']([cellRef, ref]), className: cn__default['default'](styles__default$3['default'].link, addClasses, className), "data-test-id": dataTestId, onClick: onClick }),
83
84
  React__default['default'].createElement(PureCellContext.Provider, { value: { direction: direction } }, children)));
84
85
  }
85
86
  if (onClick) {
86
- return (React__default['default'].createElement(Component, components_footerButton_component.__assign({}, restProps, { ref: mergeRefs__default['default']([cellRef, ref]), className: cn__default['default'](styles__default$3['default'].button, addClasses, styles__default$3['default'][horizontalPadding], styles__default$3['default'][verticalPadding], className), "data-test-id": dataTestId, onClick: onClick }),
87
+ return (React__default['default'].createElement(Component, components_footerButton_component.__assign({}, restProps, { ref: mergeRefs__default['default']([cellRef, ref]), className: cn__default['default'](styles__default$3['default'].button, addClasses, className), "data-test-id": dataTestId, onClick: onClick }),
87
88
  React__default['default'].createElement(PureCellContext.Provider, { value: { direction: direction } }, children)));
88
89
  }
89
- return (React__default['default'].createElement(Component, { ref: ref, tabIndex: 0, className: cn__default['default'](addClasses, styles__default$3['default'][horizontalPadding], styles__default$3['default'][verticalPadding], className), "data-test-id": dataTestId },
90
+ return (React__default['default'].createElement(Component, { ref: ref, tabIndex: 0, className: cn__default['default'](addClasses, className), "data-test-id": dataTestId },
90
91
  React__default['default'].createElement(PureCellContext.Provider, { value: { direction: direction } }, children)));
91
92
  });
92
93
  /**
package/cssm/component.js CHANGED
@@ -21,7 +21,7 @@ require('./components/category/component.js');
21
21
  require('./components/comment/index.module.css');
22
22
  require('./components/comment/component.js');
23
23
  require('./components/content/index.module.css');
24
- var components_content_component = require('./component-1338a186.js');
24
+ var components_content_component = require('./component-f60efddd.js');
25
25
  require('./components/footer/index.module.css');
26
26
  require('./components/footer/component.js');
27
27
  require('@alfalab/core-components-button/cssm');
@@ -11,8 +11,7 @@
11
11
  }
12
12
  .component {
13
13
  display: flex;
14
- flex-direction: column;
15
- padding-left: var(--gap-m)
14
+ flex-direction: column
16
15
  }
17
16
  .component > * {
18
17
  justify-content: flex-end;
@@ -23,6 +22,9 @@
23
22
  .component.default {
24
23
  padding-left: var(--gap-m);
25
24
  }
25
+ .component.addonPadding {
26
+ padding-left: var(--gap-m);
27
+ }
26
28
  .component.center {
27
29
  align-self: center;
28
30
  }
@@ -21,7 +21,7 @@ require('../category/component.js');
21
21
  require('../comment/index.module.css');
22
22
  require('../comment/component.js');
23
23
  require('./index.module.css');
24
- var components_content_component = require('../../component-1338a186.js');
24
+ var components_content_component = require('../../component-f60efddd.js');
25
25
  require('../footer/index.module.css');
26
26
  require('../footer/component.js');
27
27
  require('@alfalab/core-components-button/cssm');
@@ -1 +1 @@
1
- export * from "../../component-1338a186";
1
+ export * from "../../component-f60efddd";
@@ -21,7 +21,7 @@ require('../category/component.js');
21
21
  require('../comment/index.module.css');
22
22
  require('../comment/component.js');
23
23
  require('./index.module.css');
24
- var components_content_component = require('../../component-1338a186.js');
24
+ var components_content_component = require('../../component-f60efddd.js');
25
25
  require('../footer/index.module.css');
26
26
  require('../footer/component.js');
27
27
  require('@alfalab/core-components-button/cssm');
@@ -21,7 +21,7 @@ require('../category/component.js');
21
21
  require('../comment/index.module.css');
22
22
  require('../comment/component.js');
23
23
  require('../content/index.module.css');
24
- var components_content_component = require('../../component-1338a186.js');
24
+ var components_content_component = require('../../component-f60efddd.js');
25
25
  require('../footer/index.module.css');
26
26
  require('../footer/component.js');
27
27
  require('@alfalab/core-components-button/cssm');
@@ -1 +1 @@
1
- export * from "../../component-1338a186";
1
+ export * from "../../component-f60efddd";
@@ -21,7 +21,7 @@ require('../category/component.js');
21
21
  require('../comment/index.module.css');
22
22
  require('../comment/component.js');
23
23
  require('../content/index.module.css');
24
- var components_content_component = require('../../component-1338a186.js');
24
+ var components_content_component = require('../../component-f60efddd.js');
25
25
  require('../footer/index.module.css');
26
26
  require('../footer/component.js');
27
27
  require('@alfalab/core-components-button/cssm');
@@ -21,7 +21,7 @@ require('../category/component.js');
21
21
  require('../comment/index.module.css');
22
22
  require('../comment/component.js');
23
23
  require('../content/index.module.css');
24
- var components_content_component = require('../../component-1338a186.js');
24
+ var components_content_component = require('../../component-f60efddd.js');
25
25
  require('../footer/index.module.css');
26
26
  require('../footer/component.js');
27
27
  require('@alfalab/core-components-button/cssm');
@@ -1 +1 @@
1
- export * from "../../component-1338a186";
1
+ export * from "../../component-f60efddd";
@@ -21,7 +21,7 @@ require('../category/component.js');
21
21
  require('../comment/index.module.css');
22
22
  require('../comment/component.js');
23
23
  require('../content/index.module.css');
24
- var components_content_component = require('../../component-1338a186.js');
24
+ var components_content_component = require('../../component-f60efddd.js');
25
25
  require('../footer/index.module.css');
26
26
  require('../footer/component.js');
27
27
  require('@alfalab/core-components-button/cssm');
package/cssm/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { PureCell } from "./component-7c76812e";
1
+ export { PureCell } from "./component-cf0927a9";
package/cssm/index.js CHANGED
@@ -21,7 +21,7 @@ require('./components/category/component.js');
21
21
  require('./components/comment/index.module.css');
22
22
  require('./components/comment/component.js');
23
23
  require('./components/content/index.module.css');
24
- var components_content_component = require('./component-1338a186.js');
24
+ var components_content_component = require('./component-f60efddd.js');
25
25
  require('./components/footer/index.module.css');
26
26
  require('./components/footer/component.js');
27
27
  require('@alfalab/core-components-button/cssm');
@@ -65,7 +65,7 @@
65
65
  .airy {
66
66
  padding: var(--gap-m) 0;
67
67
  }
68
- .default {
68
+ .defaultPadding {
69
69
  padding: var(--gap-s) 0;
70
70
  }
71
71
  .compact {
@@ -49,7 +49,7 @@ type Props$1 = {
49
49
  /**
50
50
  * Value ячейки
51
51
  */
52
- value?: string;
52
+ value?: ReactNode;
53
53
  /**
54
54
  * Цвет value
55
55
  */
@@ -1,9 +1,9 @@
1
- import { _ as __rest, a as __assign, F as FooterButton } from './component-274bb79c.js';
1
+ import { _ as __rest, a as __assign, F as FooterButton } from './component-d1a6702b.js';
2
2
  import React, { useContext, forwardRef, useRef } from 'react';
3
3
  import mergeRefs from 'react-merge-refs';
4
4
  import cn from 'classnames';
5
5
  import { useFocus } from '@alfalab/hooks';
6
- import { g as getDataTestId } from './getDataTestId-b29f8e58.js';
6
+ import { g as getDataTestId } from './getDataTestId-84bfcaab.js';
7
7
  import { Addon } from './components/addon/component.js';
8
8
  import { Typography } from '@alfalab/core-components-typography/esm';
9
9
  import { Amount } from './components/amount/component.js';
@@ -14,7 +14,7 @@ import { Footer } from './components/footer/component.js';
14
14
  import { FooterText } from './components/footer-text/component.js';
15
15
  import { Graphics } from './components/graphics/component.js';
16
16
 
17
- var styles = {"component":"pure-cell__component_hyir5","horizontal":"pure-cell__horizontal_hyir5"};
17
+ var styles = {"component":"pure-cell__component_klqs4","horizontal":"pure-cell__horizontal_klqs4"};
18
18
  require('./components/content/index.css')
19
19
 
20
20
  var Content = function (_a) {
@@ -24,7 +24,7 @@ var Content = function (_a) {
24
24
  return (React.createElement("section", { className: cn(styles.component, (_b = {}, _b[styles.horizontal] = direction === 'horizontal', _b)), "data-test-id": getDataTestId(dataTestId, 'content') }, children));
25
25
  };
26
26
 
27
- var styles$1 = {"component":"pure-cell__component_1nfpy","vertical":"pure-cell__vertical_1nfpy","reverse":"pure-cell__reverse_1nfpy"};
27
+ var styles$1 = {"component":"pure-cell__component_1q2xz","vertical":"pure-cell__vertical_1q2xz","reverse":"pure-cell__reverse_1q2xz"};
28
28
  require('./components/main/index.css')
29
29
 
30
30
  var Main = function (_a) {
@@ -36,7 +36,7 @@ var Main = function (_a) {
36
36
  _b)), "data-test-id": getDataTestId(dataTestId, 'main') }, children));
37
37
  };
38
38
 
39
- var styles$2 = {"horizontal":"pure-cell__horizontal_13qu2","rowLimit1":"pure-cell__rowLimit1_13qu2","rowLimit2":"pure-cell__rowLimit2_13qu2","component":"pure-cell__component_13qu2","multiline":"pure-cell__multiline_13qu2","vertical":"pure-cell__vertical_13qu2","title":"pure-cell__title_13qu2"};
39
+ var styles$2 = {"horizontal":"pure-cell__horizontal_1dq04","rowLimit1":"pure-cell__rowLimit1_1dq04","rowLimit2":"pure-cell__rowLimit2_1dq04","component":"pure-cell__component_1dq04","multiline":"pure-cell__multiline_1dq04","vertical":"pure-cell__vertical_1dq04","title":"pure-cell__title_1dq04"};
40
40
  require('./components/text/index.css')
41
41
 
42
42
  var Text = function (_a) {
@@ -46,43 +46,44 @@ var Text = function (_a) {
46
46
  return (React.createElement("div", { className: cn(styles$2.component, (_b = {},
47
47
  _b[styles$2.vertical] = direction !== 'horizontal',
48
48
  _b)) },
49
- React.createElement("span", { className: cn(styles$2.title) },
50
- React.createElement(Typography.Text, { view: view, color: titleColor, className: cn(rowLimit && styles$2["rowLimit" + rowLimit], (_c = {},
51
- _c[styles$2.rowLimit1] = !isMultiline,
52
- _c)), "data-test-id": getDataTestId(dataTestId, 'text') }, children)),
53
- React.createElement("span", null,
54
- React.createElement(Typography.Text, { view: view, color: valueColor, className: cn((_d = {},
55
- _d[styles$2["rowLimit" + rowLimit]] = rowLimit,
56
- _d[styles$2.multiline] = isMultiline,
57
- _d)), "data-test-id": getDataTestId(dataTestId, 'text') }, value))));
49
+ React.createElement("span", { className: cn(styles$2.title) }, typeof children === 'string' ? (React.createElement(Typography.Text, { view: view, color: titleColor, className: cn(rowLimit && styles$2["rowLimit" + rowLimit], (_c = {},
50
+ _c[styles$2.rowLimit1] = !isMultiline,
51
+ _c)), "data-test-id": getDataTestId(dataTestId, 'text') }, children)) : (children)),
52
+ React.createElement("span", null, typeof value === 'string' ? (React.createElement(Typography.Text, { view: view, color: valueColor, className: cn((_d = {},
53
+ _d[styles$2["rowLimit" + rowLimit]] = rowLimit,
54
+ _d[styles$2.multiline] = isMultiline,
55
+ _d)), "data-test-id": getDataTestId(dataTestId, 'text') }, value)) : (value))));
58
56
  };
59
57
 
60
- var styles$3 = {"component":"pure-cell__component_jje0b","horizontal":"pure-cell__horizontal_jje0b","vertical":"pure-cell__vertical_jje0b","button":"pure-cell__button_jje0b","link":"pure-cell__link_jje0b","none":"pure-cell__none_jje0b","airy":"pure-cell__airy_jje0b","default":"pure-cell__default_jje0b","compact":"pure-cell__compact_jje0b","tiny":"pure-cell__tiny_jje0b","left":"pure-cell__left_jje0b","right":"pure-cell__right_jje0b","both":"pure-cell__both_jje0b","focused":"pure-cell__focused_jje0b"};
58
+ var styles$3 = {"component":"pure-cell__component_iwfp2","horizontal":"pure-cell__horizontal_iwfp2","vertical":"pure-cell__vertical_iwfp2","button":"pure-cell__button_iwfp2","link":"pure-cell__link_iwfp2","none":"pure-cell__none_iwfp2","airy":"pure-cell__airy_iwfp2","defaultPadding":"pure-cell__defaultPadding_iwfp2","compact":"pure-cell__compact_iwfp2","tiny":"pure-cell__tiny_iwfp2","left":"pure-cell__left_iwfp2","right":"pure-cell__right_iwfp2","both":"pure-cell__both_iwfp2","focused":"pure-cell__focused_iwfp2"};
61
59
  require('./index.css')
62
60
 
63
61
  var PureCellContext = React.createContext({});
64
62
  var PureCellComponent = forwardRef(function (_a, ref) {
65
63
  var _b, _c;
66
- 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 ? 'default' : _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"]);
64
+ 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"]);
67
65
  var cellRef = useRef(null);
68
66
  var focused = useFocus(cellRef, 'keyboard')[0];
69
67
  var addClasses = (_b = {},
70
68
  _b[styles$3.component] = true,
71
69
  _b[styles$3.focused] = focused,
72
70
  _b[styles$3[direction]] = true,
71
+ _b[styles$3.defaultPadding] = verticalPadding === 'default',
72
+ _b[styles$3[verticalPadding]] = verticalPadding !== 'default',
73
+ _b[styles$3[horizontalPadding]] = true,
73
74
  _b);
74
75
  if (href) {
75
76
  var target = restProps.target;
76
77
  // Для совместимости с react-router-dom, меняем href на to
77
78
  var hrefProps = (_c = {}, _c[typeof Component === 'string' ? 'href' : 'to'] = href, _c);
78
- return (React.createElement(Component, __assign({ rel: target === '_blank' ? 'noreferrer noopener' : undefined }, restProps, hrefProps, { ref: mergeRefs([cellRef, ref]), className: cn(styles$3.link, addClasses, className, styles$3[horizontalPadding], styles$3[verticalPadding]), "data-test-id": dataTestId, onClick: onClick }),
79
+ return (React.createElement(Component, __assign({ rel: target === '_blank' ? 'noreferrer noopener' : undefined }, restProps, hrefProps, { ref: mergeRefs([cellRef, ref]), className: cn(styles$3.link, addClasses, className), "data-test-id": dataTestId, onClick: onClick }),
79
80
  React.createElement(PureCellContext.Provider, { value: { direction: direction } }, children)));
80
81
  }
81
82
  if (onClick) {
82
- return (React.createElement(Component, __assign({}, restProps, { ref: mergeRefs([cellRef, ref]), className: cn(styles$3.button, addClasses, styles$3[horizontalPadding], styles$3[verticalPadding], className), "data-test-id": dataTestId, onClick: onClick }),
83
+ return (React.createElement(Component, __assign({}, restProps, { ref: mergeRefs([cellRef, ref]), className: cn(styles$3.button, addClasses, className), "data-test-id": dataTestId, onClick: onClick }),
83
84
  React.createElement(PureCellContext.Provider, { value: { direction: direction } }, children)));
84
85
  }
85
- return (React.createElement(Component, { ref: ref, tabIndex: 0, className: cn(addClasses, styles$3[horizontalPadding], styles$3[verticalPadding], className), "data-test-id": dataTestId },
86
+ return (React.createElement(Component, { ref: ref, tabIndex: 0, className: cn(addClasses, className), "data-test-id": dataTestId },
86
87
  React.createElement(PureCellContext.Provider, { value: { direction: direction } }, children)));
87
88
  });
88
89
  /**
@@ -65,7 +65,7 @@ declare const PureCell: React.ForwardRefExoticComponent<(Partial<AnchorPureCellP
65
65
  isMultiline?: boolean | undefined;
66
66
  view: "primary-small" | "component";
67
67
  titleColor: "link" | "primary" | "secondary" | "tertiary" | "disabled" | "accent" | "attention" | "positive" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "negative";
68
- value?: string | undefined;
68
+ value?: React.ReactNode;
69
69
  valueColor?: "link" | "primary" | "secondary" | "tertiary" | "disabled" | "accent" | "attention" | "positive" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "negative" | undefined;
70
70
  dataTestId?: string | undefined;
71
71
  children?: React.ReactNode;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { g as getDataTestId } from './getDataTestId-b29f8e58.js';
2
+ import { g as getDataTestId } from './getDataTestId-84bfcaab.js';
3
3
  import { Button } from '@alfalab/core-components-button/esm';
4
4
 
5
5
  /*! *****************************************************************************
@@ -41,7 +41,7 @@ function __rest(s, e) {
41
41
  return t;
42
42
  }
43
43
 
44
- var styles = {"component":"pure-cell__component_xyvfb"};
44
+ var styles = {"component":"pure-cell__component_16cjz"};
45
45
  require('./components/footer-button/index.css')
46
46
 
47
47
  var FooterButton = function (_a) {