@alfalab/core-components-pure-cell 5.0.1 → 5.0.2

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 (337) hide show
  1. package/component.d.ts +10 -16
  2. package/component.js +6 -6
  3. package/component.js.map +1 -1
  4. package/components/addon/component.d.ts +1 -1
  5. package/components/addon/component.js +2 -2
  6. package/components/addon/component.js.map +1 -1
  7. package/components/addon/index.css +17 -15
  8. package/components/addon/index.module.css.js +1 -1
  9. package/components/amount/component.d.ts +1 -1
  10. package/components/amount/component.js +2 -2
  11. package/components/amount/component.js.map +1 -1
  12. package/components/amount/index.css +3 -3
  13. package/components/amount/index.module.css.js +1 -1
  14. package/components/amount/index.module.css.js.map +1 -1
  15. package/components/amount-title/component.d.ts +1 -1
  16. package/components/amount-title/component.js +2 -2
  17. package/components/amount-title/component.js.map +1 -1
  18. package/components/amount-title/index.css +14 -14
  19. package/components/amount-title/index.module.css.js +1 -1
  20. package/components/amount-title/index.module.css.js.map +1 -1
  21. package/components/category/component.d.ts +1 -1
  22. package/components/category/component.js +2 -2
  23. package/components/category/component.js.map +1 -1
  24. package/components/category/index.css +4 -4
  25. package/components/category/index.module.css.js +1 -1
  26. package/components/category/index.module.css.js.map +1 -1
  27. package/components/content/component.d.ts +1 -1
  28. package/components/content/component.js +2 -2
  29. package/components/content/component.js.map +1 -1
  30. package/components/content/index.css +3 -3
  31. package/components/content/index.module.css.js +1 -1
  32. package/components/content/index.module.css.js.map +1 -1
  33. package/components/footer/component.d.ts +1 -1
  34. package/components/footer/component.js +2 -2
  35. package/components/footer/component.js.map +1 -1
  36. package/components/footer/index.css +4 -4
  37. package/components/footer/index.module.css.js +1 -1
  38. package/components/footer/index.module.css.js.map +1 -1
  39. package/components/footer-button/component.d.ts +2 -2
  40. package/components/footer-button/component.js +2 -2
  41. package/components/footer-button/component.js.map +1 -1
  42. package/components/footer-button/index.css +1 -1
  43. package/components/footer-button/index.module.css.js +1 -1
  44. package/components/footer-button/index.module.css.js.map +1 -1
  45. package/components/footer-text/component.d.ts +1 -1
  46. package/components/footer-text/component.js +2 -2
  47. package/components/footer-text/component.js.map +1 -1
  48. package/components/graphics/component.d.ts +1 -1
  49. package/components/graphics/component.js +2 -2
  50. package/components/graphics/component.js.map +1 -1
  51. package/components/graphics/index.css +23 -21
  52. package/components/graphics/index.module.css.js +1 -1
  53. package/components/main/component.d.ts +1 -1
  54. package/components/main/component.js +2 -2
  55. package/components/main/component.js.map +1 -1
  56. package/components/main/index.css +11 -9
  57. package/components/main/index.module.css.js +1 -1
  58. package/components/text/component.d.ts +1 -1
  59. package/components/text/component.js +2 -2
  60. package/components/text/component.js.map +1 -1
  61. package/components/text/index.css +6 -6
  62. package/components/text/index.module.css.js +1 -1
  63. package/components/text/index.module.css.js.map +1 -1
  64. package/components/types.d.ts +8 -8
  65. package/components/typesProps.d.ts +2 -2
  66. package/context.d.ts +9 -0
  67. package/context.js +11 -0
  68. package/context.js.map +1 -0
  69. package/cssm/component.d.ts +10 -16
  70. package/cssm/component.js +6 -6
  71. package/cssm/component.js.map +1 -1
  72. package/cssm/components/addon/component.d.ts +1 -1
  73. package/cssm/components/addon/component.js +2 -2
  74. package/cssm/components/addon/component.js.map +1 -1
  75. package/cssm/components/addon/index.module.css +5 -3
  76. package/cssm/components/amount/component.d.ts +1 -1
  77. package/cssm/components/amount/component.js +2 -2
  78. package/cssm/components/amount/component.js.map +1 -1
  79. package/cssm/components/amount-title/component.d.ts +1 -1
  80. package/cssm/components/amount-title/component.js +2 -2
  81. package/cssm/components/amount-title/component.js.map +1 -1
  82. package/cssm/components/category/component.d.ts +1 -1
  83. package/cssm/components/category/component.js +2 -2
  84. package/cssm/components/category/component.js.map +1 -1
  85. package/cssm/components/content/component.d.ts +1 -1
  86. package/cssm/components/content/component.js +2 -2
  87. package/cssm/components/content/component.js.map +1 -1
  88. package/cssm/components/content/index.module.css +1 -1
  89. package/cssm/components/footer/component.d.ts +1 -1
  90. package/cssm/components/footer/component.js +2 -2
  91. package/cssm/components/footer/component.js.map +1 -1
  92. package/cssm/components/footer/index.module.css +1 -1
  93. package/cssm/components/footer-button/component.d.ts +2 -2
  94. package/cssm/components/footer-button/component.js +2 -2
  95. package/cssm/components/footer-button/component.js.map +1 -1
  96. package/cssm/components/footer-text/component.d.ts +1 -1
  97. package/cssm/components/footer-text/component.js +2 -2
  98. package/cssm/components/footer-text/component.js.map +1 -1
  99. package/cssm/components/graphics/component.d.ts +1 -1
  100. package/cssm/components/graphics/component.js +2 -2
  101. package/cssm/components/graphics/component.js.map +1 -1
  102. package/cssm/components/graphics/index.module.css +16 -14
  103. package/cssm/components/main/component.d.ts +1 -1
  104. package/cssm/components/main/component.js +2 -2
  105. package/cssm/components/main/component.js.map +1 -1
  106. package/cssm/components/main/index.module.css +5 -3
  107. package/cssm/components/text/component.d.ts +1 -1
  108. package/cssm/components/text/component.js +2 -2
  109. package/cssm/components/text/component.js.map +1 -1
  110. package/cssm/components/types.d.ts +8 -8
  111. package/cssm/components/typesProps.d.ts +2 -2
  112. package/cssm/context.d.ts +9 -0
  113. package/cssm/context.js +11 -0
  114. package/cssm/context.js.map +1 -0
  115. package/cssm/index.module.css +6 -4
  116. package/esm/component.d.ts +10 -16
  117. package/esm/component.js +2 -2
  118. package/esm/component.js.map +1 -1
  119. package/esm/components/addon/component.d.ts +1 -1
  120. package/esm/components/addon/component.js +1 -1
  121. package/esm/components/addon/component.js.map +1 -1
  122. package/esm/components/addon/index.css +17 -15
  123. package/esm/components/addon/index.module.css.js +1 -1
  124. package/esm/components/amount/component.d.ts +1 -1
  125. package/esm/components/amount/component.js +1 -1
  126. package/esm/components/amount/component.js.map +1 -1
  127. package/esm/components/amount/index.css +3 -3
  128. package/esm/components/amount/index.module.css.js +1 -1
  129. package/esm/components/amount/index.module.css.js.map +1 -1
  130. package/esm/components/amount-title/component.d.ts +1 -1
  131. package/esm/components/amount-title/component.js +1 -1
  132. package/esm/components/amount-title/component.js.map +1 -1
  133. package/esm/components/amount-title/index.css +14 -14
  134. package/esm/components/amount-title/index.module.css.js +1 -1
  135. package/esm/components/amount-title/index.module.css.js.map +1 -1
  136. package/esm/components/category/component.d.ts +1 -1
  137. package/esm/components/category/component.js +1 -1
  138. package/esm/components/category/component.js.map +1 -1
  139. package/esm/components/category/index.css +4 -4
  140. package/esm/components/category/index.module.css.js +1 -1
  141. package/esm/components/category/index.module.css.js.map +1 -1
  142. package/esm/components/content/component.d.ts +1 -1
  143. package/esm/components/content/component.js +1 -1
  144. package/esm/components/content/component.js.map +1 -1
  145. package/esm/components/content/index.css +3 -3
  146. package/esm/components/content/index.module.css.js +1 -1
  147. package/esm/components/content/index.module.css.js.map +1 -1
  148. package/esm/components/footer/component.d.ts +1 -1
  149. package/esm/components/footer/component.js +1 -1
  150. package/esm/components/footer/component.js.map +1 -1
  151. package/esm/components/footer/index.css +4 -4
  152. package/esm/components/footer/index.module.css.js +1 -1
  153. package/esm/components/footer/index.module.css.js.map +1 -1
  154. package/esm/components/footer-button/component.d.ts +2 -2
  155. package/esm/components/footer-button/component.js +1 -1
  156. package/esm/components/footer-button/component.js.map +1 -1
  157. package/esm/components/footer-button/index.css +1 -1
  158. package/esm/components/footer-button/index.module.css.js +1 -1
  159. package/esm/components/footer-button/index.module.css.js.map +1 -1
  160. package/esm/components/footer-text/component.d.ts +1 -1
  161. package/esm/components/footer-text/component.js +1 -1
  162. package/esm/components/footer-text/component.js.map +1 -1
  163. package/esm/components/graphics/component.d.ts +1 -1
  164. package/esm/components/graphics/component.js +1 -1
  165. package/esm/components/graphics/component.js.map +1 -1
  166. package/esm/components/graphics/index.css +23 -21
  167. package/esm/components/graphics/index.module.css.js +1 -1
  168. package/esm/components/main/component.d.ts +1 -1
  169. package/esm/components/main/component.js +1 -1
  170. package/esm/components/main/component.js.map +1 -1
  171. package/esm/components/main/index.css +11 -9
  172. package/esm/components/main/index.module.css.js +1 -1
  173. package/esm/components/text/component.d.ts +1 -1
  174. package/esm/components/text/component.js +1 -1
  175. package/esm/components/text/component.js.map +1 -1
  176. package/esm/components/text/index.css +6 -6
  177. package/esm/components/text/index.module.css.js +1 -1
  178. package/esm/components/text/index.module.css.js.map +1 -1
  179. package/esm/components/types.d.ts +8 -8
  180. package/esm/components/typesProps.d.ts +2 -2
  181. package/esm/context.d.ts +9 -0
  182. package/esm/context.js +7 -0
  183. package/esm/context.js.map +1 -0
  184. package/esm/index.css +34 -32
  185. package/esm/index.module.css.js +1 -1
  186. package/esm/index.module.css.js.map +1 -1
  187. package/index.css +34 -32
  188. package/index.module.css.js +1 -1
  189. package/index.module.css.js.map +1 -1
  190. package/modern/component.d.ts +10 -16
  191. package/modern/component.js +2 -3
  192. package/modern/component.js.map +1 -1
  193. package/modern/components/addon/component.d.ts +1 -1
  194. package/modern/components/addon/component.js +1 -1
  195. package/modern/components/addon/component.js.map +1 -1
  196. package/modern/components/addon/index.css +17 -15
  197. package/modern/components/addon/index.module.css.js +1 -1
  198. package/modern/components/amount/component.d.ts +1 -1
  199. package/modern/components/amount/component.js +1 -1
  200. package/modern/components/amount/component.js.map +1 -1
  201. package/modern/components/amount/index.css +3 -3
  202. package/modern/components/amount/index.module.css.js +1 -1
  203. package/modern/components/amount/index.module.css.js.map +1 -1
  204. package/modern/components/amount-title/component.d.ts +1 -1
  205. package/modern/components/amount-title/component.js +1 -1
  206. package/modern/components/amount-title/component.js.map +1 -1
  207. package/modern/components/amount-title/index.css +14 -14
  208. package/modern/components/amount-title/index.module.css.js +1 -1
  209. package/modern/components/amount-title/index.module.css.js.map +1 -1
  210. package/modern/components/category/component.d.ts +1 -1
  211. package/modern/components/category/component.js +1 -1
  212. package/modern/components/category/component.js.map +1 -1
  213. package/modern/components/category/index.css +4 -4
  214. package/modern/components/category/index.module.css.js +1 -1
  215. package/modern/components/category/index.module.css.js.map +1 -1
  216. package/modern/components/content/component.d.ts +1 -1
  217. package/modern/components/content/component.js +1 -1
  218. package/modern/components/content/component.js.map +1 -1
  219. package/modern/components/content/index.css +3 -3
  220. package/modern/components/content/index.module.css.js +1 -1
  221. package/modern/components/content/index.module.css.js.map +1 -1
  222. package/modern/components/footer/component.d.ts +1 -1
  223. package/modern/components/footer/component.js +1 -1
  224. package/modern/components/footer/component.js.map +1 -1
  225. package/modern/components/footer/index.css +4 -4
  226. package/modern/components/footer/index.module.css.js +1 -1
  227. package/modern/components/footer/index.module.css.js.map +1 -1
  228. package/modern/components/footer-button/component.d.ts +2 -2
  229. package/modern/components/footer-button/component.js +1 -1
  230. package/modern/components/footer-button/component.js.map +1 -1
  231. package/modern/components/footer-button/index.css +1 -1
  232. package/modern/components/footer-button/index.module.css.js +1 -1
  233. package/modern/components/footer-button/index.module.css.js.map +1 -1
  234. package/modern/components/footer-text/component.d.ts +1 -1
  235. package/modern/components/footer-text/component.js +1 -1
  236. package/modern/components/footer-text/component.js.map +1 -1
  237. package/modern/components/graphics/component.d.ts +1 -1
  238. package/modern/components/graphics/component.js +1 -1
  239. package/modern/components/graphics/component.js.map +1 -1
  240. package/modern/components/graphics/index.css +23 -21
  241. package/modern/components/graphics/index.module.css.js +1 -1
  242. package/modern/components/main/component.d.ts +1 -1
  243. package/modern/components/main/component.js +1 -1
  244. package/modern/components/main/component.js.map +1 -1
  245. package/modern/components/main/index.css +11 -9
  246. package/modern/components/main/index.module.css.js +1 -1
  247. package/modern/components/text/component.d.ts +1 -1
  248. package/modern/components/text/component.js +1 -1
  249. package/modern/components/text/component.js.map +1 -1
  250. package/modern/components/text/index.css +6 -6
  251. package/modern/components/text/index.module.css.js +1 -1
  252. package/modern/components/text/index.module.css.js.map +1 -1
  253. package/modern/components/types.d.ts +8 -8
  254. package/modern/components/typesProps.d.ts +2 -2
  255. package/modern/context.d.ts +9 -0
  256. package/modern/context.js +7 -0
  257. package/modern/context.js.map +1 -0
  258. package/modern/index.css +34 -32
  259. package/modern/index.module.css.js +1 -1
  260. package/modern/index.module.css.js.map +1 -1
  261. package/moderncssm/component.d.ts +10 -16
  262. package/moderncssm/component.js +2 -3
  263. package/moderncssm/component.js.map +1 -1
  264. package/moderncssm/components/addon/component.d.ts +1 -1
  265. package/moderncssm/components/addon/component.js +1 -1
  266. package/moderncssm/components/addon/component.js.map +1 -1
  267. package/moderncssm/components/addon/index.module.css +5 -3
  268. package/moderncssm/components/amount/component.d.ts +1 -1
  269. package/moderncssm/components/amount/component.js +1 -1
  270. package/moderncssm/components/amount/component.js.map +1 -1
  271. package/moderncssm/components/amount/index.module.css +2 -0
  272. package/moderncssm/components/amount-title/component.d.ts +1 -1
  273. package/moderncssm/components/amount-title/component.js +1 -1
  274. package/moderncssm/components/amount-title/component.js.map +1 -1
  275. package/moderncssm/components/amount-title/index.module.css +2 -0
  276. package/moderncssm/components/category/component.d.ts +1 -1
  277. package/moderncssm/components/category/component.js +1 -1
  278. package/moderncssm/components/category/component.js.map +1 -1
  279. package/moderncssm/components/category/index.module.css +2 -0
  280. package/moderncssm/components/content/component.d.ts +1 -1
  281. package/moderncssm/components/content/component.js +1 -1
  282. package/moderncssm/components/content/component.js.map +1 -1
  283. package/moderncssm/components/content/index.module.css +3 -2
  284. package/moderncssm/components/footer/component.d.ts +1 -1
  285. package/moderncssm/components/footer/component.js +1 -1
  286. package/moderncssm/components/footer/component.js.map +1 -1
  287. package/moderncssm/components/footer/index.module.css +3 -3
  288. package/moderncssm/components/footer-button/component.d.ts +2 -2
  289. package/moderncssm/components/footer-button/component.js +1 -1
  290. package/moderncssm/components/footer-button/component.js.map +1 -1
  291. package/moderncssm/components/footer-button/index.module.css +2 -0
  292. package/moderncssm/components/footer-text/component.d.ts +1 -1
  293. package/moderncssm/components/footer-text/component.js +1 -1
  294. package/moderncssm/components/footer-text/component.js.map +1 -1
  295. package/moderncssm/components/graphics/component.d.ts +1 -1
  296. package/moderncssm/components/graphics/component.js +1 -1
  297. package/moderncssm/components/graphics/component.js.map +1 -1
  298. package/moderncssm/components/graphics/index.module.css +16 -14
  299. package/moderncssm/components/main/component.d.ts +1 -1
  300. package/moderncssm/components/main/component.js +1 -1
  301. package/moderncssm/components/main/component.js.map +1 -1
  302. package/moderncssm/components/main/index.module.css +5 -3
  303. package/moderncssm/components/text/component.d.ts +1 -1
  304. package/moderncssm/components/text/component.js +1 -1
  305. package/moderncssm/components/text/component.js.map +1 -1
  306. package/moderncssm/components/text/index.module.css +2 -0
  307. package/moderncssm/components/types.d.ts +8 -8
  308. package/moderncssm/components/typesProps.d.ts +2 -2
  309. package/moderncssm/context.d.ts +9 -0
  310. package/moderncssm/context.js +7 -0
  311. package/moderncssm/context.js.map +1 -0
  312. package/moderncssm/index.module.css +6 -4
  313. package/package.json +4 -4
  314. package/src/component.tsx +11 -21
  315. package/src/components/addon/component.tsx +2 -2
  316. package/src/components/amount/component.tsx +2 -2
  317. package/src/components/amount/index.module.css +1 -1
  318. package/src/components/amount-title/component.tsx +2 -2
  319. package/src/components/amount-title/index.module.css +1 -1
  320. package/src/components/category/component.tsx +2 -2
  321. package/src/components/category/index.module.css +1 -1
  322. package/src/components/content/component.tsx +2 -2
  323. package/src/components/content/index.module.css +1 -1
  324. package/src/components/footer/component.tsx +2 -2
  325. package/src/components/footer/index.module.css +1 -1
  326. package/src/components/footer-button/component.tsx +8 -3
  327. package/src/components/footer-button/index.module.css +1 -1
  328. package/src/components/footer-text/component.tsx +2 -2
  329. package/src/components/graphics/component.tsx +2 -2
  330. package/src/components/main/component.tsx +2 -2
  331. package/src/components/text/component.tsx +2 -2
  332. package/src/components/text/index.module.css +1 -3
  333. package/src/components/types.ts +8 -8
  334. package/src/components/typesProps.ts +2 -2
  335. package/src/context.ts +12 -0
  336. package/src/index.module.css +2 -2
  337. package/src/vars.css +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["../../src/components/amount-title/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n.component {\n display: flex;\n}\n\n.weight {\n font-weight: inherit;\n}\n\n.hidden {\n background: var(--color-light-neutral-translucent-400);\n border-radius: var(--border-radius-8);\n display: inline-block;\n}\n\n.hidden-xsmall {\n height: 16px;\n width: 88px;\n}\n.hidden-small {\n height: 18px;\n width: 100px;\n}\n.hidden-medium {\n height: 24px;\n width: 120px;\n}\n.hidden-large {\n height: 28px;\n width: 136px;\n}\n.hidden-xlarge {\n height: 32px;\n width: 156px;\n}\n.hiddenWrapper {\n display: flex;\n}\n.hiddenWrapper-xsmall {\n padding: var(--gap-4) var(--gap-0);\n}\n.hiddenWrapper-small {\n padding: var(--gap-8) var(--gap-0);\n}\n.hiddenWrapper-medium {\n padding: var(--gap-8) var(--gap-0);\n}\n.hiddenWrapper-large {\n padding: var(--gap-12) var(--gap-0);\n}\n.hiddenWrapper-xlarge {\n padding: var(--gap-16) var(--gap-0);\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,WAAW,CAAC,4BAA4B,CAAC,QAAQ,CAAC,yBAAyB,CAAC,QAAQ,CAAC,yBAAyB,CAAC,eAAe,CAAC,gCAAgC,CAAC,cAAc,CAAC,+BAA+B,CAAC,eAAe,CAAC,gCAAgC,CAAC,cAAc,CAAC,+BAA+B,CAAC,eAAe,CAAC,gCAAgC,CAAC,eAAe,CAAC,gCAAgC,CAAC,sBAAsB,CAAC,uCAAuC,CAAC,qBAAqB,CAAC,sCAAsC,CAAC,sBAAsB,CAAC,uCAAuC,CAAC,qBAAqB,CAAC,sCAAsC,CAAC,sBAAsB,CAAC,uCAAuC,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["../../src/components/amount-title/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n\n.component {\n display: flex;\n}\n\n.weight {\n font-weight: inherit;\n}\n\n.hidden {\n background: var(--color-light-neutral-translucent-400);\n border-radius: var(--border-radius-8);\n display: inline-block;\n}\n\n.hidden-xsmall {\n height: 16px;\n width: 88px;\n}\n.hidden-small {\n height: 18px;\n width: 100px;\n}\n.hidden-medium {\n height: 24px;\n width: 120px;\n}\n.hidden-large {\n height: 28px;\n width: 136px;\n}\n.hidden-xlarge {\n height: 32px;\n width: 156px;\n}\n.hiddenWrapper {\n display: flex;\n}\n.hiddenWrapper-xsmall {\n padding: var(--gap-4) var(--gap-0);\n}\n.hiddenWrapper-small {\n padding: var(--gap-8) var(--gap-0);\n}\n.hiddenWrapper-medium {\n padding: var(--gap-8) var(--gap-0);\n}\n.hiddenWrapper-large {\n padding: var(--gap-12) var(--gap-0);\n}\n.hiddenWrapper-xlarge {\n padding: var(--gap-16) var(--gap-0);\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,WAAW,CAAC,4BAA4B,CAAC,QAAQ,CAAC,yBAAyB,CAAC,QAAQ,CAAC,yBAAyB,CAAC,eAAe,CAAC,gCAAgC,CAAC,cAAc,CAAC,+BAA+B,CAAC,eAAe,CAAC,gCAAgC,CAAC,cAAc,CAAC,+BAA+B,CAAC,eAAe,CAAC,gCAAgC,CAAC,eAAe,CAAC,gCAAgC,CAAC,sBAAsB,CAAC,uCAAuC,CAAC,qBAAqB,CAAC,sCAAsC,CAAC,sBAAsB,CAAC,uCAAuC,CAAC,qBAAqB,CAAC,sCAAsC,CAAC,sBAAsB,CAAC,uCAAuC,CAAC;;;;"}
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import React, { type ReactNode } from 'react';
2
2
  declare type Props = {
3
3
  /**
4
4
  * Наименование категории
@@ -1,7 +1,7 @@
1
1
  import React, { useContext } from 'react';
2
2
  import { getDataTestId } from '@alfalab/core-components-shared/modern';
3
3
  import { Text } from '@alfalab/core-components-typography/modern';
4
- import { PureCellContext } from '../../component.js';
4
+ import { PureCellContext } from '../../context.js';
5
5
  import styles from './index.module.css.js';
6
6
 
7
7
  const Category = ({ categoryName, categoryPercent, rightAddons, dataTestId, }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../../src/components/category/component.tsx"],"sourcesContent":["import React, { ReactNode, useContext } from 'react';\n\nimport { getDataTestId } from '@alfalab/core-components-shared';\nimport { Text } from '@alfalab/core-components-typography';\n\nimport { PureCellContext } from '../../component';\n\nimport styles from './index.module.css';\n\ntype Props = {\n /**\n * Наименование категории\n */\n categoryName: string;\n\n /**\n * Процент категории\n */\n categoryPercent?: number;\n\n /**\n * Слот справа\n */\n rightAddons?: ReactNode;\n\n /**\n * Идентификатор для систем автоматизированного тестирования.\n * Для наименования категории используется модификатор -category-name,\n * процент категории -category-percent, слота справа -category-right-addon\n */\n dataTestId?: string;\n};\n\nexport const Category: React.FC<Props> = ({\n categoryName,\n categoryPercent,\n rightAddons,\n dataTestId,\n}) => {\n const pureCellContext = useContext(PureCellContext);\n\n return (\n <div className={styles.component} data-test-id='cell-pure-category'>\n <Text\n view='primary-small'\n color='secondary'\n dataTestId={getDataTestId(\n dataTestId || pureCellContext.dataTestId,\n 'category-name',\n )}\n className={styles.categoryName}\n >\n {categoryName}\n </Text>\n {categoryPercent !== undefined && (\n <Text\n tag='div'\n view='primary-small'\n color='secondary'\n className={styles.categoryPercent}\n dataTestId={getDataTestId(\n dataTestId || pureCellContext.dataTestId,\n 'category-percent',\n )}\n >\n {categoryPercent}%\n </Text>\n )}\n {rightAddons !== undefined && (\n <div\n className={styles.rightAddon}\n data-test-id={getDataTestId(\n dataTestId || pureCellContext.dataTestId,\n 'category-right-addon',\n )}\n >\n {rightAddons}\n </div>\n )}\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;;AAiCO,MAAM,QAAQ,GAAoB,CAAC,EACtC,YAAY,EACZ,eAAe,EACf,WAAW,EACX,UAAU,GACb,KAAI;AACD,IAAA,MAAM,eAAe,GAAG,UAAU,CAAC,eAAe,CAAC;IAEnD,QACI,6BAAK,SAAS,EAAE,MAAM,CAAC,SAAS,kBAAe,oBAAoB,EAAA;AAC/D,QAAA,KAAA,CAAA,aAAA,CAAC,IAAI,EAAA,EACD,IAAI,EAAC,eAAe,EACpB,KAAK,EAAC,WAAW,EACjB,UAAU,EAAE,aAAa,CACrB,UAAU,IAAI,eAAe,CAAC,UAAU,EACxC,eAAe,CAClB,EACD,SAAS,EAAE,MAAM,CAAC,YAAY,EAAA,EAE7B,YAAY,CACV;AACN,QAAA,eAAe,KAAK,SAAS,KAC1B,KAAA,CAAA,aAAA,CAAC,IAAI,EACD,EAAA,GAAG,EAAC,KAAK,EACT,IAAI,EAAC,eAAe,EACpB,KAAK,EAAC,WAAW,EACjB,SAAS,EAAE,MAAM,CAAC,eAAe,EACjC,UAAU,EAAE,aAAa,CACrB,UAAU,IAAI,eAAe,CAAC,UAAU,EACxC,kBAAkB,CACrB,EAAA;YAEA,eAAe;gBACb,CACV;QACA,WAAW,KAAK,SAAS,KACtB,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EACI,SAAS,EAAE,MAAM,CAAC,UAAU,EAAA,cAAA,EACd,aAAa,CACvB,UAAU,IAAI,eAAe,CAAC,UAAU,EACxC,sBAAsB,CACzB,EAEA,EAAA,WAAW,CACV,CACT,CACC;AAEd;;;;"}
1
+ {"version":3,"file":"component.js","sources":["../../../src/components/category/component.tsx"],"sourcesContent":["import React, { type ReactNode, useContext } from 'react';\n\nimport { getDataTestId } from '@alfalab/core-components-shared';\nimport { Text } from '@alfalab/core-components-typography';\n\nimport { PureCellContext } from '../../context';\n\nimport styles from './index.module.css';\n\ntype Props = {\n /**\n * Наименование категории\n */\n categoryName: string;\n\n /**\n * Процент категории\n */\n categoryPercent?: number;\n\n /**\n * Слот справа\n */\n rightAddons?: ReactNode;\n\n /**\n * Идентификатор для систем автоматизированного тестирования.\n * Для наименования категории используется модификатор -category-name,\n * процент категории -category-percent, слота справа -category-right-addon\n */\n dataTestId?: string;\n};\n\nexport const Category: React.FC<Props> = ({\n categoryName,\n categoryPercent,\n rightAddons,\n dataTestId,\n}) => {\n const pureCellContext = useContext(PureCellContext);\n\n return (\n <div className={styles.component} data-test-id='cell-pure-category'>\n <Text\n view='primary-small'\n color='secondary'\n dataTestId={getDataTestId(\n dataTestId || pureCellContext.dataTestId,\n 'category-name',\n )}\n className={styles.categoryName}\n >\n {categoryName}\n </Text>\n {categoryPercent !== undefined && (\n <Text\n tag='div'\n view='primary-small'\n color='secondary'\n className={styles.categoryPercent}\n dataTestId={getDataTestId(\n dataTestId || pureCellContext.dataTestId,\n 'category-percent',\n )}\n >\n {categoryPercent}%\n </Text>\n )}\n {rightAddons !== undefined && (\n <div\n className={styles.rightAddon}\n data-test-id={getDataTestId(\n dataTestId || pureCellContext.dataTestId,\n 'category-right-addon',\n )}\n >\n {rightAddons}\n </div>\n )}\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;;AAiCO,MAAM,QAAQ,GAAoB,CAAC,EACtC,YAAY,EACZ,eAAe,EACf,WAAW,EACX,UAAU,GACb,KAAI;AACD,IAAA,MAAM,eAAe,GAAG,UAAU,CAAC,eAAe,CAAC;IAEnD,QACI,6BAAK,SAAS,EAAE,MAAM,CAAC,SAAS,kBAAe,oBAAoB,EAAA;AAC/D,QAAA,KAAA,CAAA,aAAA,CAAC,IAAI,EAAA,EACD,IAAI,EAAC,eAAe,EACpB,KAAK,EAAC,WAAW,EACjB,UAAU,EAAE,aAAa,CACrB,UAAU,IAAI,eAAe,CAAC,UAAU,EACxC,eAAe,CAClB,EACD,SAAS,EAAE,MAAM,CAAC,YAAY,EAAA,EAE7B,YAAY,CACV;AACN,QAAA,eAAe,KAAK,SAAS,KAC1B,KAAA,CAAA,aAAA,CAAC,IAAI,EACD,EAAA,GAAG,EAAC,KAAK,EACT,IAAI,EAAC,eAAe,EACpB,KAAK,EAAC,WAAW,EACjB,SAAS,EAAE,MAAM,CAAC,eAAe,EACjC,UAAU,EAAE,aAAa,CACrB,UAAU,IAAI,eAAe,CAAC,UAAU,EACxC,kBAAkB,CACrB,EAAA;YAEA,eAAe;gBACb,CACV;QACA,WAAW,KAAK,SAAS,KACtB,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EACI,SAAS,EAAE,MAAM,CAAC,UAAU,EAAA,cAAA,EACd,aAAa,CACvB,UAAU,IAAI,eAAe,CAAC,UAAU,EACxC,sBAAsB,CACzB,EAEA,EAAA,WAAW,CACV,CACT,CACC;AAEd;;;;"}
@@ -11,21 +11,21 @@
11
11
  --gap-2: var(--gap-3xs);
12
12
  --gap-4: var(--gap-2xs);
13
13
  --gap-8: var(--gap-xs);
14
- } .pure-cell__component_1ebqk {
14
+ } .pure-cell__component_17c7t {
15
15
  display: flex;
16
16
  overflow: hidden;
17
17
  padding: var(--gap-2) var(--gap-0);
18
- } .pure-cell__categoryName_1ebqk {
18
+ } .pure-cell__categoryName_17c7t {
19
19
  display: -webkit-box;
20
20
  -webkit-line-clamp: 1;
21
21
  -webkit-box-orient: vertical;
22
22
  overflow: hidden;
23
23
  word-break: break-all;
24
- } .pure-cell__categoryPercent_1ebqk {
24
+ } .pure-cell__categoryPercent_17c7t {
25
25
  padding: var(--gap-0) var(--gap-8);
26
26
  background-color: var(--color-light-base-bg-secondary);
27
27
  border-radius: var(--border-radius-16);
28
28
  margin-left: var(--gap-4);
29
- } .pure-cell__rightAddon_1ebqk {
29
+ } .pure-cell__rightAddon_17c7t {
30
30
  margin-left: var(--gap-4);
31
31
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"component":"pure-cell__component_1ebqk","categoryName":"pure-cell__categoryName_1ebqk","categoryPercent":"pure-cell__categoryPercent_1ebqk","rightAddon":"pure-cell__rightAddon_1ebqk"};
3
+ const styles = {"component":"pure-cell__component_17c7t","categoryName":"pure-cell__categoryName_17c7t","categoryPercent":"pure-cell__categoryPercent_17c7t","rightAddon":"pure-cell__rightAddon_17c7t"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["../../src/components/category/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n.component {\n display: flex;\n overflow: hidden;\n padding: var(--gap-2) var(--gap-0);\n}\n\n.categoryName {\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n word-break: break-all;\n}\n\n.categoryPercent {\n padding: var(--gap-0) var(--gap-8);\n background-color: var(--color-light-base-bg-secondary);\n border-radius: var(--border-radius-16);\n margin-left: var(--gap-4);\n}\n\n.rightAddon {\n margin-left: var(--gap-4);\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,WAAW,CAAC,4BAA4B,CAAC,cAAc,CAAC,+BAA+B,CAAC,iBAAiB,CAAC,kCAAkC,CAAC,YAAY,CAAC,6BAA6B,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["../../src/components/category/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n\n.component {\n display: flex;\n overflow: hidden;\n padding: var(--gap-2) var(--gap-0);\n}\n\n.categoryName {\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n word-break: break-all;\n}\n\n.categoryPercent {\n padding: var(--gap-0) var(--gap-8);\n background-color: var(--color-light-base-bg-secondary);\n border-radius: var(--border-radius-16);\n margin-left: var(--gap-4);\n}\n\n.rightAddon {\n margin-left: var(--gap-4);\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,WAAW,CAAC,4BAA4B,CAAC,cAAc,CAAC,+BAA+B,CAAC,iBAAiB,CAAC,kCAAkC,CAAC,YAAY,CAAC,6BAA6B,CAAC;;;;"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ContentElement } from '../types';
2
+ import { type ContentElement } from '../types';
3
3
  declare type Props = {
4
4
  /**
5
5
  * Компоненты
@@ -1,7 +1,7 @@
1
1
  import React, { useContext } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { getDataTestId } from '@alfalab/core-components-shared/modern';
4
- import { PureCellContext } from '../../component.js';
4
+ import { PureCellContext } from '../../context.js';
5
5
  import styles from './index.module.css.js';
6
6
 
7
7
  const Content = ({ children, dataTestId }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../../src/components/content/component.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport cn from 'classnames';\n\nimport { getDataTestId } from '@alfalab/core-components-shared';\n\nimport { PureCellContext } from '../../component';\nimport { ContentElement } from '../types';\n\nimport styles from './index.module.css';\n\ntype Props = {\n /**\n * Компоненты\n */\n children: ContentElement;\n\n /**\n * Идентификатор для систем автоматизированного тестирования.\n * Используется модификатор -content\n */\n dataTestId?: string;\n};\n\nexport const Content: React.FC<Props> = ({ children, dataTestId }) => {\n const { direction, dataTestId: contextDataTestId } = useContext(PureCellContext);\n\n return (\n <section\n className={cn(styles.component, { [styles.horizontal]: direction === 'horizontal' })}\n data-test-id={getDataTestId(dataTestId || contextDataTestId, 'content')}\n >\n {children}\n </section>\n );\n};\n"],"names":[],"mappings":";;;;;;AAuBa,MAAA,OAAO,GAAoB,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAI;AACjE,IAAA,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,iBAAiB,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC;AAEhF,IAAA,QACI,KAAA,CAAA,aAAA,CAAA,SAAA,EAAA,EACI,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,GAAG,SAAS,KAAK,YAAY,EAAE,CAAC,EACtE,cAAA,EAAA,aAAa,CAAC,UAAU,IAAI,iBAAiB,EAAE,SAAS,CAAC,EAAA,EAEtE,QAAQ,CACH;AAElB;;;;"}
1
+ {"version":3,"file":"component.js","sources":["../../../src/components/content/component.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport cn from 'classnames';\n\nimport { getDataTestId } from '@alfalab/core-components-shared';\n\nimport { PureCellContext } from '../../context';\nimport { type ContentElement } from '../types';\n\nimport styles from './index.module.css';\n\ntype Props = {\n /**\n * Компоненты\n */\n children: ContentElement;\n\n /**\n * Идентификатор для систем автоматизированного тестирования.\n * Используется модификатор -content\n */\n dataTestId?: string;\n};\n\nexport const Content: React.FC<Props> = ({ children, dataTestId }) => {\n const { direction, dataTestId: contextDataTestId } = useContext(PureCellContext);\n\n return (\n <section\n className={cn(styles.component, { [styles.horizontal]: direction === 'horizontal' })}\n data-test-id={getDataTestId(dataTestId || contextDataTestId, 'content')}\n >\n {children}\n </section>\n );\n};\n"],"names":[],"mappings":";;;;;;AAuBa,MAAA,OAAO,GAAoB,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAI;AACjE,IAAA,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,iBAAiB,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC;AAEhF,IAAA,QACI,KAAA,CAAA,aAAA,CAAA,SAAA,EAAA,EACI,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,GAAG,SAAS,KAAK,YAAY,EAAE,CAAC,EACtE,cAAA,EAAA,aAAa,CAAC,UAAU,IAAI,iBAAiB,EAAE,SAAS,CAAC,EAAA,EAEtE,QAAQ,CACH;AAElB;;;;"}
@@ -1,7 +1,7 @@
1
- .pure-cell__component_1syuh {
1
+ .pure-cell__component_a4hm3 {
2
2
  flex-basis: 100%;
3
3
  display: grid;
4
- grid-template-columns: 1fr auto
5
- } .pure-cell__component_1syuh.pure-cell__horizontal_1syuh {
4
+ grid-template-columns: 1fr auto;
5
+ } .pure-cell__component_a4hm3.pure-cell__horizontal_a4hm3 {
6
6
  align-self: stretch;
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"component":"pure-cell__component_1syuh","horizontal":"pure-cell__horizontal_1syuh"};
3
+ const styles = {"component":"pure-cell__component_a4hm3","horizontal":"pure-cell__horizontal_a4hm3"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["../../src/components/content/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n.component {\n flex-basis: 100%;\n display: grid;\n grid-template-columns: 1fr auto;\n\n &.horizontal {\n /* for button */\n align-self: stretch;\n }\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,WAAW,CAAC,4BAA4B,CAAC,YAAY,CAAC,6BAA6B,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["../../src/components/content/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n\n.component {\n flex-basis: 100%;\n display: grid;\n grid-template-columns: 1fr auto;\n\n &.horizontal {\n /* for button */\n align-self: stretch;\n }\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,WAAW,CAAC,4BAA4B,CAAC,YAAY,CAAC,6BAA6B,CAAC;;;;"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { FooterElement } from '../types';
2
+ import { type FooterElement } from '../types';
3
3
  declare type Props = {
4
4
  /**
5
5
  * Компоненты
@@ -1,7 +1,7 @@
1
1
  import React, { useContext } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { getDataTestId } from '@alfalab/core-components-shared/modern';
4
- import { PureCellContext } from '../../component.js';
4
+ import { PureCellContext } from '../../context.js';
5
5
  import styles from './index.module.css.js';
6
6
 
7
7
  const Footer = ({ children, footerPadding = 'default', dataTestId }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../../src/components/footer/component.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport cn from 'classnames';\n\nimport { getDataTestId } from '@alfalab/core-components-shared';\n\nimport { PureCellContext } from '../../component';\nimport { FooterElement } from '../types';\n\nimport styles from './index.module.css';\n\ntype Props = {\n /**\n * Компоненты\n */\n children: FooterElement;\n\n /**\n * Вертикальные отступы\n */\n footerPadding?: 'default' | 'none';\n\n /**\n * Идентификатор для систем автоматизированного тестирования.\n * Используется модификатор -footer\n */\n dataTestId?: string;\n};\n\nexport const Footer: React.FC<Props> = ({ children, footerPadding = 'default', dataTestId }) => {\n const pureCellContext = useContext(PureCellContext);\n\n return (\n <footer\n className={cn(styles.component, styles[footerPadding])}\n data-test-id={getDataTestId(dataTestId || pureCellContext.dataTestId, 'footer')}\n >\n {children}\n </footer>\n );\n};\n"],"names":[],"mappings":";;;;;;AA4BO,MAAM,MAAM,GAAoB,CAAC,EAAE,QAAQ,EAAE,aAAa,GAAG,SAAS,EAAE,UAAU,EAAE,KAAI;AAC3F,IAAA,MAAM,eAAe,GAAG,UAAU,CAAC,eAAe,CAAC;AAEnD,IAAA,QACI,KAAA,CAAA,aAAA,CAAA,QAAA,EAAA,EACI,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC,EACxC,cAAA,EAAA,aAAa,CAAC,UAAU,IAAI,eAAe,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAA,EAE9E,QAAQ,CACJ;AAEjB;;;;"}
1
+ {"version":3,"file":"component.js","sources":["../../../src/components/footer/component.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport cn from 'classnames';\n\nimport { getDataTestId } from '@alfalab/core-components-shared';\n\nimport { PureCellContext } from '../../context';\nimport { type FooterElement } from '../types';\n\nimport styles from './index.module.css';\n\ntype Props = {\n /**\n * Компоненты\n */\n children: FooterElement;\n\n /**\n * Вертикальные отступы\n */\n footerPadding?: 'default' | 'none';\n\n /**\n * Идентификатор для систем автоматизированного тестирования.\n * Используется модификатор -footer\n */\n dataTestId?: string;\n};\n\nexport const Footer: React.FC<Props> = ({ children, footerPadding = 'default', dataTestId }) => {\n const pureCellContext = useContext(PureCellContext);\n\n return (\n <footer\n className={cn(styles.component, styles[footerPadding])}\n data-test-id={getDataTestId(dataTestId || pureCellContext.dataTestId, 'footer')}\n >\n {children}\n </footer>\n );\n};\n"],"names":[],"mappings":";;;;;;AA4BO,MAAM,MAAM,GAAoB,CAAC,EAAE,QAAQ,EAAE,aAAa,GAAG,SAAS,EAAE,UAAU,EAAE,KAAI;AAC3F,IAAA,MAAM,eAAe,GAAG,UAAU,CAAC,eAAe,CAAC;AAEnD,IAAA,QACI,KAAA,CAAA,aAAA,CAAA,QAAA,EAAA,EACI,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC,EACxC,cAAA,EAAA,aAAa,CAAC,UAAU,IAAI,eAAe,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAA,EAE9E,QAAQ,CACJ;AAEjB;;;;"}
@@ -2,12 +2,12 @@
2
2
  --gap-xs: 8px;
3
3
  --gap-0: 0px;
4
4
  --gap-8: var(--gap-xs);
5
- } .pure-cell__component_rnpsh {
5
+ } .pure-cell__component_12l80 {
6
6
  grid-column: 1/3;
7
7
  display: grid;
8
- grid-row-gap: var(--gap-8)
9
- } .pure-cell__component_rnpsh.pure-cell__none_rnpsh {
8
+ grid-row-gap: var(--gap-8);
9
+ } .pure-cell__component_12l80.pure-cell__none_12l80 {
10
10
  margin-top: var(--gap-0);
11
- } .pure-cell__component_rnpsh.pure-cell__default_rnpsh {
11
+ } .pure-cell__component_12l80.pure-cell__default_12l80 {
12
12
  margin-top: var(--gap-8);
13
13
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"component":"pure-cell__component_rnpsh","none":"pure-cell__none_rnpsh","default":"pure-cell__default_rnpsh"};
3
+ const styles = {"component":"pure-cell__component_12l80","none":"pure-cell__none_12l80","default":"pure-cell__default_12l80"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["../../src/components/footer/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n.component {\n grid-column: 1/3;\n display: grid;\n grid-row-gap: var(--gap-8);\n\n &.none {\n margin-top: var(--gap-0);\n }\n\n &.default {\n margin-top: var(--gap-8);\n }\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,WAAW,CAAC,4BAA4B,CAAC,MAAM,CAAC,uBAAuB,CAAC,SAAS,CAAC,0BAA0B,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["../../src/components/footer/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n\n.component {\n grid-column: 1/3;\n display: grid;\n grid-row-gap: var(--gap-8);\n\n &.none {\n margin-top: var(--gap-0);\n }\n\n &.default {\n margin-top: var(--gap-8);\n }\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,WAAW,CAAC,4BAA4B,CAAC,MAAM,CAAC,uBAAuB,CAAC,SAAS,CAAC,0BAA0B,CAAC;;;;"}
@@ -1,5 +1,5 @@
1
- import React, { AnchorHTMLAttributes, ButtonHTMLAttributes } from 'react';
2
- import { ButtonProps } from '@alfalab/core-components-button/modern';
1
+ import React, { type AnchorHTMLAttributes, type ButtonHTMLAttributes } from 'react';
2
+ import { type ButtonProps } from '@alfalab/core-components-button/modern';
3
3
  declare type ComponentProps = Omit<ButtonProps, 'dataTestId'> & {
4
4
  /**
5
5
  * Идентификатор для систем автоматизированного тестирования.
@@ -1,7 +1,7 @@
1
1
  import React, { forwardRef, useContext } from 'react';
2
2
  import { Button } from '@alfalab/core-components-button/modern';
3
3
  import { getDataTestId } from '@alfalab/core-components-shared/modern';
4
- import { PureCellContext } from '../../component.js';
4
+ import { PureCellContext } from '../../context.js';
5
5
  import styles from './index.module.css.js';
6
6
 
7
7
  const FooterButton = forwardRef(({ children, dataTestId, onClick, onMouseDown, onMouseEnter, onMouseLeave, ...props }, ref) => {
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../../src/components/footer-button/component.tsx"],"sourcesContent":["import React, { AnchorHTMLAttributes, ButtonHTMLAttributes, forwardRef, useContext } from 'react';\n\nimport { Button, ButtonProps } from '@alfalab/core-components-button';\nimport { getDataTestId } from '@alfalab/core-components-shared';\n\nimport { PureCellContext } from '../../component';\n\nimport styles from './index.module.css';\n\ntype ComponentProps = Omit<ButtonProps, 'dataTestId'> & {\n /**\n * Идентификатор для систем автоматизированного тестирования.\n * Используется модификатор -button\n */\n dataTestId?: string;\n};\n\ntype FooterButtonProps = ComponentProps &\n Partial<AnchorHTMLAttributes<HTMLAnchorElement> | ButtonHTMLAttributes<HTMLButtonElement>>;\n\ntype FooterButtonMouseEvent = React.MouseEvent<HTMLAnchorElement, MouseEvent> &\n React.MouseEvent<HTMLButtonElement, MouseEvent>;\n\ntype FooterButtonMouseEventHandler =\n | React.MouseEventHandler<HTMLAnchorElement>\n | React.MouseEventHandler<HTMLButtonElement>;\n\nexport const FooterButton = forwardRef<HTMLButtonElement | HTMLAnchorElement, FooterButtonProps>(\n ({ children, dataTestId, onClick, onMouseDown, onMouseEnter, onMouseLeave, ...props }, ref) => {\n const pureCellContext = useContext(PureCellContext);\n\n const handleClick = (e: FooterButtonMouseEvent) => {\n e.stopPropagation();\n (onClick as FooterButtonMouseEventHandler)?.(e);\n };\n\n const handleMouseEnter = (e: FooterButtonMouseEvent) => {\n (onMouseEnter as FooterButtonMouseEventHandler)?.(e);\n pureCellContext.unsetMainHover?.();\n };\n\n const handleMouseLeave = (e: FooterButtonMouseEvent) => {\n (onMouseLeave as FooterButtonMouseEventHandler)?.(e);\n pureCellContext.setMainHover?.();\n };\n\n const handleMouseDown = (e: FooterButtonMouseEvent) => {\n (onMouseDown as FooterButtonMouseEventHandler)?.(e);\n e.stopPropagation();\n };\n\n return (\n <Button\n {...props}\n size='xxs'\n dataTestId={getDataTestId(dataTestId || pureCellContext.dataTestId, 'button')}\n className={styles.component}\n ref={ref}\n onClick={handleClick}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n onMouseDown={handleMouseDown}\n >\n {children}\n </Button>\n );\n },\n);\n"],"names":[],"mappings":";;;;;;AA2Ba,MAAA,YAAY,GAAG,UAAU,CAClC,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAI;AAC1F,IAAA,MAAM,eAAe,GAAG,UAAU,CAAC,eAAe,CAAC;AAEnD,IAAA,MAAM,WAAW,GAAG,CAAC,CAAyB,KAAI;QAC9C,CAAC,CAAC,eAAe,EAAE;AAClB,QAAA,OAAyC,GAAG,CAAC,CAAC;AACnD,KAAC;AAED,IAAA,MAAM,gBAAgB,GAAG,CAAC,CAAyB,KAAI;AAClD,QAAA,YAA8C,GAAG,CAAC,CAAC;AACpD,QAAA,eAAe,CAAC,cAAc,IAAI;AACtC,KAAC;AAED,IAAA,MAAM,gBAAgB,GAAG,CAAC,CAAyB,KAAI;AAClD,QAAA,YAA8C,GAAG,CAAC,CAAC;AACpD,QAAA,eAAe,CAAC,YAAY,IAAI;AACpC,KAAC;AAED,IAAA,MAAM,eAAe,GAAG,CAAC,CAAyB,KAAI;AACjD,QAAA,WAA6C,GAAG,CAAC,CAAC;QACnD,CAAC,CAAC,eAAe,EAAE;AACvB,KAAC;IAED,QACI,KAAC,CAAA,aAAA,CAAA,MAAM,EACC,EAAA,GAAA,KAAK,EACT,IAAI,EAAC,KAAK,EACV,UAAU,EAAE,aAAa,CAAC,UAAU,IAAI,eAAe,CAAC,UAAU,EAAE,QAAQ,CAAC,EAC7E,SAAS,EAAE,MAAM,CAAC,SAAS,EAC3B,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,WAAW,EACpB,YAAY,EAAE,gBAAgB,EAC9B,YAAY,EAAE,gBAAgB,EAC9B,WAAW,EAAE,eAAe,EAE3B,EAAA,QAAQ,CACJ;AAEjB,CAAC;;;;"}
1
+ {"version":3,"file":"component.js","sources":["../../../src/components/footer-button/component.tsx"],"sourcesContent":["import React, {\n type AnchorHTMLAttributes,\n type ButtonHTMLAttributes,\n forwardRef,\n useContext,\n} from 'react';\n\nimport { Button, type ButtonProps } from '@alfalab/core-components-button';\nimport { getDataTestId } from '@alfalab/core-components-shared';\n\nimport { PureCellContext } from '../../context';\n\nimport styles from './index.module.css';\n\ntype ComponentProps = Omit<ButtonProps, 'dataTestId'> & {\n /**\n * Идентификатор для систем автоматизированного тестирования.\n * Используется модификатор -button\n */\n dataTestId?: string;\n};\n\ntype FooterButtonProps = ComponentProps &\n Partial<AnchorHTMLAttributes<HTMLAnchorElement> | ButtonHTMLAttributes<HTMLButtonElement>>;\n\ntype FooterButtonMouseEvent = React.MouseEvent<HTMLAnchorElement, MouseEvent> &\n React.MouseEvent<HTMLButtonElement, MouseEvent>;\n\ntype FooterButtonMouseEventHandler =\n | React.MouseEventHandler<HTMLAnchorElement>\n | React.MouseEventHandler<HTMLButtonElement>;\n\nexport const FooterButton = forwardRef<HTMLButtonElement | HTMLAnchorElement, FooterButtonProps>(\n ({ children, dataTestId, onClick, onMouseDown, onMouseEnter, onMouseLeave, ...props }, ref) => {\n const pureCellContext = useContext(PureCellContext);\n\n const handleClick = (e: FooterButtonMouseEvent) => {\n e.stopPropagation();\n (onClick as FooterButtonMouseEventHandler)?.(e);\n };\n\n const handleMouseEnter = (e: FooterButtonMouseEvent) => {\n (onMouseEnter as FooterButtonMouseEventHandler)?.(e);\n pureCellContext.unsetMainHover?.();\n };\n\n const handleMouseLeave = (e: FooterButtonMouseEvent) => {\n (onMouseLeave as FooterButtonMouseEventHandler)?.(e);\n pureCellContext.setMainHover?.();\n };\n\n const handleMouseDown = (e: FooterButtonMouseEvent) => {\n (onMouseDown as FooterButtonMouseEventHandler)?.(e);\n e.stopPropagation();\n };\n\n return (\n <Button\n {...props}\n size='xxs'\n dataTestId={getDataTestId(dataTestId || pureCellContext.dataTestId, 'button')}\n className={styles.component}\n ref={ref}\n onClick={handleClick}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n onMouseDown={handleMouseDown}\n >\n {children}\n </Button>\n );\n },\n);\n"],"names":[],"mappings":";;;;;;AAgCa,MAAA,YAAY,GAAG,UAAU,CAClC,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAI;AAC1F,IAAA,MAAM,eAAe,GAAG,UAAU,CAAC,eAAe,CAAC;AAEnD,IAAA,MAAM,WAAW,GAAG,CAAC,CAAyB,KAAI;QAC9C,CAAC,CAAC,eAAe,EAAE;AAClB,QAAA,OAAyC,GAAG,CAAC,CAAC;AACnD,KAAC;AAED,IAAA,MAAM,gBAAgB,GAAG,CAAC,CAAyB,KAAI;AAClD,QAAA,YAA8C,GAAG,CAAC,CAAC;AACpD,QAAA,eAAe,CAAC,cAAc,IAAI;AACtC,KAAC;AAED,IAAA,MAAM,gBAAgB,GAAG,CAAC,CAAyB,KAAI;AAClD,QAAA,YAA8C,GAAG,CAAC,CAAC;AACpD,QAAA,eAAe,CAAC,YAAY,IAAI;AACpC,KAAC;AAED,IAAA,MAAM,eAAe,GAAG,CAAC,CAAyB,KAAI;AACjD,QAAA,WAA6C,GAAG,CAAC,CAAC;QACnD,CAAC,CAAC,eAAe,EAAE;AACvB,KAAC;IAED,QACI,KAAC,CAAA,aAAA,CAAA,MAAM,EACC,EAAA,GAAA,KAAK,EACT,IAAI,EAAC,KAAK,EACV,UAAU,EAAE,aAAa,CAAC,UAAU,IAAI,eAAe,CAAC,UAAU,EAAE,QAAQ,CAAC,EAC7E,SAAS,EAAE,MAAM,CAAC,SAAS,EAC3B,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,WAAW,EACpB,YAAY,EAAE,gBAAgB,EAC9B,YAAY,EAAE,gBAAgB,EAC9B,WAAW,EAAE,eAAe,EAE3B,EAAA,QAAQ,CACJ;AAEjB,CAAC;;;;"}
@@ -1,3 +1,3 @@
1
- .pure-cell__component_1wvho {
1
+ .pure-cell__component_1q0hb {
2
2
  justify-self: start;
3
3
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"component":"pure-cell__component_1wvho"};
3
+ const styles = {"component":"pure-cell__component_1q0hb"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["../../src/components/footer-button/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n.component {\n justify-self: start;\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,WAAW,CAAC,4BAA4B,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["../../src/components/footer-button/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n\n.component {\n justify-self: start;\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,WAAW,CAAC,4BAA4B,CAAC;;;;"}
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import React, { type ReactNode } from 'react';
2
2
  import { type Color } from '@alfalab/core-components-typography/modern';
3
3
  export declare type FooterTextProps = {
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  import React, { useContext } from 'react';
2
2
  import { getDataTestId } from '@alfalab/core-components-shared/modern';
3
3
  import { Text } from '@alfalab/core-components-typography/modern';
4
- import { PureCellContext } from '../../component.js';
4
+ import { PureCellContext } from '../../context.js';
5
5
 
6
6
  const FooterText = ({ children, color = 'secondary', dataTestId, }) => {
7
7
  const pureCellContext = useContext(PureCellContext);
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../../src/components/footer-text/component.tsx"],"sourcesContent":["import React, { ReactNode, useContext } from 'react';\n\nimport { getDataTestId } from '@alfalab/core-components-shared';\nimport { type Color, Text } from '@alfalab/core-components-typography';\n\nimport { PureCellContext } from '../../component';\n\nexport type FooterTextProps = {\n /**\n * Цвет текста\n */\n color?: Color;\n\n /**\n * Идентификатор для систем автоматизированного тестирования.\n * Используется модификатор -footer-title\n */\n dataTestId?: string;\n\n /**\n * Дочерние элементы.\n */\n children?: ReactNode;\n};\n\nexport const FooterText: React.FC<FooterTextProps> = ({\n children,\n color = 'secondary',\n dataTestId,\n}) => {\n const pureCellContext = useContext(PureCellContext);\n\n return (\n <Text\n view='primary-small'\n color={color}\n data-test-id={getDataTestId(dataTestId || pureCellContext.dataTestId, 'footer-title')}\n >\n {children}\n </Text>\n );\n};\n"],"names":[],"mappings":";;;;;AAyBO,MAAM,UAAU,GAA8B,CAAC,EAClD,QAAQ,EACR,KAAK,GAAG,WAAW,EACnB,UAAU,GACb,KAAI;AACD,IAAA,MAAM,eAAe,GAAG,UAAU,CAAC,eAAe,CAAC;IAEnD,QACI,KAAC,CAAA,aAAA,CAAA,IAAI,EACD,EAAA,IAAI,EAAC,eAAe,EACpB,KAAK,EAAE,KAAK,EACE,cAAA,EAAA,aAAa,CAAC,UAAU,IAAI,eAAe,CAAC,UAAU,EAAE,cAAc,CAAC,EAEpF,EAAA,QAAQ,CACN;AAEf;;;;"}
1
+ {"version":3,"file":"component.js","sources":["../../../src/components/footer-text/component.tsx"],"sourcesContent":["import React, { type ReactNode, useContext } from 'react';\n\nimport { getDataTestId } from '@alfalab/core-components-shared';\nimport { type Color, Text } from '@alfalab/core-components-typography';\n\nimport { PureCellContext } from '../../context';\n\nexport type FooterTextProps = {\n /**\n * Цвет текста\n */\n color?: Color;\n\n /**\n * Идентификатор для систем автоматизированного тестирования.\n * Используется модификатор -footer-title\n */\n dataTestId?: string;\n\n /**\n * Дочерние элементы.\n */\n children?: ReactNode;\n};\n\nexport const FooterText: React.FC<FooterTextProps> = ({\n children,\n color = 'secondary',\n dataTestId,\n}) => {\n const pureCellContext = useContext(PureCellContext);\n\n return (\n <Text\n view='primary-small'\n color={color}\n data-test-id={getDataTestId(dataTestId || pureCellContext.dataTestId, 'footer-title')}\n >\n {children}\n </Text>\n );\n};\n"],"names":[],"mappings":";;;;;AAyBO,MAAM,UAAU,GAA8B,CAAC,EAClD,QAAQ,EACR,KAAK,GAAG,WAAW,EACnB,UAAU,GACb,KAAI;AACD,IAAA,MAAM,eAAe,GAAG,UAAU,CAAC,eAAe,CAAC;IAEnD,QACI,KAAC,CAAA,aAAA,CAAA,IAAI,EACD,EAAA,IAAI,EAAC,eAAe,EACpB,KAAK,EAAE,KAAK,EACE,cAAA,EAAA,aAAa,CAAC,UAAU,IAAI,eAAe,CAAC,UAAU,EAAE,cAAc,CAAC,EAEpF,EAAA,QAAQ,CACN;AAEf;;;;"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { GraphicsElement } from '../types';
2
+ import { type GraphicsElement } from '../types';
3
3
  export declare type Props = {
4
4
  /**
5
5
  * Компоненты
@@ -1,7 +1,7 @@
1
1
  import React, { useContext } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { getDataTestId } from '@alfalab/core-components-shared/modern';
4
- import { PureCellContext } from '../../component.js';
4
+ import { PureCellContext } from '../../context.js';
5
5
  import styles from './index.module.css.js';
6
6
 
7
7
  const GRAPHICS_COMPONENT = {
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../../src/components/graphics/component.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport cn from 'classnames';\n\nimport { getDataTestId } from '@alfalab/core-components-shared';\n\nimport { PureCellContext } from '../../component';\nimport { GraphicsElement } from '../types';\n\nimport styles from './index.module.css';\n\nexport type Props = {\n /**\n * Компоненты\n */\n children: GraphicsElement;\n\n /**\n * Идентификатор для систем автоматизированного тестирования.\n * Используется модификатор -graphics\n */\n dataTestId?: string;\n\n /**\n * Вертикальное выравнивание\n */\n verticalAlign?: 'top' | 'center' | 'bottom';\n\n /**\n * Отступ от графики\n */\n graphicPadding?: 'max' | 'airy' | 'default' | 'compact' | 'tiny' | 'none';\n\n /**\n * Клик по контенту графики.\n */\n onClick?: () => void;\n};\n\nconst GRAPHICS_COMPONENT: Record<string, keyof Pick<React.ReactHTML, 'button' | 'section'>> = {\n button: 'button',\n section: 'section',\n};\n\nexport const Graphics: React.FC<Props> = ({\n children,\n dataTestId,\n verticalAlign = 'top',\n graphicPadding,\n onClick,\n}) => {\n const pureCellContext = useContext(PureCellContext);\n\n const Component = onClick ? GRAPHICS_COMPONENT.button : GRAPHICS_COMPONENT.section;\n\n const defaultGraphicPadding = pureCellContext.direction === 'horizontal' ? 'airy' : 'default';\n\n const onMouseEvents = {\n onClick: (e: React.MouseEvent<HTMLButtonElement>) => {\n e.stopPropagation();\n onClick?.();\n },\n onMouseEnter: () => {\n pureCellContext.unsetMainHover?.();\n },\n onMouseLeave: () => {\n pureCellContext.setMainHover?.();\n },\n onMouseDown: (e: React.MouseEvent<HTMLButtonElement>) => {\n e.stopPropagation();\n },\n };\n\n return (\n <Component\n className={cn(\n styles.component,\n styles[verticalAlign],\n styles[pureCellContext.direction || 'horizontal'],\n styles[graphicPadding || defaultGraphicPadding],\n { [styles.button]: onClick },\n )}\n data-test-id={getDataTestId(dataTestId || pureCellContext.dataTestId, 'graphics')}\n {...(onClick && onMouseEvents)}\n >\n {children}\n </Component>\n );\n};\n"],"names":[],"mappings":";;;;;;AAsCA,MAAM,kBAAkB,GAAsE;AAC1F,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,OAAO,EAAE,SAAS;CACrB;AAEY,MAAA,QAAQ,GAAoB,CAAC,EACtC,QAAQ,EACR,UAAU,EACV,aAAa,GAAG,KAAK,EACrB,cAAc,EACd,OAAO,GACV,KAAI;AACD,IAAA,MAAM,eAAe,GAAG,UAAU,CAAC,eAAe,CAAC;AAEnD,IAAA,MAAM,SAAS,GAAG,OAAO,GAAG,kBAAkB,CAAC,MAAM,GAAG,kBAAkB,CAAC,OAAO;AAElF,IAAA,MAAM,qBAAqB,GAAG,eAAe,CAAC,SAAS,KAAK,YAAY,GAAG,MAAM,GAAG,SAAS;AAE7F,IAAA,MAAM,aAAa,GAAG;AAClB,QAAA,OAAO,EAAE,CAAC,CAAsC,KAAI;YAChD,CAAC,CAAC,eAAe,EAAE;YACnB,OAAO,IAAI;SACd;QACD,YAAY,EAAE,MAAK;AACf,YAAA,eAAe,CAAC,cAAc,IAAI;SACrC;QACD,YAAY,EAAE,MAAK;AACf,YAAA,eAAe,CAAC,YAAY,IAAI;SACnC;AACD,QAAA,WAAW,EAAE,CAAC,CAAsC,KAAI;YACpD,CAAC,CAAC,eAAe,EAAE;SACtB;KACJ;AAED,IAAA,QACI,KAAA,CAAA,aAAA,CAAC,SAAS,EAAA,EACN,SAAS,EAAE,EAAE,CACT,MAAM,CAAC,SAAS,EAChB,MAAM,CAAC,aAAa,CAAC,EACrB,MAAM,CAAC,eAAe,CAAC,SAAS,IAAI,YAAY,CAAC,EACjD,MAAM,CAAC,cAAc,IAAI,qBAAqB,CAAC,EAC/C,EAAE,CAAC,MAAM,CAAC,MAAM,GAAG,OAAO,EAAE,CAC/B,EAAA,cAAA,EACa,aAAa,CAAC,UAAU,IAAI,eAAe,CAAC,UAAU,EAAE,UAAU,CAAC,EAAA,IAC5E,OAAO,IAAI,aAAa,CAAC,EAAA,EAE7B,QAAQ,CACD;AAEpB;;;;"}
1
+ {"version":3,"file":"component.js","sources":["../../../src/components/graphics/component.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport cn from 'classnames';\n\nimport { getDataTestId } from '@alfalab/core-components-shared';\n\nimport { PureCellContext } from '../../context';\nimport { type GraphicsElement } from '../types';\n\nimport styles from './index.module.css';\n\nexport type Props = {\n /**\n * Компоненты\n */\n children: GraphicsElement;\n\n /**\n * Идентификатор для систем автоматизированного тестирования.\n * Используется модификатор -graphics\n */\n dataTestId?: string;\n\n /**\n * Вертикальное выравнивание\n */\n verticalAlign?: 'top' | 'center' | 'bottom';\n\n /**\n * Отступ от графики\n */\n graphicPadding?: 'max' | 'airy' | 'default' | 'compact' | 'tiny' | 'none';\n\n /**\n * Клик по контенту графики.\n */\n onClick?: () => void;\n};\n\nconst GRAPHICS_COMPONENT: Record<string, keyof Pick<React.ReactHTML, 'button' | 'section'>> = {\n button: 'button',\n section: 'section',\n};\n\nexport const Graphics: React.FC<Props> = ({\n children,\n dataTestId,\n verticalAlign = 'top',\n graphicPadding,\n onClick,\n}) => {\n const pureCellContext = useContext(PureCellContext);\n\n const Component = onClick ? GRAPHICS_COMPONENT.button : GRAPHICS_COMPONENT.section;\n\n const defaultGraphicPadding = pureCellContext.direction === 'horizontal' ? 'airy' : 'default';\n\n const onMouseEvents = {\n onClick: (e: React.MouseEvent<HTMLButtonElement>) => {\n e.stopPropagation();\n onClick?.();\n },\n onMouseEnter: () => {\n pureCellContext.unsetMainHover?.();\n },\n onMouseLeave: () => {\n pureCellContext.setMainHover?.();\n },\n onMouseDown: (e: React.MouseEvent<HTMLButtonElement>) => {\n e.stopPropagation();\n },\n };\n\n return (\n <Component\n className={cn(\n styles.component,\n styles[verticalAlign],\n styles[pureCellContext.direction || 'horizontal'],\n styles[graphicPadding || defaultGraphicPadding],\n { [styles.button]: onClick },\n )}\n data-test-id={getDataTestId(dataTestId || pureCellContext.dataTestId, 'graphics')}\n {...(onClick && onMouseEvents)}\n >\n {children}\n </Component>\n );\n};\n"],"names":[],"mappings":";;;;;;AAsCA,MAAM,kBAAkB,GAAsE;AAC1F,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,OAAO,EAAE,SAAS;CACrB;AAEY,MAAA,QAAQ,GAAoB,CAAC,EACtC,QAAQ,EACR,UAAU,EACV,aAAa,GAAG,KAAK,EACrB,cAAc,EACd,OAAO,GACV,KAAI;AACD,IAAA,MAAM,eAAe,GAAG,UAAU,CAAC,eAAe,CAAC;AAEnD,IAAA,MAAM,SAAS,GAAG,OAAO,GAAG,kBAAkB,CAAC,MAAM,GAAG,kBAAkB,CAAC,OAAO;AAElF,IAAA,MAAM,qBAAqB,GAAG,eAAe,CAAC,SAAS,KAAK,YAAY,GAAG,MAAM,GAAG,SAAS;AAE7F,IAAA,MAAM,aAAa,GAAG;AAClB,QAAA,OAAO,EAAE,CAAC,CAAsC,KAAI;YAChD,CAAC,CAAC,eAAe,EAAE;YACnB,OAAO,IAAI;SACd;QACD,YAAY,EAAE,MAAK;AACf,YAAA,eAAe,CAAC,cAAc,IAAI;SACrC;QACD,YAAY,EAAE,MAAK;AACf,YAAA,eAAe,CAAC,YAAY,IAAI;SACnC;AACD,QAAA,WAAW,EAAE,CAAC,CAAsC,KAAI;YACpD,CAAC,CAAC,eAAe,EAAE;SACtB;KACJ;AAED,IAAA,QACI,KAAA,CAAA,aAAA,CAAC,SAAS,EAAA,EACN,SAAS,EAAE,EAAE,CACT,MAAM,CAAC,SAAS,EAChB,MAAM,CAAC,aAAa,CAAC,EACrB,MAAM,CAAC,eAAe,CAAC,SAAS,IAAI,YAAY,CAAC,EACjD,MAAM,CAAC,cAAc,IAAI,qBAAqB,CAAC,EAC/C,EAAE,CAAC,MAAM,CAAC,MAAM,GAAG,OAAO,EAAE,CAC/B,EAAA,cAAA,EACa,aAAa,CAAC,UAAU,IAAI,eAAe,CAAC,UAAU,EAAE,UAAU,CAAC,EAAA,IAC5E,OAAO,IAAI,aAAa,CAAC,EAAA,EAE7B,QAAQ,CACD;AAEpB;;;;"}
@@ -1,4 +1,6 @@
1
1
  :root {
2
+ --border-radius-0: 0;
3
+ } :root {
2
4
  --gap-2xs: 4px;
3
5
  --gap-xs: 8px;
4
6
  --gap-s: 12px;
@@ -13,40 +15,40 @@
13
15
  } :root {
14
16
  --pure-cell-clickable-area-hover-opacity: 1;
15
17
  --pure-cell-clickable-area-active-opacity: 1;
16
- } .pure-cell__component_1ad51 {
18
+ } .pure-cell__component_fhs7c {
17
19
  display: inline-flex;
18
20
  flex-basis: auto;
19
- } .pure-cell__top_1ad51 {
21
+ } .pure-cell__top_fhs7c {
20
22
  align-self: flex-start;
21
- } .pure-cell__center_1ad51 {
23
+ } .pure-cell__center_fhs7c {
22
24
  align-self: center;
23
- } .pure-cell__bottom_1ad51 {
25
+ } .pure-cell__bottom_fhs7c {
24
26
  align-self: flex-end;
25
- } .pure-cell__horizontal_1ad51:not(:last-child).pure-cell__none_1ad51 {
27
+ } .pure-cell__horizontal_fhs7c.pure-cell__none_fhs7c:not(:last-child) {
26
28
  margin-right: var(--gap-0);
27
- } .pure-cell__horizontal_1ad51:not(:last-child).pure-cell__max_1ad51 {
29
+ } .pure-cell__horizontal_fhs7c.pure-cell__max_fhs7c:not(:last-child) {
28
30
  margin-right: var(--gap-24);
29
- } .pure-cell__horizontal_1ad51:not(:last-child).pure-cell__airy_1ad51 {
31
+ } .pure-cell__horizontal_fhs7c.pure-cell__airy_fhs7c:not(:last-child) {
30
32
  margin-right: var(--gap-16);
31
- } .pure-cell__horizontal_1ad51:not(:last-child).pure-cell__default_1ad51 {
33
+ } .pure-cell__horizontal_fhs7c.pure-cell__default_fhs7c:not(:last-child) {
32
34
  margin-right: var(--gap-12);
33
- } .pure-cell__horizontal_1ad51:not(:last-child).pure-cell__compact_1ad51 {
35
+ } .pure-cell__horizontal_fhs7c.pure-cell__compact_fhs7c:not(:last-child) {
34
36
  margin-right: var(--gap-8);
35
- } .pure-cell__horizontal_1ad51:not(:last-child).pure-cell__tiny_1ad51 {
37
+ } .pure-cell__horizontal_fhs7c.pure-cell__tiny_fhs7c:not(:last-child) {
36
38
  margin-right: var(--gap-4);
37
- } .pure-cell__vertical_1ad51:not(:last-child).pure-cell__none_1ad51 {
39
+ } .pure-cell__vertical_fhs7c.pure-cell__none_fhs7c:not(:last-child) {
38
40
  margin-bottom: var(--gap-0);
39
- } .pure-cell__vertical_1ad51:not(:last-child).pure-cell__max_1ad51 {
41
+ } .pure-cell__vertical_fhs7c.pure-cell__max_fhs7c:not(:last-child) {
40
42
  margin-bottom: var(--gap-24);
41
- } .pure-cell__vertical_1ad51:not(:last-child).pure-cell__airy_1ad51 {
43
+ } .pure-cell__vertical_fhs7c.pure-cell__airy_fhs7c:not(:last-child) {
42
44
  margin-bottom: var(--gap-16);
43
- } .pure-cell__vertical_1ad51:not(:last-child).pure-cell__default_1ad51 {
45
+ } .pure-cell__vertical_fhs7c.pure-cell__default_fhs7c:not(:last-child) {
44
46
  margin-bottom: var(--gap-12);
45
- } .pure-cell__vertical_1ad51:not(:last-child).pure-cell__compact_1ad51 {
47
+ } .pure-cell__vertical_fhs7c.pure-cell__compact_fhs7c:not(:last-child) {
46
48
  margin-bottom: var(--gap-8);
47
- } .pure-cell__vertical_1ad51:not(:last-child).pure-cell__tiny_1ad51 {
49
+ } .pure-cell__vertical_fhs7c.pure-cell__tiny_fhs7c:not(:last-child) {
48
50
  margin-bottom: var(--gap-4);
49
- } .pure-cell__button_1ad51 {
51
+ } .pure-cell__button_fhs7c {
50
52
  -webkit-tap-highlight-color: transparent;
51
53
  box-sizing: border-box;
52
54
  background-color: transparent;
@@ -54,7 +56,7 @@
54
56
  border: 0;
55
57
  margin: var(--gap-0);
56
58
  box-shadow: none;
57
- border-radius: 0;
59
+ border-radius: var(--border-radius-0);
58
60
  -webkit-user-select: none;
59
61
  -moz-user-select: none;
60
62
  user-select: none;
@@ -67,9 +69,9 @@
67
69
  cursor: pointer;
68
70
  padding: var(--gap-0);
69
71
  transition: opacity 0.15s ease-in-out;
70
- min-width: auto
71
- } .pure-cell__button_1ad51:hover {
72
+ min-width: auto;
73
+ } .pure-cell__button_fhs7c:hover {
72
74
  opacity: var(--pure-cell-clickable-area-hover-opacity);
73
- } .pure-cell__button_1ad51:active {
75
+ } .pure-cell__button_fhs7c:active {
74
76
  opacity: var(--pure-cell-clickable-area-active-opacity);
75
77
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"component":"pure-cell__component_1ad51","top":"pure-cell__top_1ad51","center":"pure-cell__center_1ad51","bottom":"pure-cell__bottom_1ad51","horizontal":"pure-cell__horizontal_1ad51","none":"pure-cell__none_1ad51","max":"pure-cell__max_1ad51","airy":"pure-cell__airy_1ad51","default":"pure-cell__default_1ad51","compact":"pure-cell__compact_1ad51","tiny":"pure-cell__tiny_1ad51","vertical":"pure-cell__vertical_1ad51","button":"pure-cell__button_1ad51"};
3
+ const styles = {"component":"pure-cell__component_fhs7c","top":"pure-cell__top_fhs7c","center":"pure-cell__center_fhs7c","bottom":"pure-cell__bottom_fhs7c","horizontal":"pure-cell__horizontal_fhs7c","none":"pure-cell__none_fhs7c","max":"pure-cell__max_fhs7c","airy":"pure-cell__airy_fhs7c","default":"pure-cell__default_fhs7c","compact":"pure-cell__compact_fhs7c","tiny":"pure-cell__tiny_fhs7c","vertical":"pure-cell__vertical_fhs7c","button":"pure-cell__button_fhs7c"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { MainElement } from '../types';
2
+ import { type MainElement } from '../types';
3
3
  declare type Props = {
4
4
  /**
5
5
  * Компоненты
@@ -1,7 +1,7 @@
1
1
  import React, { useContext } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { getDataTestId } from '@alfalab/core-components-shared/modern';
4
- import { PureCellContext } from '../../component.js';
4
+ import { PureCellContext } from '../../context.js';
5
5
  import styles from './index.module.css.js';
6
6
 
7
7
  const MAIN_COMPONENT = {
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../../src/components/main/component.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport cn from 'classnames';\n\nimport { getDataTestId } from '@alfalab/core-components-shared';\n\nimport { PureCellContext } from '../../component';\nimport { MainElement } from '../types';\n\nimport styles from './index.module.css';\n\ntype Props = {\n /**\n * Компоненты\n */\n children: MainElement;\n\n /**\n * Позволяет изменить расположение блоков внутри main\n */\n isReverse?: boolean;\n\n /**\n * Дополнительный класс\n */\n className?: string;\n\n /**\n * Идентификатор для систем автоматизированного тестирования.\n * Используется модификатор -main\n */\n dataTestId?: string;\n\n /**\n * Клик по контенту.\n */\n onClick?: () => void;\n};\n\nconst MAIN_COMPONENT: Record<string, keyof Pick<React.ReactHTML, 'button' | 'section'>> = {\n button: 'button',\n section: 'section',\n};\n\nexport const Main: React.FC<Props> = ({ children, isReverse, className, dataTestId, onClick }) => {\n const {\n direction = 'horizontal',\n dataTestId: contextDataTestId,\n setMainHover,\n unsetMainHover,\n } = useContext(PureCellContext);\n\n const Component = onClick ? MAIN_COMPONENT.button : MAIN_COMPONENT.section;\n\n const onMouseEvents = {\n onClick: (e: React.MouseEvent<HTMLButtonElement>) => {\n e.stopPropagation();\n onClick?.();\n },\n onMouseEnter: () => {\n unsetMainHover?.();\n },\n onMouseLeave: () => {\n setMainHover?.();\n },\n onMouseDown: (e: React.MouseEvent<HTMLButtonElement>) => {\n e.stopPropagation();\n },\n };\n\n return (\n <Component\n className={cn(\n styles.component,\n styles[direction],\n {\n [styles.reverse]: isReverse,\n },\n { [styles.button]: onClick },\n className,\n )}\n data-test-id={getDataTestId(dataTestId || contextDataTestId, 'main')}\n {...(onClick && onMouseEvents)}\n >\n {children}\n </Component>\n );\n};\n"],"names":[],"mappings":";;;;;;AAsCA,MAAM,cAAc,GAAsE;AACtF,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,OAAO,EAAE,SAAS;CACrB;AAEY,MAAA,IAAI,GAAoB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,KAAI;AAC7F,IAAA,MAAM,EACF,SAAS,GAAG,YAAY,EACxB,UAAU,EAAE,iBAAiB,EAC7B,YAAY,EACZ,cAAc,GACjB,GAAG,UAAU,CAAC,eAAe,CAAC;AAE/B,IAAA,MAAM,SAAS,GAAG,OAAO,GAAG,cAAc,CAAC,MAAM,GAAG,cAAc,CAAC,OAAO;AAE1E,IAAA,MAAM,aAAa,GAAG;AAClB,QAAA,OAAO,EAAE,CAAC,CAAsC,KAAI;YAChD,CAAC,CAAC,eAAe,EAAE;YACnB,OAAO,IAAI;SACd;QACD,YAAY,EAAE,MAAK;YACf,cAAc,IAAI;SACrB;QACD,YAAY,EAAE,MAAK;YACf,YAAY,IAAI;SACnB;AACD,QAAA,WAAW,EAAE,CAAC,CAAsC,KAAI;YACpD,CAAC,CAAC,eAAe,EAAE;SACtB;KACJ;AAED,IAAA,QACI,KAAC,CAAA,aAAA,CAAA,SAAS,EACN,EAAA,SAAS,EAAE,EAAE,CACT,MAAM,CAAC,SAAS,EAChB,MAAM,CAAC,SAAS,CAAC,EACjB;AACI,YAAA,CAAC,MAAM,CAAC,OAAO,GAAG,SAAS;AAC9B,SAAA,EACD,EAAE,CAAC,MAAM,CAAC,MAAM,GAAG,OAAO,EAAE,EAC5B,SAAS,CACZ,kBACa,aAAa,CAAC,UAAU,IAAI,iBAAiB,EAAE,MAAM,CAAC,MAC/D,OAAO,IAAI,aAAa,CAAC,EAAA,EAE7B,QAAQ,CACD;AAEpB;;;;"}
1
+ {"version":3,"file":"component.js","sources":["../../../src/components/main/component.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport cn from 'classnames';\n\nimport { getDataTestId } from '@alfalab/core-components-shared';\n\nimport { PureCellContext } from '../../context';\nimport { type MainElement } from '../types';\n\nimport styles from './index.module.css';\n\ntype Props = {\n /**\n * Компоненты\n */\n children: MainElement;\n\n /**\n * Позволяет изменить расположение блоков внутри main\n */\n isReverse?: boolean;\n\n /**\n * Дополнительный класс\n */\n className?: string;\n\n /**\n * Идентификатор для систем автоматизированного тестирования.\n * Используется модификатор -main\n */\n dataTestId?: string;\n\n /**\n * Клик по контенту.\n */\n onClick?: () => void;\n};\n\nconst MAIN_COMPONENT: Record<string, keyof Pick<React.ReactHTML, 'button' | 'section'>> = {\n button: 'button',\n section: 'section',\n};\n\nexport const Main: React.FC<Props> = ({ children, isReverse, className, dataTestId, onClick }) => {\n const {\n direction = 'horizontal',\n dataTestId: contextDataTestId,\n setMainHover,\n unsetMainHover,\n } = useContext(PureCellContext);\n\n const Component = onClick ? MAIN_COMPONENT.button : MAIN_COMPONENT.section;\n\n const onMouseEvents = {\n onClick: (e: React.MouseEvent<HTMLButtonElement>) => {\n e.stopPropagation();\n onClick?.();\n },\n onMouseEnter: () => {\n unsetMainHover?.();\n },\n onMouseLeave: () => {\n setMainHover?.();\n },\n onMouseDown: (e: React.MouseEvent<HTMLButtonElement>) => {\n e.stopPropagation();\n },\n };\n\n return (\n <Component\n className={cn(\n styles.component,\n styles[direction],\n {\n [styles.reverse]: isReverse,\n },\n { [styles.button]: onClick },\n className,\n )}\n data-test-id={getDataTestId(dataTestId || contextDataTestId, 'main')}\n {...(onClick && onMouseEvents)}\n >\n {children}\n </Component>\n );\n};\n"],"names":[],"mappings":";;;;;;AAsCA,MAAM,cAAc,GAAsE;AACtF,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,OAAO,EAAE,SAAS;CACrB;AAEY,MAAA,IAAI,GAAoB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,KAAI;AAC7F,IAAA,MAAM,EACF,SAAS,GAAG,YAAY,EACxB,UAAU,EAAE,iBAAiB,EAC7B,YAAY,EACZ,cAAc,GACjB,GAAG,UAAU,CAAC,eAAe,CAAC;AAE/B,IAAA,MAAM,SAAS,GAAG,OAAO,GAAG,cAAc,CAAC,MAAM,GAAG,cAAc,CAAC,OAAO;AAE1E,IAAA,MAAM,aAAa,GAAG;AAClB,QAAA,OAAO,EAAE,CAAC,CAAsC,KAAI;YAChD,CAAC,CAAC,eAAe,EAAE;YACnB,OAAO,IAAI;SACd;QACD,YAAY,EAAE,MAAK;YACf,cAAc,IAAI;SACrB;QACD,YAAY,EAAE,MAAK;YACf,YAAY,IAAI;SACnB;AACD,QAAA,WAAW,EAAE,CAAC,CAAsC,KAAI;YACpD,CAAC,CAAC,eAAe,EAAE;SACtB;KACJ;AAED,IAAA,QACI,KAAC,CAAA,aAAA,CAAA,SAAS,EACN,EAAA,SAAS,EAAE,EAAE,CACT,MAAM,CAAC,SAAS,EAChB,MAAM,CAAC,SAAS,CAAC,EACjB;AACI,YAAA,CAAC,MAAM,CAAC,OAAO,GAAG,SAAS;AAC9B,SAAA,EACD,EAAE,CAAC,MAAM,CAAC,MAAM,GAAG,OAAO,EAAE,EAC5B,SAAS,CACZ,kBACa,aAAa,CAAC,UAAU,IAAI,iBAAiB,EAAE,MAAM,CAAC,MAC/D,OAAO,IAAI,aAAa,CAAC,EAAA,EAE7B,QAAQ,CACD;AAEpB;;;;"}
@@ -1,23 +1,25 @@
1
1
  :root {
2
+ --border-radius-0: 0;
3
+ } :root {
2
4
  --gap-3xs: 2px;
3
5
  --gap-0: 0px;
4
6
  --gap-2: var(--gap-3xs);
5
7
  } :root {
6
8
  --pure-cell-clickable-area-hover-opacity: 1;
7
9
  --pure-cell-clickable-area-active-opacity: 1;
8
- } .pure-cell__component_1uyv3 {
10
+ } .pure-cell__component_2x9sd {
9
11
  display: flex;
10
12
  flex-direction: column;
11
13
  align-self: center;
12
- white-space: pre-line
13
- } .pure-cell__component_1uyv3.pure-cell__vertical_1uyv3 {
14
+ white-space: pre-line;
15
+ } .pure-cell__component_2x9sd.pure-cell__vertical_2x9sd {
14
16
  grid-row-gap: var(--gap-2);
15
17
  justify-content: center;
16
18
  align-items: center;
17
19
  text-align: center;
18
- } .pure-cell__component_1uyv3.pure-cell__reverse_1uyv3 {
20
+ } .pure-cell__component_2x9sd.pure-cell__reverse_2x9sd {
19
21
  flex-direction: column-reverse;
20
- } .pure-cell__component_1uyv3.pure-cell__button_1uyv3 {
22
+ } .pure-cell__component_2x9sd.pure-cell__button_2x9sd {
21
23
  -webkit-tap-highlight-color: transparent;
22
24
  box-sizing: border-box;
23
25
  background-color: transparent;
@@ -25,7 +27,7 @@
25
27
  border: 0;
26
28
  margin: var(--gap-0);
27
29
  box-shadow: none;
28
- border-radius: 0;
30
+ border-radius: var(--border-radius-0);
29
31
  -webkit-user-select: none;
30
32
  -moz-user-select: none;
31
33
  user-select: none;
@@ -38,9 +40,9 @@
38
40
  cursor: pointer;
39
41
  padding: var(--gap-0);
40
42
  transition: opacity 0.15s ease-in-out;
41
- min-width: auto
42
- } .pure-cell__component_1uyv3.pure-cell__button_1uyv3:hover {
43
+ min-width: auto;
44
+ } .pure-cell__component_2x9sd.pure-cell__button_2x9sd:hover {
43
45
  opacity: var(--pure-cell-clickable-area-hover-opacity);
44
- } .pure-cell__component_1uyv3.pure-cell__button_1uyv3:active {
46
+ } .pure-cell__component_2x9sd.pure-cell__button_2x9sd:active {
45
47
  opacity: var(--pure-cell-clickable-area-active-opacity);
46
48
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"component":"pure-cell__component_1uyv3","vertical":"pure-cell__vertical_1uyv3","reverse":"pure-cell__reverse_1uyv3","button":"pure-cell__button_1uyv3"};
3
+ const styles = {"component":"pure-cell__component_2x9sd","vertical":"pure-cell__vertical_2x9sd","reverse":"pure-cell__reverse_2x9sd","button":"pure-cell__button_2x9sd"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import React, { type ReactNode } from 'react';
2
2
  import { type Color } from '@alfalab/core-components-typography/modern';
3
3
  declare type Props = {
4
4
  /**
@@ -2,7 +2,7 @@ import React, { useContext } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { getDataTestId } from '@alfalab/core-components-shared/modern';
4
4
  import { Text as Text$1 } from '@alfalab/core-components-typography/modern';
5
- import { PureCellContext } from '../../component.js';
5
+ import { PureCellContext } from '../../context.js';
6
6
  import styles from './index.module.css.js';
7
7
 
8
8
  const Text = ({ children, value, rowLimit, view = 'component-primary', titleWeight, titleColor, valueColor, dataTestId, }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../../src/components/text/component.tsx"],"sourcesContent":["import React, { ReactNode, useContext } from 'react';\nimport cn from 'classnames';\n\nimport { getDataTestId } from '@alfalab/core-components-shared';\nimport { type Color, Text as TypographyText } from '@alfalab/core-components-typography';\n\nimport { PureCellContext } from '../../component';\n\nimport styles from './index.module.css';\n\ntype Props = {\n /**\n * Контент\n */\n children?: ReactNode;\n\n /**\n * Количество строк\n */\n rowLimit?: 1 | 2;\n\n /**\n * Размер текста\n */\n view?:\n | 'primary-large'\n | 'primary-medium'\n | 'primary-small'\n | 'component'\n | 'component-primary'\n | 'secondary-large';\n\n /**\n * Толщина title\n */\n titleWeight?: 'regular' | 'bold';\n\n /**\n * Цвет title\n */\n titleColor: Color;\n\n /**\n * Value ячейки\n */\n value?: ReactNode;\n\n /**\n * Цвет value\n */\n valueColor?: Color;\n\n /**\n * Идентификатор для систем автоматизированного тестирования.\n * Для контента используется модификатор -text_content, для value ячейки -text_value\n */\n dataTestId?: string;\n};\n\nexport const Text: React.FC<Props> = ({\n children,\n value,\n rowLimit,\n view = 'component-primary',\n titleWeight,\n titleColor,\n valueColor,\n dataTestId,\n}) => {\n const { direction = 'horizontal', dataTestId: contextDataTestId } = useContext(PureCellContext);\n const className = rowLimit && styles[`rowLimit${rowLimit}`];\n\n return (\n <div\n className={cn(styles.component, {\n [styles.vertical]: direction !== 'horizontal',\n })}\n >\n <div className={styles.title}>\n <TypographyText\n view={view}\n weight={titleWeight}\n tag='div'\n color={titleColor}\n className={className}\n data-test-id={getDataTestId(dataTestId || contextDataTestId, 'text_content')}\n >\n {children}\n </TypographyText>\n </div>\n\n {value && (\n <div className={styles.value}>\n <TypographyText\n view={view}\n tag='div'\n color={valueColor}\n className={className}\n data-test-id={getDataTestId(dataTestId || contextDataTestId, 'text_value')}\n >\n {value}\n </TypographyText>\n </div>\n )}\n </div>\n );\n};\n"],"names":["TypographyText"],"mappings":";;;;;;;AA2Da,MAAA,IAAI,GAAoB,CAAC,EAClC,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,IAAI,GAAG,mBAAmB,EAC1B,WAAW,EACX,UAAU,EACV,UAAU,EACV,UAAU,GACb,KAAI;AACD,IAAA,MAAM,EAAE,SAAS,GAAG,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC;IAC/F,MAAM,SAAS,GAAG,QAAQ,IAAI,MAAM,CAAC,CAAW,QAAA,EAAA,QAAQ,CAAE,CAAA,CAAC;IAE3D,QACI,6BACI,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE;AAC5B,YAAA,CAAC,MAAM,CAAC,QAAQ,GAAG,SAAS,KAAK,YAAY;SAChD,CAAC,EAAA;AAEF,QAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,KAAK,EAAA;AACxB,YAAA,KAAA,CAAA,aAAA,CAACA,MAAc,EAAA,EACX,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,WAAW,EACnB,GAAG,EAAC,KAAK,EACT,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,SAAS,EAAA,cAAA,EACN,aAAa,CAAC,UAAU,IAAI,iBAAiB,EAAE,cAAc,CAAC,EAE3E,EAAA,QAAQ,CACI,CACf;AAEL,QAAA,KAAK,KACF,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,KAAK,EAAA;AACxB,YAAA,KAAA,CAAA,aAAA,CAACA,MAAc,EAAA,EACX,IAAI,EAAE,IAAI,EACV,GAAG,EAAC,KAAK,EACT,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,SAAS,EAAA,cAAA,EACN,aAAa,CAAC,UAAU,IAAI,iBAAiB,EAAE,YAAY,CAAC,EAAA,EAEzE,KAAK,CACO,CACf,CACT,CACC;AAEd;;;;"}
1
+ {"version":3,"file":"component.js","sources":["../../../src/components/text/component.tsx"],"sourcesContent":["import React, { type ReactNode, useContext } from 'react';\nimport cn from 'classnames';\n\nimport { getDataTestId } from '@alfalab/core-components-shared';\nimport { type Color, Text as TypographyText } from '@alfalab/core-components-typography';\n\nimport { PureCellContext } from '../../context';\n\nimport styles from './index.module.css';\n\ntype Props = {\n /**\n * Контент\n */\n children?: ReactNode;\n\n /**\n * Количество строк\n */\n rowLimit?: 1 | 2;\n\n /**\n * Размер текста\n */\n view?:\n | 'primary-large'\n | 'primary-medium'\n | 'primary-small'\n | 'component'\n | 'component-primary'\n | 'secondary-large';\n\n /**\n * Толщина title\n */\n titleWeight?: 'regular' | 'bold';\n\n /**\n * Цвет title\n */\n titleColor: Color;\n\n /**\n * Value ячейки\n */\n value?: ReactNode;\n\n /**\n * Цвет value\n */\n valueColor?: Color;\n\n /**\n * Идентификатор для систем автоматизированного тестирования.\n * Для контента используется модификатор -text_content, для value ячейки -text_value\n */\n dataTestId?: string;\n};\n\nexport const Text: React.FC<Props> = ({\n children,\n value,\n rowLimit,\n view = 'component-primary',\n titleWeight,\n titleColor,\n valueColor,\n dataTestId,\n}) => {\n const { direction = 'horizontal', dataTestId: contextDataTestId } = useContext(PureCellContext);\n const className = rowLimit && styles[`rowLimit${rowLimit}`];\n\n return (\n <div\n className={cn(styles.component, {\n [styles.vertical]: direction !== 'horizontal',\n })}\n >\n <div className={styles.title}>\n <TypographyText\n view={view}\n weight={titleWeight}\n tag='div'\n color={titleColor}\n className={className}\n data-test-id={getDataTestId(dataTestId || contextDataTestId, 'text_content')}\n >\n {children}\n </TypographyText>\n </div>\n\n {value && (\n <div className={styles.value}>\n <TypographyText\n view={view}\n tag='div'\n color={valueColor}\n className={className}\n data-test-id={getDataTestId(dataTestId || contextDataTestId, 'text_value')}\n >\n {value}\n </TypographyText>\n </div>\n )}\n </div>\n );\n};\n"],"names":["TypographyText"],"mappings":";;;;;;;AA2Da,MAAA,IAAI,GAAoB,CAAC,EAClC,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,IAAI,GAAG,mBAAmB,EAC1B,WAAW,EACX,UAAU,EACV,UAAU,EACV,UAAU,GACb,KAAI;AACD,IAAA,MAAM,EAAE,SAAS,GAAG,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC;IAC/F,MAAM,SAAS,GAAG,QAAQ,IAAI,MAAM,CAAC,CAAW,QAAA,EAAA,QAAQ,CAAE,CAAA,CAAC;IAE3D,QACI,6BACI,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE;AAC5B,YAAA,CAAC,MAAM,CAAC,QAAQ,GAAG,SAAS,KAAK,YAAY;SAChD,CAAC,EAAA;AAEF,QAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,KAAK,EAAA;AACxB,YAAA,KAAA,CAAA,aAAA,CAACA,MAAc,EAAA,EACX,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,WAAW,EACnB,GAAG,EAAC,KAAK,EACT,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,SAAS,EAAA,cAAA,EACN,aAAa,CAAC,UAAU,IAAI,iBAAiB,EAAE,cAAc,CAAC,EAE3E,EAAA,QAAQ,CACI,CACf;AAEL,QAAA,KAAK,KACF,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,KAAK,EAAA;AACxB,YAAA,KAAA,CAAA,aAAA,CAACA,MAAc,EAAA,EACX,IAAI,EAAE,IAAI,EACV,GAAG,EAAC,KAAK,EACT,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,SAAS,EAAA,cAAA,EACN,aAAa,CAAC,UAAU,IAAI,iBAAiB,EAAE,YAAY,CAAC,EAAA,EAEzE,KAAK,CACO,CACf,CACT,CACC;AAEd;;;;"}