@alfalab/core-components-pure-cell 3.0.3 → 4.0.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 (187) hide show
  1. package/component-3f45f3c4.d.ts +5 -7
  2. package/{component-7b340665.d.ts → component-e81848a4.d.ts} +0 -0
  3. package/{component-7b340665.js → component-e81848a4.js} +11 -10
  4. package/component.js +4 -3
  5. package/components/addon/component.d.ts +1 -1
  6. package/components/addon/component.js +4 -7
  7. package/components/addon/index.css +15 -8
  8. package/components/addon/index.js +1 -1
  9. package/components/amount/component.d.ts +2 -6
  10. package/components/amount/component.js +6 -6
  11. package/components/amount/index.css +2 -2
  12. package/components/amount/index.js +2 -1
  13. package/components/amount-title/component.d.ts +1 -9
  14. package/components/amount-title/component.js +5 -5
  15. package/components/amount-title/index.css +3 -3
  16. package/components/amount-title/index.js +2 -1
  17. package/components/category/component.d.ts +5 -0
  18. package/components/category/component.js +5 -4
  19. package/components/category/index.css +8 -4
  20. package/components/category/index.js +1 -1
  21. package/components/content/component.js +4 -3
  22. package/components/content/index.css +3 -3
  23. package/components/content/index.d.ts +1 -1
  24. package/components/content/index.js +4 -3
  25. package/components/footer/component.js +2 -2
  26. package/components/footer/index.css +4 -4
  27. package/components/footer/index.js +1 -1
  28. package/components/footer-button/component.d.ts +5 -0
  29. package/components/footer-button/component.js +15 -5
  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 +3 -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 +4 -3
  39. package/components/main/index.css +4 -4
  40. package/components/main/index.d.ts +1 -1
  41. package/components/main/index.js +4 -3
  42. package/components/text/component.js +4 -3
  43. package/components/text/index.css +10 -8
  44. package/components/text/index.d.ts +1 -1
  45. package/components/text/index.js +4 -3
  46. package/components/typesProps.d.ts +2 -2
  47. package/cssm/{component-d3306cf3.d.ts → component-0839382a.d.ts} +0 -0
  48. package/cssm/{component-d3306cf3.js → component-0839382a.js} +6 -5
  49. package/cssm/component-3f45f3c4.d.ts +11 -13
  50. package/cssm/component.js +3 -2
  51. package/cssm/components/addon/component.d.ts +1 -1
  52. package/cssm/components/addon/component.js +2 -5
  53. package/cssm/components/addon/index.module.css +8 -1
  54. package/cssm/components/amount/component.d.ts +2 -6
  55. package/cssm/components/amount/component.js +4 -4
  56. package/cssm/components/amount/index.js +1 -0
  57. package/cssm/components/amount-title/component.d.ts +1 -9
  58. package/cssm/components/amount-title/component.js +3 -3
  59. package/cssm/components/amount-title/index.js +1 -0
  60. package/cssm/components/category/component.d.ts +5 -0
  61. package/cssm/components/category/component.js +3 -2
  62. package/cssm/components/category/index.module.css +4 -0
  63. package/cssm/components/content/component.js +3 -2
  64. package/cssm/components/content/index.d.ts +1 -1
  65. package/cssm/components/content/index.js +3 -2
  66. package/cssm/components/footer-button/component.d.ts +5 -0
  67. package/cssm/components/footer-button/component.js +14 -6
  68. package/cssm/components/footer-button/index.d.ts +1 -1
  69. package/cssm/components/footer-button/index.js +2 -1
  70. package/cssm/components/main/component.js +3 -2
  71. package/cssm/components/main/index.d.ts +1 -1
  72. package/cssm/components/main/index.js +3 -2
  73. package/cssm/components/text/component.js +3 -2
  74. package/cssm/components/text/index.d.ts +1 -1
  75. package/cssm/components/text/index.js +3 -2
  76. package/cssm/components/text/index.module.css +4 -2
  77. package/cssm/components/typesProps.d.ts +2 -2
  78. package/cssm/index.js +3 -2
  79. package/{esm/component-ef452835.d.ts → cssm/tslib.es6-ce870b46.d.ts} +1 -5
  80. package/{component-80973026.js → cssm/tslib.es6-ce870b46.js} +0 -17
  81. package/esm/component-3f45f3c4.d.ts +5 -7
  82. package/esm/{component-922dd03a.d.ts → component-92010732.d.ts} +0 -0
  83. package/esm/{component-922dd03a.js → component-92010732.js} +8 -7
  84. package/esm/component.js +4 -3
  85. package/esm/components/addon/component.d.ts +1 -1
  86. package/esm/components/addon/component.js +4 -7
  87. package/esm/components/addon/index.css +15 -8
  88. package/esm/components/addon/index.js +1 -1
  89. package/esm/components/amount/component.d.ts +2 -6
  90. package/esm/components/amount/component.js +6 -6
  91. package/esm/components/amount/index.css +2 -2
  92. package/esm/components/amount/index.js +2 -1
  93. package/esm/components/amount-title/component.d.ts +1 -9
  94. package/esm/components/amount-title/component.js +5 -5
  95. package/esm/components/amount-title/index.css +3 -3
  96. package/esm/components/amount-title/index.js +2 -1
  97. package/esm/components/category/component.d.ts +5 -0
  98. package/esm/components/category/component.js +5 -4
  99. package/esm/components/category/index.css +8 -4
  100. package/esm/components/category/index.js +1 -1
  101. package/esm/components/content/component.js +4 -3
  102. package/esm/components/content/index.css +3 -3
  103. package/esm/components/content/index.d.ts +1 -1
  104. package/esm/components/content/index.js +4 -3
  105. package/esm/components/footer/component.js +2 -2
  106. package/esm/components/footer/index.css +4 -4
  107. package/esm/components/footer/index.js +1 -1
  108. package/esm/components/footer-button/component.d.ts +5 -0
  109. package/esm/components/footer-button/component.js +14 -4
  110. package/esm/components/footer-button/index.css +2 -2
  111. package/esm/components/footer-button/index.d.ts +1 -1
  112. package/esm/components/footer-button/index.js +3 -2
  113. package/esm/components/footer-text/component.js +1 -1
  114. package/esm/components/footer-text/index.js +1 -1
  115. package/esm/components/graphics/component.js +2 -2
  116. package/esm/components/graphics/index.css +2 -2
  117. package/esm/components/graphics/index.js +1 -1
  118. package/esm/components/main/component.js +4 -3
  119. package/esm/components/main/index.css +4 -4
  120. package/esm/components/main/index.d.ts +1 -1
  121. package/esm/components/main/index.js +4 -3
  122. package/esm/components/text/component.js +4 -3
  123. package/esm/components/text/index.css +10 -8
  124. package/esm/components/text/index.d.ts +1 -1
  125. package/esm/components/text/index.js +4 -3
  126. package/esm/components/typesProps.d.ts +2 -2
  127. package/esm/{getDataTestId-181163b5.d.ts → getDataTestId-a5ad08de.d.ts} +0 -0
  128. package/esm/{getDataTestId-181163b5.js → getDataTestId-a5ad08de.js} +0 -0
  129. package/esm/index.css +19 -19
  130. package/esm/index.js +4 -3
  131. package/{cssm/component-22ece846.d.ts → esm/tslib.es6-1c2475cc.d.ts} +1 -5
  132. package/esm/{component-ef452835.js → tslib.es6-1c2475cc.js} +1 -13
  133. package/{getDataTestId-3a7e2404.d.ts → getDataTestId-874edbee.d.ts} +0 -0
  134. package/{getDataTestId-3a7e2404.js → getDataTestId-874edbee.js} +0 -0
  135. package/index.css +19 -19
  136. package/index.js +4 -3
  137. package/modern/{component-99f95ea2.d.ts → component-0aebd563.d.ts} +0 -0
  138. package/modern/{component-99f95ea2.js → component-0aebd563.js} +6 -6
  139. package/modern/component-3f45f3c4.d.ts +5 -7
  140. package/modern/component.js +2 -2
  141. package/modern/components/addon/component.d.ts +1 -1
  142. package/modern/components/addon/component.js +3 -5
  143. package/modern/components/addon/index.css +15 -8
  144. package/modern/components/addon/index.js +1 -1
  145. package/modern/components/amount/component.d.ts +2 -6
  146. package/modern/components/amount/component.js +5 -6
  147. package/modern/components/amount/index.css +2 -2
  148. package/modern/components/amount/index.js +1 -1
  149. package/modern/components/amount-title/component.d.ts +1 -9
  150. package/modern/components/amount-title/component.js +4 -5
  151. package/modern/components/amount-title/index.css +3 -3
  152. package/modern/components/amount-title/index.js +1 -1
  153. package/modern/components/category/component.d.ts +5 -0
  154. package/modern/components/category/component.js +5 -4
  155. package/modern/components/category/index.css +8 -4
  156. package/modern/components/category/index.js +1 -1
  157. package/modern/components/content/component.js +2 -2
  158. package/modern/components/content/index.css +3 -3
  159. package/modern/components/content/index.d.ts +1 -1
  160. package/modern/components/content/index.js +2 -2
  161. package/modern/components/footer/component.js +2 -2
  162. package/modern/components/footer/index.css +4 -4
  163. package/modern/components/footer/index.js +1 -1
  164. package/modern/components/footer-button/component.js +2 -2
  165. package/modern/components/footer-button/index.css +2 -2
  166. package/modern/components/footer-button/index.js +1 -1
  167. package/modern/components/footer-text/component.js +1 -1
  168. package/modern/components/footer-text/index.js +1 -1
  169. package/modern/components/graphics/component.js +2 -2
  170. package/modern/components/graphics/index.css +2 -2
  171. package/modern/components/graphics/index.js +1 -1
  172. package/modern/components/main/component.js +2 -2
  173. package/modern/components/main/index.css +4 -4
  174. package/modern/components/main/index.d.ts +1 -1
  175. package/modern/components/main/index.js +2 -2
  176. package/modern/components/text/component.js +2 -2
  177. package/modern/components/text/index.css +10 -8
  178. package/modern/components/text/index.d.ts +1 -1
  179. package/modern/components/text/index.js +2 -2
  180. package/modern/components/typesProps.d.ts +2 -2
  181. package/modern/{getDataTestId-60d7e355.d.ts → getDataTestId-997a290e.d.ts} +0 -0
  182. package/modern/{getDataTestId-60d7e355.js → getDataTestId-997a290e.js} +0 -0
  183. package/modern/index.css +19 -19
  184. package/modern/index.js +2 -2
  185. package/package.json +2 -2
  186. package/{component-80973026.d.ts → tslib.es6-37028810.d.ts} +1 -5
  187. package/{cssm/component-22ece846.js → tslib.es6-37028810.js} +0 -16
@@ -1,4 +1,4 @@
1
- /* hash: 146m6 */
1
+ /* hash: 1ou1d */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -7,9 +7,9 @@
7
7
 
8
8
  /* Hard up */
9
9
  }
10
- .pure-cell__component_k73fl {
10
+ .pure-cell__component_18dk0 {
11
11
  display: flex;
12
12
  }
13
- .pure-cell__weight_k73fl {
13
+ .pure-cell__weight_18dk0 {
14
14
  font-weight: inherit;
15
15
  }
@@ -1,6 +1,6 @@
1
1
  import 'react';
2
2
  import 'classnames';
3
- import '../../getDataTestId-60d7e355.js';
3
+ import '../../getDataTestId-997a290e.js';
4
4
  import '@alfalab/core-components-typography/modern';
5
5
  import '@alfalab/core-components-amount/modern';
6
6
  export { AmountTitle } from './component.js';
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
+ import { ReactNode } from "react";
3
4
  type Props = {
4
5
  /**
5
6
  * Наименование категории
@@ -9,6 +10,10 @@ type Props = {
9
10
  * Процент категории
10
11
  */
11
12
  categoryPercent?: number;
13
+ /**
14
+ * Слот справа
15
+ */
16
+ rightAddons?: ReactNode;
12
17
  /**
13
18
  * Идентификатор для систем автоматизированного тестирования
14
19
  */
@@ -1,14 +1,15 @@
1
1
  import React from 'react';
2
- import { g as getDataTestId } from '../../getDataTestId-60d7e355.js';
2
+ import { g as getDataTestId } from '../../getDataTestId-997a290e.js';
3
3
  import { Typography } from '@alfalab/core-components-typography/modern';
4
4
 
5
- var styles = {"component":"pure-cell__component_1yxco","categoryName":"pure-cell__categoryName_1yxco","categoryPercent":"pure-cell__categoryPercent_1yxco"};
5
+ var styles = {"component":"pure-cell__component_zpzi0","categoryName":"pure-cell__categoryName_zpzi0","categoryPercent":"pure-cell__categoryPercent_zpzi0","rightAddon":"pure-cell__rightAddon_zpzi0"};
6
6
  require('./index.css')
7
7
 
8
- const Category = ({ categoryName, categoryPercent, dataTestId }) => (React.createElement("div", { className: styles.component, "data-test-id": 'cell-pure-category' },
8
+ const Category = ({ categoryName, categoryPercent, rightAddons, dataTestId, }) => (React.createElement("div", { className: styles.component, "data-test-id": 'cell-pure-category' },
9
9
  React.createElement(Typography.Text, { view: 'primary-small', color: 'secondary', dataTestId: getDataTestId(dataTestId, 'category-name'), className: styles.categoryName }, categoryName),
10
10
  categoryPercent !== undefined && (React.createElement(Typography.Text, { tag: 'div', view: 'primary-small', color: 'secondary', className: styles.categoryPercent, dataTestId: getDataTestId(dataTestId, 'category-percent') },
11
11
  categoryPercent,
12
- "%"))));
12
+ "%")),
13
+ rightAddons !== undefined && (React.createElement("div", { className: styles.rightAddon, "data-test-id": getDataTestId(dataTestId, 'category-right-addon') }, rightAddons))));
13
14
 
14
15
  export { Category };
@@ -1,4 +1,4 @@
1
- /* hash: jul6s */
1
+ /* hash: 1mf1c */
2
2
  :root {
3
3
  --color-light-bg-secondary: #f3f4f5;
4
4
  }
@@ -18,20 +18,24 @@
18
18
  :root {
19
19
  --border-radius-xl: 16px;
20
20
  }
21
- .pure-cell__component_1yxco {
21
+ .pure-cell__component_zpzi0 {
22
22
  display: flex;
23
23
  overflow: hidden;
24
24
  padding: var(--gap-3xs) 0;
25
25
  }
26
- .pure-cell__categoryName_1yxco {
26
+ .pure-cell__categoryName_zpzi0 {
27
27
  display: -webkit-box;
28
28
  -webkit-line-clamp: 1;
29
29
  -webkit-box-orient: vertical;
30
30
  overflow: hidden;
31
+ word-break: break-all;
31
32
  }
32
- .pure-cell__categoryPercent_1yxco {
33
+ .pure-cell__categoryPercent_zpzi0 {
33
34
  padding: 0 var(--gap-xs);
34
35
  background-color: var(--color-light-bg-secondary);
35
36
  border-radius: var(--border-radius-xl);
36
37
  margin-left: var(--gap-2xs);
37
38
  }
39
+ .pure-cell__rightAddon_zpzi0 {
40
+ margin-left: var(--gap-2xs);
41
+ }
@@ -1,4 +1,4 @@
1
1
  import 'react';
2
- import '../../getDataTestId-60d7e355.js';
2
+ import '../../getDataTestId-997a290e.js';
3
3
  import '@alfalab/core-components-typography/modern';
4
4
  export { Category } from './component.js';
@@ -3,14 +3,14 @@ import 'react-merge-refs';
3
3
  import 'classnames';
4
4
  import '@alfalab/hooks';
5
5
  import '@alfalab/core-components-comment/modern';
6
- import '../../getDataTestId-60d7e355.js';
6
+ import '../../getDataTestId-997a290e.js';
7
7
  import '../addon/component.js';
8
8
  import '@alfalab/core-components-typography/modern';
9
9
  import '@alfalab/core-components-amount/modern';
10
10
  import '../amount/component.js';
11
11
  import '../amount-title/component.js';
12
12
  import '../category/component.js';
13
- export { C as Content } from '../../component-99f95ea2.js';
13
+ export { C as Content } from '../../component-0aebd563.js';
14
14
  import '../footer/component.js';
15
15
  import '@alfalab/core-components-button/modern';
16
16
  import '../footer-button/component.js';
@@ -1,4 +1,4 @@
1
- /* hash: 14lhc */
1
+ /* hash: 2117i */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -7,12 +7,12 @@
7
7
 
8
8
  /* Hard up */
9
9
  }
10
- .pure-cell__component_swkbf {
10
+ .pure-cell__component_1s3xh {
11
11
  flex-basis: 100%;
12
12
  display: grid;
13
13
  grid-template-columns: 1fr auto
14
14
  }
15
- .pure-cell__component_swkbf.pure-cell__horizontal_swkbf {
15
+ .pure-cell__component_1s3xh.pure-cell__horizontal_1s3xh {
16
16
  /* for button */
17
17
  align-self: stretch;
18
18
  }
@@ -1 +1 @@
1
- export * from "../../component-99f95ea2";
1
+ export * from "../../component-0aebd563";
@@ -3,14 +3,14 @@ import 'react-merge-refs';
3
3
  import 'classnames';
4
4
  import '@alfalab/hooks';
5
5
  import '@alfalab/core-components-comment/modern';
6
- import '../../getDataTestId-60d7e355.js';
6
+ import '../../getDataTestId-997a290e.js';
7
7
  import '../addon/component.js';
8
8
  import '@alfalab/core-components-typography/modern';
9
9
  import '@alfalab/core-components-amount/modern';
10
10
  import '../amount/component.js';
11
11
  import '../amount-title/component.js';
12
12
  import '../category/component.js';
13
- export { C as Content } from '../../component-99f95ea2.js';
13
+ export { C as Content } from '../../component-0aebd563.js';
14
14
  import '../footer/component.js';
15
15
  import '@alfalab/core-components-button/modern';
16
16
  import '../footer-button/component.js';
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
- import { g as getDataTestId } from '../../getDataTestId-60d7e355.js';
3
+ import { g as getDataTestId } from '../../getDataTestId-997a290e.js';
4
4
 
5
- var styles = {"component":"pure-cell__component_werrj","none":"pure-cell__none_werrj","default":"pure-cell__default_werrj"};
5
+ var styles = {"component":"pure-cell__component_1kl8c","none":"pure-cell__none_1kl8c","default":"pure-cell__default_1kl8c"};
6
6
  require('./index.css')
7
7
 
8
8
  const Footer = ({ children, footerPadding = 'default', dataTestId }) => (React.createElement("footer", { className: cn(styles.component, styles[footerPadding]), "data-test-id": getDataTestId(dataTestId, 'footer') }, children));
@@ -1,4 +1,4 @@
1
- /* hash: 191gp */
1
+ /* hash: 1tovw */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -10,14 +10,14 @@
10
10
  :root {
11
11
  --gap-xs: 8px;
12
12
  }
13
- .pure-cell__component_werrj {
13
+ .pure-cell__component_1kl8c {
14
14
  grid-column: 1/3;
15
15
  display: grid;
16
16
  grid-row-gap: var(--gap-xs)
17
17
  }
18
- .pure-cell__component_werrj.pure-cell__none_werrj {
18
+ .pure-cell__component_1kl8c.pure-cell__none_1kl8c {
19
19
  margin-top: 0;
20
20
  }
21
- .pure-cell__component_werrj.pure-cell__default_werrj {
21
+ .pure-cell__component_1kl8c.pure-cell__default_1kl8c {
22
22
  margin-top: var(--gap-xs);
23
23
  }
@@ -1,4 +1,4 @@
1
1
  import 'react';
2
2
  import 'classnames';
3
- import '../../getDataTestId-60d7e355.js';
3
+ import '../../getDataTestId-997a290e.js';
4
4
  export { Footer } from './component.js';
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { g as getDataTestId } from '../../getDataTestId-60d7e355.js';
2
+ import { g as getDataTestId } from '../../getDataTestId-997a290e.js';
3
3
  import { Button } from '@alfalab/core-components-button/modern';
4
4
 
5
- var styles = {"component":"pure-cell__component_1cy0p"};
5
+ var styles = {"component":"pure-cell__component_ork4a"};
6
6
  require('./index.css')
7
7
 
8
8
  const FooterButton = ({ children, dataTestId, ...props }) => (React.createElement(Button, Object.assign({}, props, { size: 'xxs', dataTestId: getDataTestId(dataTestId, 'button'), className: styles.component }), children));
@@ -1,4 +1,4 @@
1
- /* hash: vjhl4 */
1
+ /* hash: 1suor */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -7,6 +7,6 @@
7
7
 
8
8
  /* Hard up */
9
9
  }
10
- .pure-cell__component_1cy0p {
10
+ .pure-cell__component_ork4a {
11
11
  justify-self: start;
12
12
  }
@@ -1,4 +1,4 @@
1
1
  import 'react';
2
- import '../../getDataTestId-60d7e355.js';
2
+ import '../../getDataTestId-997a290e.js';
3
3
  import '@alfalab/core-components-button/modern';
4
4
  export { FooterButton } from './component.js';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { g as getDataTestId } from '../../getDataTestId-60d7e355.js';
2
+ import { g as getDataTestId } from '../../getDataTestId-997a290e.js';
3
3
  import { Typography } from '@alfalab/core-components-typography/modern';
4
4
 
5
5
  const FooterText = ({ children, color = 'secondary', dataTestId }) => (React.createElement(Typography.Text, { view: 'primary-small', color: color, "data-test-id": getDataTestId(dataTestId, 'footer-title') }, children));
@@ -1,4 +1,4 @@
1
1
  import 'react';
2
- import '../../getDataTestId-60d7e355.js';
2
+ import '../../getDataTestId-997a290e.js';
3
3
  import '@alfalab/core-components-typography/modern';
4
4
  export { FooterText } from './component.js';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { g as getDataTestId } from '../../getDataTestId-60d7e355.js';
2
+ import { g as getDataTestId } from '../../getDataTestId-997a290e.js';
3
3
 
4
- var styles = {"component":"pure-cell__component_1fety"};
4
+ var styles = {"component":"pure-cell__component_111dx"};
5
5
  require('./index.css')
6
6
 
7
7
  const Graphics = ({ children, dataTestId }) => {
@@ -1,4 +1,4 @@
1
- /* hash: fwfso */
1
+ /* hash: dd73g */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -7,6 +7,6 @@
7
7
 
8
8
  /* Hard up */
9
9
  }
10
- .pure-cell__component_1fety {
10
+ .pure-cell__component_111dx {
11
11
  flex-basis: auto;
12
12
  }
@@ -1,3 +1,3 @@
1
1
  import 'react';
2
- import '../../getDataTestId-60d7e355.js';
2
+ import '../../getDataTestId-997a290e.js';
3
3
  export { Graphics } from './component.js';
@@ -3,14 +3,14 @@ import 'react-merge-refs';
3
3
  import 'classnames';
4
4
  import '@alfalab/hooks';
5
5
  import '@alfalab/core-components-comment/modern';
6
- import '../../getDataTestId-60d7e355.js';
6
+ import '../../getDataTestId-997a290e.js';
7
7
  import '../addon/component.js';
8
8
  import '@alfalab/core-components-typography/modern';
9
9
  import '@alfalab/core-components-amount/modern';
10
10
  import '../amount/component.js';
11
11
  import '../amount-title/component.js';
12
12
  import '../category/component.js';
13
- export { M as Main } from '../../component-99f95ea2.js';
13
+ export { M as Main } from '../../component-0aebd563.js';
14
14
  import '../footer/component.js';
15
15
  import '@alfalab/core-components-button/modern';
16
16
  import '../footer-button/component.js';
@@ -1,4 +1,4 @@
1
- /* hash: djirz */
1
+ /* hash: sxozn */
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_1iei5 {
13
+ .pure-cell__component_ikr9m {
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_1iei5.pure-cell__vertical_1iei5 {
21
+ .pure-cell__component_ikr9m.pure-cell__vertical_ikr9m {
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_1iei5.pure-cell__reverse_1iei5 {
29
+ .pure-cell__component_ikr9m.pure-cell__reverse_ikr9m {
30
30
  flex-direction: column-reverse;
31
31
  }
@@ -1 +1 @@
1
- export * from "../../component-99f95ea2";
1
+ export * from "../../component-0aebd563";
@@ -3,14 +3,14 @@ import 'react-merge-refs';
3
3
  import 'classnames';
4
4
  import '@alfalab/hooks';
5
5
  import '@alfalab/core-components-comment/modern';
6
- import '../../getDataTestId-60d7e355.js';
6
+ import '../../getDataTestId-997a290e.js';
7
7
  import '../addon/component.js';
8
8
  import '@alfalab/core-components-typography/modern';
9
9
  import '@alfalab/core-components-amount/modern';
10
10
  import '../amount/component.js';
11
11
  import '../amount-title/component.js';
12
12
  import '../category/component.js';
13
- export { M as Main } from '../../component-99f95ea2.js';
13
+ export { M as Main } from '../../component-0aebd563.js';
14
14
  import '../footer/component.js';
15
15
  import '@alfalab/core-components-button/modern';
16
16
  import '../footer-button/component.js';
@@ -3,14 +3,14 @@ import 'react-merge-refs';
3
3
  import 'classnames';
4
4
  import '@alfalab/hooks';
5
5
  import '@alfalab/core-components-comment/modern';
6
- import '../../getDataTestId-60d7e355.js';
6
+ import '../../getDataTestId-997a290e.js';
7
7
  import '../addon/component.js';
8
8
  import '@alfalab/core-components-typography/modern';
9
9
  import '@alfalab/core-components-amount/modern';
10
10
  import '../amount/component.js';
11
11
  import '../amount-title/component.js';
12
12
  import '../category/component.js';
13
- export { T as Text } from '../../component-99f95ea2.js';
13
+ export { T as Text } from '../../component-0aebd563.js';
14
14
  import '../footer/component.js';
15
15
  import '@alfalab/core-components-button/modern';
16
16
  import '../footer-button/component.js';
@@ -1,4 +1,4 @@
1
- /* hash: 1k4g6 */
1
+ /* hash: 5qrb6 */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -11,31 +11,33 @@
11
11
  --gap-3xs: 2px;
12
12
  --gap-m: 16px;
13
13
  }
14
- .pure-cell__horizontal_174je {
14
+ .pure-cell__horizontal_1vazz {
15
15
  padding: var(--gap-3xs) 0;
16
16
  }
17
- .pure-cell__rowLimit1_174je {
17
+ .pure-cell__rowLimit1_1vazz {
18
18
  display: -webkit-box;
19
19
  -webkit-line-clamp: 1;
20
20
  -webkit-box-orient: vertical;
21
21
  overflow: hidden;
22
+ word-break: break-all;
22
23
  }
23
- .pure-cell__rowLimit2_174je {
24
+ .pure-cell__rowLimit2_1vazz {
24
25
  display: -webkit-box;
25
26
  -webkit-line-clamp: 2;
26
27
  -webkit-box-orient: vertical;
27
28
  overflow: hidden;
28
29
  }
29
- .pure-cell__component_174je {
30
+ .pure-cell__component_1vazz {
30
31
  display: flex;
31
32
  flex-direction: row;
32
33
  flex-wrap: nowrap;
33
34
  justify-content: space-between;
34
35
  margin: var(--gap-3xs) 0;
35
36
  }
36
- .pure-cell__component_174je .pure-cell__vertical_174je {
37
+ .pure-cell__component_1vazz .pure-cell__vertical_1vazz {
37
38
  justify-content: center;
38
39
  }
39
- .pure-cell__title_174je {
40
- margin-right: var(--gap-m);
40
+ .pure-cell__title_1vazz + .pure-cell__value_1vazz {
41
+ margin-left: var(--gap-m);
42
+ flex-shrink: 0;
41
43
  }
@@ -1 +1 @@
1
- export * from "../../component-99f95ea2";
1
+ export * from "../../component-0aebd563";
@@ -3,14 +3,14 @@ import 'react-merge-refs';
3
3
  import 'classnames';
4
4
  import '@alfalab/hooks';
5
5
  import '@alfalab/core-components-comment/modern';
6
- import '../../getDataTestId-60d7e355.js';
6
+ import '../../getDataTestId-997a290e.js';
7
7
  import '../addon/component.js';
8
8
  import '@alfalab/core-components-typography/modern';
9
9
  import '@alfalab/core-components-amount/modern';
10
10
  import '../amount/component.js';
11
11
  import '../amount-title/component.js';
12
12
  import '../category/component.js';
13
- export { T as Text } from '../../component-99f95ea2.js';
13
+ export { T as Text } from '../../component-0aebd563.js';
14
14
  import '../footer/component.js';
15
15
  import '@alfalab/core-components-button/modern';
16
16
  import '../footer-button/component.js';
@@ -16,7 +16,7 @@ type AmountProps = {
16
16
  /**
17
17
  * Количество минорных единиц в валюте
18
18
  */
19
- minority: number;
19
+ minority?: number;
20
20
  /**
21
21
  * Делает минорную часть полупрозрачной
22
22
  */
@@ -24,7 +24,7 @@ type AmountProps = {
24
24
  /**
25
25
  * Количество минорных единиц в валюте для Клика
26
26
  */
27
- minorUnits: number;
27
+ minorUnits?: number;
28
28
  /**
29
29
  * default - не отображаем копейки, если их значение 0
30
30
  * withZeroMinorPart - отображаем копейки, даже если их значение равно 0
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1wugr */
1
+ /* hash: 1u4gi */
2
2
  :root {
3
3
  --color-light-border-link: #007aff;
4
4
  }
@@ -19,21 +19,21 @@
19
19
  :root {
20
20
  --focus-color: var(--color-light-border-link);
21
21
  }
22
- .pure-cell__component_1hstz {
22
+ .pure-cell__component_15qoi {
23
23
  text-align: unset;
24
24
  }
25
- .pure-cell__horizontal_1hstz {
25
+ .pure-cell__horizontal_15qoi {
26
26
  display: flex;
27
27
  width: 100%;
28
28
  grid-column-gap: var(--gap-m);
29
29
  }
30
- .pure-cell__vertical_1hstz {
30
+ .pure-cell__vertical_15qoi {
31
31
  display: flex;
32
32
  align-items: center;
33
33
  flex-direction: column;
34
34
  grid-row-gap: var(--gap-s);
35
35
  }
36
- .pure-cell__button_1hstz {
36
+ .pure-cell__button_15qoi {
37
37
  font-family: inherit;
38
38
  background: none;
39
39
  border: 0;
@@ -42,50 +42,50 @@
42
42
  transition: opacity 0.15s ease-in-out;
43
43
  padding: 0
44
44
  }
45
- .pure-cell__button_1hstz:hover {
45
+ .pure-cell__button_15qoi:hover {
46
46
  opacity: 0.8;
47
47
  }
48
- .pure-cell__button_1hstz:active {
48
+ .pure-cell__button_15qoi:active {
49
49
  opacity: 0.6;
50
50
  }
51
- .pure-cell__link_1hstz {
51
+ .pure-cell__link_15qoi {
52
52
  text-decoration: none;
53
53
  color: inherit;
54
54
  cursor: pointer;
55
55
  transition: opacity 0.15s ease-in-out
56
56
  }
57
- .pure-cell__link_1hstz:hover {
57
+ .pure-cell__link_15qoi:hover {
58
58
  opacity: 0.8;
59
59
  }
60
- .pure-cell__link_1hstz:active {
60
+ .pure-cell__link_15qoi:active {
61
61
  opacity: 0.6;
62
62
  }
63
- .pure-cell__none_1hstz {
63
+ .pure-cell__none_15qoi {
64
64
  padding: 0;
65
65
  }
66
- .pure-cell__airy_1hstz {
66
+ .pure-cell__airy_15qoi {
67
67
  padding: var(--gap-m) 0;
68
68
  }
69
- .pure-cell__defaultPadding_1hstz {
69
+ .pure-cell__defaultPadding_15qoi {
70
70
  padding: var(--gap-s) 0;
71
71
  }
72
- .pure-cell__compact_1hstz {
72
+ .pure-cell__compact_15qoi {
73
73
  padding: var(--gap-xs) 0;
74
74
  }
75
- .pure-cell__tiny_1hstz {
75
+ .pure-cell__tiny_15qoi {
76
76
  padding: var(--gap-2xs) 0;
77
77
  }
78
- .pure-cell__left_1hstz {
78
+ .pure-cell__left_15qoi {
79
79
  padding-left: var(--gap-m);
80
80
  }
81
- .pure-cell__right_1hstz {
81
+ .pure-cell__right_15qoi {
82
82
  padding-right: var(--gap-m);
83
83
  }
84
- .pure-cell__both_1hstz {
84
+ .pure-cell__both_15qoi {
85
85
  padding-right: var(--gap-m);
86
86
  padding-left: var(--gap-m);
87
87
  }
88
- .pure-cell__focused_1hstz {
88
+ .pure-cell__focused_15qoi {
89
89
  outline: 2px solid var(--focus-color);
90
90
  outline-offset: 2px;
91
91
  }
package/modern/index.js CHANGED
@@ -3,14 +3,14 @@ import 'react-merge-refs';
3
3
  import 'classnames';
4
4
  import '@alfalab/hooks';
5
5
  import '@alfalab/core-components-comment/modern';
6
- import './getDataTestId-60d7e355.js';
6
+ import './getDataTestId-997a290e.js';
7
7
  import './components/addon/component.js';
8
8
  import '@alfalab/core-components-typography/modern';
9
9
  import '@alfalab/core-components-amount/modern';
10
10
  import './components/amount/component.js';
11
11
  import './components/amount-title/component.js';
12
12
  import './components/category/component.js';
13
- export { P as PureCell } from './component-99f95ea2.js';
13
+ export { P as PureCell } from './component-0aebd563.js';
14
14
  import './components/footer/component.js';
15
15
  import '@alfalab/core-components-button/modern';
16
16
  import './components/footer-button/component.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-pure-cell",
3
- "version": "3.0.3",
3
+ "version": "4.0.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -21,7 +21,7 @@
21
21
  "@alfalab/core-components-amount": "^3.0.4",
22
22
  "@alfalab/core-components-button": "^6.1.2",
23
23
  "@alfalab/core-components-typography": "^3.0.2",
24
- "@alfalab/core-components-comment": "^2.0.2",
24
+ "@alfalab/core-components-comment": "^2.1.0",
25
25
  "@alfalab/hooks": "^1.4.1",
26
26
  "classnames": "^2.3.1",
27
27
  "react-merge-refs": "1.1.0"
@@ -1,6 +1,3 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { ButtonProps } from "@alfalab/core-components-button";
4
1
  declare function __extends(d: any, b: any): void;
5
2
  declare function __rest(s: any, e: any): {};
6
3
  declare function __decorate(decorators: any, target: any, key: any, desc: any, ...args: any[]): any;
@@ -32,5 +29,4 @@ declare function __classPrivateFieldGet(receiver: any, privateMap: any): any;
32
29
  declare function __classPrivateFieldSet(receiver: any, privateMap: any, value: any): any;
33
30
  declare function __assign(...args: any[]): any;
34
31
  declare function __createBinding(o: any, m: any, k: any, k2: any): void;
35
- declare const FooterButton: React.FC<ButtonProps>;
36
- export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __assign, __createBinding, FooterButton };
32
+ export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __assign, __createBinding };