@redneckz/wildless-cms-uni-blocks 0.8.16 → 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 (322) hide show
  1. package/bin/migration-scripts/0.8.8.js +9 -6
  2. package/bundle/ProjectSettings.d.ts +2 -0
  3. package/bundle/blocks.schema.json +1 -1
  4. package/bundle/bundle.umd.js +44 -33
  5. package/bundle/bundle.umd.min.js +1 -1
  6. package/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -2
  7. package/bundle/components/CarouselCard/constants.d.ts +3 -3
  8. package/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
  9. package/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
  10. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
  11. package/bundle/components/Header/HeaderChatBotButton.d.ts +1 -3
  12. package/bundle/components/Header/HeaderContent.d.ts +0 -6
  13. package/bundle/components/Header/HeaderSecondaryMenu.d.ts +0 -2
  14. package/bundle/components/Header/useChatBot.d.ts +1 -2
  15. package/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  16. package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
  17. package/bundle/model/AlignType.d.ts +10 -0
  18. package/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
  19. package/dist/ProjectSettings.d.ts +2 -0
  20. package/dist/ProjectSettings.js +3 -0
  21. package/dist/ProjectSettings.js.map +1 -1
  22. package/dist/components/Blocks.js +2 -0
  23. package/dist/components/Blocks.js.map +1 -1
  24. package/dist/components/Carousel/Carousel.js +1 -0
  25. package/dist/components/Carousel/Carousel.js.map +1 -1
  26. package/dist/components/CarouselCard/CarouselCard.js +1 -1
  27. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  28. package/dist/components/CarouselCard/CarouselCardContent.d.ts +2 -2
  29. package/dist/components/CarouselCard/constants.d.ts +3 -3
  30. package/dist/components/CarouselCard/constants.js +2 -2
  31. package/dist/components/CarouselCard/constants.js.map +1 -1
  32. package/dist/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
  33. package/dist/components/CarouselEventCard/CarouselEventCard.js +12 -0
  34. package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
  35. package/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
  36. package/{mobile/dist/model/CarouselCardVersion.js → dist/components/CarouselEventCard/CarouselEventCardContent.js} +1 -1
  37. package/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
  38. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
  39. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  40. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
  41. package/dist/components/Footer/MediaButton.js +13 -10
  42. package/dist/components/Footer/MediaButton.js.map +1 -1
  43. package/dist/components/Header/Header.js +2 -2
  44. package/dist/components/Header/Header.js.map +1 -1
  45. package/dist/components/Header/HeaderChatBotButton.d.ts +1 -3
  46. package/dist/components/Header/HeaderChatBotButton.js.map +1 -1
  47. package/dist/components/Header/HeaderContent.d.ts +0 -6
  48. package/dist/components/Header/HeaderSecondaryMenu.d.ts +0 -2
  49. package/dist/components/Header/HeaderSecondaryMenu.js +3 -2
  50. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  51. package/dist/components/Header/useChatBot.d.ts +1 -2
  52. package/dist/components/Header/useChatBot.js.map +1 -1
  53. package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  54. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  55. package/dist/components/ProductBlock/renderBackwardButton.js +3 -3
  56. package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  57. package/dist/components/ProductGallery/ProductGallery.js +1 -1
  58. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  59. package/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  60. package/dist/components/VerticalLayout/VerticalLayout.js +2 -1
  61. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  62. package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
  63. package/dist/components/Video/Video.js +6 -1
  64. package/dist/components/Video/Video.js.map +1 -1
  65. package/dist/hooks/useLink.js +1 -1
  66. package/dist/hooks/useLink.js.map +1 -1
  67. package/dist/model/AlignType.d.ts +10 -0
  68. package/dist/services/sitemap/isTopItemActive.d.ts +3 -2
  69. package/dist/services/sitemap/isTopItemActive.js +1 -3
  70. package/dist/services/sitemap/isTopItemActive.js.map +1 -1
  71. package/dist/wlc.json +3 -1
  72. package/lib/ProjectSettings.d.ts +2 -0
  73. package/lib/ProjectSettings.js +3 -0
  74. package/lib/ProjectSettings.js.map +1 -1
  75. package/lib/common.css +1 -1
  76. package/lib/components/Blocks.js +2 -0
  77. package/lib/components/Blocks.js.map +1 -1
  78. package/lib/components/Carousel/Carousel.fixture.d.ts +1 -0
  79. package/lib/components/Carousel/Carousel.js +1 -0
  80. package/lib/components/Carousel/Carousel.js.map +1 -1
  81. package/lib/components/CarouselCard/CarouselCard.js +1 -1
  82. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  83. package/lib/components/CarouselCard/CarouselCardContent.d.ts +2 -2
  84. package/lib/components/CarouselCard/constants.d.ts +3 -3
  85. package/lib/components/CarouselCard/constants.js +2 -2
  86. package/lib/components/CarouselCard/constants.js.map +1 -1
  87. package/lib/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
  88. package/lib/components/CarouselEventCard/CarouselEventCard.fixture.d.ts +7 -0
  89. package/lib/components/CarouselEventCard/CarouselEventCard.js +10 -0
  90. package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
  91. package/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
  92. package/lib/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
  93. package/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
  94. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
  95. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  96. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
  97. package/lib/components/Footer/MediaButton.js +13 -10
  98. package/lib/components/Footer/MediaButton.js.map +1 -1
  99. package/lib/components/Header/Header.js +2 -2
  100. package/lib/components/Header/Header.js.map +1 -1
  101. package/lib/components/Header/HeaderChatBotButton.d.ts +1 -3
  102. package/lib/components/Header/HeaderChatBotButton.js.map +1 -1
  103. package/lib/components/Header/HeaderContent.d.ts +0 -6
  104. package/lib/components/Header/HeaderSecondaryMenu.d.ts +0 -2
  105. package/lib/components/Header/HeaderSecondaryMenu.js +3 -2
  106. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  107. package/lib/components/Header/useChatBot.d.ts +1 -2
  108. package/lib/components/Header/useChatBot.js.map +1 -1
  109. package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  110. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  111. package/lib/components/ProductBlock/renderBackwardButton.js +3 -3
  112. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  113. package/lib/components/ProductGallery/ProductGallery.js +1 -1
  114. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  115. package/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  116. package/lib/components/VerticalLayout/VerticalLayout.js +2 -1
  117. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  118. package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
  119. package/lib/components/Video/Video.js +6 -1
  120. package/lib/components/Video/Video.js.map +1 -1
  121. package/lib/hooks/useLink.js +1 -1
  122. package/lib/hooks/useLink.js.map +1 -1
  123. package/lib/model/AlignType.d.ts +10 -0
  124. package/lib/services/sitemap/isTopItemActive.d.ts +3 -2
  125. package/lib/services/sitemap/isTopItemActive.js +1 -3
  126. package/lib/services/sitemap/isTopItemActive.js.map +1 -1
  127. package/lib/wlc.json +3 -1
  128. package/mobile/bundle/ProjectSettings.d.ts +2 -0
  129. package/mobile/bundle/bundle.umd.js +18 -14
  130. package/mobile/bundle/bundle.umd.min.js +1 -1
  131. package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -2
  132. package/mobile/bundle/components/CarouselCard/constants.d.ts +3 -3
  133. package/mobile/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
  134. package/mobile/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
  135. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
  136. package/mobile/bundle/components/Header/HeaderChatBotButton.d.ts +1 -3
  137. package/mobile/bundle/components/Header/HeaderContent.d.ts +0 -6
  138. package/mobile/bundle/components/Header/HeaderSecondaryMenu.d.ts +0 -2
  139. package/mobile/bundle/components/Header/useChatBot.d.ts +1 -2
  140. package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  141. package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
  142. package/mobile/bundle/model/AlignType.d.ts +10 -0
  143. package/mobile/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
  144. package/mobile/dist/ProjectSettings.d.ts +2 -0
  145. package/mobile/dist/ProjectSettings.js +3 -0
  146. package/mobile/dist/ProjectSettings.js.map +1 -1
  147. package/mobile/dist/components/Carousel/Carousel.js +1 -0
  148. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  149. package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
  150. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  151. package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +2 -2
  152. package/mobile/dist/components/CarouselCard/constants.d.ts +3 -3
  153. package/mobile/dist/components/CarouselCard/constants.js +2 -2
  154. package/mobile/dist/components/CarouselCard/constants.js.map +1 -1
  155. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
  156. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +12 -0
  157. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
  158. package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
  159. package/{dist/model/CarouselCardVersion.js → mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js} +1 -1
  160. package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
  161. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
  162. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  163. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
  164. package/mobile/dist/components/Footer/MediaButton.js +13 -10
  165. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  166. package/mobile/dist/components/Header/HeaderChatBotButton.d.ts +1 -3
  167. package/mobile/dist/components/Header/HeaderChatBotButton.js.map +1 -1
  168. package/mobile/dist/components/Header/HeaderContent.d.ts +0 -6
  169. package/mobile/dist/components/Header/HeaderSecondaryMenu.d.ts +0 -2
  170. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +3 -2
  171. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  172. package/mobile/dist/components/Header/useChatBot.d.ts +1 -2
  173. package/mobile/dist/components/Header/useChatBot.js.map +1 -1
  174. package/mobile/dist/components/ProductBlock/renderBackwardButton.js +3 -3
  175. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  176. package/mobile/dist/components/ProductGallery/ProductGallery.js +1 -1
  177. package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  178. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  179. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +2 -1
  180. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  181. package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
  182. package/mobile/dist/components/Video/Video.js +6 -1
  183. package/mobile/dist/components/Video/Video.js.map +1 -1
  184. package/mobile/dist/hooks/useLink.js +1 -1
  185. package/mobile/dist/hooks/useLink.js.map +1 -1
  186. package/mobile/dist/model/AlignType.d.ts +10 -0
  187. package/mobile/dist/services/sitemap/isTopItemActive.d.ts +3 -2
  188. package/mobile/dist/services/sitemap/isTopItemActive.js +1 -3
  189. package/mobile/dist/services/sitemap/isTopItemActive.js.map +1 -1
  190. package/mobile/dist/wlc.json +3 -1
  191. package/mobile/lib/ProjectSettings.d.ts +2 -0
  192. package/mobile/lib/ProjectSettings.js +3 -0
  193. package/mobile/lib/ProjectSettings.js.map +1 -1
  194. package/mobile/lib/components/Carousel/Carousel.js +1 -0
  195. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  196. package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
  197. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  198. package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +2 -2
  199. package/mobile/lib/components/CarouselCard/constants.d.ts +3 -3
  200. package/mobile/lib/components/CarouselCard/constants.js +2 -2
  201. package/mobile/lib/components/CarouselCard/constants.js.map +1 -1
  202. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
  203. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +10 -0
  204. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
  205. package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
  206. package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
  207. package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
  208. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
  209. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  210. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
  211. package/mobile/lib/components/Footer/MediaButton.js +13 -10
  212. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  213. package/mobile/lib/components/Header/HeaderChatBotButton.d.ts +1 -3
  214. package/mobile/lib/components/Header/HeaderChatBotButton.js.map +1 -1
  215. package/mobile/lib/components/Header/HeaderContent.d.ts +0 -6
  216. package/mobile/lib/components/Header/HeaderSecondaryMenu.d.ts +0 -2
  217. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +3 -2
  218. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  219. package/mobile/lib/components/Header/useChatBot.d.ts +1 -2
  220. package/mobile/lib/components/Header/useChatBot.js.map +1 -1
  221. package/mobile/lib/components/ProductBlock/renderBackwardButton.js +3 -3
  222. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  223. package/mobile/lib/components/ProductGallery/ProductGallery.js +1 -1
  224. package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  225. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  226. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +2 -1
  227. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  228. package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
  229. package/mobile/lib/components/Video/Video.js +6 -1
  230. package/mobile/lib/components/Video/Video.js.map +1 -1
  231. package/mobile/lib/hooks/useLink.js +1 -1
  232. package/mobile/lib/hooks/useLink.js.map +1 -1
  233. package/mobile/lib/model/AlignType.d.ts +10 -0
  234. package/mobile/lib/services/sitemap/isTopItemActive.d.ts +3 -2
  235. package/mobile/lib/services/sitemap/isTopItemActive.js +1 -3
  236. package/mobile/lib/services/sitemap/isTopItemActive.js.map +1 -1
  237. package/mobile/lib/wlc.json +3 -1
  238. package/mobile/src/ProjectSettings.ts +4 -0
  239. package/mobile/src/components/Carousel/Carousel.tsx +1 -0
  240. package/mobile/src/components/CarouselCard/CarouselCard.tsx +4 -4
  241. package/mobile/src/components/CarouselCard/CarouselCardContent.ts +2 -2
  242. package/mobile/src/components/CarouselCard/constants.ts +5 -5
  243. package/mobile/src/components/CarouselEventCard/CarouselEventCard.example.json +14 -0
  244. package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +32 -0
  245. package/mobile/src/components/CarouselEventCard/CarouselEventCard.ui.json +1 -0
  246. package/mobile/src/components/CarouselEventCard/CarouselEventCardContent.ts +12 -0
  247. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -18
  248. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -4
  249. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +1 -4
  250. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +9 -9
  251. package/mobile/src/components/Footer/MediaButton.tsx +19 -14
  252. package/mobile/src/components/Header/HeaderChatBotButton.tsx +1 -4
  253. package/mobile/src/components/Header/HeaderContent.ts +0 -7
  254. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +8 -5
  255. package/mobile/src/components/Header/useChatBot.ts +2 -3
  256. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +6 -4
  257. package/mobile/src/components/ProductGallery/ProductGallery.example.json +2 -3
  258. package/mobile/src/components/ProductGallery/ProductGallery.tsx +1 -1
  259. package/mobile/src/components/TariffsTable/TariffsTable.example.json +3 -0
  260. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +1 -0
  261. package/mobile/src/components/VerticalLayout/VerticalLayout.example.json +1 -1
  262. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +4 -3
  263. package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +2 -2
  264. package/mobile/src/components/Video/Video.tsx +22 -16
  265. package/mobile/src/hooks/useLink.ts +1 -1
  266. package/mobile/src/model/AlignType.ts +11 -0
  267. package/mobile/src/services/sitemap/isTopItemActive.ts +2 -7
  268. package/mobile/src/wlc.json +3 -1
  269. package/package.json +1 -1
  270. package/src/ProjectSettings.ts +4 -0
  271. package/src/components/Blocks.ts +2 -0
  272. package/src/components/Carousel/Carousel.fixture.tsx +19 -0
  273. package/src/components/Carousel/Carousel.tsx +1 -0
  274. package/src/components/CarouselCard/CarouselCard.fixture.tsx +1 -1
  275. package/src/components/CarouselCard/CarouselCard.tsx +4 -4
  276. package/src/components/CarouselCard/CarouselCardContent.ts +2 -2
  277. package/src/components/CarouselCard/constants.ts +5 -5
  278. package/src/components/CarouselEventCard/CarouselEventCard.example.json +14 -0
  279. package/src/components/CarouselEventCard/CarouselEventCard.fixture.tsx +21 -0
  280. package/src/components/CarouselEventCard/CarouselEventCard.tsx +32 -0
  281. package/src/components/CarouselEventCard/CarouselEventCard.ui.json +1 -0
  282. package/src/components/CarouselEventCard/CarouselEventCardContent.ts +12 -0
  283. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -18
  284. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +8 -3
  285. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -4
  286. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +1 -4
  287. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +9 -9
  288. package/src/components/Footer/MediaButton.tsx +19 -14
  289. package/src/components/Header/Header.fixture.tsx +3 -3
  290. package/src/components/Header/Header.tsx +0 -2
  291. package/src/components/Header/HeaderChatBotButton.tsx +1 -4
  292. package/src/components/Header/HeaderContent.ts +0 -7
  293. package/src/components/Header/HeaderSecondaryMenu.tsx +8 -5
  294. package/src/components/Header/useChatBot.ts +2 -3
  295. package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
  296. package/src/components/ProductBlock/renderBackwardButton.tsx +6 -4
  297. package/src/components/ProductGallery/ProductGallery.example.json +2 -3
  298. package/src/components/ProductGallery/ProductGallery.tsx +1 -1
  299. package/src/components/TariffsTable/TariffsTable.example.json +3 -0
  300. package/src/components/TariffsTable/TariffsTableContent.ts +1 -0
  301. package/src/components/VerticalLayout/VerticalLayout.example.json +1 -1
  302. package/src/components/VerticalLayout/VerticalLayout.tsx +4 -3
  303. package/src/components/VerticalLayout/VerticalLayoutContent.ts +2 -2
  304. package/src/components/Video/Video.tsx +22 -16
  305. package/src/hooks/useLink.ts +1 -1
  306. package/src/model/AlignType.ts +11 -0
  307. package/src/services/sitemap/isTopItemActive.ts +2 -7
  308. package/src/wlc.json +3 -1
  309. package/bundle/model/CarouselCardVersion.d.ts +0 -1
  310. package/dist/model/CarouselCardVersion.d.ts +0 -1
  311. package/dist/model/CarouselCardVersion.js.map +0 -1
  312. package/lib/model/CarouselCardVersion.d.ts +0 -1
  313. package/lib/model/CarouselCardVersion.js +0 -2
  314. package/lib/model/CarouselCardVersion.js.map +0 -1
  315. package/mobile/bundle/model/CarouselCardVersion.d.ts +0 -1
  316. package/mobile/dist/model/CarouselCardVersion.d.ts +0 -1
  317. package/mobile/dist/model/CarouselCardVersion.js.map +0 -1
  318. package/mobile/lib/model/CarouselCardVersion.d.ts +0 -1
  319. package/mobile/lib/model/CarouselCardVersion.js +0 -2
  320. package/mobile/lib/model/CarouselCardVersion.js.map +0 -1
  321. package/mobile/src/model/CarouselCardVersion.ts +0 -1
  322. package/src/model/CarouselCardVersion.ts +0 -1
@@ -80,6 +80,9 @@
80
80
  get FOOTER() {
81
81
  return this._.FOOTER;
82
82
  }
83
+ get CHAT_BOT() {
84
+ return this._.CHAT_BOT;
85
+ }
83
86
  get CDN() {
84
87
  return appendSlash(this._.CDN);
85
88
  }
@@ -652,7 +655,7 @@
652
655
  handlerDecorator._impl = impl;
653
656
  };
654
657
 
655
- function useLink(isRemote) {
658
+ function useLink(isRemote = false) {
656
659
  const router = useRouter();
657
660
  return (props) => ({
658
661
  ...props,
@@ -1940,6 +1943,7 @@
1940
1943
  'CarouselRecommendationCard',
1941
1944
  'CarouselTariffsCard',
1942
1945
  'CarouselInvestmentCard',
1946
+ 'CarouselEventCard',
1943
1947
  ];
1944
1948
  const getPaddingStyle = (isPadding) => (isPadding ? 'p-12' : '');
1945
1949
 
@@ -1987,7 +1991,7 @@
1987
1991
  const BLOCK_CLASSES = 'absolute border border-solid border-gray w-full h-full';
1988
1992
  const CARD_WIDTH_MAP = {
1989
1993
  normal: 'min-w-[970px]',
1990
- mini: 'min-w-[355px]',
1994
+ small: 'min-w-[355px]',
1991
1995
  };
1992
1996
  const CarouselCard = JSX(({ className = '', button, description, title, carouselVersion = 'normal' }) => (jsx("section", { className: `flex pb-9 pl-12 border-box h-full ${CARD_WIDTH_MAP[carouselVersion]} ${className}`, children: jsxs("div", { className: "relative w-full", children: [jsx("div", { className: `${BLOCK_CLASSES} z-10 top-9 right-12 bg-green-dark` }), jsx("div", { className: `${BLOCK_CLASSES} z-10 top-6 right-8 bg-green` }), jsx("div", { className: `${BLOCK_CLASSES} z-10 top-3 right-4 bg-green-light` }), jsxs("div", { className: "relative h-full bg-white z-10 p-10 border border-solid border-green-light", children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "L", align: "text-left" }), renderButtonsSection([button], { className: 'mt-14' })] })] }) })));
1993
1997
 
@@ -1998,6 +2002,13 @@
1998
2002
  const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors, ...rest }) => (jsxs(BlockWrapper, { className: `border box-border border-gray p-7 min-w-[392px] h-full flex flex-col justify-left ${className}`, ...rest, children: [image?.src ? jsx(ImgInner, { className: "mb-5 flex justify-center", image: image }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-1.5", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Paragraph, { size: "text-m", align: "text-left", font: "font-light", children: description }) })) : null, colors?.length ? (jsxs("div", { className: "flex mb-4 text-s-light text-secondary-text", children: [jsx("div", { className: "mr-1.5", children: jsx(Text, { children: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430: " }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null, renderButtonsSection([button], { buttonClassName: 'mt-5 w-full' })] })));
1999
2003
  const renderColorOption = (color, i) => (jsx("span", { className: `w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
2000
2004
 
2005
+ const getIconWithVersion = (icon, version = 'primary') => ({
2006
+ ...icon,
2007
+ iconVersion: icon?.iconVersion ?? (version === 'secondary' ? 'white' : 'color'),
2008
+ });
2009
+
2010
+ const CarouselEventCard = JSX(({ className = '', icon, title, description, href, target, ...rest }) => (jsx(BlockWrapper, { className: style('flex flex-col w-[365px]', className), ...rest, children: jsxs("a", { href: href, target: target, role: "link", children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-2", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Text, { font: "font-light", size: "text-s", color: "text-secondary-text", children: description }) })) : null] }) })));
2011
+
2001
2012
  const BaseTile = JSX(({ className = '', title = '', buttons, image, children }) => (jsxs("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, children: [title, jsxs("div", { className: "flex grow w-full justify-between", children: [jsxs("div", { className: "flex flex-col justify-between w-full", children: [jsx("div", { className: "h-full", children: children }), buttons ? jsx("div", { className: "mt-auto pt-8", children: buttons }) : null] }), image] })] })));
2002
2013
 
2003
2014
  const getItemListFontSize = (colValue) => (colValue === 1 ? 'text-h6' : 'text-l');
@@ -2070,43 +2081,38 @@
2070
2081
  const renderAdditionalDescription$1 = (additionalDescription) => additionalDescription ? (jsx("div", { className: "mt-auto", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", children: additionalDescription }) })) : null;
2071
2082
  const renderItems = (items, isDotted, version = 'primary') => items?.length ? (jsx(List, { className: `max-w-[308px] mt-2 text-s ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "text-left", items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted })) : null;
2072
2083
 
2073
- const getIconWithVersion = (icon, version = 'primary') => ({
2074
- ...icon,
2075
- iconVersion: icon?.iconVersion ?? (version === 'secondary' ? 'white' : 'color'),
2076
- });
2077
-
2078
2084
  const CarouselProgramsCard = JSX(({ className = '', title, icon, list = [], ...rest }) => (jsxs(BlockWrapper, { className: `border border-gray flex min-w-[536px] ${className}`, ...rest, children: [jsxs("div", { className: "w-[200px] min-w-[200px] self-center", children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null] }), jsxs("div", { className: "p-8 pl-3 w-full", children: [title ? jsx(Heading, { className: " mb-3.5", headingType: "h5", title: title }) : null, list.length ? jsx("div", { className: "flex flex-col gap-3", children: list?.map(renderList$1) }) : null] })] })));
2079
2085
  const renderList$1 = (_, i) => (jsxs("div", { className: "break-words", children: [_.title ? jsx("div", { className: `text-h6`, children: _.title }) : null, _.description ? jsx("span", { className: "text-l-light mt-1", children: _.description }) : null] }, String(i)));
2080
2086
 
2081
2087
  const ICONS_MAP = [
2082
2088
  {
2083
2089
  origins: ['t.me', 'telegram.org'],
2084
- icon: { icon: 'TelegramIcon' },
2090
+ iconMapped: { icon: 'TelegramIcon' },
2085
2091
  label: 'Телеграм',
2086
2092
  },
2087
2093
  {
2088
2094
  origins: ['vk.com'],
2089
- icon: { icon: 'VKIcon' },
2095
+ iconMapped: { icon: 'VKIcon' },
2090
2096
  label: 'ВКонтакте',
2091
2097
  },
2092
2098
  {
2093
2099
  origins: ['ok.ru'],
2094
- icon: { icon: 'OkIcon' },
2100
+ iconMapped: { icon: 'OkIcon' },
2095
2101
  label: 'Одноклассники',
2096
2102
  },
2097
2103
  {
2098
2104
  origins: ['apps.apple.com'],
2099
- icon: { icon: 'AppleIcon' },
2105
+ iconMapped: { icon: 'AppleIcon' },
2100
2106
  label: 'App Store',
2101
2107
  },
2102
2108
  {
2103
2109
  origins: ['play.google.com'],
2104
- icon: { icon: 'PlayMarketIcon' },
2110
+ iconMapped: { icon: 'PlayMarketIcon' },
2105
2111
  label: 'Google Play',
2106
2112
  },
2107
2113
  {
2108
2114
  origins: ['youtube.com'],
2109
- icon: { icon: 'YoutubeIcon' },
2115
+ iconMapped: { icon: 'YoutubeIcon' },
2110
2116
  label: 'Youtube',
2111
2117
  },
2112
2118
  ];
@@ -2114,20 +2120,23 @@
2114
2120
  default: 'w-14 h-14',
2115
2121
  small: 'w-12 h-12',
2116
2122
  };
2117
- const MediaButton = JSX(({ iconVersion = 'color', buttonSize = 'default', rounded = false, ...rest }) => {
2123
+ const MediaButton = JSX(({ iconVersion = 'color', buttonSize = 'default', rounded = false, icon, ...rest }) => {
2118
2124
  const { href, version } = rest;
2119
- const { icon, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
2120
- const iconWithVersion = icon ? { ...getIconWithVersion(icon), iconVersion } : null;
2125
+ const { iconMapped, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
2126
+ const iconCustom = icon ?? iconMapped;
2127
+ const iconWithVersion = iconCustom
2128
+ ? { ...getIconWithVersion(iconCustom), iconVersion }
2129
+ : undefined;
2121
2130
  return (jsx(Button, { className: style('group/media flex items-center justify-center box-border', buttonSizeStyles[buttonSize], rounded ? 'rounded-full' : 'rounded-md', 'border border-solid hover:border-transparent', 'group-data-primary:border-main-divider', 'hover:bg-primary-main hover:text-black', 'group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover', 'group-data-gray:border-green', buttonSizeStyles[buttonSize]), "aria-label": label, target: "_blank", rel: "noopener noreferrer", version: version, ...rest, children: iconWithVersion ? (jsx(ImgInner, { image: iconWithVersion, imageClassName: "group-hover/media:text-white", width: "24", height: "24", asSVG: true })) : null }));
2122
2131
  });
2123
2132
 
2124
2133
  const SocialMedia = JSX(({ className = '', media, children, buttonSize }) => (jsxs("div", { className: "font-sans", children: [jsx("div", { className: `flex gap-2.5 ${className}`, children: media?.map((_, index) => (jsx(MediaButton, { buttonSize: buttonSize, version: _.version, ..._ }, String(index)))) }), jsx(Text, { size: "text-s-light", color: "text-secondary-text", children: children })] })));
2125
2134
 
2126
- const CarouselRecommendationCard = JSX(({ button, className = '', description, image, items = [], socialMedia = [], title, version = 'primary', ...rest }) => {
2135
+ const CarouselRecommendationCard = JSX(({ className = '', description, image, items = [], socialMedia = [], title, version = 'primary', ...rest }) => {
2127
2136
  const tileTitle = title ? (jsx(Heading, { headingType: "h5", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
2128
2137
  const tileImage = image?.src ? (jsx(ImgInner, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
2129
2138
  const BORDER_STYLE = 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider';
2130
- return (jsx(BlockWrapper, { className: style('relative p-7 min-w-[524px] h-full text-left box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, 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("span", { className: "mb-2 group-data-gray:text-secondary-text group-data-gray:max-w-[265px]", children: description })) : null, items.length ? (jsx(List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items })) : null, socialMedia.length ? jsx(SocialMedia, { className: "pt-10 pb-0", media: socialMedia }) : null, renderButtonsSection([button], { className: 'pt-2 mt-16' })] }) }) }));
2139
+ return (jsx(BlockWrapper, { className: style('relative p-7 min-w-[524px] h-full text-left box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, 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("span", { className: "mb-2 group-data-gray:text-secondary-text group-data-gray:max-w-[265px]", children: description })) : null, items.length ? (jsx(List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items })) : null, socialMedia.length ? jsx(SocialMedia, { className: "pt-10 pb-0", media: socialMedia }) : null] }) }) }));
2131
2140
  });
2132
2141
 
2133
2142
  const VISIBLE_CELLS_COUNT = 1;
@@ -2537,9 +2546,7 @@
2537
2546
 
2538
2547
  const isHrefActive = (router) => ({ href }) => withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
2539
2548
 
2540
- const isTopItemActive = (router) => (topItem) => projectSettings.BASE_PATH
2541
- ? isHrefActive({ pathname: projectSettings.BASE_PATH })(topItem)
2542
- : topItem.items?.some(isHrefActive(router)) || isHrefActive(router)(topItem);
2549
+ const isTopItemActive = (router) => isHrefActive(projectSettings.BASE_PATH ? { pathname: projectSettings.BASE_PATH } : router);
2543
2550
 
2544
2551
  const TopItem = JSX(({ className = '', active, flat, children, ...rest }) => {
2545
2552
  const link = useLink(true);
@@ -2719,11 +2726,11 @@
2719
2726
  });
2720
2727
  const renderChatBotButton = ({ className, iconVersion, onClick }) => (jsx(HeaderSecondaryMenuButton, { className: style(CHAT_BUTTON_EXTERNAL_NAME, className), image: { icon: 'HeadphonesIcon', iconVersion }, ariaLabel: "\u0427\u0430\u0442", onClick: onClick }));
2721
2728
 
2722
- const HeaderSecondaryMenu = JSX(({ version, className, officesLink, defaultLocation = 'Москва', foreignOffices, chat }) => {
2729
+ const HeaderSecondaryMenu = JSX(({ version, className, officesLink, defaultLocation = 'Москва', foreignOffices }) => {
2723
2730
  const [isShowLocationModal, { setTrue: showLocationModal, setFalse: hideLocationModal }] = useBool();
2724
2731
  const [location, onChangeLocation] = useLocation(defaultLocation);
2725
2732
  const iconVersion = version === 'transparent' ? 'white' : 'black';
2726
- return (jsxs("div", { className: style('flex items-center', className), children: [jsx(TopItem, { className: "mr-5", flat: true, href: "#", text: location.name, onClick: showLocationModal }), officesLink ? (jsx(TopItem, { className: "mr-7", flat: true, href: officesLink, text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B" })) : null, chat ? (jsx(HeaderChatBotButton, { className: "mr-5", iconVersion: iconVersion, chat: chat })) : null, isShowLocationModal ? (jsx(Location, { currentLocation: location, foreignOffices: foreignOffices, onChangeLocation: onChangeLocation, close: hideLocationModal })) : null] }));
2733
+ return (jsxs("div", { className: style('flex items-center', className), children: [jsx(TopItem, { className: "mr-5", flat: true, href: "#", text: location.name, onClick: showLocationModal }), officesLink ? (jsx(TopItem, { className: "mr-7", flat: true, href: officesLink, text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B" })) : null, projectSettings.CHAT_BOT ? (jsx(HeaderChatBotButton, { className: "mr-5", iconVersion: iconVersion, chat: projectSettings.CHAT_BOT })) : null, isShowLocationModal ? (jsx(Location, { currentLocation: location, foreignOffices: foreignOffices, onChangeLocation: onChangeLocation, close: hideLocationModal })) : null] }));
2727
2734
  });
2728
2735
 
2729
2736
  const findActiveSubItem = (router) => (items = []) => {
@@ -2788,11 +2795,11 @@
2788
2795
  'bg-white': 'primary',
2789
2796
  transparent: 'transparent',
2790
2797
  };
2791
- const Header = JSX(({ bgColor = 'bg-white', className, showSubMenu = true, version = BG_COLOR_TO_BLOCK_VERSION[bgColor], chat, ...rest }) => {
2798
+ const Header = JSX(({ bgColor = 'bg-white', className, showSubMenu = true, version = BG_COLOR_TO_BLOCK_VERSION[bgColor], ...rest }) => {
2792
2799
  const router = useRouter();
2793
2800
  const { topItems, logo, defaultLocation, foreignOffices, officesLink } = useSWRResource(projectSettings.SITEMAP || 'sitemap', rest.options?.page?.fallback);
2794
2801
  const activeTopItem = topItems?.find(isTopItemActive(router));
2795
- return (jsx(BlockWrapper, { tag: "header", className: style('pt-6 px-20', showSubMenu && activeTopItem?.items?.length ? 'pb-4' : 'pb-5', className), version: version, ...rest, children: jsxs("div", { className: "container", children: [jsxs("div", { className: "flex items-center", children: [jsx(Logo, { className: "mr-8", bgColor: bgColor, logo: logo }), topItems?.map((_, i) => (jsx(TopItem, { active: _ === activeTopItem, ..._ }, String(i)))), jsx(HeaderSecondaryMenu, { version: version, className: "ml-auto", foreignOffices: foreignOffices, defaultLocation: defaultLocation, officesLink: officesLink, chat: chat })] }), jsx("div", { className: style('mt-6 h-px bg-main-divider', version === 'transparent' ? 'opacity-30' : '') }), showSubMenu && activeTopItem?.items?.length ? (jsx(HeaderSubMenu, { subItems: activeTopItem.items })) : null] }) }));
2802
+ return (jsx(BlockWrapper, { tag: "header", className: style('pt-6 px-20', showSubMenu && activeTopItem?.items?.length ? 'pb-4' : 'pb-5', className), version: version, ...rest, children: jsxs("div", { className: "container", children: [jsxs("div", { className: "flex items-center", children: [jsx(Logo, { className: "mr-8", bgColor: bgColor, logo: logo }), topItems?.map((_, i) => (jsx(TopItem, { active: _ === activeTopItem, ..._ }, String(i)))), jsx(HeaderSecondaryMenu, { version: version, className: "ml-auto", foreignOffices: foreignOffices, defaultLocation: defaultLocation, officesLink: officesLink })] }), jsx("div", { className: style('mt-6 h-px bg-main-divider', version === 'transparent' ? 'opacity-30' : '') }), showSubMenu && activeTopItem?.items?.length ? (jsx(HeaderSubMenu, { subItems: activeTopItem.items })) : null] }) }));
2796
2803
  });
2797
2804
 
2798
2805
  const gapStyles = {
@@ -3509,18 +3516,17 @@
3509
3516
  const ProductBlockInner = JSX(({ className = '', title, headlineVersion = 'L', description, benefitsCountOfRow = 3, benefits, benefitsVersion, buttons, footnote, image, __html, items, version = 'primary', isDotted = true, textBlockClassName = '', }) => {
3510
3517
  const benefitsCount = benefits?.filter((_) => _.label)?.length;
3511
3518
  const benefitsContainerStyles = getBenefitsContainerStyles(benefitsCountOfRow);
3512
- return (jsxs("div", { className: style('flex grow justify-between items-stretch h-full', className), children: [jsxs("div", { className: style('flex flex-col', textBlockClassName), children: [jsx(Headline, { className: "!p-0 max-w-[600px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left" }), jsxs("div", { className: "flex flex-col justify-between h-full", children: [jsxs(BaseTile, { buttons: renderButtonsSection(buttons), children: [benefitsCount ? (jsx("div", { className: benefitsContainerStyles, children: benefits.map(renderBenefit$1(version, benefitsVersion)) })) : null, __html ? (jsx("div", { className: "mt-5", children: jsx(RichText, { __html: __html }) })) : null, items?.length ? (jsx(List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", isDotted: isDotted })) : null] }), footnote ? jsx("p", { className: "text-m-light pt-12", children: footnote }) : null] })] }), image?.src && jsx(ImgInner, { className: "mt-[-50px]", image: image })] }));
3519
+ return (jsxs("div", { className: style('flex grow justify-between items-stretch h-full', className), children: [jsxs("div", { className: style('flex flex-col', textBlockClassName), children: [jsx(Headline, { className: "!p-0 max-w-[600px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left" }), jsxs("div", { className: "flex flex-col justify-between h-full", children: [jsxs(BaseTile, { buttons: renderButtonsSection(buttons), children: [benefitsCount ? (jsx("div", { className: benefitsContainerStyles, children: benefits?.map(renderBenefit$1(version, benefitsVersion)) })) : null, __html ? (jsx("div", { className: "mt-5", children: jsx(RichText, { __html: __html }) })) : null, items?.length ? (jsx(List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", isDotted: isDotted })) : null] }), footnote ? jsx("p", { className: "text-m-light pt-12", children: footnote }) : null] })] }), image?.src && jsx(ImgInner, { className: "mt-[-50px]", image: image })] }));
3513
3520
  });
3514
3521
  const getBenefitsContainerStyles = (benefitsCountOfRow = 2) => `gap-6 mt-6 ${benefitsCountOfRow > 2
3515
3522
  ? 'inline-grid grid-cols-[auto_auto_auto]'
3516
3523
  : 'inline-grid grid-cols-[auto_auto]'}`;
3517
3524
 
3518
3525
  function renderBackwardButton(button, version, className) {
3519
- const { text, href, target, onClick } = button;
3526
+ const { text, href, target } = button;
3520
3527
  const iconVersion = version === 'primary' ? 'white' : 'black';
3521
3528
  const backwardIcon = button?.icon || { icon: 'ArrowLeftIcon' };
3522
- // TODO Move click handler to Button
3523
- return (jsxs("div", { className: `flex items-center cursor-pointer ${className}`, onClick: onClick, children: [jsx(Button, { version: version, rounded: true, className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3", ariaLabel: text, href: href, target: target, children: jsx(ImgInner, { className: "w-4 h-4", image: { ...backwardIcon, iconVersion: backwardIcon.iconVersion || iconVersion }, asSVG: true }) }), text ? jsx("span", { className: "text-m", children: text }) : null] }));
3529
+ return (jsxs("div", { className: style('flex items-center', className), children: [jsx(Button, { version: version, rounded: true, className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3", ariaLabel: text, href: href, target: target, children: jsx(ImgInner, { className: "w-4 h-4", image: { ...backwardIcon, iconVersion: backwardIcon.iconVersion || iconVersion }, asSVG: true }) }), text ? (jsx(Button, { version: "link", text: text, href: href, target: target, ariaLabel: text })) : null] }));
3524
3530
  }
3525
3531
 
3526
3532
  const breadcrumbStyle = 'text-secondary-text group-data-secondary:text-white/80';
@@ -3545,7 +3551,7 @@
3545
3551
  })) })] }));
3546
3552
  });
3547
3553
  function renderProductBlock(block, i) {
3548
- return (jsx("section", { className: "box-border relative flex grow-0 shrink-0 basis-full", role: "listitem", children: jsx("div", { className: "flex grow", children: jsx(ProductBlockInner, { className: "pl-12 z-10 text-secondary-text group-data-secondary:text-white", textBlockClassName: "mb-[154px]", headlineVersion: "XXL", ...block }) }) }, String(i)));
3554
+ return (jsx("section", { className: "box-border relative flex grow-0 shrink-0 basis-full", role: "listitem", children: jsx("div", { className: "flex grow", children: jsx(ProductBlockInner, { className: "pl-12 z-10 group-data-secondary:text-white", textBlockClassName: "mb-[154px]", headlineVersion: "XXL", ...block }) }) }, String(i)));
3549
3555
  }
3550
3556
  function renderNavButton({ slide, i, isActive, onClick }) {
3551
3557
  const btnClassName = isActive
@@ -4249,11 +4255,12 @@
4249
4255
  }), image: image?.src ? jsx(ImgInner, { className: "mt-auto ml-7", image: image }) : null, children: [__html ? (jsx("div", { className: "max-w-[600px] mt-2.5", children: jsx(RichText, { __html: __html }) })) : null, children, jsx(List, { className: "mt-2.5", itemClassName: "mb-1.5", items: items, isDotted: isDotted, listItemSize: listItemSize }), tags?.length ? jsx(Tags, { tags: tags, className: "mt-5" }) : null] }) })));
4250
4256
 
4251
4257
  const alignStyle = {
4258
+ stretch: 'items-stretch',
4252
4259
  left: 'items-start',
4253
4260
  center: 'items-center',
4254
4261
  right: 'items-end',
4255
4262
  };
4256
- const VerticalLayout = JSX(({ className = '', gap = '', align, isPadding = false, isInnerPadding = true, version = 'transparent', options, ...rest }) => {
4263
+ const VerticalLayout = JSX(({ className = '', gap = '', align = 'stretch', isPadding = false, isInnerPadding = true, version = 'transparent', options, ...rest }) => {
4257
4264
  const innerPaddingStyle = isInnerPadding ? '' : '!p-0';
4258
4265
  return (jsx(BlockWrapper, { className: style('flex flex-col [&>*]:max-w-full', isPadding ? 'p-12' : '', gapStyles[gap], align && alignStyle[align], className), version: version, ...rest, children: renderChildren({ ...rest, options: { ...options, className: innerPaddingStyle } }) }));
4259
4266
  });
@@ -4262,7 +4269,10 @@
4262
4269
  const MIN_COL_SPAN = 10;
4263
4270
  const getPaddings = (className) => getColSpan(className) < MIN_COL_SPAN ? 'py-6 px-11' : 'py-12 px-32';
4264
4271
 
4265
- 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] })));
4272
+ const Video = JSX(({ className, title, src, previewImg, ...rest }) => {
4273
+ const router = useRouter();
4274
+ 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] }));
4275
+ });
4266
4276
 
4267
4277
  const Blocks = {
4268
4278
  Accordion,
@@ -4279,6 +4289,7 @@
4279
4289
  CarouselBankHistoryCard,
4280
4290
  CarouselCard,
4281
4291
  CarouselCatalogCard,
4292
+ CarouselEventCard,
4282
4293
  CarouselInvestmentCard,
4283
4294
  CarouselLinks,
4284
4295
  CarouselProductCard,
@@ -4447,7 +4458,7 @@
4447
4458
  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" }) }));
4448
4459
  }
4449
4460
 
4450
- const packageVersion = "0.8.16";
4461
+ const packageVersion = "0.8.17";
4451
4462
 
4452
4463
  exports.Blocks = Blocks;
4453
4464
  exports.ContentPage = ContentPage;