@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
@@ -1,9 +1,6 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
- import type { Picture } from '../../model/Picture';
3
2
  import type { HeadlineCommonProps } from '../../model/HeadlineType';
4
- /**
5
- * @title Карточка галереи инвестиций
6
- */
3
+ import type { Picture } from '../../model/Picture';
7
4
  /**
8
5
  * @title Количество колонок
9
6
  * @enumNames [
@@ -18,6 +15,9 @@ export interface CardsListItem {
18
15
  /** @title Описание */
19
16
  parameterDescription?: string;
20
17
  }
18
+ /**
19
+ * @title Карточка галереи инвестиций
20
+ */
21
21
  export interface CarouselInvestmentCardContent extends HeadlineCommonProps {
22
22
  /** @title Доп. описание карточки */
23
23
  additionalDescription?: string;
@@ -0,0 +1,5 @@
1
+ import type { UniBlockProps } from '../../model/JSXBlock';
2
+ import type { CarouselProductCardContent } from './CarouselProductCardContent';
3
+ export interface CarouselProductCardProps extends CarouselProductCardContent, UniBlockProps {
4
+ }
5
+ export declare const CarouselProductCard: import("@redneckz/uni-jsx").UNIComponent<CarouselProductCardProps, any, any>;
@@ -0,0 +1,32 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.CarouselProductCard = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const AlignText_1 = require("../../model/AlignText");
6
+ const BlockVersion_1 = require("../../model/BlockVersion");
7
+ const ButtonSection_1 = require("../../ui-kit/Button/ButtonSection");
8
+ const Img_1 = require("../../ui-kit/Img/Img");
9
+ const List_1 = require("../../ui-kit/List/List");
10
+ const Paragraph_1 = require("../../ui-kit/Paragraph/Paragraph");
11
+ const Text_1 = require("../../ui-kit/Text/Text");
12
+ const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
13
+ const constants_1 = require("../Headline/constants");
14
+ const descriptionStyleMap = {
15
+ primary: 'text-secondary-text',
16
+ secondary: 'text-white/80',
17
+ };
18
+ const BORDER_STYLE = 'box-border border-solid border border-main-stroke ';
19
+ exports.CarouselProductCard = (0, uni_jsx_1.JSX)(({ title, headlineSmallVersion = 'H6', description, additionalDescription, icon, items = [], button = {}, version = 'primary', isDotted = true, align = 'center', }) => {
20
+ return ((0, jsx_runtime_1.jsxs)("section", { className: [
21
+ 'flex flex-col justify-between items-stretch min-w-[260px] h-full w-full p-6',
22
+ BORDER_STYLE,
23
+ AlignText_1.AlignText[align],
24
+ BlockVersion_1.VersionStyleMap[version],
25
+ ].join(' '), role: "listitem", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col h-full", children: [renderImage(icon, version), renderCardTitle(headlineSmallVersion, title), renderDescription(description, title), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription, version)] }), (0, ButtonSection_1.renderButton)({ button, buttonClassName: 'mt-6' })] }));
26
+ });
27
+ const renderImage = (image, version) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-center", children: [image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-5", image: image }) : null, image?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: `w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full`, image: (0, getIconWithVersion_1.getIconWithVersion)(image, version), asSVG: true })) : null] }));
28
+ const renderCardTitle = (headlineSmallVersion, title) => title ? (0, jsx_runtime_1.jsx)(Text_1.Text, { size: constants_1.HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
29
+ const renderDescription = (description, title) => description ? ((0, jsx_runtime_1.jsx)("div", { className: title ? 'mt-2' : '', children: (0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-l", children: description }) })) : null;
30
+ const renderAdditionalDescription = (additionalDescription, version = 'primary') => additionalDescription ? ((0, jsx_runtime_1.jsx)("div", { className: "mt-auto", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", color: descriptionStyleMap[version], children: additionalDescription }) })) : null;
31
+ const renderItems = (items, isDotted, version = 'primary') => items?.length ? ((0, jsx_runtime_1.jsx)(List_1.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;
32
+ //# sourceMappingURL=CarouselProductCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarouselProductCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProductCard/CarouselProductCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qDAAkD;AAElD,2DAA2D;AAG3D,qEAAiE;AACjE,8CAA2C;AAC3C,iDAA8C;AAC9C,gEAA6D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sBAAsB,CAAC,CAAC,CAAC,EAAE,EAAE,EAC7F,aAAa,EAAC,WAAW,EACzB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAc,CAAC,EAC5E,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,CAAC"}
@@ -0,0 +1,49 @@
1
+ import type { AlignType } from '../../model/AlignType';
2
+ import type { BlockVersion } from '../../model/BlockVersion';
3
+ import type { HeadlineSmallProps } from '../../model/HeadlineType';
4
+ import type { Picture } from '../../model/Picture';
5
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
6
+ /**
7
+ * @title Элемент списка
8
+ */
9
+ export interface ListProps {
10
+ /** @title Текст */
11
+ text?: string;
12
+ }
13
+ /**
14
+ * @title Карточка продуктовой карусели
15
+ */
16
+ export declare type CarouselProductCardContent = HeadlineSmallProps & {
17
+ /** @title Дополнительное описание */
18
+ additionalDescription?: string;
19
+ /**
20
+ * @default {
21
+ * "format": "webp",
22
+ * "size": {
23
+ * "width": 140
24
+ * },
25
+ * "sources": [{
26
+ * "media": 1279,
27
+ * "width": 84,
28
+ * "format": "webp",
29
+ * "alignment": "center"
30
+ * }]
31
+ * }
32
+ */
33
+ icon?: Picture;
34
+ /** @title Кнопка */
35
+ button?: ButtonWithIconProps;
36
+ /**
37
+ * @title Буллиты
38
+ * @default true
39
+ */
40
+ isDotted?: boolean;
41
+ /** @title Список */
42
+ items?: ListProps[];
43
+ version?: BlockVersion;
44
+ /**
45
+ * @title Выравнивание
46
+ * @default center
47
+ */
48
+ align?: AlignType;
49
+ };
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=CarouselProductCardContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarouselProductCardContent.js","sourceRoot":"","sources":["../../../src/components/CarouselProductCard/CarouselProductCardContent.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
+ import type { BlockVersion } from '../../model/BlockVersion';
1
2
  import type { HeadlineCommonProps, TitleProps } from '../../model/HeadlineType';
2
3
  import type { Picture } from '../../model/Picture';
3
- import type { BlockVersion } from '../../model/BlockVersion';
4
4
  /**
5
5
  * @title Карточка программ карусели
6
6
  */
@@ -3,12 +3,13 @@ exports.GalleryCardInner = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const AlignText_1 = require("../../model/AlignText");
6
+ const BlockVersion_1 = require("../../model/BlockVersion");
6
7
  const ButtonSection_1 = require("../../ui-kit/Button/ButtonSection");
7
8
  const Img_1 = require("../../ui-kit/Img/Img");
8
9
  const List_1 = require("../../ui-kit/List/List");
9
10
  const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
10
11
  const constants_1 = require("../Headline/constants");
11
- exports.GalleryCardInner = (0, uni_jsx_1.JSX)(({ title, headlineSmallVersion = 'H6', description, additionalDescription, icon, items, button, version, isFullWidth = true, isDotted = true, align = 'center', }) => ((0, jsx_runtime_1.jsxs)("div", { className: `h-full flex flex-col justify-between ${AlignText_1.AlignText[align]}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col h-full", children: [renderImage(icon, version), renderCardTitle(headlineSmallVersion, title), renderDescription(description, title), items?.length ? renderItems(items, isDotted, version) : null, renderAdditionalDescription(additionalDescription)] }), button?.text
12
+ exports.GalleryCardInner = (0, uni_jsx_1.JSX)(({ title, headlineSmallVersion = 'H6', description, additionalDescription, icon, items, button, version, isFullWidth = true, isDotted = true, align = 'center', }) => ((0, jsx_runtime_1.jsxs)("div", { className: `h-full flex flex-col justify-between ${AlignText_1.AlignText[align]}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col h-full", children: [renderImage(icon, version), renderCardTitle(headlineSmallVersion, title), renderDescription(description, title), items?.length ? renderItems(items, isDotted, version) : null, renderAdditionalDescription(additionalDescription, version)] }), button?.text
12
13
  ? (0, ButtonSection_1.renderButton)({
13
14
  button,
14
15
  buttonClassName: `mt-6 ${isFullWidth ? '' : 'self-center'}`,
@@ -17,6 +18,6 @@ exports.GalleryCardInner = (0, uni_jsx_1.JSX)(({ title, headlineSmallVersion = '
17
18
  const renderImage = (image, version) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-center", children: [image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-5", image: image }) : null, image?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: `w-8 h-8 min-w-8 mb-5 rounded-full`, image: (0, getIconWithVersion_1.getIconWithVersion)(image, version), asSVG: true })) : null] }));
18
19
  const renderCardTitle = (headlineSmallVersion, title) => title ? (0, jsx_runtime_1.jsx)("div", { className: constants_1.HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
19
20
  const renderDescription = (description, title) => description ? (0, jsx_runtime_1.jsx)("div", { className: `text-l ${title ? 'mt-2' : ''}`, children: description }) : null;
20
- const renderAdditionalDescription = (additionalDescription) => additionalDescription ? ((0, jsx_runtime_1.jsx)("div", { className: "text-m-light text-secondary-text mt-auto", children: additionalDescription })) : null;
21
+ const renderAdditionalDescription = (additionalDescription, version) => additionalDescription ? ((0, jsx_runtime_1.jsx)("div", { className: `text-m-light mt-auto ${BlockVersion_1.VersionAdditionalStyleMap[version ?? 'primary']}`, children: additionalDescription })) : null;
21
22
  const renderItems = (items, isDotted, version = 'primary') => ((0, jsx_runtime_1.jsx)(List_1.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 }));
22
23
  //# sourceMappingURL=GalleryCardInner.js.map
@@ -1 +1 @@
1
- {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CAAC,CAAC,CAAC,EAAE,EAAE,EAC7F,aAAa,EAAC,WAAW,EACzB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAc,CAAC,EAC5E,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,GAChB,CACH,CAAC"}
@@ -17,12 +17,12 @@ const HeaderTop_1 = require("./HeaderTop");
17
17
  exports.Header = (0, uni_jsx_1.JSX)(({ className = '', bgColor = 'bg-white', ...rest }) => {
18
18
  const router = (0, useRouter_1.useRouter)();
19
19
  const fallback = rest.options?.page?.fallback;
20
- const { topItems, dispositions, defaultLocation } = (0, useSWRResource_1.useSWRResource)(ProjectSettings_1.projectSettings.SITEMAP || 'sitemap', fallback);
20
+ const { topItems, dispositions, defaultLocation, logo } = (0, useSWRResource_1.useSWRResource)(ProjectSettings_1.projectSettings.SITEMAP || 'sitemap', fallback);
21
21
  const activeTopItem = topItems?.find((0, isTopItemActive_1.isTopItemActive)(router));
22
22
  const subItems = activeTopItem?.items;
23
23
  const activeSubItem = (0, findActiveSubItem_1.findActiveSubItem)(router)(subItems);
24
24
  const [burgerMenuShow, setBurgerMenuShow] = (0, hooks_1.useState)(false);
25
25
  const handleBurgerMenuShow = (0, hooks_1.useCallback)(() => setBurgerMenuShow((_) => !_), []);
26
- return ((0, jsx_runtime_1.jsxs)("header", { className: `${bgColor} ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "container px-4 py-0 box-border", children: [(0, jsx_runtime_1.jsx)(HeaderTop_1.HeaderTop, { onClick: handleBurgerMenuShow, bgColor: bgColor }), (0, jsx_runtime_1.jsx)("nav", { className: "flex items-center m-0 p-0 overflow-y-hidden w-full h-12", children: (0, jsx_runtime_1.jsx)("div", { className: "flex no-scrollbar horizontal-list h-full items-center", children: subItems?.map((_, i) => ((0, jsx_runtime_1.jsx)(HeaderItem_1.HeaderItem, { className: "mr-8 whitespace-nowrap text-s", active: _ === activeSubItem, bgColor: bgColor, ..._ }, String(i)))) }) })] }), burgerMenuShow ? ((0, jsx_runtime_1.jsx)(HeaderBurger_1.HeaderBurger, { onClick: handleBurgerMenuShow, burgerSubMenu: dispositions, defaultLocation: defaultLocation, children: (0, jsx_runtime_1.jsx)(AccordionItemsList_1.AccordionItemsList, { children: topItems?.map((item, i) => ((0, jsx_runtime_1.jsx)(AccordionItem_1.AccordionItem, { label: item.text, children: (0, jsx_runtime_1.jsx)(LinkList_1.LinkList, { documents: item.items }) }, String(i)))) }) })) : null] }));
26
+ return ((0, jsx_runtime_1.jsxs)("header", { className: `${bgColor} ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "container px-4 py-0 box-border", children: [(0, jsx_runtime_1.jsx)(HeaderTop_1.HeaderTop, { onClick: handleBurgerMenuShow, bgColor: bgColor, logo: logo }), (0, jsx_runtime_1.jsx)("nav", { className: "flex items-center m-0 p-0 overflow-y-hidden w-full h-12", children: (0, jsx_runtime_1.jsx)("div", { className: "flex no-scrollbar horizontal-list h-full items-center", children: subItems?.map((_, i) => ((0, jsx_runtime_1.jsx)(HeaderItem_1.HeaderItem, { className: "mr-8 whitespace-nowrap text-s", active: _ === activeSubItem, bgColor: bgColor, ..._ }, String(i)))) }) })] }), burgerMenuShow ? ((0, jsx_runtime_1.jsx)(HeaderBurger_1.HeaderBurger, { onClick: handleBurgerMenuShow, burgerSubMenu: dispositions, defaultLocation: defaultLocation, children: (0, jsx_runtime_1.jsx)(AccordionItemsList_1.AccordionItemsList, { children: topItems?.map((item, i) => ((0, jsx_runtime_1.jsx)(AccordionItem_1.AccordionItem, { label: item.text, children: (0, jsx_runtime_1.jsx)(LinkList_1.LinkList, { documents: item.items }) }, String(i)))) }) })) : null] }));
27
27
  });
28
28
  //# sourceMappingURL=Header.mobile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Header.mobile.js","s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E,OAAO,KACZ,CAAC,IAJA,MAAM,CAAC,CAAC,CAAC,CAKd,CACH,CAAC,GACE,GACF,IACF,EACL,cAAc,CAAC,CAAC,CAAC,CAChB,uBAAC,2BAAY,IACX,OAAO,EAAE,oBAAoB,EAC7B,aAAa,EAAE,YAAY,EAC3B,eAAe,EAAE,eAAe,YAEhC,uBAAC,uCAAkB,cAChB,QAAQ,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAC1B,uBAAC,6BAAa,IAAiB,KAAK,EAAE,IAAI,CAAC,IAAI,YAC7C,uBAAC,mBAAQ,IAAC,SAAS,EAAE,IAAI,CAAC,KAAK,GAAI,IADjB,MAAM,CAAC,CAAC,CAAC,CAEb,CACjB,CAAC,GACiB,GACR,CAChB,CAAC,CAAC,CAAC,IAAI,IACD,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import type { BgColorVersion } from '../../model/BgColorVersion';
2
+ import type { LogoType } from '../../model/LogoType';
2
3
  export interface HeaderTopProps {
3
4
  onClick: () => void;
4
5
  bgColor?: BgColorVersion;
6
+ logo?: LogoType;
5
7
  }
6
8
  export declare const HeaderTop: import("@redneckz/uni-jsx").UNIComponent<HeaderTopProps, any, any>;
@@ -4,5 +4,5 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const Img_1 = require("../../ui-kit/Img/Img");
6
6
  const Logo_1 = require("../../ui-kit/Logo/Logo");
7
- exports.HeaderTop = (0, uni_jsx_1.JSX)(({ onClick, bgColor }) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between border-0 border-b border-main-divider h-12", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center", children: [(0, jsx_runtime_1.jsx)("button", { className: "pl-0 pr-4 border-0 bg-transparent cursor-pointer", onClick: onClick, "aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon: 'BurgerIcon', iconVersion: bgColor === 'bg-white' ? 'black' : 'white' }, className: "text-primary-text w-6 h-6", width: "24", height: "24", asSVG: true }) }), (0, jsx_runtime_1.jsx)(Logo_1.Logo, { className: "mr-8", bgColor: bgColor })] }), (0, jsx_runtime_1.jsx)("button", { className: `${bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'} text-s border-0 bg-transparent cursor-pointer`, children: "\u0412\u043E\u0439\u0442\u0438" })] })));
7
+ exports.HeaderTop = (0, uni_jsx_1.JSX)(({ onClick, bgColor, logo }) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between border-0 border-b border-main-divider h-12", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center", children: [(0, jsx_runtime_1.jsx)("button", { className: "pl-0 pr-4 border-0 bg-transparent cursor-pointer", onClick: onClick, "aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon: 'BurgerIcon', iconVersion: bgColor === 'bg-white' ? 'black' : 'white' }, className: "text-primary-text w-6 h-6", width: "24", height: "24", asSVG: true }) }), (0, jsx_runtime_1.jsx)(Logo_1.Logo, { className: "mr-8", bgColor: bgColor, logo: logo })] }), (0, jsx_runtime_1.jsx)("button", { className: `${bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'} text-s border-0 bg-transparent cursor-pointer`, children: "\u0412\u043E\u0439\u0442\u0438" })] })));
8
8
  //# sourceMappingURL=HeaderTop.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderTop.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderTop.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,8CAA2C;AAC3C,iDAA8C;AAMjC,QAAA,SAAS,GAAG,IAAA,aAAG,EAAiB,CAAC,EAAE,OAAO,EAAE,O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AAI,EACX,KAAK,SACL,GACK,EACT,uBAAC,WAAI,IAAC,SAAS,EAAC,MAAM,EAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,GAAI,IACnD,EACN,mCACE,SAAS,EAAE,GACT,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,YACjD,gDAAgD,+CAGzC,IACL,CACP,CAAC,CAAC"}
@@ -8,36 +8,30 @@ const ButtonSection_1 = require("../../ui-kit/Button/ButtonSection");
8
8
  const Img_1 = require("../../ui-kit/Img/Img");
9
9
  const getTileRightPadding_1 = require("../BaseTile/getTileRightPadding");
10
10
  const Headline_1 = require("../Headline/Headline");
11
- exports.ProductTile = (0, uni_jsx_1.JSX)(({ className = '', title, headlineVersion = 'S', description, additionalDescription, benefits = [], buttons, image, version = 'primary', ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `overflow-hidden font-sans p-9 box-border relative justify-between grid min-h-[364px]
12
- ${className} ${BlockVersion_1.VersionStyleMap[version]} ${(0, getTileRightPadding_1.getTileRightPadding)(className)}`, ...rest, children: [(0, jsx_runtime_1.jsx)(Headline_1.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
13
- ? renderAdditionalDescription(additionalDescription, image, version)
14
- : null, buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { buttons: buttons, className: "flex self-end mt-5 gap-4 z-10 text-l" })) : null, image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "absolute right-0 bottom-0", image: image }) : null] })));
11
+ exports.ProductTile = (0, uni_jsx_1.JSX)(({ className = '', title, headlineVersion = 'S', description, additionalDescription, benefits = [], buttons, image, isImageOnRightSide = true, version = 'primary', ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `overflow-hidden font-sans p-9 box-border relative min-h-[364px]
12
+ ${BlockVersion_1.VersionStyleMap[version]} ${(0, getTileRightPadding_1.getTileRightPadding)(className)} ${className}`, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: `flex flex-col ${isImageOnRightSide ? '' : 'items-end'}`, children: [(0, jsx_runtime_1.jsx)(Headline_1.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 ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { buttons: buttons, className: "mt-5 gap-4 z-10 text-l" })) : null] }), renderImage(image, isImageOnRightSide)] })));
15
13
  function renderBenefits(benefits, version, image) {
16
14
  // picture width = 242px. Text can overlay picture 20px deep. Outer paddings_x = 36px. 242-36-20 = 186px
17
15
  const BENEFITS_WIDTH = image?.src ? 'max-w-[calc(100%-186px)]' : '100%';
18
16
  return ((0, jsx_runtime_1.jsx)("div", { className: `z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline
19
17
  ${BENEFITS_WIDTH}`, children: benefits.length ? benefits.map(renderBenefit(version)) : null }));
20
18
  }
21
- function renderBenefit(version = 'primary') {
22
- const labelStyleMap = {
23
- primary: 'text-secondary-text',
24
- secondary: 'text-white',
25
- };
26
- return function renderVersionedBenefit(benefit, i) {
27
- const { label = '', description = '' } = benefit;
28
- return [
29
- (0, jsx_runtime_1.jsx)("div", { className: "text-h6", children: label }, `label-${i}`),
30
- (0, jsx_runtime_1.jsx)("div", { className: `text-m-light ${labelStyleMap[version]}`, children: description }, `desc-${i}`),
31
- ];
32
- };
33
- }
34
- function renderAdditionalDescription(additionalDescription, image, version = 'primary') {
35
- const descStyleMap = {
36
- primary: 'text-secondary-text',
37
- secondary: 'text-white',
38
- };
19
+ const renderBenefit = (version = 'primary') => (benefit, i) => {
20
+ const { label = '', description = '' } = benefit;
21
+ return [
22
+ (0, jsx_runtime_1.jsx)("div", { className: "text-h6", children: label }, `label-${i}`),
23
+ (0, jsx_runtime_1.jsx)("div", { className: `text-m-light ${BlockVersion_1.VersionAdditionalStyleMap[version]}`, children: description }, `desc-${i}`),
24
+ ];
25
+ };
26
+ function renderAdditionalDescription(additionalDescription, image) {
39
27
  // picture width = 242px. Text can overlay picture 20px deep. Outer paddings_x = 36px. 242-36-20 = 186px
40
28
  const DESCRIPTION_WIDTH = image?.src ? 'max-w-[calc(100%-186px)]' : '100%';
41
- return ((0, jsx_runtime_1.jsx)("div", { className: `text-m-light mt-2.5 z-10 ${DESCRIPTION_WIDTH} ${descStyleMap[version]}`, children: additionalDescription }));
29
+ return ((0, jsx_runtime_1.jsx)("div", { className: `text-m-light mt-2.5 z-10 ${DESCRIPTION_WIDTH}`, children: additionalDescription }));
30
+ }
31
+ function renderImage(image, isImageOnRightSide) {
32
+ if (!image?.src) {
33
+ return null;
34
+ }
35
+ return ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: `absolute ${isImageOnRightSide ? 'right-0' : 'left-0'} bottom-0`, image: image }));
42
36
  }
43
37
  //# sourceMappingURL=ProductTile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,2DAA2D;AAG3D,4DAAyD;AACzD,qEAAkE;AAClE,8CAA2C;AAC3C,yEAAsE;AACtE,mDAAgD;AAKnC,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,eAAe,GAAG,GAAG,EACrB,WAAW,EACX,qBAAqB,EACrB,QAAQ,GAAG,EAAE,EACb,OAAO,EACP,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,GAAG,IA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,CAAC,CAAC,CAAC,IAAI,GAC1D,CACP,CAAC;AACJ,CAAC;AAED,SAAS,aAAa,CAAC,UAAwB,SAAS;IACtD,MAAM,aAAa,GAAiC;QAClD,OAAO,EAAE,qBAAqB;QAC9B,SAAS,EAAE,YAAY;KACxB,CAAC;IAEF,OAAO,SAAS,sBAAsB,CAAC,OAAoB,EAAE,CAAS;QACpE,MAAM,EAAE,KAAK,GAAG,EAAE,EAAE,WAAW,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC;QAEjD,OAAO;YACL,gCAAwB,SAAS,EAAC,SAAS,YACxC,KAAK,IADE,SAAS,CAAC,EAAE,CAEhB;YACN,gCAAuB,SAAS,EAAE,gBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE,YACvE,WAAW,IADJ,QAAQ,CAAC,EAAE,CAEf;SACP,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,2BAA2B,CAClC,qBAA6B,EAC7B,KAAe,EACf,UAAwB,SAAS;IAEjC,MAAM,YAAY,GAAiC;QACjD,OAAO,EAAE,qBAAqB;QAC9B,SAAS,EAAE,YAAY;KACxB,CAAC;IAEF,wGAAwG;IACxG,MAAM,iBAAiB,GAAG,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAC,MAAM,CAAC;IAE3E,OAAO,CACL,gCAAK,SAAS,EAAE,4BAA4B,iBAAiB,IAAI,YAAY,CAAC,OAAO,CAAC,EAAE,YACrF,qBAAqB,GAClB,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,2DAAsF;AAGtF,4DAAyD;AACzD,qEAAkE;AAClE,8CAA2C;AAC3C,yEAAsE;AACtE,mDAAgD;AAKnC,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,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
30
  benefits?: TextBenefit[];
31
31
  /** @title Дополнительное описание */
32
32
  additionalDescription?: string;
33
+ /** @title Картинка справа/текст слева */
34
+ isImageOnRightSide?: boolean;
33
35
  };
@@ -10,10 +10,10 @@ const alignStyle = {
10
10
  right: 'items-end',
11
11
  };
12
12
  const gapStyleMap = {
13
- XXL: 'gap-10',
14
- XL: 'gap-8',
15
- L: 'gap-4',
16
- M: 'gap-3',
13
+ XXL: 'gap-12',
14
+ XL: 'gap-10',
15
+ L: 'gap-8',
16
+ M: 'gap-4',
17
17
  S: 'gap-2',
18
18
  XS: 'gap-1',
19
19
  '': '',
@@ -23,15 +23,20 @@ const backgroundStyleMap = {
23
23
  primary: 'bg-white',
24
24
  secondary: 'bg-primary-main',
25
25
  };
26
- exports.VerticalLayout = (0, uni_jsx_1.JSX)(({ className = '', gap = '', align, version = 'transparent', ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: [
27
- 'flex flex-col',
28
- gapStyleMap[gap],
29
- align && alignStyle[align],
30
- backgroundStyleMap[version],
31
- className,
32
- ]
33
- .filter(Boolean)
34
- .join(' '), ...rest, children: (0, renderChildren_1.renderChildren)(rest) })));
26
+ exports.VerticalLayout = (0, uni_jsx_1.JSX)(({ className = '', gap = '', align, isPadding = false, isInnerPadding = true, version = 'transparent', options, ...rest }) => {
27
+ const paddingStyle = isPadding ? 'p-12' : '';
28
+ const innerPaddingStyle = isInnerPadding ? '' : '!p-0';
29
+ return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: [
30
+ 'flex flex-col [&>*]:max-w-full',
31
+ paddingStyle,
32
+ gapStyleMap[gap],
33
+ align && alignStyle[align],
34
+ backgroundStyleMap[version],
35
+ className,
36
+ ]
37
+ .filter(Boolean)
38
+ .join(' '), ...rest, children: (0, renderChildren_1.renderChildren)({ ...rest, options: { ...options, className: innerPaddingStyle } }) }));
39
+ });
35
40
  exports.VerticalLayout.childrenTypes = {
36
41
  exclude: ['VerticalLayout'],
37
42
  };
@@ -1 +1 @@
1
- {"version":3,"file":"VerticalLayout.js","sourceRoot":"","sources":["../../../src/components/VerticalLayout/VerticalLayout.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uEAAoE;AAIpE,4DAAyD;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;AAEW,QAAA,cAAc,GAAkC,IAAA,aAAG,EAC9D,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,GAAG,EAAE,EAAE,KAAK,EAAE,OAAO,GAAG,aAAa,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACzE,uBAAC,2BAAY,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,IAAA,+BAAc,EAAC,IAAI,CAAC,GACR,CAChB,CACF,CAAC;AAEF,sBAAc,CAAC,aAAa,GAAG;IAC7B,OAAO,EAAE,CAAC,gBAAgB,CAAC;CAC5B,CAAC"}
1
+ {"version":3,"file":"VerticalLayout.js","sourceRoot":"","sources":["../../../src/components/VerticalLayout/VerticalLayout.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AO,EAAE,SAAS,EAAE,iBAAiB,EAAE,EAAE,CAAC,GACtE,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,sBAAc,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>;
@@ -1,9 +1,13 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.VersionWithTransparentStyleMap = exports.VersionStyleMap = void 0;
2
+ exports.VersionWithTransparentStyleMap = exports.VersionAdditionalStyleMap = exports.VersionStyleMap = void 0;
3
3
  exports.VersionStyleMap = {
4
4
  primary: 'bg-white text-primary-text',
5
5
  secondary: 'bg-primary-main text-white',
6
6
  };
7
+ exports.VersionAdditionalStyleMap = {
8
+ primary: 'text-secondary-text',
9
+ secondary: 'text-white',
10
+ };
7
11
  exports.VersionWithTransparentStyleMap = {
8
12
  transparent: '',
9
13
  primary: 'bg-white text-primary-text',
@@ -1 +1 @@
1
- {"version":3,"file":"BlockVersion.js","sourceRoot":"","sources":["../../src/model/BlockVersion.ts"],"names":[],"mappings":";;AAYa,QAAA,eAAe,GAAiC;IAC3D,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEW,QAAA,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,QAAA,eAAe,GAAiC;IAC3D,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEW,QAAA,yBAAyB,GAAiC;IACrE,OAAO,EAAE,qBAAqB;IAC9B,SAAS,EAAE,YAAY;CACxB,CAAC;AAEW,QAAA,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
+ Object.defineProperty(exports, "__esModule", { value: true });
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 {};
@@ -6,11 +6,11 @@ const Img_1 = require("../Img/Img");
6
6
  const Button_1 = require("./Button");
7
7
  exports.ButtonSection = (0, uni_jsx_1.JSX)(({ className = '', buttons }) => buttons && buttons?.length ? ((0, jsx_runtime_1.jsx)("div", { className: className, children: buttons.map((button, index) => renderButton({ button, index })) })) : null);
8
8
  function renderButton({ button, buttonClassName, index }) {
9
- const { icon, iconRight, version, ...rest } = button;
9
+ const { icon, iconRight, version, text, ...rest } = button;
10
10
  const iconVersion = version === 'secondary' ? 'color' : 'white';
11
11
  const leftIcon = renderButtonIcon({ ...icon, iconVersion: iconVersion });
12
12
  const rightIcon = renderButtonIcon({ ...iconRight, iconVersion: iconVersion });
13
- return ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: buttonClassName, appendLeft: leftIcon, appendRight: rightIcon, version: version, ...rest }, index ? String(index) : ''));
13
+ return text ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: buttonClassName, appendLeft: leftIcon, appendRight: rightIcon, version: version, text: text, ...rest }, index ? String(index) : '')) : null;
14
14
  }
15
15
  exports.renderButton = renderButton;
16
16
  const renderButtonIcon = (icon) => {
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonSection.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonSection.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,oCAAiC;AACjC,qCAAkC;AAYrB,QAAA,aAAa,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CACnF,OAAO,IAAI,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAC3B,gCAAK,SAAS,EAAE,SAAS,YACtB,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,KAA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AC,EAAE,CAO/B,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC;AAlBD,oCAkBC;AAED,MAAM,gBAAgB,GAAG,CAAC,IAAa,EAAE,EAAE;IACzC,IAAI,CAAC,IAAI,EAAE,IAAI,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE;QAC7B,OAAO,IAAI,CAAC;KACb;IACD,MAAM,SAAS,GAAG,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IAElE,OAAO,uBAAC,SAAG,IAAC,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAAC;AACzE,CAAC,CAAC"}
@@ -1,13 +1,10 @@
1
- import type { Picture } from '../../model/Picture';
1
+ import type { LogoType } from '../../model/LogoType';
2
2
  export interface LogoProps {
3
3
  className: string;
4
4
  href: string;
5
5
  targetBlank: boolean;
6
6
  bgColor?: string;
7
7
  showTitle?: boolean;
8
- logo?: {
9
- image?: Picture;
10
- title?: string;
11
- };
8
+ logo?: LogoType;
12
9
  }
13
10
  export declare const Logo: import("@redneckz/uni-jsx").UNIComponent<Partial<LogoProps>, any, any>;
@@ -2,27 +2,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.Logo = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const Img_1 = require("../Img/Img");
6
- const ICON_VERSION_MAP = {
7
- 'bg-white': 'color',
8
- transparent: 'white',
9
- };
10
- const SVG_COLOR = {
11
- 'bg-white': 'text-primary-main',
12
- transparent: 'text-white',
13
- };
14
- const TEXT_COLOR = {
15
- 'bg-white': 'text-primary-text',
16
- transparent: 'text-white',
17
- };
5
+ const renderImage_1 = require("./renderImage");
6
+ const renderTitle_1 = require("./renderTitle");
18
7
  exports.Logo = (0, uni_jsx_1.JSX)(({ className = '', href, logo, children = logo?.title, targetBlank, bgColor = 'bg-white', showTitle = true, }) => {
19
- return ((0, jsx_runtime_1.jsxs)("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || '/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [logo?.image?.src ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: logo.image, className: SVG_COLOR[bgColor], width: "40", height: "45", asSVG: true })) : ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: {
20
- icon: logo?.image?.icon || 'LogoIcon',
21
- iconVersion: ICON_VERSION_MAP[bgColor],
22
- }, className: `${SVG_COLOR[bgColor]} w-10`, width: "40", height: "45", asSVG: true })), showTitle ? renderTitle(children, bgColor, logo?.title) : null] }));
8
+ return ((0, jsx_runtime_1.jsxs)("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || '/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [(0, renderImage_1.renderImage)(bgColor, logo?.image, { width: '40', height: '45' }), showTitle ? (0, renderTitle_1.renderTitle)(children || logo?.title, bgColor) : null] }));
23
9
  });
24
- const renderTitle = (children, bgColor, title) => {
25
- const text = children || title || 'Россельхозбанк';
26
- return (0, jsx_runtime_1.jsx)("span", { className: `${TEXT_COLOR[bgColor]} font-medium ml-2.5`, children: text });
27
- };
28
10
  //# sourceMappingURL=Logo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/Logo.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,oCAAiC;AAcjC,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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AAE,KAAc,EAAE,EAAE;IACvE,MAAM,IAAI,GAAG,QAAQ,IAAI,KAAK,IAAI,gBAAgB,CAAC;IAEnD,OAAO,iCAAM,SAAS,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,qBAAqB,YAAG,IAAI,GAAQ,CAAC;AACrF,CAAC,CAAC"}
1
+ {"version":3,"file":"Logo.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/Logo.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,+CAA4C;AAC5C,+CAA4C;AAW/B,QAAA,IAAI,GAAG,IAAA,aAAG,EACrB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,IAAI,EACJ,IAAI,EACJ,QAAQ,GAAG,IAAI,EAAE,KAAK,EACtB,WAAW,EACX,OAAO,GAAG,UAAU,EACpB,SAAS,GAAG,IAAI,GACjB,EAAE,EAAE;IACH,OAAO,CACL,+BACE,SAAS,EAAE,mDAAmD,SAAS,EAAE,EACzE,IAAI,EAAE,IAAI,IAAI,GAAG,EACjB,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,gBAC5B,IAAI,EAAE,KAAK,IAAI,gBAAgB,aAE1C,IAAA,yBAAW,EAAC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAChE,SAAS,CAAC,CAAC,CAAC,IAAA,yBAAW,EAAC,QAAQ,IAAI,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,IAC/D,CACL,CAAC;AACJ,CAAC,CACF,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>;
@@ -2,20 +2,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.Logo = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const Img_1 = require("../Img/Img");
6
- const ICON_VERSION_MAP = {
7
- 'bg-white': 'color',
8
- transparent: 'white',
9
- };
10
- const SVG_COLOR = {
11
- 'bg-white': 'text-primary-main',
12
- transparent: 'text-white',
13
- };
14
- const TEXT_COLOR = {
15
- 'bg-white': 'text-black',
16
- transparent: 'text-white',
17
- };
18
- exports.Logo = (0, uni_jsx_1.JSX)(({ className = '', href, children, targetBlank, bgColor = 'bg-white', showTitle = true }) => {
19
- return ((0, jsx_runtime_1.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: [(0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon: 'LogoIcon', iconVersion: ICON_VERSION_MAP[bgColor] }, className: `${SVG_COLOR[bgColor]}`, width: "34", height: "34", asSVG: true }), showTitle ? ((0, jsx_runtime_1.jsx)("span", { className: `${TEXT_COLOR[bgColor]} text-s font-medium ml-2.5`, children: children || 'Россельхозбанк' })) : null] }));
5
+ const renderImage_1 = require("./renderImage");
6
+ const renderTitle_1 = require("./renderTitle");
7
+ exports.Logo = (0, uni_jsx_1.JSX)(({ bgColor = 'bg-white', children, className = '', href, logo, showTitle = true, targetBlank, }) => {
8
+ return ((0, jsx_runtime_1.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: [(0, renderImage_1.renderImage)(bgColor, logo?.image, { width: '34', height: '34' }), showTitle ? (0, renderTitle_1.renderTitle)(children || logo?.title, bgColor, 'text-s') : null] }));
20
9
  });
21
10
  //# sourceMappingURL=Logo.mobile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/Logo.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,oCAAiC;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;AAEW,QAAA,IAAI,GAAG,IAAA,aAAG,EACrB,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,+BACE,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,uBAAC,SAAG,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,iCAAM,SAAS,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,4BAA4B,YAChE,QAAQ,IAAI,gBAAgB,GACxB,CACR,CAAC,CAAC,C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