@redneckz/wildless-cms-uni-blocks 0.6.28 → 0.6.30

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 (498) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +190 -110
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/Carousel/Carousel.d.ts +5 -0
  5. package/bundle/components/Carousel/CarouselContainer.d.ts +6 -0
  6. package/bundle/components/Carousel/CarouselContent.d.ts +10 -0
  7. package/bundle/components/Carousel/CarouselNavButtons.d.ts +11 -0
  8. package/bundle/components/CarouselCard/CarouselCard.d.ts +7 -0
  9. package/bundle/components/CarouselCard/CarouselCardContent.d.ts +17 -0
  10. package/bundle/components/CarouselCard/constants.d.ts +3 -0
  11. package/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +5 -0
  12. package/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +15 -0
  13. package/bundle/components/ComparisonTable/ComparisonTableRows.d.ts +4 -2
  14. package/bundle/components/Header/HeaderContent.d.ts +0 -6
  15. package/bundle/components/Recommendation/RecommendationContent.d.ts +8 -0
  16. package/bundle/components/RollupItem/RollupItem.d.ts +3 -0
  17. package/bundle/components/RollupItem/RollupItemContent.d.ts +12 -0
  18. package/bundle/components/RollupItem/RollupItemProps.d.ts +4 -0
  19. package/bundle/hooks/useCarousel.d.ts +14 -0
  20. package/bundle/icons/IconName.d.ts +6 -2
  21. package/bundle/model/CarouselCardVersion.d.ts +1 -0
  22. package/bundle/services/sitemap/SitemapProps.d.ts +5 -0
  23. package/bundle/ui-kit/Foldable/Foldable.d.ts +1 -1
  24. package/bundle/{hooks → ui-kit/InnerTable}/useTariffsInnerTableData.d.ts +0 -0
  25. package/bundle/ui-kit/Input/InputProps.d.ts +1 -2
  26. package/bundle/ui-kit/Select/Select.d.ts +3 -3
  27. package/cosmos-static/icons/HeartIcon.svg +1 -0
  28. package/cosmos-static/icons/HuaweiIcon.svg +1 -0
  29. package/dist/components/Blocks.js +10 -2
  30. package/dist/components/Blocks.js.map +1 -1
  31. package/dist/components/Carousel/Carousel.d.ts +5 -0
  32. package/dist/components/Carousel/Carousel.js +28 -0
  33. package/dist/components/Carousel/Carousel.js.map +1 -0
  34. package/dist/components/Carousel/CarouselContainer.d.ts +6 -0
  35. package/dist/components/Carousel/CarouselContainer.js +11 -0
  36. package/dist/components/Carousel/CarouselContainer.js.map +1 -0
  37. package/dist/components/Carousel/CarouselContent.d.ts +10 -0
  38. package/dist/components/Carousel/CarouselContent.js +2 -0
  39. package/dist/components/Carousel/CarouselContent.js.map +1 -0
  40. package/dist/components/Carousel/CarouselNavButtons.d.ts +11 -0
  41. package/dist/components/Carousel/CarouselNavButtons.js +36 -0
  42. package/dist/components/Carousel/CarouselNavButtons.js.map +1 -0
  43. package/dist/components/CarouselCard/CarouselCard.d.ts +7 -0
  44. package/dist/components/CarouselCard/CarouselCard.js +20 -0
  45. package/dist/components/CarouselCard/CarouselCard.js.map +1 -0
  46. package/dist/components/CarouselCard/CarouselCardContent.d.ts +17 -0
  47. package/dist/components/CarouselCard/CarouselCardContent.js +2 -0
  48. package/dist/components/CarouselCard/CarouselCardContent.js.map +1 -0
  49. package/dist/components/CarouselCard/constants.d.ts +3 -0
  50. package/dist/components/CarouselCard/constants.js +11 -0
  51. package/dist/components/CarouselCard/constants.js.map +1 -0
  52. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +5 -0
  53. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +29 -0
  54. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -0
  55. package/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +15 -0
  56. package/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.js +2 -0
  57. package/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.js.map +1 -0
  58. package/dist/components/ComparisonTable/ComparisonTableBody.js +6 -6
  59. package/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
  60. package/dist/components/ComparisonTable/ComparisonTableRows.d.ts +4 -2
  61. package/dist/components/ComparisonTable/ComparisonTableRows.js +10 -3
  62. package/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
  63. package/dist/components/Header/Header.js +2 -2
  64. package/dist/components/Header/Header.js.map +1 -1
  65. package/dist/components/Header/Header.mobile.js +2 -2
  66. package/dist/components/Header/Header.mobile.js.map +1 -1
  67. package/dist/components/Header/HeaderContent.d.ts +0 -6
  68. package/dist/components/Header/HeaderSecondaryMenu.js +1 -1
  69. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  70. package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  71. package/dist/components/Recommendation/RecommendationCard.js +3 -2
  72. package/dist/components/Recommendation/RecommendationCard.js.map +1 -1
  73. package/dist/components/Recommendation/RecommendationContent.d.ts +8 -0
  74. package/dist/components/RollupItem/RollupItem.d.ts +3 -0
  75. package/dist/components/RollupItem/RollupItem.js +18 -0
  76. package/dist/components/RollupItem/RollupItem.js.map +1 -0
  77. package/dist/components/RollupItem/RollupItemContent.d.ts +12 -0
  78. package/dist/components/RollupItem/RollupItemContent.js +2 -0
  79. package/dist/components/RollupItem/RollupItemContent.js.map +1 -0
  80. package/dist/components/RollupItem/RollupItemProps.d.ts +4 -0
  81. package/dist/components/RollupItem/RollupItemProps.js +2 -0
  82. package/dist/components/RollupItem/RollupItemProps.js.map +1 -0
  83. package/dist/components/TariffsTable/TariffsTable.js +16 -11
  84. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  85. package/dist/components/VerticalLayout/VerticalLayout.js +1 -1
  86. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  87. package/dist/hooks/useCarousel.d.ts +14 -0
  88. package/dist/hooks/useCarousel.js +24 -0
  89. package/dist/hooks/useCarousel.js.map +1 -0
  90. package/dist/icons/IconName.d.ts +6 -2
  91. package/dist/icons/IconName.js +5 -1
  92. package/dist/icons/IconName.js.map +1 -1
  93. package/dist/model/BlurVersion.d.ts +0 -0
  94. package/dist/model/BlurVersion.js +1 -0
  95. package/dist/model/BlurVersion.js.map +1 -0
  96. package/dist/model/CarouselCardVersion.d.ts +1 -0
  97. package/dist/model/CarouselCardVersion.js +2 -0
  98. package/dist/model/CarouselCardVersion.js.map +1 -0
  99. package/dist/services/sitemap/SitemapProps.d.ts +5 -0
  100. package/dist/ui-kit/Button/ButtonInner.js +1 -1
  101. package/dist/ui-kit/Foldable/DefaultFoldButton.js +1 -1
  102. package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  103. package/dist/ui-kit/Foldable/Foldable.d.ts +1 -1
  104. package/dist/ui-kit/InnerTable/InnerTable.js +1 -1
  105. package/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
  106. package/dist/{hooks → ui-kit/InnerTable}/useTariffsInnerTableData.d.ts +0 -0
  107. package/dist/{hooks → ui-kit/InnerTable}/useTariffsInnerTableData.js +0 -0
  108. package/dist/ui-kit/InnerTable/useTariffsInnerTableData.js.map +1 -0
  109. package/dist/ui-kit/Input/InputProps.d.ts +1 -2
  110. package/dist/ui-kit/Logo/Logo.js +4 -1
  111. package/dist/ui-kit/Logo/Logo.js.map +1 -1
  112. package/dist/ui-kit/Select/Select.d.ts +3 -3
  113. package/dist/ui-kit/Select/Select.js.map +1 -1
  114. package/lib/common.css +1 -1
  115. package/lib/components/Blocks.js +10 -2
  116. package/lib/components/Blocks.js.map +1 -1
  117. package/lib/components/Carousel/Carousel.d.ts +5 -0
  118. package/lib/components/Carousel/Carousel.fixture.d.ts +8 -0
  119. package/lib/components/Carousel/Carousel.js +26 -0
  120. package/lib/components/Carousel/Carousel.js.map +1 -0
  121. package/lib/components/Carousel/CarouselContainer.d.ts +6 -0
  122. package/lib/components/Carousel/CarouselContainer.js +9 -0
  123. package/lib/components/Carousel/CarouselContainer.js.map +1 -0
  124. package/lib/components/Carousel/CarouselContent.d.ts +10 -0
  125. package/lib/components/Carousel/CarouselContent.js +2 -0
  126. package/lib/components/Carousel/CarouselContent.js.map +1 -0
  127. package/lib/components/Carousel/CarouselNavButtons.d.ts +11 -0
  128. package/lib/components/Carousel/CarouselNavButtons.js +34 -0
  129. package/lib/components/Carousel/CarouselNavButtons.js.map +1 -0
  130. package/lib/components/CarouselCard/CarouselCard.d.ts +7 -0
  131. package/lib/components/CarouselCard/CarouselCard.fixture.d.ts +11 -0
  132. package/lib/components/CarouselCard/CarouselCard.js +18 -0
  133. package/lib/components/CarouselCard/CarouselCard.js.map +1 -0
  134. package/lib/components/CarouselCard/CarouselCardContent.d.ts +17 -0
  135. package/lib/components/CarouselCard/CarouselCardContent.js +2 -0
  136. package/lib/components/CarouselCard/CarouselCardContent.js.map +1 -0
  137. package/lib/components/CarouselCard/constants.d.ts +3 -0
  138. package/lib/components/CarouselCard/constants.js +9 -0
  139. package/lib/components/CarouselCard/constants.js.map +1 -0
  140. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +5 -0
  141. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.fixture.d.ts +9 -0
  142. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +27 -0
  143. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -0
  144. package/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +15 -0
  145. package/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.js +2 -0
  146. package/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.js.map +1 -0
  147. package/lib/components/ComparisonTable/ComparisonTableBody.js +6 -6
  148. package/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
  149. package/lib/components/ComparisonTable/ComparisonTableRows.d.ts +4 -2
  150. package/lib/components/ComparisonTable/ComparisonTableRows.js +10 -3
  151. package/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
  152. package/lib/components/Header/Header.js +2 -2
  153. package/lib/components/Header/Header.js.map +1 -1
  154. package/lib/components/Header/Header.mobile.js +2 -2
  155. package/lib/components/Header/Header.mobile.js.map +1 -1
  156. package/lib/components/Header/HeaderContent.d.ts +0 -6
  157. package/lib/components/Header/HeaderSecondaryMenu.js +1 -1
  158. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  159. package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  160. package/lib/components/Recommendation/RecommendationCard.js +3 -2
  161. package/lib/components/Recommendation/RecommendationCard.js.map +1 -1
  162. package/lib/components/Recommendation/RecommendationContent.d.ts +8 -0
  163. package/lib/components/RollupItem/RollupItem.d.ts +3 -0
  164. package/lib/components/RollupItem/RollupItem.fixture.d.ts +7 -0
  165. package/lib/components/RollupItem/RollupItem.js +16 -0
  166. package/lib/components/RollupItem/RollupItem.js.map +1 -0
  167. package/lib/components/RollupItem/RollupItemContent.d.ts +12 -0
  168. package/lib/components/RollupItem/RollupItemContent.js +2 -0
  169. package/lib/components/RollupItem/RollupItemContent.js.map +1 -0
  170. package/lib/components/RollupItem/RollupItemProps.d.ts +4 -0
  171. package/lib/components/RollupItem/RollupItemProps.js +2 -0
  172. package/lib/components/RollupItem/RollupItemProps.js.map +1 -0
  173. package/lib/components/TariffsTable/TariffsTable.js +16 -11
  174. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  175. package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +4 -0
  176. package/lib/components/VerticalLayout/VerticalLayout.js +1 -1
  177. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  178. package/lib/hooks/useCarousel.d.ts +14 -0
  179. package/lib/hooks/useCarousel.js +21 -0
  180. package/lib/hooks/useCarousel.js.map +1 -0
  181. package/lib/icons/IconName.d.ts +6 -2
  182. package/lib/icons/IconName.js +5 -1
  183. package/lib/icons/IconName.js.map +1 -1
  184. package/lib/model/BlurVersion.d.ts +0 -0
  185. package/lib/model/BlurVersion.js +1 -0
  186. package/lib/model/BlurVersion.js.map +1 -0
  187. package/lib/model/CarouselCardVersion.d.ts +1 -0
  188. package/lib/model/CarouselCardVersion.js +2 -0
  189. package/lib/model/CarouselCardVersion.js.map +1 -0
  190. package/lib/services/sitemap/SitemapProps.d.ts +5 -0
  191. package/lib/ui-kit/Button/ButtonInner.js +1 -1
  192. package/lib/ui-kit/Foldable/DefaultFoldButton.js +1 -1
  193. package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  194. package/lib/ui-kit/Foldable/Foldable.d.ts +1 -1
  195. package/lib/ui-kit/InnerTable/InnerTable.js +1 -1
  196. package/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
  197. package/lib/{hooks → ui-kit/InnerTable}/useTariffsInnerTableData.d.ts +0 -0
  198. package/lib/{hooks → ui-kit/InnerTable}/useTariffsInnerTableData.js +0 -0
  199. package/lib/ui-kit/InnerTable/useTariffsInnerTableData.js.map +1 -0
  200. package/lib/ui-kit/Input/InputProps.d.ts +1 -2
  201. package/lib/ui-kit/Logo/Logo.js +4 -1
  202. package/lib/ui-kit/Logo/Logo.js.map +1 -1
  203. package/lib/ui-kit/Select/Select.d.ts +3 -3
  204. package/lib/ui-kit/Select/Select.js.map +1 -1
  205. package/mobile/bundle/bundle.umd.js +4 -4
  206. package/mobile/bundle/bundle.umd.min.js +1 -1
  207. package/mobile/bundle/components/Carousel/Carousel.d.ts +5 -0
  208. package/mobile/bundle/components/Carousel/CarouselContainer.d.ts +6 -0
  209. package/mobile/bundle/components/Carousel/CarouselContent.d.ts +10 -0
  210. package/mobile/bundle/components/Carousel/CarouselNavButtons.d.ts +11 -0
  211. package/mobile/bundle/components/CarouselCard/CarouselCard.d.ts +7 -0
  212. package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +17 -0
  213. package/mobile/bundle/components/CarouselCard/constants.d.ts +3 -0
  214. package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +5 -0
  215. package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +15 -0
  216. package/mobile/bundle/components/ComparisonTable/ComparisonTableRows.d.ts +4 -2
  217. package/mobile/bundle/components/Header/HeaderContent.d.ts +0 -6
  218. package/mobile/bundle/components/Recommendation/RecommendationContent.d.ts +8 -0
  219. package/mobile/bundle/components/RollupItem/RollupItem.d.ts +3 -0
  220. package/mobile/bundle/components/RollupItem/RollupItemContent.d.ts +12 -0
  221. package/mobile/bundle/components/RollupItem/RollupItemProps.d.ts +4 -0
  222. package/mobile/bundle/hooks/useCarousel.d.ts +14 -0
  223. package/mobile/bundle/icons/IconName.d.ts +6 -2
  224. package/mobile/bundle/model/CarouselCardVersion.d.ts +1 -0
  225. package/mobile/bundle/services/sitemap/SitemapProps.d.ts +5 -0
  226. package/mobile/bundle/ui-kit/Foldable/Foldable.d.ts +1 -1
  227. package/mobile/bundle/{hooks → ui-kit/InnerTable}/useTariffsInnerTableData.d.ts +0 -0
  228. package/mobile/bundle/ui-kit/Input/InputProps.d.ts +1 -2
  229. package/mobile/bundle/ui-kit/Select/Select.d.ts +3 -3
  230. package/mobile/dist/components/Carousel/Carousel.d.ts +5 -0
  231. package/mobile/dist/components/Carousel/Carousel.js +28 -0
  232. package/mobile/dist/components/Carousel/Carousel.js.map +1 -0
  233. package/mobile/dist/components/Carousel/CarouselContainer.d.ts +6 -0
  234. package/mobile/dist/components/Carousel/CarouselContainer.js +11 -0
  235. package/mobile/dist/components/Carousel/CarouselContainer.js.map +1 -0
  236. package/mobile/dist/components/Carousel/CarouselContent.d.ts +10 -0
  237. package/mobile/dist/components/Carousel/CarouselContent.js +2 -0
  238. package/mobile/dist/components/Carousel/CarouselContent.js.map +1 -0
  239. package/mobile/dist/components/Carousel/CarouselNavButtons.d.ts +11 -0
  240. package/mobile/dist/components/Carousel/CarouselNavButtons.js +36 -0
  241. package/mobile/dist/components/Carousel/CarouselNavButtons.js.map +1 -0
  242. package/mobile/dist/components/CarouselCard/CarouselCard.d.ts +7 -0
  243. package/mobile/dist/components/CarouselCard/CarouselCard.js +20 -0
  244. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -0
  245. package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +17 -0
  246. package/mobile/dist/components/CarouselCard/CarouselCardContent.js +2 -0
  247. package/mobile/dist/components/CarouselCard/CarouselCardContent.js.map +1 -0
  248. package/mobile/dist/components/CarouselCard/constants.d.ts +3 -0
  249. package/mobile/dist/components/CarouselCard/constants.js +11 -0
  250. package/mobile/dist/components/CarouselCard/constants.js.map +1 -0
  251. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +5 -0
  252. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +29 -0
  253. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -0
  254. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +15 -0
  255. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.js +2 -0
  256. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.js.map +1 -0
  257. package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js +6 -6
  258. package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
  259. package/mobile/dist/components/ComparisonTable/ComparisonTableRows.d.ts +4 -2
  260. package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js +10 -3
  261. package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
  262. package/mobile/dist/components/Header/Header.js +2 -2
  263. package/mobile/dist/components/Header/Header.js.map +1 -1
  264. package/mobile/dist/components/Header/HeaderContent.d.ts +0 -6
  265. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -1
  266. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  267. package/mobile/dist/components/Recommendation/RecommendationCard.js +3 -2
  268. package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -1
  269. package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +8 -0
  270. package/mobile/dist/components/RollupItem/RollupItem.d.ts +3 -0
  271. package/mobile/dist/components/RollupItem/RollupItem.js +18 -0
  272. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -0
  273. package/mobile/dist/components/RollupItem/RollupItemContent.d.ts +12 -0
  274. package/mobile/dist/components/RollupItem/RollupItemContent.js +2 -0
  275. package/mobile/dist/components/RollupItem/RollupItemContent.js.map +1 -0
  276. package/mobile/dist/components/RollupItem/RollupItemProps.d.ts +4 -0
  277. package/mobile/dist/components/RollupItem/RollupItemProps.js +2 -0
  278. package/mobile/dist/components/RollupItem/RollupItemProps.js.map +1 -0
  279. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +1 -1
  280. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  281. package/mobile/dist/hooks/useCarousel.d.ts +14 -0
  282. package/mobile/dist/hooks/useCarousel.js +24 -0
  283. package/mobile/dist/hooks/useCarousel.js.map +1 -0
  284. package/mobile/dist/icons/IconName.d.ts +6 -2
  285. package/mobile/dist/icons/IconName.js +5 -1
  286. package/mobile/dist/icons/IconName.js.map +1 -1
  287. package/mobile/dist/model/BlurVersion.d.ts +0 -0
  288. package/mobile/dist/model/BlurVersion.js +1 -0
  289. package/mobile/dist/model/BlurVersion.js.map +1 -0
  290. package/mobile/dist/model/CarouselCardVersion.d.ts +1 -0
  291. package/mobile/dist/model/CarouselCardVersion.js +2 -0
  292. package/mobile/dist/model/CarouselCardVersion.js.map +1 -0
  293. package/mobile/dist/services/sitemap/SitemapProps.d.ts +5 -0
  294. package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
  295. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +1 -1
  296. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  297. package/mobile/dist/ui-kit/Foldable/Foldable.d.ts +1 -1
  298. package/mobile/dist/ui-kit/InnerTable/InnerTable.js +1 -1
  299. package/mobile/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
  300. package/mobile/dist/{hooks → ui-kit/InnerTable}/useTariffsInnerTableData.d.ts +0 -0
  301. package/mobile/dist/{hooks → ui-kit/InnerTable}/useTariffsInnerTableData.js +0 -0
  302. package/mobile/dist/ui-kit/InnerTable/useTariffsInnerTableData.js.map +1 -0
  303. package/mobile/dist/ui-kit/Input/InputProps.d.ts +1 -2
  304. package/mobile/dist/ui-kit/Select/Select.d.ts +3 -3
  305. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  306. package/mobile/lib/components/Carousel/Carousel.d.ts +5 -0
  307. package/mobile/lib/components/Carousel/Carousel.js +26 -0
  308. package/mobile/lib/components/Carousel/Carousel.js.map +1 -0
  309. package/mobile/lib/components/Carousel/CarouselContainer.d.ts +6 -0
  310. package/mobile/lib/components/Carousel/CarouselContainer.js +9 -0
  311. package/mobile/lib/components/Carousel/CarouselContainer.js.map +1 -0
  312. package/mobile/lib/components/Carousel/CarouselContent.d.ts +10 -0
  313. package/mobile/lib/components/Carousel/CarouselContent.js +2 -0
  314. package/mobile/lib/components/Carousel/CarouselContent.js.map +1 -0
  315. package/mobile/lib/components/Carousel/CarouselNavButtons.d.ts +11 -0
  316. package/mobile/lib/components/Carousel/CarouselNavButtons.js +34 -0
  317. package/mobile/lib/components/Carousel/CarouselNavButtons.js.map +1 -0
  318. package/mobile/lib/components/CarouselCard/CarouselCard.d.ts +7 -0
  319. package/mobile/lib/components/CarouselCard/CarouselCard.js +18 -0
  320. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -0
  321. package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +17 -0
  322. package/mobile/lib/components/CarouselCard/CarouselCardContent.js +2 -0
  323. package/mobile/lib/components/CarouselCard/CarouselCardContent.js.map +1 -0
  324. package/mobile/lib/components/CarouselCard/constants.d.ts +3 -0
  325. package/mobile/lib/components/CarouselCard/constants.js +9 -0
  326. package/mobile/lib/components/CarouselCard/constants.js.map +1 -0
  327. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +5 -0
  328. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +27 -0
  329. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -0
  330. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +15 -0
  331. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.js +2 -0
  332. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.js.map +1 -0
  333. package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js +6 -6
  334. package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
  335. package/mobile/lib/components/ComparisonTable/ComparisonTableRows.d.ts +4 -2
  336. package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js +10 -3
  337. package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
  338. package/mobile/lib/components/Header/Header.js +2 -2
  339. package/mobile/lib/components/Header/Header.js.map +1 -1
  340. package/mobile/lib/components/Header/HeaderContent.d.ts +0 -6
  341. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -1
  342. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  343. package/mobile/lib/components/Recommendation/RecommendationCard.js +3 -2
  344. package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -1
  345. package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +8 -0
  346. package/mobile/lib/components/RollupItem/RollupItem.d.ts +3 -0
  347. package/mobile/lib/components/RollupItem/RollupItem.js +16 -0
  348. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -0
  349. package/mobile/lib/components/RollupItem/RollupItemContent.d.ts +12 -0
  350. package/mobile/lib/components/RollupItem/RollupItemContent.js +2 -0
  351. package/mobile/lib/components/RollupItem/RollupItemContent.js.map +1 -0
  352. package/mobile/lib/components/RollupItem/RollupItemProps.d.ts +4 -0
  353. package/mobile/lib/components/RollupItem/RollupItemProps.js +2 -0
  354. package/mobile/lib/components/RollupItem/RollupItemProps.js.map +1 -0
  355. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +1 -1
  356. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  357. package/mobile/lib/hooks/useCarousel.d.ts +14 -0
  358. package/mobile/lib/hooks/useCarousel.js +21 -0
  359. package/mobile/lib/hooks/useCarousel.js.map +1 -0
  360. package/mobile/lib/icons/IconName.d.ts +6 -2
  361. package/mobile/lib/icons/IconName.js +5 -1
  362. package/mobile/lib/icons/IconName.js.map +1 -1
  363. package/mobile/lib/model/BlurVersion.d.ts +0 -0
  364. package/mobile/lib/model/BlurVersion.js +1 -0
  365. package/mobile/lib/model/BlurVersion.js.map +1 -0
  366. package/mobile/lib/model/CarouselCardVersion.d.ts +1 -0
  367. package/mobile/lib/model/CarouselCardVersion.js +2 -0
  368. package/mobile/lib/model/CarouselCardVersion.js.map +1 -0
  369. package/mobile/lib/services/sitemap/SitemapProps.d.ts +5 -0
  370. package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
  371. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +1 -1
  372. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  373. package/mobile/lib/ui-kit/Foldable/Foldable.d.ts +1 -1
  374. package/mobile/lib/ui-kit/InnerTable/InnerTable.js +1 -1
  375. package/mobile/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
  376. package/mobile/lib/{hooks → ui-kit/InnerTable}/useTariffsInnerTableData.d.ts +0 -0
  377. package/mobile/lib/{hooks → ui-kit/InnerTable}/useTariffsInnerTableData.js +0 -0
  378. package/mobile/lib/ui-kit/InnerTable/useTariffsInnerTableData.js.map +1 -0
  379. package/mobile/lib/ui-kit/Input/InputProps.d.ts +1 -2
  380. package/mobile/lib/ui-kit/Select/Select.d.ts +3 -3
  381. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  382. package/mobile/src/components/Carousel/Carousel.example.json +6 -0
  383. package/mobile/src/components/Carousel/Carousel.tsx +70 -0
  384. package/mobile/src/components/Carousel/CarouselContainer.tsx +26 -0
  385. package/mobile/src/components/Carousel/CarouselContent.ts +10 -0
  386. package/mobile/src/components/Carousel/CarouselNavButtons.tsx +51 -0
  387. package/mobile/src/components/CarouselCard/CarouselCard.example.json +11 -0
  388. package/mobile/src/components/CarouselCard/CarouselCard.tsx +49 -0
  389. package/mobile/src/components/CarouselCard/CarouselCard.ui.json +1 -0
  390. package/mobile/src/components/CarouselCard/CarouselCardContent.ts +18 -0
  391. package/mobile/src/components/CarouselCard/constants.ts +11 -0
  392. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +24 -0
  393. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +93 -0
  394. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.ui.json +1 -0
  395. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +16 -0
  396. package/mobile/src/components/ComparisonTable/ComparisonTableBody.tsx +10 -10
  397. package/mobile/src/components/ComparisonTable/ComparisonTableRows.tsx +20 -6
  398. package/mobile/src/components/Header/Header.tsx +49 -51
  399. package/mobile/src/components/Header/HeaderContent.ts +0 -6
  400. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +1 -1
  401. package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +3 -5
  402. package/mobile/src/components/Recommendation/RecommendationCard.tsx +5 -1
  403. package/mobile/src/components/Recommendation/RecommendationContent.ts +8 -0
  404. package/mobile/src/components/RollupItem/RollupItem.example.json +23 -0
  405. package/mobile/src/components/RollupItem/RollupItem.tsx +86 -0
  406. package/mobile/src/components/RollupItem/RollupItem.ui.json +1 -0
  407. package/mobile/src/components/RollupItem/RollupItemContent.ts +13 -0
  408. package/mobile/src/components/RollupItem/RollupItemProps.ts +4 -0
  409. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +1 -1
  410. package/mobile/src/hooks/useCarousel.ts +55 -0
  411. package/mobile/src/icons/HeartIcon.svg +3 -0
  412. package/mobile/src/icons/HuaweiIcon.svg +1 -0
  413. package/mobile/src/icons/IconName.ts +5 -5
  414. package/mobile/src/model/BlurVersion.ts +0 -0
  415. package/mobile/src/model/CarouselCardVersion.ts +1 -0
  416. package/mobile/src/services/sitemap/SitemapProps.ts +5 -0
  417. package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -1
  418. package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +1 -1
  419. package/mobile/src/ui-kit/Foldable/Foldable.tsx +1 -1
  420. package/mobile/src/ui-kit/InnerTable/InnerTable.tsx +1 -1
  421. package/mobile/src/{hooks → ui-kit/InnerTable}/useTariffsInnerTableData.ts +0 -0
  422. package/mobile/src/ui-kit/Input/InputProps.ts +1 -2
  423. package/mobile/src/ui-kit/Select/Select.tsx +3 -3
  424. package/package.json +1 -1
  425. package/src/components/Blocks.ts +10 -2
  426. package/src/components/Carousel/Carousel.example.json +6 -0
  427. package/src/components/Carousel/Carousel.fixture.tsx +76 -0
  428. package/src/components/Carousel/Carousel.tsx +70 -0
  429. package/src/components/Carousel/CarouselContainer.tsx +26 -0
  430. package/src/components/Carousel/CarouselContent.ts +10 -0
  431. package/src/components/Carousel/CarouselNavButtons.tsx +51 -0
  432. package/src/components/CarouselCard/CarouselCard.example.json +11 -0
  433. package/src/components/CarouselCard/CarouselCard.fixture.tsx +47 -0
  434. package/src/components/CarouselCard/CarouselCard.tsx +49 -0
  435. package/src/components/CarouselCard/CarouselCard.ui.json +1 -0
  436. package/src/components/CarouselCard/CarouselCardContent.ts +18 -0
  437. package/src/components/CarouselCard/constants.ts +11 -0
  438. package/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +24 -0
  439. package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.tsx +64 -0
  440. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +93 -0
  441. package/src/components/CarouselTariffsCard/CarouselTariffsCard.ui.json +1 -0
  442. package/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +16 -0
  443. package/src/components/ComparisonTable/ComparisonTableBody.tsx +10 -10
  444. package/src/components/ComparisonTable/ComparisonTableRows.tsx +20 -6
  445. package/src/components/Header/Header.fixture.mobile.tsx +2 -2
  446. package/src/components/Header/Header.fixture.tsx +3 -3
  447. package/src/components/Header/Header.mobile.tsx +49 -51
  448. package/src/components/Header/Header.tsx +2 -9
  449. package/src/components/Header/HeaderContent.ts +0 -6
  450. package/src/components/Header/HeaderSecondaryMenu.tsx +1 -1
  451. package/src/components/MobileAppTile/MobileAppTile.example.json +3 -5
  452. package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
  453. package/src/components/Recommendation/RecommendationCard.tsx +5 -1
  454. package/src/components/Recommendation/RecommendationContent.ts +8 -0
  455. package/src/components/RollupItem/RollupItem.example.json +23 -0
  456. package/src/components/RollupItem/RollupItem.fixture.tsx +23 -0
  457. package/src/components/RollupItem/RollupItem.tsx +86 -0
  458. package/src/components/RollupItem/RollupItem.ui.json +1 -0
  459. package/src/components/RollupItem/RollupItemContent.ts +13 -0
  460. package/src/components/RollupItem/RollupItemProps.ts +4 -0
  461. package/src/components/TariffsTable/TariffsTable.tsx +30 -13
  462. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +46 -1
  463. package/src/components/VerticalLayout/VerticalLayout.tsx +1 -1
  464. package/src/hooks/useCarousel.ts +55 -0
  465. package/src/icons/HeartIcon.svg +3 -0
  466. package/src/icons/HuaweiIcon.svg +1 -0
  467. package/src/icons/IconName.ts +327 -6
  468. package/src/model/BlurVersion.ts +0 -0
  469. package/src/model/CarouselCardVersion.ts +1 -0
  470. package/src/services/sitemap/SitemapProps.ts +5 -0
  471. package/src/ui-kit/Button/ButtonInner.tsx +1 -1
  472. package/src/ui-kit/Foldable/DefaultFoldButton.tsx +1 -1
  473. package/src/ui-kit/Foldable/Foldable.tsx +1 -1
  474. package/src/ui-kit/InnerTable/InnerTable.tsx +1 -1
  475. package/src/{hooks → ui-kit/InnerTable}/useTariffsInnerTableData.ts +0 -0
  476. package/src/ui-kit/Input/InputProps.ts +1 -2
  477. package/src/ui-kit/Logo/Logo.tsx +4 -1
  478. package/src/ui-kit/Select/Select.tsx +3 -3
  479. package/bundle/hooks/useTableArrowScrollControl.d.ts +0 -5
  480. package/dist/hooks/useTableArrowScrollControl.d.ts +0 -5
  481. package/dist/hooks/useTableArrowScrollControl.js +0 -21
  482. package/dist/hooks/useTableArrowScrollControl.js.map +0 -1
  483. package/dist/hooks/useTariffsInnerTableData.js.map +0 -1
  484. package/lib/hooks/useTableArrowScrollControl.d.ts +0 -5
  485. package/lib/hooks/useTableArrowScrollControl.js +0 -18
  486. package/lib/hooks/useTableArrowScrollControl.js.map +0 -1
  487. package/lib/hooks/useTariffsInnerTableData.js.map +0 -1
  488. package/mobile/bundle/hooks/useTableArrowScrollControl.d.ts +0 -5
  489. package/mobile/dist/hooks/useTableArrowScrollControl.d.ts +0 -5
  490. package/mobile/dist/hooks/useTableArrowScrollControl.js +0 -21
  491. package/mobile/dist/hooks/useTableArrowScrollControl.js.map +0 -1
  492. package/mobile/dist/hooks/useTariffsInnerTableData.js.map +0 -1
  493. package/mobile/lib/hooks/useTableArrowScrollControl.d.ts +0 -5
  494. package/mobile/lib/hooks/useTableArrowScrollControl.js +0 -18
  495. package/mobile/lib/hooks/useTableArrowScrollControl.js.map +0 -1
  496. package/mobile/lib/hooks/useTariffsInnerTableData.js.map +0 -1
  497. package/mobile/src/hooks/useTableArrowScrollControl.ts +0 -28
  498. package/src/hooks/useTableArrowScrollControl.ts +0 -28
@@ -446,9 +446,9 @@
446
446
  });
447
447
 
448
448
  const icons$1 = ['PlusIcon', 'MinusIcon'];
449
- const AccordionItem = JSX(({ className = '', label = '', isExpanded, children }) => (jsx("li", { className: `border-0 border-b border-solid border-main-divider last:border-b-0 ${className}`, children: jsx(Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { className: "grid grid-cols-12 gap-5 [&>*]:p-0", isUnfolded: isUnfolded, children: children })), renderFoldButton: ({ isUnfolded, onToggle }) => (jsx(FoldButton, { label: label, icon: icons$1[Number(isUnfolded)], onClick: onToggle })) }) })));
449
+ const AccordionItem = JSX(({ className = '', label = '', isExpanded, children }) => (jsx("li", { className: `border-0 border-b border-solid border-main-divider last:border-b-0 ${className}`, children: jsx(Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { className: "grid grid-cols-12 gap-5 [&>*]:p-0", isUnfolded: isUnfolded, children: children })), renderFoldButton: ({ isUnfolded, onToggle }) => (jsx(FoldButton$1, { label: label, icon: icons$1[Number(isUnfolded)], onClick: onToggle })) }) })));
450
450
  AccordionItem.childrenTypes = [];
451
- const FoldButton = JSX(({ label, icon, onClick }) => (jsxs("button", { className: "border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer", onClick: onClick, children: [jsx("span", { className: "text-xl font-medium pr-2.5", children: label }), jsx(ImgInner, { image: icon, className: "text-primary-main flex-shrink-0", width: "24", height: "24", asSVG: true })] })));
451
+ const FoldButton$1 = JSX(({ label, icon, onClick }) => (jsxs("button", { className: "border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer", onClick: onClick, children: [jsx("span", { className: "text-xl font-medium pr-2.5", children: label }), jsx(ImgInner, { image: icon, className: "text-primary-main flex-shrink-0", width: "24", height: "24", asSVG: true })] })));
452
452
 
453
453
  const VersionStyleMap = {
454
454
  primary: 'bg-white text-primary-text',
@@ -606,7 +606,7 @@
606
606
  if (version === 'link') {
607
607
  return '';
608
608
  }
609
- const withTextStyle = `gap-2 ${aboveText ? 'py-2.5 px-7' : 'py-4 px-9'}`;
609
+ const withTextStyle = `gap-2 ${aboveText ? 'py-2.5 px-7' : 'py-4 px-4'}`;
610
610
  return [
611
611
  'group flex items-center justify-center',
612
612
  isWithText(props) ? withTextStyle : 'h-12 w-12',
@@ -1242,6 +1242,85 @@
1242
1242
  return (jsxs(BlockWrapper, { className: `p-[50px] flex flex-col items-center font-sans bg-white ${className}`, ...rest, children: [title ? jsx(Heading, { className: "max-w-[684px] pb-9", headingType: "h2", title: title }) : null, jsxs("form", { className: "w-[468px]", method: "POST", action: FORM_URL, children: [jsx(CurrencyInput, { name: AMOUNT_KEY, value: value, onChange: setValue, valid: value === '' || !isDisabled, placeholder: placeholder, label: label }), button?.text ? (jsx("button", { type: "submit", className: `w-full p-4 mt-6 ${buttonStyle} `, disabled: isDisabled, ...link(button), children: button.text })) : null] })] }));
1243
1243
  });
1244
1244
 
1245
+ const useCarouselControl = ({ itemsCount, visibleItemCount = itemsCount, isCyclic, }) => {
1246
+ const [activeIndex, setActiveIndex] = useState(0);
1247
+ const inc = useCallback(() => setActiveIndex((_) => (isCyclic ? (_ + 1) % itemsCount : Math.min(_ + 1, itemsCount - 1))), []);
1248
+ const dec = useCallback(() => setActiveIndex((_) => (isCyclic ? (itemsCount + _ - 1) % itemsCount : Math.max(_ - 1, 0))), []);
1249
+ const isScrollAvailable = itemsCount > visibleItemCount;
1250
+ const isCyclicAndScrollAvailable = isCyclic && isScrollAvailable;
1251
+ const canInc = isCyclicAndScrollAvailable ||
1252
+ (isScrollAvailable && itemsCount - activeIndex > visibleItemCount);
1253
+ const canDec = isCyclicAndScrollAvailable || Boolean(isScrollAvailable && activeIndex > 0);
1254
+ return [
1255
+ activeIndex,
1256
+ {
1257
+ inc,
1258
+ dec,
1259
+ canInc,
1260
+ canDec,
1261
+ },
1262
+ ];
1263
+ };
1264
+
1265
+ const CarouselContainer = JSX(({ children, activeItem, cardFullViewCount, cardWidth }) => {
1266
+ const cardFullViewStyles = cardFullViewCount === 1
1267
+ ? `translateX(-${activeItem}00%)`
1268
+ : `translateX(-${activeItem * cardWidth}px)`;
1269
+ return (jsx("div", { className: "w-auto flex flex-1 duration-1000", style: { transform: `${cardFullViewStyles}` }, role: "list", children: children }));
1270
+ });
1271
+
1272
+ const Carousel = JSX(({ cardFullViewCount = 1, children, cardWidth = 1007, className = '', isBlur = true, isCyclic = false, block, ...rest }) => {
1273
+ const blurClasses = isBlur ? 'absolute top-0 bottom-0 w-[84px]' : '';
1274
+ const { blocks: childBlocks } = block || {};
1275
+ const childBlocksLength = childBlocks !== undefined ? childBlocks.length : 0;
1276
+ const isScrollAvailable = childBlocksLength > cardFullViewCount;
1277
+ const [activeIndex, controls] = useCarouselControl({
1278
+ itemsCount: childBlocksLength,
1279
+ visibleItemCount: cardFullViewCount,
1280
+ isCyclic,
1281
+ });
1282
+ const { inc, dec, canDec, canInc } = controls;
1283
+ return (jsxs(BlockWrapper, { className: `box-border h-full relative font-sans flex flex-col justify-center overflow-hidden ${className}`, ...rest, children: [jsx(CarouselContainer, { activeItem: activeIndex, cardFullViewCount: cardFullViewCount, cardWidth: cardWidth, children: children }), isScrollAvailable ? (jsx("div", { children: renderArrows({
1284
+ handler: [dec, inc],
1285
+ isShown: [canDec, canInc],
1286
+ btnClass: ['left-8', 'right-8'],
1287
+ className: 'top-1/2 z-10',
1288
+ }) })) : null, isScrollAvailable ? (jsxs("div", { children: [jsx("div", { className: `${blurClasses} left-0 bg-opacity-from-white` }), jsx("div", { className: `${blurClasses} right-0 bg-opacity-to-white` })] })) : null] }));
1289
+ });
1290
+ Carousel.childrenTypes = ['CarouselCard', 'CarouselTariffsCard'];
1291
+
1292
+ const BLOCK_CLASSES = 'absolute border border-solid border-main-stroke w-[100%] h-[100%]';
1293
+ const CARD_STYLE_MAP = {
1294
+ normal: 'min-w-[100%] justify-center items-center my-7 col-span-12',
1295
+ mini: 'justify-center items-center mx-4 my-9 col-span-4',
1296
+ };
1297
+ const CARD_WIDTH_MAP = {
1298
+ normal: 'w-[1007px]',
1299
+ mini: 'w-[350px]',
1300
+ };
1301
+ const CarouselCard = JSX(({ button, className = '', description, title, version = 'normal' }) => {
1302
+ return (jsx("section", { className: `flex ${CARD_STYLE_MAP[version]}`, children: jsxs("div", { className: `relative ${CARD_WIDTH_MAP[version]}`, children: [jsxs("div", { className: `relative bg-white py-6 px-10 z-10
1303
+ border border-solid border-green-light ${className}`, children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M", align: "center" }), button ? renderButton({ button, buttonClassName: 'mt-6 w-[158px]' }) : null] }), jsx("div", { className: `top-9 right-12 bg-green-dark ${BLOCK_CLASSES}` }), jsx("div", { className: `top-6 right-8 bg-green ${BLOCK_CLASSES}` }), jsx("div", { className: `top-3 right-4 bg-green-light ${BLOCK_CLASSES}` })] }) }));
1304
+ });
1305
+
1306
+ const CarouselTariffsCard = JSX(({ className = '', title, icon, isHighlighting, button, rows = [], ...rest }) => {
1307
+ const hitStyle = getHitStyle(Boolean(isHighlighting));
1308
+ const rowsNode = rows.map(renderCardInfo);
1309
+ const VISIBLE_ROWS_COUNT = 1;
1310
+ const [visibleRows, hiddenRows] = [
1311
+ rowsNode.slice(0, VISIBLE_ROWS_COUNT),
1312
+ rowsNode.slice(VISIBLE_ROWS_COUNT),
1313
+ ];
1314
+ return (jsxs(BlockWrapper, { className: `font-sans bg-white p-[50px] p-8 border border-main-stroke relative w-[322px] min-w-[322px] -ml-[1px] ${hitStyle} ${className}`, ...rest, children: [isHighlighting ? renderHitIcon() : null, icon?.src ? jsx(ImgInner, { className: "flex justify-center", image: icon }) : null, title ? (jsx(Heading, { className: "text-primary-text text-center pt-2", headingType: "h5", title: title })) : null, button ? jsx(Button, { className: "w-full mt-4", ...button }) : null, rows?.length ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: rows.length > 1 ? renderFoldButton$1 : null })) : null] }));
1315
+ });
1316
+ const getHitStyle = (isHighlighting) => isHighlighting ? 'mt-9 pt-[71px]' : 'mt-[70px] pt-9';
1317
+ const renderFoldButton$1 = ({ isUnfolded, onToggle }) => (jsxs("button", { className: "w-full cursor-pointer text-primary-main pt-5 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", asSVG: true })] }));
1318
+ const renderCardInfo = (cell) => (jsxs("div", { className: "py-5 border-b border-main-divider flex flex-col gap-1", children: [cell?.title ? (jsx("div", { className: "text-secondary-text text-m-light opacity-80", children: cell.title })) : null, cell?.description ? jsx("div", { className: "text-primary-text text-h6", children: cell.description }) : null] }));
1319
+ const renderHitIcon = () => {
1320
+ const POSITION_STYLE = 'absolute -top-7 -right-4';
1321
+ return (jsxs("div", { className: `h-[60px] w-[60px] bg-white flex flex-col items-center justify-center shadow-[0_4px_25px_rgba(0,0,0,0.07)] ${POSITION_STYLE}`, children: [jsx(Icon, { iconVersion: "black", name: "HeartIcon", width: "23", height: "22", asSVG: true }), jsx("div", { className: "text-center", children: "\u0425\u0438\u0442" })] }));
1322
+ };
1323
+
1245
1324
  const cardStyleMap$1 = {
1246
1325
  black: 'bg-black',
1247
1326
  white: 'bg-white',
@@ -1267,23 +1346,6 @@
1267
1346
  }), jsx("div", { className: `${BLUR_BLOCK_CLASSES$2} left-0 bg-opacity-from-white` }), jsx("div", { className: `${BLUR_BLOCK_CLASSES$2} right-0 bg-opacity-to-white` })] }));
1268
1347
  });
1269
1348
 
1270
- const useTableArrowScrollControl = ({ columnsLength, colsLengthForScroll, }) => {
1271
- const [activeCardIndex, setActiveCardIndex] = useState(0);
1272
- const onNextClick = useCallback(() => setActiveCardIndex((_) => _ + 1), []);
1273
- const onPrevClick = useCallback(() => setActiveCardIndex((_) => _ - 1), []);
1274
- const isScrollAvailable = columnsLength > colsLengthForScroll;
1275
- const showNextButton = isScrollAvailable && columnsLength - activeCardIndex > colsLengthForScroll;
1276
- const showPrevButton = Boolean(isScrollAvailable && activeCardIndex > 0);
1277
- return {
1278
- activeCardIndex,
1279
- onNextClick,
1280
- onPrevClick,
1281
- isScrollAvailable,
1282
- showNextButton,
1283
- showPrevButton,
1284
- };
1285
- };
1286
-
1287
1349
  const GRADIENT = 'bg-gradient-to-r from-main-gradient-start to-main-gradient-end';
1288
1350
  const BORDER_CLASSES$1 = 'border-main-stroke border-solid border';
1289
1351
  const DIVIDER_CLASSES$1 = 'border-main-divider border border-t-0 border-x-0';
@@ -1303,16 +1365,6 @@
1303
1365
 
1304
1366
  const ComparisonTableColumnHeaders = JSX(({ colHeaders, activeCardIndex }) => (jsxs(TableRowContainer, { children: [jsx("div", { className: FIRST_CELL_CLASSES$1, role: "columnheader" }), jsx(TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: COLUMN_WIDTH$2, children: colHeaders.map((header, i) => (jsx(HeaderCell, { ...header }, String(i)))) })] })));
1305
1367
 
1306
- const TableArrowScrollControl = JSX(({ isScrollAvailable, onNextClick, onPrevClick, showNextButton, showPrevButton }) => {
1307
- return isScrollAvailable ? (jsx("div", { children: renderArrows({
1308
- handler: [onPrevClick, onNextClick],
1309
- isShown: [showPrevButton, showNextButton],
1310
- btnClass: ['top-[108px]', 'top-11'],
1311
- className: 'right-7',
1312
- isDisabled: true,
1313
- }) })) : null;
1314
- });
1315
-
1316
1368
  const TableCell = JSX(({ cell, isFirstRow, isLastRow, isFillGradient }) => {
1317
1369
  const cellWrapperClasses = `w-80 box-border flex flex-col ${BORDER_CLASSES$1} ${!isLastRow ? 'border-y-0' : 'border-t-0 rounded-b-md'} ${isFillGradient ? GRADIENT : ''}`;
1318
1370
  const cellClasses = `mx-7 h-full ${DIVIDER_CLASSES$1} ${isFillGradient && isFirstRow ? 'border-t' : ''} ${!isLastRow ? 'border-solid' : 'border-b-0'}`;
@@ -1325,8 +1377,15 @@
1325
1377
  const titleStyle = (isLastRow = false) => `text-s py-7 ${DIVIDER_CLASSES$1} ${FIRST_CELL_CLASSES$1} ${isLastRow ? 'border-b-0' : 'border-solid'}`;
1326
1378
  const TableRow = JSX(({ row: { header, data }, activeCardIndex, isColoredFirstColumn, isFirstRow, isLastRow }) => (jsxs(TableRowContainer, { children: [header?.title ? jsx("div", { className: titleStyle(isLastRow), children: header.title }) : null, data?.length ? (jsx(TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: COLUMN_WIDTH$2, children: data.map((cell, i) => (jsx(TableCell, { cell: cell, isFirstRow: isFirstRow, isLastRow: isLastRow, isFillGradient: isColoredFirstColumn && i === 0 }, String(i)))) })) : null] })));
1327
1379
 
1328
- const ComparisonTableRows = JSX(({ rowData, isColoredFirstColumn, ...tableArrowScrollProps }) => {
1329
- return (jsxs("div", { className: "relative", children: [rowData.map((row, i, { length }) => (jsx(TableRow, { row: row, isFirstRow: i === 0, isLastRow: i + 1 === length, activeCardIndex: tableArrowScrollProps.activeCardIndex, isColoredFirstColumn: isColoredFirstColumn }, String(i)))), jsx(TableArrowScrollControl, { ...tableArrowScrollProps })] }));
1380
+ const ComparisonTableRows = JSX(({ rowData, isColoredFirstColumn, activeCardIndex, controls, isScrollAvailable }) => {
1381
+ const { inc, dec, canDec, canInc } = controls;
1382
+ return (jsxs("div", { className: "relative", children: [rowData.map((row, i, { length }) => (jsx(TableRow, { row: row, isFirstRow: i === 0, isLastRow: i + 1 === length, activeCardIndex: activeCardIndex, isColoredFirstColumn: isColoredFirstColumn }, String(i)))), isScrollAvailable ? (jsx("div", { children: renderArrows({
1383
+ handler: [inc, dec],
1384
+ isShown: [canDec, canInc],
1385
+ btnClass: ['top-[108px]', 'top-11'],
1386
+ className: 'right-7',
1387
+ isDisabled: true,
1388
+ }) })) : null] }));
1330
1389
  });
1331
1390
 
1332
1391
  const ComparisonTableBody = JSX(({ columns, rowHeaders, isShowAllRow, visibleRowLength, isColoredFirstColumn }) => {
@@ -1338,12 +1397,12 @@
1338
1397
  data: colData.map((col) => col?.[i] || [{}]),
1339
1398
  }))
1340
1399
  .slice(0, isShowAllRow ? rowHeaders.length : visibleRowLength);
1341
- const tableArrowScrollProps = useTableArrowScrollControl({
1342
- columnsLength: colData.length,
1343
- colsLengthForScroll: COLS_LENGTH_FOR_SCROLL$1,
1400
+ const isScrollAvailable = colData.length > COLS_LENGTH_FOR_SCROLL$1;
1401
+ const [activeIndex, controls] = useCarouselControl({
1402
+ itemsCount: colData.length,
1403
+ visibleItemCount: COLS_LENGTH_FOR_SCROLL$1,
1344
1404
  });
1345
- const { activeCardIndex, isScrollAvailable } = tableArrowScrollProps;
1346
- return (jsxs("div", { children: [jsxs("div", { role: "table", children: [colHeaders?.length ? (jsx(ComparisonTableColumnHeaders, { colHeaders: colHeaders, activeCardIndex: activeCardIndex })) : null, rowData?.length ? (jsx(ComparisonTableRows, { rowData: rowData, isColoredFirstColumn: isColoredFirstColumn, ...tableArrowScrollProps })) : null] }), isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" })) : null] }));
1405
+ return (jsxs("div", { children: [jsxs("div", { role: "table", children: [colHeaders?.length ? (jsx(ComparisonTableColumnHeaders, { colHeaders: colHeaders, activeCardIndex: activeIndex })) : null, rowData?.length ? (jsx(ComparisonTableRows, { rowData: rowData, isColoredFirstColumn: isColoredFirstColumn, activeCardIndex: activeIndex, controls: controls, isScrollAvailable: isScrollAvailable })) : null] }), isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" })) : null] }));
1347
1406
  });
1348
1407
 
1349
1408
  const ComparisonTable = JSX(({ className = '', title, rowHeaders, columns, visibleRowLength = 0, isColoredFirstColumn = false, ...rest }) => {
@@ -1620,7 +1679,10 @@
1620
1679
  transparent: 'text-white',
1621
1680
  };
1622
1681
  const Logo = JSX(({ className = '', href, logo, children = logo?.title, targetBlank, bgColor = 'bg-white', showTitle = true, }) => {
1623
- return (jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || '/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [logo?.image?.src ? (jsx(ImgInner, { image: logo.image, className: SVG_COLOR[bgColor], width: "40", height: "45", asSVG: true })) : (jsx(ImgInner, { image: { icon: 'LogoIcon', iconVersion: ICON_VERSION_MAP[bgColor] }, className: `${SVG_COLOR[bgColor]} w-10`, width: "40", height: "45", asSVG: true })), showTitle ? renderTitle$2(children, bgColor, logo?.title) : null] }));
1682
+ return (jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || '/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [logo?.image?.src ? (jsx(ImgInner, { image: logo.image, className: SVG_COLOR[bgColor], width: "40", height: "45", asSVG: true })) : (jsx(ImgInner, { image: {
1683
+ icon: logo?.image?.icon || 'LogoIcon',
1684
+ iconVersion: ICON_VERSION_MAP[bgColor],
1685
+ }, className: `${SVG_COLOR[bgColor]} w-10`, width: "40", height: "45", asSVG: true })), showTitle ? renderTitle$2(children, bgColor, logo?.title) : null] }));
1624
1686
  });
1625
1687
  const renderTitle$2 = (children, bgColor, title) => {
1626
1688
  const text = children || title || 'Россельхозбанк';
@@ -1924,7 +1986,7 @@
1924
1986
  'bg-white': 'black',
1925
1987
  transparent: 'white',
1926
1988
  };
1927
- const HeaderSecondaryMenu = JSX(({ className, defaultLocation = '', bgColor = 'bg-white' }) => {
1989
+ const HeaderSecondaryMenu = JSX(({ className, defaultLocation = 'Москва', bgColor = 'bg-white' }) => {
1928
1990
  const [city, getCity] = useGeolocation(defaultLocation);
1929
1991
  return (jsxs("div", { className: `flex items-center ${className || ''}`, children: [jsx(TopItem, { className: "mr-5", flat: true, href: "#", text: city, ariaLabel: "\u041C\u0435\u0441\u0442\u043E\u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435", onClick: getCity, bgColor: bgColor }), jsx(TopItem, { className: "mr-7", flat: true, href: "#", text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B", ariaLabel: "\u0421\u043F\u0438\u0441\u043E\u043A \u0432\u0441\u0435\u0445 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u043E\u0444\u0438\u0441\u043E\u0432 \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u043E\u0432", bgColor: bgColor }), jsx(HeaderSecondaryMenuButton, { className: `mr-5 group ${COLORS_MAP[bgColor]}`, ariaLabel: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443", children: jsx(ImgInner, { image: { icon: 'LoupeIcon', iconVersion: LINKS_ICON_VERSION_MAP[bgColor] }, className: "h-full pointer-events-none", imageClassName: "group-hover:text-primary-hover group-hover:invert-0 pointer-events-none", asSVG: true }) }), jsx(HeaderSecondaryMenuButton, { className: `${LINKS_COLORS_MAP[bgColor]} group min-w-[32px] min-h-[32px]`, ariaLabel: "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0441\u0441\u044B\u043B\u043A\u0438", children: jsx(ImgInner, { image: { icon: 'GridIcon', iconVersion: LINKS_ICON_VERSION_MAP[bgColor] }, className: "h-full bg-main-divider/20 rounded-full pointer-events-none", imageClassName: "group-hover:text-primary-hover group-hover:invert-0", asSVG: true }) })] }));
1930
1992
  });
@@ -2007,9 +2069,9 @@
2007
2069
  'bg-white': 'bg-main-divider',
2008
2070
  transparent: 'bg-main-divider opacity-30',
2009
2071
  };
2010
- const Header = JSX(({ bgColor = 'bg-white', className = '', defaultLocation = 'Москва', logo, showSubMenu = true, ...rest }) => {
2072
+ const Header = JSX(({ bgColor = 'bg-white', className = '', showSubMenu = true, ...rest }) => {
2011
2073
  const router = useRouter();
2012
- const { topItems } = useSWRResource(projectSettings.SITEMAP || 'sitemap', rest.page?.fallback);
2074
+ const { topItems, logo, defaultLocation } = useSWRResource(projectSettings.SITEMAP || 'sitemap', rest.page?.fallback);
2013
2075
  const activeTopItem = showSubMenu ? getActiveItem(topItems, router) : null;
2014
2076
  const topMenu = topItems?.map((_, i) => (jsx(TopItem, { active: _ === activeTopItem, "aria-label": _.text, bgColor: bgColor, ..._ }, String(i))));
2015
2077
  return (jsx(BlockWrapper, { tag: "header", className: `pt-6 px-20 ${bgColor} ${className} ${showSubMenu && activeTopItem?.items?.length ? 'pb-4' : 'pb-5'}`, ...rest, children: jsxs("div", { className: "container", children: [jsxs("div", { className: "flex items-center", children: [jsx(Logo, { className: "mr-8", bgColor: bgColor, logo: logo }), topMenu, jsx(HeaderSecondaryMenu, { className: "ml-auto", defaultLocation: defaultLocation, bgColor: bgColor })] }), jsx("div", { className: `mt-6 h-[1px] ${BORDER_COLORS[bgColor]}` }), showSubMenu && activeTopItem?.items?.length ? (jsx(HeaderSubMenu, { subItems: activeTopItem.items, bgColor: bgColor })) : null] }) }));
@@ -2096,6 +2158,52 @@
2096
2158
  return (jsx("button", { type: "button", onClick: onClick, "aria-label": title, className: `box-border px-4 py-3 text-m-light ${btnClassName}`, children: title }, String(i)));
2097
2159
  }
2098
2160
 
2161
+ const BorderVersionStyleMap = {
2162
+ primary: 'border-main-stroke',
2163
+ secondary: 'border-white/50',
2164
+ };
2165
+
2166
+ const getItemListFontSize = (colValue) => (colValue === 'single' ? 'text-h6' : 'text-l');
2167
+ const cardColumnsModeStyleMap = {
2168
+ double: 'flex gap-y-2 gap-x-10 flex-wrap',
2169
+ single: 'flex gap-y-2 flex-col',
2170
+ };
2171
+ const InvestmentGalleryCard = JSX(({ className = '', columnsMode = 'double', description, additionalDescription, image, cardList, title, version = 'primary', }) => {
2172
+ const tileTitle = title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
2173
+ const tileImage = image?.src ? (jsx(ImgInner, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
2174
+ return (jsx("section", { className: `relative overflow-hidden text-left border border-solid box-border
2175
+ p-9 min-w-[697px] min-h-[319px]
2176
+ ${BorderVersionStyleMap[version]}
2177
+ ${className}`, role: "listitem", children: jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: jsxs("div", { className: "flex flex-col justify-between", children: [jsxs("div", { className: "flex itens-center justify-between mb-4", children: [description ? jsx(Description, { className: "text-h6", description: description }) : null, additionalDescription ? (jsxs("div", { className: "text-m-light text-secondary-text", children: [" ", additionalDescription, " "] })) : null] }), cardList?.length ? (jsx("div", { className: `${cardColumnsModeStyleMap[columnsMode]}`, role: "list", children: renderCardList(cardList, columnsMode) })) : null] }) }) }));
2178
+ });
2179
+ const renderCardList = (cardList, columnsMode) => cardList.map((item, i) => (jsxs("div", { className: columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : '', role: "listitem", children: [item?.parameter ? (jsx("span", { className: `pr-2.5 ${getItemListFontSize(columnsMode)}`, children: item.parameter })) : null, item?.parameterDesccription ? (jsx("span", { className: "text-m-light text-secondary-text", children: item.parameterDesccription })) : null] }, String(i))));
2180
+
2181
+ const BLUR_BLOCK_CLASSES$1 = 'absolute top-0 bottom-0 w-[84px]';
2182
+ const CARD_FULL_VIEW_COUNT$1 = 1;
2183
+ const InvestmentGallery = JSX(({ cards = [], className = '', title, version = 'primary', ...rest }) => {
2184
+ const [activeCardIndex, setActiveCardIndex] = useState(0);
2185
+ const cardWidth = 525;
2186
+ return (jsxs(BlockWrapper, { className: `relative font-sans p-9 overflow-hidden text-center ${VersionStyleMap[version]} ${className}`, ...rest, children: [title ? jsx(Heading, { headingType: "h3", className: "mb-9", title: title }) : null, jsxs("div", { children: [jsx("div", { className: "flex duration-1000 gap-3.5", style: { transform: `translateX(-${activeCardIndex * cardWidth}px)` }, role: "list", children: cards?.length ? cards.map(renderInvestmentGalleryCard(className, version)) : null }), renderNavButtons$1({
2187
+ cardsCount: cards.length,
2188
+ activeCardIndex,
2189
+ setActiveCardIndex,
2190
+ })] }), jsx("div", { className: `${BLUR_BLOCK_CLASSES$1} left-0 ${version === 'secondary' ? 'bg-opacity-from-main' : 'bg-opacity-from-white'}` }), jsx("div", { className: `${BLUR_BLOCK_CLASSES$1} right-0 ${version === 'secondary' ? 'bg-opacity-to-main' : 'bg-opacity-to-white'}` })] }));
2191
+ });
2192
+ const renderInvestmentGalleryCard = (className, version) => (card, i) => jsx(InvestmentGalleryCard, { className: className, version: version, ...card }, String(i));
2193
+ const renderNavButtons$1 = ({ cardsCount, activeCardIndex, setActiveCardIndex }) => {
2194
+ const isUseSlider = cardsCount > CARD_FULL_VIEW_COUNT$1;
2195
+ const showNextButton = isUseSlider && cardsCount - activeCardIndex > CARD_FULL_VIEW_COUNT$1;
2196
+ const showPrevButton = isUseSlider && activeCardIndex > 0;
2197
+ const handleNextClick = () => setActiveCardIndex(activeCardIndex + 1);
2198
+ const handlePrevClick = () => setActiveCardIndex(activeCardIndex - 1);
2199
+ return (jsx("div", { children: renderArrows({
2200
+ handler: [handlePrevClick, handleNextClick],
2201
+ isShown: [showPrevButton, showNextButton],
2202
+ btnClass: ['left-8', 'right-8'],
2203
+ className: 'top-1/2 mt-3',
2204
+ }) }));
2205
+ };
2206
+
2099
2207
  function joinList(sep) {
2100
2208
  return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
2101
2209
  }
@@ -2200,7 +2308,7 @@
2200
2308
  return (jsxs(BlockWrapper, { className: `flex justify-between font-sans p-9 box-border relative min-h-[320px]
2201
2309
  ${getTileMinHeight(className)}
2202
2310
  ${VersionStyleMap[version]}
2203
- ${className}`, ...rest, children: [jsxs(BaseTile, { className: "z-10", title: title ? (jsx(Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap max-w-[509px] mb-6
2311
+ ${className}`, ...rest, children: [jsxs(BaseTile, { className: "z-10", title: title ? (jsx(Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap mb-6 w-full
2204
2312
  ${textColorClass} ${AlignText[alignTitle]}` })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { buttons: buttonsWithClass, className: "flex gap-4", ...rest })) : null, children: [renderDescription$1(description), jsxs("div", { className: "flex flex-1 items-center", children: [qr?.src ? (jsx("div", { className: `flex justify-center mr-5 bg-white rounded-md ${containerStyle}`, children: jsx(ImgInner, { className: "w-fit", image: qr }) })) : null, renderList$1(version, items)] })] }), image?.src ? (jsx("div", { className: "absolute right-0 bottom-0", children: jsx(ImgInner, { image: image }) })) : null] }));
2205
2313
  });
2206
2314
  const renderList$1 = (version, items) => {
@@ -2632,7 +2740,7 @@
2632
2740
 
2633
2741
  const DefaultFoldButton = JSX(({ className = '', label, icon, dataTheme = '', onClick }) => {
2634
2742
  const STATE_STYLE = 'hover:bg-primary-hover focus:border-primary-text active:bg-primary-active outline-none';
2635
- const DIMENSIONS_STYLE = 'flex justify-center w-full px-0 py-5 mb-[1px]';
2743
+ const DIMENSIONS_STYLE = 'flex justify-center w-full px-0 py-5';
2636
2744
  return (jsxs("button", { className: [
2637
2745
  'border border-transparent bg-primary-main font-sans text-white cursor-pointer',
2638
2746
  STATE_STYLE,
@@ -2764,11 +2872,6 @@
2764
2872
  : null, breadcrumbs?.length ? (jsx("div", { className: "text-xs-light mb-6", children: joinList(jsx("span", { className: `mx-2 ${breadcrumbsStyleMap[version]}`, children: "/" }))(breadcrumbs.map((breadcrumb, i) => (jsx(Breadcrumb, { className: breadcrumbsStyleMap[version], ...breadcrumb }, String(i))))) })) : null, jsx(ProductBlockInner, { version: version, ...rest })] }));
2765
2873
  });
2766
2874
 
2767
- const BorderVersionStyleMap = {
2768
- primary: 'border-main-stroke',
2769
- secondary: 'border-white/50',
2770
- };
2771
-
2772
2875
  const productBlockStyleMap = {
2773
2876
  primary: { title: 'text-secondary-text', text: 'text-secondary-text' },
2774
2877
  secondary: { title: 'text-white', text: 'text-white/80' },
@@ -2852,30 +2955,30 @@
2852
2955
  return dateObj.toLocaleString('ru-RU', dateFormat).replace('г.', '');
2853
2956
  }
2854
2957
 
2855
- const RecommendationCard = JSX(({ className = '', title, description, items, image, version, socialMedia }) => {
2958
+ const RecommendationCard = JSX(({ className = '', title, description, items, image, version, socialMedia, button }) => {
2856
2959
  const tileTitle = title ? (jsx(Heading, { headingType: "h5", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
2857
2960
  const tileImage = image?.src ? (jsx(ImgInner, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
2858
- return (jsx("section", { className: `relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${className}`, role: "listitem", children: jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: jsxs("div", { className: "h-full flex flex-col justify-between", children: [description ? jsx(Description, { className: "mb-2", description: description }) : null, items?.length ? (jsx(List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items, version: version })) : null, socialMedia ? (jsx(SocialMedia, { className: "pt-10 pb-0", media: socialMedia, version: version })) : null] }) }) }));
2961
+ return (jsx("section", { className: `relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${className}`, role: "listitem", children: jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: jsxs("div", { className: "h-full flex flex-col justify-between", children: [description ? jsx(Description, { className: "mb-2", description: description }) : null, items?.length ? (jsx(List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items, version: version })) : null, socialMedia ? (jsx(SocialMedia, { className: "pt-10 pb-0", media: socialMedia, version: version })) : null, button?.text ? (jsx("div", { className: "pt-2", children: renderButton({ button, buttonClassName: 'mt-16' }) })) : null] }) }) }));
2859
2962
  });
2860
2963
 
2861
- const BLUR_BLOCK_CLASSES$1 = 'absolute top-0 bottom-0 w-[84px]';
2862
- const CARD_FULL_VIEW_COUNT$1 = 2;
2964
+ const BLUR_BLOCK_CLASSES = 'absolute top-0 bottom-0 w-[84px]';
2965
+ const CARD_FULL_VIEW_COUNT = 2;
2863
2966
  const CARD_SHIFT = 525;
2864
2967
  const Recommendation = JSX(({ recommendations = [], className = '', title, version = 'primary', ...rest }) => {
2865
2968
  const [activeCardIndex, setActiveCardIndex] = useState(0);
2866
2969
  return (jsxs(BlockWrapper, { className: `relative font-sans p-9 overflow-hidden text-center ${VersionStyleMap[version]} ${className}`, ...rest, children: [title ? jsx(Heading, { headingType: "h3", className: "mb-6", title: title }) : null, jsxs("div", { children: [jsx("div", { className: "flex duration-1000 gap-3.5", style: { transform: `translateX(-${activeCardIndex * CARD_SHIFT}px)` }, role: "list", children: recommendations?.length
2867
2970
  ? recommendations.map((card, i) => (jsx(RecommendationCard, { version: version, className: BorderVersionStyleMap[version], ...card }, String(i))))
2868
- : null }), renderNavButtons$1({
2971
+ : null }), renderNavButtons({
2869
2972
  cardsCount: recommendations.length,
2870
2973
  activeCardIndex,
2871
2974
  setActiveCardIndex,
2872
- })] }), jsx("div", { className: `${BLUR_BLOCK_CLASSES$1} left-0 ${version === 'secondary' ? 'bg-opacity-from-main' : 'bg-opacity-from-white'}` }), jsx("div", { className: `${BLUR_BLOCK_CLASSES$1} right-0 ${version === 'secondary' ? 'bg-opacity-to-main' : 'bg-opacity-to-white'}` })] }));
2975
+ })] }), jsx("div", { className: `${BLUR_BLOCK_CLASSES} left-0 ${version === 'secondary' ? 'bg-opacity-from-main' : 'bg-opacity-from-white'}` }), jsx("div", { className: `${BLUR_BLOCK_CLASSES} right-0 ${version === 'secondary' ? 'bg-opacity-to-main' : 'bg-opacity-to-white'}` })] }));
2873
2976
  });
2874
- const renderNavButtons$1 = ({ cardsCount, activeCardIndex, setActiveCardIndex, }) => {
2977
+ const renderNavButtons = ({ cardsCount, activeCardIndex, setActiveCardIndex, }) => {
2875
2978
  const handleNextClick = () => setActiveCardIndex(activeCardIndex + 1);
2876
2979
  const handlePrevClick = () => setActiveCardIndex(activeCardIndex - 1);
2877
- const isUseSlider = cardsCount > CARD_FULL_VIEW_COUNT$1;
2878
- const showNextButton = isUseSlider && cardsCount - activeCardIndex > CARD_FULL_VIEW_COUNT$1;
2980
+ const isUseSlider = cardsCount > CARD_FULL_VIEW_COUNT;
2981
+ const showNextButton = isUseSlider && cardsCount - activeCardIndex > CARD_FULL_VIEW_COUNT;
2879
2982
  const showPrevButton = isUseSlider && activeCardIndex > 0;
2880
2983
  return (jsx("div", { children: renderArrows({
2881
2984
  handler: [handlePrevClick, handleNextClick],
@@ -2885,6 +2988,15 @@
2885
2988
  }) }));
2886
2989
  };
2887
2990
 
2991
+ const RollupItem = JSX(({ className = '', label = 'Развернуть', isExpanded, isFoldButtonOnTop = true, version = 'primary', children, }) => (jsx("div", { className: `border-b border-solid border-main-divider w-full ${className}`, children: jsx(Foldable, { isFoldButtonOnTop: isFoldButtonOnTop, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx("div", { className: "box-border", children: jsx(FoldableSection, { className: `grid grid-cols-12 gap-1 border-box`, isUnfolded: isUnfolded, children: children }) })), renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton({ isUnfolded, onToggle, label, version }) }) })));
2992
+ RollupItem.childrenTypes = [];
2993
+ const renderFoldButton = ({ isUnfolded, onToggle, label, version }) => {
2994
+ const icons = ['PlusIcon', 'MinusIcon'];
2995
+ const labels = label ? [label, label] : ['Развернуть', 'Скрыть'];
2996
+ return version === 'primary' ? (jsx(FoldButton, { icon: icons[Number(isUnfolded)], label: labels[Number(isUnfolded)], onClick: onToggle })) : (jsx(DefaultFoldButton, { icon: icons[Number(isUnfolded)], label: labels[Number(isUnfolded)], onClick: onToggle }));
2997
+ };
2998
+ const FoldButton = JSX(({ label, icon, onClick }) => (jsxs("button", { className: "border-none bg-transparent px-9 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer", onClick: onClick, children: [jsx("span", { className: "text-xl font-medium pr-2.5", children: label }), icon ? jsx(ImgInner, { image: getIconWithVersion({ icon }), width: "24", height: "24", asSVG: true }) : null] })));
2999
+
2888
3000
  const SAFEBOXES_URL = '/api/v1/safeboxes';
2889
3001
  const EMPTY_VALUE = [];
2890
3002
  function useSafeBoxes(regionCode) {
@@ -3329,14 +3441,14 @@
3329
3441
  data: colData.map((col) => col?.[i] || []),
3330
3442
  }));
3331
3443
  const columnsLength = colData.length;
3332
- const tableArrowScrollControlProps = useTableArrowScrollControl({
3333
- columnsLength,
3334
- colsLengthForScroll: COLS_LENGTH_FOR_SCROLL,
3444
+ const [activeIndex, controls] = useCarouselControl({
3445
+ itemsCount: colData.length,
3446
+ visibleItemCount: COLS_LENGTH_FOR_SCROLL,
3335
3447
  });
3336
- const { activeCardIndex } = tableArrowScrollControlProps;
3337
- const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, activeCardIndex: activeCardIndex, rowIdx: i, ...rest }, String(i))));
3448
+ const isScrollAvailable = colData.length > COLS_LENGTH_FOR_SCROLL;
3449
+ const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, activeCardIndex: activeIndex, rowIdx: i, ...rest }, String(i))));
3338
3450
  const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
3339
- return (jsxs(BlockWrapper, { className: `bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${columnsLength > 1 ? 'pr-0' : ''} ${className}`, ...rest, children: [renderTitle({ title, description }), renderDescription(description), hiddenRowsNum > 0 ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs(Wrapper, { tableArrowScrollControlProps: tableArrowScrollControlProps, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: renderDefaultFoldButton })) : (jsx(Wrapper, { tableArrowScrollControlProps: tableArrowScrollControlProps, children: rows }))] }));
3451
+ return (jsxs(BlockWrapper, { className: `bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${columnsLength > 1 ? 'pr-0' : ''} ${className}`, ...rest, children: [renderTitle({ title, description }), renderDescription(description), hiddenRowsNum > 0 ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs(Wrapper, { controls: controls, isScrollAvailable: isScrollAvailable, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: renderDefaultFoldButton })) : (jsx(Wrapper, { controls: controls, isScrollAvailable: isScrollAvailable, children: rows }))] }));
3340
3452
  });
3341
3453
  function renderTitle({ title, description }) {
3342
3454
  return title ? (jsx(Heading, { headingType: "h3", className: `text-center ${description ? 'mb-2.5' : 'mb-8'}`, title: title })) : null;
@@ -3344,9 +3456,14 @@
3344
3456
  function renderDescription(description) {
3345
3457
  return description ? jsx("div", { className: "mb-9 text-center text-l", children: description }) : null;
3346
3458
  }
3347
- const Wrapper = JSX(({ children, tableArrowScrollControlProps }) => {
3348
- const { isScrollAvailable } = tableArrowScrollControlProps;
3349
- return (jsxs("div", { role: "table", children: [jsxs("div", { className: "relative", children: [children, jsx(TableArrowScrollControl, { ...tableArrowScrollControlProps })] }), isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" })) : null] }));
3459
+ const Wrapper = JSX(({ children, controls, isScrollAvailable }) => {
3460
+ const { inc, dec, canDec, canInc } = controls;
3461
+ return (jsxs("div", { role: "table", children: [jsxs("div", { className: "relative", children: [children, isScrollAvailable ? (jsx("div", { children: renderArrows({
3462
+ handler: [inc, dec],
3463
+ isShown: [canDec, canInc],
3464
+ btnClass: ['top-[108px]', 'top-11'],
3465
+ className: 'right-7',
3466
+ }) })) : null] }), isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" })) : null] }));
3350
3467
  });
3351
3468
 
3352
3469
  const textBlockStyleMaps = {
@@ -3414,7 +3531,7 @@
3414
3531
  primary: 'bg-white',
3415
3532
  secondary: 'bg-primary-main',
3416
3533
  };
3417
- const VerticalLayout = JSX(({ className = '', children, gap = '', align = 'left', version = 'primary', ...rest }) => (jsx(BlockWrapper, { className: [
3534
+ const VerticalLayout = JSX(({ className = '', children, gap = '', align = 'left', version = 'transparent', ...rest }) => (jsx(BlockWrapper, { className: [
3418
3535
  'flex flex-col',
3419
3536
  gapStyleMap[gap],
3420
3537
  alignStyle[align],
@@ -3425,47 +3542,6 @@
3425
3542
  exclude: ['VerticalLayout'],
3426
3543
  };
3427
3544
 
3428
- const getItemListFontSize = (colValue) => (colValue === 'single' ? 'text-h6' : 'text-l');
3429
- const cardColumnsModeStyleMap = {
3430
- double: 'flex gap-y-2 gap-x-10 flex-wrap',
3431
- single: 'flex gap-y-2 flex-col',
3432
- };
3433
- const InvestmentGalleryCard = JSX(({ className = '', columnsMode = 'double', description, additionalDescription, image, cardList, title, version = 'primary', }) => {
3434
- const tileTitle = title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
3435
- const tileImage = image?.src ? (jsx(ImgInner, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
3436
- return (jsx("section", { className: `relative overflow-hidden text-left border border-solid box-border
3437
- p-9 min-w-[697px] min-h-[319px]
3438
- ${BorderVersionStyleMap[version]}
3439
- ${className}`, role: "listitem", children: jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: jsxs("div", { className: "flex flex-col justify-between", children: [jsxs("div", { className: "flex itens-center justify-between mb-4", children: [description ? jsx(Description, { className: "text-h6", description: description }) : null, additionalDescription ? (jsxs("div", { className: "text-m-light text-secondary-text", children: [" ", additionalDescription, " "] })) : null] }), cardList?.length ? (jsx("div", { className: `${cardColumnsModeStyleMap[columnsMode]}`, role: "list", children: renderCardList(cardList, columnsMode) })) : null] }) }) }));
3440
- });
3441
- const renderCardList = (cardList, columnsMode) => cardList.map((item, i) => (jsxs("div", { className: columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : '', role: "listitem", children: [item?.parameter ? (jsx("span", { className: `pr-2.5 ${getItemListFontSize(columnsMode)}`, children: item.parameter })) : null, item?.parameterDesccription ? (jsx("span", { className: "text-m-light text-secondary-text", children: item.parameterDesccription })) : null] }, String(i))));
3442
-
3443
- const BLUR_BLOCK_CLASSES = 'absolute top-0 bottom-0 w-[84px]';
3444
- const CARD_FULL_VIEW_COUNT = 1;
3445
- const InvestmentGallery = JSX(({ cards = [], className = '', title, version = 'primary', ...rest }) => {
3446
- const [activeCardIndex, setActiveCardIndex] = useState(0);
3447
- const cardWidth = 525;
3448
- return (jsxs(BlockWrapper, { className: `relative font-sans p-9 overflow-hidden text-center ${VersionStyleMap[version]} ${className}`, ...rest, children: [title ? jsx(Heading, { headingType: "h3", className: "mb-9", title: title }) : null, jsxs("div", { children: [jsx("div", { className: "flex duration-1000 gap-3.5", style: { transform: `translateX(-${activeCardIndex * cardWidth}px)` }, role: "list", children: cards?.length ? cards.map(renderInvestmentGalleryCard(className, version)) : null }), renderNavButtons({
3449
- cardsCount: cards.length,
3450
- activeCardIndex,
3451
- setActiveCardIndex,
3452
- })] }), jsx("div", { className: `${BLUR_BLOCK_CLASSES} left-0 ${version === 'secondary' ? 'bg-opacity-from-main' : 'bg-opacity-from-white'}` }), jsx("div", { className: `${BLUR_BLOCK_CLASSES} right-0 ${version === 'secondary' ? 'bg-opacity-to-main' : 'bg-opacity-to-white'}` })] }));
3453
- });
3454
- const renderInvestmentGalleryCard = (className, version) => (card, i) => jsx(InvestmentGalleryCard, { className: className, version: version, ...card }, String(i));
3455
- const renderNavButtons = ({ cardsCount, activeCardIndex, setActiveCardIndex }) => {
3456
- const isUseSlider = cardsCount > CARD_FULL_VIEW_COUNT;
3457
- const showNextButton = isUseSlider && cardsCount - activeCardIndex > CARD_FULL_VIEW_COUNT;
3458
- const showPrevButton = isUseSlider && activeCardIndex > 0;
3459
- const handleNextClick = () => setActiveCardIndex(activeCardIndex + 1);
3460
- const handlePrevClick = () => setActiveCardIndex(activeCardIndex - 1);
3461
- return (jsx("div", { children: renderArrows({
3462
- handler: [handlePrevClick, handleNextClick],
3463
- isShown: [showPrevButton, showNextButton],
3464
- btnClass: ['left-8', 'right-8'],
3465
- className: 'top-1/2 mt-3',
3466
- }) }));
3467
- };
3468
-
3469
3545
  const Blocks = {
3470
3546
  Accordion,
3471
3547
  AccordionItem,
@@ -3474,10 +3550,13 @@
3474
3550
  Bonus,
3475
3551
  BonusBenefitsBlock,
3476
3552
  CardTransfer,
3477
- ComparisonTable,
3478
3553
  Calculator,
3554
+ Carousel,
3555
+ CarouselCard,
3556
+ CarouselTariffsCard,
3479
3557
  Catalog,
3480
3558
  ContactsBlock,
3559
+ ComparisonTable,
3481
3560
  ErrorBlock,
3482
3561
  ExchangeRateTile,
3483
3562
  Footer,
@@ -3502,6 +3581,7 @@
3502
3581
  OtherProducts,
3503
3582
  OtherProductsItem,
3504
3583
  Recommendation,
3584
+ RollupItem,
3505
3585
  SafeDepositRental,
3506
3586
  StepsBlock,
3507
3587
  Tabs,
@@ -3616,7 +3696,7 @@
3616
3696
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto" }) }));
3617
3697
  }
3618
3698
 
3619
- const packageVersion = "0.6.28";
3699
+ const packageVersion = "0.6.30";
3620
3700
 
3621
3701
  exports.Blocks = Blocks;
3622
3702
  exports.ContentPage = ContentPage;