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

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 (392) hide show
  1. package/bundle/blocks.schema.json +933 -0
  2. package/bundle/bundle.umd.js +50 -49
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/BaseTile.d.ts +2 -12
  5. package/dist/BaseTile.js.map +1 -1
  6. package/dist/BaseTileContent.d.ts +13 -0
  7. package/dist/BaseTileContent.js +2 -0
  8. package/dist/BaseTileContent.js.map +1 -0
  9. package/dist/BenefitsBlock.d.ts +1 -10
  10. package/dist/BenefitsBlock.js.map +1 -1
  11. package/dist/BenefitsBlockContent.d.ts +10 -0
  12. package/dist/BenefitsBlockContent.js +2 -0
  13. package/dist/BenefitsBlockContent.js.map +1 -0
  14. package/dist/BlockContent.d.ts +15 -0
  15. package/dist/BlockContent.js +2 -0
  16. package/dist/BlockContent.js.map +1 -0
  17. package/dist/Blocks.d.ts +0 -15
  18. package/dist/Blocks.js +7 -7
  19. package/dist/Blocks.js.map +1 -1
  20. package/dist/ContentPage.d.ts +1 -1
  21. package/dist/ExchangeRateTile.d.ts +1 -3
  22. package/dist/ExchangeRateTile.js.map +1 -1
  23. package/dist/ExchangeRateTileContent.d.ts +3 -0
  24. package/dist/ExchangeRateTileContent.js +2 -0
  25. package/dist/ExchangeRateTileContent.js.map +1 -0
  26. package/dist/Footer/Contacts.d.ts +2 -1
  27. package/dist/Footer/Contacts.js.map +1 -1
  28. package/dist/Footer/Footer.d.ts +2 -8
  29. package/dist/Footer/Footer.js +1 -1
  30. package/dist/Footer/Footer.js.map +1 -1
  31. package/dist/Footer/Footer.mobile.d.ts +1 -1
  32. package/dist/Footer/FooterContent.d.ts +13 -0
  33. package/dist/Footer/FooterContent.js +2 -0
  34. package/dist/Footer/FooterContent.js.map +1 -0
  35. package/dist/Footer/FooterLink.d.ts +1 -1
  36. package/dist/Footer/Sitemap.d.ts +2 -1
  37. package/dist/Footer/Sitemap.js.map +1 -1
  38. package/dist/Footer/SocialMedia.d.ts +2 -1
  39. package/dist/Footer/SocialMedia.js.map +1 -1
  40. package/dist/Gallery.d.ts +2 -13
  41. package/dist/Gallery.js.map +1 -1
  42. package/dist/Gallery.mobile.d.ts +1 -1
  43. package/dist/Gallery.mobile.js.map +1 -1
  44. package/dist/GalleryContent.d.ts +13 -0
  45. package/dist/GalleryContent.js +2 -0
  46. package/dist/GalleryContent.js.map +1 -0
  47. package/dist/Header/HeaderContent.d.ts +2 -3
  48. package/dist/Header/isSubItemActive.d.ts +1 -1
  49. package/dist/Header/isTopItemActive.d.ts +1 -1
  50. package/dist/Img.d.ts +1 -1
  51. package/dist/MobileAppTile.d.ts +1 -9
  52. package/dist/MobileAppTile.js.map +1 -1
  53. package/dist/MobileAppTileContent.d.ts +9 -0
  54. package/dist/MobileAppTileContent.js +2 -0
  55. package/dist/MobileAppTileContent.js.map +1 -0
  56. package/dist/MobileBlocks.js +2 -2
  57. package/dist/MobileBlocks.js.map +1 -1
  58. package/dist/Placeholder.d.ts +1 -3
  59. package/dist/Placeholder.js.map +1 -1
  60. package/dist/PlaceholderContent.d.ts +3 -0
  61. package/dist/PlaceholderContent.js +2 -0
  62. package/dist/PlaceholderContent.js.map +1 -0
  63. package/dist/ProductBlock.d.ts +2 -4
  64. package/dist/ProductBlock.js.map +1 -1
  65. package/dist/ProductBlock.mobile.d.ts +1 -1
  66. package/dist/ProductBlock.mobile.js.map +1 -1
  67. package/dist/ProductBlockContent.d.ts +5 -0
  68. package/dist/ProductBlockContent.js +2 -0
  69. package/dist/ProductBlockContent.js.map +1 -0
  70. package/dist/ProductBlockInner.d.ts +1 -5
  71. package/dist/ProductBlockInner.js.map +1 -1
  72. package/dist/ProductBlockInnerContent.d.ts +5 -0
  73. package/dist/ProductBlockInnerContent.js +2 -0
  74. package/dist/ProductBlockInnerContent.js.map +1 -0
  75. package/dist/ProductGallery.d.ts +1 -14
  76. package/dist/ProductGallery.js.map +1 -1
  77. package/dist/ProductGalleryContent.d.ts +14 -0
  78. package/dist/ProductGalleryContent.js +2 -0
  79. package/dist/ProductGalleryContent.js.map +1 -0
  80. package/dist/ProductTile.d.ts +1 -5
  81. package/dist/ProductTile.js.map +1 -1
  82. package/dist/ProductTileContent.d.ts +5 -0
  83. package/dist/ProductTileContent.js +2 -0
  84. package/dist/ProductTileContent.js.map +1 -0
  85. package/dist/PromoTile.d.ts +1 -4
  86. package/dist/PromoTile.js.map +1 -1
  87. package/dist/PromoTileContent.d.ts +4 -0
  88. package/dist/PromoTileContent.js +2 -0
  89. package/dist/PromoTileContent.js.map +1 -0
  90. package/dist/StepsBlock.d.ts +1 -10
  91. package/dist/StepsBlock.js.map +1 -1
  92. package/dist/StepsBlockContent.d.ts +10 -0
  93. package/dist/StepsBlockContent.js +2 -0
  94. package/dist/StepsBlockContent.js.map +1 -0
  95. package/dist/TextBlock.d.ts +2 -11
  96. package/dist/TextBlock.js.map +1 -1
  97. package/dist/TextBlockContent.d.ts +10 -0
  98. package/dist/TextBlockContent.js +2 -0
  99. package/dist/TextBlockContent.js.map +1 -0
  100. package/dist/Tile.d.ts +2 -2
  101. package/dist/Tile.js.map +1 -1
  102. package/dist/TileContent.d.ts +2 -0
  103. package/dist/TileContent.js +2 -0
  104. package/dist/TileContent.js.map +1 -0
  105. package/dist/content-page-repository/transformContentPage.js.map +1 -1
  106. package/dist/content-page-repository/transformPicture.d.ts +1 -1
  107. package/dist/index.d.ts +4 -3
  108. package/dist/index.js.map +1 -1
  109. package/dist/mergeTopItems.d.ts +2 -2
  110. package/dist/mergeTopItems.js.map +1 -1
  111. package/dist/model/BlockVersion.d.ts +1 -0
  112. package/dist/model/BlockVersion.js +2 -0
  113. package/dist/model/BlockVersion.js.map +1 -0
  114. package/dist/model/ButtonVersion.d.ts +1 -0
  115. package/dist/model/ButtonVersion.js +2 -0
  116. package/dist/model/ButtonVersion.js.map +1 -0
  117. package/dist/model/LinkContent.d.ts +5 -0
  118. package/dist/model/LinkContent.js +2 -0
  119. package/dist/model/LinkContent.js.map +1 -0
  120. package/dist/model/Picture.d.ts +17 -0
  121. package/dist/model/Picture.js +2 -0
  122. package/dist/model/Picture.js.map +1 -0
  123. package/dist/model/SitemapContent.d.ts +7 -0
  124. package/dist/model/SitemapContent.js +2 -0
  125. package/dist/model/SitemapContent.js.map +1 -0
  126. package/dist/types.d.ts +2 -32
  127. package/dist/ui-kit/Breadcrumb.d.ts +1 -1
  128. package/dist/ui-kit/Button.d.ts +1 -8
  129. package/dist/ui-kit/Button.js.map +1 -1
  130. package/dist/ui-kit/ButtonProps.d.ts +9 -0
  131. package/dist/ui-kit/ButtonProps.js +2 -0
  132. package/dist/ui-kit/ButtonProps.js.map +1 -0
  133. package/dist/ui-kit/Icon.d.ts +1 -10
  134. package/dist/ui-kit/Icon.js.map +1 -1
  135. package/dist/ui-kit/IconButton.d.ts +1 -6
  136. package/dist/ui-kit/IconButton.js.map +1 -1
  137. package/dist/ui-kit/IconButtonProps.d.ts +6 -0
  138. package/dist/ui-kit/IconButtonProps.js +2 -0
  139. package/dist/ui-kit/IconButtonProps.js.map +1 -0
  140. package/dist/ui-kit/IconProps.d.ts +10 -0
  141. package/dist/ui-kit/IconProps.js +2 -0
  142. package/dist/ui-kit/IconProps.js.map +1 -0
  143. package/dist/ui-kit/Title.d.ts +1 -10
  144. package/dist/ui-kit/Title.js +3 -9
  145. package/dist/ui-kit/Title.js.map +1 -1
  146. package/dist/ui-kit/TitleProps.d.ts +10 -0
  147. package/dist/ui-kit/TitleProps.js +10 -0
  148. package/dist/ui-kit/TitleProps.js.map +1 -0
  149. package/dist/ui-kit/TopItem.d.ts +1 -1
  150. package/dist/useLink.d.ts +5 -2
  151. package/dist/useLink.js.map +1 -1
  152. package/dist/useSitemap.d.ts +1 -1
  153. package/lib/BaseTile.d.ts +2 -12
  154. package/lib/BaseTile.js.map +1 -1
  155. package/lib/BaseTileContent.d.ts +13 -0
  156. package/lib/BaseTileContent.js +2 -0
  157. package/lib/BaseTileContent.js.map +1 -0
  158. package/lib/BenefitsBlock.d.ts +1 -10
  159. package/lib/BenefitsBlock.js.map +1 -1
  160. package/lib/BenefitsBlockContent.d.ts +10 -0
  161. package/lib/BenefitsBlockContent.js +2 -0
  162. package/lib/BenefitsBlockContent.js.map +1 -0
  163. package/lib/BlockContent.d.ts +15 -0
  164. package/lib/BlockContent.js +2 -0
  165. package/lib/BlockContent.js.map +1 -0
  166. package/lib/Blocks.d.ts +0 -15
  167. package/lib/Blocks.js +5 -5
  168. package/lib/Blocks.js.map +1 -1
  169. package/lib/ContentPage.d.ts +1 -1
  170. package/lib/ExchangeRateTile.d.ts +1 -3
  171. package/lib/ExchangeRateTile.js.map +1 -1
  172. package/lib/ExchangeRateTileContent.d.ts +3 -0
  173. package/lib/ExchangeRateTileContent.js +2 -0
  174. package/lib/ExchangeRateTileContent.js.map +1 -0
  175. package/lib/Footer/Contacts.d.ts +2 -1
  176. package/lib/Footer/Contacts.js.map +1 -1
  177. package/lib/Footer/Footer.d.ts +2 -8
  178. package/lib/Footer/Footer.js +1 -1
  179. package/lib/Footer/Footer.js.map +1 -1
  180. package/lib/Footer/Footer.mobile.d.ts +1 -1
  181. package/lib/Footer/FooterContent.d.ts +13 -0
  182. package/lib/Footer/FooterContent.js +2 -0
  183. package/lib/Footer/FooterContent.js.map +1 -0
  184. package/lib/Footer/FooterLink.d.ts +1 -1
  185. package/lib/Footer/Sitemap.d.ts +2 -1
  186. package/lib/Footer/Sitemap.js.map +1 -1
  187. package/lib/Footer/SocialMedia.d.ts +2 -1
  188. package/lib/Footer/SocialMedia.js.map +1 -1
  189. package/lib/Gallery.d.ts +2 -13
  190. package/lib/Gallery.js.map +1 -1
  191. package/lib/Gallery.mobile.d.ts +1 -1
  192. package/lib/Gallery.mobile.js.map +1 -1
  193. package/lib/GalleryContent.d.ts +13 -0
  194. package/lib/GalleryContent.js +2 -0
  195. package/lib/GalleryContent.js.map +1 -0
  196. package/lib/Header/HeaderContent.d.ts +2 -3
  197. package/lib/Header/isSubItemActive.d.ts +1 -1
  198. package/lib/Header/isTopItemActive.d.ts +1 -1
  199. package/lib/Img.d.ts +1 -1
  200. package/lib/MobileAppTile.d.ts +1 -9
  201. package/lib/MobileAppTile.js.map +1 -1
  202. package/lib/MobileAppTileContent.d.ts +9 -0
  203. package/lib/MobileAppTileContent.js +2 -0
  204. package/lib/MobileAppTileContent.js.map +1 -0
  205. package/lib/MobileBlocks.js +1 -1
  206. package/lib/MobileBlocks.js.map +1 -1
  207. package/lib/Placeholder.d.ts +1 -3
  208. package/lib/Placeholder.js.map +1 -1
  209. package/lib/PlaceholderContent.d.ts +3 -0
  210. package/lib/PlaceholderContent.js +2 -0
  211. package/lib/PlaceholderContent.js.map +1 -0
  212. package/lib/ProductBlock.d.ts +2 -4
  213. package/lib/ProductBlock.js.map +1 -1
  214. package/lib/ProductBlock.mobile.d.ts +1 -1
  215. package/lib/ProductBlock.mobile.js.map +1 -1
  216. package/lib/ProductBlockContent.d.ts +5 -0
  217. package/lib/ProductBlockContent.js +2 -0
  218. package/lib/ProductBlockContent.js.map +1 -0
  219. package/lib/ProductBlockInner.d.ts +1 -5
  220. package/lib/ProductBlockInner.js.map +1 -1
  221. package/lib/ProductBlockInnerContent.d.ts +5 -0
  222. package/lib/ProductBlockInnerContent.js +2 -0
  223. package/lib/ProductBlockInnerContent.js.map +1 -0
  224. package/lib/ProductGallery.d.ts +1 -14
  225. package/lib/ProductGallery.js.map +1 -1
  226. package/lib/ProductGalleryContent.d.ts +14 -0
  227. package/lib/ProductGalleryContent.js +2 -0
  228. package/lib/ProductGalleryContent.js.map +1 -0
  229. package/lib/ProductTile.d.ts +1 -5
  230. package/lib/ProductTile.js.map +1 -1
  231. package/lib/ProductTileContent.d.ts +5 -0
  232. package/lib/ProductTileContent.js +2 -0
  233. package/lib/ProductTileContent.js.map +1 -0
  234. package/lib/PromoTile.d.ts +1 -4
  235. package/lib/PromoTile.js.map +1 -1
  236. package/lib/PromoTileContent.d.ts +4 -0
  237. package/lib/PromoTileContent.js +2 -0
  238. package/lib/PromoTileContent.js.map +1 -0
  239. package/lib/StepsBlock.d.ts +1 -10
  240. package/lib/StepsBlock.js.map +1 -1
  241. package/lib/StepsBlockContent.d.ts +10 -0
  242. package/lib/StepsBlockContent.js +2 -0
  243. package/lib/StepsBlockContent.js.map +1 -0
  244. package/lib/TextBlock.d.ts +2 -11
  245. package/lib/TextBlock.js.map +1 -1
  246. package/lib/TextBlockContent.d.ts +10 -0
  247. package/lib/TextBlockContent.js +2 -0
  248. package/lib/TextBlockContent.js.map +1 -0
  249. package/lib/Tile.d.ts +2 -2
  250. package/lib/Tile.js.map +1 -1
  251. package/lib/TileContent.d.ts +2 -0
  252. package/lib/TileContent.js +2 -0
  253. package/lib/TileContent.js.map +1 -0
  254. package/lib/common.css +1 -1
  255. package/lib/content-page-repository/transformContentPage.js.map +1 -1
  256. package/lib/content-page-repository/transformPicture.d.ts +1 -1
  257. package/lib/index.d.ts +4 -3
  258. package/lib/index.js.map +1 -1
  259. package/lib/mergeTopItems.d.ts +2 -2
  260. package/lib/mergeTopItems.js.map +1 -1
  261. package/lib/model/BlockVersion.d.ts +1 -0
  262. package/lib/model/BlockVersion.js +2 -0
  263. package/lib/model/BlockVersion.js.map +1 -0
  264. package/lib/model/ButtonVersion.d.ts +1 -0
  265. package/lib/model/ButtonVersion.js +2 -0
  266. package/lib/model/ButtonVersion.js.map +1 -0
  267. package/lib/model/LinkContent.d.ts +5 -0
  268. package/lib/model/LinkContent.js +2 -0
  269. package/lib/model/LinkContent.js.map +1 -0
  270. package/lib/model/Picture.d.ts +17 -0
  271. package/lib/model/Picture.js +2 -0
  272. package/lib/model/Picture.js.map +1 -0
  273. package/lib/model/SitemapContent.d.ts +7 -0
  274. package/lib/model/SitemapContent.js +2 -0
  275. package/lib/model/SitemapContent.js.map +1 -0
  276. package/lib/types.d.ts +2 -32
  277. package/lib/ui-kit/Breadcrumb.d.ts +1 -1
  278. package/lib/ui-kit/Button.d.ts +1 -8
  279. package/lib/ui-kit/Button.js.map +1 -1
  280. package/lib/ui-kit/ButtonProps.d.ts +9 -0
  281. package/lib/ui-kit/ButtonProps.js +2 -0
  282. package/lib/ui-kit/ButtonProps.js.map +1 -0
  283. package/lib/ui-kit/Icon.d.ts +1 -10
  284. package/lib/ui-kit/Icon.js.map +1 -1
  285. package/lib/ui-kit/IconButton.d.ts +1 -6
  286. package/lib/ui-kit/IconButton.js.map +1 -1
  287. package/lib/ui-kit/IconButtonProps.d.ts +6 -0
  288. package/lib/ui-kit/IconButtonProps.js +2 -0
  289. package/lib/ui-kit/IconButtonProps.js.map +1 -0
  290. package/lib/ui-kit/IconProps.d.ts +10 -0
  291. package/lib/ui-kit/IconProps.js +2 -0
  292. package/lib/ui-kit/IconProps.js.map +1 -0
  293. package/lib/ui-kit/Title.d.ts +1 -10
  294. package/lib/ui-kit/Title.js +1 -7
  295. package/lib/ui-kit/Title.js.map +1 -1
  296. package/lib/ui-kit/TitleProps.d.ts +10 -0
  297. package/lib/ui-kit/TitleProps.js +8 -0
  298. package/lib/ui-kit/TitleProps.js.map +1 -0
  299. package/lib/ui-kit/TopItem.d.ts +1 -1
  300. package/lib/useLink.d.ts +5 -2
  301. package/lib/useLink.js.map +1 -1
  302. package/lib/useSitemap.d.ts +1 -1
  303. package/package.json +5 -2
  304. package/src/BaseTile.tsx +5 -13
  305. package/src/BaseTileContent.ts +14 -0
  306. package/src/BenefitsBlock.tsx +2 -12
  307. package/src/BenefitsBlockContent.ts +12 -0
  308. package/src/BlockContent.ts +30 -0
  309. package/src/Blocks.ts +12 -30
  310. package/src/ContentPage.tsx +1 -1
  311. package/src/ExchangeRateTile.tsx +2 -5
  312. package/src/ExchangeRateTileContent.ts +3 -0
  313. package/src/Footer/Contacts.tsx +2 -1
  314. package/src/Footer/Footer.mobile.tsx +1 -1
  315. package/src/Footer/Footer.tsx +3 -10
  316. package/src/Footer/FooterContent.ts +15 -0
  317. package/src/Footer/FooterLink.ts +1 -1
  318. package/src/Footer/HorizontalNavigation.tsx +2 -2
  319. package/src/Footer/Sitemap.tsx +3 -2
  320. package/src/Footer/SocialMedia.tsx +4 -2
  321. package/src/Footer/TextInformation.tsx +1 -1
  322. package/src/Gallery.fixture.tsx +1 -1
  323. package/src/Gallery.mobile.tsx +2 -1
  324. package/src/Gallery.tsx +2 -15
  325. package/src/GalleryContent.ts +15 -0
  326. package/src/Header/HeaderContent.ts +2 -3
  327. package/src/Header/isSubItemActive.ts +1 -1
  328. package/src/Header/isTopItemActive.ts +1 -1
  329. package/src/Img.tsx +1 -1
  330. package/src/MobileAppTile.tsx +1 -11
  331. package/src/MobileAppTileContent.ts +11 -0
  332. package/src/MobileBlocks.ts +1 -1
  333. package/src/Placeholder.tsx +1 -4
  334. package/src/PlaceholderContent.ts +3 -0
  335. package/src/ProductBlock.fixture.tsx +1 -1
  336. package/src/ProductBlock.mobile.tsx +1 -1
  337. package/src/ProductBlock.tsx +3 -5
  338. package/src/ProductBlockContent.ts +6 -0
  339. package/src/ProductBlockInner.tsx +2 -6
  340. package/src/ProductBlockInnerContent.ts +6 -0
  341. package/src/ProductGallery.fixture.tsx +1 -1
  342. package/src/ProductGallery.tsx +2 -16
  343. package/src/ProductGalleryContent.ts +16 -0
  344. package/src/ProductTile.fixture.tsx +1 -1
  345. package/src/ProductTile.tsx +3 -7
  346. package/src/ProductTileContent.ts +6 -0
  347. package/src/PromoTile.tsx +1 -5
  348. package/src/PromoTileContent.ts +5 -0
  349. package/src/StepsBlock.tsx +2 -12
  350. package/src/StepsBlockContent.ts +12 -0
  351. package/src/TextBlock.fixture.tsx +1 -1
  352. package/src/TextBlock.tsx +3 -12
  353. package/src/TextBlockContent.ts +12 -0
  354. package/src/Tile.fixture.tsx +1 -1
  355. package/src/Tile.tsx +4 -3
  356. package/src/TileContent.ts +3 -0
  357. package/src/content-page-repository/transformContentPage.ts +2 -1
  358. package/src/content-page-repository/transformPicture.ts +1 -1
  359. package/src/index.ts +4 -11
  360. package/src/mergeTopItems.ts +5 -5
  361. package/src/model/BlockVersion.ts +1 -0
  362. package/src/model/ButtonVersion.ts +1 -0
  363. package/src/model/LinkContent.ts +5 -0
  364. package/src/model/Picture.ts +19 -0
  365. package/src/model/SitemapContent.ts +9 -0
  366. package/src/types.ts +2 -56
  367. package/src/ui-kit/Breadcrumb.tsx +1 -1
  368. package/src/ui-kit/Button.tsx +2 -9
  369. package/src/ui-kit/ButtonProps.ts +10 -0
  370. package/src/ui-kit/Icon.tsx +1 -32
  371. package/src/ui-kit/IconButton.tsx +2 -7
  372. package/src/ui-kit/IconButtonProps.ts +7 -0
  373. package/src/ui-kit/IconProps.ts +31 -0
  374. package/src/ui-kit/Title.tsx +1 -13
  375. package/src/ui-kit/TitleProps.ts +12 -0
  376. package/src/ui-kit/TopItem.tsx +1 -1
  377. package/src/useLink.ts +2 -2
  378. package/src/useSitemap.ts +1 -1
  379. package/dist/Footer/index.d.ts +0 -2
  380. package/dist/Footer/index.js +0 -5
  381. package/dist/Footer/index.js.map +0 -1
  382. package/dist/Header/index.d.ts +0 -3
  383. package/dist/Header/index.js +0 -5
  384. package/dist/Header/index.js.map +0 -1
  385. package/lib/Footer/index.d.ts +0 -2
  386. package/lib/Footer/index.js +0 -2
  387. package/lib/Footer/index.js.map +0 -1
  388. package/lib/Header/index.d.ts +0 -3
  389. package/lib/Header/index.js +0 -2
  390. package/lib/Header/index.js.map +0 -1
  391. package/src/Footer/index.ts +0 -2
  392. package/src/Header/index.ts +0 -3
@@ -1,12 +1,6 @@
1
1
  import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
- export var SizeTableClass;
4
- (function (SizeTableClass) {
5
- SizeTableClass["XL"] = "text-title-lg";
6
- SizeTableClass["L"] = "text-title";
7
- SizeTableClass["M"] = "text-title-sm";
8
- SizeTableClass["S"] = "text-title-xs";
9
- })(SizeTableClass || (SizeTableClass = {}));
3
+ import { SizeTableClass } from './TitleProps.js';
10
4
  export const Title = JSX(({ size = 'L', className, children, ...rest }) => {
11
5
  const Tag = size === 'XL' ? 'h1' : 'h2';
12
6
  return (_jsx(Tag, { className: getClasses(SizeTableClass[size], className), ...rest, children: children }));
@@ -1 +1 @@
1
- {"version":3,"file":"Title.js","sourceRoot":"","sources":["../../src/ui-kit/Title.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,MAAM,CAAN,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,sCAAsB,CAAA;IACtB,kCAAkB,CAAA;IAClB,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;AACvB,CAAC,EALW,cAAc,KAAd,cAAc,QAKzB;AAQD,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,CAAa,CAAC,EAAE,IAAI,GAAG,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACpF,MAAM,GAAG,GAAG,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACxC,OAAO,CACL,KAAC,GAAG,IAAC,SAAS,EAAE,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,KAAM,IAAI,YAClE,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,CAAC,GAAG,OAA+B,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"Title.js","sourceRoot":"","sources":["../../src/ui-kit/Title.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAc,MAAM,cAAc,CAAC;AAE1D,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,CAAa,CAAC,EAAE,IAAI,GAAG,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACpF,MAAM,GAAG,GAAG,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACxC,OAAO,CACL,KAAC,GAAG,IAAC,SAAS,EAAE,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,KAAM,IAAI,YAClE,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,CAAC,GAAG,OAA+B,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ export declare enum SizeTableClass {
2
+ 'XL' = "text-title-lg",
3
+ 'L' = "text-title",
4
+ 'M' = "text-title-sm",
5
+ 'S' = "text-title-xs"
6
+ }
7
+ export declare type TitleSize = keyof typeof SizeTableClass;
8
+ export interface TitleProps extends Partial<HTMLHeadingElement> {
9
+ size?: TitleSize;
10
+ }
@@ -0,0 +1,8 @@
1
+ export var SizeTableClass;
2
+ (function (SizeTableClass) {
3
+ SizeTableClass["XL"] = "text-title-lg";
4
+ SizeTableClass["L"] = "text-title";
5
+ SizeTableClass["M"] = "text-title-sm";
6
+ SizeTableClass["S"] = "text-title-xs";
7
+ })(SizeTableClass || (SizeTableClass = {}));
8
+ //# sourceMappingURL=TitleProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleProps.js","sourceRoot":"","sources":["../../src/ui-kit/TitleProps.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,sCAAsB,CAAA;IACtB,kCAAkB,CAAA;IAClB,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;AACvB,CAAC,EALW,cAAc,KAAd,cAAc,QAKzB"}
@@ -1,4 +1,4 @@
1
- import type { LinkContent } from '../types';
1
+ import type { LinkContent } from '../model/LinkContent';
2
2
  export interface TopItemContent extends LinkContent {
3
3
  active?: boolean;
4
4
  }
package/lib/useLink.d.ts CHANGED
@@ -1,12 +1,15 @@
1
1
  import { HandlerDecorator, Router } from './ContentPageContext';
2
- import type { LinkContent } from './types';
2
+ import type { LinkContent } from './model/LinkContent';
3
3
  export declare function useLink({ router, handlerDecorator, }: {
4
4
  router: Router;
5
5
  handlerDecorator?: HandlerDecorator;
6
- }, link: Partial<LinkContent>): {
6
+ }, link: Partial<LinkContent & {
7
+ className: string;
8
+ }>): {
7
9
  href: string | undefined;
8
10
  ariaLabel: string | undefined;
9
11
  onClick: (ev: MouseEvent) => void;
10
12
  text?: string | undefined;
11
13
  target?: string | undefined;
14
+ className?: string | undefined;
12
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useLink.js","sourceRoot":"","sources":["../src/useLink.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,uBAAuB,GAAqB,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,CAAC,OAAO,CAAC;AAEtF,MAAM,UAAU,OAAO,CACrB,EACE,MAAM,EACN,gBAAgB,GAAG,uBAAuB,GACc,EAC1D,IAA0B;IAE1B,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC3C,OAAO;QACL,GAAG,IAAI;QACP,IAAI;QACJ,SAAS,EAAE,IAAI,CAAC,IAAI;QACpB,OAAO,EAAE,gBAAgB,CAAC,CAAC,EAAc,EAAE,EAAE;YAC3C,MAAM,WAAW,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACzC,MAAM,aAAa,GAAG,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,KAAK,OAAO,CAAC;YAC9D,IAAI,WAAW,IAAI,aAAa,EAAE;gBAChC,EAAE,CAAC,cAAc,EAAE,CAAC;gBACpB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACnB;QACH,CAAC,EAAE,IAAI,CAAC;KACT,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"useLink.js","sourceRoot":"","sources":["../src/useLink.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,uBAAuB,GAAqB,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,CAAC,OAAO,CAAC;AAEtF,MAAM,UAAU,OAAO,CACrB,EACE,MAAM,EACN,gBAAgB,GAAG,uBAAuB,GACc,EAC1D,IAAkD;IAElD,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC3C,OAAO;QACL,GAAG,IAAI;QACP,IAAI;QACJ,SAAS,EAAE,IAAI,CAAC,IAAI;QACpB,OAAO,EAAE,gBAAgB,CAAC,CAAC,EAAc,EAAE,EAAE;YAC3C,MAAM,WAAW,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACzC,MAAM,aAAa,GAAG,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,KAAK,OAAO,CAAC;YAC9D,IAAI,WAAW,IAAI,aAAa,EAAE;gBAChC,EAAE,CAAC,cAAc,EAAE,CAAC;gBACpB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACnB;QACH,CAAC,EAAE,IAAI,CAAC;KACT,CAAC;AACJ,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { AsyncDataHook } from './ContentPageContext';
2
- import type { HeaderContent } from './Header/index';
2
+ import type { HeaderContent } from './Header/HeaderContent';
3
3
  export declare function useSitemap(useAsyncData: AsyncDataHook): HeaderContent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.2.71",
3
+ "version": "0.2.72",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -54,6 +54,7 @@
54
54
  "types": "./lib/utils/*.d.ts"
55
55
  },
56
56
  "./bundle/*.js": "./bundle/*.js",
57
+ "./bundle/*.json": "./bundle/*.json",
57
58
  "./*.json": "./*.json",
58
59
  "./*.js": "./*.js",
59
60
  "./*.cjs": "./*.cjs"
@@ -82,7 +83,8 @@
82
83
  "build:lib": "rimraf ./lib && tsc --build --verbose",
83
84
  "postbuild:lib": "replace-in-file --configFile=replace-config.lib.cjs --verbose",
84
85
  "build:commonjs": "rimraf ./dist && tsc --module commonjs --noImplicitUseStrict --outDir dist",
85
- "bundle": "rimraf ./bundle && rollup -c",
86
+ "bundle": "rimraf ./bundle && rollup -c && npm run build:schema",
87
+ "build:schema": "ts-json-schema-generator --path './src/**/*Content.ts' --no-type-check --type '*' -o ./bundle/blocks.schema.json",
86
88
  "build:style": "postcss './src/**/*.css' --env production --dir ./lib",
87
89
  "build:icons": "svgo -f ./src/icons -o ./cosmos-static/icons",
88
90
  "size": "size-limit",
@@ -139,6 +141,7 @@
139
141
  "svgo": "^2.8.0",
140
142
  "tailwindcss": "^3.1.1",
141
143
  "ts-jest": "^28.0.4",
144
+ "ts-json-schema-generator": "^1.0.0",
142
145
  "ts-loader": "^9.3.0",
143
146
  "typescript": "^4.7.3",
144
147
  "webpack": "^5.73.0",
package/src/BaseTile.tsx CHANGED
@@ -1,25 +1,17 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import type { BaseTileContent } from './BaseTileContent';
2
3
  import { Img } from './Img';
3
- import type { BlockVersion, Picture, UniBlockProps } from './types';
4
+ import type { BlockVersion } from './model/BlockVersion';
5
+ import type { UniBlockProps } from './types';
4
6
  import { BlockItem } from './ui-kit/BlockItem';
5
- import type { IconButtonProps } from './ui-kit/IconButton';
6
7
  import { IconButton } from './ui-kit/IconButton';
8
+ import type { IconButtonProps } from './ui-kit/IconButtonProps';
7
9
  import { Title } from './ui-kit/Title';
8
- import type { TitleSize } from './ui-kit/Title';
9
10
  import { useLink } from './useLink';
10
11
  import { getColSpan } from './utils/getColSpan';
11
12
 
12
- export interface BaseTileContent {
13
- title?: string;
14
- titleSize?: TitleSize;
15
- description?: string;
16
- image?: Picture;
17
- items?: string[];
18
- buttons?: IconButtonProps[];
19
- version?: BlockVersion;
20
- }
21
-
22
13
  export interface BaseTileProps extends BaseTileContent, UniBlockProps {}
14
+
23
15
  const TITLE_CLASSES = 'font-medium m-0 mb-4 whitespace-pre-wrap max-w-[600px]';
24
16
 
25
17
  export const BaseTile = JSX<BaseTileProps>(
@@ -0,0 +1,14 @@
1
+ import type { BlockVersion } from './model/BlockVersion';
2
+ import type { Picture } from './model/Picture';
3
+ import type { IconButtonProps } from './ui-kit/IconButtonProps';
4
+ import type { TitleSize } from './ui-kit/TitleProps';
5
+
6
+ export interface BaseTileContent {
7
+ title?: string;
8
+ titleSize?: TitleSize;
9
+ description?: string;
10
+ image?: Picture;
11
+ items?: string[];
12
+ buttons?: Omit<IconButtonProps, 'className' | 'onClick' | 'ariaLabel'>[];
13
+ version?: BlockVersion;
14
+ }
@@ -1,17 +1,7 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import type { Benefit, BenefitsBlockContent } from './BenefitsBlockContent';
2
3
  import type { UniBlockProps } from './types';
3
- import { Icon, IconName } from './ui-kit/Icon';
4
-
5
- export interface Benefit {
6
- label: string;
7
- description?: string;
8
- icon?: IconName;
9
- }
10
-
11
- export interface BenefitsBlockContent {
12
- title?: string;
13
- benefits?: Benefit[];
14
- }
4
+ import { Icon } from './ui-kit/Icon';
15
5
 
16
6
  export interface BenefitsBlockProps extends BenefitsBlockContent, UniBlockProps {}
17
7
 
@@ -0,0 +1,12 @@
1
+ import type { IconName } from './ui-kit/IconProps';
2
+
3
+ export interface Benefit {
4
+ label: string;
5
+ description?: string;
6
+ icon?: IconName;
7
+ }
8
+
9
+ export interface BenefitsBlockContent {
10
+ title?: string;
11
+ benefits?: Benefit[];
12
+ }
@@ -0,0 +1,30 @@
1
+ import type { BenefitsBlockContent } from './BenefitsBlockContent';
2
+ import type { ExchangeRateTileContent } from './ExchangeRateTileContent';
3
+ import type { FooterContent } from './Footer/FooterContent';
4
+ import type { GalleryContent } from './GalleryContent';
5
+ import type { HeaderContent } from './Header/HeaderContent';
6
+ import type { MobileAppTileContent } from './MobileAppTileContent';
7
+ import type { PlaceholderContent } from './PlaceholderContent';
8
+ import type { ProductBlockContent } from './ProductBlockContent';
9
+ import type { ProductGalleryContent } from './ProductGalleryContent';
10
+ import type { ProductTileContent } from './ProductTileContent';
11
+ import type { PromoTileContent } from './PromoTileContent';
12
+ import type { StepsBlockContent } from './StepsBlockContent';
13
+ import type { TextBlockContent } from './TextBlockContent';
14
+ import type { TileContent } from './TileContent';
15
+
16
+ export type BlockContent =
17
+ | HeaderContent
18
+ | FooterContent
19
+ | PlaceholderContent
20
+ | TileContent
21
+ | PromoTileContent
22
+ | TextBlockContent
23
+ | ProductTileContent
24
+ | ProductBlockContent
25
+ | StepsBlockContent
26
+ | BenefitsBlockContent
27
+ | ProductGalleryContent
28
+ | ExchangeRateTileContent
29
+ | MobileAppTileContent
30
+ | GalleryContent;
package/src/Blocks.ts CHANGED
@@ -1,19 +1,17 @@
1
- import { BenefitsBlock, BenefitsBlockContent } from './BenefitsBlock';
2
- import { ExchangeRateTile, ExchangeRateTileContent } from './ExchangeRateTile';
3
- import { Footer, FooterContent } from './Footer/index';
4
- import { Header, HeaderContent } from './Header/index';
5
- import { MobileAppTile, MobileAppTileContent } from './MobileAppTile';
6
- import { Placeholder, PlaceholderContent } from './Placeholder';
1
+ import { BenefitsBlock } from './BenefitsBlock';
2
+ import { ExchangeRateTile } from './ExchangeRateTile';
3
+ import { Footer } from './Footer/Footer';
4
+ import { Gallery } from './Gallery';
5
+ import { Header } from './Header/Header';
6
+ import { MobileAppTile } from './MobileAppTile';
7
+ import { Placeholder } from './Placeholder';
7
8
  import { ProductBlock } from './ProductBlock';
8
- import { ProductBlockInnerContent } from './ProductBlockInner';
9
- import { ProductGallery, ProductGalleryContent } from './ProductGallery';
10
- import { StepsBlock, StepsBlockContent } from './StepsBlock';
11
- import { ProductTile, ProductTileContent } from './ProductTile';
12
- import { BaseTileContent } from './BaseTile';
13
- import { PromoTile, PromoTileContent } from './PromoTile';
9
+ import { ProductGallery } from './ProductGallery';
10
+ import { ProductTile } from './ProductTile';
11
+ import { PromoTile } from './PromoTile';
12
+ import { StepsBlock } from './StepsBlock';
13
+ import { TextBlock } from './TextBlock';
14
14
  import { Tile } from './Tile';
15
- import { TextBlock, TextBlockContent } from './TextBlock';
16
- import { Gallery, GalleryContent } from './Gallery';
17
15
 
18
16
  export const Blocks = {
19
17
  Header,
@@ -31,19 +29,3 @@ export const Blocks = {
31
29
  MobileAppTile,
32
30
  Gallery,
33
31
  };
34
-
35
- export type BlockContent =
36
- | HeaderContent
37
- | FooterContent
38
- | PlaceholderContent
39
- | BaseTileContent
40
- | TextBlockContent
41
- | ProductTileContent
42
- | PromoTileContent
43
- | ProductBlockInnerContent
44
- | StepsBlockContent
45
- | BenefitsBlockContent
46
- | ProductGalleryContent
47
- | ExchangeRateTileContent
48
- | MobileAppTileContent
49
- | GalleryContent;
@@ -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 { 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';
@@ -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[];
@@ -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,6 +1,8 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { LinkContent, UniBlockProps } from '../types';
3
- import { Icon, IconName } from '../ui-kit/Icon';
2
+ import type { LinkContent } from '../model/LinkContent';
3
+ import type { UniBlockProps } from '../types';
4
+ import { Icon } from '../ui-kit/Icon';
5
+ import type { IconName } from '../ui-kit/IconProps';
4
6
  import { useLink } from '../useLink';
5
7
 
6
8
  const ICONS_MAP: Array<{ origins: string[]; icon: IconName; label: string }> = [
@@ -1,5 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { LinkContent } from '../types';
2
+ import type { LinkContent } from '../model/LinkContent';
3
3
  import { useLink } from '../useLink';
4
4
  import { FooterLink } from './FooterLink';
5
5
 
@@ -2,7 +2,7 @@ import { context } from './setup-fixture';
2
2
 
3
3
  import { Gallery, GalleryProps } from './Gallery';
4
4
  import { Gallery as MobileGallery } from './Gallery.mobile';
5
- import { Picture } from './types';
5
+ import { Picture } from './model/Picture';
6
6
 
7
7
  const image: Picture = {
8
8
  src: 'money-1.png',
@@ -1,5 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { GalleryCard, GalleryProps } from './Gallery';
2
+ import type { GalleryProps } from './Gallery';
3
+ import type { GalleryCard } from './GalleryContent';
3
4
  import { Img } from './Img';
4
5
  import { BlockItem } from './ui-kit/BlockItem';
5
6
  import { Button } from './ui-kit/Button';
package/src/Gallery.tsx CHANGED
@@ -1,25 +1,12 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import type { GalleryCard, GalleryContent } from './GalleryContent';
2
3
  import { Img } from './Img';
3
- import { Picture, UniBlockProps } from './types';
4
+ import { UniBlockProps } from './types';
4
5
  import { ArrowButton } from './ui-kit/ArrowButton';
5
6
  import { BlockItem } from './ui-kit/BlockItem';
6
7
  import { Button } from './ui-kit/Button';
7
8
  import { Title } from './ui-kit/Title';
8
9
 
9
- export interface GalleryCard {
10
- title?: string;
11
- description?: string;
12
- image?: Picture;
13
- href?: string;
14
- items?: string[];
15
- }
16
-
17
- export interface GalleryContent {
18
- title?: string;
19
- description?: string;
20
- cards?: GalleryCard[];
21
- }
22
-
23
10
  export interface GalleryProps extends GalleryContent, UniBlockProps {}
24
11
 
25
12
  const CARD_WIDTH = 384;
@@ -0,0 +1,15 @@
1
+ import type { Picture } from './model/Picture';
2
+
3
+ export interface GalleryCard {
4
+ title?: string;
5
+ description?: string;
6
+ image?: Picture;
7
+ href?: string;
8
+ items?: string[];
9
+ }
10
+
11
+ export interface GalleryContent {
12
+ title?: string;
13
+ description?: string;
14
+ cards?: GalleryCard[];
15
+ }
@@ -1,6 +1,5 @@
1
- import type { TopMenuItem } from '../types';
1
+ import { SitemapContent } from '../model/SitemapContent';
2
2
 
3
- export interface HeaderContent {
3
+ export interface HeaderContent extends SitemapContent {
4
4
  defaultLocation?: string;
5
- topItems?: TopMenuItem[];
6
5
  }
@@ -1,5 +1,5 @@
1
1
  import type { Router } from '../ContentPageContext';
2
- import type { LinkContent } from '../types';
2
+ import type { LinkContent } from '../model/LinkContent';
3
3
  import { isHrefActive } from '../utils/url';
4
4
 
5
5
  export function isSubItemActive(router: Router) {
@@ -1,5 +1,5 @@
1
1
  import type { Router } from '../ContentPageContext';
2
- import type { LinkContent } from '../types';
2
+ import type { LinkContent } from '../model/LinkContent';
3
3
  import { isHrefActive } from '../utils/url';
4
4
 
5
5
  export function isTopItemActive(router: Router) {
package/src/Img.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { Picture, ImgSource } from './types';
2
+ import type { Picture, ImgSource } from './model/Picture';
3
3
 
4
4
  export interface TextWithImageProps {
5
5
  className?: string;
@@ -1,18 +1,8 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import type { MobileAppTileContent } from './MobileAppTileContent';
2
3
  import { Tile } from './Tile';
3
- import type { BaseTileContent } from './BaseTile';
4
4
  import type { UniBlockProps } from './types';
5
5
 
6
- export interface QRCode {
7
- src?: string;
8
- href?: string;
9
- }
10
-
11
- export interface MobileAppTileContent extends BaseTileContent {
12
- title?: string;
13
- qr?: QRCode;
14
- }
15
-
16
6
  export interface MobileAppTileProps extends MobileAppTileContent, UniBlockProps {}
17
7
 
18
8
  export const MobileAppTile = JSX<MobileAppTileProps>(
@@ -0,0 +1,11 @@
1
+ import type { BaseTileContent } from './BaseTileContent';
2
+
3
+ export interface QRCode {
4
+ src?: string;
5
+ href?: string;
6
+ }
7
+
8
+ export interface MobileAppTileContent extends BaseTileContent {
9
+ title?: string;
10
+ qr?: QRCode;
11
+ }
@@ -1,7 +1,7 @@
1
1
  import { ExchangeRateTile } from './ExchangeRateTile';
2
2
  import { Footer } from './Footer/Footer.mobile';
3
3
  import { Gallery } from './Gallery.mobile';
4
- import { Header } from './Header/index';
4
+ import { Header } from './Header/Header';
5
5
  import { MobileAppTile } from './MobileAppTile';
6
6
  import { Placeholder } from './Placeholder';
7
7
  import { ProductBlock } from './ProductBlock.mobile';
@@ -1,11 +1,8 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import type { PlaceholderContent } from './PlaceholderContent';
2
3
  import { Tile } from './Tile';
3
4
  import type { UniBlockProps } from './types';
4
5
 
5
- export interface PlaceholderContent {
6
- title?: string;
7
- }
8
-
9
6
  export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
10
7
  className?: string;
11
8
  }
@@ -0,0 +1,3 @@
1
+ export interface PlaceholderContent {
2
+ title?: string;
3
+ }
@@ -1,7 +1,7 @@
1
1
  import { context } from './setup-fixture';
2
2
 
3
3
  import { ProductBlock } from './ProductBlock';
4
- import { Picture } from './types';
4
+ import { Picture } from './model/Picture';
5
5
 
6
6
  const image: Picture = {
7
7
  src: 'money-1.png',
@@ -1,6 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { ProductBlockInnerContent } from './ProductBlockInner';
3
2
  import { ProductBlockInner } from './ProductBlockInner';
3
+ import type { ProductBlockInnerContent } from './ProductBlockInnerContent';
4
4
  import type { UniBlockProps } from './types';
5
5
 
6
6
  export interface ProductBlockProps extends ProductBlockInnerContent, UniBlockProps {}
@@ -1,14 +1,12 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import type { ProductBlockContent } from './ProductBlockContent';
2
3
  import { ProductBlockInner } from './ProductBlockInner';
3
- import type { ProductBlockInnerContent } from './ProductBlockInner';
4
4
  import type { UniBlockProps } from './types';
5
- import { Breadcrumb, BreadcrumbProps } from './ui-kit/Breadcrumb';
5
+ import { Breadcrumb } from './ui-kit/Breadcrumb';
6
6
  import { useLink } from './useLink';
7
7
  import { joinList } from './utils/joinList';
8
8
 
9
- export interface ProductBlockProps extends ProductBlockInnerContent, UniBlockProps {
10
- breadcrumbs?: BreadcrumbProps[];
11
- }
9
+ export interface ProductBlockProps extends ProductBlockContent, UniBlockProps {}
12
10
 
13
11
  export const ProductBlock = JSX<ProductBlockProps>((props) => {
14
12
  const { context, className, breadcrumbs } = props;