@redneckz/wildless-cms-uni-blocks 0.8.15 → 0.8.17

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 (650) hide show
  1. package/bin/migration-scripts/0.8.8.js +118 -0
  2. package/bundle/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  3. package/bundle/BlockRenderer/renderBlockList.d.ts +2 -2
  4. package/bundle/BlockRenderer/renderChildren.d.ts +2 -2
  5. package/bundle/ProjectSettings.d.ts +2 -0
  6. package/bundle/blocks.schema.json +1 -1
  7. package/bundle/bundle.umd.js +78 -151
  8. package/bundle/bundle.umd.min.js +1 -1
  9. package/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
  10. package/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -2
  11. package/bundle/components/CarouselCard/constants.d.ts +3 -3
  12. package/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
  13. package/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
  14. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
  15. package/bundle/components/Header/HeaderChatBotButton.d.ts +1 -3
  16. package/bundle/components/Header/HeaderContent.d.ts +0 -6
  17. package/bundle/components/Header/HeaderSecondaryMenu.d.ts +0 -2
  18. package/bundle/components/Header/useChatBot.d.ts +1 -2
  19. package/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  20. package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
  21. package/bundle/model/AlignType.d.ts +10 -0
  22. package/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
  23. package/dist/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  24. package/dist/BlockRenderer/renderBlock.js +2 -2
  25. package/dist/BlockRenderer/renderBlock.js.map +1 -1
  26. package/dist/BlockRenderer/renderBlockList.d.ts +2 -2
  27. package/dist/BlockRenderer/renderBlockList.js +1 -1
  28. package/dist/BlockRenderer/renderChildren.d.ts +2 -2
  29. package/dist/BlockRenderer/renderChildren.js +2 -2
  30. package/dist/ProjectSettings.d.ts +2 -0
  31. package/dist/ProjectSettings.js +3 -0
  32. package/dist/ProjectSettings.js.map +1 -1
  33. package/dist/components/Blocks.js +2 -6
  34. package/dist/components/Blocks.js.map +1 -1
  35. package/dist/components/Blocks.mobile.js +0 -2
  36. package/dist/components/Blocks.mobile.js.map +1 -1
  37. package/dist/components/Carousel/Carousel.js +10 -18
  38. package/dist/components/Carousel/Carousel.js.map +1 -1
  39. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
  40. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +3 -1
  41. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  42. package/dist/components/CarouselCard/CarouselCard.js +1 -1
  43. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  44. package/dist/components/CarouselCard/CarouselCardContent.d.ts +2 -2
  45. package/dist/components/CarouselCard/constants.d.ts +3 -3
  46. package/dist/components/CarouselCard/constants.js +2 -2
  47. package/dist/components/CarouselCard/constants.js.map +1 -1
  48. package/dist/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
  49. package/dist/components/CarouselEventCard/CarouselEventCard.js +12 -0
  50. package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
  51. package/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
  52. package/dist/components/{Catalog/CatalogContent.js → CarouselEventCard/CarouselEventCardContent.js} +1 -1
  53. package/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
  54. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
  55. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  56. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
  57. package/dist/components/Footer/MediaButton.js +13 -10
  58. package/dist/components/Footer/MediaButton.js.map +1 -1
  59. package/dist/components/Header/Header.js +2 -2
  60. package/dist/components/Header/Header.js.map +1 -1
  61. package/dist/components/Header/HeaderChatBotButton.d.ts +1 -3
  62. package/dist/components/Header/HeaderChatBotButton.js.map +1 -1
  63. package/dist/components/Header/HeaderContent.d.ts +0 -6
  64. package/dist/components/Header/HeaderSecondaryMenu.d.ts +0 -2
  65. package/dist/components/Header/HeaderSecondaryMenu.js +3 -2
  66. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  67. package/dist/components/Header/useChatBot.d.ts +1 -2
  68. package/dist/components/Header/useChatBot.js.map +1 -1
  69. package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  70. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  71. package/dist/components/ProductBlock/renderBackwardButton.js +3 -3
  72. package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  73. package/dist/components/ProductGallery/ProductGallery.js +1 -1
  74. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  75. package/dist/components/Tabs/Tabs.js +1 -1
  76. package/dist/components/Tabs/Tabs.js.map +1 -1
  77. package/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  78. package/dist/components/VerticalLayout/VerticalLayout.js +2 -1
  79. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  80. package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
  81. package/dist/components/Video/Video.js +6 -1
  82. package/dist/components/Video/Video.js.map +1 -1
  83. package/dist/hooks/useLink.js +1 -1
  84. package/dist/hooks/useLink.js.map +1 -1
  85. package/dist/model/AlignType.d.ts +10 -0
  86. package/dist/services/sitemap/isTopItemActive.d.ts +3 -2
  87. package/dist/services/sitemap/isTopItemActive.js +1 -3
  88. package/dist/services/sitemap/isTopItemActive.js.map +1 -1
  89. package/dist/ui-kit/Img/ImgAsPicture.js +3 -9
  90. package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
  91. package/dist/wlc.json +3 -1
  92. package/lib/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  93. package/lib/BlockRenderer/renderBlock.js +2 -2
  94. package/lib/BlockRenderer/renderBlock.js.map +1 -1
  95. package/lib/BlockRenderer/renderBlockList.d.ts +2 -2
  96. package/lib/BlockRenderer/renderBlockList.js +1 -1
  97. package/lib/BlockRenderer/renderChildren.d.ts +2 -2
  98. package/lib/BlockRenderer/renderChildren.js +2 -2
  99. package/lib/ProjectSettings.d.ts +2 -0
  100. package/lib/ProjectSettings.js +3 -0
  101. package/lib/ProjectSettings.js.map +1 -1
  102. package/lib/common.css +1 -1
  103. package/lib/components/Blocks.js +2 -6
  104. package/lib/components/Blocks.js.map +1 -1
  105. package/lib/components/Blocks.mobile.js +0 -2
  106. package/lib/components/Blocks.mobile.js.map +1 -1
  107. package/lib/components/Carousel/Carousel.fixture.d.ts +1 -0
  108. package/lib/components/Carousel/Carousel.js +10 -18
  109. package/lib/components/Carousel/Carousel.js.map +1 -1
  110. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
  111. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +3 -1
  112. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  113. package/lib/components/CarouselCard/CarouselCard.js +1 -1
  114. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  115. package/lib/components/CarouselCard/CarouselCardContent.d.ts +2 -2
  116. package/lib/components/CarouselCard/constants.d.ts +3 -3
  117. package/lib/components/CarouselCard/constants.js +2 -2
  118. package/lib/components/CarouselCard/constants.js.map +1 -1
  119. package/lib/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
  120. package/lib/components/CarouselEventCard/CarouselEventCard.fixture.d.ts +7 -0
  121. package/lib/components/CarouselEventCard/CarouselEventCard.js +10 -0
  122. package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
  123. package/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
  124. package/lib/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
  125. package/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
  126. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
  127. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  128. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
  129. package/lib/components/Footer/MediaButton.js +13 -10
  130. package/lib/components/Footer/MediaButton.js.map +1 -1
  131. package/lib/components/Header/Header.js +2 -2
  132. package/lib/components/Header/Header.js.map +1 -1
  133. package/lib/components/Header/HeaderChatBotButton.d.ts +1 -3
  134. package/lib/components/Header/HeaderChatBotButton.js.map +1 -1
  135. package/lib/components/Header/HeaderContent.d.ts +0 -6
  136. package/lib/components/Header/HeaderSecondaryMenu.d.ts +0 -2
  137. package/lib/components/Header/HeaderSecondaryMenu.js +3 -2
  138. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  139. package/lib/components/Header/useChatBot.d.ts +1 -2
  140. package/lib/components/Header/useChatBot.js.map +1 -1
  141. package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  142. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  143. package/lib/components/ProductBlock/renderBackwardButton.js +3 -3
  144. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  145. package/lib/components/ProductGallery/ProductGallery.js +1 -1
  146. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  147. package/lib/components/Tabs/Tabs.js +1 -1
  148. package/lib/components/Tabs/Tabs.js.map +1 -1
  149. package/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  150. package/lib/components/VerticalLayout/VerticalLayout.js +2 -1
  151. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  152. package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
  153. package/lib/components/Video/Video.js +6 -1
  154. package/lib/components/Video/Video.js.map +1 -1
  155. package/lib/hooks/useLink.js +1 -1
  156. package/lib/hooks/useLink.js.map +1 -1
  157. package/lib/model/AlignType.d.ts +10 -0
  158. package/lib/services/sitemap/isTopItemActive.d.ts +3 -2
  159. package/lib/services/sitemap/isTopItemActive.js +1 -3
  160. package/lib/services/sitemap/isTopItemActive.js.map +1 -1
  161. package/lib/ui-kit/Img/ImgAsPicture.js +3 -9
  162. package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
  163. package/lib/wlc.json +3 -1
  164. package/mobile/bundle/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  165. package/mobile/bundle/BlockRenderer/renderBlockList.d.ts +2 -2
  166. package/mobile/bundle/BlockRenderer/renderChildren.d.ts +2 -2
  167. package/mobile/bundle/ProjectSettings.d.ts +2 -0
  168. package/mobile/bundle/bundle.umd.js +28 -57
  169. package/mobile/bundle/bundle.umd.min.js +1 -1
  170. package/mobile/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
  171. package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -2
  172. package/mobile/bundle/components/CarouselCard/constants.d.ts +3 -3
  173. package/mobile/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
  174. package/mobile/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
  175. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
  176. package/mobile/bundle/components/Header/HeaderChatBotButton.d.ts +1 -3
  177. package/mobile/bundle/components/Header/HeaderContent.d.ts +0 -6
  178. package/mobile/bundle/components/Header/HeaderSecondaryMenu.d.ts +0 -2
  179. package/mobile/bundle/components/Header/useChatBot.d.ts +1 -2
  180. package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  181. package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
  182. package/mobile/bundle/model/AlignType.d.ts +10 -0
  183. package/mobile/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
  184. package/mobile/dist/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  185. package/mobile/dist/BlockRenderer/renderBlock.js +2 -2
  186. package/mobile/dist/BlockRenderer/renderBlock.js.map +1 -1
  187. package/mobile/dist/BlockRenderer/renderBlockList.d.ts +2 -2
  188. package/mobile/dist/BlockRenderer/renderBlockList.js +1 -1
  189. package/mobile/dist/BlockRenderer/renderChildren.d.ts +2 -2
  190. package/mobile/dist/BlockRenderer/renderChildren.js +2 -2
  191. package/mobile/dist/ProjectSettings.d.ts +2 -0
  192. package/mobile/dist/ProjectSettings.js +3 -0
  193. package/mobile/dist/ProjectSettings.js.map +1 -1
  194. package/mobile/dist/components/Blocks.js +0 -2
  195. package/mobile/dist/components/Blocks.js.map +1 -1
  196. package/mobile/dist/components/Carousel/Carousel.js +10 -18
  197. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  198. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
  199. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +3 -1
  200. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  201. package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
  202. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  203. package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +2 -2
  204. package/mobile/dist/components/CarouselCard/constants.d.ts +3 -3
  205. package/mobile/dist/components/CarouselCard/constants.js +2 -2
  206. package/mobile/dist/components/CarouselCard/constants.js.map +1 -1
  207. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
  208. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +12 -0
  209. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
  210. package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
  211. package/{dist/components/Gallery/GalleryContent.js → mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js} +1 -1
  212. package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
  213. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
  214. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  215. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
  216. package/mobile/dist/components/Footer/MediaButton.js +13 -10
  217. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  218. package/mobile/dist/components/Header/HeaderChatBotButton.d.ts +1 -3
  219. package/mobile/dist/components/Header/HeaderChatBotButton.js.map +1 -1
  220. package/mobile/dist/components/Header/HeaderContent.d.ts +0 -6
  221. package/mobile/dist/components/Header/HeaderSecondaryMenu.d.ts +0 -2
  222. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +3 -2
  223. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  224. package/mobile/dist/components/Header/useChatBot.d.ts +1 -2
  225. package/mobile/dist/components/Header/useChatBot.js.map +1 -1
  226. package/mobile/dist/components/ProductBlock/renderBackwardButton.js +3 -3
  227. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  228. package/mobile/dist/components/ProductGallery/ProductGallery.js +1 -1
  229. package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  230. package/mobile/dist/components/Tabs/Tabs.js +1 -1
  231. package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
  232. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  233. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +2 -1
  234. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  235. package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
  236. package/mobile/dist/components/Video/Video.js +6 -1
  237. package/mobile/dist/components/Video/Video.js.map +1 -1
  238. package/mobile/dist/hooks/useLink.js +1 -1
  239. package/mobile/dist/hooks/useLink.js.map +1 -1
  240. package/mobile/dist/model/AlignType.d.ts +10 -0
  241. package/mobile/dist/services/sitemap/isTopItemActive.d.ts +3 -2
  242. package/mobile/dist/services/sitemap/isTopItemActive.js +1 -3
  243. package/mobile/dist/services/sitemap/isTopItemActive.js.map +1 -1
  244. package/mobile/dist/ui-kit/Img/ImgAsPicture.js +3 -9
  245. package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
  246. package/mobile/dist/wlc.json +3 -1
  247. package/mobile/lib/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  248. package/mobile/lib/BlockRenderer/renderBlock.js +2 -2
  249. package/mobile/lib/BlockRenderer/renderBlock.js.map +1 -1
  250. package/mobile/lib/BlockRenderer/renderBlockList.d.ts +2 -2
  251. package/mobile/lib/BlockRenderer/renderBlockList.js +1 -1
  252. package/mobile/lib/BlockRenderer/renderChildren.d.ts +2 -2
  253. package/mobile/lib/BlockRenderer/renderChildren.js +2 -2
  254. package/mobile/lib/ProjectSettings.d.ts +2 -0
  255. package/mobile/lib/ProjectSettings.js +3 -0
  256. package/mobile/lib/ProjectSettings.js.map +1 -1
  257. package/mobile/lib/components/Blocks.js +0 -2
  258. package/mobile/lib/components/Blocks.js.map +1 -1
  259. package/mobile/lib/components/Carousel/Carousel.js +10 -18
  260. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  261. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
  262. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +3 -1
  263. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  264. package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
  265. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  266. package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +2 -2
  267. package/mobile/lib/components/CarouselCard/constants.d.ts +3 -3
  268. package/mobile/lib/components/CarouselCard/constants.js +2 -2
  269. package/mobile/lib/components/CarouselCard/constants.js.map +1 -1
  270. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
  271. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +10 -0
  272. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
  273. package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
  274. package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
  275. package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
  276. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
  277. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  278. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
  279. package/mobile/lib/components/Footer/MediaButton.js +13 -10
  280. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  281. package/mobile/lib/components/Header/HeaderChatBotButton.d.ts +1 -3
  282. package/mobile/lib/components/Header/HeaderChatBotButton.js.map +1 -1
  283. package/mobile/lib/components/Header/HeaderContent.d.ts +0 -6
  284. package/mobile/lib/components/Header/HeaderSecondaryMenu.d.ts +0 -2
  285. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +3 -2
  286. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  287. package/mobile/lib/components/Header/useChatBot.d.ts +1 -2
  288. package/mobile/lib/components/Header/useChatBot.js.map +1 -1
  289. package/mobile/lib/components/ProductBlock/renderBackwardButton.js +3 -3
  290. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  291. package/mobile/lib/components/ProductGallery/ProductGallery.js +1 -1
  292. package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  293. package/mobile/lib/components/Tabs/Tabs.js +1 -1
  294. package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
  295. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  296. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +2 -1
  297. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  298. package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
  299. package/mobile/lib/components/Video/Video.js +6 -1
  300. package/mobile/lib/components/Video/Video.js.map +1 -1
  301. package/mobile/lib/hooks/useLink.js +1 -1
  302. package/mobile/lib/hooks/useLink.js.map +1 -1
  303. package/mobile/lib/model/AlignType.d.ts +10 -0
  304. package/mobile/lib/services/sitemap/isTopItemActive.d.ts +3 -2
  305. package/mobile/lib/services/sitemap/isTopItemActive.js +1 -3
  306. package/mobile/lib/services/sitemap/isTopItemActive.js.map +1 -1
  307. package/mobile/lib/ui-kit/Img/ImgAsPicture.js +3 -9
  308. package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
  309. package/mobile/lib/wlc.json +3 -1
  310. package/mobile/src/BlockRenderer/BlockRendererOptions.ts +1 -0
  311. package/mobile/src/BlockRenderer/renderBlock.tsx +2 -0
  312. package/mobile/src/BlockRenderer/renderBlockList.tsx +3 -3
  313. package/mobile/src/BlockRenderer/renderChildren.ts +3 -3
  314. package/mobile/src/ProjectSettings.ts +4 -0
  315. package/mobile/src/components/Blocks.ts +0 -2
  316. package/mobile/src/components/Carousel/Carousel.tsx +10 -19
  317. package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +5 -3
  318. package/mobile/src/components/CarouselCard/CarouselCard.tsx +4 -4
  319. package/mobile/src/components/CarouselCard/CarouselCardContent.ts +2 -2
  320. package/mobile/src/components/CarouselCard/constants.ts +5 -5
  321. package/mobile/src/components/CarouselEventCard/CarouselEventCard.example.json +14 -0
  322. package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +32 -0
  323. package/mobile/src/components/CarouselEventCard/CarouselEventCard.ui.json +1 -0
  324. package/mobile/src/components/CarouselEventCard/CarouselEventCardContent.ts +12 -0
  325. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -18
  326. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -4
  327. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +1 -4
  328. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +9 -9
  329. package/mobile/src/components/Footer/MediaButton.tsx +19 -14
  330. package/mobile/src/components/Header/HeaderChatBotButton.tsx +1 -4
  331. package/mobile/src/components/Header/HeaderContent.ts +0 -7
  332. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +8 -5
  333. package/mobile/src/components/Header/useChatBot.ts +2 -3
  334. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +6 -4
  335. package/mobile/src/components/ProductGallery/ProductGallery.example.json +2 -3
  336. package/mobile/src/components/ProductGallery/ProductGallery.tsx +1 -1
  337. package/mobile/src/components/Tabs/Tabs.tsx +1 -1
  338. package/mobile/src/components/TariffsTable/TariffsTable.example.json +3 -0
  339. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +1 -0
  340. package/mobile/src/components/VerticalLayout/VerticalLayout.example.json +1 -1
  341. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +4 -3
  342. package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +2 -2
  343. package/mobile/src/components/Video/Video.tsx +22 -16
  344. package/mobile/src/hooks/useLink.ts +1 -1
  345. package/mobile/src/model/AlignType.ts +11 -0
  346. package/mobile/src/services/sitemap/isTopItemActive.ts +2 -7
  347. package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +4 -10
  348. package/mobile/src/wlc.json +3 -1
  349. package/package.json +1 -1
  350. package/src/BlockRenderer/BlockRendererOptions.ts +1 -0
  351. package/src/BlockRenderer/renderBlock.tsx +2 -0
  352. package/src/BlockRenderer/renderBlockList.tsx +3 -3
  353. package/src/BlockRenderer/renderChildren.ts +3 -3
  354. package/src/ProjectSettings.ts +4 -0
  355. package/src/components/Accordion/Accordion.fixture.tsx +0 -12
  356. package/src/components/Blocks.mobile.ts +0 -2
  357. package/src/components/Blocks.ts +2 -6
  358. package/src/components/Carousel/Carousel.fixture.tsx +19 -0
  359. package/src/components/Carousel/Carousel.tsx +10 -19
  360. package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +5 -3
  361. package/src/components/CarouselCard/CarouselCard.fixture.tsx +1 -1
  362. package/src/components/CarouselCard/CarouselCard.tsx +4 -4
  363. package/src/components/CarouselCard/CarouselCardContent.ts +2 -2
  364. package/src/components/CarouselCard/constants.ts +5 -5
  365. package/src/components/CarouselEventCard/CarouselEventCard.example.json +14 -0
  366. package/src/components/CarouselEventCard/CarouselEventCard.fixture.tsx +21 -0
  367. package/src/components/CarouselEventCard/CarouselEventCard.tsx +32 -0
  368. package/src/components/CarouselEventCard/CarouselEventCard.ui.json +1 -0
  369. package/src/components/CarouselEventCard/CarouselEventCardContent.ts +12 -0
  370. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -18
  371. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +8 -3
  372. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -4
  373. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +1 -4
  374. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +9 -9
  375. package/src/components/Footer/MediaButton.tsx +19 -14
  376. package/src/components/Header/Header.fixture.tsx +3 -3
  377. package/src/components/Header/Header.tsx +0 -2
  378. package/src/components/Header/HeaderChatBotButton.tsx +1 -4
  379. package/src/components/Header/HeaderContent.ts +0 -7
  380. package/src/components/Header/HeaderSecondaryMenu.tsx +8 -5
  381. package/src/components/Header/useChatBot.ts +2 -3
  382. package/src/components/OtherProducts/OtherProducts.fixture.tsx +0 -18
  383. package/src/components/PictureText/PictureText.fixture.tsx +1 -1
  384. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +1 -1
  385. package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
  386. package/src/components/ProductBlock/renderBackwardButton.tsx +6 -4
  387. package/src/components/ProductGallery/ProductGallery.example.json +2 -3
  388. package/src/components/ProductGallery/ProductGallery.tsx +1 -1
  389. package/src/components/Tabs/Tabs.tsx +1 -1
  390. package/src/components/TariffsTable/TariffsTable.example.json +3 -0
  391. package/src/components/TariffsTable/TariffsTableContent.ts +1 -0
  392. package/src/components/VerticalLayout/VerticalLayout.example.json +1 -1
  393. package/src/components/VerticalLayout/VerticalLayout.tsx +4 -3
  394. package/src/components/VerticalLayout/VerticalLayoutContent.ts +2 -2
  395. package/src/components/Video/Video.tsx +22 -16
  396. package/src/hooks/useLink.ts +1 -1
  397. package/src/model/AlignType.ts +11 -0
  398. package/src/services/sitemap/isTopItemActive.ts +2 -7
  399. package/src/ui-kit/Img/ImgAsPicture.tsx +4 -10
  400. package/src/wlc.json +3 -1
  401. package/bundle/components/Catalog/Catalog.d.ts +0 -5
  402. package/bundle/components/Catalog/CatalogCard.d.ts +0 -7
  403. package/bundle/components/Catalog/CatalogContent.d.ts +0 -27
  404. package/bundle/components/Gallery/Gallery.d.ts +0 -2
  405. package/bundle/components/Gallery/Gallery.mobile.d.ts +0 -2
  406. package/bundle/components/Gallery/GalleryCardInner.d.ts +0 -2
  407. package/bundle/components/Gallery/GalleryContainer.d.ts +0 -11
  408. package/bundle/components/Gallery/GalleryContent.d.ts +0 -71
  409. package/bundle/components/Gallery/GalleryInner.d.ts +0 -7
  410. package/bundle/components/Gallery/GalleryProps.d.ts +0 -4
  411. package/bundle/components/Gallery/constants.d.ts +0 -4
  412. package/bundle/components/MiniGallery/MiniGallery.d.ts +0 -5
  413. package/bundle/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
  414. package/bundle/model/CarouselCardVersion.d.ts +0 -1
  415. package/bundle/model/GalleryVersion.d.ts +0 -1
  416. package/dist/components/Catalog/Catalog.d.ts +0 -5
  417. package/dist/components/Catalog/Catalog.js +0 -24
  418. package/dist/components/Catalog/Catalog.js.map +0 -1
  419. package/dist/components/Catalog/CatalogCard.d.ts +0 -7
  420. package/dist/components/Catalog/CatalogCard.js +0 -14
  421. package/dist/components/Catalog/CatalogCard.js.map +0 -1
  422. package/dist/components/Catalog/CatalogContent.d.ts +0 -27
  423. package/dist/components/Catalog/CatalogContent.js.map +0 -1
  424. package/dist/components/Gallery/Gallery.d.ts +0 -2
  425. package/dist/components/Gallery/Gallery.js +0 -7
  426. package/dist/components/Gallery/Gallery.js.map +0 -1
  427. package/dist/components/Gallery/Gallery.mobile.d.ts +0 -2
  428. package/dist/components/Gallery/Gallery.mobile.js +0 -35
  429. package/dist/components/Gallery/Gallery.mobile.js.map +0 -1
  430. package/dist/components/Gallery/GalleryCardInner.d.ts +0 -2
  431. package/dist/components/Gallery/GalleryCardInner.js +0 -20
  432. package/dist/components/Gallery/GalleryCardInner.js.map +0 -1
  433. package/dist/components/Gallery/GalleryContainer.d.ts +0 -11
  434. package/dist/components/Gallery/GalleryContainer.js +0 -15
  435. package/dist/components/Gallery/GalleryContainer.js.map +0 -1
  436. package/dist/components/Gallery/GalleryContent.d.ts +0 -71
  437. package/dist/components/Gallery/GalleryContent.js.map +0 -1
  438. package/dist/components/Gallery/GalleryInner.d.ts +0 -7
  439. package/dist/components/Gallery/GalleryInner.js +0 -23
  440. package/dist/components/Gallery/GalleryInner.js.map +0 -1
  441. package/dist/components/Gallery/GalleryProps.d.ts +0 -4
  442. package/dist/components/Gallery/GalleryProps.js +0 -2
  443. package/dist/components/Gallery/GalleryProps.js.map +0 -1
  444. package/dist/components/Gallery/constants.d.ts +0 -4
  445. package/dist/components/Gallery/constants.js +0 -15
  446. package/dist/components/Gallery/constants.js.map +0 -1
  447. package/dist/components/MiniGallery/MiniGallery.d.ts +0 -5
  448. package/dist/components/MiniGallery/MiniGallery.js +0 -7
  449. package/dist/components/MiniGallery/MiniGallery.js.map +0 -1
  450. package/dist/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
  451. package/dist/components/MiniGallery/MiniGalleryContent.js +0 -2
  452. package/dist/components/MiniGallery/MiniGalleryContent.js.map +0 -1
  453. package/dist/model/CarouselCardVersion.d.ts +0 -1
  454. package/dist/model/CarouselCardVersion.js +0 -2
  455. package/dist/model/CarouselCardVersion.js.map +0 -1
  456. package/dist/model/GalleryVersion.d.ts +0 -1
  457. package/dist/model/GalleryVersion.js +0 -2
  458. package/dist/model/GalleryVersion.js.map +0 -1
  459. package/lib/components/Catalog/Catalog.d.ts +0 -5
  460. package/lib/components/Catalog/Catalog.fixture.d.ts +0 -8
  461. package/lib/components/Catalog/Catalog.js +0 -22
  462. package/lib/components/Catalog/Catalog.js.map +0 -1
  463. package/lib/components/Catalog/CatalogCard.d.ts +0 -7
  464. package/lib/components/Catalog/CatalogCard.js +0 -12
  465. package/lib/components/Catalog/CatalogCard.js.map +0 -1
  466. package/lib/components/Catalog/CatalogContent.d.ts +0 -27
  467. package/lib/components/Catalog/CatalogContent.js +0 -2
  468. package/lib/components/Catalog/CatalogContent.js.map +0 -1
  469. package/lib/components/Gallery/Gallery.d.ts +0 -2
  470. package/lib/components/Gallery/Gallery.fixture.d.ts +0 -12
  471. package/lib/components/Gallery/Gallery.fixture.mobile.d.ts +0 -7
  472. package/lib/components/Gallery/Gallery.js +0 -5
  473. package/lib/components/Gallery/Gallery.js.map +0 -1
  474. package/lib/components/Gallery/Gallery.mobile.d.ts +0 -2
  475. package/lib/components/Gallery/Gallery.mobile.js +0 -33
  476. package/lib/components/Gallery/Gallery.mobile.js.map +0 -1
  477. package/lib/components/Gallery/GalleryCardInner.d.ts +0 -2
  478. package/lib/components/Gallery/GalleryCardInner.js +0 -18
  479. package/lib/components/Gallery/GalleryCardInner.js.map +0 -1
  480. package/lib/components/Gallery/GalleryContainer.d.ts +0 -11
  481. package/lib/components/Gallery/GalleryContainer.js +0 -13
  482. package/lib/components/Gallery/GalleryContainer.js.map +0 -1
  483. package/lib/components/Gallery/GalleryContent.d.ts +0 -71
  484. package/lib/components/Gallery/GalleryContent.js +0 -2
  485. package/lib/components/Gallery/GalleryContent.js.map +0 -1
  486. package/lib/components/Gallery/GalleryInner.d.ts +0 -7
  487. package/lib/components/Gallery/GalleryInner.js +0 -21
  488. package/lib/components/Gallery/GalleryInner.js.map +0 -1
  489. package/lib/components/Gallery/GalleryProps.d.ts +0 -4
  490. package/lib/components/Gallery/GalleryProps.js +0 -2
  491. package/lib/components/Gallery/GalleryProps.js.map +0 -1
  492. package/lib/components/Gallery/constants.d.ts +0 -4
  493. package/lib/components/Gallery/constants.js +0 -13
  494. package/lib/components/Gallery/constants.js.map +0 -1
  495. package/lib/components/MiniGallery/MiniGallery.d.ts +0 -5
  496. package/lib/components/MiniGallery/MiniGallery.fixture.d.ts +0 -11
  497. package/lib/components/MiniGallery/MiniGallery.js +0 -5
  498. package/lib/components/MiniGallery/MiniGallery.js.map +0 -1
  499. package/lib/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
  500. package/lib/components/MiniGallery/MiniGalleryContent.js +0 -2
  501. package/lib/components/MiniGallery/MiniGalleryContent.js.map +0 -1
  502. package/lib/model/CarouselCardVersion.d.ts +0 -1
  503. package/lib/model/CarouselCardVersion.js +0 -2
  504. package/lib/model/CarouselCardVersion.js.map +0 -1
  505. package/lib/model/GalleryVersion.d.ts +0 -1
  506. package/lib/model/GalleryVersion.js +0 -2
  507. package/lib/model/GalleryVersion.js.map +0 -1
  508. package/mobile/bundle/components/Catalog/Catalog.d.ts +0 -5
  509. package/mobile/bundle/components/Catalog/CatalogCard.d.ts +0 -7
  510. package/mobile/bundle/components/Catalog/CatalogContent.d.ts +0 -27
  511. package/mobile/bundle/components/Gallery/Gallery.d.ts +0 -2
  512. package/mobile/bundle/components/Gallery/GalleryCardInner.d.ts +0 -2
  513. package/mobile/bundle/components/Gallery/GalleryContainer.d.ts +0 -11
  514. package/mobile/bundle/components/Gallery/GalleryContent.d.ts +0 -71
  515. package/mobile/bundle/components/Gallery/GalleryInner.d.ts +0 -7
  516. package/mobile/bundle/components/Gallery/GalleryProps.d.ts +0 -4
  517. package/mobile/bundle/components/Gallery/constants.d.ts +0 -4
  518. package/mobile/bundle/components/MiniGallery/MiniGallery.d.ts +0 -5
  519. package/mobile/bundle/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
  520. package/mobile/bundle/model/CarouselCardVersion.d.ts +0 -1
  521. package/mobile/bundle/model/GalleryVersion.d.ts +0 -1
  522. package/mobile/dist/components/Catalog/Catalog.d.ts +0 -5
  523. package/mobile/dist/components/Catalog/Catalog.js +0 -24
  524. package/mobile/dist/components/Catalog/Catalog.js.map +0 -1
  525. package/mobile/dist/components/Catalog/CatalogCard.d.ts +0 -7
  526. package/mobile/dist/components/Catalog/CatalogCard.js +0 -14
  527. package/mobile/dist/components/Catalog/CatalogCard.js.map +0 -1
  528. package/mobile/dist/components/Catalog/CatalogContent.d.ts +0 -27
  529. package/mobile/dist/components/Catalog/CatalogContent.js +0 -2
  530. package/mobile/dist/components/Catalog/CatalogContent.js.map +0 -1
  531. package/mobile/dist/components/Gallery/Gallery.d.ts +0 -2
  532. package/mobile/dist/components/Gallery/Gallery.js +0 -35
  533. package/mobile/dist/components/Gallery/Gallery.js.map +0 -1
  534. package/mobile/dist/components/Gallery/GalleryCardInner.d.ts +0 -2
  535. package/mobile/dist/components/Gallery/GalleryCardInner.js +0 -20
  536. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +0 -1
  537. package/mobile/dist/components/Gallery/GalleryContainer.d.ts +0 -11
  538. package/mobile/dist/components/Gallery/GalleryContainer.js +0 -15
  539. package/mobile/dist/components/Gallery/GalleryContainer.js.map +0 -1
  540. package/mobile/dist/components/Gallery/GalleryContent.d.ts +0 -71
  541. package/mobile/dist/components/Gallery/GalleryContent.js +0 -2
  542. package/mobile/dist/components/Gallery/GalleryContent.js.map +0 -1
  543. package/mobile/dist/components/Gallery/GalleryInner.d.ts +0 -7
  544. package/mobile/dist/components/Gallery/GalleryInner.js +0 -23
  545. package/mobile/dist/components/Gallery/GalleryInner.js.map +0 -1
  546. package/mobile/dist/components/Gallery/GalleryProps.d.ts +0 -4
  547. package/mobile/dist/components/Gallery/GalleryProps.js +0 -2
  548. package/mobile/dist/components/Gallery/GalleryProps.js.map +0 -1
  549. package/mobile/dist/components/Gallery/constants.d.ts +0 -4
  550. package/mobile/dist/components/Gallery/constants.js +0 -15
  551. package/mobile/dist/components/Gallery/constants.js.map +0 -1
  552. package/mobile/dist/components/MiniGallery/MiniGallery.d.ts +0 -5
  553. package/mobile/dist/components/MiniGallery/MiniGallery.js +0 -7
  554. package/mobile/dist/components/MiniGallery/MiniGallery.js.map +0 -1
  555. package/mobile/dist/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
  556. package/mobile/dist/components/MiniGallery/MiniGalleryContent.js +0 -2
  557. package/mobile/dist/components/MiniGallery/MiniGalleryContent.js.map +0 -1
  558. package/mobile/dist/model/CarouselCardVersion.d.ts +0 -1
  559. package/mobile/dist/model/CarouselCardVersion.js +0 -2
  560. package/mobile/dist/model/CarouselCardVersion.js.map +0 -1
  561. package/mobile/dist/model/GalleryVersion.d.ts +0 -1
  562. package/mobile/dist/model/GalleryVersion.js +0 -2
  563. package/mobile/dist/model/GalleryVersion.js.map +0 -1
  564. package/mobile/lib/components/Catalog/Catalog.d.ts +0 -5
  565. package/mobile/lib/components/Catalog/Catalog.js +0 -22
  566. package/mobile/lib/components/Catalog/Catalog.js.map +0 -1
  567. package/mobile/lib/components/Catalog/CatalogCard.d.ts +0 -7
  568. package/mobile/lib/components/Catalog/CatalogCard.js +0 -12
  569. package/mobile/lib/components/Catalog/CatalogCard.js.map +0 -1
  570. package/mobile/lib/components/Catalog/CatalogContent.d.ts +0 -27
  571. package/mobile/lib/components/Catalog/CatalogContent.js +0 -2
  572. package/mobile/lib/components/Catalog/CatalogContent.js.map +0 -1
  573. package/mobile/lib/components/Gallery/Gallery.d.ts +0 -2
  574. package/mobile/lib/components/Gallery/Gallery.js +0 -33
  575. package/mobile/lib/components/Gallery/Gallery.js.map +0 -1
  576. package/mobile/lib/components/Gallery/GalleryCardInner.d.ts +0 -2
  577. package/mobile/lib/components/Gallery/GalleryCardInner.js +0 -18
  578. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +0 -1
  579. package/mobile/lib/components/Gallery/GalleryContainer.d.ts +0 -11
  580. package/mobile/lib/components/Gallery/GalleryContainer.js +0 -13
  581. package/mobile/lib/components/Gallery/GalleryContainer.js.map +0 -1
  582. package/mobile/lib/components/Gallery/GalleryContent.d.ts +0 -71
  583. package/mobile/lib/components/Gallery/GalleryContent.js +0 -2
  584. package/mobile/lib/components/Gallery/GalleryContent.js.map +0 -1
  585. package/mobile/lib/components/Gallery/GalleryInner.d.ts +0 -7
  586. package/mobile/lib/components/Gallery/GalleryInner.js +0 -21
  587. package/mobile/lib/components/Gallery/GalleryInner.js.map +0 -1
  588. package/mobile/lib/components/Gallery/GalleryProps.d.ts +0 -4
  589. package/mobile/lib/components/Gallery/GalleryProps.js +0 -2
  590. package/mobile/lib/components/Gallery/GalleryProps.js.map +0 -1
  591. package/mobile/lib/components/Gallery/constants.d.ts +0 -4
  592. package/mobile/lib/components/Gallery/constants.js +0 -13
  593. package/mobile/lib/components/Gallery/constants.js.map +0 -1
  594. package/mobile/lib/components/MiniGallery/MiniGallery.d.ts +0 -5
  595. package/mobile/lib/components/MiniGallery/MiniGallery.js +0 -5
  596. package/mobile/lib/components/MiniGallery/MiniGallery.js.map +0 -1
  597. package/mobile/lib/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
  598. package/mobile/lib/components/MiniGallery/MiniGalleryContent.js +0 -2
  599. package/mobile/lib/components/MiniGallery/MiniGalleryContent.js.map +0 -1
  600. package/mobile/lib/model/CarouselCardVersion.d.ts +0 -1
  601. package/mobile/lib/model/CarouselCardVersion.js +0 -2
  602. package/mobile/lib/model/CarouselCardVersion.js.map +0 -1
  603. package/mobile/lib/model/GalleryVersion.d.ts +0 -1
  604. package/mobile/lib/model/GalleryVersion.js +0 -2
  605. package/mobile/lib/model/GalleryVersion.js.map +0 -1
  606. package/mobile/src/components/Catalog/Catalog.example.json +0 -59
  607. package/mobile/src/components/Catalog/Catalog.tsx +0 -49
  608. package/mobile/src/components/Catalog/Catalog.ui.json +0 -11
  609. package/mobile/src/components/Catalog/CatalogCard.tsx +0 -47
  610. package/mobile/src/components/Catalog/CatalogContent.ts +0 -29
  611. package/mobile/src/components/Gallery/Gallery.example.json +0 -66
  612. package/mobile/src/components/Gallery/Gallery.tsx +0 -113
  613. package/mobile/src/components/Gallery/Gallery.ui.json +0 -22
  614. package/mobile/src/components/Gallery/GalleryCardInner.tsx +0 -78
  615. package/mobile/src/components/Gallery/GalleryContainer.tsx +0 -61
  616. package/mobile/src/components/Gallery/GalleryContent.ts +0 -74
  617. package/mobile/src/components/Gallery/GalleryInner.tsx +0 -50
  618. package/mobile/src/components/Gallery/GalleryProps.ts +0 -4
  619. package/mobile/src/components/Gallery/constants.ts +0 -16
  620. package/mobile/src/components/MiniGallery/MiniGallery.example.json +0 -56
  621. package/mobile/src/components/MiniGallery/MiniGallery.tsx +0 -10
  622. package/mobile/src/components/MiniGallery/MiniGallery.ui.json +0 -19
  623. package/mobile/src/components/MiniGallery/MiniGalleryContent.ts +0 -13
  624. package/mobile/src/model/CarouselCardVersion.ts +0 -1
  625. package/mobile/src/model/GalleryVersion.ts +0 -1
  626. package/src/components/Catalog/Catalog.example.json +0 -59
  627. package/src/components/Catalog/Catalog.fixture.tsx +0 -50
  628. package/src/components/Catalog/Catalog.tsx +0 -49
  629. package/src/components/Catalog/Catalog.ui.json +0 -11
  630. package/src/components/Catalog/CatalogCard.tsx +0 -47
  631. package/src/components/Catalog/CatalogContent.ts +0 -29
  632. package/src/components/Gallery/Gallery.example.json +0 -66
  633. package/src/components/Gallery/Gallery.fixture.mobile.tsx +0 -83
  634. package/src/components/Gallery/Gallery.fixture.tsx +0 -225
  635. package/src/components/Gallery/Gallery.mobile.tsx +0 -113
  636. package/src/components/Gallery/Gallery.tsx +0 -7
  637. package/src/components/Gallery/Gallery.ui.json +0 -22
  638. package/src/components/Gallery/GalleryCardInner.tsx +0 -78
  639. package/src/components/Gallery/GalleryContainer.tsx +0 -61
  640. package/src/components/Gallery/GalleryContent.ts +0 -74
  641. package/src/components/Gallery/GalleryInner.tsx +0 -50
  642. package/src/components/Gallery/GalleryProps.ts +0 -4
  643. package/src/components/Gallery/constants.ts +0 -16
  644. package/src/components/MiniGallery/MiniGallery.example.json +0 -56
  645. package/src/components/MiniGallery/MiniGallery.fixture.tsx +0 -154
  646. package/src/components/MiniGallery/MiniGallery.tsx +0 -10
  647. package/src/components/MiniGallery/MiniGallery.ui.json +0 -19
  648. package/src/components/MiniGallery/MiniGalleryContent.ts +0 -13
  649. package/src/model/CarouselCardVersion.ts +0 -1
  650. package/src/model/GalleryVersion.ts +0 -1
@@ -1,8 +1,13 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
+ import { useRouter } from '../../hooks/useRouter.js';
3
4
  import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
5
+ import { adjustHref } from '../../utils/adjustHref.js';
4
6
  import { style } from '../../utils/style.js';
5
7
  import { Headline } from '../Headline/Headline.js';
6
8
  import { getPaddings } from './getPaddings.js';
7
- export const Video = JSX(({ className, title, src, previewImg, ...rest }) => (_jsxs(BlockWrapper, { className: style(getPaddings(className), className), ...rest, children: [_jsx(Headline, { title: title, headlineVersion: "M" }), src ? (_jsx("video", { className: "m-auto w-full object-fill", preload: "metadata", poster: previewImg?.src, style: { maxHeight: 524 }, controls: true, children: _jsx("source", { src: src }) })) : null] })));
9
+ export const Video = JSX(({ className, title, src, previewImg, ...rest }) => {
10
+ const router = useRouter();
11
+ return (_jsxs(BlockWrapper, { className: style(getPaddings(className), className), ...rest, children: [_jsx(Headline, { title: title, headlineVersion: "M" }), src ? (_jsx("video", { className: "m-auto w-full object-fill", preload: "metadata", poster: adjustHref(router)(previewImg?.src), style: { maxHeight: 524 }, controls: true, children: _jsx("source", { src: adjustHref(router)(src) }) })) : null] }));
12
+ });
8
13
  //# sourceMappingURL=Video.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Video.js","sourceRoot":"","sources":["../../../src/components/Video/Video.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAK5C,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,CAAa,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACvF,MAAC,YAAY,IAAC,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,KAAM,IAAI,aACzE,KAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,EAAE,eAAe,EAAC,GAAG,GAAG,EAC7C,GAAG,CAAC,CAAC,CAAC,CACL,gBACE,SAAS,EAAC,2BAA2B,EACrC,OAAO,EAAC,UAAU,EAClB,MAAM,EAAE,UAAU,EAAE,GAAG,EACvB,KAAK,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,EACzB,QAAQ,kBAER,iBAAQ,GAAG,EAAE,GAAG,GAAI,GACd,CACT,CAAC,CAAC,CAAC,IAAI,IACK,CAChB,CAAC,CAAC"}
1
+ {"version":3,"file":"Video.js","sourceRoot":"","sources":["../../../src/components/Video/Video.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAK5C,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,CAAa,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACtF,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,CACL,MAAC,YAAY,IAAC,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,KAAM,IAAI,aACzE,KAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,EAAE,eAAe,EAAC,GAAG,GAAG,EAC7C,GAAG,CAAC,CAAC,CAAC,CACL,gBACE,SAAS,EAAC,2BAA2B,EACrC,OAAO,EAAC,UAAU,EAClB,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,GAAG,CAAC,EAC3C,KAAK,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,EACzB,QAAQ,kBAER,iBAAQ,GAAG,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAI,GAClC,CACT,CAAC,CAAC,CAAC,IAAI,IACK,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -2,7 +2,7 @@ import { adjustHref } from '../utils/adjustHref.js';
2
2
  import { isLocalURL } from '../utils/url.js';
3
3
  import { handlerDecorator } from './handlerDecorator.js';
4
4
  import { useRouter } from './useRouter.js';
5
- export function useLink(isRemote) {
5
+ export function useLink(isRemote = false) {
6
6
  const router = useRouter();
7
7
  return (props) => ({
8
8
  ...props,
@@ -1 +1 @@
1
- {"version":3,"file":"useLink.js","sourceRoot":"","sources":["../../src/hoo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AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAUxC,MAAM,UAAU,OAAO,CAAC,QAAQ,GAAG,KAAK;IACtC,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,CAA2C,KAAQ,EAAiB,EAAE,CAAC,CAAC;QAC7E,GAAG,KAAK;QACR,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC;QAC5D,YAAY,EAAE,KAAK,CAAC,IAAI;QACxB,OAAO,EAAE,gBAAgB,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC;KACpD,CAAC,CAAC;IAEH,SAAS,UAAU,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAkC;QAC3E,OAAO,CAAC,EAAqB,EAAE,EAAE;YAC/B,OAAO,IAAI,OAAO,CAAC,EAAE,CAAC,CAAC;YAEvB,IAAI,CAAC,IAAI,IAAI,QAAQ,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE;gBAClD,kBAAkB;gBAClB,OAAO;aACR;YAED,iBAAiB;YACjB,EAAE,EAAE,cAAc,EAAE,CAAC;YACrB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -7,3 +7,13 @@
7
7
  * ]
8
8
  */
9
9
  export declare type AlignType = 'left' | 'center' | 'right';
10
+ /**
11
+ * @title Выравнивание
12
+ * @enumNames [
13
+ * "Во всю ширину",
14
+ * "По левому краю",
15
+ * "По центру",
16
+ * "По правому краю"
17
+ * ]
18
+ */
19
+ export declare type AlignTypeWithStretch = 'stretch' | 'left' | 'center' | 'right';
@@ -1,3 +1,4 @@
1
1
  import type { Router } from '../../hooks/useRouter';
2
- import { TopMenuItem } from './SitemapProps';
3
- export declare const isTopItemActive: (router: Router) => (topItem: TopMenuItem) => boolean;
2
+ export declare const isTopItemActive: (router: Router) => ({ href }: {
3
+ href?: string | undefined;
4
+ }) => boolean;
@@ -1,6 +1,4 @@
1
1
  import { projectSettings } from '../../ProjectSettings.js';
2
2
  import { isHrefActive } from './isHrefActive.js';
3
- export const isTopItemActive = (router) => (topItem) => projectSettings.BASE_PATH
4
- ? isHrefActive({ pathname: projectSettings.BASE_PATH })(topItem)
5
- : topItem.items?.some(isHrefActive(router)) || isHrefActive(router)(topItem);
3
+ export const isTopItemActive = (router) => isHrefActive(projectSettings.BASE_PATH ? { pathname: projectSettings.BASE_PATH } : router);
6
4
  //# sourceMappingURL=isTopItemActive.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"isTopItemActive.js","sourceRoot":"","sources":["../../../src/services/sitemap/isTopItemActive.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,MAAM,CAAC,MAAM,eAAe,GAC1B,CAAC,MAAc,EAAE,EAAE,CACnB,CAAC,OAAoB,EAAW,EAAE,CAChC,eAAe,CAAC,SAAS;IACvB,CAAC,CAAC,YAAY,CAAC,EAAE,QAAQ,EAAE,eAAe,CAAC,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC;IAChE,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,IAAI,YAAY,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC"}
1
+ {"version":3,"file":"isTopItemActive.js","sourceRoot":"","sources":["../../../src/services/sitemap/isTopItemActive.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAAc,EAAE,EAAE,CAChD,YAAY,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,eAAe,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -11,9 +11,9 @@ export const ImgAsPicture = JSX(({ className = '', image, imageClassName = '', i
11
11
  ? image.sources
12
12
  .filter((_) => _?.src)
13
13
  .sort(sourcesComparator)
14
- .map(({ src, format, media }, index) => (_jsx("source", { srcSet: adjustSrcset(router, pathPrefix)(src), type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '', ...image.size }, `${index}_${src}`)))
14
+ .map(({ src, format, media }, index) => (_jsx("source", { srcSet: adjustSrc(router, pathPrefix)(src), type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '', ...image.size }, `${index}_${src}`)))
15
15
  : null, image?.src
16
- ? renderImg({ ...image, src: adjustSrcset(router, pathPrefix)(image.src) }, imageClassName, isMobile)
16
+ ? renderImg({ ...image, src: adjustSrc(router, pathPrefix)(image.src) }, imageClassName, isMobile)
17
17
  : null] }));
18
18
  });
19
19
  const renderImg = (image, imageClassName = '', isMobile = false) => {
@@ -26,12 +26,6 @@ const renderImg = (image, imageClassName = '', isMobile = false) => {
26
26
  const imgStyle = isMobile ? 'm-auto' : 'm-0';
27
27
  return (_jsx("img", { src: image.src, className: `${imgStyle} ${imageClassName}`, alt: alt, title: title, style: style, ...image.size }));
28
28
  };
29
- const adjustSrcset = (router, pathPrefix) => (srcset) => srcset
30
- ?.split(/\s*,\s*/)
31
- .map((src) => src.trim())
32
- .filter(Boolean)
33
- .map((src) => (isURL(src) ? src : joinPath(pathPrefix, src)))
34
- .map(adjustHref(router))
35
- .join(', ');
29
+ const adjustSrc = (router, pathPrefix) => (src) => src && !isURL(src) ? adjustHref(router)(joinPath(pathPrefix, src)) : src;
36
30
  const formatToMimeType = (format) => format ? `image/${String(format)}` : undefined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E,EAAE,CACvD,MAAM,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC"}
@@ -2,5 +2,7 @@
2
2
  "PROD_BRANCH": "master",
3
3
  "FORCED_DRAFT_FLOW": false,
4
4
  "YANDEX_MAP_API_KEY": "f4b40c1e-1891-45f2-b307-90c481af210b",
5
- "SITEMAP": "sayt-rshb"
5
+ "SITEMAP": "sayt-rshb",
6
+ "CHAT_BOT": "personal",
7
+ "BASE_PATH": "/natural/"
6
8
  }
@@ -10,4 +10,5 @@ export interface BlockRendererOptions {
10
10
  parent?: Slot;
11
11
  ancestors?: BlockAncestors;
12
12
  className?: string;
13
+ extraProps?: Record<string, any>;
13
14
  }
@@ -15,6 +15,7 @@ export function renderBlock(block: BlockDef, options: BlockRendererOptions) {
15
15
  blocksRegistry = {},
16
16
  ancestors = DEFAULT_ANCESTORS,
17
17
  className = '',
18
+ extraProps = {},
18
19
  } = options;
19
20
  const { type } = block;
20
21
 
@@ -44,6 +45,7 @@ export function renderBlock(block: BlockDef, options: BlockRendererOptions) {
44
45
  block={block}
45
46
  options={options}
46
47
  {...content}
48
+ {...extraProps}
47
49
  />
48
50
  ) : null;
49
51
  },
@@ -7,7 +7,7 @@ import { renderBlock } from './renderBlock';
7
7
 
8
8
  export interface BlocksListRendererProps extends BlockRendererOptions {
9
9
  slotName?: SlotName;
10
- renderChild?: (block: BlockDef, options: BlockRendererOptions) => VNode;
10
+ renderProps?: (block: BlockDef, options: BlockRendererOptions) => VNode;
11
11
  }
12
12
 
13
13
  const EMPTY_ANCESTORS: BlockAncestors = [];
@@ -18,12 +18,12 @@ export const renderBlocksList = (
18
18
  key,
19
19
  ancestors = EMPTY_ANCESTORS,
20
20
  slotName = DEFAULT_SLOT_NAME,
21
- renderChild = renderBlock,
21
+ renderProps = renderBlock,
22
22
  ...options
23
23
  }: BlocksListRendererProps,
24
24
  ): VNode[] =>
25
25
  (blocks || []).map((_: BlockDef, j: number) =>
26
- renderChild(_, {
26
+ renderProps(_, {
27
27
  ...options,
28
28
  key: `${key ? key : _.type}-${j}`,
29
29
  ancestors: options.parent
@@ -6,20 +6,20 @@ import { renderBlocksList } from './renderBlockList';
6
6
 
7
7
  interface ChildrenRendererProps extends UniBlockProps {
8
8
  children?: VNode;
9
- renderChild?: (block: BlockDef, options: BlockRendererOptions) => VNode;
9
+ renderProps?: (block: BlockDef, options: BlockRendererOptions) => VNode;
10
10
  }
11
11
 
12
12
  export function renderChildren({
13
13
  children,
14
14
  block,
15
15
  options,
16
- renderChild,
16
+ renderProps,
17
17
  }: ChildrenRendererProps): VNode[] | null {
18
18
  if (children) {
19
19
  return children;
20
20
  }
21
21
 
22
22
  return block && options
23
- ? renderBlocksList(block.blocks, { ...options, parent: block, renderChild })
23
+ ? renderBlocksList(block.blocks, { ...options, parent: block, renderProps })
24
24
  : null;
25
25
  }
@@ -6,6 +6,7 @@ export interface ProjectSettings {
6
6
  ASSIST_PROJECT_ID?: string;
7
7
  SITEMAP?: string;
8
8
  FOOTER?: string;
9
+ CHAT_BOT?: string; // "personal" or "business"
9
10
  CDN?: string; // Should ends with "/"
10
11
  BASE_PATH?: string; // Should ends with "/"
11
12
  YANDEX_MAP_API_KEY?: string;
@@ -42,6 +43,9 @@ export const projectSettings = new (class implements ProjectSettings {
42
43
  get FOOTER() {
43
44
  return this._.FOOTER;
44
45
  }
46
+ get CHAT_BOT() {
47
+ return this._.CHAT_BOT;
48
+ }
45
49
  get CDN() {
46
50
  return appendSlash(this._.CDN);
47
51
  }
@@ -3,7 +3,6 @@ import { Accordion } from './Accordion/Accordion';
3
3
  import { AccordionItem } from './AccordionItem/AccordionItem';
4
4
  import { ComparisonTable } from './ComparisonTable/ComparisonTable';
5
5
  import { Footer } from './Footer/Footer';
6
- import { Gallery } from './Gallery/Gallery';
7
6
  import { Header } from './Header/Header';
8
7
  import { Headline } from './Headline/Headline';
9
8
  import { LinkDocs } from './LinkDocs/LinkDocs';
@@ -20,7 +19,6 @@ export const Blocks: BlocksRegistry = {
20
19
  AccordionItem,
21
20
  ComparisonTable,
22
21
  Footer,
23
- Gallery,
24
22
  Header,
25
23
  Headline,
26
24
  LinkDocs,
@@ -1,7 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { renderChildren } from '../../BlockRenderer/renderChildren';
4
- import { BlockDef } from '../../model/ContentPageDef';
5
4
  import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
6
5
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
7
6
  import { SwipeListContainer } from '../../ui-kit/SwipeListControl/SwipeListContainer';
@@ -25,6 +24,7 @@ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
25
24
  isCyclic = false,
26
25
  arrowsPadded = true,
27
26
  isPadding = true,
27
+ options,
28
28
  ...rest
29
29
  }) => {
30
30
  const { blocks: childBlocks } = rest.block || {};
@@ -55,9 +55,15 @@ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
55
55
  {isBankHistoryCarousel
56
56
  ? renderChildren({
57
57
  ...rest,
58
- block: { ...rest.block, blocks: buildBlocks(childBlocks, activeIndex) },
58
+ options: {
59
+ ...options,
60
+ extraProps: {
61
+ blocksLength: childBlocks?.length,
62
+ activeIndex: activeIndex,
63
+ },
64
+ },
59
65
  })
60
- : renderChildren(rest)}
66
+ : renderChildren({ ...rest, options })}
61
67
  </SwipeListContainer>
62
68
  <CarouselScrollButtons
63
69
  scroll={scroll}
@@ -85,22 +91,7 @@ Carousel.childrenTypes = [
85
91
  'CarouselRecommendationCard',
86
92
  'CarouselTariffsCard',
87
93
  'CarouselInvestmentCard',
94
+ 'CarouselEventCard',
88
95
  ];
89
96
 
90
- const buildBlocks = (blocks?: BlockDef[], activeIndex?: number) => {
91
- return blocks && blocks[0]?.type === 'CarouselBankHistoryCard'
92
- ? blocks.map((_, i) => {
93
- return {
94
- ..._,
95
- content: {
96
- ..._.content,
97
- orderNumber: i,
98
- isActive: activeIndex === i,
99
- blocksLength: blocks.length,
100
- },
101
- };
102
- })
103
- : blocks;
104
- };
105
-
106
97
  const getPaddingStyle = (isPadding: boolean): string => (isPadding ? 'p-12' : '');
@@ -6,13 +6,15 @@ import { Headline } from '../Headline/Headline';
6
6
  import type { CarouselBankHistoryCardContent } from './CarouselBankHistoryCardContent';
7
7
 
8
8
  interface CarouselBankHistoryCardProps extends CarouselBankHistoryCardContent, UniBlockProps {
9
- isActive?: boolean;
10
- orderNumber?: number;
11
9
  blocksLength?: number;
10
+ activeIndex?: number;
12
11
  }
13
12
 
14
13
  export const CarouselBankHistoryCard = JSX<CarouselBankHistoryCardProps>(
15
- ({ title, description, isActive, orderNumber = 0, blocksLength = 0 }) => {
14
+ ({ title, description, blocksLength = 0, activeIndex, options, ...rest }) => {
15
+ const orderNumber = Number(options?.key?.split('-').slice(-1)[0]) || 0;
16
+ const isActive = orderNumber === activeIndex;
17
+
16
18
  return (
17
19
  <BlockWrapper className="flex h-[485px]">
18
20
  {isActive ? (
@@ -1,17 +1,17 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { CarouselCardVersion } from '../../model/CarouselCardVersion';
3
- import type { UniBlockProps } from '../../model/JSXBlock';
4
2
  import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
5
3
  import { Headline } from '../Headline/Headline';
4
+ import type { UniBlockProps } from '../../model/JSXBlock';
6
5
  import type { CarouselCardContent } from './CarouselCardContent';
6
+ import type { SizeVersion } from '../../model/SizeVersion';
7
7
 
8
8
  export interface CarouselCardProps extends CarouselCardContent, UniBlockProps {}
9
9
 
10
10
  const BLOCK_CLASSES = 'absolute border border-solid border-gray w-full h-full';
11
11
 
12
- const CARD_WIDTH_MAP: Record<CarouselCardVersion, string> = {
12
+ const CARD_WIDTH_MAP: Record<SizeVersion, string> = {
13
13
  normal: 'min-w-[970px]',
14
- mini: 'min-w-[355px]',
14
+ small: 'min-w-[355px]',
15
15
  };
16
16
 
17
17
  export const CarouselCard = JSX<CarouselCardProps>(
@@ -1,4 +1,4 @@
1
- import type { CarouselCardVersion } from '../../model/CarouselCardVersion';
1
+ import type { SizeVersion } from '../../model/SizeVersion';
2
2
  import type { HeadlineCommonProps } from '../../model/HeadlineType';
3
3
  import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
4
4
 
@@ -14,5 +14,5 @@ export interface CarouselCardContent extends HeadlineCommonProps {
14
14
  * }
15
15
  */
16
16
  button?: ButtonWithIconProps;
17
- carouselVersion?: CarouselCardVersion;
17
+ carouselVersion?: SizeVersion;
18
18
  }
@@ -1,11 +1,11 @@
1
- import type { CarouselCardVersion } from '../../model/CarouselCardVersion';
1
+ import type { SizeVersion } from '../../model/SizeVersion';
2
2
 
3
- export const cardStyleMap: Record<CarouselCardVersion, string> = {
3
+ export const cardStyleMap: Record<SizeVersion, string> = {
4
4
  normal: 'min-w-[100%] justify-center items-center m-7 col-span-12',
5
- mini: 'min-w-auto justify-center items-center m-9 col-span-4',
5
+ small: 'min-w-auto justify-center items-center m-9 col-span-4',
6
6
  };
7
7
 
8
- export const cardWidthMap: Record<CarouselCardVersion, string> = {
8
+ export const cardWidthMap: Record<SizeVersion, string> = {
9
9
  normal: 'w-[1007px]',
10
- mini: 'w-[350px]',
10
+ small: 'w-[350px]',
11
11
  };
@@ -0,0 +1,14 @@
1
+ {
2
+ "icon": {
3
+ "icon": "SignDocsIcon",
4
+ "format": "webp",
5
+ "size": {
6
+ "width": 365,
7
+ "height": 195
8
+ }
9
+ },
10
+ "title": "Заголовок",
11
+ "description": "Описание",
12
+ "target": null,
13
+ "href": null
14
+ }
@@ -0,0 +1,32 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
3
+ import { Heading } from '../../ui-kit/Heading/Heading';
4
+ import { Img } from '../../ui-kit/Img/Img';
5
+ import { Text } from '../../ui-kit/Text/Text';
6
+ import { getIconWithVersion } from '../../utils/getIconWithVersion';
7
+ import { style } from '../../utils/style';
8
+ import type { UniBlockProps } from '../../model/JSXBlock';
9
+ import type { CarouselEventCardContent } from './CarouselEventCardContent';
10
+
11
+ export interface CarouselEventCardProps extends CarouselEventCardContent, UniBlockProps {}
12
+
13
+ export const CarouselEventCard = JSX<CarouselEventCardProps>(
14
+ ({ className = '', icon, title, description, href, target, ...rest }) => (
15
+ <BlockWrapper className={style('flex flex-col w-[365px]', className)} {...rest}>
16
+ <a href={href} target={target} role="link">
17
+ {icon?.icon ? <Img image={getIconWithVersion(icon)} asSVG /> : null}
18
+ {icon?.src ? <Img image={icon} /> : null}
19
+ {title ? (
20
+ <Heading headingType="h6" as="h4" className="text-left mb-2" title={title} />
21
+ ) : null}
22
+ {description ? (
23
+ <div className="mb-4">
24
+ <Text font="font-light" size="text-s" color="text-secondary-text">
25
+ {description}
26
+ </Text>
27
+ </div>
28
+ ) : null}
29
+ </a>
30
+ </BlockWrapper>
31
+ ),
32
+ );
@@ -0,0 +1,12 @@
1
+ import type { DescriptionProps, TitleProps } from '../../model/HeadlineType';
2
+ import type { LinkCommonProps } from '../../model/LinkProps';
3
+ import type { Picture } from '../../model/Picture';
4
+
5
+ /**
6
+ * @title Карточка мероприятия в карусели
7
+ */
8
+ export type CarouselEventCardContent = TitleProps &
9
+ DescriptionProps &
10
+ LinkCommonProps & {
11
+ icon?: Picture;
12
+ };
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "content": {
3
- "image": {
4
- "format": "webp",
5
- "size": {
6
- "width": 180,
7
- "height": 180
8
- }
9
- },
10
- "title": "Заголовок 1",
11
- "description": "Описание 1",
12
- "socialMedia": [
13
- {
14
- "href": "https://t.me",
15
- "target": "_blank",
16
- "version": "gray",
17
- "rounded": false
18
- }
19
- ],
20
- "version": "primary"
3
+ "image": {
4
+ "format": "webp",
5
+ "size": {
6
+ "width": 180,
7
+ "height": 180
8
+ }
9
+ },
10
+ "title": "Заголовок 1",
11
+ "description": "Описание 1",
12
+ "socialMedia": [
13
+ {
14
+ "href": "https://t.me",
15
+ "target": "_blank",
16
+ "version": "gray",
17
+ "rounded": false
18
+ }
19
+ ],
20
+ "version": "primary"
21
21
  }
22
22
  }
@@ -1,20 +1,18 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { UniBlockProps } from '../../model/JSXBlock';
3
3
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
- import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
5
4
  import { Heading } from '../../ui-kit/Heading/Heading';
6
5
  import { Img } from '../../ui-kit/Img/Img';
7
6
  import { List } from '../../ui-kit/List/List';
7
+ import { style } from '../../utils/style';
8
8
  import { BaseTile } from '../BaseTile/BaseTile';
9
9
  import { SocialMedia } from '../Footer/SocialMedia';
10
10
  import type { CarouselRecommendationCardContent } from './CarouselRecommendationCardContent';
11
- import { style } from '../../utils/style';
12
11
 
13
12
  export interface RecommendationCardProps extends CarouselRecommendationCardContent, UniBlockProps {}
14
13
 
15
14
  export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
16
15
  ({
17
- button,
18
16
  className = '',
19
17
  description,
20
18
  image,
@@ -57,7 +55,6 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
57
55
  />
58
56
  ) : null}
59
57
  {socialMedia.length ? <SocialMedia className="pt-10 pb-0" media={socialMedia} /> : null}
60
- {renderButtonsSection([button], { className: 'pt-2 mt-16' })}
61
58
  </div>
62
59
  </BaseTile>
63
60
  </BlockWrapper>
@@ -2,14 +2,11 @@
2
2
  "content": {
3
3
  "image": {
4
4
  "ui:field": "picture"
5
- },
5
+ },
6
6
  "socialMedia": {
7
7
  "items": {
8
8
  "icon": {
9
9
  "ui:field": "icon"
10
- },
11
- "iconRight": {
12
- "ui:field": "icon"
13
10
  }
14
11
  }
15
12
  }
@@ -1,9 +1,16 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
+ import type { ButtonVersion } from '../../model/ButtonVersion';
2
3
  import type { HeadlineCommonProps } from '../../model/HeadlineType';
4
+ import type { LinkCommonProps } from '../../model/LinkProps';
3
5
  import type { Picture } from '../../model/Picture';
4
- import type { ButtonWithIconProps, ButtonProps } from '../../ui-kit/Button/ButtonProps';
5
6
  import type { ListContent } from '../../ui-kit/List/ListContent';
6
7
 
8
+ export type RecommendationSocialMedia = LinkCommonProps & {
9
+ version: ButtonVersion;
10
+ icon?: Picture;
11
+ rounded?: boolean;
12
+ };
13
+
7
14
  /**
8
15
  * @title Карточка рекомендаций
9
16
  */
@@ -11,7 +18,7 @@ export interface CarouselRecommendationCardContent extends HeadlineCommonProps,
11
18
  /**
12
19
  * @title Соц сети
13
20
  */
14
- socialMedia?: ButtonWithIconProps[];
21
+ socialMedia?: RecommendationSocialMedia[];
15
22
  /**
16
23
  * @default {
17
24
  * "format": "webp",
@@ -27,12 +34,5 @@ export interface CarouselRecommendationCardContent extends HeadlineCommonProps,
27
34
  * }
28
35
  */
29
36
  image?: Picture;
30
- /**
31
- * @default {
32
- * "text": "",
33
- * "version": "secondary"
34
- * }
35
- */
36
- button?: ButtonProps;
37
37
  version?: BlockVersion;
38
38
  }