@alfalab/core-components-pure-cell 4.5.1 → 4.6.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 (262) hide show
  1. package/component-8ae5e9f0.d.ts +211 -0
  2. package/component-8ae5e9f0.js +200 -0
  3. package/{modern/component-5a229016.d.ts → component-fd7196d2.d.ts} +1 -0
  4. package/component.js +3 -15
  5. package/components/addon/component.d.ts +0 -24
  6. package/components/addon/component.js +5 -15
  7. package/components/addon/index.css +10 -10
  8. package/components/addon/index.d.ts +1 -1
  9. package/components/addon/index.js +1 -4
  10. package/components/amount/component.d.ts +0 -25
  11. package/components/amount/component.js +8 -19
  12. package/components/amount/index.css +2 -2
  13. package/components/amount/index.d.ts +1 -1
  14. package/components/amount/index.js +2 -8
  15. package/components/amount-title/component.d.ts +0 -22
  16. package/components/amount-title/component.js +8 -20
  17. package/components/amount-title/index.css +3 -3
  18. package/components/amount-title/index.d.ts +1 -1
  19. package/components/amount-title/index.js +2 -8
  20. package/components/category/component.d.ts +0 -25
  21. package/components/category/component.js +5 -19
  22. package/components/category/index.css +5 -5
  23. package/components/category/index.d.ts +1 -1
  24. package/components/category/index.js +2 -5
  25. package/components/content/component.js +2 -17
  26. package/components/content/index.css +3 -3
  27. package/components/content/index.d.ts +1 -1
  28. package/components/content/index.js +2 -20
  29. package/components/footer/component.d.ts +0 -20
  30. package/components/footer/component.js +5 -15
  31. package/components/footer/index.css +4 -4
  32. package/components/footer/index.d.ts +1 -1
  33. package/components/footer/index.js +2 -5
  34. package/components/footer-button/component.d.ts +0 -14
  35. package/components/footer-button/component.js +6 -15
  36. package/components/footer-button/index.css +2 -2
  37. package/components/footer-button/index.d.ts +1 -1
  38. package/components/footer-button/index.js +2 -6
  39. package/components/footer-text/component.d.ts +0 -21
  40. package/components/footer-text/component.js +5 -11
  41. package/components/footer-text/index.d.ts +1 -1
  42. package/components/footer-text/index.js +2 -5
  43. package/components/graphics/component.d.ts +0 -20
  44. package/components/graphics/component.js +5 -15
  45. package/components/graphics/index.css +5 -5
  46. package/components/graphics/index.d.ts +1 -1
  47. package/components/graphics/index.js +2 -5
  48. package/components/main/component.js +2 -17
  49. package/components/main/index.css +4 -4
  50. package/components/main/index.d.ts +1 -1
  51. package/components/main/index.js +2 -20
  52. package/components/text/component.js +2 -16
  53. package/components/text/index.css +7 -7
  54. package/components/text/index.d.ts +1 -1
  55. package/components/text/index.js +2 -20
  56. package/cssm/component-4445c77d.d.ts +211 -0
  57. package/cssm/component-4445c77d.js +189 -0
  58. package/{esm/component-5a229016.d.ts → cssm/component-fd7196d2.d.ts} +1 -0
  59. package/cssm/component.js +3 -25
  60. package/cssm/components/addon/component.d.ts +0 -24
  61. package/cssm/components/addon/component.js +6 -14
  62. package/cssm/components/addon/index.d.ts +1 -1
  63. package/cssm/components/addon/index.js +1 -5
  64. package/cssm/components/amount/component.d.ts +0 -25
  65. package/cssm/components/amount/component.js +9 -18
  66. package/cssm/components/amount/index.d.ts +1 -1
  67. package/cssm/components/amount/index.js +2 -9
  68. package/cssm/components/amount-title/component.d.ts +0 -22
  69. package/cssm/components/amount-title/component.js +9 -19
  70. package/cssm/components/amount-title/index.d.ts +1 -1
  71. package/cssm/components/amount-title/index.js +2 -9
  72. package/cssm/components/category/component.d.ts +0 -25
  73. package/cssm/components/category/component.js +6 -18
  74. package/cssm/components/category/index.d.ts +1 -1
  75. package/cssm/components/category/index.js +2 -6
  76. package/cssm/components/content/component.js +2 -27
  77. package/cssm/components/content/index.d.ts +1 -1
  78. package/cssm/components/content/index.js +2 -31
  79. package/cssm/components/footer/component.d.ts +0 -20
  80. package/cssm/components/footer/component.js +6 -14
  81. package/cssm/components/footer/index.d.ts +1 -1
  82. package/cssm/components/footer/index.js +2 -6
  83. package/cssm/components/footer-button/component.d.ts +0 -14
  84. package/cssm/components/footer-button/component.js +7 -14
  85. package/cssm/components/footer-button/index.d.ts +1 -1
  86. package/cssm/components/footer-button/index.js +2 -7
  87. package/cssm/components/footer-text/component.d.ts +0 -21
  88. package/cssm/components/footer-text/component.js +5 -11
  89. package/cssm/components/footer-text/index.d.ts +1 -1
  90. package/cssm/components/footer-text/index.js +2 -5
  91. package/cssm/components/graphics/component.d.ts +0 -20
  92. package/cssm/components/graphics/component.js +6 -14
  93. package/cssm/components/graphics/index.d.ts +1 -1
  94. package/cssm/components/graphics/index.js +2 -6
  95. package/cssm/components/main/component.js +2 -27
  96. package/cssm/components/main/index.d.ts +1 -1
  97. package/cssm/components/main/index.js +2 -31
  98. package/cssm/components/text/component.js +2 -26
  99. package/cssm/components/text/index.d.ts +1 -1
  100. package/cssm/components/text/index.js +2 -31
  101. package/cssm/index.d.ts +1 -1
  102. package/cssm/index.js +2 -31
  103. package/cssm/shared/index.d.ts +1 -0
  104. package/cssm/shared/index.js +9 -0
  105. package/cssm/utils.d.ts +20 -0
  106. package/cssm/utils.js +29 -0
  107. package/esm/component-7bedc2d7.d.ts +211 -0
  108. package/esm/component-7bedc2d7.js +180 -0
  109. package/{component-5a229016.d.ts → esm/component-fd7196d2.d.ts} +1 -0
  110. package/esm/component.js +1 -13
  111. package/esm/components/addon/component.d.ts +0 -24
  112. package/esm/components/addon/component.js +4 -13
  113. package/esm/components/addon/index.css +10 -10
  114. package/esm/components/addon/index.d.ts +1 -1
  115. package/esm/components/addon/index.js +1 -4
  116. package/esm/components/amount/component.d.ts +0 -25
  117. package/esm/components/amount/component.js +7 -17
  118. package/esm/components/amount/index.css +2 -2
  119. package/esm/components/amount/index.d.ts +1 -1
  120. package/esm/components/amount/index.js +1 -7
  121. package/esm/components/amount-title/component.d.ts +0 -22
  122. package/esm/components/amount-title/component.js +7 -18
  123. package/esm/components/amount-title/index.css +3 -3
  124. package/esm/components/amount-title/index.d.ts +1 -1
  125. package/esm/components/amount-title/index.js +1 -7
  126. package/esm/components/category/component.d.ts +0 -25
  127. package/esm/components/category/component.js +4 -18
  128. package/esm/components/category/index.css +5 -5
  129. package/esm/components/category/index.d.ts +1 -1
  130. package/esm/components/category/index.js +1 -4
  131. package/esm/components/content/component.js +1 -16
  132. package/esm/components/content/index.css +3 -3
  133. package/esm/components/content/index.d.ts +1 -1
  134. package/esm/components/content/index.js +1 -19
  135. package/esm/components/footer/component.d.ts +0 -20
  136. package/esm/components/footer/component.js +4 -13
  137. package/esm/components/footer/index.css +4 -4
  138. package/esm/components/footer/index.d.ts +1 -1
  139. package/esm/components/footer/index.js +1 -4
  140. package/esm/components/footer-button/component.d.ts +0 -14
  141. package/esm/components/footer-button/component.js +5 -14
  142. package/esm/components/footer-button/index.css +2 -2
  143. package/esm/components/footer-button/index.d.ts +1 -1
  144. package/esm/components/footer-button/index.js +1 -5
  145. package/esm/components/footer-text/component.d.ts +0 -21
  146. package/esm/components/footer-text/component.js +4 -10
  147. package/esm/components/footer-text/index.d.ts +1 -1
  148. package/esm/components/footer-text/index.js +1 -4
  149. package/esm/components/graphics/component.d.ts +0 -20
  150. package/esm/components/graphics/component.js +4 -13
  151. package/esm/components/graphics/index.css +5 -5
  152. package/esm/components/graphics/index.d.ts +1 -1
  153. package/esm/components/graphics/index.js +1 -4
  154. package/esm/components/main/component.js +1 -16
  155. package/esm/components/main/index.css +4 -4
  156. package/esm/components/main/index.d.ts +1 -1
  157. package/esm/components/main/index.js +1 -19
  158. package/esm/components/text/component.js +1 -15
  159. package/esm/components/text/index.css +7 -7
  160. package/esm/components/text/index.d.ts +1 -1
  161. package/esm/components/text/index.js +1 -19
  162. package/esm/index.css +21 -21
  163. package/esm/index.d.ts +1 -1
  164. package/esm/index.js +1 -19
  165. package/esm/shared/index.d.ts +1 -0
  166. package/esm/shared/index.js +1 -0
  167. package/esm/utils.d.ts +20 -0
  168. package/esm/utils.js +25 -0
  169. package/index.css +21 -21
  170. package/index.d.ts +1 -1
  171. package/index.js +2 -20
  172. package/modern/component-edffa17d.d.ts +211 -0
  173. package/modern/component-edffa17d.js +169 -0
  174. package/{cssm/component-5a229016.d.ts → modern/component-fd7196d2.d.ts} +1 -0
  175. package/modern/component.js +1 -13
  176. package/modern/components/addon/component.d.ts +0 -24
  177. package/modern/components/addon/component.js +4 -10
  178. package/modern/components/addon/index.css +10 -10
  179. package/modern/components/addon/index.d.ts +1 -1
  180. package/modern/components/addon/index.js +1 -4
  181. package/modern/components/amount/component.d.ts +0 -25
  182. package/modern/components/amount/component.js +6 -13
  183. package/modern/components/amount/index.css +2 -2
  184. package/modern/components/amount/index.d.ts +1 -1
  185. package/modern/components/amount/index.js +1 -6
  186. package/modern/components/amount-title/component.d.ts +0 -22
  187. package/modern/components/amount-title/component.js +6 -21
  188. package/modern/components/amount-title/index.css +3 -3
  189. package/modern/components/amount-title/index.d.ts +1 -1
  190. package/modern/components/amount-title/index.js +1 -6
  191. package/modern/components/category/component.d.ts +0 -25
  192. package/modern/components/category/component.js +4 -15
  193. package/modern/components/category/index.css +5 -5
  194. package/modern/components/category/index.d.ts +1 -1
  195. package/modern/components/category/index.js +1 -4
  196. package/modern/components/content/component.js +1 -15
  197. package/modern/components/content/index.css +3 -3
  198. package/modern/components/content/index.d.ts +1 -1
  199. package/modern/components/content/index.js +1 -18
  200. package/modern/components/footer/component.d.ts +0 -20
  201. package/modern/components/footer/component.js +4 -10
  202. package/modern/components/footer/index.css +4 -4
  203. package/modern/components/footer/index.d.ts +1 -1
  204. package/modern/components/footer/index.js +1 -4
  205. package/modern/components/footer-button/component.d.ts +0 -14
  206. package/modern/components/footer-button/component.js +4 -10
  207. package/modern/components/footer-button/index.css +2 -2
  208. package/modern/components/footer-button/index.d.ts +1 -1
  209. package/modern/components/footer-button/index.js +1 -4
  210. package/modern/components/footer-text/component.d.ts +0 -21
  211. package/modern/components/footer-text/component.js +4 -7
  212. package/modern/components/footer-text/index.d.ts +1 -1
  213. package/modern/components/footer-text/index.js +1 -4
  214. package/modern/components/graphics/component.d.ts +0 -20
  215. package/modern/components/graphics/component.js +4 -10
  216. package/modern/components/graphics/index.css +5 -5
  217. package/modern/components/graphics/index.d.ts +1 -1
  218. package/modern/components/graphics/index.js +1 -4
  219. package/modern/components/main/component.js +1 -15
  220. package/modern/components/main/index.css +4 -4
  221. package/modern/components/main/index.d.ts +1 -1
  222. package/modern/components/main/index.js +1 -18
  223. package/modern/components/text/component.js +1 -14
  224. package/modern/components/text/index.css +7 -7
  225. package/modern/components/text/index.d.ts +1 -1
  226. package/modern/components/text/index.js +1 -18
  227. package/modern/index.css +21 -21
  228. package/modern/index.d.ts +1 -1
  229. package/modern/index.js +1 -18
  230. package/modern/shared/index.d.ts +1 -0
  231. package/modern/shared/index.js +1 -0
  232. package/modern/utils.d.ts +20 -0
  233. package/modern/utils.js +25 -0
  234. package/package.json +5 -5
  235. package/shared/index.d.ts +1 -0
  236. package/shared/index.js +9 -0
  237. package/shared/package.json +3 -0
  238. package/src/component.tsx +4 -3
  239. package/src/components/addon/component.tsx +14 -9
  240. package/src/components/amount/component.tsx +21 -16
  241. package/src/components/amount-title/component.tsx +9 -3
  242. package/src/components/category/component.tsx +42 -27
  243. package/src/components/content/component.tsx +2 -2
  244. package/src/components/footer/component.tsx +14 -9
  245. package/src/components/footer-button/component.tsx +18 -12
  246. package/src/components/footer-text/component.tsx +16 -10
  247. package/src/components/graphics/component.tsx +14 -9
  248. package/src/components/main/component.tsx +2 -2
  249. package/src/components/text/component.tsx +3 -3
  250. package/src/shared/index.ts +1 -0
  251. package/src/shared/package.json +3 -0
  252. package/src/utils.ts +23 -0
  253. package/utils.d.ts +20 -0
  254. package/utils.js +29 -0
  255. package/component-1cf5c515.d.ts +0 -74
  256. package/component-1cf5c515.js +0 -121
  257. package/cssm/component-3ca297e4.d.ts +0 -74
  258. package/cssm/component-3ca297e4.js +0 -117
  259. package/esm/component-674e9ea3.d.ts +0 -74
  260. package/esm/component-674e9ea3.js +0 -109
  261. package/modern/component-4d708178.d.ts +0 -74
  262. package/modern/component-4d708178.js +0 -101
@@ -1,18 +1 @@
1
- export { M as Main } from '../../component-4d708178.js';
2
- import 'react';
3
- import 'react-merge-refs';
4
- import 'classnames';
5
- import '@alfalab/core-components-comment/modern';
6
- import '@alfalab/hooks';
7
- import '../addon/component.js';
8
- import '@alfalab/core-components-shared/modern';
9
- import '../amount/component.js';
10
- import '@alfalab/core-components-amount/modern';
11
- import '@alfalab/core-components-typography/modern';
12
- import '../amount-title/component.js';
13
- import '../category/component.js';
14
- import '../footer/component.js';
15
- import '../footer-button/component.js';
16
- import '@alfalab/core-components-button/modern';
17
- import '../footer-text/component.js';
18
- import '../graphics/component.js';
1
+ export { M as Main } from '../../component-edffa17d.js';
@@ -2,17 +2,4 @@ import 'react';
2
2
  import 'classnames';
3
3
  import '@alfalab/core-components-shared/modern';
4
4
  import '@alfalab/core-components-typography/modern';
5
- export { T as Text } from '../../component-4d708178.js';
6
- import 'react-merge-refs';
7
- import '@alfalab/core-components-comment/modern';
8
- import '@alfalab/hooks';
9
- import '../addon/component.js';
10
- import '../amount/component.js';
11
- import '@alfalab/core-components-amount/modern';
12
- import '../amount-title/component.js';
13
- import '../category/component.js';
14
- import '../footer/component.js';
15
- import '../footer-button/component.js';
16
- import '@alfalab/core-components-button/modern';
17
- import '../footer-text/component.js';
18
- import '../graphics/component.js';
5
+ export { T as Text } from '../../component-edffa17d.js';
@@ -1,4 +1,4 @@
1
- /* hash: 58bwj */
1
+ /* hash: 10t9a */
2
2
  :root {
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 */
@@ -16,29 +16,29 @@
16
16
  --gap-m: 16px;
17
17
  } :root {
18
18
  } :root {
19
- } .pure-cell__horizontal_1sh7g {
19
+ } .pure-cell__horizontal_10ste {
20
20
  padding: var(--gap-3xs) 0;
21
- } .pure-cell__rowLimit1_1sh7g {
21
+ } .pure-cell__rowLimit1_10ste {
22
22
  -webkit-line-clamp: 1;
23
23
  display: -webkit-box;
24
24
  -webkit-box-orient: vertical;
25
25
  overflow: hidden;
26
26
  word-break: break-all;
27
- } .pure-cell__rowLimit2_1sh7g {
27
+ } .pure-cell__rowLimit2_10ste {
28
28
  -webkit-line-clamp: 2;
29
29
  display: -webkit-box;
30
30
  -webkit-box-orient: vertical;
31
31
  overflow: hidden;
32
- } .pure-cell__component_1sh7g {
32
+ } .pure-cell__component_10ste {
33
33
  display: flex;
34
34
  flex-direction: row;
35
35
  flex-wrap: nowrap;
36
36
  justify-content: space-between;
37
37
  margin: var(--gap-3xs) 0;
38
38
  word-break: break-word;
39
- } .pure-cell__component_1sh7g .pure-cell__vertical_1sh7g {
39
+ } .pure-cell__component_10ste .pure-cell__vertical_10ste {
40
40
  justify-content: center;
41
- } .pure-cell__title_1sh7g + .pure-cell__value_1sh7g {
41
+ } .pure-cell__title_10ste + .pure-cell__value_10ste {
42
42
  margin-left: var(--gap-m);
43
43
  flex-shrink: 0;
44
44
  }
@@ -1 +1 @@
1
- export * from "../../component-4d708178";
1
+ export * from "../../component-edffa17d";
@@ -1,18 +1 @@
1
- export { T as Text } from '../../component-4d708178.js';
2
- import 'react';
3
- import 'react-merge-refs';
4
- import 'classnames';
5
- import '@alfalab/core-components-comment/modern';
6
- import '@alfalab/hooks';
7
- import '../addon/component.js';
8
- import '@alfalab/core-components-shared/modern';
9
- import '../amount/component.js';
10
- import '@alfalab/core-components-amount/modern';
11
- import '@alfalab/core-components-typography/modern';
12
- import '../amount-title/component.js';
13
- import '../category/component.js';
14
- import '../footer/component.js';
15
- import '../footer-button/component.js';
16
- import '@alfalab/core-components-button/modern';
17
- import '../footer-text/component.js';
18
- import '../graphics/component.js';
1
+ export { T as Text } from '../../component-edffa17d.js';
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 2ks7t */
1
+ /* hash: 196m7 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-link: #2288fa; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -20,21 +20,21 @@
20
20
  } :root {
21
21
  } :root {
22
22
  --focus-color: var(--color-light-border-link);
23
- } .pure-cell__component_1va9u {
23
+ } .pure-cell__component_1q7ju {
24
24
  text-align: unset;
25
25
  box-sizing: border-box;
26
- } .pure-cell__horizontal_1va9u {
26
+ } .pure-cell__horizontal_1q7ju {
27
27
  display: flex;
28
28
  width: 100%
29
- } .pure-cell__horizontal_1va9u > section:not(:last-child) {
29
+ } .pure-cell__horizontal_1q7ju > section:not(:last-child) {
30
30
  margin-right: var(--gap-m);
31
- } .pure-cell__vertical_1va9u {
31
+ } .pure-cell__vertical_1q7ju {
32
32
  display: flex;
33
33
  align-items: center;
34
34
  flex-direction: column
35
- } .pure-cell__vertical_1va9u > section:not(:last-child) {
35
+ } .pure-cell__vertical_1q7ju > section:not(:last-child) {
36
36
  margin-bottom: var(--gap-s);
37
- } .pure-cell__button_1va9u {
37
+ } .pure-cell__button_1q7ju {
38
38
  font-family: inherit;
39
39
  background: none;
40
40
  border: 0;
@@ -42,37 +42,37 @@
42
42
  cursor: pointer;
43
43
  transition: opacity 0.15s ease-in-out;
44
44
  padding: 0
45
- } .pure-cell__button_1va9u:hover {
45
+ } .pure-cell__button_1q7ju:hover {
46
46
  opacity: 0.8;
47
- } .pure-cell__button_1va9u:active {
47
+ } .pure-cell__button_1q7ju:active {
48
48
  opacity: 0.6;
49
- } .pure-cell__link_1va9u {
49
+ } .pure-cell__link_1q7ju {
50
50
  text-decoration: none;
51
51
  color: inherit;
52
52
  cursor: pointer;
53
53
  transition: opacity 0.15s ease-in-out
54
- } .pure-cell__link_1va9u:hover {
54
+ } .pure-cell__link_1q7ju:hover {
55
55
  opacity: 0.8;
56
- } .pure-cell__link_1va9u:active {
56
+ } .pure-cell__link_1q7ju:active {
57
57
  opacity: 0.6;
58
- } .pure-cell__none_1va9u {
58
+ } .pure-cell__none_1q7ju {
59
59
  padding: 0;
60
- } .pure-cell__airy_1va9u {
60
+ } .pure-cell__airy_1q7ju {
61
61
  padding: var(--gap-m) 0;
62
- } .pure-cell__defaultPadding_1va9u {
62
+ } .pure-cell__defaultPadding_1q7ju {
63
63
  padding: var(--gap-s) 0;
64
- } .pure-cell__compact_1va9u {
64
+ } .pure-cell__compact_1q7ju {
65
65
  padding: var(--gap-xs) 0;
66
- } .pure-cell__tiny_1va9u {
66
+ } .pure-cell__tiny_1q7ju {
67
67
  padding: var(--gap-2xs) 0;
68
- } .pure-cell__left_1va9u {
68
+ } .pure-cell__left_1q7ju {
69
69
  padding-left: var(--gap-m);
70
- } .pure-cell__right_1va9u {
70
+ } .pure-cell__right_1q7ju {
71
71
  padding-right: var(--gap-m);
72
- } .pure-cell__both_1va9u {
72
+ } .pure-cell__both_1q7ju {
73
73
  padding-right: var(--gap-m);
74
74
  padding-left: var(--gap-m);
75
- } .pure-cell__focused_1va9u {
75
+ } .pure-cell__focused_1q7ju {
76
76
  outline: 2px solid var(--focus-color);
77
77
  outline-offset: 2px;
78
78
  }
package/modern/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { PureCell } from "./component-5a229016";
1
+ export { PureCell } from "./component-fd7196d2";
package/modern/index.js CHANGED
@@ -1,18 +1 @@
1
- export { P as PureCell } from './component-4d708178.js';
2
- import 'react';
3
- import 'react-merge-refs';
4
- import 'classnames';
5
- import '@alfalab/core-components-comment/modern';
6
- import '@alfalab/hooks';
7
- import './components/addon/component.js';
8
- import '@alfalab/core-components-shared/modern';
9
- import './components/amount/component.js';
10
- import '@alfalab/core-components-amount/modern';
11
- import '@alfalab/core-components-typography/modern';
12
- import './components/amount-title/component.js';
13
- import './components/category/component.js';
14
- import './components/footer/component.js';
15
- import './components/footer-button/component.js';
16
- import '@alfalab/core-components-button/modern';
17
- import './components/footer-text/component.js';
18
- import './components/graphics/component.js';
1
+ export { P as PureCell } from './component-edffa17d.js';
@@ -0,0 +1 @@
1
+ export { getPureCellTestIds } from "../utils";
@@ -0,0 +1 @@
1
+ export { getPureCellTestIds } from '../utils.js';
@@ -0,0 +1,20 @@
1
+ declare function getPureCellTestIds(dataTestId: string): {
2
+ pureCell: string;
3
+ addon: string;
4
+ amount: string;
5
+ amountText: string;
6
+ amountTitle: string;
7
+ coreAmountTitle: string;
8
+ categoryName: string;
9
+ categoryPercent: string;
10
+ categoryRightAddon: string;
11
+ content: string;
12
+ footer: string;
13
+ footerButton: string;
14
+ extraSubtitle: string;
15
+ graphics: string;
16
+ main: string;
17
+ textContent: string;
18
+ textValue: string;
19
+ };
20
+ export { getPureCellTestIds };
@@ -0,0 +1,25 @@
1
+ import { getDataTestId } from '@alfalab/core-components-shared/modern';
2
+
3
+ function getPureCellTestIds(dataTestId) {
4
+ return {
5
+ pureCell: dataTestId,
6
+ addon: getDataTestId(dataTestId, 'addon'),
7
+ amount: getDataTestId(dataTestId, 'amount'),
8
+ amountText: getDataTestId(dataTestId, 'amount-text'),
9
+ amountTitle: getDataTestId(dataTestId, 'amount-title'),
10
+ coreAmountTitle: getDataTestId(dataTestId, 'core-amount-title'),
11
+ categoryName: getDataTestId(dataTestId, 'category-name'),
12
+ categoryPercent: getDataTestId(dataTestId, 'category-percent'),
13
+ categoryRightAddon: getDataTestId(dataTestId, 'category-right-addon'),
14
+ content: getDataTestId(dataTestId, 'content'),
15
+ footer: getDataTestId(dataTestId, 'footer'),
16
+ footerButton: getDataTestId(dataTestId, 'button'),
17
+ extraSubtitle: getDataTestId(dataTestId, 'footer-title'),
18
+ graphics: getDataTestId(dataTestId, 'graphics'),
19
+ main: getDataTestId(dataTestId, 'main'),
20
+ textContent: getDataTestId(dataTestId, 'text_content'),
21
+ textValue: getDataTestId(dataTestId, 'text_value'),
22
+ };
23
+ }
24
+
25
+ export { getPureCellTestIds };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-pure-cell",
3
- "version": "4.5.1",
3
+ "version": "4.6.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -16,10 +16,10 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@alfalab/core-components-amount": "^3.3.1",
19
- "@alfalab/core-components-button": "^11.1.0",
20
- "@alfalab/core-components-typography": "^4.3.0",
21
- "@alfalab/core-components-comment": "^2.3.1",
22
- "@alfalab/core-components-shared": "^0.9.0",
19
+ "@alfalab/core-components-button": "^11.2.0",
20
+ "@alfalab/core-components-typography": "^4.5.0",
21
+ "@alfalab/core-components-comment": "^2.3.3",
22
+ "@alfalab/core-components-shared": "^0.9.1",
23
23
  "@alfalab/hooks": "^1.13.0",
24
24
  "@alfalab/data": "^1.6.0",
25
25
  "classnames": "^2.3.1",
@@ -0,0 +1 @@
1
+ export { getPureCellTestIds } from "../utils";
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var utils = require('../utils.js');
6
+
7
+
8
+
9
+ exports.getPureCellTestIds = utils.getPureCellTestIds;
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../esm/shared/index.js"
3
+ }
package/src/component.tsx CHANGED
@@ -33,6 +33,7 @@ import styles from './index.module.css';
33
33
  export type PureCellContext = {
34
34
  /** Направление */
35
35
  direction?: 'horizontal' | 'vertical';
36
+ dataTestId?: string;
36
37
  };
37
38
 
38
39
  // eslint-disable-next-line @typescript-eslint/no-redeclare
@@ -126,7 +127,7 @@ const PureCellComponent = forwardRef<HTMLElement, PureProps>(
126
127
  data-test-id={dataTestId}
127
128
  onClick={onClick}
128
129
  >
129
- <PureCellContext.Provider value={{ direction }}>
130
+ <PureCellContext.Provider value={{ direction, dataTestId }}>
130
131
  {children}
131
132
  </PureCellContext.Provider>
132
133
  </Component>
@@ -142,7 +143,7 @@ const PureCellComponent = forwardRef<HTMLElement, PureProps>(
142
143
  data-test-id={dataTestId}
143
144
  onClick={onClick}
144
145
  >
145
- <PureCellContext.Provider value={{ direction }}>
146
+ <PureCellContext.Provider value={{ direction, dataTestId }}>
146
147
  {children}
147
148
  </PureCellContext.Provider>
148
149
  </Component>
@@ -157,7 +158,7 @@ const PureCellComponent = forwardRef<HTMLElement, PureProps>(
157
158
  className={cn(addClasses, className)}
158
159
  data-test-id={dataTestId}
159
160
  >
160
- <PureCellContext.Provider value={{ direction }}>
161
+ <PureCellContext.Provider value={{ direction, dataTestId }}>
161
162
  {children}
162
163
  </PureCellContext.Provider>
163
164
  </Component>
@@ -1,8 +1,9 @@
1
- import React from 'react';
1
+ import React, { useContext } from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
4
  import { getDataTestId } from '@alfalab/core-components-shared';
5
5
 
6
+ import { PureCellContext } from '../../component';
6
7
  import { AddonElement } from '../types';
7
8
 
8
9
  import styles from './index.module.css';
@@ -35,11 +36,15 @@ export const Addon: React.FC<Props> = ({
35
36
  verticalAlign = 'top',
36
37
  addonPadding = 'default',
37
38
  dataTestId,
38
- }) => (
39
- <section
40
- className={cn(styles.component, styles[addonPadding], styles[verticalAlign])}
41
- data-test-id={getDataTestId(dataTestId, 'addon')}
42
- >
43
- {children}
44
- </section>
45
- );
39
+ }) => {
40
+ const pureCellContext = useContext(PureCellContext);
41
+
42
+ return (
43
+ <section
44
+ className={cn(styles.component, styles[addonPadding], styles[verticalAlign])}
45
+ data-test-id={getDataTestId(dataTestId || pureCellContext.dataTestId, 'addon')}
46
+ >
47
+ {children}
48
+ </section>
49
+ );
50
+ };
@@ -1,10 +1,11 @@
1
- import React from 'react';
1
+ import React, { useContext } from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
4
  import { Amount as CoreAmount } from '@alfalab/core-components-amount';
5
5
  import { getDataTestId } from '@alfalab/core-components-shared';
6
6
  import { Color, Typography } from '@alfalab/core-components-typography';
7
7
 
8
+ import { PureCellContext } from '../../component';
8
9
  import { AmountProps as AmountType } from '../typesProps';
9
10
 
10
11
  import styles from './index.module.css';
@@ -40,18 +41,22 @@ export const Amount: React.FC<Props> = ({
40
41
  minorUnits = 100,
41
42
  dataTestId,
42
43
  ...restProps
43
- }) => (
44
- <Typography.Text
45
- view={textView}
46
- dataTestId={getDataTestId(dataTestId, 'amount-text')}
47
- className={cn(styles.component)}
48
- color={color}
49
- >
50
- <CoreAmount
51
- minority={minority || minorUnits}
52
- bold={weight === 'bold' ? 'full' : 'none'}
53
- dataTestId={getDataTestId(dataTestId, 'amount')}
54
- {...restProps}
55
- />
56
- </Typography.Text>
57
- );
44
+ }) => {
45
+ const pureCellContext = useContext(PureCellContext);
46
+
47
+ return (
48
+ <Typography.Text
49
+ view={textView}
50
+ dataTestId={getDataTestId(dataTestId || pureCellContext.dataTestId, 'amount-text')}
51
+ className={cn(styles.component)}
52
+ color={color}
53
+ >
54
+ <CoreAmount
55
+ minority={minority || minorUnits}
56
+ bold={weight === 'bold' ? 'full' : 'none'}
57
+ dataTestId={getDataTestId(dataTestId || pureCellContext.dataTestId, 'amount')}
58
+ {...restProps}
59
+ />
60
+ </Typography.Text>
61
+ );
62
+ };
@@ -1,10 +1,11 @@
1
- import React from 'react';
1
+ import React, { useContext } from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
4
  import { Amount as CoreAmount } from '@alfalab/core-components-amount';
5
5
  import { getDataTestId } from '@alfalab/core-components-shared';
6
6
  import { Color, TitleProps, Typography } from '@alfalab/core-components-typography';
7
7
 
8
+ import { PureCellContext } from '../../component';
8
9
  import { AmountProps as AmountType } from '../typesProps';
9
10
 
10
11
  import styles from './index.module.css';
@@ -37,6 +38,8 @@ export const AmountTitle: React.FC<Props> = ({
37
38
  titleProps = {},
38
39
  ...restProps
39
40
  }) => {
41
+ const pureCellContext = useContext(PureCellContext);
42
+
40
43
  const titleDefaultProps = {
41
44
  tag: 'h4',
42
45
  view: 'small',
@@ -47,13 +50,16 @@ export const AmountTitle: React.FC<Props> = ({
47
50
  return (
48
51
  <Typography.Title
49
52
  {...titleDefaultProps}
50
- dataTestId={getDataTestId(dataTestId, 'amount-title')}
53
+ dataTestId={getDataTestId(dataTestId || pureCellContext.dataTestId, 'amount-title')}
51
54
  className={cn(styles.component, titleProps.className)}
52
55
  >
53
56
  <CoreAmount
54
57
  minority={minority || minorUnits}
55
58
  className={cn(styles.weight, className)}
56
- dataTestId={getDataTestId(dataTestId, 'core-amount-title')}
59
+ dataTestId={getDataTestId(
60
+ dataTestId || pureCellContext.dataTestId,
61
+ 'core-amount-title',
62
+ )}
57
63
  {...restProps}
58
64
  bold='none'
59
65
  />
@@ -1,8 +1,10 @@
1
- import React, { ReactNode } from 'react';
1
+ import React, { ReactNode, useContext } from 'react';
2
2
 
3
3
  import { getDataTestId } from '@alfalab/core-components-shared';
4
4
  import { Typography } from '@alfalab/core-components-typography';
5
5
 
6
+ import { PureCellContext } from '../../component';
7
+
6
8
  import styles from './index.module.css';
7
9
 
8
10
  type Props = {
@@ -34,34 +36,47 @@ export const Category: React.FC<Props> = ({
34
36
  categoryPercent,
35
37
  rightAddons,
36
38
  dataTestId,
37
- }) => (
38
- <div className={styles.component} data-test-id='cell-pure-category'>
39
- <Typography.Text
40
- view='primary-small'
41
- color='secondary'
42
- dataTestId={getDataTestId(dataTestId, 'category-name')}
43
- className={styles.categoryName}
44
- >
45
- {categoryName}
46
- </Typography.Text>
47
- {categoryPercent !== undefined && (
39
+ }) => {
40
+ const pureCellContext = useContext(PureCellContext);
41
+
42
+ return (
43
+ <div className={styles.component} data-test-id='cell-pure-category'>
48
44
  <Typography.Text
49
- tag='div'
50
45
  view='primary-small'
51
46
  color='secondary'
52
- className={styles.categoryPercent}
53
- dataTestId={getDataTestId(dataTestId, 'category-percent')}
47
+ dataTestId={getDataTestId(
48
+ dataTestId || pureCellContext.dataTestId,
49
+ 'category-name',
50
+ )}
51
+ className={styles.categoryName}
54
52
  >
55
- {categoryPercent}%
53
+ {categoryName}
56
54
  </Typography.Text>
57
- )}
58
- {rightAddons !== undefined && (
59
- <div
60
- className={styles.rightAddon}
61
- data-test-id={getDataTestId(dataTestId, 'category-right-addon')}
62
- >
63
- {rightAddons}
64
- </div>
65
- )}
66
- </div>
67
- );
55
+ {categoryPercent !== undefined && (
56
+ <Typography.Text
57
+ tag='div'
58
+ view='primary-small'
59
+ color='secondary'
60
+ className={styles.categoryPercent}
61
+ dataTestId={getDataTestId(
62
+ dataTestId || pureCellContext.dataTestId,
63
+ 'category-percent',
64
+ )}
65
+ >
66
+ {categoryPercent}%
67
+ </Typography.Text>
68
+ )}
69
+ {rightAddons !== undefined && (
70
+ <div
71
+ className={styles.rightAddon}
72
+ data-test-id={getDataTestId(
73
+ dataTestId || pureCellContext.dataTestId,
74
+ 'category-right-addon',
75
+ )}
76
+ >
77
+ {rightAddons}
78
+ </div>
79
+ )}
80
+ </div>
81
+ );
82
+ };
@@ -22,12 +22,12 @@ type Props = {
22
22
  };
23
23
 
24
24
  export const Content: React.FC<Props> = ({ children, dataTestId }) => {
25
- const { direction } = useContext(PureCellContext);
25
+ const { direction, dataTestId: contextDataTestId } = useContext(PureCellContext);
26
26
 
27
27
  return (
28
28
  <section
29
29
  className={cn(styles.component, { [styles.horizontal]: direction === 'horizontal' })}
30
- data-test-id={getDataTestId(dataTestId, 'content')}
30
+ data-test-id={getDataTestId(dataTestId || contextDataTestId, 'content')}
31
31
  >
32
32
  {children}
33
33
  </section>
@@ -1,8 +1,9 @@
1
- import React from 'react';
1
+ import React, { useContext } from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
4
  import { getDataTestId } from '@alfalab/core-components-shared';
5
5
 
6
+ import { PureCellContext } from '../../component';
6
7
  import { FooterElement } from '../types';
7
8
 
8
9
  import styles from './index.module.css';
@@ -25,11 +26,15 @@ type Props = {
25
26
  dataTestId?: string;
26
27
  };
27
28
 
28
- export const Footer: React.FC<Props> = ({ children, footerPadding = 'default', dataTestId }) => (
29
- <footer
30
- className={cn(styles.component, styles[footerPadding])}
31
- data-test-id={getDataTestId(dataTestId, 'footer')}
32
- >
33
- {children}
34
- </footer>
35
- );
29
+ export const Footer: React.FC<Props> = ({ children, footerPadding = 'default', dataTestId }) => {
30
+ const pureCellContext = useContext(PureCellContext);
31
+
32
+ return (
33
+ <footer
34
+ className={cn(styles.component, styles[footerPadding])}
35
+ data-test-id={getDataTestId(dataTestId || pureCellContext.dataTestId, 'footer')}
36
+ >
37
+ {children}
38
+ </footer>
39
+ );
40
+ };