@redneckz/wildless-cms-uni-blocks 0.8.15 → 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 (351) hide show
  1. package/bin/migration-scripts/0.8.8.js +115 -0
  2. package/bundle/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  3. package/bundle/BlockRenderer/renderBlockList.d.ts +2 -2
  4. package/bundle/BlockRenderer/renderChildren.d.ts +2 -2
  5. package/bundle/blocks.schema.json +1 -1
  6. package/bundle/bundle.umd.js +35 -119
  7. package/bundle/bundle.umd.min.js +1 -1
  8. package/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
  9. package/dist/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  10. package/dist/BlockRenderer/renderBlock.js +2 -2
  11. package/dist/BlockRenderer/renderBlock.js.map +1 -1
  12. package/dist/BlockRenderer/renderBlockList.d.ts +2 -2
  13. package/dist/BlockRenderer/renderBlockList.js +1 -1
  14. package/dist/BlockRenderer/renderChildren.d.ts +2 -2
  15. package/dist/BlockRenderer/renderChildren.js +2 -2
  16. package/dist/components/Blocks.js +0 -6
  17. package/dist/components/Blocks.js.map +1 -1
  18. package/dist/components/Blocks.mobile.js +0 -2
  19. package/dist/components/Blocks.mobile.js.map +1 -1
  20. package/dist/components/Carousel/Carousel.js +9 -18
  21. package/dist/components/Carousel/Carousel.js.map +1 -1
  22. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
  23. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +3 -1
  24. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  25. package/dist/components/Tabs/Tabs.js +1 -1
  26. package/dist/components/Tabs/Tabs.js.map +1 -1
  27. package/dist/ui-kit/Img/ImgAsPicture.js +3 -9
  28. package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
  29. package/lib/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  30. package/lib/BlockRenderer/renderBlock.js +2 -2
  31. package/lib/BlockRenderer/renderBlock.js.map +1 -1
  32. package/lib/BlockRenderer/renderBlockList.d.ts +2 -2
  33. package/lib/BlockRenderer/renderBlockList.js +1 -1
  34. package/lib/BlockRenderer/renderChildren.d.ts +2 -2
  35. package/lib/BlockRenderer/renderChildren.js +2 -2
  36. package/lib/common.css +1 -1
  37. package/lib/components/Blocks.js +0 -6
  38. package/lib/components/Blocks.js.map +1 -1
  39. package/lib/components/Blocks.mobile.js +0 -2
  40. package/lib/components/Blocks.mobile.js.map +1 -1
  41. package/lib/components/Carousel/Carousel.js +9 -18
  42. package/lib/components/Carousel/Carousel.js.map +1 -1
  43. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
  44. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +3 -1
  45. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  46. package/lib/components/Tabs/Tabs.js +1 -1
  47. package/lib/components/Tabs/Tabs.js.map +1 -1
  48. package/lib/ui-kit/Img/ImgAsPicture.js +3 -9
  49. package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
  50. package/mobile/bundle/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  51. package/mobile/bundle/BlockRenderer/renderBlockList.d.ts +2 -2
  52. package/mobile/bundle/BlockRenderer/renderChildren.d.ts +2 -2
  53. package/mobile/bundle/bundle.umd.js +11 -44
  54. package/mobile/bundle/bundle.umd.min.js +1 -1
  55. package/mobile/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
  56. package/mobile/dist/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  57. package/mobile/dist/BlockRenderer/renderBlock.js +2 -2
  58. package/mobile/dist/BlockRenderer/renderBlock.js.map +1 -1
  59. package/mobile/dist/BlockRenderer/renderBlockList.d.ts +2 -2
  60. package/mobile/dist/BlockRenderer/renderBlockList.js +1 -1
  61. package/mobile/dist/BlockRenderer/renderChildren.d.ts +2 -2
  62. package/mobile/dist/BlockRenderer/renderChildren.js +2 -2
  63. package/mobile/dist/components/Blocks.js +0 -2
  64. package/mobile/dist/components/Blocks.js.map +1 -1
  65. package/mobile/dist/components/Carousel/Carousel.js +9 -18
  66. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  67. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
  68. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +3 -1
  69. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  70. package/mobile/dist/components/Tabs/Tabs.js +1 -1
  71. package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
  72. package/mobile/dist/ui-kit/Img/ImgAsPicture.js +3 -9
  73. package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
  74. package/mobile/lib/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  75. package/mobile/lib/BlockRenderer/renderBlock.js +2 -2
  76. package/mobile/lib/BlockRenderer/renderBlock.js.map +1 -1
  77. package/mobile/lib/BlockRenderer/renderBlockList.d.ts +2 -2
  78. package/mobile/lib/BlockRenderer/renderBlockList.js +1 -1
  79. package/mobile/lib/BlockRenderer/renderChildren.d.ts +2 -2
  80. package/mobile/lib/BlockRenderer/renderChildren.js +2 -2
  81. package/mobile/lib/components/Blocks.js +0 -2
  82. package/mobile/lib/components/Blocks.js.map +1 -1
  83. package/mobile/lib/components/Carousel/Carousel.js +9 -18
  84. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  85. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -2
  86. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +3 -1
  87. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  88. package/mobile/lib/components/Tabs/Tabs.js +1 -1
  89. package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
  90. package/mobile/lib/ui-kit/Img/ImgAsPicture.js +3 -9
  91. package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
  92. package/mobile/src/BlockRenderer/BlockRendererOptions.ts +1 -0
  93. package/mobile/src/BlockRenderer/renderBlock.tsx +2 -0
  94. package/mobile/src/BlockRenderer/renderBlockList.tsx +3 -3
  95. package/mobile/src/BlockRenderer/renderChildren.ts +3 -3
  96. package/mobile/src/components/Blocks.ts +0 -2
  97. package/mobile/src/components/Carousel/Carousel.tsx +9 -19
  98. package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +5 -3
  99. package/mobile/src/components/Tabs/Tabs.tsx +1 -1
  100. package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +4 -10
  101. package/package.json +1 -1
  102. package/src/BlockRenderer/BlockRendererOptions.ts +1 -0
  103. package/src/BlockRenderer/renderBlock.tsx +2 -0
  104. package/src/BlockRenderer/renderBlockList.tsx +3 -3
  105. package/src/BlockRenderer/renderChildren.ts +3 -3
  106. package/src/components/Accordion/Accordion.fixture.tsx +0 -12
  107. package/src/components/Blocks.mobile.ts +0 -2
  108. package/src/components/Blocks.ts +0 -6
  109. package/src/components/Carousel/Carousel.tsx +9 -19
  110. package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +5 -3
  111. package/src/components/OtherProducts/OtherProducts.fixture.tsx +0 -18
  112. package/src/components/PictureText/PictureText.fixture.tsx +1 -1
  113. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +1 -1
  114. package/src/components/Tabs/Tabs.tsx +1 -1
  115. package/src/ui-kit/Img/ImgAsPicture.tsx +4 -10
  116. package/bundle/components/Catalog/Catalog.d.ts +0 -5
  117. package/bundle/components/Catalog/CatalogCard.d.ts +0 -7
  118. package/bundle/components/Catalog/CatalogContent.d.ts +0 -27
  119. package/bundle/components/Gallery/Gallery.d.ts +0 -2
  120. package/bundle/components/Gallery/Gallery.mobile.d.ts +0 -2
  121. package/bundle/components/Gallery/GalleryCardInner.d.ts +0 -2
  122. package/bundle/components/Gallery/GalleryContainer.d.ts +0 -11
  123. package/bundle/components/Gallery/GalleryContent.d.ts +0 -71
  124. package/bundle/components/Gallery/GalleryInner.d.ts +0 -7
  125. package/bundle/components/Gallery/GalleryProps.d.ts +0 -4
  126. package/bundle/components/Gallery/constants.d.ts +0 -4
  127. package/bundle/components/MiniGallery/MiniGallery.d.ts +0 -5
  128. package/bundle/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
  129. package/bundle/model/GalleryVersion.d.ts +0 -1
  130. package/dist/components/Catalog/Catalog.d.ts +0 -5
  131. package/dist/components/Catalog/Catalog.js +0 -24
  132. package/dist/components/Catalog/Catalog.js.map +0 -1
  133. package/dist/components/Catalog/CatalogCard.d.ts +0 -7
  134. package/dist/components/Catalog/CatalogCard.js +0 -14
  135. package/dist/components/Catalog/CatalogCard.js.map +0 -1
  136. package/dist/components/Catalog/CatalogContent.d.ts +0 -27
  137. package/dist/components/Catalog/CatalogContent.js +0 -2
  138. package/dist/components/Catalog/CatalogContent.js.map +0 -1
  139. package/dist/components/Gallery/Gallery.d.ts +0 -2
  140. package/dist/components/Gallery/Gallery.js +0 -7
  141. package/dist/components/Gallery/Gallery.js.map +0 -1
  142. package/dist/components/Gallery/Gallery.mobile.d.ts +0 -2
  143. package/dist/components/Gallery/Gallery.mobile.js +0 -35
  144. package/dist/components/Gallery/Gallery.mobile.js.map +0 -1
  145. package/dist/components/Gallery/GalleryCardInner.d.ts +0 -2
  146. package/dist/components/Gallery/GalleryCardInner.js +0 -20
  147. package/dist/components/Gallery/GalleryCardInner.js.map +0 -1
  148. package/dist/components/Gallery/GalleryContainer.d.ts +0 -11
  149. package/dist/components/Gallery/GalleryContainer.js +0 -15
  150. package/dist/components/Gallery/GalleryContainer.js.map +0 -1
  151. package/dist/components/Gallery/GalleryContent.d.ts +0 -71
  152. package/dist/components/Gallery/GalleryContent.js +0 -2
  153. package/dist/components/Gallery/GalleryContent.js.map +0 -1
  154. package/dist/components/Gallery/GalleryInner.d.ts +0 -7
  155. package/dist/components/Gallery/GalleryInner.js +0 -23
  156. package/dist/components/Gallery/GalleryInner.js.map +0 -1
  157. package/dist/components/Gallery/GalleryProps.d.ts +0 -4
  158. package/dist/components/Gallery/GalleryProps.js +0 -2
  159. package/dist/components/Gallery/GalleryProps.js.map +0 -1
  160. package/dist/components/Gallery/constants.d.ts +0 -4
  161. package/dist/components/Gallery/constants.js +0 -15
  162. package/dist/components/Gallery/constants.js.map +0 -1
  163. package/dist/components/MiniGallery/MiniGallery.d.ts +0 -5
  164. package/dist/components/MiniGallery/MiniGallery.js +0 -7
  165. package/dist/components/MiniGallery/MiniGallery.js.map +0 -1
  166. package/dist/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
  167. package/dist/components/MiniGallery/MiniGalleryContent.js +0 -2
  168. package/dist/components/MiniGallery/MiniGalleryContent.js.map +0 -1
  169. package/dist/model/GalleryVersion.d.ts +0 -1
  170. package/dist/model/GalleryVersion.js +0 -2
  171. package/dist/model/GalleryVersion.js.map +0 -1
  172. package/lib/components/Catalog/Catalog.d.ts +0 -5
  173. package/lib/components/Catalog/Catalog.fixture.d.ts +0 -8
  174. package/lib/components/Catalog/Catalog.js +0 -22
  175. package/lib/components/Catalog/Catalog.js.map +0 -1
  176. package/lib/components/Catalog/CatalogCard.d.ts +0 -7
  177. package/lib/components/Catalog/CatalogCard.js +0 -12
  178. package/lib/components/Catalog/CatalogCard.js.map +0 -1
  179. package/lib/components/Catalog/CatalogContent.d.ts +0 -27
  180. package/lib/components/Catalog/CatalogContent.js +0 -2
  181. package/lib/components/Catalog/CatalogContent.js.map +0 -1
  182. package/lib/components/Gallery/Gallery.d.ts +0 -2
  183. package/lib/components/Gallery/Gallery.fixture.d.ts +0 -12
  184. package/lib/components/Gallery/Gallery.fixture.mobile.d.ts +0 -7
  185. package/lib/components/Gallery/Gallery.js +0 -5
  186. package/lib/components/Gallery/Gallery.js.map +0 -1
  187. package/lib/components/Gallery/Gallery.mobile.d.ts +0 -2
  188. package/lib/components/Gallery/Gallery.mobile.js +0 -33
  189. package/lib/components/Gallery/Gallery.mobile.js.map +0 -1
  190. package/lib/components/Gallery/GalleryCardInner.d.ts +0 -2
  191. package/lib/components/Gallery/GalleryCardInner.js +0 -18
  192. package/lib/components/Gallery/GalleryCardInner.js.map +0 -1
  193. package/lib/components/Gallery/GalleryContainer.d.ts +0 -11
  194. package/lib/components/Gallery/GalleryContainer.js +0 -13
  195. package/lib/components/Gallery/GalleryContainer.js.map +0 -1
  196. package/lib/components/Gallery/GalleryContent.d.ts +0 -71
  197. package/lib/components/Gallery/GalleryContent.js +0 -2
  198. package/lib/components/Gallery/GalleryContent.js.map +0 -1
  199. package/lib/components/Gallery/GalleryInner.d.ts +0 -7
  200. package/lib/components/Gallery/GalleryInner.js +0 -21
  201. package/lib/components/Gallery/GalleryInner.js.map +0 -1
  202. package/lib/components/Gallery/GalleryProps.d.ts +0 -4
  203. package/lib/components/Gallery/GalleryProps.js +0 -2
  204. package/lib/components/Gallery/GalleryProps.js.map +0 -1
  205. package/lib/components/Gallery/constants.d.ts +0 -4
  206. package/lib/components/Gallery/constants.js +0 -13
  207. package/lib/components/Gallery/constants.js.map +0 -1
  208. package/lib/components/MiniGallery/MiniGallery.d.ts +0 -5
  209. package/lib/components/MiniGallery/MiniGallery.fixture.d.ts +0 -11
  210. package/lib/components/MiniGallery/MiniGallery.js +0 -5
  211. package/lib/components/MiniGallery/MiniGallery.js.map +0 -1
  212. package/lib/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
  213. package/lib/components/MiniGallery/MiniGalleryContent.js +0 -2
  214. package/lib/components/MiniGallery/MiniGalleryContent.js.map +0 -1
  215. package/lib/model/GalleryVersion.d.ts +0 -1
  216. package/lib/model/GalleryVersion.js +0 -2
  217. package/lib/model/GalleryVersion.js.map +0 -1
  218. package/mobile/bundle/components/Catalog/Catalog.d.ts +0 -5
  219. package/mobile/bundle/components/Catalog/CatalogCard.d.ts +0 -7
  220. package/mobile/bundle/components/Catalog/CatalogContent.d.ts +0 -27
  221. package/mobile/bundle/components/Gallery/Gallery.d.ts +0 -2
  222. package/mobile/bundle/components/Gallery/GalleryCardInner.d.ts +0 -2
  223. package/mobile/bundle/components/Gallery/GalleryContainer.d.ts +0 -11
  224. package/mobile/bundle/components/Gallery/GalleryContent.d.ts +0 -71
  225. package/mobile/bundle/components/Gallery/GalleryInner.d.ts +0 -7
  226. package/mobile/bundle/components/Gallery/GalleryProps.d.ts +0 -4
  227. package/mobile/bundle/components/Gallery/constants.d.ts +0 -4
  228. package/mobile/bundle/components/MiniGallery/MiniGallery.d.ts +0 -5
  229. package/mobile/bundle/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
  230. package/mobile/bundle/model/GalleryVersion.d.ts +0 -1
  231. package/mobile/dist/components/Catalog/Catalog.d.ts +0 -5
  232. package/mobile/dist/components/Catalog/Catalog.js +0 -24
  233. package/mobile/dist/components/Catalog/Catalog.js.map +0 -1
  234. package/mobile/dist/components/Catalog/CatalogCard.d.ts +0 -7
  235. package/mobile/dist/components/Catalog/CatalogCard.js +0 -14
  236. package/mobile/dist/components/Catalog/CatalogCard.js.map +0 -1
  237. package/mobile/dist/components/Catalog/CatalogContent.d.ts +0 -27
  238. package/mobile/dist/components/Catalog/CatalogContent.js +0 -2
  239. package/mobile/dist/components/Catalog/CatalogContent.js.map +0 -1
  240. package/mobile/dist/components/Gallery/Gallery.d.ts +0 -2
  241. package/mobile/dist/components/Gallery/Gallery.js +0 -35
  242. package/mobile/dist/components/Gallery/Gallery.js.map +0 -1
  243. package/mobile/dist/components/Gallery/GalleryCardInner.d.ts +0 -2
  244. package/mobile/dist/components/Gallery/GalleryCardInner.js +0 -20
  245. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +0 -1
  246. package/mobile/dist/components/Gallery/GalleryContainer.d.ts +0 -11
  247. package/mobile/dist/components/Gallery/GalleryContainer.js +0 -15
  248. package/mobile/dist/components/Gallery/GalleryContainer.js.map +0 -1
  249. package/mobile/dist/components/Gallery/GalleryContent.d.ts +0 -71
  250. package/mobile/dist/components/Gallery/GalleryContent.js +0 -2
  251. package/mobile/dist/components/Gallery/GalleryContent.js.map +0 -1
  252. package/mobile/dist/components/Gallery/GalleryInner.d.ts +0 -7
  253. package/mobile/dist/components/Gallery/GalleryInner.js +0 -23
  254. package/mobile/dist/components/Gallery/GalleryInner.js.map +0 -1
  255. package/mobile/dist/components/Gallery/GalleryProps.d.ts +0 -4
  256. package/mobile/dist/components/Gallery/GalleryProps.js +0 -2
  257. package/mobile/dist/components/Gallery/GalleryProps.js.map +0 -1
  258. package/mobile/dist/components/Gallery/constants.d.ts +0 -4
  259. package/mobile/dist/components/Gallery/constants.js +0 -15
  260. package/mobile/dist/components/Gallery/constants.js.map +0 -1
  261. package/mobile/dist/components/MiniGallery/MiniGallery.d.ts +0 -5
  262. package/mobile/dist/components/MiniGallery/MiniGallery.js +0 -7
  263. package/mobile/dist/components/MiniGallery/MiniGallery.js.map +0 -1
  264. package/mobile/dist/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
  265. package/mobile/dist/components/MiniGallery/MiniGalleryContent.js +0 -2
  266. package/mobile/dist/components/MiniGallery/MiniGalleryContent.js.map +0 -1
  267. package/mobile/dist/model/GalleryVersion.d.ts +0 -1
  268. package/mobile/dist/model/GalleryVersion.js +0 -2
  269. package/mobile/dist/model/GalleryVersion.js.map +0 -1
  270. package/mobile/lib/components/Catalog/Catalog.d.ts +0 -5
  271. package/mobile/lib/components/Catalog/Catalog.js +0 -22
  272. package/mobile/lib/components/Catalog/Catalog.js.map +0 -1
  273. package/mobile/lib/components/Catalog/CatalogCard.d.ts +0 -7
  274. package/mobile/lib/components/Catalog/CatalogCard.js +0 -12
  275. package/mobile/lib/components/Catalog/CatalogCard.js.map +0 -1
  276. package/mobile/lib/components/Catalog/CatalogContent.d.ts +0 -27
  277. package/mobile/lib/components/Catalog/CatalogContent.js +0 -2
  278. package/mobile/lib/components/Catalog/CatalogContent.js.map +0 -1
  279. package/mobile/lib/components/Gallery/Gallery.d.ts +0 -2
  280. package/mobile/lib/components/Gallery/Gallery.js +0 -33
  281. package/mobile/lib/components/Gallery/Gallery.js.map +0 -1
  282. package/mobile/lib/components/Gallery/GalleryCardInner.d.ts +0 -2
  283. package/mobile/lib/components/Gallery/GalleryCardInner.js +0 -18
  284. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +0 -1
  285. package/mobile/lib/components/Gallery/GalleryContainer.d.ts +0 -11
  286. package/mobile/lib/components/Gallery/GalleryContainer.js +0 -13
  287. package/mobile/lib/components/Gallery/GalleryContainer.js.map +0 -1
  288. package/mobile/lib/components/Gallery/GalleryContent.d.ts +0 -71
  289. package/mobile/lib/components/Gallery/GalleryContent.js +0 -2
  290. package/mobile/lib/components/Gallery/GalleryContent.js.map +0 -1
  291. package/mobile/lib/components/Gallery/GalleryInner.d.ts +0 -7
  292. package/mobile/lib/components/Gallery/GalleryInner.js +0 -21
  293. package/mobile/lib/components/Gallery/GalleryInner.js.map +0 -1
  294. package/mobile/lib/components/Gallery/GalleryProps.d.ts +0 -4
  295. package/mobile/lib/components/Gallery/GalleryProps.js +0 -2
  296. package/mobile/lib/components/Gallery/GalleryProps.js.map +0 -1
  297. package/mobile/lib/components/Gallery/constants.d.ts +0 -4
  298. package/mobile/lib/components/Gallery/constants.js +0 -13
  299. package/mobile/lib/components/Gallery/constants.js.map +0 -1
  300. package/mobile/lib/components/MiniGallery/MiniGallery.d.ts +0 -5
  301. package/mobile/lib/components/MiniGallery/MiniGallery.js +0 -5
  302. package/mobile/lib/components/MiniGallery/MiniGallery.js.map +0 -1
  303. package/mobile/lib/components/MiniGallery/MiniGalleryContent.d.ts +0 -12
  304. package/mobile/lib/components/MiniGallery/MiniGalleryContent.js +0 -2
  305. package/mobile/lib/components/MiniGallery/MiniGalleryContent.js.map +0 -1
  306. package/mobile/lib/model/GalleryVersion.d.ts +0 -1
  307. package/mobile/lib/model/GalleryVersion.js +0 -2
  308. package/mobile/lib/model/GalleryVersion.js.map +0 -1
  309. package/mobile/src/components/Catalog/Catalog.example.json +0 -59
  310. package/mobile/src/components/Catalog/Catalog.tsx +0 -49
  311. package/mobile/src/components/Catalog/Catalog.ui.json +0 -11
  312. package/mobile/src/components/Catalog/CatalogCard.tsx +0 -47
  313. package/mobile/src/components/Catalog/CatalogContent.ts +0 -29
  314. package/mobile/src/components/Gallery/Gallery.example.json +0 -66
  315. package/mobile/src/components/Gallery/Gallery.tsx +0 -113
  316. package/mobile/src/components/Gallery/Gallery.ui.json +0 -22
  317. package/mobile/src/components/Gallery/GalleryCardInner.tsx +0 -78
  318. package/mobile/src/components/Gallery/GalleryContainer.tsx +0 -61
  319. package/mobile/src/components/Gallery/GalleryContent.ts +0 -74
  320. package/mobile/src/components/Gallery/GalleryInner.tsx +0 -50
  321. package/mobile/src/components/Gallery/GalleryProps.ts +0 -4
  322. package/mobile/src/components/Gallery/constants.ts +0 -16
  323. package/mobile/src/components/MiniGallery/MiniGallery.example.json +0 -56
  324. package/mobile/src/components/MiniGallery/MiniGallery.tsx +0 -10
  325. package/mobile/src/components/MiniGallery/MiniGallery.ui.json +0 -19
  326. package/mobile/src/components/MiniGallery/MiniGalleryContent.ts +0 -13
  327. package/mobile/src/model/GalleryVersion.ts +0 -1
  328. package/src/components/Catalog/Catalog.example.json +0 -59
  329. package/src/components/Catalog/Catalog.fixture.tsx +0 -50
  330. package/src/components/Catalog/Catalog.tsx +0 -49
  331. package/src/components/Catalog/Catalog.ui.json +0 -11
  332. package/src/components/Catalog/CatalogCard.tsx +0 -47
  333. package/src/components/Catalog/CatalogContent.ts +0 -29
  334. package/src/components/Gallery/Gallery.example.json +0 -66
  335. package/src/components/Gallery/Gallery.fixture.mobile.tsx +0 -83
  336. package/src/components/Gallery/Gallery.fixture.tsx +0 -225
  337. package/src/components/Gallery/Gallery.mobile.tsx +0 -113
  338. package/src/components/Gallery/Gallery.tsx +0 -7
  339. package/src/components/Gallery/Gallery.ui.json +0 -22
  340. package/src/components/Gallery/GalleryCardInner.tsx +0 -78
  341. package/src/components/Gallery/GalleryContainer.tsx +0 -61
  342. package/src/components/Gallery/GalleryContent.ts +0 -74
  343. package/src/components/Gallery/GalleryInner.tsx +0 -50
  344. package/src/components/Gallery/GalleryProps.ts +0 -4
  345. package/src/components/Gallery/constants.ts +0 -16
  346. package/src/components/MiniGallery/MiniGallery.example.json +0 -56
  347. package/src/components/MiniGallery/MiniGallery.fixture.tsx +0 -154
  348. package/src/components/MiniGallery/MiniGallery.tsx +0 -10
  349. package/src/components/MiniGallery/MiniGallery.ui.json +0 -19
  350. package/src/components/MiniGallery/MiniGalleryContent.ts +0 -13
  351. package/src/model/GalleryVersion.ts +0 -1
@@ -1,50 +0,0 @@
1
- import { JSX } from '@redneckz/uni-jsx';
2
- import { useCarouselControls } from '../../hooks/useCarouselControls';
3
- import type { GalleryVersion } from '../../model/GalleryVersion';
4
- import type { UniBlockProps } from '../../model/JSXBlock';
5
- import { BlockWrapper } from '../../ui-kit/BlockWrapper';
6
- import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
7
- import { renderArrows } from '../../ui-kit/Button/renderArrows';
8
- import { galleryLengthForScrollMap } from './constants';
9
- import { GalleryContainer } from './GalleryContainer';
10
- import type { GalleryContent } from './GalleryContent';
11
-
12
- export interface GalleryInnerProps extends GalleryContent, UniBlockProps {
13
- galleryVersion?: GalleryVersion;
14
- }
15
-
16
- export const GalleryInner = JSX<GalleryInnerProps>(
17
- ({ cards = [], className = '', galleryVersion = 'normal', button, ...rest }) => {
18
- const [activeIndex, controls] = useCarouselControls({
19
- itemCount: cards?.length,
20
- visibleItemCount: galleryLengthForScrollMap[galleryVersion],
21
- });
22
- const { isScrollAvailable } = controls;
23
-
24
- return (
25
- <BlockWrapper
26
- className={`relative p-[42px] overflow-hidden flex flex-col ${className}`}
27
- {...rest}
28
- >
29
- <GalleryContainer
30
- cards={cards}
31
- galleryVersion={galleryVersion}
32
- activeIndex={activeIndex}
33
- {...rest}
34
- />
35
- {renderArrows({
36
- ...controls,
37
- btnClass: ['left-8', 'right-8'],
38
- className: 'top-1/2',
39
- })}
40
- {isScrollAvailable ? (
41
- <div>
42
- <div className="absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white" />
43
- <div className="absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white" />
44
- </div>
45
- ) : null}
46
- {renderButtonsSection([button], { className: 'mt-8 mx-auto' })}
47
- </BlockWrapper>
48
- );
49
- },
50
- );
@@ -1,4 +0,0 @@
1
- import type { UniBlockProps } from '../../model/JSXBlock';
2
- import type { GalleryContent } from './GalleryContent';
3
-
4
- export interface GalleryProps extends GalleryContent, UniBlockProps {}
@@ -1,16 +0,0 @@
1
- import type { GalleryVersion } from '../../model/GalleryVersion';
2
-
3
- export const galleryLengthForScrollMap: Record<GalleryVersion, number> = {
4
- normal: 3,
5
- mini: 4,
6
- };
7
-
8
- export const cardStyleMap: Record<GalleryVersion, string> = {
9
- normal: 'min-w-[364px] w-[364px]',
10
- mini: 'min-w-[260px] w-[260px]',
11
- };
12
-
13
- export const cardWidthMap: Record<GalleryVersion, number> = {
14
- normal: 380,
15
- mini: 276,
16
- };
@@ -1,56 +0,0 @@
1
- {
2
- "content": {
3
- "title": "Мини-галерея",
4
- "description": "Описание",
5
- "cards": [
6
- {
7
- "image": {
8
- "format": "webp",
9
- "size": {
10
- "width": 120,
11
- "height": 70
12
- }
13
- },
14
- "title": "Заголовок 1",
15
- "description": "Описание 1",
16
- "version": "primary"
17
- },
18
- {
19
- "image": {
20
- "format": "webp",
21
- "size": {
22
- "width": 120,
23
- "height": 70
24
- }
25
- },
26
- "title": "Заголовок 2",
27
- "description": "Описание 2",
28
- "version": "primary"
29
- },
30
- {
31
- "image": {
32
- "format": "webp",
33
- "size": {
34
- "width": 120,
35
- "height": 70
36
- }
37
- },
38
- "title": "Заголовок 3",
39
- "description": "Описание 3",
40
- "version": "primary"
41
- },
42
- {
43
- "image": {
44
- "format": "webp",
45
- "size": {
46
- "width": 120,
47
- "height": 70
48
- }
49
- },
50
- "title": "Заголовок 4",
51
- "description": "Описание 4",
52
- "version": "primary"
53
- }
54
- ]
55
- }
56
- }
@@ -1,10 +0,0 @@
1
- import { JSX } from '@redneckz/uni-jsx';
2
- import type { UniBlockProps } from '../../model/JSXBlock';
3
- import { GalleryInner } from '../Gallery/GalleryInner';
4
- import type { MiniGalleryContent } from './MiniGalleryContent';
5
-
6
- export interface MiniGalleryProps extends MiniGalleryContent, UniBlockProps {}
7
-
8
- export const MiniGallery = JSX<MiniGalleryProps>((props) => (
9
- <GalleryInner {...props} galleryVersion="mini" />
10
- ));
@@ -1,19 +0,0 @@
1
- {
2
- "content": {
3
- "cards": {
4
- "items": {
5
- "icon": {
6
- "ui:field": "picture"
7
- },
8
- "button": {
9
- "icon": {
10
- "ui:field": "icon"
11
- },
12
- "iconRight": {
13
- "ui:field": "icon"
14
- }
15
- }
16
- }
17
- }
18
- }
19
- }
@@ -1,13 +0,0 @@
1
- import type { GalleryCardProps, GalleryContent } from '../Gallery/GalleryContent';
2
-
3
- /**
4
- * @title Мини-галерея
5
- * @default {"headlineVersion": "L"}
6
- */
7
- export interface MiniGalleryContent extends GalleryContent {
8
- /**
9
- * @title Карточки
10
- * @minItems 4
11
- */
12
- cards?: GalleryCardProps[];
13
- }
@@ -1 +0,0 @@
1
- export type GalleryVersion = 'normal' | 'mini';
@@ -1,59 +0,0 @@
1
- {
2
- "content": {
3
- "title": "Каталог",
4
- "description": "Описание",
5
- "cards": [
6
- {
7
- "title": "Заголовок карточки 1",
8
- "description": "Описание карточки",
9
- "image": {
10
- "format": "webp",
11
- "size": {
12
- "width": 230,
13
- "height": 230
14
- }
15
- },
16
- "button": {
17
- "href": "#Accordion-0",
18
- "text": "Подробнее",
19
- "target": "_self",
20
- "version": "primary"
21
- }
22
- },
23
- {
24
- "title": "Заголовок карточки 2",
25
- "description": "Описание карточки",
26
- "image": {
27
- "format": "webp",
28
- "size": {
29
- "width": 230,
30
- "height": 230
31
- }
32
- },
33
- "button": {
34
- "href": "",
35
- "text": "Подробнее",
36
- "target": "_self",
37
- "version": "primary"
38
- }
39
- },
40
- {
41
- "title": "Заголовок карточки 3",
42
- "description": "Описание карточки",
43
- "image": {
44
- "format": "webp",
45
- "size": {
46
- "width": 230,
47
- "height": 230
48
- }
49
- },
50
- "button": {
51
- "href": "",
52
- "text": "Подробнее",
53
- "target": "_self",
54
- "version": "primary"
55
- }
56
- }
57
- ]
58
- }
59
- }
@@ -1,50 +0,0 @@
1
- import type { Picture } from '../../model/Picture';
2
- import type { ProductColorVersion } from '../../model/ProductColorVersion';
3
- import '../../setup-fixture';
4
- import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
5
- import { Catalog, CatalogProps } from './Catalog';
6
-
7
- const payRing: Picture = {
8
- src: 'pay-ring.png',
9
- format: 'webp',
10
- size: {
11
- width: 230,
12
- height: 230,
13
- },
14
- title: 'pay-ring',
15
- };
16
-
17
- const colors: ProductColorVersion[] = ['black', 'white'];
18
-
19
- const buttonPrimary: ButtonWithIconProps = {
20
- href: '/credit-cards',
21
- text: 'Подробнее',
22
- target: '_blank',
23
- version: 'primary',
24
- icon: {
25
- icon: 'AppleIcon',
26
- },
27
- };
28
-
29
- const catalogCard = {
30
- title: 'SATURN S-VI',
31
- description: 'Керамическое кольцо с глянцевой поверхностью и огранкой по внешним контурам',
32
- image: payRing,
33
- price: 5600,
34
- colors: colors,
35
- button: buttonPrimary,
36
- };
37
-
38
- export const defaultProps: CatalogProps = {
39
- title: 'Каталог',
40
- description: 'Описание',
41
- cards: new Array(5).fill(catalogCard).flat(),
42
- };
43
-
44
- export default {
45
- default: (
46
- <div className="container grid grid-cols-12">
47
- <Catalog {...defaultProps} className="col-span-12" />
48
- </div>
49
- ),
50
- };
@@ -1,49 +0,0 @@
1
- import { JSX } from '@redneckz/uni-jsx';
2
- import { useCarouselControls } from '../../hooks/useCarouselControls';
3
- import type { UniBlockProps } from '../../model/JSXBlock';
4
- import { BlockWrapper } from '../../ui-kit/BlockWrapper';
5
- import { renderArrows } from '../../ui-kit/Button/renderArrows';
6
- import { Headline } from '../Headline/Headline';
7
- import { CatalogCard } from './CatalogCard';
8
- import type { CatalogContent } from './CatalogContent';
9
-
10
- export interface CatalogProps extends CatalogContent, UniBlockProps {}
11
-
12
- const BLUR_BLOCK_CLASSES = 'absolute top-0 bottom-0 w-[84px]';
13
- const CARD_VIEW_COUNT = 3;
14
- const CARD_SHIFT = 430;
15
-
16
- export const Catalog = JSX<CatalogProps>(
17
- ({ cards = [], className = '', title, description, ...rest }) => {
18
- const [activeIndex, controls] = useCarouselControls({
19
- itemCount: cards?.length,
20
- visibleItemCount: CARD_VIEW_COUNT,
21
- });
22
-
23
- return (
24
- <BlockWrapper className={`p-12 overflow-hidden text-center ${className}`} {...rest}>
25
- <Headline
26
- className="!p-0"
27
- title={title}
28
- description={description}
29
- headlineVersion="M"
30
- {...rest}
31
- />
32
- <div
33
- className="flex duration-1000 gap-3.5 mt-8"
34
- style={{ transform: `translateX(-${activeIndex * CARD_SHIFT}px)` }}
35
- role="list"
36
- >
37
- {cards?.length ? cards.map((card, i) => <CatalogCard key={String(i)} {...card} />) : null}
38
- </div>
39
- {renderArrows({
40
- ...controls,
41
- btnClass: ['left-8', 'right-8'],
42
- className: 'top-1/2 z-10 mt-6',
43
- })}
44
- <div className={`${BLUR_BLOCK_CLASSES} left-0 bg-opacity-from-white`} />
45
- <div className={`${BLUR_BLOCK_CLASSES} right-0 bg-opacity-to-white`} />
46
- </BlockWrapper>
47
- );
48
- },
49
- );
@@ -1,11 +0,0 @@
1
- {
2
- "content": {
3
- "cards": {
4
- "items": {
5
- "price": {
6
- "ui:field": "number"
7
- }
8
- }
9
- }
10
- }
11
- }
@@ -1,47 +0,0 @@
1
- import { JSX } from '@redneckz/uni-jsx';
2
- import type { BlockVersion } from '../../model/BlockVersion';
3
- import type { ProductColorVersion } from '../../model/ProductColorVersion';
4
- import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
5
- import { Heading } from '../../ui-kit/Heading/Heading';
6
- import { Img } from '../../ui-kit/Img/Img';
7
- import type { CatalogCardType } from './CatalogContent';
8
-
9
- export interface CatalogCardProps extends CatalogCardType {
10
- className?: string;
11
- version?: BlockVersion;
12
- }
13
-
14
- const cardStyleMap: Record<ProductColorVersion, string> = {
15
- black: 'bg-black',
16
- white: 'bg-white',
17
- };
18
-
19
- export const CatalogCard = JSX<CatalogCardProps>(
20
- ({ className = '', title, description, image, price, button, colors }) => (
21
- <section
22
- className={`border border-solid box-border border-gray p-[30px] min-w-[402px] flex flex-col justify-left ${className}`}
23
- role="listitem"
24
- >
25
- {image?.src ? <Img className="mb-5 flex justify-center" image={image} /> : null}
26
- {title ? (
27
- <Heading headingType="h6" as="h4" className="text-left mb-1.5" title={title} />
28
- ) : null}
29
- {description ? <div className="text-m-light text-left mb-4">{description}</div> : null}
30
- {colors?.length ? (
31
- <div className="flex mb-4 text-s-light text-secondary-text">
32
- <div className="mr-1.5">Доступные цвета: </div>
33
- {colors.map(renderColorOption)}
34
- </div>
35
- ) : null}
36
- {price ? <div className="text-h3 text-left">{price}&nbsp;₽</div> : null}
37
- {renderButtonsSection([button], { buttonClassName: 'mt-5 w-full' })}
38
- </section>
39
- ),
40
- );
41
-
42
- const renderColorOption = (color: ProductColorVersion, i: number) => (
43
- <span
44
- key={String(i)}
45
- className={`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}`}
46
- />
47
- );
@@ -1,29 +0,0 @@
1
- import type { HeadlineCommonProps } from '../../model/HeadlineType';
2
- import type { ProductColorVersion } from '../../model/ProductColorVersion';
3
- import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
4
- import type { ImageContent } from '../../ui-kit/Img/ImgProps';
5
- import type { BlockVersion } from '../../model/BlockVersion';
6
-
7
- export interface CatalogCardType extends HeadlineCommonProps, ImageContent {
8
- /** @title Цена в рублях */
9
- price?: number;
10
- /** @title Доступные цвета */
11
- colors?: ProductColorVersion[];
12
- /**
13
- * @title Кнопка
14
- * @default {
15
- * "icon": { "format": "webp", "size": { "width": 24, "height": 24 } },
16
- * "iconRight" : { "format": "webp", "size": { "width": 24, "height": 24 } }
17
- * }
18
- */
19
- button?: ButtonWithIconProps;
20
- }
21
-
22
- /**
23
- * @title Каталог
24
- */
25
- export type CatalogContent = HeadlineCommonProps & {
26
- /** @title Список карточек */
27
- cards?: CatalogCardType[];
28
- version?: BlockVersion;
29
- };
@@ -1,66 +0,0 @@
1
- {
2
- "content": {
3
- "title": "Галерея",
4
- "description": "Описание",
5
- "orientation": "horizontal",
6
- "cards": [
7
- {
8
- "icon": {
9
- "format": "webp",
10
- "size": {
11
- "width": 150,
12
- "height": 150
13
- }
14
- },
15
- "title": "Заголовок 1",
16
- "description": "Описание 1",
17
- "href": "/credit-cards",
18
- "version": "primary",
19
- "isDotted": true,
20
- "items": [
21
- { "text": "Элемент списка 1", "title": "Элемент заголовка 1" },
22
- { "text": "Элемент списка 2", "title": "Элемент заголовка 2" },
23
- { "text": "Элемент списка 3", "title": "Элемент заголовка 3" }
24
- ]
25
- },
26
- {
27
- "icon": {
28
- "format": "webp",
29
- "size": {
30
- "width": 140,
31
- "height": 140
32
- }
33
- },
34
- "title": "Заголовок 2",
35
- "description": "Описание 2",
36
- "href": "/credit-cards",
37
- "version": "primary",
38
- "isDotted": true,
39
- "items": [
40
- { "text": "Элемент списка 1", "title": "Элемент заголовка 1" },
41
- { "text": "Элемент списка 2", "title": "Элемент заголовка 2" },
42
- { "text": "Элемент списка 3", "title": "Элемент заголовка 3" }
43
- ]
44
- },
45
- {
46
- "image": {
47
- "format": "webp",
48
- "size": {
49
- "width": 140,
50
- "height": 140
51
- }
52
- },
53
- "title": "Заголовок 3",
54
- "description": "Описание 3",
55
- "href": "/credit-cards",
56
- "version": "primary",
57
- "isDotted": true,
58
- "items": [
59
- { "text": "Элемент списка 1", "title": "Элемент заголовка 1" },
60
- { "text": "Элемент списка 2", "title": "Элемент заголовка 2" },
61
- { "text": "Элемент списка 3", "title": "Элемент заголовка 3" }
62
- ]
63
- }
64
- ]
65
- }
66
- }
@@ -1,83 +0,0 @@
1
- import type { ListOrientation } from '../../model/ListOrientation';
2
- import type { Picture } from '../../model/Picture';
3
- import '../../setup-fixture';
4
- import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
5
- import { Gallery } from './Gallery';
6
- import type { GalleryCardProps } from './GalleryContent';
7
-
8
- const isDotted = true;
9
-
10
- const image: Picture = {
11
- src: 'money-1.png',
12
- format: 'webp',
13
- size: {
14
- width: 150,
15
- height: 150,
16
- },
17
- title: 'money',
18
- };
19
-
20
- const link: ButtonWithIconProps = {
21
- href: '/credit-cards',
22
- text: 'Подробнее',
23
- target: '_blank',
24
- version: 'link',
25
- };
26
-
27
- const defaultItems = [
28
- { title: 'До 1 млн ₽', text: 'Кредитный лимит' },
29
- { title: 'От 16,9%', text: 'Ставка по кредиту' },
30
- { title: 'До 15% ', text: 'Кэшбэк от покупок' },
31
- ];
32
-
33
- const cards: GalleryCardProps[] = [
34
- {
35
- icon: image,
36
- title: 'Вклады в любой валюте',
37
- description: 'О Вклады до 1,4 млн застрахованы в государственной системе страхования вкладов',
38
- button: link,
39
- },
40
- {
41
- icon: image,
42
- title: 'Вклады в любой валюте',
43
- description: 'О Вклады до 1,4 млн застрахованы в государственной системе страхования вкладов',
44
- version: 'secondary',
45
- },
46
- {
47
- icon: image,
48
- title: 'Вклады в любой валюте',
49
- isDotted,
50
- items: defaultItems,
51
- },
52
- {
53
- title: 'Вклады в любой валюте',
54
- description: 'О Вклады до 1,4 млн застрахованы в государственной системе страхования вкладов',
55
- },
56
- ];
57
-
58
- const defaultProps = {
59
- title: 'Вы можете оплатить бонусными баллами',
60
- description: 'Удобный каталог с большим ассортиментом товаров и сервисов',
61
- orientation: 'vertical' as ListOrientation,
62
- cards: cards,
63
- };
64
-
65
- const scrollProps = {
66
- title: 'Вы можете оплатить бонусными баллами',
67
- description: 'Удобный каталог с большим ассортиментом товаров и сервисов',
68
- orientation: 'horizontal' as ListOrientation,
69
- cards: cards,
70
- };
71
-
72
- export default {
73
- default: (
74
- <div className="container grid grid-cols-12">
75
- <Gallery className="col-span-12" {...defaultProps} />
76
- </div>
77
- ),
78
- scroll: (
79
- <div className="container grid grid-cols-12">
80
- <Gallery className="col-span-12" {...scrollProps} />
81
- </div>
82
- ),
83
- };