@redneckz/wildless-cms-uni-blocks 0.6.39 → 0.6.41

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 (416) hide show
  1. package/bundle/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +166 -122
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ButtonBlock/ButtonBlock.d.ts +6 -0
  6. package/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +8 -0
  7. package/bundle/components/Carousel/CarouselContent.d.ts +1 -1
  8. package/bundle/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
  9. package/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
  10. package/bundle/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
  11. package/bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
  12. package/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
  13. package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
  14. package/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
  15. package/bundle/components/Header/HeaderTop.d.ts +2 -0
  16. package/bundle/components/ProductTile/ProductTileContent.d.ts +2 -0
  17. package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
  18. package/bundle/model/BlockVersion.d.ts +1 -0
  19. package/bundle/model/LogoType.d.ts +5 -0
  20. package/bundle/services/sitemap/SitemapProps.d.ts +2 -4
  21. package/bundle/ui-kit/Button/ButtonSection.d.ts +1 -1
  22. package/bundle/ui-kit/Logo/Logo.d.ts +2 -5
  23. package/bundle/ui-kit/Logo/Logo.mobile.d.ts +2 -0
  24. package/bundle/ui-kit/Logo/renderImage.d.ts +6 -0
  25. package/bundle/ui-kit/Logo/renderTitle.d.ts +3 -0
  26. package/bundle/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
  27. package/dist/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  28. package/dist/BlockRenderer/renderBlock.js +2 -2
  29. package/dist/BlockRenderer/renderBlock.js.map +1 -1
  30. package/dist/components/Blocks.js +8 -2
  31. package/dist/components/Blocks.js.map +1 -1
  32. package/dist/components/ButtonBlock/ButtonBlock.d.ts +6 -0
  33. package/dist/components/ButtonBlock/ButtonBlock.js +11 -0
  34. package/dist/components/ButtonBlock/ButtonBlock.js.map +1 -0
  35. package/dist/components/ButtonBlock/ButtonBlockContent.d.ts +8 -0
  36. package/dist/components/ButtonBlock/ButtonBlockContent.js +2 -0
  37. package/dist/components/ButtonBlock/ButtonBlockContent.js.map +1 -0
  38. package/dist/components/Calculator/constants.js +1 -1
  39. package/dist/components/Carousel/Carousel.js +3 -2
  40. package/dist/components/Carousel/Carousel.js.map +1 -1
  41. package/dist/components/Carousel/CarouselContent.d.ts +1 -1
  42. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
  43. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +17 -0
  44. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -0
  45. package/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
  46. package/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.js +2 -0
  47. package/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.js.map +1 -0
  48. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
  49. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +12 -8
  50. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  51. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
  52. package/dist/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
  53. package/dist/components/CarouselProductCard/CarouselProductCard.js +32 -0
  54. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -0
  55. package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
  56. package/dist/components/CarouselProductCard/CarouselProductCardContent.js +2 -0
  57. package/dist/components/CarouselProductCard/CarouselProductCardContent.js.map +1 -0
  58. package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
  59. package/dist/components/Gallery/GalleryCardInner.js +3 -2
  60. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  61. package/dist/components/Header/Header.mobile.js +2 -2
  62. package/dist/components/Header/Header.mobile.js.map +1 -1
  63. package/dist/components/Header/HeaderTop.d.ts +2 -0
  64. package/dist/components/Header/HeaderTop.js +1 -1
  65. package/dist/components/Header/HeaderTop.js.map +1 -1
  66. package/dist/components/ProductTile/ProductTile.js +17 -23
  67. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  68. package/dist/components/ProductTile/ProductTileContent.d.ts +2 -0
  69. package/dist/components/VerticalLayout/VerticalLayout.js +18 -13
  70. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  71. package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
  72. package/dist/model/BlockVersion.d.ts +1 -0
  73. package/dist/model/BlockVersion.js +5 -1
  74. package/dist/model/BlockVersion.js.map +1 -1
  75. package/dist/model/LogoType.d.ts +5 -0
  76. package/dist/model/LogoType.js +2 -0
  77. package/dist/model/LogoType.js.map +1 -0
  78. package/dist/services/sitemap/SitemapProps.d.ts +2 -4
  79. package/dist/ui-kit/Button/ButtonSection.d.ts +1 -1
  80. package/dist/ui-kit/Button/ButtonSection.js +2 -2
  81. package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  82. package/dist/ui-kit/Logo/Logo.d.ts +2 -5
  83. package/dist/ui-kit/Logo/Logo.js +3 -21
  84. package/dist/ui-kit/Logo/Logo.js.map +1 -1
  85. package/dist/ui-kit/Logo/Logo.mobile.d.ts +2 -0
  86. package/dist/ui-kit/Logo/Logo.mobile.js +4 -15
  87. package/dist/ui-kit/Logo/Logo.mobile.js.map +1 -1
  88. package/dist/ui-kit/Logo/renderImage.d.ts +6 -0
  89. package/dist/ui-kit/Logo/renderImage.js +20 -0
  90. package/dist/ui-kit/Logo/renderImage.js.map +1 -0
  91. package/dist/ui-kit/Logo/renderTitle.d.ts +3 -0
  92. package/dist/ui-kit/Logo/renderTitle.js +12 -0
  93. package/dist/ui-kit/Logo/renderTitle.js.map +1 -0
  94. package/dist/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
  95. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  96. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  97. package/lib/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  98. package/lib/BlockRenderer/renderBlock.js +2 -2
  99. package/lib/BlockRenderer/renderBlock.js.map +1 -1
  100. package/lib/common.css +1 -1
  101. package/lib/components/Blocks.js +8 -2
  102. package/lib/components/Blocks.js.map +1 -1
  103. package/lib/components/ButtonBlock/ButtonBlock.d.ts +6 -0
  104. package/lib/components/ButtonBlock/ButtonBlock.fixture.d.ts +6 -0
  105. package/lib/components/ButtonBlock/ButtonBlock.js +9 -0
  106. package/lib/components/ButtonBlock/ButtonBlock.js.map +1 -0
  107. package/lib/components/ButtonBlock/ButtonBlockContent.d.ts +8 -0
  108. package/lib/components/ButtonBlock/ButtonBlockContent.js +2 -0
  109. package/lib/components/ButtonBlock/ButtonBlockContent.js.map +1 -0
  110. package/lib/components/Calculator/constants.js +1 -1
  111. package/lib/components/Carousel/Carousel.fixture.d.ts +4 -1
  112. package/lib/components/Carousel/Carousel.js +3 -2
  113. package/lib/components/Carousel/Carousel.js.map +1 -1
  114. package/lib/components/Carousel/CarouselContent.d.ts +1 -1
  115. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
  116. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.fixture.d.ts +16 -0
  117. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +15 -0
  118. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -0
  119. package/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
  120. package/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.js +2 -0
  121. package/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.js.map +1 -0
  122. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
  123. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +12 -8
  124. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  125. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
  126. package/lib/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
  127. package/lib/components/CarouselProductCard/CarouselProductCard.fixture.d.ts +8 -0
  128. package/lib/components/CarouselProductCard/CarouselProductCard.js +30 -0
  129. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -0
  130. package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
  131. package/lib/components/CarouselProductCard/CarouselProductCardContent.js +2 -0
  132. package/lib/components/CarouselProductCard/CarouselProductCardContent.js.map +1 -0
  133. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.d.ts +1 -1
  134. package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
  135. package/lib/components/Gallery/GalleryCardInner.js +3 -2
  136. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  137. package/lib/components/Header/Header.mobile.js +2 -2
  138. package/lib/components/Header/Header.mobile.js.map +1 -1
  139. package/lib/components/Header/HeaderTop.d.ts +2 -0
  140. package/lib/components/Header/HeaderTop.js +1 -1
  141. package/lib/components/Header/HeaderTop.js.map +1 -1
  142. package/lib/components/ProductTile/ProductTile.fixture.d.ts +3 -1
  143. package/lib/components/ProductTile/ProductTile.js +18 -24
  144. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  145. package/lib/components/ProductTile/ProductTileContent.d.ts +2 -0
  146. package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +2 -1
  147. package/lib/components/VerticalLayout/VerticalLayout.js +18 -13
  148. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  149. package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
  150. package/lib/model/BlockVersion.d.ts +1 -0
  151. package/lib/model/BlockVersion.js +4 -0
  152. package/lib/model/BlockVersion.js.map +1 -1
  153. package/lib/model/LogoType.d.ts +5 -0
  154. package/lib/model/LogoType.js +2 -0
  155. package/lib/model/LogoType.js.map +1 -0
  156. package/lib/services/sitemap/SitemapProps.d.ts +2 -4
  157. package/lib/ui-kit/Button/ButtonSection.d.ts +1 -1
  158. package/lib/ui-kit/Button/ButtonSection.js +2 -2
  159. package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  160. package/lib/ui-kit/Logo/Logo.d.ts +2 -5
  161. package/lib/ui-kit/Logo/Logo.js +4 -22
  162. package/lib/ui-kit/Logo/Logo.js.map +1 -1
  163. package/lib/ui-kit/Logo/Logo.mobile.d.ts +2 -0
  164. package/lib/ui-kit/Logo/Logo.mobile.js +5 -16
  165. package/lib/ui-kit/Logo/Logo.mobile.js.map +1 -1
  166. package/lib/ui-kit/Logo/renderImage.d.ts +5 -0
  167. package/lib/ui-kit/Logo/renderImage.js +17 -0
  168. package/lib/ui-kit/Logo/renderImage.js.map +1 -0
  169. package/lib/ui-kit/Logo/renderTitle.d.ts +2 -0
  170. package/lib/ui-kit/Logo/renderTitle.js +9 -0
  171. package/lib/ui-kit/Logo/renderTitle.js.map +1 -0
  172. package/lib/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
  173. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  174. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  175. package/mobile/bundle/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  176. package/mobile/bundle/bundle.umd.js +23 -12
  177. package/mobile/bundle/bundle.umd.min.js +1 -1
  178. package/mobile/bundle/components/ButtonBlock/ButtonBlock.d.ts +6 -0
  179. package/mobile/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +8 -0
  180. package/mobile/bundle/components/Carousel/CarouselContent.d.ts +1 -1
  181. package/mobile/bundle/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
  182. package/mobile/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
  183. package/mobile/bundle/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
  184. package/mobile/bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
  185. package/mobile/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
  186. package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
  187. package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
  188. package/mobile/bundle/components/Header/HeaderTop.d.ts +2 -0
  189. package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +2 -0
  190. package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
  191. package/mobile/bundle/model/BlockVersion.d.ts +1 -0
  192. package/mobile/bundle/model/LogoType.d.ts +5 -0
  193. package/mobile/bundle/services/sitemap/SitemapProps.d.ts +2 -4
  194. package/mobile/bundle/ui-kit/Button/ButtonSection.d.ts +1 -1
  195. package/mobile/bundle/ui-kit/Logo/Logo.d.ts +2 -0
  196. package/mobile/bundle/ui-kit/Logo/renderImage.d.ts +6 -0
  197. package/mobile/bundle/ui-kit/Logo/renderTitle.d.ts +3 -0
  198. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
  199. package/mobile/dist/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  200. package/mobile/dist/BlockRenderer/renderBlock.js +2 -2
  201. package/mobile/dist/BlockRenderer/renderBlock.js.map +1 -1
  202. package/mobile/dist/components/ButtonBlock/ButtonBlock.d.ts +6 -0
  203. package/mobile/dist/components/ButtonBlock/ButtonBlock.js +11 -0
  204. package/mobile/dist/components/ButtonBlock/ButtonBlock.js.map +1 -0
  205. package/mobile/dist/components/ButtonBlock/ButtonBlockContent.d.ts +8 -0
  206. package/mobile/dist/components/ButtonBlock/ButtonBlockContent.js +2 -0
  207. package/mobile/dist/components/ButtonBlock/ButtonBlockContent.js.map +1 -0
  208. package/mobile/dist/components/Calculator/constants.js +1 -1
  209. package/mobile/dist/components/Carousel/Carousel.js +3 -2
  210. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  211. package/mobile/dist/components/Carousel/CarouselContent.d.ts +1 -1
  212. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
  213. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +17 -0
  214. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -0
  215. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
  216. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.js +2 -0
  217. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.js.map +1 -0
  218. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
  219. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +12 -8
  220. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  221. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
  222. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
  223. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +32 -0
  224. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -0
  225. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
  226. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.js +2 -0
  227. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.js.map +1 -0
  228. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
  229. package/mobile/dist/components/Gallery/GalleryCardInner.js +3 -2
  230. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  231. package/mobile/dist/components/Header/Header.js +2 -2
  232. package/mobile/dist/components/Header/Header.js.map +1 -1
  233. package/mobile/dist/components/Header/HeaderTop.d.ts +2 -0
  234. package/mobile/dist/components/Header/HeaderTop.js +1 -1
  235. package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
  236. package/mobile/dist/components/ProductTile/ProductTile.js +17 -23
  237. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  238. package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +2 -0
  239. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +18 -13
  240. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  241. package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
  242. package/mobile/dist/model/BlockVersion.d.ts +1 -0
  243. package/mobile/dist/model/BlockVersion.js +5 -1
  244. package/mobile/dist/model/BlockVersion.js.map +1 -1
  245. package/mobile/dist/model/LogoType.d.ts +5 -0
  246. package/mobile/dist/model/LogoType.js +2 -0
  247. package/mobile/dist/model/LogoType.js.map +1 -0
  248. package/mobile/dist/services/sitemap/SitemapProps.d.ts +2 -4
  249. package/mobile/dist/ui-kit/Button/ButtonSection.d.ts +1 -1
  250. package/mobile/dist/ui-kit/Button/ButtonSection.js +2 -2
  251. package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  252. package/mobile/dist/ui-kit/Logo/Logo.d.ts +2 -0
  253. package/mobile/dist/ui-kit/Logo/Logo.js +4 -15
  254. package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
  255. package/mobile/dist/ui-kit/Logo/renderImage.d.ts +6 -0
  256. package/mobile/dist/ui-kit/Logo/renderImage.js +20 -0
  257. package/mobile/dist/ui-kit/Logo/renderImage.js.map +1 -0
  258. package/mobile/dist/ui-kit/Logo/renderTitle.d.ts +3 -0
  259. package/mobile/dist/ui-kit/Logo/renderTitle.js +12 -0
  260. package/mobile/dist/ui-kit/Logo/renderTitle.js.map +1 -0
  261. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
  262. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  263. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  264. package/mobile/lib/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  265. package/mobile/lib/BlockRenderer/renderBlock.js +2 -2
  266. package/mobile/lib/BlockRenderer/renderBlock.js.map +1 -1
  267. package/mobile/lib/components/ButtonBlock/ButtonBlock.d.ts +6 -0
  268. package/mobile/lib/components/ButtonBlock/ButtonBlock.js +9 -0
  269. package/mobile/lib/components/ButtonBlock/ButtonBlock.js.map +1 -0
  270. package/mobile/lib/components/ButtonBlock/ButtonBlockContent.d.ts +8 -0
  271. package/mobile/lib/components/ButtonBlock/ButtonBlockContent.js +2 -0
  272. package/mobile/lib/components/ButtonBlock/ButtonBlockContent.js.map +1 -0
  273. package/mobile/lib/components/Calculator/constants.js +1 -1
  274. package/mobile/lib/components/Carousel/Carousel.js +3 -2
  275. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  276. package/mobile/lib/components/Carousel/CarouselContent.d.ts +1 -1
  277. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
  278. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +15 -0
  279. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -0
  280. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
  281. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.js +2 -0
  282. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.js.map +1 -0
  283. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
  284. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +12 -8
  285. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  286. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
  287. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
  288. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +30 -0
  289. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -0
  290. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
  291. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.js +2 -0
  292. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.js.map +1 -0
  293. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
  294. package/mobile/lib/components/Gallery/GalleryCardInner.js +3 -2
  295. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  296. package/mobile/lib/components/Header/Header.js +2 -2
  297. package/mobile/lib/components/Header/Header.js.map +1 -1
  298. package/mobile/lib/components/Header/HeaderTop.d.ts +2 -0
  299. package/mobile/lib/components/Header/HeaderTop.js +1 -1
  300. package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
  301. package/mobile/lib/components/ProductTile/ProductTile.js +18 -24
  302. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  303. package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +2 -0
  304. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +18 -13
  305. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  306. package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
  307. package/mobile/lib/model/BlockVersion.d.ts +1 -0
  308. package/mobile/lib/model/BlockVersion.js +4 -0
  309. package/mobile/lib/model/BlockVersion.js.map +1 -1
  310. package/mobile/lib/model/LogoType.d.ts +5 -0
  311. package/mobile/lib/model/LogoType.js +2 -0
  312. package/mobile/lib/model/LogoType.js.map +1 -0
  313. package/mobile/lib/services/sitemap/SitemapProps.d.ts +2 -4
  314. package/mobile/lib/ui-kit/Button/ButtonSection.d.ts +1 -1
  315. package/mobile/lib/ui-kit/Button/ButtonSection.js +2 -2
  316. package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  317. package/mobile/lib/ui-kit/Logo/Logo.d.ts +2 -0
  318. package/mobile/lib/ui-kit/Logo/Logo.js +5 -16
  319. package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
  320. package/mobile/lib/ui-kit/Logo/renderImage.d.ts +6 -0
  321. package/mobile/lib/ui-kit/Logo/renderImage.js +17 -0
  322. package/mobile/lib/ui-kit/Logo/renderImage.js.map +1 -0
  323. package/mobile/lib/ui-kit/Logo/renderTitle.d.ts +3 -0
  324. package/mobile/lib/ui-kit/Logo/renderTitle.js +9 -0
  325. package/mobile/lib/ui-kit/Logo/renderTitle.js.map +1 -0
  326. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
  327. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  328. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  329. package/mobile/src/BlockRenderer/BlockRendererOptions.ts +1 -0
  330. package/mobile/src/BlockRenderer/renderBlock.tsx +2 -1
  331. package/mobile/src/components/ButtonBlock/ButtonBlock.example.json +10 -0
  332. package/mobile/src/components/ButtonBlock/ButtonBlock.tsx +17 -0
  333. package/mobile/src/components/ButtonBlock/ButtonBlock.ui.json +12 -0
  334. package/mobile/src/components/ButtonBlock/ButtonBlockContent.ts +9 -0
  335. package/mobile/src/components/Calculator/constants.ts +1 -1
  336. package/mobile/src/components/Carousel/Carousel.example.json +0 -1
  337. package/mobile/src/components/Carousel/Carousel.tsx +21 -18
  338. package/mobile/src/components/Carousel/CarouselContent.ts +1 -1
  339. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +17 -0
  340. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +62 -0
  341. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.ui.json +10 -0
  342. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +25 -0
  343. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +33 -14
  344. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCardContent.ts +5 -5
  345. package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +21 -0
  346. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +102 -0
  347. package/mobile/src/components/CarouselProductCard/CarouselProductCard.ui.json +18 -0
  348. package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +51 -0
  349. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +1 -1
  350. package/mobile/src/components/ContactsBlock/ContactsBlock.example.json +1 -1
  351. package/mobile/src/components/Gallery/GalleryCardInner.tsx +6 -3
  352. package/mobile/src/components/Header/Header.tsx +2 -2
  353. package/mobile/src/components/Header/HeaderTop.tsx +4 -2
  354. package/mobile/src/components/ProductTile/ProductTile.example.json +2 -1
  355. package/mobile/src/components/ProductTile/ProductTile.tsx +41 -43
  356. package/mobile/src/components/ProductTile/ProductTileContent.ts +2 -0
  357. package/mobile/src/components/VerticalLayout/VerticalLayout.example.json +7 -4
  358. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +35 -20
  359. package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +4 -0
  360. package/mobile/src/model/BlockVersion.ts +5 -0
  361. package/mobile/src/model/LogoType.ts +6 -0
  362. package/mobile/src/services/sitemap/SitemapProps.ts +2 -4
  363. package/mobile/src/ui-kit/Button/ButtonSection.tsx +4 -4
  364. package/mobile/src/ui-kit/Logo/Logo.tsx +16 -31
  365. package/mobile/src/ui-kit/Logo/renderImage.tsx +40 -0
  366. package/mobile/src/ui-kit/Logo/renderTitle.tsx +15 -0
  367. package/mobile/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +2 -2
  368. package/package.json +1 -1
  369. package/src/BlockRenderer/BlockRendererOptions.ts +1 -0
  370. package/src/BlockRenderer/renderBlock.tsx +2 -1
  371. package/src/components/Blocks.ts +8 -2
  372. package/src/components/ButtonBlock/ButtonBlock.example.json +10 -0
  373. package/src/components/ButtonBlock/ButtonBlock.fixture.tsx +18 -0
  374. package/src/components/ButtonBlock/ButtonBlock.tsx +17 -0
  375. package/src/components/ButtonBlock/ButtonBlock.ui.json +12 -0
  376. package/src/components/ButtonBlock/ButtonBlockContent.ts +9 -0
  377. package/src/components/Calculator/constants.ts +1 -1
  378. package/src/components/Carousel/Carousel.example.json +0 -1
  379. package/src/components/Carousel/Carousel.fixture.tsx +64 -4
  380. package/src/components/Carousel/Carousel.tsx +21 -18
  381. package/src/components/Carousel/CarouselContent.ts +1 -1
  382. package/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +17 -0
  383. package/src/components/CarouselCatalogCard/CarouselCatalogCard.fixture.tsx +43 -0
  384. package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +62 -0
  385. package/src/components/CarouselCatalogCard/CarouselCatalogCard.ui.json +10 -0
  386. package/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +25 -0
  387. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +33 -14
  388. package/src/components/CarouselInvestmentCard/CarouselInvestmentCardContent.ts +5 -5
  389. package/src/components/CarouselProductCard/CarouselProductCard.example.json +21 -0
  390. package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +62 -0
  391. package/src/components/CarouselProductCard/CarouselProductCard.tsx +102 -0
  392. package/src/components/CarouselProductCard/CarouselProductCard.ui.json +18 -0
  393. package/src/components/CarouselProductCard/CarouselProductCardContent.ts +51 -0
  394. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +1 -1
  395. package/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +1 -1
  396. package/src/components/ContactsBlock/ContactsBlock.example.json +1 -1
  397. package/src/components/Gallery/GalleryCardInner.tsx +6 -3
  398. package/src/components/Header/Header.mobile.tsx +2 -2
  399. package/src/components/Header/HeaderTop.tsx +4 -2
  400. package/src/components/ProductTile/ProductTile.example.json +2 -1
  401. package/src/components/ProductTile/ProductTile.fixture.tsx +15 -1
  402. package/src/components/ProductTile/ProductTile.tsx +41 -43
  403. package/src/components/ProductTile/ProductTileContent.ts +2 -0
  404. package/src/components/VerticalLayout/VerticalLayout.example.json +7 -4
  405. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +59 -2
  406. package/src/components/VerticalLayout/VerticalLayout.tsx +35 -20
  407. package/src/components/VerticalLayout/VerticalLayoutContent.ts +4 -0
  408. package/src/model/BlockVersion.ts +5 -0
  409. package/src/model/LogoType.ts +6 -0
  410. package/src/services/sitemap/SitemapProps.ts +2 -4
  411. package/src/ui-kit/Button/ButtonSection.tsx +4 -4
  412. package/src/ui-kit/Logo/Logo.mobile.tsx +16 -31
  413. package/src/ui-kit/Logo/Logo.tsx +6 -43
  414. package/src/ui-kit/Logo/renderImage.tsx +40 -0
  415. package/src/ui-kit/Logo/renderTitle.tsx +15 -0
  416. package/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +2 -2
@@ -8,10 +8,10 @@ const alignStyle = {
8
8
  right: 'items-end',
9
9
  };
10
10
  const gapStyleMap = {
11
- XXL: 'gap-10',
12
- XL: 'gap-8',
13
- L: 'gap-4',
14
- M: 'gap-3',
11
+ XXL: 'gap-12',
12
+ XL: 'gap-10',
13
+ L: 'gap-8',
14
+ M: 'gap-4',
15
15
  S: 'gap-2',
16
16
  XS: 'gap-1',
17
17
  '': '',
@@ -21,15 +21,20 @@ const backgroundStyleMap = {
21
21
  primary: 'bg-white',
22
22
  secondary: 'bg-primary-main',
23
23
  };
24
- export const VerticalLayout = JSX(({ className = '', gap = '', align, version = 'transparent', ...rest }) => (_jsx(BlockWrapper, { className: [
25
- 'flex flex-col',
26
- gapStyleMap[gap],
27
- align && alignStyle[align],
28
- backgroundStyleMap[version],
29
- className,
30
- ]
31
- .filter(Boolean)
32
- .join(' '), ...rest, children: renderChildren(rest) })));
24
+ export const VerticalLayout = JSX(({ className = '', gap = '', align, isPadding = false, isInnerPadding = true, version = 'transparent', options, ...rest }) => {
25
+ const paddingStyle = isPadding ? 'p-12' : '';
26
+ const innerPaddingStyle = isInnerPadding ? '' : '!p-0';
27
+ return (_jsx(BlockWrapper, { className: [
28
+ 'flex flex-col [&>*]:max-w-full',
29
+ paddingStyle,
30
+ gapStyleMap[gap],
31
+ align && alignStyle[align],
32
+ backgroundStyleMap[version],
33
+ className,
34
+ ]
35
+ .filter(Boolean)
36
+ .join(' '), ...rest, children: renderChildren({ ...rest, options: { ...options, className: innerPaddingStyle } }) }));
37
+ });
33
38
  VerticalLayout.childrenTypes = {
34
39
  exclude: ['VerticalLayout'],
35
40
  };
@@ -1 +1 @@
1
- {"version":3,"file":"VerticalLayout.js","sourceRoot":"","sources":["../../../src/components/VerticalLayout/VerticalLayout.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAIpE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAKzD,MAAM,UAAU,GAA8B;IAC5C,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,cAAc;IACtB,KAAK,EAAE,WAAW;CACnB,CAAC;AAEF,MAAM,WAAW,GAA+B;IAC9C,GAAG,EAAE,QAAQ;IACb,EAAE,EAAE,OAAO;IACX,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,EAAE;CACP,CAAC;AAEF,MAAM,kBAAkB,GAAgD;IACtE,WAAW,EAAE,EAAE;IACf,OAAO,EAAE,UAAU;IACnB,SAAS,EAAE,iBAAiB;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAkC,GAAG,CAC9D,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,GAAG,EAAE,EAAE,KAAK,EAAE,OAAO,GAAG,aAAa,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACzE,KAAC,YAAY,IACX,SAAS,EAAE;QACT,eAAe;QACf,WAAW,CAAC,GAAG,CAAC;QAChB,KAAK,IAAI,UAAU,CAAC,KAAK,CAAC;QAC1B,kBAAkB,CAAC,OAAO,CAAC;QAC3B,SAAS;KACV;SACE,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,GAAG,CAAC,KACR,IAAI,YAEP,cAAc,CAAC,IAAI,CAAC,GACR,CAChB,CACF,CAAC;AAEF,cAAc,CAAC,aAAa,GAAG;IAC7B,OAAO,EAAE,CAAC,gBAAgB,CAAC;CAC5B,CAAC"}
1
+ {"version":3,"file":"VerticalLayout.js","sourceRoot":"","sources":["../../../src/components/VerticalLayout/VerticalLayout.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAIpE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAKzD,MAAM,UAAU,GAA8B;IAC5C,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,cAAc;IACtB,KAAK,EAAE,WAAW;CACnB,CAAC;AAEF,MAAM,WAAW,GAA+B;IAC9C,GAAG,EAAE,QAAQ;IACb,EAAE,EAAE,QAAQ;IACZ,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,EAAE;CACP,CAAC;AAEF,MAAM,kBAAkB,GAAgD;IACtE,WAAW,EAAE,EAAE;IACf,OAAO,EAAE,UAAU;IACnB,SAAS,EAAE,iBAAiB;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAkC,GAAG,CAC9D,CAAC,EACC,SAAS,GAAG,EAAE,EACd,GAAG,GAAG,EAAE,EACR,KAAK,EACL,SAAS,GAAG,KAAK,EACjB,cAAc,GAAG,IAAI,EACrB,OAAO,GAAG,aAAa,EACvB,OAAO,EACP,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,YAAY,GAAG,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7C,MAAM,iBAAiB,GAAG,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;IAEvD,OAAO,CACL,KAAC,YAAY,IACX,SAAS,EAAE;YACT,gCAAgC;YAChC,YAAY;YACZ,WAAW,CAAC,GAAG,CAAC;YAChB,KAAK,IAAI,UAAU,CAAC,KAAK,CAAC;YAC1B,kBAAkB,CAAC,OAAO,CAAC;YAC3B,SAAS;SACV;aACE,MAAM,CAAC,OAAO,CAAC;aACf,IAAI,CAAC,GAAG,CAAC,KACR,IAAI,YAEP,cAAc,CAAC,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,EAAE,CAAC,GACtE,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,cAAc,CAAC,aAAa,GAAG;IAC7B,OAAO,EAAE,CAAC,gBAAgB,CAAC;CAC5B,CAAC"}
@@ -14,4 +14,8 @@ export interface VerticalLayoutContent {
14
14
  version?: BlockVersionWithTransparent;
15
15
  align?: AlignType;
16
16
  gap?: GapVersion;
17
+ /** @title Внутренний отступ компоновщика */
18
+ isPadding?: boolean;
19
+ /** @title Отступы вложенных компонентов */
20
+ isInnerPadding?: boolean;
17
21
  }
@@ -9,4 +9,5 @@ export declare type BlockVersion = 'primary' | 'secondary';
9
9
  */
10
10
  export declare type BlockVersionWithTransparent = 'transparent' | 'primary' | 'secondary';
11
11
  export declare const VersionStyleMap: Record<BlockVersion, string>;
12
+ export declare const VersionAdditionalStyleMap: Record<BlockVersion, string>;
12
13
  export declare const VersionWithTransparentStyleMap: Record<BlockVersionWithTransparent, string>;
@@ -2,6 +2,10 @@ export const VersionStyleMap = {
2
2
  primary: 'bg-white text-primary-text',
3
3
  secondary: 'bg-primary-main text-white',
4
4
  };
5
+ export const VersionAdditionalStyleMap = {
6
+ primary: 'text-secondary-text',
7
+ secondary: 'text-white',
8
+ };
5
9
  export const VersionWithTransparentStyleMap = {
6
10
  transparent: '',
7
11
  primary: 'bg-white text-primary-text',
@@ -1 +1 @@
1
- {"version":3,"file":"BlockVersion.js","sourceRoot":"","sources":["../../src/model/BlockVersion.ts"],"names":[],"mappings":"AAYA,MAAM,CAAC,MAAM,eAAe,GAAiC;IAC3D,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAgD;IACzF,WAAW,EAAE,EAAE;IACf,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC"}
1
+ {"version":3,"file":"BlockVersion.js","sourceRoot":"","sources":["../../src/model/BlockVersion.ts"],"names":[],"mappings":"AAYA,MAAM,CAAC,MAAM,eAAe,GAAiC;IAC3D,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAiC;IACrE,OAAO,EAAE,qBAAqB;IAC9B,SAAS,EAAE,YAAY;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAgD;IACzF,WAAW,EAAE,EAAE;IACf,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { Picture } from './Picture';
2
+ export declare type LogoType = {
3
+ image?: Picture;
4
+ title?: string;
5
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=LogoType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogoType.js","sourceRoot":"","sources":["../../src/model/LogoType.ts"],"names":[],"mappings":""}
@@ -1,4 +1,5 @@
1
1
  import type { LinkProps } from '../../model/LinkProps';
2
+ import type { LogoType } from '../../model/LogoType';
2
3
  import type { Picture } from '../../model/Picture';
3
4
  /**
4
5
  * @title Ссылка
@@ -19,10 +20,7 @@ export interface DispositionItem extends LinkProps {
19
20
  export interface SitemapDataProps {
20
21
  topItems?: TopMenuItem[];
21
22
  dispositions?: DispositionItem[];
22
- logo?: {
23
- image?: Picture;
24
- title?: string;
25
- };
23
+ logo?: LogoType;
26
24
  defaultLocation?: string;
27
25
  officesLink?: string;
28
26
  }
@@ -9,5 +9,5 @@ interface RenderButtonProps {
9
9
  index?: number;
10
10
  }
11
11
  export declare const ButtonSection: import("@redneckz/uni-jsx").UNIComponent<ButtonSectionProps, any, any>;
12
- export declare function renderButton({ button, buttonClassName, index }: RenderButtonProps): JSX.Element;
12
+ export declare function renderButton({ button, buttonClassName, index }: RenderButtonProps): JSX.Element | null;
13
13
  export {};
@@ -4,11 +4,11 @@ import { Img } from '../Img/Img.js';
4
4
  import { Button } from './Button.js';
5
5
  export const ButtonSection = JSX(({ className = '', buttons }) => buttons && buttons?.length ? (_jsx("div", { className: className, children: buttons.map((button, index) => renderButton({ button, index })) })) : null);
6
6
  export function renderButton({ button, buttonClassName, index }) {
7
- const { icon, iconRight, version, ...rest } = button;
7
+ const { icon, iconRight, version, text, ...rest } = button;
8
8
  const iconVersion = version === 'secondary' ? 'color' : 'white';
9
9
  const leftIcon = renderButtonIcon({ ...icon, iconVersion: iconVersion });
10
10
  const rightIcon = renderButtonIcon({ ...iconRight, iconVersion: iconVersion });
11
- return (_jsx(Button, { className: buttonClassName, appendLeft: leftIcon, appendRight: rightIcon, version: version, ...rest }, index ? String(index) : ''));
11
+ return text ? (_jsx(Button, { className: buttonClassName, appendLeft: leftIcon, appendRight: rightIcon, version: version, text: text, ...rest }, index ? String(index) : '')) : null;
12
12
  }
13
13
  const renderButtonIcon = (icon) => {
14
14
  if (!icon?.icon && !icon?.src) {
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonSection.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonSection.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAYlC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAqB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CACnF,OAAO,IAAI,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAC3B,cAAK,SAAS,EAAE,SAAS,YACtB,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,GAC5D,CACP,CAAC,CAAC,CAAC,IAAI,CACT,CAAC;AAEF,MAAM,UAAU,YAAY,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,KAAK,EAAqB;IAChF,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;IAErD,MAAM,WAAW,GAAG,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAEhE,MAAM,QAAQ,GAAG,gBAAgB,CAAC,EAAE,GAAG,IAAI,EAAE,WAAW,EAAE,WAAW,EAAa,CAAC,CAAC;IACpF,MAAM,SAAS,GAAG,gBAAgB,CAAC,EAAE,GAAG,SAAS,EAAE,WAAW,EAAE,WAAW,EAAa,CAAC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EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAAC;AACzE,CAAC,CAAC"}
@@ -1,8 +1,10 @@
1
+ import type { LogoType } from '../../model/LogoType';
1
2
  export interface LogoProps {
2
3
  className: string;
3
4
  href: string;
4
5
  targetBlank: boolean;
5
6
  bgColor?: string;
6
7
  showTitle?: boolean;
8
+ logo?: LogoType;
7
9
  }
8
10
  export declare const Logo: import("@redneckz/uni-jsx").UNIComponent<Partial<LogoProps>, any, any>;
@@ -1,19 +1,8 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
1
+ import { jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
- import { Img } from '../Img/Img.js';
4
- const ICON_VERSION_MAP = {
5
- 'bg-white': 'color',
6
- transparent: 'white',
7
- };
8
- const SVG_COLOR = {
9
- 'bg-white': 'text-primary-main',
10
- transparent: 'text-white',
11
- };
12
- const TEXT_COLOR = {
13
- 'bg-white': 'text-black',
14
- transparent: 'text-white',
15
- };
16
- export const Logo = JSX(({ className = '', href, children, targetBlank, bgColor = 'bg-white', showTitle = true }) => {
17
- return (_jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A", children: [_jsx(Img, { image: { icon: 'LogoIcon', iconVersion: ICON_VERSION_MAP[bgColor] }, className: `${SVG_COLOR[bgColor]}`, width: "34", height: "34", asSVG: true }), showTitle ? (_jsx("span", { className: `${TEXT_COLOR[bgColor]} text-s font-medium ml-2.5`, children: children || 'Россельхозбанк' })) : null] }));
3
+ import { renderImage } from './renderImage.js';
4
+ import { renderTitle } from './renderTitle.js';
5
+ export const Logo = JSX(({ bgColor = 'bg-white', children, className = '', href, logo, showTitle = true, targetBlank, }) => {
6
+ return (_jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [renderImage(bgColor, logo?.image, { width: '34', height: '34' }), showTitle ? renderTitle(children || logo?.title, bgColor, 'text-s') : null] }));
18
7
  });
19
8
  //# sourceMappingURL=Logo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/Logo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAUjC,MAAM,gBAAgB,GAAmC;IACvD,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,OAAO;CACrB,CAAC;AAEF,MAAM,SAAS,GAAmC;IAChD,UAAU,EAAE,mBAAmB;IAC/B,WAAW,EAAE,YAAY;CAC1B,CAAC;AAEF,MAAM,UAAU,GAAmC;IACjD,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,YAAY;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CACrB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,GAAG,UAAU,EAAE,SAAS,GAAG,IAAI,EAAE,EAAE,EAAE;IAC1F,OAAO,CACL,aACE,SAAS,EAAE,mDAAmD,SAAS,EAAE,EACzE,IAAI,EAAE,IAAI,IAAI,kBAAkB,EAChC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,gBAC7B,sFAAgB,aAE3B,KAAC,GAAG,IACF,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,CAAC,OAAO,CAAC,EAAE,EACnE,SAAS,EAAE,GAAG,SAAS,CAAC,OAAO,CAAC,EAAE,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,EACD,SAAS,CAAC,CAAC,CAAC,CACX,eAAM,SAAS,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,4BAA4B,YAChE,QAAQ,IAAI,gBAAgB,GACxB,CACR,CAAC,CAAC,CAAC,IAAI,IACN,CACL,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"Logo.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/Logo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAW5C,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CACrB,CAAC,EACC,OAAO,GAAG,UAAU,EACpB,QAAQ,EACR,SAAS,GAAG,EAAE,EACd,IAAI,EACJ,IAAI,EACJ,SAAS,GAAG,IAAI,EAChB,WAAW,GACZ,EAAE,EAAE;IACH,OAAO,CACL,aACE,SAAS,EAAE,mDAAmD,SAAS,EAAE,EACzE,IAAI,EAAE,IAAI,IAAI,kBAAkB,EAChC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,gBAC5B,IAAI,EAAE,KAAK,IAAI,gBAAgB,aAE1C,WAAW,CAAC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAChE,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,IAAI,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,IACzE,CACL,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { Picture } from '../../model/Picture';
3
+ export declare const renderImage: (bgColor: string, image?: Picture, size?: {
4
+ width: string;
5
+ height: string;
6
+ }) => JSX.Element;
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { Img } from '../Img/Img.js';
3
+ const ICON_VERSION_MAP = {
4
+ 'bg-white': 'color',
5
+ transparent: 'white',
6
+ };
7
+ const SVG_COLOR = {
8
+ 'bg-white': 'text-primary-main',
9
+ transparent: 'text-white',
10
+ };
11
+ export const renderImage = (bgColor, image, size) => {
12
+ return image?.src ? (_jsx(Img, { image: image, className: SVG_COLOR[bgColor], width: size?.width, height: size?.height, asSVG: true })) : (_jsx(Img, { image: {
13
+ icon: image?.icon || 'LogoIcon',
14
+ iconVersion: ICON_VERSION_MAP[bgColor],
15
+ }, className: SVG_COLOR[bgColor], width: size?.width, height: size?.height, asSVG: true }));
16
+ };
17
+ //# sourceMappingURL=renderImage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderImage.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/renderImage.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,MAAM,gBAAgB,GAAmC;IACvD,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,OAAO;CACrB,CAAC;AAEF,MAAM,SAAS,GAAmC;IAChD,UAAU,EAAE,mBAAmB;IAC/B,WAAW,EAAE,YAAY;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,OAAe,EACf,KAAe,EACf,IAAwC,EACxC,EAAE;IACF,OAAO,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAClB,KAAC,GAAG,IACF,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,EAC7B,KAAK,EAAE,IAAI,EAAE,KAAK,EAClB,MAAM,EAAE,IAAI,EAAE,MAAM,EACpB,KAAK,SACL,CACH,CAAC,CAAC,CAAC,CACF,KAAC,GAAG,IACF,KAAK,EAAE;YACL,IAAI,EAAE,KAAK,EAAE,IAAI,IAAI,UAAU;YAC/B,WAAW,EAAE,gBAAgB,CAAC,OAAO,CAAC;SACvC,EACD,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,EAC7B,KAAK,EAAE,IAAI,EAAE,KAAK,EAClB,MAAM,EAAE,IAAI,EAAE,MAAM,EACpB,KAAK,SACL,CACH,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type { VNode } from '../../model/VNode';
3
+ export declare const renderTitle: (title: VNode, bgColor: string, className?: string) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
+ const TEXT_COLOR = {
3
+ 'bg-white': 'text-primary-text',
4
+ transparent: 'text-white',
5
+ };
6
+ export const renderTitle = (title, bgColor, className) => {
7
+ return (_jsx("span", { className: `${TEXT_COLOR[bgColor]} ml-2.5 font-medium ${className || ''}`, children: title || 'Россельхозбанк' }));
8
+ };
9
+ //# sourceMappingURL=renderTitle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderTitle.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/renderTitle.tsx"],"names":[],"mappings":";AAGA,MAAM,UAAU,GAAmC;IACjD,UAAU,EAAE,mBAAmB;IAC/B,WAAW,EAAE,YAAY;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAY,EAAE,OAAe,EAAE,SAAkB,EAAE,EAAE;IAC/E,OAAO,CACL,eAAM,SAAS,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,uBAAuB,SAAS,IAAI,EAAE,EAAE,YAC5E,KAAK,IAAI,gBAAgB,GACrB,CACR,CAAC;AACJ,CAAC,CAAC"}
@@ -10,7 +10,7 @@ interface SwipeListContainerProps extends SwipeContainerProps {
10
10
  current: HTMLDivElement | null;
11
11
  };
12
12
  activeIndex?: number;
13
- visibleItemCount?: SwipeListItemWidthAuto | 1 | 2 | 3;
13
+ visibleItemCount?: SwipeListItemWidthAuto | 1 | 2 | 3 | 4;
14
14
  snapAlign?: 'snap-start' | 'snap-center' | 'snap-end';
15
15
  onVisibleItemsChange?: (itemsVisibilityList: ItemsVisibilityList) => void;
16
16
  onVisibleIndicesChange?: (indices: number[]) => void;
@@ -3,7 +3,7 @@ import { JSX } from '@redneckz/uni-jsx';
3
3
  import { useCallback, useRef } from '@redneckz/uni-jsx/lib/hooks';
4
4
  import { mapChildren } from '../../utils/mapChildren.js';
5
5
  import { SwipeListItem } from './SwipeListItem.js';
6
- const childStyleMap = ['min-w-[100%]', 'min-w-[50%]', 'min-w-[33.33%]'];
6
+ const childStyleMap = ['min-w-[100%]', 'min-w-[50%]', 'min-w-[33.33%]', 'min-w-[25%]'];
7
7
  export const SwipeListContainer = JSX(({ className = '', containerRef, activeIndex, visibleItemCount, gap = 0, padding = 0, snapAlign = 'snap-center', children, onVisibleItemsChange, onVisibleIndicesChange, }) => {
8
8
  const observerOptions = {
9
9
  sensitivity: 1,
@@ -1 +1 @@
1
- {"version":3,"file":"SwipeListContainer.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListContainer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAmBhD,MAAM,aAAa,GAAG,CAAC,cAAc,EAAE,aAAa,EAAE,gBAAgB,CAAC,CAAC;AAExE,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CACnC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,GAA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EAAE,EACF,KAAK,EAAE,iBAAiB,CAAC,OAAO,GAAG,CAAC,CAAC,EACrC,WAAW,EAAE,WAAW,EACxB,GAAG,EAAE,GAAG,EACR,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,kBAAkB,YAEjC,KAAK,IAVD,MAAM,CAAC,GAAG,CAAC,CAWF,CACjB,CAAC,CAAC,QAAQ,CAAC,GACR,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,kFAAkF;AAClF,MAAM,iBAAiB,GAAG,CAAC,OAAe,EAA0B,EAAE,CAAC,CAAC;IACtE,UAAU,EAAE,GAAG,CAAC,OAAO,IAAI;IAC3B,WAAW,EAAE,GAAG,CAAC,OAAO,IAAI;IAC5B,WAAW,EAAE,GAAG,OAAO,IAAI;IAC3B,YAAY,EAAE,GAAG,OAAO,IAAI;CAC7B,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,CAAC,mBAAwC,EAAE,EAAE,CACrE,mBAAmB;KAChB,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAmD,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;KACtE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,iBAAiB,IAAI,GAAG,CAAC;KAChD,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC"}
@@ -9,4 +9,5 @@ export interface BlockRendererOptions {
9
9
  blocksRegistry?: BlocksRegistry;
10
10
  parent?: Slot;
11
11
  ancestors?: BlockAncestors;
12
+ className?: string;
12
13
  }
@@ -13,6 +13,7 @@ export function renderBlock(block: BlockDef, options: BlockRendererOptions) {
13
13
  blockDecorator = defaultBlockDecorator,
14
14
  blocksRegistry = {},
15
15
  ancestors = DEFAULT_ANCESTORS,
16
+ className = '',
16
17
  } = options;
17
18
  const { type } = block;
18
19
 
@@ -24,7 +25,7 @@ export function renderBlock(block: BlockDef, options: BlockRendererOptions) {
24
25
 
25
26
  return blockDecorator(
26
27
  {
27
- blockClassName: `scroll-mt-12 ${style2className(block.style || DEFAULT_STYLE)}`, // TODO scroll-mt-12 ? here?
28
+ blockClassName: `scroll-mt-12 ${className} ${style2className(block.style || DEFAULT_STYLE)}`, // TODO scroll-mt-12 ? here?
28
29
  block,
29
30
  ancestors,
30
31
  // Adjusted by decorator block and blockClassName
@@ -0,0 +1,10 @@
1
+ {
2
+ "content": {
3
+ "button": {
4
+ "href": "/credit-cards",
5
+ "text": "Подробнее",
6
+ "target": "_blank",
7
+ "version": "primary"
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,17 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import type { UniBlockProps } from '../../model/JSXBlock';
3
+ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
+ import { renderButton } from '../../ui-kit/Button/ButtonSection';
5
+ import type { ButtonBlockContent } from './ButtonBlockContent';
6
+
7
+ interface ButtonBlockProps extends ButtonBlockContent, UniBlockProps {}
8
+
9
+ export const ButtonBlock = JSX<ButtonBlockProps>((props) => {
10
+ const { className, button, ...rest } = props;
11
+
12
+ return (
13
+ <BlockWrapper className={className} {...rest}>
14
+ {button ? renderButton({ button }) : null}
15
+ </BlockWrapper>
16
+ );
17
+ });
@@ -0,0 +1,12 @@
1
+ {
2
+ "content": {
3
+ "button": {
4
+ "icon": {
5
+ "ui:field": "icon"
6
+ },
7
+ "iconRight": {
8
+ "ui:field": "icon"
9
+ }
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,9 @@
1
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
2
+
3
+ /**
4
+ * @title Блок Кнопка
5
+ */
6
+ export interface ButtonBlockContent {
7
+ /** @title Кнопка */
8
+ button?: ButtonWithIconProps;
9
+ }
@@ -18,7 +18,7 @@ export const DEFAULT_CREDIT_CALCULATOR_PARAMS: CreditCalculatorSourceBookParams
18
18
  maxSum: DEFAULT_MAX_SUM,
19
19
  minMonths: DEFAULT_MIN_MONTHS,
20
20
  maxMonths: DEFAULT_MAX_MONTHS,
21
- rateBottomRange: 10,
21
+ rateBottomRange: 12,
22
22
  rateTopRange: 7,
23
23
  isSalaryClient: true,
24
24
  isStateEmployee: true,
@@ -1,5 +1,4 @@
1
1
  {
2
- "cardWidth": 1200,
3
2
  "isBlur": false,
4
3
  "visibleItemCount": 1,
5
4
  "isCycle": false
@@ -30,23 +30,25 @@ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
30
30
  });
31
31
 
32
32
  return (
33
- <BlockWrapper className={`relative font-sans ${className}`} {...rest}>
34
- <SwipeListContainer
35
- containerRef={containerRef}
36
- visibleItemCount={visibleItemCount}
37
- snapAlign="snap-start"
38
- gap={ITEMS_GAP}
39
- onVisibleIndicesChange={scroll.handleVisibleIndicesChange}
40
- >
41
- {renderChildren(rest)}
42
- </SwipeListContainer>
43
- {(scroll.canScrollLeft || scroll.canScrollRight) && isBlur ? (
44
- <div>
45
- <div className={`${blurBaseStyle} left-0 bg-opacity-from-white`} />
46
- <div className={`${blurBaseStyle} right-0 bg-opacity-to-white`} />
47
- </div>
48
- ) : null}
49
- {renderScrollButtons(scroll)}
33
+ <BlockWrapper className={`font-sans p-12 ${className}`} {...rest}>
34
+ <div className="relative max-w-full">
35
+ <SwipeListContainer
36
+ containerRef={containerRef}
37
+ visibleItemCount={visibleItemCount}
38
+ snapAlign="snap-start"
39
+ gap={ITEMS_GAP}
40
+ onVisibleIndicesChange={scroll.handleVisibleIndicesChange}
41
+ >
42
+ {renderChildren(rest)}
43
+ </SwipeListContainer>
44
+ {(scroll.canScrollLeft || scroll.canScrollRight) && isBlur ? (
45
+ <div>
46
+ <div className={`${blurBaseStyle} left-0 bg-opacity-from-white`} />
47
+ <div className={`${blurBaseStyle} right-0 bg-opacity-to-white`} />
48
+ </div>
49
+ ) : null}
50
+ {renderScrollButtons(scroll)}
51
+ </div>
50
52
  </BlockWrapper>
51
53
  );
52
54
  },
@@ -54,8 +56,9 @@ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
54
56
 
55
57
  Carousel.childrenTypes = [
56
58
  'CarouselCard',
59
+ 'CarouselCatalogCard',
57
60
  'CarouselTariffsCard',
58
- 'CarouselLinks',
61
+ 'CarouselProductCard',
59
62
  'CarouselProgramsCard',
60
63
  'CarouselInvestmentCard',
61
64
  ];
@@ -6,7 +6,7 @@ export interface CarouselContent {
6
6
  * @title Количество видимых карточек
7
7
  * @enumNames ["auto", "1", "2", "3"]
8
8
  */
9
- visibleItemCount?: 0 | 1 | 2 | 3;
9
+ visibleItemCount?: 0 | 1 | 2 | 3 | 4;
10
10
  /** @title Добавление блюра */
11
11
  isBlur?: boolean;
12
12
  /** @title Цикличность */
@@ -0,0 +1,17 @@
1
+ {
2
+ "title": "Заголовок карточки 1",
3
+ "description": "Описание карточки",
4
+ "image": {
5
+ "format": "webp",
6
+ "size": {
7
+ "width": 230,
8
+ "height": 230
9
+ }
10
+ },
11
+ "button": {
12
+ "href": "",
13
+ "text": "Подробнее",
14
+ "target": "_self",
15
+ "version": "primary"
16
+ }
17
+ }
@@ -0,0 +1,62 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import type { BlockVersion } from '../../model/BlockVersion';
3
+ import { VersionStyleMap } from '../../model/BlockVersion';
4
+ import type { ProductColorVersion } from '../../model/ProductColorVersion';
5
+ import { renderButton } from '../../ui-kit/Button/ButtonSection';
6
+ import { Heading } from '../../ui-kit/Heading/Heading';
7
+ import { Img } from '../../ui-kit/Img/Img';
8
+ import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
9
+ import { Text } from '../../ui-kit/Text/Text';
10
+ import type { CarouselCatalogCardContent } from './CarouselCatalogCardContent';
11
+
12
+ export interface CarouselCatalogCardProps extends CarouselCatalogCardContent {
13
+ className?: string;
14
+ version?: BlockVersion;
15
+ }
16
+
17
+ const cardStyleMap: Record<ProductColorVersion, string> = {
18
+ black: 'bg-black',
19
+ white: 'bg-white',
20
+ };
21
+
22
+ export const CarouselCatalogCard = JSX<CarouselCatalogCardProps>(
23
+ ({ className = '', title, description, image, price, button, colors, version = 'primary' }) => (
24
+ <section
25
+ className={`border box-border border-main-stroke p-7 min-w-[392px] flex flex-col justify-left ${VersionStyleMap[version]} ${className}`}
26
+ role="listitem"
27
+ >
28
+ {image?.src ? <Img className="mb-5 flex justify-center" image={image} /> : null}
29
+ {title ? (
30
+ <Heading headingType="h6" as="h4" className="text-left mb-1.5" title={title} />
31
+ ) : null}
32
+ {description ? (
33
+ <div className="mb-4">
34
+ <Paragraph size="text-m" align="text-left" font="font-light">
35
+ {description}
36
+ </Paragraph>
37
+ </div>
38
+ ) : null}
39
+ {colors?.length ? (
40
+ <div className="flex mb-4 text-s-light text-secondary-text">
41
+ <div className="mr-1.5">
42
+ <Text>Доступные цвета: </Text>
43
+ </div>
44
+ {colors.map(renderColorOption)}
45
+ </div>
46
+ ) : null}
47
+ {price ? (
48
+ <Text size="text-h3" align="text-left">
49
+ {price}&nbsp;₽
50
+ </Text>
51
+ ) : null}
52
+ {button ? renderButton({ button, buttonClassName: 'mt-5 w-full' }) : null}
53
+ </section>
54
+ ),
55
+ );
56
+
57
+ const renderColorOption = (color: ProductColorVersion, i: number) => (
58
+ <span
59
+ key={String(i)}
60
+ className={`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}`}
61
+ />
62
+ );
@@ -0,0 +1,10 @@
1
+ {
2
+ "content": {
3
+ "image": {
4
+ "ui:field": "picture"
5
+ },
6
+ "price": {
7
+ "ui:field": "number"
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,25 @@
1
+ import type { BlockVersion } from '../../model/BlockVersion';
2
+ import type { HeadlineCommonProps } from '../../model/HeadlineType';
3
+ import type { ProductColorVersion } from '../../model/ProductColorVersion';
4
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
5
+ import type { ImageContent } from '../../ui-kit/Img/ImgProps';
6
+
7
+ /**
8
+ * @title Карточка каталога
9
+ */
10
+ export type CarouselCatalogCardContent = HeadlineCommonProps &
11
+ ImageContent & {
12
+ /** @title Цена в рублях */
13
+ price?: number;
14
+ /** @title Доступные цвета */
15
+ colors?: ProductColorVersion[];
16
+ /**
17
+ * @title Кнопка
18
+ * @default {
19
+ * "icon": { "format": "webp", "size": { "width": 24, "height": 24 } },
20
+ * "iconRight" : { "format": "webp", "size": { "width": 24, "height": 24 } }
21
+ * }
22
+ */
23
+ button?: ButtonWithIconProps;
24
+ version?: BlockVersion;
25
+ };