@redneckz/wildless-cms-uni-blocks 0.6.23 → 0.6.25

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 (623) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +217 -190
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +2 -1
  5. package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -1
  6. package/bundle/components/Catalog/CatalogContent.d.ts +2 -0
  7. package/bundle/components/ContentPage/normalizePage.d.ts +1 -1
  8. package/bundle/components/Header/DropdownMenu.d.ts +5 -7
  9. package/bundle/components/Header/HeaderContent.d.ts +1 -2
  10. package/bundle/components/Header/HeaderSubMenuItem.d.ts +12 -0
  11. package/bundle/components/InvestmentGallery/InvestmentGallery.d.ts +5 -0
  12. package/bundle/components/InvestmentGallery/InvestmentGalleryCard.d.ts +7 -0
  13. package/bundle/components/InvestmentGallery/InvestmentGalleryContent.d.ts +50 -0
  14. package/bundle/content-page-repository/ContentPageRepository.d.ts +12 -9
  15. package/bundle/hooks/useIntersectionObserver.d.ts +3 -0
  16. package/bundle/hooks/useOutsideClick.d.ts +3 -5
  17. package/bundle/model/BorderVersion.d.ts +6 -0
  18. package/bundle/model/IconVersion.d.ts +4 -2
  19. package/bundle/services/sitemap/useSitemap.d.ts +2 -2
  20. package/bundle/ui-kit/CurrencyInput/{adjustValue .d.ts → adjustValue.d.ts} +0 -0
  21. package/bundle/ui-kit/TopItem/TopItem.d.ts +1 -1
  22. package/bundle/utils/getIconWithVersion.d.ts +3 -0
  23. package/dist/components/AccordionItem/AccordionItem.mobile.js +2 -1
  24. package/dist/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
  25. package/dist/components/BenefitsBlock/BenefitsBlock.d.ts +2 -1
  26. package/dist/components/BenefitsBlock/BenefitsBlock.js +10 -27
  27. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  28. package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -1
  29. package/dist/components/Blocks.js +2 -0
  30. package/dist/components/Blocks.js.map +1 -1
  31. package/dist/components/Calculator/Calculator.js +6 -1
  32. package/dist/components/Calculator/Calculator.js.map +1 -1
  33. package/dist/components/Catalog/CatalogContent.d.ts +2 -0
  34. package/dist/components/ComparisonTable/HeaderCell.js +2 -1
  35. package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
  36. package/dist/components/ContentPage/normalizeBlock.js +4 -8
  37. package/dist/components/ContentPage/normalizeBlock.js.map +1 -1
  38. package/dist/components/ContentPage/normalizeBlock.mobile.js +4 -8
  39. package/dist/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
  40. package/dist/components/ContentPage/normalizePage.d.ts +1 -1
  41. package/dist/components/ContentPage/normalizePage.js +1 -6
  42. package/dist/components/ContentPage/normalizePage.js.map +1 -1
  43. package/dist/components/Footer/Footer.mobile.js +3 -2
  44. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  45. package/dist/components/Footer/MediaButton.js +2 -1
  46. package/dist/components/Footer/MediaButton.js.map +1 -1
  47. package/dist/components/Gallery/GalleryCardInner.js +3 -2
  48. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  49. package/dist/components/Header/DropdownMenu.d.ts +5 -7
  50. package/dist/components/Header/DropdownMenu.js +8 -7
  51. package/dist/components/Header/DropdownMenu.js.map +1 -1
  52. package/dist/components/Header/Header.js +9 -9
  53. package/dist/components/Header/Header.js.map +1 -1
  54. package/dist/components/Header/Header.mobile.js +6 -6
  55. package/dist/components/Header/Header.mobile.js.map +1 -1
  56. package/dist/components/Header/HeaderContent.d.ts +1 -2
  57. package/dist/components/Header/HeaderSubMenu.js +8 -21
  58. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  59. package/dist/components/Header/HeaderSubMenuItem.d.ts +12 -0
  60. package/dist/components/Header/HeaderSubMenuItem.js +23 -0
  61. package/dist/components/Header/HeaderSubMenuItem.js.map +1 -0
  62. package/dist/components/InvestmentGallery/InvestmentGallery.d.ts +5 -0
  63. package/dist/components/InvestmentGallery/InvestmentGallery.js +40 -0
  64. package/dist/components/InvestmentGallery/InvestmentGallery.js.map +1 -0
  65. package/dist/components/InvestmentGallery/InvestmentGalleryCard.d.ts +7 -0
  66. package/dist/components/InvestmentGallery/InvestmentGalleryCard.js +24 -0
  67. package/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -0
  68. package/dist/components/InvestmentGallery/InvestmentGalleryContent.d.ts +50 -0
  69. package/dist/components/InvestmentGallery/InvestmentGalleryContent.js +2 -0
  70. package/dist/components/InvestmentGallery/InvestmentGalleryContent.js.map +1 -0
  71. package/dist/components/LinkDocs/LinkDocsListItemBase.js +2 -1
  72. package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  73. package/dist/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
  74. package/dist/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
  75. package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +2 -1
  76. package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  77. package/dist/components/PictureText/PictureText.js +2 -2
  78. package/dist/components/PictureText/PictureText.js.map +1 -1
  79. package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  80. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  81. package/dist/components/ProductBlock/renderBenefit.js +1 -3
  82. package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  83. package/dist/components/ProductGallery/ProductGallery.js +2 -2
  84. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  85. package/dist/components/Recommendation/Recommendation.js +7 -5
  86. package/dist/components/Recommendation/Recommendation.js.map +1 -1
  87. package/dist/components/StepsBlock/StepsBlock.js +4 -3
  88. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  89. package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -5
  90. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  91. package/dist/components/TariffsTable/EmbeddableCellData.mobile.js +1 -0
  92. package/dist/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
  93. package/dist/components/TariffsTable/TariffsTableRow.js +2 -1
  94. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  95. package/dist/content-page-repository/ContentPageRepository.d.ts +12 -9
  96. package/dist/content-page-repository/ContentPageRepository.js +24 -35
  97. package/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  98. package/dist/hooks/useIntersectionObserver.d.ts +3 -0
  99. package/dist/hooks/useIntersectionObserver.js +19 -0
  100. package/dist/hooks/useIntersectionObserver.js.map +1 -0
  101. package/dist/hooks/useOutsideClick.d.ts +3 -5
  102. package/dist/hooks/useOutsideClick.js +11 -9
  103. package/dist/hooks/useOutsideClick.js.map +1 -1
  104. package/dist/index.js +1 -1
  105. package/dist/index.js.map +1 -1
  106. package/dist/model/BorderVersion.d.ts +6 -0
  107. package/dist/model/BorderVersion.js +7 -0
  108. package/dist/model/BorderVersion.js.map +1 -0
  109. package/dist/model/IconVersion.d.ts +4 -2
  110. package/dist/model/IconVersion.js +10 -0
  111. package/dist/model/IconVersion.js.map +1 -1
  112. package/dist/services/sitemap/useSitemap.d.ts +2 -2
  113. package/dist/services/sitemap/useSitemap.js.map +1 -1
  114. package/dist/ui-kit/BenefitItem/BenefitItem.js +4 -5
  115. package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  116. package/dist/ui-kit/BlockWrapper.js +18 -26
  117. package/dist/ui-kit/BlockWrapper.js.map +1 -1
  118. package/dist/ui-kit/Breadcrumb.js +1 -8
  119. package/dist/ui-kit/Breadcrumb.js.map +1 -1
  120. package/dist/ui-kit/Button/ButtonSection.js +5 -5
  121. package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  122. package/dist/ui-kit/CurrencyInput/CurrencyInput.js +1 -1
  123. package/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
  124. package/dist/ui-kit/CurrencyInput/{adjustValue .d.ts → adjustValue.d.ts} +0 -0
  125. package/{mobile/dist/ui-kit/CurrencyInput/adjustValue .js → dist/ui-kit/CurrencyInput/adjustValue.js} +1 -1
  126. package/dist/ui-kit/CurrencyInput/adjustValue.js.map +1 -0
  127. package/dist/ui-kit/HeaderItem/HeaderItem.js +1 -1
  128. package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  129. package/dist/ui-kit/Icon/Icon.js +4 -3
  130. package/dist/ui-kit/Icon/Icon.js.map +1 -1
  131. package/dist/ui-kit/Logo/Logo.js +1 -1
  132. package/dist/ui-kit/Logo/Logo.js.map +1 -1
  133. package/dist/ui-kit/Logo/Logo.mobile.js +5 -1
  134. package/dist/ui-kit/Logo/Logo.mobile.js.map +1 -1
  135. package/dist/ui-kit/Select/Select.js +2 -2
  136. package/dist/ui-kit/Select/Select.js.map +1 -1
  137. package/dist/ui-kit/Tags/Tags.js +2 -2
  138. package/dist/ui-kit/Tags/Tags.js.map +1 -1
  139. package/dist/ui-kit/TopItem/TopItem.d.ts +1 -1
  140. package/dist/utils/getIconWithVersion.d.ts +3 -0
  141. package/dist/utils/getIconWithVersion.js +8 -0
  142. package/dist/utils/getIconWithVersion.js.map +1 -0
  143. package/lib/common.css +1 -1
  144. package/lib/components/AccordionItem/AccordionItem.mobile.js +2 -1
  145. package/lib/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
  146. package/lib/components/BenefitsBlock/BenefitsBlock.d.ts +2 -1
  147. package/lib/components/BenefitsBlock/BenefitsBlock.js +10 -27
  148. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  149. package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -1
  150. package/lib/components/Blocks.js +2 -0
  151. package/lib/components/Blocks.js.map +1 -1
  152. package/lib/components/Calculator/Calculator.js +6 -1
  153. package/lib/components/Calculator/Calculator.js.map +1 -1
  154. package/lib/components/Catalog/CatalogContent.d.ts +2 -0
  155. package/lib/components/ComparisonTable/HeaderCell.js +2 -1
  156. package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
  157. package/lib/components/ContentPage/normalizeBlock.js +4 -8
  158. package/lib/components/ContentPage/normalizeBlock.js.map +1 -1
  159. package/lib/components/ContentPage/normalizeBlock.mobile.js +4 -8
  160. package/lib/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
  161. package/lib/components/ContentPage/normalizePage.d.ts +1 -1
  162. package/lib/components/ContentPage/normalizePage.js +1 -6
  163. package/lib/components/ContentPage/normalizePage.js.map +1 -1
  164. package/lib/components/Footer/Footer.mobile.js +3 -2
  165. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  166. package/lib/components/Footer/MediaButton.js +2 -1
  167. package/lib/components/Footer/MediaButton.js.map +1 -1
  168. package/lib/components/Gallery/GalleryCardInner.js +3 -2
  169. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  170. package/lib/components/Header/DropdownMenu.d.ts +5 -7
  171. package/lib/components/Header/DropdownMenu.js +8 -7
  172. package/lib/components/Header/DropdownMenu.js.map +1 -1
  173. package/lib/components/Header/Header.js +9 -9
  174. package/lib/components/Header/Header.js.map +1 -1
  175. package/lib/components/Header/Header.mobile.js +6 -6
  176. package/lib/components/Header/Header.mobile.js.map +1 -1
  177. package/lib/components/Header/HeaderContent.d.ts +1 -2
  178. package/lib/components/Header/HeaderSubMenu.js +8 -21
  179. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  180. package/lib/components/Header/HeaderSubMenuItem.d.ts +12 -0
  181. package/lib/components/Header/HeaderSubMenuItem.js +21 -0
  182. package/lib/components/Header/HeaderSubMenuItem.js.map +1 -0
  183. package/lib/components/InvestmentGallery/InvestmentGallery.d.ts +5 -0
  184. package/lib/components/InvestmentGallery/InvestmentGallery.fixture.d.ts +7 -0
  185. package/lib/components/InvestmentGallery/InvestmentGallery.js +38 -0
  186. package/lib/components/InvestmentGallery/InvestmentGallery.js.map +1 -0
  187. package/lib/components/InvestmentGallery/InvestmentGalleryCard.d.ts +7 -0
  188. package/lib/components/InvestmentGallery/InvestmentGalleryCard.js +22 -0
  189. package/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -0
  190. package/lib/components/InvestmentGallery/InvestmentGalleryContent.d.ts +50 -0
  191. package/lib/components/InvestmentGallery/InvestmentGalleryContent.js +2 -0
  192. package/lib/components/InvestmentGallery/InvestmentGalleryContent.js.map +1 -0
  193. package/lib/components/LinkDocs/LinkDocsListItemBase.js +2 -1
  194. package/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  195. package/lib/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
  196. package/lib/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
  197. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +2 -1
  198. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  199. package/lib/components/PictureText/PictureText.js +2 -2
  200. package/lib/components/PictureText/PictureText.js.map +1 -1
  201. package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  202. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  203. package/lib/components/ProductBlock/renderBenefit.js +1 -3
  204. package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  205. package/lib/components/ProductGallery/ProductGallery.js +2 -2
  206. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  207. package/lib/components/Recommendation/Recommendation.js +7 -5
  208. package/lib/components/Recommendation/Recommendation.js.map +1 -1
  209. package/lib/components/StepsBlock/StepsBlock.js +4 -3
  210. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  211. package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -5
  212. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  213. package/lib/components/TariffsTable/EmbeddableCellData.mobile.js +1 -0
  214. package/lib/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
  215. package/lib/components/TariffsTable/TariffsTableRow.js +2 -1
  216. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  217. package/lib/content-page-repository/ContentPageRepository.d.ts +12 -9
  218. package/lib/content-page-repository/ContentPageRepository.js +24 -35
  219. package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  220. package/lib/hooks/useIntersectionObserver.d.ts +3 -0
  221. package/lib/hooks/useIntersectionObserver.js +16 -0
  222. package/lib/hooks/useIntersectionObserver.js.map +1 -0
  223. package/lib/hooks/useOutsideClick.d.ts +3 -5
  224. package/lib/hooks/useOutsideClick.js +12 -10
  225. package/lib/hooks/useOutsideClick.js.map +1 -1
  226. package/lib/index.js +1 -1
  227. package/lib/index.js.map +1 -1
  228. package/lib/model/BorderVersion.d.ts +6 -0
  229. package/lib/model/BorderVersion.js +5 -0
  230. package/lib/model/BorderVersion.js.map +1 -0
  231. package/lib/model/IconVersion.d.ts +4 -2
  232. package/lib/model/IconVersion.js +10 -0
  233. package/lib/model/IconVersion.js.map +1 -1
  234. package/lib/services/sitemap/useSitemap.d.ts +2 -2
  235. package/lib/services/sitemap/useSitemap.js.map +1 -1
  236. package/lib/ui-kit/BenefitItem/BenefitItem.js +4 -5
  237. package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  238. package/lib/ui-kit/BlockWrapper.js +18 -26
  239. package/lib/ui-kit/BlockWrapper.js.map +1 -1
  240. package/lib/ui-kit/Breadcrumb.js +1 -8
  241. package/lib/ui-kit/Breadcrumb.js.map +1 -1
  242. package/lib/ui-kit/Button/ButtonSection.js +5 -5
  243. package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  244. package/lib/ui-kit/CurrencyInput/CurrencyInput.js +1 -1
  245. package/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
  246. package/lib/ui-kit/CurrencyInput/{adjustValue .d.ts → adjustValue.d.ts} +0 -0
  247. package/lib/ui-kit/CurrencyInput/{adjustValue .js → adjustValue.js} +1 -1
  248. package/lib/ui-kit/CurrencyInput/adjustValue.js.map +1 -0
  249. package/lib/ui-kit/HeaderItem/HeaderItem.js +1 -1
  250. package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  251. package/lib/ui-kit/Icon/Icon.js +4 -3
  252. package/lib/ui-kit/Icon/Icon.js.map +1 -1
  253. package/lib/ui-kit/Logo/Logo.js +1 -1
  254. package/lib/ui-kit/Logo/Logo.js.map +1 -1
  255. package/lib/ui-kit/Logo/Logo.mobile.js +5 -1
  256. package/lib/ui-kit/Logo/Logo.mobile.js.map +1 -1
  257. package/lib/ui-kit/Select/Select.js +3 -3
  258. package/lib/ui-kit/Select/Select.js.map +1 -1
  259. package/lib/ui-kit/Tags/Tags.js +2 -2
  260. package/lib/ui-kit/Tags/Tags.js.map +1 -1
  261. package/lib/ui-kit/TopItem/TopItem.d.ts +1 -1
  262. package/lib/utils/getIconWithVersion.d.ts +3 -0
  263. package/lib/utils/getIconWithVersion.js +5 -0
  264. package/lib/utils/getIconWithVersion.js.map +1 -0
  265. package/mobile/bundle/bundle.umd.js +71 -82
  266. package/mobile/bundle/bundle.umd.min.js +1 -1
  267. package/mobile/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +2 -1
  268. package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -1
  269. package/mobile/bundle/components/Catalog/CatalogContent.d.ts +2 -0
  270. package/mobile/bundle/components/ContentPage/normalizePage.d.ts +1 -1
  271. package/mobile/bundle/components/Header/DropdownMenu.d.ts +5 -7
  272. package/mobile/bundle/components/Header/HeaderContent.d.ts +1 -2
  273. package/mobile/bundle/components/Header/HeaderSubMenuItem.d.ts +12 -0
  274. package/mobile/bundle/components/InvestmentGallery/InvestmentGallery.d.ts +5 -0
  275. package/mobile/bundle/components/InvestmentGallery/InvestmentGalleryCard.d.ts +7 -0
  276. package/mobile/bundle/components/InvestmentGallery/InvestmentGalleryContent.d.ts +50 -0
  277. package/mobile/bundle/content-page-repository/ContentPageRepository.d.ts +12 -9
  278. package/mobile/bundle/hooks/useIntersectionObserver.d.ts +3 -0
  279. package/mobile/bundle/hooks/useOutsideClick.d.ts +3 -5
  280. package/mobile/bundle/model/BorderVersion.d.ts +6 -0
  281. package/mobile/bundle/model/IconVersion.d.ts +4 -2
  282. package/mobile/bundle/services/sitemap/useSitemap.d.ts +2 -2
  283. package/mobile/bundle/ui-kit/CurrencyInput/{adjustValue .d.ts → adjustValue.d.ts} +0 -0
  284. package/mobile/bundle/ui-kit/TopItem/TopItem.d.ts +1 -1
  285. package/mobile/bundle/utils/getIconWithVersion.d.ts +3 -0
  286. package/mobile/dist/components/AccordionItem/AccordionItem.js +2 -1
  287. package/mobile/dist/components/AccordionItem/AccordionItem.js.map +1 -1
  288. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.d.ts +2 -1
  289. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +10 -27
  290. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  291. package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -1
  292. package/mobile/dist/components/Calculator/Calculator.js +6 -1
  293. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  294. package/mobile/dist/components/Catalog/CatalogContent.d.ts +2 -0
  295. package/mobile/dist/components/ContentPage/normalizeBlock.js +4 -8
  296. package/mobile/dist/components/ContentPage/normalizeBlock.js.map +1 -1
  297. package/mobile/dist/components/ContentPage/normalizePage.d.ts +1 -1
  298. package/mobile/dist/components/ContentPage/normalizePage.js +1 -6
  299. package/mobile/dist/components/ContentPage/normalizePage.js.map +1 -1
  300. package/mobile/dist/components/Footer/Footer.js +3 -2
  301. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  302. package/mobile/dist/components/Footer/MediaButton.js +2 -1
  303. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  304. package/mobile/dist/components/Gallery/GalleryCardInner.js +3 -2
  305. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  306. package/mobile/dist/components/Header/DropdownMenu.d.ts +5 -7
  307. package/mobile/dist/components/Header/DropdownMenu.js +8 -7
  308. package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
  309. package/mobile/dist/components/Header/Header.js +6 -6
  310. package/mobile/dist/components/Header/Header.js.map +1 -1
  311. package/mobile/dist/components/Header/HeaderContent.d.ts +1 -2
  312. package/mobile/dist/components/Header/HeaderSubMenu.js +8 -21
  313. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  314. package/mobile/dist/components/Header/HeaderSubMenuItem.d.ts +12 -0
  315. package/mobile/dist/components/Header/HeaderSubMenuItem.js +23 -0
  316. package/mobile/dist/components/Header/HeaderSubMenuItem.js.map +1 -0
  317. package/mobile/dist/components/InvestmentGallery/InvestmentGallery.d.ts +5 -0
  318. package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js +40 -0
  319. package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js.map +1 -0
  320. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.d.ts +7 -0
  321. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js +24 -0
  322. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -0
  323. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryContent.d.ts +50 -0
  324. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryContent.js +2 -0
  325. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryContent.js.map +1 -0
  326. package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js +2 -1
  327. package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  328. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  329. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  330. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +2 -1
  331. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  332. package/mobile/dist/components/PictureText/PictureText.js +2 -2
  333. package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
  334. package/mobile/dist/components/ProductBlock/renderBenefit.js +1 -3
  335. package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  336. package/mobile/dist/components/Recommendation/Recommendation.js +7 -5
  337. package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -1
  338. package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -5
  339. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  340. package/mobile/dist/components/TariffsTable/EmbeddableCellData.js +1 -0
  341. package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  342. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +2 -1
  343. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  344. package/mobile/dist/content-page-repository/ContentPageRepository.d.ts +12 -9
  345. package/mobile/dist/content-page-repository/ContentPageRepository.js +24 -35
  346. package/mobile/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  347. package/mobile/dist/hooks/useIntersectionObserver.d.ts +3 -0
  348. package/mobile/dist/hooks/useIntersectionObserver.js +19 -0
  349. package/mobile/dist/hooks/useIntersectionObserver.js.map +1 -0
  350. package/mobile/dist/hooks/useOutsideClick.d.ts +3 -5
  351. package/mobile/dist/hooks/useOutsideClick.js +11 -9
  352. package/mobile/dist/hooks/useOutsideClick.js.map +1 -1
  353. package/mobile/dist/index.js +1 -1
  354. package/mobile/dist/index.js.map +1 -1
  355. package/mobile/dist/model/BorderVersion.d.ts +6 -0
  356. package/mobile/dist/model/BorderVersion.js +7 -0
  357. package/mobile/dist/model/BorderVersion.js.map +1 -0
  358. package/mobile/dist/model/IconVersion.d.ts +4 -2
  359. package/mobile/dist/model/IconVersion.js +10 -0
  360. package/mobile/dist/model/IconVersion.js.map +1 -1
  361. package/mobile/dist/services/sitemap/useSitemap.d.ts +2 -2
  362. package/mobile/dist/services/sitemap/useSitemap.js.map +1 -1
  363. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +4 -5
  364. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  365. package/mobile/dist/ui-kit/BlockWrapper.js +18 -26
  366. package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
  367. package/mobile/dist/ui-kit/Breadcrumb.js +1 -8
  368. package/mobile/dist/ui-kit/Breadcrumb.js.map +1 -1
  369. package/mobile/dist/ui-kit/Button/ButtonSection.js +5 -5
  370. package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  371. package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js +1 -1
  372. package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
  373. package/mobile/dist/ui-kit/CurrencyInput/{adjustValue .d.ts → adjustValue.d.ts} +0 -0
  374. package/{dist/ui-kit/CurrencyInput/adjustValue .js → mobile/dist/ui-kit/CurrencyInput/adjustValue.js} +1 -1
  375. package/mobile/dist/ui-kit/CurrencyInput/adjustValue.js.map +1 -0
  376. package/mobile/dist/ui-kit/Icon/Icon.js +4 -3
  377. package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
  378. package/mobile/dist/ui-kit/Logo/Logo.js +5 -1
  379. package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
  380. package/mobile/dist/ui-kit/Select/Select.js +2 -2
  381. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  382. package/mobile/dist/ui-kit/Tags/Tags.js +2 -2
  383. package/mobile/dist/ui-kit/Tags/Tags.js.map +1 -1
  384. package/mobile/dist/ui-kit/TopItem/TopItem.d.ts +1 -1
  385. package/mobile/dist/utils/getIconWithVersion.d.ts +3 -0
  386. package/mobile/dist/utils/getIconWithVersion.js +8 -0
  387. package/mobile/dist/utils/getIconWithVersion.js.map +1 -0
  388. package/mobile/lib/components/AccordionItem/AccordionItem.js +2 -1
  389. package/mobile/lib/components/AccordionItem/AccordionItem.js.map +1 -1
  390. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.d.ts +2 -1
  391. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +10 -27
  392. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  393. package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -1
  394. package/mobile/lib/components/Calculator/Calculator.js +6 -1
  395. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  396. package/mobile/lib/components/Catalog/CatalogContent.d.ts +2 -0
  397. package/mobile/lib/components/ContentPage/normalizeBlock.js +4 -8
  398. package/mobile/lib/components/ContentPage/normalizeBlock.js.map +1 -1
  399. package/mobile/lib/components/ContentPage/normalizePage.d.ts +1 -1
  400. package/mobile/lib/components/ContentPage/normalizePage.js +1 -6
  401. package/mobile/lib/components/ContentPage/normalizePage.js.map +1 -1
  402. package/mobile/lib/components/Footer/Footer.js +3 -2
  403. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  404. package/mobile/lib/components/Footer/MediaButton.js +2 -1
  405. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  406. package/mobile/lib/components/Gallery/GalleryCardInner.js +3 -2
  407. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  408. package/mobile/lib/components/Header/DropdownMenu.d.ts +5 -7
  409. package/mobile/lib/components/Header/DropdownMenu.js +8 -7
  410. package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
  411. package/mobile/lib/components/Header/Header.js +6 -6
  412. package/mobile/lib/components/Header/Header.js.map +1 -1
  413. package/mobile/lib/components/Header/HeaderContent.d.ts +1 -2
  414. package/mobile/lib/components/Header/HeaderSubMenu.js +8 -21
  415. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  416. package/mobile/lib/components/Header/HeaderSubMenuItem.d.ts +12 -0
  417. package/mobile/lib/components/Header/HeaderSubMenuItem.js +21 -0
  418. package/mobile/lib/components/Header/HeaderSubMenuItem.js.map +1 -0
  419. package/mobile/lib/components/InvestmentGallery/InvestmentGallery.d.ts +5 -0
  420. package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js +38 -0
  421. package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js.map +1 -0
  422. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.d.ts +7 -0
  423. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js +22 -0
  424. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -0
  425. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryContent.d.ts +50 -0
  426. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryContent.js +2 -0
  427. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryContent.js.map +1 -0
  428. package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js +2 -1
  429. package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  430. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  431. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  432. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +2 -1
  433. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  434. package/mobile/lib/components/PictureText/PictureText.js +2 -2
  435. package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
  436. package/mobile/lib/components/ProductBlock/renderBenefit.js +1 -3
  437. package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  438. package/mobile/lib/components/Recommendation/Recommendation.js +7 -5
  439. package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -1
  440. package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -5
  441. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  442. package/mobile/lib/components/TariffsTable/EmbeddableCellData.js +1 -0
  443. package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  444. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +2 -1
  445. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  446. package/mobile/lib/content-page-repository/ContentPageRepository.d.ts +12 -9
  447. package/mobile/lib/content-page-repository/ContentPageRepository.js +24 -35
  448. package/mobile/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  449. package/mobile/lib/hooks/useIntersectionObserver.d.ts +3 -0
  450. package/mobile/lib/hooks/useIntersectionObserver.js +16 -0
  451. package/mobile/lib/hooks/useIntersectionObserver.js.map +1 -0
  452. package/mobile/lib/hooks/useOutsideClick.d.ts +3 -5
  453. package/mobile/lib/hooks/useOutsideClick.js +12 -10
  454. package/mobile/lib/hooks/useOutsideClick.js.map +1 -1
  455. package/mobile/lib/index.js +1 -1
  456. package/mobile/lib/index.js.map +1 -1
  457. package/mobile/lib/model/BorderVersion.d.ts +6 -0
  458. package/mobile/lib/model/BorderVersion.js +5 -0
  459. package/mobile/lib/model/BorderVersion.js.map +1 -0
  460. package/mobile/lib/model/IconVersion.d.ts +4 -2
  461. package/mobile/lib/model/IconVersion.js +10 -0
  462. package/mobile/lib/model/IconVersion.js.map +1 -1
  463. package/mobile/lib/services/sitemap/useSitemap.d.ts +2 -2
  464. package/mobile/lib/services/sitemap/useSitemap.js.map +1 -1
  465. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +4 -5
  466. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  467. package/mobile/lib/ui-kit/BlockWrapper.js +18 -26
  468. package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
  469. package/mobile/lib/ui-kit/Breadcrumb.js +1 -8
  470. package/mobile/lib/ui-kit/Breadcrumb.js.map +1 -1
  471. package/mobile/lib/ui-kit/Button/ButtonSection.js +5 -5
  472. package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  473. package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js +1 -1
  474. package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
  475. package/mobile/lib/ui-kit/CurrencyInput/{adjustValue .d.ts → adjustValue.d.ts} +0 -0
  476. package/mobile/lib/ui-kit/CurrencyInput/{adjustValue .js → adjustValue.js} +1 -1
  477. package/mobile/lib/ui-kit/CurrencyInput/adjustValue.js.map +1 -0
  478. package/mobile/lib/ui-kit/Icon/Icon.js +4 -3
  479. package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
  480. package/mobile/lib/ui-kit/Logo/Logo.js +5 -1
  481. package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
  482. package/mobile/lib/ui-kit/Select/Select.js +3 -3
  483. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  484. package/mobile/lib/ui-kit/Tags/Tags.js +2 -2
  485. package/mobile/lib/ui-kit/Tags/Tags.js.map +1 -1
  486. package/mobile/lib/ui-kit/TopItem/TopItem.d.ts +1 -1
  487. package/mobile/lib/utils/getIconWithVersion.d.ts +3 -0
  488. package/mobile/lib/utils/getIconWithVersion.js +5 -0
  489. package/mobile/lib/utils/getIconWithVersion.js.map +1 -0
  490. package/mobile/src/components/AccordionItem/AccordionItem.tsx +15 -2
  491. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +47 -76
  492. package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +1 -1
  493. package/mobile/src/components/Calculator/Calculator.tsx +6 -1
  494. package/mobile/src/components/Catalog/CatalogContent.ts +2 -0
  495. package/mobile/src/components/ContentPage/normalizeBlock.ts +15 -18
  496. package/mobile/src/components/ContentPage/normalizePage.ts +2 -7
  497. package/mobile/src/components/Footer/Footer.tsx +15 -5
  498. package/mobile/src/components/Footer/MediaButton.tsx +8 -1
  499. package/mobile/src/components/Gallery/Gallery.tsx +1 -1
  500. package/mobile/src/components/Gallery/GalleryCardInner.tsx +8 -3
  501. package/mobile/src/components/Header/DropdownMenu.tsx +46 -63
  502. package/mobile/src/components/Header/Header.tsx +11 -11
  503. package/mobile/src/components/Header/HeaderContent.ts +1 -2
  504. package/mobile/src/components/Header/HeaderSubMenu.tsx +21 -40
  505. package/mobile/src/components/Header/HeaderSubMenuItem.tsx +61 -0
  506. package/mobile/src/components/InvestmentGallery/InvestmentGallery.example.json +64 -0
  507. package/mobile/src/components/InvestmentGallery/InvestmentGallery.tsx +103 -0
  508. package/mobile/src/components/InvestmentGallery/InvestmentGallery.ui.json +11 -0
  509. package/mobile/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +91 -0
  510. package/mobile/src/components/InvestmentGallery/InvestmentGalleryContent.ts +54 -0
  511. package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +8 -1
  512. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
  513. package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +2 -1
  514. package/mobile/src/components/PictureText/PictureText.tsx +3 -3
  515. package/mobile/src/components/ProductBlock/renderBenefit.tsx +2 -3
  516. package/mobile/src/components/Recommendation/Recommendation.tsx +9 -7
  517. package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -7
  518. package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +1 -1
  519. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +2 -1
  520. package/mobile/src/content-page-repository/ContentPageRepository.ts +27 -45
  521. package/mobile/src/hooks/useIntersectionObserver.ts +23 -0
  522. package/mobile/src/hooks/useOutsideClick.ts +13 -13
  523. package/mobile/src/index.ts +1 -1
  524. package/mobile/src/model/BorderVersion.ts +10 -0
  525. package/mobile/src/model/IconVersion.ts +5 -2
  526. package/mobile/src/services/sitemap/useSitemap.ts +4 -4
  527. package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +8 -12
  528. package/mobile/src/ui-kit/BlockWrapper.tsx +27 -42
  529. package/mobile/src/ui-kit/Breadcrumb.tsx +8 -11
  530. package/mobile/src/ui-kit/Button/ButtonSection.tsx +5 -12
  531. package/mobile/src/ui-kit/CurrencyInput/CurrencyInput.tsx +1 -1
  532. package/mobile/src/ui-kit/CurrencyInput/{adjustValue .ts → adjustValue.ts} +0 -0
  533. package/mobile/src/ui-kit/Icon/Icon.tsx +4 -3
  534. package/mobile/src/ui-kit/Logo/Logo.tsx +10 -2
  535. package/mobile/src/ui-kit/Select/Select.tsx +3 -4
  536. package/mobile/src/ui-kit/Tags/Tags.tsx +3 -5
  537. package/mobile/src/ui-kit/TopItem/TopItem.tsx +1 -1
  538. package/mobile/src/utils/getIconWithVersion.ts +7 -0
  539. package/package.json +1 -1
  540. package/src/components/AccordionItem/AccordionItem.mobile.tsx +15 -2
  541. package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +6 -6
  542. package/src/components/BenefitsBlock/BenefitsBlock.tsx +47 -76
  543. package/src/components/BenefitsBlock/BenefitsBlockContent.ts +1 -1
  544. package/src/components/Blocks.ts +2 -0
  545. package/src/components/Calculator/Calculator.tsx +6 -1
  546. package/src/components/Catalog/CatalogContent.ts +2 -0
  547. package/src/components/ComparisonTable/HeaderCell.tsx +3 -1
  548. package/src/components/ContentPage/normalizeBlock.mobile.ts +15 -18
  549. package/src/components/ContentPage/normalizeBlock.ts +10 -12
  550. package/src/components/ContentPage/normalizePage.ts +2 -7
  551. package/src/components/Footer/Footer.mobile.tsx +15 -5
  552. package/src/components/Footer/MediaButton.tsx +8 -1
  553. package/src/components/Gallery/Gallery.fixture.tsx +1 -0
  554. package/src/components/Gallery/Gallery.mobile.tsx +1 -1
  555. package/src/components/Gallery/GalleryCardInner.tsx +8 -3
  556. package/src/components/Header/DropdownMenu.tsx +46 -63
  557. package/src/components/Header/Header.mobile.tsx +11 -11
  558. package/src/components/Header/Header.tsx +17 -12
  559. package/src/components/Header/HeaderContent.ts +1 -2
  560. package/src/components/Header/HeaderSubMenu.tsx +21 -40
  561. package/src/components/Header/HeaderSubMenuItem.tsx +61 -0
  562. package/src/components/InvestmentGallery/InvestmentGallery.example.json +64 -0
  563. package/src/components/InvestmentGallery/InvestmentGallery.fixture.tsx +79 -0
  564. package/src/components/InvestmentGallery/InvestmentGallery.tsx +103 -0
  565. package/src/components/InvestmentGallery/InvestmentGallery.ui.json +11 -0
  566. package/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +91 -0
  567. package/src/components/InvestmentGallery/InvestmentGalleryContent.ts +54 -0
  568. package/src/components/LinkDocs/LinkDocsListItemBase.tsx +8 -1
  569. package/src/components/MobileAppTile/MobileAppTile.mobile.tsx +1 -1
  570. package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +2 -1
  571. package/src/components/PictureText/PictureText.tsx +3 -3
  572. package/src/components/ProductBlock/ProductBlock.fixture.tsx +3 -1
  573. package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
  574. package/src/components/ProductBlock/renderBenefit.tsx +2 -3
  575. package/src/components/ProductGallery/ProductGallery.tsx +3 -4
  576. package/src/components/Recommendation/Recommendation.tsx +9 -7
  577. package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +4 -4
  578. package/src/components/StepsBlock/StepsBlock.fixture.tsx +4 -3
  579. package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -7
  580. package/src/components/StepsBlock/StepsBlock.tsx +5 -3
  581. package/src/components/TariffsTable/EmbeddableCellData.mobile.tsx +1 -1
  582. package/src/components/TariffsTable/TariffsTableRow.tsx +2 -1
  583. package/src/content-page-repository/ContentPageRepository.ts +27 -45
  584. package/src/hooks/useIntersectionObserver.ts +23 -0
  585. package/src/hooks/useOutsideClick.ts +13 -13
  586. package/src/index.ts +1 -1
  587. package/src/model/BorderVersion.ts +10 -0
  588. package/src/model/IconVersion.ts +5 -2
  589. package/src/services/sitemap/useSitemap.ts +4 -4
  590. package/src/ui-kit/BenefitItem/BenefitItem.tsx +8 -12
  591. package/src/ui-kit/BlockWrapper.tsx +27 -42
  592. package/src/ui-kit/Breadcrumb.tsx +8 -11
  593. package/src/ui-kit/Button/ButtonSection.tsx +5 -12
  594. package/src/ui-kit/CurrencyInput/CurrencyInput.tsx +1 -1
  595. package/src/ui-kit/CurrencyInput/{adjustValue .ts → adjustValue.ts} +0 -0
  596. package/src/ui-kit/HeaderItem/HeaderItem.tsx +3 -3
  597. package/src/ui-kit/Icon/Icon.tsx +4 -3
  598. package/src/ui-kit/Logo/Logo.mobile.tsx +10 -2
  599. package/src/ui-kit/Logo/Logo.tsx +1 -1
  600. package/src/ui-kit/Select/Select.tsx +3 -4
  601. package/src/ui-kit/Tags/Tags.tsx +3 -5
  602. package/src/ui-kit/TopItem/TopItem.tsx +1 -1
  603. package/src/utils/getIconWithVersion.ts +7 -0
  604. package/bundle/ui-kit/IntersectionObserverTag.d.ts +0 -12
  605. package/dist/ui-kit/CurrencyInput/adjustValue .js.map +0 -1
  606. package/dist/ui-kit/IntersectionObserverTag.d.ts +0 -12
  607. package/dist/ui-kit/IntersectionObserverTag.js +0 -22
  608. package/dist/ui-kit/IntersectionObserverTag.js.map +0 -1
  609. package/lib/ui-kit/CurrencyInput/adjustValue .js.map +0 -1
  610. package/lib/ui-kit/IntersectionObserverTag.d.ts +0 -12
  611. package/lib/ui-kit/IntersectionObserverTag.js +0 -20
  612. package/lib/ui-kit/IntersectionObserverTag.js.map +0 -1
  613. package/mobile/bundle/ui-kit/IntersectionObserverTag.d.ts +0 -12
  614. package/mobile/dist/ui-kit/CurrencyInput/adjustValue .js.map +0 -1
  615. package/mobile/dist/ui-kit/IntersectionObserverTag.d.ts +0 -12
  616. package/mobile/dist/ui-kit/IntersectionObserverTag.js +0 -22
  617. package/mobile/dist/ui-kit/IntersectionObserverTag.js.map +0 -1
  618. package/mobile/lib/ui-kit/CurrencyInput/adjustValue .js.map +0 -1
  619. package/mobile/lib/ui-kit/IntersectionObserverTag.d.ts +0 -12
  620. package/mobile/lib/ui-kit/IntersectionObserverTag.js +0 -20
  621. package/mobile/lib/ui-kit/IntersectionObserverTag.js.map +0 -1
  622. package/mobile/src/ui-kit/IntersectionObserverTag.tsx +0 -47
  623. package/src/ui-kit/IntersectionObserverTag.tsx +0 -47
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderItem.js","sourceRoot":"","sources":["../../../src/ui-kit/HeaderItem/HeaderItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB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,KAAK,UAAU,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,OAAO,IAAI,cAAc,EAAE,CAAC;AACrF,CAAC,CAAC"}
@@ -2,13 +2,14 @@ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  import { projectSettings } from '../../ProjectSettings.js';
4
4
  const svgUseStyleMap = {
5
- normal: 'text-primary-main',
5
+ normal: '',
6
+ color: 'text-primary-main',
6
7
  black: 'text-black',
7
8
  white: 'text-black',
8
9
  };
9
- export const Icon = JSX(({ className = '', imageClassName = '', name = '', alt = `Иконка ${name}`, title = alt, iconVersion = 'normal', asSVG, ...imgProps }) => {
10
+ export const Icon = JSX(({ className = '', imageClassName = '', name = '', alt = `Иконка ${name}`, title = alt, iconVersion = 'color', asSVG, ...imgProps }) => {
10
11
  const href = `${projectSettings.CDN || ''}icons/${name}.svg`;
11
- if (asSVG) {
12
+ if (asSVG && iconVersion !== 'normal') {
12
13
  return (_jsx(Background, { className: className, children: _jsxs("svg", { className: [
13
14
  getSvgSize(className, imgProps.width),
14
15
  svgUseStyleMap[iconVersion],
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/ui-kit/Icon/Icon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGxD,MAAM,cAAc,GAAgC;IAClD,MAAM,EAAE,mBAAmB;IAC3B,KAAK,EAAE,YAAY;IACnB,KAAK,EAAE,YAAY;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CACrB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,cAAc,GAAG,EAAE,EACnB,IAAI,GAAG,EAAE,EACT,GAAG,GAAG,UAAU,IAAI,EAAE,EACtB,KAAK,GAAG,GAAG,EACX,WA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CAAC,IAAI,EAChC,cAAK,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,SAAS,EAAE,GAAG,IAAI,OAAO,GAAI,IACpD,GACK,CACd,CAAC;KACH;IAED,OAAO,CACL,cACE,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,IAAI,EACT,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,KACR,QAAQ,iBACA,MAAM,GAClB,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,WAAwB,EAAU,EAAE,CAC1D,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;AAE1C,MAAM,UAAU,GAAG,CAAC,SAAkB,EAAE,KAAc,EAAE,EAAE,CACxD,KAAK,CAAC,CAAC,CAAC,UAAU,KAAK,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC;AAEjD,MAAM,UAAU,GAAG,GAAG,CAAyB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,CACzE,SAAS,CAAC,CAAC,CAAC,cAAK,SAAS,EAAE,SAAS,YAAG,QAAQ,GAAO,CAAC,CAAC,CAAC,QAAQ,CACnE,CAAC"}
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  import { Img } from '../Img/Img.js';
4
4
  const ICON_VERSION_MAP = {
5
- 'bg-white': 'normal',
5
+ 'bg-white': 'color',
6
6
  transparent: 'white',
7
7
  };
8
8
  const SVG_COLOR = {
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/Logo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAIxC,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAcjC,MAAM,gBAAgB,GAAmC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B,KAAC,GAAG,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CACvF,CAAC,CAAC,CAAC,CACF,KAAC,GAAG,IACF,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,CAAC,OAAO,CAAC,EAAE,EACnE,SAAS,EAAE,GAAG,SAAS,CAAC,OAAO,CAAC,OAAO,EACvC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,EACA,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,IAC7D,CACL,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,QAAe,EAAE,OAAe,EAAE,KAAc,EAAE,EAAE;IACvE,MAAM,IAAI,GAAG,QAAQ,IAAI,KAAK,IAAI,gBAAgB,CAAC;IAEnD,OAAO,eAAM,SAAS,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,qBAAqB,YAAG,IAAI,GAAQ,CAAC;AACrF,CAAC,CAAC"}
@@ -1,6 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  import { Img } from '../Img/Img.js';
4
+ const ICON_VERSION_MAP = {
5
+ 'bg-white': 'color',
6
+ transparent: 'white',
7
+ };
4
8
  const SVG_COLOR = {
5
9
  'bg-white': 'text-primary-main',
6
10
  transparent: 'text-white',
@@ -10,6 +14,6 @@ const TEXT_COLOR = {
10
14
  transparent: 'text-white',
11
15
  };
12
16
  export const Logo = JSX(({ className = '', href, children, targetBlank, bgColor = 'bg-white', showTitle = true }) => {
13
- return (_jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A", children: [_jsx(Img, { image: { icon: 'LogoIcon', iconVersion: SVG_COLOR[bgColor] }, className: `${SVG_COLOR[bgColor]} w-10 h-[38px]`, asSVG: true }), showTitle ? (_jsx("span", { className: `${TEXT_COLOR[bgColor]} text-s font-medium ml-2.5`, children: children || 'Россельхозбанк' })) : null] }));
17
+ return (_jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A", children: [_jsx(Img, { image: { icon: 'LogoIcon', iconVersion: ICON_VERSION_MAP[bgColor] }, className: `${SVG_COLOR[bgColor]}`, width: "34", height: "34", asSVG: true }), showTitle ? (_jsx("span", { className: `${TEXT_COLOR[bgColor]} text-s font-medium ml-2.5`, children: children || 'Россельхозбанк' })) : null] }));
14
18
  });
15
19
  //# sourceMappingURL=Logo.mobile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/Logo.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAUjC,MAAM,SAAS,GAAmC;IAChD,UAAU,EAAE,mBAAmB;IAC/B,WAAW,EAAE,YAAY;CAC1B,CAAC;AACF,MAAM,UAAU,GAAmC;IACjD,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,YAAY;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CACrB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,QA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,UAAU,EAAE,SAAS,GAAG,IAAI,EAAE,EAAE,EAAE;IAC1F,OAAO,CACL,aACE,SAAS,EAAE,mDAAmD,SAAS,EAAE,EACzE,IAAI,EAAE,IAAI,IAAI,kBAAkB,EAChC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,gBAC7B,sFAAgB,aAE3B,KAAC,GAAG,IACF,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,CAAC,OAAO,CAAC,EAAE,EACnE,SAAS,EAAE,GAAG,SAAS,CAAC,OAAO,CAAC,EAAE,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,EACD,SAAS,CAAC,CAAC,CAAC,CACX,eAAM,SAAS,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,4BAA4B,YAChE,QAAQ,IAAI,gBAAgB,GACxB,CACR,CAAC,CAAC,CAAC,IAAI,IACN,CACL,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
- import { useEffect, useRef, useState } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
4
4
  import { useOutsideClick } from '../../hooks/useOutsideClick.js';
5
5
  import { Icon } from '../Icon/Icon.js';
6
6
  export const Select = JSX(({ className = '', isBorder = true, label, options = [], value, onChange, placeholder = '' }) => {
7
7
  const [selectedItem, setSelectedItem] = useState(options[0] || { key: '', text: '' });
8
8
  const [isOpen, setIsOpen] = useState(false);
9
- const wrapperRef = useRef(null);
10
- useOutsideClick(wrapperRef, setIsOpen);
9
+ const handleClickOutside = useCallback(() => setIsOpen(false), []);
10
+ const wrapperRef = useOutsideClick(handleClickOutside);
11
11
  const choiceOption = (option) => {
12
12
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AI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CACvF,GAAG,CACJ,GACD,KAdG,MAAM,CAAC,CAAC,CAAC,CAeV,CACP,CAAC;AACJ,CAAC,CAAC;AAEJ,MAAM,cAAc,GAAG,CAAC,QAAiB,EAAE,EAAE,CAC3C,QAAQ,CAAC,CAAC,CAAC,iEAAiE,CAAC,CAAC,CAAC,EAAE,CAAC"}
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  export const Tags = JSX((props) => {
4
4
  const { tags, className = '' } = props;
5
- return tags?.length ? (_jsx("div", { className: `flex flex-wrap gap-2 ${className}`, children: tags.map((_, i) => renderTag(_, String(i))) })) : null;
5
+ return tags?.length ? (_jsx("div", { className: `flex flex-wrap gap-2 ${className}`, children: tags.map(renderTag) })) : null;
6
6
  });
7
- const renderTag = (tag, key) => (_jsx("span", { className: "text-m-light py-2 px-2.5 border-solid border rounded-md border-color-stroke", children: tag }, key));
7
+ const renderTag = (tag, key) => (_jsx("span", { className: "text-m-light py-2 px-2.5 border-solid border rounded-md border-color-stroke", children: tag }, String(key)));
8
8
  //# sourceMappingURL=Tags.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tags.js","sourceRoot":"","sources":["../../../src/ui-kit/Tags/Tags.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAQxC,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAY,CAAC,KAAK,EAAE,EAAE;IAC3C,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;IAEvC,OAAO,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACpB,cAAK,SAAS,EAAE,wBAAwB,SAAS,EAAE,YAChD,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GACxC,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC,CAAC;AAEH,MAAM,SAAS,GAAG,CAAC,GAAW,EAAE,GAAW,EAAE,EAAE,CAAC,CAC9C,eAEE,SAAS,EAAC,6EAA6E,YAEtF,GAAG,IAHC,GAAG,CAIH,CACR,CAAC"}
1
+ {"version":3,"file":"Tags.js","sourceRoot":"","sources":["../../../src/ui-kit/Tags/Tags.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAQxC,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAY,CAAC,KAAK,EAAE,EAAE;IAC3C,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;IAEvC,OAAO,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACpB,cAAK,SAAS,EAAE,wBAAwB,SAAS,EAAE,YAAG,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,GAAO,CACjF,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC,CAAC;AAEH,MAAM,SAAS,GAAG,CAAC,GAAW,EAAE,GAAW,EAAE,EAAE,CAAC,CAC9C,eAEE,SAAS,EAAC,6EAA6E,YAEtF,GAAG,IAHC,MAAM,CAAC,GAAG,CAAC,CAIX,CACR,CAAC"}
@@ -7,8 +7,8 @@ export interface TopItemProps extends TopItemContent {
7
7
  className?: string;
8
8
  flat?: boolean;
9
9
  ariaLabel?: string;
10
- onClick?: () => void;
11
10
  bgColor?: BgColorVersion;
12
11
  dataItemName?: string;
12
+ onClick?: () => void;
13
13
  }
14
14
  export declare const TopItem: import("@redneckz/uni-jsx").UNIComponent<TopItemProps, any, any>;
@@ -0,0 +1,3 @@
1
+ import type { Picture } from '../model/Picture';
2
+ import type { BlockVersion } from '../model/BlockVersion';
3
+ export declare const getIconWithVersion: (icon: Picture, version?: BlockVersion) => Picture;
@@ -0,0 +1,5 @@
1
+ export const getIconWithVersion = (icon, version = 'primary') => ({
2
+ ...icon,
3
+ iconVersion: icon?.iconVersion ?? (version === 'secondary' ? 'white' : 'color'),
4
+ });
5
+ //# sourceMappingURL=getIconWithVersion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getIconWithVersion.js","sourceRoot":"","sources":["../../src/utils/getIconWithVersion.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAa,EAAE,UAAwB,SAAS,EAAW,EAAE,CAAC,CAAC;IAChG,GAAG,IAAI;IACP,WAAW,EAAE,IAAI,EAAE,WAAW,IAAI,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;CAChF,CAAC,CAAC"}
@@ -255,6 +255,21 @@
255
255
  }
256
256
  }
257
257
 
258
+ function useIntersectionObserver(observerCallback, observerOptions) {
259
+ const ref = useRef(null);
260
+ useEffect(() => {
261
+ if (!ref.current) {
262
+ return undefined;
263
+ }
264
+ const intersectionObserver = new IntersectionObserver(observerCallback, observerOptions);
265
+ intersectionObserver.observe(ref.current);
266
+ return () => {
267
+ intersectionObserver.disconnect();
268
+ };
269
+ }, [observerCallback, observerOptions]);
270
+ return ref;
271
+ }
272
+
258
273
  const changeHashOnObserve = ({ anchor, anchorClickRef }) => (entries) => {
259
274
  if (!entries?.length) {
260
275
  return;
@@ -272,23 +287,6 @@
272
287
  }
273
288
  };
274
289
 
275
- const IntersectionObserverTag = JSX((props) => {
276
- const { tag = 'section', observerCallback, observerOptions, className = '', anchor = null, children, role, } = props;
277
- const tagRef = useRef(null);
278
- useEffect(() => {
279
- if (!tagRef.current) {
280
- return undefined;
281
- }
282
- const intersectionObserver = new IntersectionObserver(observerCallback, observerOptions);
283
- intersectionObserver.observe(tagRef.current);
284
- return () => {
285
- intersectionObserver.disconnect();
286
- };
287
- }, [observerCallback, observerOptions]);
288
- const Tag = tag;
289
- return (jsx(Tag, { ref: tagRef, className: className, id: anchor, role: role, children: children }));
290
- });
291
-
292
290
  const THRESHOLD_ACCURACY = 100; // Decimals number (100 is for two decimals number, 0.**)
293
291
  const THRESHOLD_ARRAY_LENGTH = 18;
294
292
  const THRESHOLD_ARRAY_START_VALUE = (THRESHOLD_ACCURACY - THRESHOLD_ARRAY_LENGTH) / THRESHOLD_ACCURACY;
@@ -297,33 +295,25 @@
297
295
  };
298
296
  const BlockWrapper = JSX(({ anchor, className, children, tag = 'section', labels, role }) => {
299
297
  const Tag = tag;
300
- const [shouldRenderBlock, setShouldRenderBlock] = useState(true);
298
+ const [isVisible, setVisible] = useState(true);
301
299
  const anchorClickRef = useRef({});
302
300
  const observerCallback = useMemo(() => changeHashOnObserve({ anchor, anchorClickRef }), [anchor]);
303
- useEffect(() => {
304
- const anchorClickCleanup = EventBus.inst.subscribe('anchorClick', (e) => {
305
- setShouldRenderBlock(true);
306
- anchorClickRef.current = e;
307
- });
308
- const tabCleanup = EventBus.inst.subscribe('tab', (event) => {
309
- if (event.type === 'group') {
310
- const blockHasSettgins = labels?.length || anchor;
311
- setShouldRenderBlock(event.label ? !blockHasSettgins || Boolean(labels?.includes(event.label)) : true);
312
- }
313
- else {
314
- changeHash(event.label);
315
- setShouldRenderBlock(true);
316
- }
317
- });
318
- return () => {
319
- anchorClickCleanup();
320
- tabCleanup();
321
- };
322
- }, []);
323
- if (!shouldRenderBlock) {
324
- return null;
325
- }
326
- return anchor ? (jsx(IntersectionObserverTag, { tag: tag, className: className, observerCallback: observerCallback, observerOptions: OBSERVER_OPTIONS, anchor: anchor, role: role, children: children })) : (jsx(Tag, { className: className, role: role, children: children }));
301
+ const ref = useIntersectionObserver(observerCallback, OBSERVER_OPTIONS);
302
+ useEffect(() => EventBus.inst.subscribe('anchorClick', (e) => {
303
+ setVisible(true);
304
+ anchorClickRef.current = e;
305
+ }), []);
306
+ useEffect(() => EventBus.inst.subscribe('tab', (event) => {
307
+ if (event.type === 'group') {
308
+ const hasSettings = labels?.length || anchor;
309
+ setVisible(event.label ? !hasSettings || Boolean(labels?.includes(event.label)) : true);
310
+ }
311
+ else {
312
+ changeHash(event.label);
313
+ setVisible(true);
314
+ }
315
+ }), []);
316
+ return isVisible ? (jsx(Tag, { className: className, role: role, ...(anchor ? { id: anchor, ref } : {}), children: children })) : null;
327
317
  });
328
318
  function getIntersectionThreshold(_, i) {
329
319
  const value = (i + 1) / THRESHOLD_ACCURACY + THRESHOLD_ARRAY_START_VALUE;
@@ -390,13 +380,14 @@
390
380
  });
391
381
 
392
382
  const svgUseStyleMap = {
393
- normal: 'text-primary-main',
383
+ normal: '',
384
+ color: 'text-primary-main',
394
385
  black: 'text-black',
395
386
  white: 'text-black',
396
387
  };
397
- const Icon = JSX(({ className = '', imageClassName = '', name = '', alt = `Иконка ${name}`, title = alt, iconVersion = 'normal', asSVG, ...imgProps }) => {
388
+ const Icon = JSX(({ className = '', imageClassName = '', name = '', alt = `Иконка ${name}`, title = alt, iconVersion = 'color', asSVG, ...imgProps }) => {
398
389
  const href = `${projectSettings.CDN || ''}icons/${name}.svg`;
399
- if (asSVG) {
390
+ if (asSVG && iconVersion !== 'normal') {
400
391
  return (jsx(Background, { className: className, children: jsxs("svg", { className: [
401
392
  getSvgSize(className, imgProps.width),
402
393
  svgUseStyleMap[iconVersion],
@@ -410,7 +401,7 @@
410
401
  const getSvgSize = (className, width) => width ? `width: ${width}px ` : 'w-full h-full';
411
402
  const Background = JSX(({ className, children }) => className ? jsx("div", { className: className, children: children }) : children);
412
403
 
413
- function getIconVersion$1(image) {
404
+ function getIconVersion(image) {
414
405
  return typeof image === 'string' ? 'normal' : image?.iconVersion || 'normal';
415
406
  }
416
407
 
@@ -452,20 +443,25 @@
452
443
  // backwards compatibility with existing icons in usage
453
444
  const icon = typeof image === 'string' ? image : image.icon;
454
445
  if (icon || icon === '') {
455
- return icon.length ? (jsx(Icon, { className: className, imageClassName: imageClassName, iconVersion: getIconVersion$1(image), name: icon, ...iconProps })) : null;
446
+ return icon.length ? (jsx(Icon, { className: className, imageClassName: imageClassName, iconVersion: getIconVersion(image), name: icon, ...iconProps })) : null;
456
447
  }
457
448
  return (jsx(ImgAsPicture, { className: className, imageClassName: imageClassName, image: image, isMobile: isMobile }));
458
449
  });
459
450
 
460
451
  const Img = JSX((props) => jsx(ImgInner, { ...props, isMobile: true }));
461
452
 
453
+ const getIconWithVersion = (icon, version = 'primary') => ({
454
+ ...icon,
455
+ iconVersion: icon?.iconVersion ?? (version === 'secondary' ? 'white' : 'color'),
456
+ });
457
+
462
458
  const icons = ['PlusIcon', 'MinusIcon'];
463
459
  const AccordionItem = JSX(({ className = '', ancestors, label = '', labelIcon, isExpanded, children }) => {
464
460
  const { bordered } = getParentBlockContent(ancestors, {});
465
461
  return (jsx("li", { className: `${bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0'} border-solid border-main-divider ${className}`, children: jsx(Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { className: "flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0", isUnfolded: isUnfolded, children: children })), renderFoldButton: ({ isUnfolded, onToggle }) => (jsx(FoldButton, { className: bordered ? '' : 'py-[14px] px-0', label: label, icon: icons[Number(isUnfolded)], primaryIcon: labelIcon, onClick: onToggle })) }) }));
466
462
  });
467
463
  AccordionItem.childrenTypes = [];
468
- const FoldButton = JSX(({ className, icon, label, primaryIcon, onClick }) => (jsxs("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${className}`, onClick: onClick, children: [jsxs("span", { className: "text-m-title-xs font-medium pr-2.5 flex group-hover:text-primary-main", children: [primaryIcon ? (jsx(Img, { image: primaryIcon, className: "mr-3 flex-shrink-0", width: "24", height: "24", asSVG: true })) : null, label] }), jsx(Img, { className: "flex-shrink-0", image: icon, width: "24", height: "24", asSVG: true })] })));
464
+ const FoldButton = JSX(({ className, icon, label, primaryIcon, onClick }) => (jsxs("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${className}`, onClick: onClick, children: [jsxs("span", { className: "text-m-title-xs font-medium pr-2.5 flex group-hover:text-primary-main", children: [primaryIcon ? (jsx(Img, { image: getIconWithVersion(primaryIcon), className: "mr-3 flex-shrink-0", width: "24", height: "24", asSVG: true })) : null, label] }), jsx(Img, { className: "flex-shrink-0", image: getIconWithVersion({ icon: icon }), width: "24", height: "24", asSVG: true })] })));
469
465
 
470
466
  // column-gap between children of SwipeListControl container
471
467
  const DEFAULT_GAP = 14;
@@ -810,6 +806,10 @@
810
806
  });
811
807
  };
812
808
 
809
+ const ICON_VERSION_MAP = {
810
+ 'bg-white': 'color',
811
+ transparent: 'white',
812
+ };
813
813
  const SVG_COLOR = {
814
814
  'bg-white': 'text-primary-main',
815
815
  transparent: 'text-white',
@@ -819,11 +819,11 @@
819
819
  transparent: 'text-white',
820
820
  };
821
821
  const Logo = JSX(({ className = '', href, children, targetBlank, bgColor = 'bg-white', showTitle = true }) => {
822
- return (jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A", children: [jsx(Img, { image: { icon: 'LogoIcon', iconVersion: SVG_COLOR[bgColor] }, className: `${SVG_COLOR[bgColor]} w-10 h-[38px]`, asSVG: true }), showTitle ? (jsx("span", { className: `${TEXT_COLOR[bgColor]} text-s font-medium ml-2.5`, children: children || 'Россельхозбанк' })) : null] }));
822
+ return (jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A", children: [jsx(Img, { image: { icon: 'LogoIcon', iconVersion: ICON_VERSION_MAP[bgColor] }, className: `${SVG_COLOR[bgColor]}`, width: "34", height: "34", asSVG: true }), showTitle ? (jsx("span", { className: `${TEXT_COLOR[bgColor]} text-s font-medium ml-2.5`, children: children || 'Россельхозбанк' })) : null] }));
823
823
  });
824
824
 
825
825
  const MobileAppTile = JSX(({ className = '', title = 'Мобильное приложение', description, href = '#' }) => {
826
- return (jsx("div", { className: `col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${className}`, children: href ? (jsxs("div", { className: "flex", children: [jsx("div", { className: "flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]", children: jsx(Logo, { className: "w-[33px]", bgColor: "transparent", showTitle: true }) }), jsxs("a", { href: href, target: "_blank", className: "flex flex-col justify-center pl-3", children: [jsx("div", { className: "text-s font-medium mb-[3px]", children: title }), jsx("div", { className: "text-s text-secondary-text", children: description })] })] })) : null }));
826
+ return (jsx("div", { className: `col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${className}`, children: href ? (jsxs("div", { className: "flex", children: [jsx("div", { className: "flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]", children: jsx(Logo, { className: "w-8", bgColor: "transparent", showTitle: true }) }), jsxs("a", { href: href, target: "_blank", className: "flex flex-col justify-center pl-3", children: [jsx("div", { className: "text-s font-medium mb-[3px]", children: title }), jsx("div", { className: "text-s text-secondary-text", children: description })] })] })) : null }));
827
827
  });
828
828
 
829
829
  const isURL = (href) => href?.includes('//');
@@ -962,7 +962,7 @@
962
962
  ? 'bg-white hover:bg-secondary-hover'
963
963
  : 'border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main';
964
964
  const isPrimary = version === 'primary';
965
- return (jsx("a", { className: `flex items-center justify-center rounded-md w-14 h-14 group box-border ${classes} ${isPrimary ? 'hover:text-black' : ''}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", children: icon ? (jsx(Img, { image: icon, imageClassName: "group-hover:text-white", width: "24", height: "24", asSVG: true })) : null }));
965
+ return (jsx("a", { className: `flex items-center justify-center rounded-md w-14 h-14 group box-border ${classes} ${isPrimary ? 'hover:text-black' : ''}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", children: icon ? (jsx(Img, { image: getIconWithVersion(icon), imageClassName: "group-hover:text-white", width: "24", height: "24", asSVG: true })) : null }));
966
966
  });
967
967
 
968
968
  const SocialMedia = JSX(({ className, media, version, context }) => {
@@ -987,7 +987,7 @@
987
987
  });
988
988
  const renderSubMenuItem = (menu, i) => {
989
989
  const { icon, href, text } = menu;
990
- return (jsxs(Button, { version: "link", href: href, className: "flex text-s mb-4 w-6", children: [icon ? jsx(Img, { className: "pr-1", image: icon, width: "24", height: "24", asSVG: true }) : null, jsx("span", { className: "pl-2.5 font-medium text-primary-text", children: text })] }, `footer-${i}`));
990
+ return (jsxs(Button, { version: "link", href: href, className: "flex text-s mb-4 w-6", children: [icon ? (jsx(Img, { className: "pr-1", image: getIconWithVersion({ icon: icon }), width: "24", height: "24", asSVG: true })) : null, jsx("span", { className: "pl-2.5 font-medium text-primary-text", children: text })] }, `footer-${i}`));
991
991
  };
992
992
 
993
993
  const VersionStyleMap = {
@@ -1043,11 +1043,6 @@
1043
1043
  isHrefActive(topItem.href, router) ||
1044
1044
  checkIsHrefSameOrigin(topItem.href, router);
1045
1045
 
1046
- const cmp = (a) => (b) => a?.href === b?.href;
1047
- const substitute = (items, substitution) => (items || []).map((_) => substitution?.find(cmp(_)) || _);
1048
- const subtract = (minuend, subtrahend) => (minuend || []).filter((_) => !subtrahend?.find(cmp(_)));
1049
- const mergeTopItems = (left, right) => substitute(left, right).concat(subtract(right, left));
1050
-
1051
1046
  const TEXT_CLASSES = 'font-sans text-s';
1052
1047
  const BORDER_CLASSES = 'absolute left-0 -bottom-3 w-full h-[2px]';
1053
1048
  const HeaderItem = JSX(({ className = '', text, href, target, active, onClick, children, bgColor = 'bg-white' }) => {
@@ -1094,13 +1089,12 @@
1094
1089
 
1095
1090
  const HeaderTop = JSX(({ onClick, bgColor }) => (jsxs("div", { className: "flex items-center justify-between border-0 border-b border-main-divider h-[50px]", children: [jsxs("div", { className: "flex items-center", children: [jsx("button", { className: "pl-0 pr-4 border-0 bg-transparent cursor-pointer", onClick: onClick, "aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E", children: jsx(Img, { image: { icon: 'BurgerIcon', iconVersion: bgColor === 'bg-white' ? 'black' : 'white' }, className: "text-primary-text w-6 h-6", width: "24", height: "24", asSVG: true }) }), jsx(Logo, { className: "mr-8", bgColor: bgColor })] }), jsx("button", { className: `${bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'} text-s border-0 bg-transparent cursor-pointer`, children: "\u0412\u043E\u0439\u0442\u0438" })] })));
1096
1091
 
1097
- const Header = JSX(({ className = '', defaultLocation, bgColor = 'bg-white', context, topItems, page }) => {
1092
+ const Header = JSX(({ className = '', defaultLocation, bgColor = 'bg-white', context, page }) => {
1098
1093
  const { handlerDecorator } = context;
1099
1094
  const router = context.useRouter();
1100
1095
  const fallback = page?.fallback;
1101
- const sitemap = useSitemap(fallback);
1102
- const mergedItems = mergeTopItems(sitemap.topItems, topItems);
1103
- const activeTopItem = mergedItems.find(isTopItemActive(router));
1096
+ const { topItems, dispositions } = useSitemap(fallback);
1097
+ const activeTopItem = topItems?.find(isTopItemActive(router));
1104
1098
  const subItems = activeTopItem?.items;
1105
1099
  const activeSubItem = findActiveSubItem(router)(subItems);
1106
1100
  const [burgerMenuShow, setBurgerMenuShow] = useState(false);
@@ -1109,7 +1103,9 @@
1109
1103
  ...useLink({ router, handlerDecorator }, _),
1110
1104
  active: _ === activeSubItem,
1111
1105
  bgColor,
1112
- }, i)) }) })] }), burgerMenuShow ? (jsx(HeaderBurger, { context: context, onClick: toggleBurgerMenu, burgerSubMenu: sitemap?.dispositions, defaultLocation: defaultLocation, children: jsx(AccordionItemsList, { children: sitemap.topItems?.map((item, i) => (jsx(AccordionItem, { context: context, label: item.text, children: jsx(LinkList, { context: context, documents: item.items }) }, String(i)))) }) })) : null] }));
1106
+ }, i)) }) })] }), burgerMenuShow ? (jsx(HeaderBurger, { context: context, onClick: toggleBurgerMenu, burgerSubMenu: dispositions, defaultLocation: defaultLocation, children: jsx(AccordionItemsList, { children: topItems?.map((item, i) => {
1107
+ item?.text ? (jsx(AccordionItem, { context: context, label: item.text, children: jsx(LinkList, { context: context, documents: item.items }) }, String(i))) : null;
1108
+ }) }) })) : null] }));
1113
1109
  });
1114
1110
  const renderSubItem = (item, i) => (jsx(HeaderItem, { className: "mr-8 whitespace-nowrap text-s", ...item }, String(i)));
1115
1111
 
@@ -1144,7 +1140,7 @@
1144
1140
 
1145
1141
  const LinkDocsListItemBase = JSX(({ className, iconClassName, textClassName, suffixClassName, doc, icon }) => {
1146
1142
  const { text, fileSize, ...linkProps } = doc;
1147
- return (jsxs("a", { className: className, role: "link", ...linkProps, children: [icon ? (jsx(Img, { className: iconClassName, image: icon, width: "24px", height: "24px", asSVG: true })) : null, text ? (jsxs("span", { className: textClassName, children: [text, jsx("span", { className: suffixClassName, children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })) : null] }));
1143
+ return (jsxs("a", { className: className, role: "link", ...linkProps, children: [icon ? (jsx(Img, { className: iconClassName, image: getIconWithVersion(icon), width: "24px", height: "24px", asSVG: true })) : null, text ? (jsxs("span", { className: textClassName, children: [text, jsx("span", { className: suffixClassName, children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })) : null] }));
1148
1144
  });
1149
1145
  const formatSuffix = (ext, fileSize) => {
1150
1146
  const prefix = ext || fileSize ? ',' : '';
@@ -1240,17 +1236,17 @@
1240
1236
  });
1241
1237
  function renderButton({ button, buttonClassName, index }) {
1242
1238
  const { icon, iconRight, version, ...rest } = button;
1243
- const iconVersion = version === 'secondary' ? 'normal' : 'white';
1244
- const leftIcon = renderButtonIcon({ icon, iconVersion });
1245
- const rightIcon = renderButtonIcon({ icon: iconRight, iconVersion });
1239
+ const iconVersion = version === 'secondary' ? 'color' : 'white';
1240
+ const leftIcon = renderButtonIcon({ ...icon, iconVersion: iconVersion });
1241
+ const rightIcon = renderButtonIcon({ ...iconRight, iconVersion: iconVersion });
1246
1242
  return (jsx(Button, { className: buttonClassName, appendLeft: leftIcon, appendRight: rightIcon, version: version, ...rest }, index ? String(index) : ''));
1247
1243
  }
1248
- const renderButtonIcon = ({ icon, iconVersion }) => {
1244
+ const renderButtonIcon = (icon) => {
1249
1245
  if (!icon?.icon && !icon?.src) {
1250
1246
  return null;
1251
1247
  }
1252
1248
  const iconWidth = icon?.size?.width ? `${icon.size.width}` : '24';
1253
- return jsx(Img, { image: { ...icon, iconVersion: iconVersion }, width: iconWidth, height: "24", asSVG: true });
1249
+ return jsx(Img, { image: { ...icon }, width: iconWidth, height: "24", asSVG: true });
1254
1250
  };
1255
1251
 
1256
1252
  const LIST_DOT_STYLE_MAP = {
@@ -1304,12 +1300,11 @@
1304
1300
  };
1305
1301
  const BenefitItem = JSX((props) => {
1306
1302
  const { className = '', icon, label, description, version = 'primary', benefitsVersion = 'normal', } = props;
1307
- const isIconWhite = benefitsVersion === 'white' || version === 'secondary';
1308
1303
  const listItemAlign = description ? 'items-start' : 'items-center';
1309
- const iconVersion = getIconVersion(isIconWhite, icon);
1310
- return (jsxs("div", { className: `flex gap-5 ${listItemAlign} ${className}`, children: [icon ? (jsx("div", { className: renderBenefitIconBgStyle(version, benefitsVersion), children: jsx(Img, { className: "w-6 h-6", image: { ...icon, iconVersion }, asSVG: true }) })) : null, jsxs("div", { className: "gap-0.5", children: [label ? jsx("div", { className: `text-h6 ${titleStyleMap[version]}`, children: label }) : null, description ? (jsx("div", { className: `text-m-light ${descStyleMap[version]}`, children: description })) : null] })] }));
1304
+ const calcVersion = benefitsVersion === 'white' ? 'secondary' : 'primary';
1305
+ return (jsxs("div", { className: `flex gap-5 ${listItemAlign} ${className}`, children: [icon ? (jsx("div", { className: getBenefitIconBgStyle(version, benefitsVersion), children: jsx(Img, { className: "w-6 h-6", image: getIconWithVersion(icon, calcVersion), asSVG: true }) })) : null, jsxs("div", { className: "gap-0.5", children: [label ? jsx("div", { className: `text-h6 ${titleStyleMap[version]}`, children: label }) : null, description ? (jsx("div", { className: `text-m-light ${descStyleMap[version]}`, children: description })) : null] })] }));
1311
1306
  });
1312
- function renderBenefitIconBgStyle(version, benefitsVersion) {
1307
+ function getBenefitIconBgStyle(version, benefitsVersion) {
1313
1308
  let bgColorStyle = 'bg-primary-main text-black';
1314
1309
  if (version === 'secondary') {
1315
1310
  bgColorStyle = 'bg-white/30 text-black';
@@ -1319,11 +1314,8 @@
1319
1314
  }
1320
1315
  return `w-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${bgColorStyle}`;
1321
1316
  }
1322
- const getIconVersion = (isIconWhite, icon) => icon?.iconVersion || isIconWhite ? 'white' : 'normal';
1323
1317
 
1324
- const renderBenefit = (version = 'primary', benefitsVersion = 'normal') => ({ icon, label, description }, i) => {
1325
- return (jsx(BenefitItem, { icon: icon, label: label, description: description, version: version, benefitsVersion: benefitsVersion }, String(i)));
1326
- };
1318
+ const renderBenefit = (version = 'primary', benefitsVersion = 'normal') => ({ icon, label, description }, i) => (jsx(BenefitItem, { icon: icon, label: label, description: description, version: version, benefitsVersion: benefitsVersion }, String(i)));
1327
1319
 
1328
1320
  const ProductBlockInner = JSX(({ className = '', context, title, headlineVersion = 'L', description, benefits, benefitsVersion = 'normal', buttons, image, items, version = 'primary', isDotted = true, label, }) => {
1329
1321
  return (jsxs("div", { className: `w-full ${className}`, children: [jsxs("div", { children: [label ? renderLabel(label, version) : null, jsx(Headline, { context: context, className: "!p-0 max-w-[600px]", title: title, description: description, bgColorHeadline: version, headlineVersion: headlineVersion }), jsxs(BaseTile, { context: context, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex flex-col mt-5 gap-2.5" })) : null, children: [benefits?.filter((_) => _.label)?.length ? (jsx("div", { className: "mt-3", children: benefits.map(renderBenefit(version, benefitsVersion)) })) : null, items?.length ? (jsx(List, { className: "mt-3 text-m", items: items, version: version, isDotted: isDotted })) : null] })] }), renderImage$1(image)] }));
@@ -1383,10 +1375,6 @@
1383
1375
  normal: 'min-h-[70px]',
1384
1376
  small: 'min-h-[50px]',
1385
1377
  };
1386
- const STEPS_SVG_VERSION_MAP = {
1387
- primary: 'normal',
1388
- secondary: 'white',
1389
- };
1390
1378
  const StepsBlock = JSX(({ className, title, description, showLines = true, steps, size = 'normal', version = 'primary', }) => {
1391
1379
  const styleMap = STEPS_BLOCK_STYLE_MAPS[version];
1392
1380
  return (jsxs("section", { className: `box-border font-sans bg-white px-4 py-6 flex flex-col
@@ -1403,12 +1391,13 @@
1403
1391
  const iconAreaSize = STEPS_SIZE_MAP[size];
1404
1392
  const iconSize = size === 'normal' ? '38' : '27';
1405
1393
  const iconTextSize = size === 'normal' ? 'text-m-title' : 'text-m-title-xs';
1406
- return (jsx("div", { className: `${iconAreaSize} ${styleMap.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`, children: jsx("span", { className: `font-medium flex self-center ${styleMap.title} ${iconTextSize}`, children: checkIsIconRenderable(step?.icon) ? (jsx(Img, { image: { ...step.icon, iconVersion: STEPS_SVG_VERSION_MAP[version] }, width: iconSize, height: iconSize, asSVG: true })) : (jsx("span", { children: i + 1 })) }) }));
1394
+ return (jsx("div", { className: `${iconAreaSize} ${styleMap.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`, children: jsx("span", { className: `font-medium flex self-center ${styleMap.title} ${iconTextSize}`, children: checkIsIconRenderable(step?.icon) ? (jsx(Img, { image: getIconWithVersion({ ...step.icon }, version), width: iconSize, height: iconSize, asSVG: true })) : (jsx("span", { children: i + 1 })) }) }));
1407
1395
  };
1408
1396
 
1409
1397
  const renderButtonsCellData = ({ buttons }) => buttons && buttons?.length ? (jsx("div", { children: buttons.map(({ rounded, icon, ...buttonProps }, idx) => renderButton({
1410
1398
  button: { rounded, icon, ...buttonProps },
1411
1399
  buttonClassName: `mt-3 ${idx > 0 && rounded ? 'ml-2.5' : ''} ${icon ? 'w-12 h-12' : ''}`,
1400
+ index: idx,
1412
1401
  })) })) : null;
1413
1402
  const renderLabelDescriptionCellData = ({ label, description }) => {
1414
1403
  const labelClassName = `text-xl font-medium m-0 ${description ? 'mb-1' : ''}`;
@@ -1633,7 +1622,7 @@
1633
1622
  return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
1634
1623
  }
1635
1624
 
1636
- const packageVersion = process?.env?.UNI_BLOCKS_VERSION;
1625
+ const packageVersion = "0.6.25";
1637
1626
 
1638
1627
  exports.Blocks = Blocks;
1639
1628
  exports.ContentPage = ContentPage;