@redneckz/wildless-cms-uni-blocks 0.6.33 → 0.6.35

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 (1124) 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 +415 -400
  11. package/bundle/bundle.umd.min.js +1 -1
  12. package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
  13. package/bundle/components/Calculator/constants.d.ts +3 -0
  14. package/bundle/components/Calculator/useDepositCalculatorParams.d.ts +22 -0
  15. package/bundle/components/Carousel/Carousel.d.ts +1 -0
  16. package/bundle/components/Carousel/CarouselContainer.d.ts +8 -5
  17. package/bundle/components/Carousel/CarouselContent.d.ts +5 -8
  18. package/bundle/components/CarouselCard/CarouselCard.d.ts +0 -2
  19. package/bundle/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  20. package/bundle/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
  21. package/bundle/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
  22. package/bundle/components/ComparisonTable/TableRow.d.ts +1 -1
  23. package/bundle/components/ComparisonTable/constants.d.ts +1 -1
  24. package/bundle/components/Gallery/GalleryContainer.d.ts +1 -1
  25. package/bundle/components/Header/HeaderSecondaryMenu.d.ts +1 -0
  26. package/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  27. package/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
  28. package/bundle/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  29. package/bundle/components/Video/Video.d.ts +6 -0
  30. package/bundle/components/Video/VideoContent.d.ts +8 -0
  31. package/bundle/components/Video/getPaddings.d.ts +1 -0
  32. package/bundle/hooks/useCarouselControls.d.ts +5 -3
  33. package/bundle/model/JSXBlock.d.ts +4 -5
  34. package/bundle/model/LinkProps.d.ts +1 -0
  35. package/bundle/model/Picture.d.ts +8 -2
  36. package/bundle/services/sitemap/SitemapProps.d.ts +1 -2
  37. package/bundle/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
  38. package/bundle/ui-kit/Button/renderArrows.d.ts +6 -4
  39. package/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
  40. package/dist/BlockRenderer/BlockRendererOptions.d.ts +11 -0
  41. package/dist/BlockRenderer/BlockRendererOptions.js +2 -0
  42. package/dist/BlockRenderer/BlockRendererOptions.js.map +1 -0
  43. package/dist/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
  44. package/dist/BlockRenderer/defaultBlockDecorator.js +5 -0
  45. package/dist/BlockRenderer/defaultBlockDecorator.js.map +1 -0
  46. package/dist/BlockRenderer/getParentBlockContent.d.ts +2 -0
  47. package/dist/{model → BlockRenderer}/getParentBlockContent.js +2 -2
  48. package/dist/BlockRenderer/getParentBlockContent.js.map +1 -0
  49. package/dist/BlockRenderer/getParentBlockDef.d.ts +3 -0
  50. package/dist/BlockRenderer/getParentBlockDef.js +7 -0
  51. package/dist/BlockRenderer/getParentBlockDef.js.map +1 -0
  52. package/dist/BlockRenderer/renderBlock.d.ts +3 -0
  53. package/dist/BlockRenderer/renderBlock.js +27 -0
  54. package/dist/BlockRenderer/renderBlock.js.map +1 -0
  55. package/dist/BlockRenderer/renderBlockList.d.ts +9 -0
  56. package/dist/BlockRenderer/renderBlockList.js +14 -0
  57. package/dist/BlockRenderer/renderBlockList.js.map +1 -0
  58. package/dist/BlockRenderer/renderChildren.d.ts +10 -0
  59. package/dist/BlockRenderer/renderChildren.js +13 -0
  60. package/dist/BlockRenderer/renderChildren.js.map +1 -0
  61. package/dist/components/Accordion/Accordion.js +2 -1
  62. package/dist/components/Accordion/Accordion.js.map +1 -1
  63. package/dist/components/Accordion/Accordion.mobile.js +2 -1
  64. package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
  65. package/dist/components/AccordionItem/AccordionItem.js +2 -1
  66. package/dist/components/AccordionItem/AccordionItem.js.map +1 -1
  67. package/dist/components/AccordionItem/AccordionItem.mobile.js +5 -4
  68. package/dist/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
  69. package/dist/components/Blocks.js +3 -1
  70. package/dist/components/Blocks.js.map +1 -1
  71. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +16 -4
  72. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  73. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
  74. package/dist/components/Calculator/Calculator.js +22 -22
  75. package/dist/components/Calculator/Calculator.js.map +1 -1
  76. package/dist/components/Calculator/CalculatorValueBlock.js +1 -3
  77. package/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
  78. package/dist/components/Calculator/DepositCalculatorForm.js +13 -11
  79. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  80. package/dist/components/Calculator/constants.d.ts +3 -0
  81. package/dist/components/Calculator/constants.js +10 -1
  82. package/dist/components/Calculator/constants.js.map +1 -1
  83. package/dist/components/Calculator/useDepositCalculatorParams.d.ts +22 -0
  84. package/dist/components/Calculator/useDepositCalculatorParams.js +28 -0
  85. package/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -0
  86. package/dist/components/CardTransfer/CardTransfer.js +2 -1
  87. package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  88. package/dist/components/Carousel/Carousel.d.ts +1 -0
  89. package/dist/components/Carousel/Carousel.js +16 -14
  90. package/dist/components/Carousel/Carousel.js.map +1 -1
  91. package/dist/components/Carousel/CarouselContainer.d.ts +8 -5
  92. package/dist/components/Carousel/CarouselContainer.js +8 -5
  93. package/dist/components/Carousel/CarouselContainer.js.map +1 -1
  94. package/dist/components/Carousel/CarouselContent.d.ts +5 -8
  95. package/dist/components/Carousel/CarouselContent.js +0 -3
  96. package/dist/components/Carousel/CarouselContent.js.map +1 -1
  97. package/dist/components/CarouselCard/CarouselCard.d.ts +0 -2
  98. package/dist/components/CarouselCard/CarouselCard.js +4 -11
  99. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  100. package/dist/components/CarouselLinks/CarouselLinks.js +7 -7
  101. package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  102. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  103. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  104. package/dist/components/Catalog/Catalog.js +8 -11
  105. package/dist/components/Catalog/Catalog.js.map +1 -1
  106. package/dist/components/ComparisonTable/ComparisonTable.mobile.js +2 -2
  107. package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  108. package/dist/components/ComparisonTable/ComparisonTableBody.js +4 -4
  109. package/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
  110. package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  111. package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -1
  112. package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
  113. package/dist/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
  114. package/dist/components/ComparisonTable/ComparisonTableRows.js +8 -7
  115. package/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
  116. package/dist/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
  117. package/dist/components/ComparisonTable/TableCarouselContainer.js +1 -1
  118. package/dist/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
  119. package/dist/components/ComparisonTable/TableRow.d.ts +1 -1
  120. package/dist/components/ComparisonTable/TableRow.js +1 -1
  121. package/dist/components/ComparisonTable/TableRow.js.map +1 -1
  122. package/dist/components/ComparisonTable/constants.d.ts +1 -1
  123. package/dist/components/ComparisonTable/constants.js +1 -1
  124. package/dist/components/ContactsBlock/ContactsBlock.js +1 -3
  125. package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  126. package/dist/components/ContentPage/ContentPage.js +13 -7
  127. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  128. package/dist/components/ExchangeRateTile/CurrencyTable.js +1 -3
  129. package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  130. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -3
  131. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  132. package/dist/components/Footer/Footer.js +1 -1
  133. package/dist/components/Footer/Footer.js.map +1 -1
  134. package/dist/components/Footer/Footer.mobile.js +2 -2
  135. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  136. package/dist/components/Gallery/GalleryCardInner.js +2 -4
  137. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  138. package/dist/components/Gallery/GalleryContainer.d.ts +1 -1
  139. package/dist/components/Gallery/GalleryContainer.js +1 -3
  140. package/dist/components/Gallery/GalleryContainer.js.map +1 -1
  141. package/dist/components/Gallery/GalleryInner.js +9 -12
  142. package/dist/components/Gallery/GalleryInner.js.map +1 -1
  143. package/dist/components/Header/Header.js +2 -2
  144. package/dist/components/Header/Header.js.map +1 -1
  145. package/dist/components/Header/Header.mobile.js +2 -3
  146. package/dist/components/Header/Header.mobile.js.map +1 -1
  147. package/dist/components/Header/HeaderSecondaryMenu.d.ts +1 -0
  148. package/dist/components/Header/HeaderSecondaryMenu.js +2 -2
  149. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  150. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +23 -25
  151. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  152. package/dist/components/InvestmentGallery/InvestmentGallery.js +10 -20
  153. package/dist/components/InvestmentGallery/InvestmentGallery.js.map +1 -1
  154. package/dist/components/MobileAppTile/MobileAppTile.js +4 -4
  155. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  156. package/dist/components/OtherProducts/OtherProducts.js +2 -1
  157. package/dist/components/OtherProducts/OtherProducts.js.map +1 -1
  158. package/dist/components/OtherProductsItem/OtherProductsItem.js +5 -4
  159. package/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  160. package/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  161. package/dist/components/ProductBlock/ProductBlockInner.js +2 -2
  162. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  163. package/dist/components/Recommendation/Recommendation.js +11 -21
  164. package/dist/components/Recommendation/Recommendation.js.map +1 -1
  165. package/dist/components/RollupItem/RollupItem.js +5 -3
  166. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  167. package/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
  168. package/dist/components/StepsBlock/StepsBlock.js +1 -1
  169. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  170. package/dist/components/TariffsTable/TariffsTable.js +12 -14
  171. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  172. package/dist/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  173. package/dist/components/TariffsTable/TariffsTableRow.js +2 -2
  174. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  175. package/dist/components/VerticalLayout/VerticalLayout.js +6 -3
  176. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  177. package/dist/components/Video/Video.d.ts +6 -0
  178. package/dist/components/Video/Video.js +12 -0
  179. package/dist/components/Video/Video.js.map +1 -0
  180. package/dist/components/Video/VideoContent.d.ts +8 -0
  181. package/dist/components/Video/VideoContent.js +2 -0
  182. package/dist/components/Video/VideoContent.js.map +1 -0
  183. package/dist/components/Video/getPaddings.d.ts +1 -0
  184. package/dist/components/Video/getPaddings.js +7 -0
  185. package/dist/components/Video/getPaddings.js.map +1 -0
  186. package/dist/hooks/useCarouselControls.d.ts +5 -3
  187. package/dist/hooks/useCarouselControls.js +19 -8
  188. package/dist/hooks/useCarouselControls.js.map +1 -1
  189. package/dist/model/JSXBlock.d.ts +4 -5
  190. package/dist/model/LinkProps.d.ts +1 -0
  191. package/dist/model/Picture.d.ts +8 -2
  192. package/dist/services/sitemap/SitemapProps.d.ts +1 -2
  193. package/dist/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
  194. package/{mobile/dist/react → dist}/setup-fixture.js +4 -4
  195. package/dist/setup-fixture.js.map +1 -0
  196. package/dist/ui-kit/Button/renderArrows.d.ts +6 -4
  197. package/dist/ui-kit/Button/renderArrows.js +3 -2
  198. package/dist/ui-kit/Button/renderArrows.js.map +1 -1
  199. package/dist/ui-kit/InnerTable/InnerTableBodyItem.js +9 -10
  200. package/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  201. package/dist/ui-kit/SwipeListControl/SwipeListControl.js +5 -2
  202. package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  203. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -12
  204. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  205. package/dist/ui-kit/SwipeListControl/SwipeListControlList.js +2 -2
  206. package/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -1
  207. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +5 -3
  208. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  209. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
  210. package/lib/BlockRenderer/BlockRendererOptions.d.ts +11 -0
  211. package/lib/BlockRenderer/BlockRendererOptions.js +2 -0
  212. package/lib/BlockRenderer/BlockRendererOptions.js.map +1 -0
  213. package/lib/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
  214. package/lib/BlockRenderer/defaultBlockDecorator.js +2 -0
  215. package/lib/BlockRenderer/defaultBlockDecorator.js.map +1 -0
  216. package/lib/BlockRenderer/getParentBlockContent.d.ts +2 -0
  217. package/lib/BlockRenderer/getParentBlockContent.js +6 -0
  218. package/lib/BlockRenderer/getParentBlockContent.js.map +1 -0
  219. package/lib/BlockRenderer/getParentBlockDef.d.ts +3 -0
  220. package/lib/BlockRenderer/getParentBlockDef.js +4 -0
  221. package/lib/BlockRenderer/getParentBlockDef.js.map +1 -0
  222. package/lib/BlockRenderer/renderBlock.d.ts +3 -0
  223. package/lib/BlockRenderer/renderBlock.js +24 -0
  224. package/lib/BlockRenderer/renderBlock.js.map +1 -0
  225. package/lib/BlockRenderer/renderBlockList.d.ts +9 -0
  226. package/lib/BlockRenderer/renderBlockList.js +11 -0
  227. package/lib/BlockRenderer/renderBlockList.js.map +1 -0
  228. package/lib/BlockRenderer/renderChildren.d.ts +10 -0
  229. package/lib/BlockRenderer/renderChildren.js +10 -0
  230. package/lib/BlockRenderer/renderChildren.js.map +1 -0
  231. package/lib/common.css +1 -1
  232. package/lib/components/Accordion/Accordion.fixture.d.ts +3 -2
  233. package/lib/components/Accordion/Accordion.fixture.mobile.d.ts +3 -2
  234. package/lib/components/Accordion/Accordion.js +2 -1
  235. package/lib/components/Accordion/Accordion.js.map +1 -1
  236. package/lib/components/Accordion/Accordion.mobile.js +2 -1
  237. package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
  238. package/lib/components/AccordionItem/AccordionItem.js +2 -1
  239. package/lib/components/AccordionItem/AccordionItem.js.map +1 -1
  240. package/lib/components/AccordionItem/AccordionItem.mobile.js +5 -4
  241. package/lib/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
  242. package/lib/components/BenefitsBlock/BenefitsBlock.fixture.d.ts +1 -1
  243. package/lib/components/Blocks.js +3 -1
  244. package/lib/components/Blocks.js.map +1 -1
  245. package/lib/components/Bonus/Bonus.fixture.d.ts +1 -1
  246. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.d.ts +2 -1
  247. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +16 -4
  248. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  249. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
  250. package/lib/components/BusinessBlock/BusinessBlock.fixture.d.ts +1 -1
  251. package/lib/components/Calculator/Calculator.fixture.d.ts +1 -1
  252. package/lib/components/Calculator/Calculator.js +23 -23
  253. package/lib/components/Calculator/Calculator.js.map +1 -1
  254. package/lib/components/Calculator/CalculatorValueBlock.js +1 -3
  255. package/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
  256. package/lib/components/Calculator/DepositCalculatorForm.js +14 -12
  257. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  258. package/lib/components/Calculator/constants.d.ts +3 -0
  259. package/lib/components/Calculator/constants.js +9 -0
  260. package/lib/components/Calculator/constants.js.map +1 -1
  261. package/lib/components/Calculator/useDepositCalculatorParams.d.ts +22 -0
  262. package/lib/components/Calculator/useDepositCalculatorParams.js +25 -0
  263. package/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -0
  264. package/lib/components/CardTransfer/CardTransfer.fixture.d.ts +1 -1
  265. package/lib/components/CardTransfer/CardTransfer.js +3 -2
  266. package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  267. package/lib/components/Carousel/Carousel.d.ts +1 -0
  268. package/lib/components/Carousel/Carousel.fixture.d.ts +1 -1
  269. package/lib/components/Carousel/Carousel.js +16 -14
  270. package/lib/components/Carousel/Carousel.js.map +1 -1
  271. package/lib/components/Carousel/CarouselContainer.d.ts +8 -5
  272. package/lib/components/Carousel/CarouselContainer.js +8 -5
  273. package/lib/components/Carousel/CarouselContainer.js.map +1 -1
  274. package/lib/components/Carousel/CarouselContent.d.ts +5 -8
  275. package/lib/components/Carousel/CarouselContent.js +0 -3
  276. package/lib/components/Carousel/CarouselContent.js.map +1 -1
  277. package/lib/components/CarouselCard/CarouselCard.d.ts +0 -2
  278. package/lib/components/CarouselCard/CarouselCard.fixture.d.ts +2 -1
  279. package/lib/components/CarouselCard/CarouselCard.js +4 -11
  280. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  281. package/lib/components/CarouselLinks/CarouselLinks.js +7 -7
  282. package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  283. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  284. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  285. package/lib/components/Catalog/Catalog.fixture.d.ts +1 -1
  286. package/lib/components/Catalog/Catalog.js +8 -11
  287. package/lib/components/Catalog/Catalog.js.map +1 -1
  288. package/lib/components/ComparisonTable/ComparisonTable.fixture.d.ts +2 -2
  289. package/lib/components/ComparisonTable/ComparisonTable.fixture.mobile.d.ts +1 -1
  290. package/lib/components/ComparisonTable/ComparisonTable.mobile.js +2 -2
  291. package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  292. package/lib/components/ComparisonTable/ComparisonTableBody.js +4 -4
  293. package/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
  294. package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  295. package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -1
  296. package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
  297. package/lib/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
  298. package/lib/components/ComparisonTable/ComparisonTableRows.js +8 -7
  299. package/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
  300. package/lib/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
  301. package/lib/components/ComparisonTable/TableCarouselContainer.js +1 -1
  302. package/lib/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
  303. package/lib/components/ComparisonTable/TableRow.d.ts +1 -1
  304. package/lib/components/ComparisonTable/TableRow.js +1 -1
  305. package/lib/components/ComparisonTable/TableRow.js.map +1 -1
  306. package/lib/components/ComparisonTable/constants.d.ts +1 -1
  307. package/lib/components/ComparisonTable/constants.js +1 -1
  308. package/lib/components/ContactsBlock/ContactsBlock.fixture.d.ts +1 -1
  309. package/lib/components/ContactsBlock/ContactsBlock.js +1 -3
  310. package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  311. package/lib/components/ContentPage/ContentPage.fixture.d.ts +1 -1
  312. package/lib/components/ContentPage/ContentPage.fixture.mobile.d.ts +1 -1
  313. package/lib/components/ContentPage/ContentPage.js +13 -7
  314. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  315. package/lib/components/ErrorBlock/ErrorBlock.fixture.d.ts +1 -1
  316. package/lib/components/ExchangeRateTile/CurrencyTable.js +1 -3
  317. package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  318. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -4
  319. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  320. package/lib/components/ExchangeRateTile/ExchangeRateTile.fixture.d.ts +1 -1
  321. package/lib/components/Footer/Footer.fixture.d.ts +1 -1
  322. package/lib/components/Footer/Footer.fixture.mobile.d.ts +1 -1
  323. package/lib/components/Footer/Footer.js +1 -1
  324. package/lib/components/Footer/Footer.js.map +1 -1
  325. package/lib/components/Footer/Footer.mobile.js +2 -2
  326. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  327. package/lib/components/Gallery/Gallery.fixture.d.ts +1 -1
  328. package/lib/components/Gallery/Gallery.fixture.mobile.d.ts +1 -1
  329. package/lib/components/Gallery/GalleryCardInner.js +2 -4
  330. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  331. package/lib/components/Gallery/GalleryContainer.d.ts +1 -1
  332. package/lib/components/Gallery/GalleryContainer.js +1 -3
  333. package/lib/components/Gallery/GalleryContainer.js.map +1 -1
  334. package/lib/components/Gallery/GalleryInner.js +9 -12
  335. package/lib/components/Gallery/GalleryInner.js.map +1 -1
  336. package/lib/components/GracePeriod/GracePeriod.fixture.d.ts +1 -1
  337. package/lib/components/Header/Header.fixture.d.ts +1 -1
  338. package/lib/components/Header/Header.fixture.mobile.d.ts +1 -1
  339. package/lib/components/Header/Header.js +2 -2
  340. package/lib/components/Header/Header.js.map +1 -1
  341. package/lib/components/Header/Header.mobile.js +2 -3
  342. package/lib/components/Header/Header.mobile.js.map +1 -1
  343. package/lib/components/Header/HeaderSecondaryMenu.d.ts +1 -0
  344. package/lib/components/Header/HeaderSecondaryMenu.js +2 -2
  345. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  346. package/lib/components/Headline/Headline.fixture.d.ts +1 -1
  347. package/lib/components/Headline/Headline.fixture.mobile.d.ts +1 -1
  348. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.d.ts +1 -1
  349. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +24 -26
  350. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  351. package/lib/components/InvestmentGallery/InvestmentGallery.fixture.d.ts +1 -1
  352. package/lib/components/InvestmentGallery/InvestmentGallery.js +10 -20
  353. package/lib/components/InvestmentGallery/InvestmentGallery.js.map +1 -1
  354. package/lib/components/InvestmentInfo/InvestmentInfo.fixture.d.ts +1 -1
  355. package/lib/components/LikeControl/LikeControl.fixture.d.ts +1 -1
  356. package/lib/components/LinkDocs/LinkDocs.fixture.d.ts +1 -1
  357. package/lib/components/LinkDocs/LinkDocs.fixture.mobile.d.ts +1 -1
  358. package/lib/components/LinkList/LinkList.fixture.d.ts +1 -1
  359. package/lib/components/MiniGallery/MiniGallery.fixture.d.ts +1 -1
  360. package/lib/components/MobileAppTile/MobileAppTile.fixture.d.ts +1 -1
  361. package/lib/components/MobileAppTile/MobileAppTile.fixture.mobile.d.ts +1 -1
  362. package/lib/components/MobileAppTile/MobileAppTile.js +4 -4
  363. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  364. package/lib/components/OfficeMap/OfficeMap.fixture.d.ts +1 -1
  365. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.fixture.d.ts +1 -1
  366. package/lib/components/OtherProducts/OtherProducts.fixture.d.ts +3 -2
  367. package/lib/components/OtherProducts/OtherProducts.js +2 -1
  368. package/lib/components/OtherProducts/OtherProducts.js.map +1 -1
  369. package/lib/components/OtherProductsItem/OtherProductsItem.js +5 -4
  370. package/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  371. package/lib/components/PictureText/PictureText.fixture.d.ts +1 -1
  372. package/lib/components/Placeholder/Placeholder.fixture.d.ts +1 -1
  373. package/lib/components/Placeholder/Placeholder.fixture.mobile.d.ts +1 -1
  374. package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +2 -1
  375. package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +1 -1
  376. package/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  377. package/lib/components/ProductBlock/ProductBlockInner.js +2 -2
  378. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  379. package/lib/components/ProductGallery/ProductGallery.fixture.d.ts +1 -1
  380. package/lib/components/ProductTile/ProductTile.fixture.d.ts +1 -1
  381. package/lib/components/PromoTile/PromoTile.fixture.d.ts +1 -1
  382. package/lib/components/Recommendation/Recommendation.fixture.d.ts +1 -1
  383. package/lib/components/Recommendation/Recommendation.js +11 -21
  384. package/lib/components/Recommendation/Recommendation.js.map +1 -1
  385. package/lib/components/RollupItem/RollupItem.js +5 -3
  386. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  387. package/lib/components/SafeDepositRental/SafeDepositRental.fixture.d.ts +1 -1
  388. package/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
  389. package/lib/components/StepsBlock/StepsBlock.fixture.d.ts +1 -1
  390. package/lib/components/StepsBlock/StepsBlock.fixture.mobile.d.ts +1 -1
  391. package/lib/components/StepsBlock/StepsBlock.js +1 -1
  392. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  393. package/lib/components/Tabs/Tabs.fixture.d.ts +1 -1
  394. package/lib/components/TariffsTable/TariffsTable.fixture.d.ts +1 -1
  395. package/lib/components/TariffsTable/TariffsTable.fixture.mobile.d.ts +1 -1
  396. package/lib/components/TariffsTable/TariffsTable.js +12 -14
  397. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  398. package/lib/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  399. package/lib/components/TariffsTable/TariffsTableRow.js +2 -2
  400. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  401. package/lib/components/TextBlock/TextBlock.fixture.d.ts +1 -1
  402. package/lib/components/TextBlock/TextBlock.fixture.mobile.d.ts +1 -1
  403. package/lib/components/Tile/Tile.fixture.d.ts +1 -1
  404. package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +1 -1
  405. package/lib/components/VerticalLayout/VerticalLayout.js +6 -3
  406. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  407. package/lib/components/Video/Video.d.ts +6 -0
  408. package/lib/components/Video/Video.fixture.d.ts +8 -0
  409. package/lib/components/Video/Video.js +10 -0
  410. package/lib/components/Video/Video.js.map +1 -0
  411. package/lib/components/Video/VideoContent.d.ts +8 -0
  412. package/lib/components/Video/VideoContent.js +2 -0
  413. package/lib/components/Video/VideoContent.js.map +1 -0
  414. package/lib/components/Video/getPaddings.d.ts +1 -0
  415. package/lib/components/Video/getPaddings.js +4 -0
  416. package/lib/components/Video/getPaddings.js.map +1 -0
  417. package/lib/hooks/useCarouselControls.d.ts +5 -3
  418. package/lib/hooks/useCarouselControls.js +19 -8
  419. package/lib/hooks/useCarouselControls.js.map +1 -1
  420. package/lib/model/JSXBlock.d.ts +4 -5
  421. package/lib/model/LinkProps.d.ts +1 -0
  422. package/lib/model/Picture.d.ts +8 -2
  423. package/lib/services/sitemap/SitemapProps.d.ts +1 -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/RadioButtonGroup/RadioButtonGroup.fixture.d.ts +1 -1
  438. package/lib/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.d.ts +3 -1
  439. package/lib/ui-kit/SwipeListControl/SwipeListControl.js +6 -3
  440. package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  441. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -12
  442. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  443. package/lib/ui-kit/SwipeListControl/SwipeListControlList.js +2 -2
  444. package/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -1
  445. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +5 -3
  446. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  447. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
  448. package/lib/ui-kit/TopItem/TopItem.fixture.d.ts +1 -1
  449. package/mobile/bundle/BlockRenderer/BlockRendererOptions.d.ts +11 -0
  450. package/mobile/bundle/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
  451. package/mobile/bundle/BlockRenderer/getParentBlockContent.d.ts +2 -0
  452. package/mobile/bundle/BlockRenderer/getParentBlockDef.d.ts +3 -0
  453. package/mobile/bundle/BlockRenderer/renderBlock.d.ts +3 -0
  454. package/mobile/bundle/BlockRenderer/renderBlockList.d.ts +9 -0
  455. package/mobile/bundle/BlockRenderer/renderChildren.d.ts +10 -0
  456. package/mobile/bundle/bundle.umd.js +89 -86
  457. package/mobile/bundle/bundle.umd.min.js +1 -1
  458. package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
  459. package/mobile/bundle/components/Calculator/constants.d.ts +3 -0
  460. package/mobile/bundle/components/Calculator/useDepositCalculatorParams.d.ts +22 -0
  461. package/mobile/bundle/components/Carousel/Carousel.d.ts +1 -0
  462. package/mobile/bundle/components/Carousel/CarouselContainer.d.ts +8 -5
  463. package/mobile/bundle/components/Carousel/CarouselContent.d.ts +5 -8
  464. package/mobile/bundle/components/CarouselCard/CarouselCard.d.ts +0 -2
  465. package/mobile/bundle/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  466. package/mobile/bundle/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
  467. package/mobile/bundle/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
  468. package/mobile/bundle/components/ComparisonTable/TableRow.d.ts +1 -1
  469. package/mobile/bundle/components/ComparisonTable/constants.d.ts +1 -1
  470. package/mobile/bundle/components/Gallery/GalleryContainer.d.ts +1 -1
  471. package/mobile/bundle/components/Header/HeaderSecondaryMenu.d.ts +1 -0
  472. package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  473. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
  474. package/mobile/bundle/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  475. package/mobile/bundle/components/Video/Video.d.ts +6 -0
  476. package/mobile/bundle/components/Video/VideoContent.d.ts +8 -0
  477. package/mobile/bundle/components/Video/getPaddings.d.ts +1 -0
  478. package/mobile/bundle/hooks/useCarouselControls.d.ts +5 -3
  479. package/mobile/bundle/model/JSXBlock.d.ts +4 -5
  480. package/mobile/bundle/model/LinkProps.d.ts +1 -0
  481. package/mobile/bundle/model/Picture.d.ts +8 -2
  482. package/mobile/bundle/services/sitemap/SitemapProps.d.ts +1 -2
  483. package/mobile/bundle/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
  484. package/mobile/bundle/ui-kit/Button/renderArrows.d.ts +6 -4
  485. package/mobile/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
  486. package/mobile/dist/BlockRenderer/BlockRendererOptions.d.ts +11 -0
  487. package/mobile/dist/BlockRenderer/BlockRendererOptions.js +2 -0
  488. package/mobile/dist/BlockRenderer/BlockRendererOptions.js.map +1 -0
  489. package/mobile/dist/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
  490. package/mobile/dist/BlockRenderer/defaultBlockDecorator.js +5 -0
  491. package/mobile/dist/BlockRenderer/defaultBlockDecorator.js.map +1 -0
  492. package/mobile/dist/BlockRenderer/getParentBlockContent.d.ts +2 -0
  493. package/mobile/dist/{model → BlockRenderer}/getParentBlockContent.js +2 -2
  494. package/mobile/dist/BlockRenderer/getParentBlockContent.js.map +1 -0
  495. package/mobile/dist/BlockRenderer/getParentBlockDef.d.ts +3 -0
  496. package/mobile/dist/BlockRenderer/getParentBlockDef.js +7 -0
  497. package/mobile/dist/BlockRenderer/getParentBlockDef.js.map +1 -0
  498. package/mobile/dist/BlockRenderer/renderBlock.d.ts +3 -0
  499. package/mobile/dist/BlockRenderer/renderBlock.js +27 -0
  500. package/mobile/dist/BlockRenderer/renderBlock.js.map +1 -0
  501. package/mobile/dist/BlockRenderer/renderBlockList.d.ts +9 -0
  502. package/mobile/dist/BlockRenderer/renderBlockList.js +14 -0
  503. package/mobile/dist/BlockRenderer/renderBlockList.js.map +1 -0
  504. package/mobile/dist/BlockRenderer/renderChildren.d.ts +10 -0
  505. package/mobile/dist/BlockRenderer/renderChildren.js +13 -0
  506. package/mobile/dist/BlockRenderer/renderChildren.js.map +1 -0
  507. package/mobile/dist/components/Accordion/Accordion.js +2 -1
  508. package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
  509. package/mobile/dist/components/AccordionItem/AccordionItem.js +5 -4
  510. package/mobile/dist/components/AccordionItem/AccordionItem.js.map +1 -1
  511. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +16 -4
  512. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  513. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
  514. package/mobile/dist/components/Calculator/Calculator.js +22 -22
  515. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  516. package/mobile/dist/components/Calculator/CalculatorValueBlock.js +1 -3
  517. package/mobile/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
  518. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +13 -11
  519. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  520. package/mobile/dist/components/Calculator/constants.d.ts +3 -0
  521. package/mobile/dist/components/Calculator/constants.js +10 -1
  522. package/mobile/dist/components/Calculator/constants.js.map +1 -1
  523. package/mobile/dist/components/Calculator/useDepositCalculatorParams.d.ts +22 -0
  524. package/mobile/dist/components/Calculator/useDepositCalculatorParams.js +28 -0
  525. package/mobile/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -0
  526. package/mobile/dist/components/CardTransfer/CardTransfer.js +2 -1
  527. package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  528. package/mobile/dist/components/Carousel/Carousel.d.ts +1 -0
  529. package/mobile/dist/components/Carousel/Carousel.js +16 -14
  530. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  531. package/mobile/dist/components/Carousel/CarouselContainer.d.ts +8 -5
  532. package/mobile/dist/components/Carousel/CarouselContainer.js +8 -5
  533. package/mobile/dist/components/Carousel/CarouselContainer.js.map +1 -1
  534. package/mobile/dist/components/Carousel/CarouselContent.d.ts +5 -8
  535. package/mobile/dist/components/Carousel/CarouselContent.js +0 -3
  536. package/mobile/dist/components/Carousel/CarouselContent.js.map +1 -1
  537. package/mobile/dist/components/CarouselCard/CarouselCard.d.ts +0 -2
  538. package/mobile/dist/components/CarouselCard/CarouselCard.js +4 -11
  539. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  540. package/mobile/dist/components/CarouselLinks/CarouselLinks.js +7 -7
  541. package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  542. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  543. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  544. package/mobile/dist/components/Catalog/Catalog.js +8 -11
  545. package/mobile/dist/components/Catalog/Catalog.js.map +1 -1
  546. package/mobile/dist/components/ComparisonTable/ComparisonTable.js +2 -2
  547. package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  548. package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js +4 -4
  549. package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
  550. package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  551. package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -1
  552. package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
  553. package/mobile/dist/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
  554. package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js +8 -7
  555. package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
  556. package/mobile/dist/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
  557. package/mobile/dist/components/ComparisonTable/TableCarouselContainer.js +1 -1
  558. package/mobile/dist/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
  559. package/mobile/dist/components/ComparisonTable/TableRow.d.ts +1 -1
  560. package/mobile/dist/components/ComparisonTable/TableRow.js +1 -1
  561. package/mobile/dist/components/ComparisonTable/TableRow.js.map +1 -1
  562. package/mobile/dist/components/ComparisonTable/constants.d.ts +1 -1
  563. package/mobile/dist/components/ComparisonTable/constants.js +1 -1
  564. package/mobile/dist/components/ContactsBlock/ContactsBlock.js +1 -3
  565. package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  566. package/mobile/dist/components/ContentPage/ContentPage.js +13 -7
  567. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  568. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +1 -3
  569. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  570. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -3
  571. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  572. package/mobile/dist/components/Footer/Footer.js +2 -2
  573. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  574. package/mobile/dist/components/Gallery/GalleryCardInner.js +2 -4
  575. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  576. package/mobile/dist/components/Gallery/GalleryContainer.d.ts +1 -1
  577. package/mobile/dist/components/Gallery/GalleryContainer.js +1 -3
  578. package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -1
  579. package/mobile/dist/components/Gallery/GalleryInner.js +9 -12
  580. package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
  581. package/mobile/dist/components/Header/Header.js +2 -3
  582. package/mobile/dist/components/Header/Header.js.map +1 -1
  583. package/mobile/dist/components/Header/HeaderSecondaryMenu.d.ts +1 -0
  584. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +2 -2
  585. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  586. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +23 -25
  587. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  588. package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js +10 -20
  589. package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js.map +1 -1
  590. package/mobile/dist/components/OtherProducts/OtherProducts.js +2 -1
  591. package/mobile/dist/components/OtherProducts/OtherProducts.js.map +1 -1
  592. package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js +5 -4
  593. package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  594. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  595. package/mobile/dist/components/Recommendation/Recommendation.js +11 -21
  596. package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -1
  597. package/mobile/dist/components/RollupItem/RollupItem.js +5 -3
  598. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  599. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
  600. package/mobile/dist/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  601. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +2 -2
  602. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  603. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +6 -3
  604. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  605. package/mobile/dist/components/Video/Video.d.ts +6 -0
  606. package/mobile/dist/components/Video/Video.js +12 -0
  607. package/mobile/dist/components/Video/Video.js.map +1 -0
  608. package/mobile/dist/components/Video/VideoContent.d.ts +8 -0
  609. package/mobile/dist/components/Video/VideoContent.js +2 -0
  610. package/mobile/dist/components/Video/VideoContent.js.map +1 -0
  611. package/mobile/dist/components/Video/getPaddings.d.ts +1 -0
  612. package/mobile/dist/components/Video/getPaddings.js +7 -0
  613. package/mobile/dist/components/Video/getPaddings.js.map +1 -0
  614. package/mobile/dist/hooks/useCarouselControls.d.ts +5 -3
  615. package/mobile/dist/hooks/useCarouselControls.js +19 -8
  616. package/mobile/dist/hooks/useCarouselControls.js.map +1 -1
  617. package/mobile/dist/model/JSXBlock.d.ts +4 -5
  618. package/mobile/dist/model/LinkProps.d.ts +1 -0
  619. package/mobile/dist/model/Picture.d.ts +8 -2
  620. package/mobile/dist/services/sitemap/SitemapProps.d.ts +1 -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/SwipeListControl/SwipeListControl.js +5 -2
  630. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  631. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -12
  632. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  633. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js +2 -2
  634. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -1
  635. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +5 -3
  636. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  637. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
  638. package/mobile/lib/BlockRenderer/BlockRendererOptions.d.ts +11 -0
  639. package/mobile/lib/BlockRenderer/BlockRendererOptions.js +2 -0
  640. package/mobile/lib/BlockRenderer/BlockRendererOptions.js.map +1 -0
  641. package/mobile/lib/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
  642. package/mobile/lib/BlockRenderer/defaultBlockDecorator.js +2 -0
  643. package/mobile/lib/BlockRenderer/defaultBlockDecorator.js.map +1 -0
  644. package/mobile/lib/BlockRenderer/getParentBlockContent.d.ts +2 -0
  645. package/mobile/lib/BlockRenderer/getParentBlockContent.js +6 -0
  646. package/mobile/lib/BlockRenderer/getParentBlockContent.js.map +1 -0
  647. package/mobile/lib/BlockRenderer/getParentBlockDef.d.ts +3 -0
  648. package/mobile/lib/BlockRenderer/getParentBlockDef.js +4 -0
  649. package/mobile/lib/BlockRenderer/getParentBlockDef.js.map +1 -0
  650. package/mobile/lib/BlockRenderer/renderBlock.d.ts +3 -0
  651. package/mobile/lib/BlockRenderer/renderBlock.js +24 -0
  652. package/mobile/lib/BlockRenderer/renderBlock.js.map +1 -0
  653. package/mobile/lib/BlockRenderer/renderBlockList.d.ts +9 -0
  654. package/mobile/lib/BlockRenderer/renderBlockList.js +11 -0
  655. package/mobile/lib/BlockRenderer/renderBlockList.js.map +1 -0
  656. package/mobile/lib/BlockRenderer/renderChildren.d.ts +10 -0
  657. package/mobile/lib/BlockRenderer/renderChildren.js +10 -0
  658. package/mobile/lib/BlockRenderer/renderChildren.js.map +1 -0
  659. package/mobile/lib/components/Accordion/Accordion.js +2 -1
  660. package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
  661. package/mobile/lib/components/AccordionItem/AccordionItem.js +5 -4
  662. package/mobile/lib/components/AccordionItem/AccordionItem.js.map +1 -1
  663. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +16 -4
  664. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  665. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
  666. package/mobile/lib/components/Calculator/Calculator.js +23 -23
  667. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  668. package/mobile/lib/components/Calculator/CalculatorValueBlock.js +1 -3
  669. package/mobile/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
  670. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +14 -12
  671. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  672. package/mobile/lib/components/Calculator/constants.d.ts +3 -0
  673. package/mobile/lib/components/Calculator/constants.js +9 -0
  674. package/mobile/lib/components/Calculator/constants.js.map +1 -1
  675. package/mobile/lib/components/Calculator/useDepositCalculatorParams.d.ts +22 -0
  676. package/mobile/lib/components/Calculator/useDepositCalculatorParams.js +25 -0
  677. package/mobile/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -0
  678. package/mobile/lib/components/CardTransfer/CardTransfer.js +3 -2
  679. package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  680. package/mobile/lib/components/Carousel/Carousel.d.ts +1 -0
  681. package/mobile/lib/components/Carousel/Carousel.js +16 -14
  682. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  683. package/mobile/lib/components/Carousel/CarouselContainer.d.ts +8 -5
  684. package/mobile/lib/components/Carousel/CarouselContainer.js +8 -5
  685. package/mobile/lib/components/Carousel/CarouselContainer.js.map +1 -1
  686. package/mobile/lib/components/Carousel/CarouselContent.d.ts +5 -8
  687. package/mobile/lib/components/Carousel/CarouselContent.js +0 -3
  688. package/mobile/lib/components/Carousel/CarouselContent.js.map +1 -1
  689. package/mobile/lib/components/CarouselCard/CarouselCard.d.ts +0 -2
  690. package/mobile/lib/components/CarouselCard/CarouselCard.js +4 -11
  691. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  692. package/mobile/lib/components/CarouselLinks/CarouselLinks.js +7 -7
  693. package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  694. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  695. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  696. package/mobile/lib/components/Catalog/Catalog.js +8 -11
  697. package/mobile/lib/components/Catalog/Catalog.js.map +1 -1
  698. package/mobile/lib/components/ComparisonTable/ComparisonTable.js +2 -2
  699. package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  700. package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js +4 -4
  701. package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
  702. package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  703. package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -1
  704. package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
  705. package/mobile/lib/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
  706. package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js +8 -7
  707. package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
  708. package/mobile/lib/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
  709. package/mobile/lib/components/ComparisonTable/TableCarouselContainer.js +1 -1
  710. package/mobile/lib/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
  711. package/mobile/lib/components/ComparisonTable/TableRow.d.ts +1 -1
  712. package/mobile/lib/components/ComparisonTable/TableRow.js +1 -1
  713. package/mobile/lib/components/ComparisonTable/TableRow.js.map +1 -1
  714. package/mobile/lib/components/ComparisonTable/constants.d.ts +1 -1
  715. package/mobile/lib/components/ComparisonTable/constants.js +1 -1
  716. package/mobile/lib/components/ContactsBlock/ContactsBlock.js +1 -3
  717. package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  718. package/mobile/lib/components/ContentPage/ContentPage.js +13 -7
  719. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  720. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +1 -3
  721. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  722. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -4
  723. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  724. package/mobile/lib/components/Footer/Footer.js +2 -2
  725. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  726. package/mobile/lib/components/Gallery/GalleryCardInner.js +2 -4
  727. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  728. package/mobile/lib/components/Gallery/GalleryContainer.d.ts +1 -1
  729. package/mobile/lib/components/Gallery/GalleryContainer.js +1 -3
  730. package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -1
  731. package/mobile/lib/components/Gallery/GalleryInner.js +9 -12
  732. package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
  733. package/mobile/lib/components/Header/Header.js +2 -3
  734. package/mobile/lib/components/Header/Header.js.map +1 -1
  735. package/mobile/lib/components/Header/HeaderSecondaryMenu.d.ts +1 -0
  736. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +2 -2
  737. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  738. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +24 -26
  739. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  740. package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js +10 -20
  741. package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js.map +1 -1
  742. package/mobile/lib/components/OtherProducts/OtherProducts.js +2 -1
  743. package/mobile/lib/components/OtherProducts/OtherProducts.js.map +1 -1
  744. package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js +5 -4
  745. package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  746. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  747. package/mobile/lib/components/Recommendation/Recommendation.js +11 -21
  748. package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -1
  749. package/mobile/lib/components/RollupItem/RollupItem.js +5 -3
  750. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  751. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
  752. package/mobile/lib/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  753. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +2 -2
  754. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  755. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +6 -3
  756. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  757. package/mobile/lib/components/Video/Video.d.ts +6 -0
  758. package/mobile/lib/components/Video/Video.js +10 -0
  759. package/mobile/lib/components/Video/Video.js.map +1 -0
  760. package/mobile/lib/components/Video/VideoContent.d.ts +8 -0
  761. package/mobile/lib/components/Video/VideoContent.js +2 -0
  762. package/mobile/lib/components/Video/VideoContent.js.map +1 -0
  763. package/mobile/lib/components/Video/getPaddings.d.ts +1 -0
  764. package/mobile/lib/components/Video/getPaddings.js +4 -0
  765. package/mobile/lib/components/Video/getPaddings.js.map +1 -0
  766. package/mobile/lib/hooks/useCarouselControls.d.ts +5 -3
  767. package/mobile/lib/hooks/useCarouselControls.js +19 -8
  768. package/mobile/lib/hooks/useCarouselControls.js.map +1 -1
  769. package/mobile/lib/model/JSXBlock.d.ts +4 -5
  770. package/mobile/lib/model/LinkProps.d.ts +1 -0
  771. package/mobile/lib/model/Picture.d.ts +8 -2
  772. package/mobile/lib/services/sitemap/SitemapProps.d.ts +1 -2
  773. package/mobile/lib/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
  774. package/mobile/lib/{react/setup-fixture.js → setup-fixture.js} +4 -4
  775. package/mobile/lib/setup-fixture.js.map +1 -0
  776. package/mobile/lib/ui-kit/Button/renderArrows.d.ts +6 -4
  777. package/mobile/lib/ui-kit/Button/renderArrows.js +3 -2
  778. package/mobile/lib/ui-kit/Button/renderArrows.js.map +1 -1
  779. package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js +9 -10
  780. package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  781. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +6 -3
  782. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  783. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -12
  784. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  785. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js +2 -2
  786. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -1
  787. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +5 -3
  788. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  789. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
  790. package/mobile/src/BlockRenderer/BlockRendererOptions.ts +12 -0
  791. package/mobile/src/BlockRenderer/defaultBlockDecorator.ts +4 -0
  792. package/mobile/src/{model → BlockRenderer}/getParentBlockContent.ts +3 -3
  793. package/mobile/src/BlockRenderer/getParentBlockDef.ts +6 -0
  794. package/mobile/src/BlockRenderer/renderBlock.tsx +47 -0
  795. package/mobile/src/BlockRenderer/renderBlockList.tsx +33 -0
  796. package/mobile/src/BlockRenderer/renderChildren.ts +25 -0
  797. package/mobile/src/components/Accordion/Accordion.tsx +3 -2
  798. package/mobile/src/components/AccordionItem/AccordionItem.tsx +5 -4
  799. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -0
  800. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +31 -18
  801. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +6 -3
  802. package/mobile/src/components/Calculator/Calculator.tsx +32 -33
  803. package/mobile/src/components/Calculator/CalculatorValueBlock.tsx +10 -12
  804. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +17 -22
  805. package/mobile/src/components/Calculator/constants.ts +11 -0
  806. package/mobile/src/components/Calculator/useDepositCalculatorParams.ts +64 -0
  807. package/mobile/src/components/CardTransfer/CardTransfer.tsx +3 -2
  808. package/mobile/src/components/Carousel/Carousel.example.json +2 -2
  809. package/mobile/src/components/Carousel/Carousel.tsx +29 -40
  810. package/mobile/src/components/Carousel/CarouselContainer.tsx +19 -12
  811. package/mobile/src/components/Carousel/CarouselContent.ts +5 -9
  812. package/mobile/src/components/CarouselCard/CarouselCard.tsx +22 -34
  813. package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +24 -24
  814. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +3 -3
  815. package/mobile/src/components/Catalog/Catalog.tsx +8 -13
  816. package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +2 -2
  817. package/mobile/src/components/ComparisonTable/ComparisonTableBody.tsx +6 -7
  818. package/mobile/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +3 -3
  819. package/mobile/src/components/ComparisonTable/ComparisonTableRows.tsx +10 -14
  820. package/mobile/src/components/ComparisonTable/TableCarouselContainer.tsx +3 -3
  821. package/mobile/src/components/ComparisonTable/TableRow.tsx +3 -3
  822. package/mobile/src/components/ComparisonTable/constants.ts +1 -1
  823. package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +6 -8
  824. package/mobile/src/components/ContentPage/ContentPage.tsx +21 -20
  825. package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +12 -14
  826. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +5 -4
  827. package/mobile/src/components/Footer/Footer.tsx +3 -3
  828. package/mobile/src/components/Gallery/GalleryCardInner.tsx +12 -14
  829. package/mobile/src/components/Gallery/GalleryContainer.tsx +14 -16
  830. package/mobile/src/components/Gallery/GalleryInner.tsx +9 -22
  831. package/mobile/src/components/Header/Header.tsx +3 -4
  832. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +12 -9
  833. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +29 -42
  834. package/mobile/src/components/InvestmentGallery/InvestmentGallery.tsx +12 -34
  835. package/mobile/src/components/OtherProducts/OtherProducts.tsx +3 -2
  836. package/mobile/src/components/OtherProductsItem/OtherProductsItem.tsx +6 -5
  837. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +3 -1
  838. package/mobile/src/components/Recommendation/Recommendation.tsx +12 -36
  839. package/mobile/src/components/RollupItem/RollupItem.tsx +9 -7
  840. package/mobile/src/components/SafeDepositRental/SafeDepositRentalContent.ts +1 -5
  841. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +3 -3
  842. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +7 -4
  843. package/mobile/src/components/Video/Video.tsx +29 -0
  844. package/mobile/src/components/Video/Video.ui.json +12 -0
  845. package/mobile/src/components/Video/VideoContent.ts +9 -0
  846. package/mobile/src/components/Video/getPaddings.ts +6 -0
  847. package/mobile/src/hooks/useCarouselControls.ts +33 -19
  848. package/mobile/src/model/JSXBlock.ts +4 -5
  849. package/mobile/src/model/LinkProps.ts +1 -0
  850. package/mobile/src/model/Picture.ts +8 -2
  851. package/mobile/src/services/sitemap/SitemapProps.ts +1 -2
  852. package/{src/react → mobile/src}/setup-fixture.ts +4 -4
  853. package/mobile/src/ui-kit/Button/renderArrows.tsx +22 -17
  854. package/mobile/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +9 -13
  855. package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +35 -28
  856. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +32 -27
  857. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +10 -8
  858. package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +5 -3
  859. package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +2 -1
  860. package/package.json +1 -1
  861. package/src/BlockRenderer/BlockRendererOptions.ts +12 -0
  862. package/src/BlockRenderer/defaultBlockDecorator.ts +4 -0
  863. package/src/{model → BlockRenderer}/getParentBlockContent.ts +3 -3
  864. package/src/BlockRenderer/getParentBlockDef.ts +6 -0
  865. package/src/BlockRenderer/renderBlock.tsx +47 -0
  866. package/src/BlockRenderer/renderBlockList.tsx +33 -0
  867. package/src/BlockRenderer/renderChildren.ts +25 -0
  868. package/src/components/Accordion/Accordion.fixture.mobile.tsx +40 -55
  869. package/src/components/Accordion/Accordion.fixture.tsx +79 -52
  870. package/src/components/Accordion/Accordion.mobile.tsx +3 -2
  871. package/src/components/Accordion/Accordion.tsx +3 -2
  872. package/src/components/AccordionItem/AccordionItem.fixture.mobile.tsx +13 -2
  873. package/src/components/AccordionItem/AccordionItem.fixture.tsx +12 -1
  874. package/src/components/AccordionItem/AccordionItem.mobile.tsx +5 -4
  875. package/src/components/AccordionItem/AccordionItem.tsx +3 -2
  876. package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +1 -1
  877. package/src/components/Blocks.ts +3 -1
  878. package/src/components/Bonus/Bonus.fixture.tsx +1 -1
  879. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -0
  880. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.tsx +12 -1
  881. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +31 -18
  882. package/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +6 -3
  883. package/src/components/BusinessBlock/BusinessBlock.fixture.tsx +1 -1
  884. package/src/components/Calculator/Calculator.fixture.tsx +1 -6
  885. package/src/components/Calculator/Calculator.tsx +32 -33
  886. package/src/components/Calculator/CalculatorValueBlock.tsx +10 -12
  887. package/src/components/Calculator/DepositCalculatorForm.tsx +17 -22
  888. package/src/components/Calculator/constants.ts +11 -0
  889. package/src/components/Calculator/useDepositCalculatorParams.ts +64 -0
  890. package/src/components/CardTransfer/CardTransfer.fixture.tsx +1 -1
  891. package/src/components/CardTransfer/CardTransfer.tsx +3 -2
  892. package/src/components/Carousel/Carousel.example.json +2 -2
  893. package/src/components/Carousel/Carousel.fixture.tsx +38 -45
  894. package/src/components/Carousel/Carousel.tsx +29 -40
  895. package/src/components/Carousel/CarouselContainer.tsx +19 -12
  896. package/src/components/Carousel/CarouselContent.ts +5 -9
  897. package/src/components/CarouselCard/CarouselCard.fixture.tsx +9 -4
  898. package/src/components/CarouselCard/CarouselCard.tsx +22 -34
  899. package/src/components/CarouselLinks/CarouselLinks.tsx +24 -24
  900. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +3 -3
  901. package/src/components/Catalog/Catalog.fixture.tsx +1 -1
  902. package/src/components/Catalog/Catalog.tsx +8 -13
  903. package/src/components/ComparisonTable/ComparisonTable.fixture.mobile.tsx +1 -1
  904. package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +2 -2
  905. package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +2 -2
  906. package/src/components/ComparisonTable/ComparisonTableBody.tsx +6 -7
  907. package/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +3 -3
  908. package/src/components/ComparisonTable/ComparisonTableRows.tsx +10 -14
  909. package/src/components/ComparisonTable/TableCarouselContainer.tsx +3 -3
  910. package/src/components/ComparisonTable/TableRow.tsx +3 -3
  911. package/src/components/ComparisonTable/constants.ts +1 -1
  912. package/src/components/ContactsBlock/ContactsBlock.fixture.tsx +1 -1
  913. package/src/components/ContactsBlock/ContactsBlock.tsx +6 -8
  914. package/src/components/ContentPage/ContentPage.fixture.mobile.tsx +1 -1
  915. package/src/components/ContentPage/ContentPage.fixture.tsx +1 -1
  916. package/src/components/ContentPage/ContentPage.tsx +21 -20
  917. package/src/components/ErrorBlock/ErrorBlock.fixture.tsx +1 -1
  918. package/src/components/ExchangeRateTile/CurrencyTable.tsx +12 -14
  919. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +5 -4
  920. package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +1 -1
  921. package/src/components/Footer/Footer.fixture.mobile.tsx +1 -1
  922. package/src/components/Footer/Footer.fixture.tsx +1 -1
  923. package/src/components/Footer/Footer.mobile.tsx +3 -3
  924. package/src/components/Footer/Footer.tsx +1 -1
  925. package/src/components/Gallery/Gallery.fixture.mobile.tsx +1 -1
  926. package/src/components/Gallery/Gallery.fixture.tsx +1 -1
  927. package/src/components/Gallery/GalleryCardInner.tsx +12 -14
  928. package/src/components/Gallery/GalleryContainer.tsx +14 -16
  929. package/src/components/Gallery/GalleryInner.tsx +9 -22
  930. package/src/components/GracePeriod/GracePeriod.fixture.tsx +1 -1
  931. package/src/components/Header/Header.fixture.mobile.tsx +1 -1
  932. package/src/components/Header/Header.fixture.tsx +1 -1
  933. package/src/components/Header/Header.mobile.tsx +3 -4
  934. package/src/components/Header/Header.tsx +3 -2
  935. package/src/components/Header/HeaderSecondaryMenu.tsx +12 -9
  936. package/src/components/Headline/Headline.fixture.mobile.tsx +1 -1
  937. package/src/components/Headline/Headline.fixture.tsx +1 -1
  938. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +1 -1
  939. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +29 -42
  940. package/src/components/InvestmentGallery/InvestmentGallery.fixture.tsx +1 -1
  941. package/src/components/InvestmentGallery/InvestmentGallery.tsx +12 -34
  942. package/src/components/InvestmentInfo/InvestmentInfo.fixture.tsx +1 -1
  943. package/src/components/LikeControl/LikeControl.fixture.tsx +1 -1
  944. package/src/components/LinkDocs/LinkDocs.fixture.mobile.tsx +1 -1
  945. package/src/components/LinkDocs/LinkDocs.fixture.tsx +1 -1
  946. package/src/components/LinkList/LinkList.fixture.tsx +1 -1
  947. package/src/components/MiniGallery/MiniGallery.fixture.tsx +1 -1
  948. package/src/components/MobileAppTile/MobileAppTile.fixture.mobile.tsx +1 -1
  949. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +1 -1
  950. package/src/components/MobileAppTile/MobileAppTile.tsx +5 -5
  951. package/src/components/OfficeMap/OfficeMap.fixture.tsx +1 -1
  952. package/src/components/OfficeServicesBlock/OfficeServicesBlock.fixture.tsx +1 -1
  953. package/src/components/OtherProducts/OtherProducts.fixture.tsx +86 -76
  954. package/src/components/OtherProducts/OtherProducts.tsx +3 -2
  955. package/src/components/OtherProductsItem/OtherProductsItem.fixture.tsx +16 -1
  956. package/src/components/OtherProductsItem/OtherProductsItem.tsx +6 -5
  957. package/src/components/PictureText/PictureText.fixture.tsx +1 -1
  958. package/src/components/Placeholder/Placeholder.fixture.mobile.tsx +1 -1
  959. package/src/components/Placeholder/Placeholder.fixture.tsx +1 -1
  960. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +1 -1
  961. package/src/components/ProductBlock/ProductBlock.fixture.tsx +13 -1
  962. package/src/components/ProductBlock/ProductBlockContent.ts +3 -1
  963. package/src/components/ProductBlock/ProductBlockInner.tsx +26 -22
  964. package/src/components/ProductGallery/ProductGallery.fixture.tsx +1 -1
  965. package/src/components/ProductTile/ProductTile.fixture.tsx +1 -1
  966. package/src/components/PromoTile/PromoTile.fixture.tsx +1 -1
  967. package/src/components/Recommendation/Recommendation.fixture.tsx +1 -1
  968. package/src/components/Recommendation/Recommendation.tsx +12 -36
  969. package/src/components/RollupItem/RollupItem.fixture.tsx +44 -11
  970. package/src/components/RollupItem/RollupItem.tsx +9 -7
  971. package/src/components/SafeDepositRental/SafeDepositRental.fixture.tsx +1 -1
  972. package/src/components/SafeDepositRental/SafeDepositRentalContent.ts +1 -5
  973. package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +1 -1
  974. package/src/components/StepsBlock/StepsBlock.fixture.tsx +1 -1
  975. package/src/components/StepsBlock/StepsBlock.tsx +1 -1
  976. package/src/components/Tabs/Tabs.fixture.tsx +1 -1
  977. package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +1 -1
  978. package/src/components/TariffsTable/TariffsTable.fixture.tsx +1 -1
  979. package/src/components/TariffsTable/TariffsTable.tsx +21 -38
  980. package/src/components/TariffsTable/TariffsTableRow.tsx +3 -3
  981. package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +1 -1
  982. package/src/components/TextBlock/TextBlock.fixture.tsx +1 -1
  983. package/src/components/Tile/Tile.fixture.tsx +1 -1
  984. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +126 -47
  985. package/src/components/VerticalLayout/VerticalLayout.tsx +7 -4
  986. package/src/components/Video/Video.fixture.tsx +33 -0
  987. package/src/components/Video/Video.tsx +29 -0
  988. package/src/components/Video/Video.ui.json +12 -0
  989. package/src/components/Video/VideoContent.ts +9 -0
  990. package/src/components/Video/getPaddings.ts +6 -0
  991. package/src/hooks/useCarouselControls.ts +33 -19
  992. package/src/model/JSXBlock.ts +4 -5
  993. package/src/model/LinkProps.ts +1 -0
  994. package/src/model/Picture.ts +8 -2
  995. package/src/services/sitemap/SitemapProps.ts +1 -2
  996. package/{mobile/src/react → src}/setup-fixture.ts +4 -4
  997. package/src/ui-kit/Button/Button.fixture.tsx +1 -1
  998. package/src/ui-kit/Button/renderArrows.tsx +22 -17
  999. package/src/ui-kit/HeaderItem/HeaderItem.fixture.tsx +1 -1
  1000. package/src/ui-kit/Icon/Icon.fixture.tsx +1 -1
  1001. package/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +9 -13
  1002. package/src/ui-kit/List/List.fixture.tsx +1 -1
  1003. package/src/ui-kit/Logo/Logo.fixture.tsx +1 -1
  1004. package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.tsx +1 -1
  1005. package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +24 -8
  1006. package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +35 -28
  1007. package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +32 -27
  1008. package/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +10 -8
  1009. package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +5 -3
  1010. package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +2 -1
  1011. package/src/ui-kit/TopItem/TopItem.fixture.tsx +1 -1
  1012. package/bundle/components/Carousel/CarouselNavButtons.d.ts +0 -11
  1013. package/bundle/components/ContentPage/renderBlock.d.ts +0 -15
  1014. package/bundle/components/ContentPage/renderBlockList.d.ts +0 -14
  1015. package/bundle/components/ContentPage/renderSlots.d.ts +0 -12
  1016. package/bundle/model/getParentBlockContent.d.ts +0 -2
  1017. package/bundle/model/getParentBlockDef.d.ts +0 -3
  1018. package/bundle/utils/sliceArray.d.ts +0 -1
  1019. package/dist/components/Carousel/CarouselNavButtons.d.ts +0 -11
  1020. package/dist/components/Carousel/CarouselNavButtons.js +0 -36
  1021. package/dist/components/Carousel/CarouselNavButtons.js.map +0 -1
  1022. package/dist/components/ContentPage/renderBlock.d.ts +0 -15
  1023. package/dist/components/ContentPage/renderBlock.js +0 -29
  1024. package/dist/components/ContentPage/renderBlock.js.map +0 -1
  1025. package/dist/components/ContentPage/renderBlockList.d.ts +0 -14
  1026. package/dist/components/ContentPage/renderBlockList.js +0 -11
  1027. package/dist/components/ContentPage/renderBlockList.js.map +0 -1
  1028. package/dist/components/ContentPage/renderSlots.d.ts +0 -12
  1029. package/dist/components/ContentPage/renderSlots.js +0 -15
  1030. package/dist/components/ContentPage/renderSlots.js.map +0 -1
  1031. package/dist/model/getParentBlockContent.d.ts +0 -2
  1032. package/dist/model/getParentBlockContent.js.map +0 -1
  1033. package/dist/model/getParentBlockDef.d.ts +0 -3
  1034. package/dist/model/getParentBlockDef.js +0 -11
  1035. package/dist/model/getParentBlockDef.js.map +0 -1
  1036. package/dist/react/setup-fixture.js.map +0 -1
  1037. package/dist/utils/sliceArray.d.ts +0 -1
  1038. package/dist/utils/sliceArray.js +0 -15
  1039. package/dist/utils/sliceArray.js.map +0 -1
  1040. package/lib/components/Carousel/CarouselNavButtons.d.ts +0 -11
  1041. package/lib/components/Carousel/CarouselNavButtons.js +0 -34
  1042. package/lib/components/Carousel/CarouselNavButtons.js.map +0 -1
  1043. package/lib/components/ContentPage/renderBlock.d.ts +0 -15
  1044. package/lib/components/ContentPage/renderBlock.js +0 -26
  1045. package/lib/components/ContentPage/renderBlock.js.map +0 -1
  1046. package/lib/components/ContentPage/renderBlockList.d.ts +0 -14
  1047. package/lib/components/ContentPage/renderBlockList.js +0 -8
  1048. package/lib/components/ContentPage/renderBlockList.js.map +0 -1
  1049. package/lib/components/ContentPage/renderSlots.d.ts +0 -12
  1050. package/lib/components/ContentPage/renderSlots.js +0 -12
  1051. package/lib/components/ContentPage/renderSlots.js.map +0 -1
  1052. package/lib/model/getParentBlockContent.d.ts +0 -2
  1053. package/lib/model/getParentBlockContent.js +0 -6
  1054. package/lib/model/getParentBlockContent.js.map +0 -1
  1055. package/lib/model/getParentBlockDef.d.ts +0 -3
  1056. package/lib/model/getParentBlockDef.js +0 -8
  1057. package/lib/model/getParentBlockDef.js.map +0 -1
  1058. package/lib/react/setup-fixture.js.map +0 -1
  1059. package/lib/utils/sliceArray.d.ts +0 -1
  1060. package/lib/utils/sliceArray.js +0 -12
  1061. package/lib/utils/sliceArray.js.map +0 -1
  1062. package/mobile/bundle/components/Carousel/CarouselNavButtons.d.ts +0 -11
  1063. package/mobile/bundle/components/ContentPage/renderBlock.d.ts +0 -15
  1064. package/mobile/bundle/components/ContentPage/renderBlockList.d.ts +0 -14
  1065. package/mobile/bundle/components/ContentPage/renderSlots.d.ts +0 -12
  1066. package/mobile/bundle/model/getParentBlockContent.d.ts +0 -2
  1067. package/mobile/bundle/model/getParentBlockDef.d.ts +0 -3
  1068. package/mobile/bundle/utils/sliceArray.d.ts +0 -1
  1069. package/mobile/dist/components/Carousel/CarouselNavButtons.d.ts +0 -11
  1070. package/mobile/dist/components/Carousel/CarouselNavButtons.js +0 -36
  1071. package/mobile/dist/components/Carousel/CarouselNavButtons.js.map +0 -1
  1072. package/mobile/dist/components/ContentPage/renderBlock.d.ts +0 -15
  1073. package/mobile/dist/components/ContentPage/renderBlock.js +0 -29
  1074. package/mobile/dist/components/ContentPage/renderBlock.js.map +0 -1
  1075. package/mobile/dist/components/ContentPage/renderBlockList.d.ts +0 -14
  1076. package/mobile/dist/components/ContentPage/renderBlockList.js +0 -11
  1077. package/mobile/dist/components/ContentPage/renderBlockList.js.map +0 -1
  1078. package/mobile/dist/components/ContentPage/renderSlots.d.ts +0 -12
  1079. package/mobile/dist/components/ContentPage/renderSlots.js +0 -15
  1080. package/mobile/dist/components/ContentPage/renderSlots.js.map +0 -1
  1081. package/mobile/dist/model/getParentBlockContent.d.ts +0 -2
  1082. package/mobile/dist/model/getParentBlockContent.js.map +0 -1
  1083. package/mobile/dist/model/getParentBlockDef.d.ts +0 -3
  1084. package/mobile/dist/model/getParentBlockDef.js +0 -11
  1085. package/mobile/dist/model/getParentBlockDef.js.map +0 -1
  1086. package/mobile/dist/react/setup-fixture.js.map +0 -1
  1087. package/mobile/dist/utils/sliceArray.d.ts +0 -1
  1088. package/mobile/dist/utils/sliceArray.js +0 -15
  1089. package/mobile/dist/utils/sliceArray.js.map +0 -1
  1090. package/mobile/lib/components/Carousel/CarouselNavButtons.d.ts +0 -11
  1091. package/mobile/lib/components/Carousel/CarouselNavButtons.js +0 -34
  1092. package/mobile/lib/components/Carousel/CarouselNavButtons.js.map +0 -1
  1093. package/mobile/lib/components/ContentPage/renderBlock.d.ts +0 -15
  1094. package/mobile/lib/components/ContentPage/renderBlock.js +0 -26
  1095. package/mobile/lib/components/ContentPage/renderBlock.js.map +0 -1
  1096. package/mobile/lib/components/ContentPage/renderBlockList.d.ts +0 -14
  1097. package/mobile/lib/components/ContentPage/renderBlockList.js +0 -8
  1098. package/mobile/lib/components/ContentPage/renderBlockList.js.map +0 -1
  1099. package/mobile/lib/components/ContentPage/renderSlots.d.ts +0 -12
  1100. package/mobile/lib/components/ContentPage/renderSlots.js +0 -12
  1101. package/mobile/lib/components/ContentPage/renderSlots.js.map +0 -1
  1102. package/mobile/lib/model/getParentBlockContent.d.ts +0 -2
  1103. package/mobile/lib/model/getParentBlockContent.js +0 -6
  1104. package/mobile/lib/model/getParentBlockContent.js.map +0 -1
  1105. package/mobile/lib/model/getParentBlockDef.d.ts +0 -3
  1106. package/mobile/lib/model/getParentBlockDef.js +0 -8
  1107. package/mobile/lib/model/getParentBlockDef.js.map +0 -1
  1108. package/mobile/lib/react/setup-fixture.js.map +0 -1
  1109. package/mobile/lib/utils/sliceArray.d.ts +0 -1
  1110. package/mobile/lib/utils/sliceArray.js +0 -12
  1111. package/mobile/lib/utils/sliceArray.js.map +0 -1
  1112. package/mobile/src/components/Carousel/CarouselNavButtons.tsx +0 -51
  1113. package/mobile/src/components/ContentPage/renderBlock.tsx +0 -61
  1114. package/mobile/src/components/ContentPage/renderBlockList.tsx +0 -28
  1115. package/mobile/src/components/ContentPage/renderSlots.tsx +0 -32
  1116. package/mobile/src/model/getParentBlockDef.ts +0 -12
  1117. package/mobile/src/utils/sliceArray.ts +0 -15
  1118. package/src/components/Carousel/CarouselNavButtons.tsx +0 -51
  1119. package/src/components/ContentPage/renderBlock.tsx +0 -61
  1120. package/src/components/ContentPage/renderBlockList.tsx +0 -28
  1121. package/src/components/ContentPage/renderSlots.tsx +0 -32
  1122. package/src/model/.CarouselCardVersion.ts.icloud +0 -0
  1123. package/src/model/getParentBlockDef.ts +0 -12
  1124. package/src/utils/sliceArray.ts +0 -15
@@ -21,9 +21,15 @@ export declare type ImgAlignment = 'northwest' | 'north' | 'northeast' | 'west'
21
21
  export interface Img {
22
22
  /** @title Картинка */
23
23
  src?: string;
24
- /** @title Альтернативный текст (alt) */
24
+ /**
25
+ * @title Альтернативный текст (alt)
26
+ * @default ""
27
+ */
25
28
  alt?: string;
26
- /** @title Текст подсказки (title) */
29
+ /**
30
+ * @title Текст подсказки (title)
31
+ * @default ""
32
+ */
27
33
  title?: string;
28
34
  }
29
35
  /**
@@ -17,13 +17,12 @@ export interface DispositionItem extends LinkProps {
17
17
  icon?: Picture;
18
18
  }
19
19
  export interface SitemapDataProps {
20
- /** @title Основное меню */
21
20
  topItems?: TopMenuItem[];
22
- /** @title Дополнительное меню */
23
21
  dispositions?: DispositionItem[];
24
22
  logo?: {
25
23
  image?: Picture;
26
24
  title?: string;
27
25
  };
28
26
  defaultLocation?: string;
27
+ officesLink?: string;
29
28
  }
@@ -1,9 +1,9 @@
1
1
  import '@redneckz/uni-jsx/lib/setup.react';
2
2
  import { useState } from 'react';
3
- import { handlerDecorator } from '../hooks/handlerDecorator.js';
4
- import { useRouter } from '../hooks/useRouter.js';
5
- import { projectSettings } from '../ProjectSettings.js';
6
- import wlc from '../wlc.json.js';
3
+ import { handlerDecorator } from './hooks/handlerDecorator.js';
4
+ import { useRouter } from './hooks/useRouter.js';
5
+ import { projectSettings } from './ProjectSettings.js';
6
+ import wlc from './wlc.json.js';
7
7
  projectSettings.setup(wlc);
8
8
  useRouter.setup(() => {
9
9
  const [href, setHref] = useState(globalThis.location.href);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup-fixture.js","sourceRoot":"","sources":["../src/setup-fixture.ts"],"names":[],"mappings":"AAAA,OAAO,mCAAmC,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,GAAG,MAAM,YAAY,CAAC;AAE7B,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AAE3B,SAAS,CAAC,KAAK,CAAC,GAAG,EAAE;IACnB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAS,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAEnE,OAAO;QACL,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,UAAU;QACpB,KAAK,EAAE,EAAE;QACT,IAAI,EAAE,CAAC,GAAW,EAAE,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;YAC5C,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACpC,CAAC;QACD,OAAO,EAAE,CAAC,GAAW,EAAE,EAAE;YACvB,UAAU,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;YAC/C,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACpC,CAAC;KACF,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,gBAAgB,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,aAAa,EAAO,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE;IAC7D,EAAE,CAAC,cAAc,EAAE,CAAC;IACpB,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,EAAE,aAAa,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,CAAC,CAAC;AACd,CAAC,CAAC,CAAC"}
@@ -1,9 +1,11 @@
1
1
  /// <reference types="react" />
2
- export declare type renderArrowsProps = {
3
- handler: [() => void, () => void];
4
- isShown: [boolean, boolean];
2
+ export declare type RenderArrowsProps = {
3
+ dec: () => void;
4
+ inc: () => void;
5
+ canInc: boolean;
6
+ canDec: boolean;
5
7
  btnClass: [string, string];
6
8
  className?: string;
7
9
  isDisabled?: boolean;
8
10
  };
9
- export declare function renderArrows({ handler, isShown, btnClass, className, isDisabled, }: renderArrowsProps): JSX.Element;
11
+ export declare function renderArrows({ dec, inc, canDec, canInc, btnClass, className, }: RenderArrowsProps): JSX.Element | null;
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { ArrowButton } from './ArrowButton.js';
3
- export function renderArrows({ handler, isShown, btnClass, className = '', isDisabled = false, }) {
4
- return (_jsxs("div", { children: [isShown[0] || isDisabled ? (_jsx(ArrowButton, { className: `absolute z-10 ${btnClass[0]} ${className}`, onClick: handler[0], ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left", disabled: !isShown[0] })) : null, isShown[1] || isDisabled ? (_jsx(ArrowButton, { className: `absolute z-10 rotate-180 ${btnClass[1]} ${className}`, onClick: handler[1], ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right", disabled: !isShown[1] })) : null] }));
3
+ export function renderArrows({ dec, inc, canDec, canInc, btnClass, className = '', }) {
4
+ const isVisible = canDec || canInc;
5
+ return isVisible ? (_jsxs("div", { children: [canDec ? (_jsx(ArrowButton, { className: `absolute z-50 ${btnClass[0]} ${className}`, onClick: dec, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left", disabled: !canDec })) : null, canInc ? (_jsx(ArrowButton, { className: `absolute z-50 rotate-180 ${btnClass[1]} ${className}`, onClick: inc, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right", disabled: !canInc })) : null] })) : null;
5
6
  }
6
7
  //# sourceMappingURL=renderArrows.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderArrows.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/renderArrows.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAU5C,MAAM,UAAU,YAAY,CAAC,EAC3B,OAAO,EACP,OAAO,EACP,QAAQ,EACR,SAAS,GAAG,EAAE,EACd,UAAU,GAAG,KAAK,GACA;IAClB,OAAO,CACL,0BACG,OAAO,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,CAC1B,KAAC,WAAW,IACV,SAAS,EAAE,iBAAiB,QAAQ,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SAAS,EAAE,EACjE,OAAO,EAAE,GAAG,EACZ,SAAS,EAAC,mGAAmB,wBACV,cAAc,EACjC,QAAQ,EAAE,CAAC,MAAM,GACjB,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC"}
@@ -1,19 +1,18 @@
1
1
  import { jsxs as _jsxs, jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
- import { useState } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { useCarouselControls } from '../../hooks/useCarouselControls.js';
4
4
  import { renderArrows } from '../Button/renderArrows.js';
5
5
  const COLUMN_WIDTH = 140;
6
6
  export const InnerTableBodyItem = JSX(({ rows }) => {
7
- const [activeColumnIndex, setActiveColumnIndex] = useState(0);
8
- const handleNextClick = () => setActiveColumnIndex(activeColumnIndex + 1);
9
- const handlePrevClick = () => setActiveColumnIndex(activeColumnIndex - 1);
10
7
  const rowsLength = rows?.[0]?.length ?? 0;
11
- const showNextButton = rowsLength > 3 && rowsLength > activeColumnIndex + 4;
12
- const showPrevButton = activeColumnIndex > 0;
13
- return (_jsxs("div", { children: [rows?.map(renderRow(activeColumnIndex)), renderArrows({
14
- handler: [handlePrevClick, handleNextClick],
15
- isShown: [showPrevButton, showNextButton],
16
- btnClass: ['right-3 top-24', 'right-3 top-2'],
8
+ const CARD_VIEW_COUNT = 5;
9
+ const [activeIndex, controls] = useCarouselControls({
10
+ itemCount: rowsLength,
11
+ visibleItemCount: CARD_VIEW_COUNT,
12
+ });
13
+ return (_jsxs("div", { children: [rows?.map(renderRow(activeIndex)), renderArrows({
14
+ ...controls,
15
+ btnClass: ['left-3 top-20', 'right-3 top-20'],
17
16
  className: '',
18
17
  })] }));
19
18
  });
@@ -1 +1 @@
1
- {"version":3,"file":"InnerTableBodyItem.js","sourceRoot":"","sources":["../../../src/ui-kit/InnerTable/InnerTableBodyItem.tsx"],"names":[],"mappings":";A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AAS,EAAE,eAAe,SAAS,KAAK;qBACzC,YAEA,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,eAEE,SAAS,EAAC,sEAAsE,aAE/E,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,cAAK,SAAS,EAAC,oBAAoB,YAAE,CAAC,CAAC,IAAI,GAAO,CAAC,CAAC,CAAC,IAAI,EACnE,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,IAAI,KAJlD,MAAM,CAAC,EAAE,CAKV,CACP,CAAC,GACE,GACF,KAzBD,MAAM,CAAC,MAAM,CAAC,CA0Bf,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,IAAc,EAAE,QAAgB,EAAE,EAAE,CACtD,IAAI,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CACjB,cAAK,SAAS,EAAE,QAAQ,QAAQ,IAAI,QAAQ,KAAK,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,YAAY,YACxF,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,cAAqB,SAAS,EAAE,kCAAkC,YAC/D,IAAI,IADG,MAAM,CAAC,CAAC,CAAC,CAEb,CACP,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
- import { useState } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
4
4
  import { DEFAULT_GAP, DEFAULT_PADDING } from './constants.js';
5
5
  import { SwipeListControlDots } from './SwipeListControlDots.js';
6
6
  import { SwipeListControlList } from './SwipeListControlList.js';
@@ -15,8 +15,11 @@ export const SwipeListControl = JSX(({ className, gap = DEFAULT_GAP, padding = D
15
15
  showDots,
16
16
  children,
17
17
  };
18
- const handleScroll = (e) => {
18
+ const handleScroll = useCallback((e) => {
19
19
  const { scrollLeft, clientWidth, childElementCount, scrollWidth, children: childrenCollection, } = e?.currentTarget;
20
+ if (!childrenCollection[0]) {
21
+ return;
22
+ }
20
23
  // horizontal PADDING / 2 to compensate padding-margin combo of child container
21
24
  // without CSS calc function, as wrapper element gets bigger in the DOM, remaining same visually
22
25
  const itemWidth = childrenCollection[0].offsetWidth - padding / 2;
@@ -34,7 +37,7 @@ export const SwipeListControl = JSX(({ className, gap = DEFAULT_GAP, padding = D
34
37
  }
35
38
  setActiveIndex(index);
36
39
  setIndexFraction(fraction);
37
- };
40
+ }, [gap, padding, activeIndex, onSlideChange]);
38
41
  return (_jsxs("div", { className: className, children: [_jsx(SwipeListControlList, { gap: gap, padding: padding, activeIndex: activeIndex, onScroll: handleScroll, children: children }), _jsx(SwipeListControlDots, { ...dotsProps })] }));
39
42
  });
40
43
  //# sourceMappingURL=SwipeListControl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwipeListControl.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControl.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAA6B,MAAM,wBAAwB,CAAC;AAEzF,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,CAAC,MAAM,gBA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AC,CAAC,EAAE;YAC1B,OAAO;SACR;QAED,+EAA+E;QAC/E,gGAAgG;QAChG,MAAM,SAAS,GAAI,kBAAkB,CAAC,CAAC,CAAiB,CAAC,WAAW,GAAG,OAAO,GAAG,CAAC,CAAC;QACnF,MAAM,YAAY,GAAG,eAAe,CAAC;YACnC,GAAG;YACH,OAAO;YACP,WAAW;YACX,WAAW;YACX,iBAAiB;YACjB,SAAS;SACV,CAAC,CAAC;QAEH,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,aAAa,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QACpE,IAAI,KAAK,KAAK,WAAW,IAAI,aAAa,EAAE;YAC1C,aAAa,EAAE,CAAC;SACjB;QACD,cAAc,CAAC,KAAK,CAAC,CAAC;QACtB,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC7B,CAAC,EACD,CAAC,GAAG,EAAE,OAAO,EAAE,WAAW,EAAE,aAAa,CAAC,CAC3C,CAAC;IAEF,OAAO,CACL,eAAK,SAAS,EAAE,SAAS,aACvB,KAAC,oBAAoB,IACnB,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,YAAY,YAErB,QAAQ,GACY,EACvB,KAAC,oBAAoB,OAAK,SAAS,GAAI,IACnC,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,20 +1,21 @@
1
1
  import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
+ import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
4
  const DOT_STYLES = 'bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full';
4
5
  const BASE_DOT_WIDTH = 6;
5
6
  const ACTIVE_DOT_WIDTH_CHANGE = 16;
6
7
  const BASE_DOT_OPACITY = 0.3;
7
8
  const ACTIVE_DOT_OPACITY_CHANGE = 0.7;
8
9
  export const SwipeListControlDots = JSX(({ children, activeIndex, indexFraction, showDots }) => {
9
- const handleClick = (idx) => (e) => {
10
+ const handleClick = useCallback((idx) => (e) => {
10
11
  if (idx === activeIndex) {
11
12
  return;
12
13
  }
13
14
  const contentContainer = e.currentTarget.parentElement
14
15
  ?.previousElementSibling;
15
16
  contentContainer?.children[idx]?.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
16
- };
17
- return showDots && children?.length ? (_jsx("div", { className: "flex gap-2 mx-auto mt-5 w-fit", children: children?.map((_, idx) => (_jsx("div", { onClick: handleClick(idx), className: `${DOT_STYLES}`, style: getDotStyles(idx, activeIndex, indexFraction), "aria-hidden": true }, String(idx)))) })) : null;
17
+ }, [activeIndex]);
18
+ return showDots && children ? (_jsx("div", { className: "flex gap-2 mx-auto mt-5 w-fit", children: children.length && children.map ? (children.map((_, idx) => (_jsx("div", { onClick: handleClick(idx), className: DOT_STYLES, style: getDotStyles(idx, activeIndex, indexFraction), "aria-hidden": true }, String(idx))))) : (_jsx("div", { className: DOT_STYLES, style: createDotStyle(1) })) })) : null;
18
19
  });
19
20
  const getDotStyles = (currentIdx, activeIndex, indexFraction) => {
20
21
  if (currentIdx < activeIndex || currentIdx > activeIndex + 1) {
@@ -22,14 +23,10 @@ const getDotStyles = (currentIdx, activeIndex, indexFraction) => {
22
23
  }
23
24
  const leftIndexMod = 1 - indexFraction;
24
25
  const rightIndexMod = indexFraction;
25
- return currentIdx === activeIndex
26
- ? {
27
- opacity: `${BASE_DOT_OPACITY + ACTIVE_DOT_OPACITY_CHANGE * leftIndexMod}`,
28
- width: `${BASE_DOT_WIDTH + ACTIVE_DOT_WIDTH_CHANGE * leftIndexMod}px`,
29
- }
30
- : {
31
- opacity: `${BASE_DOT_OPACITY + ACTIVE_DOT_OPACITY_CHANGE * rightIndexMod}`,
32
- width: `${BASE_DOT_WIDTH + ACTIVE_DOT_WIDTH_CHANGE * rightIndexMod}px`,
33
- };
26
+ return createDotStyle(currentIdx === activeIndex ? leftIndexMod : rightIndexMod);
34
27
  };
28
+ const createDotStyle = (indexModifier) => ({
29
+ opacity: `${BASE_DOT_OPACITY + ACTIVE_DOT_OPACITY_CHANGE * indexModifier}`,
30
+ width: `${BASE_DOT_WIDTH + ACTIVE_DOT_WIDTH_CHANGE * indexModifier}px`,
31
+ });
35
32
  //# sourceMappingURL=SwipeListControlDots.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwipeListControlDots.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControlDots.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,MAAM,UAAU,GAAG,yEAAyE,CAAC;AAC7F,MAAM,cAAc,GAAG,CAAC,CAAC;AACzB,MAAM,uBAAuB,GAAG,EAAE,CAAC;AACnC,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B,MAAM,yBAAyB,GAAG,GAAG,CAAC;AAQtC,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE,EAAE;IACrD,MAAM,WAAW,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE;QACzC,IAAI,GAAG,KAAK,WAAW,EAAE;YACvB,OAAO;SACR;QAED,MAAM,gBAAgB,GAAI,CAAC,CAAC,aAA6B,CAAC,aAAa;YACrE,EAAE,sBAAsB,CAAC;QAE3B,gBAAgB,EAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,cAAc,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAC5F,CAAC,CAAC;IAEF,OAAO,QAAQ,IAAI,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,CACpC,cAAK,SAAS,EAAC,+BAA+B,YAC3C,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,GAAW,EAAE,EAAE,CAAC,CACjC,cAEE,OAAO,EAAE,WAAW,CAAC,GAAG,CAAC,EACzB,SAAS,EAAE,GAAG,UAAU,EAAE,EAC1B,KAAK,EAAE,YAAY,CAAC,GAAG,EAAE,WAAW,EAAE,aAAa,CAAC,yBAH/C,MAAM,CAAC,GAAG,CAAC,CAKhB,CACH,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CACnB,UAAkB,EAClB,WAAmB,EACnB,aAAqB,EACe,EAAE;IACtC,IAAI,UAAU,GAAG,WAAW,IAAI,UAAU,GAAG,WAAW,GAAG,CAAC,EAAE;QAC5D,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,YAAY,GAAG,CAAC,GAAG,aAAa,CAAC;IACvC,MAAM,aAAa,GAAG,aAAa,CAAC;IAEpC,OAAO,UAAU,KAAK,WAAW;QAC/B,CAAC,CAAC;YACE,OAAO,EAAE,GAAG,gBAAgB,GAAG,yBAAyB,GAAG,YAAY,EAAE;YACzE,KAAK,EAAE,GAAG,cAAc,GAAG,uBAAuB,GAAG,YAAY,IAAI;SACtE;QACH,CAAC,CAAC;YACE,OAAO,EAAE,GAAG,gBAAgB,GAAG,yBAAyB,GAAG,aAAa,EAAE;YAC1E,KAAK,EAAE,GAAG,cAAc,GAAG,uBAAuB,GAAG,aAAa,IAAI;SACvE,CAAC;AACR,CAAC,CAAC"}
1
+ {"version":3,"file":"SwipeListControlDots.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControlDots.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,MAAM,UAAU,GAAG,yEAAyE,CAAC;AAC7F,MAAM,cAAc,GAAG,CAAC,CAAC;AACzB,MAAM,uBAAuB,GAAG,EAAE,CAAC;AACnC,MAAM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AmB,EACnB,aAAqB,EACe,EAAE;IACtC,IAAI,UAAU,GAAG,WAAW,IAAI,UAAU,GAAG,WAAW,GAAG,CAAC,EAAE;QAC5D,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,YAAY,GAAG,CAAC,GAAG,aAAa,CAAC;IACvC,MAAM,aAAa,GAAG,aAAa,CAAC;IAEpC,OAAO,cAAc,CAAC,UAAU,KAAK,WAAW,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC;AACnF,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,aAAqB,EAA0B,EAAE,CAAC,CAAC;IACzE,OAAO,EAAE,GAAG,gBAAgB,GAAG,yBAAyB,GAAG,aAAa,EAAE;IAC1E,KAAK,EAAE,GAAG,cAAc,GAAG,uBAAuB,GAAG,aAAa,IAAI;CACvE,CAAC,CAAC"}
@@ -3,7 +3,7 @@ import { JSX } from '@redneckz/uni-jsx';
3
3
  import { DEFAULT_GAP, DEFAULT_PADDING } from './constants.js';
4
4
  import { SwipeListControlItem } from './SwipeListControlItem.js';
5
5
  import { getContainerStyle } from './utils/getContainerStyle.js';
6
- export const SwipeListControlList = JSX(({ className = '', children, activeIndex, onScroll, gap = DEFAULT_GAP, padding = DEFAULT_PADDING, }) => {
7
- return (_jsx("div", { className: `overflow-auto flex horizontal-list no-scrollbar ${className}`, style: { ...getContainerStyle(padding), gap: `${gap}px` }, role: "list", onScroll: onScroll, children: children?.length ? (children?.map((child, idx) => (_jsx(SwipeListControlItem, { style: getContainerStyle(padding / 4), "aria-current": Boolean(activeIndex === idx), children: child }, String(idx))))) : (_jsx(SwipeListControlItem, { children: children })) }));
6
+ export const SwipeListControlList = JSX(({ className = '', activeIndex = -1, gap = DEFAULT_GAP, padding = DEFAULT_PADDING, children, onScroll, }) => {
7
+ return children ? (_jsx("div", { className: `overflow-auto flex horizontal-list no-scrollbar ${className}`, style: { ...getContainerStyle(padding), gap: `${gap}px` }, role: "list", onScroll: onScroll, children: children.length && children.map ? (children.map((child, idx) => (_jsx(SwipeListControlItem, { style: getContainerStyle(padding / 4), "aria-current": Boolean(activeIndex === idx), children: child }, String(idx))))) : (_jsx(SwipeListControlItem, { style: getContainerStyle(padding / 4), "aria-current": true, children: children })) })) : null;
8
8
  });
9
9
  //# sourceMappingURL=SwipeListControlList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwipeListControlList.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControlList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAW9D,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,GAAG,GAAG,WAAW,EACjB,OAAO,GAAG,eAAe,GAC1B,EAAE,EAAE;IACH,OAAO,CACL,cACE,SAAS,EAAE,mDAAmD,SAAS,EAAE,EACzE,KAAK,EAAE,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,GAAG,GAAG,IAAI,EAAE,EACzD,IAAI,EAAC,MAAM,EACX,QAAQ,EAAE,QAAQ,YAEjB,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,CAClB,QAAQ,EAAE,GAAG,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,CAC5B,KAAC,oBAAoB,IAEnB,KAAK,EAAE,iBAAiB,CAAC,OAAO,GAAG,CAAC,CAAC,kBACvB,OAAO,CAAC,WAAW,KAAK,GAAG,CAAC,YAEzC,KAAK,IAJD,MAAM,CAAC,GAAG,CAAC,CAKK,CACxB,CAAC,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AK,EAAE,iBAAiB,CAAC,OAAO,GAAG,CAAC,CAAC,kCACxD,QAAQ,GACY,CACxB,GACG,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC"}
@@ -3,9 +3,11 @@ import { JSX } from '@redneckz/uni-jsx';
3
3
  import { renderArrows } from '../Button/renderArrows.js';
4
4
  export const TableArrowScrollControl = JSX(({ isScrollAvailable, onNextClick, onPrevClick, showNextButton, showPrevButton }) => {
5
5
  return isScrollAvailable ? (_jsx("div", { children: renderArrows({
6
- handler: [onPrevClick, onNextClick],
7
- isShown: [showPrevButton, showNextButton],
8
- btnClass: ['top-[108px]', 'top-11'],
6
+ dec: onPrevClick,
7
+ inc: onNextClick,
8
+ canDec: showPrevButton,
9
+ canInc: showNextButton,
10
+ btnClass: ['top-[108px]', 'top-[44px]'],
9
11
  className: 'right-7',
10
12
  isDisabled: true,
11
13
  }) })) : null;
@@ -1 +1 @@
1
- {"version":3,"file":"TableArrowScrollControl.js","sourceRoot":"","sources":["../../../src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGtD,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CACxC,CAAC,EAAE,iBAAiB,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,EAAE,EAAE;IAClF,OAAO,iBAAiB,CAAC,CAAC,CAAC,CACzB,wBACG,YAAY,CAAC;YACZ,OAAO,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;YACnC,OAAO,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC;YACzC,QAAQ,EAAE,CAAC,aAAa,EAAE,QAAQ,CAAC;YACnC,SAAS,EAAE,SAAS;YACpB,UAAU,EAAE,IAAI;SACjB,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"TableArrowScrollControl.js","sourceRoot":"","sources":["../../../src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGtD,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CACxC,CAAC,EAAE,iBAAiB,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,EAAE,EAAE;IAClF,OAAO,iBAAiB,CAAC,CAAC,CAAC,CACzB,wBACG,YAAY,CAAC;YACZ,GAAG,EAAE,WAAW;YAChB,GAAG,EAAE,WAAW;YAChB,MAAM,EAAE,cAAc;YACtB,MAAM,EAAE,cAAc;YACtB,QAAQ,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;YACvC,SAAS,EAAE,SAAS;YACpB,UAAU,EAAE,IAAI;SACjB,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC"}
@@ -1,8 +1,9 @@
1
1
  export interface TableArrowScrollControlProps {
2
- activeCardIndex: number;
2
+ activeIndex: number;
3
3
  onNextClick: () => void;
4
4
  onPrevClick: () => void;
5
5
  isScrollAvailable?: boolean;
6
6
  showNextButton: boolean;
7
7
  showPrevButton: boolean;
8
+ setActiveIndex: (index: number) => void;
8
9
  }
@@ -0,0 +1,12 @@
1
+ import type { BlockAncestors, BlockDecorator } from '../model/BlockDecorator';
2
+ import type { BlocksRegistry } from '../model/BlocksRegistry';
3
+ import type { ContentPageDef, Slot } from '../model/ContentPageDef';
4
+
5
+ export interface BlockRendererOptions {
6
+ key?: string;
7
+ page?: ContentPageDef;
8
+ blockDecorator?: BlockDecorator;
9
+ blocksRegistry?: BlocksRegistry;
10
+ parent?: Slot;
11
+ ancestors?: BlockAncestors;
12
+ }
@@ -0,0 +1,4 @@
1
+ import type { BlockDecorator } from '../model/BlockDecorator';
2
+
3
+ export const defaultBlockDecorator: BlockDecorator = ({ blockClassName, block, render }) =>
4
+ render({ blockClassName, block });
@@ -1,11 +1,11 @@
1
- import type { BlockAncestors } from './BlockDecorator';
1
+ import type { BlockRendererOptions } from './BlockRendererOptions';
2
2
  import { getParentBlockDef } from './getParentBlockDef';
3
3
 
4
4
  export function getParentBlockContent<C extends Record<string, any>>(
5
- ancestors: BlockAncestors | undefined,
5
+ options: BlockRendererOptions | undefined,
6
6
  defaultContent: C,
7
7
  ): C {
8
- const { content } = getParentBlockDef(ancestors);
8
+ const { content } = getParentBlockDef(options);
9
9
 
10
10
  return (content as C) || defaultContent;
11
11
  }
@@ -0,0 +1,6 @@
1
+ import type { BlockRendererOptions } from '../BlockRenderer/BlockRendererOptions';
2
+ import type { BlockDef } from '../model/ContentPageDef';
3
+
4
+ export function getParentBlockDef(options: BlockRendererOptions | undefined): BlockDef {
5
+ return options?.parent || {};
6
+ }
@@ -0,0 +1,47 @@
1
+ import type { BlockAncestors } from '../model/BlockDecorator';
2
+ import type { BlockDef } from '../model/ContentPageDef';
3
+ import { style2className } from '../utils/style2className';
4
+ import type { BlockRendererOptions } from './BlockRendererOptions';
5
+ import { defaultBlockDecorator } from './defaultBlockDecorator';
6
+
7
+ const DEFAULT_ANCESTORS: BlockAncestors = [];
8
+ const DEFAULT_STYLE = ['col-span-12'];
9
+
10
+ export function renderBlock(block: BlockDef, options: BlockRendererOptions) {
11
+ const {
12
+ key,
13
+ blockDecorator = defaultBlockDecorator,
14
+ blocksRegistry = {},
15
+ ancestors = DEFAULT_ANCESTORS,
16
+ } = options;
17
+ const { type } = block;
18
+
19
+ if (!(type && type in blocksRegistry)) {
20
+ console.warn(`No block with "${type}" is registered`);
21
+ }
22
+
23
+ const BlockComponent = type && blocksRegistry[type];
24
+
25
+ return blockDecorator(
26
+ {
27
+ blockClassName: `scroll-mt-12 ${style2className(block.style || DEFAULT_STYLE)}`, // TODO scroll-mt-12 ? here?
28
+ block,
29
+ ancestors,
30
+ // Adjusted by decorator block and blockClassName
31
+ render: ({ block: adjustedBlock, blockClassName: adjustedBlockClassName }) => {
32
+ const { content } = adjustedBlock;
33
+
34
+ return BlockComponent ? (
35
+ <BlockComponent
36
+ key={key}
37
+ className={adjustedBlockClassName}
38
+ block={block}
39
+ options={options}
40
+ {...content}
41
+ />
42
+ ) : null;
43
+ },
44
+ },
45
+ key,
46
+ );
47
+ }
@@ -0,0 +1,33 @@
1
+ import type { BlockAncestors, SlotName } from '../model/BlockDecorator';
2
+ import { DEFAULT_SLOT_NAME } from '../model/BlockDecorator';
3
+ import type { BlockDef } from '../model/ContentPageDef';
4
+ import type { VNode } from '../model/VNode';
5
+ import type { BlockRendererOptions } from './BlockRendererOptions';
6
+ import { renderBlock } from './renderBlock';
7
+
8
+ export interface BlocksListRendererProps extends BlockRendererOptions {
9
+ slotName?: SlotName;
10
+ renderChild?: (block: BlockDef, options: BlockRendererOptions) => VNode;
11
+ }
12
+
13
+ const EMPTY_ANCESTORS: BlockAncestors = [];
14
+
15
+ export const renderBlocksList = (
16
+ blocks: BlockDef[] | undefined,
17
+ {
18
+ key,
19
+ ancestors = EMPTY_ANCESTORS,
20
+ slotName = DEFAULT_SLOT_NAME,
21
+ renderChild = renderBlock,
22
+ ...options
23
+ }: BlocksListRendererProps,
24
+ ): VNode[] =>
25
+ (blocks || []).map((_: BlockDef, j: number) =>
26
+ renderChild(_, {
27
+ ...options,
28
+ key: `${key ? key : _.type}-${j}`,
29
+ ancestors: options.parent
30
+ ? [...(ancestors || EMPTY_ANCESTORS), [options.parent, slotName]]
31
+ : ancestors,
32
+ }),
33
+ );
@@ -0,0 +1,25 @@
1
+ import type { BlockDef } from '../model/ContentPageDef';
2
+ import type { UniBlockProps } from '../model/JSXBlock';
3
+ import type { VNode } from '../model/VNode';
4
+ import type { BlockRendererOptions } from './BlockRendererOptions';
5
+ import { renderBlocksList } from './renderBlockList';
6
+
7
+ interface ChildrenRendererProps extends UniBlockProps {
8
+ children?: VNode;
9
+ renderChild?: (block: BlockDef, options: BlockRendererOptions) => VNode;
10
+ }
11
+
12
+ export function renderChildren({
13
+ children,
14
+ block,
15
+ options,
16
+ renderChild,
17
+ }: ChildrenRendererProps): VNode[] | null {
18
+ if (children) {
19
+ return children;
20
+ }
21
+
22
+ return block && options
23
+ ? renderBlocksList(block.blocks, { ...options, parent: block, renderChild })
24
+ : null;
25
+ }
@@ -1,4 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { renderChildren } from '../../BlockRenderer/renderChildren';
2
3
  import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
3
4
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
5
  import { Heading } from '../../ui-kit/Heading/Heading';
@@ -9,7 +10,7 @@ import { AccordionItemsList } from './AccordionItemsList';
9
10
  export interface AccordionProps extends AccordionContent, UniBlockProps {}
10
11
 
11
12
  export const Accordion: JSXBlock<AccordionProps> = JSX<AccordionProps>(
12
- ({ title, description, className = '', children, ...rest }) => (
13
+ ({ title, description, className = '', ...rest }) => (
13
14
  <BlockWrapper className={`py-6 px-4 bg-white text-primary-text ${className}`} {...rest}>
14
15
  {title ? <Heading headingType="h3" className="mb-2 text-center" title={title} /> : null}
15
16
  {description ? (
@@ -19,7 +20,7 @@ export const Accordion: JSXBlock<AccordionProps> = JSX<AccordionProps>(
19
20
  </Paragraph>
20
21
  </div>
21
22
  ) : null}
22
- <AccordionItemsList>{children}</AccordionItemsList>
23
+ <AccordionItemsList>{renderChildren(rest)}</AccordionItemsList>
23
24
  </BlockWrapper>
24
25
  ),
25
26
  );
@@ -1,5 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { getParentBlockContent } from '../../model/getParentBlockContent';
2
+ import { getParentBlockContent } from '../../BlockRenderer/getParentBlockContent';
3
+ import { renderChildren } from '../../BlockRenderer/renderChildren';
3
4
  import type { JSXBlock } from '../../model/JSXBlock';
4
5
  import type { Picture } from '../../model/Picture';
5
6
  import { Foldable } from '../../ui-kit/Foldable/Foldable';
@@ -14,8 +15,8 @@ import type { AccordionItemProps } from './AccordionItemProps';
14
15
  const icons: IconName[] = ['PlusIcon', 'MinusIcon'];
15
16
 
16
17
  export const AccordionItem: JSXBlock<AccordionItemProps> = JSX<AccordionItemProps>(
17
- ({ className = '', ancestors, label = '', labelIcon, isExpanded, children }) => {
18
- const { bordered } = getParentBlockContent(ancestors, {} as AccordionContent);
18
+ ({ className = '', label = '', labelIcon, isExpanded, ...rest }) => {
19
+ const { bordered } = getParentBlockContent(rest.options, {} as AccordionContent);
19
20
 
20
21
  return (
21
22
  <li
@@ -31,7 +32,7 @@ export const AccordionItem: JSXBlock<AccordionItemProps> = JSX<AccordionItemProp
31
32
  className="flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0"
32
33
  isUnfolded={isUnfolded}
33
34
  >
34
- {children}
35
+ {renderChildren(rest)}
35
36
  </FoldableSection>
36
37
  )}
37
38
  renderFoldButton={({ isUnfolded, onToggle }) => (
@@ -3,6 +3,7 @@
3
3
  "title": "Вы можете оплатить бонусными баллами",
4
4
  "subtitle": "Удобный каталог с большим ассортиментом товаров и сервисов",
5
5
  "columnsCount": "4",
6
+ "cardTextAlign": "center",
6
7
  "bonusBenefits": [
7
8
  {
8
9
  "label": "Более 5000 товаров",
@@ -1,4 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { AlignText } from '../../model/AlignText';
2
3
  import type { UniBlockProps } from '../../model/JSXBlock';
3
4
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
5
  import { Img } from '../../ui-kit/Img/Img';
@@ -12,13 +13,21 @@ import type {
12
13
  export interface BenefitsBlockProps extends BonusBenefitsBlockContent, UniBlockProps {}
13
14
 
14
15
  export const BonusBenefitsBlock = JSX<BenefitsBlockProps>(
15
- ({ className = '', title, subtitle, bonusBenefits, columnsCount = '4', ...rest }) => (
16
+ ({
17
+ bonusBenefits,
18
+ cardTextAlign = 'center',
19
+ className = '',
20
+ columnsCount = '4',
21
+ subtitle,
22
+ title,
23
+ ...rest
24
+ }) => (
16
25
  <BlockWrapper
17
26
  className={`font-sans text-primary-text bg-white p-[50px] flex flex-col text-center ${className}`}
18
27
  {...rest}
19
28
  >
20
29
  <Headline
21
- className="!p-0"
30
+ className="!p-0 mb-8"
22
31
  title={title}
23
32
  description={subtitle}
24
33
  headlineVersion="M"
@@ -26,7 +35,9 @@ export const BonusBenefitsBlock = JSX<BenefitsBlockProps>(
26
35
  {...rest}
27
36
  />
28
37
  {bonusBenefits?.length ? (
29
- <div className={`grid gap-1 mt-8 ${getElementsColsValue(columnsCount)}`}>
38
+ <div
39
+ className={`grid gap-1 ${AlignText[cardTextAlign]} ${getElementsColsValue(columnsCount)}`}
40
+ >
30
41
  {bonusBenefits.map(renderBonusBenefit)}
31
42
  </div>
32
43
  ) : null}
@@ -34,23 +45,25 @@ export const BonusBenefitsBlock = JSX<BenefitsBlockProps>(
34
45
  ),
35
46
  );
36
47
 
37
- const renderBonusBenefit = (bonusBenefit: BonusBenefit, i: number) => {
48
+ const renderBonusBenefit = ({ icon, label, description }: BonusBenefit, i: number) => {
38
49
  return (
39
- <div key={String(i)} className="flex flex-col items-center max-w-[292px]">
40
- {bonusBenefit?.icon ? (
41
- <Img
42
- className="h-[160px] w-[180px] min-w-[180px] min-h-[160px]"
43
- image={bonusBenefit.icon}
44
- width="180"
45
- height="160"
46
- />
47
- ) : null}
48
- <div>
49
- {bonusBenefit?.label ? <span className="text-h6 m-0">{bonusBenefit.label}</span> : null}
50
- </div>
50
+ <div key={String(i)} className="flex flex-col items-center text-h6">
51
+ {description ? <span>{description}</span> : null}
52
+ {icon ? <Img image={icon} height="180" width="auto" className="h-[180px] w-auto" /> : null}
53
+ <div>{label ? <span>{label}</span> : null}</div>
51
54
  </div>
52
55
  );
53
56
  };
54
57
 
55
- const getElementsColsValue = (colValue: ColumnsCount) =>
56
- colValue === '4' ? 'grid-cols-4' : 'grid-cols-5';
58
+ const getElementsColsValue = (colValue: ColumnsCount) => {
59
+ switch (colValue) {
60
+ case '3':
61
+ return 'grid-cols-3';
62
+ case '4':
63
+ return 'grid-cols-4';
64
+ case '5':
65
+ return 'grid-cols-5';
66
+ default:
67
+ return 'grid-cols-5';
68
+ }
69
+ };
@@ -1,18 +1,20 @@
1
- import type { LabelProps, TitleProps } from '../../model/HeadlineType';
1
+ import type { AlignType } from '../../model/AlignType';
2
+ import type { DescriptionProps, LabelProps, TitleProps } from '../../model/HeadlineType';
2
3
  import type { IconProps } from '../../model/Picture';
3
4
  /**
4
5
  * @title Количество элементов в строке
5
6
  * @enumNames [
7
+ * "Три колонки",
6
8
  * "Четыре колонки",
7
9
  * "Пять колонок",
8
10
  * ]
9
11
  */
10
- export type ColumnsCount = '4' | '5';
12
+ export type ColumnsCount = '3' | '4' | '5';
11
13
 
12
14
  /**
13
15
  * @title Бонус и преимущество
14
16
  */
15
- export type BonusBenefit = LabelProps & IconProps;
17
+ export type BonusBenefit = LabelProps & IconProps & DescriptionProps;
16
18
 
17
19
  /**
18
20
  * @title Блок бонусов и преимуществ
@@ -23,4 +25,5 @@ export type BonusBenefitsBlockContent = TitleProps & {
23
25
  /** @title Список бонусов */
24
26
  bonusBenefits?: BonusBenefit[];
25
27
  columnsCount?: ColumnsCount;
28
+ cardTextAlign?: AlignType;
26
29
  };