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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1058) 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 +365 -385
  11. package/bundle/bundle.umd.min.js +1 -1
  12. package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
  13. package/bundle/components/Carousel/Carousel.d.ts +1 -0
  14. package/bundle/components/Carousel/CarouselContainer.d.ts +8 -5
  15. package/bundle/components/Carousel/CarouselContent.d.ts +5 -8
  16. package/bundle/components/CarouselCard/CarouselCard.d.ts +0 -2
  17. package/bundle/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  18. package/bundle/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
  19. package/bundle/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
  20. package/bundle/components/ComparisonTable/TableRow.d.ts +1 -1
  21. package/bundle/components/ComparisonTable/constants.d.ts +1 -1
  22. package/bundle/components/Gallery/GalleryContainer.d.ts +1 -1
  23. package/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  24. package/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
  25. package/bundle/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  26. package/bundle/components/Video/Video.d.ts +6 -0
  27. package/bundle/components/Video/VideoContent.d.ts +8 -0
  28. package/bundle/components/Video/getPaddings.d.ts +1 -0
  29. package/bundle/hooks/useCarouselControls.d.ts +5 -3
  30. package/bundle/model/JSXBlock.d.ts +4 -5
  31. package/bundle/model/LinkProps.d.ts +1 -0
  32. package/bundle/model/Picture.d.ts +8 -2
  33. package/bundle/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
  34. package/bundle/ui-kit/Button/renderArrows.d.ts +6 -4
  35. package/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
  36. package/dist/BlockRenderer/BlockRendererOptions.d.ts +11 -0
  37. package/dist/BlockRenderer/BlockRendererOptions.js +2 -0
  38. package/dist/BlockRenderer/BlockRendererOptions.js.map +1 -0
  39. package/dist/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
  40. package/dist/BlockRenderer/defaultBlockDecorator.js +5 -0
  41. package/dist/BlockRenderer/defaultBlockDecorator.js.map +1 -0
  42. package/dist/BlockRenderer/getParentBlockContent.d.ts +2 -0
  43. package/dist/{model → BlockRenderer}/getParentBlockContent.js +2 -2
  44. package/dist/BlockRenderer/getParentBlockContent.js.map +1 -0
  45. package/dist/BlockRenderer/getParentBlockDef.d.ts +3 -0
  46. package/dist/BlockRenderer/getParentBlockDef.js +7 -0
  47. package/dist/BlockRenderer/getParentBlockDef.js.map +1 -0
  48. package/dist/BlockRenderer/renderBlock.d.ts +3 -0
  49. package/dist/BlockRenderer/renderBlock.js +27 -0
  50. package/dist/BlockRenderer/renderBlock.js.map +1 -0
  51. package/dist/BlockRenderer/renderBlockList.d.ts +9 -0
  52. package/dist/BlockRenderer/renderBlockList.js +14 -0
  53. package/dist/BlockRenderer/renderBlockList.js.map +1 -0
  54. package/dist/BlockRenderer/renderChildren.d.ts +10 -0
  55. package/dist/BlockRenderer/renderChildren.js +13 -0
  56. package/dist/BlockRenderer/renderChildren.js.map +1 -0
  57. package/dist/components/Accordion/Accordion.js +2 -1
  58. package/dist/components/Accordion/Accordion.js.map +1 -1
  59. package/dist/components/Accordion/Accordion.mobile.js +2 -1
  60. package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
  61. package/dist/components/AccordionItem/AccordionItem.js +2 -1
  62. package/dist/components/AccordionItem/AccordionItem.js.map +1 -1
  63. package/dist/components/AccordionItem/AccordionItem.mobile.js +5 -4
  64. package/dist/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
  65. package/dist/components/Blocks.js +3 -1
  66. package/dist/components/Blocks.js.map +1 -1
  67. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +16 -4
  68. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  69. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
  70. package/dist/components/Calculator/Calculator.js +22 -22
  71. package/dist/components/Calculator/Calculator.js.map +1 -1
  72. package/dist/components/Calculator/CalculatorValueBlock.js +1 -3
  73. package/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
  74. package/dist/components/CardTransfer/CardTransfer.js +2 -1
  75. package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  76. package/dist/components/Carousel/Carousel.d.ts +1 -0
  77. package/dist/components/Carousel/Carousel.js +16 -14
  78. package/dist/components/Carousel/Carousel.js.map +1 -1
  79. package/dist/components/Carousel/CarouselContainer.d.ts +8 -5
  80. package/dist/components/Carousel/CarouselContainer.js +8 -5
  81. package/dist/components/Carousel/CarouselContainer.js.map +1 -1
  82. package/dist/components/Carousel/CarouselContent.d.ts +5 -8
  83. package/dist/components/Carousel/CarouselContent.js +0 -3
  84. package/dist/components/Carousel/CarouselContent.js.map +1 -1
  85. package/dist/components/CarouselCard/CarouselCard.d.ts +0 -2
  86. package/dist/components/CarouselCard/CarouselCard.js +4 -11
  87. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  88. package/dist/components/CarouselLinks/CarouselLinks.js +7 -7
  89. package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  90. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  91. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  92. package/dist/components/Catalog/Catalog.js +8 -11
  93. package/dist/components/Catalog/Catalog.js.map +1 -1
  94. package/dist/components/ComparisonTable/ComparisonTable.mobile.js +2 -2
  95. package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  96. package/dist/components/ComparisonTable/ComparisonTableBody.js +4 -4
  97. package/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
  98. package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  99. package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -1
  100. package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
  101. package/dist/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
  102. package/dist/components/ComparisonTable/ComparisonTableRows.js +8 -7
  103. package/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
  104. package/dist/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
  105. package/dist/components/ComparisonTable/TableCarouselContainer.js +1 -1
  106. package/dist/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
  107. package/dist/components/ComparisonTable/TableRow.d.ts +1 -1
  108. package/dist/components/ComparisonTable/TableRow.js +1 -1
  109. package/dist/components/ComparisonTable/TableRow.js.map +1 -1
  110. package/dist/components/ComparisonTable/constants.d.ts +1 -1
  111. package/dist/components/ComparisonTable/constants.js +1 -1
  112. package/dist/components/ContactsBlock/ContactsBlock.js +1 -3
  113. package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  114. package/dist/components/ContentPage/ContentPage.js +13 -7
  115. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  116. package/dist/components/ExchangeRateTile/CurrencyTable.js +1 -3
  117. package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  118. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -3
  119. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  120. package/dist/components/Footer/Footer.js +1 -1
  121. package/dist/components/Footer/Footer.js.map +1 -1
  122. package/dist/components/Footer/Footer.mobile.js +2 -2
  123. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  124. package/dist/components/Gallery/GalleryCardInner.js +2 -4
  125. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  126. package/dist/components/Gallery/GalleryContainer.d.ts +1 -1
  127. package/dist/components/Gallery/GalleryContainer.js +1 -3
  128. package/dist/components/Gallery/GalleryContainer.js.map +1 -1
  129. package/dist/components/Gallery/GalleryInner.js +9 -12
  130. package/dist/components/Gallery/GalleryInner.js.map +1 -1
  131. package/dist/components/Header/Header.js +1 -1
  132. package/dist/components/Header/Header.js.map +1 -1
  133. package/dist/components/Header/Header.mobile.js +2 -3
  134. package/dist/components/Header/Header.mobile.js.map +1 -1
  135. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +23 -25
  136. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  137. package/dist/components/InvestmentGallery/InvestmentGallery.js +10 -20
  138. package/dist/components/InvestmentGallery/InvestmentGallery.js.map +1 -1
  139. package/dist/components/MobileAppTile/MobileAppTile.js +4 -4
  140. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  141. package/dist/components/OtherProducts/OtherProducts.js +2 -1
  142. package/dist/components/OtherProducts/OtherProducts.js.map +1 -1
  143. package/dist/components/OtherProductsItem/OtherProductsItem.js +5 -4
  144. package/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  145. package/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  146. package/dist/components/ProductBlock/ProductBlockInner.js +2 -2
  147. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  148. package/dist/components/Recommendation/Recommendation.js +11 -21
  149. package/dist/components/Recommendation/Recommendation.js.map +1 -1
  150. package/dist/components/RollupItem/RollupItem.js +5 -3
  151. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  152. package/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
  153. package/dist/components/StepsBlock/StepsBlock.js +1 -1
  154. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  155. package/dist/components/TariffsTable/TariffsTable.js +12 -14
  156. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  157. package/dist/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  158. package/dist/components/TariffsTable/TariffsTableRow.js +2 -2
  159. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  160. package/dist/components/VerticalLayout/VerticalLayout.js +3 -2
  161. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  162. package/dist/components/Video/Video.d.ts +6 -0
  163. package/dist/components/Video/Video.js +12 -0
  164. package/dist/components/Video/Video.js.map +1 -0
  165. package/dist/components/Video/VideoContent.d.ts +8 -0
  166. package/dist/components/Video/VideoContent.js +2 -0
  167. package/dist/components/Video/VideoContent.js.map +1 -0
  168. package/dist/components/Video/getPaddings.d.ts +1 -0
  169. package/dist/components/Video/getPaddings.js +7 -0
  170. package/dist/components/Video/getPaddings.js.map +1 -0
  171. package/dist/hooks/useCarouselControls.d.ts +5 -3
  172. package/dist/hooks/useCarouselControls.js +19 -8
  173. package/dist/hooks/useCarouselControls.js.map +1 -1
  174. package/dist/model/JSXBlock.d.ts +4 -5
  175. package/dist/model/LinkProps.d.ts +1 -0
  176. package/dist/model/Picture.d.ts +8 -2
  177. package/dist/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
  178. package/{mobile/dist/react → dist}/setup-fixture.js +4 -4
  179. package/dist/setup-fixture.js.map +1 -0
  180. package/dist/ui-kit/Button/renderArrows.d.ts +6 -4
  181. package/dist/ui-kit/Button/renderArrows.js +3 -2
  182. package/dist/ui-kit/Button/renderArrows.js.map +1 -1
  183. package/dist/ui-kit/InnerTable/InnerTableBodyItem.js +9 -10
  184. package/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  185. package/dist/ui-kit/SwipeListControl/SwipeListControl.js +5 -2
  186. package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  187. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -12
  188. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  189. package/dist/ui-kit/SwipeListControl/SwipeListControlList.js +2 -2
  190. package/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -1
  191. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +5 -3
  192. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  193. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
  194. package/lib/BlockRenderer/BlockRendererOptions.d.ts +11 -0
  195. package/lib/BlockRenderer/BlockRendererOptions.js +2 -0
  196. package/lib/BlockRenderer/BlockRendererOptions.js.map +1 -0
  197. package/lib/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
  198. package/lib/BlockRenderer/defaultBlockDecorator.js +2 -0
  199. package/lib/BlockRenderer/defaultBlockDecorator.js.map +1 -0
  200. package/lib/BlockRenderer/getParentBlockContent.d.ts +2 -0
  201. package/lib/BlockRenderer/getParentBlockContent.js +6 -0
  202. package/lib/BlockRenderer/getParentBlockContent.js.map +1 -0
  203. package/lib/BlockRenderer/getParentBlockDef.d.ts +3 -0
  204. package/lib/BlockRenderer/getParentBlockDef.js +4 -0
  205. package/lib/BlockRenderer/getParentBlockDef.js.map +1 -0
  206. package/lib/BlockRenderer/renderBlock.d.ts +3 -0
  207. package/lib/BlockRenderer/renderBlock.js +24 -0
  208. package/lib/BlockRenderer/renderBlock.js.map +1 -0
  209. package/lib/BlockRenderer/renderBlockList.d.ts +9 -0
  210. package/lib/BlockRenderer/renderBlockList.js +11 -0
  211. package/lib/BlockRenderer/renderBlockList.js.map +1 -0
  212. package/lib/BlockRenderer/renderChildren.d.ts +10 -0
  213. package/lib/BlockRenderer/renderChildren.js +10 -0
  214. package/lib/BlockRenderer/renderChildren.js.map +1 -0
  215. package/lib/common.css +1 -1
  216. package/lib/components/Accordion/Accordion.fixture.d.ts +3 -2
  217. package/lib/components/Accordion/Accordion.fixture.mobile.d.ts +3 -2
  218. package/lib/components/Accordion/Accordion.js +2 -1
  219. package/lib/components/Accordion/Accordion.js.map +1 -1
  220. package/lib/components/Accordion/Accordion.mobile.js +2 -1
  221. package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
  222. package/lib/components/AccordionItem/AccordionItem.js +2 -1
  223. package/lib/components/AccordionItem/AccordionItem.js.map +1 -1
  224. package/lib/components/AccordionItem/AccordionItem.mobile.js +5 -4
  225. package/lib/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
  226. package/lib/components/BenefitsBlock/BenefitsBlock.fixture.d.ts +1 -1
  227. package/lib/components/Blocks.js +3 -1
  228. package/lib/components/Blocks.js.map +1 -1
  229. package/lib/components/Bonus/Bonus.fixture.d.ts +1 -1
  230. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.d.ts +2 -1
  231. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +16 -4
  232. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  233. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
  234. package/lib/components/BusinessBlock/BusinessBlock.fixture.d.ts +1 -1
  235. package/lib/components/Calculator/Calculator.fixture.d.ts +1 -1
  236. package/lib/components/Calculator/Calculator.js +23 -23
  237. package/lib/components/Calculator/Calculator.js.map +1 -1
  238. package/lib/components/Calculator/CalculatorValueBlock.js +1 -3
  239. package/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
  240. package/lib/components/CardTransfer/CardTransfer.fixture.d.ts +1 -1
  241. package/lib/components/CardTransfer/CardTransfer.js +3 -2
  242. package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  243. package/lib/components/Carousel/Carousel.d.ts +1 -0
  244. package/lib/components/Carousel/Carousel.fixture.d.ts +1 -1
  245. package/lib/components/Carousel/Carousel.js +16 -14
  246. package/lib/components/Carousel/Carousel.js.map +1 -1
  247. package/lib/components/Carousel/CarouselContainer.d.ts +8 -5
  248. package/lib/components/Carousel/CarouselContainer.js +8 -5
  249. package/lib/components/Carousel/CarouselContainer.js.map +1 -1
  250. package/lib/components/Carousel/CarouselContent.d.ts +5 -8
  251. package/lib/components/Carousel/CarouselContent.js +0 -3
  252. package/lib/components/Carousel/CarouselContent.js.map +1 -1
  253. package/lib/components/CarouselCard/CarouselCard.d.ts +0 -2
  254. package/lib/components/CarouselCard/CarouselCard.fixture.d.ts +2 -1
  255. package/lib/components/CarouselCard/CarouselCard.js +4 -11
  256. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  257. package/lib/components/CarouselLinks/CarouselLinks.js +7 -7
  258. package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  259. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  260. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  261. package/lib/components/Catalog/Catalog.fixture.d.ts +1 -1
  262. package/lib/components/Catalog/Catalog.js +8 -11
  263. package/lib/components/Catalog/Catalog.js.map +1 -1
  264. package/lib/components/ComparisonTable/ComparisonTable.fixture.d.ts +2 -2
  265. package/lib/components/ComparisonTable/ComparisonTable.fixture.mobile.d.ts +1 -1
  266. package/lib/components/ComparisonTable/ComparisonTable.mobile.js +2 -2
  267. package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  268. package/lib/components/ComparisonTable/ComparisonTableBody.js +4 -4
  269. package/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
  270. package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  271. package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -1
  272. package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
  273. package/lib/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
  274. package/lib/components/ComparisonTable/ComparisonTableRows.js +8 -7
  275. package/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
  276. package/lib/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
  277. package/lib/components/ComparisonTable/TableCarouselContainer.js +1 -1
  278. package/lib/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
  279. package/lib/components/ComparisonTable/TableRow.d.ts +1 -1
  280. package/lib/components/ComparisonTable/TableRow.js +1 -1
  281. package/lib/components/ComparisonTable/TableRow.js.map +1 -1
  282. package/lib/components/ComparisonTable/constants.d.ts +1 -1
  283. package/lib/components/ComparisonTable/constants.js +1 -1
  284. package/lib/components/ContactsBlock/ContactsBlock.fixture.d.ts +1 -1
  285. package/lib/components/ContactsBlock/ContactsBlock.js +1 -3
  286. package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  287. package/lib/components/ContentPage/ContentPage.fixture.d.ts +1 -1
  288. package/lib/components/ContentPage/ContentPage.fixture.mobile.d.ts +1 -1
  289. package/lib/components/ContentPage/ContentPage.js +13 -7
  290. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  291. package/lib/components/ErrorBlock/ErrorBlock.fixture.d.ts +1 -1
  292. package/lib/components/ExchangeRateTile/CurrencyTable.js +1 -3
  293. package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  294. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -4
  295. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  296. package/lib/components/ExchangeRateTile/ExchangeRateTile.fixture.d.ts +1 -1
  297. package/lib/components/Footer/Footer.fixture.d.ts +1 -1
  298. package/lib/components/Footer/Footer.fixture.mobile.d.ts +1 -1
  299. package/lib/components/Footer/Footer.js +1 -1
  300. package/lib/components/Footer/Footer.js.map +1 -1
  301. package/lib/components/Footer/Footer.mobile.js +2 -2
  302. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  303. package/lib/components/Gallery/Gallery.fixture.d.ts +1 -1
  304. package/lib/components/Gallery/Gallery.fixture.mobile.d.ts +1 -1
  305. package/lib/components/Gallery/GalleryCardInner.js +2 -4
  306. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  307. package/lib/components/Gallery/GalleryContainer.d.ts +1 -1
  308. package/lib/components/Gallery/GalleryContainer.js +1 -3
  309. package/lib/components/Gallery/GalleryContainer.js.map +1 -1
  310. package/lib/components/Gallery/GalleryInner.js +9 -12
  311. package/lib/components/Gallery/GalleryInner.js.map +1 -1
  312. package/lib/components/GracePeriod/GracePeriod.fixture.d.ts +1 -1
  313. package/lib/components/Header/Header.fixture.d.ts +1 -1
  314. package/lib/components/Header/Header.fixture.mobile.d.ts +1 -1
  315. package/lib/components/Header/Header.js +1 -1
  316. package/lib/components/Header/Header.js.map +1 -1
  317. package/lib/components/Header/Header.mobile.js +2 -3
  318. package/lib/components/Header/Header.mobile.js.map +1 -1
  319. package/lib/components/Headline/Headline.fixture.d.ts +1 -1
  320. package/lib/components/Headline/Headline.fixture.mobile.d.ts +1 -1
  321. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.d.ts +1 -1
  322. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +24 -26
  323. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  324. package/lib/components/InvestmentGallery/InvestmentGallery.fixture.d.ts +1 -1
  325. package/lib/components/InvestmentGallery/InvestmentGallery.js +10 -20
  326. package/lib/components/InvestmentGallery/InvestmentGallery.js.map +1 -1
  327. package/lib/components/InvestmentInfo/InvestmentInfo.fixture.d.ts +1 -1
  328. package/lib/components/LikeControl/LikeControl.fixture.d.ts +1 -1
  329. package/lib/components/LinkDocs/LinkDocs.fixture.d.ts +1 -1
  330. package/lib/components/LinkDocs/LinkDocs.fixture.mobile.d.ts +1 -1
  331. package/lib/components/LinkList/LinkList.fixture.d.ts +1 -1
  332. package/lib/components/MiniGallery/MiniGallery.fixture.d.ts +1 -1
  333. package/lib/components/MobileAppTile/MobileAppTile.fixture.d.ts +1 -1
  334. package/lib/components/MobileAppTile/MobileAppTile.fixture.mobile.d.ts +1 -1
  335. package/lib/components/MobileAppTile/MobileAppTile.js +4 -4
  336. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  337. package/lib/components/OfficeMap/OfficeMap.fixture.d.ts +1 -1
  338. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.fixture.d.ts +1 -1
  339. package/lib/components/OtherProducts/OtherProducts.fixture.d.ts +3 -2
  340. package/lib/components/OtherProducts/OtherProducts.js +2 -1
  341. package/lib/components/OtherProducts/OtherProducts.js.map +1 -1
  342. package/lib/components/OtherProductsItem/OtherProductsItem.js +5 -4
  343. package/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  344. package/lib/components/PictureText/PictureText.fixture.d.ts +1 -1
  345. package/lib/components/Placeholder/Placeholder.fixture.d.ts +1 -1
  346. package/lib/components/Placeholder/Placeholder.fixture.mobile.d.ts +1 -1
  347. package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +2 -1
  348. package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +1 -1
  349. package/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  350. package/lib/components/ProductBlock/ProductBlockInner.js +2 -2
  351. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  352. package/lib/components/ProductGallery/ProductGallery.fixture.d.ts +1 -1
  353. package/lib/components/ProductTile/ProductTile.fixture.d.ts +1 -1
  354. package/lib/components/PromoTile/PromoTile.fixture.d.ts +1 -1
  355. package/lib/components/Recommendation/Recommendation.fixture.d.ts +1 -1
  356. package/lib/components/Recommendation/Recommendation.js +11 -21
  357. package/lib/components/Recommendation/Recommendation.js.map +1 -1
  358. package/lib/components/RollupItem/RollupItem.js +5 -3
  359. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  360. package/lib/components/SafeDepositRental/SafeDepositRental.fixture.d.ts +1 -1
  361. package/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
  362. package/lib/components/StepsBlock/StepsBlock.fixture.d.ts +1 -1
  363. package/lib/components/StepsBlock/StepsBlock.fixture.mobile.d.ts +1 -1
  364. package/lib/components/StepsBlock/StepsBlock.js +1 -1
  365. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  366. package/lib/components/Tabs/Tabs.fixture.d.ts +1 -1
  367. package/lib/components/TariffsTable/TariffsTable.fixture.d.ts +1 -1
  368. package/lib/components/TariffsTable/TariffsTable.fixture.mobile.d.ts +1 -1
  369. package/lib/components/TariffsTable/TariffsTable.js +12 -14
  370. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  371. package/lib/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  372. package/lib/components/TariffsTable/TariffsTableRow.js +2 -2
  373. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  374. package/lib/components/TextBlock/TextBlock.fixture.d.ts +1 -1
  375. package/lib/components/TextBlock/TextBlock.fixture.mobile.d.ts +1 -1
  376. package/lib/components/Tile/Tile.fixture.d.ts +1 -1
  377. package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +1 -1
  378. package/lib/components/VerticalLayout/VerticalLayout.js +3 -2
  379. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  380. package/lib/components/Video/Video.d.ts +6 -0
  381. package/lib/components/Video/Video.fixture.d.ts +8 -0
  382. package/lib/components/Video/Video.js +10 -0
  383. package/lib/components/Video/Video.js.map +1 -0
  384. package/lib/components/Video/VideoContent.d.ts +8 -0
  385. package/lib/components/Video/VideoContent.js +2 -0
  386. package/lib/components/Video/VideoContent.js.map +1 -0
  387. package/lib/components/Video/getPaddings.d.ts +1 -0
  388. package/lib/components/Video/getPaddings.js +4 -0
  389. package/lib/components/Video/getPaddings.js.map +1 -0
  390. package/lib/hooks/useCarouselControls.d.ts +5 -3
  391. package/lib/hooks/useCarouselControls.js +19 -8
  392. package/lib/hooks/useCarouselControls.js.map +1 -1
  393. package/lib/model/JSXBlock.d.ts +4 -5
  394. package/lib/model/LinkProps.d.ts +1 -0
  395. package/lib/model/Picture.d.ts +8 -2
  396. package/lib/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
  397. package/lib/{react/setup-fixture.js → setup-fixture.js} +4 -4
  398. package/lib/setup-fixture.js.map +1 -0
  399. package/lib/ui-kit/Button/Button.fixture.d.ts +1 -1
  400. package/lib/ui-kit/Button/renderArrows.d.ts +6 -4
  401. package/lib/ui-kit/Button/renderArrows.js +3 -2
  402. package/lib/ui-kit/Button/renderArrows.js.map +1 -1
  403. package/lib/ui-kit/HeaderItem/HeaderItem.fixture.d.ts +1 -1
  404. package/lib/ui-kit/Icon/Icon.fixture.d.ts +1 -1
  405. package/lib/ui-kit/InnerTable/InnerTableBodyItem.js +9 -10
  406. package/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  407. package/lib/ui-kit/List/List.fixture.d.ts +1 -1
  408. package/lib/ui-kit/Logo/Logo.fixture.d.ts +1 -1
  409. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.d.ts +1 -1
  410. package/lib/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.d.ts +3 -1
  411. package/lib/ui-kit/SwipeListControl/SwipeListControl.js +6 -3
  412. package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  413. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -12
  414. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  415. package/lib/ui-kit/SwipeListControl/SwipeListControlList.js +2 -2
  416. package/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -1
  417. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +5 -3
  418. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  419. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
  420. package/lib/ui-kit/TopItem/TopItem.fixture.d.ts +1 -1
  421. package/mobile/bundle/BlockRenderer/BlockRendererOptions.d.ts +11 -0
  422. package/mobile/bundle/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
  423. package/mobile/bundle/BlockRenderer/getParentBlockContent.d.ts +2 -0
  424. package/mobile/bundle/BlockRenderer/getParentBlockDef.d.ts +3 -0
  425. package/mobile/bundle/BlockRenderer/renderBlock.d.ts +3 -0
  426. package/mobile/bundle/BlockRenderer/renderBlockList.d.ts +9 -0
  427. package/mobile/bundle/BlockRenderer/renderChildren.d.ts +10 -0
  428. package/mobile/bundle/bundle.umd.js +89 -86
  429. package/mobile/bundle/bundle.umd.min.js +1 -1
  430. package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
  431. package/mobile/bundle/components/Carousel/Carousel.d.ts +1 -0
  432. package/mobile/bundle/components/Carousel/CarouselContainer.d.ts +8 -5
  433. package/mobile/bundle/components/Carousel/CarouselContent.d.ts +5 -8
  434. package/mobile/bundle/components/CarouselCard/CarouselCard.d.ts +0 -2
  435. package/mobile/bundle/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  436. package/mobile/bundle/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
  437. package/mobile/bundle/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
  438. package/mobile/bundle/components/ComparisonTable/TableRow.d.ts +1 -1
  439. package/mobile/bundle/components/ComparisonTable/constants.d.ts +1 -1
  440. package/mobile/bundle/components/Gallery/GalleryContainer.d.ts +1 -1
  441. package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  442. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
  443. package/mobile/bundle/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  444. package/mobile/bundle/components/Video/Video.d.ts +6 -0
  445. package/mobile/bundle/components/Video/VideoContent.d.ts +8 -0
  446. package/mobile/bundle/components/Video/getPaddings.d.ts +1 -0
  447. package/mobile/bundle/hooks/useCarouselControls.d.ts +5 -3
  448. package/mobile/bundle/model/JSXBlock.d.ts +4 -5
  449. package/mobile/bundle/model/LinkProps.d.ts +1 -0
  450. package/mobile/bundle/model/Picture.d.ts +8 -2
  451. package/mobile/bundle/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
  452. package/mobile/bundle/ui-kit/Button/renderArrows.d.ts +6 -4
  453. package/mobile/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
  454. package/mobile/dist/BlockRenderer/BlockRendererOptions.d.ts +11 -0
  455. package/mobile/dist/BlockRenderer/BlockRendererOptions.js +2 -0
  456. package/mobile/dist/BlockRenderer/BlockRendererOptions.js.map +1 -0
  457. package/mobile/dist/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
  458. package/mobile/dist/BlockRenderer/defaultBlockDecorator.js +5 -0
  459. package/mobile/dist/BlockRenderer/defaultBlockDecorator.js.map +1 -0
  460. package/mobile/dist/BlockRenderer/getParentBlockContent.d.ts +2 -0
  461. package/mobile/dist/{model → BlockRenderer}/getParentBlockContent.js +2 -2
  462. package/mobile/dist/BlockRenderer/getParentBlockContent.js.map +1 -0
  463. package/mobile/dist/BlockRenderer/getParentBlockDef.d.ts +3 -0
  464. package/mobile/dist/BlockRenderer/getParentBlockDef.js +7 -0
  465. package/mobile/dist/BlockRenderer/getParentBlockDef.js.map +1 -0
  466. package/mobile/dist/BlockRenderer/renderBlock.d.ts +3 -0
  467. package/mobile/dist/BlockRenderer/renderBlock.js +27 -0
  468. package/mobile/dist/BlockRenderer/renderBlock.js.map +1 -0
  469. package/mobile/dist/BlockRenderer/renderBlockList.d.ts +9 -0
  470. package/mobile/dist/BlockRenderer/renderBlockList.js +14 -0
  471. package/mobile/dist/BlockRenderer/renderBlockList.js.map +1 -0
  472. package/mobile/dist/BlockRenderer/renderChildren.d.ts +10 -0
  473. package/mobile/dist/BlockRenderer/renderChildren.js +13 -0
  474. package/mobile/dist/BlockRenderer/renderChildren.js.map +1 -0
  475. package/mobile/dist/components/Accordion/Accordion.js +2 -1
  476. package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
  477. package/mobile/dist/components/AccordionItem/AccordionItem.js +5 -4
  478. package/mobile/dist/components/AccordionItem/AccordionItem.js.map +1 -1
  479. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +16 -4
  480. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  481. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
  482. package/mobile/dist/components/Calculator/Calculator.js +22 -22
  483. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  484. package/mobile/dist/components/Calculator/CalculatorValueBlock.js +1 -3
  485. package/mobile/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
  486. package/mobile/dist/components/CardTransfer/CardTransfer.js +2 -1
  487. package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  488. package/mobile/dist/components/Carousel/Carousel.d.ts +1 -0
  489. package/mobile/dist/components/Carousel/Carousel.js +16 -14
  490. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  491. package/mobile/dist/components/Carousel/CarouselContainer.d.ts +8 -5
  492. package/mobile/dist/components/Carousel/CarouselContainer.js +8 -5
  493. package/mobile/dist/components/Carousel/CarouselContainer.js.map +1 -1
  494. package/mobile/dist/components/Carousel/CarouselContent.d.ts +5 -8
  495. package/mobile/dist/components/Carousel/CarouselContent.js +0 -3
  496. package/mobile/dist/components/Carousel/CarouselContent.js.map +1 -1
  497. package/mobile/dist/components/CarouselCard/CarouselCard.d.ts +0 -2
  498. package/mobile/dist/components/CarouselCard/CarouselCard.js +4 -11
  499. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  500. package/mobile/dist/components/CarouselLinks/CarouselLinks.js +7 -7
  501. package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  502. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  503. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  504. package/mobile/dist/components/Catalog/Catalog.js +8 -11
  505. package/mobile/dist/components/Catalog/Catalog.js.map +1 -1
  506. package/mobile/dist/components/ComparisonTable/ComparisonTable.js +2 -2
  507. package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  508. package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js +4 -4
  509. package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
  510. package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  511. package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -1
  512. package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
  513. package/mobile/dist/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
  514. package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js +8 -7
  515. package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
  516. package/mobile/dist/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
  517. package/mobile/dist/components/ComparisonTable/TableCarouselContainer.js +1 -1
  518. package/mobile/dist/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
  519. package/mobile/dist/components/ComparisonTable/TableRow.d.ts +1 -1
  520. package/mobile/dist/components/ComparisonTable/TableRow.js +1 -1
  521. package/mobile/dist/components/ComparisonTable/TableRow.js.map +1 -1
  522. package/mobile/dist/components/ComparisonTable/constants.d.ts +1 -1
  523. package/mobile/dist/components/ComparisonTable/constants.js +1 -1
  524. package/mobile/dist/components/ContactsBlock/ContactsBlock.js +1 -3
  525. package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  526. package/mobile/dist/components/ContentPage/ContentPage.js +13 -7
  527. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  528. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +1 -3
  529. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  530. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -3
  531. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  532. package/mobile/dist/components/Footer/Footer.js +2 -2
  533. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  534. package/mobile/dist/components/Gallery/GalleryCardInner.js +2 -4
  535. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  536. package/mobile/dist/components/Gallery/GalleryContainer.d.ts +1 -1
  537. package/mobile/dist/components/Gallery/GalleryContainer.js +1 -3
  538. package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -1
  539. package/mobile/dist/components/Gallery/GalleryInner.js +9 -12
  540. package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
  541. package/mobile/dist/components/Header/Header.js +2 -3
  542. package/mobile/dist/components/Header/Header.js.map +1 -1
  543. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +23 -25
  544. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  545. package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js +10 -20
  546. package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js.map +1 -1
  547. package/mobile/dist/components/OtherProducts/OtherProducts.js +2 -1
  548. package/mobile/dist/components/OtherProducts/OtherProducts.js.map +1 -1
  549. package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js +5 -4
  550. package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  551. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  552. package/mobile/dist/components/Recommendation/Recommendation.js +11 -21
  553. package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -1
  554. package/mobile/dist/components/RollupItem/RollupItem.js +5 -3
  555. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  556. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
  557. package/mobile/dist/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  558. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +2 -2
  559. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  560. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +3 -2
  561. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  562. package/mobile/dist/components/Video/Video.d.ts +6 -0
  563. package/mobile/dist/components/Video/Video.js +12 -0
  564. package/mobile/dist/components/Video/Video.js.map +1 -0
  565. package/mobile/dist/components/Video/VideoContent.d.ts +8 -0
  566. package/mobile/dist/components/Video/VideoContent.js +2 -0
  567. package/mobile/dist/components/Video/VideoContent.js.map +1 -0
  568. package/mobile/dist/components/Video/getPaddings.d.ts +1 -0
  569. package/mobile/dist/components/Video/getPaddings.js +7 -0
  570. package/mobile/dist/components/Video/getPaddings.js.map +1 -0
  571. package/mobile/dist/hooks/useCarouselControls.d.ts +5 -3
  572. package/mobile/dist/hooks/useCarouselControls.js +19 -8
  573. package/mobile/dist/hooks/useCarouselControls.js.map +1 -1
  574. package/mobile/dist/model/JSXBlock.d.ts +4 -5
  575. package/mobile/dist/model/LinkProps.d.ts +1 -0
  576. package/mobile/dist/model/Picture.d.ts +8 -2
  577. package/mobile/dist/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
  578. package/{dist/react → mobile/dist}/setup-fixture.js +4 -4
  579. package/mobile/dist/setup-fixture.js.map +1 -0
  580. package/mobile/dist/ui-kit/Button/renderArrows.d.ts +6 -4
  581. package/mobile/dist/ui-kit/Button/renderArrows.js +3 -2
  582. package/mobile/dist/ui-kit/Button/renderArrows.js.map +1 -1
  583. package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js +9 -10
  584. package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  585. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +5 -2
  586. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  587. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -12
  588. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  589. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js +2 -2
  590. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -1
  591. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +5 -3
  592. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  593. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
  594. package/mobile/lib/BlockRenderer/BlockRendererOptions.d.ts +11 -0
  595. package/mobile/lib/BlockRenderer/BlockRendererOptions.js +2 -0
  596. package/mobile/lib/BlockRenderer/BlockRendererOptions.js.map +1 -0
  597. package/mobile/lib/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
  598. package/mobile/lib/BlockRenderer/defaultBlockDecorator.js +2 -0
  599. package/mobile/lib/BlockRenderer/defaultBlockDecorator.js.map +1 -0
  600. package/mobile/lib/BlockRenderer/getParentBlockContent.d.ts +2 -0
  601. package/mobile/lib/BlockRenderer/getParentBlockContent.js +6 -0
  602. package/mobile/lib/BlockRenderer/getParentBlockContent.js.map +1 -0
  603. package/mobile/lib/BlockRenderer/getParentBlockDef.d.ts +3 -0
  604. package/mobile/lib/BlockRenderer/getParentBlockDef.js +4 -0
  605. package/mobile/lib/BlockRenderer/getParentBlockDef.js.map +1 -0
  606. package/mobile/lib/BlockRenderer/renderBlock.d.ts +3 -0
  607. package/mobile/lib/BlockRenderer/renderBlock.js +24 -0
  608. package/mobile/lib/BlockRenderer/renderBlock.js.map +1 -0
  609. package/mobile/lib/BlockRenderer/renderBlockList.d.ts +9 -0
  610. package/mobile/lib/BlockRenderer/renderBlockList.js +11 -0
  611. package/mobile/lib/BlockRenderer/renderBlockList.js.map +1 -0
  612. package/mobile/lib/BlockRenderer/renderChildren.d.ts +10 -0
  613. package/mobile/lib/BlockRenderer/renderChildren.js +10 -0
  614. package/mobile/lib/BlockRenderer/renderChildren.js.map +1 -0
  615. package/mobile/lib/components/Accordion/Accordion.js +2 -1
  616. package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
  617. package/mobile/lib/components/AccordionItem/AccordionItem.js +5 -4
  618. package/mobile/lib/components/AccordionItem/AccordionItem.js.map +1 -1
  619. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +16 -4
  620. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  621. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
  622. package/mobile/lib/components/Calculator/Calculator.js +23 -23
  623. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  624. package/mobile/lib/components/Calculator/CalculatorValueBlock.js +1 -3
  625. package/mobile/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
  626. package/mobile/lib/components/CardTransfer/CardTransfer.js +3 -2
  627. package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  628. package/mobile/lib/components/Carousel/Carousel.d.ts +1 -0
  629. package/mobile/lib/components/Carousel/Carousel.js +16 -14
  630. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  631. package/mobile/lib/components/Carousel/CarouselContainer.d.ts +8 -5
  632. package/mobile/lib/components/Carousel/CarouselContainer.js +8 -5
  633. package/mobile/lib/components/Carousel/CarouselContainer.js.map +1 -1
  634. package/mobile/lib/components/Carousel/CarouselContent.d.ts +5 -8
  635. package/mobile/lib/components/Carousel/CarouselContent.js +0 -3
  636. package/mobile/lib/components/Carousel/CarouselContent.js.map +1 -1
  637. package/mobile/lib/components/CarouselCard/CarouselCard.d.ts +0 -2
  638. package/mobile/lib/components/CarouselCard/CarouselCard.js +4 -11
  639. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  640. package/mobile/lib/components/CarouselLinks/CarouselLinks.js +7 -7
  641. package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  642. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  643. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  644. package/mobile/lib/components/Catalog/Catalog.js +8 -11
  645. package/mobile/lib/components/Catalog/Catalog.js.map +1 -1
  646. package/mobile/lib/components/ComparisonTable/ComparisonTable.js +2 -2
  647. package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  648. package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js +4 -4
  649. package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
  650. package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  651. package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -1
  652. package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
  653. package/mobile/lib/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
  654. package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js +8 -7
  655. package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
  656. package/mobile/lib/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
  657. package/mobile/lib/components/ComparisonTable/TableCarouselContainer.js +1 -1
  658. package/mobile/lib/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
  659. package/mobile/lib/components/ComparisonTable/TableRow.d.ts +1 -1
  660. package/mobile/lib/components/ComparisonTable/TableRow.js +1 -1
  661. package/mobile/lib/components/ComparisonTable/TableRow.js.map +1 -1
  662. package/mobile/lib/components/ComparisonTable/constants.d.ts +1 -1
  663. package/mobile/lib/components/ComparisonTable/constants.js +1 -1
  664. package/mobile/lib/components/ContactsBlock/ContactsBlock.js +1 -3
  665. package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  666. package/mobile/lib/components/ContentPage/ContentPage.js +13 -7
  667. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  668. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +1 -3
  669. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  670. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -4
  671. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  672. package/mobile/lib/components/Footer/Footer.js +2 -2
  673. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  674. package/mobile/lib/components/Gallery/GalleryCardInner.js +2 -4
  675. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  676. package/mobile/lib/components/Gallery/GalleryContainer.d.ts +1 -1
  677. package/mobile/lib/components/Gallery/GalleryContainer.js +1 -3
  678. package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -1
  679. package/mobile/lib/components/Gallery/GalleryInner.js +9 -12
  680. package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
  681. package/mobile/lib/components/Header/Header.js +2 -3
  682. package/mobile/lib/components/Header/Header.js.map +1 -1
  683. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +24 -26
  684. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  685. package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js +10 -20
  686. package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js.map +1 -1
  687. package/mobile/lib/components/OtherProducts/OtherProducts.js +2 -1
  688. package/mobile/lib/components/OtherProducts/OtherProducts.js.map +1 -1
  689. package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js +5 -4
  690. package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  691. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  692. package/mobile/lib/components/Recommendation/Recommendation.js +11 -21
  693. package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -1
  694. package/mobile/lib/components/RollupItem/RollupItem.js +5 -3
  695. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  696. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
  697. package/mobile/lib/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  698. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +2 -2
  699. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  700. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +3 -2
  701. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  702. package/mobile/lib/components/Video/Video.d.ts +6 -0
  703. package/mobile/lib/components/Video/Video.js +10 -0
  704. package/mobile/lib/components/Video/Video.js.map +1 -0
  705. package/mobile/lib/components/Video/VideoContent.d.ts +8 -0
  706. package/mobile/lib/components/Video/VideoContent.js +2 -0
  707. package/mobile/lib/components/Video/VideoContent.js.map +1 -0
  708. package/mobile/lib/components/Video/getPaddings.d.ts +1 -0
  709. package/mobile/lib/components/Video/getPaddings.js +4 -0
  710. package/mobile/lib/components/Video/getPaddings.js.map +1 -0
  711. package/mobile/lib/hooks/useCarouselControls.d.ts +5 -3
  712. package/mobile/lib/hooks/useCarouselControls.js +19 -8
  713. package/mobile/lib/hooks/useCarouselControls.js.map +1 -1
  714. package/mobile/lib/model/JSXBlock.d.ts +4 -5
  715. package/mobile/lib/model/LinkProps.d.ts +1 -0
  716. package/mobile/lib/model/Picture.d.ts +8 -2
  717. package/mobile/lib/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
  718. package/mobile/lib/{react/setup-fixture.js → setup-fixture.js} +4 -4
  719. package/mobile/lib/setup-fixture.js.map +1 -0
  720. package/mobile/lib/ui-kit/Button/renderArrows.d.ts +6 -4
  721. package/mobile/lib/ui-kit/Button/renderArrows.js +3 -2
  722. package/mobile/lib/ui-kit/Button/renderArrows.js.map +1 -1
  723. package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js +9 -10
  724. package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  725. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +6 -3
  726. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  727. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -12
  728. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  729. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js +2 -2
  730. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -1
  731. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +5 -3
  732. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  733. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
  734. package/mobile/src/BlockRenderer/BlockRendererOptions.ts +12 -0
  735. package/mobile/src/BlockRenderer/defaultBlockDecorator.ts +4 -0
  736. package/mobile/src/{model → BlockRenderer}/getParentBlockContent.ts +3 -3
  737. package/mobile/src/BlockRenderer/getParentBlockDef.ts +6 -0
  738. package/mobile/src/BlockRenderer/renderBlock.tsx +47 -0
  739. package/mobile/src/BlockRenderer/renderBlockList.tsx +33 -0
  740. package/mobile/src/BlockRenderer/renderChildren.ts +25 -0
  741. package/mobile/src/components/Accordion/Accordion.tsx +3 -2
  742. package/mobile/src/components/AccordionItem/AccordionItem.tsx +5 -4
  743. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -0
  744. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +31 -18
  745. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +6 -3
  746. package/mobile/src/components/Calculator/Calculator.tsx +32 -33
  747. package/mobile/src/components/Calculator/CalculatorValueBlock.tsx +10 -12
  748. package/mobile/src/components/CardTransfer/CardTransfer.tsx +3 -2
  749. package/mobile/src/components/Carousel/Carousel.example.json +2 -2
  750. package/mobile/src/components/Carousel/Carousel.tsx +29 -40
  751. package/mobile/src/components/Carousel/CarouselContainer.tsx +19 -12
  752. package/mobile/src/components/Carousel/CarouselContent.ts +5 -9
  753. package/mobile/src/components/CarouselCard/CarouselCard.tsx +22 -34
  754. package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +24 -24
  755. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +3 -3
  756. package/mobile/src/components/Catalog/Catalog.tsx +8 -13
  757. package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +2 -2
  758. package/mobile/src/components/ComparisonTable/ComparisonTableBody.tsx +6 -7
  759. package/mobile/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +3 -3
  760. package/mobile/src/components/ComparisonTable/ComparisonTableRows.tsx +10 -14
  761. package/mobile/src/components/ComparisonTable/TableCarouselContainer.tsx +3 -3
  762. package/mobile/src/components/ComparisonTable/TableRow.tsx +3 -3
  763. package/mobile/src/components/ComparisonTable/constants.ts +1 -1
  764. package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +6 -8
  765. package/mobile/src/components/ContentPage/ContentPage.tsx +21 -20
  766. package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +12 -14
  767. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +5 -4
  768. package/mobile/src/components/Footer/Footer.tsx +3 -3
  769. package/mobile/src/components/Gallery/GalleryCardInner.tsx +12 -14
  770. package/mobile/src/components/Gallery/GalleryContainer.tsx +14 -16
  771. package/mobile/src/components/Gallery/GalleryInner.tsx +9 -22
  772. package/mobile/src/components/Header/Header.tsx +3 -4
  773. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +29 -42
  774. package/mobile/src/components/InvestmentGallery/InvestmentGallery.tsx +12 -34
  775. package/mobile/src/components/OtherProducts/OtherProducts.tsx +3 -2
  776. package/mobile/src/components/OtherProductsItem/OtherProductsItem.tsx +6 -5
  777. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +3 -1
  778. package/mobile/src/components/Recommendation/Recommendation.tsx +12 -36
  779. package/mobile/src/components/RollupItem/RollupItem.tsx +9 -7
  780. package/mobile/src/components/SafeDepositRental/SafeDepositRentalContent.ts +1 -5
  781. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +3 -3
  782. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +3 -2
  783. package/mobile/src/components/Video/Video.tsx +29 -0
  784. package/mobile/src/components/Video/Video.ui.json +12 -0
  785. package/mobile/src/components/Video/VideoContent.ts +9 -0
  786. package/mobile/src/components/Video/getPaddings.ts +6 -0
  787. package/mobile/src/hooks/useCarouselControls.ts +33 -19
  788. package/mobile/src/model/JSXBlock.ts +4 -5
  789. package/mobile/src/model/LinkProps.ts +1 -0
  790. package/mobile/src/model/Picture.ts +8 -2
  791. package/{src/react → mobile/src}/setup-fixture.ts +4 -4
  792. package/mobile/src/ui-kit/Button/renderArrows.tsx +22 -17
  793. package/mobile/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +9 -13
  794. package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +35 -28
  795. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +32 -27
  796. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +10 -8
  797. package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +5 -3
  798. package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +2 -1
  799. package/package.json +1 -1
  800. package/src/BlockRenderer/BlockRendererOptions.ts +12 -0
  801. package/src/BlockRenderer/defaultBlockDecorator.ts +4 -0
  802. package/src/{model → BlockRenderer}/getParentBlockContent.ts +3 -3
  803. package/src/BlockRenderer/getParentBlockDef.ts +6 -0
  804. package/src/BlockRenderer/renderBlock.tsx +47 -0
  805. package/src/BlockRenderer/renderBlockList.tsx +33 -0
  806. package/src/BlockRenderer/renderChildren.ts +25 -0
  807. package/src/components/Accordion/Accordion.fixture.mobile.tsx +40 -55
  808. package/src/components/Accordion/Accordion.fixture.tsx +79 -52
  809. package/src/components/Accordion/Accordion.mobile.tsx +3 -2
  810. package/src/components/Accordion/Accordion.tsx +3 -2
  811. package/src/components/AccordionItem/AccordionItem.fixture.mobile.tsx +13 -2
  812. package/src/components/AccordionItem/AccordionItem.fixture.tsx +12 -1
  813. package/src/components/AccordionItem/AccordionItem.mobile.tsx +5 -4
  814. package/src/components/AccordionItem/AccordionItem.tsx +3 -2
  815. package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +1 -1
  816. package/src/components/Blocks.ts +3 -1
  817. package/src/components/Bonus/Bonus.fixture.tsx +1 -1
  818. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -0
  819. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.tsx +12 -1
  820. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +31 -18
  821. package/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +6 -3
  822. package/src/components/BusinessBlock/BusinessBlock.fixture.tsx +1 -1
  823. package/src/components/Calculator/Calculator.fixture.tsx +1 -1
  824. package/src/components/Calculator/Calculator.tsx +32 -33
  825. package/src/components/Calculator/CalculatorValueBlock.tsx +10 -12
  826. package/src/components/CardTransfer/CardTransfer.fixture.tsx +1 -1
  827. package/src/components/CardTransfer/CardTransfer.tsx +3 -2
  828. package/src/components/Carousel/Carousel.example.json +2 -2
  829. package/src/components/Carousel/Carousel.fixture.tsx +38 -45
  830. package/src/components/Carousel/Carousel.tsx +29 -40
  831. package/src/components/Carousel/CarouselContainer.tsx +19 -12
  832. package/src/components/Carousel/CarouselContent.ts +5 -9
  833. package/src/components/CarouselCard/CarouselCard.fixture.tsx +9 -4
  834. package/src/components/CarouselCard/CarouselCard.tsx +22 -34
  835. package/src/components/CarouselLinks/CarouselLinks.tsx +24 -24
  836. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +3 -3
  837. package/src/components/Catalog/Catalog.fixture.tsx +1 -1
  838. package/src/components/Catalog/Catalog.tsx +8 -13
  839. package/src/components/ComparisonTable/ComparisonTable.fixture.mobile.tsx +1 -1
  840. package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +2 -2
  841. package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +2 -2
  842. package/src/components/ComparisonTable/ComparisonTableBody.tsx +6 -7
  843. package/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +3 -3
  844. package/src/components/ComparisonTable/ComparisonTableRows.tsx +10 -14
  845. package/src/components/ComparisonTable/TableCarouselContainer.tsx +3 -3
  846. package/src/components/ComparisonTable/TableRow.tsx +3 -3
  847. package/src/components/ComparisonTable/constants.ts +1 -1
  848. package/src/components/ContactsBlock/ContactsBlock.fixture.tsx +1 -1
  849. package/src/components/ContactsBlock/ContactsBlock.tsx +6 -8
  850. package/src/components/ContentPage/ContentPage.fixture.mobile.tsx +1 -1
  851. package/src/components/ContentPage/ContentPage.fixture.tsx +1 -1
  852. package/src/components/ContentPage/ContentPage.tsx +21 -20
  853. package/src/components/ErrorBlock/ErrorBlock.fixture.tsx +1 -1
  854. package/src/components/ExchangeRateTile/CurrencyTable.tsx +12 -14
  855. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +5 -4
  856. package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +1 -1
  857. package/src/components/Footer/Footer.fixture.mobile.tsx +1 -1
  858. package/src/components/Footer/Footer.fixture.tsx +1 -1
  859. package/src/components/Footer/Footer.mobile.tsx +3 -3
  860. package/src/components/Footer/Footer.tsx +1 -1
  861. package/src/components/Gallery/Gallery.fixture.mobile.tsx +1 -1
  862. package/src/components/Gallery/Gallery.fixture.tsx +1 -1
  863. package/src/components/Gallery/GalleryCardInner.tsx +12 -14
  864. package/src/components/Gallery/GalleryContainer.tsx +14 -16
  865. package/src/components/Gallery/GalleryInner.tsx +9 -22
  866. package/src/components/GracePeriod/GracePeriod.fixture.tsx +1 -1
  867. package/src/components/Header/Header.fixture.mobile.tsx +1 -1
  868. package/src/components/Header/Header.fixture.tsx +1 -1
  869. package/src/components/Header/Header.mobile.tsx +3 -4
  870. package/src/components/Header/Header.tsx +1 -1
  871. package/src/components/Headline/Headline.fixture.mobile.tsx +1 -1
  872. package/src/components/Headline/Headline.fixture.tsx +1 -1
  873. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +1 -1
  874. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +29 -42
  875. package/src/components/InvestmentGallery/InvestmentGallery.fixture.tsx +1 -1
  876. package/src/components/InvestmentGallery/InvestmentGallery.tsx +12 -34
  877. package/src/components/InvestmentInfo/InvestmentInfo.fixture.tsx +1 -1
  878. package/src/components/LikeControl/LikeControl.fixture.tsx +1 -1
  879. package/src/components/LinkDocs/LinkDocs.fixture.mobile.tsx +1 -1
  880. package/src/components/LinkDocs/LinkDocs.fixture.tsx +1 -1
  881. package/src/components/LinkList/LinkList.fixture.tsx +1 -1
  882. package/src/components/MiniGallery/MiniGallery.fixture.tsx +1 -1
  883. package/src/components/MobileAppTile/MobileAppTile.fixture.mobile.tsx +1 -1
  884. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +1 -1
  885. package/src/components/MobileAppTile/MobileAppTile.tsx +5 -5
  886. package/src/components/OfficeMap/OfficeMap.fixture.tsx +1 -1
  887. package/src/components/OfficeServicesBlock/OfficeServicesBlock.fixture.tsx +1 -1
  888. package/src/components/OtherProducts/OtherProducts.fixture.tsx +86 -76
  889. package/src/components/OtherProducts/OtherProducts.tsx +3 -2
  890. package/src/components/OtherProductsItem/OtherProductsItem.fixture.tsx +16 -1
  891. package/src/components/OtherProductsItem/OtherProductsItem.tsx +6 -5
  892. package/src/components/PictureText/PictureText.fixture.tsx +1 -1
  893. package/src/components/Placeholder/Placeholder.fixture.mobile.tsx +1 -1
  894. package/src/components/Placeholder/Placeholder.fixture.tsx +1 -1
  895. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +1 -1
  896. package/src/components/ProductBlock/ProductBlock.fixture.tsx +13 -1
  897. package/src/components/ProductBlock/ProductBlockContent.ts +3 -1
  898. package/src/components/ProductBlock/ProductBlockInner.tsx +26 -22
  899. package/src/components/ProductGallery/ProductGallery.fixture.tsx +1 -1
  900. package/src/components/ProductTile/ProductTile.fixture.tsx +1 -1
  901. package/src/components/PromoTile/PromoTile.fixture.tsx +1 -1
  902. package/src/components/Recommendation/Recommendation.fixture.tsx +1 -1
  903. package/src/components/Recommendation/Recommendation.tsx +12 -36
  904. package/src/components/RollupItem/RollupItem.fixture.tsx +44 -11
  905. package/src/components/RollupItem/RollupItem.tsx +9 -7
  906. package/src/components/SafeDepositRental/SafeDepositRental.fixture.tsx +1 -1
  907. package/src/components/SafeDepositRental/SafeDepositRentalContent.ts +1 -5
  908. package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +1 -1
  909. package/src/components/StepsBlock/StepsBlock.fixture.tsx +1 -1
  910. package/src/components/StepsBlock/StepsBlock.tsx +1 -1
  911. package/src/components/Tabs/Tabs.fixture.tsx +1 -1
  912. package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +1 -1
  913. package/src/components/TariffsTable/TariffsTable.fixture.tsx +1 -1
  914. package/src/components/TariffsTable/TariffsTable.tsx +21 -38
  915. package/src/components/TariffsTable/TariffsTableRow.tsx +3 -3
  916. package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +1 -1
  917. package/src/components/TextBlock/TextBlock.fixture.tsx +1 -1
  918. package/src/components/Tile/Tile.fixture.tsx +1 -1
  919. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +126 -47
  920. package/src/components/VerticalLayout/VerticalLayout.tsx +3 -2
  921. package/src/components/Video/Video.fixture.tsx +33 -0
  922. package/src/components/Video/Video.tsx +29 -0
  923. package/src/components/Video/Video.ui.json +12 -0
  924. package/src/components/Video/VideoContent.ts +9 -0
  925. package/src/components/Video/getPaddings.ts +6 -0
  926. package/src/hooks/useCarouselControls.ts +33 -19
  927. package/src/model/JSXBlock.ts +4 -5
  928. package/src/model/LinkProps.ts +1 -0
  929. package/src/model/Picture.ts +8 -2
  930. package/{mobile/src/react → src}/setup-fixture.ts +4 -4
  931. package/src/ui-kit/Button/Button.fixture.tsx +1 -1
  932. package/src/ui-kit/Button/renderArrows.tsx +22 -17
  933. package/src/ui-kit/HeaderItem/HeaderItem.fixture.tsx +1 -1
  934. package/src/ui-kit/Icon/Icon.fixture.tsx +1 -1
  935. package/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +9 -13
  936. package/src/ui-kit/List/List.fixture.tsx +1 -1
  937. package/src/ui-kit/Logo/Logo.fixture.tsx +1 -1
  938. package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.tsx +1 -1
  939. package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +24 -8
  940. package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +35 -28
  941. package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +32 -27
  942. package/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +10 -8
  943. package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +5 -3
  944. package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +2 -1
  945. package/src/ui-kit/TopItem/TopItem.fixture.tsx +1 -1
  946. package/bundle/components/Carousel/CarouselNavButtons.d.ts +0 -11
  947. package/bundle/components/ContentPage/renderBlock.d.ts +0 -15
  948. package/bundle/components/ContentPage/renderBlockList.d.ts +0 -14
  949. package/bundle/components/ContentPage/renderSlots.d.ts +0 -12
  950. package/bundle/model/getParentBlockContent.d.ts +0 -2
  951. package/bundle/model/getParentBlockDef.d.ts +0 -3
  952. package/bundle/utils/sliceArray.d.ts +0 -1
  953. package/dist/components/Carousel/CarouselNavButtons.d.ts +0 -11
  954. package/dist/components/Carousel/CarouselNavButtons.js +0 -36
  955. package/dist/components/Carousel/CarouselNavButtons.js.map +0 -1
  956. package/dist/components/ContentPage/renderBlock.d.ts +0 -15
  957. package/dist/components/ContentPage/renderBlock.js +0 -29
  958. package/dist/components/ContentPage/renderBlock.js.map +0 -1
  959. package/dist/components/ContentPage/renderBlockList.d.ts +0 -14
  960. package/dist/components/ContentPage/renderBlockList.js +0 -11
  961. package/dist/components/ContentPage/renderBlockList.js.map +0 -1
  962. package/dist/components/ContentPage/renderSlots.d.ts +0 -12
  963. package/dist/components/ContentPage/renderSlots.js +0 -15
  964. package/dist/components/ContentPage/renderSlots.js.map +0 -1
  965. package/dist/model/getParentBlockContent.d.ts +0 -2
  966. package/dist/model/getParentBlockContent.js.map +0 -1
  967. package/dist/model/getParentBlockDef.d.ts +0 -3
  968. package/dist/model/getParentBlockDef.js +0 -11
  969. package/dist/model/getParentBlockDef.js.map +0 -1
  970. package/dist/react/setup-fixture.js.map +0 -1
  971. package/dist/utils/sliceArray.d.ts +0 -1
  972. package/dist/utils/sliceArray.js +0 -15
  973. package/dist/utils/sliceArray.js.map +0 -1
  974. package/lib/components/Carousel/CarouselNavButtons.d.ts +0 -11
  975. package/lib/components/Carousel/CarouselNavButtons.js +0 -34
  976. package/lib/components/Carousel/CarouselNavButtons.js.map +0 -1
  977. package/lib/components/ContentPage/renderBlock.d.ts +0 -15
  978. package/lib/components/ContentPage/renderBlock.js +0 -26
  979. package/lib/components/ContentPage/renderBlock.js.map +0 -1
  980. package/lib/components/ContentPage/renderBlockList.d.ts +0 -14
  981. package/lib/components/ContentPage/renderBlockList.js +0 -8
  982. package/lib/components/ContentPage/renderBlockList.js.map +0 -1
  983. package/lib/components/ContentPage/renderSlots.d.ts +0 -12
  984. package/lib/components/ContentPage/renderSlots.js +0 -12
  985. package/lib/components/ContentPage/renderSlots.js.map +0 -1
  986. package/lib/model/getParentBlockContent.d.ts +0 -2
  987. package/lib/model/getParentBlockContent.js +0 -6
  988. package/lib/model/getParentBlockContent.js.map +0 -1
  989. package/lib/model/getParentBlockDef.d.ts +0 -3
  990. package/lib/model/getParentBlockDef.js +0 -8
  991. package/lib/model/getParentBlockDef.js.map +0 -1
  992. package/lib/react/setup-fixture.js.map +0 -1
  993. package/lib/utils/sliceArray.d.ts +0 -1
  994. package/lib/utils/sliceArray.js +0 -12
  995. package/lib/utils/sliceArray.js.map +0 -1
  996. package/mobile/bundle/components/Carousel/CarouselNavButtons.d.ts +0 -11
  997. package/mobile/bundle/components/ContentPage/renderBlock.d.ts +0 -15
  998. package/mobile/bundle/components/ContentPage/renderBlockList.d.ts +0 -14
  999. package/mobile/bundle/components/ContentPage/renderSlots.d.ts +0 -12
  1000. package/mobile/bundle/model/getParentBlockContent.d.ts +0 -2
  1001. package/mobile/bundle/model/getParentBlockDef.d.ts +0 -3
  1002. package/mobile/bundle/utils/sliceArray.d.ts +0 -1
  1003. package/mobile/dist/components/Carousel/CarouselNavButtons.d.ts +0 -11
  1004. package/mobile/dist/components/Carousel/CarouselNavButtons.js +0 -36
  1005. package/mobile/dist/components/Carousel/CarouselNavButtons.js.map +0 -1
  1006. package/mobile/dist/components/ContentPage/renderBlock.d.ts +0 -15
  1007. package/mobile/dist/components/ContentPage/renderBlock.js +0 -29
  1008. package/mobile/dist/components/ContentPage/renderBlock.js.map +0 -1
  1009. package/mobile/dist/components/ContentPage/renderBlockList.d.ts +0 -14
  1010. package/mobile/dist/components/ContentPage/renderBlockList.js +0 -11
  1011. package/mobile/dist/components/ContentPage/renderBlockList.js.map +0 -1
  1012. package/mobile/dist/components/ContentPage/renderSlots.d.ts +0 -12
  1013. package/mobile/dist/components/ContentPage/renderSlots.js +0 -15
  1014. package/mobile/dist/components/ContentPage/renderSlots.js.map +0 -1
  1015. package/mobile/dist/model/getParentBlockContent.d.ts +0 -2
  1016. package/mobile/dist/model/getParentBlockContent.js.map +0 -1
  1017. package/mobile/dist/model/getParentBlockDef.d.ts +0 -3
  1018. package/mobile/dist/model/getParentBlockDef.js +0 -11
  1019. package/mobile/dist/model/getParentBlockDef.js.map +0 -1
  1020. package/mobile/dist/react/setup-fixture.js.map +0 -1
  1021. package/mobile/dist/utils/sliceArray.d.ts +0 -1
  1022. package/mobile/dist/utils/sliceArray.js +0 -15
  1023. package/mobile/dist/utils/sliceArray.js.map +0 -1
  1024. package/mobile/lib/components/Carousel/CarouselNavButtons.d.ts +0 -11
  1025. package/mobile/lib/components/Carousel/CarouselNavButtons.js +0 -34
  1026. package/mobile/lib/components/Carousel/CarouselNavButtons.js.map +0 -1
  1027. package/mobile/lib/components/ContentPage/renderBlock.d.ts +0 -15
  1028. package/mobile/lib/components/ContentPage/renderBlock.js +0 -26
  1029. package/mobile/lib/components/ContentPage/renderBlock.js.map +0 -1
  1030. package/mobile/lib/components/ContentPage/renderBlockList.d.ts +0 -14
  1031. package/mobile/lib/components/ContentPage/renderBlockList.js +0 -8
  1032. package/mobile/lib/components/ContentPage/renderBlockList.js.map +0 -1
  1033. package/mobile/lib/components/ContentPage/renderSlots.d.ts +0 -12
  1034. package/mobile/lib/components/ContentPage/renderSlots.js +0 -12
  1035. package/mobile/lib/components/ContentPage/renderSlots.js.map +0 -1
  1036. package/mobile/lib/model/getParentBlockContent.d.ts +0 -2
  1037. package/mobile/lib/model/getParentBlockContent.js +0 -6
  1038. package/mobile/lib/model/getParentBlockContent.js.map +0 -1
  1039. package/mobile/lib/model/getParentBlockDef.d.ts +0 -3
  1040. package/mobile/lib/model/getParentBlockDef.js +0 -8
  1041. package/mobile/lib/model/getParentBlockDef.js.map +0 -1
  1042. package/mobile/lib/react/setup-fixture.js.map +0 -1
  1043. package/mobile/lib/utils/sliceArray.d.ts +0 -1
  1044. package/mobile/lib/utils/sliceArray.js +0 -12
  1045. package/mobile/lib/utils/sliceArray.js.map +0 -1
  1046. package/mobile/src/components/Carousel/CarouselNavButtons.tsx +0 -51
  1047. package/mobile/src/components/ContentPage/renderBlock.tsx +0 -61
  1048. package/mobile/src/components/ContentPage/renderBlockList.tsx +0 -28
  1049. package/mobile/src/components/ContentPage/renderSlots.tsx +0 -32
  1050. package/mobile/src/model/getParentBlockDef.ts +0 -12
  1051. package/mobile/src/utils/sliceArray.ts +0 -15
  1052. package/src/components/Carousel/CarouselNavButtons.tsx +0 -51
  1053. package/src/components/ContentPage/renderBlock.tsx +0 -61
  1054. package/src/components/ContentPage/renderBlockList.tsx +0 -28
  1055. package/src/components/ContentPage/renderSlots.tsx +0 -32
  1056. package/src/model/.CarouselCardVersion.ts.icloud +0 -0
  1057. package/src/model/getParentBlockDef.ts +0 -12
  1058. package/src/utils/sliceArray.ts +0 -15
@@ -9,10 +9,10 @@ const TableCarouselContainer_1 = require("../ComparisonTable/TableCarouselContai
9
9
  const constants_1 = require("./constants");
10
10
  const TariffsTableCell_1 = require("./TariffsTableCell");
11
11
  const TariffsTableRowContainer_1 = require("./TariffsTableRowContainer");
12
- exports.TariffsTableRow = (0, uni_jsx_1.JSX)(({ row: { header, data }, activeCardIndex, rowIdx, ...rest }) => {
12
+ exports.TariffsTableRow = (0, uni_jsx_1.JSX)(({ row: { header, data }, activeIndex, rowIdx, ...rest }) => {
13
13
  const [tableInner, setTableInner] = (0, hooks_1.useState)(undefined);
14
14
  const [openTableInnerIdx, setOpenTableInnerIdx] = (0, hooks_1.useState)(undefined);
15
15
  const onHideContentClick = () => setTableInner(undefined);
16
- return ((0, jsx_runtime_1.jsxs)(TariffsTableRowContainer_1.TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [(0, jsx_runtime_1.jsx)("div", { className: `text-s py-5 ${constants_1.FIRST_CELL_CLASSES} ${constants_1.DIVIDER_CLASSES}`, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center text-primary-text", role: "cell", children: [header?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mr-[14px] max-w-6 max-h-6", image: (0, getIconWithVersion_1.getIconWithVersion)(header.icon), width: "24px", height: "24px", asSVG: true })) : null, header?.title ? (0, jsx_runtime_1.jsx)("div", { className: "text-m-light", children: header?.title }) : null] }) }), data?.length ? ((0, jsx_runtime_1.jsx)(TableCarouselContainer_1.TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: constants_1.COLUMN_WIDTH, version: "tariff", children: data.map((cells, i) => ((0, jsx_runtime_1.jsx)(TariffsTableCell_1.TariffsTableCell, { cells: cells, rowIdx: rowIdx, cellIdx: i, setTableInner: setTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: setOpenTableInnerIdx, ...rest }, String(i)))) })) : null] }));
16
+ return ((0, jsx_runtime_1.jsxs)(TariffsTableRowContainer_1.TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [(0, jsx_runtime_1.jsx)("div", { className: `text-s py-5 ${constants_1.FIRST_CELL_CLASSES} ${constants_1.DIVIDER_CLASSES}`, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center text-primary-text", role: "cell", children: [header?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mr-[14px] max-w-6 max-h-6", image: (0, getIconWithVersion_1.getIconWithVersion)(header.icon), width: "24px", height: "24px", asSVG: true })) : null, header?.title ? (0, jsx_runtime_1.jsx)("div", { className: "text-m-light", children: header?.title }) : null] }) }), data?.length ? ((0, jsx_runtime_1.jsx)(TableCarouselContainer_1.TableCarouselContainer, { activeIndex: activeIndex, columnWidth: constants_1.COLUMN_WIDTH, version: "tariff", children: data.map((cells, i) => ((0, jsx_runtime_1.jsx)(TariffsTableCell_1.TariffsTableCell, { cells: cells, rowIdx: rowIdx, cellIdx: i, setTableInner: setTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: setOpenTableInnerIdx, ...rest }, String(i)))) })) : null] }));
17
17
  });
18
18
  //# sourceMappingURL=TariffsTableRow.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TariffsTableRow.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/T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B,IAAI,2BAAe,EAAE,YACpE,iCAAK,SAAS,EAAC,qCAAqC,EAAC,IAAI,EAAC,MAAM,aAC7D,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CACd,uBAAC,SAAG,IACF,SAAS,EAAC,2BAA2B,EACrC,KAAK,EAAE,IAAA,uCAAkB,EAAC,MAAM,CAAC,IAAI,CAAC,EACtC,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,cAAc,YAAE,MAAM,EAAE,KAAK,GAAO,CAAC,CAAC,CAAC,IAAI,IACvE,GACF,EACL,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,+CAAsB,IACrB,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,wBAAY,EACzB,OAAO,EAAC,QAAQ,YAEf,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,uBAAC,mCAAgB,IAEf,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,CAAC,EACV,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,UAAU,EACtB,iBAAiB,EAAE,iBAAiB,EACpC,oBAAoB,EAAE,oBAAoB,KACtC,IAAI,IARH,MAAM,CAAC,CAAC,CAAC,CASd,CACH,CAAC,GACqB,CAC1B,CAAC,CAAC,CAAC,IAAI,IACiB,CAC5B,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -2,6 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.VerticalLayout = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const renderChildren_1 = require("../../BlockRenderer/renderChildren");
5
6
  const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
6
7
  const alignStyle = {
7
8
  left: 'items-start',
@@ -22,13 +23,13 @@ const backgroundStyleMap = {
22
23
  primary: 'bg-white',
23
24
  secondary: 'bg-primary-main',
24
25
  };
25
- exports.VerticalLayout = (0, uni_jsx_1.JSX)(({ className = '', children, gap = '', align = 'left', version = 'transparent', ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: [
26
+ exports.VerticalLayout = (0, uni_jsx_1.JSX)(({ className = '', gap = '', align = 'left', version = 'transparent', ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: [
26
27
  'flex flex-col',
27
28
  gapStyleMap[gap],
28
29
  alignStyle[align],
29
30
  backgroundStyleMap[version],
30
31
  className,
31
- ].join(' '), ...rest, children: children })));
32
+ ].join(' '), ...rest, children: (0, renderChildren_1.renderChildren)(rest) })));
32
33
  exports.VerticalLayout.childrenTypes = {
33
34
  exclude: ['VerticalLayout'],
34
35
  };
@@ -1 +1 @@
1
- {"version":3,"file":"VerticalLayout.js","sourceRoot":"","sources":["../../../src/components/VerticalLayout/VerticalLayout.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,4DAAyD;AAKzD,MAAM,UAAU,GAA8B;IAC5C,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,cAAc;IACtB,KAAK,EAAE,WAAW;CACnB,CAAC;AAEF,MAAM,WAAW,GAA+B;IAC9C,GAAG,EAAE,QAAQ;IACb,EAAE,EAAE,OAAO;IACX,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,EAAE;CACP,CAAC;AAEF,MAAM,kBAAkB,GAAgD;IACtE,WAAW,EAAE,EAAE;IACf,OAAO,EAAE,UAAU;IACnB,SAAS,EAAE,iBAAiB;CAC7B,CAAC;AAEW,QAAA,cAAc,GAAkC,IAAA,aAAG,EAC9D,CAAC,EAAE,S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2BAAY,IACX,SAAS,EAAE;QACT,eAAe;QACf,WAAW,CAAC,GAAG,CAAC;QAChB,UAAU,CAAC,KAAK,CAAC;QACjB,kBAAkB,CAAC,OAAO,CAAC;QAC3B,SAAS;KACV,CAAC,IAAI,CAAC,GAAG,CAAC,KACP,IAAI,YAEP,IAAA,+BAAc,EAAC,IAAI,CAAC,GACR,CAChB,CACF,CAAC;AAEF,sBAAc,CAAC,aAAa,GAAG;IAC7B,OAAO,EAAE,CAAC,gBAAgB,CAAC;CAC5B,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { UniBlockProps } from '../../model/JSXBlock';
2
+ import type { VideoContent } from './VideoContent';
3
+ interface VideoProps extends VideoContent, UniBlockProps {
4
+ }
5
+ export declare const Video: import("@redneckz/uni-jsx").UNIComponent<VideoProps, any, any>;
6
+ export {};
@@ -0,0 +1,12 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.Video = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
6
+ const Headline_1 = require("../Headline/Headline");
7
+ const getPaddings_1 = require("./getPaddings");
8
+ exports.Video = (0, uni_jsx_1.JSX)((props) => {
9
+ const { title, src, previewImg, className = '', ...rest } = props;
10
+ return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `bg-white ${(0, getPaddings_1.getPaddings)(className)} ${className}`, ...rest, children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, headlineVersion: "M" }), src ? ((0, jsx_runtime_1.jsx)("video", { className: "m-auto w-full object-fill", preload: "metadata", poster: previewImg?.src, style: { maxHeight: 524 }, controls: true, children: (0, jsx_runtime_1.jsx)("source", { src: src }) })) : null] }));
11
+ });
12
+ //# sourceMappingURL=Video.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Video.js","sourceRoot":"","sources":["../../../src/components/Video/Video.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,mDAAgD;AAChD,+CAA4C;AAK/B,QAAA,KAAK,GAAG,IAAA,aAAG,EAAa,CAAC,KAAK,EAAE,EAAE;IAC7C,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAElE,OAAO,CACL,wBAAC,2BAAY,IAAC,SAAS,EAAE,YAAY,IAAA,yBAAW,EAAC,SAAS,CAAC,IAAI,SAAS,EAAE,KAAM,IAAI,aAClF,uBAAC,mBAAQ,IAAC,KAAK,EAAE,KAAK,EAAE,eAAe,EAAC,GAAG,GAAG,EAC7C,GAAG,CAAC,CAAC,CAAC,CACL,kCACE,SAAS,EAAC,2BAA2B,EACrC,OAAO,EAAC,UAAU,EAClB,MAAM,EAAE,UAAU,EAAE,GAAG,EACvB,KAAK,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,EACzB,QAAQ,kBAER,mCAAQ,GAAG,EAAE,GAAG,GAAI,GACd,CACT,CAAC,CAAC,CAAC,IAAI,IACK,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { TitleProps } from '../../model/HeadlineType';
2
+ import type { Picture } from '../../model/Picture';
3
+ export interface VideoContent extends TitleProps {
4
+ /** @title URL */
5
+ src?: string;
6
+ /** @title Заставка */
7
+ previewImg?: Picture;
8
+ }
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=VideoContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VideoContent.js","sourceRoot":"","sources":["../../../src/components/Video/VideoContent.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export declare const getPaddings: (className: string) => "py-6 px-11" | "py-12 px-32";
@@ -0,0 +1,7 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.getPaddings = void 0;
3
+ const getColSpan_1 = require("../../utils/getColSpan");
4
+ const MIN_COL_SPAN = 10;
5
+ const getPaddings = (className) => (0, getColSpan_1.getColSpan)(className) < MIN_COL_SPAN ? 'py-6 px-11' : 'py-12 px-32';
6
+ exports.getPaddings = getPaddings;
7
+ //# sourceMappingURL=getPaddings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPaddings.js","sourceRoot":"","sources":["../../../src/components/Video/getPaddings.ts"],"names":[],"mappings":";;AAAA,uDAAoD;AAEpD,MAAM,YAAY,GAAG,EAAE,CAAC;AAEjB,MAAM,WAAW,GAAG,CAAC,SAAiB,EAAE,EAAE,CAC/C,IAAA,uBAAU,EAAC,SAAS,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa,CAAC;AADzD,QAAA,WAAW,eAC8C"}
@@ -3,11 +3,13 @@ export interface CarouselControls {
3
3
  dec: () => void;
4
4
  canInc: boolean;
5
5
  canDec: boolean;
6
+ isScrollAvailable: boolean;
6
7
  }
7
- interface CarouselProps {
8
- itemsCount: number;
8
+ interface CarouselControlsProps {
9
+ itemCount: number;
9
10
  visibleItemCount?: number;
10
11
  isCyclic?: boolean;
12
+ container?: HTMLDivElement | null;
11
13
  }
12
- export declare const useCarouselControls: ({ itemsCount, visibleItemCount, isCyclic, }: CarouselProps) => [number, CarouselControls];
14
+ export declare const useCarouselControls: (props: CarouselControlsProps) => [number, CarouselControls];
13
15
  export {};
@@ -1,15 +1,15 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.useCarouselControls = void 0;
3
3
  const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
4
- const useCarouselControls = ({ itemsCount, visibleItemCount = itemsCount, isCyclic, }) => {
4
+ const useCarouselControls = (props) => {
5
+ const { itemCount, visibleItemCount, isCyclic } = props;
5
6
  const [activeIndex, setActiveIndex] = (0, hooks_1.useState)(0);
6
- const inc = (0, hooks_1.useCallback)(() => setActiveIndex((_) => (isCyclic ? (_ + 1) % itemsCount : Math.min(_ + 1, itemsCount - 1))), [isCyclic, itemsCount]);
7
- const dec = (0, hooks_1.useCallback)(() => setActiveIndex((_) => (isCyclic ? (itemsCount + _ - 1) % itemsCount : Math.max(_ - 1, 0))), [isCyclic, itemsCount]);
8
- const isScrollAvailable = itemsCount > visibleItemCount;
9
- const isCyclicAndScrollAvailable = isCyclic && isScrollAvailable;
10
- const canInc = isCyclicAndScrollAvailable ||
11
- (isScrollAvailable && itemsCount - activeIndex > visibleItemCount);
12
- const canDec = isCyclicAndScrollAvailable || Boolean(isScrollAvailable && activeIndex > 0);
7
+ const inc = (0, hooks_1.useCallback)(() => setActiveIndex((_) => (isCyclic ? (_ + 1) % itemCount : Math.min(_ + 1, itemCount - 1))), [isCyclic, itemCount]);
8
+ const dec = (0, hooks_1.useCallback)(() => setActiveIndex((_) => (isCyclic ? (itemCount + _ - 1) % itemCount : Math.max(_ - 1, 0))), [isCyclic, itemCount]);
9
+ const canInc = isCyclic ||
10
+ (isScrollable(activeIndex, props) && activeIndex < itemCount - (visibleItemCount || 1));
11
+ const canDec = isCyclic || activeIndex > 0;
12
+ const isScrollAvailable = canDec || canInc;
13
13
  return [
14
14
  activeIndex,
15
15
  {
@@ -17,8 +17,19 @@ const useCarouselControls = ({ itemsCount, visibleItemCount = itemsCount, isCycl
17
17
  dec,
18
18
  canInc,
19
19
  canDec,
20
+ isScrollAvailable,
20
21
  },
21
22
  ];
22
23
  };
23
24
  exports.useCarouselControls = useCarouselControls;
25
+ function isScrollable(activeIndex, { itemCount, visibleItemCount, container }) {
26
+ if (visibleItemCount) {
27
+ return itemCount > visibleItemCount;
28
+ }
29
+ if (container) {
30
+ const scrollLeft = (container.scrollWidth * activeIndex) / itemCount;
31
+ return scrollLeft + container.clientWidth < container.scrollWidth;
32
+ }
33
+ return false;
34
+ }
24
35
  //# sourceMappingURL=useCarouselControls.js.map
@@ -1 +1 @@
1
- {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G,CAAC,gBAAgB,IAAI,CAAC,CAAC,CAAC,CAAC;IAC1F,MAAM,MAAM,GAAG,QAAQ,IAAI,WAAW,GAAG,CAAC,CAAC;IAC3C,MAAM,iBAAiB,GAAG,MAAM,IAAI,MAAM,CAAC;IAE3C,OAAO;QACL,WAAW;QACX;YACE,GAAG;YACH,GAAG;YACH,MAAM;YACN,MAAM;YACN,iBAAiB;SAClB;KACF,CAAC;AACJ,CAAC,CAAC;AA9BW,QAAA,mBAAmB,uBA8B9B;AAEF,SAAS,YAAY,CACnB,WAAmB,EACnB,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAyB;IAEjE,IAAI,gBAAgB,EAAE;QACpB,OAAO,SAAS,GAAG,gBAAgB,CAAC;KACrC;IAED,IAAI,SAAS,EAAE;QACb,MAAM,UAAU,GAAG,CAAC,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC,GAAG,SAAS,CAAC;QAErE,OAAO,UAAU,GAAG,SAAS,CAAC,WAAW,GAAG,SAAS,CAAC,WAAW,CAAC;KACnE;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -1,13 +1,12 @@
1
1
  import type { UNIComponent } from '@redneckz/uni-jsx';
2
- import type { BlockAncestors, SlotName } from './BlockDecorator';
3
- import type { BlockDef, ContentPageDef } from './ContentPageDef';
2
+ import type { BlockRendererOptions } from '../BlockRenderer/BlockRendererOptions';
3
+ import type { SlotName } from './BlockDecorator';
4
+ import type { BlockDef } from './ContentPageDef';
4
5
  import type { VNode } from './VNode';
5
6
  export interface UniBlockProps {
6
7
  className?: string;
7
- page?: ContentPageDef;
8
8
  block?: BlockDef;
9
- ancestors?: BlockAncestors;
10
- slots?: Record<string, VNode>;
9
+ options?: BlockRendererOptions;
11
10
  }
12
11
  export declare type JSXBlock<BlockProps extends UniBlockProps = UniBlockProps> = UNIComponent<BlockProps, any, VNode | VNode[]> & {
13
12
  childrenTypes?: string[] | {
@@ -12,6 +12,7 @@ export declare type Target = '' | '_self' | '_blank' | '_parent' | '_top';
12
12
  export interface LinkCommonProps {
13
13
  /** @title URL (href) */
14
14
  href?: string;
15
+ /** @default "" */
15
16
  target?: Target;
16
17
  }
17
18
  /**
@@ -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
  /**
@@ -4,10 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  require("@redneckz/uni-jsx/lib/setup.react");
6
6
  const react_1 = require("react");
7
- const handlerDecorator_1 = require("../hooks/handlerDecorator");
8
- const useRouter_1 = require("../hooks/useRouter");
9
- const ProjectSettings_1 = require("../ProjectSettings");
10
- const wlc_json_1 = __importDefault(require("../wlc.json"));
7
+ const handlerDecorator_1 = require("./hooks/handlerDecorator");
8
+ const useRouter_1 = require("./hooks/useRouter");
9
+ const ProjectSettings_1 = require("./ProjectSettings");
10
+ const wlc_json_1 = __importDefault(require("./wlc.json"));
11
11
  ProjectSettings_1.projectSettings.setup(wlc_json_1.default);
12
12
  useRouter_1.useRouter.setup(() => {
13
13
  const [href, setHref] = (0, react_1.useState)(globalThis.location.href);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup-fixture.js","sourceRoot":"","sources":["../src/setup-fixture.ts"],"names":[],"mappings":";;;;AAAA,6CAA2C;AAC3C,iCAAiC;AACjC,+DAA4D;AAC5D,iDAA8C;AAC9C,uDAAoD;AACpD,0DAA6B;AAE7B,iCAAe,CAAC,KAAK,CAAC,kBAAG,CAAC,CAAC;AAE3B,qBAAS,CAAC,KAAK,CAAC,GAAG,EAAE;IACnB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,gBAAQ,EAAS,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,mCAAgB,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;
@@ -2,8 +2,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.renderArrows = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const ArrowButton_1 = require("./ArrowButton");
5
- function renderArrows({ handler, isShown, btnClass, className = '', isDisabled = false, }) {
6
- return ((0, jsx_runtime_1.jsxs)("div", { children: [isShown[0] || isDisabled ? ((0, jsx_runtime_1.jsx)(ArrowButton_1.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 ? ((0, jsx_runtime_1.jsx)(ArrowButton_1.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] }));
5
+ function renderArrows({ dec, inc, canDec, canInc, btnClass, className = '', }) {
6
+ const isVisible = canDec || canInc;
7
+ return isVisible ? ((0, jsx_runtime_1.jsxs)("div", { children: [canDec ? ((0, jsx_runtime_1.jsx)(ArrowButton_1.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 ? ((0, jsx_runtime_1.jsx)(ArrowButton_1.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;
7
8
  }
8
9
  exports.renderArrows = renderArrows;
9
10
  //# sourceMappingURL=renderArrows.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderArrows.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/renderArrows.tsx"],"names":[],"mappings":";;;AAAA,+CAA4C;AAU5C,SAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,OAAO,EACP,QAAQ,EACR,SAAS,GAAG,EAAE,EACd,UAAU,GAAG,KAAK,GACA;IAClB,OAAO,CACL,4CACG,OAAO,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,CAC1B,uBAAC,yBAAW,IACV,SAAS,EAAE,iBAAiB,QAAQ,CAAC,CAAC,CAAC,IAAI,SAAS,EAAE,EACtD,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EACnB,SAAS,EAAC,6FAAkB,wBACT,aAAa,EAChC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,GACrB,CACH,CAAC,CAAC,CAAC,IAAI,EACP,OAAO,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,CAC1B,uBAAC,yBAAW,IACV,SAAS,EAAE,4BAA4B,QAAQ,CAAC,CAAC,CAAC,IAAI,SAAS,EAAE,EACjE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EACnB,SAAS,EAAC,mGAAmB,wBACV,cAAc,EACjC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,GACrB,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC;AA7BD,oCA6BC"}
1
+ {"version":3,"file":"renderArrows.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/renderArrows.tsx"],"names":[],"mappings":";;;AAAA,+CAA4C;AAY5C,SAAgB,YAAY,CAAC,EAC3B,GAAG,EACH,GAAG,EACH,MAAM,EACN,MAAM,EACN,QAAQ,EACR,SAAS,GAAG,EAAE,GACI;IAClB,MAAM,SAAS,GAAG,MAAM,IAAI,MAAM,CAAC;IAEnC,OAAO,SAAS,CAAC,CAAC,CAAC,CACjB,4CACG,MAAM,CAAC,CAAC,CAAC,CACR,uBAAC,yBAAW,IACV,SAAS,EAAE,iBAAiB,QAAQ,CAAC,CAAC,CAAC,IAAI,SAAS,EAAE,EACtD,OAAO,EAAE,GAAG,EACZ,SAAS,EAAC,6FAAkB,wBACT,aAAa,EAChC,QAAQ,EAAE,CAAC,MAAM,GACjB,CACH,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,CAAC,CAAC,CAAC,CACR,uBAAC,yBAAW,IACV,SAAS,EAAE,4BAA4B,QAAQ,CAAC,CAAC,CAAC,IAAI,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;AAhCD,oCAgCC"}
@@ -2,20 +2,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.InnerTableBodyItem = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
5
+ const useCarouselControls_1 = require("../../hooks/useCarouselControls");
6
6
  const renderArrows_1 = require("../Button/renderArrows");
7
7
  const COLUMN_WIDTH = 140;
8
8
  exports.InnerTableBodyItem = (0, uni_jsx_1.JSX)(({ rows }) => {
9
- const [activeColumnIndex, setActiveColumnIndex] = (0, hooks_1.useState)(0);
10
- const handleNextClick = () => setActiveColumnIndex(activeColumnIndex + 1);
11
- const handlePrevClick = () => setActiveColumnIndex(activeColumnIndex - 1);
12
9
  const rowsLength = rows?.[0]?.length ?? 0;
13
- const showNextButton = rowsLength > 3 && rowsLength > activeColumnIndex + 4;
14
- const showPrevButton = activeColumnIndex > 0;
15
- return ((0, jsx_runtime_1.jsxs)("div", { children: [rows?.map(renderRow(activeColumnIndex)), (0, renderArrows_1.renderArrows)({
16
- handler: [handlePrevClick, handleNextClick],
17
- isShown: [showPrevButton, showNextButton],
18
- btnClass: ['right-3 top-24', 'right-3 top-2'],
10
+ const CARD_VIEW_COUNT = 5;
11
+ const [activeIndex, controls] = (0, useCarouselControls_1.useCarouselControls)({
12
+ itemCount: rowsLength,
13
+ visibleItemCount: CARD_VIEW_COUNT,
14
+ });
15
+ return ((0, jsx_runtime_1.jsxs)("div", { children: [rows?.map(renderRow(activeIndex)), (0, renderArrows_1.renderArrows)({
16
+ ...controls,
17
+ btnClass: ['left-3 top-20', 'right-3 top-20'],
19
18
  className: '',
20
19
  })] }));
21
20
  });
@@ -1 +1 @@
1
- {"version":3,"file":"InnerTableBodyItem.js","sourceRoot":"","sources":["../../../src/ui-kit/InnerTable/InnerTableBodyItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAuD;AACvD,yDAAsD;AAGtD,MAAM,YAAY,GAAG,GAAG,CAAC;AAMZ,QAAA,kBAAkB,GAAG,IAAA,aAAG,EAA0B,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IAC1E,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC;IAE9D,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,oBAAoB,CAAC,iBAAiB,GAAG,CAAC,CAAC,CAAC;IAC1E,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,oBAAoB,CAAC,iBAAiB,GAAG,CAAC,CAAC,CAAC;IAE1E,MAAM,UAAU,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,IAAI,CAAC,CAAC;IAC1C,MAAM,cAAc,GAAG,UAAU,GAAG,CAAC,IAAI,UAAU,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,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,gCAAqB,SAAS,EAAE,kCAAkC,YAC/D,IAAI,IADG,MAAM,CAAC,CAAC,CAAC,CAEb,CACP,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC"}
@@ -17,8 +17,11 @@ exports.SwipeListControl = (0, uni_jsx_1.JSX)(({ className, gap = constants_1.DE
17
17
  showDots,
18
18
  children,
19
19
  };
20
- const handleScroll = (e) => {
20
+ const handleScroll = (0, hooks_1.useCallback)((e) => {
21
21
  const { scrollLeft, clientWidth, childElementCount, scrollWidth, children: childrenCollection, } = e?.currentTarget;
22
+ if (!childrenCollection[0]) {
23
+ return;
24
+ }
22
25
  // horizontal PADDING / 2 to compensate padding-margin combo of child container
23
26
  // without CSS calc function, as wrapper element gets bigger in the DOM, remaining same visually
24
27
  const itemWidth = childrenCollection[0].offsetWidth - padding / 2;
@@ -36,7 +39,7 @@ exports.SwipeListControl = (0, uni_jsx_1.JSX)(({ className, gap = constants_1.DE
36
39
  }
37
40
  setActiveIndex(index);
38
41
  setIndexFraction(fraction);
39
- };
42
+ }, [gap, padding, activeIndex, onSlideChange]);
40
43
  return ((0, jsx_runtime_1.jsxs)("div", { className: className, children: [(0, jsx_runtime_1.jsx)(SwipeListControlList_1.SwipeListControlList, { gap: gap, padding: padding, activeIndex: activeIndex, onScroll: handleScroll, children: children }), (0, jsx_runtime_1.jsx)(SwipeListControlDots_1.SwipeListControlDots, { ...dotsProps })] }));
41
44
  });
42
45
  //# sourceMappingURL=SwipeListControl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwipeListControl.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControl.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAuD;AACvD,2CAA2D;AAC3D,iEAA8D;AAC9D,iEAAyF;AAEzF,yDAAsD;AACtD,6DAA0D;AAE7C,QAAA,gBAAgB,GAAG,IAAA,aAA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,EACxB,QAAQ,EAAE,YAAY,YAErB,QAAQ,GACY,EACvB,uBAAC,2CAAoB,OAAK,SAAS,GAAI,IACnC,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"SwipeListControl.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControl.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,2CAA2D;AAC3D,iEAA8D;AAC9D,iEAA8D;AAG9D,yDAAsD;AACtD,6DAA0D;AAE7C,QAAA,gBAAgB,GAAG,IAAA,aAAG,EACjC,CAAC,EACC,SAAS,EACT,GAAG,GAAG,uBAAW,EACjB,OAAO,GAAG,2BAAe,EACzB,QAAQ,GAAG,IAAI,EACf,aAAa,EACb,QAAQ,GACT,EAAE,EAAE;IACH,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC;IAClD,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC;IAEtD,MAAM,SAAS,GAAG;QAChB,WAAW;QACX,aAAa;QACb,QAAQ;QACR,QAAQ;KACT,CAAC;IAEF,MAAM,YAAY,GAA0C,IAAA,mBAAW,EACrE,CAAC,CAAC,EAAE,EAAE;QACJ,MAAM,EACJ,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,QAAQ,EAAE,kBAAkB,GAC7B,GAAG,CAAC,EAAE,aAA4B,CAAC;QACpC,IAAI,CAAC,kBAAkB,CAAC,CAAC,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,IAAA,iCAAe,EAAC;YACnC,GAAG;YACH,OAAO;YACP,WAAW;YACX,WAAW;YACX,iBAAiB;YACjB,SAAS;SACV,CAAC,CAAC;QAEH,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAA,6BAAa,EAAC,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,iCAAK,SAAS,EAAE,SAAS,aACvB,uBAAC,2CAAoB,IACnB,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,YAAY,YAErB,QAAQ,GACY,EACvB,uBAAC,2CAAoB,OAAK,SAAS,GAAI,IACnC,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -2,21 +2,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.SwipeListControlDots = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
5
6
  const DOT_STYLES = 'bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full';
6
7
  const BASE_DOT_WIDTH = 6;
7
8
  const ACTIVE_DOT_WIDTH_CHANGE = 16;
8
9
  const BASE_DOT_OPACITY = 0.3;
9
10
  const ACTIVE_DOT_OPACITY_CHANGE = 0.7;
10
11
  exports.SwipeListControlDots = (0, uni_jsx_1.JSX)(({ children, activeIndex, indexFraction, showDots }) => {
11
- const handleClick = (idx) => (e) => {
12
+ const handleClick = (0, hooks_1.useCallback)((idx) => (e) => {
12
13
  if (idx === activeIndex) {
13
14
  return;
14
15
  }
15
16
  const contentContainer = e.currentTarget.parentElement
16
17
  ?.previousElementSibling;
17
18
  contentContainer?.children[idx]?.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
18
- };
19
- return showDots && children?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex gap-2 mx-auto mt-5 w-fit", children: children?.map((_, idx) => ((0, jsx_runtime_1.jsx)("div", { onClick: handleClick(idx), className: `${DOT_STYLES}`, style: getDotStyles(idx, activeIndex, indexFraction), "aria-hidden": true }, String(idx)))) })) : null;
19
+ }, [activeIndex]);
20
+ return showDots && children ? ((0, jsx_runtime_1.jsx)("div", { className: "flex gap-2 mx-auto mt-5 w-fit", children: children.length && children.map ? (children.map((_, idx) => ((0, jsx_runtime_1.jsx)("div", { onClick: handleClick(idx), className: DOT_STYLES, style: getDotStyles(idx, activeIndex, indexFraction), "aria-hidden": true }, String(idx))))) : ((0, jsx_runtime_1.jsx)("div", { className: DOT_STYLES, style: createDotStyle(1) })) })) : null;
20
21
  });
21
22
  const getDotStyles = (currentIdx, activeIndex, indexFraction) => {
22
23
  if (currentIdx < activeIndex || currentIdx > activeIndex + 1) {
@@ -24,14 +25,10 @@ const getDotStyles = (currentIdx, activeIndex, indexFraction) => {
24
25
  }
25
26
  const leftIndexMod = 1 - indexFraction;
26
27
  const rightIndexMod = indexFraction;
27
- return currentIdx === activeIndex
28
- ? {
29
- opacity: `${BASE_DOT_OPACITY + ACTIVE_DOT_OPACITY_CHANGE * leftIndexMod}`,
30
- width: `${BASE_DOT_WIDTH + ACTIVE_DOT_WIDTH_CHANGE * leftIndexMod}px`,
31
- }
32
- : {
33
- opacity: `${BASE_DOT_OPACITY + ACTIVE_DOT_OPACITY_CHANGE * rightIndexMod}`,
34
- width: `${BASE_DOT_WIDTH + ACTIVE_DOT_WIDTH_CHANGE * rightIndexMod}px`,
35
- };
28
+ return createDotStyle(currentIdx === activeIndex ? leftIndexMod : rightIndexMod);
36
29
  };
30
+ const createDotStyle = (indexModifier) => ({
31
+ opacity: `${BASE_DOT_OPACITY + ACTIVE_DOT_OPACITY_CHANGE * indexModifier}`,
32
+ width: `${BASE_DOT_WIDTH + ACTIVE_DOT_WIDTH_CHANGE * indexModifier}px`,
33
+ });
37
34
  //# sourceMappingURL=SwipeListControlDots.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwipeListControlDots.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControlDots.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;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;AAQzB,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,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,gCAAK,SAAS,EAAC,+BAA+B,YAC3C,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,GAAW,EAAE,EAAE,CAAC,CACjC,gCAEE,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,+CAAwC;AACxC,uDAA0D;AAE1D,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;AAQzB,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,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AG,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"}
@@ -5,7 +5,7 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const constants_1 = require("./constants");
6
6
  const SwipeListControlItem_1 = require("./SwipeListControlItem");
7
7
  const getContainerStyle_1 = require("./utils/getContainerStyle");
8
- exports.SwipeListControlList = (0, uni_jsx_1.JSX)(({ className = '', children, activeIndex, onScroll, gap = constants_1.DEFAULT_GAP, padding = constants_1.DEFAULT_PADDING, }) => {
9
- return ((0, jsx_runtime_1.jsx)("div", { className: `overflow-auto flex horizontal-list no-scrollbar ${className}`, style: { ...(0, getContainerStyle_1.getContainerStyle)(padding), gap: `${gap}px` }, role: "list", onScroll: onScroll, children: children?.length ? (children?.map((child, idx) => ((0, jsx_runtime_1.jsx)(SwipeListControlItem_1.SwipeListControlItem, { style: (0, getContainerStyle_1.getContainerStyle)(padding / 4), "aria-current": Boolean(activeIndex === idx), children: child }, String(idx))))) : ((0, jsx_runtime_1.jsx)(SwipeListControlItem_1.SwipeListControlItem, { children: children })) }));
8
+ exports.SwipeListControlList = (0, uni_jsx_1.JSX)(({ className = '', activeIndex = -1, gap = constants_1.DEFAULT_GAP, padding = constants_1.DEFAULT_PADDING, children, onScroll, }) => {
9
+ return children ? ((0, jsx_runtime_1.jsx)("div", { className: `overflow-auto flex horizontal-list no-scrollbar ${className}`, style: { ...(0, getContainerStyle_1.getContainerStyle)(padding), gap: `${gap}px` }, role: "list", onScroll: onScroll, children: children.length && children.map ? (children.map((child, idx) => ((0, jsx_runtime_1.jsx)(SwipeListControlItem_1.SwipeListControlItem, { style: (0, getContainerStyle_1.getContainerStyle)(padding / 4), "aria-current": Boolean(activeIndex === idx), children: child }, String(idx))))) : ((0, jsx_runtime_1.jsx)(SwipeListControlItem_1.SwipeListControlItem, { style: (0, getContainerStyle_1.getContainerStyle)(padding / 4), "aria-current": true, children: children })) })) : null;
10
10
  });
11
11
  //# sourceMappingURL=SwipeListControlList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwipeListControlList.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControlList.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2CAA2D;AAC3D,iEAA8D;AAE9D,iEAA8D;AAWjD,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,GAAG,GAAG,uBAAW,EACjB,OAAO,GAAG,2BAAe,GAC1B,EAAE,EAAE;IACH,OAAO,CACL,gCACE,SAAS,EAAE,mDAAmD,SAAS,EAAE,EACzE,KAAK,EAAE,EAAE,GAAG,IAAA,qCAAiB,EAAC,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,uBAAC,2CAAoB,IAEnB,KAAK,EAAE,IAAA,qCAAiB,EAAC,OAAO,GAAG,CAAC,CAAC,kBACvB,OAAO,CAAC,WAAW,KAAK,GAAG,CAAC,YAEzC,KAAK,IAJD,MAAM,CAAC,GAAG,CAAC,CAKK,CACxB,CAAC,CACH,CAAC,CAAC,CAAC,CACF,uBAAC,2CAAoB,cAAE,QAAQ,GAAwB,CACxD,GACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"SwipeListControlList.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControlList.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2CAA2D;AAC3D,iEAA8D;AAE9D,iEAA8D;AAWjD,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,WAAW,GAAG,CAAC,CAAC,EAChB,GAAG,GAAG,uBAAW,EACjB,OAAO,GAAG,2BAAe,EACzB,QAAQ,EACR,QAAQ,GACT,EAAE,EAAE;IACH,OAAO,QAAQ,CAAC,CAAC,CAAC,CAChB,gCACE,SAAS,EAAE,mDAAmD,SAAS,EAAE,EACzE,KAAK,EAAE,EAAE,GAAG,IAAA,qCAAiB,EAAC,OAAO,CAAC,EAAE,GAAG,EAAE,GAAG,GAAG,IAAI,EAAE,EACzD,IAAI,EAAC,MAAM,EACX,QAAQ,EAAE,QAAQ,YAEjB,QAAQ,CAAC,MAAM,IAAI,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CACjC,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,CAC3B,uBAAC,2CAAoB,IAEnB,KAAK,EAAE,IAAA,qCAAiB,EAAC,OAAO,GAAG,CAAC,CAAC,kBACvB,OAAO,CAAC,WAAW,KAAK,GAAG,CAAC,YAEzC,KAAK,IAJD,MAAM,CAAC,GAAG,CAAC,CAKK,CACxB,CAAC,CACH,CAAC,CAAC,CAAC,CACF,uBAAC,2CAAoB,IAAC,KAAK,EAAE,IAAA,qCAAiB,EAAC,OAAO,GAAG,CAAC,CAAC,kCACxD,QAAQ,GACY,CACxB,GACG,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC"}
@@ -5,9 +5,11 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const renderArrows_1 = require("../Button/renderArrows");
6
6
  exports.TableArrowScrollControl = (0, uni_jsx_1.JSX)(({ isScrollAvailable, onNextClick, onPrevClick, showNextButton, showPrevButton }) => {
7
7
  return isScrollAvailable ? ((0, jsx_runtime_1.jsx)("div", { children: (0, renderArrows_1.renderArrows)({
8
- handler: [onPrevClick, onNextClick],
9
- isShown: [showPrevButton, showNextButton],
10
- btnClass: ['top-[108px]', 'top-11'],
8
+ dec: onPrevClick,
9
+ inc: onNextClick,
10
+ canDec: showPrevButton,
11
+ canInc: showNextButton,
12
+ btnClass: ['top-[108px]', 'top-[44px]'],
11
13
  className: 'right-7',
12
14
  isDisabled: true,
13
15
  }) })) : null;
@@ -1 +1 @@
1
- {"version":3,"file":"TableArrowScrollControl.js","sourceRoot":"","sources":["../../../src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yDAAsD;AAGzC,QAAA,uBAAuB,GAAG,IAAA,aAAG,EACxC,CAAC,EAAE,iBAAiB,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,EAAE,EAAE;IAClF,OAAO,iBAAiB,CAAC,CAAC,CAAC,CACzB,0CACG,IAAA,2BAAY,EAAC;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,+CAAwC;AACxC,yDAAsD;AAGzC,QAAA,uBAAuB,GAAG,IAAA,aAAG,EACxC,CAAC,EAAE,iBAAiB,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,EAAE,EAAE;IAClF,OAAO,iBAAiB,CAAC,CAAC,CAAC,CACzB,0CACG,IAAA,2BAAY,EAAC;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,11 @@
1
+ import type { BlockAncestors, BlockDecorator } from '../model/BlockDecorator';
2
+ import type { BlocksRegistry } from '../model/BlocksRegistry';
3
+ import type { ContentPageDef, Slot } from '../model/ContentPageDef';
4
+ export interface BlockRendererOptions {
5
+ key?: string;
6
+ page?: ContentPageDef;
7
+ blockDecorator?: BlockDecorator;
8
+ blocksRegistry?: BlocksRegistry;
9
+ parent?: Slot;
10
+ ancestors?: BlockAncestors;
11
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=BlockRendererOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockRendererOptions.js","sourceRoot":"","sources":["../../src/BlockRenderer/BlockRendererOptions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import type { BlockDecorator } from '../model/BlockDecorator';
2
+ export declare const defaultBlockDecorator: BlockDecorator;
@@ -0,0 +1,2 @@
1
+ export const defaultBlockDecorator = ({ blockClassName, block, render }) => render({ blockClassName, block });
2
+ //# sourceMappingURL=defaultBlockDecorator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaultBlockDecorator.js","sourceRoot":"","sources":["../../src/BlockRenderer/defaultBlockDecorator.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,qBAAqB,GAAmB,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CACzF,MAAM,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { BlockRendererOptions } from './BlockRendererOptions';
2
+ export declare function getParentBlockContent<C extends Record<string, any>>(options: BlockRendererOptions | undefined, defaultContent: C): C;
@@ -0,0 +1,6 @@
1
+ import { getParentBlockDef } from './getParentBlockDef.js';
2
+ export function getParentBlockContent(options, defaultContent) {
3
+ const { content } = getParentBlockDef(options);
4
+ return content || defaultContent;
5
+ }
6
+ //# sourceMappingURL=getParentBlockContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getParentBlockContent.js","sourceRoot":"","sources":["../../src/BlockRenderer/getParentBlockContent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,UAAU,qBAAqB,CACnC,OAAyC,EACzC,cAAiB;IAEjB,MAAM,EAAE,OAAO,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAE/C,OAAQ,OAAa,IAAI,cAAc,CAAC;AAC1C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { BlockRendererOptions } from '../BlockRenderer/BlockRendererOptions';
2
+ import type { BlockDef } from '../model/ContentPageDef';
3
+ export declare function getParentBlockDef(options: BlockRendererOptions | undefined): BlockDef;
@@ -0,0 +1,4 @@
1
+ export function getParentBlockDef(options) {
2
+ return options?.parent || {};
3
+ }
4
+ //# sourceMappingURL=getParentBlockDef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getParentBlockDef.js","sourceRoot":"","sources":["../../src/BlockRenderer/getParentBlockDef.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,iBAAiB,CAAC,OAAyC;IACzE,OAAO,OAAO,EAAE,MAAM,IAAI,EAAE,CAAC;AAC/B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { BlockDef } from '../model/ContentPageDef';
2
+ import type { BlockRendererOptions } from './BlockRendererOptions';
3
+ export declare function renderBlock(block: BlockDef, options: BlockRendererOptions): any;