@redneckz/wildless-cms-uni-blocks 0.6.38 → 0.6.40

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 (282) hide show
  1. package/bundle/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  2. package/bundle/ProjectSettings.d.ts +0 -2
  3. package/bundle/blocks.schema.json +1 -1
  4. package/bundle/bundle.umd.js +140 -116
  5. package/bundle/bundle.umd.min.js +1 -1
  6. package/bundle/components/Carousel/CarouselContent.d.ts +1 -1
  7. package/bundle/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
  8. package/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
  9. package/bundle/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
  10. package/bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
  11. package/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
  12. package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
  13. package/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
  14. package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
  15. package/bundle/model/BlockVersion.d.ts +1 -0
  16. package/bundle/ui-kit/Button/ButtonSection.d.ts +1 -1
  17. package/bundle/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
  18. package/dist/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  19. package/dist/BlockRenderer/renderBlock.js +2 -2
  20. package/dist/BlockRenderer/renderBlock.js.map +1 -1
  21. package/dist/ProjectSettings.d.ts +0 -2
  22. package/dist/ProjectSettings.js +0 -3
  23. package/dist/ProjectSettings.js.map +1 -1
  24. package/dist/components/Blocks.js +6 -2
  25. package/dist/components/Blocks.js.map +1 -1
  26. package/dist/components/Carousel/Carousel.js +3 -2
  27. package/dist/components/Carousel/Carousel.js.map +1 -1
  28. package/dist/components/Carousel/CarouselContent.d.ts +1 -1
  29. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
  30. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +17 -0
  31. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -0
  32. package/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
  33. package/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.js +2 -0
  34. package/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.js.map +1 -0
  35. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
  36. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +12 -8
  37. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  38. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
  39. package/dist/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
  40. package/dist/components/CarouselProductCard/CarouselProductCard.js +32 -0
  41. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -0
  42. package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
  43. package/dist/components/CarouselProductCard/CarouselProductCardContent.js +2 -0
  44. package/dist/components/CarouselProductCard/CarouselProductCardContent.js.map +1 -0
  45. package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
  46. package/dist/components/Gallery/GalleryCardInner.js +3 -2
  47. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  48. package/dist/components/ProductTile/ProductTile.js +10 -22
  49. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  50. package/dist/components/VerticalLayout/VerticalLayout.js +18 -13
  51. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  52. package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
  53. package/dist/model/BlockVersion.d.ts +1 -0
  54. package/dist/model/BlockVersion.js +5 -1
  55. package/dist/model/BlockVersion.js.map +1 -1
  56. package/dist/ui-kit/Button/ButtonSection.d.ts +1 -1
  57. package/dist/ui-kit/Button/ButtonSection.js +2 -2
  58. package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  59. package/dist/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
  60. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  61. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  62. package/dist/utils/adjustHref.js +1 -3
  63. package/dist/utils/adjustHref.js.map +1 -1
  64. package/lib/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  65. package/lib/BlockRenderer/renderBlock.js +2 -2
  66. package/lib/BlockRenderer/renderBlock.js.map +1 -1
  67. package/lib/ProjectSettings.d.ts +0 -2
  68. package/lib/ProjectSettings.js +0 -3
  69. package/lib/ProjectSettings.js.map +1 -1
  70. package/lib/common.css +1 -1
  71. package/lib/components/Blocks.js +6 -2
  72. package/lib/components/Blocks.js.map +1 -1
  73. package/lib/components/Carousel/Carousel.fixture.d.ts +4 -1
  74. package/lib/components/Carousel/Carousel.js +3 -2
  75. package/lib/components/Carousel/Carousel.js.map +1 -1
  76. package/lib/components/Carousel/CarouselContent.d.ts +1 -1
  77. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
  78. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.fixture.d.ts +16 -0
  79. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +15 -0
  80. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -0
  81. package/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
  82. package/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.js +2 -0
  83. package/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.js.map +1 -0
  84. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
  85. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +12 -8
  86. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  87. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
  88. package/lib/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
  89. package/lib/components/CarouselProductCard/CarouselProductCard.fixture.d.ts +8 -0
  90. package/lib/components/CarouselProductCard/CarouselProductCard.js +30 -0
  91. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -0
  92. package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
  93. package/lib/components/CarouselProductCard/CarouselProductCardContent.js +2 -0
  94. package/lib/components/CarouselProductCard/CarouselProductCardContent.js.map +1 -0
  95. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.d.ts +1 -1
  96. package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
  97. package/lib/components/Gallery/GalleryCardInner.js +3 -2
  98. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  99. package/lib/components/ProductTile/ProductTile.fixture.d.ts +2 -1
  100. package/lib/components/ProductTile/ProductTile.js +11 -23
  101. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  102. package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +2 -1
  103. package/lib/components/VerticalLayout/VerticalLayout.js +18 -13
  104. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  105. package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
  106. package/lib/model/BlockVersion.d.ts +1 -0
  107. package/lib/model/BlockVersion.js +4 -0
  108. package/lib/model/BlockVersion.js.map +1 -1
  109. package/lib/ui-kit/Button/ButtonSection.d.ts +1 -1
  110. package/lib/ui-kit/Button/ButtonSection.js +2 -2
  111. package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  112. package/lib/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
  113. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  114. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  115. package/lib/utils/adjustHref.js +1 -3
  116. package/lib/utils/adjustHref.js.map +1 -1
  117. package/mobile/bundle/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  118. package/mobile/bundle/ProjectSettings.d.ts +0 -2
  119. package/mobile/bundle/bundle.umd.js +7 -11
  120. package/mobile/bundle/bundle.umd.min.js +1 -1
  121. package/mobile/bundle/components/Carousel/CarouselContent.d.ts +1 -1
  122. package/mobile/bundle/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
  123. package/mobile/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
  124. package/mobile/bundle/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
  125. package/mobile/bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
  126. package/mobile/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
  127. package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
  128. package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
  129. package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
  130. package/mobile/bundle/model/BlockVersion.d.ts +1 -0
  131. package/mobile/bundle/ui-kit/Button/ButtonSection.d.ts +1 -1
  132. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
  133. package/mobile/dist/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  134. package/mobile/dist/BlockRenderer/renderBlock.js +2 -2
  135. package/mobile/dist/BlockRenderer/renderBlock.js.map +1 -1
  136. package/mobile/dist/ProjectSettings.d.ts +0 -2
  137. package/mobile/dist/ProjectSettings.js +0 -3
  138. package/mobile/dist/ProjectSettings.js.map +1 -1
  139. package/mobile/dist/components/Carousel/Carousel.js +3 -2
  140. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  141. package/mobile/dist/components/Carousel/CarouselContent.d.ts +1 -1
  142. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
  143. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +17 -0
  144. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -0
  145. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
  146. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.js +2 -0
  147. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.js.map +1 -0
  148. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
  149. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +12 -8
  150. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  151. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
  152. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
  153. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +32 -0
  154. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -0
  155. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
  156. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.js +2 -0
  157. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.js.map +1 -0
  158. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
  159. package/mobile/dist/components/Gallery/GalleryCardInner.js +3 -2
  160. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  161. package/mobile/dist/components/ProductTile/ProductTile.js +10 -22
  162. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  163. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +18 -13
  164. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  165. package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
  166. package/mobile/dist/model/BlockVersion.d.ts +1 -0
  167. package/mobile/dist/model/BlockVersion.js +5 -1
  168. package/mobile/dist/model/BlockVersion.js.map +1 -1
  169. package/mobile/dist/ui-kit/Button/ButtonSection.d.ts +1 -1
  170. package/mobile/dist/ui-kit/Button/ButtonSection.js +2 -2
  171. package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  172. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
  173. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  174. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  175. package/mobile/dist/utils/adjustHref.js +1 -3
  176. package/mobile/dist/utils/adjustHref.js.map +1 -1
  177. package/mobile/lib/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  178. package/mobile/lib/BlockRenderer/renderBlock.js +2 -2
  179. package/mobile/lib/BlockRenderer/renderBlock.js.map +1 -1
  180. package/mobile/lib/ProjectSettings.d.ts +0 -2
  181. package/mobile/lib/ProjectSettings.js +0 -3
  182. package/mobile/lib/ProjectSettings.js.map +1 -1
  183. package/mobile/lib/components/Carousel/Carousel.js +3 -2
  184. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  185. package/mobile/lib/components/Carousel/CarouselContent.d.ts +1 -1
  186. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
  187. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +15 -0
  188. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -0
  189. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
  190. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.js +2 -0
  191. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.js.map +1 -0
  192. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
  193. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +12 -8
  194. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  195. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
  196. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
  197. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +30 -0
  198. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -0
  199. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
  200. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.js +2 -0
  201. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.js.map +1 -0
  202. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
  203. package/mobile/lib/components/Gallery/GalleryCardInner.js +3 -2
  204. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  205. package/mobile/lib/components/ProductTile/ProductTile.js +11 -23
  206. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  207. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +18 -13
  208. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  209. package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
  210. package/mobile/lib/model/BlockVersion.d.ts +1 -0
  211. package/mobile/lib/model/BlockVersion.js +4 -0
  212. package/mobile/lib/model/BlockVersion.js.map +1 -1
  213. package/mobile/lib/ui-kit/Button/ButtonSection.d.ts +1 -1
  214. package/mobile/lib/ui-kit/Button/ButtonSection.js +2 -2
  215. package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  216. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
  217. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  218. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  219. package/mobile/lib/utils/adjustHref.js +1 -3
  220. package/mobile/lib/utils/adjustHref.js.map +1 -1
  221. package/mobile/src/BlockRenderer/BlockRendererOptions.ts +1 -0
  222. package/mobile/src/BlockRenderer/renderBlock.tsx +2 -1
  223. package/mobile/src/ProjectSettings.ts +0 -4
  224. package/mobile/src/components/Carousel/Carousel.example.json +0 -1
  225. package/mobile/src/components/Carousel/Carousel.tsx +21 -18
  226. package/mobile/src/components/Carousel/CarouselContent.ts +1 -1
  227. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +17 -0
  228. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +62 -0
  229. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.ui.json +10 -0
  230. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +25 -0
  231. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +33 -14
  232. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCardContent.ts +5 -5
  233. package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +21 -0
  234. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +102 -0
  235. package/mobile/src/components/CarouselProductCard/CarouselProductCard.ui.json +18 -0
  236. package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +51 -0
  237. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +1 -1
  238. package/mobile/src/components/ContactsBlock/ContactsBlock.example.json +1 -1
  239. package/mobile/src/components/Gallery/GalleryCardInner.tsx +6 -3
  240. package/mobile/src/components/ProductTile/ProductTile.tsx +8 -26
  241. package/mobile/src/components/VerticalLayout/VerticalLayout.example.json +7 -4
  242. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +35 -20
  243. package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +4 -0
  244. package/mobile/src/model/BlockVersion.ts +5 -0
  245. package/mobile/src/ui-kit/Button/ButtonSection.tsx +4 -4
  246. package/mobile/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +2 -2
  247. package/mobile/src/utils/adjustHref.ts +1 -3
  248. package/package.json +1 -1
  249. package/src/BlockRenderer/BlockRendererOptions.ts +1 -0
  250. package/src/BlockRenderer/renderBlock.tsx +2 -1
  251. package/src/ProjectSettings.ts +0 -4
  252. package/src/components/Blocks.ts +6 -2
  253. package/src/components/Carousel/Carousel.example.json +0 -1
  254. package/src/components/Carousel/Carousel.fixture.tsx +64 -4
  255. package/src/components/Carousel/Carousel.tsx +21 -18
  256. package/src/components/Carousel/CarouselContent.ts +1 -1
  257. package/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +17 -0
  258. package/src/components/CarouselCatalogCard/CarouselCatalogCard.fixture.tsx +43 -0
  259. package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +62 -0
  260. package/src/components/CarouselCatalogCard/CarouselCatalogCard.ui.json +10 -0
  261. package/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +25 -0
  262. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +33 -14
  263. package/src/components/CarouselInvestmentCard/CarouselInvestmentCardContent.ts +5 -5
  264. package/src/components/CarouselProductCard/CarouselProductCard.example.json +21 -0
  265. package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +62 -0
  266. package/src/components/CarouselProductCard/CarouselProductCard.tsx +102 -0
  267. package/src/components/CarouselProductCard/CarouselProductCard.ui.json +18 -0
  268. package/src/components/CarouselProductCard/CarouselProductCardContent.ts +51 -0
  269. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +1 -1
  270. package/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +1 -1
  271. package/src/components/ContactsBlock/ContactsBlock.example.json +1 -1
  272. package/src/components/Gallery/GalleryCardInner.tsx +6 -3
  273. package/src/components/ProductTile/ProductTile.fixture.tsx +2 -1
  274. package/src/components/ProductTile/ProductTile.tsx +8 -26
  275. package/src/components/VerticalLayout/VerticalLayout.example.json +7 -4
  276. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +59 -2
  277. package/src/components/VerticalLayout/VerticalLayout.tsx +35 -20
  278. package/src/components/VerticalLayout/VerticalLayoutContent.ts +4 -0
  279. package/src/model/BlockVersion.ts +5 -0
  280. package/src/ui-kit/Button/ButtonSection.tsx +4 -4
  281. package/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +2 -2
  282. package/src/utils/adjustHref.ts +1 -3
@@ -85,9 +85,6 @@
85
85
  get CDN() {
86
86
  return this._.CDN;
87
87
  }
88
- get BASE_PATH() {
89
- return this._.BASE_PATH;
90
- }
91
88
  get YANDEX_MAP_API_KEY() {
92
89
  return this._.YANDEX_MAP_API_KEY;
93
90
  }
@@ -245,14 +242,14 @@
245
242
  const DEFAULT_ANCESTORS = [];
246
243
  const DEFAULT_STYLE = ['col-span-12'];
247
244
  function renderBlock(block, options) {
248
- const { key, blockDecorator = defaultBlockDecorator, blocksRegistry = {}, ancestors = DEFAULT_ANCESTORS, } = options;
245
+ const { key, blockDecorator = defaultBlockDecorator, blocksRegistry = {}, ancestors = DEFAULT_ANCESTORS, className = '', } = options;
249
246
  const { type } = block;
250
247
  if (!(type && type in blocksRegistry)) {
251
248
  console.warn(`No block with "${type}" is registered`);
252
249
  }
253
250
  const BlockComponent = type && blocksRegistry[type];
254
251
  return blockDecorator({
255
- blockClassName: `scroll-mt-12 ${style2className(block.style || DEFAULT_STYLE)}`,
252
+ blockClassName: `scroll-mt-12 ${className} ${style2className(block.style || DEFAULT_STYLE)}`,
256
253
  block,
257
254
  ancestors,
258
255
  // Adjusted by decorator block and blockClassName
@@ -537,6 +534,10 @@
537
534
  primary: 'bg-white text-primary-text',
538
535
  secondary: 'bg-primary-main text-white',
539
536
  };
537
+ const VersionAdditionalStyleMap = {
538
+ primary: 'text-secondary-text',
539
+ secondary: 'text-white',
540
+ };
540
541
 
541
542
  const getIconWithVersion = (icon, version = 'primary') => ({
542
543
  ...icon,
@@ -558,9 +559,9 @@
558
559
  const BenefitsBlock = JSX(({ className = '', title, benefitList, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: `font-sans text-primary-text p-12 flex flex-col items-center ${className} ${VersionStyleMap[version]}`, ...rest, children: [title ? (jsx(Heading, { headingType: "h3", as: "h2", className: `max-w-[47rem] text-center ${benefitsTextStyleMap[version]}`, title: title })) : null, benefitList?.length ? (jsx("div", { className: "flex flex-wrap w-full justify-center gap-x-20 mt-8", children: benefitList.map(renderStep(version)) })) : null] })));
559
560
  const renderStep = (version) => (benefit, i) => {
560
561
  const description = benefit.description;
561
- return (jsxs("div", { className: "flex items-center basis-1/2 max-w-[500px] mb-14", children: [benefit?.icon?.icon ? (jsx(ImgInner, { className: `w-12 h-12 min-w-12 p-3 rounded-full ${benefitsIconStyleMap[version]}`, image: getIconWithVersion(benefit.icon, version), asSVG: true })) : null, benefit?.icon?.src ? jsx(ImgInner, { image: benefit.icon }) : null, jsxs("div", { className: "ml-5", children: [benefit?.label ? (jsx("h3", { className: `text-h6 m-0 ${benefitsTextStyleMap[version]}`, children: benefit.label })) : null, renderDescription$3(description, version)] })] }, String(i)));
562
+ return (jsxs("div", { className: "flex items-center basis-1/2 max-w-[500px] mb-14", children: [benefit?.icon?.icon ? (jsx(ImgInner, { className: `w-12 h-12 min-w-12 p-3 rounded-full ${benefitsIconStyleMap[version]}`, image: getIconWithVersion(benefit.icon, version), asSVG: true })) : null, benefit?.icon?.src ? jsx(ImgInner, { image: benefit.icon }) : null, jsxs("div", { className: "ml-5", children: [benefit?.label ? (jsx("h3", { className: `text-h6 m-0 ${benefitsTextStyleMap[version]}`, children: benefit.label })) : null, renderDescription$4(description, version)] })] }, String(i)));
562
563
  };
563
- const renderDescription$3 = (description, version) => {
564
+ const renderDescription$4 = (description, version) => {
564
565
  const benefitType = description?.benefitType || null;
565
566
  return description && benefitType ? (jsx("div", { className: `text-l-light mt-2 ${benefitsDescriptionStyleMap[version]}`, children: benefitType === 'list'
566
567
  ? renderListBenefit(description)
@@ -610,10 +611,9 @@
610
611
  if (!href) {
611
612
  return href;
612
613
  }
613
- const hrefWithBasePath = `${projectSettings.BASE_PATH || ''}${href}`;
614
614
  const origin = getOrigin(router?.href);
615
615
  // Relative URL
616
- return origin ? hrefWithBasePath.replace(origin, '') || '/' : hrefWithBasePath;
616
+ return origin ? href.replace(origin, '') || '/' : href;
617
617
  };
618
618
 
619
619
  /* eslint-disable @typescript-eslint/ban-types */
@@ -738,11 +738,11 @@
738
738
 
739
739
  const ButtonSection = JSX(({ className = '', buttons }) => buttons && buttons?.length ? (jsx("div", { className: className, children: buttons.map((button, index) => renderButton({ button, index })) })) : null);
740
740
  function renderButton({ button, buttonClassName, index }) {
741
- const { icon, iconRight, version, ...rest } = button;
741
+ const { icon, iconRight, version, text, ...rest } = button;
742
742
  const iconVersion = version === 'secondary' ? 'color' : 'white';
743
743
  const leftIcon = renderButtonIcon({ ...icon, iconVersion: iconVersion });
744
744
  const rightIcon = renderButtonIcon({ ...iconRight, iconVersion: iconVersion });
745
- return (jsx(Button, { className: buttonClassName, appendLeft: leftIcon, appendRight: rightIcon, version: version, ...rest }, index ? String(index) : ''));
745
+ return text ? (jsx(Button, { className: buttonClassName, appendLeft: leftIcon, appendRight: rightIcon, version: version, text: text, ...rest }, index ? String(index) : '')) : null;
746
746
  }
747
747
  const renderButtonIcon = (icon) => {
748
748
  if (!icon?.icon && !icon?.src) {
@@ -1438,7 +1438,7 @@
1438
1438
  return (jsx("div", { className: `inline-block snap-always box-border ${className}`, style: style, role: "listitem", "aria-current": Boolean(idx === activeIndex), ref: ref, children: children }));
1439
1439
  });
1440
1440
 
1441
- const childStyleMap = ['min-w-[100%]', 'min-w-[50%]', 'min-w-[33.33%]'];
1441
+ const childStyleMap = ['min-w-[100%]', 'min-w-[50%]', 'min-w-[33.33%]', 'min-w-[25%]'];
1442
1442
  const SwipeListContainer = JSX(({ className = '', containerRef, activeIndex, visibleItemCount, gap = 0, padding = 0, snapAlign = 'snap-center', children, onVisibleItemsChange, onVisibleIndicesChange, }) => {
1443
1443
  const observerOptions = {
1444
1444
  sensitivity: 1,
@@ -1543,12 +1543,13 @@
1543
1543
  itemCount: count,
1544
1544
  isCyclic,
1545
1545
  });
1546
- return (jsxs(BlockWrapper, { className: `relative font-sans ${className}`, ...rest, children: [jsx(SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: ITEMS_GAP, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: renderChildren(rest) }), (scroll.canScrollLeft || scroll.canScrollRight) && isBlur ? (jsxs("div", { children: [jsx("div", { className: `${blurBaseStyle} left-0 bg-opacity-from-white` }), jsx("div", { className: `${blurBaseStyle} right-0 bg-opacity-to-white` })] })) : null, renderScrollButtons(scroll)] }));
1546
+ return (jsx(BlockWrapper, { className: `font-sans p-12 ${className}`, ...rest, children: jsxs("div", { className: "relative max-w-full", children: [jsx(SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: ITEMS_GAP, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: renderChildren(rest) }), (scroll.canScrollLeft || scroll.canScrollRight) && isBlur ? (jsxs("div", { children: [jsx("div", { className: `${blurBaseStyle} left-0 bg-opacity-from-white` }), jsx("div", { className: `${blurBaseStyle} right-0 bg-opacity-to-white` })] })) : null, renderScrollButtons(scroll)] }) }));
1547
1547
  });
1548
1548
  Carousel.childrenTypes = [
1549
1549
  'CarouselCard',
1550
+ 'CarouselCatalogCard',
1550
1551
  'CarouselTariffsCard',
1551
- 'CarouselLinks',
1552
+ 'CarouselProductCard',
1552
1553
  'CarouselProgramsCard',
1553
1554
  'CarouselInvestmentCard',
1554
1555
  ];
@@ -1561,6 +1562,41 @@
1561
1562
  };
1562
1563
  const CarouselCard = JSX(({ className = '', button, description, title, version = 'normal' }) => (jsx("section", { className: `flex pb-9 pl-12 ${CARD_WIDTH_MAP[version]} ${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 bg-white z-10 py-6 px-10 border border-solid border-green-light", children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M", align: "center" }), button ? jsx("div", { className: "mt-6", children: renderButton({ button }) }) : null] })] }) })));
1563
1564
 
1565
+ const cardStyleMap$2 = {
1566
+ black: 'bg-black',
1567
+ white: 'bg-white',
1568
+ };
1569
+ const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors, version = 'primary' }) => (jsxs("section", { className: `border box-border border-main-stroke p-7 min-w-[392px] flex flex-col justify-left ${VersionStyleMap[version]} ${className}`, role: "listitem", 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$1)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null, button ? renderButton({ button, buttonClassName: 'mt-5 w-full' }) : null] })));
1570
+ const renderColorOption$1 = (color, i) => (jsx("span", { className: `w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap$2[color]}` }, String(i)));
1571
+
1572
+ const BorderVersionStyleMap = {
1573
+ primary: 'border-main-stroke',
1574
+ secondary: 'border-white/50',
1575
+ };
1576
+
1577
+ 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] })] })));
1578
+
1579
+ const getItemListFontSize = (colValue) => (colValue === 1 ? 'text-h6' : 'text-l');
1580
+ const cardColumnsModeStyleMap = {
1581
+ 1: 'flex gap-y-2 flex-col',
1582
+ 2: 'flex gap-y-2 gap-x-10 flex-wrap',
1583
+ };
1584
+ const CarouselInvestmentCard = JSX(({ additionalDescription, cardsList = [], className = '', columnsMode = 1, description, image, title, version = 'primary', ...rest }) => {
1585
+ const tileTitle = title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
1586
+ const tileImage = image?.src ? (jsx(ImgInner, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
1587
+ return (jsx(BlockWrapper, { className: [
1588
+ 'relative text-left border border-solid box-border p-9 w-[697px]',
1589
+ VersionStyleMap[version],
1590
+ BorderVersionStyleMap[version],
1591
+ className,
1592
+ ].join(' '), ...rest, children: jsxs(BaseTile, { title: tileTitle, image: tileImage, children: [jsxs("div", { className: "flex justify-between mb-4", children: [description ? (jsx("div", { className: "w-1/3", children: jsx(Text, { size: "text-h6", children: description }) })) : null, additionalDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: VersionAdditionalStyleMap[version], children: additionalDescription })) : null] }), cardsList.length ? (jsx("ul", { className: `list-none m-0 p-0 ${cardColumnsModeStyleMap[columnsMode]}`, children: renderCardList(cardsList, columnsMode) })) : null] }) }));
1593
+ });
1594
+ const renderCardList = (cardsList, columnsMode) => {
1595
+ const CARDS_COUNT_MAP = [4, 9];
1596
+ const visibleCardsList = cardsList.slice(0, CARDS_COUNT_MAP[columnsMode - 1]);
1597
+ return visibleCardsList.map((item, i) => (jsxs("li", { className: columnsMode === 2 ? 'basis-[calc(50%-20px)]' : '', children: [item?.parameter ? (jsx("div", { className: "pr-2.5", children: jsx(Text, { size: getItemListFontSize(columnsMode), children: item.parameter }) })) : null, item?.parameterDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: item.parameterDescription })) : null] }, String(i))));
1598
+ };
1599
+
1564
1600
  const LINK_CLASS_NAME = `absolute border border-primary-main ml-3 px-6 py-5
1565
1601
  text-l-light bg-white text-primary-text flex w-[316px]
1566
1602
  justify-between items-center group-hover:text-primary-main z-10`;
@@ -1583,6 +1619,62 @@
1583
1619
  .map((link, index) => (jsx(LinkButton, { className: "m-1", ...link }, String(index)))) }, String(groupIndex)))) }));
1584
1620
  };
1585
1621
 
1622
+ const LIST_DOT_STYLE_MAP = {
1623
+ primary: 'bg-primary-text',
1624
+ secondary: 'bg-white',
1625
+ gray: 'bg-secondary-text',
1626
+ };
1627
+ const DOT_SIZE_MAP = {
1628
+ L: 'w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4',
1629
+ M: 'w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3',
1630
+ S: 'w-1 h-1 min-w-1 min-h-1 mr-2',
1631
+ };
1632
+ const ListItem = JSX(({ className = '', isDotted = true, children, version = 'primary', size = 'M' }) => {
1633
+ return (jsxs("div", { className: `font-sans flex items-baseline ${className}`, role: "listitem", children: [isDotted ? (jsx("div", { children: jsx("div", { className: `rounded-full align-middle inline-block ${LIST_DOT_STYLE_MAP[version]} ${DOT_SIZE_MAP[size]}` }) })) : null, jsx("span", { children: children })] }));
1634
+ });
1635
+
1636
+ const TEXT_STYLE_MAP = {
1637
+ primary: 'text-primary-text',
1638
+ secondary: 'text-white',
1639
+ gray: 'text-secondary-text',
1640
+ };
1641
+ const TEXT_SIZE_MAP = {
1642
+ S: 'text-l-light',
1643
+ M: 'text-h6',
1644
+ L: 'text-h5',
1645
+ };
1646
+ const ITEM_INDENT_MAP = {
1647
+ S: 'ml-2',
1648
+ M: 'ml-3',
1649
+ L: 'ml-4',
1650
+ };
1651
+ const List = JSX((props) => {
1652
+ const { className = '', hasIndent, isDotted, itemClassName = '', items, listItemSize = 'M', version = 'primary', } = props;
1653
+ if (!items?.length) {
1654
+ return null;
1655
+ }
1656
+ return (jsx("section", { className: `${TEXT_STYLE_MAP[version]} ${TEXT_SIZE_MAP[listItemSize]} ${className} ${hasIndent ? ITEM_INDENT_MAP[listItemSize] : ''}`, role: "list", children: items.map((item, i) => (jsx(ListItem, { className: `${itemClassName} mb-1.5`, isDotted: isDotted, version: version, size: listItemSize, children: item }, String(i)))) }));
1657
+ });
1658
+
1659
+ const descriptionStyleMap = {
1660
+ primary: 'text-secondary-text',
1661
+ secondary: 'text-white/80',
1662
+ };
1663
+ const BORDER_STYLE = 'box-border border-solid border border-main-stroke ';
1664
+ const CarouselProductCard = JSX(({ title, headlineSmallVersion = 'H6', description, additionalDescription, icon, items = [], button = {}, version = 'primary', isDotted = true, align = 'center', }) => {
1665
+ return (jsxs("section", { className: [
1666
+ 'flex flex-col justify-between items-stretch min-w-[260px] h-full w-full p-6',
1667
+ BORDER_STYLE,
1668
+ AlignText[align],
1669
+ VersionStyleMap[version],
1670
+ ].join(' '), role: "listitem", children: [jsxs("div", { className: "flex flex-col h-full", children: [renderImage$2(icon, version), renderCardTitle$1(headlineSmallVersion, title), renderDescription$3(description, title), renderItems$2(items, isDotted, version), renderAdditionalDescription$2(additionalDescription, version)] }), renderButton({ button, buttonClassName: 'mt-6' })] }));
1671
+ });
1672
+ const renderImage$2 = (image, version) => (jsxs("div", { className: "flex justify-center", children: [image?.src ? jsx(ImgInner, { className: "mb-5", image: image }) : null, image?.icon ? (jsx(ImgInner, { className: `w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full`, image: getIconWithVersion(image, version), asSVG: true })) : null] }));
1673
+ const renderCardTitle$1 = (headlineSmallVersion, title) => title ? jsx(Text, { size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
1674
+ const renderDescription$3 = (description, title) => description ? (jsx("div", { className: title ? 'mt-2' : '', children: jsx(Paragraph, { size: "text-l", children: description }) })) : null;
1675
+ const renderAdditionalDescription$2 = (additionalDescription, version = 'primary') => additionalDescription ? (jsx("div", { className: "mt-auto", children: jsx(Text, { size: "text-m", font: "font-light", color: descriptionStyleMap[version], children: additionalDescription }) })) : null;
1676
+ const renderItems$2 = (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, version: version })) : null;
1677
+
1586
1678
  const CarouselProgramsCard = JSX(({ className = '', title, icon, list = [], version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: `font-sans border border-main-stroke flex min-w-[536px] ${VersionStyleMap[version]} ${className}`, ...rest, children: [jsxs("div", { className: "w-[200px] min-w-[200px] self-end", 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$2) }) : null] })] })));
1587
1679
  const renderList$2 = (_, 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)));
1588
1680
 
@@ -1706,8 +1798,6 @@
1706
1798
  };
1707
1799
  const ErrorBlock = JSX(({ className = '', title, subtitle, error, button }) => (jsxs("section", { className: `flex flex-col justify-center items-center mt-12 ${className}`, children: [jsx("div", { className: "flex justify-center py-20", children: renderErrorContent(error) }), title ? jsx(Heading, { headingType: "h1", className: "text-left mb-4", title: title }) : null, subtitle ? (jsx("div", { className: "font-sans text-xl-light mb-7 max-w-[613px] text-center", children: subtitle })) : null, button?.text ? (jsx(Button, { className: "py-4 px-9", version: button?.version, ...button, children: button.text })) : null] })));
1708
1800
 
1709
- 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] })] })));
1710
-
1711
1801
  var Currency;
1712
1802
  (function (Currency) {
1713
1803
  Currency["RUB"] = "RUB";
@@ -2100,44 +2190,7 @@
2100
2190
  mini: 276,
2101
2191
  };
2102
2192
 
2103
- const LIST_DOT_STYLE_MAP = {
2104
- primary: 'bg-primary-text',
2105
- secondary: 'bg-white',
2106
- gray: 'bg-secondary-text',
2107
- };
2108
- const DOT_SIZE_MAP = {
2109
- L: 'w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4',
2110
- M: 'w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3',
2111
- S: 'w-1 h-1 min-w-1 min-h-1 mr-2',
2112
- };
2113
- const ListItem = JSX(({ className = '', isDotted = true, children, version = 'primary', size = 'M' }) => {
2114
- return (jsxs("div", { className: `font-sans flex items-baseline ${className}`, role: "listitem", children: [isDotted ? (jsx("div", { children: jsx("div", { className: `rounded-full align-middle inline-block ${LIST_DOT_STYLE_MAP[version]} ${DOT_SIZE_MAP[size]}` }) })) : null, jsx("span", { children: children })] }));
2115
- });
2116
-
2117
- const TEXT_STYLE_MAP = {
2118
- primary: 'text-primary-text',
2119
- secondary: 'text-white',
2120
- gray: 'text-secondary-text',
2121
- };
2122
- const TEXT_SIZE_MAP = {
2123
- S: 'text-l-light',
2124
- M: 'text-h6',
2125
- L: 'text-h5',
2126
- };
2127
- const ITEM_INDENT_MAP = {
2128
- S: 'ml-2',
2129
- M: 'ml-3',
2130
- L: 'ml-4',
2131
- };
2132
- const List = JSX((props) => {
2133
- const { className = '', hasIndent, isDotted, itemClassName = '', items, listItemSize = 'M', version = 'primary', } = props;
2134
- if (!items?.length) {
2135
- return null;
2136
- }
2137
- return (jsx("section", { className: `${TEXT_STYLE_MAP[version]} ${TEXT_SIZE_MAP[listItemSize]} ${className} ${hasIndent ? ITEM_INDENT_MAP[listItemSize] : ''}`, role: "list", children: items.map((item, i) => (jsx(ListItem, { className: `${itemClassName} mb-1.5`, isDotted: isDotted, version: version, size: listItemSize, children: item }, String(i)))) }));
2138
- });
2139
-
2140
- const GalleryCardInner = JSX(({ title, headlineSmallVersion = 'H6', description, additionalDescription, icon, items, button, version, isFullWidth = true, isDotted = true, align = 'center', }) => (jsxs("div", { className: `h-full flex flex-col justify-between ${AlignText[align]}`, children: [jsxs("div", { className: "flex flex-col h-full", children: [renderImage$1(icon, version), renderCardTitle(headlineSmallVersion, title), renderDescription$2(description, title), items?.length ? renderItems$1(items, isDotted, version) : null, renderAdditionalDescription$1(additionalDescription)] }), button?.text
2193
+ const GalleryCardInner = JSX(({ title, headlineSmallVersion = 'H6', description, additionalDescription, icon, items, button, version, isFullWidth = true, isDotted = true, align = 'center', }) => (jsxs("div", { className: `h-full flex flex-col justify-between ${AlignText[align]}`, children: [jsxs("div", { className: "flex flex-col h-full", children: [renderImage$1(icon, version), renderCardTitle(headlineSmallVersion, title), renderDescription$2(description, title), items?.length ? renderItems$1(items, isDotted, version) : null, renderAdditionalDescription$1(additionalDescription, version)] }), button?.text
2141
2194
  ? renderButton({
2142
2195
  button,
2143
2196
  buttonClassName: `mt-6 ${isFullWidth ? '' : 'self-center'}`,
@@ -2146,7 +2199,7 @@
2146
2199
  const renderImage$1 = (image, version) => (jsxs("div", { className: "flex justify-center", children: [image?.src ? jsx(ImgInner, { className: "mb-5", image: image }) : null, image?.icon ? (jsx(ImgInner, { className: `w-8 h-8 min-w-8 mb-5 rounded-full`, image: getIconWithVersion(image, version), asSVG: true })) : null] }));
2147
2200
  const renderCardTitle = (headlineSmallVersion, title) => title ? jsx("div", { className: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
2148
2201
  const renderDescription$2 = (description, title) => description ? jsx("div", { className: `text-l ${title ? 'mt-2' : ''}`, children: description }) : null;
2149
- const renderAdditionalDescription$1 = (additionalDescription) => additionalDescription ? (jsx("div", { className: "text-m-light text-secondary-text mt-auto", children: additionalDescription })) : null;
2202
+ const renderAdditionalDescription$1 = (additionalDescription, version) => additionalDescription ? (jsx("div", { className: `text-m-light mt-auto ${VersionAdditionalStyleMap[version ?? 'primary']}`, children: additionalDescription })) : null;
2150
2203
  const renderItems$1 = (items, isDotted, version = 'primary') => (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, version: version }));
2151
2204
 
2152
2205
  const GalleryContainer = JSX(({ headlineVersion = 'M', cards = [], version = 'normal', activeIndex, ...rest }) => (jsxs("div", { children: [jsx(Headline, { ...rest, className: "!p-0", headlineVersion: headlineVersion, align: "center" }), jsx("div", { className: `flex mt-8 ${cards?.length <= galleryLengthForScrollMap[version] ? 'justify-center' : ''} duration-1000`, style: { transform: `translateX(-${activeIndex * cardWidthMap[version]}px)` }, role: "list", children: cards?.map((card, i) => renderCard({ card, version }, i)) })] })));
@@ -3090,11 +3143,6 @@
3090
3143
  : null, breadcrumbs?.length ? (jsx("div", { className: "text-xs-light mb-6", children: joinList(jsx("span", { className: `mx-2 ${breadcrumbsStyleMap[version]}`, children: "/" }))(breadcrumbs.map((breadcrumb, i) => (jsx(Breadcrumb, { className: breadcrumbsStyleMap[version], ...breadcrumb }, String(i))))) })) : null, jsx(ProductBlockInner, { version: version, ...rest })] }));
3091
3144
  });
3092
3145
 
3093
- const BorderVersionStyleMap = {
3094
- primary: 'border-main-stroke',
3095
- secondary: 'border-white/50',
3096
- };
3097
-
3098
3146
  const productBlockStyleMap = {
3099
3147
  primary: { title: 'text-secondary-text', text: 'text-secondary-text' },
3100
3148
  secondary: { title: 'text-white', text: 'text-white/80' },
@@ -3135,36 +3183,24 @@
3135
3183
  }
3136
3184
 
3137
3185
  const ProductTile = JSX(({ className = '', title, headlineVersion = 'S', description, additionalDescription, benefits = [], buttons, image, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: `overflow-hidden font-sans p-9 box-border relative justify-between grid min-h-[364px]
3138
- ${className} ${VersionStyleMap[version]} ${getTileRightPadding(className)}`, ...rest, children: [jsx(Headline, { className: `!p-0 !bg-transparent z-10 ${title || description ? 'mb-3.5' : ''}`, as: "h2", title: title, description: description, headlineVersion: headlineVersion, bgColorHeadline: version, align: "left", ...rest }), renderBenefits(benefits, version, image), additionalDescription
3139
- ? renderAdditionalDescription(additionalDescription, image, version)
3140
- : null, buttons?.length ? (jsx(ButtonSection, { buttons: buttons, className: "flex self-end mt-5 gap-4 z-10 text-l" })) : null, image?.src ? jsx(ImgInner, { className: "absolute right-0 bottom-0", image: image }) : null] })));
3186
+ ${className} ${VersionStyleMap[version]} ${getTileRightPadding(className)}`, ...rest, children: [jsx(Headline, { className: `!p-0 !bg-transparent z-10 ${title || description ? 'mb-3.5' : ''}`, as: "h2", title: title, description: description, headlineVersion: headlineVersion, bgColorHeadline: version, align: "left", ...rest }), renderBenefits(benefits, version, image), additionalDescription ? renderAdditionalDescription(additionalDescription, image) : null, buttons?.length ? (jsx(ButtonSection, { buttons: buttons, className: "flex self-end mt-5 gap-4 z-10 text-l" })) : null, image?.src ? jsx(ImgInner, { className: "absolute right-0 bottom-0", image: image }) : null] })));
3141
3187
  function renderBenefits(benefits, version, image) {
3142
3188
  // picture width = 242px. Text can overlay picture 20px deep. Outer paddings_x = 36px. 242-36-20 = 186px
3143
3189
  const BENEFITS_WIDTH = image?.src ? 'max-w-[calc(100%-186px)]' : '100%';
3144
3190
  return (jsx("div", { className: `z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline
3145
3191
  ${BENEFITS_WIDTH}`, children: benefits.length ? benefits.map(renderBenefit(version)) : null }));
3146
3192
  }
3147
- function renderBenefit(version = 'primary') {
3148
- const labelStyleMap = {
3149
- primary: 'text-secondary-text',
3150
- secondary: 'text-white',
3151
- };
3152
- return function renderVersionedBenefit(benefit, i) {
3153
- const { label = '', description = '' } = benefit;
3154
- return [
3155
- jsx("div", { className: "text-h6", children: label }, `label-${i}`),
3156
- jsx("div", { className: `text-m-light ${labelStyleMap[version]}`, children: description }, `desc-${i}`),
3157
- ];
3158
- };
3159
- }
3160
- function renderAdditionalDescription(additionalDescription, image, version = 'primary') {
3161
- const descStyleMap = {
3162
- primary: 'text-secondary-text',
3163
- secondary: 'text-white',
3164
- };
3193
+ const renderBenefit = (version = 'primary') => (benefit, i) => {
3194
+ const { label = '', description = '' } = benefit;
3195
+ return [
3196
+ jsx("div", { className: "text-h6", children: label }, `label-${i}`),
3197
+ jsx("div", { className: `text-m-light ${VersionAdditionalStyleMap[version]}`, children: description }, `desc-${i}`),
3198
+ ];
3199
+ };
3200
+ function renderAdditionalDescription(additionalDescription, image) {
3165
3201
  // picture width = 242px. Text can overlay picture 20px deep. Outer paddings_x = 36px. 242-36-20 = 186px
3166
3202
  const DESCRIPTION_WIDTH = image?.src ? 'max-w-[calc(100%-186px)]' : '100%';
3167
- return (jsx("div", { className: `text-m-light mt-2.5 z-10 ${DESCRIPTION_WIDTH} ${descStyleMap[version]}`, children: additionalDescription }));
3203
+ return (jsx("div", { className: `text-m-light mt-2.5 z-10 ${DESCRIPTION_WIDTH}`, children: additionalDescription }));
3168
3204
  }
3169
3205
 
3170
3206
  const PromoTile = JSX(({ className = '', title = 'Акции и спецпредложения', date, description, buttons = [], version = 'primary', ...rest }) => (jsx(BlockWrapper, { className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${VersionStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, ...rest, children: jsx(BaseTile, { title: title ? (jsx(Headline, { title: title, className: `!p-0 max-w-[600px]`, headlineVersion: getTileHeadingType(className), bgColorHeadline: version, align: "left", as: "h2", ...rest })) : null, buttons: buttons?.length ? jsx(ButtonSection, { buttons: buttons, className: "flex gap-3" }) : null, children: jsxs("div", { className: "mt-1.5", children: [date ? jsx("div", { className: "text-s mb-2", children: formatDate(date) }) : null, jsx("div", { className: "text-l", children: description })] }) }) })));
@@ -3723,10 +3759,10 @@
3723
3759
  right: 'items-end',
3724
3760
  };
3725
3761
  const gapStyleMap = {
3726
- XXL: 'gap-10',
3727
- XL: 'gap-8',
3728
- L: 'gap-4',
3729
- M: 'gap-3',
3762
+ XXL: 'gap-12',
3763
+ XL: 'gap-10',
3764
+ L: 'gap-8',
3765
+ M: 'gap-4',
3730
3766
  S: 'gap-2',
3731
3767
  XS: 'gap-1',
3732
3768
  '': '',
@@ -3736,15 +3772,20 @@
3736
3772
  primary: 'bg-white',
3737
3773
  secondary: 'bg-primary-main',
3738
3774
  };
3739
- const VerticalLayout = JSX(({ className = '', gap = '', align, version = 'transparent', ...rest }) => (jsx(BlockWrapper, { className: [
3740
- 'flex flex-col',
3741
- gapStyleMap[gap],
3742
- align && alignStyle[align],
3743
- backgroundStyleMap[version],
3744
- className,
3745
- ]
3746
- .filter(Boolean)
3747
- .join(' '), ...rest, children: renderChildren(rest) })));
3775
+ const VerticalLayout = JSX(({ className = '', gap = '', align, isPadding = false, isInnerPadding = true, version = 'transparent', options, ...rest }) => {
3776
+ const paddingStyle = isPadding ? 'p-12' : '';
3777
+ const innerPaddingStyle = isInnerPadding ? '' : '!p-0';
3778
+ return (jsx(BlockWrapper, { className: [
3779
+ 'flex flex-col [&>*]:max-w-full',
3780
+ paddingStyle,
3781
+ gapStyleMap[gap],
3782
+ align && alignStyle[align],
3783
+ backgroundStyleMap[version],
3784
+ className,
3785
+ ]
3786
+ .filter(Boolean)
3787
+ .join(' '), ...rest, children: renderChildren({ ...rest, options: { ...options, className: innerPaddingStyle } }) }));
3788
+ });
3748
3789
  VerticalLayout.childrenTypes = {
3749
3790
  exclude: ['VerticalLayout'],
3750
3791
  };
@@ -3757,25 +3798,6 @@
3757
3798
  return (jsxs(BlockWrapper, { className: `bg-white ${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] }));
3758
3799
  });
3759
3800
 
3760
- const getItemListFontSize = (colValue) => (colValue === 1 ? 'text-h6' : 'text-l');
3761
- const cardColumnsModeStyleMap = {
3762
- 1: 'flex gap-y-2 flex-col',
3763
- 2: 'flex gap-y-2 gap-x-10 flex-wrap',
3764
- };
3765
- const CarouselInvestmentCard = JSX(({ additionalDescription, cardsList = [], className = '', columnsMode = 1, description, image, title, version = 'primary', ...rest }) => {
3766
- const tileTitle = title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
3767
- const tileImage = image?.src ? (jsx(ImgInner, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
3768
- return (jsx(BlockWrapper, { className: `relative text-left border border-solid box-border
3769
- p-9 w-[697px]
3770
- ${BorderVersionStyleMap[version]}
3771
- ${className}`, ...rest, children: jsxs(BaseTile, { title: tileTitle, image: tileImage, children: [jsxs("div", { className: "flex justify-between mb-4", children: [description ? jsx("span", { className: "text-h6 w-1/3", children: description }) : null, additionalDescription ? (jsx("span", { className: "text-m-light text-secondary-text", children: additionalDescription })) : null] }), cardsList.length ? (jsx("ul", { className: `list-none m-0 p-0 ${cardColumnsModeStyleMap[columnsMode]}`, children: renderCardList(cardsList, columnsMode) })) : null] }) }));
3772
- });
3773
- const renderCardList = (cardsList, columnsMode) => {
3774
- const CARDS_COUNT_MAP = [4, 9];
3775
- const visibleCardsList = cardsList.slice(0, CARDS_COUNT_MAP[columnsMode - 1]);
3776
- return visibleCardsList.map((item, i) => (jsxs("li", { className: columnsMode === 2 ? 'basis-[calc(50%-20px)]' : '', children: [item?.parameter ? (jsx("span", { className: `pr-2.5 ${getItemListFontSize(columnsMode)}`, children: item.parameter })) : null, item?.parameterDescription ? (jsx("span", { className: "text-m-light text-secondary-text", children: item.parameterDescription })) : null] }, String(i))));
3777
- };
3778
-
3779
3801
  const Blocks = {
3780
3802
  Accordion,
3781
3803
  AccordionItem,
@@ -3787,7 +3809,10 @@
3787
3809
  Calculator,
3788
3810
  Carousel,
3789
3811
  CarouselCard,
3812
+ CarouselCatalogCard,
3813
+ CarouselInvestmentCard,
3790
3814
  CarouselLinks,
3815
+ CarouselProductCard,
3791
3816
  CarouselProgramsCard,
3792
3817
  CarouselTariffsCard,
3793
3818
  Catalog,
@@ -3827,7 +3852,6 @@
3827
3852
  Tile,
3828
3853
  VerticalLayout,
3829
3854
  Video,
3830
- CarouselInvestmentCard,
3831
3855
  };
3832
3856
 
3833
3857
  const debounce = (fn, delay = 600) => {
@@ -3955,7 +3979,7 @@
3955
3979
  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" }) }));
3956
3980
  }
3957
3981
 
3958
- const packageVersion = "0.6.38";
3982
+ const packageVersion = "0.6.40";
3959
3983
 
3960
3984
  exports.Blocks = Blocks;
3961
3985
  exports.ContentPage = ContentPage;