@redneckz/wildless-cms-uni-blocks 0.14.25 → 0.14.26

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 (314) hide show
  1. package/bin/migration-scripts/0.14.26.js +53 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +37 -41
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +4 -3
  6. package/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +8 -0
  7. package/bundle/utils/isIcon.d.ts +2 -0
  8. package/dist/components/Blocks.js +0 -2
  9. package/dist/components/Blocks.js.map +1 -1
  10. package/dist/components/Blocks.mobile.js +0 -2
  11. package/dist/components/Blocks.mobile.js.map +1 -1
  12. package/dist/components/Bonus/Bonus.js +4 -4
  13. package/dist/components/Bonus/Bonus.js.map +1 -1
  14. package/dist/components/Carousel/Carousel.js +1 -1
  15. package/dist/components/Carousel/Carousel.js.map +1 -1
  16. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  17. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  18. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +5 -2
  19. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  20. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +4 -3
  21. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  22. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  23. package/dist/components/ContentPage/ContentPage.js +1 -1
  24. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  25. package/dist/components/Footer/SocialMedia.js +2 -2
  26. package/dist/components/Footer/SocialMedia.js.map +1 -1
  27. package/dist/components/Footer/TextInformation.js +1 -1
  28. package/dist/components/Footer/TextInformation.js.map +1 -1
  29. package/dist/components/ProductBlock/renderBackwardButton.js +1 -1
  30. package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  31. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
  32. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  33. package/dist/components/StepsBlock/StepsBlock.js +2 -2
  34. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  35. package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -2
  36. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  37. package/dist/components/Tabs/Tabs.js +7 -3
  38. package/dist/components/Tabs/Tabs.js.map +1 -1
  39. package/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +8 -0
  40. package/dist/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
  41. package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  42. package/dist/ui-kit/BaseTile/BaseTile.js +3 -2
  43. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  44. package/dist/ui-kit/Button/ButtonInner.js +2 -1
  45. package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  46. package/dist/ui-kit/Button/renderButtonsSection.js +2 -1
  47. package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  48. package/dist/ui-kit/LocationDialog/LocationDialog.js +2 -2
  49. package/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  50. package/dist/ui-kit/LocationDialog/renderForeignOffices.js +2 -2
  51. package/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
  52. package/dist/ui-kit/LocationDialog/renderRegion.js +3 -2
  53. package/dist/ui-kit/LocationDialog/renderRegion.js.map +1 -1
  54. package/dist/utils/isIcon.d.ts +2 -0
  55. package/dist/utils/isIcon.js +5 -0
  56. package/dist/utils/isIcon.js.map +1 -0
  57. package/lib/common.css +1 -1
  58. package/lib/components/Blocks.js +0 -2
  59. package/lib/components/Blocks.js.map +1 -1
  60. package/lib/components/Blocks.mobile.js +0 -2
  61. package/lib/components/Blocks.mobile.js.map +1 -1
  62. package/lib/components/Bonus/Bonus.js +4 -4
  63. package/lib/components/Bonus/Bonus.js.map +1 -1
  64. package/lib/components/Carousel/Carousel.fixture.d.ts +1 -1
  65. package/lib/components/Carousel/Carousel.fixture.mobile.d.ts +1 -1
  66. package/lib/components/Carousel/Carousel.js +1 -1
  67. package/lib/components/Carousel/Carousel.js.map +1 -1
  68. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  69. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  70. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.d.ts +2 -0
  71. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.d.ts +2 -0
  72. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +6 -3
  73. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  74. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +4 -3
  75. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  76. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  77. package/lib/components/ContentPage/ContentPage.js +1 -1
  78. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  79. package/lib/components/Footer/SocialMedia.js +2 -2
  80. package/lib/components/Footer/SocialMedia.js.map +1 -1
  81. package/lib/components/Footer/TextInformation.js +1 -1
  82. package/lib/components/Footer/TextInformation.js.map +1 -1
  83. package/lib/components/ProductBlock/renderBackwardButton.js +1 -1
  84. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  85. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
  86. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  87. package/lib/components/StepsBlock/StepsBlock.js +2 -2
  88. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  89. package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -2
  90. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  91. package/lib/components/Tabs/Tabs.js +7 -3
  92. package/lib/components/Tabs/Tabs.js.map +1 -1
  93. package/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +8 -0
  94. package/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  95. package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  96. package/lib/ui-kit/BaseTile/BaseTile.js +3 -2
  97. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  98. package/lib/ui-kit/Button/ButtonInner.js +2 -1
  99. package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  100. package/lib/ui-kit/Button/renderButtonsSection.js +2 -1
  101. package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  102. package/lib/ui-kit/LocationDialog/LocationDialog.js +2 -2
  103. package/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  104. package/lib/ui-kit/LocationDialog/renderForeignOffices.js +2 -2
  105. package/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
  106. package/lib/ui-kit/LocationDialog/renderRegion.js +3 -2
  107. package/lib/ui-kit/LocationDialog/renderRegion.js.map +1 -1
  108. package/lib/utils/isIcon.d.ts +2 -0
  109. package/lib/utils/isIcon.js +2 -0
  110. package/lib/utils/isIcon.js.map +1 -0
  111. package/mobile/bundle/bundle.umd.js +37 -41
  112. package/mobile/bundle/bundle.umd.min.js +1 -1
  113. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +4 -3
  114. package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +8 -0
  115. package/mobile/bundle/utils/isIcon.d.ts +2 -0
  116. package/mobile/dist/components/Blocks.js +0 -2
  117. package/mobile/dist/components/Blocks.js.map +1 -1
  118. package/mobile/dist/components/Bonus/Bonus.js +4 -4
  119. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  120. package/mobile/dist/components/Carousel/Carousel.js +1 -1
  121. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  122. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  123. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  124. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +5 -2
  125. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  126. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +4 -3
  127. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  128. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  129. package/mobile/dist/components/ContentPage/ContentPage.js +1 -1
  130. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  131. package/mobile/dist/components/Footer/SocialMedia.js +2 -2
  132. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  133. package/mobile/dist/components/Footer/TextInformation.js +1 -1
  134. package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
  135. package/mobile/dist/components/ProductBlock/renderBackwardButton.js +1 -1
  136. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  137. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
  138. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  139. package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -2
  140. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  141. package/mobile/dist/components/Tabs/Tabs.js +7 -3
  142. package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
  143. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +8 -0
  144. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
  145. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  146. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +3 -2
  147. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  148. package/mobile/dist/ui-kit/Button/ButtonInner.js +2 -1
  149. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  150. package/mobile/dist/ui-kit/Button/renderButtonsSection.js +2 -1
  151. package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  152. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js +2 -2
  153. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  154. package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.js +2 -2
  155. package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
  156. package/mobile/dist/ui-kit/LocationDialog/renderRegion.js +3 -2
  157. package/mobile/dist/ui-kit/LocationDialog/renderRegion.js.map +1 -1
  158. package/mobile/dist/utils/isIcon.d.ts +2 -0
  159. package/mobile/dist/utils/isIcon.js +5 -0
  160. package/mobile/dist/utils/isIcon.js.map +1 -0
  161. package/mobile/lib/common.css +1 -1
  162. package/mobile/lib/components/Blocks.js +0 -2
  163. package/mobile/lib/components/Blocks.js.map +1 -1
  164. package/mobile/lib/components/Bonus/Bonus.js +4 -4
  165. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  166. package/mobile/lib/components/Carousel/Carousel.js +1 -1
  167. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  168. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  169. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  170. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +6 -3
  171. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  172. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +4 -3
  173. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  174. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  175. package/mobile/lib/components/ContentPage/ContentPage.js +1 -1
  176. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  177. package/mobile/lib/components/Footer/SocialMedia.js +2 -2
  178. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  179. package/mobile/lib/components/Footer/TextInformation.js +1 -1
  180. package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
  181. package/mobile/lib/components/ProductBlock/renderBackwardButton.js +1 -1
  182. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  183. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
  184. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  185. package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -2
  186. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  187. package/mobile/lib/components/Tabs/Tabs.js +7 -3
  188. package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
  189. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +8 -0
  190. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  191. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  192. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +3 -2
  193. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  194. package/mobile/lib/ui-kit/Button/ButtonInner.js +2 -1
  195. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  196. package/mobile/lib/ui-kit/Button/renderButtonsSection.js +2 -1
  197. package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  198. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js +2 -2
  199. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  200. package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.js +2 -2
  201. package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
  202. package/mobile/lib/ui-kit/LocationDialog/renderRegion.js +3 -2
  203. package/mobile/lib/ui-kit/LocationDialog/renderRegion.js.map +1 -1
  204. package/mobile/lib/utils/isIcon.d.ts +2 -0
  205. package/mobile/lib/utils/isIcon.js +2 -0
  206. package/mobile/lib/utils/isIcon.js.map +1 -0
  207. package/mobile/src/components/Blocks.ts +0 -2
  208. package/mobile/src/components/Bonus/Bonus.tsx +4 -4
  209. package/mobile/src/components/Carousel/Carousel.tsx +1 -1
  210. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -1
  211. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +15 -5
  212. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +5 -3
  213. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +6 -6
  214. package/mobile/src/components/ContentPage/ContentPage.tsx +1 -1
  215. package/mobile/src/components/Footer/SocialMedia.tsx +2 -4
  216. package/mobile/src/components/Footer/TextInformation.tsx +1 -1
  217. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +7 -1
  218. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +6 -8
  219. package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -2
  220. package/mobile/src/components/Tabs/Tabs.tsx +8 -4
  221. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
  222. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +8 -4
  223. package/mobile/src/ui-kit/Button/ButtonInner.tsx +7 -2
  224. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +2 -1
  225. package/mobile/src/ui-kit/LocationDialog/LocationDialog.tsx +5 -1
  226. package/mobile/src/ui-kit/LocationDialog/renderForeignOffices.tsx +6 -4
  227. package/mobile/src/ui-kit/LocationDialog/renderRegion.tsx +5 -2
  228. package/mobile/src/utils/isIcon.ts +3 -0
  229. package/package.json +1 -1
  230. package/src/components/Blocks.mobile.ts +0 -2
  231. package/src/components/Blocks.ts +0 -2
  232. package/src/components/Bonus/Bonus.tsx +4 -4
  233. package/src/components/Carousel/Carousel.fixture.mobile.tsx +12 -11
  234. package/src/components/Carousel/Carousel.fixture.tsx +15 -14
  235. package/src/components/Carousel/Carousel.tsx +1 -1
  236. package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -1
  237. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx +41 -2
  238. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +41 -2
  239. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +15 -5
  240. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +5 -3
  241. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +6 -6
  242. package/src/components/ContentPage/ContentPage.tsx +1 -1
  243. package/src/components/Footer/SocialMedia.tsx +2 -4
  244. package/src/components/Footer/TextInformation.tsx +1 -1
  245. package/src/components/ProductBlock/renderBackwardButton.tsx +7 -1
  246. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +6 -8
  247. package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -2
  248. package/src/components/StepsBlock/StepsBlock.tsx +3 -3
  249. package/src/components/Tabs/Tabs.tsx +8 -4
  250. package/src/components/Tile/Tile.fixture.tsx +1 -2
  251. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
  252. package/src/ui-kit/BaseTile/BaseTile.tsx +8 -4
  253. package/src/ui-kit/Button/ButtonInner.tsx +7 -2
  254. package/src/ui-kit/Button/renderButtonsSection.tsx +2 -1
  255. package/src/ui-kit/LocationDialog/LocationDialog.tsx +5 -1
  256. package/src/ui-kit/LocationDialog/renderForeignOffices.tsx +6 -4
  257. package/src/ui-kit/LocationDialog/renderRegion.tsx +5 -2
  258. package/src/utils/isIcon.ts +3 -0
  259. package/bundle/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +0 -5
  260. package/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +0 -11
  261. package/bundle/components/StepsBlock/checkCanRenderIcon.d.ts +0 -4
  262. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +0 -5
  263. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +0 -13
  264. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +0 -1
  265. package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +0 -11
  266. package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js +0 -2
  267. package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +0 -1
  268. package/dist/components/StepsBlock/checkCanRenderIcon.d.ts +0 -4
  269. package/dist/components/StepsBlock/checkCanRenderIcon.js +0 -5
  270. package/dist/components/StepsBlock/checkCanRenderIcon.js.map +0 -1
  271. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +0 -5
  272. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.d.ts +0 -8
  273. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.mobile.d.ts +0 -7
  274. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +0 -11
  275. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +0 -1
  276. package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +0 -11
  277. package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js +0 -2
  278. package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +0 -1
  279. package/lib/components/StepsBlock/checkCanRenderIcon.d.ts +0 -4
  280. package/lib/components/StepsBlock/checkCanRenderIcon.js +0 -2
  281. package/lib/components/StepsBlock/checkCanRenderIcon.js.map +0 -1
  282. package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +0 -5
  283. package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +0 -11
  284. package/mobile/bundle/components/StepsBlock/checkCanRenderIcon.d.ts +0 -4
  285. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +0 -5
  286. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +0 -13
  287. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +0 -1
  288. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +0 -11
  289. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js +0 -2
  290. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +0 -1
  291. package/mobile/dist/components/StepsBlock/checkCanRenderIcon.d.ts +0 -4
  292. package/mobile/dist/components/StepsBlock/checkCanRenderIcon.js +0 -5
  293. package/mobile/dist/components/StepsBlock/checkCanRenderIcon.js.map +0 -1
  294. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +0 -5
  295. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +0 -11
  296. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +0 -1
  297. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +0 -11
  298. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js +0 -2
  299. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +0 -1
  300. package/mobile/lib/components/StepsBlock/checkCanRenderIcon.d.ts +0 -4
  301. package/mobile/lib/components/StepsBlock/checkCanRenderIcon.js +0 -2
  302. package/mobile/lib/components/StepsBlock/checkCanRenderIcon.js.map +0 -1
  303. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.example.json +0 -25
  304. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +0 -28
  305. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.ui.json +0 -1
  306. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +0 -15
  307. package/mobile/src/components/StepsBlock/checkCanRenderIcon.ts +0 -4
  308. package/src/components/CarouselProgramsCard/CarouselProgramsCard.example.json +0 -25
  309. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.mobile.tsx +0 -34
  310. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +0 -36
  311. package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +0 -28
  312. package/src/components/CarouselProgramsCard/CarouselProgramsCard.ui.json +0 -1
  313. package/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +0 -15
  314. package/src/components/StepsBlock/checkCanRenderIcon.ts +0 -4
@@ -642,7 +642,8 @@
642
642
 
643
643
  const ButtonInner = JSX((props) => {
644
644
  const { text, aboveText, appendLeft, appendRight, version = 'primary' } = props;
645
- return (jsxs("div", { className: style(getButtonStyle(props), 'flex gap-xs'), children: [appendLeft ? jsx("div", { className: iconStyleMap[version], children: appendLeft }) : null, isWithText(props) ? (jsxs("div", { className: "whitespace-pre", children: [aboveText ? jsx("div", { className: "text-xs font-light text-left", children: aboveText }) : null, jsx("div", { className: `text-left ${aboveText ? 'text-s -mt-3xs' : 'text-l'}`, children: text })] })) : null, appendRight ? jsx("div", { className: iconStyleMap[version], children: appendRight }) : null] }));
645
+ const iconHideStyle = isWithText(props) ? 'hidden lg:block' : '';
646
+ return (jsxs("div", { className: style(getButtonStyle(props), 'flex gap-xs'), children: [appendLeft ? (jsx("div", { className: style(iconHideStyle, iconStyleMap[version]), children: appendLeft })) : null, isWithText(props) ? (jsxs("div", { className: "whitespace-pre", children: [aboveText ? jsx("div", { className: "text-xs font-light text-left", children: aboveText }) : null, jsx("div", { className: `text-left ${aboveText ? 'text-s -mt-3xs' : 'text-l'}`, children: text })] })) : null, appendRight ? (jsx("div", { className: style(iconHideStyle, iconStyleMap[version]), children: appendRight })) : null] }));
646
647
  });
647
648
  const getButtonStyle = (props) => {
648
649
  const { version, aboveText, rounded } = props;
@@ -1321,6 +1322,8 @@
1321
1322
  return description?.items && description.items.length > 0 ? (jsx("ul", { className: listStyleType, children: description.items.map((_, i) => (jsx("li", { children: jsx(Text, { size: "text-l", color: "text-secondary-text group-data-secondary:text-white/80", font: "font-light", children: _ }) }, `benefitListItem-${i}`))) })) : null;
1322
1323
  };
1323
1324
 
1325
+ const isIcon = (icon) => Boolean(icon?.src || icon?.icon);
1326
+
1324
1327
  const renderButtonsSection = (buttons, { className, buttonClassName, isVertical } = {}) => buttons?.length && buttons.some((_) => _?.text || _?.icon?.icon) ? (jsx("div", { className: style('flex', isVertical
1325
1328
  ? 'flex-col gap-xs justify-items-stretch'
1326
1329
  : 'flex-wrap @xl:flex-nowrap gap-lg sm:gap-m', className), children: buttons.map(renderButton(buttonClassName)) })) : null;
@@ -1335,7 +1338,7 @@
1335
1338
  const iconVersionDefault = version === 'secondary' ? 'color' : 'white';
1336
1339
  return icon?.iconVersion ? icon?.iconVersion : iconVersionDefault;
1337
1340
  };
1338
- const renderButtonIcon = (icon) => icon?.icon || icon?.src ? (jsx(Img, { image: icon, width: String(icon?.size?.width || DEFAULT_ICON_W), height: String(DEFAULT_ICON_W) })) : null;
1341
+ const renderButtonIcon = (icon) => isIcon(icon) ? (jsx(Img, { image: icon, width: String(icon?.size?.width || DEFAULT_ICON_W), height: String(DEFAULT_ICON_W) })) : null;
1339
1342
 
1340
1343
  const headlineVersionStyles = {
1341
1344
  XXL: {
@@ -1393,17 +1396,17 @@
1393
1396
  return (jsxs(BlockWrapper, { className: style(isEmbedded ? '@container-normal' : '', className), defaultPadding: isEmbedded ? '' : 'p-6xl', version: version, isTheme: isTheme, ...rest, children: [title ? (jsx(Heading, { className: style('whitespace-pre-wrap', align), ...versionStyle?.title, as: as || versionStyle?.title.as, title: title })) : null, description ? (jsx(Paragraph, { size: versionStyle.descriptionSize, font: versionStyle.descriptionWeight, align: align, ...descriptionStyle, children: description })) : null] }));
1394
1397
  });
1395
1398
 
1396
- const Bonus = JSX(({ className = '', title, description, bonusItems = [], align = AlignStyles, ...rest }) => (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container", children: [jsx(Headline, { className: "mb-xl", isEmbedded: true, title: title, description: description, headlineVersion: "M", align: align }), jsx("div", { className: "flex flex-wrap w-full", children: bonusItems.length > 0
1397
- ? bonusItems.map((_, i) => (jsxs("div", { className: "mb-3xl last:mb-0 sm:space-y-xs flex flex-col grow w-full p-4xl sm:p-m @xl:w-[49%] border border-gray", children: [jsx("div", { className: "grow", children: jsx(Headline, { title: _?.title, description: _?.description, headlineVersion: "S", isEmbedded: true, align: "text-left" }) }), jsxs("div", { className: "flex justify-center sm:justify-between sm:items-end", children: [jsx("div", { className: "hidden sm:block", children: renderButtonsSection(_?.buttons) }), _.bonusItemContent?.bonusType
1399
+ const Bonus = JSX(({ className = '', title, description, bonusItems = [], align = AlignStyles, ...rest }) => (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container", children: [jsx(Headline, { className: "mb-xl", isEmbedded: true, title: title, description: description, headlineVersion: "M", align: align }), jsx("div", { className: "flex flex-wrap gap-3xl gap-x-m w-full", children: bonusItems.length > 0
1400
+ ? bonusItems.map((_, i) => (jsxs("div", { className: "w-full @xl:w-[48%] sm:space-y-xs flex flex-col grow w-full p-xl sm:p-m border border-gray", children: [jsx("div", { className: "grow", children: jsx(Headline, { title: _?.title, description: _?.description, headlineVersion: "S", isEmbedded: true, align: "text-left" }) }), jsxs("div", { className: "flex justify-center sm:justify-between sm:items-end", children: [jsx("div", { className: "hidden sm:block", children: renderButtonsSection(_?.buttons) }), _.bonusItemContent?.bonusType
1398
1401
  ? renderBonusItemContent(_.bonusItemContent)
1399
1402
  : null] })] }, String(i))))
1400
1403
  : null })] }) })));
1401
1404
  const renderBonusItemContent = (bonusItemContent) => bonusItemContent.bonusType === 'count'
1402
1405
  ? renderBonusCount(bonusItemContent)
1403
1406
  : renderBonusImage(bonusItemContent);
1404
- const renderBonusCount = (_) => (jsxs("div", { className: "w-full pt-default mt-s flex justify-center sm:justify-end items-end", children: [_.bonusCount ? (
1407
+ const renderBonusCount = (_) => (jsxs("div", { className: "w-full pt-default @xl:mt-s @xl:mb-4 flex justify-center sm:justify-end items-end", children: [_.bonusCount ? (
1405
1408
  // -mb-10 добавлен для выравнивания bonusCount относительно bonusName, тк шрифт font-mohave неправильно высчитывает line-height
1406
- jsx("div", { className: "shrink-0 -mb-10", children: jsx("span", { className: "font-mohave text-title-large sm:text-title-extra gradient-color-text", children: _.bonusCount }) })) : null, _.bonusName ? (jsx("div", { className: "shrink-0 gradient-color-text", children: jsx(Text, { size: "text-h2", children: _.bonusName }) })) : null] }));
1409
+ jsx("div", { className: "shrink-0 -mb-6 @xl:-mb-4", children: jsx("span", { className: "font-mohave text-title-large sm:text-title-extra gradient-color-text", children: _.bonusCount }) })) : null, _.bonusName ? (jsx("div", { className: "shrink-0 gradient-color-text", children: jsx(Text, { size: "text-h2", children: _.bonusName }) })) : null] }));
1407
1410
  const renderBonusImage = (_) => _.image ? jsx(Img, { className: "min-w-12 p-xs rounded-icon shrink-0", image: _.image }) : null;
1408
1411
 
1409
1412
  const bonusBenefitStyles = 'items-center';
@@ -2585,7 +2588,7 @@
2585
2588
  const [dotsActiveIndex] = scroll.visibleIndicesRange;
2586
2589
  // TODO Remove
2587
2590
  const isBankHistoryCarousel = childBlocks && childBlocks[0]?.type === 'CarouselBankHistoryCard';
2588
- return (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [jsxs("div", { className: style(isAlignCenter ? 'flex justify-center' : '', 'relative max-w-full'), children: [jsx(SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: isGap ? ITEMS_GAP : undefined, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: renderCarouselCards({ noCardBorder, activeIndex, cardSize, ...rest }) }), jsx(CarouselScrollButtons, { scroll: scroll, arrowsPadded: arrowsPadded, onScrollLeft: decreaseActiveIndex, onScrollRight: increaseActiveIndex, hasEdgeBlocks: isBankHistoryCarousel, activeIndex: activeIndex, itemCount: count })] }), jsx(SwipeListControlDots, { className: "@lg:hidden", containerRef: containerRef, activeIndex: dotsActiveIndex, dotCount: count, listType: "horizontal-list" })] }));
2591
+ return (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [jsxs("div", { className: style(isAlignCenter ? 'flex justify-center' : '', 'relative max-w-full'), children: [jsx(SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: isGap ? ITEMS_GAP : undefined, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: renderCarouselCards({ noCardBorder, activeIndex, cardSize, ...rest }) }), jsx(CarouselScrollButtons, { scroll: scroll, arrowsPadded: arrowsPadded, onScrollLeft: decreaseActiveIndex, onScrollRight: increaseActiveIndex, hasEdgeBlocks: isBankHistoryCarousel, activeIndex: activeIndex, itemCount: count })] }), jsx(SwipeListControlDots, { className: "@5xl:hidden", containerRef: containerRef, activeIndex: dotsActiveIndex, dotCount: count, listType: "horizontal-list" })] }));
2589
2592
  });
2590
2593
  Carousel.childrenTypes = [
2591
2594
  'CarouselCard',
@@ -2629,20 +2632,21 @@
2629
2632
  center: '@xl:self-center',
2630
2633
  end: '@xl:self-end',
2631
2634
  };
2632
- const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, isImageAlwaysOnRight = false, isImageSecondary = false, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-3xl font-sans overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: style('grow relative flex flex-col-reverse @xl:flex-row justify-around @xl:justify-between items-stretch gap-3xl'), children: [renderImageContainer(leftImage, { imageAlign }), jsxs("div", { className: style('grid gap-3xl', rightImage ? '@xl:grid-cols-2' : '', leftImage ? '' : 'grow'), children: [jsxs("div", { className: "grow space-y-lg min-w-fit", children: [insetTitle, children] }), renderImageContainer(rightImage, {
2633
- className: style('@xl:justify-self-end @xl:col-start-2', buttons ? rowSpanStyle(isImageAlwaysOnRight) : '', positionStyle(isImageAlwaysOnRight), isImageSecondary ? 'hidden @xl:block' : ''),
2635
+ const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, isImageAlwaysOnRight = false, isImageSecondary = false, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-3xl overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: style('grow relative flex flex-col @md:flex-row gap-3xl', leftImage ? 'self-start' : ''), children: [renderImageContainer(leftImage, { imageAlign, className: 'm-auto' }), jsxs("div", { className: style('grid gap-3xl', rightImage ? '@xl:grid-cols-2' : '', leftImage ? '' : 'grow'), children: [jsxs("div", { className: "grow space-y-lg min-w-fit", children: [insetTitle, children] }), renderImageContainer(rightImage, {
2636
+ className: style('@xl:justify-self-end @xl:col-start-2', buttons ? rowSpanStyle(isImageAlwaysOnRight) : '', positionStyle(isImageAlwaysOnRight), imageSecondaryStyle(isImageSecondary)),
2634
2637
  imageAlign,
2635
2638
  }), renderButtons(buttons)] })] })] })));
2636
2639
  const rowSpanStyle = (isImageAlwaysOnRight) => isImageAlwaysOnRight ? 'row-span-2' : '@xl:row-span-2';
2637
2640
  const positionStyle = (isImageAlwaysOnRight) => isImageAlwaysOnRight ? 'justify-self-end col-start-2 self-center' : '';
2638
2641
  const renderButtons = (buttons) => buttons ? jsx("div", { className: "self-end", children: buttons }) : null;
2639
2642
  const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('shrink-1/2 justify-self-center', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
2643
+ const imageSecondaryStyle = (isImageSecondary) => isImageSecondary ? 'hidden @md:block' : '';
2640
2644
 
2641
2645
  const cardStyleMap = {
2642
2646
  black: 'bg-black',
2643
2647
  white: 'bg-white',
2644
2648
  };
2645
- const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors = [], align = 'text-left', padding, ...rest }) => (jsx(BlockWrapper, { className: style('flex flex-col justify-left', className), defaultPadding: "p-2xl", ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, title: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align })) : null, rightImage: image?.src ? (jsx(Img, { className: "flex justify-center align-center mb-xl", image: image })) : null, buttons: renderButtonsSection([button], { buttonClassName: 'w-full self-end' }), children: [colors?.length ? (jsxs("div", { className: "flex text-secondary-text mb-m", children: [jsx("div", { className: "mr-xs", children: jsx(Text, { size: "text-s", align: "text-left", font: "font-light", children: "\u0426\u0432\u0435\u0442\u0430:" }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null] }) })));
2649
+ const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors = [], align = 'text-left', padding, ...rest }) => (jsx(BlockWrapper, { className: style('flex flex-col justify-left', className), defaultPadding: "p-2xl", ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, title: title || description ? (jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align })) : null, rightImage: image?.src ? (jsx(Img, { className: "flex justify-center align-center mb-xl", image: image })) : null, buttons: renderButtonsSection([button], { buttonClassName: 'w-full self-end' }), children: [colors?.length ? (jsxs("div", { className: "flex text-secondary-text mb-m", children: [jsx("div", { className: "mr-xs", children: jsx(Text, { size: "text-s", align: "text-left", font: "font-light", children: "\u0426\u0432\u0435\u0442\u0430:" }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null] }) })));
2646
2650
  const renderColorOption = (color, i) => (jsx("div", { role: "figure", className: `w-6 h-6 ml-s border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
2647
2651
 
2648
2652
  const cardColumnsModeStyleMap = {
@@ -2766,12 +2770,6 @@
2766
2770
  const renderTags = (tags) => (tags?.length ? jsx(Tags, { tags: tags }) : null);
2767
2771
  const renderHeadline = ({ title, description, headlineVersion, align }) => title || description ? (jsx(Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isEmbedded: true })) : null;
2768
2772
 
2769
- const CarouselProgramsCard = JSX(({ className, title, icon, list, href, target, ...rest }) => (jsx(BlockWrapper, { className: className, defaultPadding: "p-3xl", ...rest, children: jsx(LinkWrapper, { className: "flex items-center h-full", href: href, target: target, children: jsx(BaseProductTile, { title: title, headlineVersion: "XS", image: icon, imageOptions: { directionRight: true, imageAlign: 'center' }, benefits: list?.map((_) => ({
2770
- type: 'default',
2771
- label: _.title,
2772
- description: _.description,
2773
- })) }) }) })));
2774
-
2775
2773
  const ICONS_MAP = [
2776
2774
  {
2777
2775
  origins: ['t.me', 'telegram.org'],
@@ -2810,7 +2808,7 @@
2810
2808
  const buttons = media?.map((_) => {
2811
2809
  const { href, icon, text } = _;
2812
2810
  const { iconMapped } = findIconByHref(href);
2813
- const iconCustom = getFilteredIcon(icon) ?? iconMapped;
2811
+ const iconCustom = isIcon(icon) ? icon : iconMapped;
2814
2812
  const buttonText = showButtonText ? { text } : { text: '' };
2815
2813
  if (!hasText && text) {
2816
2814
  setHasText(true);
@@ -2828,13 +2826,12 @@
2828
2826
  buttonClassName,
2829
2827
  }) })] }));
2830
2828
  });
2831
- const getFilteredIcon = (icon) => (icon?.src || icon?.icon ? icon : undefined);
2832
2829
 
2833
2830
  const ImageAlwaysOnRight = true;
2834
2831
 
2835
2832
  //TODO: replace SocialMedia with renderButtonSection
2836
- const CarouselRecommendationCard = JSX(({ className, padding, description, href, icon, items = [], listItemSize = 'S', socialMedia = [], target, title, align = 'text-left', isImageAlwaysOnRight = ImageAlwaysOnRight, ...rest }) => {
2837
- return (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsx(BaseTile, { className: "h-full", defaultPadding: "p-m", padding: padding, insetTitle: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: align })) : null, rightImage: icon?.icon || icon?.src ? jsx(Img, { image: icon }) : null, buttons: socialMedia.length ? (jsx(SocialMedia, { media: socialMedia, showButtonText: true, version: rest.version })) : null, isImageAlwaysOnRight: isImageAlwaysOnRight, children: items.length ? jsx(List, { items: items, listItemSize: listItemSize }) : null }) }) }));
2833
+ const CarouselRecommendationCard = JSX(({ className, padding, description, href, icon, items = [], listItemSize = 'S', socialMedia = [], target, title, align = 'text-left', benefits, imageOptions: { directionRight = true, isImageAlwaysOnRight = ImageAlwaysOnRight, isImageSecondary = false, } = {}, ...rest }) => {
2834
+ return (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsxs(BaseTile, { className: "h-full", defaultPadding: "p-2xl", padding: padding, insetTitle: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: align })) : null, ...leftOrRightImage(isIcon(icon) ? jsx(Img, { image: icon }) : null, directionRight), buttons: socialMedia.length ? (jsx(SocialMedia, { media: socialMedia, showButtonText: true, version: rest?.version })) : null, isImageAlwaysOnRight: isImageAlwaysOnRight, isImageSecondary: isImageSecondary, children: [jsx(BenefitsList, { benefits: benefits }), jsx(List, { items: items, listItemSize: listItemSize })] }) }) }));
2838
2835
  });
2839
2836
 
2840
2837
  const CarouselRichTextCard = JSX(({ className = '', __html, richVersion = 'striped', ...rest }) => (jsx(BlockWrapper, { className: className, ...rest, children: jsx(RichText, { __html: __html, richVersion: richVersion }) })));
@@ -2871,9 +2868,8 @@
2871
2868
  const cellsNode = cardCells.map(renderCardInfo);
2872
2869
  const visibleCells = cellsNode.slice(0, VISIBLE_CELLS_COUNT);
2873
2870
  const hiddenCells = cellsNode.slice(VISIBLE_CELLS_COUNT);
2874
- return (jsxs(BlockWrapper, { className: style('flex flex-col', className), defaultPadding: "p-3xl", ...rest, children: [renderIconBlock$1(icon), title ? (jsx(Heading, { className: style('pt-xs', align), headingType: "h5", title: title })) : null, button ? jsx(Button, { className: "w-full mt-m", ...button }) : null, cardCells.length ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenCells })] })), renderFoldButton: cardCells.length > 1 ? renderFoldButton$1 : null })) : null] }));
2871
+ return (jsxs(BlockWrapper, { className: style('flex flex-col', className), defaultPadding: "p-3xl", ...rest, children: [isIcon(icon) ? (jsx("div", { className: "self-center", children: jsx(Img, { image: icon }) })) : null, title ? (jsx(Heading, { className: style('pt-xs', align), headingType: "h5", title: title })) : null, button ? jsx(Button, { className: "w-full mt-m", ...button }) : null, cardCells.length ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenCells })] })), renderFoldButton: cardCells.length > 1 ? renderFoldButton$1 : null })) : null] }));
2875
2872
  });
2876
- const renderIconBlock$1 = (icon) => (jsx("div", { className: "self-center", children: icon?.src || icon?.icon ? jsx(Img, { image: icon }) : null }));
2877
2873
  const renderFoldButton$1 = ({ isUnfolded, onToggle }) => (jsxs("button", { className: "w-full cursor-pointer text-primary-main pt-lg flex justify-between items-center", onClick: onToggle, children: [jsx("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), jsx(Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" })] }));
2878
2874
 
2879
2875
  const gradientStyle = 'bg-gradient-to-r from-main-gradient-start to-main-gradient-end';
@@ -3832,7 +3828,7 @@
3832
3828
  return (jsx("a", { className: `text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${className}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
3833
3829
  });
3834
3830
 
3835
- const TextInformation = JSX(({ className = '', links }) => (jsxs("div", { className: style('@container', className), children: [jsx("div", { className: "pt-lg", children: jsx(Text, { size: "text-xs", font: "font-light", color: "text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? (jsx("div", { className: "flex flex-col @lg:flex-row justify-start items-start gap-x-lg gap-y-xs pt-lg", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
3831
+ const TextInformation = JSX(({ className = '', links }) => (jsxs("div", { className: style('@container', className), children: [jsx("div", { className: "pt-lg", children: jsx(Text, { size: "text-xs", font: "font-light", color: "text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? (jsx("div", { className: "flex flex-col @5xl:flex-row justify-start items-start gap-x-lg gap-y-xs pt-lg", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
3836
3832
 
3837
3833
  const LEFT_COL_WIDTH = 'w-52';
3838
3834
  const Footer = JSX(({ className, ...rest }) => {
@@ -3941,16 +3937,16 @@
3941
3937
  return result;
3942
3938
  };
3943
3939
 
3944
- const renderForeignOffices = (foreignOffices) => foreignOffices?.length ? (jsxs("div", { className: "border-t border-main-divider mt-2xs pt-2xs", children: [jsx("div", { className: "mb-m", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: "\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u0430 \u0437\u0430 \u0440\u0443\u0431\u0435\u0436\u043E\u043C:" }) }), jsx("div", { className: "flex gap-5xl", children: foreignOffices.map((office, i) => (jsx(ForeignOffice, { ...office }, String(i)))) })] })) : null;
3940
+ const renderForeignOffices = (foreignOffices) => foreignOffices?.length ? (jsxs("div", { className: "sm:border-t sm:border-main-divider mt-2xs pt-2xs", children: [jsx("div", { className: "mb-m", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: "\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u0430 \u0437\u0430 \u0440\u0443\u0431\u0435\u0436\u043E\u043C:" }) }), jsx("div", { className: "flex flex-col sm:flex-row gap-5xl", children: foreignOffices.map((office, i) => (jsx(ForeignOffice, { ...office }, String(i)))) })] })) : null;
3945
3941
  const ForeignOffice = JSX(({ icon, ...rest }) => {
3946
3942
  const link = useLink();
3947
3943
  const { text, target, href, onClick } = link(rest);
3948
- return (jsxs("div", { className: "flex gap-s", children: [icon ? jsx(Img, { pathPrefix: "/wcms-resources/", image: icon }) : null, text ? (jsx("a", { className: "hover:text-primary-hover", href: href, target: target, onClick: onClick, children: text })) : null] }));
3944
+ return (jsxs("div", { className: "flex gap-s items-center", children: [icon ? jsx(Img, { pathPrefix: "/wcms-resources/", image: icon }) : null, text ? (jsx("a", { className: "hover:text-primary-hover", href: href, target: target, onClick: onClick, children: jsx(Text, { size: "text-l", font: "font-light", color: "text-primary-text", children: text }) })) : null] }));
3949
3945
  });
3950
3946
 
3951
- const renderRegion = (onChangeLocation) => (region) => (jsx("div", { className: "mb-2xs", children: jsx("button", { className: "cursor-pointer hover:text-primary-hover", onClick: () => {
3947
+ const renderRegion = (onChangeLocation) => (region) => (jsx("div", { className: "mb-xs sm:mb-2xs", children: jsx("button", { className: "cursor-pointer hover:text-primary-hover", onClick: () => {
3952
3948
  onChangeLocation && onChangeLocation(region);
3953
- }, children: region.name || '' }) }, region.id));
3949
+ }, children: jsx(Text, { size: "text-l", font: "font-light", children: region.name || '' }) }) }, region.id));
3954
3950
 
3955
3951
  const renderRegionGroup = (onChangeLocation) => ([letter, regions]) => (jsxs("div", { className: "break-inside-avoid mb-2xl w-56", children: [jsx("div", { className: "mb-s", children: jsx(Text, { size: "text-h6", children: letter }) }), regions.map(renderRegion(onChangeLocation))] }, letter));
3956
3952
 
@@ -3971,9 +3967,9 @@
3971
3967
  selectCurrentLocation(region);
3972
3968
  close();
3973
3969
  }, []);
3974
- return (jsxs(Dialog, { head: jsxs("div", { children: [currentLocation ? (jsxs("div", { className: "mb-s", children: [jsx(Text, { size: "text-l", font: "font-light", children: "\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u044B\u0431\u0440\u0430\u043D:\u00A0" }), jsx("button", { onClick: () => selectCurrentLocation(currentLocation), children: jsx(Text, { color: "text-primary-main", children: currentLocation.name }) })] })) : null, jsx(SearchBar, { onSearch: setQuery, searchTerm: query })] }), children: [query && query.length >= SEARCH_TERM_MIN_LENGTH ? (jsx("div", { children: regions
3970
+ return (jsxs(Dialog, { className: "pb-20", head: jsxs("div", { children: [jsx(Text, { size: "text-h4", color: "text-primary-text", children: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B" }), currentLocation ? (jsxs("div", { className: "mb-s", children: [jsx(Text, { size: "text-l", font: "font-light", children: "\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u044B\u0431\u0440\u0430\u043D:\u00A0" }), jsx("button", { onClick: () => selectCurrentLocation(currentLocation), children: jsx(Text, { color: "text-primary-main", children: currentLocation.name }) })] })) : null, jsx(SearchBar, { onSearch: setQuery, searchTerm: query })] }), children: [query && query.length >= SEARCH_TERM_MIN_LENGTH ? (jsx("div", { children: regions
3975
3971
  .filter(({ name }) => name && jaroWinklerDistance(name.toLowerCase())(query.toLowerCase()) >= 0.8)
3976
- .map(renderRegion(handleChangeLocation)) })) : (jsx("div", { className: "columns-2 sm:columns-5", children: Array.from(regionsGroupByLetter.entries()).map(renderRegionGroup(handleChangeLocation)) })), renderForeignOffices(foreignOffices)] }));
3972
+ .map(renderRegion(handleChangeLocation)) })) : (jsx("div", { className: "columns-1 sm:columns-5", children: Array.from(regionsGroupByLetter.entries()).map(renderRegionGroup(handleChangeLocation)) })), renderForeignOffices(foreignOffices)] }));
3977
3973
  });
3978
3974
  const regionFirstLetter = (region) => region.name?.charAt(0) || '';
3979
3975
  const cleanUpRegions = (regions) => regions.map((region) => ({
@@ -4815,7 +4811,7 @@
4815
4811
  return (jsxs("div", { className: "hidden sm:flex items-center gap-s", children: [jsx("div", { className: getRegularButtonClasses({ className, version, rounded: true }), onClick: handleClick, children: jsx(Img, { className: "w-4 h-4", image: {
4816
4812
  icon: 'ArrowLeftIcon',
4817
4813
  iconVersion: iconVersion,
4818
- } }) }), jsx(Button, { version: "link", text: text, ariaLabel: text, onClick: handleClick })] }));
4814
+ } }) }), jsx(Button, { version: "link", className: "group-data-secondary:text-white/80", text: text, ariaLabel: text, onClick: handleClick })] }));
4819
4815
  }
4820
4816
 
4821
4817
  const ProductBlock = JSX(({ className, padding, backwardButton, showBorder, ...rest }) => {
@@ -4863,7 +4859,7 @@
4863
4859
  return dateObj.toLocaleString('ru-RU', dateFormat).replace('г.', '');
4864
4860
  }
4865
4861
 
4866
- const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border text-left space-y-s', className), version: version, ...rest, children: [jsxs("div", { className: "w-full flex justify-between flex-row-reverse", children: [renderIconBlock(icon), title ? jsx(Heading, { headingType: "h3", as: "h3", title: title }) : null] }), jsxs("div", { className: "w-full space-y-m", children: [__html ? renderDescriptionBlock(__html) : null, renderBlock({
4862
+ const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border text-left space-y-s', className), version: version, ...rest, children: [jsxs("div", { className: "w-full flex justify-between flex-row-reverse", children: [isIcon(icon) ? (jsx("div", { className: 'w-10 h-7 sm:w-24 sm:h-16', children: jsx(Img, { image: icon }) })) : null, title ? jsx(Heading, { headingType: "h3", as: "h3", title: title }) : null] }), jsxs("div", { className: "w-full space-y-m", children: [__html ? renderDescriptionBlock(__html) : null, renderBlock({
4867
4863
  label: 'Адрес',
4868
4864
  data: address,
4869
4865
  iconName: 'GeolocationIcon',
@@ -4873,7 +4869,6 @@
4873
4869
  iconName: 'MailIcon',
4874
4870
  dataColor: 'text-primary-main',
4875
4871
  }), button?.text ? renderButtonsSection([button]) : null] })] })));
4876
- const renderIconBlock = (icon) => (jsx("div", { className: 'w-10 h-7 sm:w-24 sm:h-16', children: icon?.src || icon?.icon ? jsx(Img, { image: icon }) : null }));
4877
4872
  const renderDescriptionBlock = (__html) => (jsx("div", { className: "border-b border-main-divider pb-lg", children: jsx(RichText, { __html: __html }) }));
4878
4873
  const renderBlock = ({ label, data, iconName, dataColor = '' }) => data ? (jsxs("div", { className: "flex gap-s", children: [jsx(Icon, { iconVersion: "black", name: iconName, width: "24", height: "24" }), jsxs("div", { className: "flex flex-col gap-2xs", children: [jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: label }), jsx(Text, { size: "text-xl", color: dataColor, children: data })] })] })) : null;
4879
4874
 
@@ -5040,8 +5035,6 @@
5040
5035
  });
5041
5036
  const normalizeSelectedRegion = (selectedRegion, regions) => !selectedRegion && regions?.length && regions[0]?.code ? regions[0].code : selectedRegion;
5042
5037
 
5043
- const checkCanRenderIcon = (icon) => Boolean(icon?.icon || icon?.src);
5044
-
5045
5038
  // TODO: Create universal function for this case
5046
5039
  const renderStep = (props) => (step, i, arr) => {
5047
5040
  const { type } = step;
@@ -5083,7 +5076,7 @@
5083
5076
  });
5084
5077
  const renderStepIcon = (styleMap, size, stepVersion) => ({ icon }, i) => {
5085
5078
  const iconVersion = stepVersion === 'secondary' ? 'white' : 'color';
5086
- return (jsx(BlockWrapper, { defaultPadding: "", className: `${getIconSizeStyle(size)} flex justify-center items-center text-center rounded-full box-border z-10`, version: stepVersion, children: checkCanRenderIcon(icon) ? (jsx(Img, { image: { ...icon, iconVersion: icon.iconVersion || iconVersion }, width: "48", height: "48" })) : (jsx("span", { className: style('text-h4', stepVersion === 'transparent' ? styleMap.iconText : getIconTextStyle(stepVersion)), children: i + 1 })) }, String(i)));
5079
+ return (jsx(BlockWrapper, { defaultPadding: "", className: `${getIconSizeStyle(size)} flex justify-center items-center text-center rounded-full box-border z-10`, version: stepVersion, children: isIcon(icon) ? (jsx(Img, { image: { ...icon, iconVersion: icon?.iconVersion || iconVersion }, width: "48", height: "48" })) : (jsx("span", { className: style('text-h4', stepVersion === 'transparent' ? styleMap.iconText : getIconTextStyle(stepVersion)), children: i + 1 })) }, String(i)));
5087
5080
  };
5088
5081
  const getIconSizeStyle = (size) => (size === 'normal' ? 'h-24 w-24' : 'h-16 w-16');
5089
5082
  const getIconTextStyle = (version) => version === 'secondary' ? 'group-data-primary:text-white' : 'text-secondary-text';
@@ -5148,8 +5141,9 @@
5148
5141
  const defaultTabIndex = router.query[TAB_QUERY_PARAM_KEY]
5149
5142
  ? tabs.findIndex((_) => _.type === 'group' && _.ref === router.query[TAB_QUERY_PARAM_KEY]) || 0
5150
5143
  : 0;
5144
+ const defaultTab = tabs[defaultTabIndex] || tabs[0];
5151
5145
  setActiveTabIndex(defaultTabIndex);
5152
- fireTabEvent(tabs[defaultTabIndex]);
5146
+ fireTabEvent(defaultTab);
5153
5147
  }, [isReady]);
5154
5148
  useEffect(() => {
5155
5149
  const activeTab = tabs[activeTabIndex];
@@ -5169,9 +5163,12 @@
5169
5163
  };
5170
5164
  const handleChange = useCallback((_) => {
5171
5165
  const index = tabsControlItems.indexOf(_);
5166
+ const tab = tabs[index];
5172
5167
  setActiveTabIndex(index);
5173
- fireTabEvent(tabs[index]);
5174
- updateUrlSearchTabParam(_);
5168
+ fireTabEvent(tab);
5169
+ if (tab.type === 'group') {
5170
+ updateUrlSearchTabParam(_);
5171
+ }
5175
5172
  }, [tabs, tabsControlItems]);
5176
5173
  return (jsx(BlockWrapper, { className: style(isSticky ? 'sticky top-1 z-20' : '', className), defaultPadding: "p-0", ...rest, children: renderTabs({
5177
5174
  items: tabsControlItems,
@@ -5409,7 +5406,6 @@
5409
5406
  CarouselInvestmentCard,
5410
5407
  CarouselLinks,
5411
5408
  CarouselProductCard,
5412
- CarouselProgramsCard,
5413
5409
  CarouselRecommendationCard,
5414
5410
  CarouselRichTextCard,
5415
5411
  CarouselTariffsCard,
@@ -5680,7 +5676,7 @@
5680
5676
  parent: data,
5681
5677
  };
5682
5678
  useBlockRouterProvider();
5683
- return (jsxs("div", { "data-theme": colorPalette, children: [jsxs("section", { className: style('@container relative', pageStyle, className), children: [slots?.header ? (jsx("div", { className: "relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.header, { ...options, slotName: 'header' }) })) : null, jsxs("div", { className: "container space-y-px @lg:space-y-0 @lg:grid @lg:grid-cols-12 @lg:gap-2xs", children: [renderChildren({ block: data, options, extraProps: { className: 'scroll-mt-12' } }), renderBlocksList(slots?.footer, { ...options, slotName: 'footer' })] }), likeControl ? renderLikeControl() : null] }), jsx(StickyBottomMenu, {}), jsx(DialogManager, {}), jsx(PopupManager, {}), jsx(CookiePopup, { termLink: { href: '/pd-policy#cookie', target: '_blank' }, personalDataPolicyLink: { href: '/pd-policy', target: '_blank' } })] }));
5679
+ return (jsxs("div", { "data-theme": colorPalette, children: [jsxs("section", { className: style('@container relative', pageStyle, className), children: [slots?.header ? (jsx("div", { className: "relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.header, { ...options, slotName: 'header' }) })) : null, jsxs("div", { className: "container space-y-px @5xl:space-y-0 @5xl:grid @5xl:grid-cols-12 @5xl:gap-2xs", children: [renderChildren({ block: data, options, extraProps: { className: 'scroll-mt-12' } }), renderBlocksList(slots?.footer, { ...options, slotName: 'footer' })] }), likeControl ? renderLikeControl() : null] }), jsx(StickyBottomMenu, {}), jsx(DialogManager, {}), jsx(PopupManager, {}), jsx(CookiePopup, { termLink: { href: '/pd-policy#cookie', target: '_blank' }, personalDataPolicyLink: { href: '/pd-policy', target: '_blank' } })] }));
5684
5680
  });
5685
5681
  ContentPage.childrenTypes = [];
5686
5682
  ContentPage.slots = () => ['header', 'footer', 'StickyBottomMenu'];
@@ -5688,7 +5684,7 @@
5688
5684
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
5689
5685
  }
5690
5686
 
5691
- const packageVersion = "0.14.25";
5687
+ const packageVersion = "0.14.26";
5692
5688
 
5693
5689
  exports.Blocks = Blocks;
5694
5690
  exports.ContentPage = ContentPage;