@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
package/src/PromoTile.tsx CHANGED
@@ -1,12 +1,8 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { BaseTileContent } from './BaseTile';
2
+ import type { PromoTileContent } from './PromoTileContent';
3
3
  import { Tile } from './Tile';
4
4
  import type { UniBlockProps } from './types';
5
5
 
6
- export interface PromoTileContent extends BaseTileContent {
7
- date?: string;
8
- }
9
-
10
6
  export interface PromoTileProps extends PromoTileContent, UniBlockProps {}
11
7
 
12
8
  export const PromoTile = JSX<PromoTileProps>(
@@ -0,0 +1,5 @@
1
+ import type { BaseTileContent } from './BaseTileContent';
2
+
3
+ export interface PromoTileContent extends BaseTileContent {
4
+ date?: string;
5
+ }
@@ -1,20 +1,10 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import type { Step, StepsBlockContent } from './StepsBlockContent';
2
3
  import type { UniBlockProps } from './types';
3
- import { Icon, IconName } from './ui-kit/Icon';
4
+ import { Icon } from './ui-kit/Icon';
4
5
  import { Title } from './ui-kit/Title';
5
6
  import { joinList } from './utils/joinList';
6
7
 
7
- export interface Step {
8
- label: string;
9
- description?: string;
10
- icon?: IconName;
11
- }
12
-
13
- export interface StepsBlockContent {
14
- title?: string;
15
- steps?: Step[];
16
- }
17
-
18
8
  export interface StepsBlockProps extends StepsBlockContent, UniBlockProps {}
19
9
 
20
10
  export const StepsBlock = JSX<StepsBlockProps>(({ className, title, steps }) => {
@@ -0,0 +1,12 @@
1
+ import type { IconName } from './ui-kit/IconProps';
2
+
3
+ export interface Step {
4
+ label: string;
5
+ description?: string;
6
+ icon?: IconName;
7
+ }
8
+
9
+ export interface StepsBlockContent {
10
+ title?: string;
11
+ steps?: Step[];
12
+ }
@@ -1,6 +1,6 @@
1
1
  import { context } from './setup-fixture';
2
2
  import { TextBlock } from './TextBlock';
3
- import { Picture } from './types';
3
+ import type { Picture } from './model/Picture';
4
4
 
5
5
  const image: Picture = {
6
6
  src: 'bank-card.png',
package/src/TextBlock.tsx CHANGED
@@ -1,17 +1,8 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { UniBlockProps, Picture } from './types';
3
- import { Img } from './Img';
4
-
5
- type TextBlockVersion = 'primary' | 'secondary' | 'secondary-light';
6
- type TextBlockIconVersion = 'none' | 'small' | 'big';
7
-
8
- export interface TextBlockContent {
9
- title?: string;
10
- description?: string;
11
- blockVersion?: TextBlockVersion;
12
- iconVersion?: TextBlockIconVersion;
13
- image?: Picture;
14
- }
2
+ import type { Picture } from './model/Picture';
3
+ import type { TextBlockContent, TextBlockVersion } from './TextBlockContent';
4
+ import type { UniBlockProps } from './types';
5
+ import { Img } from './ui-kit/Img';
15
6
 
16
7
  export interface TextBlockProps extends TextBlockContent, UniBlockProps {}
17
8
 
@@ -22,7 +13,7 @@ const textBlockStyleMaps: Record<
22
13
  primary: {
23
14
  background: 'bg-white',
24
15
  icon: 'bg-primary-main text-white',
25
- title: 'text-base',
16
+ title: 'text-primary-text',
26
17
  description: 'text-secondary-text',
27
18
  },
28
19
  secondary: {
@@ -34,7 +25,7 @@ const textBlockStyleMaps: Record<
34
25
  'secondary-light': {
35
26
  background: 'bg-primary-main/10',
36
27
  icon: 'bg-primary-main text-white',
37
- title: 'text-base',
28
+ title: 'text-primary-text',
38
29
  description: 'text-secondary-text',
39
30
  },
40
31
  };
@@ -49,7 +40,9 @@ export const TextBlock = JSX<TextBlockProps>(
49
40
  {iconVersion && iconVersion === 'small' ? renderIcon(textBlockStyleMap.icon) : null}
50
41
  {iconVersion && iconVersion === 'big' ? renderImage(image) : null}
51
42
  <div className="py-0.5">
52
- {title && <div className={`font-medium mb-1 ${textBlockStyleMap.title}`}>{title}</div>}
43
+ {title && (
44
+ <div className={`font-medium text-base mb-1 ${textBlockStyleMap.title}`}>{title}</div>
45
+ )}
53
46
  {description && (
54
47
  <div className={`text-sm ${textBlockStyleMap.description}`}>{description}</div>
55
48
  )}
@@ -0,0 +1,12 @@
1
+ import type { Picture } from './model/Picture';
2
+
3
+ export type TextBlockVersion = 'primary' | 'secondary' | 'secondary-light';
4
+ export type TextBlockIconVersion = 'none' | 'small' | 'big';
5
+
6
+ export interface TextBlockContent {
7
+ title?: string;
8
+ description?: string;
9
+ blockVersion?: TextBlockVersion;
10
+ iconVersion?: TextBlockIconVersion;
11
+ image?: Picture;
12
+ }
@@ -1,7 +1,7 @@
1
1
  import { context } from './setup-fixture';
2
2
 
3
3
  import { Tile } from './Tile';
4
- import { Picture } from './types';
4
+ import type { Picture } from './model/Picture';
5
5
 
6
6
  const image: Picture = {
7
7
  src: 'money-1.png',
package/src/Tile.tsx CHANGED
@@ -1,10 +1,11 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { BlockVersion, UniBlockProps } from './types';
3
2
  import { BaseTile } from './BaseTile';
4
- import type { BaseTileContent } from './BaseTile';
3
+ import type { BlockVersion } from './model/BlockVersion';
4
+ import type { TileContent } from './TileContent';
5
+ import type { UniBlockProps } from './types';
5
6
  import { getColSpan } from './utils/getColSpan';
6
7
 
7
- export interface TileProps extends BaseTileContent, UniBlockProps {}
8
+ export interface TileProps extends TileContent, UniBlockProps {}
8
9
 
9
10
  const tileStyleMap: Record<BlockVersion, string> = {
10
11
  primary: 'bg-white text-primary-text',
@@ -0,0 +1,3 @@
1
+ import type { BaseTileContent } from './BaseTileContent';
2
+
3
+ export type TileContent = BaseTileContent;
package/src/common.css CHANGED
@@ -7,6 +7,8 @@
7
7
  --color-primary-active: 36, 95, 52;
8
8
  --color-secondary-hover: 216, 242, 217;
9
9
  --color-secondary-active: 197, 226, 198;
10
+ --color-gradient-from: 141, 189, 76;
11
+ --color-gradient-to: 69, 172, 69;
10
12
  }
11
13
  /* Business clients | Light-Green */
12
14
  [data-theme='bc'] {
@@ -15,6 +17,8 @@
15
17
  --color-primary-active: 60, 94, 16;
16
18
  --color-secondary-hover: 232, 244, 217;
17
19
  --color-secondary-active: 216, 227, 202;
20
+ --color-gradient-from: 141, 189, 76; /* TODO: change color to theme bc */
21
+ --color-gradient-to: 69, 172, 69; /* TODO: change color to theme bc */
18
22
  }
19
23
  /* Ecosystem own | Yellow */
20
24
  [data-theme='eo'] {
@@ -23,6 +27,8 @@
23
27
  --color-primary-active: 126, 99, 12;
24
28
  --color-secondary-hover: 241, 236, 221;
25
29
  --color-secondary-active: 229, 222, 199;
30
+ --color-gradient-from: 141, 189, 76; /* TODO: change color to theme eo */
31
+ --color-gradient-to: 69, 172, 69; /* TODO: change color to theme eo */
26
32
  }
27
33
 
28
34
  @tailwind components;
@@ -1,6 +1,7 @@
1
1
  import fs from 'fs';
2
2
  import util from 'util';
3
- import type { ContentPageDef, Picture } from '../types';
3
+ import type { Picture } from '../model/Picture';
4
+ import type { ContentPageDef } from '../types';
4
5
  import { mapJSON } from './mapJSON';
5
6
  import type { TransformationOptions } from './TransformationOptions';
6
7
  import { transformMarkdown } from './transformMarkdown';
@@ -2,7 +2,7 @@ import fs from 'fs';
2
2
  import path from 'path';
3
3
  import sharp from 'sharp';
4
4
  import util from 'util';
5
- import type { ImgSource, Picture } from '../types';
5
+ import type { ImgSource, Picture } from '../model/Picture';
6
6
  import type { TransformationOptions } from './TransformationOptions';
7
7
 
8
8
  const mkdir = util.promisify(fs.mkdir);
@@ -1,13 +1 @@
1
- <svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g clip-path="url(#a)">
3
- <path
4
- d="M19.406 12.761c-.023-3.028 2.793-4.511 2.93-4.572-1.603-2.073-4.075-2.357-4.968-2.377-2.083-.204-4.098 1.117-5.174 1.117-1.076 0-2.725-1.097-4.488-1.056-2.266.04-4.395 1.198-5.563 3.007-2.404 3.698-.618 9.124 1.694 12.09 1.145 1.464 2.496 3.09 4.259 3.028 1.717-.06 2.358-.975 4.441-.975 2.06 0 2.656.975 4.465.935 1.854-.02 3.022-1.463 4.12-2.947 1.329-1.666 1.855-3.332 1.878-3.413 0 0-3.549-1.2-3.594-4.837Zm-3.389-8.92c.916-1.037 1.557-2.419 1.374-3.841-1.35.061-3.022.833-3.984 1.829-.847.894-1.625 2.337-1.42 3.698 1.512.102 3.069-.67 4.03-1.686Z"
5
- fill="#42AB44"
6
- />
7
- </g>
8
- <defs>
9
- <clipPath id="a">
10
- <rect width="24" height="24" rx="6" fill="#fff" />
11
- </clipPath>
12
- </defs>
13
- </svg>
1
+ <svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 24"><path d="M18.406 12.761c-.023-3.028 2.793-4.511 2.93-4.572-1.603-2.073-4.075-2.357-4.968-2.377-2.083-.204-4.098 1.117-5.174 1.117-1.076 0-2.725-1.097-4.488-1.056-2.266.04-4.395 1.198-5.563 3.007-2.404 3.698-.618 9.124 1.694 12.09 1.145 1.464 2.496 3.09 4.259 3.028 1.717-.06 2.358-.975 4.441-.975 2.06 0 2.656.975 4.465.935 1.854-.02 3.022-1.463 4.12-2.947 1.329-1.666 1.855-3.332 1.878-3.413 0 0-3.549-1.2-3.594-4.837Zm-3.389-8.92c.916-1.037 1.557-2.419 1.374-3.841-1.35.061-3.022.833-3.984 1.829-.847.894-1.625 2.337-1.42 3.698 1.512.102 3.069-.67 4.03-1.686Z" fill="#42AB44"/></svg>
@@ -0,0 +1 @@
1
+ <svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 63 63"><g clip-path="url(#a)"><path d="M63 60.987c0-.13-.172-.259-.505-.382-3.072-.812-12.836-1.398-24.405-1.398-14.04 0-25.427.873-25.427 1.944 0 .13.172.26.505.382 3.083.812 12.837 1.399 24.406 1.399 14.04 0 25.426-.873 25.426-1.945Z" fill="#050304"/><path d="M63 60.987c0-.13-.172-.259-.505-.382-3.072-.812-12.836-1.398-24.405-1.398-14.04 0-25.427.873-25.427 1.944 0 .13.172.26.505.382 3.083.812 12.837 1.399 24.406 1.399 14.04 0 25.426-.873 25.426-1.945Z" fill="url(#b)"/><path d="M63 60.987c0-.13-.172-.259-.505-.382-3.072-.812-12.836-1.398-24.405-1.398-14.04 0-25.427.873-25.427 1.944 0 .13.172.26.505.382 3.083.812 12.837 1.399 24.406 1.399 14.04 0 25.426-.873 25.426-1.945Z" fill="#050304"/><path d="M63 60.987c0-.13-.172-.259-.505-.382-3.072-.812-12.836-1.398-24.405-1.398-14.04 0-25.427.873-25.427 1.944 0 .13.172.26.505.382 3.083.812 12.837 1.399 24.406 1.399 14.04 0 25.426-.873 25.426-1.945Z" fill="url(#c)"/><path d="M53.554 40.447a.31.31 0 0 0-.609 0l-.269 1.279a1.153 1.153 0 0 1-.89.89l-1.28.27a.31.31 0 0 0 0 .608l1.28.27c.447.093.796.443.89.89l.27 1.28a.31.31 0 0 0 .608 0l.269-1.28c.094-.447.443-.797.89-.89l1.28-.27a.31.31 0 0 0 0-.608l-1.28-.27a1.153 1.153 0 0 1-.89-.89l-.27-1.279Z" fill="#FFCA42"/><path d="M48.658 53.298H15.076a.827.827 0 0 1-.824-.824v-2.213c0-.454.37-.825.824-.825h33.582c.453 0 .824.371.824.825v2.213c0 .453-.371.824-.824.824Z" fill="#FA552D"/><path d="M48.658 53.298H15.076a.827.827 0 0 1-.824-.824v-2.213c0-.454.37-.825.824-.825h33.582c.453 0 .824.371.824.825v2.213c0 .453-.371.824-.824.824Z" fill="#42AB44"/><path d="M26.19 52.168h-.597v.552h.597v-.552Zm1.196-.42h-.598v.972h.598v-.972Zm1.195-.643h-.598v1.615h.598v-1.615Zm1.195.26h-.598v1.355h.598v-1.356Zm1.191-1.357h-.598v2.436h.598v-2.436Zm1.195 0h-.597v2.712h.597v-2.712Zm1.196 0h-.598v2.712h.598v-2.712Zm1.195 0h-.598v2.712h.598v-2.712Zm1.19 0h-.597v2.712h.598v-2.712Zm1.196 0h-.597v2.712h.597v-2.712Zm1.195 0h-.597v2.712h.597v-2.712Zm1.196 0h-.598v1.904h.598v-1.904Zm1.19 0h-.597v2.712h.598v-2.712Zm1.196 0h-.598v2.712h.598v-2.712Zm1.195 0h-.598v2.712h.598v-2.712Zm1.195 0h-.597v2.712h.597v-2.712Zm1.191 0H44.7v2.712h.597v-2.712Zm1.196 0h-.598v2.712h.597v-2.712Zm1.195 0h-.598v2.712h.598v-2.712Zm1.195 0h-.598v2.712h.598v-2.712Z" fill="#5F1A58"/><path d="M26.19 52.168h-.597v.552h.597v-.552Zm1.196-.42h-.598v.972h.598v-.972Zm1.195-.643h-.598v1.615h.598v-1.615Zm1.195.26h-.598v1.355h.598v-1.356Zm1.191-1.357h-.598v2.436h.598v-2.436Zm1.195 0h-.597v2.712h.597v-2.712Zm1.196 0h-.598v2.712h.598v-2.712Zm1.195 0h-.598v2.712h.598v-2.712Zm1.19 0h-.597v2.712h.598v-2.712Zm1.196 0h-.597v2.712h.597v-2.712Zm1.195 0h-.597v2.712h.597v-2.712Zm1.196 0h-.598v1.904h.598v-1.904Zm1.19 0h-.597v2.712h.598v-2.712Zm1.196 0h-.598v2.712h.598v-2.712Zm1.195 0h-.598v2.712h.598v-2.712Zm1.195 0h-.597v2.712h.597v-2.712Zm1.191 0H44.7v2.712h.597v-2.712Zm1.196 0h-.598v2.712h.597v-2.712Zm1.195 0h-.598v2.712h.598v-2.712Zm1.195 0h-.598v2.712h.598v-2.712Z" fill="#050304"/><path d="M26.19 52.168h-.597v.552h.597v-.552Zm1.196-.42h-.598v.972h.598v-.972Zm1.195-.643h-.598v1.615h.598v-1.615Zm1.195.26h-.598v1.355h.598v-1.356Zm1.191-1.357h-.598v2.436h.598v-2.436Zm1.195 0h-.597v2.712h.597v-2.712Zm1.196 0h-.598v2.712h.598v-2.712Zm1.195 0h-.598v2.712h.598v-2.712Zm1.19 0h-.597v2.712h.598v-2.712Zm1.196 0h-.597v2.712h.597v-2.712Zm1.195 0h-.597v2.712h.597v-2.712Zm1.196 0h-.598v1.904h.598v-1.904Zm1.19 0h-.597v2.712h.598v-2.712Zm1.196 0h-.598v2.712h.598v-2.712Zm1.195 0h-.598v2.712h.598v-2.712Zm1.195 0h-.597v2.712h.597v-2.712Zm1.191 0H44.7v2.712h.597v-2.712Zm1.196 0h-.598v2.712h.597v-2.712Zm1.195 0h-.598v2.712h.598v-2.712Zm1.195 0h-.598v2.712h.598v-2.712Z" fill="url(#d)"/><path d="M48.657 53.298H40.11v-3.862h8.544c.453 0 .824.371.824.824v2.214a.82.82 0 0 1-.82.824Z" fill="#050304"/><path d="M48.657 53.298H40.11v-3.862h8.544c.453 0 .824.371.824.824v2.214a.82.82 0 0 1-.82.824Z" fill="url(#e)"/><path d="M48.657 53.298H40.11v-3.862h8.544c.453 0 .824.371.824.824v2.214a.82.82 0 0 1-.82.824Z" fill="#050304"/><path d="M48.657 53.298H40.11v-3.862h8.544c.453 0 .824.371.824.824v2.214a.82.82 0 0 1-.82.824Z" fill="url(#f)"/><path d="M54.117 57.162H20.54a.827.827 0 0 1-.824-.824v-2.213c0-.454.37-.825.824-.825h33.582c.453 0 .824.371.824.825v2.213a.83.83 0 0 1-.829.824Z" fill="#42AB44"/><path d="M54.117 57.162H40.43l-20.714-2.176v-.861c0-.454.37-.825.824-.825h33.582c.453 0 .824.371.824.825v2.213a.83.83 0 0 1-.829.824Z" fill="#050304"/><path d="M54.117 57.162H40.43l-20.714-2.176v-.861c0-.454.37-.825.824-.825h33.582c.453 0 .824.371.824.825v2.213a.83.83 0 0 1-.829.824Z" fill="url(#g)"/><path d="M51.198 61.021H17.616a.827.827 0 0 1-.824-.824v-2.214c0-.453.37-.824.824-.824h33.582c.453 0 .824.371.824.825v2.213a.824.824 0 0 1-.824.824Z" fill="#050304"/><path d="M51.198 61.021H17.616a.827.827 0 0 1-.824-.824v-2.214c0-.453.37-.824.824-.824h33.582c.453 0 .824.371.824.825v2.213a.824.824 0 0 1-.824.824Z" fill="url(#h)"/><path d="M51.198 61.021H17.616a.827.827 0 0 1-.824-.824v-2.214c0-.453.37-.824.824-.824h33.582c.453 0 .824.371.824.825v2.213a.824.824 0 0 1-.824.824Z" fill="#050304"/><path d="M51.198 61.021H17.616a.827.827 0 0 1-.824-.824v-2.214c0-.453.37-.824.824-.824h33.582c.453 0 .824.371.824.825v2.213a.824.824 0 0 1-.824.824Z" fill="url(#i)"/><path d="M51.198 61.021h-8.544v-3.862h8.544c.453 0 .824.371.824.825v2.213c0 .457-.37.824-.824.824Z" fill="#050304"/><path d="M51.198 61.021h-8.544v-3.862h8.544c.453 0 .824.371.824.825v2.213c0 .457-.37.824-.824.824Z" fill="url(#j)"/><path d="M51.198 61.021h-8.544v-3.862h8.544c.453 0 .824.371.824.825v2.213c0 .457-.37.824-.824.824Z" fill="#050304"/><path d="M51.198 61.021h-8.544v-3.862h8.544c.453 0 .824.371.824.825v2.213c0 .457-.37.824-.824.824Z" fill="url(#k)"/><path d="M24.704 57.763h-.598v2.658h.598v-2.658Zm1.195.334h-.597v1.99h.597v-1.99Zm1.191.614h-.597v.762h.597v-.762Zm1.196.56h-.598v1.15h.598v-1.15Zm1.195-1.137h-.598v.956h.598v-.956Zm2.386.383h-.598v1.15h.598v-1.15Z" fill="#5F1A58"/><path d="M24.704 57.763h-.598v2.658h.598v-2.658Zm1.195.334h-.597v1.99h.597v-1.99Zm1.191.614h-.597v.762h.597v-.762Zm1.196.56h-.598v1.15h.598v-1.15Zm1.195-1.137h-.598v.956h.598v-.956Zm2.386.383h-.598v1.15h.598v-1.15Z" fill="#050304"/><path d="M24.704 57.763h-.598v2.658h.598v-2.658Zm1.195.334h-.597v1.99h.597v-1.99Zm1.191.614h-.597v.762h.597v-.762Zm1.196.56h-.598v1.15h.598v-1.15Zm1.195-1.137h-.598v.956h.598v-.956Zm2.386.383h-.598v1.15h.598v-1.15Z" fill="url(#l)"/><path d="M32.922 49.437c9.144 0 16.556-7.412 16.556-16.556 0-9.143-7.413-16.556-16.556-16.556s-16.556 7.413-16.556 16.556c0 9.144 7.413 16.556 16.556 16.556Z" fill="#050304"/><path d="M32.922 49.437c9.144 0 16.556-7.412 16.556-16.556 0-9.143-7.413-16.556-16.556-16.556s-16.556 7.413-16.556 16.556c0 9.144 7.413 16.556 16.556 16.556Z" fill="url(#m)"/><mask id="n" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="14" y="16" width="34" height="34"><path d="M30.804 49.436c9.143 0 16.556-7.412 16.556-16.556 0-9.143-7.413-16.555-16.556-16.555-9.144 0-16.556 7.412-16.556 16.555 0 9.144 7.412 16.556 16.556 16.556Z" fill="#91BD65"/></mask><g mask="url(#n)"><path d="M30.804 49.436c9.143 0 16.556-7.412 16.556-16.556 0-9.143-7.413-16.555-16.556-16.555-9.144 0-16.556 7.412-16.556 16.555 0 9.144 7.412 16.556 16.556 16.556Z" fill="url(#o)"/><path d="m24.416 27.667-7.386-8.172-2.827 1.636 6.256 6.714 3.957-.178Z" fill="#FFCA42"/><path d="m24.416 27.667-7.386-8.172-2.827 1.636 6.256 6.714 3.957-.178Z" fill="url(#p)"/><mask id="q" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="17" y="19" width="28" height="28"><path d="M30.803 46.495c7.519 0 13.614-6.095 13.614-13.613S38.322 19.27 30.803 19.27c-7.518 0-13.613 6.095-13.613 13.613s6.095 13.613 13.613 13.613Z" fill="#91BD65"/></mask><g mask="url(#q)"><path d="M30.803 46.495c7.519 0 13.614-6.095 13.614-13.613S38.322 19.27 30.803 19.27c-7.518 0-13.613 6.095-13.613 13.613s6.095 13.613 13.613 13.613Z" fill="#FA552D"/><path d="M30.803 46.495c7.519 0 13.614-6.095 13.614-13.613S38.322 19.27 30.803 19.27c-7.518 0-13.613 6.095-13.613 13.613s6.095 13.613 13.613 13.613Z" fill="url(#r)"/><path d="M30.803 46.495c7.519 0 13.614-6.095 13.614-13.613S38.322 19.27 30.803 19.27c-7.518 0-13.613 6.095-13.613 13.613s6.095 13.613 13.613 13.613Z" fill="url(#s)"/><path d="M15.888 49.14h29.369l-2.3-11.803a3.147 3.147 0 0 0-3.087-2.543H21.274a3.147 3.147 0 0 0-3.087 2.543l-2.3 11.804Z" fill="#FFCA42"/><path d="M15.888 49.14h29.369l-2.3-11.803a3.147 3.147 0 0 0-3.087-2.543H21.274a3.147 3.147 0 0 0-3.087 2.543l-2.3 11.804Z" fill="url(#t)"/></g><path d="M27.029 27.451c2.39-1.986.944-5.06-2.477-2.72-3.825 2.622-.532 5.222 2.477 2.72Z" fill="#FFCA42"/><path d="M27.029 27.451c2.39-1.986.944-5.06-2.477-2.72-3.825 2.622-.532 5.222 2.477 2.72Z" fill="url(#u)"/><path d="M31.34 20.876c-7.517 0-13.613 6.096-13.613 13.613 0 1.204.157 2.37.45 3.483a13.57 13.57 0 0 1-.986-5.09c0-7.517 6.096-13.613 13.614-13.613 6.313 0 11.622 4.303 13.163 10.135-2.02-5-6.911-8.528-12.628-8.528Z" fill="#FA552D"/><path d="M31.34 20.876c-7.517 0-13.613 6.096-13.613 13.613 0 1.204.157 2.37.45 3.483a13.57 13.57 0 0 1-.986-5.09c0-7.517 6.096-13.613 13.614-13.613 6.313 0 11.622 4.303 13.163 10.135-2.02-5-6.911-8.528-12.628-8.528Z" fill="url(#v)"/><path d="M31.34 20.876c-7.517 0-13.613 6.096-13.613 13.613 0 1.204.157 2.37.45 3.483a13.57 13.57 0 0 1-.986-5.09c0-7.517 6.096-13.613 13.614-13.613 6.313 0 11.622 4.303 13.163 10.135-2.02-5-6.911-8.528-12.628-8.528Z" fill="#050304"/><path d="M31.34 20.876c-7.517 0-13.613 6.096-13.613 13.613 0 1.204.157 2.37.45 3.483a13.57 13.57 0 0 1-.986-5.09c0-7.517 6.096-13.613 13.614-13.613 6.313 0 11.622 4.303 13.163 10.135-2.02-5-6.911-8.528-12.628-8.528Z" fill="url(#w)"/></g><path d="M21.614 6.16a.425.425 0 0 0-.833 0l-.368 1.75a1.578 1.578 0 0 1-1.22 1.22l-1.75.368a.425.425 0 0 0 0 .832l1.75.368c.613.13 1.091.607 1.22 1.22l.368 1.75a.425.425 0 0 0 .833 0l.368-1.75a1.578 1.578 0 0 1 1.219-1.22l1.75-.368a.425.425 0 0 0 0-.832l-1.75-.368a1.578 1.578 0 0 1-1.22-1.22l-.367-1.75ZM8.279 39.569a.64.64 0 0 0-1.252 0l-.553 2.632a2.372 2.372 0 0 1-1.833 1.833l-2.632.553a.64.64 0 0 0 0 1.252l2.632.553c.92.194 1.64.913 1.833 1.833l.553 2.633a.64.64 0 0 0 1.252 0l.553-2.633c.194-.92.913-1.64 1.833-1.833l2.632-.553a.64.64 0 0 0 0-1.252l-2.632-.553A2.372 2.372 0 0 1 8.832 42.2l-.553-2.632Z" fill="#FFCA42"/></g><defs><linearGradient id="b" x1="12.663" y1="61.069" x2="63" y2="61.069" gradientUnits="userSpaceOnUse"><stop stop-color="#FA552D"/><stop offset=".104" stop-color="#FA552D" stop-opacity="0"/><stop offset=".81" stop-color="#5F1A58" stop-opacity="0"/><stop offset="1" stop-color="#5F1A58"/></linearGradient><linearGradient id="c" x1="63" y1="62.932" x2="12.717" y2="62.932" gradientUnits="userSpaceOnUse"><stop stop-color="#04D600"/><stop offset=".297" stop-color="#00D63C" stop-opacity="0"/><stop offset=".833" stop-color="#FA552D" stop-opacity="0"/><stop offset="1" stop-color="#FA552D"/></linearGradient><linearGradient id="d" x1="62.165" y1="54.392" x2="15.354" y2="51.029" gradientUnits="userSpaceOnUse"><stop stop-color="#04D600"/><stop offset=".7" stop-color="#00D63C" stop-opacity="0"/></linearGradient><linearGradient id="e" x1="46.244" y1="51.847" x2="40.039" y2="51.847" gradientUnits="userSpaceOnUse"><stop stop-color="#5F1A58"/><stop offset="1" stop-color="#5F1A58" stop-opacity="0"/></linearGradient><linearGradient id="f" x1="54.82" y1="55.679" x2="35.901" y2="55.295" gradientUnits="userSpaceOnUse"><stop stop-color="#04D600"/><stop offset=".7" stop-color="#00D63C" stop-opacity="0"/></linearGradient><linearGradient id="g" x1="75.037" y1="59.543" x2="4.274" y2="54.143" gradientUnits="userSpaceOnUse"><stop stop-color="#04D600"/><stop offset=".7" stop-color="#00D63C" stop-opacity="0"/></linearGradient><linearGradient id="h" x1="16.792" y1="59.265" x2="21.944" y2="59.265" gradientUnits="userSpaceOnUse"><stop stop-color="#FA552D"/><stop offset="1" stop-color="#FA552D" stop-opacity="0"/></linearGradient><linearGradient id="i" x1="72.113" y1="63.402" x2="1.35" y2="58.002" gradientUnits="userSpaceOnUse"><stop stop-color="#04D600"/><stop offset=".7" stop-color="#00D63C" stop-opacity="0"/></linearGradient><linearGradient id="j" x1="42.757" y1="59.059" x2="48.94" y2="59.059" gradientUnits="userSpaceOnUse"><stop stop-color="#5F1A58"/><stop offset="1" stop-color="#5F1A58" stop-opacity="0"/></linearGradient><linearGradient id="k" x1="57.365" y1="63.402" x2="38.447" y2="63.018" gradientUnits="userSpaceOnUse"><stop stop-color="#04D600"/><stop offset=".7" stop-color="#00D63C" stop-opacity="0"/></linearGradient><linearGradient id="l" x1="36.293" y1="62.06" x2="20.623" y2="61.677" gradientUnits="userSpaceOnUse"><stop stop-color="#04D600"/><stop offset=".7" stop-color="#00D63C" stop-opacity="0"/></linearGradient><linearGradient id="m" x1="55.687" y1="41.093" x2="29.024" y2="16.325" gradientUnits="userSpaceOnUse"><stop stop-color="#04D600"/><stop offset=".297" stop-color="#00D63C" stop-opacity="0"/><stop offset=".833" stop-color="#FA552D" stop-opacity="0"/><stop offset="1" stop-color="#FA552D"/></linearGradient><linearGradient id="o" x1="23.849" y1="45.931" x2="26.662" y2="14.768" gradientUnits="userSpaceOnUse"><stop stop-color="#7DC15D"/><stop offset="1" stop-color="#FEE54F"/></linearGradient><linearGradient id="p" x1="18.119" y1="22.174" x2="19.561" y2="25.265" gradientUnits="userSpaceOnUse"><stop stop-color="#FEFFCF"/><stop offset="1" stop-color="#FEFFCF" stop-opacity="0"/></linearGradient><linearGradient id="r" x1="28.215" y1="46.697" x2="28.215" y2="21.144" gradientUnits="userSpaceOnUse"><stop stop-color="#FFCA42"/><stop offset="1" stop-color="#FFCA42" stop-opacity="0"/></linearGradient><linearGradient id="s" x1="24.794" y1="25.705" x2="30.803" y2="46.495" gradientUnits="userSpaceOnUse"><stop stop-color="#7DC15D"/><stop offset="1" stop-color="#FEE54F"/></linearGradient><linearGradient id="t" x1="30.572" y1="34.794" x2="30.572" y2="40.927" gradientUnits="userSpaceOnUse"><stop stop-color="#FEFFCF"/><stop offset="1" stop-color="#FEFFCF" stop-opacity="0"/></linearGradient><linearGradient id="u" x1="24.301" y1="28.354" x2="24.919" y2="25.469" gradientUnits="userSpaceOnUse"><stop stop-color="#FEFFCF"/><stop offset="1" stop-color="#FEFFCF" stop-opacity="0"/></linearGradient><linearGradient id="v" x1="24.301" y1="20.32" x2="26.98" y2="30.005" gradientUnits="userSpaceOnUse"><stop stop-color="#5F1A58"/><stop offset="1" stop-color="#5F1A58" stop-opacity="0"/></linearGradient><linearGradient id="w" x1="59.239" y1="49.504" x2="5.149" y2="48.856" gradientUnits="userSpaceOnUse"><stop stop-color="#04D600"/><stop offset=".7" stop-color="#00D63C" stop-opacity="0"/></linearGradient><clipPath id="a"><path fill="#fff" d="M0 0h63v63H0z"/></clipPath></defs></svg>
@@ -1,6 +1 @@
1
- <svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path
3
- d="M1 22.427V2.576C1 1.883 1.447 1.284 2.094 1L14.85 12.498 2.089 24a1.89 1.89 0 0 1-.795-.646A1.625 1.625 0 0 1 1 22.427Zm17.899-6.282-13.95 7.259 11.002-9.915 2.948 2.656Zm4.335-5.035c.237.162.428.37.561.61.133.239.203.502.205.77.002.267-.064.53-.193.771s-.317.452-.551.617l-2.964 1.542-3.241-2.922 3.24-2.92 2.944 1.532ZM4.959 1.598l13.938 7.253-2.945 2.654L4.958 1.598Z"
4
- fill="#42AB44"
5
- />
6
- </svg>
1
+ <svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 23 23"><path d="M0 21.427V1.576C0 .883.447.284 1.094 0L13.85 11.498 1.089 23a1.89 1.89 0 0 1-.795-.646A1.625 1.625 0 0 1 0 21.427Zm17.899-6.282-13.95 7.259 11.002-9.915 2.948 2.656Zm4.335-5.035c.237.162.428.37.561.61.133.239.203.502.205.77.002.267-.064.53-.193.771s-.317.452-.551.617l-2.964 1.542-3.241-2.922 3.24-2.92 2.944 1.532ZM3.959.598l13.938 7.253-2.945 2.654L3.958.598Z" fill="#42AB44"/></svg>
package/src/index.ts CHANGED
@@ -6,17 +6,10 @@ export { projectSettings } from './ProjectSettings';
6
6
  export { LikeAPI } from './api/LikeAPI';
7
7
  export { DaDataAPI } from './api/DaDataAPI';
8
8
 
9
- export type { HeaderContent as SitemapContent } from './Header';
9
+ export type { SitemapContent } from './model/SitemapContent';
10
10
 
11
- export type {
12
- BlockDef,
13
- UniBlockProps,
14
- ContentPageMeta,
15
- ContentPageDef,
16
- Img,
17
- ImgSource,
18
- Picture,
19
- } from './types';
11
+ export type { Img, ImgSource, Picture } from './model/Picture';
12
+ export type { BlockDef, UniBlockProps, ContentPageMeta, ContentPageDef } from './types';
20
13
  export type {
21
14
  ContentPageContext,
22
15
  Router,
@@ -33,7 +26,7 @@ export { ContentPage } from './ContentPage';
33
26
  export { toMobilePage } from './toMobilePage';
34
27
 
35
28
  export { Blocks } from './Blocks';
36
- export type { BlockContent } from './Blocks';
29
+ export type { BlockContent } from './BlockContent';
37
30
  export { MobileBlocks } from './MobileBlocks';
38
31
 
39
32
  export * as url from './utils/url';
@@ -1,13 +1,13 @@
1
- import type { TopMenuItem } from './types';
1
+ import type { LinkContent } from './model/LinkContent';
2
2
 
3
- const cmp = (a?: TopMenuItem) => (b?: TopMenuItem) => a?.href === b?.href;
3
+ const cmp = (a?: LinkContent) => (b?: LinkContent) => a?.href === b?.href;
4
4
 
5
- const substitute = (items?: TopMenuItem[], substitution?: TopMenuItem[]) =>
5
+ const substitute = <L extends LinkContent>(items?: L[], substitution?: L[]): L[] =>
6
6
  (items || []).map((_) => substitution?.find(cmp(_)) || _);
7
7
 
8
- const subtract = (minuend?: TopMenuItem[], subtrahend?: TopMenuItem[]) =>
8
+ const subtract = <L extends LinkContent>(minuend?: L[], subtrahend?: L[]): L[] =>
9
9
  (minuend || []).filter((_) => !subtrahend?.find(cmp(_)));
10
10
 
11
- export function mergeTopItems(left?: TopMenuItem[], right?: TopMenuItem[]): TopMenuItem[] {
11
+ export function mergeTopItems<L extends LinkContent>(left?: L[], right?: L[]): L[] {
12
12
  return substitute(left, right).concat(subtract(right, left));
13
13
  }
@@ -0,0 +1 @@
1
+ export type BlockVersion = 'primary' | 'secondary';
@@ -0,0 +1 @@
1
+ export type ButtonVersion = 'primary' | 'secondary';
@@ -0,0 +1 @@
1
+ export type GalleryVersion = 'normal' | 'mini';
@@ -0,0 +1,5 @@
1
+ export interface LinkContent {
2
+ text?: string;
3
+ href?: string;
4
+ target?: '_blank' | '_self' | '_parent' | '_top' | string;
5
+ }
@@ -0,0 +1,19 @@
1
+ export interface Img {
2
+ src: string;
3
+ alt?: string;
4
+ title?: string;
5
+ }
6
+
7
+ export interface ImgSource {
8
+ src: string;
9
+ format?: 'jpeg' | 'jpg' | 'png' | 'gif' | 'webp' | 'heif' | 'avif';
10
+ options?: Record<string, any>;
11
+ size?: {
12
+ width?: number;
13
+ height?: number;
14
+ };
15
+ }
16
+
17
+ export interface Picture extends Img, ImgSource {
18
+ sources?: ImgSource[];
19
+ }
@@ -0,0 +1,9 @@
1
+ import { LinkContent } from '../model/LinkContent';
2
+
3
+ export interface TopMenuItem extends LinkContent {
4
+ items?: LinkContent[];
5
+ }
6
+
7
+ export interface SitemapContent {
8
+ topItems?: TopMenuItem[];
9
+ }
package/src/types.ts CHANGED
@@ -1,21 +1,9 @@
1
- import type {
2
- AvifOptions,
3
- FormatEnum,
4
- GifOptions,
5
- HeifOptions,
6
- JpegOptions,
7
- PngOptions,
8
- ResizeOptions,
9
- TiffOptions,
10
- WebpOptions,
11
- } from 'sharp';
12
- import type { BlockContent } from './Blocks';
1
+ import type { BlockContent } from './BlockContent';
13
2
  import type { ContentPageContext } from './ContentPageContext';
3
+ import type { BlockVersion } from './model/BlockVersion';
14
4
 
15
5
  export type ColorPalette = 'pc' | 'bc' | 'eo';
16
6
 
17
- export type BlockVersion = 'primary' | 'secondary';
18
- export type ButtonVersion = 'primary' | 'secondary';
19
7
  export interface BlockDef {
20
8
  type: string;
21
9
  style?: string[];
@@ -43,53 +31,11 @@ export interface ContentPageDef extends ContentPageMeta {
43
31
  colorPalette?: ColorPalette;
44
32
  }
45
33
 
46
- export interface Img {
47
- src: string;
48
- alt?: string;
49
- title?: string;
50
- }
51
-
52
- export interface ImgSource {
53
- src: string;
54
- format?: keyof FormatEnum;
55
- options?:
56
- | JpegOptions
57
- | PngOptions
58
- | WebpOptions
59
- | AvifOptions
60
- | HeifOptions
61
- | GifOptions
62
- | TiffOptions;
63
- size?: ResizeOptions;
64
- }
65
-
66
- export interface Picture extends Img, ImgSource {
67
- sources?: ImgSource[];
68
- }
69
-
70
34
  export interface UniBlockProps {
71
35
  className?: string;
72
36
  context: ContentPageContext;
73
37
  }
74
38
 
75
- export interface ContactInfo {
76
- text: string;
77
- type: 'tel' | 'email';
78
- description: string;
79
- }
80
-
81
- export interface LinkContent {
82
- text?: string;
83
- href?: string;
84
- target?: '_blank' | '_self' | '_parent' | '_top' | string;
85
- }
86
-
87
- export type NavMenuItem = LinkContent;
88
-
89
- export interface TopMenuItem extends NavMenuItem {
90
- items?: NavMenuItem[];
91
- }
92
-
93
39
  export interface DaDataResult {
94
40
  suggestions?: DaDataSuggestion<DaDataAddress>[];
95
41
  }
@@ -1,33 +1,32 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { Button } from './Button';
3
+ import { ButtonProps } from './ButtonProps';
4
+ import { SVG } from './SVG';
2
5
 
3
- export interface ArrowButtonProps {
4
- onClick?: () => void;
5
- ariaLabel?: string;
6
- className?: string;
7
- }
6
+ const ARROW_PATHS = [
7
+ {
8
+ d: 'm9 12 4-4-4-4',
9
+ stroke: 'currentColor',
10
+ strokeWidth: '2',
11
+ strokeLinecap: 'round',
12
+ fill: 'none',
13
+ },
14
+ {
15
+ d: 'M2 9a1 1 0 0 1 0-2v2Zm6-2a1 1 0 0 1 0 2V7ZM2 7h6v2H2V7Z',
16
+ },
17
+ ];
8
18
 
9
- export const ArrowButton = JSX<ArrowButtonProps>(({ className, onClick, ariaLabel }) => {
10
- return (
11
- <button
12
- className={`${className} border-none no-underline w-12 h-12 rounded-3xl bg-white flex text-black hover:text-primary-main`}
13
- style={{ boxShadow: '0px 4px 25px rgba(0, 0, 0, 0.07)' }}
14
- onClick={onClick}
15
- aria-label={ariaLabel}
16
- >
17
- <svg
18
- className="m-auto"
19
- width="16"
20
- height="16"
21
- viewBox="0 0 16 16"
22
- fill="none"
23
- xmlns="http://www.w3.org/2000/svg"
24
- >
25
- <path d="M7 12L3 8L7 4" stroke="currentColor" strokeWidth="2" strokeLinecap="round" />
26
- <path
27
- d="M14 9C14.5523 9 15 8.55228 15 8C15 7.44772 14.5523 7 14 7L14 9ZM8 7C7.44772 7 7 7.44772 7 8C7 8.55229 7.44772 9 8 9L8 7ZM14 7L8 7L8 9L14 9L14 7Z"
28
- fill="currentColor"
29
- />
30
- </svg>
31
- </button>
32
- );
33
- });
19
+ export const ArrowButton = JSX<ButtonProps>(({ className, disabled, ...rest }) => (
20
+ <Button
21
+ rounded
22
+ className={`shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${
23
+ disabled
24
+ ? 'bg-secondary-light text-secondary-text'
25
+ : 'bg-white text-primary-text hover:text-primary-main'
26
+ } ${className || ''}`}
27
+ disabled={disabled}
28
+ {...rest}
29
+ >
30
+ <SVG paths={ARROW_PATHS} viewBox="0 0 16 16" fill="none" width="16" height="16" />
31
+ </Button>
32
+ ));
@@ -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
 
4
4
  export interface BreadcrumbProps extends LinkContent {
5
5
  className?: string;
@@ -1,7 +1,7 @@
1
1
  import '../setup-fixture';
2
2
 
3
3
  import { Button } from './Button';
4
- import { IconButton } from './IconButton';
4
+ import { Icon } from './Icon';
5
5
 
6
6
  export default {
7
7
  all: (
@@ -64,21 +64,49 @@ export default {
64
64
  <div>
65
65
  <p>With Icon</p>
66
66
  <div className="flex gap-6" data-theme="pc">
67
- <IconButton
67
+ <Button
68
68
  href="https://www.rshb.ru/"
69
69
  target="_blank"
70
70
  aboveText="Доступно в"
71
+ appendLeft={
72
+ /** Div need for perfect pixel */
73
+ <div>
74
+ <Icon name="PlayMarketIcon" width="24" height="24" />
75
+ </div>
76
+ }
71
77
  text="Google Play"
72
78
  version="secondary"
73
- icon="PlayMarketIcon"
74
79
  />
75
- <IconButton
80
+ <Button
76
81
  href="https://www.rshb.ru/"
77
82
  target="_blank"
78
83
  aboveText="Загрузите в"
84
+ appendLeft={
85
+ <div>
86
+ <Icon name="AppleIcon" width="24" height="24" />
87
+ </div>
88
+ }
79
89
  text="App Store"
80
90
  version="secondary"
81
- icon="AppleIcon"
91
+ />
92
+ </div>
93
+ </div>
94
+ <div>
95
+ <p>Rounded with only Icon</p>
96
+ <div className="flex gap-6" data-theme="pc">
97
+ <Button
98
+ rounded
99
+ href="https://www.rshb.ru/"
100
+ target="_blank"
101
+ version="secondary"
102
+ appendLeft={<Icon name="PlayMarketIcon" width="20" height="21" />}
103
+ />
104
+ <Button
105
+ rounded
106
+ href="https://www.rshb.ru/"
107
+ target="_blank"
108
+ version="secondary"
109
+ appendLeft={<Icon name="AppleIcon" width="18" height="20" />}
82
110
  />
83
111
  </div>
84
112
  </div>