@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,2 +0,0 @@
1
- import type { GalleryProps } from './GalleryProps';
2
- export declare const Gallery: import("@redneckz/uni-jsx").UNIComponent<GalleryProps, any, any>;
@@ -1,35 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.Gallery = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
6
- const Button_1 = require("../../ui-kit/Button/Button");
7
- const Heading_1 = require("../../ui-kit/Heading/Heading");
8
- const Img_1 = require("../../ui-kit/Img/Img");
9
- const SwipeListControl_1 = require("../../ui-kit/SwipeListControl/SwipeListControl");
10
- exports.Gallery = (0, uni_jsx_1.JSX)(({ className = '', title, description, cards = [], orientation = 'horizontal', ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `relative px-4 py-6 overflow-hidden ${className}`, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center mb-5", children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: `text-center ${description ? 'mb-2' : 'mb-5'}`, title: title })) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: "text-m max-w-[600px] text-center mb-5", children: description })) : null] }), renderCardsLayout(orientation, cards)] })));
11
- function renderCardsLayout(orientation, cards) {
12
- return orientation === 'horizontal' ? ((0, jsx_runtime_1.jsx)(SwipeListControl_1.SwipeListControl, { children: cards?.map(renderCard) })) : ((0, jsx_runtime_1.jsx)("div", { className: "grid gap-3.5", children: cards?.map(renderCard) }));
13
- }
14
- function renderCard(card, key) {
15
- return ((0, jsx_runtime_1.jsxs)("div", { className: `w-full h-full flex flex-col justify-between shrink-0 box-border snap-start snap-always border-solid border rounded-md border-gray p-4
16
- ${BlockWrapper_1.blockStyles[card.version ?? 'primary']}`, children: [(0, jsx_runtime_1.jsxs)("div", { children: [renderImage(card.icon), card.title ? (0, jsx_runtime_1.jsx)("h3", { className: `text-m-title-xs font-medium m-0`, children: card.title }) : null, card.description ? renderDescription(card) : null, card.items?.length ? renderItems(card.items, card.isDotted, card.version) : null] }), card?.button?.text ? renderButton(card.button) : null] }, key));
17
- }
18
- const renderImage = (image) => image?.src || image?.icon ? ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-center", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-3.5", image: image }) })) : null;
19
- function renderButton(button) {
20
- return (0, jsx_runtime_1.jsx)(Button_1.Button, { className: "mt-3", ...button });
21
- }
22
- function renderDescription(card) {
23
- return ((0, jsx_runtime_1.jsx)("div", { className: `text-secondary-text mt-1 text-s ${card.version === 'secondary' ? 'text-white opacity-80' : ''}`, children: card.description }));
24
- }
25
- const LIST_DOT_STYLE_MAP = {
26
- primary: 'bg-primary-text',
27
- secondary: 'bg-white',
28
- gray: 'bg-primary-text',
29
- transparent: '',
30
- '': '',
31
- };
32
- function renderItems(items, isDotted, version = 'primary') {
33
- return ((0, jsx_runtime_1.jsx)("section", { className: "mt-3", children: items.map((item, i) => ((0, jsx_runtime_1.jsxs)("div", { children: [isDotted ? ((0, jsx_runtime_1.jsx)("div", { className: `rounded-full inline-block mr-3 mt-2 w-2 h-2 min-w-2 min-h-2 ${LIST_DOT_STYLE_MAP[version]}` })) : null, (0, jsx_runtime_1.jsx)("span", { className: "text-m font-medium", children: item.title }), (0, jsx_runtime_1.jsx)("span", { className: `text-s pl-2 ${version === 'primary' ? 'text-secondary-text' : ''}`, children: item.text })] }, String(i)))) }));
34
- }
35
- //# sourceMappingURL=Gallery.mobile.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Gallery.mobile.js","sourceRoot":"","sources":["../../../src/components/Gallery/Gallery.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,4DAAsE;AACtE,uDAAoD;AAEpD,0DAAuD;AACvD,8CAA2C;AAC3C,qFAAkF;AAIrE,QAAA,OAAO,GAAG,IAAA,aAAG,EACxB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,GAAG,EAAE,EAAE,WAAW,GAAG,YAAY,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAC3F,wBAAC,2BAAY,IAAC,SAAS,EAAE,sCAAsC,SAAS,EAAE,KAAM,IAAI,aAClF,iCAAK,SAAS,EAAC,iCAAiC,aAC7C,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IACN,WAAW,EAAC,IAAI,EAChB,SAAS,EAAE,eAAe,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EACzD,KAAK,EAAE,KAAK,GACZ,CACH,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,CACb,gCAAK,SAAS,EAAC,uCAAuC,YAAE,WAAW,GAAO,CAC3E,CAAC,CAAC,CAAC,IAAI,IACJ,EACL,iBAAiB,CAAC,WAAW,EAAE,KAAK,CAAC,IACzB,CAChB,CACF,CAAC;AAEF,SAAS,iBAAiB,CAAC,WAA4B,EAAE,KAAyB;IAChF,OAAO,WAAW,KAAK,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,CAAC,MAA4B;IAChD,OAAO,uBAAC,eAAM,IAAC,SAAS,EAAC,MAAM,KAAK,MAAM,GAAI,CAAC;AACjD,CAAC;AAED,SAAS,iBAAiB,CAAC,IAAsB;IAC/C,OAAO,CACL,gCACE,SAAS,EAAE,mCACT,IAAI,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,EAC3D,EAAE,YAED,IAAI,CAAC,WAAW,GACb,CACP,CAAC;AACJ,CAAC;AAED,MAAM,kBAAkB,GAAiC;IACvD,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,EAAE;IACf,EAAE,EAAE,EAAE;CACP,CAAC;AAEF,SAAS,WAAW,CAClB,KAAyB,EACzB,QAAkB,EAClB,UAAwB,SAAS;IAEjC,OAAO,CACL,oCAAS,SAAS,EAAC,MAAM,YACtB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,4CACG,QAAQ,CAAC,CAAC,CAAC,CACV,gCACE,SAAS,EAAE,+DAA+D,kBAAkB,CAAC,OAAO,CAAC,EAAE,GACvG,CACH,CAAC,CAAC,CAAC,IAAI,EACR,iCAAM,SAAS,EAAC,oBAAoB,YAAE,IAAI,CAAC,KAAK,GAAQ,EACxD,iCAAM,SAAS,EAAE,eAAe,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,EAAE,YACjF,IAAI,CAAC,IAAI,GACL,KATC,MAAM,CAAC,CAAC,CAAC,CAUb,CACP,CAAC,GACM,CACX,CAAC;AACJ,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { GalleryCardProps } from './GalleryContent';
2
- export declare const GalleryCardInner: import("@redneckz/uni-jsx").UNIComponent<GalleryCardProps, any, any>;
@@ -1,20 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.GalleryCardInner = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const AlignText_1 = require("../../model/AlignText");
6
- const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
7
- const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
8
- const Img_1 = require("../../ui-kit/Img/Img");
9
- const List_1 = require("../../ui-kit/List/List");
10
- const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
11
- const headlineVersionStyles_1 = require("../Headline/headlineVersionStyles");
12
- exports.GalleryCardInner = (0, uni_jsx_1.JSX)(({ title, headlineSmallVersion = 'H6', description, additionalDescription, icon, items, button, isFullWidth = true, isDotted = true, align = 'center', ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `h-full flex flex-col justify-between ${AlignText_1.AlignText[align]}`, tag: "div", ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col h-full", children: [renderImage(icon), renderCardTitle(headlineSmallVersion, title), renderDescription(description, title), items?.length ? renderItems(items, isDotted) : null, renderAdditionalDescription(additionalDescription)] }), (0, renderButtonsSection_1.renderButtonsSection)([button], {
13
- buttonClassName: `mt-6 ${isFullWidth ? 'w-full' : 'self-center'}`,
14
- })] })));
15
- const renderImage = (image) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-center", children: [image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-5", image: image }) : null, image?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: `w-8 h-8 min-w-8 mb-5 rounded-full`, image: (0, getIconWithVersion_1.getIconWithVersion)(image), asSVG: true })) : null] }));
16
- const renderCardTitle = (headlineSmallVersion, title) => title ? (0, jsx_runtime_1.jsx)("div", { className: headlineVersionStyles_1.HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
17
- const renderDescription = (description, title) => description ? (0, jsx_runtime_1.jsx)("div", { className: `text-l ${title ? 'mt-2' : ''}`, children: description }) : null;
18
- const renderAdditionalDescription = (additionalDescription) => additionalDescription ? ((0, jsx_runtime_1.jsx)("div", { className: `text-m-light mt-auto group-data-primary:text-secondary-text`, children: additionalDescription })) : null;
19
- const renderItems = (items, isDotted) => ((0, jsx_runtime_1.jsx)(List_1.List, { className: "max-w-[308px] mt-2 text-s group-data-primary:text-secondary-text", itemClassName: "text-left", items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted }));
20
- //# sourceMappingURL=GalleryCardInner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GalleryCardInner.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryCardInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qDAAkD;AAElD,4DAAyD;AACzD,mFAAgF;AAChF,8CAA2C;AAC3C,iDAA8C;AAC9C,uEAAoE;AACpE,6EAA2E;AAG9D,QAAA,gBAAgB,GAAG,IAAA,aAAG,EACjC,CAAC,EACC,KAAK,EACL,oBAAoB,GAAG,IAAI,EAC3B,WAAW,EACX,qBAAqB,EACrB,IAAI,EACJ,KAAK,EACL,MAAM,EACN,WAAW,GAAG,IAAI,EAClB,QAAQ,GAAG,IAAI,EACf,KAAK,GAAG,QAAQ,EAChB,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,wBAAC,2BAAY,IACX,SAAS,EAAE,wCAAwC,qBAAS,CAAC,KAAK,CAAC,EAAE,EACrE,GAAG,EAAC,KAAK,KACL,IAAI,aAER,iCAAK,SAAS,EAAC,sBAAsB,aAClC,WAAW,CAAC,IAAI,CAAC,EACjB,eAAe,CAAC,oBAAoB,EAAE,KAAK,CAAC,EAC5C,iBAAiB,CAAC,WAAW,EAAE,KAAK,CAAC,EACrC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,EACnD,2BAA2B,CAAC,qBAAqB,CA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yB,EAAE,QAAiB,EAAE,EAAE,CAAC,CACpE,uBAAC,WAAI,IACH,SAAS,EAAC,kEAAkE,EAC5E,aAAa,EAAC,WAAW,EACzB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAc,CAAC,EAC5E,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC"}
@@ -1,11 +0,0 @@
1
- import type { GalleryVersion } from '../../model/GalleryVersion';
2
- import type { GalleryCardProps } from './GalleryContent';
3
- import type { GalleryInnerProps } from './GalleryInner';
4
- export interface GalleryContainerProps extends GalleryInnerProps {
5
- activeIndex: number;
6
- }
7
- export interface GalleryCardData {
8
- card: GalleryCardProps;
9
- galleryVersion: GalleryVersion;
10
- }
11
- export declare const GalleryContainer: import("@redneckz/uni-jsx").UNIComponent<GalleryContainerProps, any, any>;
@@ -1,15 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.GalleryContainer = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
6
- const Headline_1 = require("../Headline/Headline");
7
- const constants_1 = require("./constants");
8
- const GalleryCardInner_1 = require("./GalleryCardInner");
9
- exports.GalleryContainer = (0, uni_jsx_1.JSX)(({ headlineVersion = 'M', cards = [], galleryVersion = 'normal', activeIndex, title, description, }) => ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { className: "!p-0", title: title, description: description, headlineVersion: headlineVersion }), (0, jsx_runtime_1.jsx)("div", { className: `flex mt-8 ${cards?.length <= constants_1.galleryLengthForScrollMap[galleryVersion] ? 'justify-center' : ''} duration-1000`, style: { transform: `translateX(-${activeIndex * constants_1.cardWidthMap[galleryVersion]}px)` }, role: "list", children: cards?.map((card, i) => renderCard({ card, galleryVersion }, i)) })] })));
10
- function renderCard({ card, galleryVersion }, i) {
11
- return ((0, jsx_runtime_1.jsx)("section", { className: `box-border border-solid border border-gray p-6 mx-2 flex flex-col justify-between
12
- items-stretch ${constants_1.cardStyleMap[galleryVersion]} ${BlockWrapper_1.blockStyles[card.version ?? 'primary'] // TODO Replace with direct BlockWrapper usage
13
- } w-full col-span-4`, role: "listitem", children: (0, jsx_runtime_1.jsx)(GalleryCardInner_1.GalleryCardInner, { ...card }) }, String(i)));
14
- }
15
- //# sourceMappingURL=GalleryContainer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GalleryContainer.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryContainer.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAwD;AACxD,mDAAgD;AAChD,2CAAoF;AACpF,yDAAsD;AAazC,QAAA,gBAAgB,GAAG,IAAA,aAAG,EACjC,CAAC,EACC,eAAe,GAAG,GAAG,EACrB,KAAK,GAAG,EAAE,EACV,cAAc,GAAG,QAAQ,EACzB,WAAW,EACX,KAAK,EACL,WAAW,GACZ,EAAE,EAAE,CAAC,CACJ,4CACE,uBAAC,mBAAQ,IACP,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,GAChC,EACF,gCACE,SAAS,EAAE,aACT,KAAK,EAAE,MAAM,IAAI,qCAAyB,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAClF,gBAAgB,EAChB,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,WAAW,GAAG,wBAAY,CAAC,cAAc,CAAC,KAAK,EAAE,EACpF,IAAI,EAAC,MAAM,YAEV,KAAK,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,CAAC,CAAC,CAAC,GAC7D,IACF,CACP,CACF,CAAC;AAEF,SAAS,UAAU,CAAC,EAAE,IAAI,EAAE,cAAc,EAAmB,EAAE,CAAS;IACtE,OAAO,CACL,oCACE,SAAS,EAAE;wBACO,wBAAY,CAAC,cAAc,CAAC,IAC5C,0BAAW,CAAC,IAAI,CAAC,OAAO,IAAI,SAAS,CAAC,CAAC,8CAA8C;QACvF,oBAAoB,EAEpB,IAAI,EAAC,UAAU,YAEf,uBAAC,mCAAgB,OAAK,IAAI,GAAI,IAHzB,MAAM,CAAC,CAAC,CAAC,CAIN,CACX,CAAC;AACJ,CAAC"}
@@ -1,71 +0,0 @@
1
- import type { AlignType } from '../../model/AlignType';
2
- import type { BlockVersion } from '../../model/BlockVersion';
3
- import type { HeadlineProps, HeadlineSmallProps } from '../../model/HeadlineType';
4
- import type { ListOrientation } from '../../model/ListOrientation';
5
- import type { Picture } from '../../model/Picture';
6
- import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
7
- /**
8
- * @title Элемент списка
9
- */
10
- export interface GalleryItemProps {
11
- /** @title Заголовок (моб.) */
12
- title?: string;
13
- /** @title Текст */
14
- text?: string;
15
- }
16
- /**
17
- * @title Карточка
18
- * @default {"headlineSmallVersion": "XL_L"}
19
- */
20
- export declare type GalleryCardProps = HeadlineSmallProps & {
21
- /** @title Дополнительное описание */
22
- additionalDescription?: string;
23
- /**
24
- * @default {
25
- * "format": "webp",
26
- * "size": {
27
- * "width": 140
28
- * },
29
- * "sources": [{
30
- * "media": 1279,
31
- * "width": 84,
32
- * "format": "webp",
33
- * "alignment": "center"
34
- * }]
35
- * }
36
- */
37
- icon?: Picture;
38
- /** @title Кнопка */
39
- button?: ButtonWithIconProps;
40
- /**
41
- * @title Буллиты
42
- * @default true
43
- */
44
- isDotted?: boolean;
45
- /** @title Список */
46
- items?: GalleryItemProps[];
47
- version?: BlockVersion;
48
- /**
49
- * @title Выравнивание
50
- * @default center
51
- */
52
- align?: AlignType;
53
- /**
54
- * @title Кнопка по всей ширине
55
- * @default true
56
- */
57
- isFullWidth?: boolean;
58
- };
59
- /**
60
- * @title Галерея
61
- */
62
- export declare type GalleryContent = HeadlineProps & {
63
- /**
64
- * @title Карточки
65
- * @minItems 3
66
- */
67
- cards?: GalleryCardProps[];
68
- /** @title Отображать элементы в моб. версии (прокрутка shift+mouseScroll) */
69
- orientation?: ListOrientation;
70
- button?: ButtonWithIconProps;
71
- };
@@ -1,2 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- //# sourceMappingURL=GalleryContent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GalleryContent.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryContent.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- import type { GalleryVersion } from '../../model/GalleryVersion';
2
- import type { UniBlockProps } from '../../model/JSXBlock';
3
- import type { GalleryContent } from './GalleryContent';
4
- export interface GalleryInnerProps extends GalleryContent, UniBlockProps {
5
- galleryVersion?: GalleryVersion;
6
- }
7
- export declare const GalleryInner: import("@redneckz/uni-jsx").UNIComponent<GalleryInnerProps, any, any>;
@@ -1,23 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.GalleryInner = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const useCarouselControls_1 = require("../../hooks/useCarouselControls");
6
- const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
7
- const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
8
- const renderArrows_1 = require("../../ui-kit/Button/renderArrows");
9
- const constants_1 = require("./constants");
10
- const GalleryContainer_1 = require("./GalleryContainer");
11
- exports.GalleryInner = (0, uni_jsx_1.JSX)(({ cards = [], className = '', galleryVersion = 'normal', button, ...rest }) => {
12
- const [activeIndex, controls] = (0, useCarouselControls_1.useCarouselControls)({
13
- itemCount: cards?.length,
14
- visibleItemCount: constants_1.galleryLengthForScrollMap[galleryVersion],
15
- });
16
- const { isScrollAvailable } = controls;
17
- return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `relative p-[42px] overflow-hidden flex flex-col ${className}`, ...rest, children: [(0, jsx_runtime_1.jsx)(GalleryContainer_1.GalleryContainer, { cards: cards, galleryVersion: galleryVersion, activeIndex: activeIndex, ...rest }), (0, renderArrows_1.renderArrows)({
18
- ...controls,
19
- btnClass: ['left-8', 'right-8'],
20
- className: 'top-1/2',
21
- }), isScrollAvailable ? ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: "absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white" }), (0, jsx_runtime_1.jsx)("div", { className: "absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white" })] })) : null, (0, renderButtonsSection_1.renderButtonsSection)([button], { className: 'mt-8 mx-auto' })] }));
22
- });
23
- //# sourceMappingURL=GalleryInner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GalleryInner.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yEAAsE;AAGtE,4DAAyD;AACzD,mFAAgF;AAChF,mEAAgE;AAChE,2CAAwD;AACxD,yDAAsD;AAOzC,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,GAAG,EAAE,EAAE,cAAc,GAAG,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC7E,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,GAAG,IAAA,yCAAmB,EAAC;QAClD,SAAS,EAAE,KAAK,EAAE,MAAM;QACxB,gBAAgB,EAAE,qCAAyB,CAAC,cAAc,CAAC;KAC5D,CAAC,CAAC;IACH,MAAM,EAAE,iBAAiB,EAAE,GAAG,QAAQ,CAAC;IAEvC,OAAO,CACL,wBAAC,2BAAY,IACX,SAAS,EAAE,mDAAmD,SAAS,EAAE,KACrE,IAAI,aAER,uBAAC,mCAAgB,IACf,KAAK,EAAE,KAAK,EACZ,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,WAAW,KACpB,IAAI,GACR,EACD,IAAA,2BAAY,EAAC;gBACZ,GAAG,QAAQ;gBACX,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;gBAC/B,SAAS,EAAE,SAAS;aACrB,CAAC,EACD,iBAAiB,CAAC,CAAC,CAAC,CACnB,4CACE,gCAAK,SAAS,EAAC,+DAA+D,GAAG,EACjF,gCAAK,SAAS,EAAC,8DAA8D,GAAG,IAC5E,CACP,CAAC,CAAC,CAAC,IAAI,EACP,IAAA,2CAAoB,EAAC,CAAC,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC,IACjD,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { UniBlockProps } from '../../model/JSXBlock';
2
- import type { GalleryContent } from './GalleryContent';
3
- export interface GalleryProps extends GalleryContent, UniBlockProps {
4
- }
@@ -1,2 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- //# sourceMappingURL=GalleryProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GalleryProps.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryProps.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import type { GalleryVersion } from '../../model/GalleryVersion';
2
- export declare const galleryLengthForScrollMap: Record<GalleryVersion, number>;
3
- export declare const cardStyleMap: Record<GalleryVersion, string>;
4
- export declare const cardWidthMap: Record<GalleryVersion, number>;
@@ -1,15 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.cardWidthMap = exports.cardStyleMap = exports.galleryLengthForScrollMap = void 0;
3
- exports.galleryLengthForScrollMap = {
4
- normal: 3,
5
- mini: 4,
6
- };
7
- exports.cardStyleMap = {
8
- normal: 'min-w-[364px] w-[364px]',
9
- mini: 'min-w-[260px] w-[260px]',
10
- };
11
- exports.cardWidthMap = {
12
- normal: 380,
13
- mini: 276,
14
- };
15
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/Gallery/constants.ts"],"names":[],"mappings":";;AAEa,QAAA,yBAAyB,GAAmC;IACvE,MAAM,EAAE,CAAC;IACT,IAAI,EAAE,CAAC;CACR,CAAC;AAEW,QAAA,YAAY,GAAmC;IAC1D,MAAM,EAAE,yBAAyB;IACjC,IAAI,EAAE,yBAAyB;CAChC,CAAC;AAEW,QAAA,YAAY,GAAmC;IAC1D,MAAM,EAAE,GAAG;IACX,IAAI,EAAE,GAAG;CACV,CAAC"}
@@ -1,5 +0,0 @@
1
- import type { UniBlockProps } from '../../model/JSXBlock';
2
- import type { MiniGalleryContent } from './MiniGalleryContent';
3
- export interface MiniGalleryProps extends MiniGalleryContent, UniBlockProps {
4
- }
5
- export declare const MiniGallery: import("@redneckz/uni-jsx").UNIComponent<MiniGalleryProps, any, any>;
@@ -1,7 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.MiniGallery = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const GalleryInner_1 = require("../Gallery/GalleryInner");
6
- exports.MiniGallery = (0, uni_jsx_1.JSX)((props) => ((0, jsx_runtime_1.jsx)(GalleryInner_1.GalleryInner, { ...props, galleryVersion: "mini" })));
7
- //# sourceMappingURL=MiniGallery.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MiniGallery.js","sourceRoot":"","sources":["../../../src/components/MiniGallery/MiniGallery.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AAK1C,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,KAAK,EAAE,EAAE,CAAC,CAC1D,uBAAC,2BAAY,OAAK,KAAK,EAAE,cAAc,EAAC,MAAM,GAAG,CAClD,CAAC,CAAC"}
@@ -1,12 +0,0 @@
1
- import type { GalleryCardProps, GalleryContent } from '../Gallery/GalleryContent';
2
- /**
3
- * @title Мини-галерея
4
- * @default {"headlineVersion": "L"}
5
- */
6
- export interface MiniGalleryContent extends GalleryContent {
7
- /**
8
- * @title Карточки
9
- * @minItems 4
10
- */
11
- cards?: GalleryCardProps[];
12
- }
@@ -1,2 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- //# sourceMappingURL=MiniGalleryContent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MiniGalleryContent.js","sourceRoot":"","sources":["../../../src/components/MiniGallery/MiniGalleryContent.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export declare type GalleryVersion = 'normal' | 'mini';
@@ -1,2 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- //# sourceMappingURL=GalleryVersion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GalleryVersion.js","sourceRoot":"","sources":["../../src/model/GalleryVersion.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import type { UniBlockProps } from '../../model/JSXBlock';
2
- import type { CatalogContent } from './CatalogContent';
3
- export interface CatalogProps extends CatalogContent, UniBlockProps {
4
- }
5
- export declare const Catalog: import("@redneckz/uni-jsx").UNIComponent<CatalogProps, any, any>;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import '../../setup-fixture';
3
- import { CatalogProps } from './Catalog';
4
- export declare const defaultProps: CatalogProps;
5
- declare const _default: {
6
- default: JSX.Element;
7
- };
8
- export default _default;
@@ -1,22 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- import { useCarouselControls } from '../../hooks/useCarouselControls.js';
4
- import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
5
- import { renderArrows } from '../../ui-kit/Button/renderArrows.js';
6
- import { Headline } from '../Headline/Headline.js';
7
- import { CatalogCard } from './CatalogCard.js';
8
- const BLUR_BLOCK_CLASSES = 'absolute top-0 bottom-0 w-[84px]';
9
- const CARD_VIEW_COUNT = 3;
10
- const CARD_SHIFT = 430;
11
- export const Catalog = JSX(({ cards = [], className = '', title, description, ...rest }) => {
12
- const [activeIndex, controls] = useCarouselControls({
13
- itemCount: cards?.length,
14
- visibleItemCount: CARD_VIEW_COUNT,
15
- });
16
- return (_jsxs(BlockWrapper, { className: `p-12 overflow-hidden text-center ${className}`, ...rest, children: [_jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M", ...rest }), _jsx("div", { className: "flex duration-1000 gap-3.5 mt-8", style: { transform: `translateX(-${activeIndex * CARD_SHIFT}px)` }, role: "list", children: cards?.length ? cards.map((card, i) => _jsx(CatalogCard, { ...card }, String(i))) : null }), renderArrows({
17
- ...controls,
18
- btnClass: ['left-8', 'right-8'],
19
- className: 'top-1/2 z-10 mt-6',
20
- }), _jsx("div", { className: `${BLUR_BLOCK_CLASSES} left-0 bg-opacity-from-white` }), _jsx("div", { className: `${BLUR_BLOCK_CLASSES} right-0 bg-opacity-to-white` })] }));
21
- });
22
- //# sourceMappingURL=Catalog.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Catalog.js","sourceRoot":"","sources":["../../../src/components/Catalog/Catalog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE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AI,IAC1D,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,7 +0,0 @@
1
- import type { BlockVersion } from '../../model/BlockVersion';
2
- import type { CatalogCardType } from './CatalogContent';
3
- export interface CatalogCardProps extends CatalogCardType {
4
- className?: string;
5
- version?: BlockVersion;
6
- }
7
- export declare const CatalogCard: import("@redneckz/uni-jsx").UNIComponent<CatalogCardProps, any, any>;
@@ -1,12 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection.js';
4
- import { Heading } from '../../ui-kit/Heading/Heading.js';
5
- import { Img } from '../../ui-kit/Img/Img.js';
6
- const cardStyleMap = {
7
- black: 'bg-black',
8
- white: 'bg-white',
9
- };
10
- export const CatalogCard = JSX(({ className = '', title, description, image, price, button, colors }) => (_jsxs("section", { className: `border border-solid box-border border-gray p-[30px] min-w-[402px] flex flex-col justify-left ${className}`, role: "listitem", children: [image?.src ? _jsx(Img, { className: "mb-5 flex justify-center", image: image }) : null, title ? (_jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-1.5", title: title })) : null, description ? _jsx("div", { className: "text-m-light text-left mb-4", children: description }) : null, colors?.length ? (_jsxs("div", { className: "flex mb-4 text-s-light text-secondary-text", children: [_jsx("div", { className: "mr-1.5", children: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430: " }), colors.map(renderColorOption)] })) : null, price ? _jsxs("div", { className: "text-h3 text-left", children: [price, "\u00A0\u20BD"] }) : null, renderButtonsSection([button], { buttonClassName: 'mt-5 w-full' })] })));
11
- const renderColorOption = (color, i) => (_jsx("span", { className: `w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
12
- //# sourceMappingURL=CatalogCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"C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,CAAC,CAAC,eAAK,SAAS,EAAC,mBAAmB,aAAE,KAAK,oBAAc,CAAC,CAAC,CAAC,IAAI,EACtE,oBAAoB,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,eAAe,EAAE,aAAa,EAAE,CAAC,IAC3D,CACX,CACF,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,KAA0B,EAAE,CAAS,EAAE,EAAE,CAAC,CACnE,eAEE,SAAS,EAAE,qEAAqE,YAAY,CAAC,KAAK,CAAC,EAAE,IADhG,MAAM,CAAC,CAAC,CAAC,CAEd,CACH,CAAC"}
@@ -1,27 +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
- export interface CatalogCardType extends HeadlineCommonProps, ImageContent {
7
- /** @title Цена в рублях */
8
- price?: number;
9
- /** @title Доступные цвета */
10
- colors?: ProductColorVersion[];
11
- /**
12
- * @title Кнопка
13
- * @default {
14
- * "icon": { "format": "webp", "size": { "width": 24, "height": 24 } },
15
- * "iconRight" : { "format": "webp", "size": { "width": 24, "height": 24 } }
16
- * }
17
- */
18
- button?: ButtonWithIconProps;
19
- }
20
- /**
21
- * @title Каталог
22
- */
23
- export declare type CatalogContent = HeadlineCommonProps & {
24
- /** @title Список карточек */
25
- cards?: CatalogCardType[];
26
- version?: BlockVersion;
27
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=CatalogContent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CatalogContent.js","sourceRoot":"","sources":["../../../src/components/Catalog/CatalogContent.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import type { GalleryProps } from './GalleryProps';
2
- export declare const Gallery: import("@redneckz/uni-jsx").UNIComponent<GalleryProps, any, any>;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import '../../setup-fixture';
3
- import type { GalleryProps } from './GalleryProps';
4
- export declare const defaultProps: GalleryProps;
5
- declare const _default: {
6
- default: JSX.Element;
7
- 'text and button': JSX.Element;
8
- 'list and button': JSX.Element;
9
- 'text and no button': JSX.Element;
10
- 'only title': JSX.Element;
11
- };
12
- export default _default;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import '../../setup-fixture';
3
- declare const _default: {
4
- default: JSX.Element;
5
- scroll: JSX.Element;
6
- };
7
- export default _default;
@@ -1,5 +0,0 @@
1
- import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- import { GalleryInner } from './GalleryInner.js';
4
- export const Gallery = JSX((props) => (_jsx(GalleryInner, { ...props, galleryVersion: "normal" })));
5
- //# sourceMappingURL=Gallery.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Gallery.js","sourceRoot":"","sources":["../../../src/components/Gallery/Gallery.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAe,CAAC,KAAK,EAAE,EAAE,CAAC,CAClD,KAAC,YAAY,OAAK,KAAK,EAAE,cAAc,EAAC,QAAQ,GAAG,CACpD,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { GalleryProps } from './GalleryProps';
2
- export declare const Gallery: import("@redneckz/uni-jsx").UNIComponent<GalleryProps, any, any>;
@@ -1,33 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- import { blockStyles, BlockWrapper } from '../../ui-kit/BlockWrapper.js';
4
- import { Button } from '../../ui-kit/Button/Button.js';
5
- import { Heading } from '../../ui-kit/Heading/Heading.js';
6
- import { Img } from '../../ui-kit/Img/Img.js';
7
- import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl.js';
8
- export const Gallery = JSX(({ className = '', title, description, cards = [], orientation = 'horizontal', ...rest }) => (_jsxs(BlockWrapper, { className: `relative px-4 py-6 overflow-hidden ${className}`, ...rest, children: [_jsxs("div", { className: "flex flex-col items-center mb-5", children: [title ? (_jsx(Heading, { headingType: "h3", className: `text-center ${description ? 'mb-2' : 'mb-5'}`, title: title })) : null, description ? (_jsx("div", { className: "text-m max-w-[600px] text-center mb-5", children: description })) : null] }), renderCardsLayout(orientation, cards)] })));
9
- function renderCardsLayout(orientation, cards) {
10
- return orientation === 'horizontal' ? (_jsx(SwipeListControl, { children: cards?.map(renderCard) })) : (_jsx("div", { className: "grid gap-3.5", children: cards?.map(renderCard) }));
11
- }
12
- function renderCard(card, key) {
13
- return (_jsxs("div", { className: `w-full h-full flex flex-col justify-between shrink-0 box-border snap-start snap-always border-solid border rounded-md border-gray p-4
14
- ${blockStyles[card.version ?? 'primary']}`, children: [_jsxs("div", { children: [renderImage(card.icon), card.title ? _jsx("h3", { className: `text-m-title-xs font-medium m-0`, children: card.title }) : null, card.description ? renderDescription(card) : null, card.items?.length ? renderItems(card.items, card.isDotted, card.version) : null] }), card?.button?.text ? renderButton(card.button) : null] }, key));
15
- }
16
- const renderImage = (image) => image?.src || image?.icon ? (_jsx("div", { className: "flex justify-center", children: _jsx(Img, { className: "mb-3.5", image: image }) })) : null;
17
- function renderButton(button) {
18
- return _jsx(Button, { className: "mt-3", ...button });
19
- }
20
- function renderDescription(card) {
21
- return (_jsx("div", { className: `text-secondary-text mt-1 text-s ${card.version === 'secondary' ? 'text-white opacity-80' : ''}`, children: card.description }));
22
- }
23
- const LIST_DOT_STYLE_MAP = {
24
- primary: 'bg-primary-text',
25
- secondary: 'bg-white',
26
- gray: 'bg-primary-text',
27
- transparent: '',
28
- '': '',
29
- };
30
- function renderItems(items, isDotted, version = 'primary') {
31
- return (_jsx("section", { className: "mt-3", children: items.map((item, i) => (_jsxs("div", { children: [isDotted ? (_jsx("div", { className: `rounded-full inline-block mr-3 mt-2 w-2 h-2 min-w-2 min-h-2 ${LIST_DOT_STYLE_MAP[version]}` })) : null, _jsx("span", { className: "text-m font-medium", children: item.title }), _jsx("span", { className: `text-s pl-2 ${version === 'primary' ? 'text-secondary-text' : ''}`, children: item.text })] }, String(i)))) }));
32
- }
33
- //# sourceMappingURL=Gallery.mobile.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Gallery.mobile.js","sourceRoot":"","sources":["../../../src/components/Gallery/Gallery.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAIxC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEpD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAIlF,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CACxB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,GAAG,EAAE,EAAE,WAAW,GAAG,YAAY,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAC3F,MAAC,YAAY,IAAC,SAAS,EAAE,sCAAsC,SAAS,EAAE,KAAM,IAAI,aAClF,eAAK,SAAS,EAAC,iCAAiC,aAC7C,KAAK,CAAC,CAAC,CAAC,CACP,KAAC,OAAO,IACN,WAAW,EAAC,IAAI,EAChB,SAAS,EAAE,eAAe,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EACzD,KAAK,EAAE,KAAK,GACZ,CACH,CAAC,C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,IAAI,GACL,KATC,MAAM,CAAC,CAAC,CAAC,CAUb,CACP,CAAC,GACM,CACX,CAAC;AACJ,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { GalleryCardProps } from './GalleryContent';
2
- export declare const GalleryCardInner: import("@redneckz/uni-jsx").UNIComponent<GalleryCardProps, any, any>;
@@ -1,18 +0,0 @@
1
- import { jsxs as _jsxs, jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- import { AlignText } from '../../model/AlignText.js';
4
- import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
5
- import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection.js';
6
- import { Img } from '../../ui-kit/Img/Img.js';
7
- import { List } from '../../ui-kit/List/List.js';
8
- import { getIconWithVersion } from '../../utils/getIconWithVersion.js';
9
- import { HEADLINE_SMALL_VERSION } from '../Headline/headlineVersionStyles.js';
10
- export const GalleryCardInner = JSX(({ title, headlineSmallVersion = 'H6', description, additionalDescription, icon, items, button, isFullWidth = true, isDotted = true, align = 'center', ...rest }) => (_jsxs(BlockWrapper, { className: `h-full flex flex-col justify-between ${AlignText[align]}`, tag: "div", ...rest, children: [_jsxs("div", { className: "flex flex-col h-full", children: [renderImage(icon), renderCardTitle(headlineSmallVersion, title), renderDescription(description, title), items?.length ? renderItems(items, isDotted) : null, renderAdditionalDescription(additionalDescription)] }), renderButtonsSection([button], {
11
- buttonClassName: `mt-6 ${isFullWidth ? 'w-full' : 'self-center'}`,
12
- })] })));
13
- const renderImage = (image) => (_jsxs("div", { className: "flex justify-center", children: [image?.src ? _jsx(Img, { className: "mb-5", image: image }) : null, image?.icon ? (_jsx(Img, { className: `w-8 h-8 min-w-8 mb-5 rounded-full`, image: getIconWithVersion(image), asSVG: true })) : null] }));
14
- const renderCardTitle = (headlineSmallVersion, title) => title ? _jsx("div", { className: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
15
- const renderDescription = (description, title) => description ? _jsx("div", { className: `text-l ${title ? 'mt-2' : ''}`, children: description }) : null;
16
- const renderAdditionalDescription = (additionalDescription) => additionalDescription ? (_jsx("div", { className: `text-m-light mt-auto group-data-primary:text-secondary-text`, children: additionalDescription })) : null;
17
- const renderItems = (items, isDotted) => (_jsx(List, { className: "max-w-[308px] mt-2 text-s group-data-primary:text-secondary-text", itemClassName: "text-left", items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted }));
18
- //# sourceMappingURL=GalleryCardInner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GalleryCardInner.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryCardInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAG3E,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CACjC,CAAC,EACC,KAAK,EACL,oBAAoB,GAAG,IAAI,EAC3B,WAAW,EACX,qBAAqB,EACrB,IAAI,EACJ,KAAK,EACL,MAAM,EACN,WAAW,GAAG,IAAI,EAClB,QAAQ,GAAG,IAAI,EACf,KAAK,GAAG,QAAQ,EAChB,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,MAAC,YAAY,IACX,SAAS,EAAE,wCAAwC,SAAS,CAAC,KAAK,CAAC,EAAE,EACrE,GAAG,EAAC,KAAK,KACL,IAAI,aAER,eAAK,SAAS,EAAC,s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AO,CAAC,CAAC,CAAC,IAAI,CAAC;AAE5F,MAAM,2BAA2B,GAAG,CAAC,qBAA8B,EAAE,EAAE,CACrE,qBAAqB,CAAC,CAAC,CAAC,CACtB,cAAK,SAAS,EAAE,6DAA6D,YAC1E,qBAAqB,GAClB,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAEX,MAAM,WAAW,GAAG,CAAC,KAAyB,EAAE,QAAiB,EAAE,EAAE,CAAC,CACpE,KAAC,IAAI,IACH,SAAS,EAAC,kEAAkE,EAC5E,aAAa,EAAC,WAAW,EACzB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAc,CAAC,EAC5E,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC"}
@@ -1,11 +0,0 @@
1
- import type { GalleryVersion } from '../../model/GalleryVersion';
2
- import type { GalleryCardProps } from './GalleryContent';
3
- import type { GalleryInnerProps } from './GalleryInner';
4
- export interface GalleryContainerProps extends GalleryInnerProps {
5
- activeIndex: number;
6
- }
7
- export interface GalleryCardData {
8
- card: GalleryCardProps;
9
- galleryVersion: GalleryVersion;
10
- }
11
- export declare const GalleryContainer: import("@redneckz/uni-jsx").UNIComponent<GalleryContainerProps, any, any>;
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- import { blockStyles } from '../../ui-kit/BlockWrapper.js';
4
- import { Headline } from '../Headline/Headline.js';
5
- import { cardStyleMap, cardWidthMap, galleryLengthForScrollMap } from './constants.js';
6
- import { GalleryCardInner } from './GalleryCardInner.js';
7
- export const GalleryContainer = JSX(({ headlineVersion = 'M', cards = [], galleryVersion = 'normal', activeIndex, title, description, }) => (_jsxs("div", { children: [_jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: headlineVersion }), _jsx("div", { className: `flex mt-8 ${cards?.length <= galleryLengthForScrollMap[galleryVersion] ? 'justify-center' : ''} duration-1000`, style: { transform: `translateX(-${activeIndex * cardWidthMap[galleryVersion]}px)` }, role: "list", children: cards?.map((card, i) => renderCard({ card, galleryVersion }, i)) })] })));
8
- function renderCard({ card, galleryVersion }, i) {
9
- return (_jsx("section", { className: `box-border border-solid border border-gray p-6 mx-2 flex flex-col justify-between
10
- items-stretch ${cardStyleMap[galleryVersion]} ${blockStyles[card.version ?? 'primary'] // TODO Replace with direct BlockWrapper usage
11
- } w-full col-span-4`, role: "listitem", children: _jsx(GalleryCardInner, { ...card }) }, String(i)));
12
- }
13
- //# sourceMappingURL=GalleryContainer.js.map