@redneckz/wildless-cms-uni-blocks 0.8.14 → 0.8.16

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 (368) hide show
  1. package/bin/migration-scripts/0.8.10.js +1 -1
  2. package/bin/migration-scripts/0.8.15.js +29 -0
  3. package/bin/migration-scripts/0.8.8.js +115 -0
  4. package/bundle/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  5. package/bundle/BlockRenderer/renderBlockList.d.ts +2 -2
  6. package/bundle/BlockRenderer/renderChildren.d.ts +2 -2
  7. package/bundle/blocks.schema.json +1 -1
  8. package/bundle/bundle.umd.js +37 -121
  9. package/bundle/bundle.umd.min.js +1 -1
  10. package/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
  11. package/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  12. package/dist/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  13. package/dist/BlockRenderer/renderBlock.js +2 -2
  14. package/dist/BlockRenderer/renderBlock.js.map +1 -1
  15. package/dist/BlockRenderer/renderBlockList.d.ts +2 -2
  16. package/dist/BlockRenderer/renderBlockList.js +1 -1
  17. package/dist/BlockRenderer/renderChildren.d.ts +2 -2
  18. package/dist/BlockRenderer/renderChildren.js +2 -2
  19. package/dist/components/Blocks.js +0 -6
  20. package/dist/components/Blocks.js.map +1 -1
  21. package/dist/components/Blocks.mobile.js +0 -2
  22. package/dist/components/Blocks.mobile.js.map +1 -1
  23. package/dist/components/Carousel/Carousel.js +9 -18
  24. package/dist/components/Carousel/Carousel.js.map +1 -1
  25. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
  26. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +3 -1
  27. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  28. package/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  29. package/dist/components/ProductBlock/ProductBlockInner.js +3 -2
  30. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  31. package/dist/components/Tabs/Tabs.js +1 -1
  32. package/dist/components/Tabs/Tabs.js.map +1 -1
  33. package/dist/ui-kit/Img/ImgAsPicture.js +3 -9
  34. package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
  35. package/lib/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  36. package/lib/BlockRenderer/renderBlock.js +2 -2
  37. package/lib/BlockRenderer/renderBlock.js.map +1 -1
  38. package/lib/BlockRenderer/renderBlockList.d.ts +2 -2
  39. package/lib/BlockRenderer/renderBlockList.js +1 -1
  40. package/lib/BlockRenderer/renderChildren.d.ts +2 -2
  41. package/lib/BlockRenderer/renderChildren.js +2 -2
  42. package/lib/common.css +1 -1
  43. package/lib/components/Blocks.js +0 -6
  44. package/lib/components/Blocks.js.map +1 -1
  45. package/lib/components/Blocks.mobile.js +0 -2
  46. package/lib/components/Blocks.mobile.js.map +1 -1
  47. package/lib/components/Carousel/Carousel.js +9 -18
  48. package/lib/components/Carousel/Carousel.js.map +1 -1
  49. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
  50. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +3 -1
  51. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  52. package/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  53. package/lib/components/ProductBlock/ProductBlockInner.js +3 -2
  54. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  55. package/lib/components/Tabs/Tabs.js +1 -1
  56. package/lib/components/Tabs/Tabs.js.map +1 -1
  57. package/lib/ui-kit/Img/ImgAsPicture.js +3 -9
  58. package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
  59. package/mobile/bundle/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  60. package/mobile/bundle/BlockRenderer/renderBlockList.d.ts +2 -2
  61. package/mobile/bundle/BlockRenderer/renderChildren.d.ts +2 -2
  62. package/mobile/bundle/bundle.umd.js +11 -44
  63. package/mobile/bundle/bundle.umd.min.js +1 -1
  64. package/mobile/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
  65. package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  66. package/mobile/dist/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  67. package/mobile/dist/BlockRenderer/renderBlock.js +2 -2
  68. package/mobile/dist/BlockRenderer/renderBlock.js.map +1 -1
  69. package/mobile/dist/BlockRenderer/renderBlockList.d.ts +2 -2
  70. package/mobile/dist/BlockRenderer/renderBlockList.js +1 -1
  71. package/mobile/dist/BlockRenderer/renderChildren.d.ts +2 -2
  72. package/mobile/dist/BlockRenderer/renderChildren.js +2 -2
  73. package/mobile/dist/components/Blocks.js +0 -2
  74. package/mobile/dist/components/Blocks.js.map +1 -1
  75. package/mobile/dist/components/Carousel/Carousel.js +9 -18
  76. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  77. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
  78. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +3 -1
  79. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  80. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  81. package/mobile/dist/components/Tabs/Tabs.js +1 -1
  82. package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
  83. package/mobile/dist/ui-kit/Img/ImgAsPicture.js +3 -9
  84. package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
  85. package/mobile/lib/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  86. package/mobile/lib/BlockRenderer/renderBlock.js +2 -2
  87. package/mobile/lib/BlockRenderer/renderBlock.js.map +1 -1
  88. package/mobile/lib/BlockRenderer/renderBlockList.d.ts +2 -2
  89. package/mobile/lib/BlockRenderer/renderBlockList.js +1 -1
  90. package/mobile/lib/BlockRenderer/renderChildren.d.ts +2 -2
  91. package/mobile/lib/BlockRenderer/renderChildren.js +2 -2
  92. package/mobile/lib/components/Blocks.js +0 -2
  93. package/mobile/lib/components/Blocks.js.map +1 -1
  94. package/mobile/lib/components/Carousel/Carousel.js +9 -18
  95. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  96. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
  97. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +3 -1
  98. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  99. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  100. package/mobile/lib/components/Tabs/Tabs.js +1 -1
  101. package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
  102. package/mobile/lib/ui-kit/Img/ImgAsPicture.js +3 -9
  103. package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
  104. package/mobile/src/BlockRenderer/BlockRendererOptions.ts +1 -0
  105. package/mobile/src/BlockRenderer/renderBlock.tsx +2 -0
  106. package/mobile/src/BlockRenderer/renderBlockList.tsx +3 -3
  107. package/mobile/src/BlockRenderer/renderChildren.ts +3 -3
  108. package/mobile/src/components/Blocks.ts +0 -2
  109. package/mobile/src/components/Carousel/Carousel.tsx +9 -19
  110. package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +5 -3
  111. package/mobile/src/components/ProductBlock/ProductBlock.ui.json +3 -0
  112. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +2 -0
  113. package/mobile/src/components/Tabs/Tabs.tsx +1 -1
  114. package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +4 -10
  115. package/package.json +1 -1
  116. package/src/BlockRenderer/BlockRendererOptions.ts +1 -0
  117. package/src/BlockRenderer/renderBlock.tsx +2 -0
  118. package/src/BlockRenderer/renderBlockList.tsx +3 -3
  119. package/src/BlockRenderer/renderChildren.ts +3 -3
  120. package/src/components/Accordion/Accordion.fixture.tsx +0 -12
  121. package/src/components/Blocks.mobile.ts +0 -2
  122. package/src/components/Blocks.ts +0 -6
  123. package/src/components/Carousel/Carousel.tsx +9 -19
  124. package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +5 -3
  125. package/src/components/OtherProducts/OtherProducts.fixture.tsx +0 -18
  126. package/src/components/PictureText/PictureText.fixture.tsx +1 -1
  127. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +1 -1
  128. package/src/components/ProductBlock/ProductBlock.ui.json +3 -0
  129. package/src/components/ProductBlock/ProductBlockContent.ts +2 -0
  130. package/src/components/ProductBlock/ProductBlockInner.tsx +7 -0
  131. package/src/components/Tabs/Tabs.tsx +1 -1
  132. package/src/ui-kit/Img/ImgAsPicture.tsx +4 -10
  133. package/bundle/components/Catalog/Catalog.d.ts +0 -5
  134. package/bundle/components/Catalog/CatalogCard.d.ts +0 -7
  135. package/bundle/components/Catalog/CatalogContent.d.ts +0 -27
  136. package/bundle/components/Gallery/Gallery.d.ts +0 -2
  137. package/bundle/components/Gallery/Gallery.mobile.d.ts +0 -2
  138. package/bundle/components/Gallery/GalleryCardInner.d.ts +0 -2
  139. package/bundle/components/Gallery/GalleryContainer.d.ts +0 -11
  140. package/bundle/components/Gallery/GalleryContent.d.ts +0 -71
  141. package/bundle/components/Gallery/GalleryInner.d.ts +0 -7
  142. package/bundle/components/Gallery/GalleryProps.d.ts +0 -4
  143. package/bundle/components/Gallery/constants.d.ts +0 -4
  144. package/bundle/components/MiniGallery/MiniGallery.d.ts +0 -5
  145. package/bundle/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
  146. package/bundle/model/GalleryVersion.d.ts +0 -1
  147. package/dist/components/Catalog/Catalog.d.ts +0 -5
  148. package/dist/components/Catalog/Catalog.js +0 -24
  149. package/dist/components/Catalog/Catalog.js.map +0 -1
  150. package/dist/components/Catalog/CatalogCard.d.ts +0 -7
  151. package/dist/components/Catalog/CatalogCard.js +0 -14
  152. package/dist/components/Catalog/CatalogCard.js.map +0 -1
  153. package/dist/components/Catalog/CatalogContent.d.ts +0 -27
  154. package/dist/components/Catalog/CatalogContent.js +0 -2
  155. package/dist/components/Catalog/CatalogContent.js.map +0 -1
  156. package/dist/components/Gallery/Gallery.d.ts +0 -2
  157. package/dist/components/Gallery/Gallery.js +0 -7
  158. package/dist/components/Gallery/Gallery.js.map +0 -1
  159. package/dist/components/Gallery/Gallery.mobile.d.ts +0 -2
  160. package/dist/components/Gallery/Gallery.mobile.js +0 -35
  161. package/dist/components/Gallery/Gallery.mobile.js.map +0 -1
  162. package/dist/components/Gallery/GalleryCardInner.d.ts +0 -2
  163. package/dist/components/Gallery/GalleryCardInner.js +0 -20
  164. package/dist/components/Gallery/GalleryCardInner.js.map +0 -1
  165. package/dist/components/Gallery/GalleryContainer.d.ts +0 -11
  166. package/dist/components/Gallery/GalleryContainer.js +0 -15
  167. package/dist/components/Gallery/GalleryContainer.js.map +0 -1
  168. package/dist/components/Gallery/GalleryContent.d.ts +0 -71
  169. package/dist/components/Gallery/GalleryContent.js +0 -2
  170. package/dist/components/Gallery/GalleryContent.js.map +0 -1
  171. package/dist/components/Gallery/GalleryInner.d.ts +0 -7
  172. package/dist/components/Gallery/GalleryInner.js +0 -23
  173. package/dist/components/Gallery/GalleryInner.js.map +0 -1
  174. package/dist/components/Gallery/GalleryProps.d.ts +0 -4
  175. package/dist/components/Gallery/GalleryProps.js +0 -2
  176. package/dist/components/Gallery/GalleryProps.js.map +0 -1
  177. package/dist/components/Gallery/constants.d.ts +0 -4
  178. package/dist/components/Gallery/constants.js +0 -15
  179. package/dist/components/Gallery/constants.js.map +0 -1
  180. package/dist/components/MiniGallery/MiniGallery.d.ts +0 -5
  181. package/dist/components/MiniGallery/MiniGallery.js +0 -7
  182. package/dist/components/MiniGallery/MiniGallery.js.map +0 -1
  183. package/dist/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
  184. package/dist/components/MiniGallery/MiniGalleryContent.js +0 -2
  185. package/dist/components/MiniGallery/MiniGalleryContent.js.map +0 -1
  186. package/dist/model/GalleryVersion.d.ts +0 -1
  187. package/dist/model/GalleryVersion.js +0 -2
  188. package/dist/model/GalleryVersion.js.map +0 -1
  189. package/lib/components/Catalog/Catalog.d.ts +0 -5
  190. package/lib/components/Catalog/Catalog.fixture.d.ts +0 -8
  191. package/lib/components/Catalog/Catalog.js +0 -22
  192. package/lib/components/Catalog/Catalog.js.map +0 -1
  193. package/lib/components/Catalog/CatalogCard.d.ts +0 -7
  194. package/lib/components/Catalog/CatalogCard.js +0 -12
  195. package/lib/components/Catalog/CatalogCard.js.map +0 -1
  196. package/lib/components/Catalog/CatalogContent.d.ts +0 -27
  197. package/lib/components/Catalog/CatalogContent.js +0 -2
  198. package/lib/components/Catalog/CatalogContent.js.map +0 -1
  199. package/lib/components/Gallery/Gallery.d.ts +0 -2
  200. package/lib/components/Gallery/Gallery.fixture.d.ts +0 -12
  201. package/lib/components/Gallery/Gallery.fixture.mobile.d.ts +0 -7
  202. package/lib/components/Gallery/Gallery.js +0 -5
  203. package/lib/components/Gallery/Gallery.js.map +0 -1
  204. package/lib/components/Gallery/Gallery.mobile.d.ts +0 -2
  205. package/lib/components/Gallery/Gallery.mobile.js +0 -33
  206. package/lib/components/Gallery/Gallery.mobile.js.map +0 -1
  207. package/lib/components/Gallery/GalleryCardInner.d.ts +0 -2
  208. package/lib/components/Gallery/GalleryCardInner.js +0 -18
  209. package/lib/components/Gallery/GalleryCardInner.js.map +0 -1
  210. package/lib/components/Gallery/GalleryContainer.d.ts +0 -11
  211. package/lib/components/Gallery/GalleryContainer.js +0 -13
  212. package/lib/components/Gallery/GalleryContainer.js.map +0 -1
  213. package/lib/components/Gallery/GalleryContent.d.ts +0 -71
  214. package/lib/components/Gallery/GalleryContent.js +0 -2
  215. package/lib/components/Gallery/GalleryContent.js.map +0 -1
  216. package/lib/components/Gallery/GalleryInner.d.ts +0 -7
  217. package/lib/components/Gallery/GalleryInner.js +0 -21
  218. package/lib/components/Gallery/GalleryInner.js.map +0 -1
  219. package/lib/components/Gallery/GalleryProps.d.ts +0 -4
  220. package/lib/components/Gallery/GalleryProps.js +0 -2
  221. package/lib/components/Gallery/GalleryProps.js.map +0 -1
  222. package/lib/components/Gallery/constants.d.ts +0 -4
  223. package/lib/components/Gallery/constants.js +0 -13
  224. package/lib/components/Gallery/constants.js.map +0 -1
  225. package/lib/components/MiniGallery/MiniGallery.d.ts +0 -5
  226. package/lib/components/MiniGallery/MiniGallery.fixture.d.ts +0 -11
  227. package/lib/components/MiniGallery/MiniGallery.js +0 -5
  228. package/lib/components/MiniGallery/MiniGallery.js.map +0 -1
  229. package/lib/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
  230. package/lib/components/MiniGallery/MiniGalleryContent.js +0 -2
  231. package/lib/components/MiniGallery/MiniGalleryContent.js.map +0 -1
  232. package/lib/model/GalleryVersion.d.ts +0 -1
  233. package/lib/model/GalleryVersion.js +0 -2
  234. package/lib/model/GalleryVersion.js.map +0 -1
  235. package/mobile/bundle/components/Catalog/Catalog.d.ts +0 -5
  236. package/mobile/bundle/components/Catalog/CatalogCard.d.ts +0 -7
  237. package/mobile/bundle/components/Catalog/CatalogContent.d.ts +0 -27
  238. package/mobile/bundle/components/Gallery/Gallery.d.ts +0 -2
  239. package/mobile/bundle/components/Gallery/GalleryCardInner.d.ts +0 -2
  240. package/mobile/bundle/components/Gallery/GalleryContainer.d.ts +0 -11
  241. package/mobile/bundle/components/Gallery/GalleryContent.d.ts +0 -71
  242. package/mobile/bundle/components/Gallery/GalleryInner.d.ts +0 -7
  243. package/mobile/bundle/components/Gallery/GalleryProps.d.ts +0 -4
  244. package/mobile/bundle/components/Gallery/constants.d.ts +0 -4
  245. package/mobile/bundle/components/MiniGallery/MiniGallery.d.ts +0 -5
  246. package/mobile/bundle/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
  247. package/mobile/bundle/model/GalleryVersion.d.ts +0 -1
  248. package/mobile/dist/components/Catalog/Catalog.d.ts +0 -5
  249. package/mobile/dist/components/Catalog/Catalog.js +0 -24
  250. package/mobile/dist/components/Catalog/Catalog.js.map +0 -1
  251. package/mobile/dist/components/Catalog/CatalogCard.d.ts +0 -7
  252. package/mobile/dist/components/Catalog/CatalogCard.js +0 -14
  253. package/mobile/dist/components/Catalog/CatalogCard.js.map +0 -1
  254. package/mobile/dist/components/Catalog/CatalogContent.d.ts +0 -27
  255. package/mobile/dist/components/Catalog/CatalogContent.js +0 -2
  256. package/mobile/dist/components/Catalog/CatalogContent.js.map +0 -1
  257. package/mobile/dist/components/Gallery/Gallery.d.ts +0 -2
  258. package/mobile/dist/components/Gallery/Gallery.js +0 -35
  259. package/mobile/dist/components/Gallery/Gallery.js.map +0 -1
  260. package/mobile/dist/components/Gallery/GalleryCardInner.d.ts +0 -2
  261. package/mobile/dist/components/Gallery/GalleryCardInner.js +0 -20
  262. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +0 -1
  263. package/mobile/dist/components/Gallery/GalleryContainer.d.ts +0 -11
  264. package/mobile/dist/components/Gallery/GalleryContainer.js +0 -15
  265. package/mobile/dist/components/Gallery/GalleryContainer.js.map +0 -1
  266. package/mobile/dist/components/Gallery/GalleryContent.d.ts +0 -71
  267. package/mobile/dist/components/Gallery/GalleryContent.js +0 -2
  268. package/mobile/dist/components/Gallery/GalleryContent.js.map +0 -1
  269. package/mobile/dist/components/Gallery/GalleryInner.d.ts +0 -7
  270. package/mobile/dist/components/Gallery/GalleryInner.js +0 -23
  271. package/mobile/dist/components/Gallery/GalleryInner.js.map +0 -1
  272. package/mobile/dist/components/Gallery/GalleryProps.d.ts +0 -4
  273. package/mobile/dist/components/Gallery/GalleryProps.js +0 -2
  274. package/mobile/dist/components/Gallery/GalleryProps.js.map +0 -1
  275. package/mobile/dist/components/Gallery/constants.d.ts +0 -4
  276. package/mobile/dist/components/Gallery/constants.js +0 -15
  277. package/mobile/dist/components/Gallery/constants.js.map +0 -1
  278. package/mobile/dist/components/MiniGallery/MiniGallery.d.ts +0 -5
  279. package/mobile/dist/components/MiniGallery/MiniGallery.js +0 -7
  280. package/mobile/dist/components/MiniGallery/MiniGallery.js.map +0 -1
  281. package/mobile/dist/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
  282. package/mobile/dist/components/MiniGallery/MiniGalleryContent.js +0 -2
  283. package/mobile/dist/components/MiniGallery/MiniGalleryContent.js.map +0 -1
  284. package/mobile/dist/model/GalleryVersion.d.ts +0 -1
  285. package/mobile/dist/model/GalleryVersion.js +0 -2
  286. package/mobile/dist/model/GalleryVersion.js.map +0 -1
  287. package/mobile/lib/components/Catalog/Catalog.d.ts +0 -5
  288. package/mobile/lib/components/Catalog/Catalog.js +0 -22
  289. package/mobile/lib/components/Catalog/Catalog.js.map +0 -1
  290. package/mobile/lib/components/Catalog/CatalogCard.d.ts +0 -7
  291. package/mobile/lib/components/Catalog/CatalogCard.js +0 -12
  292. package/mobile/lib/components/Catalog/CatalogCard.js.map +0 -1
  293. package/mobile/lib/components/Catalog/CatalogContent.d.ts +0 -27
  294. package/mobile/lib/components/Catalog/CatalogContent.js +0 -2
  295. package/mobile/lib/components/Catalog/CatalogContent.js.map +0 -1
  296. package/mobile/lib/components/Gallery/Gallery.d.ts +0 -2
  297. package/mobile/lib/components/Gallery/Gallery.js +0 -33
  298. package/mobile/lib/components/Gallery/Gallery.js.map +0 -1
  299. package/mobile/lib/components/Gallery/GalleryCardInner.d.ts +0 -2
  300. package/mobile/lib/components/Gallery/GalleryCardInner.js +0 -18
  301. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +0 -1
  302. package/mobile/lib/components/Gallery/GalleryContainer.d.ts +0 -11
  303. package/mobile/lib/components/Gallery/GalleryContainer.js +0 -13
  304. package/mobile/lib/components/Gallery/GalleryContainer.js.map +0 -1
  305. package/mobile/lib/components/Gallery/GalleryContent.d.ts +0 -71
  306. package/mobile/lib/components/Gallery/GalleryContent.js +0 -2
  307. package/mobile/lib/components/Gallery/GalleryContent.js.map +0 -1
  308. package/mobile/lib/components/Gallery/GalleryInner.d.ts +0 -7
  309. package/mobile/lib/components/Gallery/GalleryInner.js +0 -21
  310. package/mobile/lib/components/Gallery/GalleryInner.js.map +0 -1
  311. package/mobile/lib/components/Gallery/GalleryProps.d.ts +0 -4
  312. package/mobile/lib/components/Gallery/GalleryProps.js +0 -2
  313. package/mobile/lib/components/Gallery/GalleryProps.js.map +0 -1
  314. package/mobile/lib/components/Gallery/constants.d.ts +0 -4
  315. package/mobile/lib/components/Gallery/constants.js +0 -13
  316. package/mobile/lib/components/Gallery/constants.js.map +0 -1
  317. package/mobile/lib/components/MiniGallery/MiniGallery.d.ts +0 -5
  318. package/mobile/lib/components/MiniGallery/MiniGallery.js +0 -5
  319. package/mobile/lib/components/MiniGallery/MiniGallery.js.map +0 -1
  320. package/mobile/lib/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
  321. package/mobile/lib/components/MiniGallery/MiniGalleryContent.js +0 -2
  322. package/mobile/lib/components/MiniGallery/MiniGalleryContent.js.map +0 -1
  323. package/mobile/lib/model/GalleryVersion.d.ts +0 -1
  324. package/mobile/lib/model/GalleryVersion.js +0 -2
  325. package/mobile/lib/model/GalleryVersion.js.map +0 -1
  326. package/mobile/src/components/Catalog/Catalog.example.json +0 -59
  327. package/mobile/src/components/Catalog/Catalog.tsx +0 -49
  328. package/mobile/src/components/Catalog/Catalog.ui.json +0 -11
  329. package/mobile/src/components/Catalog/CatalogCard.tsx +0 -47
  330. package/mobile/src/components/Catalog/CatalogContent.ts +0 -29
  331. package/mobile/src/components/Gallery/Gallery.example.json +0 -66
  332. package/mobile/src/components/Gallery/Gallery.tsx +0 -113
  333. package/mobile/src/components/Gallery/Gallery.ui.json +0 -22
  334. package/mobile/src/components/Gallery/GalleryCardInner.tsx +0 -78
  335. package/mobile/src/components/Gallery/GalleryContainer.tsx +0 -61
  336. package/mobile/src/components/Gallery/GalleryContent.ts +0 -74
  337. package/mobile/src/components/Gallery/GalleryInner.tsx +0 -50
  338. package/mobile/src/components/Gallery/GalleryProps.ts +0 -4
  339. package/mobile/src/components/Gallery/constants.ts +0 -16
  340. package/mobile/src/components/MiniGallery/MiniGallery.example.json +0 -56
  341. package/mobile/src/components/MiniGallery/MiniGallery.tsx +0 -10
  342. package/mobile/src/components/MiniGallery/MiniGallery.ui.json +0 -19
  343. package/mobile/src/components/MiniGallery/MiniGalleryContent.ts +0 -13
  344. package/mobile/src/model/GalleryVersion.ts +0 -1
  345. package/src/components/Catalog/Catalog.example.json +0 -59
  346. package/src/components/Catalog/Catalog.fixture.tsx +0 -50
  347. package/src/components/Catalog/Catalog.tsx +0 -49
  348. package/src/components/Catalog/Catalog.ui.json +0 -11
  349. package/src/components/Catalog/CatalogCard.tsx +0 -47
  350. package/src/components/Catalog/CatalogContent.ts +0 -29
  351. package/src/components/Gallery/Gallery.example.json +0 -66
  352. package/src/components/Gallery/Gallery.fixture.mobile.tsx +0 -83
  353. package/src/components/Gallery/Gallery.fixture.tsx +0 -225
  354. package/src/components/Gallery/Gallery.mobile.tsx +0 -113
  355. package/src/components/Gallery/Gallery.tsx +0 -7
  356. package/src/components/Gallery/Gallery.ui.json +0 -22
  357. package/src/components/Gallery/GalleryCardInner.tsx +0 -78
  358. package/src/components/Gallery/GalleryContainer.tsx +0 -61
  359. package/src/components/Gallery/GalleryContent.ts +0 -74
  360. package/src/components/Gallery/GalleryInner.tsx +0 -50
  361. package/src/components/Gallery/GalleryProps.ts +0 -4
  362. package/src/components/Gallery/constants.ts +0 -16
  363. package/src/components/MiniGallery/MiniGallery.example.json +0 -56
  364. package/src/components/MiniGallery/MiniGallery.fixture.tsx +0 -154
  365. package/src/components/MiniGallery/MiniGallery.tsx +0 -10
  366. package/src/components/MiniGallery/MiniGallery.ui.json +0 -19
  367. package/src/components/MiniGallery/MiniGalleryContent.ts +0 -13
  368. package/src/model/GalleryVersion.ts +0 -1
@@ -1,9 +1,8 @@
1
1
  import type { UniBlockProps } from '../../model/JSXBlock';
2
2
  import type { CarouselBankHistoryCardContent } from './CarouselBankHistoryCardContent';
3
3
  interface CarouselBankHistoryCardProps extends CarouselBankHistoryCardContent, UniBlockProps {
4
- isActive?: boolean;
5
- orderNumber?: number;
6
4
  blocksLength?: number;
5
+ activeIndex?: number;
7
6
  }
8
7
  export declare const CarouselBankHistoryCard: import("@redneckz/uni-jsx").UNIComponent<CarouselBankHistoryCardProps, any, any>;
9
8
  export {};
@@ -7,7 +7,8 @@ import type { Picture } from '../../model/Picture';
7
7
  import type { BenefitItemProps } from '../../ui-kit/BenefitItem/BenefitItemProps';
8
8
  import type { BackwardButtonProps, ButtonContent } from '../../ui-kit/Button/ButtonProps';
9
9
  import type { ListContent } from '../../ui-kit/List/ListContent';
10
- export declare type ProductBlockInnerContent = HeadlineProps & ListContent & ButtonContent & Footnote & {
10
+ import type { RichTextProps } from '../../ui-kit/RichText/RichTextProps';
11
+ export declare type ProductBlockInnerContent = HeadlineProps & RichTextProps & ListContent & ButtonContent & Footnote & {
11
12
  /**
12
13
  * @default {
13
14
  * "format": "webp",
@@ -9,4 +9,5 @@ export interface BlockRendererOptions {
9
9
  parent?: Slot;
10
10
  ancestors?: BlockAncestors;
11
11
  className?: string;
12
+ extraProps?: Record<string, any>;
12
13
  }
@@ -6,7 +6,7 @@ const defaultBlockDecorator_1 = require("./defaultBlockDecorator");
6
6
  const DEFAULT_ANCESTORS = [];
7
7
  const defaultStyle = 'col-span-12';
8
8
  function renderBlock(block, options) {
9
- const { key, blockDecorator = defaultBlockDecorator_1.defaultBlockDecorator, blocksRegistry = {}, ancestors = DEFAULT_ANCESTORS, className = '', } = options;
9
+ const { key, blockDecorator = defaultBlockDecorator_1.defaultBlockDecorator, blocksRegistry = {}, ancestors = DEFAULT_ANCESTORS, className = '', extraProps = {}, } = options;
10
10
  const { type } = block;
11
11
  if (!(type && type in blocksRegistry)) {
12
12
  console.warn(`No block with "${type}" is registered`);
@@ -20,7 +20,7 @@ function renderBlock(block, options) {
20
20
  // Adjusted by decorator block and blockClassName
21
21
  render: ({ block: adjustedBlock, blockClassName: adjustedBlockClassName }) => {
22
22
  const { content } = adjustedBlock;
23
- return BlockComponent ? ((0, jsx_runtime_1.jsx)(BlockComponent, { className: adjustedBlockClassName, block: block, options: options, ...content }, key)) : null;
23
+ return BlockComponent ? ((0, jsx_runtime_1.jsx)(BlockComponent, { className: adjustedBlockClassName, block: block, options: options, ...content, ...extraProps }, key)) : null;
24
24
  },
25
25
  }, key);
26
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"renderBlock.js","sourceRoot":"","sources":["../../src/BlockRenderer/renderBlock.tsx"],"names":[],"mappings":";;;AAEA,0CAAuC;AAEvC,mEAAgE;AAEhE,MAAM,iBAAiB,GAAmB,EAAE,CAAC;AAE7C,MAAM,YAAY,GAAG,aAAa,CAAC;AAEnC,SAAgB,WAAW,CAAC,KAAe,EAAE,OAA6B;IACxE,MAAM,EACJ,GAAG,EACH,cAAc,GAAG,6CAAqB,EACtC,cAAc,GAAG,EAAE,EACnB,SAAS,GAAG,iBAAiB,EAC7B,SAAS,GAAG,EAAE,GACf,GAAG,OAAO,CAAC;IACZ,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAEvB,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,IAAI,cAAc,CAAC,EAAE;QACrC,OAAO,CAAC,IAAI,CAAC,kBAAkB,IAAI,iBAAiB,CAAC,CAAC;KACvD;IAED,MAAM,cAAc,GAAG,IAAI,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAEpD,OAAO,cAAc,CACnB;QACE,cAAc,EAAE,IAAA,aAAK,EACnB,cAAc,EAAE,4BAA4B;QAC5C,SAAS,EACT,KAAK,CAAC,KAAK,IAAI,YAAY,CAC5B;QACD,KAAK;QACL,SAAS;QACT,iDAAiD;QACjD,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,sBAAsB,EAAE,E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EAAE,EAAE,EAAE;YAC3E,MAAM,EAAE,OAAO,EAAE,GAAG,aAAa,CAAC;YAElC,OAAO,cAAc,CAAC,CAAC,CAAC,CACtB,uBAAC,cAAc,IAEb,SAAS,EAAE,sBAAsB,EACjC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,KACZ,OAAO,KACP,UAAU,IALT,GAAG,CAMR,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;QACX,CAAC;KACF,EACD,GAAG,CACJ,CAAC;AACJ,CAAC;AA5CD,kCA4CC"}
@@ -4,6 +4,6 @@ import type { VNode } from '../model/VNode';
4
4
  import type { BlockRendererOptions } from './BlockRendererOptions';
5
5
  export interface BlocksListRendererProps extends BlockRendererOptions {
6
6
  slotName?: SlotName;
7
- renderChild?: (block: BlockDef, options: BlockRendererOptions) => VNode;
7
+ renderProps?: (block: BlockDef, options: BlockRendererOptions) => VNode;
8
8
  }
9
- export declare const renderBlocksList: (blocks: BlockDef[] | undefined, { key, ancestors, slotName, renderChild, ...options }: BlocksListRendererProps) => VNode[];
9
+ export declare const renderBlocksList: (blocks: BlockDef[] | undefined, { key, ancestors, slotName, renderProps, ...options }: BlocksListRendererProps) => VNode[];
@@ -3,7 +3,7 @@ exports.renderBlocksList = void 0;
3
3
  const BlockDecorator_1 = require("../model/BlockDecorator");
4
4
  const renderBlock_1 = require("./renderBlock");
5
5
  const EMPTY_ANCESTORS = [];
6
- const renderBlocksList = (blocks, { key, ancestors = EMPTY_ANCESTORS, slotName = BlockDecorator_1.DEFAULT_SLOT_NAME, renderChild = renderBlock_1.renderBlock, ...options }) => (blocks || []).map((_, j) => renderChild(_, {
6
+ const renderBlocksList = (blocks, { key, ancestors = EMPTY_ANCESTORS, slotName = BlockDecorator_1.DEFAULT_SLOT_NAME, renderProps = renderBlock_1.renderBlock, ...options }) => (blocks || []).map((_, j) => renderProps(_, {
7
7
  ...options,
8
8
  key: `${key ? key : _.type}-${j}`,
9
9
  ancestors: options.parent
@@ -4,7 +4,7 @@ import type { VNode } from '../model/VNode';
4
4
  import type { BlockRendererOptions } from './BlockRendererOptions';
5
5
  interface ChildrenRendererProps extends UniBlockProps {
6
6
  children?: VNode;
7
- renderChild?: (block: BlockDef, options: BlockRendererOptions) => VNode;
7
+ renderProps?: (block: BlockDef, options: BlockRendererOptions) => VNode;
8
8
  }
9
- export declare function renderChildren({ children, block, options, renderChild, }: ChildrenRendererProps): VNode[] | null;
9
+ export declare function renderChildren({ children, block, options, renderProps, }: ChildrenRendererProps): VNode[] | null;
10
10
  export {};
@@ -1,12 +1,12 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.renderChildren = void 0;
3
3
  const renderBlockList_1 = require("./renderBlockList");
4
- function renderChildren({ children, block, options, renderChild, }) {
4
+ function renderChildren({ children, block, options, renderProps, }) {
5
5
  if (children) {
6
6
  return children;
7
7
  }
8
8
  return block && options
9
- ? (0, renderBlockList_1.renderBlocksList)(block.blocks, { ...options, parent: block, renderChild })
9
+ ? (0, renderBlockList_1.renderBlocksList)(block.blocks, { ...options, parent: block, renderProps })
10
10
  : null;
11
11
  }
12
12
  exports.renderChildren = renderChildren;
@@ -20,13 +20,11 @@ const CarouselProductCard_1 = require("./CarouselProductCard/CarouselProductCard
20
20
  const CarouselProgramsCard_1 = require("./CarouselProgramsCard/CarouselProgramsCard");
21
21
  const CarouselRecommendationCard_1 = require("./CarouselRecommendationCard/CarouselRecommendationCard");
22
22
  const CarouselTariffsCard_1 = require("./CarouselTariffsCard/CarouselTariffsCard");
23
- const Catalog_1 = require("./Catalog/Catalog");
24
23
  const ComparisonTable_1 = require("./ComparisonTable/ComparisonTable");
25
24
  const ContactsBlock_1 = require("./ContactsBlock/ContactsBlock");
26
25
  const ErrorBlock_1 = require("./ErrorBlock/ErrorBlock");
27
26
  const ExchangeRateTile_1 = require("./ExchangeRateTile/ExchangeRateTile");
28
27
  const Footer_1 = require("./Footer/Footer");
29
- const Gallery_1 = require("./Gallery/Gallery");
30
28
  const GracePeriod_1 = require("./GracePeriod/GracePeriod");
31
29
  const Header_1 = require("./Header/Header");
32
30
  const Headline_1 = require("./Headline/Headline");
@@ -35,7 +33,6 @@ const ImgBlock_1 = require("./ImgBlock/ImgBlock");
35
33
  const InsuranceAmountBlock_1 = require("./InsuranceAmountBlock/InsuranceAmountBlock");
36
34
  const InvestmentInfo_1 = require("./InvestmentInfo/InvestmentInfo");
37
35
  const LinkDocs_1 = require("./LinkDocs/LinkDocs");
38
- const MiniGallery_1 = require("./MiniGallery/MiniGallery");
39
36
  const MobileAppTile_1 = require("./MobileAppTile/MobileAppTile");
40
37
  const OfficeMap_1 = require("./OfficeMap/OfficeMap");
41
38
  const OfficeServicesBlock_1 = require("./OfficeServicesBlock/OfficeServicesBlock");
@@ -81,13 +78,11 @@ exports.Blocks = {
81
78
  CarouselProgramsCard: CarouselProgramsCard_1.CarouselProgramsCard,
82
79
  CarouselRecommendationCard: CarouselRecommendationCard_1.CarouselRecommendationCard,
83
80
  CarouselTariffsCard: CarouselTariffsCard_1.CarouselTariffsCard,
84
- Catalog: Catalog_1.Catalog,
85
81
  ComparisonTable: ComparisonTable_1.ComparisonTable,
86
82
  ContactsBlock: ContactsBlock_1.ContactsBlock,
87
83
  ErrorBlock: ErrorBlock_1.ErrorBlock,
88
84
  ExchangeRateTile: ExchangeRateTile_1.ExchangeRateTile,
89
85
  Footer: Footer_1.Footer,
90
- Gallery: Gallery_1.Gallery,
91
86
  GracePeriod: GracePeriod_1.GracePeriod,
92
87
  Header: Header_1.Header,
93
88
  Headline: Headline_1.Headline,
@@ -96,7 +91,6 @@ exports.Blocks = {
96
91
  InsuranceAmountBlock: InsuranceAmountBlock_1.InsuranceAmountBlock,
97
92
  InvestmentInfo: InvestmentInfo_1.InvestmentInfo,
98
93
  LinkDocs: LinkDocs_1.LinkDocs,
99
- MiniGallery: MiniGallery_1.MiniGallery,
100
94
  MobileAppTile: MobileAppTile_1.MobileAppTile,
101
95
  OfficeMap: OfficeMap_1.OfficeMap,
102
96
  OfficeServicesBlock: OfficeServicesBlock_1.OfficeServicesBlock,
@@ -1 +1 @@
1
- {"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AACA,qDAAkD;AAClD,iEAA8D;AAC9D,uEAAoE;AACpE,iEAA8D;AAC9D,yCAAsC;AACtC,gFAA6E;AAC7E,iEAA8D;AAC9D,2DAAwD;AACxD,wDAAqD;AACrD,8DAA2D;AAC3D,kDAA+C;AAC/C,+FAA4F;AAC5F,8DAA2D;AAC3D,mFAAgF;AAChF,4FAAyF;AACzF,iEAA8D;AAC9D,mFAAgF;AAChF,sFAAmF;AACnF,wGAAqG;AACrG,mFAAgF;AAChF,+CAA4C;AAC5C,uEAAoE;AACpE,iEAA8D;AAC9D,wDAAqD;AACrD,0EAAuE;AACvE,4CAAyC;AACzC,+CAA4C;AAC5C,2DAAwD;AACxD,4CAAyC;AACzC,kDAA+C;AAC/C,0EAAuE;AACvE,kDAA+C;AAC/C,sFAAmF;AACnF,oEAAiE;AACjE,kDAA+C;AAC/C,2DAAwD;AACxD,iEAA8D;AAC9D,qDAAkD;AAClD,mFAAgF;AAChF,iEAA8D;AAC9D,6EAA0E;AAC1E,oEAAiE;AACjE,2DAAwD;AACxD,2DAAwD;AACxD,8DAA2D;AAC3D,oEAAiE;AACjE,2DAAwD;AACxD,qDAAkD;AAClD,oEAAiE;AACjE,iEAA8D;AAC9D,wDAAqD;AACrD,6EAA0E;AAC1E,wDAAqD;AACrD,yFAAsF;AACtF,sCAAmC;AACnC,8DAA2D;AAC3D,qDAAkD;AAClD,sCAAmC;AACnC,oEAAiE;AACjE,yCAAsC;AAEzB,QAAA,MAAM,GAAmB;IACpC,SAAS,EAAT,qBAAS;IACT,aAAa,EAAb,6BAAa;IACb,eAAe,EAAf,iCAAe;IACf,aAAa,EAAb,6BAAa;IACb,KAAK,EAAL,aAAK;IACL,kBAAkB,EAAlB,uCAAkB;IAClB,aAAa,EAAb,6BAAa;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IAAI,EAAJ,WAAI;IACJ,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,IAAI,EAAJ,WAAI;IACJ,cAAc,EAAd,+BAAc;IACd,KAAK,EAAL,aAAK;CACN,CAAC"}
1
+ {"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AACA,qDAAkD;AAClD,iEAA8D;AAC9D,uEAAoE;AACpE,iEAA8D;AAC9D,yCAAsC;AACtC,gFAA6E;AAC7E,iEAA8D;AAC9D,2DAAwD;AACxD,wDAAqD;AACrD,8DAA2D;AAC3D,kDAA+C;AAC/C,+FAA4F;AAC5F,8DAA2D;AAC3D,mFAAgF;AAChF,4FAAyF;AACzF,iEAA8D;AAC9D,mFAAgF;AAChF,sFAAmF;AACnF,wGAAqG;AACrG,mFAAgF;AAChF,uEAAoE;AACpE,iEAA8D;AAC9D,wDAAqD;AACrD,0EAAuE;AACvE,4CAAyC;AACzC,2DAAwD;AACxD,4CAAyC;AACzC,kDAA+C;AAC/C,0EAAuE;AACvE,kDAA+C;AAC/C,sFAAmF;AACnF,oEAAiE;AACjE,kDAA+C;AAC/C,iEAA8D;AAC9D,qDAAkD;AAClD,mFAAgF;AAChF,iEAA8D;AAC9D,6EAA0E;AAC1E,oEAAiE;AACjE,2DAAwD;AACxD,2DAAwD;AACxD,8DAA2D;AAC3D,oEAAiE;AACjE,2DAAwD;AACxD,qDAAkD;AAClD,oEAAiE;AACjE,iEAA8D;AAC9D,wDAAqD;AACrD,6EAA0E;AAC1E,wDAAqD;AACrD,yFAAsF;AACtF,sCAAmC;AACnC,8DAA2D;AAC3D,qDAAkD;AAClD,sCAAmC;AACnC,oEAAiE;AACjE,yCAAsC;AAEzB,QAAA,MAAM,GAAmB;IACpC,SAAS,EAAT,qBAAS;IACT,aAAa,EAAb,6BAAa;IACb,eAAe,EAAf,iCAAe;IACf,aAAa,EAAb,6BAAa;IACb,KAAK,EAAL,aAAK;IACL,kBAA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AY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,IAAI,EAAJ,WAAI;IACJ,cAAc,EAAd,+BAAc;IACd,KAAK,EAAL,aAAK;CACN,CAAC"}
@@ -4,7 +4,6 @@ const Accordion_1 = require("./Accordion/Accordion");
4
4
  const AccordionItem_1 = require("./AccordionItem/AccordionItem");
5
5
  const ComparisonTable_1 = require("./ComparisonTable/ComparisonTable");
6
6
  const Footer_1 = require("./Footer/Footer");
7
- const Gallery_1 = require("./Gallery/Gallery");
8
7
  const Header_1 = require("./Header/Header");
9
8
  const Headline_1 = require("./Headline/Headline");
10
9
  const LinkDocs_1 = require("./LinkDocs/LinkDocs");
@@ -20,7 +19,6 @@ exports.Blocks = {
20
19
  AccordionItem: AccordionItem_1.AccordionItem,
21
20
  ComparisonTable: ComparisonTable_1.ComparisonTable,
22
21
  Footer: Footer_1.Footer,
23
- Gallery: Gallery_1.Gallery,
24
22
  Header: Header_1.Header,
25
23
  Headline: Headline_1.Headline,
26
24
  LinkDocs: LinkDocs_1.LinkDocs,
@@ -1 +1 @@
1
- {"version":3,"file":"Blocks.mobile.js","sourceRoot":"","sources":["../../src/components/Blocks.mobile.ts"],"names":[],"mappings":";;AACA,qDAAkD;AAClD,iEAA8D;AAC9D,uEAAoE;AACpE,4CAAyC;AACzC,+CAA4C;AAC5C,4CAAyC;AACzC,kDAA+C;AAC/C,kDAA+C;AAC/C,kDAA+C;AAC/C,iEAA8D;AAC9D,2DAAwD;AACxD,8DAA2D;AAC3D,wDAAqD;AACrD,8DAA2D;AAC3D,qDAAkD;AAErC,QAAA,MAAM,GAAmB;IACpC,SAAS,EAAT,qBAAS;IACT,aAAa,EAAb,6BAAa;IACb,eAAe,EAAf,iCAAe;IACf,MAAM,EAAN,eAAM;IACN,OAAO,EAAP,iBAAO;IACP,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,aAAa,EAAb,6BAAa;IACb,YAAY,EAAZ,2BAAY;IACZ,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,WAAW,EAAX,yBAAW;CACZ,CAAC"}
1
+ {"version":3,"file":"Blocks.mobile.js","sourceRoot":"","sources":["../../src/components/Blocks.mobile.ts"],"names":[],"mappings":";;AACA,qDAAkD;AAClD,iEAA8D;AAC9D,uEAAoE;AACpE,4CAAyC;AACzC,4CAAyC;AACzC,kDAA+C;AAC/C,kDAA+C;AAC/C,kDAA+C;AAC/C,iEAA8D;AAC9D,2DAAwD;AACxD,8DAA2D;AAC3D,wDAAqD;AACrD,8DAA2D;AAC3D,qDAAkD;AAErC,QAAA,MAAM,GAAmB;IACpC,SAAS,EAAT,qBAAS;IACT,aAAa,EAAb,6BAAa;IACb,eAAe,EAAf,iCAAe;IACf,MAAM,EAAN,eAAM;IACN,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,aAAa,EAAb,6BAAa;IACb,YAAY,EAAZ,2BAAY;IACZ,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,WAAW,EAAX,yBAAW;CACZ,CAAC"}
@@ -10,7 +10,7 @@ const useSwipeListScroll_1 = require("../../ui-kit/SwipeListControl/useSwipeList
10
10
  const style_1 = require("../../utils/style");
11
11
  const CarouselScrollButtons_1 = require("./CarouselScrollButtons");
12
12
  const ITEMS_GAP = 4;
13
- exports.Carousel = (0, uni_jsx_1.JSX)(({ className = '', itemCount, visibleItemCount, isBlur = true, isCyclic = false, arrowsPadded = true, isPadding = true, ...rest }) => {
13
+ exports.Carousel = (0, uni_jsx_1.JSX)(({ className = '', itemCount, visibleItemCount, isBlur = true, isCyclic = false, arrowsPadded = true, isPadding = true, options, ...rest }) => {
14
14
  const { blocks: childBlocks } = rest.block || {};
15
15
  const count = itemCount || childBlocks?.length || 0;
16
16
  const [activeIndex, setActiveIndex] = (0, hooks_1.useState)(Math.floor((visibleItemCount || 0) / 2));
@@ -24,9 +24,15 @@ exports.Carousel = (0, uni_jsx_1.JSX)(({ className = '', itemCount, visibleItemC
24
24
  return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)(getPaddingStyle(isPadding), className), ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "relative max-w-full", children: [(0, jsx_runtime_1.jsx)(SwipeListContainer_1.SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: ITEMS_GAP, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: isBankHistoryCarousel
25
25
  ? (0, renderChildren_1.renderChildren)({
26
26
  ...rest,
27
- block: { ...rest.block, blocks: buildBlocks(childBlocks, activeIndex) },
27
+ options: {
28
+ ...options,
29
+ extraProps: {
30
+ blocksLength: childBlocks?.length,
31
+ activeIndex: activeIndex,
32
+ },
33
+ },
28
34
  })
29
- : (0, renderChildren_1.renderChildren)(rest) }), (0, jsx_runtime_1.jsx)(CarouselScrollButtons_1.CarouselScrollButtons, { scroll: scroll, isBlur: isBlur, arrowsPadded: arrowsPadded, onScrollLeft: decreaseActiveIndex, onScrollRight: increaseActiveIndex, hasEdgeBlocks: isBankHistoryCarousel, activeIndex: activeIndex, itemCount: count })] }) }));
35
+ : (0, renderChildren_1.renderChildren)({ ...rest, options }) }), (0, jsx_runtime_1.jsx)(CarouselScrollButtons_1.CarouselScrollButtons, { scroll: scroll, isBlur: isBlur, arrowsPadded: arrowsPadded, onScrollLeft: decreaseActiveIndex, onScrollRight: increaseActiveIndex, hasEdgeBlocks: isBankHistoryCarousel, activeIndex: activeIndex, itemCount: count })] }) }));
30
36
  });
31
37
  exports.Carousel.childrenTypes = [
32
38
  'CarouselCard',
@@ -39,20 +45,5 @@ exports.Carousel.childrenTypes = [
39
45
  'CarouselTariffsCard',
40
46
  'CarouselInvestmentCard',
41
47
  ];
42
- const buildBlocks = (blocks, activeIndex) => {
43
- return blocks && blocks[0]?.type === 'CarouselBankHistoryCard'
44
- ? blocks.map((_, i) => {
45
- return {
46
- ..._,
47
- content: {
48
- ..._.content,
49
- orderNumber: i,
50
- isActive: activeIndex === i,
51
- blocksLength: blocks.length,
52
- },
53
- };
54
- })
55
- : blocks;
56
- };
57
48
  const getPaddingStyle = (isPadding) => (isPadding ? 'p-12' : '');
58
49
  //# sourceMappingURL=Carousel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Carousel.js","sourceRoot":"","sources":["../../../src/components/Carousel/Carousel.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,uEAAoE;AAGpE,4DAAyD;AACzD,yFAAsF;AACtF,yFAAsF;AACtF,6CAA0C;AAE1C,mEAAgE;AAMhE,MAAM,SAAS,GAAG,CAAC,CAAC;AAEP,QAAA,QAAQ,GAA4B,IAAA,aAAG,EAClD,CAAC,EACC,SAAS,GAAG,EAAE,EACd,SAAS,EACT,gBAAgB,EAChB,MAAM,GAAG,IAAI,EACb,QAAQ,GAAG,KAAK,EAChB,YAAY,GAAG,IAAI,EACnB,SAAS,GAAG,IAAI,EAChB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;IACjD,MAAM,KAAK,GAAG,SAAS,IAAI,WAAW,EAAE,MAAM,IAAI,CAAC,CAAC;IAEpD,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAS,IAAI,CAAC,KAAK,CAAC,CAAC,gBAAgB,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAEhG,MAAM,mBAAmB,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,EAAE,CAA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AAqB;wBACpB,CAAC,CAAC,IAAA,+BAAc,EAAC;4BACb,GAAG,IAAI;4BACP,OAAO,EAAE;gCACP,GAAG,OAAO;gCACV,UAAU,EAAE;oCACV,YAAY,EAAE,WAAW,EAAE,MAAM;oCACjC,WAAW,EAAE,WAAW;iCACzB;6BACF;yBACF,CAAC;wBACJ,CAAC,CAAC,IAAA,+BAAc,EAAC,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,CAAC,GACrB,EACrB,uBAAC,6CAAqB,IACpB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,mBAAmB,EACjC,aAAa,EAAE,mBAAmB,EAClC,aAAa,EAAE,qBAAqB,EACpC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,KAAK,GAChB,IACE,GACO,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAQ,CAAC,aAAa,GAAG;IACvB,cAAc;IACd,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,qBAAqB;IACrB,sBAAsB;IACtB,4BAA4B;IAC5B,qBAAqB;IACrB,wBAAwB;CACzB,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,SAAkB,EAAU,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC"}
@@ -1,9 +1,8 @@
1
1
  import type { UniBlockProps } from '../../model/JSXBlock';
2
2
  import type { CarouselBankHistoryCardContent } from './CarouselBankHistoryCardContent';
3
3
  interface CarouselBankHistoryCardProps extends CarouselBankHistoryCardContent, UniBlockProps {
4
- isActive?: boolean;
5
- orderNumber?: number;
6
4
  blocksLength?: number;
5
+ activeIndex?: number;
7
6
  }
8
7
  export declare const CarouselBankHistoryCard: import("@redneckz/uni-jsx").UNIComponent<CarouselBankHistoryCardProps, any, any>;
9
8
  export {};
@@ -5,7 +5,9 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
6
6
  const style_1 = require("../../utils/style");
7
7
  const Headline_1 = require("../Headline/Headline");
8
- exports.CarouselBankHistoryCard = (0, uni_jsx_1.JSX)(({ title, description, isActive, orderNumber = 0, blocksLength = 0 }) => {
8
+ exports.CarouselBankHistoryCard = (0, uni_jsx_1.JSX)(({ title, description, blocksLength = 0, activeIndex, options, ...rest }) => {
9
+ const orderNumber = Number(options?.key?.split('-').slice(-1)[0]) || 0;
10
+ const isActive = orderNumber === activeIndex;
9
11
  return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: "flex h-[485px]", children: isActive ? ((0, jsx_runtime_1.jsx)("div", { className: "relative flex items-center w-full", children: (0, jsx_runtime_1.jsx)(Headline_1.Headline, { headlineVersion: "S", title: title, description: description, align: "text-left", className: (0, style_1.style)('absolute z-10 h-[385px] w-[440px] text-white shadow-dark-blue', getActiveBlockPosition(orderNumber, blocksLength), getBackgroundColor(orderNumber)) }) })) : ((0, jsx_runtime_1.jsx)("div", { className: "flex w-full items-center justify-center", children: (0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex justify-center items-center h-[300px] w-[340px] font-mohave text-title-large tracking-[-0.03em]', getBackgroundColor(orderNumber)), children: (0, jsx_runtime_1.jsx)("span", { className: getTextColor(orderNumber), children: title }) }) })) }));
10
12
  });
11
13
  const getBackgroundColor = (orderNumber) => {
@@ -1 +1 @@
1
- {"version":3,"file":"CarouselBankHistoryCard.js","sourceRoot":"","sources":["../../../src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,6CAA0C;AAC1C,mDAAgD;AASnC,QAAA,uBAAuB,GAAG,IAAA,aAAG,EACxC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,GAAG,CAAC,EAAE,YAAY,GAAG,CAAC,EAAE,EAAE,EAAE;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AAEF,MAAM,sBAAsB,GAAG,CAAC,WAAmB,EAAE,YAAoB,EAAE,EAAE;IAC3E,IAAI,WAAW,KAAK,CAAC,EAAE;QACrB,OAAO,QAAQ,CAAC;KACjB;SAAM,IAAI,WAAW,KAAK,YAAY,GAAG,CAAC,EAAE;QAC3C,OAAO,SAAS,CAAC;KAClB;SAAM;QACL,OAAO,cAAc,CAAC;KACvB;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"CarouselBankHistoryCard.js","sourceRoot":"","sources":["../../../src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,6CAA0C;AAC1C,mDAAgD;AAQnC,QAAA,uBAAuB,GAAG,IAAA,aAAG,EACxC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,GAAG,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC1E,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACvE,MAAM,QAAQ,GAAG,WAAW,KAAK,WAAW,CAAC;IAE7C,OAAO,CACL,uBAAC,2BAAY,IAAC,SAAS,EAAC,gBAAgB,YACrC,QAAQ,CAAC,CAAC,CAAC,CACV,gCAAK,SAAS,EAAC,mCAAmC,YAChD,uBAAC,mBAAQ,IACP,eAAe,EAAC,GAAG,EACnB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,KAAK,EAAC,WAAW,EACjB,SAAS,EAAE,IAAA,aAAK,EACd,+DAA+D,EAC/D,sBAAsB,CAAC,WAAW,EAAE,YAAY,CAAC,EACjD,kBAAkB,CAAC,WAAW,CAAC,CAChC,GACD,GACE,CACP,CAAC,CAAC,CAAC,CACF,gCAAK,SAAS,EAAC,yCAAyC,YACtD,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,sGAAsG,EACtG,kBAAkB,CAAC,WAAW,CAAC,CAChC,YAED,iCAAM,SAAS,EAAE,YAAY,CAAC,WAAW,CAAC,YAAG,KAAK,GAAQ,GACtD,GACF,CACP,GACY,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,WAAmB,EAAE,EAAE;IACjD,MAAM,QAAQ,GAAG,WAAW,GAAG,CAAC,CAAC;IACjC,QAAQ,QAAQ,EAAE;QAChB,KAAK,CAAC;YACJ,OAAO,iBAAiB,CAAC;QAC3B,KAAK,CAAC;YACJ,OAAO,gBAAgB,CAAC;QAC1B,KAAK,CAAC;YACJ,OAAO,iBAAiB,CAAC;QAE3B;YACE,OAAO,iBAAiB,CAAC;KAC5B;AACH,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,WAAmB,EAAE,EAAE;IAC3C,MAAM,QAAQ,GAAG,WAAW,GAAG,CAAC,CAAC;IACjC,QAAQ,QAAQ,EAAE;QAChB,KAAK,CAAC;YACJ,OAAO,+BAA+B,CAAC;QACzC,KAAK,CAAC;YACJ,OAAO,+BAA+B,CAAC;QAEzC;YACE,OAAO,8BAA8B,CAAC;KACzC;AACH,CAAC,CAAC;AAEF,MAAM,sBAAsB,GAAG,CAAC,WAAmB,EAAE,YAAoB,EAAE,EAAE;IAC3E,IAAI,WAAW,KAAK,CAAC,EAAE;QACrB,OAAO,QAAQ,CAAC;KACjB;SAAM,IAAI,WAAW,KAAK,YAAY,GAAG,CAAC,EAAE;QAC3C,OAAO,SAAS,CAAC;KAClB;SAAM;QACL,OAAO,cAAc,CAAC;KACvB;AACH,CAAC,CAAC"}
@@ -7,7 +7,8 @@ import type { Picture } from '../../model/Picture';
7
7
  import type { BenefitItemProps } from '../../ui-kit/BenefitItem/BenefitItemProps';
8
8
  import type { BackwardButtonProps, ButtonContent } from '../../ui-kit/Button/ButtonProps';
9
9
  import type { ListContent } from '../../ui-kit/List/ListContent';
10
- export declare type ProductBlockInnerContent = HeadlineProps & ListContent & ButtonContent & Footnote & {
10
+ import type { RichTextProps } from '../../ui-kit/RichText/RichTextProps';
11
+ export declare type ProductBlockInnerContent = HeadlineProps & RichTextProps & ListContent & ButtonContent & Footnote & {
11
12
  /**
12
13
  * @default {
13
14
  * "format": "webp",
@@ -5,14 +5,15 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
6
6
  const Img_1 = require("../../ui-kit/Img/Img");
7
7
  const List_1 = require("../../ui-kit/List/List");
8
+ const RichText_1 = require("../../ui-kit/RichText/RichText");
8
9
  const style_1 = require("../../utils/style");
9
10
  const BaseTile_1 = require("../BaseTile/BaseTile");
10
11
  const Headline_1 = require("../Headline/Headline");
11
12
  const renderBenefit_1 = require("./renderBenefit");
12
- exports.ProductBlockInner = (0, uni_jsx_1.JSX)(({ className = '', title, headlineVersion = 'L', description, benefitsCountOfRow = 3, benefits, benefitsVersion, buttons, footnote, image, items, version = 'primary', isDotted = true, textBlockClassName = '', }) => {
13
+ exports.ProductBlockInner = (0, uni_jsx_1.JSX)(({ className = '', title, headlineVersion = 'L', description, benefitsCountOfRow = 3, benefits, benefitsVersion, buttons, footnote, image, __html, items, version = 'primary', isDotted = true, textBlockClassName = '', }) => {
13
14
  const benefitsCount = benefits?.filter((_) => _.label)?.length;
14
15
  const benefitsContainerStyles = getBenefitsContainerStyles(benefitsCountOfRow);
15
- return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex grow justify-between items-stretch h-full', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex flex-col', textBlockClassName), children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { className: "!p-0 max-w-[600px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col justify-between h-full", children: [(0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons), children: [benefitsCount ? ((0, jsx_runtime_1.jsx)("div", { className: benefitsContainerStyles, children: benefits.map((0, renderBenefit_1.renderBenefit)(version, benefitsVersion)) })) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", isDotted: isDotted })) : null] }), footnote ? (0, jsx_runtime_1.jsx)("p", { className: "text-m-light pt-12", children: footnote }) : null] })] }), image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-[-50px]", image: image })] }));
16
+ return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex grow justify-between items-stretch h-full', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex flex-col', textBlockClassName), children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { className: "!p-0 max-w-[600px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col justify-between h-full", children: [(0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons), children: [benefitsCount ? ((0, jsx_runtime_1.jsx)("div", { className: benefitsContainerStyles, children: benefits.map((0, renderBenefit_1.renderBenefit)(version, benefitsVersion)) })) : null, __html ? ((0, jsx_runtime_1.jsx)("div", { className: "mt-5", children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) })) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", isDotted: isDotted })) : null] }), footnote ? (0, jsx_runtime_1.jsx)("p", { className: "text-m-light pt-12", children: footnote }) : null] })] }), image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-[-50px]", image: image })] }));
16
17
  });
17
18
  const getBenefitsContainerStyles = (benefitsCountOfRow = 2) => `gap-6 mt-6 ${benefitsCountOfRow > 2
18
19
  ? 'inline-grid grid-cols-[auto_auto_auto]'
@@ -1 +1 @@
1
- {"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,mFAAgF;AAChF,8CAA2C;AAC3C,iDAA8C;AAC9C,6CAA0C;AAC1C,mDAAgD;AAChD,mDAAgD;AAEhD,mDAAgD;AAInC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,eAAe,GAAG,GAAG,EACrB,WAAW,EACX,kBAAkB,GAAG,CAAC,EACtB,QAAQ,EACR,eAAe,EACf,OAAO,EACP,QAAQ,EACR,KAAK,EACL,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,QAAQ,GAAG,IAAI,EACf,kBAAkB,GAAG,EAAE,GACxB,EAAE,EAAE;IACH,MAAM,aAAa,GAAG,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAC/D,MAAM,uBAAuB,GAAG,0BAA0B,CAAC,kBAAkB,CAAC,CAAC;IAE/E,OAAO,CACL,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,gDAAgD,EAAE,SAAS,CAAC,aAChF,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,eAAe,EAAE,kBAAkB,CAAC,aACxD,uBAAC,mBAAQ,IACP,SAAS,EAAC,oBAAoB,EAC9B,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,KAAK,EAAC,WAAW,GACjB,EACF,iCAAK,SAAS,EAAC,sCAAsC,aACnD,wBAAC,mBAAQ,IAAC,OAAO,EAAE,IAAA,2CAAoB,EAAC,OAAO,CAAC,aAC7C,aAAa,CAAC,CAAC,CAAC,CACf,gCAAK,SAAS,EAAE,uBAAuB,YACpC,QAAQ,CAAC,GAAG,CAAC,IAAA,6BAAa,EAAC,OAAO,EAAE,eAAe,CAAC,CAAC,GAClD,CACP,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,uBAAC,WAAI,IACH,SAAS,EAAC,cAAc,EACxB,KAAK,EAAE,KAAK,EACZ,aAAa,EAAC,UAAU,EACxB,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC,CAAC,CAAC,IAAI,IACC,EACV,QAAQ,CAAC,CAAC,CAAC,8BAAG,SAAS,EAAC,oBAAoB,YAAE,QAAQ,GAAK,CAAC,CAAC,CAAC,IAAI,IAC/D,IACF,EACL,KAAK,EAAE,GAAG,IAAI,uBAAC,SAAG,IAAC,SAAS,EAAC,YAAY,EAAC,KAAK,EAAE,KAAK,GAAI,IACvD,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,0BAA0B,GAAG,CAAC,kBAAkB,GAAG,CAAC,EAAE,EAAE,CAC5D,cACE,kBAAkB,GAAG,CAAC;IACpB,CAAC,CAAC,wCAAwC;IAC1C,CAAC,CAAC,mCACN,EAAE,CAAC"}
1
+ {"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,mFAAgF;AAChF,8CAA2C;AAC3C,iDAA8C;AAC9C,6DAA0D;AAC1D,6CAA0C;AAC1C,mDAAgD;AAChD,mDAAgD;AAEhD,mDAAgD;AAInC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,eAAe,GAAG,GAAG,EACrB,WAAW,EACX,kBAAkB,GAAG,CAAC,EACtB,QAAQ,EACR,eAAe,EACf,OAAO,EACP,QAAQ,EACR,KAAK,EACL,MAAM,EACN,KAAK,EACL,OAAO,GAAG,SAAS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AAoB,YAAE,QAAQ,GAAK,CAAC,CAAC,CAAC,IAAI,IAC/D,IACF,EACL,KAAK,EAAE,GAAG,IAAI,uBAAC,SAAG,IAAC,SAAS,EAAC,YAAY,EAAC,KAAK,EAAE,KAAK,GAAI,IACvD,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,0BAA0B,GAAG,CAAC,kBAAkB,GAAG,CAAC,EAAE,EAAE,CAC5D,cACE,kBAAkB,GAAG,CAAC;IACpB,CAAC,CAAC,wCAAwC;IAC1C,CAAC,CAAC,mCACN,EAAE,CAAC"}
@@ -21,7 +21,7 @@ exports.Tabs = (0, uni_jsx_1.JSX)((props) => {
21
21
  }
22
22
  setCurrentTab(selectedTab);
23
23
  }, []);
24
- return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: `relative box-border flex gap-x-1 w-full ${isSticky ? 'sticky top-1 z-20 ' : ''} ${className}`, role: "tablist", ...rest, children: tabsMode === 'scrollable' ? ((0, jsx_runtime_1.jsx)(ScrollableTabs_1.ScrollableTabs, { tabs: tabs, onClick: handleClick, currentTab: currentTab, showCounter: showCounter, ...rest })) : (tabs?.map((0, renderTab_1.renderTab)({
24
+ return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: `relative box-border flex gap-x-1 w-full ${isSticky ? 'sticky top-1 z-20' : ''} ${className}`, role: "tablist", ...rest, children: tabsMode === 'scrollable' ? ((0, jsx_runtime_1.jsx)(ScrollableTabs_1.ScrollableTabs, { tabs: tabs, onClick: handleClick, currentTab: currentTab, showCounter: showCounter, ...rest })) : (tabs?.map((0, renderTab_1.renderTab)({
25
25
  onClick: handleClick,
26
26
  currentTab,
27
27
  showCounter,
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA+E;AAC/E,oEAAiE;AAEjE,4DAAyD;AACzD,2CAAwC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E,IAAI,EAAE,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC;SACjF;QACD,aAAa,CAAC,WAAW,CAAC,CAAC;IAC7B,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,2CACT,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,EACnC,IAAI,SAAS,EAAE,EACf,IAAI,EAAC,SAAS,KACV,IAAI,YAEP,QAAQ,KAAK,YAAY,CAAC,CAAC,CAAC,CAC3B,uBAAC,+BAAc,IACb,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,KACpB,IAAI,GACR,CACH,CAAC,CAAC,CAAC,CACF,IAAI,EAAE,GAAG,CACP,IAAA,qBAAS,EAAC;YACR,OAAO,EAAE,WAAW;YACpB,UAAU;YACV,WAAW;YACX,GAAG,IAAI;SACR,CAAC,CACH,CACF,GACY,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -13,9 +13,9 @@ exports.ImgAsPicture = (0, uni_jsx_1.JSX)(({ className = '', image, imageClassNa
13
13
  ? image.sources
14
14
  .filter((_) => _?.src)
15
15
  .sort(sourcesComparator)
16
- .map(({ src, format, media }, index) => ((0, jsx_runtime_1.jsx)("source", { srcSet: adjustSrcset(router, pathPrefix)(src), type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '', ...image.size }, `${index}_${src}`)))
16
+ .map(({ src, format, media }, index) => ((0, jsx_runtime_1.jsx)("source", { srcSet: adjustSrc(router, pathPrefix)(src), type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '', ...image.size }, `${index}_${src}`)))
17
17
  : null, image?.src
18
- ? renderImg({ ...image, src: adjustSrcset(router, pathPrefix)(image.src) }, imageClassName, isMobile)
18
+ ? renderImg({ ...image, src: adjustSrc(router, pathPrefix)(image.src) }, imageClassName, isMobile)
19
19
  : null] }));
20
20
  });
21
21
  const renderImg = (image, imageClassName = '', isMobile = false) => {
@@ -28,12 +28,6 @@ const renderImg = (image, imageClassName = '', isMobile = false) => {
28
28
  const imgStyle = isMobile ? 'm-auto' : 'm-0';
29
29
  return ((0, jsx_runtime_1.jsx)("img", { src: image.src, className: `${imgStyle} ${imageClassName}`, alt: alt, title: title, style: style, ...image.size }));
30
30
  };
31
- const adjustSrcset = (router, pathPrefix) => (srcset) => srcset
32
- ?.split(/\s*,\s*/)
33
- .map((src) => src.trim())
34
- .filter(Boolean)
35
- .map((src) => ((0, url_1.isURL)(src) ? src : (0, url_1.joinPath)(pathPrefix, src)))
36
- .map((0, adjustHref_1.adjustHref)(router))
37
- .join(', ');
31
+ const adjustSrc = (router, pathPrefix) => (src) => src && !(0, url_1.isURL)(src) ? (0, adjustHref_1.adjustHref)(router)((0, url_1.joinPath)(pathPrefix, src)) : src;
38
32
  const formatToMimeType = (format) => format ? `image/${String(format)}` : undefined;
39
33
  //# sourceMappingURL=ImgAsPicture.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ImgAsPicture.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/ImgAsPicture.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qDAA0D;AAE1D,uDAAoD;AACpD,yCAAkD;AAGlD,MAAM,iBAAiB,GAAG,CAAC,CAAU,EAAE,CAAU,EAAE,EAAE,CACnD,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAElC,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,cAAc,GAAG,EAAE,EAAE,QAAQ,GAAG,KAAK,EAAE,UAAU,EAAE,EAAE,EAAE;IAC/E,MAAM,MAAM,GAAG,IAAA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,GACd,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,MAAc,EAAE,UAAmB,EAAE,EAAE,CAAC,CAAC,GAAuB,EAAE,EAAE,CACrF,GAAG,IAAI,CAAC,IAAA,WAAK,EAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAA,uBAAU,EAAC,MAAM,CAAC,CAAC,IAAA,cAAQ,EAAC,UAAU,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;AAE3E,MAAM,gBAAgB,GAAG,CAAC,MAA2B,EAAE,EAAE,CACvD,MAAM,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC"}
@@ -9,4 +9,5 @@ export interface BlockRendererOptions {
9
9
  parent?: Slot;
10
10
  ancestors?: BlockAncestors;
11
11
  className?: string;
12
+ extraProps?: Record<string, any>;
12
13
  }
@@ -4,7 +4,7 @@ import { defaultBlockDecorator } from './defaultBlockDecorator.js';
4
4
  const DEFAULT_ANCESTORS = [];
5
5
  const defaultStyle = 'col-span-12';
6
6
  export function renderBlock(block, options) {
7
- const { key, blockDecorator = defaultBlockDecorator, blocksRegistry = {}, ancestors = DEFAULT_ANCESTORS, className = '', } = options;
7
+ const { key, blockDecorator = defaultBlockDecorator, blocksRegistry = {}, ancestors = DEFAULT_ANCESTORS, className = '', extraProps = {}, } = options;
8
8
  const { type } = block;
9
9
  if (!(type && type in blocksRegistry)) {
10
10
  console.warn(`No block with "${type}" is registered`);
@@ -18,7 +18,7 @@ export function renderBlock(block, options) {
18
18
  // Adjusted by decorator block and blockClassName
19
19
  render: ({ block: adjustedBlock, blockClassName: adjustedBlockClassName }) => {
20
20
  const { content } = adjustedBlock;
21
- return BlockComponent ? (_jsx(BlockComponent, { className: adjustedBlockClassName, block: block, options: options, ...content }, key)) : null;
21
+ return BlockComponent ? (_jsx(BlockComponent, { className: adjustedBlockClassName, block: block, options: options, ...content, ...extraProps }, key)) : null;
22
22
  },
23
23
  }, key);
24
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"renderBlock.js","sourceRoot":"","sources":["../../src/BlockRenderer/renderBlock.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,MAAM,iBAAiB,GAAmB,EAAE,CAAC;AAE7C,MAAM,YAAY,GAAG,aAAa,CAAC;AAEnC,MAAM,UAAU,WAAW,CAAC,KAAe,EAAE,OAA6B;IACxE,MAAM,EACJ,GAAG,EACH,cAAc,GAAG,qBAAqB,EACtC,cAAc,GAAG,EAAE,EACnB,SAAS,GAAG,iBAAiB,EAC7B,SAAS,GAAG,EAAE,GACf,GAAG,OAAO,CAAC;IACZ,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAEvB,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,IAAI,cAAc,CAAC,EAAE;QACrC,OAAO,CAAC,IAAI,CAAC,kBAAkB,IAAI,iBAAiB,CAAC,CAAC;KACvD;IAED,MAAM,cAAc,GAAG,IAAI,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAEpD,OAAO,cAAc,CACnB;QACE,cAAc,EAAE,KAAK,CACnB,cAAc,EAAE,4BAA4B;QAC5C,SAAS,EACT,KAAK,CAAC,KAAK,IAAI,YAAY,CAC5B;QACD,KAAK;QACL,SAAS;QACT,iDAAiD;QACjD,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,sBAAsB,EAAE,EAAE,EAAE;YAC3E,MAAM,EAAE,OAAO,EAAE,GAAG,aAAa,CAAC;YAElC,OAAO,cAAc,CAAC,CAAC,CAAC,CACtB,KAAC,cAAc,IAEb,SAAS,EAAE,sBAAsB,EACjC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,KACZ,OAAO,IAJN,G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KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,KACZ,OAAO,KACP,UAAU,IALT,GAAG,CAMR,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;QACX,CAAC;KACF,EACD,GAAG,CACJ,CAAC;AACJ,CAAC"}
@@ -4,6 +4,6 @@ import type { VNode } from '../model/VNode';
4
4
  import type { BlockRendererOptions } from './BlockRendererOptions';
5
5
  export interface BlocksListRendererProps extends BlockRendererOptions {
6
6
  slotName?: SlotName;
7
- renderChild?: (block: BlockDef, options: BlockRendererOptions) => VNode;
7
+ renderProps?: (block: BlockDef, options: BlockRendererOptions) => VNode;
8
8
  }
9
- export declare const renderBlocksList: (blocks: BlockDef[] | undefined, { key, ancestors, slotName, renderChild, ...options }: BlocksListRendererProps) => VNode[];
9
+ export declare const renderBlocksList: (blocks: BlockDef[] | undefined, { key, ancestors, slotName, renderProps, ...options }: BlocksListRendererProps) => VNode[];
@@ -1,7 +1,7 @@
1
1
  import { DEFAULT_SLOT_NAME } from '../model/BlockDecorator.js';
2
2
  import { renderBlock } from './renderBlock.js';
3
3
  const EMPTY_ANCESTORS = [];
4
- export const renderBlocksList = (blocks, { key, ancestors = EMPTY_ANCESTORS, slotName = DEFAULT_SLOT_NAME, renderChild = renderBlock, ...options }) => (blocks || []).map((_, j) => renderChild(_, {
4
+ export const renderBlocksList = (blocks, { key, ancestors = EMPTY_ANCESTORS, slotName = DEFAULT_SLOT_NAME, renderProps = renderBlock, ...options }) => (blocks || []).map((_, j) => renderProps(_, {
5
5
  ...options,
6
6
  key: `${key ? key : _.type}-${j}`,
7
7
  ancestors: options.parent
@@ -4,7 +4,7 @@ import type { VNode } from '../model/VNode';
4
4
  import type { BlockRendererOptions } from './BlockRendererOptions';
5
5
  interface ChildrenRendererProps extends UniBlockProps {
6
6
  children?: VNode;
7
- renderChild?: (block: BlockDef, options: BlockRendererOptions) => VNode;
7
+ renderProps?: (block: BlockDef, options: BlockRendererOptions) => VNode;
8
8
  }
9
- export declare function renderChildren({ children, block, options, renderChild, }: ChildrenRendererProps): VNode[] | null;
9
+ export declare function renderChildren({ children, block, options, renderProps, }: ChildrenRendererProps): VNode[] | null;
10
10
  export {};
@@ -1,10 +1,10 @@
1
1
  import { renderBlocksList } from './renderBlockList.js';
2
- export function renderChildren({ children, block, options, renderChild, }) {
2
+ export function renderChildren({ children, block, options, renderProps, }) {
3
3
  if (children) {
4
4
  return children;
5
5
  }
6
6
  return block && options
7
- ? renderBlocksList(block.blocks, { ...options, parent: block, renderChild })
7
+ ? renderBlocksList(block.blocks, { ...options, parent: block, renderProps })
8
8
  : null;
9
9
  }
10
10
  //# sourceMappingURL=renderChildren.js.map