@redneckz/wildless-cms-uni-blocks 0.2.71 → 0.2.74

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 (518) hide show
  1. package/bundle/blocks.schema.json +1022 -0
  2. package/bundle/bundle.umd.js +152 -71
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/BaseTile.d.ts +2 -12
  5. package/dist/BaseTile.js +9 -4
  6. package/dist/BaseTile.js.map +1 -1
  7. package/dist/BaseTileContent.d.ts +13 -0
  8. package/dist/BaseTileContent.js +2 -0
  9. package/dist/BaseTileContent.js.map +1 -0
  10. package/dist/BenefitsBlock.d.ts +1 -10
  11. package/dist/BenefitsBlock.js.map +1 -1
  12. package/dist/BenefitsBlockContent.d.ts +10 -0
  13. package/dist/BenefitsBlockContent.js +2 -0
  14. package/dist/BenefitsBlockContent.js.map +1 -0
  15. package/dist/BlockContent.d.ts +16 -0
  16. package/dist/BlockContent.js +2 -0
  17. package/dist/BlockContent.js.map +1 -0
  18. package/dist/Blocks.d.ts +2 -15
  19. package/dist/Blocks.js +11 -7
  20. package/dist/Blocks.js.map +1 -1
  21. package/dist/ComparisonTable/ComparisonTable.d.ts +5 -0
  22. package/dist/ComparisonTable/ComparisonTable.js +34 -0
  23. package/dist/ComparisonTable/ComparisonTable.js.map +1 -0
  24. package/dist/ComparisonTable/ComparisonTableContent.d.ts +37 -0
  25. package/dist/ComparisonTable/ComparisonTableContent.js +2 -0
  26. package/dist/ComparisonTable/ComparisonTableContent.js.map +1 -0
  27. package/dist/ComparisonTable/HeaderCell.d.ts +10 -0
  28. package/dist/ComparisonTable/HeaderCell.js +11 -0
  29. package/dist/ComparisonTable/HeaderCell.js.map +1 -0
  30. package/dist/ComparisonTable/TableCarouselContainer.d.ts +4 -0
  31. package/dist/ComparisonTable/TableCarouselContainer.js +7 -0
  32. package/dist/ComparisonTable/TableCarouselContainer.js.map +1 -0
  33. package/dist/ComparisonTable/TableCell.d.ts +8 -0
  34. package/dist/ComparisonTable/TableCell.js +12 -0
  35. package/dist/ComparisonTable/TableCell.js.map +1 -0
  36. package/dist/ComparisonTable/TableRow.d.ts +10 -0
  37. package/dist/ComparisonTable/TableRow.js +10 -0
  38. package/dist/ComparisonTable/TableRow.js.map +1 -0
  39. package/dist/ComparisonTable/TableRowContainer.d.ts +4 -0
  40. package/dist/ComparisonTable/TableRowContainer.js +6 -0
  41. package/dist/ComparisonTable/TableRowContainer.js.map +1 -0
  42. package/dist/ComparisonTable/constants.d.ts +6 -0
  43. package/dist/ComparisonTable/constants.js +9 -0
  44. package/dist/ComparisonTable/constants.js.map +1 -0
  45. package/dist/ComparisonTable/index.d.ts +3 -0
  46. package/dist/ComparisonTable/index.js +5 -0
  47. package/dist/ComparisonTable/index.js.map +1 -0
  48. package/dist/ContentPage.d.ts +1 -1
  49. package/dist/ExchangeRateTile.d.ts +1 -3
  50. package/dist/ExchangeRateTile.js +1 -0
  51. package/dist/ExchangeRateTile.js.map +1 -1
  52. package/dist/ExchangeRateTileContent.d.ts +3 -0
  53. package/dist/ExchangeRateTileContent.js +2 -0
  54. package/dist/ExchangeRateTileContent.js.map +1 -0
  55. package/dist/Footer/Contacts.d.ts +2 -1
  56. package/dist/Footer/Contacts.js +1 -1
  57. package/dist/Footer/Contacts.js.map +1 -1
  58. package/dist/Footer/Footer.d.ts +2 -8
  59. package/dist/Footer/Footer.js +1 -1
  60. package/dist/Footer/Footer.js.map +1 -1
  61. package/dist/Footer/Footer.mobile.d.ts +1 -1
  62. package/dist/Footer/FooterContent.d.ts +13 -0
  63. package/dist/Footer/FooterContent.js +2 -0
  64. package/dist/Footer/FooterContent.js.map +1 -0
  65. package/dist/Footer/FooterLink.d.ts +1 -1
  66. package/dist/Footer/Sitemap.d.ts +2 -1
  67. package/dist/Footer/Sitemap.js.map +1 -1
  68. package/dist/Footer/SocialMedia.d.ts +2 -1
  69. package/dist/Footer/SocialMedia.js +4 -1
  70. package/dist/Footer/SocialMedia.js.map +1 -1
  71. package/dist/Gallery.d.ts +2 -13
  72. package/dist/Gallery.js +2 -32
  73. package/dist/Gallery.js.map +1 -1
  74. package/dist/Gallery.mobile.d.ts +1 -1
  75. package/dist/Gallery.mobile.js +1 -1
  76. package/dist/Gallery.mobile.js.map +1 -1
  77. package/dist/GalleryContent.d.ts +13 -0
  78. package/dist/GalleryContent.js +2 -0
  79. package/dist/GalleryContent.js.map +1 -0
  80. package/dist/GalleryInner.d.ts +7 -0
  81. package/dist/GalleryInner.js +46 -0
  82. package/dist/GalleryInner.js.map +1 -0
  83. package/dist/Header/HeaderContent.d.ts +2 -3
  84. package/dist/Header/isSubItemActive.d.ts +1 -1
  85. package/dist/Header/isTopItemActive.d.ts +1 -1
  86. package/dist/MiniGallery.d.ts +5 -0
  87. package/dist/MiniGallery.js +7 -0
  88. package/dist/MiniGallery.js.map +1 -0
  89. package/dist/MobileAppTile.d.ts +1 -9
  90. package/dist/MobileAppTile.js.map +1 -1
  91. package/dist/MobileAppTileContent.d.ts +9 -0
  92. package/dist/MobileAppTileContent.js +2 -0
  93. package/dist/MobileAppTileContent.js.map +1 -0
  94. package/dist/MobileBlocks.js +2 -2
  95. package/dist/MobileBlocks.js.map +1 -1
  96. package/dist/Placeholder.d.ts +1 -3
  97. package/dist/Placeholder.js.map +1 -1
  98. package/dist/PlaceholderContent.d.ts +3 -0
  99. package/dist/PlaceholderContent.js +2 -0
  100. package/dist/PlaceholderContent.js.map +1 -0
  101. package/dist/ProductBlock.d.ts +2 -4
  102. package/dist/ProductBlock.js.map +1 -1
  103. package/dist/ProductBlock.mobile.d.ts +1 -1
  104. package/dist/ProductBlock.mobile.js.map +1 -1
  105. package/dist/ProductBlockContent.d.ts +5 -0
  106. package/dist/ProductBlockContent.js +2 -0
  107. package/dist/ProductBlockContent.js.map +1 -0
  108. package/dist/ProductBlockInner.d.ts +1 -5
  109. package/dist/ProductBlockInner.js +3 -3
  110. package/dist/ProductBlockInner.js.map +1 -1
  111. package/dist/ProductBlockInnerContent.d.ts +5 -0
  112. package/dist/ProductBlockInnerContent.js +2 -0
  113. package/dist/ProductBlockInnerContent.js.map +1 -0
  114. package/dist/ProductGallery.d.ts +1 -14
  115. package/dist/ProductGallery.js.map +1 -1
  116. package/dist/ProductGalleryContent.d.ts +14 -0
  117. package/dist/ProductGalleryContent.js +2 -0
  118. package/dist/ProductGalleryContent.js.map +1 -0
  119. package/dist/ProductTile.d.ts +1 -5
  120. package/dist/ProductTile.js.map +1 -1
  121. package/dist/ProductTileContent.d.ts +5 -0
  122. package/dist/ProductTileContent.js +2 -0
  123. package/dist/ProductTileContent.js.map +1 -0
  124. package/dist/PromoTile.d.ts +1 -4
  125. package/dist/PromoTile.js.map +1 -1
  126. package/dist/PromoTileContent.d.ts +4 -0
  127. package/dist/PromoTileContent.js +2 -0
  128. package/dist/PromoTileContent.js.map +1 -0
  129. package/dist/StepsBlock.d.ts +1 -10
  130. package/dist/StepsBlock.js.map +1 -1
  131. package/dist/StepsBlockContent.d.ts +10 -0
  132. package/dist/StepsBlockContent.js +2 -0
  133. package/dist/StepsBlockContent.js.map +1 -0
  134. package/dist/TextBlock.d.ts +2 -11
  135. package/dist/TextBlock.js +4 -4
  136. package/dist/TextBlock.js.map +1 -1
  137. package/dist/TextBlockContent.d.ts +10 -0
  138. package/dist/TextBlockContent.js +2 -0
  139. package/dist/TextBlockContent.js.map +1 -0
  140. package/dist/Tile.d.ts +2 -2
  141. package/dist/Tile.js.map +1 -1
  142. package/dist/TileContent.d.ts +2 -0
  143. package/dist/TileContent.js +2 -0
  144. package/dist/TileContent.js.map +1 -0
  145. package/dist/content-page-repository/transformContentPage.js.map +1 -1
  146. package/dist/content-page-repository/transformPicture.d.ts +1 -1
  147. package/dist/index.d.ts +4 -3
  148. package/dist/index.js.map +1 -1
  149. package/dist/mergeTopItems.d.ts +2 -2
  150. package/dist/mergeTopItems.js.map +1 -1
  151. package/dist/model/BlockVersion.d.ts +1 -0
  152. package/dist/model/BlockVersion.js +2 -0
  153. package/dist/model/BlockVersion.js.map +1 -0
  154. package/dist/model/ButtonVersion.d.ts +1 -0
  155. package/dist/model/ButtonVersion.js +2 -0
  156. package/dist/model/ButtonVersion.js.map +1 -0
  157. package/dist/model/GalleryVersion.d.ts +1 -0
  158. package/dist/model/GalleryVersion.js +2 -0
  159. package/dist/model/GalleryVersion.js.map +1 -0
  160. package/dist/model/LinkContent.d.ts +5 -0
  161. package/dist/model/LinkContent.js +2 -0
  162. package/dist/model/LinkContent.js.map +1 -0
  163. package/dist/model/Picture.d.ts +17 -0
  164. package/dist/model/Picture.js +2 -0
  165. package/dist/model/Picture.js.map +1 -0
  166. package/dist/model/SitemapContent.d.ts +7 -0
  167. package/dist/model/SitemapContent.js +2 -0
  168. package/dist/model/SitemapContent.js.map +1 -0
  169. package/dist/types.d.ts +2 -32
  170. package/dist/ui-kit/ArrowButton.d.ts +2 -6
  171. package/dist/ui-kit/ArrowButton.js +17 -3
  172. package/dist/ui-kit/ArrowButton.js.map +1 -1
  173. package/dist/ui-kit/Breadcrumb.d.ts +1 -1
  174. package/dist/ui-kit/Button.d.ts +2 -8
  175. package/dist/ui-kit/Button.js +11 -5
  176. package/dist/ui-kit/Button.js.map +1 -1
  177. package/dist/ui-kit/ButtonProps.d.ts +21 -0
  178. package/dist/ui-kit/ButtonProps.js +2 -0
  179. package/dist/ui-kit/ButtonProps.js.map +1 -0
  180. package/dist/ui-kit/Icon.d.ts +1 -10
  181. package/dist/ui-kit/Icon.js.map +1 -1
  182. package/dist/ui-kit/IconProps.d.ts +32 -0
  183. package/dist/ui-kit/IconProps.js +26 -0
  184. package/dist/ui-kit/IconProps.js.map +1 -0
  185. package/dist/{Img.d.ts → ui-kit/Img.d.ts} +1 -1
  186. package/dist/{Img.js → ui-kit/Img.js} +0 -0
  187. package/dist/ui-kit/Img.js.map +1 -0
  188. package/dist/ui-kit/SVG.d.ts +2 -0
  189. package/dist/ui-kit/SVG.js +2 -2
  190. package/dist/ui-kit/SVG.js.map +1 -1
  191. package/dist/ui-kit/Title.d.ts +1 -10
  192. package/dist/ui-kit/Title.js +3 -9
  193. package/dist/ui-kit/Title.js.map +1 -1
  194. package/dist/ui-kit/TitleProps.d.ts +10 -0
  195. package/dist/ui-kit/TitleProps.js +10 -0
  196. package/dist/ui-kit/TitleProps.js.map +1 -0
  197. package/dist/ui-kit/TopItem.d.ts +1 -1
  198. package/dist/useLink.d.ts +5 -2
  199. package/dist/useLink.js.map +1 -1
  200. package/dist/useSitemap.d.ts +1 -1
  201. package/lib/BaseTile.d.ts +2 -12
  202. package/lib/BaseTile.js +9 -4
  203. package/lib/BaseTile.js.map +1 -1
  204. package/lib/BaseTileContent.d.ts +13 -0
  205. package/lib/BaseTileContent.js +2 -0
  206. package/lib/BaseTileContent.js.map +1 -0
  207. package/lib/BenefitsBlock.d.ts +1 -10
  208. package/lib/BenefitsBlock.js.map +1 -1
  209. package/lib/BenefitsBlockContent.d.ts +10 -0
  210. package/lib/BenefitsBlockContent.js +2 -0
  211. package/lib/BenefitsBlockContent.js.map +1 -0
  212. package/lib/BlockContent.d.ts +16 -0
  213. package/lib/BlockContent.js +2 -0
  214. package/lib/BlockContent.js.map +1 -0
  215. package/lib/Blocks.d.ts +2 -15
  216. package/lib/Blocks.js +9 -5
  217. package/lib/Blocks.js.map +1 -1
  218. package/lib/ComparisonTable/ComparisonTable.d.ts +5 -0
  219. package/lib/ComparisonTable/ComparisonTable.js +32 -0
  220. package/lib/ComparisonTable/ComparisonTable.js.map +1 -0
  221. package/lib/ComparisonTable/ComparisonTableContent.d.ts +37 -0
  222. package/lib/ComparisonTable/ComparisonTableContent.js +2 -0
  223. package/lib/ComparisonTable/ComparisonTableContent.js.map +1 -0
  224. package/lib/ComparisonTable/HeaderCell.d.ts +10 -0
  225. package/lib/ComparisonTable/HeaderCell.js +9 -0
  226. package/lib/ComparisonTable/HeaderCell.js.map +1 -0
  227. package/lib/ComparisonTable/TableCarouselContainer.d.ts +4 -0
  228. package/lib/ComparisonTable/TableCarouselContainer.js +5 -0
  229. package/lib/ComparisonTable/TableCarouselContainer.js.map +1 -0
  230. package/lib/ComparisonTable/TableCell.d.ts +8 -0
  231. package/lib/ComparisonTable/TableCell.js +10 -0
  232. package/lib/ComparisonTable/TableCell.js.map +1 -0
  233. package/lib/ComparisonTable/TableRow.d.ts +10 -0
  234. package/lib/ComparisonTable/TableRow.js +8 -0
  235. package/lib/ComparisonTable/TableRow.js.map +1 -0
  236. package/lib/ComparisonTable/TableRowContainer.d.ts +4 -0
  237. package/lib/ComparisonTable/TableRowContainer.js +4 -0
  238. package/lib/ComparisonTable/TableRowContainer.js.map +1 -0
  239. package/lib/ComparisonTable/constants.d.ts +6 -0
  240. package/lib/ComparisonTable/constants.js +7 -0
  241. package/lib/ComparisonTable/constants.js.map +1 -0
  242. package/lib/ComparisonTable/index.d.ts +3 -0
  243. package/lib/ComparisonTable/index.js +2 -0
  244. package/lib/ComparisonTable/index.js.map +1 -0
  245. package/lib/ContentPage.d.ts +1 -1
  246. package/lib/ExchangeRateTile.d.ts +1 -3
  247. package/lib/ExchangeRateTile.js +1 -0
  248. package/lib/ExchangeRateTile.js.map +1 -1
  249. package/lib/ExchangeRateTileContent.d.ts +3 -0
  250. package/lib/ExchangeRateTileContent.js +2 -0
  251. package/lib/ExchangeRateTileContent.js.map +1 -0
  252. package/lib/Footer/Contacts.d.ts +2 -1
  253. package/lib/Footer/Contacts.js +1 -1
  254. package/lib/Footer/Contacts.js.map +1 -1
  255. package/lib/Footer/Footer.d.ts +2 -8
  256. package/lib/Footer/Footer.js +1 -1
  257. package/lib/Footer/Footer.js.map +1 -1
  258. package/lib/Footer/Footer.mobile.d.ts +1 -1
  259. package/lib/Footer/FooterContent.d.ts +13 -0
  260. package/lib/Footer/FooterContent.js +2 -0
  261. package/lib/Footer/FooterContent.js.map +1 -0
  262. package/lib/Footer/FooterLink.d.ts +1 -1
  263. package/lib/Footer/Sitemap.d.ts +2 -1
  264. package/lib/Footer/Sitemap.js.map +1 -1
  265. package/lib/Footer/SocialMedia.d.ts +2 -1
  266. package/lib/Footer/SocialMedia.js +4 -1
  267. package/lib/Footer/SocialMedia.js.map +1 -1
  268. package/lib/Gallery.d.ts +2 -13
  269. package/lib/Gallery.js +3 -33
  270. package/lib/Gallery.js.map +1 -1
  271. package/lib/Gallery.mobile.d.ts +1 -1
  272. package/lib/Gallery.mobile.js +1 -1
  273. package/lib/Gallery.mobile.js.map +1 -1
  274. package/lib/GalleryContent.d.ts +13 -0
  275. package/lib/GalleryContent.js +2 -0
  276. package/lib/GalleryContent.js.map +1 -0
  277. package/lib/GalleryInner.d.ts +7 -0
  278. package/lib/GalleryInner.js +44 -0
  279. package/lib/GalleryInner.js.map +1 -0
  280. package/lib/Header/HeaderContent.d.ts +2 -3
  281. package/lib/Header/isSubItemActive.d.ts +1 -1
  282. package/lib/Header/isTopItemActive.d.ts +1 -1
  283. package/lib/MiniGallery.d.ts +5 -0
  284. package/lib/MiniGallery.js +5 -0
  285. package/lib/MiniGallery.js.map +1 -0
  286. package/lib/MobileAppTile.d.ts +1 -9
  287. package/lib/MobileAppTile.js.map +1 -1
  288. package/lib/MobileAppTileContent.d.ts +9 -0
  289. package/lib/MobileAppTileContent.js +2 -0
  290. package/lib/MobileAppTileContent.js.map +1 -0
  291. package/lib/MobileBlocks.js +1 -1
  292. package/lib/MobileBlocks.js.map +1 -1
  293. package/lib/Placeholder.d.ts +1 -3
  294. package/lib/Placeholder.js.map +1 -1
  295. package/lib/PlaceholderContent.d.ts +3 -0
  296. package/lib/PlaceholderContent.js +2 -0
  297. package/lib/PlaceholderContent.js.map +1 -0
  298. package/lib/ProductBlock.d.ts +2 -4
  299. package/lib/ProductBlock.js.map +1 -1
  300. package/lib/ProductBlock.mobile.d.ts +1 -1
  301. package/lib/ProductBlock.mobile.js.map +1 -1
  302. package/lib/ProductBlockContent.d.ts +5 -0
  303. package/lib/ProductBlockContent.js +2 -0
  304. package/lib/ProductBlockContent.js.map +1 -0
  305. package/lib/ProductBlockInner.d.ts +1 -5
  306. package/lib/ProductBlockInner.js +3 -3
  307. package/lib/ProductBlockInner.js.map +1 -1
  308. package/lib/ProductBlockInnerContent.d.ts +5 -0
  309. package/lib/ProductBlockInnerContent.js +2 -0
  310. package/lib/ProductBlockInnerContent.js.map +1 -0
  311. package/lib/ProductGallery.d.ts +1 -14
  312. package/lib/ProductGallery.js.map +1 -1
  313. package/lib/ProductGalleryContent.d.ts +14 -0
  314. package/lib/ProductGalleryContent.js +2 -0
  315. package/lib/ProductGalleryContent.js.map +1 -0
  316. package/lib/ProductTile.d.ts +1 -5
  317. package/lib/ProductTile.js.map +1 -1
  318. package/lib/ProductTileContent.d.ts +5 -0
  319. package/lib/ProductTileContent.js +2 -0
  320. package/lib/ProductTileContent.js.map +1 -0
  321. package/lib/PromoTile.d.ts +1 -4
  322. package/lib/PromoTile.js.map +1 -1
  323. package/lib/PromoTileContent.d.ts +4 -0
  324. package/lib/PromoTileContent.js +2 -0
  325. package/lib/PromoTileContent.js.map +1 -0
  326. package/lib/StepsBlock.d.ts +1 -10
  327. package/lib/StepsBlock.js.map +1 -1
  328. package/lib/StepsBlockContent.d.ts +10 -0
  329. package/lib/StepsBlockContent.js +2 -0
  330. package/lib/StepsBlockContent.js.map +1 -0
  331. package/lib/TextBlock.d.ts +2 -11
  332. package/lib/TextBlock.js +4 -4
  333. package/lib/TextBlock.js.map +1 -1
  334. package/lib/TextBlockContent.d.ts +10 -0
  335. package/lib/TextBlockContent.js +2 -0
  336. package/lib/TextBlockContent.js.map +1 -0
  337. package/lib/Tile.d.ts +2 -2
  338. package/lib/Tile.js.map +1 -1
  339. package/lib/TileContent.d.ts +2 -0
  340. package/lib/TileContent.js +2 -0
  341. package/lib/TileContent.js.map +1 -0
  342. package/lib/common.css +1 -1
  343. package/lib/content-page-repository/transformContentPage.js.map +1 -1
  344. package/lib/content-page-repository/transformPicture.d.ts +1 -1
  345. package/lib/index.d.ts +4 -3
  346. package/lib/index.js.map +1 -1
  347. package/lib/mergeTopItems.d.ts +2 -2
  348. package/lib/mergeTopItems.js.map +1 -1
  349. package/lib/model/BlockVersion.d.ts +1 -0
  350. package/lib/model/BlockVersion.js +2 -0
  351. package/lib/model/BlockVersion.js.map +1 -0
  352. package/lib/model/ButtonVersion.d.ts +1 -0
  353. package/lib/model/ButtonVersion.js +2 -0
  354. package/lib/model/ButtonVersion.js.map +1 -0
  355. package/lib/model/GalleryVersion.d.ts +1 -0
  356. package/lib/model/GalleryVersion.js +2 -0
  357. package/lib/model/GalleryVersion.js.map +1 -0
  358. package/lib/model/LinkContent.d.ts +5 -0
  359. package/lib/model/LinkContent.js +2 -0
  360. package/lib/model/LinkContent.js.map +1 -0
  361. package/lib/model/Picture.d.ts +17 -0
  362. package/lib/model/Picture.js +2 -0
  363. package/lib/model/Picture.js.map +1 -0
  364. package/lib/model/SitemapContent.d.ts +7 -0
  365. package/lib/model/SitemapContent.js +2 -0
  366. package/lib/model/SitemapContent.js.map +1 -0
  367. package/lib/types.d.ts +2 -32
  368. package/lib/ui-kit/ArrowButton.d.ts +2 -6
  369. package/lib/ui-kit/ArrowButton.js +18 -4
  370. package/lib/ui-kit/ArrowButton.js.map +1 -1
  371. package/lib/ui-kit/Breadcrumb.d.ts +1 -1
  372. package/lib/ui-kit/Button.d.ts +2 -8
  373. package/lib/ui-kit/Button.js +11 -5
  374. package/lib/ui-kit/Button.js.map +1 -1
  375. package/lib/ui-kit/ButtonProps.d.ts +21 -0
  376. package/lib/ui-kit/ButtonProps.js +2 -0
  377. package/lib/ui-kit/ButtonProps.js.map +1 -0
  378. package/lib/ui-kit/Icon.d.ts +1 -10
  379. package/lib/ui-kit/Icon.js.map +1 -1
  380. package/lib/ui-kit/IconProps.d.ts +32 -0
  381. package/lib/ui-kit/IconProps.js +24 -0
  382. package/lib/ui-kit/IconProps.js.map +1 -0
  383. package/lib/{Img.d.ts → ui-kit/Img.d.ts} +1 -1
  384. package/lib/{Img.js → ui-kit/Img.js} +0 -0
  385. package/lib/ui-kit/Img.js.map +1 -0
  386. package/lib/ui-kit/SVG.d.ts +2 -0
  387. package/lib/ui-kit/SVG.js +2 -2
  388. package/lib/ui-kit/SVG.js.map +1 -1
  389. package/lib/ui-kit/Title.d.ts +1 -10
  390. package/lib/ui-kit/Title.js +1 -7
  391. package/lib/ui-kit/Title.js.map +1 -1
  392. package/lib/ui-kit/TitleProps.d.ts +10 -0
  393. package/lib/ui-kit/TitleProps.js +8 -0
  394. package/lib/ui-kit/TitleProps.js.map +1 -0
  395. package/lib/ui-kit/TopItem.d.ts +1 -1
  396. package/lib/useLink.d.ts +5 -2
  397. package/lib/useLink.js.map +1 -1
  398. package/lib/useSitemap.d.ts +1 -1
  399. package/package.json +5 -2
  400. package/src/BaseTile.tsx +21 -17
  401. package/src/BaseTileContent.ts +14 -0
  402. package/src/BenefitsBlock.tsx +2 -12
  403. package/src/BenefitsBlockContent.ts +12 -0
  404. package/src/BlockContent.ts +32 -0
  405. package/src/Blocks.ts +16 -30
  406. package/src/ComparisonTable/ComparisonTable.fixture.tsx +265 -0
  407. package/src/ComparisonTable/ComparisonTable.tsx +126 -0
  408. package/src/ComparisonTable/ComparisonTableContent.ts +43 -0
  409. package/src/ComparisonTable/HeaderCell.tsx +50 -0
  410. package/src/ComparisonTable/TableCarouselContainer.tsx +19 -0
  411. package/src/ComparisonTable/TableCell.tsx +43 -0
  412. package/src/ComparisonTable/TableRow.tsx +44 -0
  413. package/src/ComparisonTable/TableRowContainer.tsx +7 -0
  414. package/src/ComparisonTable/constants.ts +6 -0
  415. package/src/ComparisonTable/index.ts +3 -0
  416. package/src/ContentPage.page.json +463 -1
  417. package/src/ContentPage.tsx +1 -1
  418. package/src/ExchangeRateTile.tsx +3 -5
  419. package/src/ExchangeRateTileContent.ts +3 -0
  420. package/src/Footer/Contacts.tsx +3 -1
  421. package/src/Footer/Footer.mobile.tsx +1 -1
  422. package/src/Footer/Footer.tsx +3 -10
  423. package/src/Footer/FooterContent.ts +15 -0
  424. package/src/Footer/FooterLink.ts +1 -1
  425. package/src/Footer/HorizontalNavigation.tsx +2 -2
  426. package/src/Footer/Sitemap.tsx +3 -2
  427. package/src/Footer/SocialMedia.tsx +13 -7
  428. package/src/Footer/TextInformation.tsx +1 -1
  429. package/src/Gallery.fixture.tsx +1 -1
  430. package/src/Gallery.mobile.tsx +3 -2
  431. package/src/Gallery.tsx +4 -133
  432. package/src/GalleryContent.ts +15 -0
  433. package/src/GalleryInner.tsx +135 -0
  434. package/src/Header/HeaderContent.ts +2 -3
  435. package/src/Header/isSubItemActive.ts +1 -1
  436. package/src/Header/isTopItemActive.ts +1 -1
  437. package/src/MiniGallery.fixture.tsx +90 -0
  438. package/src/MiniGallery.tsx +10 -0
  439. package/src/MobileAppTile.tsx +1 -11
  440. package/src/MobileAppTileContent.ts +11 -0
  441. package/src/MobileBlocks.ts +1 -1
  442. package/src/Placeholder.tsx +1 -4
  443. package/src/PlaceholderContent.ts +3 -0
  444. package/src/ProductBlock.fixture.tsx +1 -1
  445. package/src/ProductBlock.mobile.tsx +1 -1
  446. package/src/ProductBlock.tsx +3 -5
  447. package/src/ProductBlockContent.ts +6 -0
  448. package/src/ProductBlockInner.tsx +5 -9
  449. package/src/ProductBlockInnerContent.ts +6 -0
  450. package/src/ProductGallery.fixture.tsx +1 -1
  451. package/src/ProductGallery.tsx +2 -16
  452. package/src/ProductGalleryContent.ts +16 -0
  453. package/src/ProductTile.fixture.tsx +1 -1
  454. package/src/ProductTile.tsx +3 -7
  455. package/src/ProductTileContent.ts +6 -0
  456. package/src/PromoTile.tsx +1 -5
  457. package/src/PromoTileContent.ts +5 -0
  458. package/src/StepsBlock.tsx +2 -12
  459. package/src/StepsBlockContent.ts +12 -0
  460. package/src/TextBlock.fixture.tsx +1 -1
  461. package/src/TextBlock.tsx +9 -16
  462. package/src/TextBlockContent.ts +12 -0
  463. package/src/Tile.fixture.tsx +1 -1
  464. package/src/Tile.tsx +4 -3
  465. package/src/TileContent.ts +3 -0
  466. package/src/common.css +6 -0
  467. package/src/content-page-repository/transformContentPage.ts +2 -1
  468. package/src/content-page-repository/transformPicture.ts +1 -1
  469. package/src/icons/AppleIcon.svg +1 -13
  470. package/src/icons/GlassIcon.svg +1 -0
  471. package/src/icons/PlayMarketIcon.svg +1 -6
  472. package/src/index.ts +4 -11
  473. package/src/mergeTopItems.ts +5 -5
  474. package/src/model/BlockVersion.ts +1 -0
  475. package/src/model/ButtonVersion.ts +1 -0
  476. package/src/model/GalleryVersion.ts +1 -0
  477. package/src/model/LinkContent.ts +5 -0
  478. package/src/model/Picture.ts +19 -0
  479. package/src/model/SitemapContent.ts +9 -0
  480. package/src/types.ts +2 -56
  481. package/src/ui-kit/ArrowButton.tsx +29 -30
  482. package/src/ui-kit/Breadcrumb.tsx +1 -1
  483. package/src/ui-kit/Button.fixture.tsx +33 -5
  484. package/src/ui-kit/Button.tsx +42 -25
  485. package/src/ui-kit/ButtonProps.ts +24 -0
  486. package/src/ui-kit/Icon.fixture.tsx +22 -0
  487. package/src/ui-kit/Icon.tsx +1 -32
  488. package/src/ui-kit/IconProps.ts +34 -0
  489. package/src/{Img.tsx → ui-kit/Img.tsx} +1 -1
  490. package/src/ui-kit/SVG.tsx +11 -2
  491. package/src/ui-kit/Title.tsx +1 -13
  492. package/src/ui-kit/TitleProps.ts +12 -0
  493. package/src/ui-kit/TopItem.tsx +1 -1
  494. package/src/useLink.ts +2 -2
  495. package/src/useSitemap.ts +1 -1
  496. package/dist/Footer/index.d.ts +0 -2
  497. package/dist/Footer/index.js +0 -5
  498. package/dist/Footer/index.js.map +0 -1
  499. package/dist/Header/index.d.ts +0 -3
  500. package/dist/Header/index.js +0 -5
  501. package/dist/Header/index.js.map +0 -1
  502. package/dist/Img.js.map +0 -1
  503. package/dist/ui-kit/IconButton.d.ts +0 -7
  504. package/dist/ui-kit/IconButton.js +0 -10
  505. package/dist/ui-kit/IconButton.js.map +0 -1
  506. package/lib/Footer/index.d.ts +0 -2
  507. package/lib/Footer/index.js +0 -2
  508. package/lib/Footer/index.js.map +0 -1
  509. package/lib/Header/index.d.ts +0 -3
  510. package/lib/Header/index.js +0 -2
  511. package/lib/Header/index.js.map +0 -1
  512. package/lib/Img.js.map +0 -1
  513. package/lib/ui-kit/IconButton.d.ts +0 -7
  514. package/lib/ui-kit/IconButton.js +0 -8
  515. package/lib/ui-kit/IconButton.js.map +0 -1
  516. package/src/Footer/index.ts +0 -2
  517. package/src/Header/index.ts +0 -3
  518. package/src/ui-kit/IconButton.tsx +0 -27
@@ -819,7 +819,469 @@
819
819
  ]
820
820
  }
821
821
  },
822
-
822
+ {
823
+ "type": "MiniGallery",
824
+ "style": ["col-span-12"],
825
+ "content": {
826
+ "title": "Вы можете оплатить бонусными баллами",
827
+ "description": "Удобный каталог с большим ассортиментом товаров и сервисов",
828
+ "cards": [
829
+ {
830
+ "image": {
831
+ "src": "domovoj-kupon.png",
832
+ "title": "Деньги",
833
+ "format": "webp",
834
+ "size": {
835
+ "width": 120,
836
+ "height": 70
837
+ }
838
+ },
839
+ "title": "Более 5000 товаров",
840
+ "description": "Время копить: ставка растет в зависимости от срока нахождения средств на Счете!"
841
+ },
842
+ {
843
+ "image": {
844
+ "src": "domovoj-kupon.png",
845
+ "title": "Деньги",
846
+ "format": "webp",
847
+ "size": {
848
+ "width": 120,
849
+ "height": 70
850
+ }
851
+ },
852
+ "title": "Более 1000 развлечений",
853
+ "description": "Порядок и условия предоставления в соответствии с 106 ФЗ"
854
+ },
855
+ {
856
+ "image": {
857
+ "src": "domovoj-kupon.png",
858
+ "title": "Деньги",
859
+ "format": "webp",
860
+ "size": {
861
+ "width": 120,
862
+ "height": 70
863
+ }
864
+ },
865
+ "title": "Фермерские продукты",
866
+ "description": "Высокий процент даже при небольшой сумме денежных средств"
867
+ },
868
+ {
869
+ "image": {
870
+ "src": "domovoj-kupon.png",
871
+ "title": "Деньги",
872
+ "format": "webp",
873
+ "size": {
874
+ "width": 120,
875
+ "height": 70
876
+ }
877
+ },
878
+ "title": "«Моя выгода»",
879
+ "description": "Время копить: ставка растет в зависимости от срока нахождения средств на Счете!"
880
+ },
881
+ {
882
+ "image": {
883
+ "src": "domovoj-kupon.png",
884
+ "title": "Деньги",
885
+ "format": "webp",
886
+ "size": {
887
+ "width": 120,
888
+ "height": 70
889
+ }
890
+ },
891
+ "title": "Фермерские продукты",
892
+ "description": "Высокий процент даже при небольшой сумме денежных средств"
893
+ }
894
+ ]
895
+ }
896
+ },
897
+ {
898
+ "type": "ComparisonTable",
899
+ "style": ["col-span-12"],
900
+ "content": {
901
+ "title": "Другие вклады и сбережения",
902
+ "rowHeaders": [
903
+ {
904
+ "title": "Начисление процентов на остаток по счету"
905
+ },
906
+ {
907
+ "title": "Снятие наличных"
908
+ },
909
+ {
910
+ "title": "Оформление онлайн"
911
+ },
912
+ {
913
+ "title": "Кэшбэк баллами"
914
+ },
915
+ {
916
+ "title": "Стоимость обслуживания"
917
+ },
918
+ {
919
+ "title": "Стоимость SMS-сервиса"
920
+ },
921
+ {
922
+ "title": "Дополнительная информация"
923
+ }
924
+ ],
925
+ "columns": [
926
+ {
927
+ "header": {
928
+ "title": "Россельхоз-Росснефть",
929
+ "image": {
930
+ "alt": "card-1",
931
+ "src": "card-1.png",
932
+ "format": "webp",
933
+ "size": {
934
+ "width": 100,
935
+ "height": 63
936
+ }
937
+ },
938
+ "link": {
939
+ "text": "Подробнее",
940
+ "href": "/credits"
941
+ }
942
+ },
943
+ "data": [
944
+ [
945
+ {
946
+ "label": "Нет"
947
+ }
948
+ ],
949
+ [
950
+ {
951
+ "label": "Бесплатно",
952
+ "description": "В банкоматах и кассах Россельхозбанка и банков-партнеров"
953
+ },
954
+ {
955
+ "label": "Бесплатно",
956
+ "description": "В сторонних банкоматах - 1 раз в месяц, далее 1% минимум 150 руб"
957
+ }
958
+ ],
959
+ [
960
+ {
961
+ "label": "Нет"
962
+ }
963
+ ],
964
+ [
965
+ {
966
+ "label": "До 7%"
967
+ }
968
+ ],
969
+ [
970
+ {
971
+ "label": "Бесплатно",
972
+ "description": "При обороте по карте от 10000 ₽ в месяц"
973
+ }
974
+ ],
975
+ [
976
+ {
977
+ "label": "69 рублей в месяц"
978
+ }
979
+ ],
980
+ [
981
+ {
982
+ "description": "Оплачивайте покупки картой и заправляйтесь за баллы в сети АЗС Роснефть"
983
+ }
984
+ ]
985
+ ]
986
+ },
987
+ {
988
+ "header": {
989
+ "title": "Panasonic",
990
+ "image": {
991
+ "alt": "card-2",
992
+ "src": "card-2.png",
993
+ "format": "webp",
994
+ "size": {
995
+ "width": 100,
996
+ "height": 63
997
+ }
998
+ },
999
+ "link": {
1000
+ "text": "Подробнее",
1001
+ "href": "/credits"
1002
+ }
1003
+ },
1004
+ "data": [
1005
+ [
1006
+ {
1007
+ "label": "Нет"
1008
+ }
1009
+ ],
1010
+ [
1011
+ {
1012
+ "label": "Бесплатно",
1013
+ "description": "В банкоматах и кассах Россельхозбанка и банков-партнеров"
1014
+ },
1015
+ {
1016
+ "label": "1%",
1017
+ "description": "В сторонних банкоматах, минимум 150 руб"
1018
+ }
1019
+ ],
1020
+ [
1021
+ {
1022
+ "label": "Нет"
1023
+ }
1024
+ ],
1025
+ [
1026
+ {
1027
+ "label": "До 20%"
1028
+ }
1029
+ ],
1030
+ [
1031
+ {
1032
+ "label": "Бесплатно",
1033
+ "description": "При обороте по карте от 10000 ₽ в месяц"
1034
+ }
1035
+ ],
1036
+ [
1037
+ {
1038
+ "label": "69 рублей в месяц"
1039
+ }
1040
+ ],
1041
+ [
1042
+ {
1043
+ "description": "Копите баллы каждый день и обменивайте их на скидки на электронику и бытовую технику Panasonic"
1044
+ }
1045
+ ]
1046
+ ]
1047
+ },
1048
+ {
1049
+ "header": {
1050
+ "title": "Профсоюзная",
1051
+ "image": {
1052
+ "alt": "card-3",
1053
+ "src": "card-3.png",
1054
+ "format": "webp",
1055
+ "size": {
1056
+ "width": 100,
1057
+ "height": 63
1058
+ }
1059
+ },
1060
+ "link": {
1061
+ "text": "Подробнее",
1062
+ "href": "/credits"
1063
+ }
1064
+ },
1065
+ "data": [
1066
+ [
1067
+ {
1068
+ "label": "Нет"
1069
+ }
1070
+ ],
1071
+ [
1072
+ {
1073
+ "label": "Бесплатно"
1074
+ }
1075
+ ],
1076
+ [
1077
+ {
1078
+ "label": "Есть"
1079
+ }
1080
+ ],
1081
+ [
1082
+ {
1083
+ "label": "До 20%"
1084
+ }
1085
+ ],
1086
+ [
1087
+ {
1088
+ "label": "Бесплатно",
1089
+ "description": "При обороте по карте от 10000 ₽ в месяц"
1090
+ }
1091
+ ],
1092
+ [
1093
+ {
1094
+ "label": "69 рублей в месяц"
1095
+ }
1096
+ ],
1097
+ [
1098
+ {
1099
+ "description": "Для членов профсоюзных организаций"
1100
+ }
1101
+ ]
1102
+ ]
1103
+ },
1104
+ {
1105
+ "header": {
1106
+ "title": "Россельхоз-Росснефть",
1107
+ "image": {
1108
+ "alt": "card-1",
1109
+ "src": "card-1.png",
1110
+ "format": "webp",
1111
+ "size": {
1112
+ "width": 100,
1113
+ "height": 63
1114
+ }
1115
+ },
1116
+ "link": {
1117
+ "text": "Подробнее",
1118
+ "href": "/credits"
1119
+ }
1120
+ },
1121
+ "data": [
1122
+ [
1123
+ {
1124
+ "label": "Нет"
1125
+ }
1126
+ ],
1127
+ [
1128
+ {
1129
+ "label": "Бесплатно",
1130
+ "description": "В банкоматах и кассах Россельхозбанка и банков-партнеров"
1131
+ },
1132
+ {
1133
+ "label": "Бесплатно",
1134
+ "description": "В сторонних банкоматах - 1 раз в месяц, далее 1% минимум 150 руб"
1135
+ }
1136
+ ],
1137
+ [
1138
+ {
1139
+ "label": "Нет"
1140
+ }
1141
+ ],
1142
+ [
1143
+ {
1144
+ "label": "До 7%"
1145
+ }
1146
+ ],
1147
+ [
1148
+ {
1149
+ "label": "Бесплатно",
1150
+ "description": "При обороте по карте от 10000 ₽ в месяц"
1151
+ }
1152
+ ],
1153
+ [
1154
+ {
1155
+ "label": "69 рублей в месяц"
1156
+ }
1157
+ ],
1158
+ [
1159
+ {
1160
+ "description": "Оплачивайте покупки картой и заправляйтесь за баллы в сети АЗС Роснефть"
1161
+ }
1162
+ ]
1163
+ ]
1164
+ },
1165
+ {
1166
+ "header": {
1167
+ "title": "Panasonic",
1168
+ "image": {
1169
+ "alt": "card-2",
1170
+ "src": "card-2.png",
1171
+ "format": "webp",
1172
+ "size": {
1173
+ "width": 100,
1174
+ "height": 63
1175
+ }
1176
+ },
1177
+ "link": {
1178
+ "text": "Подробнее",
1179
+ "href": "/credits"
1180
+ }
1181
+ },
1182
+ "data": [
1183
+ [
1184
+ {
1185
+ "label": "Нет"
1186
+ }
1187
+ ],
1188
+ [
1189
+ {
1190
+ "label": "Бесплатно",
1191
+ "description": "В банкоматах и кассах Россельхозбанка и банков-партнеров"
1192
+ },
1193
+ {
1194
+ "label": "1%",
1195
+ "description": "В сторонних банкоматах, минимум 150 руб"
1196
+ }
1197
+ ],
1198
+ [
1199
+ {
1200
+ "label": "Нет"
1201
+ }
1202
+ ],
1203
+ [
1204
+ {
1205
+ "label": "До 20%"
1206
+ }
1207
+ ],
1208
+ [
1209
+ {
1210
+ "label": "Бесплатно",
1211
+ "description": "При обороте по карте от 10000 ₽ в месяц"
1212
+ }
1213
+ ],
1214
+ [
1215
+ {
1216
+ "label": "69 рублей в месяц"
1217
+ }
1218
+ ],
1219
+ [
1220
+ {
1221
+ "description": "Копите баллы каждый день и обменивайте их на скидки на электронику и бытовую технику Panasonic"
1222
+ }
1223
+ ]
1224
+ ]
1225
+ },
1226
+ {
1227
+ "header": {
1228
+ "title": "Профсоюзная",
1229
+ "image": {
1230
+ "alt": "card-3",
1231
+ "src": "card-3.png",
1232
+ "format": "webp",
1233
+ "size": {
1234
+ "width": 100,
1235
+ "height": 63
1236
+ }
1237
+ },
1238
+ "link": {
1239
+ "text": "Подробнее",
1240
+ "href": "/credits"
1241
+ }
1242
+ },
1243
+ "data": [
1244
+ [
1245
+ {
1246
+ "label": "Нет"
1247
+ }
1248
+ ],
1249
+ [
1250
+ {
1251
+ "label": "Бесплатно"
1252
+ }
1253
+ ],
1254
+ [
1255
+ {
1256
+ "label": "Есть"
1257
+ }
1258
+ ],
1259
+ [
1260
+ {
1261
+ "label": "До 20%"
1262
+ }
1263
+ ],
1264
+ [
1265
+ {
1266
+ "label": "Бесплатно",
1267
+ "description": "При обороте по карте от 10000 ₽ в месяц"
1268
+ }
1269
+ ],
1270
+ [
1271
+ {
1272
+ "label": "69 рублей в месяц"
1273
+ }
1274
+ ],
1275
+ [
1276
+ {
1277
+ "description": "Для членов профсоюзных организаций"
1278
+ }
1279
+ ]
1280
+ ]
1281
+ }
1282
+ ]
1283
+ }
1284
+ },
823
1285
  {
824
1286
  "type": "Footer",
825
1287
  "style": ["col-span-12"],
@@ -1,5 +1,5 @@
1
1
  import { JSX, PropsWithChildren } from '@redneckz/uni-jsx';
2
- import type { BlockContent } from './Blocks';
2
+ import type { BlockContent } from './BlockContent';
3
3
  import { LikeControl } from './LikeControl';
4
4
  import { Placeholder } from './Placeholder';
5
5
  import type { BlockDef, ContentPageDef, UniBlockProps } from './types';
@@ -1,13 +1,10 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import type { ExchangeRateTileContent } from './ExchangeRateTileContent';
2
3
  import { Tile } from './Tile';
3
4
  import type { UniBlockProps } from './types';
4
- import { ButtonProps } from './ui-kit/Button';
5
+ import type { ButtonProps } from './ui-kit/ButtonProps';
5
6
  import { Icon } from './ui-kit/Icon';
6
7
 
7
- export interface ExchangeRateTileContent {
8
- title?: string;
9
- }
10
-
11
8
  export interface ExchangeRateTileProps extends ExchangeRateTileContent, UniBlockProps {}
12
9
 
13
10
  const CBR_EXCHANGE_RATE_URL = 'https://www.cbr-xml-daily.ru/daily_json.js';
@@ -22,6 +19,7 @@ const buttons: ButtonProps[] = [
22
19
  {
23
20
  text: 'Все показатели',
24
21
  href: 'https://cbr.ru/currency_base/daily/',
22
+ version: 'secondary',
25
23
  },
26
24
  ];
27
25
 
@@ -0,0 +1,3 @@
1
+ export interface ExchangeRateTileContent {
2
+ title?: string;
3
+ }
@@ -1,7 +1,8 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { UniBlockProps, ContactInfo } from '../types';
2
+ import type { UniBlockProps } from '../types';
3
3
  import { Button } from '../ui-kit/Button';
4
4
  import { useLink } from '../useLink';
5
+ import type { ContactInfo } from './FooterContent';
5
6
 
6
7
  export interface ContactsProps extends UniBlockProps {
7
8
  items?: ContactInfo[];
@@ -17,6 +18,7 @@ export const Contacts = JSX<ContactsProps>(({ className, items, hasButton, conte
17
18
  {items?.length ? items.map(renderContact) : null}
18
19
  {hasButton ? (
19
20
  <Button
21
+ version="primary"
20
22
  className="my-4"
21
23
  {...useLink(
22
24
  { router, handlerDecorator },
@@ -1,6 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { UniBlockProps } from '../types';
3
- import type { FooterContent } from './Footer';
3
+ import type { FooterContent } from './FooterContent';
4
4
  import { TextInformation } from './TextInformation';
5
5
 
6
6
  export interface FooterProps extends FooterContent, UniBlockProps {}
@@ -1,24 +1,17 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import type { UniBlockProps } from '../types';
2
3
  import { Logo } from '../ui-kit/Logo';
3
4
  import { SearchBar } from '../ui-kit/SearchBar';
4
5
  import { Contacts } from './Contacts';
6
+ import type { FooterContent } from './FooterContent';
7
+ import { HorizontalNavigation } from './HorizontalNavigation';
5
8
  import { Sitemap } from './Sitemap';
6
9
  import { SocialMedia } from './SocialMedia';
7
- import { HorizontalNavigation } from './HorizontalNavigation';
8
10
  import { TextInformation } from './TextInformation';
9
- import type { LinkContent, UniBlockProps, ContactInfo, TopMenuItem } from '../types';
10
11
 
11
12
  const LEFT_COL_WIDTH_FULL_HD = 'w-[280px]';
12
13
  const LEFT_COL_WIDTH_SMALL_DESKTOP = 'xl:w-[220px]';
13
14
 
14
- export interface FooterContent {
15
- documents?: LinkContent[];
16
- relatedEnterprises?: LinkContent[];
17
- contacts?: ContactInfo[];
18
- socialMedia?: Omit<LinkContent, 'text'>[];
19
- topItems?: TopMenuItem[];
20
- }
21
-
22
15
  export interface FooterProps extends FooterContent, UniBlockProps {}
23
16
 
24
17
  export const Footer = JSX<FooterProps>(
@@ -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,7 +1,10 @@
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';
7
+ import { Button } from '../ui-kit/Button';
5
8
 
6
9
  const ICONS_MAP: Array<{ origins: string[]; icon: IconName; label: string }> = [
7
10
  { origins: ['t.me', 'telegram.org'], icon: 'TelegramIcon', label: 'Телеграм' },
@@ -32,15 +35,18 @@ interface MediaButtonProps {
32
35
  const MediaButton = JSX<MediaButtonProps>(({ href }) => {
33
36
  const { icon, label } =
34
37
  ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
38
+
39
+ if (!icon) return null;
40
+
35
41
  return (
36
- <a
37
- className="flex items-center justify-center border-solid border border-main-divider rounded-full no-underline outline-none w-9 h-9"
42
+ <Button
43
+ rounded
38
44
  href={href}
39
45
  target="_blank"
40
46
  rel="noopener noreferrer"
41
47
  aria-label={label}
42
- >
43
- {icon && <Icon className="block" name={icon} /> /* TODO width & height */}
44
- </a>
48
+ className="border-solid border border-main-divider w-9 h-9 flex items-center justify-center hover:text-primary-main"
49
+ appendLeft={<Icon name={icon} />}
50
+ />
45
51
  );
46
52
  });
@@ -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 type { Picture } from './model/Picture';
6
6
 
7
7
  const image: Picture = {
8
8
  src: 'money-1.png',
@@ -1,8 +1,9 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { GalleryCard, GalleryProps } from './Gallery';
3
- import { Img } from './Img';
2
+ import type { GalleryProps } from './Gallery';
3
+ import type { GalleryCard } from './GalleryContent';
4
4
  import { BlockItem } from './ui-kit/BlockItem';
5
5
  import { Button } from './ui-kit/Button';
6
+ import { Img } from './ui-kit/Img';
6
7
  import { Title } from './ui-kit/Title';
7
8
 
8
9
  export const Gallery = JSX<GalleryProps>(({ title, description, cards = [], className }) => {