@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
@@ -0,0 +1,5 @@
1
+ import type { CarouselInvestmentCardContent } from './CarouselInvestmentCardContent';
2
+ import type { UniBlockProps } from '../../model/JSXBlock';
3
+ export interface CarouselInvestmentCardProps extends CarouselInvestmentCardContent, UniBlockProps {
4
+ }
5
+ export declare const CarouselInvestmentCard: import("@redneckz/uni-jsx").UNIComponent<CarouselInvestmentCardProps, any, any>;
@@ -1,20 +1,32 @@
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
- * @title Количество колонок в списке
5
+ * @title Карточка галереи инвестиций
6
+ */
7
+ /**
8
+ * @title Количество колонок
6
9
  * @enumNames [
7
10
  * "1 колонка",
8
11
  * "2 колонки",
9
12
  * ]
10
13
  */
11
- export declare type CardColumnsMode = 'single' | 'double';
12
- /**
13
- * @title Карточка
14
- */
15
- export interface InvestmentGalleryCardTypes extends HeadlineCommonProps {
14
+ export declare type CardColumnsMode = 1 | 2;
15
+ export interface CardsListItem {
16
+ /** @title Параметр */
17
+ parameter?: string;
18
+ /** @title Описание */
19
+ parameterDescription?: string;
20
+ }
21
+ export interface CarouselInvestmentCardContent extends HeadlineCommonProps {
16
22
  /** @title Доп. описание карточки */
17
23
  additionalDescription?: string;
24
+ /** @default 1 */
25
+ columnsMode?: CardColumnsMode;
26
+ /**
27
+ * @title Список
28
+ */
29
+ cardsList?: CardsListItem[];
18
30
  /**
19
31
  * @default {
20
32
  * "format": "webp",
@@ -30,21 +42,5 @@ export interface InvestmentGalleryCardTypes extends HeadlineCommonProps {
30
42
  * }
31
43
  */
32
44
  image?: Picture;
33
- columnsMode?: CardColumnsMode;
34
- /** @title Описание пункта */
35
- cardList?: CardListItem[];
36
- }
37
- export interface CardListItem {
38
- /** @title Параметр */
39
- parameter?: string;
40
- /** @title Описание */
41
- parameterDesccription?: string;
42
- }
43
- /**
44
- * @title Карточка
45
- */
46
- export interface InvestmentGalleryContent extends TitleProps {
47
- /** @title Карточки */
48
- cards?: InvestmentGalleryCardTypes[];
49
45
  version?: BlockVersion;
50
46
  }
@@ -1,5 +1,5 @@
1
- import type { UniBlockProps } from '../../model/JSXBlock';
2
1
  import type { CarouselTariffsCardContent } from './CarouselTariffsCardContent';
2
+ import type { UniBlockProps } from '../../model/JSXBlock';
3
3
  export interface CarouselTariffsCardProps extends CarouselTariffsCardContent, UniBlockProps {
4
4
  }
5
5
  export declare const CarouselTariffsCard: import("@redneckz/uni-jsx").UNIComponent<CarouselTariffsCardProps, any, any>;
@@ -50,6 +50,11 @@ export declare type GalleryCardProps = HeadlineSmallProps & {
50
50
  * @default center
51
51
  */
52
52
  align?: AlignType;
53
+ /**
54
+ * @title Кнопка по всей ширине
55
+ * @default true
56
+ */
57
+ isFullWidth?: boolean;
53
58
  };
54
59
  /**
55
60
  * @title Галерея
@@ -0,0 +1,6 @@
1
+ import type { UniBlockProps } from '../../model/JSXBlock';
2
+ import type { ImgBlockContent } from './ImgBlockContent';
3
+ interface ImgBlockProps extends ImgBlockContent, UniBlockProps {
4
+ }
5
+ export declare const ImgBlock: import("@redneckz/uni-jsx").UNIComponent<ImgBlockProps, any, any>;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { Picture } from '../../model/Picture';
2
+ /**
3
+ * @title Картинка
4
+ */
5
+ export interface ImgBlockContent {
6
+ image?: Picture;
7
+ }
@@ -0,0 +1,6 @@
1
+ import type { UniBlockProps } from '../../model/JSXBlock';
2
+ import type { ParagraphBlockContent } from './ParagraphBlockContent';
3
+ interface ParagraphBlockProps extends ParagraphBlockContent, UniBlockProps {
4
+ }
5
+ export declare const ParagraphBlock: import("@redneckz/uni-jsx").UNIComponent<ParagraphBlockProps, any, any>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { ParagraphProps } from '../../ui-kit/Paragraph/ParagraphProps';
2
+ /**
3
+ * @title Параграф
4
+ */
5
+ export interface ParagraphBlockContent extends ParagraphProps {
6
+ /** @title Текст */
7
+ text?: string;
8
+ }
@@ -6,7 +6,7 @@ export interface SafeDepositRentalFieldsProps extends SafeDepositRentalState {
6
6
  safeBoxCases?: SafeBoxCase[];
7
7
  caseVolumes?: SafeBoxCaseVolume[];
8
8
  branches?: Branch[];
9
- onShowMapToggle: () => void;
9
+ onClick: () => void;
10
10
  onChange: HandleChangeState;
11
11
  }
12
12
  export declare const SafeDepositRentalFields: import("@redneckz/uni-jsx").UNIComponent<SafeDepositRentalFieldsProps, any, any>;
@@ -5,7 +5,7 @@ export interface SafeDepositRentalFormProps {
5
5
  regions: Region[];
6
6
  branches: Branch[];
7
7
  data: SafeDepositRentalState;
8
- onShowMapToggle: () => void;
8
+ onClick: () => void;
9
9
  onChange: (data: Partial<SafeDepositRentalState>) => void;
10
10
  }
11
11
  export declare const SafeDepositRentalForm: import("@redneckz/uni-jsx").UNIComponent<SafeDepositRentalFormProps, any, any>;
@@ -1,5 +1,6 @@
1
1
  import type { TitleProps } from '../../model/HeadlineType';
2
2
  import type { Picture } from '../../model/Picture';
3
+ /** @title Блок Видео */
3
4
  export interface VideoContent extends TitleProps {
4
5
  /** @title URL */
5
6
  src?: string;
@@ -1,9 +1,2 @@
1
- import type { FontWeight, TextAlign, TextColor, TextSize } from '../Text/Text';
2
- interface ParagraphProps {
3
- size?: TextSize;
4
- color?: TextColor;
5
- align?: TextAlign;
6
- font?: FontWeight;
7
- }
1
+ import type { ParagraphProps } from './ParagraphProps';
8
2
  export declare const Paragraph: import("@redneckz/uni-jsx").UNIComponent<ParagraphProps, any, any>;
9
- export {};
@@ -0,0 +1,7 @@
1
+ import type { FontWeight, TextAlign, TextColor, TextSize } from '../Text/TextProps';
2
+ export interface ParagraphProps {
3
+ size?: TextSize;
4
+ color?: TextColor;
5
+ align?: TextAlign;
6
+ font?: FontWeight;
7
+ }
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  export interface RadioProps {
3
2
  name: string;
4
3
  text?: string;
5
4
  value: string;
6
5
  checked: boolean;
7
- onChange: (value: React.ChangeEvent<HTMLInputElement>) => void;
6
+ onChange: (value: string) => void;
8
7
  className?: string;
9
8
  }
@@ -1,29 +1,4 @@
1
- /**
2
- * @title Размер текста
3
- */
4
- export declare type TextSize = '' | 'text-xs-light' | 'text-s-light' | 'text-s' | 'text-m-light' | 'text-m' | 'text-l-light' | 'text-l' | 'text-xl-light' | 'text-xl';
5
- /**
6
- * @title Размер текста
7
- */
8
- export declare type TitleSize = '' | 'text-h6' | 'text-h5' | 'text-h5-light' | 'text-h4' | 'text-h3' | 'text-h2' | 'text-h1' | 'text-h0' | 'text-m-title' | 'text-m-title-xs' | 'title-extra' | 'title-huge';
9
- /**
10
- * @title Цвет текста
11
- */
12
- export declare type TextColor = '' | 'text-main' | 'text-primary-text' | 'text-primary-main' | 'text-secondary-text' | 'text-secondary-light' | 'text-error' | 'text-white' | 'text-green';
13
- /**
14
- * @title Выравнивание
15
- * @enumNames [
16
- * "По умолчанию",
17
- * "По левому краю",
18
- * "По центру",
19
- * "По правому краю"
20
- * ]
21
- */
22
- export declare type TextAlign = '' | 'text-left' | 'text-center' | 'text-right';
23
- /**
24
- * @title Насыщенность шрифта
25
- */
26
- export declare type FontWeight = '' | 'font-light' | 'font-normal' | 'font-medium';
1
+ import type { FontWeight, TextAlign, TextColor, TextSize, TitleSize } from './TextProps';
27
2
  interface TextProps {
28
3
  size?: TextSize | TitleSize;
29
4
  color?: TextColor;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @title Размер текста
3
+ */
4
+ export declare type TextSize = '' | 'text-xs' | 'text-xs-light' | 'text-s-light' | 'text-s' | 'text-m-light' | 'text-m' | 'text-l-light' | 'text-l' | 'text-xl-light' | 'text-xl';
5
+ /**
6
+ * @title Размер текста
7
+ */
8
+ export declare type TitleSize = '' | 'text-h6' | 'text-h5' | 'text-h5-light' | 'text-h4' | 'text-h3' | 'text-h2' | 'text-h1' | 'text-h0' | 'text-m-title' | 'text-m-title-xs' | 'title-extra' | 'title-huge';
9
+ /**
10
+ * @title Цвет текста
11
+ */
12
+ export declare type TextColor = '' | 'text-main' | 'text-primary-text' | 'text-primary-main' | 'text-secondary-text' | 'text-secondary-light' | 'text-error' | 'text-white' | 'text-green';
13
+ /**
14
+ * @title Выравнивание
15
+ * @enumNames [
16
+ * "По умолчанию",
17
+ * "По левому краю",
18
+ * "По центру",
19
+ * "По правому краю"
20
+ * ]
21
+ */
22
+ export declare type TextAlign = '' | 'text-left' | 'text-center' | 'text-right';
23
+ /**
24
+ * @title Насыщенность шрифта
25
+ */
26
+ export declare type FontWeight = '' | 'font-light' | 'font-normal' | 'font-medium';
@@ -9,9 +9,9 @@ const BusinessBlock_1 = require("./BusinessBlock/BusinessBlock");
9
9
  const Calculator_1 = require("./Calculator/Calculator");
10
10
  const CardTransfer_1 = require("./CardTransfer/CardTransfer");
11
11
  const Carousel_1 = require("./Carousel/Carousel");
12
- const CarouselProgramsCard_1 = require("./CarouselProgramsCard/CarouselProgramsCard");
13
12
  const CarouselCard_1 = require("./CarouselCard/CarouselCard");
14
13
  const CarouselLinks_1 = require("./CarouselLinks/CarouselLinks");
14
+ const CarouselProgramsCard_1 = require("./CarouselProgramsCard/CarouselProgramsCard");
15
15
  const CarouselTariffsCard_1 = require("./CarouselTariffsCard/CarouselTariffsCard");
16
16
  const Catalog_1 = require("./Catalog/Catalog");
17
17
  const ComparisonTable_1 = require("./ComparisonTable/ComparisonTable");
@@ -23,8 +23,8 @@ const Gallery_1 = require("./Gallery/Gallery");
23
23
  const GracePeriod_1 = require("./GracePeriod/GracePeriod");
24
24
  const Header_1 = require("./Header/Header");
25
25
  const Headline_1 = require("./Headline/Headline");
26
+ const ImgBlock_1 = require("./ImgBlock/ImgBlock");
26
27
  const InsuranceAmountBlock_1 = require("./InsuranceAmountBlock/InsuranceAmountBlock");
27
- const InvestmentGallery_1 = require("./InvestmentGallery/InvestmentGallery");
28
28
  const InvestmentInfo_1 = require("./InvestmentInfo/InvestmentInfo");
29
29
  const LinkDocs_1 = require("./LinkDocs/LinkDocs");
30
30
  const MiniGallery_1 = require("./MiniGallery/MiniGallery");
@@ -33,6 +33,7 @@ const OfficeMap_1 = require("./OfficeMap/OfficeMap");
33
33
  const OfficeServicesBlock_1 = require("./OfficeServicesBlock/OfficeServicesBlock");
34
34
  const OtherProducts_1 = require("./OtherProducts/OtherProducts");
35
35
  const OtherProductsItem_1 = require("./OtherProductsItem/OtherProductsItem");
36
+ const ParagraphBlock_1 = require("./ParagraphBlock/ParagraphBlock");
36
37
  const PictureText_1 = require("./PictureText/PictureText");
37
38
  const Placeholder_1 = require("./Placeholder/Placeholder");
38
39
  const ProductBlock_1 = require("./ProductBlock/ProductBlock");
@@ -49,6 +50,7 @@ const TextBlock_1 = require("./TextBlock/TextBlock");
49
50
  const Tile_1 = require("./Tile/Tile");
50
51
  const VerticalLayout_1 = require("./VerticalLayout/VerticalLayout");
51
52
  const Video_1 = require("./Video/Video");
53
+ const CarouselInvestmentCard_1 = require("./CarouselInvestmentCard/CarouselInvestmentCard");
52
54
  exports.Blocks = {
53
55
  Accordion: Accordion_1.Accordion,
54
56
  AccordionItem: AccordionItem_1.AccordionItem,
@@ -73,12 +75,13 @@ exports.Blocks = {
73
75
  GracePeriod: GracePeriod_1.GracePeriod,
74
76
  Header: Header_1.Header,
75
77
  Headline: Headline_1.Headline,
78
+ ImgBlock: ImgBlock_1.ImgBlock,
76
79
  InsuranceAmountBlock: InsuranceAmountBlock_1.InsuranceAmountBlock,
77
80
  InvestmentInfo: InvestmentInfo_1.InvestmentInfo,
78
- InvestmentGallery: InvestmentGallery_1.InvestmentGallery,
79
81
  LinkDocs: LinkDocs_1.LinkDocs,
80
82
  MiniGallery: MiniGallery_1.MiniGallery,
81
83
  MobileAppTile: MobileAppTile_1.MobileAppTile,
84
+ ParagraphBlock: ParagraphBlock_1.ParagraphBlock,
82
85
  PictureText: PictureText_1.PictureText,
83
86
  Placeholder: Placeholder_1.Placeholder,
84
87
  ProductBlock: ProductBlock_1.ProductBlock,
@@ -99,5 +102,6 @@ exports.Blocks = {
99
102
  Tile: Tile_1.Tile,
100
103
  VerticalLayout: VerticalLayout_1.VerticalLayout,
101
104
  Video: Video_1.Video,
105
+ CarouselInvestmentCard: CarouselInvestmentCard_1.CarouselInvestmentCard,
102
106
  };
103
107
  //# sourceMappingURL=Blocks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AACA,qDAAkD;AAClD,iEAA8D;AAC9D,iEAA8D;AAC9D,yCAAsC;AACtC,gFAA6E;AAC7E,iEAA8D;AAC9D,wDAAqD;AACrD,8DAA2D;AAC3D,kDAA+C;AAC/C,sFAAmF;AACnF,8DAA2D;AAC3D,iEAA8D;AAC9D,mFAAgF;AAChF,+CAA4C;AAC5C,uEAAoE;AACpE,iEAA8D;AAC9D,wDAAqD;AACrD,0EAAuE;AACvE,4CAAyC;AACzC,+CAA4C;AAC5C,2DAAwD;AACxD,4CAAyC;AACzC,kDAA+C;AAC/C,sFAAmF;AACnF,6EAA0E;AAC1E,oEAAiE;AACjE,kDAA+C;AAC/C,2DAAwD;AACxD,iEAA8D;AAC9D,qDAAkD;AAClD,mFAAgF;AAChF,iEAA8D;AAC9D,6EAA0E;AAC1E,2DAAwD;AACxD,2DAAwD;AACxD,8DAA2D;AAC3D,oEAAiE;AACjE,2DAAwD;AACxD,qDAAkD;AAClD,oEAAiE;AACjE,wDAAqD;AACrD,6EAA0E;AAC1E,wDAAqD;AACrD,sCAAmC;AACnC,8DAA2D;AAC3D,qDAAkD;AAClD,sCAAmC;AACnC,oEAAiE;AACjE,yCAAsC;A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EAAnB,yCAAmB;IACnB,OAAO,EAAP,iBAAO;IACP,aAAa,EAAb,6BAAa;IACb,eAAe,EAAf,iCAAe;IACf,UAAU,EAAV,uBAAU;IACV,gBAAgB,EAAhB,mCAAgB;IAChB,MAAM,EAAN,eAAM;IACN,OAAO,EAAP,iBAAO;IACP,WAAW,EAAX,yBAAW;IACX,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,oBAAoB,EAApB,2CAAoB;IACpB,cAAc,EAAd,+BAAc;IACd,QAAQ,EAAR,mBAAQ;IACR,WAAW,EAAX,yBAAW;IACX,aAAa,EAAb,6BAAa;IACb,cAAc,EAAd,+BAAc;IACd,WAAW,EAAX,yBAAW;IACX,WAAW,EAAX,yBAAW;IACX,YAAY,EAAZ,2BAAY;IACZ,cAAc,EAAd,+BAAc;IACd,WAAW,EAAX,yBAAW;IACX,SAAS,EAAT,qBAAS;IACT,SAAS,EAAT,qBAAS;IACT,mBAAmB,EAAnB,yCAAmB;IACnB,aAAa,EAAb,6BAAa;IACb,iBAAiB,EAAjB,qCAAiB;IACjB,cAAc,EAAd,+BAAc;IACd,UAAU,EAAV,uBAAU;IACV,iBAAiB,EAAjB,qCAAiB;IACjB,UAAU,EAAV,uBAAU;IACV,IAAI,EAAJ,WAAI;IACJ,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,IAAI,EAAJ,WAAI;IACJ,cAAc,EAAd,+BAAc;IACd,KAAK,EAAL,aAAK;IACL,sBAAsB,EAAtB,+CAAsB;CACvB,CAAC"}
@@ -12,7 +12,9 @@ const renderWantedSumInput_1 = require("./renderWantedSumInput");
12
12
  const useBonusCalculatorParams_1 = require("./useBonusCalculatorParams");
13
13
  exports.BonusCalculatorForm = (0, uni_jsx_1.JSX)(({ className = '', sourceBookDir = '', buttons, footnote }) => {
14
14
  const [travelExpenseValue, setTravelExpenseValue] = (0, hooks_1.useState)(constants_1.DEFAULT_TRAVEL_MIN_SUM);
15
+ const handleTravelExpenseValue = (0, hooks_1.useCallback)((_) => setTravelExpenseValue(_), []);
15
16
  const [restExpenseValue, setRestExpenseValue] = (0, hooks_1.useState)(constants_1.DEFAULT_REST_MIN_SUM);
17
+ const handleRestExpenseValue = (0, hooks_1.useCallback)((_) => setRestExpenseValue(_), []);
16
18
  const userInputParams = {
17
19
  travelExpenseValue,
18
20
  restExpenseValue,
@@ -24,13 +26,13 @@ exports.BonusCalculatorForm = (0, uni_jsx_1.JSX)(({ className = '', sourceBookDi
24
26
  moneyValue: travelExpenseValue,
25
27
  step: 500,
26
28
  isShowItems: false,
27
- }, setTravelExpenseValue), (0, renderWantedSumInput_1.renderWantedSumInput)('Сумма покупок в остальных категориях, ₽', {
29
+ }, handleTravelExpenseValue), (0, renderWantedSumInput_1.renderWantedSumInput)('Сумма покупок в остальных категориях, ₽', {
28
30
  className: 'mt-7',
29
31
  minSum: minSumOther,
30
32
  maxSum: maxSumOther,
31
33
  moneyValue: restExpenseValue,
32
34
  step: 500,
33
35
  isShowItems: false,
34
- }, setRestExpenseValue)] }), (0, jsx_runtime_1.jsx)("div", { children: monthBonus >= 0 ? ((0, jsx_runtime_1.jsx)(Rate_1.Rate, { title: "\u0411\u0430\u043B\u043B\u043E\u0432 \u0437\u0430 \u043C\u0435\u0441\u044F\u0446", rate: monthBonus, rateBlockClassName: "tracking-[-14px]" })) : null }), (0, jsx_runtime_1.jsxs)("div", { className: "w-full max-w-[350px]", children: [yearBonus >= 0 ? (0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0411\u0430\u043B\u043B\u043E\u0432 \u0437\u0430 \u0433\u043E\u0434", value: yearBonus }) : null, (0, renderButtonSection_1.renderButtonSection)(buttons), (0, renderFootnote_1.renderFootnote)(footnote)] })] }));
36
+ }, handleRestExpenseValue)] }), (0, jsx_runtime_1.jsx)("div", { children: monthBonus >= 0 ? ((0, jsx_runtime_1.jsx)(Rate_1.Rate, { title: "\u0411\u0430\u043B\u043B\u043E\u0432 \u0437\u0430 \u043C\u0435\u0441\u044F\u0446", rate: monthBonus, rateBlockClassName: "tracking-[-14px]" })) : null }), (0, jsx_runtime_1.jsxs)("div", { className: "w-full max-w-[350px]", children: [yearBonus >= 0 ? (0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0411\u0430\u043B\u043B\u043E\u0432 \u0437\u0430 \u0433\u043E\u0434", value: yearBonus }) : null, (0, renderButtonSection_1.renderButtonSection)(buttons), (0, renderFootnote_1.renderFootnote)(footnote)] })] }));
35
37
  });
36
38
  //# sourceMappingURL=BonusCalculatorForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BonusCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/BonusCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAuD;AAEvD,iEAA8D;AAC9D,2CAA2E;AAC3E,iCAA8B;AAC9B,+DAA4D;AAC5D,qDAAkD;AAClD,iEAA8D;AAC9D,yEAAsE;AAMzD,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,GAAG,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC5D,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,IAAA,gBAAQ,EAAC,kCAAsB,CAAC,CAAC;IACrF,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,IAAA,gBAAQ,EAAC,gCAAoB,CAAC,CAAC;IAC/E,MAAM,eAAe,GAAG;QACtB,kBAAkB;QAClB,gBAAgB;KACjB,CAAC;IACF,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,GACnF,IAAA,mDAAwB,EAAC,eAAe,EAAE,aAAa,CAAC,CAAC;IAE3D,OAAO,CACL,qCAAS,SAAS,EAAE,SAAS,aAC3B,iCAAK,SAAS,EAAC,WAAW,aACvB,IAAA,2CAAoB,EACnB,0CAA0C,EAC1C;wBACE,MAAM,EAAE,YAAY;wBACpB,MAAM,EAAE,YAAY;wBACpB,UAAU,EAAE,kBAAkB;wBAC9B,IAAI,EAAE,GAAG;wBACT,WAAW,EAAE,KAAK;qBACnB,EACD,qBAAqB,CACtB,EACA,IAAA,2CAAoB,EACnB,yCAAyC,EACzC;wBACE,SAAS,EAAE,MAAM;wBACjB,MAAM,EAAE,WAAW;wBACnB,MAAM,EAAE,WAAW;wBACnB,UAAU,EAAE,gBAAgB;wBAC5B,IAAI,EAAE,GAAG;wBACT,WAAW,EAAE,KAAK;qBACnB,EACD,mBAAmB,CACpB,IACG,EACN,0CACG,UAAU,IAAI,CAAC,CAAC,CAAC,CAAC,CACjB,uBAAC,WAAI,IAAC,KAAK,EAAC,kFAAiB,EAAC,IAAI,EAAE,UAAU,EAAE,kBAAkB,EAAC,kBAAkB,GAAG,CACzF,CAAC,CAAC,CAAC,IAAI,GACJ,EACN,iCAAK,SAAS,EAAC,sBAAsB,aAClC,SAAS,IAAI,CAAC,CAAC,CAAC,CAAC,uBAAC,2CAAoB,IAAC,KAAK,EAAC,sEAAe,EAAC,KAAK,EAAE,SAAS,GAAI,CAAC,CAAC,CAAC,IAAI,EACxF,IAAA,yCAAmB,EAAC,OAAO,CAAC,EAC5B,IAAA,+BAAc,EAAC,QAAQ,CAAC,IACrB,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"BonusCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/BonusCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AAEpE,iEAA8D;AAC9D,2CAA2E;AAC3E,iCAA8B;AAC9B,+DAA4D;AAC5D,qDAAkD;AAClD,iEAA8D;AAC9D,yEAAsE;AAMzD,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CA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B,CACvB,IACG,EACN,0CACG,UAAU,IAAI,CAAC,CAAC,CAAC,CAAC,CACjB,uBAAC,WAAI,IAAC,KAAK,EAAC,kFAAiB,EAAC,IAAI,EAAE,UAAU,EAAE,kBAAkB,EAAC,kBAAkB,GAAG,CACzF,CAAC,CAAC,CAAC,IAAI,GACJ,EACN,iCAAK,SAAS,EAAC,sBAAsB,aAClC,SAAS,IAAI,CAAC,CAAC,CAAC,CAAC,uBAAC,2CAAoB,IAAC,KAAK,EAAC,sEAAe,EAAC,KAAK,EAAE,SAAS,GAAI,CAAC,CAAC,CAAC,IAAI,EACxF,IAAA,yCAAmB,EAAC,OAAO,CAAC,EAC5B,IAAA,+BAAc,EAAC,QAAQ,CAAC,IACrB,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -31,7 +31,9 @@ exports.CreditCalculatorForm = (0, uni_jsx_1.JSX)(({ className = '', sourceBookD
31
31
  const [isSalaryClient, toggleIsSalaryClient] = (0, hooks_1.useState)(false);
32
32
  const [isStateEmployee, toggleIsStateEmployee] = (0, hooks_1.useState)(false);
33
33
  const [moneyValue, setMoneyValue] = (0, hooks_1.useState)(constants_1.DEFAULT_SUM);
34
+ const handleMoneyValue = (0, hooks_1.useCallback)((_) => setMoneyValue(_), []);
34
35
  const [monthsValue, setMonthsValue] = (0, hooks_1.useState)(constants_1.DEFAULT_MONTHS);
36
+ const handleMonthsValue = (0, hooks_1.useCallback)((_) => setMonthsValue(_), []);
35
37
  const userInputParams = {
36
38
  isAnnuity,
37
39
  isInsurance,
@@ -41,6 +43,6 @@ exports.CreditCalculatorForm = (0, uni_jsx_1.JSX)(({ className = '', sourceBookD
41
43
  monthsValue,
42
44
  };
43
45
  const calculatorParams = (0, useCreditCalculatorParams_1.useCreditCalculatorParams)(userInputParams, sourceBookDir);
44
- return ((0, jsx_runtime_1.jsxs)("section", { className: className, children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-[468px]", children: [(0, renderWantedSumInput_1.renderWantedSumInput)('Сумма кредита, ₽', { ...calculatorParams, step: 500 }, setMoneyValue), (0, renderMonthsInput_1.renderMonthsInput)('Срок кредита, месяцев', calculatorParams, setMonthsValue), (0, jsx_runtime_1.jsxs)("div", { className: "mt-7", children: [(0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0443 \u043D\u0430 \u0441\u0447\u0451\u0442 \u0432 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0435", checked: isSalaryClient, onChange: toggleIsSalaryClient }), (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { className: "mt-3", text: "\u0420\u0430\u0431\u043E\u0442\u0430\u044E \u0432 \u0431\u044E\u0434\u0436\u0435\u0442\u043D\u043E\u0439 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", checked: isStateEmployee, onChange: toggleIsStateEmployee }), (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { className: "mt-3", text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", checked: isInsurance, onChange: toggleIsInsurance })] })] }), (0, jsx_runtime_1.jsx)(Rate_1.Rate, { title: "\u0421\u0442\u0430\u0432\u043A\u0430", rate: calculatorParams.finalRate, rateBlockClassName: "tracking-[-25px]", unit: "%" }), (0, jsx_runtime_1.jsxs)("div", { className: "w-full max-w-[350px]", children: [(0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: isAnnuity ? 'Ежемесячный платеж' : 'Платёж в первый месяц', value: calculatorParams.monthlyPayment, postfix: "\u20BD" }), (0, jsx_runtime_1.jsx)(RadioButtonGroup_1.RadioButtonGroup, { items: paymentTypeItems, checkedItem: isAnnuity ? exports.ANNUITY : exports.DIFFERENTIAL, onChange: (text) => toggleIsAnnuity(text === exports.ANNUITY) }), (0, renderButtonSection_1.renderButtonSection)(buttons), (0, renderFootnote_1.renderFootnote)(footnote)] })] }));
46
+ return ((0, jsx_runtime_1.jsxs)("section", { className: className, children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-[468px]", children: [(0, renderWantedSumInput_1.renderWantedSumInput)('Сумма кредита, ₽', { ...calculatorParams, step: 500 }, handleMoneyValue), (0, renderMonthsInput_1.renderMonthsInput)('Срок кредита, месяцев', calculatorParams, handleMonthsValue), (0, jsx_runtime_1.jsxs)("div", { className: "mt-7", children: [(0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0443 \u043D\u0430 \u0441\u0447\u0451\u0442 \u0432 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0435", checked: isSalaryClient, onChange: toggleIsSalaryClient }), (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { className: "mt-3", text: "\u0420\u0430\u0431\u043E\u0442\u0430\u044E \u0432 \u0431\u044E\u0434\u0436\u0435\u0442\u043D\u043E\u0439 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", checked: isStateEmployee, onChange: toggleIsStateEmployee }), (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { className: "mt-3", text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", checked: isInsurance, onChange: toggleIsInsurance })] })] }), (0, jsx_runtime_1.jsx)(Rate_1.Rate, { title: "\u0421\u0442\u0430\u0432\u043A\u0430", rate: calculatorParams.finalRate, rateBlockClassName: "tracking-[-25px]", unit: "%" }), (0, jsx_runtime_1.jsxs)("div", { className: "w-full max-w-[350px]", children: [(0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: isAnnuity ? 'Ежемесячный платеж' : 'Платёж в первый месяц', value: calculatorParams.monthlyPayment, postfix: "\u20BD" }), (0, jsx_runtime_1.jsx)(RadioButtonGroup_1.RadioButtonGroup, { items: paymentTypeItems, checkedItem: isAnnuity ? exports.ANNUITY : exports.DIFFERENTIAL, onChange: (text) => toggleIsAnnuity(text === exports.ANNUITY) }), (0, renderButtonSection_1.renderButtonSection)(buttons), (0, renderFootnote_1.renderFootnote)(footnote)] })] }));
45
47
  });
46
48
  //# sourceMappingURL=CreditCalculatorForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreditCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/CreditCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAuD;AACvD,6DAA0D;AAC1D,qFAAkF;AAElF,iEAA8D;AAC9D,2CAA0D;AAC1D,iCAA8B;AAC9B,+DAA4D;AAC5D,qDAAkD;AAClD,2DAAwD;AACxD,iEAA8D;AAC9D,2EAAwE;AAE3D,QAAA,OAAO,GAAG,SAAS,CAAC;AACpB,QAAA,YAAY,GAAG,cAAc,CAAC;AAE3C,MAAM,gBAAgB,GAAG;IACvB;QACE,EAAE,EAAE,eAAO;QACX,IAAI,EAAE,aAAa;KACpB;IACD;QACE,EAAE,EAAE,oBAAY;QAChB,IAAI,EAAE,oBAAoB;KAC3B;CACF,CAAC;AAMW,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;IACvD,MAAM,CAAC,SAAS,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IACrD,MAAM,CAAC,WAAW,EAAE,iBAAiB,CAAC,GAAG,IAAA,gBAAQ,EA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ACH,KAAK,EAAC,sCAAQ,EACd,IAAI,EAAE,gBAAgB,CAAC,SAAS,EAChC,kBAAkB,EAAC,kBAAkB,EACrC,IAAI,EAAC,GAAG,GACR,EACF,iCAAK,SAAS,EAAC,sBAAsB,aACnC,uBAAC,2CAAoB,IACnB,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,uBAAuB,EACjE,KAAK,EAAE,gBAAgB,CAAC,cAAc,EACtC,OAAO,EAAC,QAAG,GACX,EACF,uBAAC,mCAAgB,IACf,KAAK,EAAE,gBAAgB,EACvB,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC,eAAO,CAAC,CAAC,CAAC,oBAAY,EAC/C,QAAQ,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,KAAK,eAAO,CAAC,GAC7D,EACD,IAAA,yCAAmB,EAAC,OAAO,CAAC,EAC5B,IAAA,+BAAc,EAAC,QAAQ,CAAC,IACrB,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"CreditCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/CreditCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,6DAA0D;AAC1D,qFAAkF;AAElF,iEAA8D;AAC9D,2CAA0D;AAC1D,iCAA8B;AAC9B,+DAA4D;AAC5D,qDAAkD;AAClD,2DAAwD;AACxD,iEAA8D;AAC9D,2EAAwE;AAE3D,QAAA,OAAO,GAAG,SAAS,CAAC;AACpB,QAAA,YAAY,GAAG,cAAc,CAAC;AAE3C,MAAM,gBAAgB,GAAG;IACvB;QACE,EAAE,EAAE,eAAO;QACX,IAAI,EAAE,aAAa;KACpB;IACD;QACE,EAAE,EAAE,oBAAY;QAChB,IAAI,EAAE,oBAAoB;KAC3B;CACF,CAAC;AAMW,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,GAAG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, footnote }) => {
29
29
  const [moneyValue, setMoneyValue] = (0, hooks_1.useState)(constants_1.DEFAULT_SUM);
30
+ const handleMoneyValue = (0, hooks_1.useCallback)((_) => setMoneyValue(_), []);
30
31
  const [monthsValue, setMonthsValue] = (0, hooks_1.useState)(constants_1.DEFAULT_MONTHS);
31
32
  const [isMonthlyInterestPayment, toggleIsMonthlyInterestPayment] = (0, hooks_1.useState)(false);
32
33
  const userInputParams = {
@@ -34,12 +35,14 @@ exports.DepositCalculatorForm = (0, uni_jsx_1.JSX)(({ className = '', sourceBook
34
35
  monthsValue,
35
36
  isMonthlyInterestPayment,
36
37
  };
38
+ const handleMonthsValue = (0, hooks_1.useCallback)((_) => setMonthsValue(_), []);
39
+ const [isEveryMonth, toggleIsEveryMonth] = (0, hooks_1.useState)(false);
37
40
  const calculatorParams = (0, useDepositCalculatorParams_1.useDepositCalculatorParams)(userInputParams, sourceBookDir);
38
41
  const { income, finalSum, rate } = calculatorParams;
39
42
  return ((0, jsx_runtime_1.jsxs)("section", { className: className, children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-[468px]", children: [(0, renderWantedSumInput_1.renderWantedSumInput)('Сумма вклада, ₽', {
40
43
  ...calculatorParams,
41
- }, setMoneyValue), (0, renderMonthsInput_1.renderMonthsInput)('Срок вклада, месяцев', {
44
+ }, handleMoneyValue), (0, renderMonthsInput_1.renderMonthsInput)('Срок вклада, месяцев', {
42
45
  ...calculatorParams,
43
- }, setMonthsValue)] }), (0, jsx_runtime_1.jsx)(Rate_1.Rate, { rate: rate || 1, rateBlockClassName: "tracking-[-25px]", unit: "%" }), (0, jsx_runtime_1.jsxs)("div", { className: "w-full max-w-[350px]", children: [income ? ((0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u043F\u043E \u0432\u043A\u043B\u0430\u0434\u0443", value: income, postfix: "\u20BD", prefix: "+" })) : null, finalSum ? ((0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" })) : null, (0, jsx_runtime_1.jsx)(RadioButtonGroup_1.RadioButtonGroup, { items: depositTypeItems, checkedItem: isMonthlyInterestPayment ? EVERY_MONTH : AT_END_TERM, onChange: (text) => toggleIsMonthlyInterestPayment(text === EVERY_MONTH) }), (0, renderButtonSection_1.renderButtonSection)(buttons), (0, renderFootnote_1.renderFootnote)(footnote)] })] }));
46
+ }, handleMonthsValue)] }), (0, jsx_runtime_1.jsx)(Rate_1.Rate, { rate: rate || 1, rateBlockClassName: "tracking-[-25px]", unit: "%" }), (0, jsx_runtime_1.jsxs)("div", { className: "w-full max-w-[350px]", children: [income ? ((0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u043F\u043E \u0432\u043A\u043B\u0430\u0434\u0443", value: income, postfix: "\u20BD", prefix: "+" })) : null, finalSum ? ((0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" })) : null, (0, jsx_runtime_1.jsx)(RadioButtonGroup_1.RadioButtonGroup, { items: depositTypeItems, checkedItem: isMonthlyInterestPayment ? EVERY_MONTH : AT_END_TERM, onChange: (text) => toggleIsMonthlyInterestPayment(text === EVERY_MONTH) }), (0, renderButtonSection_1.renderButtonSection)(buttons), (0, renderFootnote_1.renderFootnote)(footnote)] })] }));
44
47
  });
45
48
  //# sourceMappingURL=DepositCalculatorForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DepositCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/DepositCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,OAAO;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gB;qBACpB,EACD,cAAc,CACf,IACG,EACN,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,IAAI,CAAC,EAAE,kBAAkB,EAAC,kBAAkB,EAAC,IAAI,EAAC,GAAG,GAAG,EACxE,iCAAK,SAAS,EAAC,sBAAsB,aAClC,MAAM,CAAC,CAAC,CAAC,CACR,uBAAC,2CAAoB,IAAC,KAAK,EAAC,kFAAiB,EAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAC,QAAG,EAAC,MAAM,EAAC,GAAG,GAAG,CACvF,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,CAAC,CAAC,CAAC,CACV,uBAAC,2CAAoB,IAAC,KAAK,EAAC,qGAAqB,EAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAC,QAAG,GAAG,CAClF,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,mCAAgB,IACf,KAAK,EAAE,gBAAgB,EACvB,WAAW,EAAE,wBAAwB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,EACjE,QAAQ,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,8BAA8B,CAAC,IAAI,KAAK,WAAW,CAAC,GAChF,EACD,IAAA,yCAAmB,EAAC,OAAO,CAAC,EAC5B,IAAA,+BAAc,EAAC,QAAQ,CAAC,IACrB,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"DepositCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/DepositCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,OAAO;AAEP,+CAAwC;AACxC,uDAAoE;AACpE,qFAAkF;AAElF,iEAA8D;AAC9D,2CAA0D;AAC1D,iCAA8B;AAC9B,+DAA4D;AAC5D,qDAAkD;AAClD,2DAAwD;AACxD,iEAA8D;AAC9D,6EAA0E;AAM1E,MAAM,WAAW,GAAG,YAAY,CAAC;AACjC,MAAM,WAAW,GAAG,WAAW,CAAC;AAEhC,MAAM,gBAAgB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;qBACpB,EACD,gBAAgB,CACjB,EACA,IAAA,qCAAiB,EAChB,sBAAsB,EACtB;wBACE,GAAG,gBAAgB;qBACpB,EACD,iBAAiB,CAClB,IACG,EACN,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,IAAI,CAAC,EAAE,kBAAkB,EAAC,kBAAkB,EAAC,IAAI,EAAC,GAAG,GAAG,EACxE,iCAAK,SAAS,EAAC,sBAAsB,aAClC,MAAM,CAAC,CAAC,CAAC,CACR,uBAAC,2CAAoB,IAAC,KAAK,EAAC,kFAAiB,EAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAC,QAAG,EAAC,MAAM,EAAC,GAAG,GAAG,CACvF,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,CAAC,CAAC,CAAC,CACV,uBAAC,2CAAoB,IAAC,KAAK,EAAC,qGAAqB,EAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAC,QAAG,GAAG,CAClF,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,mCAAgB,IACf,KAAK,EAAE,gBAAgB,EACvB,WAAW,EAAE,wBAAwB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,EACjE,QAAQ,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,8BAA8B,CAAC,IAAI,KAAK,WAAW,CAAC,GAChF,EACD,IAAA,yCAAmB,EAAC,OAAO,CAAC,EAC5B,IAAA,+BAAc,EAAC,QAAQ,CAAC,IACrB,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -9,7 +9,7 @@ const SwipeListContainer_1 = require("../../ui-kit/SwipeListControl/SwipeListCon
9
9
  const useSwipeListScroll_1 = require("../../ui-kit/SwipeListControl/useSwipeListScroll");
10
10
  const ITEMS_GAP = 4;
11
11
  const blurBaseStyle = 'absolute top-0 bottom-0 z-50 w-[84px]';
12
- const scrollButtonStyle = 'absolute top-1/2 z-50';
12
+ const scrollButtonStyle = 'absolute top-[calc(50%-12px)] z-50';
13
13
  exports.Carousel = (0, uni_jsx_1.JSX)(({ className = '', itemCount, visibleItemCount, isBlur = true, isCyclic = false, ...rest }) => {
14
14
  const { blocks: childBlocks } = rest.block || {};
15
15
  const count = itemCount || childBlocks?.length || 0;
@@ -24,6 +24,7 @@ exports.Carousel.childrenTypes = [
24
24
  'CarouselTariffsCard',
25
25
  'CarouselLinks',
26
26
  'CarouselProgramsCard',
27
+ 'CarouselInvestmentCard',
27
28
  ];
28
29
  const renderScrollButtons = ({ scrollLeft, scrollRight, canScrollLeft, canScrollRight, }) => ((0, jsx_runtime_1.jsxs)("div", { children: [canScrollLeft ? ((0, jsx_runtime_1.jsx)(ArrowButton_1.ScrollLeftButton, { className: `${scrollButtonStyle} left-8`, onClick: scrollLeft })) : null, canScrollRight ? ((0, jsx_runtime_1.jsx)(ArrowButton_1.ScrollRightButton, { className: `${scrollButtonStyle} right-8`, onClick: scrollRight })) : null] }));
29
30
  //# sourceMappingURL=Carousel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Carousel.js","sourceRoot":"","sources":["../../../src/components/Carousel/Carousel.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uEAAoE;AAEpE,4DAAyD;AACzD,iEAAsF;AACtF,yFAAsF;AACtF,yFAG0D;AAO1D,MAAM,SAAS,GAAG,CAAC,CAAC;AAEpB,MAAM,aAAa,GAAG,uCAAuC,CAAC;AAC9D,MAAM,iBAAiB,GAAG,uBAAuB,CAAC;AAErC,QAAA,QAAQ,GAA4B,IAAA,aAAG,EAClD,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,GAAG,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC5F,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;IACjD,MAAM,KAAK,GAAG,SAAS,IAAI,WAAW,EAAE,MAAM,I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K,SAAS,EAAE,GAAG,aAAa,8BAA8B,GAAI,IAC9D,CACP,CAAC,CAAC,CAAC,IAAI,EACP,mBAAmB,CAAC,MAAM,CAAC,IACf,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAQ,CAAC,aAAa,GAAG;IACvB,cAAc;IACd,qBAAqB;IACrB,eAAe;IACf,sBAAsB;IACtB,wBAAwB;CACzB,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,EAC3B,UAAU,EACV,WAAW,EACX,aAAa,EACb,cAAc,GACE,EAAE,EAAE,CAAC,CACrB,4CACG,aAAa,CAAC,CAAC,CAAC,CACf,uBAAC,8BAAgB,IAAC,SAAS,EAAE,GAAG,iBAAiB,SAAS,EAAE,OAAO,EAAE,UAAU,GAAI,CACpF,CAAC,CAAC,CAAC,IAAI,EACP,cAAc,CAAC,CAAC,CAAC,CAChB,uBAAC,+BAAiB,IAAC,SAAS,EAAE,GAAG,iBAAiB,UAAU,EAAE,OAAO,EAAE,WAAW,GAAI,CACvF,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC"}
@@ -6,8 +6,8 @@ const ButtonSection_1 = require("../../ui-kit/Button/ButtonSection");
6
6
  const Headline_1 = require("../Headline/Headline");
7
7
  const BLOCK_CLASSES = 'absolute border border-solid border-main-stroke w-full h-full';
8
8
  const CARD_WIDTH_MAP = {
9
- normal: `w-[${1007 + 48}px]`,
10
- mini: `w-[${350 + 48}px]`,
9
+ normal: 'min-w-[1007px]',
10
+ mini: 'min-w-[355px]',
11
11
  };
12
12
  exports.CarouselCard = (0, uni_jsx_1.JSX)(({ className = '', button, description, title, version = 'normal' }) => ((0, jsx_runtime_1.jsx)("section", { className: `flex pb-9 pl-12 ${CARD_WIDTH_MAP[version]} ${className}`, children: (0, jsx_runtime_1.jsxs)("div", { className: "relative w-full", children: [(0, jsx_runtime_1.jsx)("div", { className: `${BLOCK_CLASSES} z-10 top-9 right-12 bg-green-dark` }), (0, jsx_runtime_1.jsx)("div", { className: `${BLOCK_CLASSES} z-10 top-6 right-8 bg-green` }), (0, jsx_runtime_1.jsx)("div", { className: `${BLOCK_CLASSES} z-10 top-3 right-4 bg-green-light` }), (0, jsx_runtime_1.jsxs)("div", { className: "relative bg-white z-10 py-6 px-10 border border-solid border-green-light", children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M", align: "center" }), button ? (0, jsx_runtime_1.jsx)("div", { className: "mt-6", children: (0, ButtonSection_1.renderButton)({ button }) }) : null] })] }) })));
13
13
  //# sourceMappingURL=CarouselCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CarouselCard.js","sourceRoot":"","sources":["../../../src/components/CarouselCard/CarouselCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,qEAAiE;AACjE,mDAAgD;AAKhD,MAAM,aAAa,GAAG,+DAA+D,CAAC;AAEtF,MAAM,cAAc,GAAwC;IAC1D,MAAM,EAAE,MAAM,IAAI,GAAG,EAAE,KAAK;IAC5B,IAAI,EAAE,MAAM,GAAG,GAAG,EAAE,KAAK;CAC1B,CAAC;AAEW,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,GAAG,QAAQ,EAAE,EAAE,EAAE,CAAC,CACtE,oCAAS,SAAS,EAAE,mBAAmB,cAAc,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE,YAC3E,iCAAK,SAAS,EAAC,iBAAiB,aAC9B,gCAAK,SAAS,EAAE,GAAG,aAAa,oCAAoC,GAAI,EACxE,gCAAK,SAAS,EAAE,GAAG,aAAa,8BAA8B,GAAI,EAClE,gCAAK,SAAS,EAAE,GAAG,aAAa,oCAAoC,GAAI,EACxE,iCAAK,SAAS,EAAC,0EAA0E,aACvF,uBAAC,mBAAQ,IACP,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,KAAK,EACZ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C,CAAC,IAAI,IACnE,IACF,GACE,CACX,CACF,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { CarouselInvestmentCardContent } from './CarouselInvestmentCardContent';
2
+ import type { UniBlockProps } from '../../model/JSXBlock';
3
+ export interface CarouselInvestmentCardProps extends CarouselInvestmentCardContent, UniBlockProps {
4
+ }
5
+ export declare const CarouselInvestmentCard: import("@redneckz/uni-jsx").UNIComponent<CarouselInvestmentCardProps, any, any>;
@@ -0,0 +1,28 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.CarouselInvestmentCard = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const BaseTile_1 = require("../BaseTile/BaseTile");
5
+ const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
6
+ const BorderVersion_1 = require("../../model/BorderVersion");
7
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
8
+ const Heading_1 = require("../../ui-kit/Heading/Heading");
9
+ const Img_1 = require("../../ui-kit/Img/Img");
10
+ const getItemListFontSize = (colValue) => (colValue === 1 ? 'text-h6' : 'text-l');
11
+ const cardColumnsModeStyleMap = {
12
+ 1: 'flex gap-y-2 flex-col',
13
+ 2: 'flex gap-y-2 gap-x-10 flex-wrap',
14
+ };
15
+ exports.CarouselInvestmentCard = (0, uni_jsx_1.JSX)(({ additionalDescription, cardsList = [], className = '', columnsMode = 1, description, image, title, version = 'primary', ...rest }) => {
16
+ const tileTitle = title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h4", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
17
+ const tileImage = image?.src ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
18
+ return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: `relative text-left border border-solid box-border
19
+ p-9 w-[697px]
20
+ ${BorderVersion_1.BorderVersionStyleMap[version]}
21
+ ${className}`, ...rest, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { title: tileTitle, image: tileImage, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between mb-4", children: [description ? (0, jsx_runtime_1.jsx)("span", { className: "text-h6 w-1/3", children: description }) : null, additionalDescription ? ((0, jsx_runtime_1.jsx)("span", { className: "text-m-light text-secondary-text", children: additionalDescription })) : null] }), cardsList.length ? ((0, jsx_runtime_1.jsx)("ul", { className: `list-none m-0 p-0 ${cardColumnsModeStyleMap[columnsMode]}`, children: renderCardList(cardsList, columnsMode) })) : null] }) }));
22
+ });
23
+ const renderCardList = (cardsList, columnsMode) => {
24
+ const CARDS_COUNT_MAP = [4, 9];
25
+ const visibleCardsList = cardsList.slice(0, CARDS_COUNT_MAP[columnsMode - 1]);
26
+ return visibleCardsList.map((item, i) => ((0, jsx_runtime_1.jsxs)("li", { className: columnsMode === 2 ? 'basis-[calc(50%-20px)]' : '', children: [item?.parameter ? ((0, jsx_runtime_1.jsx)("span", { className: `pr-2.5 ${getItemListFontSize(columnsMode)}`, children: item.parameter })) : null, item?.parameterDescription ? ((0, jsx_runtime_1.jsx)("span", { className: "text-m-light text-secondary-text", children: item.parameterDescription })) : null] }, String(i))));
27
+ };
28
+ //# sourceMappingURL=CarouselInvestmentCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarouselInvestmentCard.js","sourceRoot":"","sources":["../../../src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx"],"names":[],"mappings":";;;AAAA,mDAAgD;AAChD,4DAAyD;AACzD,6DAAkE;AAMlE,+CAAwC;AACxC,0DAAuD;AACvD,8CAA2C;AAK3C,MAAM,mBAAmB,GAAG,CAAC,QAAiB,EAAE,EAAE,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;AAE3F,MAAM,uBAAuB,GAAoC;IAC/D,CAAC,EAAE,uBAAuB;IAC1B,CAAC,EAAE,iCA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,IAAI,IACC,GACE,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,SAA0B,EAAE,WAAmB,EAAE,EAAE;IACzE,MAAM,eAAe,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,MAAM,gBAAgB,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,eAAe,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC;IAE9E,OAAO,gBAAgB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACvC,gCAAoB,SAAS,EAAE,WAAW,KAAK,CAAC,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,aAC7E,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CACjB,iCAAM,SAAS,EAAE,UAAU,mBAAmB,CAAC,WAAW,CAAC,EAAE,YAAG,IAAI,CAAC,SAAS,GAAQ,CACvF,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAC5B,iCAAM,SAAS,EAAC,kCAAkC,YAAE,IAAI,CAAC,oBAAoB,GAAQ,CACtF,CAAC,CAAC,CAAC,IAAI,KAND,MAAM,CAAC,CAAC,CAAC,CAOb,CACN,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,20 +1,32 @@
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
- * @title Количество колонок в списке
5
+ * @title Карточка галереи инвестиций
6
+ */
7
+ /**
8
+ * @title Количество колонок
6
9
  * @enumNames [
7
10
  * "1 колонка",
8
11
  * "2 колонки",
9
12
  * ]
10
13
  */
11
- export declare type CardColumnsMode = 'single' | 'double';
12
- /**
13
- * @title Карточка
14
- */
15
- export interface InvestmentGalleryCardTypes extends HeadlineCommonProps {
14
+ export declare type CardColumnsMode = 1 | 2;
15
+ export interface CardsListItem {
16
+ /** @title Параметр */
17
+ parameter?: string;
18
+ /** @title Описание */
19
+ parameterDescription?: string;
20
+ }
21
+ export interface CarouselInvestmentCardContent extends HeadlineCommonProps {
16
22
  /** @title Доп. описание карточки */
17
23
  additionalDescription?: string;
24
+ /** @default 1 */
25
+ columnsMode?: CardColumnsMode;
26
+ /**
27
+ * @title Список
28
+ */
29
+ cardsList?: CardsListItem[];
18
30
  /**
19
31
  * @default {
20
32
  * "format": "webp",
@@ -30,21 +42,5 @@ export interface InvestmentGalleryCardTypes extends HeadlineCommonProps {
30
42
  * }
31
43
  */
32
44
  image?: Picture;
33
- columnsMode?: CardColumnsMode;
34
- /** @title Описание пункта */
35
- cardList?: CardListItem[];
36
- }
37
- export interface CardListItem {
38
- /** @title Параметр */
39
- parameter?: string;
40
- /** @title Описание */
41
- parameterDesccription?: string;
42
- }
43
- /**
44
- * @title Карточка
45
- */
46
- export interface InvestmentGalleryContent extends TitleProps {
47
- /** @title Карточки */
48
- cards?: InvestmentGalleryCardTypes[];
49
45
  version?: BlockVersion;
50
46
  }
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=CarouselInvestmentCardContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarouselInvestmentCardContent.js","sourceRoot":"","sources":["../../../src/components/CarouselInvestmentCard/CarouselInvestmentCardContent.ts"],"names":[],"mappings":""}