@redneckz/wildless-cms-uni-blocks 0.2.85 → 0.2.88

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 (342) hide show
  1. package/bundle/blocks.schema.json +1 -945
  2. package/bundle/bundle.umd.js +551 -487
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/components/Accordion/Accordion.js +1 -1
  5. package/dist/components/Accordion/Accordion.js.map +1 -1
  6. package/dist/components/Accordion/AccordionBlocks.d.ts +3 -0
  7. package/dist/components/Accordion/AccordionBlocks.js +6 -0
  8. package/dist/components/Accordion/AccordionBlocks.js.map +1 -1
  9. package/dist/components/Accordion/AccordionContent.d.ts +37 -10
  10. package/dist/components/Accordion/AccordionItem.d.ts +2 -2
  11. package/dist/components/Accordion/AccordionItem.js +5 -6
  12. package/dist/components/Accordion/AccordionItem.js.map +1 -1
  13. package/dist/components/BaseTile/BaseTile.d.ts +2 -2
  14. package/dist/components/BaseTile/BaseTile.js +14 -4
  15. package/dist/components/BaseTile/BaseTile.js.map +1 -1
  16. package/dist/components/BaseTile/BaseTileProps.d.ts +41 -0
  17. package/dist/{model/SitemapContent.js → components/BaseTile/BaseTileProps.js} +1 -1
  18. package/dist/components/BaseTile/BaseTileProps.js.map +1 -0
  19. package/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
  20. package/dist/components/BenefitsBlock/BenefitsBlock.js +2 -1
  21. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  22. package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +14 -1
  23. package/dist/components/BlockContent.d.ts +7 -2
  24. package/dist/components/Blocks.d.ts +17 -14
  25. package/dist/components/Blocks.js +23 -17
  26. package/dist/components/Blocks.js.map +1 -1
  27. package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +45 -2
  28. package/dist/components/ComparisonTable/HeaderCell.d.ts +2 -2
  29. package/dist/components/ContentPage/ContentPage.d.ts +3 -2
  30. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  31. package/dist/components/CreditCalculator/CreditCalculatorContent.d.ts +4 -0
  32. package/dist/components/ExchangeRateTile/ExchangeRateTile.d.ts +1 -1
  33. package/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  34. package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  35. package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +4 -0
  36. package/dist/components/Footer/Contacts.js +2 -2
  37. package/dist/components/Footer/Contacts.js.map +1 -1
  38. package/dist/components/Footer/FooterContent.d.ts +35 -9
  39. package/dist/components/Footer/FooterLink.d.ts +2 -2
  40. package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  41. package/dist/components/Footer/Sitemap.d.ts +1 -1
  42. package/dist/components/Footer/Sitemap.js +1 -1
  43. package/dist/components/Footer/Sitemap.js.map +1 -1
  44. package/dist/components/Footer/SocialMedia.d.ts +2 -2
  45. package/dist/components/Footer/TextInformation.js.map +1 -1
  46. package/dist/components/Gallery/GalleryContent.d.ts +13 -0
  47. package/dist/components/Header/HeaderContent.d.ts +10 -2
  48. package/dist/components/Header/isSubItemActive.d.ts +2 -2
  49. package/dist/components/Header/isSubItemActive.js.map +1 -1
  50. package/dist/components/Header/isTopItemActive.d.ts +2 -2
  51. package/dist/components/Header/isTopItemActive.js.map +1 -1
  52. package/dist/components/Headline/Headline.d.ts +5 -0
  53. package/dist/components/Headline/Headline.js +9 -0
  54. package/dist/components/Headline/Headline.js.map +1 -0
  55. package/dist/components/Headline/HeadlineContent.d.ts +15 -0
  56. package/dist/components/{BaseTile/BaseTileContent.js → Headline/HeadlineContent.js} +1 -1
  57. package/dist/components/Headline/HeadlineContent.js.map +1 -0
  58. package/dist/components/LinkDocs/LinkDocs.d.ts +5 -0
  59. package/dist/components/LinkDocs/LinkDocs.js +42 -0
  60. package/dist/components/LinkDocs/LinkDocs.js.map +1 -0
  61. package/dist/components/LinkDocs/LinkDocsContent.d.ts +23 -0
  62. package/dist/components/LinkDocs/LinkDocsContent.js +2 -0
  63. package/dist/components/LinkDocs/LinkDocsContent.js.map +1 -0
  64. package/dist/components/MiniGallery/MiniGallery.d.ts +3 -3
  65. package/dist/components/MiniGallery/MiniGalleryContent.d.ts +6 -0
  66. package/dist/components/MiniGallery/MiniGalleryContent.js +2 -0
  67. package/dist/components/MiniGallery/MiniGalleryContent.js.map +1 -0
  68. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +11 -2
  69. package/dist/components/MobileBlocks.d.ts +8 -6
  70. package/dist/components/MobileBlocks.js +10 -6
  71. package/dist/components/MobileBlocks.js.map +1 -1
  72. package/dist/components/PictureText/PictureText.d.ts +5 -0
  73. package/dist/components/PictureText/PictureText.js +14 -0
  74. package/dist/components/PictureText/PictureText.js.map +1 -0
  75. package/dist/components/PictureText/PictureTextContent.d.ts +11 -0
  76. package/dist/components/PictureText/PictureTextContent.js +2 -0
  77. package/dist/components/PictureText/PictureTextContent.js.map +1 -0
  78. package/dist/components/Placeholder/PlaceholderContent.d.ts +3 -0
  79. package/dist/components/ProductBlock/ProductBlock.mobile.d.ts +2 -2
  80. package/dist/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
  81. package/dist/components/ProductBlock/ProductBlockContent.d.ts +10 -5
  82. package/dist/components/ProductBlock/ProductBlockInner.d.ts +2 -2
  83. package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  84. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  85. package/dist/components/ProductGallery/ProductGallery.d.ts +1 -1
  86. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  87. package/dist/components/ProductGallery/ProductGalleryContent.d.ts +19 -4
  88. package/dist/components/ProductTile/ProductTileContent.d.ts +6 -2
  89. package/dist/components/PromoTile/PromoTileContent.d.ts +6 -2
  90. package/dist/components/StepsBlock/StepsBlockContent.d.ts +13 -0
  91. package/dist/components/TextBlock/TextBlockContent.d.ts +13 -0
  92. package/dist/components/Tile/TileContent.d.ts +5 -2
  93. package/dist/hooks/useLink.d.ts +3 -3
  94. package/dist/hooks/useLink.js.map +1 -1
  95. package/dist/index.d.ts +12 -12
  96. package/dist/index.js +10 -10
  97. package/dist/index.js.map +1 -1
  98. package/dist/mergeTopItems.d.ts +2 -2
  99. package/dist/mergeTopItems.js.map +1 -1
  100. package/dist/model/BlockVersion.d.ts +4 -0
  101. package/dist/model/ButtonVersion.d.ts +4 -0
  102. package/dist/model/LinkProps.d.ts +21 -0
  103. package/dist/model/{LinkContent.js → LinkProps.js} +1 -1
  104. package/dist/model/LinkProps.js.map +1 -0
  105. package/dist/model/Picture.d.ts +11 -0
  106. package/dist/model/SitemapProps.d.ts +13 -0
  107. package/dist/model/SitemapProps.js +2 -0
  108. package/dist/model/SitemapProps.js.map +1 -0
  109. package/dist/types.d.ts +2 -2
  110. package/dist/ui-kit/Breadcrumb.d.ts +2 -2
  111. package/dist/ui-kit/Button/Button.d.ts +6 -3
  112. package/dist/ui-kit/Button/Button.js.map +1 -1
  113. package/dist/ui-kit/Button/ButtonProps.d.ts +15 -12
  114. package/dist/ui-kit/Icon/IconProps.d.ts +53 -18
  115. package/dist/ui-kit/Icon/IconProps.js +23 -18
  116. package/dist/ui-kit/Icon/IconProps.js.map +1 -1
  117. package/dist/ui-kit/TopItem/TopItem.d.ts +2 -2
  118. package/lib/common.css +1 -1
  119. package/lib/components/Accordion/Accordion.fixture.d.ts +1 -0
  120. package/lib/components/Accordion/Accordion.js +1 -1
  121. package/lib/components/Accordion/Accordion.js.map +1 -1
  122. package/lib/components/Accordion/AccordionBlocks.d.ts +3 -0
  123. package/lib/components/Accordion/AccordionBlocks.js +6 -0
  124. package/lib/components/Accordion/AccordionBlocks.js.map +1 -1
  125. package/lib/components/Accordion/AccordionContent.d.ts +37 -10
  126. package/lib/components/Accordion/AccordionItem.d.ts +2 -2
  127. package/lib/components/Accordion/AccordionItem.js +5 -6
  128. package/lib/components/Accordion/AccordionItem.js.map +1 -1
  129. package/lib/components/BaseTile/BaseTile.d.ts +2 -2
  130. package/lib/components/BaseTile/BaseTile.js +14 -4
  131. package/lib/components/BaseTile/BaseTile.js.map +1 -1
  132. package/lib/components/BaseTile/BaseTileProps.d.ts +41 -0
  133. package/lib/components/BaseTile/BaseTileProps.js +2 -0
  134. package/lib/components/BaseTile/BaseTileProps.js.map +1 -0
  135. package/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
  136. package/lib/components/BenefitsBlock/BenefitsBlock.js +2 -1
  137. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  138. package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +14 -1
  139. package/lib/components/BlockContent.d.ts +7 -2
  140. package/lib/components/Blocks.d.ts +17 -14
  141. package/lib/components/Blocks.js +23 -17
  142. package/lib/components/Blocks.js.map +1 -1
  143. package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +45 -2
  144. package/lib/components/ComparisonTable/HeaderCell.d.ts +2 -2
  145. package/lib/components/ContentPage/ContentPage.d.ts +3 -2
  146. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  147. package/lib/components/CreditCalculator/CreditCalculatorContent.d.ts +4 -0
  148. package/lib/components/ExchangeRateTile/ExchangeRateTile.d.ts +1 -1
  149. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  150. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  151. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +4 -0
  152. package/lib/components/Footer/Contacts.js +2 -2
  153. package/lib/components/Footer/Contacts.js.map +1 -1
  154. package/lib/components/Footer/FooterContent.d.ts +35 -9
  155. package/lib/components/Footer/FooterLink.d.ts +2 -2
  156. package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  157. package/lib/components/Footer/Sitemap.d.ts +1 -1
  158. package/lib/components/Footer/Sitemap.js +1 -1
  159. package/lib/components/Footer/Sitemap.js.map +1 -1
  160. package/lib/components/Footer/SocialMedia.d.ts +2 -2
  161. package/lib/components/Footer/TextInformation.js.map +1 -1
  162. package/lib/components/Gallery/GalleryContent.d.ts +13 -0
  163. package/lib/components/Header/HeaderContent.d.ts +10 -2
  164. package/lib/components/Header/isSubItemActive.d.ts +2 -2
  165. package/lib/components/Header/isSubItemActive.js.map +1 -1
  166. package/lib/components/Header/isTopItemActive.d.ts +2 -2
  167. package/lib/components/Header/isTopItemActive.js.map +1 -1
  168. package/lib/components/Headline/Headline.d.ts +5 -0
  169. package/lib/components/Headline/Headline.fixture.d.ts +7 -0
  170. package/lib/components/Headline/Headline.js +7 -0
  171. package/lib/components/Headline/Headline.js.map +1 -0
  172. package/lib/components/Headline/HeadlineContent.d.ts +15 -0
  173. package/lib/components/Headline/HeadlineContent.js +2 -0
  174. package/lib/components/Headline/HeadlineContent.js.map +1 -0
  175. package/lib/components/LinkDocs/LinkDocs.d.ts +5 -0
  176. package/lib/components/LinkDocs/LinkDocs.fixture.d.ts +12 -0
  177. package/lib/components/LinkDocs/LinkDocs.js +40 -0
  178. package/lib/components/LinkDocs/LinkDocs.js.map +1 -0
  179. package/lib/components/LinkDocs/LinkDocsContent.d.ts +23 -0
  180. package/lib/components/LinkDocs/LinkDocsContent.js +2 -0
  181. package/lib/components/LinkDocs/LinkDocsContent.js.map +1 -0
  182. package/lib/components/MiniGallery/MiniGallery.d.ts +3 -3
  183. package/lib/components/MiniGallery/MiniGalleryContent.d.ts +6 -0
  184. package/lib/components/MiniGallery/MiniGalleryContent.js +2 -0
  185. package/lib/components/MiniGallery/MiniGalleryContent.js.map +1 -0
  186. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +11 -2
  187. package/lib/components/MobileBlocks.d.ts +8 -6
  188. package/lib/components/MobileBlocks.js +10 -6
  189. package/lib/components/MobileBlocks.js.map +1 -1
  190. package/lib/components/PictureText/PictureText.d.ts +5 -0
  191. package/lib/components/PictureText/PictureText.fixture.d.ts +4 -0
  192. package/lib/components/PictureText/PictureText.js +12 -0
  193. package/lib/components/PictureText/PictureText.js.map +1 -0
  194. package/lib/components/PictureText/PictureTextContent.d.ts +11 -0
  195. package/lib/components/PictureText/PictureTextContent.js +2 -0
  196. package/lib/components/PictureText/PictureTextContent.js.map +1 -0
  197. package/lib/components/Placeholder/PlaceholderContent.d.ts +3 -0
  198. package/lib/components/ProductBlock/ProductBlock.mobile.d.ts +2 -2
  199. package/lib/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
  200. package/lib/components/ProductBlock/ProductBlockContent.d.ts +10 -5
  201. package/lib/components/ProductBlock/ProductBlockInner.d.ts +2 -2
  202. package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  203. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  204. package/lib/components/ProductGallery/ProductGallery.d.ts +1 -1
  205. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  206. package/lib/components/ProductGallery/ProductGalleryContent.d.ts +19 -4
  207. package/lib/components/ProductTile/ProductTileContent.d.ts +6 -2
  208. package/lib/components/PromoTile/PromoTileContent.d.ts +6 -2
  209. package/lib/components/StepsBlock/StepsBlockContent.d.ts +13 -0
  210. package/lib/components/TextBlock/TextBlockContent.d.ts +13 -0
  211. package/lib/components/Tile/TileContent.d.ts +5 -2
  212. package/lib/hooks/useLink.d.ts +3 -3
  213. package/lib/hooks/useLink.js.map +1 -1
  214. package/lib/index.d.ts +12 -12
  215. package/lib/index.js +5 -5
  216. package/lib/index.js.map +1 -1
  217. package/lib/mergeTopItems.d.ts +2 -2
  218. package/lib/mergeTopItems.js.map +1 -1
  219. package/lib/model/BlockVersion.d.ts +4 -0
  220. package/lib/model/ButtonVersion.d.ts +4 -0
  221. package/lib/model/LinkProps.d.ts +21 -0
  222. package/lib/model/LinkProps.js +2 -0
  223. package/lib/model/LinkProps.js.map +1 -0
  224. package/lib/model/Picture.d.ts +11 -0
  225. package/lib/model/SitemapProps.d.ts +13 -0
  226. package/lib/model/SitemapProps.js +2 -0
  227. package/lib/model/SitemapProps.js.map +1 -0
  228. package/lib/types.d.ts +2 -2
  229. package/lib/ui-kit/Breadcrumb.d.ts +2 -2
  230. package/lib/ui-kit/Button/Button.d.ts +6 -3
  231. package/lib/ui-kit/Button/Button.js.map +1 -1
  232. package/lib/ui-kit/Button/ButtonProps.d.ts +15 -12
  233. package/lib/ui-kit/Icon/IconProps.d.ts +53 -18
  234. package/lib/ui-kit/Icon/IconProps.js +23 -18
  235. package/lib/ui-kit/Icon/IconProps.js.map +1 -1
  236. package/lib/ui-kit/TopItem/TopItem.d.ts +2 -2
  237. package/package.json +2 -22
  238. package/src/components/Accordion/Accordion.example.json +74 -0
  239. package/src/components/Accordion/Accordion.fixture.tsx +93 -7
  240. package/src/components/Accordion/Accordion.tsx +1 -1
  241. package/src/components/Accordion/AccordionBlocks.tsx +6 -0
  242. package/src/components/Accordion/AccordionContent.ts +43 -11
  243. package/src/components/Accordion/AccordionItem.tsx +10 -10
  244. package/src/components/BaseTile/BaseTile.tsx +22 -9
  245. package/src/components/BaseTile/BaseTileProps.ts +44 -0
  246. package/src/components/BenefitsBlock/BenefitsBlock.example.json +13 -0
  247. package/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -2
  248. package/src/components/BenefitsBlock/BenefitsBlockContent.ts +14 -1
  249. package/src/components/BlockContent.ts +19 -12
  250. package/src/components/Blocks.ts +23 -17
  251. package/src/components/ComparisonTable/ComparisonTable.example.json +84 -0
  252. package/src/components/ComparisonTable/ComparisonTableContent.ts +46 -3
  253. package/src/components/ComparisonTable/HeaderCell.tsx +2 -2
  254. package/src/components/ContentPage/ContentPage.page.json +88 -2
  255. package/src/components/ContentPage/ContentPage.tsx +7 -5
  256. package/src/components/CreditCalculator/CreditCalculatorContent.ts +4 -0
  257. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +2 -2
  258. package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +4 -0
  259. package/src/components/Footer/Contacts.tsx +2 -2
  260. package/src/components/Footer/FooterContent.ts +36 -9
  261. package/src/components/Footer/FooterLink.ts +2 -2
  262. package/src/components/Footer/HorizontalNavigation.tsx +2 -2
  263. package/src/components/Footer/Sitemap.tsx +5 -5
  264. package/src/components/Footer/SocialMedia.tsx +2 -2
  265. package/src/components/Footer/TextInformation.tsx +2 -2
  266. package/src/components/Gallery/Gallery.example.json +71 -0
  267. package/src/components/Gallery/GalleryContent.ts +13 -0
  268. package/src/components/Header/HeaderContent.ts +10 -2
  269. package/src/components/Header/isSubItemActive.ts +3 -3
  270. package/src/components/Header/isTopItemActive.ts +3 -3
  271. package/src/components/Headline/Headline.example.json +6 -0
  272. package/src/components/Headline/Headline.fixture.tsx +42 -0
  273. package/src/components/Headline/Headline.tsx +15 -0
  274. package/src/components/Headline/HeadlineContent.ts +18 -0
  275. package/src/components/LinkDocs/LinkDocs.fixture.tsx +51 -0
  276. package/src/components/LinkDocs/LinkDocs.tsx +81 -0
  277. package/src/components/LinkDocs/LinkDocsContent.ts +26 -0
  278. package/src/components/MiniGallery/MiniGallery.example.json +61 -0
  279. package/src/components/MiniGallery/MiniGallery.tsx +3 -3
  280. package/src/components/MiniGallery/MiniGalleryContent.ts +6 -0
  281. package/src/components/MobileAppTile/MobileAppTile.example.json +20 -0
  282. package/src/components/MobileAppTile/MobileAppTileContent.ts +11 -2
  283. package/src/components/MobileBlocks.ts +10 -6
  284. package/src/components/PictureText/PictureText.example.json +20 -0
  285. package/src/components/PictureText/PictureText.fixture.tsx +36 -0
  286. package/src/components/PictureText/PictureText.tsx +45 -0
  287. package/src/components/PictureText/PictureTextContent.ts +13 -0
  288. package/src/components/Placeholder/PlaceholderContent.ts +3 -0
  289. package/src/components/ProductBlock/ProductBlock.example.json +17 -0
  290. package/src/components/ProductBlock/ProductBlock.mobile.tsx +3 -3
  291. package/src/components/ProductBlock/ProductBlockContent.ts +10 -5
  292. package/src/components/ProductBlock/ProductBlockInner.tsx +4 -4
  293. package/src/components/ProductGallery/ProductGallery.example.json +21 -0
  294. package/src/components/ProductGallery/ProductGallery.tsx +3 -3
  295. package/src/components/ProductGallery/ProductGalleryContent.ts +19 -4
  296. package/src/components/ProductTile/ProductTile.example.json +30 -0
  297. package/src/components/ProductTile/ProductTileContent.ts +6 -2
  298. package/src/components/PromoTile/PromoTile.example.json +13 -0
  299. package/src/components/PromoTile/PromoTileContent.ts +6 -2
  300. package/src/components/StepsBlock/StepsBlock.example.json +17 -0
  301. package/src/components/StepsBlock/StepsBlockContent.ts +13 -0
  302. package/src/components/TextBlock/TextBlock.example.json +6 -0
  303. package/src/components/TextBlock/TextBlockContent.ts +14 -0
  304. package/src/components/Tile/Tile.example.json +18 -0
  305. package/src/components/Tile/TileContent.ts +5 -2
  306. package/src/hooks/useLink.ts +2 -2
  307. package/src/icons/DiscountShape.svg +7 -0
  308. package/src/icons/DocIcon.svg +1 -1
  309. package/src/icons/DocumentText.svg +6 -0
  310. package/src/index.ts +14 -21
  311. package/src/mergeTopItems.ts +5 -5
  312. package/src/model/BlockVersion.ts +4 -0
  313. package/src/model/ButtonVersion.ts +4 -0
  314. package/src/model/LinkProps.ts +22 -0
  315. package/src/model/Picture.ts +11 -0
  316. package/src/model/SitemapProps.ts +15 -0
  317. package/src/types.ts +2 -2
  318. package/src/ui-kit/Breadcrumb.tsx +2 -2
  319. package/src/ui-kit/Button/Button.tsx +7 -3
  320. package/src/ui-kit/Button/ButtonProps.ts +16 -13
  321. package/src/ui-kit/Icon/IconProps.ts +39 -4
  322. package/src/ui-kit/TopItem/TopItem.tsx +2 -2
  323. package/dist/components/BaseTile/BaseTileContent.d.ts +0 -13
  324. package/dist/components/BaseTile/BaseTileContent.js.map +0 -1
  325. package/dist/model/LinkContent.d.ts +0 -5
  326. package/dist/model/LinkContent.js.map +0 -1
  327. package/dist/model/SitemapContent.d.ts +0 -7
  328. package/dist/model/SitemapContent.js.map +0 -1
  329. package/lib/components/BaseTile/BaseTileContent.d.ts +0 -13
  330. package/lib/components/BaseTile/BaseTileContent.js +0 -2
  331. package/lib/components/BaseTile/BaseTileContent.js.map +0 -1
  332. package/lib/model/LinkContent.d.ts +0 -5
  333. package/lib/model/LinkContent.js +0 -2
  334. package/lib/model/LinkContent.js.map +0 -1
  335. package/lib/model/SitemapContent.d.ts +0 -7
  336. package/lib/model/SitemapContent.js +0 -2
  337. package/lib/model/SitemapContent.js.map +0 -1
  338. package/src/components/BaseTile/BaseTileContent.ts +0 -14
  339. package/src/icons/MinusIcon.svg +0 -1
  340. package/src/icons/PlusIcon.svg +0 -1
  341. package/src/model/LinkContent.ts +0 -5
  342. package/src/model/SitemapContent.ts +0 -9
@@ -1,43 +1,86 @@
1
- import type { LinkContent } from '../../model/LinkContent';
1
+ import type { LinkProps } from '../../model/LinkProps';
2
2
  import type { Picture } from '../../model/Picture';
3
3
  import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
4
4
  import type { IconName } from '../../ui-kit/Icon/IconProps';
5
5
 
6
+ /**
7
+ * @hidden
8
+ */
6
9
  export type Row = {
7
10
  header: RowHeader;
8
11
  data: CellData[][];
9
12
  };
10
13
 
14
+ /**
15
+ * @hidden
16
+ */
11
17
  export type RowData = Row[] | undefined;
12
18
 
19
+ /**
20
+ * @title Ячейка
21
+ */
13
22
  export interface CellData {
23
+ /** @title Заголовок */
14
24
  label?: string;
25
+ /** @title Описание */
15
26
  description?: string;
27
+ /**
28
+ * @title Иконки
29
+ * @hidden
30
+ */
16
31
  icons?: IconName[];
32
+ /** @hidden */
17
33
  image?: Picture;
34
+ /**
35
+ * @title Кнопки
36
+ * @hidden
37
+ */
18
38
  buttons?: ButtonProps[];
19
39
  }
20
40
 
41
+ /**
42
+ * @title Шапка колонки
43
+ */
21
44
  export interface ColumnHeader {
45
+ /** @title Заголовок */
22
46
  title?: string;
47
+ /** @hidden */
23
48
  icon?: IconName;
49
+ /** @hidden */
24
50
  image?: Picture;
25
- link?: LinkContent;
51
+ /** @hidden */
52
+ link?: LinkProps;
26
53
  }
54
+
55
+ /**
56
+ * @title Продукт
57
+ */
27
58
  export interface Column {
28
59
  header?: ColumnHeader;
60
+ /** @title Данные */
29
61
  data?: CellData[][];
30
62
  }
31
63
 
64
+ /**
65
+ * @title Параметр
66
+ */
32
67
  export interface RowHeader {
68
+ /** @title Заголовок */
33
69
  title?: string;
34
70
  icon?: IconName;
35
71
  }
36
-
72
+ /**
73
+ * @title Сравнительная таблица
74
+ */
37
75
  export interface ComparisonTableContent {
76
+ /** @title Заголовок */
38
77
  title?: string;
78
+ /** @title Параметры */
39
79
  rowHeaders?: RowHeader[];
80
+ /** @title Продукты */
40
81
  columns?: Column[];
82
+ /** @title Отображать заданное количество строк */
41
83
  visibleRowLength?: number;
84
+ /** @title Закрасить первую колонку */
42
85
  isColoredFirstColumn?: boolean;
43
86
  }
@@ -1,5 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { LinkContent } from '../../model/LinkContent';
2
+ import type { LinkProps } from '../../model/LinkProps';
3
3
  import type { Picture } from '../../model/Picture';
4
4
  import { Button } from '../../ui-kit/Button/Button';
5
5
  import { Icon } from '../../ui-kit/Icon/Icon';
@@ -12,7 +12,7 @@ export interface HeaderCellProps {
12
12
  icon?: IconName;
13
13
  image?: Picture;
14
14
  title?: string;
15
- link?: LinkContent;
15
+ link?: LinkProps;
16
16
  }
17
17
 
18
18
  export const HeaderCell = JSX<HeaderCellProps>(({ icon, image, title, link }) => (
@@ -1361,10 +1361,96 @@
1361
1361
  }
1362
1362
  },
1363
1363
  {
1364
- "type": "CreditCalculator",
1364
+ "type": "Headline",
1365
1365
  "style": ["col-span-12"],
1366
1366
  "content": {
1367
- "directoryName": "credit-calculator-data"
1367
+ "title": "Своя кредитная карта",
1368
+ "description": "Карта работает в 180 странах мира. Бесплатное снятие наличных в любых банкоматах.",
1369
+ "align": "center",
1370
+ "bgColor": "transparent"
1371
+ }
1372
+ },
1373
+ {
1374
+ "type": "LinkDocs",
1375
+ "style": ["col-span-12"],
1376
+ "content": {
1377
+ "title": "Дополнительные документы",
1378
+ "icon": "DocIcon",
1379
+ "documents": [
1380
+ {
1381
+ "text": "target self",
1382
+ "href": "/abc1/cooldoc.doc",
1383
+ "target": "_self"
1384
+ },
1385
+ {
1386
+ "text": "target blank",
1387
+ "href": "/abc2/wtf.rtf",
1388
+ "target": "_blank"
1389
+ },
1390
+ {
1391
+ "text": "GlassIcon",
1392
+ "href": "/abc3/map.jpeg"
1393
+ },
1394
+ {
1395
+ "text": "no icon",
1396
+ "href": "/abc4"
1397
+ },
1398
+ {
1399
+ "text": "документ 5",
1400
+ "href": "/abc5"
1401
+ },
1402
+ {
1403
+ "text": "документ 6",
1404
+ "href": "/abc6/abc.pdf"
1405
+ },
1406
+ {
1407
+ "text": "Text text text",
1408
+ "href": "/abc7/yolo.png"
1409
+ },
1410
+ {
1411
+ "text": "Some more generic text, and even more, more text",
1412
+ "href": "/abc8/archive.zip",
1413
+ "fileSize": "2.3МБ"
1414
+ },
1415
+ {
1416
+ "text": "И ещё немного текста",
1417
+ "href": "/abc9/rarniw.rar",
1418
+ "fileSize": "666МБ"
1419
+ },
1420
+ {
1421
+ "text": "Форматируем, сортируем, смотрим как отображается...",
1422
+ "href": "/abc10/",
1423
+ "fileSize": "65ГБ"
1424
+ }
1425
+ ]
1426
+ }
1427
+ },
1428
+ {
1429
+ "type": "PictureText",
1430
+ "style": ["col-span-12"],
1431
+ "content": {
1432
+ "title": "Варианты потребительского кредита",
1433
+ "benefits": [
1434
+ {
1435
+ "label": "Кредит по одному документу",
1436
+ "description": "До 300 тыс ₽ по упрощённой процедуре получения кредита",
1437
+ "icon": "DocumentText"
1438
+ },
1439
+ {
1440
+ "label": "Кредит на общих условиях",
1441
+ "description": "До 5 млн ₽ на общих условиях получения кредита",
1442
+ "icon": "DiscountShape"
1443
+ }
1444
+ ],
1445
+ "image": {
1446
+ "src": "legal-support-business.png",
1447
+ "alt": "Варианты потребительского кредита",
1448
+ "format": "webp",
1449
+ "size": {
1450
+ "width": 200,
1451
+ "height": 200
1452
+ }
1453
+ }
1368
1454
  }
1369
1455
  },
1370
1456
  {
@@ -1,8 +1,8 @@
1
1
  import { JSX, PropsWithChildren } from '@redneckz/uni-jsx';
2
+ import type { BlockDef, ContentPageDef, UniBlockProps } from '../../types';
2
3
  import type { BlockContent } from '../BlockContent';
3
4
  import { LikeControl } from '../LikeControl/LikeControl';
4
5
  import { Placeholder } from '../Placeholder/Placeholder';
5
- import type { BlockDef, ContentPageDef, UniBlockProps } from '../../types';
6
6
 
7
7
  interface BlockDecoratorProps<VNode> {
8
8
  blockClassName: string;
@@ -15,11 +15,13 @@ export type BlockDecorator<VNode = any> = (
15
15
  index?: number | string,
16
16
  ) => any;
17
17
 
18
+ export type JSXBlock = (
19
+ props: PropsWithChildren<UniBlockProps & BlockContent, any>,
20
+ context?: any,
21
+ ) => any;
22
+
18
23
  export interface ContentPageProps extends UniBlockProps {
19
- blocksRegistry: Record<
20
- string,
21
- (props: PropsWithChildren<UniBlockProps & BlockContent, any>, context?: any) => any
22
- >;
24
+ blocksRegistry: Record<string, JSXBlock>;
23
25
  data: ContentPageDef;
24
26
  blockDecorator?: BlockDecorator;
25
27
  }
@@ -12,6 +12,10 @@ export interface CreditCalculatorData {
12
12
  rows?: CalculatorParams[];
13
13
  }
14
14
 
15
+ /**
16
+ * @title Кредитный калькулятор
17
+ */
15
18
  export interface CreditCalculatorContent {
19
+ /** @title Справочник */
16
20
  directoryName?: string;
17
21
  }
@@ -1,9 +1,9 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { ExchangeRateTileContent } from './ExchangeRateTileContent';
3
- import { Tile } from '../Tile/Tile';
4
2
  import type { UniBlockProps } from '../../types';
5
3
  import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
6
4
  import { Icon } from '../../ui-kit/Icon/Icon';
5
+ import { Tile } from '../Tile/Tile';
6
+ import type { ExchangeRateTileContent } from './ExchangeRateTileContent';
7
7
 
8
8
  export interface ExchangeRateTileProps extends ExchangeRateTileContent, UniBlockProps {}
9
9
 
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @title Курсы валют
3
+ */
1
4
  export interface ExchangeRateTileContent {
5
+ /** @title Заголовок */
2
6
  title?: string;
3
7
  }
@@ -1,7 +1,7 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { useLink } from '../../hooks/useLink';
2
3
  import type { UniBlockProps } from '../../types';
3
4
  import { Button } from '../../ui-kit/Button/Button';
4
- import { useLink } from '../../hooks/useLink';
5
5
  import type { ContactInfo } from './FooterContent';
6
6
 
7
7
  export interface ContactsProps extends UniBlockProps {
@@ -45,7 +45,7 @@ const renderContact = (item: ContactInfo, index: number) => {
45
45
  );
46
46
  };
47
47
 
48
- const renderText = (type: ContactInfo['type'], text: string) => {
48
+ const renderText = (type: ContactInfo['type'], text = '') => {
49
49
  switch (type) {
50
50
  case 'tel':
51
51
  return (
@@ -1,15 +1,42 @@
1
- import type { LinkContent } from '../../model/LinkContent';
2
- import type { SitemapContent } from '../../model/SitemapContent';
1
+ import type { LinkProps } from '../../model/LinkProps';
2
+ import type { SitemapProps } from '../../model/SitemapProps';
3
3
 
4
+ /**
5
+ * @title Тип контакта
6
+ * @enumNames [
7
+ * "Телефон",
8
+ * "Почта"
9
+ * ]
10
+ */
11
+ export type ContactType = 'tel' | 'email';
12
+
13
+ /**
14
+ * @title Контакт
15
+ */
4
16
  export interface ContactInfo {
5
- text: string;
6
- type: 'tel' | 'email';
7
- description: string;
17
+ /** @title Текст */
18
+ text?: string;
19
+ type?: ContactType;
20
+ /** @title Описание */
21
+ description?: string;
8
22
  }
9
23
 
10
- export interface FooterContent extends SitemapContent {
11
- documents?: LinkContent[];
12
- relatedEnterprises?: LinkContent[];
24
+ /**
25
+ * @required ["href"]
26
+ */
27
+ export interface SocialMedia extends Omit<LinkProps, 'text'> {}
28
+
29
+ /**
30
+ * @title Подвал
31
+ * @required ["topItems"]
32
+ */
33
+ export interface FooterContent extends SitemapProps {
34
+ /** @title Обязательные документы */
35
+ documents?: LinkProps[];
36
+ /** @title Другие предприятия */
37
+ relatedEnterprises?: LinkProps[];
38
+ /** @title Контакты */
13
39
  contacts?: ContactInfo[];
14
- socialMedia?: Omit<LinkContent, 'text'>[];
40
+ /** @title Социальные сети */
41
+ socialMedia?: SocialMedia[];
15
42
  }
@@ -1,6 +1,6 @@
1
- import type { LinkContent } from '../../model/LinkContent';
1
+ import type { LinkProps } from '../../model/LinkProps';
2
2
  import type { UniBlockProps } from '../../types';
3
3
 
4
4
  export interface FooterLink extends UniBlockProps {
5
- links?: LinkContent[];
5
+ links?: LinkProps[];
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { LinkContent } from '../../model/LinkContent';
3
2
  import { useLink } from '../../hooks/useLink';
3
+ import { LinkProps } from '../../model/LinkProps';
4
4
  import type { FooterLink } from './FooterLink';
5
5
 
6
6
  export const HorizontalNavigation = JSX<FooterLink>(({ className, links, context }) => {
@@ -24,7 +24,7 @@ export const HorizontalNavigation = JSX<FooterLink>(({ className, links, context
24
24
  );
25
25
  });
26
26
 
27
- interface HorizontalNavigationLinkProps extends LinkContent {
27
+ interface HorizontalNavigationLinkProps extends LinkProps {
28
28
  className: string;
29
29
  index: number;
30
30
  onClick: (ev: MouseEvent) => any;
@@ -1,10 +1,10 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { mergeTopItems } from '../../mergeTopItems';
3
- import type { LinkContent } from '../../model/LinkContent';
4
- import type { TopMenuItem } from '../../model/SitemapContent';
5
- import type { UniBlockProps } from '../../types';
6
2
  import { useLink } from '../../hooks/useLink';
7
3
  import { useSitemap } from '../../hooks/useSitemap';
4
+ import { mergeTopItems } from '../../mergeTopItems';
5
+ import type { LinkProps } from '../../model/LinkProps';
6
+ import type { TopMenuItem } from '../../model/SitemapProps';
7
+ import type { UniBlockProps } from '../../types';
8
8
  export interface SitemapProps extends UniBlockProps {
9
9
  items?: TopMenuItem[];
10
10
  }
@@ -43,7 +43,7 @@ const renderColumn = (c: TopMenuItem, index: number, { router, handlerDecorator
43
43
  );
44
44
  };
45
45
 
46
- interface ColumnItemProps extends LinkContent {
46
+ interface ColumnItemProps extends LinkProps {
47
47
  index?: number;
48
48
  }
49
49
 
@@ -1,6 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useLink } from '../../hooks/useLink';
3
- import type { LinkContent } from '../../model/LinkContent';
3
+ import type { LinkProps } from '../../model/LinkProps';
4
4
  import type { UniBlockProps } from '../../types';
5
5
  import { Button } from '../../ui-kit/Button/Button';
6
6
  import { Icon } from '../../ui-kit/Icon/Icon';
@@ -25,7 +25,7 @@ const ICONS_MAP: Array<{
25
25
  ];
26
26
 
27
27
  export interface SocialMediaProps extends UniBlockProps {
28
- media?: Omit<LinkContent, 'text'>[];
28
+ media?: Omit<LinkProps, 'text'>[];
29
29
  }
30
30
 
31
31
  export const SocialMedia = JSX<SocialMediaProps>(({ className, media, context }) => {
@@ -1,6 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { LinkContent } from '../../model/LinkContent';
3
2
  import { useLink } from '../../hooks/useLink';
3
+ import type { LinkProps } from '../../model/LinkProps';
4
4
  import { FooterLink } from './FooterLink';
5
5
 
6
6
  export const TextInformation = JSX<FooterLink>(({ className, links, context }) => {
@@ -28,7 +28,7 @@ export const TextInformation = JSX<FooterLink>(({ className, links, context }) =
28
28
  );
29
29
  });
30
30
 
31
- interface TextInformationLinkProps extends LinkContent {
31
+ interface TextInformationLinkProps extends LinkProps {
32
32
  className: string;
33
33
  index: number;
34
34
  onClick: (ev: MouseEvent) => any;
@@ -0,0 +1,71 @@
1
+ {
2
+ "title": "Галерея",
3
+ "description": "Описание",
4
+ "cards": [
5
+ {
6
+ "image": {
7
+ "format": "webp",
8
+ "size": {
9
+ "width": 140,
10
+ "height": 140
11
+ }
12
+ },
13
+ "title": "Заголовок 1",
14
+ "description": "Описание 1",
15
+ "href": "/credit-cards",
16
+ "items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"]
17
+ },
18
+ {
19
+ "image": {
20
+ "format": "webp",
21
+ "size": {
22
+ "width": 140,
23
+ "height": 140
24
+ }
25
+ },
26
+ "title": "Заголовок 2",
27
+ "description": "Описание 2",
28
+ "href": "/credit-cards",
29
+ "items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"]
30
+ },
31
+ {
32
+ "image": {
33
+ "format": "webp",
34
+ "size": {
35
+ "width": 140,
36
+ "height": 140
37
+ }
38
+ },
39
+ "title": "Заголовок 3",
40
+ "description": "Описание 3",
41
+ "href": "/credit-cards",
42
+ "items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"]
43
+ },
44
+ {
45
+ "image": {
46
+ "format": "webp",
47
+ "size": {
48
+ "width": 140,
49
+ "height": 140
50
+ }
51
+ },
52
+ "title": "Заголовок 4",
53
+ "description": "Описание 4",
54
+ "href": "/credit-cards",
55
+ "items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"]
56
+ },
57
+ {
58
+ "image": {
59
+ "format": "webp",
60
+ "size": {
61
+ "width": 140,
62
+ "height": 140
63
+ }
64
+ },
65
+ "title": "Заголовок 5",
66
+ "description": "Описание 5",
67
+ "href": "/credit-cards",
68
+ "items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"]
69
+ }
70
+ ]
71
+ }
@@ -1,15 +1,28 @@
1
1
  import type { Picture } from '../../model/Picture';
2
2
 
3
+ /**
4
+ * @title Карточка
5
+ */
3
6
  export interface GalleryCard {
7
+ /** @title Заголовок */
4
8
  title?: string;
9
+ /** @title Описание */
5
10
  description?: string;
6
11
  image?: Picture;
12
+ /** @title Ссылка */
7
13
  href?: string;
14
+ /** @title Список */
8
15
  items?: string[];
9
16
  }
10
17
 
18
+ /**
19
+ * @title Галерея
20
+ */
11
21
  export interface GalleryContent {
22
+ /** @title Заголовок */
12
23
  title?: string;
24
+ /** @title Описание */
13
25
  description?: string;
26
+ /** @title Карточки */
14
27
  cards?: GalleryCard[];
15
28
  }
@@ -1,5 +1,13 @@
1
- import { SitemapContent } from '../../model/SitemapContent';
1
+ import type { SitemapProps } from '../../model/SitemapProps';
2
2
 
3
- export interface HeaderContent extends SitemapContent {
3
+ /**
4
+ * @title Шапка
5
+ * @required ["defaultLocation", "topItems"]
6
+ */
7
+ export interface HeaderContent extends SitemapProps {
8
+ /**
9
+ * @title Город по-умолчанию
10
+ * @default Москва
11
+ */
4
12
  defaultLocation?: string;
5
13
  }
@@ -1,7 +1,7 @@
1
- import type { Router } from '../ContentPage/ContentPageContext';
2
- import type { LinkContent } from '../../model/LinkContent';
1
+ import type { LinkProps } from '../../model/LinkProps';
3
2
  import { isHrefActive } from '../../utils/url';
3
+ import type { Router } from '../ContentPage/ContentPageContext';
4
4
 
5
5
  export function isSubItemActive(router: Router) {
6
- return (subItem: LinkContent): boolean => isHrefActive(subItem.href, router);
6
+ return (subItem: LinkProps): boolean => isHrefActive(subItem.href, router);
7
7
  }
@@ -1,8 +1,8 @@
1
- import type { Router } from '../ContentPage/ContentPageContext';
2
- import type { LinkContent } from '../../model/LinkContent';
1
+ import type { LinkProps } from '../../model/LinkProps';
3
2
  import { isHrefActive } from '../../utils/url';
3
+ import type { Router } from '../ContentPage/ContentPageContext';
4
4
 
5
5
  export function isTopItemActive(router: Router) {
6
- return (topItem: LinkContent): boolean =>
6
+ return (topItem: LinkProps): boolean =>
7
7
  isHrefActive(topItem.href, router, (topItemHref, baseHref) => baseHref.startsWith(topItemHref));
8
8
  }
@@ -0,0 +1,6 @@
1
+ {
2
+ "title": "Заголовок",
3
+ "description": "Описание",
4
+ "align": "center",
5
+ "bgColor": "transparent"
6
+ }
@@ -0,0 +1,42 @@
1
+ import { context } from '../../setup-fixture';
2
+
3
+ import { Headline } from './Headline';
4
+
5
+ export default {
6
+ default: (
7
+ <Headline
8
+ title="Своя кредитная карта"
9
+ description="Карта работает в 180 странах мира. Бесплатное снятие наличных в любых банкоматах."
10
+ align="left"
11
+ bgColor="bg-white"
12
+ context={context}
13
+ />
14
+ ),
15
+ 'center transparent': (
16
+ <Headline
17
+ title="Своя кредитная карта"
18
+ description="Карта работает в 180 странах мира. Бесплатное снятие наличных в любых банкоматах."
19
+ align="center"
20
+ bgColor="transparent"
21
+ context={context}
22
+ />
23
+ ),
24
+ 'right transparent': (
25
+ <Headline
26
+ title="Своя кредитная карта"
27
+ description="Карта работает в 180 странах мира. Бесплатное снятие наличных в любых банкоматах."
28
+ align="right"
29
+ bgColor="transparent"
30
+ context={context}
31
+ />
32
+ ),
33
+ 'right white': (
34
+ <Headline
35
+ title="Своя кредитная карта"
36
+ description="Карта работает в 180 странах мира. Бесплатное снятие наличных в любых банкоматах."
37
+ align="right"
38
+ bgColor="bg-white"
39
+ context={context}
40
+ />
41
+ ),
42
+ };
@@ -0,0 +1,15 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+
3
+ import type { UniBlockProps } from '../../types';
4
+ import { BaseTile } from '../BaseTile/BaseTile';
5
+ import type { HeadlineContent } from './HeadlineContent';
6
+
7
+ export interface HeadlineProps extends UniBlockProps, HeadlineContent {}
8
+
9
+ export const Headline = JSX<HeadlineProps>(({ bgColor = 'bg-white', className, ...props }) => {
10
+ return (
11
+ <section className={`p-10 ${bgColor} ${className || ''} `}>
12
+ <BaseTile {...props}></BaseTile>
13
+ </section>
14
+ );
15
+ });
@@ -0,0 +1,18 @@
1
+ import type { BaseTileCommonProps } from '../BaseTile/BaseTileProps';
2
+
3
+ /**
4
+ * @title Цвет фона
5
+ * @enumNames [
6
+ * "Прозрачный",
7
+ * "Белый"
8
+ * ]
9
+ */
10
+ export type HeadlineBgColor = 'transparent' | 'bg-white';
11
+
12
+ /**
13
+ * @title Заголовок
14
+ */
15
+ export interface HeadlineContent
16
+ extends Pick<BaseTileCommonProps, 'title' | 'titleSize' | 'description' | 'align'> {
17
+ bgColor?: HeadlineBgColor;
18
+ }