@redneckz/wildless-cms-uni-blocks 0.2.70 → 0.2.73

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 (419) hide show
  1. package/bundle/blocks.schema.json +933 -0
  2. package/bundle/bundle.umd.js +880 -862
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/BaseTile.d.ts +2 -12
  5. package/dist/BaseTile.js.map +1 -1
  6. package/dist/BaseTileContent.d.ts +13 -0
  7. package/dist/BaseTileContent.js +2 -0
  8. package/dist/BaseTileContent.js.map +1 -0
  9. package/dist/BenefitsBlock.d.ts +1 -10
  10. package/dist/BenefitsBlock.js.map +1 -1
  11. package/dist/BenefitsBlockContent.d.ts +10 -0
  12. package/dist/BenefitsBlockContent.js +2 -0
  13. package/dist/BenefitsBlockContent.js.map +1 -0
  14. package/dist/BlockContent.d.ts +15 -0
  15. package/dist/BlockContent.js +2 -0
  16. package/dist/BlockContent.js.map +1 -0
  17. package/dist/Blocks.d.ts +1 -15
  18. package/dist/Blocks.js +9 -7
  19. package/dist/Blocks.js.map +1 -1
  20. package/dist/ContentPage.d.ts +1 -1
  21. package/dist/ExchangeRateTile.d.ts +1 -3
  22. package/dist/ExchangeRateTile.js.map +1 -1
  23. package/dist/ExchangeRateTileContent.d.ts +3 -0
  24. package/dist/ExchangeRateTileContent.js +2 -0
  25. package/dist/ExchangeRateTileContent.js.map +1 -0
  26. package/dist/Footer/Contacts.d.ts +2 -1
  27. package/dist/Footer/Contacts.js.map +1 -1
  28. package/dist/Footer/Footer.d.ts +2 -8
  29. package/dist/Footer/Footer.js +1 -1
  30. package/dist/Footer/Footer.js.map +1 -1
  31. package/dist/Footer/Footer.mobile.d.ts +1 -1
  32. package/dist/Footer/FooterContent.d.ts +13 -0
  33. package/dist/Footer/FooterContent.js +2 -0
  34. package/dist/Footer/FooterContent.js.map +1 -0
  35. package/dist/Footer/FooterLink.d.ts +1 -1
  36. package/dist/Footer/Sitemap.d.ts +2 -1
  37. package/dist/Footer/Sitemap.js.map +1 -1
  38. package/dist/Footer/SocialMedia.d.ts +2 -1
  39. package/dist/Footer/SocialMedia.js.map +1 -1
  40. package/dist/Gallery.d.ts +2 -13
  41. package/dist/Gallery.js +2 -32
  42. package/dist/Gallery.js.map +1 -1
  43. package/dist/Gallery.mobile.d.ts +1 -1
  44. package/dist/Gallery.mobile.js.map +1 -1
  45. package/dist/GalleryContent.d.ts +13 -0
  46. package/dist/GalleryContent.js +2 -0
  47. package/dist/GalleryContent.js.map +1 -0
  48. package/dist/GalleryInner.d.ts +7 -0
  49. package/dist/GalleryInner.js +48 -0
  50. package/dist/GalleryInner.js.map +1 -0
  51. package/dist/Header/HeaderContent.d.ts +2 -3
  52. package/dist/Header/isSubItemActive.d.ts +1 -1
  53. package/dist/Header/isTopItemActive.d.ts +1 -1
  54. package/dist/Img.d.ts +1 -1
  55. package/dist/MiniGallery.d.ts +5 -0
  56. package/dist/MiniGallery.js +7 -0
  57. package/dist/MiniGallery.js.map +1 -0
  58. package/dist/MobileAppTile.d.ts +1 -9
  59. package/dist/MobileAppTile.js.map +1 -1
  60. package/dist/MobileAppTileContent.d.ts +9 -0
  61. package/dist/MobileAppTileContent.js +2 -0
  62. package/dist/MobileAppTileContent.js.map +1 -0
  63. package/dist/MobileBlocks.js +2 -2
  64. package/dist/MobileBlocks.js.map +1 -1
  65. package/dist/Placeholder.d.ts +1 -3
  66. package/dist/Placeholder.js.map +1 -1
  67. package/dist/PlaceholderContent.d.ts +3 -0
  68. package/dist/PlaceholderContent.js +2 -0
  69. package/dist/PlaceholderContent.js.map +1 -0
  70. package/dist/ProductBlock.d.ts +2 -4
  71. package/dist/ProductBlock.js.map +1 -1
  72. package/dist/ProductBlock.mobile.d.ts +1 -1
  73. package/dist/ProductBlock.mobile.js.map +1 -1
  74. package/dist/ProductBlockContent.d.ts +5 -0
  75. package/dist/ProductBlockContent.js +2 -0
  76. package/dist/ProductBlockContent.js.map +1 -0
  77. package/dist/ProductBlockInner.d.ts +1 -5
  78. package/dist/ProductBlockInner.js.map +1 -1
  79. package/dist/ProductBlockInnerContent.d.ts +5 -0
  80. package/dist/ProductBlockInnerContent.js +2 -0
  81. package/dist/ProductBlockInnerContent.js.map +1 -0
  82. package/dist/ProductGallery.d.ts +1 -14
  83. package/dist/ProductGallery.js.map +1 -1
  84. package/dist/ProductGalleryContent.d.ts +14 -0
  85. package/dist/ProductGalleryContent.js +2 -0
  86. package/dist/ProductGalleryContent.js.map +1 -0
  87. package/dist/ProductTile.d.ts +1 -5
  88. package/dist/ProductTile.js.map +1 -1
  89. package/dist/ProductTileContent.d.ts +5 -0
  90. package/dist/ProductTileContent.js +2 -0
  91. package/dist/ProductTileContent.js.map +1 -0
  92. package/dist/PromoTile.d.ts +1 -4
  93. package/dist/PromoTile.js.map +1 -1
  94. package/dist/PromoTileContent.d.ts +4 -0
  95. package/dist/PromoTileContent.js +2 -0
  96. package/dist/PromoTileContent.js.map +1 -0
  97. package/dist/StepsBlock.d.ts +1 -10
  98. package/dist/StepsBlock.js.map +1 -1
  99. package/dist/StepsBlockContent.d.ts +10 -0
  100. package/dist/StepsBlockContent.js +2 -0
  101. package/dist/StepsBlockContent.js.map +1 -0
  102. package/dist/TextBlock.d.ts +2 -11
  103. package/dist/TextBlock.js.map +1 -1
  104. package/dist/TextBlockContent.d.ts +10 -0
  105. package/dist/TextBlockContent.js +2 -0
  106. package/dist/TextBlockContent.js.map +1 -0
  107. package/dist/Tile.d.ts +2 -2
  108. package/dist/Tile.js.map +1 -1
  109. package/dist/TileContent.d.ts +2 -0
  110. package/dist/TileContent.js +2 -0
  111. package/dist/TileContent.js.map +1 -0
  112. package/dist/content-page-repository/transformContentPage.js.map +1 -1
  113. package/dist/content-page-repository/transformPicture.d.ts +1 -1
  114. package/dist/index.d.ts +5 -3
  115. package/dist/index.js +3 -1
  116. package/dist/index.js.map +1 -1
  117. package/dist/mergeTopItems.d.ts +2 -2
  118. package/dist/mergeTopItems.js.map +1 -1
  119. package/dist/model/BlockVersion.d.ts +1 -0
  120. package/dist/model/BlockVersion.js +2 -0
  121. package/dist/model/BlockVersion.js.map +1 -0
  122. package/dist/model/ButtonVersion.d.ts +1 -0
  123. package/dist/model/ButtonVersion.js +2 -0
  124. package/dist/model/ButtonVersion.js.map +1 -0
  125. package/dist/model/GalleryVersion.d.ts +1 -0
  126. package/dist/model/GalleryVersion.js +2 -0
  127. package/dist/model/GalleryVersion.js.map +1 -0
  128. package/dist/model/LinkContent.d.ts +5 -0
  129. package/dist/model/LinkContent.js +2 -0
  130. package/dist/model/LinkContent.js.map +1 -0
  131. package/dist/model/Picture.d.ts +17 -0
  132. package/dist/model/Picture.js +2 -0
  133. package/dist/model/Picture.js.map +1 -0
  134. package/dist/model/SitemapContent.d.ts +7 -0
  135. package/dist/model/SitemapContent.js +2 -0
  136. package/dist/model/SitemapContent.js.map +1 -0
  137. package/dist/types.d.ts +2 -32
  138. package/dist/ui-kit/Breadcrumb.d.ts +1 -1
  139. package/dist/ui-kit/Button.d.ts +1 -8
  140. package/dist/ui-kit/Button.js.map +1 -1
  141. package/dist/ui-kit/ButtonProps.d.ts +9 -0
  142. package/dist/ui-kit/ButtonProps.js +2 -0
  143. package/dist/ui-kit/ButtonProps.js.map +1 -0
  144. package/dist/ui-kit/Icon.d.ts +1 -10
  145. package/dist/ui-kit/Icon.js.map +1 -1
  146. package/dist/ui-kit/IconButton.d.ts +1 -6
  147. package/dist/ui-kit/IconButton.js.map +1 -1
  148. package/dist/ui-kit/IconButtonProps.d.ts +6 -0
  149. package/dist/ui-kit/IconButtonProps.js +2 -0
  150. package/dist/ui-kit/IconButtonProps.js.map +1 -0
  151. package/dist/ui-kit/IconProps.d.ts +10 -0
  152. package/dist/ui-kit/IconProps.js +2 -0
  153. package/dist/ui-kit/IconProps.js.map +1 -0
  154. package/dist/ui-kit/Title.d.ts +1 -10
  155. package/dist/ui-kit/Title.js +3 -9
  156. package/dist/ui-kit/Title.js.map +1 -1
  157. package/dist/ui-kit/TitleProps.d.ts +10 -0
  158. package/dist/ui-kit/TitleProps.js +10 -0
  159. package/dist/ui-kit/TitleProps.js.map +1 -0
  160. package/dist/ui-kit/TopItem.d.ts +1 -1
  161. package/dist/useLink.d.ts +5 -2
  162. package/dist/useLink.js.map +1 -1
  163. package/dist/useSitemap.d.ts +1 -1
  164. package/lib/BaseTile.d.ts +2 -12
  165. package/lib/BaseTile.js.map +1 -1
  166. package/lib/BaseTileContent.d.ts +13 -0
  167. package/lib/BaseTileContent.js +2 -0
  168. package/lib/BaseTileContent.js.map +1 -0
  169. package/lib/BenefitsBlock.d.ts +1 -10
  170. package/lib/BenefitsBlock.js.map +1 -1
  171. package/lib/BenefitsBlockContent.d.ts +10 -0
  172. package/lib/BenefitsBlockContent.js +2 -0
  173. package/lib/BenefitsBlockContent.js.map +1 -0
  174. package/lib/BlockContent.d.ts +15 -0
  175. package/lib/BlockContent.js +2 -0
  176. package/lib/BlockContent.js.map +1 -0
  177. package/lib/Blocks.d.ts +1 -15
  178. package/lib/Blocks.js +7 -5
  179. package/lib/Blocks.js.map +1 -1
  180. package/lib/ContentPage.d.ts +1 -1
  181. package/lib/ExchangeRateTile.d.ts +1 -3
  182. package/lib/ExchangeRateTile.js.map +1 -1
  183. package/lib/ExchangeRateTileContent.d.ts +3 -0
  184. package/lib/ExchangeRateTileContent.js +2 -0
  185. package/lib/ExchangeRateTileContent.js.map +1 -0
  186. package/lib/Footer/Contacts.d.ts +2 -1
  187. package/lib/Footer/Contacts.js.map +1 -1
  188. package/lib/Footer/Footer.d.ts +2 -8
  189. package/lib/Footer/Footer.js +1 -1
  190. package/lib/Footer/Footer.js.map +1 -1
  191. package/lib/Footer/Footer.mobile.d.ts +1 -1
  192. package/lib/Footer/FooterContent.d.ts +13 -0
  193. package/lib/Footer/FooterContent.js +2 -0
  194. package/lib/Footer/FooterContent.js.map +1 -0
  195. package/lib/Footer/FooterLink.d.ts +1 -1
  196. package/lib/Footer/Sitemap.d.ts +2 -1
  197. package/lib/Footer/Sitemap.js.map +1 -1
  198. package/lib/Footer/SocialMedia.d.ts +2 -1
  199. package/lib/Footer/SocialMedia.js.map +1 -1
  200. package/lib/Gallery.d.ts +2 -13
  201. package/lib/Gallery.js +3 -33
  202. package/lib/Gallery.js.map +1 -1
  203. package/lib/Gallery.mobile.d.ts +1 -1
  204. package/lib/Gallery.mobile.js.map +1 -1
  205. package/lib/GalleryContent.d.ts +13 -0
  206. package/lib/GalleryContent.js +2 -0
  207. package/lib/GalleryContent.js.map +1 -0
  208. package/lib/GalleryInner.d.ts +7 -0
  209. package/lib/GalleryInner.js +46 -0
  210. package/lib/GalleryInner.js.map +1 -0
  211. package/lib/Header/HeaderContent.d.ts +2 -3
  212. package/lib/Header/isSubItemActive.d.ts +1 -1
  213. package/lib/Header/isTopItemActive.d.ts +1 -1
  214. package/lib/Img.d.ts +1 -1
  215. package/lib/MiniGallery.d.ts +5 -0
  216. package/lib/MiniGallery.js +5 -0
  217. package/lib/MiniGallery.js.map +1 -0
  218. package/lib/MobileAppTile.d.ts +1 -9
  219. package/lib/MobileAppTile.js.map +1 -1
  220. package/lib/MobileAppTileContent.d.ts +9 -0
  221. package/lib/MobileAppTileContent.js +2 -0
  222. package/lib/MobileAppTileContent.js.map +1 -0
  223. package/lib/MobileBlocks.js +1 -1
  224. package/lib/MobileBlocks.js.map +1 -1
  225. package/lib/Placeholder.d.ts +1 -3
  226. package/lib/Placeholder.js.map +1 -1
  227. package/lib/PlaceholderContent.d.ts +3 -0
  228. package/lib/PlaceholderContent.js +2 -0
  229. package/lib/PlaceholderContent.js.map +1 -0
  230. package/lib/ProductBlock.d.ts +2 -4
  231. package/lib/ProductBlock.js.map +1 -1
  232. package/lib/ProductBlock.mobile.d.ts +1 -1
  233. package/lib/ProductBlock.mobile.js.map +1 -1
  234. package/lib/ProductBlockContent.d.ts +5 -0
  235. package/lib/ProductBlockContent.js +2 -0
  236. package/lib/ProductBlockContent.js.map +1 -0
  237. package/lib/ProductBlockInner.d.ts +1 -5
  238. package/lib/ProductBlockInner.js.map +1 -1
  239. package/lib/ProductBlockInnerContent.d.ts +5 -0
  240. package/lib/ProductBlockInnerContent.js +2 -0
  241. package/lib/ProductBlockInnerContent.js.map +1 -0
  242. package/lib/ProductGallery.d.ts +1 -14
  243. package/lib/ProductGallery.js.map +1 -1
  244. package/lib/ProductGalleryContent.d.ts +14 -0
  245. package/lib/ProductGalleryContent.js +2 -0
  246. package/lib/ProductGalleryContent.js.map +1 -0
  247. package/lib/ProductTile.d.ts +1 -5
  248. package/lib/ProductTile.js.map +1 -1
  249. package/lib/ProductTileContent.d.ts +5 -0
  250. package/lib/ProductTileContent.js +2 -0
  251. package/lib/ProductTileContent.js.map +1 -0
  252. package/lib/PromoTile.d.ts +1 -4
  253. package/lib/PromoTile.js.map +1 -1
  254. package/lib/PromoTileContent.d.ts +4 -0
  255. package/lib/PromoTileContent.js +2 -0
  256. package/lib/PromoTileContent.js.map +1 -0
  257. package/lib/StepsBlock.d.ts +1 -10
  258. package/lib/StepsBlock.js.map +1 -1
  259. package/lib/StepsBlockContent.d.ts +10 -0
  260. package/lib/StepsBlockContent.js +2 -0
  261. package/lib/StepsBlockContent.js.map +1 -0
  262. package/lib/TextBlock.d.ts +2 -11
  263. package/lib/TextBlock.js.map +1 -1
  264. package/lib/TextBlockContent.d.ts +10 -0
  265. package/lib/TextBlockContent.js +2 -0
  266. package/lib/TextBlockContent.js.map +1 -0
  267. package/lib/Tile.d.ts +2 -2
  268. package/lib/Tile.js.map +1 -1
  269. package/lib/TileContent.d.ts +2 -0
  270. package/lib/TileContent.js +2 -0
  271. package/lib/TileContent.js.map +1 -0
  272. package/lib/common.css +1 -1
  273. package/lib/content-page-repository/transformContentPage.js.map +1 -1
  274. package/lib/content-page-repository/transformPicture.d.ts +1 -1
  275. package/lib/index.d.ts +5 -3
  276. package/lib/index.js +1 -0
  277. package/lib/index.js.map +1 -1
  278. package/lib/mergeTopItems.d.ts +2 -2
  279. package/lib/mergeTopItems.js.map +1 -1
  280. package/lib/model/BlockVersion.d.ts +1 -0
  281. package/lib/model/BlockVersion.js +2 -0
  282. package/lib/model/BlockVersion.js.map +1 -0
  283. package/lib/model/ButtonVersion.d.ts +1 -0
  284. package/lib/model/ButtonVersion.js +2 -0
  285. package/lib/model/ButtonVersion.js.map +1 -0
  286. package/lib/model/GalleryVersion.d.ts +1 -0
  287. package/lib/model/GalleryVersion.js +2 -0
  288. package/lib/model/GalleryVersion.js.map +1 -0
  289. package/lib/model/LinkContent.d.ts +5 -0
  290. package/lib/model/LinkContent.js +2 -0
  291. package/lib/model/LinkContent.js.map +1 -0
  292. package/lib/model/Picture.d.ts +17 -0
  293. package/lib/model/Picture.js +2 -0
  294. package/lib/model/Picture.js.map +1 -0
  295. package/lib/model/SitemapContent.d.ts +7 -0
  296. package/lib/model/SitemapContent.js +2 -0
  297. package/lib/model/SitemapContent.js.map +1 -0
  298. package/lib/types.d.ts +2 -32
  299. package/lib/ui-kit/Breadcrumb.d.ts +1 -1
  300. package/lib/ui-kit/Button.d.ts +1 -8
  301. package/lib/ui-kit/Button.js.map +1 -1
  302. package/lib/ui-kit/ButtonProps.d.ts +9 -0
  303. package/lib/ui-kit/ButtonProps.js +2 -0
  304. package/lib/ui-kit/ButtonProps.js.map +1 -0
  305. package/lib/ui-kit/Icon.d.ts +1 -10
  306. package/lib/ui-kit/Icon.js.map +1 -1
  307. package/lib/ui-kit/IconButton.d.ts +1 -6
  308. package/lib/ui-kit/IconButton.js.map +1 -1
  309. package/lib/ui-kit/IconButtonProps.d.ts +6 -0
  310. package/lib/ui-kit/IconButtonProps.js +2 -0
  311. package/lib/ui-kit/IconButtonProps.js.map +1 -0
  312. package/lib/ui-kit/IconProps.d.ts +10 -0
  313. package/lib/ui-kit/IconProps.js +2 -0
  314. package/lib/ui-kit/IconProps.js.map +1 -0
  315. package/lib/ui-kit/Title.d.ts +1 -10
  316. package/lib/ui-kit/Title.js +1 -7
  317. package/lib/ui-kit/Title.js.map +1 -1
  318. package/lib/ui-kit/TitleProps.d.ts +10 -0
  319. package/lib/ui-kit/TitleProps.js +8 -0
  320. package/lib/ui-kit/TitleProps.js.map +1 -0
  321. package/lib/ui-kit/TopItem.d.ts +1 -1
  322. package/lib/useLink.d.ts +5 -2
  323. package/lib/useLink.js.map +1 -1
  324. package/lib/useSitemap.d.ts +1 -1
  325. package/package.json +5 -2
  326. package/src/BaseTile.tsx +5 -13
  327. package/src/BaseTileContent.ts +14 -0
  328. package/src/BenefitsBlock.tsx +2 -12
  329. package/src/BenefitsBlockContent.ts +12 -0
  330. package/src/BlockContent.ts +30 -0
  331. package/src/Blocks.ts +14 -30
  332. package/src/ContentPage.page.json +75 -0
  333. package/src/ContentPage.tsx +1 -1
  334. package/src/ExchangeRateTile.tsx +2 -5
  335. package/src/ExchangeRateTileContent.ts +3 -0
  336. package/src/Footer/Contacts.tsx +2 -1
  337. package/src/Footer/Footer.mobile.tsx +1 -1
  338. package/src/Footer/Footer.tsx +3 -10
  339. package/src/Footer/FooterContent.ts +15 -0
  340. package/src/Footer/FooterLink.ts +1 -1
  341. package/src/Footer/HorizontalNavigation.tsx +2 -2
  342. package/src/Footer/Sitemap.tsx +3 -2
  343. package/src/Footer/SocialMedia.tsx +4 -2
  344. package/src/Footer/TextInformation.tsx +1 -1
  345. package/src/Gallery.fixture.tsx +1 -1
  346. package/src/Gallery.mobile.tsx +2 -1
  347. package/src/Gallery.tsx +4 -133
  348. package/src/GalleryContent.ts +15 -0
  349. package/src/GalleryInner.tsx +140 -0
  350. package/src/Header/HeaderContent.ts +2 -3
  351. package/src/Header/isSubItemActive.ts +1 -1
  352. package/src/Header/isTopItemActive.ts +1 -1
  353. package/src/Img.tsx +1 -1
  354. package/src/MiniGallery.fixture.tsx +90 -0
  355. package/src/MiniGallery.tsx +10 -0
  356. package/src/MobileAppTile.tsx +1 -11
  357. package/src/MobileAppTileContent.ts +11 -0
  358. package/src/MobileBlocks.ts +1 -1
  359. package/src/Placeholder.tsx +1 -4
  360. package/src/PlaceholderContent.ts +3 -0
  361. package/src/ProductBlock.fixture.tsx +1 -1
  362. package/src/ProductBlock.mobile.tsx +1 -1
  363. package/src/ProductBlock.tsx +3 -5
  364. package/src/ProductBlockContent.ts +6 -0
  365. package/src/ProductBlockInner.tsx +2 -6
  366. package/src/ProductBlockInnerContent.ts +6 -0
  367. package/src/ProductGallery.fixture.tsx +1 -1
  368. package/src/ProductGallery.tsx +2 -16
  369. package/src/ProductGalleryContent.ts +16 -0
  370. package/src/ProductTile.fixture.tsx +1 -1
  371. package/src/ProductTile.tsx +3 -7
  372. package/src/ProductTileContent.ts +6 -0
  373. package/src/PromoTile.tsx +1 -5
  374. package/src/PromoTileContent.ts +5 -0
  375. package/src/StepsBlock.tsx +2 -12
  376. package/src/StepsBlockContent.ts +12 -0
  377. package/src/TextBlock.fixture.tsx +1 -1
  378. package/src/TextBlock.tsx +3 -12
  379. package/src/TextBlockContent.ts +12 -0
  380. package/src/Tile.fixture.tsx +1 -1
  381. package/src/Tile.tsx +4 -3
  382. package/src/TileContent.ts +3 -0
  383. package/src/content-page-repository/transformContentPage.ts +2 -1
  384. package/src/content-page-repository/transformPicture.ts +1 -1
  385. package/src/index.ts +6 -11
  386. package/src/mergeTopItems.ts +5 -5
  387. package/src/model/BlockVersion.ts +1 -0
  388. package/src/model/ButtonVersion.ts +1 -0
  389. package/src/model/GalleryVersion.ts +1 -0
  390. package/src/model/LinkContent.ts +5 -0
  391. package/src/model/Picture.ts +19 -0
  392. package/src/model/SitemapContent.ts +9 -0
  393. package/src/types.ts +2 -56
  394. package/src/ui-kit/Breadcrumb.tsx +1 -1
  395. package/src/ui-kit/Button.tsx +2 -9
  396. package/src/ui-kit/ButtonProps.ts +10 -0
  397. package/src/ui-kit/Icon.tsx +1 -32
  398. package/src/ui-kit/IconButton.tsx +2 -7
  399. package/src/ui-kit/IconButtonProps.ts +7 -0
  400. package/src/ui-kit/IconProps.ts +31 -0
  401. package/src/ui-kit/Title.tsx +1 -13
  402. package/src/ui-kit/TitleProps.ts +12 -0
  403. package/src/ui-kit/TopItem.tsx +1 -1
  404. package/src/useLink.ts +2 -2
  405. package/src/useSitemap.ts +1 -1
  406. package/dist/Footer/index.d.ts +0 -2
  407. package/dist/Footer/index.js +0 -5
  408. package/dist/Footer/index.js.map +0 -1
  409. package/dist/Header/index.d.ts +0 -3
  410. package/dist/Header/index.js +0 -5
  411. package/dist/Header/index.js.map +0 -1
  412. package/lib/Footer/index.d.ts +0 -2
  413. package/lib/Footer/index.js +0 -2
  414. package/lib/Footer/index.js.map +0 -1
  415. package/lib/Header/index.d.ts +0 -3
  416. package/lib/Header/index.js +0 -2
  417. package/lib/Header/index.js.map +0 -1
  418. package/src/Footer/index.ts +0 -2
  419. package/src/Header/index.ts +0 -3
@@ -0,0 +1,15 @@
1
+ import type { LinkContent } from '../model/LinkContent';
2
+ import type { SitemapContent } from '../model/SitemapContent';
3
+
4
+ export interface ContactInfo {
5
+ text: string;
6
+ type: 'tel' | 'email';
7
+ description: string;
8
+ }
9
+
10
+ export interface FooterContent extends SitemapContent {
11
+ documents?: LinkContent[];
12
+ relatedEnterprises?: LinkContent[];
13
+ contacts?: ContactInfo[];
14
+ socialMedia?: Omit<LinkContent, 'text'>[];
15
+ }
@@ -1,4 +1,4 @@
1
- import type { LinkContent } from '../types';
1
+ import type { LinkContent } from '../model/LinkContent';
2
2
  import type { UniBlockProps } from '../types';
3
3
 
4
4
  export interface FooterLink extends UniBlockProps {
@@ -1,7 +1,7 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { FooterLink } from './FooterLink';
2
+ import { LinkContent } from '../model/LinkContent';
3
3
  import { useLink } from '../useLink';
4
- import { LinkContent } from '../types';
4
+ import type { FooterLink } from './FooterLink';
5
5
 
6
6
  export const HorizontalNavigation = JSX<FooterLink>(({ className, links, context }) => {
7
7
  const router = context.useRouter();
@@ -1,7 +1,8 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { Router, HandlerDecorator } from '../ContentPageContext';
3
2
  import { mergeTopItems } from '../mergeTopItems';
4
- import type { LinkContent, TopMenuItem, UniBlockProps } from '../types';
3
+ import type { LinkContent } from '../model/LinkContent';
4
+ import type { TopMenuItem } from '../model/SitemapContent';
5
+ import type { UniBlockProps } from '../types';
5
6
  import { useLink } from '../useLink';
6
7
  import { useSitemap } from '../useSitemap';
7
8
  export interface SitemapProps extends UniBlockProps {
@@ -1,6 +1,8 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { LinkContent, UniBlockProps } from '../types';
3
- import { Icon, IconName } from '../ui-kit/Icon';
2
+ import type { LinkContent } from '../model/LinkContent';
3
+ import type { UniBlockProps } from '../types';
4
+ import { Icon } from '../ui-kit/Icon';
5
+ import type { IconName } from '../ui-kit/IconProps';
4
6
  import { useLink } from '../useLink';
5
7
 
6
8
  const ICONS_MAP: Array<{ origins: string[]; icon: IconName; label: string }> = [
@@ -1,5 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { LinkContent } from '../types';
2
+ import type { LinkContent } from '../model/LinkContent';
3
3
  import { useLink } from '../useLink';
4
4
  import { FooterLink } from './FooterLink';
5
5
 
@@ -2,7 +2,7 @@ import { context } from './setup-fixture';
2
2
 
3
3
  import { Gallery, GalleryProps } from './Gallery';
4
4
  import { Gallery as MobileGallery } from './Gallery.mobile';
5
- import { Picture } from './types';
5
+ import { Picture } from './model/Picture';
6
6
 
7
7
  const image: Picture = {
8
8
  src: 'money-1.png',
@@ -1,5 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { GalleryCard, GalleryProps } from './Gallery';
2
+ import type { GalleryProps } from './Gallery';
3
+ import type { GalleryCard } from './GalleryContent';
3
4
  import { Img } from './Img';
4
5
  import { BlockItem } from './ui-kit/BlockItem';
5
6
  import { Button } from './ui-kit/Button';
package/src/Gallery.tsx CHANGED
@@ -1,137 +1,8 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { Img } from './Img';
3
- import { Picture, UniBlockProps } from './types';
4
- import { ArrowButton } from './ui-kit/ArrowButton';
5
- import { BlockItem } from './ui-kit/BlockItem';
6
- import { Button } from './ui-kit/Button';
7
- import { Title } from './ui-kit/Title';
8
-
9
- export interface GalleryCard {
10
- title?: string;
11
- description?: string;
12
- image?: Picture;
13
- href?: string;
14
- items?: string[];
15
- }
16
-
17
- export interface GalleryContent {
18
- title?: string;
19
- description?: string;
20
- cards?: GalleryCard[];
21
- }
2
+ import { GalleryContent } from './GalleryContent';
3
+ import { GalleryInner } from './GalleryInner';
4
+ import { UniBlockProps } from './types';
22
5
 
23
6
  export interface GalleryProps extends GalleryContent, UniBlockProps {}
24
7
 
25
- const CARD_WIDTH = 384;
26
- const GALLERY_LENGTH_FOR_SCROLL = 3;
27
-
28
- export const Gallery = JSX<GalleryProps>(
29
- ({ title, description, context, cards = [], className }) => {
30
- const [activeCardIndex, setActiveCardIndex] = context.useState(0);
31
-
32
- function handleNextClick() {
33
- setActiveCardIndex(activeCardIndex + 1);
34
- }
35
-
36
- function handlePrevClick() {
37
- setActiveCardIndex(activeCardIndex - 1);
38
- }
39
-
40
- const isGalleryScrollAvailable = cards?.length > GALLERY_LENGTH_FOR_SCROLL;
41
-
42
- const showNextButton =
43
- isGalleryScrollAvailable && cards?.length - activeCardIndex > GALLERY_LENGTH_FOR_SCROLL;
44
-
45
- const showPrevButton = isGalleryScrollAvailable && activeCardIndex > 0;
46
-
47
- return (
48
- <section
49
- className={`relative font-sans text-primary-text bg-white p-12 overflow-hidden ${className}`}
50
- >
51
- <div className="flex flex-col items-center mb-8">
52
- <Title className="font-medium m-0 text-centers">{title}</Title>
53
- {description ? (
54
- <div className="font-normal text-base max-w-[600px] mt-3">{description}</div>
55
- ) : null}
56
- </div>
57
- <div
58
- // Need to place all cards at the center if count of cards less than 4
59
- className={`flex ${
60
- cards?.length <= GALLERY_LENGTH_FOR_SCROLL ? 'justify-center' : ''
61
- } duration-1000`}
62
- // All cards has same width
63
- style={{ transform: `translateX(-${activeCardIndex * CARD_WIDTH}px)` }}
64
- role="list"
65
- >
66
- {cards?.map(renderCard)}
67
- </div>
68
- {showPrevButton && (
69
- <ArrowButton
70
- className="absolute top-1/2 left-8"
71
- onClick={handlePrevClick}
72
- ariaLabel="Пролистать влево"
73
- />
74
- )}
75
- {showNextButton && (
76
- <ArrowButton
77
- className="absolute top-1/2 right-1 z-20 rotate-180"
78
- onClick={handleNextClick}
79
- ariaLabel="Пролистать вправо"
80
- />
81
- )}
82
- <div
83
- className="absolute top-0 right-0 bottom-0 w-[84px]"
84
- style={{
85
- background: 'linear-gradient(270deg, #FFFFFF 34.89%, rgba(255, 255, 255, 0) 92.52%)',
86
- }}
87
- ></div>
88
- </section>
89
- );
90
- },
91
- );
92
-
93
- function renderCard(card: GalleryCard, key: number) {
94
- return (
95
- <div
96
- className="box-border border-solid border rounded-md border-main-divider p-7 mx-2 flex flex-col justify-between items-stretch min-w-[364px] w-[364px] w-full"
97
- role="listitem"
98
- key={key}
99
- >
100
- <div>
101
- {card.image?.src ? (
102
- <div className="flex justify-center">
103
- <Img className="mb-6" image={card.image} />
104
- </div>
105
- ) : null}
106
- {card.title ? (
107
- <h4
108
- className={`font-medium text-xl m-0 ${
109
- !card.description && !card.items?.length ? 'text-center' : ''
110
- }`}
111
- >
112
- {card.title}
113
- </h4>
114
- ) : null}
115
- {card.description ? (
116
- <div className="font-normal text-sm text-secondary-text mt-2">{card.description}</div>
117
- ) : null}
118
- {card.items?.length ? renderItems(card.items) : null}
119
- </div>
120
- {card.href ? (
121
- <Button className="mt-6" text="Подробнее" version="secondary" href={card.href} />
122
- ) : null}
123
- </div>
124
- );
125
- }
126
-
127
- function renderItems(items: string[] = []) {
128
- return (
129
- <section className="max-w-[308px] mt-2" role="list">
130
- {items.map((item, i) => (
131
- <BlockItem key={String(i)}>
132
- <span className="text-sm text-secondary-text">{item}</span>
133
- </BlockItem>
134
- ))}
135
- </section>
136
- );
137
- }
8
+ export const Gallery = JSX<GalleryProps>((props) => <GalleryInner {...props} version="normal" />);
@@ -0,0 +1,15 @@
1
+ import type { Picture } from './model/Picture';
2
+
3
+ export interface GalleryCard {
4
+ title?: string;
5
+ description?: string;
6
+ image?: Picture;
7
+ href?: string;
8
+ items?: string[];
9
+ }
10
+
11
+ export interface GalleryContent {
12
+ title?: string;
13
+ description?: string;
14
+ cards?: GalleryCard[];
15
+ }
@@ -0,0 +1,140 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { GalleryCard, GalleryContent } from './GalleryContent';
3
+ import { Img } from './Img';
4
+ import type { GalleryVersion } from './model/GalleryVersion';
5
+ import type { UniBlockProps } from './types';
6
+ import { ArrowButton } from './ui-kit/ArrowButton';
7
+ import { BlockItem } from './ui-kit/BlockItem';
8
+ import { Button } from './ui-kit/Button';
9
+ import { Title } from './ui-kit/Title';
10
+
11
+ export interface GalleryInnerProps extends GalleryContent, UniBlockProps {
12
+ version?: GalleryVersion;
13
+ }
14
+
15
+ const cardStyleMap: Record<GalleryVersion, string> = {
16
+ normal: 'min-w-[364px] w-[364px]',
17
+ mini: 'min-w-[260px] w-[260px]',
18
+ };
19
+
20
+ const cardWidthMap: Record<GalleryVersion, number> = {
21
+ normal: 380,
22
+ mini: 276,
23
+ };
24
+
25
+ const galleryLengthForScrollMap: Record<GalleryVersion, number> = {
26
+ normal: 3,
27
+ mini: 4,
28
+ };
29
+
30
+ export const GalleryInner = JSX<GalleryInnerProps>(
31
+ ({ title, description, context, cards = [], className, version = 'normal' }) => {
32
+ const [activeCardIndex, setActiveCardIndex] = context.useState(0);
33
+
34
+ function handleNextClick() {
35
+ setActiveCardIndex(activeCardIndex + 1);
36
+ }
37
+
38
+ function handlePrevClick() {
39
+ setActiveCardIndex(activeCardIndex - 1);
40
+ }
41
+
42
+ const isGalleryScrollAvailable = cards?.length > galleryLengthForScrollMap[version];
43
+
44
+ const showNextButton =
45
+ isGalleryScrollAvailable &&
46
+ cards?.length - activeCardIndex > galleryLengthForScrollMap[version];
47
+
48
+ const showPrevButton = isGalleryScrollAvailable && activeCardIndex > 0;
49
+
50
+ return (
51
+ <section
52
+ className={`relative font-sans text-primary-text bg-white p-12 overflow-hidden ${className}`}
53
+ >
54
+ <div className="flex flex-col items-center mb-8">
55
+ {title ? <Title className="font-medium m-0 text-center">{title}</Title> : null}
56
+ {description ? (
57
+ <div className="font-normal text-base max-w-[600px] mt-3">{description}</div>
58
+ ) : null}
59
+ </div>
60
+ <div
61
+ // Need to place all cards at the center if count of cards less than 4
62
+ className={`flex ${
63
+ cards?.length <= galleryLengthForScrollMap[version] ? 'justify-center' : ''
64
+ } duration-1000`}
65
+ // All cards has same width
66
+ style={{ transform: `translateX(-${activeCardIndex * cardWidthMap[version]}px)` }}
67
+ role="list"
68
+ >
69
+ {cards?.map((card, i) => renderCard(card, i, version))}
70
+ </div>
71
+ {showPrevButton && (
72
+ <ArrowButton
73
+ className="absolute top-1/2 left-8"
74
+ onClick={handlePrevClick}
75
+ ariaLabel="Пролистать влево"
76
+ />
77
+ )}
78
+ {showNextButton && (
79
+ <ArrowButton
80
+ className="absolute top-1/2 right-1 z-20 rotate-180"
81
+ onClick={handleNextClick}
82
+ ariaLabel="Пролистать вправо"
83
+ />
84
+ )}
85
+ <div
86
+ className="absolute top-0 right-0 bottom-0 w-[84px]"
87
+ style={{
88
+ background: 'linear-gradient(270deg, #FFFFFF 34.89%, rgba(255, 255, 255, 0) 92.52%)',
89
+ }}
90
+ ></div>
91
+ </section>
92
+ );
93
+ },
94
+ );
95
+
96
+ function renderCard(card: GalleryCard, i: number, version: GalleryVersion) {
97
+ return (
98
+ <div
99
+ className={`box-border border-solid border rounded-md border-main-divider p-7 mx-2 flex flex-col justify-between items-stretch ${cardStyleMap[version]} w-full`}
100
+ role="listitem"
101
+ key={String(i)}
102
+ >
103
+ <div>
104
+ {card.image?.src ? (
105
+ <div className="flex justify-center">
106
+ <Img className="mb-6" image={card.image} />
107
+ </div>
108
+ ) : null}
109
+ {card.title ? (
110
+ <h4
111
+ className={`font-medium text-xl m-0 ${
112
+ !card.description && !card.items?.length ? 'text-center' : ''
113
+ }`}
114
+ >
115
+ {card.title}
116
+ </h4>
117
+ ) : null}
118
+ {card.description ? (
119
+ <div className="font-normal text-sm text-secondary-text mt-2">{card.description}</div>
120
+ ) : null}
121
+ {card.items?.length ? (
122
+ <section className="max-w-[308px] mt-2" role="list">
123
+ {card.items.map(renderItem)}
124
+ </section>
125
+ ) : null}
126
+ </div>
127
+ {card.href ? (
128
+ <Button className="mt-6" text="Подробнее" version="secondary" href={card.href} />
129
+ ) : null}
130
+ </div>
131
+ );
132
+ }
133
+
134
+ function renderItem(item: string, i: number) {
135
+ return (
136
+ <BlockItem key={String(i)}>
137
+ <span className="text-sm text-secondary-text">{item}</span>
138
+ </BlockItem>
139
+ );
140
+ }
@@ -1,6 +1,5 @@
1
- import type { TopMenuItem } from '../types';
1
+ import { SitemapContent } from '../model/SitemapContent';
2
2
 
3
- export interface HeaderContent {
3
+ export interface HeaderContent extends SitemapContent {
4
4
  defaultLocation?: string;
5
- topItems?: TopMenuItem[];
6
5
  }
@@ -1,5 +1,5 @@
1
1
  import type { Router } from '../ContentPageContext';
2
- import type { LinkContent } from '../types';
2
+ import type { LinkContent } from '../model/LinkContent';
3
3
  import { isHrefActive } from '../utils/url';
4
4
 
5
5
  export function isSubItemActive(router: Router) {
@@ -1,5 +1,5 @@
1
1
  import type { Router } from '../ContentPageContext';
2
- import type { LinkContent } from '../types';
2
+ import type { LinkContent } from '../model/LinkContent';
3
3
  import { isHrefActive } from '../utils/url';
4
4
 
5
5
  export function isTopItemActive(router: Router) {
package/src/Img.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { Picture, ImgSource } from './types';
2
+ import type { Picture, ImgSource } from './model/Picture';
3
3
 
4
4
  export interface TextWithImageProps {
5
5
  className?: string;
@@ -0,0 +1,90 @@
1
+ import { context } from './setup-fixture';
2
+
3
+ import { MiniGallery, MiniGalleryProps } from './MiniGallery';
4
+ import { Picture } from './model/Picture';
5
+
6
+ const image: Picture = {
7
+ src: 'domovoj-kupon.png',
8
+ format: 'webp',
9
+ size: {
10
+ width: 120,
11
+ height: 70,
12
+ },
13
+ };
14
+
15
+ const defaultProps: MiniGalleryProps = {
16
+ title: 'Вы можете оплатить бонусными баллами',
17
+ description: 'Удобный каталог с большим ассортиментом товаров и сервисов',
18
+ context,
19
+ cards: [
20
+ {
21
+ title: 'Более 5000 товаров',
22
+ description:
23
+ 'Время копить: ставка растет в зависимости от срока нахождения средств на Счете!',
24
+ image,
25
+ },
26
+ {
27
+ title: 'Более 1000 развлечений',
28
+ description: 'Порядок и условия предоставления в соответствии с 106 ФЗ',
29
+ image,
30
+ },
31
+ {
32
+ title: 'Фермерские продукты',
33
+ description: 'Высокий процент даже при небольшой сумме денежных средств',
34
+ image,
35
+ },
36
+ {
37
+ title: '«Моя выгода»',
38
+ description:
39
+ 'Время копить: ставка растет в зависимости от срока нахождения средств на Счете!',
40
+ image,
41
+ },
42
+ {
43
+ title: 'Фермерские продукты',
44
+ description: 'Высокий процент даже при небольшой сумме денежных средств',
45
+ image,
46
+ },
47
+ {
48
+ title: 'Фермерские продукты',
49
+ description: 'Высокий процент даже при небольшой сумме денежных средств',
50
+ image,
51
+ },
52
+ ],
53
+ };
54
+
55
+ const onlyTitleProps: MiniGalleryProps = {
56
+ title: 'Вы можете оплатить бонусными баллами',
57
+ description: 'Удобный каталог с большим ассортиментом товаров и сервисов',
58
+ context,
59
+ cards: [
60
+ {
61
+ title: 'Более 5000 товаров',
62
+ image,
63
+ },
64
+ {
65
+ title: 'Более 1000 развлечений',
66
+ image,
67
+ },
68
+ {
69
+ title: 'Фермерские продукты',
70
+ image,
71
+ },
72
+ {
73
+ title: '«Моя выгода»',
74
+ image,
75
+ },
76
+ {
77
+ title: 'Фермерские продукты',
78
+ image,
79
+ },
80
+ {
81
+ title: 'Фермерские продукты',
82
+ image,
83
+ },
84
+ ],
85
+ };
86
+
87
+ export default {
88
+ default: <MiniGallery {...defaultProps} />,
89
+ 'only title': <MiniGallery {...onlyTitleProps} />,
90
+ };
@@ -0,0 +1,10 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { GalleryContent } from './GalleryContent';
3
+ import { GalleryInner } from './GalleryInner';
4
+ import { UniBlockProps } from './types';
5
+
6
+ export interface MiniGalleryProps extends GalleryContent, UniBlockProps {}
7
+
8
+ export const MiniGallery = JSX<MiniGalleryProps>((props) => (
9
+ <GalleryInner {...props} version="mini" />
10
+ ));
@@ -1,18 +1,8 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import type { MobileAppTileContent } from './MobileAppTileContent';
2
3
  import { Tile } from './Tile';
3
- import type { BaseTileContent } from './BaseTile';
4
4
  import type { UniBlockProps } from './types';
5
5
 
6
- export interface QRCode {
7
- src?: string;
8
- href?: string;
9
- }
10
-
11
- export interface MobileAppTileContent extends BaseTileContent {
12
- title?: string;
13
- qr?: QRCode;
14
- }
15
-
16
6
  export interface MobileAppTileProps extends MobileAppTileContent, UniBlockProps {}
17
7
 
18
8
  export const MobileAppTile = JSX<MobileAppTileProps>(
@@ -0,0 +1,11 @@
1
+ import type { BaseTileContent } from './BaseTileContent';
2
+
3
+ export interface QRCode {
4
+ src?: string;
5
+ href?: string;
6
+ }
7
+
8
+ export interface MobileAppTileContent extends BaseTileContent {
9
+ title?: string;
10
+ qr?: QRCode;
11
+ }
@@ -1,7 +1,7 @@
1
1
  import { ExchangeRateTile } from './ExchangeRateTile';
2
2
  import { Footer } from './Footer/Footer.mobile';
3
3
  import { Gallery } from './Gallery.mobile';
4
- import { Header } from './Header/index';
4
+ import { Header } from './Header/Header';
5
5
  import { MobileAppTile } from './MobileAppTile';
6
6
  import { Placeholder } from './Placeholder';
7
7
  import { ProductBlock } from './ProductBlock.mobile';
@@ -1,11 +1,8 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import type { PlaceholderContent } from './PlaceholderContent';
2
3
  import { Tile } from './Tile';
3
4
  import type { UniBlockProps } from './types';
4
5
 
5
- export interface PlaceholderContent {
6
- title?: string;
7
- }
8
-
9
6
  export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
10
7
  className?: string;
11
8
  }
@@ -0,0 +1,3 @@
1
+ export interface PlaceholderContent {
2
+ title?: string;
3
+ }
@@ -1,7 +1,7 @@
1
1
  import { context } from './setup-fixture';
2
2
 
3
3
  import { ProductBlock } from './ProductBlock';
4
- import { Picture } from './types';
4
+ import { Picture } from './model/Picture';
5
5
 
6
6
  const image: Picture = {
7
7
  src: 'money-1.png',
@@ -1,6 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { ProductBlockInnerContent } from './ProductBlockInner';
3
2
  import { ProductBlockInner } from './ProductBlockInner';
3
+ import type { ProductBlockInnerContent } from './ProductBlockInnerContent';
4
4
  import type { UniBlockProps } from './types';
5
5
 
6
6
  export interface ProductBlockProps extends ProductBlockInnerContent, UniBlockProps {}
@@ -1,14 +1,12 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import type { ProductBlockContent } from './ProductBlockContent';
2
3
  import { ProductBlockInner } from './ProductBlockInner';
3
- import type { ProductBlockInnerContent } from './ProductBlockInner';
4
4
  import type { UniBlockProps } from './types';
5
- import { Breadcrumb, BreadcrumbProps } from './ui-kit/Breadcrumb';
5
+ import { Breadcrumb } from './ui-kit/Breadcrumb';
6
6
  import { useLink } from './useLink';
7
7
  import { joinList } from './utils/joinList';
8
8
 
9
- export interface ProductBlockProps extends ProductBlockInnerContent, UniBlockProps {
10
- breadcrumbs?: BreadcrumbProps[];
11
- }
9
+ export interface ProductBlockProps extends ProductBlockContent, UniBlockProps {}
12
10
 
13
11
  export const ProductBlock = JSX<ProductBlockProps>((props) => {
14
12
  const { context, className, breadcrumbs } = props;
@@ -0,0 +1,6 @@
1
+ import type { LinkContent } from './model/LinkContent';
2
+ import type { ProductBlockInnerContent } from './ProductBlockInnerContent';
3
+
4
+ export interface ProductBlockContent extends ProductBlockInnerContent {
5
+ breadcrumbs?: LinkContent[];
6
+ }
@@ -1,16 +1,12 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { BaseTileContent } from './BaseTile';
3
2
  import { BaseTile } from './BaseTile';
4
- import type { Benefit } from './BenefitsBlock';
3
+ import type { Benefit } from './BenefitsBlockContent';
5
4
  import { Img } from './Img';
5
+ import type { ProductBlockInnerContent } from './ProductBlockInnerContent';
6
6
  import type { UniBlockProps } from './types';
7
7
  import { Icon } from './ui-kit/Icon';
8
8
  import { Title } from './ui-kit/Title';
9
9
 
10
- export interface ProductBlockInnerContent extends BaseTileContent {
11
- benefits?: Benefit[];
12
- }
13
-
14
10
  export interface ProductBlockInnerProps extends ProductBlockInnerContent, UniBlockProps {}
15
11
 
16
12
  export const ProductBlockInner = JSX<ProductBlockInnerProps>(
@@ -0,0 +1,6 @@
1
+ import type { BaseTileContent } from './BaseTileContent';
2
+ import type { Benefit } from './BenefitsBlockContent';
3
+
4
+ export interface ProductBlockInnerContent extends BaseTileContent {
5
+ benefits?: Benefit[];
6
+ }
@@ -1,7 +1,7 @@
1
1
  import { context } from './setup-fixture';
2
2
 
3
3
  import { ProductGallery } from './ProductGallery';
4
- import { Picture } from './types';
4
+ import type { Picture } from './model/Picture';
5
5
 
6
6
  const moneyImage: Picture = {
7
7
  src: 'money-1.png',