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

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 (1104) hide show
  1. package/bin/migration-scripts/0.6.32.js +6 -0
  2. package/bundle/EventBus/EventBus.d.ts +6 -5
  3. package/bundle/EventBus/EventMap.d.ts +1 -4
  4. package/bundle/ProjectSettings.d.ts +2 -0
  5. package/bundle/blocks.schema.json +1 -1
  6. package/bundle/bundle.umd.js +299 -207
  7. package/bundle/bundle.umd.min.js +1 -1
  8. package/bundle/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
  9. package/{lib/components/InvestmentGallery/InvestmentGalleryContent.d.ts → bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts} +19 -23
  10. package/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  11. package/bundle/components/Footer/FooterDataProps.d.ts +8 -3
  12. package/bundle/components/Gallery/GalleryContent.d.ts +5 -0
  13. package/bundle/components/ImgBlock/ImgBlock.d.ts +6 -0
  14. package/bundle/components/ImgBlock/ImgBlockContent.d.ts +7 -0
  15. package/bundle/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
  16. package/bundle/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
  17. package/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  18. package/bundle/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  19. package/bundle/components/Tabs/LinkTab.d.ts +0 -1
  20. package/bundle/components/Tabs/Tabs.d.ts +0 -4
  21. package/bundle/components/Video/VideoContent.d.ts +1 -0
  22. package/bundle/services/BlockRouter/BlockIntersection.d.ts +2 -0
  23. package/bundle/services/BlockRouter/BlockRouter.d.ts +23 -0
  24. package/bundle/services/BlockRouter/findActiveBlock.d.ts +3 -0
  25. package/bundle/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
  26. package/bundle/services/BlockRouter/useBlockRouter.d.ts +2 -0
  27. package/bundle/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
  28. package/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
  29. package/bundle/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
  30. package/bundle/ui-kit/Paragraph/Paragraph.d.ts +1 -8
  31. package/bundle/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
  32. package/bundle/ui-kit/Radio/RadioProps.d.ts +1 -2
  33. package/bundle/ui-kit/Text/Text.d.ts +1 -26
  34. package/bundle/ui-kit/Text/TextProps.d.ts +26 -0
  35. package/bundle/utils/debounce.d.ts +5 -0
  36. package/dist/EventBus/EventBus.d.ts +6 -5
  37. package/dist/EventBus/EventBus.js +5 -3
  38. package/dist/EventBus/EventBus.js.map +1 -1
  39. package/dist/EventBus/EventMap.d.ts +1 -4
  40. package/dist/ProjectSettings.d.ts +2 -0
  41. package/dist/ProjectSettings.js +3 -0
  42. package/dist/ProjectSettings.js.map +1 -1
  43. package/dist/components/Accordion/Accordion.js +1 -1
  44. package/dist/components/Accordion/Accordion.js.map +1 -1
  45. package/dist/components/AccordionItem/AccordionItem.mobile.js +1 -1
  46. package/dist/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
  47. package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  48. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  49. package/dist/components/Blocks.js +7 -3
  50. package/dist/components/Blocks.js.map +1 -1
  51. package/dist/components/Bonus/Bonus.js +2 -2
  52. package/dist/components/Bonus/Bonus.js.map +1 -1
  53. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  54. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  55. package/dist/components/BusinessBlock/BusinessBlock.js +1 -1
  56. package/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
  57. package/dist/components/Calculator/BonusCalculatorForm.js +4 -2
  58. package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  59. package/dist/components/Calculator/CreditCalculatorForm.js +3 -1
  60. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  61. package/dist/components/Calculator/DepositCalculatorForm.js +4 -2
  62. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  63. package/dist/components/Calculator/renderProposal.js +2 -2
  64. package/dist/components/Calculator/renderProposal.js.map +1 -1
  65. package/dist/components/CardTransfer/CardTransfer.js +1 -1
  66. package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  67. package/dist/components/Carousel/Carousel.js +2 -1
  68. package/dist/components/Carousel/Carousel.js.map +1 -1
  69. package/dist/components/CarouselCard/CarouselCard.js +2 -2
  70. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  71. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
  72. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +28 -0
  73. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -0
  74. package/dist/components/{InvestmentGallery/InvestmentGalleryContent.d.ts → CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts} +19 -23
  75. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js +2 -0
  76. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js.map +1 -0
  77. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  78. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +4 -2
  79. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  80. package/dist/components/Catalog/Catalog.js +1 -1
  81. package/dist/components/Catalog/Catalog.js.map +1 -1
  82. package/dist/components/ComparisonTable/ComparisonTable.js +4 -4
  83. package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  84. package/dist/components/ContactsBlock/ContactsBlock.js +1 -1
  85. package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  86. package/dist/components/ContentPage/ContentPage.js +2 -0
  87. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  88. package/dist/components/ContentPage/useContentPageData.js +4 -8
  89. package/dist/components/ContentPage/useContentPageData.js.map +1 -1
  90. package/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  91. package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  92. package/dist/components/Footer/Footer.js +2 -2
  93. package/dist/components/Footer/Footer.js.map +1 -1
  94. package/dist/components/Footer/FooterDataProps.d.ts +8 -3
  95. package/dist/components/Footer/MediaButton.js +1 -1
  96. package/dist/components/Footer/MediaButton.js.map +1 -1
  97. package/dist/components/Gallery/Gallery.mobile.js +1 -1
  98. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  99. package/dist/components/Gallery/GalleryCardInner.js +7 -2
  100. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  101. package/dist/components/Gallery/GalleryContent.d.ts +5 -0
  102. package/dist/components/Gallery/GalleryInner.js.map +1 -1
  103. package/dist/components/GracePeriod/GracePeriod.js +2 -2
  104. package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
  105. package/dist/components/Header/Header.js +1 -1
  106. package/dist/components/Header/Header.js.map +1 -1
  107. package/dist/components/Header/Header.mobile.js +2 -2
  108. package/dist/components/Header/Header.mobile.js.map +1 -1
  109. package/dist/components/Header/HeaderSecondaryMenu.js +1 -1
  110. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  111. package/dist/components/Header/HeaderSecondaryMenuButton.js +1 -1
  112. package/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
  113. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  114. package/dist/components/Header/HeaderTop.js +1 -1
  115. package/dist/components/Header/HeaderTop.js.map +1 -1
  116. package/dist/components/Headline/Headline.js +1 -1
  117. package/dist/components/Headline/Headline.js.map +1 -1
  118. package/dist/components/ImgBlock/ImgBlock.d.ts +6 -0
  119. package/dist/components/ImgBlock/ImgBlock.js +11 -0
  120. package/dist/components/ImgBlock/ImgBlock.js.map +1 -0
  121. package/dist/components/ImgBlock/ImgBlockContent.d.ts +7 -0
  122. package/dist/components/{InvestmentGallery/InvestmentGalleryContent.js → ImgBlock/ImgBlockContent.js} +1 -1
  123. package/dist/components/ImgBlock/ImgBlockContent.js.map +1 -0
  124. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -8
  125. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  126. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +4 -4
  127. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  128. package/dist/components/LinkDocs/LinkDocs.js +1 -1
  129. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  130. package/dist/components/LinkList/LinkList.js +1 -1
  131. package/dist/components/LinkList/LinkList.js.map +1 -1
  132. package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  133. package/dist/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
  134. package/dist/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
  135. package/dist/components/OfficeMap/useOfficeMap.js +3 -4
  136. package/dist/components/OfficeMap/useOfficeMap.js.map +1 -1
  137. package/dist/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
  138. package/dist/components/ParagraphBlock/ParagraphBlock.js +11 -0
  139. package/dist/components/ParagraphBlock/ParagraphBlock.js.map +1 -0
  140. package/dist/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
  141. package/{mobile/dist/components/InvestmentGallery/InvestmentGalleryContent.js → dist/components/ParagraphBlock/ParagraphBlockContent.js} +1 -1
  142. package/dist/components/ParagraphBlock/ParagraphBlockContent.js.map +1 -0
  143. package/dist/components/ProductBlock/ProductBlock.js +1 -1
  144. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  145. package/dist/components/ProductGallery/ProductGallery.js +9 -9
  146. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  147. package/dist/components/SafeDepositRental/RegionsAndBranches.js +1 -3
  148. package/dist/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  149. package/dist/components/SafeDepositRental/RenderRadioButtons.js +1 -1
  150. package/dist/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
  151. package/dist/components/SafeDepositRental/SafeDepositRental.js +2 -4
  152. package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  153. package/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  154. package/dist/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
  155. package/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  156. package/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  157. package/dist/components/SafeDepositRental/SafeDepositRentalForm.js +2 -2
  158. package/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  159. package/dist/components/StepsBlock/StepsBlock.js +3 -5
  160. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  161. package/dist/components/StepsBlock/StepsBlock.mobile.js +3 -3
  162. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  163. package/dist/components/Tabs/LinkTab.d.ts +0 -1
  164. package/dist/components/Tabs/LinkTab.js +2 -8
  165. package/dist/components/Tabs/LinkTab.js.map +1 -1
  166. package/dist/components/Tabs/Tabs.d.ts +0 -4
  167. package/dist/components/Tabs/Tabs.js +6 -12
  168. package/dist/components/Tabs/Tabs.js.map +1 -1
  169. package/dist/components/TariffsTable/TableTileHeader.js +1 -3
  170. package/dist/components/TariffsTable/TableTileHeader.js.map +1 -1
  171. package/dist/components/TariffsTable/TariffsTable.js +6 -6
  172. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  173. package/dist/components/TariffsTable/TariffsTableRow.js +3 -1
  174. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  175. package/dist/components/Video/VideoContent.d.ts +1 -0
  176. package/dist/hooks/useLink.js +11 -2
  177. package/dist/hooks/useLink.js.map +1 -1
  178. package/dist/services/BlockRouter/BlockIntersection.d.ts +2 -0
  179. package/dist/services/BlockRouter/BlockIntersection.js +2 -0
  180. package/dist/services/BlockRouter/BlockIntersection.js.map +1 -0
  181. package/dist/services/BlockRouter/BlockRouter.d.ts +23 -0
  182. package/dist/services/BlockRouter/BlockRouter.js +32 -0
  183. package/dist/services/BlockRouter/BlockRouter.js.map +1 -0
  184. package/dist/services/BlockRouter/findActiveBlock.d.ts +3 -0
  185. package/dist/services/BlockRouter/findActiveBlock.js +15 -0
  186. package/dist/services/BlockRouter/findActiveBlock.js.map +1 -0
  187. package/dist/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
  188. package/dist/services/BlockRouter/useBlockIntersectionObserver.js +28 -0
  189. package/dist/services/BlockRouter/useBlockIntersectionObserver.js.map +1 -0
  190. package/dist/services/BlockRouter/useBlockRouter.d.ts +2 -0
  191. package/dist/services/BlockRouter/useBlockRouter.js +8 -0
  192. package/dist/services/BlockRouter/useBlockRouter.js.map +1 -0
  193. package/dist/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
  194. package/dist/services/BlockRouter/useBlockRouterProvider.js +37 -0
  195. package/dist/services/BlockRouter/useBlockRouterProvider.js.map +1 -0
  196. package/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
  197. package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  198. package/dist/ui-kit/BlockWrapper.js +6 -20
  199. package/dist/ui-kit/BlockWrapper.js.map +1 -1
  200. package/dist/ui-kit/HeaderItem/HeaderItem.js +1 -1
  201. package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  202. package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js +1 -1
  203. package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
  204. package/dist/ui-kit/InnerTable/InnerTable.js +3 -2
  205. package/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
  206. package/dist/ui-kit/InnerTable/InnerTableBody.js +2 -4
  207. package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  208. package/dist/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
  209. package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  210. package/dist/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
  211. package/dist/ui-kit/Paragraph/Paragraph.d.ts +1 -8
  212. package/dist/ui-kit/Paragraph/Paragraph.js.map +1 -1
  213. package/dist/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
  214. package/dist/ui-kit/Paragraph/ParagraphProps.js +2 -0
  215. package/dist/ui-kit/Paragraph/ParagraphProps.js.map +1 -0
  216. package/dist/ui-kit/Radio/Radio.js +1 -1
  217. package/dist/ui-kit/Radio/Radio.js.map +1 -1
  218. package/dist/ui-kit/Radio/RadioProps.d.ts +1 -2
  219. package/dist/ui-kit/Select/Select.js +1 -1
  220. package/dist/ui-kit/Select/Select.js.map +1 -1
  221. package/dist/ui-kit/Text/Text.d.ts +1 -26
  222. package/dist/ui-kit/Text/Text.js.map +1 -1
  223. package/dist/ui-kit/Text/TextProps.d.ts +26 -0
  224. package/dist/ui-kit/Text/TextProps.js +2 -0
  225. package/dist/ui-kit/Text/TextProps.js.map +1 -0
  226. package/dist/ui-kit/YandexMap/useYandexMaps.js +1 -1
  227. package/dist/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
  228. package/dist/utils/adjustHref.js +3 -1
  229. package/dist/utils/adjustHref.js.map +1 -1
  230. package/dist/utils/debounce.d.ts +5 -0
  231. package/dist/utils/debounce.js +19 -0
  232. package/dist/utils/debounce.js.map +1 -0
  233. package/lib/EventBus/EventBus.d.ts +6 -5
  234. package/lib/EventBus/EventBus.js +5 -3
  235. package/lib/EventBus/EventBus.js.map +1 -1
  236. package/lib/EventBus/EventMap.d.ts +1 -4
  237. package/lib/ProjectSettings.d.ts +2 -0
  238. package/lib/ProjectSettings.js +3 -0
  239. package/lib/ProjectSettings.js.map +1 -1
  240. package/lib/common.css +1 -1
  241. package/lib/components/Accordion/Accordion.js +1 -1
  242. package/lib/components/Accordion/Accordion.js.map +1 -1
  243. package/lib/components/AccordionItem/AccordionItem.mobile.js +1 -1
  244. package/lib/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
  245. package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  246. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  247. package/lib/components/Blocks.js +7 -3
  248. package/lib/components/Blocks.js.map +1 -1
  249. package/lib/components/Bonus/Bonus.js +2 -2
  250. package/lib/components/Bonus/Bonus.js.map +1 -1
  251. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  252. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  253. package/lib/components/BusinessBlock/BusinessBlock.js +1 -1
  254. package/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
  255. package/lib/components/Calculator/BonusCalculatorForm.js +5 -3
  256. package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  257. package/lib/components/Calculator/CreditCalculatorForm.js +4 -2
  258. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  259. package/lib/components/Calculator/DepositCalculatorForm.js +5 -3
  260. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  261. package/lib/components/Calculator/renderProposal.js +2 -2
  262. package/lib/components/Calculator/renderProposal.js.map +1 -1
  263. package/lib/components/CardTransfer/CardTransfer.js +1 -1
  264. package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  265. package/lib/components/Carousel/Carousel.fixture.d.ts +1 -0
  266. package/lib/components/Carousel/Carousel.js +2 -1
  267. package/lib/components/Carousel/Carousel.js.map +1 -1
  268. package/lib/components/CarouselCard/CarouselCard.js +2 -2
  269. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  270. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
  271. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.fixture.d.ts +10 -0
  272. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +26 -0
  273. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -0
  274. package/{bundle/components/InvestmentGallery/InvestmentGalleryContent.d.ts → lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts} +19 -23
  275. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js +2 -0
  276. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js.map +1 -0
  277. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  278. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +4 -2
  279. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  280. package/lib/components/Catalog/Catalog.js +1 -1
  281. package/lib/components/Catalog/Catalog.js.map +1 -1
  282. package/lib/components/ComparisonTable/ComparisonTable.js +4 -4
  283. package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  284. package/lib/components/ContactsBlock/ContactsBlock.js +1 -1
  285. package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  286. package/lib/components/ContentPage/ContentPage.js +2 -0
  287. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  288. package/lib/components/ContentPage/useContentPageData.js +4 -8
  289. package/lib/components/ContentPage/useContentPageData.js.map +1 -1
  290. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  291. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  292. package/lib/components/Footer/Footer.js +2 -2
  293. package/lib/components/Footer/Footer.js.map +1 -1
  294. package/lib/components/Footer/FooterDataProps.d.ts +8 -3
  295. package/lib/components/Footer/MediaButton.js +1 -1
  296. package/lib/components/Footer/MediaButton.js.map +1 -1
  297. package/lib/components/Gallery/Gallery.mobile.js +1 -1
  298. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  299. package/lib/components/Gallery/GalleryCardInner.js +7 -2
  300. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  301. package/lib/components/Gallery/GalleryContent.d.ts +5 -0
  302. package/lib/components/Gallery/GalleryInner.js.map +1 -1
  303. package/lib/components/GracePeriod/GracePeriod.js +2 -2
  304. package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
  305. package/lib/components/Header/Header.js +1 -1
  306. package/lib/components/Header/Header.js.map +1 -1
  307. package/lib/components/Header/Header.mobile.js +3 -3
  308. package/lib/components/Header/Header.mobile.js.map +1 -1
  309. package/lib/components/Header/HeaderSecondaryMenu.js +1 -1
  310. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  311. package/lib/components/Header/HeaderSecondaryMenuButton.js +1 -1
  312. package/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
  313. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  314. package/lib/components/Header/HeaderTop.js +1 -1
  315. package/lib/components/Header/HeaderTop.js.map +1 -1
  316. package/lib/components/Headline/Headline.js +1 -1
  317. package/lib/components/Headline/Headline.js.map +1 -1
  318. package/lib/components/ImgBlock/ImgBlock.d.ts +6 -0
  319. package/lib/components/{InvestmentGallery/InvestmentGallery.fixture.d.ts → ImgBlock/ImgBlock.fixture.d.ts} +0 -2
  320. package/lib/components/ImgBlock/ImgBlock.js +9 -0
  321. package/lib/components/ImgBlock/ImgBlock.js.map +1 -0
  322. package/lib/components/ImgBlock/ImgBlockContent.d.ts +7 -0
  323. package/lib/components/ImgBlock/ImgBlockContent.js +2 -0
  324. package/lib/components/ImgBlock/ImgBlockContent.js.map +1 -0
  325. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +7 -9
  326. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  327. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +4 -4
  328. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  329. package/lib/components/LinkDocs/LinkDocs.js +1 -1
  330. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  331. package/lib/components/LinkList/LinkList.js +1 -1
  332. package/lib/components/LinkList/LinkList.js.map +1 -1
  333. package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  334. package/lib/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
  335. package/lib/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
  336. package/lib/components/OfficeMap/useOfficeMap.js +3 -4
  337. package/lib/components/OfficeMap/useOfficeMap.js.map +1 -1
  338. package/lib/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
  339. package/lib/components/ParagraphBlock/ParagraphBlock.fixture.d.ts +9 -0
  340. package/lib/components/ParagraphBlock/ParagraphBlock.js +9 -0
  341. package/lib/components/ParagraphBlock/ParagraphBlock.js.map +1 -0
  342. package/lib/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
  343. package/lib/components/ParagraphBlock/ParagraphBlockContent.js +2 -0
  344. package/lib/components/ParagraphBlock/ParagraphBlockContent.js.map +1 -0
  345. package/lib/components/ProductBlock/ProductBlock.js +1 -1
  346. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  347. package/lib/components/ProductGallery/ProductGallery.js +10 -10
  348. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  349. package/lib/components/Recommendation/Recommendation.fixture.d.ts +3 -1
  350. package/lib/components/SafeDepositRental/RegionsAndBranches.js +1 -3
  351. package/lib/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  352. package/lib/components/SafeDepositRental/RenderRadioButtons.js +2 -2
  353. package/lib/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
  354. package/lib/components/SafeDepositRental/SafeDepositRental.js +2 -4
  355. package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  356. package/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  357. package/lib/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
  358. package/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  359. package/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  360. package/lib/components/SafeDepositRental/SafeDepositRentalForm.js +2 -2
  361. package/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  362. package/lib/components/StepsBlock/StepsBlock.js +3 -5
  363. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  364. package/lib/components/StepsBlock/StepsBlock.mobile.js +3 -3
  365. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  366. package/lib/components/Tabs/LinkTab.d.ts +0 -1
  367. package/lib/components/Tabs/LinkTab.js +2 -8
  368. package/lib/components/Tabs/LinkTab.js.map +1 -1
  369. package/lib/components/Tabs/Tabs.d.ts +0 -4
  370. package/lib/components/Tabs/Tabs.js +7 -13
  371. package/lib/components/Tabs/Tabs.js.map +1 -1
  372. package/lib/components/TariffsTable/TableTileHeader.js +1 -3
  373. package/lib/components/TariffsTable/TableTileHeader.js.map +1 -1
  374. package/lib/components/TariffsTable/TariffsTable.js +6 -6
  375. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  376. package/lib/components/TariffsTable/TariffsTableRow.js +4 -2
  377. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  378. package/lib/components/Video/VideoContent.d.ts +1 -0
  379. package/lib/hooks/useLink.js +11 -2
  380. package/lib/hooks/useLink.js.map +1 -1
  381. package/lib/services/BlockRouter/BlockIntersection.d.ts +2 -0
  382. package/lib/services/BlockRouter/BlockIntersection.js +2 -0
  383. package/lib/services/BlockRouter/BlockIntersection.js.map +1 -0
  384. package/lib/services/BlockRouter/BlockRouter.d.ts +23 -0
  385. package/lib/services/BlockRouter/BlockRouter.js +29 -0
  386. package/lib/services/BlockRouter/BlockRouter.js.map +1 -0
  387. package/lib/services/BlockRouter/findActiveBlock.d.ts +3 -0
  388. package/lib/services/BlockRouter/findActiveBlock.js +12 -0
  389. package/lib/services/BlockRouter/findActiveBlock.js.map +1 -0
  390. package/lib/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
  391. package/lib/services/BlockRouter/useBlockIntersectionObserver.js +25 -0
  392. package/lib/services/BlockRouter/useBlockIntersectionObserver.js.map +1 -0
  393. package/lib/services/BlockRouter/useBlockRouter.d.ts +2 -0
  394. package/lib/services/BlockRouter/useBlockRouter.js +5 -0
  395. package/lib/services/BlockRouter/useBlockRouter.js.map +1 -0
  396. package/lib/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
  397. package/lib/services/BlockRouter/useBlockRouterProvider.js +34 -0
  398. package/lib/services/BlockRouter/useBlockRouterProvider.js.map +1 -0
  399. package/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
  400. package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  401. package/lib/ui-kit/BlockWrapper.js +7 -21
  402. package/lib/ui-kit/BlockWrapper.js.map +1 -1
  403. package/lib/ui-kit/HeaderItem/HeaderItem.js +1 -1
  404. package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  405. package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js +1 -1
  406. package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
  407. package/lib/ui-kit/InnerTable/InnerTable.js +4 -3
  408. package/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
  409. package/lib/ui-kit/InnerTable/InnerTableBody.js +3 -5
  410. package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  411. package/lib/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
  412. package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  413. package/lib/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
  414. package/lib/ui-kit/Paragraph/Paragraph.d.ts +1 -8
  415. package/lib/ui-kit/Paragraph/Paragraph.js.map +1 -1
  416. package/lib/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
  417. package/lib/ui-kit/Paragraph/ParagraphProps.js +2 -0
  418. package/lib/ui-kit/Paragraph/ParagraphProps.js.map +1 -0
  419. package/lib/ui-kit/Radio/Radio.js +1 -1
  420. package/lib/ui-kit/Radio/Radio.js.map +1 -1
  421. package/lib/ui-kit/Radio/RadioProps.d.ts +1 -2
  422. package/lib/ui-kit/Select/Select.js +1 -1
  423. package/lib/ui-kit/Select/Select.js.map +1 -1
  424. package/lib/ui-kit/Text/Text.d.ts +1 -26
  425. package/lib/ui-kit/Text/Text.js.map +1 -1
  426. package/lib/ui-kit/Text/TextProps.d.ts +26 -0
  427. package/lib/ui-kit/Text/TextProps.js +2 -0
  428. package/lib/ui-kit/Text/TextProps.js.map +1 -0
  429. package/lib/ui-kit/YandexMap/useYandexMaps.js +1 -1
  430. package/lib/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
  431. package/lib/utils/adjustHref.js +3 -1
  432. package/lib/utils/adjustHref.js.map +1 -1
  433. package/lib/utils/debounce.d.ts +5 -0
  434. package/lib/utils/debounce.js +16 -0
  435. package/lib/utils/debounce.js.map +1 -0
  436. package/mobile/bundle/EventBus/EventBus.d.ts +6 -5
  437. package/mobile/bundle/EventBus/EventMap.d.ts +1 -4
  438. package/mobile/bundle/ProjectSettings.d.ts +2 -0
  439. package/mobile/bundle/bundle.umd.js +147 -53
  440. package/mobile/bundle/bundle.umd.min.js +1 -1
  441. package/mobile/bundle/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
  442. package/mobile/bundle/components/{InvestmentGallery/InvestmentGalleryContent.d.ts → CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts} +19 -23
  443. package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  444. package/mobile/bundle/components/Footer/FooterDataProps.d.ts +8 -3
  445. package/mobile/bundle/components/Gallery/GalleryContent.d.ts +5 -0
  446. package/mobile/bundle/components/ImgBlock/ImgBlock.d.ts +6 -0
  447. package/mobile/bundle/components/ImgBlock/ImgBlockContent.d.ts +7 -0
  448. package/mobile/bundle/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
  449. package/mobile/bundle/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
  450. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  451. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  452. package/mobile/bundle/components/Tabs/LinkTab.d.ts +0 -1
  453. package/mobile/bundle/components/Tabs/Tabs.d.ts +0 -4
  454. package/mobile/bundle/components/Video/VideoContent.d.ts +1 -0
  455. package/mobile/bundle/services/BlockRouter/BlockIntersection.d.ts +2 -0
  456. package/mobile/bundle/services/BlockRouter/BlockRouter.d.ts +23 -0
  457. package/mobile/bundle/services/BlockRouter/findActiveBlock.d.ts +3 -0
  458. package/mobile/bundle/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
  459. package/mobile/bundle/services/BlockRouter/useBlockRouter.d.ts +2 -0
  460. package/mobile/bundle/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
  461. package/mobile/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
  462. package/mobile/bundle/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
  463. package/mobile/bundle/ui-kit/Paragraph/Paragraph.d.ts +1 -8
  464. package/mobile/bundle/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
  465. package/mobile/bundle/ui-kit/Radio/RadioProps.d.ts +1 -2
  466. package/mobile/bundle/ui-kit/Text/Text.d.ts +1 -26
  467. package/mobile/bundle/ui-kit/Text/TextProps.d.ts +26 -0
  468. package/mobile/bundle/utils/debounce.d.ts +5 -0
  469. package/mobile/dist/EventBus/EventBus.d.ts +6 -5
  470. package/mobile/dist/EventBus/EventBus.js +5 -3
  471. package/mobile/dist/EventBus/EventBus.js.map +1 -1
  472. package/mobile/dist/EventBus/EventMap.d.ts +1 -4
  473. package/mobile/dist/ProjectSettings.d.ts +2 -0
  474. package/mobile/dist/ProjectSettings.js +3 -0
  475. package/mobile/dist/ProjectSettings.js.map +1 -1
  476. package/mobile/dist/components/AccordionItem/AccordionItem.js +1 -1
  477. package/mobile/dist/components/AccordionItem/AccordionItem.js.map +1 -1
  478. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  479. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  480. package/mobile/dist/components/Bonus/Bonus.js +2 -2
  481. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  482. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  483. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  484. package/mobile/dist/components/BusinessBlock/BusinessBlock.js +1 -1
  485. package/mobile/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
  486. package/mobile/dist/components/Calculator/BonusCalculatorForm.js +4 -2
  487. package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  488. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +3 -1
  489. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  490. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +4 -2
  491. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  492. package/mobile/dist/components/Calculator/renderProposal.js +2 -2
  493. package/mobile/dist/components/Calculator/renderProposal.js.map +1 -1
  494. package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -1
  495. package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  496. package/mobile/dist/components/Carousel/Carousel.js +2 -1
  497. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  498. package/mobile/dist/components/CarouselCard/CarouselCard.js +2 -2
  499. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  500. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
  501. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +28 -0
  502. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -0
  503. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +46 -0
  504. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js +2 -0
  505. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js.map +1 -0
  506. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  507. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +4 -2
  508. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  509. package/mobile/dist/components/Catalog/Catalog.js +1 -1
  510. package/mobile/dist/components/Catalog/Catalog.js.map +1 -1
  511. package/mobile/dist/components/ContactsBlock/ContactsBlock.js +1 -1
  512. package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  513. package/mobile/dist/components/ContentPage/ContentPage.js +2 -0
  514. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  515. package/mobile/dist/components/ContentPage/useContentPageData.js +4 -8
  516. package/mobile/dist/components/ContentPage/useContentPageData.js.map +1 -1
  517. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  518. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  519. package/mobile/dist/components/Footer/FooterDataProps.d.ts +8 -3
  520. package/mobile/dist/components/Footer/MediaButton.js +1 -1
  521. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  522. package/mobile/dist/components/Gallery/Gallery.js +1 -1
  523. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  524. package/mobile/dist/components/Gallery/GalleryCardInner.js +7 -2
  525. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  526. package/mobile/dist/components/Gallery/GalleryContent.d.ts +5 -0
  527. package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
  528. package/mobile/dist/components/GracePeriod/GracePeriod.js +2 -2
  529. package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
  530. package/mobile/dist/components/Header/Header.js +2 -2
  531. package/mobile/dist/components/Header/Header.js.map +1 -1
  532. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -1
  533. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  534. package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js +1 -1
  535. package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
  536. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  537. package/mobile/dist/components/Header/HeaderTop.js +1 -1
  538. package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
  539. package/mobile/dist/components/ImgBlock/ImgBlock.d.ts +6 -0
  540. package/mobile/dist/components/ImgBlock/ImgBlock.js +11 -0
  541. package/mobile/dist/components/ImgBlock/ImgBlock.js.map +1 -0
  542. package/mobile/dist/components/ImgBlock/ImgBlockContent.d.ts +7 -0
  543. package/mobile/dist/components/ImgBlock/ImgBlockContent.js +2 -0
  544. package/mobile/dist/components/ImgBlock/ImgBlockContent.js.map +1 -0
  545. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -8
  546. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  547. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +4 -4
  548. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  549. package/mobile/dist/components/LinkList/LinkList.js +1 -1
  550. package/mobile/dist/components/LinkList/LinkList.js.map +1 -1
  551. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  552. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  553. package/mobile/dist/components/OfficeMap/useOfficeMap.js +3 -4
  554. package/mobile/dist/components/OfficeMap/useOfficeMap.js.map +1 -1
  555. package/mobile/dist/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
  556. package/mobile/dist/components/ParagraphBlock/ParagraphBlock.js +11 -0
  557. package/mobile/dist/components/ParagraphBlock/ParagraphBlock.js.map +1 -0
  558. package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
  559. package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.js +2 -0
  560. package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.js.map +1 -0
  561. package/mobile/dist/components/ProductGallery/ProductGallery.js +9 -9
  562. package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  563. package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js +1 -3
  564. package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  565. package/mobile/dist/components/SafeDepositRental/RenderRadioButtons.js +1 -1
  566. package/mobile/dist/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
  567. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +2 -4
  568. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  569. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  570. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
  571. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  572. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  573. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js +2 -2
  574. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  575. package/mobile/dist/components/StepsBlock/StepsBlock.js +3 -3
  576. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  577. package/mobile/dist/components/Tabs/LinkTab.d.ts +0 -1
  578. package/mobile/dist/components/Tabs/LinkTab.js +2 -8
  579. package/mobile/dist/components/Tabs/LinkTab.js.map +1 -1
  580. package/mobile/dist/components/Tabs/Tabs.d.ts +0 -4
  581. package/mobile/dist/components/Tabs/Tabs.js +6 -12
  582. package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
  583. package/mobile/dist/components/TariffsTable/TableTileHeader.js +1 -3
  584. package/mobile/dist/components/TariffsTable/TableTileHeader.js.map +1 -1
  585. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +3 -1
  586. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  587. package/mobile/dist/components/Video/VideoContent.d.ts +1 -0
  588. package/mobile/dist/hooks/useLink.js +11 -2
  589. package/mobile/dist/hooks/useLink.js.map +1 -1
  590. package/mobile/dist/services/BlockRouter/BlockIntersection.d.ts +2 -0
  591. package/mobile/dist/services/BlockRouter/BlockIntersection.js +2 -0
  592. package/mobile/dist/services/BlockRouter/BlockIntersection.js.map +1 -0
  593. package/mobile/dist/services/BlockRouter/BlockRouter.d.ts +23 -0
  594. package/mobile/dist/services/BlockRouter/BlockRouter.js +32 -0
  595. package/mobile/dist/services/BlockRouter/BlockRouter.js.map +1 -0
  596. package/mobile/dist/services/BlockRouter/findActiveBlock.d.ts +3 -0
  597. package/mobile/dist/services/BlockRouter/findActiveBlock.js +15 -0
  598. package/mobile/dist/services/BlockRouter/findActiveBlock.js.map +1 -0
  599. package/mobile/dist/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
  600. package/mobile/dist/services/BlockRouter/useBlockIntersectionObserver.js +28 -0
  601. package/mobile/dist/services/BlockRouter/useBlockIntersectionObserver.js.map +1 -0
  602. package/mobile/dist/services/BlockRouter/useBlockRouter.d.ts +2 -0
  603. package/mobile/dist/services/BlockRouter/useBlockRouter.js +8 -0
  604. package/mobile/dist/services/BlockRouter/useBlockRouter.js.map +1 -0
  605. package/mobile/dist/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
  606. package/mobile/dist/services/BlockRouter/useBlockRouterProvider.js +37 -0
  607. package/mobile/dist/services/BlockRouter/useBlockRouterProvider.js.map +1 -0
  608. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
  609. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  610. package/mobile/dist/ui-kit/BlockWrapper.js +6 -20
  611. package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
  612. package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js +1 -1
  613. package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  614. package/mobile/dist/ui-kit/InnerTable/InnerTable.js +3 -2
  615. package/mobile/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
  616. package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +2 -4
  617. package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  618. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
  619. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  620. package/mobile/dist/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
  621. package/mobile/dist/ui-kit/Paragraph/Paragraph.d.ts +1 -8
  622. package/mobile/dist/ui-kit/Paragraph/Paragraph.js.map +1 -1
  623. package/mobile/dist/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
  624. package/mobile/dist/ui-kit/Paragraph/ParagraphProps.js +2 -0
  625. package/mobile/dist/ui-kit/Paragraph/ParagraphProps.js.map +1 -0
  626. package/mobile/dist/ui-kit/Radio/Radio.js +1 -1
  627. package/mobile/dist/ui-kit/Radio/Radio.js.map +1 -1
  628. package/mobile/dist/ui-kit/Radio/RadioProps.d.ts +1 -2
  629. package/mobile/dist/ui-kit/Select/Select.js +1 -1
  630. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  631. package/mobile/dist/ui-kit/Text/Text.d.ts +1 -26
  632. package/mobile/dist/ui-kit/Text/Text.js.map +1 -1
  633. package/mobile/dist/ui-kit/Text/TextProps.d.ts +26 -0
  634. package/mobile/dist/ui-kit/Text/TextProps.js +2 -0
  635. package/mobile/dist/ui-kit/Text/TextProps.js.map +1 -0
  636. package/mobile/dist/ui-kit/YandexMap/useYandexMaps.js +1 -1
  637. package/mobile/dist/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
  638. package/mobile/dist/utils/adjustHref.js +3 -1
  639. package/mobile/dist/utils/adjustHref.js.map +1 -1
  640. package/mobile/dist/utils/debounce.d.ts +5 -0
  641. package/mobile/dist/utils/debounce.js +19 -0
  642. package/mobile/dist/utils/debounce.js.map +1 -0
  643. package/mobile/lib/EventBus/EventBus.d.ts +6 -5
  644. package/mobile/lib/EventBus/EventBus.js +5 -3
  645. package/mobile/lib/EventBus/EventBus.js.map +1 -1
  646. package/mobile/lib/EventBus/EventMap.d.ts +1 -4
  647. package/mobile/lib/ProjectSettings.d.ts +2 -0
  648. package/mobile/lib/ProjectSettings.js +3 -0
  649. package/mobile/lib/ProjectSettings.js.map +1 -1
  650. package/mobile/lib/components/AccordionItem/AccordionItem.js +1 -1
  651. package/mobile/lib/components/AccordionItem/AccordionItem.js.map +1 -1
  652. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  653. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  654. package/mobile/lib/components/Bonus/Bonus.js +2 -2
  655. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  656. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  657. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  658. package/mobile/lib/components/BusinessBlock/BusinessBlock.js +1 -1
  659. package/mobile/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
  660. package/mobile/lib/components/Calculator/BonusCalculatorForm.js +5 -3
  661. package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  662. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +4 -2
  663. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  664. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +5 -3
  665. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  666. package/mobile/lib/components/Calculator/renderProposal.js +2 -2
  667. package/mobile/lib/components/Calculator/renderProposal.js.map +1 -1
  668. package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -1
  669. package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  670. package/mobile/lib/components/Carousel/Carousel.js +2 -1
  671. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  672. package/mobile/lib/components/CarouselCard/CarouselCard.js +2 -2
  673. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  674. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
  675. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +26 -0
  676. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -0
  677. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +46 -0
  678. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js +2 -0
  679. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js.map +1 -0
  680. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  681. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +4 -2
  682. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  683. package/mobile/lib/components/Catalog/Catalog.js +1 -1
  684. package/mobile/lib/components/Catalog/Catalog.js.map +1 -1
  685. package/mobile/lib/components/ContactsBlock/ContactsBlock.js +1 -1
  686. package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  687. package/mobile/lib/components/ContentPage/ContentPage.js +2 -0
  688. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  689. package/mobile/lib/components/ContentPage/useContentPageData.js +4 -8
  690. package/mobile/lib/components/ContentPage/useContentPageData.js.map +1 -1
  691. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  692. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  693. package/mobile/lib/components/Footer/FooterDataProps.d.ts +8 -3
  694. package/mobile/lib/components/Footer/MediaButton.js +1 -1
  695. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  696. package/mobile/lib/components/Gallery/Gallery.js +1 -1
  697. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  698. package/mobile/lib/components/Gallery/GalleryCardInner.js +7 -2
  699. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  700. package/mobile/lib/components/Gallery/GalleryContent.d.ts +5 -0
  701. package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
  702. package/mobile/lib/components/GracePeriod/GracePeriod.js +2 -2
  703. package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
  704. package/mobile/lib/components/Header/Header.js +3 -3
  705. package/mobile/lib/components/Header/Header.js.map +1 -1
  706. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -1
  707. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  708. package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js +1 -1
  709. package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
  710. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  711. package/mobile/lib/components/Header/HeaderTop.js +1 -1
  712. package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
  713. package/mobile/lib/components/ImgBlock/ImgBlock.d.ts +6 -0
  714. package/mobile/lib/components/ImgBlock/ImgBlock.js +9 -0
  715. package/mobile/lib/components/ImgBlock/ImgBlock.js.map +1 -0
  716. package/mobile/lib/components/ImgBlock/ImgBlockContent.d.ts +7 -0
  717. package/mobile/lib/components/ImgBlock/ImgBlockContent.js +2 -0
  718. package/mobile/lib/components/ImgBlock/ImgBlockContent.js.map +1 -0
  719. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +7 -9
  720. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  721. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +4 -4
  722. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  723. package/mobile/lib/components/LinkList/LinkList.js +1 -1
  724. package/mobile/lib/components/LinkList/LinkList.js.map +1 -1
  725. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  726. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  727. package/mobile/lib/components/OfficeMap/useOfficeMap.js +3 -4
  728. package/mobile/lib/components/OfficeMap/useOfficeMap.js.map +1 -1
  729. package/mobile/lib/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
  730. package/mobile/lib/components/ParagraphBlock/ParagraphBlock.js +9 -0
  731. package/mobile/lib/components/ParagraphBlock/ParagraphBlock.js.map +1 -0
  732. package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
  733. package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.js +2 -0
  734. package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.js.map +1 -0
  735. package/mobile/lib/components/ProductGallery/ProductGallery.js +10 -10
  736. package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  737. package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js +1 -3
  738. package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  739. package/mobile/lib/components/SafeDepositRental/RenderRadioButtons.js +2 -2
  740. package/mobile/lib/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
  741. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +2 -4
  742. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  743. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  744. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
  745. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  746. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  747. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js +2 -2
  748. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  749. package/mobile/lib/components/StepsBlock/StepsBlock.js +3 -3
  750. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  751. package/mobile/lib/components/Tabs/LinkTab.d.ts +0 -1
  752. package/mobile/lib/components/Tabs/LinkTab.js +2 -8
  753. package/mobile/lib/components/Tabs/LinkTab.js.map +1 -1
  754. package/mobile/lib/components/Tabs/Tabs.d.ts +0 -4
  755. package/mobile/lib/components/Tabs/Tabs.js +7 -13
  756. package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
  757. package/mobile/lib/components/TariffsTable/TableTileHeader.js +1 -3
  758. package/mobile/lib/components/TariffsTable/TableTileHeader.js.map +1 -1
  759. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +4 -2
  760. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  761. package/mobile/lib/components/Video/VideoContent.d.ts +1 -0
  762. package/mobile/lib/hooks/useLink.js +11 -2
  763. package/mobile/lib/hooks/useLink.js.map +1 -1
  764. package/mobile/lib/services/BlockRouter/BlockIntersection.d.ts +2 -0
  765. package/mobile/lib/services/BlockRouter/BlockIntersection.js +2 -0
  766. package/mobile/lib/services/BlockRouter/BlockIntersection.js.map +1 -0
  767. package/mobile/lib/services/BlockRouter/BlockRouter.d.ts +23 -0
  768. package/mobile/lib/services/BlockRouter/BlockRouter.js +29 -0
  769. package/mobile/lib/services/BlockRouter/BlockRouter.js.map +1 -0
  770. package/mobile/lib/services/BlockRouter/findActiveBlock.d.ts +3 -0
  771. package/mobile/lib/services/BlockRouter/findActiveBlock.js +12 -0
  772. package/mobile/lib/services/BlockRouter/findActiveBlock.js.map +1 -0
  773. package/mobile/lib/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
  774. package/mobile/lib/services/BlockRouter/useBlockIntersectionObserver.js +25 -0
  775. package/mobile/lib/services/BlockRouter/useBlockIntersectionObserver.js.map +1 -0
  776. package/mobile/lib/services/BlockRouter/useBlockRouter.d.ts +2 -0
  777. package/mobile/lib/services/BlockRouter/useBlockRouter.js +5 -0
  778. package/mobile/lib/services/BlockRouter/useBlockRouter.js.map +1 -0
  779. package/mobile/lib/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
  780. package/mobile/lib/services/BlockRouter/useBlockRouterProvider.js +34 -0
  781. package/mobile/lib/services/BlockRouter/useBlockRouterProvider.js.map +1 -0
  782. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
  783. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  784. package/mobile/lib/ui-kit/BlockWrapper.js +7 -21
  785. package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
  786. package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js +1 -1
  787. package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  788. package/mobile/lib/ui-kit/InnerTable/InnerTable.js +4 -3
  789. package/mobile/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
  790. package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +3 -5
  791. package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  792. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
  793. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  794. package/mobile/lib/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
  795. package/mobile/lib/ui-kit/Paragraph/Paragraph.d.ts +1 -8
  796. package/mobile/lib/ui-kit/Paragraph/Paragraph.js.map +1 -1
  797. package/mobile/lib/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
  798. package/mobile/lib/ui-kit/Paragraph/ParagraphProps.js +2 -0
  799. package/mobile/lib/ui-kit/Paragraph/ParagraphProps.js.map +1 -0
  800. package/mobile/lib/ui-kit/Radio/Radio.js +1 -1
  801. package/mobile/lib/ui-kit/Radio/Radio.js.map +1 -1
  802. package/mobile/lib/ui-kit/Radio/RadioProps.d.ts +1 -2
  803. package/mobile/lib/ui-kit/Select/Select.js +1 -1
  804. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  805. package/mobile/lib/ui-kit/Text/Text.d.ts +1 -26
  806. package/mobile/lib/ui-kit/Text/Text.js.map +1 -1
  807. package/mobile/lib/ui-kit/Text/TextProps.d.ts +26 -0
  808. package/mobile/lib/ui-kit/Text/TextProps.js +2 -0
  809. package/mobile/lib/ui-kit/Text/TextProps.js.map +1 -0
  810. package/mobile/lib/ui-kit/YandexMap/useYandexMaps.js +1 -1
  811. package/mobile/lib/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
  812. package/mobile/lib/utils/adjustHref.js +3 -1
  813. package/mobile/lib/utils/adjustHref.js.map +1 -1
  814. package/mobile/lib/utils/debounce.d.ts +5 -0
  815. package/mobile/lib/utils/debounce.js +16 -0
  816. package/mobile/lib/utils/debounce.js.map +1 -0
  817. package/mobile/src/EventBus/EventBus.ts +18 -14
  818. package/mobile/src/EventBus/EventMap.ts +1 -4
  819. package/mobile/src/ProjectSettings.ts +4 -0
  820. package/mobile/src/components/AccordionItem/AccordionItem.tsx +1 -1
  821. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  822. package/mobile/src/components/Bonus/Bonus.tsx +2 -4
  823. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
  824. package/mobile/src/components/BusinessBlock/BusinessBlock.tsx +1 -1
  825. package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +5 -3
  826. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +5 -3
  827. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +5 -3
  828. package/mobile/src/components/Calculator/renderProposal.tsx +2 -2
  829. package/mobile/src/components/CardTransfer/CardTransfer.tsx +1 -1
  830. package/mobile/src/components/Carousel/Carousel.tsx +2 -1
  831. package/mobile/src/components/CarouselCard/CarouselCard.tsx +2 -2
  832. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +28 -0
  833. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +83 -0
  834. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.ui.json +9 -0
  835. package/mobile/src/components/{InvestmentGallery/InvestmentGalleryContent.ts → CarouselInvestmentCard/CarouselInvestmentCardContent.ts} +20 -25
  836. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +27 -32
  837. package/mobile/src/components/Catalog/Catalog.example.json +1 -1
  838. package/mobile/src/components/Catalog/Catalog.tsx +1 -1
  839. package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
  840. package/mobile/src/components/ContentPage/ContentPage.tsx +3 -0
  841. package/mobile/src/components/ContentPage/useContentPageData.ts +4 -8
  842. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
  843. package/mobile/src/components/Footer/FooterDataProps.ts +8 -3
  844. package/mobile/src/components/Footer/MediaButton.tsx +1 -1
  845. package/mobile/src/components/Gallery/Gallery.tsx +1 -1
  846. package/mobile/src/components/Gallery/GalleryCardInner.tsx +8 -2
  847. package/mobile/src/components/Gallery/GalleryContent.ts +5 -0
  848. package/mobile/src/components/Gallery/GalleryInner.tsx +0 -1
  849. package/mobile/src/components/GracePeriod/GracePeriod.tsx +2 -2
  850. package/mobile/src/components/Header/Header.tsx +5 -7
  851. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +1 -1
  852. package/mobile/src/components/Header/HeaderSecondaryMenuButton.tsx +1 -1
  853. package/mobile/src/components/Header/HeaderSubMenu.tsx +1 -0
  854. package/mobile/src/components/Header/HeaderTop.tsx +1 -1
  855. package/mobile/src/components/ImgBlock/ImgBlock.example.json +11 -0
  856. package/mobile/src/components/ImgBlock/ImgBlock.tsx +17 -0
  857. package/mobile/src/components/ImgBlock/ImgBlock.ui.json +7 -0
  858. package/mobile/src/components/ImgBlock/ImgBlockContent.ts +8 -0
  859. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +9 -12
  860. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +6 -9
  861. package/mobile/src/components/LinkList/LinkList.tsx +1 -1
  862. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
  863. package/mobile/src/components/OfficeMap/useOfficeMap.ts +4 -4
  864. package/mobile/src/components/ParagraphBlock/ParagraphBlock.example.json +5 -0
  865. package/mobile/src/components/ParagraphBlock/ParagraphBlock.tsx +19 -0
  866. package/mobile/src/components/ParagraphBlock/ParagraphBlock.ui.json +1 -0
  867. package/mobile/src/components/ParagraphBlock/ParagraphBlockContent.ts +9 -0
  868. package/mobile/src/components/ProductGallery/ProductGallery.tsx +15 -15
  869. package/mobile/src/components/SafeDepositRental/RegionsAndBranches.tsx +24 -26
  870. package/mobile/src/components/SafeDepositRental/RenderRadioButtons.tsx +2 -3
  871. package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -5
  872. package/mobile/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +3 -3
  873. package/mobile/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +3 -3
  874. package/mobile/src/components/StepsBlock/StepsBlock.tsx +3 -3
  875. package/mobile/src/components/Tabs/LinkTab.tsx +2 -10
  876. package/mobile/src/components/Tabs/Tabs.tsx +11 -19
  877. package/mobile/src/components/TariffsTable/TableTileHeader.tsx +8 -10
  878. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +12 -5
  879. package/mobile/src/components/Video/VideoContent.ts +1 -0
  880. package/mobile/src/hooks/useLink.ts +13 -2
  881. package/mobile/src/services/BlockRouter/BlockIntersection.ts +3 -0
  882. package/mobile/src/services/BlockRouter/BlockRouter.ts +51 -0
  883. package/mobile/src/services/BlockRouter/findActiveBlock.ts +20 -0
  884. package/mobile/src/services/BlockRouter/useBlockIntersectionObserver.ts +37 -0
  885. package/mobile/src/services/BlockRouter/useBlockRouter.ts +5 -0
  886. package/mobile/src/services/BlockRouter/useBlockRouterProvider.ts +49 -0
  887. package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +1 -1
  888. package/mobile/src/ui-kit/BlockWrapper.tsx +9 -32
  889. package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +1 -1
  890. package/mobile/src/ui-kit/InnerTable/InnerTable.tsx +4 -5
  891. package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +6 -5
  892. package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +5 -2
  893. package/mobile/src/ui-kit/InnerTable/InnerTableProps.ts +0 -6
  894. package/mobile/src/ui-kit/Paragraph/Paragraph.tsx +1 -8
  895. package/mobile/src/ui-kit/Paragraph/ParagraphProps.ts +8 -0
  896. package/mobile/src/ui-kit/Radio/Radio.tsx +1 -1
  897. package/mobile/src/ui-kit/Radio/RadioProps.ts +1 -1
  898. package/mobile/src/ui-kit/Select/Select.tsx +2 -3
  899. package/mobile/src/ui-kit/Text/Text.tsx +1 -63
  900. package/mobile/src/ui-kit/Text/TextProps.ts +63 -0
  901. package/mobile/src/ui-kit/YandexMap/useYandexMaps.ts +3 -1
  902. package/mobile/src/utils/adjustHref.ts +3 -1
  903. package/mobile/src/utils/debounce.ts +24 -0
  904. package/package.json +1 -1
  905. package/src/EventBus/EventBus.ts +18 -14
  906. package/src/EventBus/EventMap.ts +1 -4
  907. package/src/ProjectSettings.ts +4 -0
  908. package/src/components/Accordion/Accordion.tsx +1 -1
  909. package/src/components/AccordionItem/AccordionItem.mobile.tsx +1 -1
  910. package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  911. package/src/components/Blocks.ts +7 -3
  912. package/src/components/Bonus/Bonus.tsx +2 -4
  913. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
  914. package/src/components/BusinessBlock/BusinessBlock.tsx +1 -1
  915. package/src/components/Calculator/BonusCalculatorForm.tsx +5 -3
  916. package/src/components/Calculator/CreditCalculatorForm.tsx +5 -3
  917. package/src/components/Calculator/DepositCalculatorForm.tsx +5 -3
  918. package/src/components/Calculator/renderProposal.tsx +2 -2
  919. package/src/components/CardTransfer/CardTransfer.tsx +1 -1
  920. package/src/components/Carousel/Carousel.fixture.tsx +20 -1
  921. package/src/components/Carousel/Carousel.tsx +2 -1
  922. package/src/components/CarouselCard/CarouselCard.fixture.tsx +1 -1
  923. package/src/components/CarouselCard/CarouselCard.tsx +2 -2
  924. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +28 -0
  925. package/src/components/{InvestmentGallery/InvestmentGallery.fixture.tsx → CarouselInvestmentCard/CarouselInvestmentCard.fixture.tsx} +21 -27
  926. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +83 -0
  927. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.ui.json +9 -0
  928. package/src/components/{InvestmentGallery/InvestmentGalleryContent.ts → CarouselInvestmentCard/CarouselInvestmentCardContent.ts} +20 -25
  929. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +0 -1
  930. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +27 -32
  931. package/src/components/Catalog/Catalog.example.json +1 -1
  932. package/src/components/Catalog/Catalog.tsx +1 -1
  933. package/src/components/ComparisonTable/ComparisonTable.tsx +4 -4
  934. package/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
  935. package/src/components/ContentPage/ContentPage.tsx +3 -0
  936. package/src/components/ContentPage/useContentPageData.ts +4 -8
  937. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
  938. package/src/components/Footer/Footer.tsx +2 -2
  939. package/src/components/Footer/FooterDataProps.ts +8 -3
  940. package/src/components/Footer/MediaButton.tsx +1 -1
  941. package/src/components/Gallery/Gallery.mobile.tsx +1 -1
  942. package/src/components/Gallery/GalleryCardInner.tsx +8 -2
  943. package/src/components/Gallery/GalleryContent.ts +5 -0
  944. package/src/components/Gallery/GalleryInner.tsx +0 -1
  945. package/src/components/GracePeriod/GracePeriod.tsx +2 -2
  946. package/src/components/Header/Header.mobile.tsx +5 -7
  947. package/src/components/Header/Header.tsx +1 -1
  948. package/src/components/Header/HeaderSecondaryMenu.tsx +1 -1
  949. package/src/components/Header/HeaderSecondaryMenuButton.tsx +1 -1
  950. package/src/components/Header/HeaderSubMenu.tsx +1 -0
  951. package/src/components/Header/HeaderTop.tsx +1 -1
  952. package/src/components/Headline/Headline.tsx +1 -1
  953. package/src/components/ImgBlock/ImgBlock.example.json +11 -0
  954. package/src/components/ImgBlock/ImgBlock.fixture.tsx +21 -0
  955. package/src/components/ImgBlock/ImgBlock.tsx +17 -0
  956. package/src/components/ImgBlock/ImgBlock.ui.json +7 -0
  957. package/src/components/ImgBlock/ImgBlockContent.ts +8 -0
  958. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +9 -12
  959. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +6 -9
  960. package/src/components/LinkDocs/LinkDocs.tsx +1 -4
  961. package/src/components/LinkList/LinkList.tsx +1 -1
  962. package/src/components/MobileAppTile/MobileAppTile.mobile.tsx +1 -1
  963. package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
  964. package/src/components/OfficeMap/useOfficeMap.ts +4 -4
  965. package/src/components/ParagraphBlock/ParagraphBlock.example.json +5 -0
  966. package/src/components/ParagraphBlock/ParagraphBlock.fixture.tsx +45 -0
  967. package/src/components/ParagraphBlock/ParagraphBlock.tsx +19 -0
  968. package/src/components/ParagraphBlock/ParagraphBlock.ui.json +1 -0
  969. package/src/components/ParagraphBlock/ParagraphBlockContent.ts +9 -0
  970. package/src/components/ProductBlock/ProductBlock.tsx +1 -1
  971. package/src/components/ProductGallery/ProductGallery.tsx +15 -15
  972. package/src/components/Recommendation/Recommendation.fixture.tsx +38 -1
  973. package/src/components/SafeDepositRental/RegionsAndBranches.tsx +24 -26
  974. package/src/components/SafeDepositRental/RenderRadioButtons.tsx +2 -3
  975. package/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -5
  976. package/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +3 -3
  977. package/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +3 -3
  978. package/src/components/StepsBlock/StepsBlock.mobile.tsx +3 -3
  979. package/src/components/StepsBlock/StepsBlock.tsx +4 -7
  980. package/src/components/Tabs/LinkTab.tsx +2 -10
  981. package/src/components/Tabs/Tabs.tsx +11 -19
  982. package/src/components/TariffsTable/TableTileHeader.tsx +8 -10
  983. package/src/components/TariffsTable/TariffsTable.tsx +21 -23
  984. package/src/components/TariffsTable/TariffsTableRow.tsx +12 -5
  985. package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +3 -3
  986. package/src/components/Video/VideoContent.ts +1 -0
  987. package/src/hooks/useLink.ts +13 -2
  988. package/src/services/BlockRouter/BlockIntersection.ts +3 -0
  989. package/src/services/BlockRouter/BlockRouter.ts +51 -0
  990. package/src/services/BlockRouter/findActiveBlock.ts +20 -0
  991. package/src/services/BlockRouter/useBlockIntersectionObserver.ts +37 -0
  992. package/src/services/BlockRouter/useBlockRouter.ts +5 -0
  993. package/src/services/BlockRouter/useBlockRouterProvider.ts +49 -0
  994. package/src/ui-kit/BenefitItem/BenefitItem.tsx +1 -1
  995. package/src/ui-kit/BlockWrapper.tsx +9 -32
  996. package/src/ui-kit/HeaderItem/HeaderItem.mobile.tsx +1 -1
  997. package/src/ui-kit/HeaderItem/HeaderItem.tsx +1 -1
  998. package/src/ui-kit/InnerTable/InnerTable.tsx +4 -5
  999. package/src/ui-kit/InnerTable/InnerTableBody.tsx +6 -5
  1000. package/src/ui-kit/InnerTable/InnerTableButton.tsx +5 -2
  1001. package/src/ui-kit/InnerTable/InnerTableProps.ts +0 -6
  1002. package/src/ui-kit/Paragraph/Paragraph.tsx +1 -8
  1003. package/src/ui-kit/Paragraph/ParagraphProps.ts +8 -0
  1004. package/src/ui-kit/Radio/Radio.tsx +1 -1
  1005. package/src/ui-kit/Radio/RadioProps.ts +1 -1
  1006. package/src/ui-kit/Select/Select.tsx +2 -3
  1007. package/src/ui-kit/Text/Text.tsx +1 -63
  1008. package/src/ui-kit/Text/TextProps.ts +63 -0
  1009. package/src/ui-kit/YandexMap/useYandexMaps.ts +3 -1
  1010. package/src/utils/adjustHref.ts +3 -1
  1011. package/src/utils/debounce.ts +24 -0
  1012. package/tailwind.config.cjs +8 -0
  1013. package/bundle/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
  1014. package/bundle/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
  1015. package/bundle/components/SafeDepositRental/YandexMap.d.ts +0 -5
  1016. package/bundle/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
  1017. package/bundle/utils/changeHashOnObserve.d.ts +0 -9
  1018. package/dist/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
  1019. package/dist/components/InvestmentGallery/InvestmentGallery.js +0 -26
  1020. package/dist/components/InvestmentGallery/InvestmentGallery.js.map +0 -1
  1021. package/dist/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
  1022. package/dist/components/InvestmentGallery/InvestmentGalleryCard.js +0 -23
  1023. package/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +0 -1
  1024. package/dist/components/InvestmentGallery/InvestmentGalleryContent.js.map +0 -1
  1025. package/dist/components/SafeDepositRental/YandexMap.d.ts +0 -5
  1026. package/dist/components/SafeDepositRental/YandexMap.js +0 -31
  1027. package/dist/components/SafeDepositRental/YandexMap.js.map +0 -1
  1028. package/dist/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
  1029. package/dist/components/SafeDepositRental/useYandexMaps.js +0 -12
  1030. package/dist/components/SafeDepositRental/useYandexMaps.js.map +0 -1
  1031. package/dist/utils/changeHashOnObserve.d.ts +0 -9
  1032. package/dist/utils/changeHashOnObserve.js +0 -21
  1033. package/dist/utils/changeHashOnObserve.js.map +0 -1
  1034. package/lib/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
  1035. package/lib/components/InvestmentGallery/InvestmentGallery.js +0 -24
  1036. package/lib/components/InvestmentGallery/InvestmentGallery.js.map +0 -1
  1037. package/lib/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
  1038. package/lib/components/InvestmentGallery/InvestmentGalleryCard.js +0 -21
  1039. package/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +0 -1
  1040. package/lib/components/InvestmentGallery/InvestmentGalleryContent.js +0 -2
  1041. package/lib/components/InvestmentGallery/InvestmentGalleryContent.js.map +0 -1
  1042. package/lib/components/SafeDepositRental/YandexMap.d.ts +0 -5
  1043. package/lib/components/SafeDepositRental/YandexMap.js +0 -29
  1044. package/lib/components/SafeDepositRental/YandexMap.js.map +0 -1
  1045. package/lib/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
  1046. package/lib/components/SafeDepositRental/useYandexMaps.js +0 -9
  1047. package/lib/components/SafeDepositRental/useYandexMaps.js.map +0 -1
  1048. package/lib/utils/changeHashOnObserve.d.ts +0 -9
  1049. package/lib/utils/changeHashOnObserve.js +0 -18
  1050. package/lib/utils/changeHashOnObserve.js.map +0 -1
  1051. package/mobile/bundle/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
  1052. package/mobile/bundle/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
  1053. package/mobile/bundle/components/SafeDepositRental/YandexMap.d.ts +0 -5
  1054. package/mobile/bundle/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
  1055. package/mobile/bundle/utils/changeHashOnObserve.d.ts +0 -9
  1056. package/mobile/dist/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
  1057. package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js +0 -26
  1058. package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js.map +0 -1
  1059. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
  1060. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js +0 -23
  1061. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +0 -1
  1062. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryContent.d.ts +0 -50
  1063. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryContent.js.map +0 -1
  1064. package/mobile/dist/components/SafeDepositRental/YandexMap.d.ts +0 -5
  1065. package/mobile/dist/components/SafeDepositRental/YandexMap.js +0 -31
  1066. package/mobile/dist/components/SafeDepositRental/YandexMap.js.map +0 -1
  1067. package/mobile/dist/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
  1068. package/mobile/dist/components/SafeDepositRental/useYandexMaps.js +0 -12
  1069. package/mobile/dist/components/SafeDepositRental/useYandexMaps.js.map +0 -1
  1070. package/mobile/dist/utils/changeHashOnObserve.d.ts +0 -9
  1071. package/mobile/dist/utils/changeHashOnObserve.js +0 -21
  1072. package/mobile/dist/utils/changeHashOnObserve.js.map +0 -1
  1073. package/mobile/lib/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
  1074. package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js +0 -24
  1075. package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js.map +0 -1
  1076. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
  1077. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js +0 -21
  1078. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +0 -1
  1079. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryContent.d.ts +0 -50
  1080. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryContent.js +0 -2
  1081. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryContent.js.map +0 -1
  1082. package/mobile/lib/components/SafeDepositRental/YandexMap.d.ts +0 -5
  1083. package/mobile/lib/components/SafeDepositRental/YandexMap.js +0 -29
  1084. package/mobile/lib/components/SafeDepositRental/YandexMap.js.map +0 -1
  1085. package/mobile/lib/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
  1086. package/mobile/lib/components/SafeDepositRental/useYandexMaps.js +0 -9
  1087. package/mobile/lib/components/SafeDepositRental/useYandexMaps.js.map +0 -1
  1088. package/mobile/lib/utils/changeHashOnObserve.d.ts +0 -9
  1089. package/mobile/lib/utils/changeHashOnObserve.js +0 -18
  1090. package/mobile/lib/utils/changeHashOnObserve.js.map +0 -1
  1091. package/mobile/src/components/InvestmentGallery/InvestmentGallery.example.json +0 -64
  1092. package/mobile/src/components/InvestmentGallery/InvestmentGallery.tsx +0 -66
  1093. package/mobile/src/components/InvestmentGallery/InvestmentGallery.ui.json +0 -11
  1094. package/mobile/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +0 -84
  1095. package/mobile/src/components/SafeDepositRental/YandexMap.tsx +0 -43
  1096. package/mobile/src/components/SafeDepositRental/useYandexMaps.ts +0 -13
  1097. package/mobile/src/utils/changeHashOnObserve.ts +0 -30
  1098. package/src/components/InvestmentGallery/InvestmentGallery.example.json +0 -64
  1099. package/src/components/InvestmentGallery/InvestmentGallery.tsx +0 -66
  1100. package/src/components/InvestmentGallery/InvestmentGallery.ui.json +0 -11
  1101. package/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +0 -84
  1102. package/src/components/SafeDepositRental/YandexMap.tsx +0 -43
  1103. package/src/components/SafeDepositRental/useYandexMaps.ts +0 -13
  1104. package/src/utils/changeHashOnObserve.ts +0 -30
@@ -22,10 +22,9 @@ exports.TariffsTable = (0, uni_jsx_1.JSX)(({ className = '', title, description,
22
22
  itemCount: itemCount,
23
23
  visibleItemCount: constants_1.COLS_LENGTH_FOR_SCROLL,
24
24
  });
25
- const { isScrollAvailable } = controls;
26
25
  const rows = (rowData || []).map((row, i) => ((0, jsx_runtime_1.jsx)(TariffsTableRow_1.TariffsTableRow, { row: row, activeIndex: activeIndex, rowIdx: i, ...rest }, String(i))));
27
26
  const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
28
- return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${itemCount > 1 ? 'pr-0' : ''} ${className}`, ...rest, children: [renderTitle({ title, description }), renderDescription(description), hiddenRowsNum > 0 ? ((0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsxs)(Wrapper, { controls: controls, isScrollAvailable: isScrollAvailable, children: [visibleRows, (0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: DefaultFoldButton_1.renderDefaultFoldButton })) : ((0, jsx_runtime_1.jsx)(Wrapper, { controls: controls, isScrollAvailable: isScrollAvailable, children: rows }))] }));
27
+ return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `bg-white font-sans p-12 overflow-hidden text-primary-text relative ${itemCount > 1 ? 'pr-0' : ''} ${className}`, ...rest, children: [renderTitle({ title, description }), renderDescription(description), hiddenRowsNum > 0 ? ((0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsxs)(Wrapper, { controls: controls, children: [visibleRows, (0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: DefaultFoldButton_1.renderDefaultFoldButton })) : ((0, jsx_runtime_1.jsx)(Wrapper, { controls: controls, children: rows }))] }));
29
28
  });
30
29
  function renderTitle({ title, description }) {
31
30
  return title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: `text-center ${description ? 'mb-2.5' : 'mb-8'}`, title: title })) : null;
@@ -33,11 +32,12 @@ function renderTitle({ title, description }) {
33
32
  function renderDescription(description) {
34
33
  return description ? (0, jsx_runtime_1.jsx)("div", { className: "mb-9 text-center text-l", children: description }) : null;
35
34
  }
36
- const Wrapper = (0, uni_jsx_1.JSX)(({ children, controls, isScrollAvailable }) => ((0, jsx_runtime_1.jsxs)("div", { role: "table", children: [(0, jsx_runtime_1.jsxs)("div", { className: "relative", children: [children, isScrollAvailable
37
- ? (0, renderArrows_1.renderArrows)({
35
+ const Wrapper = (0, uni_jsx_1.JSX)(({ children, controls }) => {
36
+ const { isScrollAvailable } = controls;
37
+ return ((0, jsx_runtime_1.jsxs)("div", { role: "table", children: [(0, jsx_runtime_1.jsxs)("div", { className: "relative", children: [children, (0, renderArrows_1.renderArrows)({
38
38
  ...controls,
39
39
  btnClass: ['top-[108px]', 'top-[44px]'],
40
40
  className: 'right-7',
41
- })
42
- : null] }), isScrollAvailable ? ((0, jsx_runtime_1.jsx)("div", { className: "absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" })) : null] })));
41
+ })] }), isScrollAvailable ? ((0, jsx_runtime_1.jsx)("div", { className: "absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" })) : null] }));
42
+ });
43
43
  //# sourceMappingURL=TariffsTable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TariffsTable.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTable.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,yEAAsE;AAEtE,4DAAyD;AACzD,mEAAgE;AAChE,+EAAkF;AAClF,6DAA0D;AAC1D,2EAAwE;AACxE,0DAAuD;AACvD,2CAAqD;AAErD,uDAAoD;AASvC,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,WAAW,EACX,UAAU,EACV,cAAc,EAAE,OAAO,EACvB,aAAa,GAAG,CAAC,EACjB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,OAAO,EAAE,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACvD,MAAM,OAAO,GAAG,UAAU,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAA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AI,EAChB,SAAS,EAAE,eAAe,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,EAC3D,KAAK,EAAE,KAAK,GACZ,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC;AAED,SAAS,iBAAiB,CAAC,WAAoB;IAC7C,OAAO,WAAW,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,yBAAyB,YAAE,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,CAAC;AAC3F,CAAC;AAED,MAAM,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC3D,MAAM,EAAE,iBAAiB,EAAE,GAAG,QAAQ,CAAC;IAEvC,OAAO,CACL,iCAAK,IAAI,EAAC,OAAO,aACf,iCAAK,SAAS,EAAC,UAAU,aACtB,QAAQ,EACR,IAAA,2BAAY,EAAC;wBACZ,GAAG,QAAQ;wBACX,QAAQ,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;wBACvC,SAAS,EAAE,SAAS;qBACrB,CAAC,IACE,EACL,iBAAiB,CAAC,CAAC,CAAC,CACnB,gCAAK,SAAS,EAAC,8DAA8D,GAAG,CACjF,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -11,8 +11,10 @@ const TariffsTableCell_1 = require("./TariffsTableCell");
11
11
  const TariffsTableRowContainer_1 = require("./TariffsTableRowContainer");
12
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
+ const handleSetTableInner = (0, hooks_1.useCallback)((_) => setTableInner(_), []);
14
15
  const [openTableInnerIdx, setOpenTableInnerIdx] = (0, hooks_1.useState)(undefined);
16
+ const handleOpenTableInnerIdx = (0, hooks_1.useCallback)((_) => setOpenTableInnerIdx(_), []);
15
17
  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, { 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] }));
18
+ 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-3.5 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: handleSetTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: handleOpenTableInnerIdx, ...rest }, String(i)))) })) : null] }));
17
19
  });
18
20
  //# sourceMappingURL=TariffsTableRow.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TariffsTableRow.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRow.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAuD;AAEvD,8CAA2C;AAE3C,uEAAoE;AACpE,sFAAmF;AACnF,2CAAgF;AAChF,yDAAsD;AAEtD,yEAAsE;AAQzD,QAAA,eAAe,GAAG,IAAA,aAAG,EAChC,CAAC,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC1D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAuC,SAAS,CAAC,CAAC;IAC9F,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,IAAA,gBAAQ,EAAqB,SAAS,CAAC,CAAC;IAE1F,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IAE1D,OAAO,CACL,wBAAC,mDAAwB,IACvB,kBAAkB,EAAE,kBAAkB,EACtC,UAAU,EAAE,UAAU,KAClB,IAAI,aAER,gCAAK,SAAS,EAAE,eAAe,8BAAkB,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"}
1
+ {"version":3,"file":"TariffsTableRow.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRow.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AAEpE,8CAA2C;AAE3C,uEAAoE;AACpE,sFAAmF;AACnF,2CAAgF;AAChF,yDAAsD;AAEtD,yEAAsE;AAQzD,QAAA,eAAe,GAAG,IAAA,aAAG,EAChC,CAAC,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,MA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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,mBAAmB,EAClC,UAAU,EAAE,UAAU,EACtB,iBAAiB,EAAE,iBAAiB,EACpC,oBAAoB,EAAE,uBAAuB,KACzC,IAAI,IARH,MAAM,CAAC,CAAC,CAAC,CASd,CACH,CAAC,GACqB,CAC1B,CAAC,CAAC,CAAC,IAAI,IACiB,CAC5B,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import type { TitleProps } from '../../model/HeadlineType';
2
2
  import type { Picture } from '../../model/Picture';
3
+ /** @title Блок Видео */
3
4
  export interface VideoContent extends TitleProps {
4
5
  /** @title URL */
5
6
  src?: string;
@@ -1,11 +1,13 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.useLink = void 0;
3
+ const useBlockRouter_1 = require("../services/BlockRouter/useBlockRouter");
3
4
  const adjustHref_1 = require("../utils/adjustHref");
4
5
  const url_1 = require("../utils/url");
5
6
  const handlerDecorator_1 = require("./handlerDecorator");
6
7
  const useRouter_1 = require("./useRouter");
7
8
  function useLink() {
8
9
  const router = (0, useRouter_1.useRouter)();
10
+ const blockRouter = (0, useBlockRouter_1.useBlockRouter)();
9
11
  return (props) => {
10
12
  const href = (0, adjustHref_1.adjustHref)(props.href, router);
11
13
  return {
@@ -16,8 +18,15 @@ function useLink() {
16
18
  props.onClick && props.onClick(ev);
17
19
  const isLocalHref = href && !(0, url_1.isURL)(href);
18
20
  const isLocalTarget = !props.target || props.target === '_self';
19
- if (isLocalHref && isLocalTarget && !(0, url_1.isHash)(href)) {
20
- ev?.preventDefault();
21
+ if (!isLocalHref || !isLocalTarget) {
22
+ // Default handle
23
+ return;
24
+ }
25
+ ev?.preventDefault();
26
+ if ((0, url_1.isHash)(href)) {
27
+ blockRouter.goto(href);
28
+ }
29
+ else {
21
30
  router.push(href);
22
31
  }
23
32
  }, props),
@@ -1 +1 @@
1
- {"version":3,"file":"useLink.js","sourceRoot":"","sources":["../../src/hooks/useLink.ts"],"names":[],"mappings":";;AACA,oDAAiD;AACjD,sCAA6C;AAC7C,yDAAsD;AACtD,2CAAwC;AAMxC,SAAgB,OAAO;IAGrB,MAAM,MAAM,GAAG,IAAA,qBAAS,GAAE,CAAC;IAE3B,OAAO,CAAC,KAAK,EAAE,EAAE;QACf,MAAM,IAAI,GAAG,IAAA,uBAAU,EAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAE5C,OAAO;YACL,GAAG,KAAK;YACR,IAAI;YACJ,YAAY,EAAE,KAAK,CAAC,IAAI;YACxB,OAAO,EAAE,IAAA,mCAAgB,EAAC,CAAC,EAAmC,EAAE,EAAE;gBAChE,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;gBACnC,MAAM,WAAW,GAAG,IAAI,IAAI,CAAC,IAAA,WAAK,EAAC,IAAI,CAAC,CAAC;gBACzC,MAAM,aAAa,GAAG,CAAC,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,MAAM,KAAK,OAAO,CAAC;gBAChE,IAAI,WAAW,IAAI,aAAa,IAAI,CAAC,IAAA,YAAM,EAAC,IAAI,CAAC,EAAE;oBACjD,EAAE,EAAE,cAAc,EAAE,CAAC;oBACrB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;iBACnB;YACH,CAAC,EAAE,KAAK,CAAC;SACV,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAvBD,0BAuBC"}
1
+ {"version":3,"file":"useLink.js","sourceRoot":"","sources":["../../src/hooks/useLink.ts"],"names":[],"mappings":";;AACA,2EAAwE;AACxE,oDAAiD;AACjD,sCAA6C;AAC7C,yDAAsD;AACtD,2CAAwC;AAMxC,SAAgB,OAAO;IAGrB,MAAM,MAAM,GAAG,IAAA,qBAAS,GAAE,CAAC;IAC3B,MAAM,WAAW,GAAG,IAAA,+BAAc,GAAE,CAAC;IAErC,OAAO,CAAC,KAAK,EAAE,EAAE;QACf,MAAM,IAAI,GAAG,IAAA,uBAAU,EAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAE5C,OAAO;YACL,GAAG,KAAK;YACR,IAAI;YACJ,YAAY,EAAE,KAAK,CAAC,IAAI;YACxB,OAAO,EAAE,IAAA,mCAAgB,EAAC,CAAC,EAAmC,EAAE,EAAE;gBAChE,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;gBAEnC,MAAM,WAAW,GAAG,IAAI,IAAI,CAAC,IAAA,WAAK,EAAC,IAAI,CAAC,CAAC;gBACzC,MAAM,aAAa,GAAG,CAAC,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,MAAM,KAAK,OAAO,CAAC;gBAEhE,IAAI,CAAC,WAAW,IAAI,CAAC,aAAa,EAAE;oBAClC,iBAAiB;oBACjB,OAAO;iBACR;gBAED,EAAE,EAAE,cAAc,EAAE,CAAC;gBACrB,IAAI,IAAA,YAAM,EAAC,IAAI,CAAC,EAAE;oBAChB,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;iBACxB;qBAAM;oBACL,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;iBACnB;YACH,CAAC,EAAE,KAAK,CAAC;SACV,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAjCD,0BAiCC"}
@@ -0,0 +1,2 @@
1
+ import type { BlockDef } from '../../model/ContentPageDef';
2
+ export declare type BlockIntersection = [BlockDef, IntersectionObserverEntry];
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=BlockIntersection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockIntersection.js","sourceRoot":"","sources":["../../../src/services/BlockRouter/BlockIntersection.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ import { EventBus } from '../../EventBus/EventBus';
2
+ import type { BlockDef } from '../../model/ContentPageDef';
3
+ export interface GotoAnchorEvent {
4
+ anchor: string;
5
+ }
6
+ export interface BlockIntersectionEvent {
7
+ block: BlockDef;
8
+ intersection: IntersectionObserverEntry;
9
+ }
10
+ interface EventMap {
11
+ goto: GotoAnchorEvent;
12
+ intersection: BlockIntersectionEvent;
13
+ }
14
+ export declare class BlockRouter {
15
+ static readonly inst: BlockRouter;
16
+ readonly eventBus: EventBus<EventMap>;
17
+ constructor();
18
+ goto(rawAnchor: string): void;
19
+ push(rawAnchor: string): void;
20
+ replace(rawAnchor: string): void;
21
+ reset(): void;
22
+ }
23
+ export {};
@@ -0,0 +1,32 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.BlockRouter = void 0;
3
+ const EventBus_1 = require("../../EventBus/EventBus");
4
+ const normalizeAnchor = (rawAnchor) => rawAnchor?.replace('#', '');
5
+ class BlockRouter {
6
+ static inst = new BlockRouter();
7
+ eventBus = new EventBus_1.EventBus();
8
+ constructor() {
9
+ const anchor = normalizeAnchor(globalThis.location?.hash);
10
+ if (anchor) {
11
+ this.eventBus.subject('goto', { anchor });
12
+ }
13
+ }
14
+ goto(rawAnchor) {
15
+ const anchor = normalizeAnchor(rawAnchor);
16
+ if (anchor) {
17
+ this.push(anchor);
18
+ this.eventBus.fire('goto', { anchor });
19
+ }
20
+ }
21
+ push(rawAnchor) {
22
+ globalThis.history?.pushState(null, '', `#${normalizeAnchor(rawAnchor)}`);
23
+ }
24
+ replace(rawAnchor) {
25
+ globalThis.history?.replaceState(null, '', `#${normalizeAnchor(rawAnchor)}`);
26
+ }
27
+ reset() {
28
+ globalThis.history?.replaceState(null, '', '#');
29
+ }
30
+ }
31
+ exports.BlockRouter = BlockRouter;
32
+ //# sourceMappingURL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,CAAC;;AA9BH,kCA+BC"}
@@ -0,0 +1,3 @@
1
+ import type { BlockDef } from '../../model/ContentPageDef';
2
+ import type { BlockIntersection } from './BlockIntersection';
3
+ export declare function findActiveBlock(intersections: BlockIntersection[]): BlockDef | undefined;
@@ -0,0 +1,15 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.findActiveBlock = void 0;
3
+ const minBy_1 = require("../../utils/minBy");
4
+ const SPECIAL_BLOCK_TYPES = ['Header', 'Footer'];
5
+ const EPS = 0.01;
6
+ const topLineDelta = ([, { target }]) => Math.abs(target.getBoundingClientRect().top);
7
+ function findActiveBlock(intersections) {
8
+ const visibleIntersections = intersections
9
+ .filter(([block]) => !SPECIAL_BLOCK_TYPES.includes(block.type || ''))
10
+ .filter(([, { intersectionRatio }]) => intersectionRatio > EPS);
11
+ const [activeBlock] = visibleIntersections.length > 0 ? (0, minBy_1.minBy)(topLineDelta)(visibleIntersections) : [];
12
+ return activeBlock;
13
+ }
14
+ exports.findActiveBlock = findActiveBlock;
15
+ //# sourceMappingURL=findActiveBlock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"findActiveBlock.js","sourceRoot":"","sources":["../../../src/services/BlockRouter/findActiveBlock.ts"],"names":[],"mappings":";;AACA,6CAA0C;AAG1C,MAAM,mBAAmB,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AACjD,MAAM,GAAG,GAAG,IAAI,CAAC;AAEjB,MAAM,YAAY,GAAG,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,CAAoB,EAAE,EAAE,CACzD,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,qBAAqB,EAAE,CAAC,GAAG,CAAC,CAAC;AAE/C,SAAgB,eAAe,CAAC,aAAkC;IAChE,MAAM,oBAAoB,GAAG,aAAa;SACvC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,mBAAmB,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;SACpE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,iBAAiB,EAAE,CAAC,EAAE,EAAE,CAAC,iBAAiB,GAAG,GAAG,CAAC,CAAC;IAElE,MAAM,CAAC,WAAW,CAAC,GACjB,oBAAoB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAA,aAAK,EAAC,YAAY,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAEnF,OAAO,WAAW,CAAC;AACrB,CAAC;AATD,0CASC"}
@@ -0,0 +1,5 @@
1
+ import type { BlockDef } from '../../model/ContentPageDef';
2
+ import { BlockRouter } from './BlockRouter';
3
+ export declare function useBlockIntersectionObserver(block?: BlockDef, router?: BlockRouter): {
4
+ current: Element | null;
5
+ };
@@ -0,0 +1,28 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.useBlockIntersectionObserver = void 0;
3
+ const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
4
+ const useIntersectionObserver_1 = require("../../hooks/useIntersectionObserver");
5
+ const BlockRouter_1 = require("./BlockRouter");
6
+ function useBlockIntersectionObserver(block, router = BlockRouter_1.BlockRouter.inst) {
7
+ const observerCallback = (0, hooks_1.useCallback)((entries) => {
8
+ if (!block || !entries?.length) {
9
+ return;
10
+ }
11
+ const intersection = entries[entries.length - 1];
12
+ router.eventBus.fire('intersection', { block, intersection });
13
+ }, [block, router]);
14
+ const ref = (0, useIntersectionObserver_1.useIntersectionObserver)(observerCallback, { sensitivity: 1 });
15
+ (0, hooks_1.useEffect)(() => {
16
+ if (!ref.current) {
17
+ return undefined;
18
+ }
19
+ return router.eventBus.subscribe('goto', ({ anchor }) => {
20
+ if (ref.current && block?.anchor === anchor) {
21
+ ref.current.scrollIntoView({ behavior: 'smooth', block: 'start' });
22
+ }
23
+ });
24
+ }, [block, router]);
25
+ return ref;
26
+ }
27
+ exports.useBlockIntersectionObserver = useBlockIntersectionObserver;
28
+ //# sourceMappingURL=useBlockIntersectionObserver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBlockIntersectionObserver.js","sourceRoot":"","sources":["../../../src/services/BlockRouter/useBlockIntersectionObserver.ts"],"names":[],"mappings":";;AAAA,uDAAqE;AACrE,iFAA8E;AAE9E,+CAA4C;AAE5C,SAAgB,4BAA4B,CAC1C,KAAgB,EAChB,SAAsB,yBAAW,CAAC,IAAI;IAEtC,MAAM,gBAAgB,GAAG,IAAA,mBAAW,EAClC,CAAC,OAAoC,EAAE,EAAE;QACvC,IAAI,CAAC,KAAK,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE;YAC9B,OAAO;SACR;QAED,MAAM,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACjD,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,CAAC;IAChE,CAAC,EACD,CAAC,KAAK,EAAE,MAAM,CAAC,CAChB,CAAC;IAEF,MAAM,GAAG,GAAG,IAAA,iDAAuB,EAAC,gBAAgB,EAAE,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC,CAAC;IAE1E,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE;YAChB,OAAO,SAAS,CAAC;SAClB;QAED,OAAO,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE;YACtD,IAAI,GAAG,CAAC,OAAO,IAAI,KAAK,EAAE,MAAM,KAAK,MAAM,EAAE;gBAC3C,GAAG,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;aACpE;QACH,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;IAEpB,OAAO,GAAG,CAAC;AACb,CAAC;AA/BD,oEA+BC"}
@@ -0,0 +1,2 @@
1
+ import { BlockRouter } from './BlockRouter';
2
+ export declare function useBlockRouter(): BlockRouter;
@@ -0,0 +1,8 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.useBlockRouter = void 0;
3
+ const BlockRouter_1 = require("./BlockRouter");
4
+ function useBlockRouter() {
5
+ return BlockRouter_1.BlockRouter.inst;
6
+ }
7
+ exports.useBlockRouter = useBlockRouter;
8
+ //# sourceMappingURL=useBlockRouter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBlockRouter.js","sourceRoot":"","sources":["../../../src/services/BlockRouter/useBlockRouter.ts"],"names":[],"mappings":";;AAAA,+CAA4C;AAE5C,SAAgB,cAAc;IAC5B,OAAO,yBAAW,CAAC,IAAI,CAAC;AAC1B,CAAC;AAFD,wCAEC"}
@@ -0,0 +1,2 @@
1
+ import { BlockRouter } from './BlockRouter';
2
+ export declare function useBlockRouterProvider(router?: BlockRouter, scrollTarget?: EventTarget): void;
@@ -0,0 +1,37 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.useBlockRouterProvider = void 0;
3
+ const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
4
+ const debounce_1 = require("../../utils/debounce");
5
+ const BlockRouter_1 = require("./BlockRouter");
6
+ const findActiveBlock_1 = require("./findActiveBlock");
7
+ const isScrolledEnough = () => globalThis.scrollY > (globalThis.innerHeight * 3) / 4;
8
+ function useBlockRouterProvider(router = BlockRouter_1.BlockRouter.inst, scrollTarget = globalThis) {
9
+ const intersectionsMapRef = (0, hooks_1.useRef)(new Map());
10
+ (0, hooks_1.useEffect)(() => router.eventBus.subscribe('intersection', ({ block, intersection }) => {
11
+ if (intersectionsMapRef.current) {
12
+ intersectionsMapRef.current.set(block, intersection);
13
+ }
14
+ }), [router]);
15
+ (0, hooks_1.useEffect)(() => {
16
+ const handleScroll = (0, debounce_1.debounce)(() => {
17
+ if (!isScrolledEnough()) {
18
+ router.reset();
19
+ return;
20
+ }
21
+ const activeBlock = (0, findActiveBlock_1.findActiveBlock)([...(intersectionsMapRef.current || [])]);
22
+ if (activeBlock?.anchor) {
23
+ router.replace(activeBlock.anchor);
24
+ }
25
+ else if (!activeBlock) {
26
+ router.reset();
27
+ }
28
+ }, 100);
29
+ scrollTarget.addEventListener('scroll', handleScroll);
30
+ return () => {
31
+ handleScroll.dispose();
32
+ scrollTarget.removeEventListener('scroll', handleScroll);
33
+ };
34
+ }, [router, scrollTarget]);
35
+ }
36
+ exports.useBlockRouterProvider = useBlockRouterProvider;
37
+ //# sourceMappingURL=useBlockRouterProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBlockRouterProvider.js","sourceRoot":"","sources":["../../../src/services/BlockRouter/useBlockRouterProvider.ts"],"names":[],"mappings":";;AAAA,uDAAgE;AAEhE,mDAAgD;AAChD,+CAA4C;AAC5C,uDAAoD;AAEpD,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,OAAO,GAAG,CAAC,UAAU,CAAC,WAAW,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;AAErF,SAAgB,sBAAsB,CACpC,SAAsB,yBAAW,CAAC,IAAI,EACtC,eAA4B,UAAU;IAEtC,MAAM,mBAAmB,GAAG,IAAA,cAAM,EAA2C,IAAI,GAAG,EAAE,CAAC,CAAC;IAExF,IAAA,iBAAS,EACP,GAAG,EAAE,CACH,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,cAAc,EAAE,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,EAAE;QACpE,IAAI,mBAAmB,CAAC,OAAO,EAAE;YAC/B,mBAAmB,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;SACtD;IACH,CAAC,CAAC,EACJ,CAAC,MAAM,CAAC,CACT,CAAC;IAEF,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,YAAY,GAAG,IAAA,mBAAQ,EAAC,GAAG,EAAE;YACjC,IAAI,CAAC,gBAAgB,EAAE,EAAE;gBACvB,MAAM,CAAC,KAAK,EAAE,CAAC;gBAEf,OAAO;aACR;YAED,MAAM,WAAW,GAAG,IAAA,iCAAe,EAAC,CAAC,GAAG,CAAC,mBAAmB,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;YAE9E,IAAI,WAAW,EAAE,MAAM,EAAE;gBACvB,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;aACpC;iBAAM,IAAI,CAAC,WAAW,EAAE;gBACvB,MAAM,CAAC,KAAK,EAAE,CAAC;aAChB;QACH,CAAC,EAAE,GAAG,CAAC,CAAC;QAER,YAAY,CAAC,gBAAgB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;QAEtD,OAAO,GAAG,EAAE;YACV,YAAY,CAAC,OAAO,EAAE,CAAC;YACvB,YAAY,CAAC,mBAAmB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;QAC3D,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC;AAC7B,CAAC;AAxCD,wDAwCC"}
@@ -26,6 +26,6 @@ function getBenefitIconBgStyle(version, benefitsVersion) {
26
26
  else if (benefitsVersion === 'normal') {
27
27
  bgColorStyle = 'bg-secondary-light text-primary-main';
28
28
  }
29
- return `w-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${bgColorStyle}`;
29
+ return `w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${bgColorStyle}`;
30
30
  }
31
31
  //# sourceMappingURL=BenefitItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BenefitItem.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/BenefitItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,uEAAoE;AAC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,EAAE,IAAA,uCAAkB,EAAC,IAAI,EAAE,WAAW,CAAC,EAAE,KAAK,SAAG,GAC3E,CACP,CAAC,CAAC,CAAC,IAAI,EACR,iCAAK,SAAS,EAAC,SAAS,aACrB,KAAK,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAE,WAAW,aAAa,CAAC,OAAO,CAAC,EAAE,YAAG,KAAK,GAAO,CAAC,CAAC,CAAC,IAAI,EACjF,WAAW,CAAC,CAAC,CAAC,CACb,gCAAK,SAAS,EAAE,gBAAgB,YAAY,CAAC,OAAO,CAAC,EAAE,YAAG,WAAW,GAAO,CAC7E,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,SAAS,qBAAqB,CAAC,OAAqB,EAAE,eAA4B;IAChF,IAAI,YAAY,GAAG,4BAA4B,CAAC;IAEhD,IAAI,OAAO,KAAK,WAAW,EAAE;QAC3B,YAAY,GAAG,wBAAwB,CAAC;KACzC;SAAM,IAAI,eAAe,KAAK,QAAQ,EAAE;QACvC,YAAY,GAAG,sCAAsC,CAAC;KACvD;IAED,OAAO,qFAAqF,YAAY,EAAE,CAAC;AAC7G,CAAC"}
@@ -4,34 +4,20 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
6
6
  const EventBus_1 = require("../EventBus/EventBus");
7
- const useIntersectionObserver_1 = require("../hooks/useIntersectionObserver");
8
- const changeHashOnObserve_1 = require("../utils/changeHashOnObserve");
7
+ const useBlockIntersectionObserver_1 = require("../services/BlockRouter/useBlockIntersectionObserver");
9
8
  exports.BlockWrapper = (0, uni_jsx_1.JSX)(({ className, block, tag = 'section', role, children }) => {
10
9
  const Tag = tag;
11
- const { anchor, labels } = block || {};
10
+ const ref = (0, useBlockIntersectionObserver_1.useBlockIntersectionObserver)(block);
12
11
  const [isVisible, setVisible] = (0, hooks_1.useState)(true);
13
- const anchorClickRef = (0, hooks_1.useRef)({});
14
- const observerCallback = (0, hooks_1.useMemo)(() => (0, changeHashOnObserve_1.changeHashOnObserve)({ anchor, anchorClickRef }), [anchor]);
15
- const ref = (0, useIntersectionObserver_1.useIntersectionObserver)(observerCallback, { sensitivity: 1 });
16
- (0, hooks_1.useEffect)(() => EventBus_1.EventBus.inst.subscribe('anchorClick', (e) => {
17
- setVisible(true);
18
- anchorClickRef.current = e;
19
- }), []);
20
12
  (0, hooks_1.useEffect)(() => EventBus_1.EventBus.inst.subscribe('tab', (event) => {
21
13
  if (event.type === 'group') {
22
- const hasSettings = labels?.length || block?.anchor;
23
- setVisible(event.label ? !hasSettings || Boolean(labels?.includes(event.label)) : true);
14
+ const hasSettings = block?.labels?.length || block?.anchor;
15
+ setVisible(event.label ? !hasSettings || Boolean(block?.labels?.includes(event.label)) : true);
24
16
  }
25
17
  else {
26
- changeHash(event.label);
27
18
  setVisible(true);
28
19
  }
29
- }), []);
30
- return isVisible ? ((0, jsx_runtime_1.jsx)(Tag, { className: className, role: role, ...(anchor ? { id: anchor, ref } : {}), children: children })) : null;
20
+ }), [block]);
21
+ return isVisible ? ((0, jsx_runtime_1.jsx)(Tag, { className: className, role: role, ...(block?.anchor ? { id: block.anchor, ref } : {}), children: children })) : null;
31
22
  });
32
- function changeHash(label) {
33
- if (label) {
34
- globalThis.document.location.hash = label;
35
- }
36
- }
37
23
  //# sourceMappingURL=BlockWrapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BlockWrapper.js","sourceRoot":"","sources":["../../src/ui-kit/BlockWrapper.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAmF;AAEnF,mDAAgD;AAChD,8EAA2E;AAE3E,sEAAmE;AAOtD,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,GAAG,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,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AAM,CAAC;YAC3D,UAAU,CACR,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,IAAI,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CACnF,CAAC;SACH;aAAM;YACL,UAAU,CAAC,IAAI,CAAC,CAAC;SAClB;IACH,CAAC,CAAC,EACJ,CAAC,KAAK,CAAC,CACR,CAAC;IAEF,OAAO,SAAS,CAAC,CAAC,CAAC,CACjB,uBAAC,GAAG,IAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,KAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,YACxF,QAAQ,GACL,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC"}
@@ -4,7 +4,7 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const useLink_1 = require("../../hooks/useLink");
6
6
  const TEXT_CLASSES = 'font-sans text-l-light';
7
- const BORDER_CLASSES = 'absolute left-0 -bottom-3 w-full h-[2px]';
7
+ const BORDER_CLASSES = 'absolute left-0 -bottom-3 w-full h-0.5';
8
8
  exports.HeaderItem = (0, uni_jsx_1.JSX)(({ className = '', active, bgColor = 'bg-white', dataItemName, children, ...rest }) => {
9
9
  const link = (0, useLink_1.useLink)();
10
10
  const { href, target, text, onClick } = link(rest);
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderItem.js","sourceRoot":"","sources":["../../../src/ui-kit/HeaderItem/HeaderItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAI9C,MAAM,YAAY,GAAG,wBAAwB,CAAC;AAC9C,MAAM,cAAc,GAAG,0CAA0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AG,OAAO,IAAI,YAAY,EAAE,CAAC;AACtC,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,OAAuB,EAAE,MAAM,GAAG,KAAK,EAAE,EAAE;IACnE,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,cAAc,CAAC;KACvB;IAED,OAAO,GAAG,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,OAAO,IAAI,cAAc,EAAE,CAAC;AACrF,CAAC,CAAC"}
@@ -3,7 +3,7 @@ exports.HeaderItem = 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
5
  const TEXT_CLASSES = 'font-sans text-s';
6
- const BORDER_CLASSES = 'absolute left-0 -bottom-3 w-full h-[2px]';
6
+ const BORDER_CLASSES = 'absolute left-0 -bottom-3 w-full h-0.5';
7
7
  exports.HeaderItem = (0, uni_jsx_1.JSX)(({ className = '', text, href, target, active, onClick, children, bgColor = 'bg-white' }) => {
8
8
  return ((0, jsx_runtime_1.jsxs)("a", { className: `relative inline-block bg-transparent text-center no-underline ${className}`, href: href, target: target, onClick: onClick, children: [(0, jsx_runtime_1.jsx)("span", { className: getTextClasses(bgColor, active), children: text || children }), active ? (0, jsx_runtime_1.jsx)("div", { className: getBorderClasses(bgColor, active) }) : null] }));
9
9
  });
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderItem.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/HeaderItem/HeaderItem.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAMxC,MAAM,YAAY,GAAG,kBAAkB,CAAC;AACxC,MAAM,cAAc,GAAG,0CAA0C,CAAC;AAErD,QAAA,UAAU,GAAG,IAAA,aAAG,EAC3B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAA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neckz/uni-jsx/lib/hooks");
6
- const useTariffsInnerTableData_1 = require("./useTariffsInnerTableData");
7
6
  const InnerTableBody_1 = require("./InnerTableBody");
8
7
  const InnerTableButton_1 = require("./InnerTableButton");
9
8
  const InnerTableHeader_1 = require("./InnerTableHeader");
9
+ const useTariffsInnerTableData_1 = require("./useTariffsInnerTableData");
10
10
  const EMPTY_DATA = 'Данных нет';
11
11
  exports.InnerTable = (0, uni_jsx_1.JSX)(({ dataUrl, pdfUrl, onClick }) => {
12
12
  const { tableData } = (0, useTariffsInnerTableData_1.useTariffsInnerTableData)(dataUrl);
13
13
  const [activeTabIndex, setActiveTabIndex] = (0, hooks_1.useState)(0);
14
+ const handleActiveTabIndex = (0, hooks_1.useCallback)((_) => setActiveTabIndex(_), []);
14
15
  const items = tableData?.[activeTabIndex]?.items ?? [];
15
16
  const currencies = tableData?.map((item) => item.currency ?? '');
16
- return tableData ? ((0, jsx_runtime_1.jsxs)("div", { className: "bg-white z-10", children: [(0, jsx_runtime_1.jsx)(InnerTableHeader_1.InnerTableHeader, { currencies: currencies, activeTabIndex: activeTabIndex, setActiveTabIndex: setActiveTabIndex, linkToPDF: pdfUrl }), (0, jsx_runtime_1.jsx)(InnerTableBody_1.InnerTableBody, { activeTabIndex: activeTabIndex, items: items }), (0, jsx_runtime_1.jsx)(InnerTableButton_1.TableInnerButton, { onClick: onClick, isOpen: true })] })) : ((0, jsx_runtime_1.jsxs)("div", { className: "my-5 text-h6 text-center", children: [(0, jsx_runtime_1.jsx)("p", { children: EMPTY_DATA }), (0, jsx_runtime_1.jsx)(InnerTableButton_1.TableInnerButton, { onClick: onClick, isOpen: true })] }));
17
+ return tableData ? ((0, jsx_runtime_1.jsxs)("div", { className: "bg-white z-10", children: [(0, jsx_runtime_1.jsx)(InnerTableHeader_1.InnerTableHeader, { currencies: currencies, activeTabIndex: activeTabIndex, setActiveTabIndex: handleActiveTabIndex, linkToPDF: pdfUrl }), (0, jsx_runtime_1.jsx)(InnerTableBody_1.InnerTableBody, { activeTabIndex: activeTabIndex, items: items }), (0, jsx_runtime_1.jsx)(InnerTableButton_1.TableInnerButton, { onClick: onClick, isOpen: true })] })) : ((0, jsx_runtime_1.jsxs)("div", { className: "my-5 text-h6 text-center", children: [(0, jsx_runtime_1.jsx)("p", { children: EMPTY_DATA }), (0, jsx_runtime_1.jsx)(InnerTableButton_1.TableInnerButton, { onClick: onClick, isOpen: true })] }));
17
18
  });
18
19
  //# sourceMappingURL=InnerTable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InnerTable.js","sourceRoot":"","sources":["../../../src/ui-kit/InnerTable/InnerTable.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAuD;AACvD,yEAAsE;AACtE,qDAAkD;AAClD,yDAAsD;AACtD,yDAAsD;AAOtD,MAAM,UAAU,GAAG,YAAY,CAAC;AAEnB,QAAA,UAAU,GAAG,IAAA,aAAG,EAAkB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IAC9E,MAAM,EAAE,SAAS,EAAE,GAAmB,IAAA,mDAAwB,EAAC,OAAO,CAAC,CAAC;IAExE,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC;IACxD,MAAM,KAAK,GAAG,SAAS,EAAE,CAAC,cAAc,CAAC,EAAE,KAAK,IAAI,EAAE,CAAC;IAEvD,MAAM,UAAU,GAAG,SAAS,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC;IAEjE,OAAO,SAAS,CAAC,CAAC,CAAC,CACjB,iCAAK,SAAS,EAAC,eAAe,aAC5B,uBAAC,mCAAgB,IACf,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,cAAc,EAC9B,iBAAiB,EAAE,iBAAiB,EACpC,SAAS,EAAE,MAAM,GACjB,EACF,uBAAC,+BAAc,IAAC,c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UAAU,EACtB,cAAc,EAAE,cAAc,EAC9B,iBAAiB,EAAE,oBAAoB,EACvC,SAAS,EAAE,MAAM,GACjB,EACF,uBAAC,+BAAc,IAAC,cAAc,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK,GAAI,EAChE,uBAAC,mCAAgB,IAAC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAG,IACzC,CACP,CAAC,CAAC,CAAC,CACF,iCAAK,SAAS,EAAC,0BAA0B,aACvC,wCAAI,UAAU,GAAK,EACnB,uBAAC,mCAAgB,IAAC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAG,IACzC,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -7,12 +7,10 @@ const Img_1 = require("../Img/Img");
7
7
  const InnerTableBodyItem_1 = require("./InnerTableBodyItem");
8
8
  exports.InnerTableBody = (0, uni_jsx_1.JSX)(({ activeTabIndex, items }) => {
9
9
  const [hiddenTables, setHiddenTables] = (0, hooks_1.useState)({});
10
- const toggleTable = (key) => {
11
- setHiddenTables((oldState) => ({ ...oldState, [key]: !oldState[key] }));
12
- };
10
+ const toggleTables = (0, hooks_1.useCallback)((key) => setHiddenTables((oldState) => ({ ...oldState, [key]: !oldState[key] })), []);
13
11
  return ((0, jsx_runtime_1.jsx)("div", { children: items.map((_, tableIdx) => {
14
12
  const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
15
- return ((0, jsx_runtime_1.jsxs)("div", { className: "w-full", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex p-4 bg-main-stroke text-xl-light text-center justify-center cursor-pointer relative", onClick: () => toggleTable(key), children: [_.title, (0, jsx_runtime_1.jsx)(Img_1.Img, { image: hiddenTables[key] ? 'PlusIcon' : 'MinusIcon', className: "absolute right-[22px]", width: "24", height: "24" })] }), (0, jsx_runtime_1.jsx)("div", { className: `w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out ${hiddenTables[key] ? 'h-0' : ''}`, children: (0, jsx_runtime_1.jsx)("div", { className: "relative", children: (0, jsx_runtime_1.jsx)(InnerTableBodyItem_1.InnerTableBodyItem, { rows: _.rowsData }) }) })] }, key));
13
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "w-full", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex p-4 bg-main-stroke text-xl-light text-center justify-center cursor-pointer relative", onClick: () => toggleTables(key), children: [_.title, (0, jsx_runtime_1.jsx)(Img_1.Img, { image: hiddenTables[key] ? 'PlusIcon' : 'MinusIcon', className: "absolute right-[22px]", width: "24", height: "24" })] }), (0, jsx_runtime_1.jsx)("div", { className: `w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out ${hiddenTables[key] ? 'h-0' : ''}`, children: (0, jsx_runtime_1.jsx)("div", { className: "relative", children: (0, jsx_runtime_1.jsx)(InnerTableBodyItem_1.InnerTableBodyItem, { rows: _.rowsData }) }) })] }, key));
16
14
  }) }));
17
15
  });
18
16
  //# sourceMappingURL=InnerTableBody.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InnerTableBody.js","sourceRoot":"","sources":["../../../src/ui-kit/InnerTable/InnerTableBody.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAuD;AACvD,oCAAiC;AACjC,6DAA0D;AAQ7C,QAAA,cAAc,GAAG,IAAA,aAAG,EAAsB,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,EAAE,EAAE;IACnF,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAA0B,EAAE,CAAC,CAAC;IAE9E,MAAM,WAAW,GAAG,CAAC,GAAW,EAAE,EAAE;QAClC,eAAe,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,QAAQ,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1E,CAAC,CAAC;IAEF,OAAO,CACL,0CACG,KAAK,CAAC,GAAG,CAAC,CAAC,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,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,EAChF,EAAE,CACH,CAAC;IAEF,OAAO,CACL,0CACG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE;YACzB,MAAM,GAAG,GAAG,gBAAgB,cAAc,aAAa,QAAQ,EAAE,CAAC;YAElE,OAAO,CACL,iCAAe,SAAS,EAAC,QAAQ,aAC/B,iCACE,SAAS,EAAC,0FAA0F,EACpG,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,aAE/B,CAAC,CAAC,KAAK,EACR,uBAAC,SAAG,IACF,KAAK,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,EACnD,SAAS,EAAC,uBAAuB,EACjC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACX,IACE,EACN,gCACE,SAAS,EAAE,0EACT,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAC9B,EAAE,YAEF,gCAAK,SAAS,EAAC,UAAU,YACvB,uBAAC,uCAAkB,IAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,GAAI,GACpC,GACF,KArBE,GAAG,CAsBP,CACP,CAAC;QACJ,CAAC,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,5 +1,6 @@
1
- import type { TariffsTableInnerEvent } from './InnerTableProps';
2
- export interface TableInnerButtonProps extends TariffsTableInnerEvent {
1
+ import type { TariffsTableCellIndexProps } from '../../components/TariffsTable/TariffsTableContent';
2
+ import type { TariffsTableInnerContent } from './InnerTableProps';
3
+ export interface TableInnerButtonProps extends Partial<TariffsTableCellIndexProps>, TariffsTableInnerContent {
3
4
  onClick?: () => void;
4
5
  isOpen?: boolean;
5
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"InnerTableButton.js","sourceRoot":"","sources":["../../../src/ui-kit/InnerTable/InnerTableButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,6CAA0C;AAC1C,uCAAoC;AAQvB,QAAA,gBAAgB,GAAG,IAAA,aAAG,EAAwB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IACjF,OAAO,CACL,wBAAC,eAAM,IACL,OAAO,EAAC,SAAS,EACjB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,2DAA2D,aAErE,gCAAK,SAAS,EAAC,SAAS,YAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,2BAA2B,GAAO,EAChF,uBAAC,WAAI,IACH,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,EAC9C,SAAS,EAAC,MAAM,EAChB,WAAW,EAAC,OAAO,EACnB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,IACK,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"InnerTableButton.js","sourceRoot":"","sources":["../../../src/ui-kit/InnerTable/InnerTableButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6CAA0C;AAC1C,uCAAoC;AAUvB,QAAA,gBAAgB,GAAG,IAAA,aAAG,EAAwB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IACjF,OAAO,CACL,wBAAC,eAAM,IACL,OAAO,EAAC,SAAS,EACjB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,2DAA2D,aAErE,gCAAK,SAAS,EAAC,SAAS,YAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,2BAA2B,GAAO,EAChF,uBAAC,WAAI,IACH,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,EAC9C,SAAS,EAAC,MAAM,EAChB,WAAW,EAAC,OAAO,EACnB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,IACK,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,4 +1,3 @@
1
- import type { TariffsTableCellIndexProps } from '../../components/TariffsTable/TariffsTableContent';
2
1
  export declare type RowsData = {
3
2
  data?: string;
4
3
  cols?: string[];
@@ -20,5 +19,3 @@ export interface TariffsTableInnerContent {
20
19
  /** @title Ссылка PDF-файл */
21
20
  pdfUrl?: string;
22
21
  }
23
- export interface TariffsTableInnerEvent extends Partial<TariffsTableCellIndexProps>, TariffsTableInnerContent {
24
- }
@@ -1,9 +1,2 @@
1
- import type { FontWeight, TextAlign, TextColor, TextSize } from '../Text/Text';
2
- interface ParagraphProps {
3
- size?: TextSize;
4
- color?: TextColor;
5
- align?: TextAlign;
6
- font?: FontWeight;
7
- }
1
+ import type { ParagraphProps } from './ParagraphProps';
8
2
  export declare const Paragraph: import("@redneckz/uni-jsx").UNIComponent<ParagraphProps, any, any>;
9
- export {};
@@ -1 +1 @@
1
- {"version":3,"file":"Paragraph.js","sourceRoot":"","sources":["../../../src/ui-kit/Paragraph/Paragraph.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAU3B,QAAA,SAAS,GAAG,IAAA,aAAG,EAAiB,CAAC,KAAK,EAAE,EAAE;IACrD,MAAM,EAAE,IAAI,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,IAAI,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAEzE,MAAM,WAAW,GAAG,aAAa,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;IAElE,OAAO,8BAAG,SAAS,EAAE,WAAW,YAAG,QAAQ,GAAK,CAAC;AACnD,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"Paragraph.js","sourceRoot":"","sources":["../../../src/ui-kit/Paragraph/Paragraph.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAG3B,QAAA,SAAS,GAAG,IAAA,aAAG,EAAiB,CAAC,KAAK,EAAE,EAAE;IACrD,MAAM,EAAE,IAAI,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,IAAI,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAEzE,MAAM,WAAW,GAAG,aAAa,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;IAElE,OAAO,8BAAG,SAAS,EAAE,WAAW,YAAG,QAAQ,GAAK,CAAC;AACnD,CAAC,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { FontWeight, TextAlign, TextColor, TextSize } from '../Text/TextProps';
2
+ export interface ParagraphProps {
3
+ size?: TextSize;
4
+ color?: TextColor;
5
+ align?: TextAlign;
6
+ font?: FontWeight;
7
+ }
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=ParagraphProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ParagraphProps.js","sourceRoot":"","sources":["../../../src/ui-kit/Paragraph/ParagraphProps.ts"],"names":[],"mappings":""}
@@ -2,5 +2,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.Radio = 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
- exports.Radio = (0, uni_jsx_1.JSX)(({ name, text, value, checked, onChange, className }) => ((0, jsx_runtime_1.jsx)("div", { className: className, children: (0, jsx_runtime_1.jsxs)("label", { className: "font-sans flex items-center relative cursor-pointer", children: [(0, jsx_runtime_1.jsx)("input", { className: "appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-checkbox-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer", type: "radio", value: value, name: name, checked: checked, onChange: onChange }), text ? (0, jsx_runtime_1.jsx)("span", { className: "text-primary-text ml-3 cursor-pointer", children: text }) : null] }) })));
5
+ exports.Radio = (0, uni_jsx_1.JSX)(({ name, text, value, checked, onChange, className }) => ((0, jsx_runtime_1.jsx)("div", { className: className, children: (0, jsx_runtime_1.jsxs)("label", { className: "font-sans flex items-center relative cursor-pointer", children: [(0, jsx_runtime_1.jsx)("input", { className: "appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-checkbox-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer", type: "radio", value: value, name: name, checked: checked, onChange: (_) => onChange(_.target.value) }), text ? (0, jsx_runtime_1.jsx)("span", { className: "text-primary-text ml-3 cursor-pointer", children: text }) : null] }) })));
6
6
  //# sourceMappingURL=Radio.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.js","sourceRoot":"","sources":["../../../src/ui-kit/Radio/Radio.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAG3B,QAAA,KAAK,GAAG,IAAA,aAAG,EAAa,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAC5F,gCAAK,SAAS,EAAE,SAAS,YACvB,mCAAO,SAAS,EAAC,qDAAqD,aACpE,kCACE,SAAS,EAAC,uYAEoH,EAC9H,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,GAClB,EACD,IAAI,CAAC,CAAC,CAAC,iCAAM,SAAS,EAAC,uCAAuC,YAAE,IAAI,GAAQ,CAAC,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