@redneckz/wildless-cms-uni-blocks 0.6.32 → 0.6.34

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 (1151) hide show
  1. package/bin/migration-scripts/0.6.34.js +51 -0
  2. package/bundle/BlockRenderer/BlockRendererOptions.d.ts +11 -0
  3. package/bundle/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
  4. package/bundle/BlockRenderer/getParentBlockContent.d.ts +2 -0
  5. package/bundle/BlockRenderer/getParentBlockDef.d.ts +3 -0
  6. package/bundle/BlockRenderer/renderBlock.d.ts +3 -0
  7. package/bundle/BlockRenderer/renderBlockList.d.ts +9 -0
  8. package/bundle/BlockRenderer/renderChildren.d.ts +10 -0
  9. package/bundle/blocks.schema.json +1 -1
  10. package/bundle/bundle.umd.js +382 -395
  11. package/bundle/bundle.umd.min.js +1 -1
  12. package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
  13. package/bundle/components/Carousel/Carousel.d.ts +1 -0
  14. package/bundle/components/Carousel/CarouselContainer.d.ts +8 -5
  15. package/bundle/components/Carousel/CarouselContent.d.ts +5 -8
  16. package/bundle/components/CarouselCard/CarouselCard.d.ts +0 -2
  17. package/bundle/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  18. package/bundle/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
  19. package/bundle/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
  20. package/bundle/components/ComparisonTable/TableRow.d.ts +1 -1
  21. package/bundle/components/ComparisonTable/constants.d.ts +1 -1
  22. package/bundle/components/Gallery/GalleryContainer.d.ts +1 -1
  23. package/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  24. package/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
  25. package/bundle/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  26. package/bundle/components/Video/Video.d.ts +6 -0
  27. package/bundle/components/Video/VideoContent.d.ts +8 -0
  28. package/bundle/components/Video/getPaddings.d.ts +1 -0
  29. package/bundle/hooks/useCarouselControls.d.ts +5 -3
  30. package/bundle/model/JSXBlock.d.ts +4 -5
  31. package/bundle/model/LinkProps.d.ts +1 -0
  32. package/bundle/model/Picture.d.ts +8 -2
  33. package/bundle/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
  34. package/bundle/ui-kit/Button/renderArrows.d.ts +6 -4
  35. package/bundle/ui-kit/Paragraph/Paragraph.d.ts +9 -0
  36. package/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
  37. package/bundle/ui-kit/Text/Text.d.ts +34 -0
  38. package/dist/BlockRenderer/BlockRendererOptions.d.ts +11 -0
  39. package/dist/BlockRenderer/BlockRendererOptions.js +2 -0
  40. package/dist/BlockRenderer/BlockRendererOptions.js.map +1 -0
  41. package/dist/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
  42. package/dist/BlockRenderer/defaultBlockDecorator.js +5 -0
  43. package/dist/BlockRenderer/defaultBlockDecorator.js.map +1 -0
  44. package/dist/BlockRenderer/getParentBlockContent.d.ts +2 -0
  45. package/{mobile/dist/model → dist/BlockRenderer}/getParentBlockContent.js +2 -2
  46. package/dist/BlockRenderer/getParentBlockContent.js.map +1 -0
  47. package/dist/BlockRenderer/getParentBlockDef.d.ts +3 -0
  48. package/dist/BlockRenderer/getParentBlockDef.js +7 -0
  49. package/dist/BlockRenderer/getParentBlockDef.js.map +1 -0
  50. package/dist/BlockRenderer/renderBlock.d.ts +3 -0
  51. package/dist/BlockRenderer/renderBlock.js +27 -0
  52. package/dist/BlockRenderer/renderBlock.js.map +1 -0
  53. package/dist/BlockRenderer/renderBlockList.d.ts +9 -0
  54. package/dist/BlockRenderer/renderBlockList.js +14 -0
  55. package/dist/BlockRenderer/renderBlockList.js.map +1 -0
  56. package/dist/BlockRenderer/renderChildren.d.ts +10 -0
  57. package/dist/BlockRenderer/renderChildren.js +13 -0
  58. package/dist/BlockRenderer/renderChildren.js.map +1 -0
  59. package/dist/components/Accordion/Accordion.js +3 -1
  60. package/dist/components/Accordion/Accordion.js.map +1 -1
  61. package/dist/components/Accordion/Accordion.mobile.js +3 -1
  62. package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
  63. package/dist/components/AccordionItem/AccordionItem.js +4 -2
  64. package/dist/components/AccordionItem/AccordionItem.js.map +1 -1
  65. package/dist/components/AccordionItem/AccordionItem.mobile.js +7 -5
  66. package/dist/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
  67. package/dist/components/Blocks.js +3 -1
  68. package/dist/components/Blocks.js.map +1 -1
  69. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +16 -4
  70. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  71. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
  72. package/dist/components/Calculator/Calculator.js +22 -22
  73. package/dist/components/Calculator/Calculator.js.map +1 -1
  74. package/dist/components/Calculator/CalculatorValueBlock.js +1 -3
  75. package/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
  76. package/dist/components/CardTransfer/CardTransfer.js +2 -1
  77. package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  78. package/dist/components/Carousel/Carousel.d.ts +1 -0
  79. package/dist/components/Carousel/Carousel.js +16 -14
  80. package/dist/components/Carousel/Carousel.js.map +1 -1
  81. package/dist/components/Carousel/CarouselContainer.d.ts +8 -5
  82. package/dist/components/Carousel/CarouselContainer.js +8 -5
  83. package/dist/components/Carousel/CarouselContainer.js.map +1 -1
  84. package/dist/components/Carousel/CarouselContent.d.ts +5 -8
  85. package/dist/components/Carousel/CarouselContent.js +0 -3
  86. package/dist/components/Carousel/CarouselContent.js.map +1 -1
  87. package/dist/components/CarouselCard/CarouselCard.d.ts +0 -2
  88. package/dist/components/CarouselCard/CarouselCard.js +4 -11
  89. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  90. package/dist/components/CarouselLinks/CarouselLinks.js +9 -9
  91. package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  92. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  93. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  94. package/dist/components/Catalog/Catalog.js +8 -11
  95. package/dist/components/Catalog/Catalog.js.map +1 -1
  96. package/dist/components/ComparisonTable/ComparisonTable.mobile.js +2 -2
  97. package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  98. package/dist/components/ComparisonTable/ComparisonTableBody.js +4 -4
  99. package/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
  100. package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  101. package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -1
  102. package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
  103. package/dist/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
  104. package/dist/components/ComparisonTable/ComparisonTableRows.js +8 -7
  105. package/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
  106. package/dist/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
  107. package/dist/components/ComparisonTable/TableCarouselContainer.js +1 -1
  108. package/dist/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
  109. package/dist/components/ComparisonTable/TableRow.d.ts +1 -1
  110. package/dist/components/ComparisonTable/TableRow.js +1 -1
  111. package/dist/components/ComparisonTable/TableRow.js.map +1 -1
  112. package/dist/components/ComparisonTable/constants.d.ts +1 -1
  113. package/dist/components/ComparisonTable/constants.js +1 -1
  114. package/dist/components/ContactsBlock/ContactsBlock.js +3 -5
  115. package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  116. package/dist/components/ContentPage/ContentPage.js +13 -7
  117. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  118. package/dist/components/ExchangeRateTile/CurrencyTable.js +1 -3
  119. package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  120. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -3
  121. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  122. package/dist/components/Footer/Footer.js +1 -1
  123. package/dist/components/Footer/Footer.js.map +1 -1
  124. package/dist/components/Footer/Footer.mobile.js +2 -2
  125. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  126. package/dist/components/Gallery/GalleryCardInner.js +2 -4
  127. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  128. package/dist/components/Gallery/GalleryContainer.d.ts +1 -1
  129. package/dist/components/Gallery/GalleryContainer.js +1 -3
  130. package/dist/components/Gallery/GalleryContainer.js.map +1 -1
  131. package/dist/components/Gallery/GalleryInner.js +9 -12
  132. package/dist/components/Gallery/GalleryInner.js.map +1 -1
  133. package/dist/components/Header/Header.js +1 -1
  134. package/dist/components/Header/Header.js.map +1 -1
  135. package/dist/components/Header/Header.mobile.js +2 -3
  136. package/dist/components/Header/Header.mobile.js.map +1 -1
  137. package/dist/components/Headline/Headline.js +1 -2
  138. package/dist/components/Headline/Headline.js.map +1 -1
  139. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +23 -25
  140. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  141. package/dist/components/InvestmentGallery/InvestmentGallery.js +10 -20
  142. package/dist/components/InvestmentGallery/InvestmentGallery.js.map +1 -1
  143. package/dist/components/InvestmentGallery/InvestmentGalleryCard.js +1 -2
  144. package/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
  145. package/dist/components/MobileAppTile/MobileAppTile.js +4 -4
  146. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  147. package/dist/components/OtherProducts/OtherProducts.js +2 -1
  148. package/dist/components/OtherProducts/OtherProducts.js.map +1 -1
  149. package/dist/components/OtherProductsItem/OtherProductsItem.js +5 -4
  150. package/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  151. package/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  152. package/dist/components/ProductBlock/ProductBlockInner.js +2 -2
  153. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  154. package/dist/components/Recommendation/Recommendation.js +11 -21
  155. package/dist/components/Recommendation/Recommendation.js.map +1 -1
  156. package/dist/components/Recommendation/RecommendationCard.js +1 -2
  157. package/dist/components/Recommendation/RecommendationCard.js.map +1 -1
  158. package/dist/components/RollupItem/RollupItem.js +5 -3
  159. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  160. package/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
  161. package/dist/components/StepsBlock/StepsBlock.js +1 -1
  162. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  163. package/dist/components/TariffsTable/TariffsTable.js +12 -14
  164. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  165. package/dist/components/TariffsTable/TariffsTable.mobile.js +1 -1
  166. package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
  167. package/dist/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  168. package/dist/components/TariffsTable/TariffsTableRow.js +2 -2
  169. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  170. package/dist/components/Tile/Tile.js +2 -2
  171. package/dist/components/Tile/Tile.js.map +1 -1
  172. package/dist/components/VerticalLayout/VerticalLayout.js +3 -2
  173. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  174. package/dist/components/Video/Video.d.ts +6 -0
  175. package/dist/components/Video/Video.js +12 -0
  176. package/dist/components/Video/Video.js.map +1 -0
  177. package/dist/components/Video/VideoContent.d.ts +8 -0
  178. package/dist/components/Video/VideoContent.js +2 -0
  179. package/dist/components/Video/VideoContent.js.map +1 -0
  180. package/dist/components/Video/getPaddings.d.ts +1 -0
  181. package/dist/components/Video/getPaddings.js +7 -0
  182. package/dist/components/Video/getPaddings.js.map +1 -0
  183. package/dist/hooks/useCarouselControls.d.ts +5 -3
  184. package/dist/hooks/useCarouselControls.js +19 -8
  185. package/dist/hooks/useCarouselControls.js.map +1 -1
  186. package/dist/model/JSXBlock.d.ts +4 -5
  187. package/dist/model/LinkProps.d.ts +1 -0
  188. package/dist/model/Picture.d.ts +8 -2
  189. package/dist/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
  190. package/{mobile/dist/react → dist}/setup-fixture.js +4 -4
  191. package/dist/setup-fixture.js.map +1 -0
  192. package/dist/ui-kit/Button/renderArrows.d.ts +6 -4
  193. package/dist/ui-kit/Button/renderArrows.js +3 -2
  194. package/dist/ui-kit/Button/renderArrows.js.map +1 -1
  195. package/dist/ui-kit/InnerTable/InnerTableBodyItem.js +9 -10
  196. package/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  197. package/dist/ui-kit/Paragraph/Paragraph.d.ts +9 -0
  198. package/dist/ui-kit/Paragraph/Paragraph.js +10 -0
  199. package/dist/ui-kit/Paragraph/Paragraph.js.map +1 -0
  200. package/dist/ui-kit/SwipeListControl/SwipeListControl.js +5 -2
  201. package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  202. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -12
  203. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  204. package/dist/ui-kit/SwipeListControl/SwipeListControlList.js +2 -2
  205. package/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -1
  206. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +5 -3
  207. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  208. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
  209. package/dist/ui-kit/Text/Text.d.ts +34 -0
  210. package/dist/ui-kit/Text/Text.js +10 -0
  211. package/dist/ui-kit/Text/Text.js.map +1 -0
  212. package/lib/BlockRenderer/BlockRendererOptions.d.ts +11 -0
  213. package/lib/BlockRenderer/BlockRendererOptions.js +2 -0
  214. package/lib/BlockRenderer/BlockRendererOptions.js.map +1 -0
  215. package/lib/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
  216. package/lib/BlockRenderer/defaultBlockDecorator.js +2 -0
  217. package/lib/BlockRenderer/defaultBlockDecorator.js.map +1 -0
  218. package/lib/BlockRenderer/getParentBlockContent.d.ts +2 -0
  219. package/lib/BlockRenderer/getParentBlockContent.js +6 -0
  220. package/lib/BlockRenderer/getParentBlockContent.js.map +1 -0
  221. package/lib/BlockRenderer/getParentBlockDef.d.ts +3 -0
  222. package/lib/BlockRenderer/getParentBlockDef.js +4 -0
  223. package/lib/BlockRenderer/getParentBlockDef.js.map +1 -0
  224. package/lib/BlockRenderer/renderBlock.d.ts +3 -0
  225. package/lib/BlockRenderer/renderBlock.js +24 -0
  226. package/lib/BlockRenderer/renderBlock.js.map +1 -0
  227. package/lib/BlockRenderer/renderBlockList.d.ts +9 -0
  228. package/lib/BlockRenderer/renderBlockList.js +11 -0
  229. package/lib/BlockRenderer/renderBlockList.js.map +1 -0
  230. package/lib/BlockRenderer/renderChildren.d.ts +10 -0
  231. package/lib/BlockRenderer/renderChildren.js +10 -0
  232. package/lib/BlockRenderer/renderChildren.js.map +1 -0
  233. package/lib/common.css +1 -1
  234. package/lib/components/Accordion/Accordion.fixture.d.ts +3 -2
  235. package/lib/components/Accordion/Accordion.fixture.mobile.d.ts +3 -2
  236. package/lib/components/Accordion/Accordion.js +3 -1
  237. package/lib/components/Accordion/Accordion.js.map +1 -1
  238. package/lib/components/Accordion/Accordion.mobile.js +3 -1
  239. package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
  240. package/lib/components/AccordionItem/AccordionItem.js +4 -2
  241. package/lib/components/AccordionItem/AccordionItem.js.map +1 -1
  242. package/lib/components/AccordionItem/AccordionItem.mobile.js +7 -5
  243. package/lib/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
  244. package/lib/components/BenefitsBlock/BenefitsBlock.fixture.d.ts +1 -1
  245. package/lib/components/Blocks.js +3 -1
  246. package/lib/components/Blocks.js.map +1 -1
  247. package/lib/components/Bonus/Bonus.fixture.d.ts +1 -1
  248. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.d.ts +2 -1
  249. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +16 -4
  250. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  251. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
  252. package/lib/components/BusinessBlock/BusinessBlock.fixture.d.ts +1 -1
  253. package/lib/components/Calculator/Calculator.fixture.d.ts +1 -1
  254. package/lib/components/Calculator/Calculator.js +23 -23
  255. package/lib/components/Calculator/Calculator.js.map +1 -1
  256. package/lib/components/Calculator/CalculatorValueBlock.js +1 -3
  257. package/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
  258. package/lib/components/CardTransfer/CardTransfer.fixture.d.ts +1 -1
  259. package/lib/components/CardTransfer/CardTransfer.js +3 -2
  260. package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  261. package/lib/components/Carousel/Carousel.d.ts +1 -0
  262. package/lib/components/Carousel/Carousel.fixture.d.ts +1 -1
  263. package/lib/components/Carousel/Carousel.js +16 -14
  264. package/lib/components/Carousel/Carousel.js.map +1 -1
  265. package/lib/components/Carousel/CarouselContainer.d.ts +8 -5
  266. package/lib/components/Carousel/CarouselContainer.js +8 -5
  267. package/lib/components/Carousel/CarouselContainer.js.map +1 -1
  268. package/lib/components/Carousel/CarouselContent.d.ts +5 -8
  269. package/lib/components/Carousel/CarouselContent.js +0 -3
  270. package/lib/components/Carousel/CarouselContent.js.map +1 -1
  271. package/lib/components/CarouselCard/CarouselCard.d.ts +0 -2
  272. package/lib/components/CarouselCard/CarouselCard.fixture.d.ts +2 -1
  273. package/lib/components/CarouselCard/CarouselCard.js +4 -11
  274. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  275. package/lib/components/CarouselLinks/CarouselLinks.js +9 -9
  276. package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  277. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  278. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  279. package/lib/components/Catalog/Catalog.fixture.d.ts +1 -1
  280. package/lib/components/Catalog/Catalog.js +8 -11
  281. package/lib/components/Catalog/Catalog.js.map +1 -1
  282. package/lib/components/ComparisonTable/ComparisonTable.fixture.d.ts +2 -2
  283. package/lib/components/ComparisonTable/ComparisonTable.fixture.mobile.d.ts +1 -1
  284. package/lib/components/ComparisonTable/ComparisonTable.mobile.js +2 -2
  285. package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  286. package/lib/components/ComparisonTable/ComparisonTableBody.js +4 -4
  287. package/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
  288. package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  289. package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -1
  290. package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
  291. package/lib/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
  292. package/lib/components/ComparisonTable/ComparisonTableRows.js +8 -7
  293. package/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
  294. package/lib/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
  295. package/lib/components/ComparisonTable/TableCarouselContainer.js +1 -1
  296. package/lib/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
  297. package/lib/components/ComparisonTable/TableRow.d.ts +1 -1
  298. package/lib/components/ComparisonTable/TableRow.js +1 -1
  299. package/lib/components/ComparisonTable/TableRow.js.map +1 -1
  300. package/lib/components/ComparisonTable/constants.d.ts +1 -1
  301. package/lib/components/ComparisonTable/constants.js +1 -1
  302. package/lib/components/ContactsBlock/ContactsBlock.fixture.d.ts +1 -1
  303. package/lib/components/ContactsBlock/ContactsBlock.js +3 -5
  304. package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  305. package/lib/components/ContentPage/ContentPage.fixture.d.ts +1 -1
  306. package/lib/components/ContentPage/ContentPage.fixture.mobile.d.ts +1 -1
  307. package/lib/components/ContentPage/ContentPage.js +13 -7
  308. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  309. package/lib/components/ErrorBlock/ErrorBlock.fixture.d.ts +1 -1
  310. package/lib/components/ExchangeRateTile/CurrencyTable.js +1 -3
  311. package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  312. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -4
  313. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  314. package/lib/components/ExchangeRateTile/ExchangeRateTile.fixture.d.ts +1 -1
  315. package/lib/components/Footer/Footer.fixture.d.ts +1 -1
  316. package/lib/components/Footer/Footer.fixture.mobile.d.ts +1 -1
  317. package/lib/components/Footer/Footer.js +1 -1
  318. package/lib/components/Footer/Footer.js.map +1 -1
  319. package/lib/components/Footer/Footer.mobile.js +2 -2
  320. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  321. package/lib/components/Gallery/Gallery.fixture.d.ts +1 -1
  322. package/lib/components/Gallery/Gallery.fixture.mobile.d.ts +1 -1
  323. package/lib/components/Gallery/GalleryCardInner.js +2 -4
  324. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  325. package/lib/components/Gallery/GalleryContainer.d.ts +1 -1
  326. package/lib/components/Gallery/GalleryContainer.js +1 -3
  327. package/lib/components/Gallery/GalleryContainer.js.map +1 -1
  328. package/lib/components/Gallery/GalleryInner.js +9 -12
  329. package/lib/components/Gallery/GalleryInner.js.map +1 -1
  330. package/lib/components/GracePeriod/GracePeriod.fixture.d.ts +1 -1
  331. package/lib/components/Header/Header.fixture.d.ts +1 -1
  332. package/lib/components/Header/Header.fixture.mobile.d.ts +1 -1
  333. package/lib/components/Header/Header.js +1 -1
  334. package/lib/components/Header/Header.js.map +1 -1
  335. package/lib/components/Header/Header.mobile.js +2 -3
  336. package/lib/components/Header/Header.mobile.js.map +1 -1
  337. package/lib/components/Headline/Headline.fixture.d.ts +1 -1
  338. package/lib/components/Headline/Headline.fixture.mobile.d.ts +1 -1
  339. package/lib/components/Headline/Headline.js +1 -2
  340. package/lib/components/Headline/Headline.js.map +1 -1
  341. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.d.ts +1 -1
  342. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +24 -26
  343. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  344. package/lib/components/InvestmentGallery/InvestmentGallery.fixture.d.ts +1 -1
  345. package/lib/components/InvestmentGallery/InvestmentGallery.js +10 -20
  346. package/lib/components/InvestmentGallery/InvestmentGallery.js.map +1 -1
  347. package/lib/components/InvestmentGallery/InvestmentGalleryCard.js +1 -2
  348. package/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
  349. package/lib/components/InvestmentInfo/InvestmentInfo.fixture.d.ts +1 -1
  350. package/lib/components/LikeControl/LikeControl.fixture.d.ts +1 -1
  351. package/lib/components/LinkDocs/LinkDocs.fixture.d.ts +1 -1
  352. package/lib/components/LinkDocs/LinkDocs.fixture.mobile.d.ts +1 -1
  353. package/lib/components/LinkList/LinkList.fixture.d.ts +1 -1
  354. package/lib/components/MiniGallery/MiniGallery.fixture.d.ts +1 -1
  355. package/lib/components/MobileAppTile/MobileAppTile.fixture.d.ts +1 -1
  356. package/lib/components/MobileAppTile/MobileAppTile.fixture.mobile.d.ts +1 -1
  357. package/lib/components/MobileAppTile/MobileAppTile.js +4 -4
  358. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  359. package/lib/components/OfficeMap/OfficeMap.fixture.d.ts +1 -1
  360. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.fixture.d.ts +1 -1
  361. package/lib/components/OtherProducts/OtherProducts.fixture.d.ts +3 -2
  362. package/lib/components/OtherProducts/OtherProducts.js +2 -1
  363. package/lib/components/OtherProducts/OtherProducts.js.map +1 -1
  364. package/lib/components/OtherProductsItem/OtherProductsItem.js +5 -4
  365. package/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  366. package/lib/components/PictureText/PictureText.fixture.d.ts +1 -1
  367. package/lib/components/Placeholder/Placeholder.fixture.d.ts +1 -1
  368. package/lib/components/Placeholder/Placeholder.fixture.mobile.d.ts +1 -1
  369. package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +2 -1
  370. package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +1 -1
  371. package/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  372. package/lib/components/ProductBlock/ProductBlockInner.js +2 -2
  373. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  374. package/lib/components/ProductGallery/ProductGallery.fixture.d.ts +1 -1
  375. package/lib/components/ProductTile/ProductTile.fixture.d.ts +1 -1
  376. package/lib/components/PromoTile/PromoTile.fixture.d.ts +1 -1
  377. package/lib/components/Recommendation/Recommendation.fixture.d.ts +1 -1
  378. package/lib/components/Recommendation/Recommendation.js +11 -21
  379. package/lib/components/Recommendation/Recommendation.js.map +1 -1
  380. package/lib/components/Recommendation/RecommendationCard.js +1 -2
  381. package/lib/components/Recommendation/RecommendationCard.js.map +1 -1
  382. package/lib/components/RollupItem/RollupItem.js +5 -3
  383. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  384. package/lib/components/SafeDepositRental/SafeDepositRental.fixture.d.ts +1 -1
  385. package/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
  386. package/lib/components/StepsBlock/StepsBlock.fixture.d.ts +1 -1
  387. package/lib/components/StepsBlock/StepsBlock.fixture.mobile.d.ts +1 -1
  388. package/lib/components/StepsBlock/StepsBlock.js +1 -1
  389. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  390. package/lib/components/Tabs/Tabs.fixture.d.ts +1 -1
  391. package/lib/components/TariffsTable/TariffsTable.fixture.d.ts +1 -1
  392. package/lib/components/TariffsTable/TariffsTable.fixture.mobile.d.ts +1 -1
  393. package/lib/components/TariffsTable/TariffsTable.js +12 -14
  394. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  395. package/lib/components/TariffsTable/TariffsTable.mobile.js +1 -1
  396. package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
  397. package/lib/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  398. package/lib/components/TariffsTable/TariffsTableRow.js +2 -2
  399. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  400. package/lib/components/TextBlock/TextBlock.fixture.d.ts +1 -1
  401. package/lib/components/TextBlock/TextBlock.fixture.mobile.d.ts +1 -1
  402. package/lib/components/Tile/Tile.fixture.d.ts +1 -1
  403. package/lib/components/Tile/Tile.js +2 -2
  404. package/lib/components/Tile/Tile.js.map +1 -1
  405. package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +1 -1
  406. package/lib/components/VerticalLayout/VerticalLayout.js +3 -2
  407. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  408. package/lib/components/Video/Video.d.ts +6 -0
  409. package/lib/components/Video/Video.fixture.d.ts +8 -0
  410. package/lib/components/Video/Video.js +10 -0
  411. package/lib/components/Video/Video.js.map +1 -0
  412. package/lib/components/Video/VideoContent.d.ts +8 -0
  413. package/lib/components/Video/VideoContent.js +2 -0
  414. package/lib/components/Video/VideoContent.js.map +1 -0
  415. package/lib/components/Video/getPaddings.d.ts +1 -0
  416. package/lib/components/Video/getPaddings.js +4 -0
  417. package/lib/components/Video/getPaddings.js.map +1 -0
  418. package/lib/hooks/useCarouselControls.d.ts +5 -3
  419. package/lib/hooks/useCarouselControls.js +19 -8
  420. package/lib/hooks/useCarouselControls.js.map +1 -1
  421. package/lib/model/JSXBlock.d.ts +4 -5
  422. package/lib/model/LinkProps.d.ts +1 -0
  423. package/lib/model/Picture.d.ts +8 -2
  424. package/lib/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
  425. package/lib/{react/setup-fixture.js → setup-fixture.js} +4 -4
  426. package/lib/setup-fixture.js.map +1 -0
  427. package/lib/ui-kit/Button/Button.fixture.d.ts +1 -1
  428. package/lib/ui-kit/Button/renderArrows.d.ts +6 -4
  429. package/lib/ui-kit/Button/renderArrows.js +3 -2
  430. package/lib/ui-kit/Button/renderArrows.js.map +1 -1
  431. package/lib/ui-kit/HeaderItem/HeaderItem.fixture.d.ts +1 -1
  432. package/lib/ui-kit/Icon/Icon.fixture.d.ts +1 -1
  433. package/lib/ui-kit/InnerTable/InnerTableBodyItem.js +9 -10
  434. package/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  435. package/lib/ui-kit/List/List.fixture.d.ts +1 -1
  436. package/lib/ui-kit/Logo/Logo.fixture.d.ts +1 -1
  437. package/lib/ui-kit/Paragraph/Paragraph.d.ts +9 -0
  438. package/lib/ui-kit/Paragraph/Paragraph.js +8 -0
  439. package/lib/ui-kit/Paragraph/Paragraph.js.map +1 -0
  440. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.d.ts +1 -1
  441. package/lib/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.d.ts +3 -1
  442. package/lib/ui-kit/SwipeListControl/SwipeListControl.js +6 -3
  443. package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  444. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -12
  445. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  446. package/lib/ui-kit/SwipeListControl/SwipeListControlList.js +2 -2
  447. package/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -1
  448. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +5 -3
  449. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  450. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
  451. package/lib/ui-kit/Text/Text.d.ts +34 -0
  452. package/lib/ui-kit/Text/Text.js +8 -0
  453. package/lib/ui-kit/Text/Text.js.map +1 -0
  454. package/lib/ui-kit/TopItem/TopItem.fixture.d.ts +1 -1
  455. package/mobile/bundle/BlockRenderer/BlockRendererOptions.d.ts +11 -0
  456. package/mobile/bundle/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
  457. package/mobile/bundle/BlockRenderer/getParentBlockContent.d.ts +2 -0
  458. package/mobile/bundle/BlockRenderer/getParentBlockDef.d.ts +3 -0
  459. package/mobile/bundle/BlockRenderer/renderBlock.d.ts +3 -0
  460. package/mobile/bundle/BlockRenderer/renderBlockList.d.ts +9 -0
  461. package/mobile/bundle/BlockRenderer/renderChildren.d.ts +10 -0
  462. package/mobile/bundle/bundle.umd.js +103 -88
  463. package/mobile/bundle/bundle.umd.min.js +1 -1
  464. package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
  465. package/mobile/bundle/components/Carousel/Carousel.d.ts +1 -0
  466. package/mobile/bundle/components/Carousel/CarouselContainer.d.ts +8 -5
  467. package/mobile/bundle/components/Carousel/CarouselContent.d.ts +5 -8
  468. package/mobile/bundle/components/CarouselCard/CarouselCard.d.ts +0 -2
  469. package/mobile/bundle/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  470. package/mobile/bundle/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
  471. package/mobile/bundle/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
  472. package/mobile/bundle/components/ComparisonTable/TableRow.d.ts +1 -1
  473. package/mobile/bundle/components/ComparisonTable/constants.d.ts +1 -1
  474. package/mobile/bundle/components/Gallery/GalleryContainer.d.ts +1 -1
  475. package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  476. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
  477. package/mobile/bundle/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  478. package/mobile/bundle/components/Video/Video.d.ts +6 -0
  479. package/mobile/bundle/components/Video/VideoContent.d.ts +8 -0
  480. package/mobile/bundle/components/Video/getPaddings.d.ts +1 -0
  481. package/mobile/bundle/hooks/useCarouselControls.d.ts +5 -3
  482. package/mobile/bundle/model/JSXBlock.d.ts +4 -5
  483. package/mobile/bundle/model/LinkProps.d.ts +1 -0
  484. package/mobile/bundle/model/Picture.d.ts +8 -2
  485. package/mobile/bundle/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
  486. package/mobile/bundle/ui-kit/Button/renderArrows.d.ts +6 -4
  487. package/mobile/bundle/ui-kit/Paragraph/Paragraph.d.ts +9 -0
  488. package/mobile/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
  489. package/mobile/bundle/ui-kit/Text/Text.d.ts +34 -0
  490. package/mobile/dist/BlockRenderer/BlockRendererOptions.d.ts +11 -0
  491. package/mobile/dist/BlockRenderer/BlockRendererOptions.js +2 -0
  492. package/mobile/dist/BlockRenderer/BlockRendererOptions.js.map +1 -0
  493. package/mobile/dist/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
  494. package/mobile/dist/BlockRenderer/defaultBlockDecorator.js +5 -0
  495. package/mobile/dist/BlockRenderer/defaultBlockDecorator.js.map +1 -0
  496. package/mobile/dist/BlockRenderer/getParentBlockContent.d.ts +2 -0
  497. package/{dist/model → mobile/dist/BlockRenderer}/getParentBlockContent.js +2 -2
  498. package/mobile/dist/BlockRenderer/getParentBlockContent.js.map +1 -0
  499. package/mobile/dist/BlockRenderer/getParentBlockDef.d.ts +3 -0
  500. package/mobile/dist/BlockRenderer/getParentBlockDef.js +7 -0
  501. package/mobile/dist/BlockRenderer/getParentBlockDef.js.map +1 -0
  502. package/mobile/dist/BlockRenderer/renderBlock.d.ts +3 -0
  503. package/mobile/dist/BlockRenderer/renderBlock.js +27 -0
  504. package/mobile/dist/BlockRenderer/renderBlock.js.map +1 -0
  505. package/mobile/dist/BlockRenderer/renderBlockList.d.ts +9 -0
  506. package/mobile/dist/BlockRenderer/renderBlockList.js +14 -0
  507. package/mobile/dist/BlockRenderer/renderBlockList.js.map +1 -0
  508. package/mobile/dist/BlockRenderer/renderChildren.d.ts +10 -0
  509. package/mobile/dist/BlockRenderer/renderChildren.js +13 -0
  510. package/mobile/dist/BlockRenderer/renderChildren.js.map +1 -0
  511. package/mobile/dist/components/Accordion/Accordion.js +3 -1
  512. package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
  513. package/mobile/dist/components/AccordionItem/AccordionItem.js +7 -5
  514. package/mobile/dist/components/AccordionItem/AccordionItem.js.map +1 -1
  515. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +16 -4
  516. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  517. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
  518. package/mobile/dist/components/Calculator/Calculator.js +22 -22
  519. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  520. package/mobile/dist/components/Calculator/CalculatorValueBlock.js +1 -3
  521. package/mobile/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
  522. package/mobile/dist/components/CardTransfer/CardTransfer.js +2 -1
  523. package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  524. package/mobile/dist/components/Carousel/Carousel.d.ts +1 -0
  525. package/mobile/dist/components/Carousel/Carousel.js +16 -14
  526. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  527. package/mobile/dist/components/Carousel/CarouselContainer.d.ts +8 -5
  528. package/mobile/dist/components/Carousel/CarouselContainer.js +8 -5
  529. package/mobile/dist/components/Carousel/CarouselContainer.js.map +1 -1
  530. package/mobile/dist/components/Carousel/CarouselContent.d.ts +5 -8
  531. package/mobile/dist/components/Carousel/CarouselContent.js +0 -3
  532. package/mobile/dist/components/Carousel/CarouselContent.js.map +1 -1
  533. package/mobile/dist/components/CarouselCard/CarouselCard.d.ts +0 -2
  534. package/mobile/dist/components/CarouselCard/CarouselCard.js +4 -11
  535. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  536. package/mobile/dist/components/CarouselLinks/CarouselLinks.js +9 -9
  537. package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  538. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  539. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  540. package/mobile/dist/components/Catalog/Catalog.js +8 -11
  541. package/mobile/dist/components/Catalog/Catalog.js.map +1 -1
  542. package/mobile/dist/components/ComparisonTable/ComparisonTable.js +2 -2
  543. package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  544. package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js +4 -4
  545. package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
  546. package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  547. package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -1
  548. package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
  549. package/mobile/dist/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
  550. package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js +8 -7
  551. package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
  552. package/mobile/dist/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
  553. package/mobile/dist/components/ComparisonTable/TableCarouselContainer.js +1 -1
  554. package/mobile/dist/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
  555. package/mobile/dist/components/ComparisonTable/TableRow.d.ts +1 -1
  556. package/mobile/dist/components/ComparisonTable/TableRow.js +1 -1
  557. package/mobile/dist/components/ComparisonTable/TableRow.js.map +1 -1
  558. package/mobile/dist/components/ComparisonTable/constants.d.ts +1 -1
  559. package/mobile/dist/components/ComparisonTable/constants.js +1 -1
  560. package/mobile/dist/components/ContactsBlock/ContactsBlock.js +3 -5
  561. package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  562. package/mobile/dist/components/ContentPage/ContentPage.js +13 -7
  563. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  564. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +1 -3
  565. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  566. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -3
  567. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  568. package/mobile/dist/components/Footer/Footer.js +2 -2
  569. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  570. package/mobile/dist/components/Gallery/GalleryCardInner.js +2 -4
  571. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  572. package/mobile/dist/components/Gallery/GalleryContainer.d.ts +1 -1
  573. package/mobile/dist/components/Gallery/GalleryContainer.js +1 -3
  574. package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -1
  575. package/mobile/dist/components/Gallery/GalleryInner.js +9 -12
  576. package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
  577. package/mobile/dist/components/Header/Header.js +2 -3
  578. package/mobile/dist/components/Header/Header.js.map +1 -1
  579. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +23 -25
  580. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  581. package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js +10 -20
  582. package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js.map +1 -1
  583. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js +1 -2
  584. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
  585. package/mobile/dist/components/OtherProducts/OtherProducts.js +2 -1
  586. package/mobile/dist/components/OtherProducts/OtherProducts.js.map +1 -1
  587. package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js +5 -4
  588. package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  589. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  590. package/mobile/dist/components/Recommendation/Recommendation.js +11 -21
  591. package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -1
  592. package/mobile/dist/components/Recommendation/RecommendationCard.js +1 -2
  593. package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -1
  594. package/mobile/dist/components/RollupItem/RollupItem.js +5 -3
  595. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  596. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
  597. package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -1
  598. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  599. package/mobile/dist/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  600. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +2 -2
  601. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  602. package/mobile/dist/components/Tile/Tile.js +2 -2
  603. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  604. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +3 -2
  605. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  606. package/mobile/dist/components/Video/Video.d.ts +6 -0
  607. package/mobile/dist/components/Video/Video.js +12 -0
  608. package/mobile/dist/components/Video/Video.js.map +1 -0
  609. package/mobile/dist/components/Video/VideoContent.d.ts +8 -0
  610. package/mobile/dist/components/Video/VideoContent.js +2 -0
  611. package/mobile/dist/components/Video/VideoContent.js.map +1 -0
  612. package/mobile/dist/components/Video/getPaddings.d.ts +1 -0
  613. package/mobile/dist/components/Video/getPaddings.js +7 -0
  614. package/mobile/dist/components/Video/getPaddings.js.map +1 -0
  615. package/mobile/dist/hooks/useCarouselControls.d.ts +5 -3
  616. package/mobile/dist/hooks/useCarouselControls.js +19 -8
  617. package/mobile/dist/hooks/useCarouselControls.js.map +1 -1
  618. package/mobile/dist/model/JSXBlock.d.ts +4 -5
  619. package/mobile/dist/model/LinkProps.d.ts +1 -0
  620. package/mobile/dist/model/Picture.d.ts +8 -2
  621. package/mobile/dist/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
  622. package/{dist/react → mobile/dist}/setup-fixture.js +4 -4
  623. package/mobile/dist/setup-fixture.js.map +1 -0
  624. package/mobile/dist/ui-kit/Button/renderArrows.d.ts +6 -4
  625. package/mobile/dist/ui-kit/Button/renderArrows.js +3 -2
  626. package/mobile/dist/ui-kit/Button/renderArrows.js.map +1 -1
  627. package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js +9 -10
  628. package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  629. package/mobile/dist/ui-kit/Paragraph/Paragraph.d.ts +9 -0
  630. package/mobile/dist/ui-kit/Paragraph/Paragraph.js +10 -0
  631. package/mobile/dist/ui-kit/Paragraph/Paragraph.js.map +1 -0
  632. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +5 -2
  633. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  634. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -12
  635. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  636. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js +2 -2
  637. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -1
  638. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +5 -3
  639. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  640. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
  641. package/mobile/dist/ui-kit/Text/Text.d.ts +34 -0
  642. package/mobile/dist/ui-kit/Text/Text.js +10 -0
  643. package/mobile/dist/ui-kit/Text/Text.js.map +1 -0
  644. package/mobile/lib/BlockRenderer/BlockRendererOptions.d.ts +11 -0
  645. package/mobile/lib/BlockRenderer/BlockRendererOptions.js +2 -0
  646. package/mobile/lib/BlockRenderer/BlockRendererOptions.js.map +1 -0
  647. package/mobile/lib/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
  648. package/mobile/lib/BlockRenderer/defaultBlockDecorator.js +2 -0
  649. package/mobile/lib/BlockRenderer/defaultBlockDecorator.js.map +1 -0
  650. package/mobile/lib/BlockRenderer/getParentBlockContent.d.ts +2 -0
  651. package/mobile/lib/BlockRenderer/getParentBlockContent.js +6 -0
  652. package/mobile/lib/BlockRenderer/getParentBlockContent.js.map +1 -0
  653. package/mobile/lib/BlockRenderer/getParentBlockDef.d.ts +3 -0
  654. package/mobile/lib/BlockRenderer/getParentBlockDef.js +4 -0
  655. package/mobile/lib/BlockRenderer/getParentBlockDef.js.map +1 -0
  656. package/mobile/lib/BlockRenderer/renderBlock.d.ts +3 -0
  657. package/mobile/lib/BlockRenderer/renderBlock.js +24 -0
  658. package/mobile/lib/BlockRenderer/renderBlock.js.map +1 -0
  659. package/mobile/lib/BlockRenderer/renderBlockList.d.ts +9 -0
  660. package/mobile/lib/BlockRenderer/renderBlockList.js +11 -0
  661. package/mobile/lib/BlockRenderer/renderBlockList.js.map +1 -0
  662. package/mobile/lib/BlockRenderer/renderChildren.d.ts +10 -0
  663. package/mobile/lib/BlockRenderer/renderChildren.js +10 -0
  664. package/mobile/lib/BlockRenderer/renderChildren.js.map +1 -0
  665. package/mobile/lib/components/Accordion/Accordion.js +3 -1
  666. package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
  667. package/mobile/lib/components/AccordionItem/AccordionItem.js +7 -5
  668. package/mobile/lib/components/AccordionItem/AccordionItem.js.map +1 -1
  669. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +16 -4
  670. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  671. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
  672. package/mobile/lib/components/Calculator/Calculator.js +23 -23
  673. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  674. package/mobile/lib/components/Calculator/CalculatorValueBlock.js +1 -3
  675. package/mobile/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
  676. package/mobile/lib/components/CardTransfer/CardTransfer.js +3 -2
  677. package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  678. package/mobile/lib/components/Carousel/Carousel.d.ts +1 -0
  679. package/mobile/lib/components/Carousel/Carousel.js +16 -14
  680. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  681. package/mobile/lib/components/Carousel/CarouselContainer.d.ts +8 -5
  682. package/mobile/lib/components/Carousel/CarouselContainer.js +8 -5
  683. package/mobile/lib/components/Carousel/CarouselContainer.js.map +1 -1
  684. package/mobile/lib/components/Carousel/CarouselContent.d.ts +5 -8
  685. package/mobile/lib/components/Carousel/CarouselContent.js +0 -3
  686. package/mobile/lib/components/Carousel/CarouselContent.js.map +1 -1
  687. package/mobile/lib/components/CarouselCard/CarouselCard.d.ts +0 -2
  688. package/mobile/lib/components/CarouselCard/CarouselCard.js +4 -11
  689. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  690. package/mobile/lib/components/CarouselLinks/CarouselLinks.js +9 -9
  691. package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  692. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  693. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  694. package/mobile/lib/components/Catalog/Catalog.js +8 -11
  695. package/mobile/lib/components/Catalog/Catalog.js.map +1 -1
  696. package/mobile/lib/components/ComparisonTable/ComparisonTable.js +2 -2
  697. package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  698. package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js +4 -4
  699. package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
  700. package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  701. package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -1
  702. package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
  703. package/mobile/lib/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
  704. package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js +8 -7
  705. package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
  706. package/mobile/lib/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
  707. package/mobile/lib/components/ComparisonTable/TableCarouselContainer.js +1 -1
  708. package/mobile/lib/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
  709. package/mobile/lib/components/ComparisonTable/TableRow.d.ts +1 -1
  710. package/mobile/lib/components/ComparisonTable/TableRow.js +1 -1
  711. package/mobile/lib/components/ComparisonTable/TableRow.js.map +1 -1
  712. package/mobile/lib/components/ComparisonTable/constants.d.ts +1 -1
  713. package/mobile/lib/components/ComparisonTable/constants.js +1 -1
  714. package/mobile/lib/components/ContactsBlock/ContactsBlock.js +3 -5
  715. package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  716. package/mobile/lib/components/ContentPage/ContentPage.js +13 -7
  717. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  718. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +1 -3
  719. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  720. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -4
  721. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  722. package/mobile/lib/components/Footer/Footer.js +2 -2
  723. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  724. package/mobile/lib/components/Gallery/GalleryCardInner.js +2 -4
  725. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  726. package/mobile/lib/components/Gallery/GalleryContainer.d.ts +1 -1
  727. package/mobile/lib/components/Gallery/GalleryContainer.js +1 -3
  728. package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -1
  729. package/mobile/lib/components/Gallery/GalleryInner.js +9 -12
  730. package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
  731. package/mobile/lib/components/Header/Header.js +2 -3
  732. package/mobile/lib/components/Header/Header.js.map +1 -1
  733. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +24 -26
  734. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  735. package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js +10 -20
  736. package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js.map +1 -1
  737. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js +1 -2
  738. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
  739. package/mobile/lib/components/OtherProducts/OtherProducts.js +2 -1
  740. package/mobile/lib/components/OtherProducts/OtherProducts.js.map +1 -1
  741. package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js +5 -4
  742. package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  743. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  744. package/mobile/lib/components/Recommendation/Recommendation.js +11 -21
  745. package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -1
  746. package/mobile/lib/components/Recommendation/RecommendationCard.js +1 -2
  747. package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -1
  748. package/mobile/lib/components/RollupItem/RollupItem.js +5 -3
  749. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  750. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
  751. package/mobile/lib/components/TariffsTable/TariffsTable.js +1 -1
  752. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  753. package/mobile/lib/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  754. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +2 -2
  755. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  756. package/mobile/lib/components/Tile/Tile.js +2 -2
  757. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  758. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +3 -2
  759. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  760. package/mobile/lib/components/Video/Video.d.ts +6 -0
  761. package/mobile/lib/components/Video/Video.js +10 -0
  762. package/mobile/lib/components/Video/Video.js.map +1 -0
  763. package/mobile/lib/components/Video/VideoContent.d.ts +8 -0
  764. package/mobile/lib/components/Video/VideoContent.js +2 -0
  765. package/mobile/lib/components/Video/VideoContent.js.map +1 -0
  766. package/mobile/lib/components/Video/getPaddings.d.ts +1 -0
  767. package/mobile/lib/components/Video/getPaddings.js +4 -0
  768. package/mobile/lib/components/Video/getPaddings.js.map +1 -0
  769. package/mobile/lib/hooks/useCarouselControls.d.ts +5 -3
  770. package/mobile/lib/hooks/useCarouselControls.js +19 -8
  771. package/mobile/lib/hooks/useCarouselControls.js.map +1 -1
  772. package/mobile/lib/model/JSXBlock.d.ts +4 -5
  773. package/mobile/lib/model/LinkProps.d.ts +1 -0
  774. package/mobile/lib/model/Picture.d.ts +8 -2
  775. package/mobile/lib/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
  776. package/mobile/lib/{react/setup-fixture.js → setup-fixture.js} +4 -4
  777. package/mobile/lib/setup-fixture.js.map +1 -0
  778. package/mobile/lib/ui-kit/Button/renderArrows.d.ts +6 -4
  779. package/mobile/lib/ui-kit/Button/renderArrows.js +3 -2
  780. package/mobile/lib/ui-kit/Button/renderArrows.js.map +1 -1
  781. package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js +9 -10
  782. package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  783. package/mobile/lib/ui-kit/Paragraph/Paragraph.d.ts +9 -0
  784. package/mobile/lib/ui-kit/Paragraph/Paragraph.js +8 -0
  785. package/mobile/lib/ui-kit/Paragraph/Paragraph.js.map +1 -0
  786. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +6 -3
  787. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  788. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -12
  789. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  790. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js +2 -2
  791. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -1
  792. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +5 -3
  793. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  794. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
  795. package/mobile/lib/ui-kit/Text/Text.d.ts +34 -0
  796. package/mobile/lib/ui-kit/Text/Text.js +8 -0
  797. package/mobile/lib/ui-kit/Text/Text.js.map +1 -0
  798. package/mobile/src/BlockRenderer/BlockRendererOptions.ts +12 -0
  799. package/mobile/src/BlockRenderer/defaultBlockDecorator.ts +4 -0
  800. package/mobile/src/{model → BlockRenderer}/getParentBlockContent.ts +3 -3
  801. package/mobile/src/BlockRenderer/getParentBlockDef.ts +6 -0
  802. package/mobile/src/BlockRenderer/renderBlock.tsx +47 -0
  803. package/mobile/src/BlockRenderer/renderBlockList.tsx +33 -0
  804. package/mobile/src/BlockRenderer/renderChildren.ts +25 -0
  805. package/mobile/src/components/Accordion/Accordion.tsx +12 -7
  806. package/mobile/src/components/AccordionItem/AccordionItem.tsx +12 -8
  807. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -0
  808. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +31 -18
  809. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +6 -3
  810. package/mobile/src/components/Calculator/Calculator.tsx +32 -33
  811. package/mobile/src/components/Calculator/CalculatorValueBlock.tsx +10 -12
  812. package/mobile/src/components/CardTransfer/CardTransfer.tsx +3 -2
  813. package/mobile/src/components/Carousel/Carousel.example.json +2 -2
  814. package/mobile/src/components/Carousel/Carousel.tsx +29 -40
  815. package/mobile/src/components/Carousel/CarouselContainer.tsx +19 -12
  816. package/mobile/src/components/Carousel/CarouselContent.ts +5 -9
  817. package/mobile/src/components/CarouselCard/CarouselCard.tsx +22 -34
  818. package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +30 -24
  819. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +3 -3
  820. package/mobile/src/components/Catalog/Catalog.tsx +8 -13
  821. package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +2 -2
  822. package/mobile/src/components/ComparisonTable/ComparisonTableBody.tsx +6 -7
  823. package/mobile/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +3 -3
  824. package/mobile/src/components/ComparisonTable/ComparisonTableRows.tsx +10 -14
  825. package/mobile/src/components/ComparisonTable/TableCarouselContainer.tsx +3 -3
  826. package/mobile/src/components/ComparisonTable/TableRow.tsx +3 -3
  827. package/mobile/src/components/ComparisonTable/constants.ts +1 -1
  828. package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +10 -13
  829. package/mobile/src/components/ContentPage/ContentPage.tsx +21 -20
  830. package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +12 -14
  831. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +5 -4
  832. package/mobile/src/components/Footer/Footer.tsx +3 -3
  833. package/mobile/src/components/Gallery/GalleryCardInner.tsx +12 -14
  834. package/mobile/src/components/Gallery/GalleryContainer.tsx +14 -16
  835. package/mobile/src/components/Gallery/GalleryInner.tsx +9 -22
  836. package/mobile/src/components/Header/Header.tsx +3 -4
  837. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +29 -42
  838. package/mobile/src/components/InvestmentGallery/InvestmentGallery.tsx +12 -34
  839. package/mobile/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +2 -3
  840. package/mobile/src/components/OtherProducts/OtherProducts.tsx +3 -2
  841. package/mobile/src/components/OtherProductsItem/OtherProductsItem.tsx +6 -5
  842. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +3 -1
  843. package/mobile/src/components/Recommendation/Recommendation.tsx +12 -36
  844. package/mobile/src/components/Recommendation/RecommendationCard.tsx +1 -2
  845. package/mobile/src/components/RollupItem/RollupItem.tsx +9 -7
  846. package/mobile/src/components/SafeDepositRental/SafeDepositRentalContent.ts +1 -5
  847. package/mobile/src/components/TariffsTable/TariffsTable.tsx +1 -1
  848. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +3 -3
  849. package/mobile/src/components/Tile/Tile.tsx +4 -2
  850. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +3 -2
  851. package/mobile/src/components/Video/Video.tsx +29 -0
  852. package/mobile/src/components/Video/Video.ui.json +12 -0
  853. package/mobile/src/components/Video/VideoContent.ts +9 -0
  854. package/mobile/src/components/Video/getPaddings.ts +6 -0
  855. package/mobile/src/hooks/useCarouselControls.ts +33 -19
  856. package/mobile/src/model/JSXBlock.ts +4 -5
  857. package/mobile/src/model/LinkProps.ts +1 -0
  858. package/mobile/src/model/Picture.ts +8 -2
  859. package/{src/react → mobile/src}/setup-fixture.ts +4 -4
  860. package/mobile/src/ui-kit/Button/renderArrows.tsx +22 -17
  861. package/mobile/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +9 -13
  862. package/mobile/src/ui-kit/Paragraph/Paragraph.tsx +17 -0
  863. package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +35 -28
  864. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +32 -27
  865. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +10 -8
  866. package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +5 -3
  867. package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +2 -1
  868. package/mobile/src/ui-kit/Text/Text.tsx +79 -0
  869. package/package.json +1 -1
  870. package/src/BlockRenderer/BlockRendererOptions.ts +12 -0
  871. package/src/BlockRenderer/defaultBlockDecorator.ts +4 -0
  872. package/src/{model → BlockRenderer}/getParentBlockContent.ts +3 -3
  873. package/src/BlockRenderer/getParentBlockDef.ts +6 -0
  874. package/src/BlockRenderer/renderBlock.tsx +47 -0
  875. package/src/BlockRenderer/renderBlockList.tsx +33 -0
  876. package/src/BlockRenderer/renderChildren.ts +25 -0
  877. package/src/components/Accordion/Accordion.fixture.mobile.tsx +40 -55
  878. package/src/components/Accordion/Accordion.fixture.tsx +79 -52
  879. package/src/components/Accordion/Accordion.mobile.tsx +12 -7
  880. package/src/components/Accordion/Accordion.tsx +10 -4
  881. package/src/components/AccordionItem/AccordionItem.fixture.mobile.tsx +13 -2
  882. package/src/components/AccordionItem/AccordionItem.fixture.tsx +12 -1
  883. package/src/components/AccordionItem/AccordionItem.mobile.tsx +12 -8
  884. package/src/components/AccordionItem/AccordionItem.tsx +7 -3
  885. package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +1 -1
  886. package/src/components/Blocks.ts +3 -1
  887. package/src/components/Bonus/Bonus.fixture.tsx +1 -1
  888. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -0
  889. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.tsx +12 -1
  890. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +31 -18
  891. package/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +6 -3
  892. package/src/components/BusinessBlock/BusinessBlock.fixture.tsx +1 -1
  893. package/src/components/Calculator/Calculator.fixture.tsx +1 -1
  894. package/src/components/Calculator/Calculator.tsx +32 -33
  895. package/src/components/Calculator/CalculatorValueBlock.tsx +10 -12
  896. package/src/components/CardTransfer/CardTransfer.fixture.tsx +1 -1
  897. package/src/components/CardTransfer/CardTransfer.tsx +3 -2
  898. package/src/components/Carousel/Carousel.example.json +2 -2
  899. package/src/components/Carousel/Carousel.fixture.tsx +38 -45
  900. package/src/components/Carousel/Carousel.tsx +29 -40
  901. package/src/components/Carousel/CarouselContainer.tsx +19 -12
  902. package/src/components/Carousel/CarouselContent.ts +5 -9
  903. package/src/components/CarouselCard/CarouselCard.fixture.tsx +9 -4
  904. package/src/components/CarouselCard/CarouselCard.tsx +22 -34
  905. package/src/components/CarouselLinks/CarouselLinks.tsx +30 -24
  906. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +3 -3
  907. package/src/components/Catalog/Catalog.fixture.tsx +1 -1
  908. package/src/components/Catalog/Catalog.tsx +8 -13
  909. package/src/components/ComparisonTable/ComparisonTable.fixture.mobile.tsx +1 -1
  910. package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +2 -2
  911. package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +2 -2
  912. package/src/components/ComparisonTable/ComparisonTableBody.tsx +6 -7
  913. package/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +3 -3
  914. package/src/components/ComparisonTable/ComparisonTableRows.tsx +10 -14
  915. package/src/components/ComparisonTable/TableCarouselContainer.tsx +3 -3
  916. package/src/components/ComparisonTable/TableRow.tsx +3 -3
  917. package/src/components/ComparisonTable/constants.ts +1 -1
  918. package/src/components/ContactsBlock/ContactsBlock.fixture.tsx +1 -1
  919. package/src/components/ContactsBlock/ContactsBlock.tsx +10 -13
  920. package/src/components/ContentPage/ContentPage.fixture.mobile.tsx +1 -1
  921. package/src/components/ContentPage/ContentPage.fixture.tsx +1 -1
  922. package/src/components/ContentPage/ContentPage.tsx +21 -20
  923. package/src/components/ErrorBlock/ErrorBlock.fixture.tsx +1 -1
  924. package/src/components/ExchangeRateTile/CurrencyTable.tsx +12 -14
  925. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +5 -4
  926. package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +1 -1
  927. package/src/components/Footer/Footer.fixture.mobile.tsx +1 -1
  928. package/src/components/Footer/Footer.fixture.tsx +1 -1
  929. package/src/components/Footer/Footer.mobile.tsx +3 -3
  930. package/src/components/Footer/Footer.tsx +1 -1
  931. package/src/components/Gallery/Gallery.fixture.mobile.tsx +1 -1
  932. package/src/components/Gallery/Gallery.fixture.tsx +1 -1
  933. package/src/components/Gallery/GalleryCardInner.tsx +12 -14
  934. package/src/components/Gallery/GalleryContainer.tsx +14 -16
  935. package/src/components/Gallery/GalleryInner.tsx +9 -22
  936. package/src/components/GracePeriod/GracePeriod.fixture.tsx +1 -1
  937. package/src/components/Header/Header.fixture.mobile.tsx +1 -1
  938. package/src/components/Header/Header.fixture.tsx +1 -1
  939. package/src/components/Header/Header.mobile.tsx +3 -4
  940. package/src/components/Header/Header.tsx +1 -1
  941. package/src/components/Headline/Headline.fixture.mobile.tsx +1 -1
  942. package/src/components/Headline/Headline.fixture.tsx +1 -1
  943. package/src/components/Headline/Headline.tsx +3 -5
  944. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +1 -1
  945. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +29 -42
  946. package/src/components/InvestmentGallery/InvestmentGallery.fixture.tsx +1 -1
  947. package/src/components/InvestmentGallery/InvestmentGallery.tsx +12 -34
  948. package/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +2 -3
  949. package/src/components/InvestmentInfo/InvestmentInfo.fixture.tsx +1 -1
  950. package/src/components/LikeControl/LikeControl.fixture.tsx +1 -1
  951. package/src/components/LinkDocs/LinkDocs.fixture.mobile.tsx +1 -1
  952. package/src/components/LinkDocs/LinkDocs.fixture.tsx +1 -1
  953. package/src/components/LinkList/LinkList.fixture.tsx +1 -1
  954. package/src/components/MiniGallery/MiniGallery.fixture.tsx +1 -1
  955. package/src/components/MobileAppTile/MobileAppTile.fixture.mobile.tsx +1 -1
  956. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +1 -1
  957. package/src/components/MobileAppTile/MobileAppTile.tsx +5 -5
  958. package/src/components/OfficeMap/OfficeMap.fixture.tsx +1 -1
  959. package/src/components/OfficeServicesBlock/OfficeServicesBlock.fixture.tsx +1 -1
  960. package/src/components/OtherProducts/OtherProducts.fixture.tsx +86 -76
  961. package/src/components/OtherProducts/OtherProducts.tsx +3 -2
  962. package/src/components/OtherProductsItem/OtherProductsItem.fixture.tsx +16 -1
  963. package/src/components/OtherProductsItem/OtherProductsItem.tsx +6 -5
  964. package/src/components/PictureText/PictureText.fixture.tsx +1 -1
  965. package/src/components/Placeholder/Placeholder.fixture.mobile.tsx +1 -1
  966. package/src/components/Placeholder/Placeholder.fixture.tsx +1 -1
  967. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +1 -1
  968. package/src/components/ProductBlock/ProductBlock.fixture.tsx +13 -1
  969. package/src/components/ProductBlock/ProductBlockContent.ts +3 -1
  970. package/src/components/ProductBlock/ProductBlockInner.tsx +26 -22
  971. package/src/components/ProductGallery/ProductGallery.fixture.tsx +1 -1
  972. package/src/components/ProductTile/ProductTile.fixture.tsx +1 -1
  973. package/src/components/PromoTile/PromoTile.fixture.tsx +1 -1
  974. package/src/components/Recommendation/Recommendation.fixture.tsx +1 -1
  975. package/src/components/Recommendation/Recommendation.tsx +12 -36
  976. package/src/components/Recommendation/RecommendationCard.tsx +1 -2
  977. package/src/components/RollupItem/RollupItem.fixture.tsx +44 -11
  978. package/src/components/RollupItem/RollupItem.tsx +9 -7
  979. package/src/components/SafeDepositRental/SafeDepositRental.fixture.tsx +1 -1
  980. package/src/components/SafeDepositRental/SafeDepositRentalContent.ts +1 -5
  981. package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +1 -1
  982. package/src/components/StepsBlock/StepsBlock.fixture.tsx +1 -1
  983. package/src/components/StepsBlock/StepsBlock.tsx +1 -1
  984. package/src/components/Tabs/Tabs.fixture.tsx +1 -1
  985. package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +1 -1
  986. package/src/components/TariffsTable/TariffsTable.fixture.tsx +1 -1
  987. package/src/components/TariffsTable/TariffsTable.mobile.tsx +1 -1
  988. package/src/components/TariffsTable/TariffsTable.tsx +21 -38
  989. package/src/components/TariffsTable/TariffsTableRow.tsx +3 -3
  990. package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +1 -1
  991. package/src/components/TextBlock/TextBlock.fixture.tsx +1 -1
  992. package/src/components/Tile/Tile.fixture.tsx +1 -1
  993. package/src/components/Tile/Tile.tsx +4 -2
  994. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +126 -47
  995. package/src/components/VerticalLayout/VerticalLayout.tsx +3 -2
  996. package/src/components/Video/Video.fixture.tsx +33 -0
  997. package/src/components/Video/Video.tsx +29 -0
  998. package/src/components/Video/Video.ui.json +12 -0
  999. package/src/components/Video/VideoContent.ts +9 -0
  1000. package/src/components/Video/getPaddings.ts +6 -0
  1001. package/src/hooks/useCarouselControls.ts +33 -19
  1002. package/src/model/JSXBlock.ts +4 -5
  1003. package/src/model/LinkProps.ts +1 -0
  1004. package/src/model/Picture.ts +8 -2
  1005. package/{mobile/src/react → src}/setup-fixture.ts +4 -4
  1006. package/src/ui-kit/Button/Button.fixture.tsx +1 -1
  1007. package/src/ui-kit/Button/renderArrows.tsx +22 -17
  1008. package/src/ui-kit/HeaderItem/HeaderItem.fixture.tsx +1 -1
  1009. package/src/ui-kit/Icon/Icon.fixture.tsx +1 -1
  1010. package/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +9 -13
  1011. package/src/ui-kit/List/List.fixture.tsx +1 -1
  1012. package/src/ui-kit/Logo/Logo.fixture.tsx +1 -1
  1013. package/src/ui-kit/Paragraph/Paragraph.tsx +17 -0
  1014. package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.tsx +1 -1
  1015. package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +24 -8
  1016. package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +35 -28
  1017. package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +32 -27
  1018. package/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +10 -8
  1019. package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +5 -3
  1020. package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +2 -1
  1021. package/src/ui-kit/Text/Text.tsx +79 -0
  1022. package/src/ui-kit/TopItem/TopItem.fixture.tsx +1 -1
  1023. package/bundle/components/Carousel/CarouselNavButtons.d.ts +0 -11
  1024. package/bundle/components/ContentPage/renderBlock.d.ts +0 -15
  1025. package/bundle/components/ContentPage/renderBlockList.d.ts +0 -14
  1026. package/bundle/components/ContentPage/renderSlots.d.ts +0 -12
  1027. package/bundle/model/getParentBlockContent.d.ts +0 -2
  1028. package/bundle/model/getParentBlockDef.d.ts +0 -3
  1029. package/bundle/ui-kit/Description/Description.d.ts +0 -5
  1030. package/bundle/utils/sliceArray.d.ts +0 -1
  1031. package/dist/components/Carousel/CarouselNavButtons.d.ts +0 -11
  1032. package/dist/components/Carousel/CarouselNavButtons.js +0 -36
  1033. package/dist/components/Carousel/CarouselNavButtons.js.map +0 -1
  1034. package/dist/components/ContentPage/renderBlock.d.ts +0 -15
  1035. package/dist/components/ContentPage/renderBlock.js +0 -29
  1036. package/dist/components/ContentPage/renderBlock.js.map +0 -1
  1037. package/dist/components/ContentPage/renderBlockList.d.ts +0 -14
  1038. package/dist/components/ContentPage/renderBlockList.js +0 -11
  1039. package/dist/components/ContentPage/renderBlockList.js.map +0 -1
  1040. package/dist/components/ContentPage/renderSlots.d.ts +0 -12
  1041. package/dist/components/ContentPage/renderSlots.js +0 -15
  1042. package/dist/components/ContentPage/renderSlots.js.map +0 -1
  1043. package/dist/model/getParentBlockContent.d.ts +0 -2
  1044. package/dist/model/getParentBlockContent.js.map +0 -1
  1045. package/dist/model/getParentBlockDef.d.ts +0 -3
  1046. package/dist/model/getParentBlockDef.js +0 -11
  1047. package/dist/model/getParentBlockDef.js.map +0 -1
  1048. package/dist/react/setup-fixture.js.map +0 -1
  1049. package/dist/ui-kit/Description/Description.d.ts +0 -5
  1050. package/dist/ui-kit/Description/Description.js +0 -9
  1051. package/dist/ui-kit/Description/Description.js.map +0 -1
  1052. package/dist/utils/sliceArray.d.ts +0 -1
  1053. package/dist/utils/sliceArray.js +0 -15
  1054. package/dist/utils/sliceArray.js.map +0 -1
  1055. package/lib/components/Carousel/CarouselNavButtons.d.ts +0 -11
  1056. package/lib/components/Carousel/CarouselNavButtons.js +0 -34
  1057. package/lib/components/Carousel/CarouselNavButtons.js.map +0 -1
  1058. package/lib/components/ContentPage/renderBlock.d.ts +0 -15
  1059. package/lib/components/ContentPage/renderBlock.js +0 -26
  1060. package/lib/components/ContentPage/renderBlock.js.map +0 -1
  1061. package/lib/components/ContentPage/renderBlockList.d.ts +0 -14
  1062. package/lib/components/ContentPage/renderBlockList.js +0 -8
  1063. package/lib/components/ContentPage/renderBlockList.js.map +0 -1
  1064. package/lib/components/ContentPage/renderSlots.d.ts +0 -12
  1065. package/lib/components/ContentPage/renderSlots.js +0 -12
  1066. package/lib/components/ContentPage/renderSlots.js.map +0 -1
  1067. package/lib/model/getParentBlockContent.d.ts +0 -2
  1068. package/lib/model/getParentBlockContent.js +0 -6
  1069. package/lib/model/getParentBlockContent.js.map +0 -1
  1070. package/lib/model/getParentBlockDef.d.ts +0 -3
  1071. package/lib/model/getParentBlockDef.js +0 -8
  1072. package/lib/model/getParentBlockDef.js.map +0 -1
  1073. package/lib/react/setup-fixture.js.map +0 -1
  1074. package/lib/ui-kit/Description/Description.d.ts +0 -5
  1075. package/lib/ui-kit/Description/Description.js +0 -7
  1076. package/lib/ui-kit/Description/Description.js.map +0 -1
  1077. package/lib/utils/sliceArray.d.ts +0 -1
  1078. package/lib/utils/sliceArray.js +0 -12
  1079. package/lib/utils/sliceArray.js.map +0 -1
  1080. package/mobile/bundle/components/Carousel/CarouselNavButtons.d.ts +0 -11
  1081. package/mobile/bundle/components/ContentPage/renderBlock.d.ts +0 -15
  1082. package/mobile/bundle/components/ContentPage/renderBlockList.d.ts +0 -14
  1083. package/mobile/bundle/components/ContentPage/renderSlots.d.ts +0 -12
  1084. package/mobile/bundle/model/getParentBlockContent.d.ts +0 -2
  1085. package/mobile/bundle/model/getParentBlockDef.d.ts +0 -3
  1086. package/mobile/bundle/ui-kit/Description/Description.d.ts +0 -5
  1087. package/mobile/bundle/utils/sliceArray.d.ts +0 -1
  1088. package/mobile/dist/components/Carousel/CarouselNavButtons.d.ts +0 -11
  1089. package/mobile/dist/components/Carousel/CarouselNavButtons.js +0 -36
  1090. package/mobile/dist/components/Carousel/CarouselNavButtons.js.map +0 -1
  1091. package/mobile/dist/components/ContentPage/renderBlock.d.ts +0 -15
  1092. package/mobile/dist/components/ContentPage/renderBlock.js +0 -29
  1093. package/mobile/dist/components/ContentPage/renderBlock.js.map +0 -1
  1094. package/mobile/dist/components/ContentPage/renderBlockList.d.ts +0 -14
  1095. package/mobile/dist/components/ContentPage/renderBlockList.js +0 -11
  1096. package/mobile/dist/components/ContentPage/renderBlockList.js.map +0 -1
  1097. package/mobile/dist/components/ContentPage/renderSlots.d.ts +0 -12
  1098. package/mobile/dist/components/ContentPage/renderSlots.js +0 -15
  1099. package/mobile/dist/components/ContentPage/renderSlots.js.map +0 -1
  1100. package/mobile/dist/model/getParentBlockContent.d.ts +0 -2
  1101. package/mobile/dist/model/getParentBlockContent.js.map +0 -1
  1102. package/mobile/dist/model/getParentBlockDef.d.ts +0 -3
  1103. package/mobile/dist/model/getParentBlockDef.js +0 -11
  1104. package/mobile/dist/model/getParentBlockDef.js.map +0 -1
  1105. package/mobile/dist/react/setup-fixture.js.map +0 -1
  1106. package/mobile/dist/ui-kit/Description/Description.d.ts +0 -5
  1107. package/mobile/dist/ui-kit/Description/Description.js +0 -9
  1108. package/mobile/dist/ui-kit/Description/Description.js.map +0 -1
  1109. package/mobile/dist/utils/sliceArray.d.ts +0 -1
  1110. package/mobile/dist/utils/sliceArray.js +0 -15
  1111. package/mobile/dist/utils/sliceArray.js.map +0 -1
  1112. package/mobile/lib/components/Carousel/CarouselNavButtons.d.ts +0 -11
  1113. package/mobile/lib/components/Carousel/CarouselNavButtons.js +0 -34
  1114. package/mobile/lib/components/Carousel/CarouselNavButtons.js.map +0 -1
  1115. package/mobile/lib/components/ContentPage/renderBlock.d.ts +0 -15
  1116. package/mobile/lib/components/ContentPage/renderBlock.js +0 -26
  1117. package/mobile/lib/components/ContentPage/renderBlock.js.map +0 -1
  1118. package/mobile/lib/components/ContentPage/renderBlockList.d.ts +0 -14
  1119. package/mobile/lib/components/ContentPage/renderBlockList.js +0 -8
  1120. package/mobile/lib/components/ContentPage/renderBlockList.js.map +0 -1
  1121. package/mobile/lib/components/ContentPage/renderSlots.d.ts +0 -12
  1122. package/mobile/lib/components/ContentPage/renderSlots.js +0 -12
  1123. package/mobile/lib/components/ContentPage/renderSlots.js.map +0 -1
  1124. package/mobile/lib/model/getParentBlockContent.d.ts +0 -2
  1125. package/mobile/lib/model/getParentBlockContent.js +0 -6
  1126. package/mobile/lib/model/getParentBlockContent.js.map +0 -1
  1127. package/mobile/lib/model/getParentBlockDef.d.ts +0 -3
  1128. package/mobile/lib/model/getParentBlockDef.js +0 -8
  1129. package/mobile/lib/model/getParentBlockDef.js.map +0 -1
  1130. package/mobile/lib/react/setup-fixture.js.map +0 -1
  1131. package/mobile/lib/ui-kit/Description/Description.d.ts +0 -5
  1132. package/mobile/lib/ui-kit/Description/Description.js +0 -7
  1133. package/mobile/lib/ui-kit/Description/Description.js.map +0 -1
  1134. package/mobile/lib/utils/sliceArray.d.ts +0 -1
  1135. package/mobile/lib/utils/sliceArray.js +0 -12
  1136. package/mobile/lib/utils/sliceArray.js.map +0 -1
  1137. package/mobile/src/components/Carousel/CarouselNavButtons.tsx +0 -51
  1138. package/mobile/src/components/ContentPage/renderBlock.tsx +0 -61
  1139. package/mobile/src/components/ContentPage/renderBlockList.tsx +0 -28
  1140. package/mobile/src/components/ContentPage/renderSlots.tsx +0 -32
  1141. package/mobile/src/model/getParentBlockDef.ts +0 -12
  1142. package/mobile/src/ui-kit/Description/Description.tsx +0 -12
  1143. package/mobile/src/utils/sliceArray.ts +0 -15
  1144. package/src/components/Carousel/CarouselNavButtons.tsx +0 -51
  1145. package/src/components/ContentPage/renderBlock.tsx +0 -61
  1146. package/src/components/ContentPage/renderBlockList.tsx +0 -28
  1147. package/src/components/ContentPage/renderSlots.tsx +0 -32
  1148. package/src/model/.CarouselCardVersion.ts.icloud +0 -0
  1149. package/src/model/getParentBlockDef.ts +0 -12
  1150. package/src/ui-kit/Description/Description.tsx +0 -12
  1151. package/src/utils/sliceArray.ts +0 -15
@@ -1,4 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { useRef } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { renderChildren } from '../../BlockRenderer/renderChildren';
2
4
  import { useCarouselControls } from '../../hooks/useCarouselControls';
3
5
  import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
4
6
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
@@ -6,61 +8,48 @@ import { renderArrows } from '../../ui-kit/Button/renderArrows';
6
8
  import { CarouselContainer } from './CarouselContainer';
7
9
  import type { CarouselContent } from './CarouselContent';
8
10
 
9
- export interface CarouselProps extends CarouselContent, UniBlockProps {}
11
+ export interface CarouselProps extends CarouselContent, UniBlockProps {
12
+ itemCount?: number;
13
+ }
10
14
 
11
- export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
12
- ({
13
- cardFullViewCount = 1,
14
- children,
15
- cardWidth = '1007',
16
- className = '',
17
- isBlur = true,
18
- isCyclic = false,
19
- block,
20
- ...rest
21
- }) => {
22
- const blurClasses = isBlur ? 'absolute top-0 bottom-0 w-[84px]' : '';
23
- const { blocks: childBlocks } = block || {};
15
+ const blurBaseStyle = 'absolute top-0 bottom-0 z-50 w-[84px]';
24
16
 
25
- const childBlocksLength = childBlocks !== undefined ? childBlocks.length : 0;
17
+ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
18
+ ({ className = '', itemCount, visibleItemCount, isBlur = true, isCyclic = false, ...rest }) => {
19
+ const { blocks: childBlocks } = rest.block || {};
20
+ const count = itemCount || childBlocks?.length || 0;
26
21
 
27
- const isScrollAvailable = childBlocksLength > cardFullViewCount;
22
+ const containerRef = useRef<HTMLDivElement | null>(null);
28
23
 
29
24
  const [activeIndex, controls] = useCarouselControls({
30
- itemsCount: childBlocksLength,
31
- visibleItemCount: cardFullViewCount,
25
+ itemCount: count,
26
+ visibleItemCount,
32
27
  isCyclic,
28
+ container: containerRef.current,
33
29
  });
34
- const { inc, dec, canDec, canInc } = controls;
30
+ const { isScrollAvailable } = controls;
35
31
 
36
32
  return (
37
- <BlockWrapper
38
- className={`box-border h-full relative font-sans flex flex-col justify-center overflow-hidden ${className}`}
39
- {...rest}
40
- >
33
+ <BlockWrapper className={`relative font-sans overflow-hidden ${className}`} {...rest}>
41
34
  <CarouselContainer
42
- activeItem={activeIndex}
43
- cardFullViewCount={cardFullViewCount}
44
- cardWidth={cardWidth}
35
+ activeIndex={activeIndex}
36
+ itemCount={count}
37
+ visibleItemCount={visibleItemCount}
38
+ containerRef={containerRef}
45
39
  >
46
- {children}
40
+ {renderChildren(rest)}
47
41
  </CarouselContainer>
48
- {isScrollAvailable ? (
49
- <div>
50
- {renderArrows({
51
- handler: [dec, inc],
52
- isShown: [canDec, canInc],
53
- btnClass: ['left-8', 'right-8'],
54
- className: 'top-1/2 z-10',
55
- })}
56
- </div>
57
- ) : null}
58
- {isScrollAvailable ? (
42
+ {isScrollAvailable && isBlur ? (
59
43
  <div>
60
- <div className={`${blurClasses} left-0 bg-opacity-from-white`} />
61
- <div className={`${blurClasses} right-0 bg-opacity-to-white`} />
44
+ <div className={`${blurBaseStyle} left-0 bg-opacity-from-white`} />
45
+ <div className={`${blurBaseStyle} right-0 bg-opacity-to-white`} />
62
46
  </div>
63
47
  ) : null}
48
+ {renderArrows({
49
+ ...controls,
50
+ btnClass: ['left-8', 'right-8'],
51
+ className: 'top-1/2',
52
+ })}
64
53
  </BlockWrapper>
65
54
  );
66
55
  },
@@ -1,24 +1,31 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { CardWidth } from './CarouselContent';
3
2
 
4
- export interface CarouselContainerProps {
5
- activeItem: number;
6
- cardFullViewCount: number;
7
- cardWidth: CardWidth;
3
+ interface CarouselContainerProps {
4
+ activeIndex: number;
5
+ itemCount: number;
6
+ visibleItemCount?: number;
7
+ containerRef?: { current: HTMLDivElement | null };
8
8
  }
9
9
 
10
+ const childStyleMap = ['[&>*]:min-w-[100%]', '[&>*]:min-w-[50%]', '[&>*]:min-w-[33.33%]'];
11
+
10
12
  export const CarouselContainer = JSX<CarouselContainerProps>(
11
- ({ children, activeItem, cardFullViewCount, cardWidth }) => {
12
- const cardFullViewStyles =
13
- cardFullViewCount === 1
14
- ? `translateX(-${activeItem}00%)`
15
- : `translateX(-${activeItem * Number(cardWidth)}px)`;
13
+ ({ activeIndex, itemCount, visibleItemCount, containerRef, children }) => {
14
+ const scrollWidth = containerRef?.current?.scrollWidth || 0;
15
+ const maxScrollLeft = scrollWidth - (containerRef?.current?.clientWidth || 0);
16
+
17
+ const translateX = visibleItemCount
18
+ ? `${-Math.round((100 * activeIndex) / visibleItemCount)}%`
19
+ : `${-Math.round(Math.min((scrollWidth * activeIndex) / (itemCount || 1), maxScrollLeft))}px`;
16
20
 
17
21
  return (
18
22
  <div
19
- className="w-auto flex flex-1 duration-1000"
20
- style={{ transform: `${cardFullViewStyles}` }}
23
+ className={`flex gap-1 duration-1000 ${
24
+ visibleItemCount ? childStyleMap[visibleItemCount - 1] : ''
25
+ }`}
26
+ style={{ transform: `translateX(${translateX})` }}
21
27
  role="list"
28
+ ref={containerRef}
22
29
  >
23
30
  {children}
24
31
  </div>
@@ -1,16 +1,12 @@
1
1
  /**
2
2
  * @title Карусель
3
3
  */
4
-
5
- /**
6
- * @title Ширина карточек
7
- * @enumNames [ "1007", "833", "350", "322" ]
8
- */
9
- export type CardWidth = '322' | '350' | '832' | '1007';
10
4
  export interface CarouselContent {
11
- /** @title Количество видимых карточек */
12
- cardFullViewCount?: number;
13
- cardWidth?: CardWidth;
5
+ /**
6
+ * @title Количество видимых карточек
7
+ * @enumNames ["auto", "1", "2", "3"]
8
+ */
9
+ visibleItemCount?: 0 | 1 | 2 | 3;
14
10
  /** @title Добавление блюра */
15
11
  isBlur?: boolean;
16
12
  /** @title Цикличность */
@@ -1,7 +1,7 @@
1
- import '../../react/setup-fixture';
1
+ import '../../setup-fixture';
2
+ import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
2
3
  import { CarouselCard } from './CarouselCard';
3
4
  import type { CarouselCardContent } from './CarouselCardContent';
4
- import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
5
5
 
6
6
  const button: ButtonProps = {
7
7
  text: 'Подробнее',
@@ -36,9 +36,14 @@ export default {
36
36
  <CarouselCard className="col-span-12" {...CARD} />
37
37
  </div>
38
38
  ),
39
- mini: (
39
+ new: (
40
40
  <div className="container grid grid-cols-12">
41
- <CarouselCard className="col-span-12" {...CARD_MINI} />
41
+ <CarouselCard className="col-span-12" {...CARD_NEW} />
42
+ </div>
43
+ ),
44
+ mini: (
45
+ <div className="container flex">
46
+ <CarouselCard {...CARD_MINI} />
42
47
  </div>
43
48
  ),
44
49
  };
@@ -5,45 +5,33 @@ import { renderButton } from '../../ui-kit/Button/ButtonSection';
5
5
  import { Headline } from '../Headline/Headline';
6
6
  import type { CarouselCardContent } from './CarouselCardContent';
7
7
 
8
- export interface CarouselCardProps extends CarouselCardContent, UniBlockProps {
9
- version?: CarouselCardVersion;
10
- }
8
+ export interface CarouselCardProps extends CarouselCardContent, UniBlockProps {}
11
9
 
12
- const BLOCK_CLASSES = 'absolute border border-solid border-main-stroke w-[100%] h-[100%]';
13
-
14
- const CARD_STYLE_MAP: Record<CarouselCardVersion, string> = {
15
- normal: 'min-w-[100%] justify-center items-center my-7 col-span-12',
16
- mini: 'justify-center items-center mx-4 my-9 col-span-4',
17
- };
10
+ const BLOCK_CLASSES = 'absolute border border-solid border-main-stroke w-full h-full';
18
11
 
19
12
  const CARD_WIDTH_MAP: Record<CarouselCardVersion, string> = {
20
- normal: 'w-[1007px]',
21
- mini: 'w-[350px]',
13
+ normal: `w-[${1007 + 48}px]`,
14
+ mini: `w-[${350 + 48}px]`,
22
15
  };
23
16
 
24
17
  export const CarouselCard = JSX<CarouselCardProps>(
25
- ({ button, className = '', description, title, version = 'normal' }) => {
26
- return (
27
- <section className={`flex ${CARD_STYLE_MAP[version]}`}>
28
- <div className={`relative ${CARD_WIDTH_MAP[version]}`}>
29
- <div
30
- className={`relative bg-white py-6 px-10 z-10
31
- border border-solid border-green-light ${className}`}
32
- >
33
- <Headline
34
- className="!p-0"
35
- title={title}
36
- description={description}
37
- headlineVersion="M"
38
- align="center"
39
- />
40
- {button ? renderButton({ button, buttonClassName: 'mt-6 w-[158px]' }) : null}
41
- </div>
42
- <div className={`top-9 right-12 bg-green-dark ${BLOCK_CLASSES}`} />
43
- <div className={`top-6 right-8 bg-green ${BLOCK_CLASSES}`} />
44
- <div className={`top-3 right-4 bg-green-light ${BLOCK_CLASSES}`} />
18
+ ({ className = '', button, description, title, version = 'normal' }) => (
19
+ <section className={`flex pb-9 pl-12 ${CARD_WIDTH_MAP[version]} ${className}`}>
20
+ <div className="relative w-full">
21
+ <div className={`${BLOCK_CLASSES} z-10 top-9 right-12 bg-green-dark`} />
22
+ <div className={`${BLOCK_CLASSES} z-10 top-6 right-8 bg-green`} />
23
+ <div className={`${BLOCK_CLASSES} z-10 top-3 right-4 bg-green-light`} />
24
+ <div className="relative bg-white z-10 py-6 px-10 border border-solid border-green-light">
25
+ <Headline
26
+ className="!p-0"
27
+ title={title}
28
+ description={description}
29
+ headlineVersion="M"
30
+ align="center"
31
+ />
32
+ {button ? <div className="mt-6">{renderButton({ button })}</div> : null}
45
33
  </div>
46
- </section>
47
- );
48
- },
34
+ </div>
35
+ </section>
36
+ ),
49
37
  );
@@ -2,11 +2,10 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { UniBlockProps } from '../../model/JSXBlock';
3
3
  import type { LinkProps } from '../../model/LinkProps';
4
4
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
5
- import { Description } from '../../ui-kit/Description/Description';
6
- import { Heading } from '../../ui-kit/Heading/Heading';
7
5
  import { LinkButton } from '../../ui-kit/LinkButton/LinkButton';
8
- import { sliceArray } from '../../utils/sliceArray';
6
+ import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
9
7
  import { Carousel } from '../Carousel/Carousel';
8
+ import { Headline } from '../Headline/Headline';
10
9
  import type { CarouselLinksContent } from './CarouselLinksContent';
11
10
 
12
11
  export interface CarouselLinksProps extends CarouselLinksContent, UniBlockProps {}
@@ -14,48 +13,55 @@ export interface CarouselLinksProps extends CarouselLinksContent, UniBlockProps
14
13
  const MAX_LINKS_COUNT = 12;
15
14
 
16
15
  export const CarouselLinks = JSX<CarouselLinksProps>(
17
- ({ additionalDescription, block, description, links, title, className = '', ...rest }) => {
16
+ ({ className = '', additionalDescription, description, links, title, ...rest }) => {
18
17
  return (
19
18
  <BlockWrapper
20
19
  className={`bg-primary-main flex w-full p-10 overflow-hidden justify-between font-sans ${className}`}
21
20
  {...rest}
22
21
  >
23
22
  <div className="flex flex-col max-w-96 pr-9 text-white text-xl-light">
24
- {title ? <Heading title={title} as="h1" headingType="h0" className="pb-0.5" /> : null}
25
- {description ? (
26
- <Description description={description} className="text-xl-light pt-5" />
27
- ) : null}
23
+ <Headline
24
+ title={title}
25
+ as="h1"
26
+ description={description}
27
+ align="left"
28
+ className="p-0"
29
+ bgColorHeadline="secondary"
30
+ />
28
31
  {additionalDescription ? (
29
- <Description description={additionalDescription} className="pt-6" />
32
+ <div className="pt-6">
33
+ <Paragraph>{additionalDescription}</Paragraph>
34
+ </div>
30
35
  ) : null}
31
36
  </div>
32
- {links?.length ? renderLinks(links, block) : null}
37
+ {links?.length ? renderLinks(links) : null}
33
38
  </BlockWrapper>
34
39
  );
35
40
  },
36
41
  );
37
42
 
38
- const renderLinks = (links: LinkProps[], block: any) => {
39
- const slicedLinks = sliceArray(links, MAX_LINKS_COUNT);
40
-
41
- const slides = slicedLinks.map((slide) => (
42
- <div className="w-[672px] min-w-[672px] ml-20 mr-20 flex flex-wrap self-start">
43
- {slide.map((link, index) => (
44
- <LinkButton className="m-1" key={String(index)} {...link} />
45
- ))}
46
- </div>
47
- ));
43
+ const renderLinks = (links: LinkProps[]) => {
44
+ const itemCount = Math.ceil(links.length / MAX_LINKS_COUNT);
48
45
 
49
46
  return (
50
47
  <Carousel
51
48
  className="min-w-[832px] w-[832px]"
52
49
  isBlur={false}
53
- cardFullViewCount={1}
54
- cardWidth={'832'}
55
50
  isCyclic={true}
56
- block={{ type: 'Carousel', blocks: slides }}
51
+ itemCount={itemCount}
57
52
  >
58
- {slides}
53
+ {new Array(itemCount).fill(null).map((_, groupIndex) => (
54
+ <div
55
+ key={String(groupIndex)}
56
+ className="w-[672px] min-w-[672px] ml-20 mr-20 flex flex-wrap self-start"
57
+ >
58
+ {links
59
+ .slice(groupIndex * MAX_LINKS_COUNT, (groupIndex + 1) * MAX_LINKS_COUNT)
60
+ .map((link, index) => (
61
+ <LinkButton key={String(index)} className="m-1" {...link} />
62
+ ))}
63
+ </div>
64
+ ))}
59
65
  </Carousel>
60
66
  );
61
67
  };
@@ -26,7 +26,7 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
26
26
 
27
27
  return (
28
28
  <BlockWrapper
29
- className={`font-sans bg-white p-[50px] p-8 border border-main-stroke relative w-[322px] min-w-[322px] -ml-[1px] ${hitStyle} ${className}`}
29
+ className={`font-sans bg-white p-8 border border-main-stroke relative w-[322px] min-w-[322px] -ml-[1px] ${hitStyle} ${className}`}
30
30
  {...rest}
31
31
  >
32
32
  {isHighlighting ? renderHitIcon() : null}
@@ -70,8 +70,8 @@ const renderFoldButton = ({ isUnfolded, onToggle }: FoldablePartProps): VNode =>
70
70
  </button>
71
71
  );
72
72
 
73
- const renderCardInfo = (cell: HeadlineCommonProps): VNode => (
74
- <div className="py-5 border-b border-main-divider flex flex-col gap-1">
73
+ const renderCardInfo = (cell: HeadlineCommonProps, i: number): VNode => (
74
+ <div key={String(i)} className="py-5 border-b border-main-divider flex flex-col gap-1">
75
75
  {cell?.title ? (
76
76
  <div className="text-secondary-text text-m-light opacity-80">{cell.title}</div>
77
77
  ) : null}
@@ -1,6 +1,6 @@
1
1
  import type { Picture } from '../../model/Picture';
2
2
  import type { ProductColorVersion } from '../../model/ProductColorVersion';
3
- import '../../react/setup-fixture';
3
+ import '../../setup-fixture';
4
4
  import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
5
5
  import { Catalog, CatalogProps } from './Catalog';
6
6
 
@@ -1,5 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
2
+ import { useCarouselControls } from '../../hooks/useCarouselControls';
3
3
  import type { UniBlockProps } from '../../model/JSXBlock';
4
4
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
5
5
  import { renderArrows } from '../../ui-kit/Button/renderArrows';
@@ -10,19 +10,15 @@ import type { CatalogContent } from './CatalogContent';
10
10
  export interface CatalogProps extends CatalogContent, UniBlockProps {}
11
11
 
12
12
  const BLUR_BLOCK_CLASSES = 'absolute top-0 bottom-0 w-[84px]';
13
- const CARD_FULL_VIEW_COUNT = 3;
13
+ const CARD_VIEW_COUNT = 3;
14
14
  const CARD_SHIFT = 430;
15
15
 
16
16
  export const Catalog = JSX<CatalogProps>(
17
17
  ({ cards = [], className = '', title, description, ...rest }) => {
18
- const [activeCardIndex, setActiveCardIndex] = useState(0);
19
-
20
- const handleNextClick = useCallback(() => setActiveCardIndex((_) => _ + 1), []);
21
- const handlePrevClick = useCallback(() => setActiveCardIndex((_) => _ - 1), []);
22
-
23
- const isUseSlider = cards.length > CARD_FULL_VIEW_COUNT;
24
- const showNextButton = isUseSlider && cards.length - activeCardIndex > CARD_FULL_VIEW_COUNT;
25
- const showPrevButton = isUseSlider && activeCardIndex > 0;
18
+ const [activeIndex, controls] = useCarouselControls({
19
+ itemCount: cards?.length,
20
+ visibleItemCount: CARD_VIEW_COUNT,
21
+ });
26
22
 
27
23
  return (
28
24
  <BlockWrapper
@@ -39,14 +35,13 @@ export const Catalog = JSX<CatalogProps>(
39
35
  />
40
36
  <div
41
37
  className="flex duration-1000 gap-3.5 mt-8"
42
- style={{ transform: `translateX(-${activeCardIndex * CARD_SHIFT}px)` }}
38
+ style={{ transform: `translateX(-${activeIndex * CARD_SHIFT}px)` }}
43
39
  role="list"
44
40
  >
45
41
  {cards?.length ? cards.map((card, i) => <CatalogCard key={String(i)} {...card} />) : null}
46
42
  </div>
47
43
  {renderArrows({
48
- handler: [handlePrevClick, handleNextClick],
49
- isShown: [showPrevButton, showNextButton],
44
+ ...controls,
50
45
  btnClass: ['left-8', 'right-8'],
51
46
  className: 'top-1/2 z-10 mt-6',
52
47
  })}
@@ -1,5 +1,5 @@
1
1
  import type { Picture } from '../../model/Picture';
2
- import '../../react/setup-fixture';
2
+ import '../../setup-fixture';
3
3
  import { ComparisonTable } from './ComparisonTable';
4
4
  import type { Column } from './ComparisonTableContent';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import type { Picture } from '../../model/Picture';
2
- import '../../react/setup-fixture';
2
+ import '../../setup-fixture';
3
3
  import { ComparisonTable } from './ComparisonTable';
4
4
  import type { Column } from './ComparisonTableContent';
5
5
 
@@ -215,7 +215,7 @@ export default {
215
215
  />
216
216
  </div>
217
217
  ),
218
- 'with images and colored first column': (
218
+ 'with images and colored column': (
219
219
  <div className="container grid grid-cols-12">
220
220
  <ComparisonTable
221
221
  className="col-span-12"
@@ -28,9 +28,9 @@ export const ComparisonTable = JSX<ComparisonTableProps>((props) => {
28
28
  });
29
29
 
30
30
  const TableInner = JSX<ComparisonTableProps>(
31
- ({ columns, rowHeaders, isColoredFirstColumn, visibleRowLength, orientation, ...rest }) => {
31
+ ({ columns = [], rowHeaders, isColoredFirstColumn, visibleRowLength, orientation, ...rest }) => {
32
32
  const [columnsViewState, setColumnsViewState] = useState(
33
- new Array<boolean>(columns?.length || 0).fill(!visibleRowLength),
33
+ new Array<boolean>(columns.length).fill(!visibleRowLength),
34
34
  );
35
35
 
36
36
  const handleToggleColumn = useCallback((colIndex: number) => {
@@ -14,7 +14,7 @@ interface ComparisonTableBodyProps {
14
14
  }
15
15
 
16
16
  export const ComparisonTableBody = JSX<ComparisonTableBodyProps>(
17
- ({ columns, rowHeaders, isShowAllRow, visibleRowLength, isColoredFirstColumn }) => {
17
+ ({ columns = [], rowHeaders, isShowAllRow, visibleRowLength, isColoredFirstColumn }) => {
18
18
  const colHeaders = columns?.map(({ header }) => header || {});
19
19
  const colData = columns?.map(({ data }) => data) || [];
20
20
  const rowData = rowHeaders
@@ -24,26 +24,25 @@ export const ComparisonTableBody = JSX<ComparisonTableBodyProps>(
24
24
  }))
25
25
  .slice(0, isShowAllRow ? rowHeaders.length : visibleRowLength);
26
26
 
27
- const isScrollAvailable = colData.length > COLS_LENGTH_FOR_SCROLL;
28
-
29
27
  const [activeIndex, controls] = useCarouselControls({
30
- itemsCount: colData.length,
28
+ itemCount: columns.length,
31
29
  visibleItemCount: COLS_LENGTH_FOR_SCROLL,
32
30
  });
33
31
 
32
+ const { isScrollAvailable } = controls;
33
+
34
34
  return (
35
35
  <div>
36
36
  <div role="table">
37
37
  {colHeaders?.length ? (
38
- <ComparisonTableColumnHeaders colHeaders={colHeaders} activeCardIndex={activeIndex} />
38
+ <ComparisonTableColumnHeaders colHeaders={colHeaders} activeIndex={activeIndex} />
39
39
  ) : null}
40
40
  {rowData?.length ? (
41
41
  <ComparisonTableRows
42
42
  rowData={rowData}
43
43
  isColoredFirstColumn={isColoredFirstColumn}
44
- activeCardIndex={activeIndex}
44
+ activeIndex={activeIndex}
45
45
  controls={controls}
46
- isScrollAvailable={isScrollAvailable}
47
46
  />
48
47
  ) : null}
49
48
  </div>
@@ -7,14 +7,14 @@ import { TableRowContainer } from './TableRowContainer';
7
7
 
8
8
  interface ComparisonTableColumnHeadersProps {
9
9
  colHeaders: ColumnHeader[];
10
- activeCardIndex: number;
10
+ activeIndex: number;
11
11
  }
12
12
 
13
13
  export const ComparisonTableColumnHeaders = JSX<ComparisonTableColumnHeadersProps>(
14
- ({ colHeaders, activeCardIndex }) => (
14
+ ({ colHeaders, activeIndex }) => (
15
15
  <TableRowContainer>
16
16
  <div className={FIRST_CELL_CLASSES} role="columnheader" />
17
- <TableCarouselContainer activeCardIndex={activeCardIndex} columnWidth={COLUMN_WIDTH}>
17
+ <TableCarouselContainer activeIndex={activeIndex} columnWidth={COLUMN_WIDTH}>
18
18
  {colHeaders.map((header, i) => (
19
19
  <HeaderCell key={String(i)} {...header} />
20
20
  ))}
@@ -7,15 +7,14 @@ import { TableRow } from './TableRow';
7
7
 
8
8
  type ComparisonTableRowsProps = {
9
9
  rowData: { header: TitleProps; data: CellData[][] }[];
10
- activeCardIndex: number;
10
+ activeIndex: number;
11
11
  isColoredFirstColumn: boolean;
12
12
  controls: CarouselControls;
13
- isScrollAvailable: boolean;
14
13
  };
15
14
 
16
15
  export const ComparisonTableRows = JSX<ComparisonTableRowsProps>(
17
- ({ rowData, isColoredFirstColumn, activeCardIndex, controls, isScrollAvailable }) => {
18
- const { inc, dec, canDec, canInc } = controls;
16
+ ({ rowData, isColoredFirstColumn, activeIndex, controls }) => {
17
+ const { isScrollAvailable } = controls;
19
18
 
20
19
  return (
21
20
  <div className="relative">
@@ -25,21 +24,18 @@ export const ComparisonTableRows = JSX<ComparisonTableRowsProps>(
25
24
  row={row}
26
25
  isFirstRow={i === 0}
27
26
  isLastRow={i + 1 === length}
28
- activeCardIndex={activeCardIndex}
27
+ activeIndex={activeIndex}
29
28
  isColoredFirstColumn={isColoredFirstColumn}
30
29
  />
31
30
  ))}
32
- {isScrollAvailable ? (
33
- <div>
34
- {renderArrows({
35
- handler: [inc, dec],
36
- isShown: [canDec, canInc],
37
- btnClass: ['top-[108px]', 'top-11'],
31
+ {isScrollAvailable
32
+ ? renderArrows({
33
+ ...controls,
34
+ btnClass: ['top-[108px]', 'top-[44px]'],
38
35
  className: 'right-7',
39
36
  isDisabled: true,
40
- })}
41
- </div>
42
- ) : null}
37
+ })
38
+ : null}
43
39
  </div>
44
40
  );
45
41
  },
@@ -2,7 +2,7 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import { TableVersion } from '../../model/TableVersion';
3
3
 
4
4
  export interface TableCarouselContainerProps {
5
- activeCardIndex: number;
5
+ activeIndex: number;
6
6
  columnWidth: number;
7
7
  version?: TableVersion;
8
8
  }
@@ -13,11 +13,11 @@ const carouselContainerClassesMap: Record<TableVersion, string> = {
13
13
  };
14
14
 
15
15
  export const TableCarouselContainer = JSX<TableCarouselContainerProps>(
16
- ({ children, activeCardIndex, columnWidth, version = 'comparison' }) => (
16
+ ({ children, activeIndex, columnWidth, version = 'comparison' }) => (
17
17
  <div className="flex flex-1 overflow-hidden">
18
18
  <div
19
19
  className={carouselContainerClassesMap[version]}
20
- style={{ transform: `translateX(-${activeCardIndex * columnWidth}px)` }}
20
+ style={{ transform: `translateX(-${activeIndex * columnWidth}px)` }}
21
21
  >
22
22
  {children}
23
23
  </div>
@@ -12,7 +12,7 @@ export interface Row {
12
12
  export interface TableRowProps {
13
13
  className?: string;
14
14
  row: Row;
15
- activeCardIndex: number;
15
+ activeIndex: number;
16
16
  isColoredFirstColumn: boolean;
17
17
  isFirstRow: boolean;
18
18
  isLastRow: boolean;
@@ -24,11 +24,11 @@ const titleStyle = (isLastRow = false) =>
24
24
  }`;
25
25
 
26
26
  export const TableRow = JSX<TableRowProps>(
27
- ({ row: { header, data }, activeCardIndex, isColoredFirstColumn, isFirstRow, isLastRow }) => (
27
+ ({ row: { header, data }, activeIndex, isColoredFirstColumn, isFirstRow, isLastRow }) => (
28
28
  <TableRowContainer>
29
29
  {header?.title ? <div className={titleStyle(isLastRow)}>{header.title}</div> : null}
30
30
  {data?.length ? (
31
- <TableCarouselContainer activeCardIndex={activeCardIndex} columnWidth={COLUMN_WIDTH}>
31
+ <TableCarouselContainer activeIndex={activeIndex} columnWidth={COLUMN_WIDTH}>
32
32
  {data.map((cell, i) => (
33
33
  <TableCell
34
34
  key={String(i)}
@@ -2,5 +2,5 @@ export const GRADIENT = 'bg-gradient-to-r from-main-gradient-start to-main-gradi
2
2
  export const BORDER_CLASSES = 'border-main-stroke border-solid border';
3
3
  export const DIVIDER_CLASSES = 'border-main-divider border border-t-0 border-x-0';
4
4
  export const FIRST_CELL_CLASSES = 'w-[200px] mr-6';
5
- export const COLS_LENGTH_FOR_SCROLL = 2;
5
+ export const COLS_LENGTH_FOR_SCROLL = 3;
6
6
  export const COLUMN_WIDTH = 4 * 80 + 4 * 4; // w-80 + gap-4 = 336px
@@ -1,4 +1,4 @@
1
- import '../../react/setup-fixture';
1
+ import '../../setup-fixture';
2
2
  import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
3
3
  import { ContactsBlock } from './ContactsBlock';
4
4