@redneckz/wildless-cms-uni-blocks 0.6.36 → 0.6.37

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 (516) hide show
  1. package/bin/migration-scripts/0.6.32.js +6 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +121 -113
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
  6. package/{lib/components/InvestmentGallery/InvestmentGalleryContent.d.ts → bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts} +19 -23
  7. package/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  8. package/bundle/components/Gallery/GalleryContent.d.ts +5 -0
  9. package/bundle/components/ImgBlock/ImgBlock.d.ts +6 -0
  10. package/bundle/components/ImgBlock/ImgBlockContent.d.ts +7 -0
  11. package/bundle/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
  12. package/bundle/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
  13. package/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  14. package/bundle/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  15. package/bundle/components/Video/VideoContent.d.ts +1 -0
  16. package/bundle/ui-kit/Paragraph/Paragraph.d.ts +1 -8
  17. package/bundle/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
  18. package/bundle/ui-kit/Radio/RadioProps.d.ts +1 -2
  19. package/bundle/ui-kit/Text/Text.d.ts +1 -26
  20. package/bundle/ui-kit/Text/TextProps.d.ts +26 -0
  21. package/dist/components/Blocks.js +7 -3
  22. package/dist/components/Blocks.js.map +1 -1
  23. package/dist/components/Calculator/BonusCalculatorForm.js +4 -2
  24. package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  25. package/dist/components/Calculator/CreditCalculatorForm.js +3 -1
  26. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  27. package/dist/components/Calculator/DepositCalculatorForm.js +5 -2
  28. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  29. package/dist/components/Carousel/Carousel.js +2 -1
  30. package/dist/components/Carousel/Carousel.js.map +1 -1
  31. package/dist/components/CarouselCard/CarouselCard.js +2 -2
  32. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  33. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
  34. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +28 -0
  35. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -0
  36. package/dist/components/{InvestmentGallery/InvestmentGalleryContent.d.ts → CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts} +19 -23
  37. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js +2 -0
  38. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js.map +1 -0
  39. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  40. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +4 -2
  41. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  42. package/dist/components/ComparisonTable/ComparisonTable.js +2 -2
  43. package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  44. package/dist/components/Gallery/GalleryCardInner.js +6 -1
  45. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  46. package/dist/components/Gallery/GalleryContent.d.ts +5 -0
  47. package/dist/components/Gallery/GalleryInner.js.map +1 -1
  48. package/dist/components/Header/Header.mobile.js +2 -2
  49. package/dist/components/Header/Header.mobile.js.map +1 -1
  50. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  51. package/dist/components/ImgBlock/ImgBlock.d.ts +6 -0
  52. package/dist/components/ImgBlock/ImgBlock.js +11 -0
  53. package/dist/components/ImgBlock/ImgBlock.js.map +1 -0
  54. package/dist/components/ImgBlock/ImgBlockContent.d.ts +7 -0
  55. package/dist/components/{InvestmentGallery/InvestmentGalleryContent.js → ImgBlock/ImgBlockContent.js} +1 -1
  56. package/dist/components/ImgBlock/ImgBlockContent.js.map +1 -0
  57. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +5 -7
  58. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  59. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  60. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  61. package/dist/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
  62. package/dist/components/ParagraphBlock/ParagraphBlock.js +11 -0
  63. package/dist/components/ParagraphBlock/ParagraphBlock.js.map +1 -0
  64. package/dist/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
  65. package/{mobile/dist/components/InvestmentGallery/InvestmentGalleryContent.js → dist/components/ParagraphBlock/ParagraphBlockContent.js} +1 -1
  66. package/dist/components/ParagraphBlock/ParagraphBlockContent.js.map +1 -0
  67. package/dist/components/ProductGallery/ProductGallery.js +7 -7
  68. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  69. package/dist/components/SafeDepositRental/RegionsAndBranches.js +1 -3
  70. package/dist/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  71. package/dist/components/SafeDepositRental/RenderRadioButtons.js +1 -1
  72. package/dist/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
  73. package/dist/components/SafeDepositRental/SafeDepositRental.js +2 -4
  74. package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  75. package/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  76. package/dist/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
  77. package/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  78. package/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  79. package/dist/components/SafeDepositRental/SafeDepositRentalForm.js +2 -2
  80. package/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  81. package/dist/components/StepsBlock/StepsBlock.js +1 -3
  82. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  83. package/dist/components/TariffsTable/TableTileHeader.js +1 -3
  84. package/dist/components/TariffsTable/TableTileHeader.js.map +1 -1
  85. package/dist/components/TariffsTable/TariffsTable.js +6 -6
  86. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  87. package/dist/components/TariffsTable/TariffsTableRow.js +3 -1
  88. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  89. package/dist/components/Video/VideoContent.d.ts +1 -0
  90. package/dist/ui-kit/InnerTable/InnerTable.js +3 -2
  91. package/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
  92. package/dist/ui-kit/InnerTable/InnerTableBody.js +2 -4
  93. package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  94. package/dist/ui-kit/Paragraph/Paragraph.d.ts +1 -8
  95. package/dist/ui-kit/Paragraph/Paragraph.js.map +1 -1
  96. package/dist/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
  97. package/dist/ui-kit/Paragraph/ParagraphProps.js +2 -0
  98. package/dist/ui-kit/Paragraph/ParagraphProps.js.map +1 -0
  99. package/dist/ui-kit/Radio/Radio.js +1 -1
  100. package/dist/ui-kit/Radio/Radio.js.map +1 -1
  101. package/dist/ui-kit/Radio/RadioProps.d.ts +1 -2
  102. package/dist/ui-kit/Select/Select.js.map +1 -1
  103. package/dist/ui-kit/Text/Text.d.ts +1 -26
  104. package/dist/ui-kit/Text/Text.js.map +1 -1
  105. package/dist/ui-kit/Text/TextProps.d.ts +26 -0
  106. package/dist/ui-kit/Text/TextProps.js +2 -0
  107. package/dist/ui-kit/Text/TextProps.js.map +1 -0
  108. package/lib/common.css +1 -1
  109. package/lib/components/Blocks.js +7 -3
  110. package/lib/components/Blocks.js.map +1 -1
  111. package/lib/components/Calculator/BonusCalculatorForm.js +5 -3
  112. package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  113. package/lib/components/Calculator/CreditCalculatorForm.js +4 -2
  114. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  115. package/lib/components/Calculator/DepositCalculatorForm.js +6 -3
  116. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  117. package/lib/components/Carousel/Carousel.fixture.d.ts +1 -0
  118. package/lib/components/Carousel/Carousel.js +2 -1
  119. package/lib/components/Carousel/Carousel.js.map +1 -1
  120. package/lib/components/CarouselCard/CarouselCard.js +2 -2
  121. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  122. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
  123. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.fixture.d.ts +10 -0
  124. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +26 -0
  125. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -0
  126. package/{bundle/components/InvestmentGallery/InvestmentGalleryContent.d.ts → lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts} +19 -23
  127. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js +2 -0
  128. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js.map +1 -0
  129. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  130. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +4 -2
  131. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  132. package/lib/components/ComparisonTable/ComparisonTable.js +2 -2
  133. package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  134. package/lib/components/Gallery/GalleryCardInner.js +6 -1
  135. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  136. package/lib/components/Gallery/GalleryContent.d.ts +5 -0
  137. package/lib/components/Gallery/GalleryInner.js.map +1 -1
  138. package/lib/components/Header/Header.mobile.js +3 -3
  139. package/lib/components/Header/Header.mobile.js.map +1 -1
  140. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  141. package/lib/components/ImgBlock/ImgBlock.d.ts +6 -0
  142. package/lib/components/{InvestmentGallery/InvestmentGallery.fixture.d.ts → ImgBlock/ImgBlock.fixture.d.ts} +0 -2
  143. package/lib/components/ImgBlock/ImgBlock.js +9 -0
  144. package/lib/components/ImgBlock/ImgBlock.js.map +1 -0
  145. package/lib/components/ImgBlock/ImgBlockContent.d.ts +7 -0
  146. package/lib/components/ImgBlock/ImgBlockContent.js +2 -0
  147. package/lib/components/ImgBlock/ImgBlockContent.js.map +1 -0
  148. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -8
  149. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  150. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  151. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  152. package/lib/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
  153. package/lib/components/ParagraphBlock/ParagraphBlock.fixture.d.ts +9 -0
  154. package/lib/components/ParagraphBlock/ParagraphBlock.js +9 -0
  155. package/lib/components/ParagraphBlock/ParagraphBlock.js.map +1 -0
  156. package/lib/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
  157. package/lib/components/ParagraphBlock/ParagraphBlockContent.js +2 -0
  158. package/lib/components/ParagraphBlock/ParagraphBlockContent.js.map +1 -0
  159. package/lib/components/ProductGallery/ProductGallery.js +8 -8
  160. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  161. package/lib/components/SafeDepositRental/RegionsAndBranches.js +1 -3
  162. package/lib/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  163. package/lib/components/SafeDepositRental/RenderRadioButtons.js +2 -2
  164. package/lib/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
  165. package/lib/components/SafeDepositRental/SafeDepositRental.js +2 -4
  166. package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  167. package/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  168. package/lib/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
  169. package/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  170. package/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  171. package/lib/components/SafeDepositRental/SafeDepositRentalForm.js +2 -2
  172. package/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  173. package/lib/components/StepsBlock/StepsBlock.js +1 -3
  174. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  175. package/lib/components/TariffsTable/TableTileHeader.js +1 -3
  176. package/lib/components/TariffsTable/TableTileHeader.js.map +1 -1
  177. package/lib/components/TariffsTable/TariffsTable.js +6 -6
  178. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  179. package/lib/components/TariffsTable/TariffsTableRow.js +4 -2
  180. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  181. package/lib/components/Video/VideoContent.d.ts +1 -0
  182. package/lib/ui-kit/InnerTable/InnerTable.js +4 -3
  183. package/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
  184. package/lib/ui-kit/InnerTable/InnerTableBody.js +3 -5
  185. package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  186. package/lib/ui-kit/Paragraph/Paragraph.d.ts +1 -8
  187. package/lib/ui-kit/Paragraph/Paragraph.js.map +1 -1
  188. package/lib/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
  189. package/lib/ui-kit/Paragraph/ParagraphProps.js +2 -0
  190. package/lib/ui-kit/Paragraph/ParagraphProps.js.map +1 -0
  191. package/lib/ui-kit/Radio/Radio.js +1 -1
  192. package/lib/ui-kit/Radio/Radio.js.map +1 -1
  193. package/lib/ui-kit/Radio/RadioProps.d.ts +1 -2
  194. package/lib/ui-kit/Select/Select.js.map +1 -1
  195. package/lib/ui-kit/Text/Text.d.ts +1 -26
  196. package/lib/ui-kit/Text/Text.js.map +1 -1
  197. package/lib/ui-kit/Text/TextProps.d.ts +26 -0
  198. package/lib/ui-kit/Text/TextProps.js +2 -0
  199. package/lib/ui-kit/Text/TextProps.js.map +1 -0
  200. package/mobile/bundle/bundle.umd.js +4 -6
  201. package/mobile/bundle/bundle.umd.min.js +1 -1
  202. package/mobile/bundle/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
  203. package/mobile/bundle/components/{InvestmentGallery/InvestmentGalleryContent.d.ts → CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts} +19 -23
  204. package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  205. package/mobile/bundle/components/Gallery/GalleryContent.d.ts +5 -0
  206. package/mobile/bundle/components/ImgBlock/ImgBlock.d.ts +6 -0
  207. package/mobile/bundle/components/ImgBlock/ImgBlockContent.d.ts +7 -0
  208. package/mobile/bundle/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
  209. package/mobile/bundle/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
  210. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  211. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  212. package/mobile/bundle/components/Video/VideoContent.d.ts +1 -0
  213. package/mobile/bundle/ui-kit/Paragraph/Paragraph.d.ts +1 -8
  214. package/mobile/bundle/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
  215. package/mobile/bundle/ui-kit/Radio/RadioProps.d.ts +1 -2
  216. package/mobile/bundle/ui-kit/Text/Text.d.ts +1 -26
  217. package/mobile/bundle/ui-kit/Text/TextProps.d.ts +26 -0
  218. package/mobile/dist/components/Calculator/BonusCalculatorForm.js +4 -2
  219. package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  220. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +3 -1
  221. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  222. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +5 -2
  223. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  224. package/mobile/dist/components/Carousel/Carousel.js +2 -1
  225. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  226. package/mobile/dist/components/CarouselCard/CarouselCard.js +2 -2
  227. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  228. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
  229. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +28 -0
  230. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -0
  231. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +46 -0
  232. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js +2 -0
  233. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js.map +1 -0
  234. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  235. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +4 -2
  236. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  237. package/mobile/dist/components/Gallery/GalleryCardInner.js +6 -1
  238. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  239. package/mobile/dist/components/Gallery/GalleryContent.d.ts +5 -0
  240. package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
  241. package/mobile/dist/components/Header/Header.js +2 -2
  242. package/mobile/dist/components/Header/Header.js.map +1 -1
  243. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  244. package/mobile/dist/components/ImgBlock/ImgBlock.d.ts +6 -0
  245. package/mobile/dist/components/ImgBlock/ImgBlock.js +11 -0
  246. package/mobile/dist/components/ImgBlock/ImgBlock.js.map +1 -0
  247. package/mobile/dist/components/ImgBlock/ImgBlockContent.d.ts +7 -0
  248. package/mobile/dist/components/ImgBlock/ImgBlockContent.js +2 -0
  249. package/mobile/dist/components/ImgBlock/ImgBlockContent.js.map +1 -0
  250. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +5 -7
  251. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  252. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  253. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  254. package/mobile/dist/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
  255. package/mobile/dist/components/ParagraphBlock/ParagraphBlock.js +11 -0
  256. package/mobile/dist/components/ParagraphBlock/ParagraphBlock.js.map +1 -0
  257. package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
  258. package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.js +2 -0
  259. package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.js.map +1 -0
  260. package/mobile/dist/components/ProductGallery/ProductGallery.js +7 -7
  261. package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  262. package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js +1 -3
  263. package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  264. package/mobile/dist/components/SafeDepositRental/RenderRadioButtons.js +1 -1
  265. package/mobile/dist/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
  266. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +2 -4
  267. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  268. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  269. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
  270. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  271. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  272. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js +2 -2
  273. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  274. package/mobile/dist/components/TariffsTable/TableTileHeader.js +1 -3
  275. package/mobile/dist/components/TariffsTable/TableTileHeader.js.map +1 -1
  276. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +3 -1
  277. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  278. package/mobile/dist/components/Video/VideoContent.d.ts +1 -0
  279. package/mobile/dist/ui-kit/InnerTable/InnerTable.js +3 -2
  280. package/mobile/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
  281. package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +2 -4
  282. package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  283. package/mobile/dist/ui-kit/Paragraph/Paragraph.d.ts +1 -8
  284. package/mobile/dist/ui-kit/Paragraph/Paragraph.js.map +1 -1
  285. package/mobile/dist/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
  286. package/mobile/dist/ui-kit/Paragraph/ParagraphProps.js +2 -0
  287. package/mobile/dist/ui-kit/Paragraph/ParagraphProps.js.map +1 -0
  288. package/mobile/dist/ui-kit/Radio/Radio.js +1 -1
  289. package/mobile/dist/ui-kit/Radio/Radio.js.map +1 -1
  290. package/mobile/dist/ui-kit/Radio/RadioProps.d.ts +1 -2
  291. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  292. package/mobile/dist/ui-kit/Text/Text.d.ts +1 -26
  293. package/mobile/dist/ui-kit/Text/Text.js.map +1 -1
  294. package/mobile/dist/ui-kit/Text/TextProps.d.ts +26 -0
  295. package/mobile/dist/ui-kit/Text/TextProps.js +2 -0
  296. package/mobile/dist/ui-kit/Text/TextProps.js.map +1 -0
  297. package/mobile/lib/components/Calculator/BonusCalculatorForm.js +5 -3
  298. package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  299. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +4 -2
  300. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  301. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +6 -3
  302. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  303. package/mobile/lib/components/Carousel/Carousel.js +2 -1
  304. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  305. package/mobile/lib/components/CarouselCard/CarouselCard.js +2 -2
  306. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  307. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
  308. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +26 -0
  309. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -0
  310. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +46 -0
  311. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js +2 -0
  312. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js.map +1 -0
  313. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  314. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +4 -2
  315. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  316. package/mobile/lib/components/Gallery/GalleryCardInner.js +6 -1
  317. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  318. package/mobile/lib/components/Gallery/GalleryContent.d.ts +5 -0
  319. package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
  320. package/mobile/lib/components/Header/Header.js +3 -3
  321. package/mobile/lib/components/Header/Header.js.map +1 -1
  322. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  323. package/mobile/lib/components/ImgBlock/ImgBlock.d.ts +6 -0
  324. package/mobile/lib/components/ImgBlock/ImgBlock.js +9 -0
  325. package/mobile/lib/components/ImgBlock/ImgBlock.js.map +1 -0
  326. package/mobile/lib/components/ImgBlock/ImgBlockContent.d.ts +7 -0
  327. package/mobile/lib/components/ImgBlock/ImgBlockContent.js +2 -0
  328. package/mobile/lib/components/ImgBlock/ImgBlockContent.js.map +1 -0
  329. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -8
  330. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  331. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  332. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  333. package/mobile/lib/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
  334. package/mobile/lib/components/ParagraphBlock/ParagraphBlock.js +9 -0
  335. package/mobile/lib/components/ParagraphBlock/ParagraphBlock.js.map +1 -0
  336. package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
  337. package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.js +2 -0
  338. package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.js.map +1 -0
  339. package/mobile/lib/components/ProductGallery/ProductGallery.js +8 -8
  340. package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  341. package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js +1 -3
  342. package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  343. package/mobile/lib/components/SafeDepositRental/RenderRadioButtons.js +2 -2
  344. package/mobile/lib/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
  345. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +2 -4
  346. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  347. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  348. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
  349. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  350. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  351. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js +2 -2
  352. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  353. package/mobile/lib/components/TariffsTable/TableTileHeader.js +1 -3
  354. package/mobile/lib/components/TariffsTable/TableTileHeader.js.map +1 -1
  355. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +4 -2
  356. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  357. package/mobile/lib/components/Video/VideoContent.d.ts +1 -0
  358. package/mobile/lib/ui-kit/InnerTable/InnerTable.js +4 -3
  359. package/mobile/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
  360. package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +3 -5
  361. package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  362. package/mobile/lib/ui-kit/Paragraph/Paragraph.d.ts +1 -8
  363. package/mobile/lib/ui-kit/Paragraph/Paragraph.js.map +1 -1
  364. package/mobile/lib/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
  365. package/mobile/lib/ui-kit/Paragraph/ParagraphProps.js +2 -0
  366. package/mobile/lib/ui-kit/Paragraph/ParagraphProps.js.map +1 -0
  367. package/mobile/lib/ui-kit/Radio/Radio.js +1 -1
  368. package/mobile/lib/ui-kit/Radio/Radio.js.map +1 -1
  369. package/mobile/lib/ui-kit/Radio/RadioProps.d.ts +1 -2
  370. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  371. package/mobile/lib/ui-kit/Text/Text.d.ts +1 -26
  372. package/mobile/lib/ui-kit/Text/Text.js.map +1 -1
  373. package/mobile/lib/ui-kit/Text/TextProps.d.ts +26 -0
  374. package/mobile/lib/ui-kit/Text/TextProps.js +2 -0
  375. package/mobile/lib/ui-kit/Text/TextProps.js.map +1 -0
  376. package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +5 -3
  377. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +5 -3
  378. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +6 -3
  379. package/mobile/src/components/Carousel/Carousel.tsx +2 -1
  380. package/mobile/src/components/CarouselCard/CarouselCard.tsx +2 -2
  381. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +28 -0
  382. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +83 -0
  383. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.ui.json +9 -0
  384. package/mobile/src/components/{InvestmentGallery/InvestmentGalleryContent.ts → CarouselInvestmentCard/CarouselInvestmentCardContent.ts} +20 -25
  385. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +27 -32
  386. package/mobile/src/components/Gallery/GalleryCardInner.tsx +7 -1
  387. package/mobile/src/components/Gallery/GalleryContent.ts +5 -0
  388. package/mobile/src/components/Gallery/GalleryInner.tsx +0 -1
  389. package/mobile/src/components/Header/Header.tsx +4 -6
  390. package/mobile/src/components/Header/HeaderSubMenu.tsx +1 -0
  391. package/mobile/src/components/ImgBlock/ImgBlock.example.json +11 -0
  392. package/mobile/src/components/ImgBlock/ImgBlock.tsx +17 -0
  393. package/mobile/src/components/ImgBlock/ImgBlock.ui.json +7 -0
  394. package/mobile/src/components/ImgBlock/ImgBlockContent.ts +8 -0
  395. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +8 -11
  396. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +3 -3
  397. package/mobile/src/components/ParagraphBlock/ParagraphBlock.example.json +5 -0
  398. package/mobile/src/components/ParagraphBlock/ParagraphBlock.tsx +19 -0
  399. package/mobile/src/components/ParagraphBlock/ParagraphBlock.ui.json +1 -0
  400. package/mobile/src/components/ParagraphBlock/ParagraphBlockContent.ts +9 -0
  401. package/mobile/src/components/ProductGallery/ProductGallery.tsx +13 -13
  402. package/mobile/src/components/SafeDepositRental/RegionsAndBranches.tsx +24 -26
  403. package/mobile/src/components/SafeDepositRental/RenderRadioButtons.tsx +2 -3
  404. package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -5
  405. package/mobile/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +3 -3
  406. package/mobile/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +3 -3
  407. package/mobile/src/components/TariffsTable/TableTileHeader.tsx +8 -10
  408. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +11 -4
  409. package/mobile/src/components/Video/VideoContent.ts +1 -0
  410. package/mobile/src/ui-kit/InnerTable/InnerTable.tsx +4 -5
  411. package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +6 -5
  412. package/mobile/src/ui-kit/Paragraph/Paragraph.tsx +1 -8
  413. package/mobile/src/ui-kit/Paragraph/ParagraphProps.ts +8 -0
  414. package/mobile/src/ui-kit/Radio/Radio.tsx +1 -1
  415. package/mobile/src/ui-kit/Radio/RadioProps.ts +1 -1
  416. package/mobile/src/ui-kit/Select/Select.tsx +0 -1
  417. package/mobile/src/ui-kit/Text/Text.tsx +1 -63
  418. package/mobile/src/ui-kit/Text/TextProps.ts +63 -0
  419. package/package.json +1 -1
  420. package/src/components/Blocks.ts +7 -3
  421. package/src/components/Calculator/BonusCalculatorForm.tsx +5 -3
  422. package/src/components/Calculator/CreditCalculatorForm.tsx +5 -3
  423. package/src/components/Calculator/DepositCalculatorForm.tsx +6 -3
  424. package/src/components/Carousel/Carousel.fixture.tsx +20 -1
  425. package/src/components/Carousel/Carousel.tsx +2 -1
  426. package/src/components/CarouselCard/CarouselCard.fixture.tsx +1 -1
  427. package/src/components/CarouselCard/CarouselCard.tsx +2 -2
  428. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +28 -0
  429. package/src/components/{InvestmentGallery/InvestmentGallery.fixture.tsx → CarouselInvestmentCard/CarouselInvestmentCard.fixture.tsx} +21 -27
  430. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +83 -0
  431. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.ui.json +9 -0
  432. package/src/components/{InvestmentGallery/InvestmentGalleryContent.ts → CarouselInvestmentCard/CarouselInvestmentCardContent.ts} +20 -25
  433. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +27 -32
  434. package/src/components/ComparisonTable/ComparisonTable.tsx +2 -2
  435. package/src/components/Gallery/GalleryCardInner.tsx +7 -1
  436. package/src/components/Gallery/GalleryContent.ts +5 -0
  437. package/src/components/Gallery/GalleryInner.tsx +0 -1
  438. package/src/components/Header/Header.mobile.tsx +4 -6
  439. package/src/components/Header/HeaderSubMenu.tsx +1 -0
  440. package/src/components/ImgBlock/ImgBlock.example.json +11 -0
  441. package/src/components/ImgBlock/ImgBlock.fixture.tsx +21 -0
  442. package/src/components/ImgBlock/ImgBlock.tsx +17 -0
  443. package/src/components/ImgBlock/ImgBlock.ui.json +7 -0
  444. package/src/components/ImgBlock/ImgBlockContent.ts +8 -0
  445. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +8 -11
  446. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +3 -3
  447. package/src/components/ParagraphBlock/ParagraphBlock.example.json +5 -0
  448. package/src/components/ParagraphBlock/ParagraphBlock.fixture.tsx +45 -0
  449. package/src/components/ParagraphBlock/ParagraphBlock.tsx +19 -0
  450. package/src/components/ParagraphBlock/ParagraphBlock.ui.json +1 -0
  451. package/src/components/ParagraphBlock/ParagraphBlockContent.ts +9 -0
  452. package/src/components/ProductGallery/ProductGallery.tsx +13 -13
  453. package/src/components/SafeDepositRental/RegionsAndBranches.tsx +24 -26
  454. package/src/components/SafeDepositRental/RenderRadioButtons.tsx +2 -3
  455. package/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -5
  456. package/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +3 -3
  457. package/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +3 -3
  458. package/src/components/StepsBlock/StepsBlock.tsx +2 -3
  459. package/src/components/TariffsTable/TableTileHeader.tsx +8 -10
  460. package/src/components/TariffsTable/TariffsTable.tsx +20 -22
  461. package/src/components/TariffsTable/TariffsTableRow.tsx +11 -4
  462. package/src/components/Video/VideoContent.ts +1 -0
  463. package/src/ui-kit/InnerTable/InnerTable.tsx +4 -5
  464. package/src/ui-kit/InnerTable/InnerTableBody.tsx +6 -5
  465. package/src/ui-kit/Paragraph/Paragraph.tsx +1 -8
  466. package/src/ui-kit/Paragraph/ParagraphProps.ts +8 -0
  467. package/src/ui-kit/Radio/Radio.tsx +1 -1
  468. package/src/ui-kit/Radio/RadioProps.ts +1 -1
  469. package/src/ui-kit/Select/Select.tsx +0 -1
  470. package/src/ui-kit/Text/Text.tsx +1 -63
  471. package/src/ui-kit/Text/TextProps.ts +63 -0
  472. package/tailwind.config.cjs +8 -0
  473. package/bundle/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
  474. package/bundle/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
  475. package/dist/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
  476. package/dist/components/InvestmentGallery/InvestmentGallery.js +0 -26
  477. package/dist/components/InvestmentGallery/InvestmentGallery.js.map +0 -1
  478. package/dist/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
  479. package/dist/components/InvestmentGallery/InvestmentGalleryCard.js +0 -23
  480. package/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +0 -1
  481. package/dist/components/InvestmentGallery/InvestmentGalleryContent.js.map +0 -1
  482. package/lib/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
  483. package/lib/components/InvestmentGallery/InvestmentGallery.js +0 -24
  484. package/lib/components/InvestmentGallery/InvestmentGallery.js.map +0 -1
  485. package/lib/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
  486. package/lib/components/InvestmentGallery/InvestmentGalleryCard.js +0 -21
  487. package/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +0 -1
  488. package/lib/components/InvestmentGallery/InvestmentGalleryContent.js +0 -2
  489. package/lib/components/InvestmentGallery/InvestmentGalleryContent.js.map +0 -1
  490. package/mobile/bundle/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
  491. package/mobile/bundle/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
  492. package/mobile/dist/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
  493. package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js +0 -26
  494. package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js.map +0 -1
  495. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
  496. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js +0 -23
  497. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +0 -1
  498. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryContent.d.ts +0 -50
  499. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryContent.js.map +0 -1
  500. package/mobile/lib/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
  501. package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js +0 -24
  502. package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js.map +0 -1
  503. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
  504. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js +0 -21
  505. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +0 -1
  506. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryContent.d.ts +0 -50
  507. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryContent.js +0 -2
  508. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryContent.js.map +0 -1
  509. package/mobile/src/components/InvestmentGallery/InvestmentGallery.example.json +0 -64
  510. package/mobile/src/components/InvestmentGallery/InvestmentGallery.tsx +0 -66
  511. package/mobile/src/components/InvestmentGallery/InvestmentGallery.ui.json +0 -11
  512. package/mobile/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +0 -84
  513. package/src/components/InvestmentGallery/InvestmentGallery.example.json +0 -64
  514. package/src/components/InvestmentGallery/InvestmentGallery.tsx +0 -66
  515. package/src/components/InvestmentGallery/InvestmentGallery.ui.json +0 -11
  516. package/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +0 -84
@@ -1,5 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useState } from '@redneckz/uni-jsx/lib/hooks';
2
+ import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
4
4
  import { RadioButtonGroup } from '../../ui-kit/RadioButtonGroup/RadioButtonGroup';
5
5
  import { CommonCalculatorProps } from './CalculatorContent';
@@ -37,7 +37,9 @@ export const CreditCalculatorForm = JSX<CreditCalculatorProp>(
37
37
  const [isSalaryClient, toggleIsSalaryClient] = useState(false);
38
38
  const [isStateEmployee, toggleIsStateEmployee] = useState(false);
39
39
  const [moneyValue, setMoneyValue] = useState(DEFAULT_SUM);
40
+ const handleMoneyValue = useCallback((_: number) => setMoneyValue(_), []);
40
41
  const [monthsValue, setMonthsValue] = useState(DEFAULT_MONTHS);
42
+ const handleMonthsValue = useCallback((_: number) => setMonthsValue(_), []);
41
43
  const userInputParams = {
42
44
  isAnnuity,
43
45
  isInsurance,
@@ -54,9 +56,9 @@ export const CreditCalculatorForm = JSX<CreditCalculatorProp>(
54
56
  {renderWantedSumInput(
55
57
  'Сумма кредита, ₽',
56
58
  { ...calculatorParams, step: 500 },
57
- setMoneyValue,
59
+ handleMoneyValue,
58
60
  )}
59
- {renderMonthsInput('Срок кредита, месяцев', calculatorParams, setMonthsValue)}
61
+ {renderMonthsInput('Срок кредита, месяцев', calculatorParams, handleMonthsValue)}
60
62
  <div className="mt-7">
61
63
  <Checkbox
62
64
  text="Получаю зарплату на счёт в Россельхозбанке"
@@ -1,7 +1,7 @@
1
1
  // TEMP
2
2
 
3
3
  import { JSX } from '@redneckz/uni-jsx';
4
- import { useState } from '@redneckz/uni-jsx/lib/hooks';
4
+ import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
5
5
  import { RadioButtonGroup } from '../../ui-kit/RadioButtonGroup/RadioButtonGroup';
6
6
  import { CommonCalculatorProps, DepositCalculatorParams } from './CalculatorContent';
7
7
  import { CalculatorValueBlock } from './CalculatorValueBlock';
@@ -34,6 +34,7 @@ const depositTypeItems = [
34
34
  export const DepositCalculatorForm = JSX<DepositCalculatorProp>(
35
35
  ({ className = '', sourceBookDir, buttons, footnote }) => {
36
36
  const [moneyValue, setMoneyValue] = useState(DEFAULT_SUM);
37
+ const handleMoneyValue = useCallback((_: number) => setMoneyValue(_), []);
37
38
  const [monthsValue, setMonthsValue] = useState(DEFAULT_MONTHS);
38
39
  const [isMonthlyInterestPayment, toggleIsMonthlyInterestPayment] = useState(false);
39
40
  const userInputParams = {
@@ -41,6 +42,8 @@ export const DepositCalculatorForm = JSX<DepositCalculatorProp>(
41
42
  monthsValue,
42
43
  isMonthlyInterestPayment,
43
44
  };
45
+ const handleMonthsValue = useCallback((_: number) => setMonthsValue(_), []);
46
+ const [isEveryMonth, toggleIsEveryMonth] = useState(false);
44
47
 
45
48
  const calculatorParams = useDepositCalculatorParams(userInputParams, sourceBookDir);
46
49
  const { income, finalSum, rate } = calculatorParams;
@@ -53,14 +56,14 @@ export const DepositCalculatorForm = JSX<DepositCalculatorProp>(
53
56
  {
54
57
  ...calculatorParams,
55
58
  },
56
- setMoneyValue,
59
+ handleMoneyValue,
57
60
  )}
58
61
  {renderMonthsInput(
59
62
  'Срок вклада, месяцев',
60
63
  {
61
64
  ...calculatorParams,
62
65
  },
63
- setMonthsValue,
66
+ handleMonthsValue,
64
67
  )}
65
68
  </div>
66
69
  <Rate rate={rate || 1} rateBlockClassName="tracking-[-25px]" unit="%" />
@@ -1,10 +1,11 @@
1
- import type { BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
2
1
  import '../../setup-fixture';
3
2
  import { Blocks } from '../Blocks';
4
3
  import { CARD, CARD_MINI, CARD_NEW } from '../CarouselCard/CarouselCard.fixture';
5
4
  import { TARIFFS_CARD, TARIFFS_CARD_HIT } from '../CarouselTariffsCard/CarouselTariffsCard.fixture';
6
5
  import { BUSINESS_CARD } from '../CarouselProgramsCard/CarouselProgramsCard.fixture';
7
6
  import { Carousel } from './Carousel';
7
+ import { INVESTMENT_CARD_WITH_SINGLE_COLUMN } from '../CarouselInvestmentCard/CarouselInvestmentCard.fixture';
8
+ import type { BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
8
9
 
9
10
  const options = {
10
11
  blocksRegistry: Blocks,
@@ -86,4 +87,22 @@ export default {
86
87
  />
87
88
  </div>
88
89
  ),
90
+ investment: (
91
+ <div className="container grid grid-cols-12">
92
+ <Carousel
93
+ className="col-span-12"
94
+ isBlur={true}
95
+ isCyclic={false}
96
+ block={{
97
+ type: 'Carousel',
98
+ blocks: new Array(6).fill({
99
+ type: 'CarouselInvestmentCard',
100
+ content: INVESTMENT_CARD_WITH_SINGLE_COLUMN,
101
+ style: ['col-span-2'],
102
+ }),
103
+ }}
104
+ options={options}
105
+ />
106
+ </div>
107
+ ),
89
108
  };
@@ -17,7 +17,7 @@ export interface CarouselProps extends CarouselContent, UniBlockProps {
17
17
  const ITEMS_GAP = 4;
18
18
 
19
19
  const blurBaseStyle = 'absolute top-0 bottom-0 z-50 w-[84px]';
20
- const scrollButtonStyle = 'absolute top-1/2 z-50';
20
+ const scrollButtonStyle = 'absolute top-[calc(50%-12px)] z-50';
21
21
 
22
22
  export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
23
23
  ({ className = '', itemCount, visibleItemCount, isBlur = true, isCyclic = false, ...rest }) => {
@@ -57,6 +57,7 @@ Carousel.childrenTypes = [
57
57
  'CarouselTariffsCard',
58
58
  'CarouselLinks',
59
59
  'CarouselProgramsCard',
60
+ 'CarouselInvestmentCard',
60
61
  ];
61
62
 
62
63
  const renderScrollButtons = ({
@@ -42,7 +42,7 @@ export default {
42
42
  </div>
43
43
  ),
44
44
  mini: (
45
- <div className="container flex">
45
+ <div className="container grid grid-cols-12">
46
46
  <CarouselCard {...CARD_MINI} />
47
47
  </div>
48
48
  ),
@@ -10,8 +10,8 @@ export interface CarouselCardProps extends CarouselCardContent, UniBlockProps {}
10
10
  const BLOCK_CLASSES = 'absolute border border-solid border-main-stroke w-full h-full';
11
11
 
12
12
  const CARD_WIDTH_MAP: Record<CarouselCardVersion, string> = {
13
- normal: `w-[${1007 + 48}px]`,
14
- mini: `w-[${350 + 48}px]`,
13
+ normal: 'min-w-[1007px]',
14
+ mini: 'min-w-[355px]',
15
15
  };
16
16
 
17
17
  export const CarouselCard = JSX<CarouselCardProps>(
@@ -0,0 +1,28 @@
1
+ {
2
+ "image": {
3
+ "format": "webp",
4
+ "size": {
5
+ "width": 180,
6
+ "height": 180
7
+ }
8
+ },
9
+ "title": "Заголовок",
10
+ "description": "Описание",
11
+ "additionalDescription": "Описание 1-2",
12
+ "columnsMode": "1",
13
+ "cardsList":[
14
+ {
15
+ "parameter": "Параметр",
16
+ "parameterDescription": "Описание пункта"
17
+ },
18
+ {
19
+ "parameter": "Параметр",
20
+ "parameterDescription": "Описание пункта"
21
+ },
22
+ {
23
+ "parameter": "Параметр",
24
+ "parameterDescription": "Описание пункта"
25
+ }
26
+ ],
27
+ "version": "primary"
28
+ }
@@ -1,6 +1,7 @@
1
1
  import type { Picture } from '../../model/Picture';
2
2
  import '../../setup-fixture';
3
- import { InvestmentGallery, InvestmentGalleryProps } from './InvestmentGallery';
3
+ import { CarouselInvestmentCard } from './CarouselInvestmentCard';
4
+ import type { CarouselInvestmentCardContent } from './CarouselInvestmentCardContent';
4
5
 
5
6
  const five: Picture = {
6
7
  src: '5.svg',
@@ -12,7 +13,7 @@ const five: Picture = {
12
13
  title: 'five',
13
14
  };
14
15
 
15
- const cardListExample = [
16
+ const cardsList = [
16
17
  {
17
18
  parameter: 'IR',
18
19
  parameterDesccription: 'cтрана эмитента',
@@ -39,40 +40,33 @@ const cardListExample = [
39
40
  },
40
41
  ];
41
42
 
42
- const cardCoomonProps = {
43
+ export const INVESTMENT_CARD_WITH_SINGLE_COLUMN: CarouselInvestmentCardContent = {
43
44
  title: 'Borets Finance DAC 17/09/26',
44
45
  description: 'BRTS-26 XS2230649225',
45
46
  additionalDescription: 'Краткосрочная',
47
+ cardsList,
48
+ columnsMode: 1,
49
+ image: five,
46
50
  };
47
51
 
48
- export const shortProps: InvestmentGalleryProps = {
49
- title: 'Примеры еврооблигаций (Московская Биржа)',
50
- cards: [
51
- {
52
- ...cardCoomonProps,
53
- columnsMode: 'double',
54
- cardList: cardListExample,
55
- image: five,
56
- },
57
- {
58
- ...cardCoomonProps,
59
- columnsMode: 'single',
60
- cardList: cardListExample,
61
- image: five,
62
- },
63
- {
64
- ...cardCoomonProps,
65
- columnsMode: 'double',
66
- cardList: cardListExample,
67
- image: five,
68
- },
69
- ],
52
+ export const INVESTMENT_CARD_WITH_DOUBLE_COLUMN: CarouselInvestmentCardContent = {
53
+ title: 'Borets Finance DAC 17/09/26',
54
+ description: 'BRTS-26 XS2230649225',
55
+ additionalDescription: 'Краткосрочная',
56
+ cardsList,
57
+ columnsMode: 2,
58
+ image: five,
70
59
  };
71
60
 
72
61
  export default {
73
62
  default: (
74
- <div className="container grid grid-cols-12 mb-1">
75
- <InvestmentGallery className="col-span-12" {...shortProps} />
63
+ <div className="container grid grid-cols-12">
64
+ <CarouselInvestmentCard className="col-span-4" {...INVESTMENT_CARD_WITH_SINGLE_COLUMN} />
65
+ </div>
66
+ ),
67
+ 'with-double-columns': (
68
+ <div className="container grid grid-cols-12">
69
+ <CarouselInvestmentCard className="col-span-4" {...INVESTMENT_CARD_WITH_DOUBLE_COLUMN} />
76
70
  </div>
77
71
  ),
78
72
  };
@@ -0,0 +1,83 @@
1
+ import { BaseTile } from '../BaseTile/BaseTile';
2
+ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
3
+ import { BorderVersionStyleMap } from '../../model/BorderVersion';
4
+ import type {
5
+ CardColumnsMode,
6
+ CardsListItem,
7
+ CarouselInvestmentCardContent,
8
+ } from './CarouselInvestmentCardContent';
9
+ import { JSX } from '@redneckz/uni-jsx';
10
+ import { Heading } from '../../ui-kit/Heading/Heading';
11
+ import { Img } from '../../ui-kit/Img/Img';
12
+ import type { UniBlockProps } from '../../model/JSXBlock';
13
+
14
+ export interface CarouselInvestmentCardProps extends CarouselInvestmentCardContent, UniBlockProps {}
15
+
16
+ const getItemListFontSize = (colValue?: number) => (colValue === 1 ? 'text-h6' : 'text-l');
17
+
18
+ const cardColumnsModeStyleMap: Record<CardColumnsMode, string> = {
19
+ 1: 'flex gap-y-2 flex-col',
20
+ 2: 'flex gap-y-2 gap-x-10 flex-wrap',
21
+ };
22
+
23
+ export const CarouselInvestmentCard = JSX<CarouselInvestmentCardProps>(
24
+ ({
25
+ additionalDescription,
26
+ cardsList = [],
27
+ className = '',
28
+ columnsMode = 1,
29
+ description,
30
+ image,
31
+ title,
32
+ version = 'primary',
33
+ ...rest
34
+ }) => {
35
+ const tileTitle = title ? (
36
+ <Heading headingType="h4" as="h3" className="mb-3.5 z-10" title={title} />
37
+ ) : null;
38
+
39
+ const tileImage = image?.src ? (
40
+ <Img className="absolute bottom-0 right-0 m-0" image={image} />
41
+ ) : null;
42
+
43
+ return (
44
+ <BlockWrapper
45
+ className={`relative text-left border border-solid box-border
46
+ p-9 w-[697px]
47
+ ${BorderVersionStyleMap[version]}
48
+ ${className}`}
49
+ {...rest}
50
+ >
51
+ <BaseTile title={tileTitle} image={tileImage}>
52
+ <div className="flex justify-between mb-4">
53
+ {description ? <span className="text-h6 w-1/3">{description}</span> : null}
54
+ {additionalDescription ? (
55
+ <span className="text-m-light text-secondary-text">{additionalDescription}</span>
56
+ ) : null}
57
+ </div>
58
+ {cardsList.length ? (
59
+ <ul className={`list-none m-0 p-0 ${cardColumnsModeStyleMap[columnsMode]}`}>
60
+ {renderCardList(cardsList, columnsMode)}
61
+ </ul>
62
+ ) : null}
63
+ </BaseTile>
64
+ </BlockWrapper>
65
+ );
66
+ },
67
+ );
68
+
69
+ const renderCardList = (cardsList: CardsListItem[], columnsMode: number) => {
70
+ const CARDS_COUNT_MAP = [4, 9];
71
+ const visibleCardsList = cardsList.slice(0, CARDS_COUNT_MAP[columnsMode - 1]);
72
+
73
+ return visibleCardsList.map((item, i) => (
74
+ <li key={String(i)} className={columnsMode === 2 ? 'basis-[calc(50%-20px)]' : ''}>
75
+ {item?.parameter ? (
76
+ <span className={`pr-2.5 ${getItemListFontSize(columnsMode)}`}>{item.parameter}</span>
77
+ ) : null}
78
+ {item?.parameterDescription ? (
79
+ <span className="text-m-light text-secondary-text">{item.parameterDescription}</span>
80
+ ) : null}
81
+ </li>
82
+ ));
83
+ };
@@ -0,0 +1,9 @@
1
+ {
2
+ "content": {
3
+ "items": {
4
+ "image": {
5
+ "ui:field": "picture"
6
+ }
7
+ }
8
+ }
9
+ }
@@ -1,22 +1,35 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
2
  import type { Picture } from '../../model/Picture';
3
- import type { HeadlineCommonProps, TitleProps } from '../../model/HeadlineType';
3
+ import type { HeadlineCommonProps } from '../../model/HeadlineType';
4
4
 
5
5
  /**
6
- * @title Количество колонок в списке
6
+ * @title Карточка галереи инвестиций
7
+ */
8
+
9
+ /**
10
+ * @title Количество колонок
7
11
  * @enumNames [
8
12
  * "1 колонка",
9
13
  * "2 колонки",
10
14
  * ]
11
15
  */
12
- export type CardColumnsMode = 'single' | 'double';
16
+ export type CardColumnsMode = 1 | 2;
13
17
 
14
- /**
15
- * @title Карточка
16
- */
17
- export interface InvestmentGalleryCardTypes extends HeadlineCommonProps {
18
+ export interface CardsListItem {
19
+ /** @title Параметр */
20
+ parameter?: string;
21
+ /** @title Описание */
22
+ parameterDescription?: string;
23
+ }
24
+ export interface CarouselInvestmentCardContent extends HeadlineCommonProps {
18
25
  /** @title Доп. описание карточки */
19
26
  additionalDescription?: string;
27
+ /** @default 1 */
28
+ columnsMode?: CardColumnsMode;
29
+ /**
30
+ * @title Список
31
+ */
32
+ cardsList?: CardsListItem[];
20
33
  /**
21
34
  * @default {
22
35
  * "format": "webp",
@@ -32,23 +45,5 @@ export interface InvestmentGalleryCardTypes extends HeadlineCommonProps {
32
45
  * }
33
46
  */
34
47
  image?: Picture;
35
- columnsMode?: CardColumnsMode;
36
- /** @title Описание пункта */
37
- cardList?: CardListItem[];
38
- }
39
-
40
- export interface CardListItem {
41
- /** @title Параметр */
42
- parameter?: string;
43
- /** @title Описание */
44
- parameterDesccription?: string;
45
- }
46
-
47
- /**
48
- * @title Карточка
49
- */
50
- export interface InvestmentGalleryContent extends TitleProps {
51
- /** @title Карточки */
52
- cards?: InvestmentGalleryCardTypes[];
53
48
  version?: BlockVersion;
54
49
  }
@@ -1,7 +1,3 @@
1
- import { JSX } from '@redneckz/uni-jsx';
2
- import type { HeadlineCommonProps } from '../../model/HeadlineType';
3
- import type { UniBlockProps } from '../../model/JSXBlock';
4
- import { VNode } from '../../model/VNode';
5
1
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
6
2
  import { Button } from '../../ui-kit/Button/Button';
7
3
  import { Foldable } from '../../ui-kit/Foldable/Foldable';
@@ -10,7 +6,11 @@ import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
10
6
  import { Heading } from '../../ui-kit/Heading/Heading';
11
7
  import { Icon } from '../../ui-kit/Icon/Icon';
12
8
  import { Img } from '../../ui-kit/Img/Img';
9
+ import { JSX } from '@redneckz/uni-jsx';
10
+ import { VNode } from '../../model/VNode';
13
11
  import type { CarouselTariffsCardContent } from './CarouselTariffsCardContent';
12
+ import type { HeadlineCommonProps } from '../../model/HeadlineType';
13
+ import type { UniBlockProps } from '../../model/JSXBlock';
14
14
 
15
15
  export interface CarouselTariffsCardProps extends CarouselTariffsCardContent, UniBlockProps {}
16
16
 
@@ -23,34 +23,29 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
23
23
  const hiddenRows = rowsNode.slice(VISIBLE_ROWS_COUNT);
24
24
 
25
25
  return (
26
- <BlockWrapper className={`font-sans ${className}`} {...rest}>
27
- <div
28
- className={`relative bg-white border border-main-stroke min-w-[322px] p-8 ${getHitStyle(
29
- isHighlighting,
30
- )}`}
31
- >
32
- {isHighlighting ? renderHitIcon() : null}
33
- {icon?.src ? <Img image={icon} /> : null}
34
- {title ? (
35
- <Heading
36
- className="text-primary-text text-center pt-2"
37
- headingType="h5"
38
- title={title}
39
- />
40
- ) : null}
41
- {button ? <Button className="w-full mt-4" {...button} /> : null}
42
- {rows?.length ? (
43
- <Foldable
44
- renderFoldableSection={({ isUnfolded }) => (
45
- <div>
46
- {visibleRows}
47
- <FoldableSection isUnfolded={isUnfolded}>{hiddenRows}</FoldableSection>
48
- </div>
49
- )}
50
- renderFoldButton={rows.length > 1 ? renderFoldButton : null}
51
- />
52
- ) : null}
53
- </div>
26
+ <BlockWrapper
27
+ className={`font-sans relative bg-white border border-main-stroke min-w-[322px] p-8
28
+ ${getHitStyle(isHighlighting)}
29
+ ${className}`}
30
+ {...rest}
31
+ >
32
+ {isHighlighting ? renderHitIcon() : null}
33
+ {icon?.src ? <Img image={icon} /> : null}
34
+ {title ? (
35
+ <Heading className="text-primary-text text-center pt-2" headingType="h5" title={title} />
36
+ ) : null}
37
+ {button ? <Button className="w-full mt-4" {...button} /> : null}
38
+ {rows.length ? (
39
+ <Foldable
40
+ renderFoldableSection={({ isUnfolded }) => (
41
+ <div>
42
+ {visibleRows}
43
+ <FoldableSection isUnfolded={isUnfolded}>{hiddenRows}</FoldableSection>
44
+ </div>
45
+ )}
46
+ renderFoldButton={rows.length > 1 ? renderFoldButton : null}
47
+ />
48
+ ) : null}
54
49
  </BlockWrapper>
55
50
  );
56
51
  },
@@ -20,7 +20,7 @@ export const ComparisonTable = JSX<ComparisonTableProps>(
20
20
  ...rest
21
21
  }) => {
22
22
  const [isShowAllRow, setIsShowAllRow] = useState(!visibleRowLength);
23
- const showToggle = useCallback(() => setIsShowAllRow((_) => !_), []);
23
+ const handleToggle = useCallback(() => setIsShowAllRow((_) => !_), []);
24
24
 
25
25
  return (
26
26
  <BlockWrapper
@@ -40,7 +40,7 @@ export const ComparisonTable = JSX<ComparisonTableProps>(
40
40
  visibleRowLength={visibleRowLength}
41
41
  />
42
42
  {visibleRowLength
43
- ? renderShowMoreToggleButton({ isShowAllRow, onClick: showToggle })
43
+ ? renderShowMoreToggleButton({ isShowAllRow, onClick: handleToggle })
44
44
  : null}
45
45
  </BlockWrapper>
46
46
  );
@@ -19,6 +19,7 @@ export const GalleryCardInner = JSX<GalleryCardProps>(
19
19
  items,
20
20
  button,
21
21
  version,
22
+ isFullWidth = true,
22
23
  isDotted = true,
23
24
  align = 'center',
24
25
  }) => (
@@ -30,7 +31,12 @@ export const GalleryCardInner = JSX<GalleryCardProps>(
30
31
  {items?.length ? renderItems(items, isDotted, version) : null}
31
32
  {renderAdditionalDescription(additionalDescription)}
32
33
  </div>
33
- {button?.text ? renderButton({ button, buttonClassName: 'mt-6' }) : null}
34
+ {button?.text
35
+ ? renderButton({
36
+ button,
37
+ buttonClassName: `mt-6 ${isFullWidth ? '' : 'self-center'}`,
38
+ })
39
+ : null}
34
40
  </div>
35
41
  ),
36
42
  );
@@ -52,6 +52,11 @@ export type GalleryCardProps = HeadlineSmallProps & {
52
52
  * @default center
53
53
  */
54
54
  align?: AlignType;
55
+ /**
56
+ * @title Кнопка по всей ширине
57
+ * @default true
58
+ */
59
+ isFullWidth?: boolean;
55
60
  };
56
61
 
57
62
  /**
@@ -38,7 +38,6 @@ export const GalleryInner = JSX<GalleryInnerProps>(
38
38
  <div className="absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white" />
39
39
  </div>
40
40
  ) : null}
41
-
42
41
  {button ? renderButton({ button, buttonClassName: 'mt-8 mx-auto' }) : null}
43
42
  </BlockWrapper>
44
43
  );
@@ -1,5 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useState } from '@redneckz/uni-jsx/lib/hooks';
2
+ import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { useRouter } from '../../hooks/useRouter';
4
4
  import type { Fallback } from '../../model/Fallback';
5
5
  import type { UniBlockProps } from '../../model/JSXBlock';
@@ -30,15 +30,13 @@ export const Header = JSX<HeaderProps>(({ className = '', bgColor = 'bg-white',
30
30
  const activeTopItem = topItems?.find(isTopItemActive(router));
31
31
  const subItems = activeTopItem?.items;
32
32
  const activeSubItem = findActiveSubItem(router)(subItems);
33
-
34
33
  const [burgerMenuShow, setBurgerMenuShow] = useState(false);
35
-
36
- const toggleBurgerMenu = () => setBurgerMenuShow(!burgerMenuShow);
34
+ const handleBurgerMenuShow = useCallback(() => setBurgerMenuShow((_) => !_), []);
37
35
 
38
36
  return (
39
37
  <header className={`${bgColor} ${className}`}>
40
38
  <div className="container px-4 py-0 box-border">
41
- <HeaderTop onClick={toggleBurgerMenu} bgColor={bgColor} />
39
+ <HeaderTop onClick={handleBurgerMenuShow} bgColor={bgColor} />
42
40
  <nav className="flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]">
43
41
  <div className="flex no-scrollbar horizontal-list h-full items-center">
44
42
  {subItems?.map((_, i) => (
@@ -55,7 +53,7 @@ export const Header = JSX<HeaderProps>(({ className = '', bgColor = 'bg-white',
55
53
  </div>
56
54
  {burgerMenuShow ? (
57
55
  <HeaderBurger
58
- onClick={toggleBurgerMenu}
56
+ onClick={handleBurgerMenuShow}
59
57
  burgerSubMenu={dispositions}
60
58
  defaultLocation={defaultLocation}
61
59
  >
@@ -19,6 +19,7 @@ export const HeaderSubMenu = JSX<HeaderSubMenuProps>(({ subItems = [], bgColor }
19
19
  const activeSubItem = findActiveSubItem(router)(subItems);
20
20
 
21
21
  const [visibleItemsCount, setVisibleItemsCount] = useState(subItems.length);
22
+
22
23
  const dropDownMenuItems = subItems.slice(visibleItemsCount);
23
24
 
24
25
  const subItemsListRef = useRef<HTMLDivElement | null>(null);
@@ -0,0 +1,11 @@
1
+ {
2
+ "content": {
3
+ "image": {
4
+ "format": "webp",
5
+ "size": {
6
+ "width": 400,
7
+ "height": 300
8
+ }
9
+ }
10
+ }
11
+ }
@@ -0,0 +1,21 @@
1
+ import type { Picture } from '../../model/Picture';
2
+ import '../../setup-fixture';
3
+ import { ImgBlock } from './ImgBlock';
4
+
5
+ const image: Picture = {
6
+ src: 'legal-support-business.png',
7
+ format: 'webp',
8
+ size: {
9
+ width: 200,
10
+ height: 200,
11
+ },
12
+ alt: 'Варианты потребительского кредита',
13
+ };
14
+
15
+ export default {
16
+ default: (
17
+ <div className="container grid grid-cols-12">
18
+ <ImgBlock className="col-span-12" image={image} />
19
+ </div>
20
+ ),
21
+ };
@@ -0,0 +1,17 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import type { UniBlockProps } from '../../model/JSXBlock';
3
+ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
+ import { Img } from '../../ui-kit/Img/Img';
5
+ import type { ImgBlockContent } from './ImgBlockContent';
6
+
7
+ interface ImgBlockProps extends ImgBlockContent, UniBlockProps {}
8
+
9
+ export const ImgBlock = JSX<ImgBlockProps>((props) => {
10
+ const { className, image, ...rest } = props;
11
+
12
+ return (
13
+ <BlockWrapper className={className} {...rest}>
14
+ <Img image={image} />
15
+ </BlockWrapper>
16
+ );
17
+ });
@@ -0,0 +1,7 @@
1
+ {
2
+ "content": {
3
+ "image": {
4
+ "ui:field": "picture"
5
+ }
6
+ }
7
+ }