@redneckz/wildless-cms-uni-blocks 0.2.84 → 0.2.87

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 (343) 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/icons/GridIcon.svg +4 -7
  311. package/src/index.ts +14 -21
  312. package/src/mergeTopItems.ts +5 -5
  313. package/src/model/BlockVersion.ts +4 -0
  314. package/src/model/ButtonVersion.ts +4 -0
  315. package/src/model/LinkProps.ts +22 -0
  316. package/src/model/Picture.ts +11 -0
  317. package/src/model/SitemapProps.ts +15 -0
  318. package/src/types.ts +2 -2
  319. package/src/ui-kit/Breadcrumb.tsx +2 -2
  320. package/src/ui-kit/Button/Button.tsx +7 -3
  321. package/src/ui-kit/Button/ButtonProps.ts +16 -13
  322. package/src/ui-kit/Icon/IconProps.ts +39 -4
  323. package/src/ui-kit/TopItem/TopItem.tsx +2 -2
  324. package/dist/components/BaseTile/BaseTileContent.d.ts +0 -13
  325. package/dist/components/BaseTile/BaseTileContent.js.map +0 -1
  326. package/dist/model/LinkContent.d.ts +0 -5
  327. package/dist/model/LinkContent.js.map +0 -1
  328. package/dist/model/SitemapContent.d.ts +0 -7
  329. package/dist/model/SitemapContent.js.map +0 -1
  330. package/lib/components/BaseTile/BaseTileContent.d.ts +0 -13
  331. package/lib/components/BaseTile/BaseTileContent.js +0 -2
  332. package/lib/components/BaseTile/BaseTileContent.js.map +0 -1
  333. package/lib/model/LinkContent.d.ts +0 -5
  334. package/lib/model/LinkContent.js +0 -2
  335. package/lib/model/LinkContent.js.map +0 -1
  336. package/lib/model/SitemapContent.d.ts +0 -7
  337. package/lib/model/SitemapContent.js +0 -2
  338. package/lib/model/SitemapContent.js.map +0 -1
  339. package/src/components/BaseTile/BaseTileContent.ts +0 -14
  340. package/src/icons/MinusIcon.svg +0 -1
  341. package/src/icons/PlusIcon.svg +0 -1
  342. package/src/model/LinkContent.ts +0 -5
  343. package/src/model/SitemapContent.ts +0 -9
@@ -0,0 +1,5 @@
1
+ import type { UniBlockProps } from '../../types';
2
+ import type { LinkDocsContent } from './LinkDocsContent';
3
+ export interface LinkDocsProps extends LinkDocsContent, UniBlockProps {
4
+ }
5
+ export declare const LinkDocs: (props: import("@redneckz/uni-jsx").PropsWithChildren<LinkDocsProps, any>, context?: any) => any;
@@ -0,0 +1,42 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.LinkDocs = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const Icon_1 = require("../../ui-kit/Icon/Icon");
6
+ const Title_1 = require("../../ui-kit/Title/Title");
7
+ const titleAlignStyleMap = {
8
+ left: 'text-left',
9
+ center: 'text-center',
10
+ right: 'text-right',
11
+ };
12
+ const titleMarginsStyleMap = {
13
+ double: 'mb-8',
14
+ single: '',
15
+ };
16
+ const linkColumnsModeStyleMap = {
17
+ double: 'gap-x-5 gap-y-[26px] flex-wrap',
18
+ single: 'gap-3.5 flex-col',
19
+ };
20
+ exports.LinkDocs = (0, uni_jsx_1.JSX)(({ className, title, align, documents, icon, columnsMode = 'double' }) => {
21
+ const containerClasses = linkColumnsModeStyleMap[columnsMode];
22
+ return ((0, jsx_runtime_1.jsxs)("section", { className: `font-sans p-[50px] bg-white ${className}`, children: [title && ((0, jsx_runtime_1.jsx)(Title_1.Title, { className: `font-medium m-0 ${titleMarginsStyleMap[columnsMode]} ${titleAlignStyleMap[align ?? 'center']}`, children: title })), (0, jsx_runtime_1.jsx)("div", { className: `flex ${containerClasses}`, role: "list", children: documents?.length
23
+ ? documents.map(({ text, fileSize, ...linkProps }) => ((0, jsx_runtime_1.jsxs)("a", { className: `group flex items-center text-sm
24
+ text-sm font-sans align-middle items-center text-primary-text no-underline group hover:text-primary-main
25
+ ${columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : ''}`, role: "listitem", ...linkProps, children: [icon && (0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: "mr-3.5", name: icon, width: "24px", height: "24px" }), (0, jsx_runtime_1.jsxs)("span", { children: [text, (0, jsx_runtime_1.jsx)("span", { className: "text-secondary-text group-hover:text-primary-main", children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })] })))
26
+ : null })] }));
27
+ });
28
+ const getExtFromHref = (href) => {
29
+ if (!href)
30
+ return '';
31
+ const lastChunk = href.split('.').pop();
32
+ if (!lastChunk || lastChunk.includes('/'))
33
+ return '';
34
+ return lastChunk;
35
+ };
36
+ const formatSuffix = (ext, fileSize) => {
37
+ const prefix = ext || fileSize ? ',' : '';
38
+ const extension = ext ? ` ${ext}` : '';
39
+ const size = fileSize ? ` (${fileSize})` : '';
40
+ return prefix + extension + size;
41
+ };
42
+ //# sourceMappingURL=LinkDocs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinkDocs.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocs.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iDAA8C;AAC9C,oDAAiD;AAIjD,MAAM,kBAAkB,GAA8B;IACpD,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,aAAa;IACrB,KAAK,EAAE,YAAY;CACpB,CAAC;AAEF,MAAM,oBAAoB,GAAoC;IAC5D,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,EAAE;CACX,CAAC;AAEF,MAAM,uBAAuB,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CACF,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,EAAE;IACtC,IAAI,CAAC,IAAI;QAAE,OAAO,EAAE,CAAC;IAErB,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;IACxC,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,EAAE,CAAC;IAErD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,GAAY,EAAE,QAAiB,EAAE,EAAE;IACvD,MAAM,MAAM,GAAG,GAAG,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1C,MAAM,SAAS,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACvC,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,QAAQ,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9C,OAAO,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;AACnC,CAAC,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { LinkProps } from '../../model/LinkProps';
2
+ import type { IconName } from '../../ui-kit/Icon/IconProps';
3
+ import { BaseTileCommonProps } from '../BaseTile/BaseTileProps';
4
+ /** @title Режим отображения списка */
5
+ export declare type LinkColumnsMode = 'single' | 'double';
6
+ /**
7
+ * @title Элемент списка
8
+ */
9
+ export interface LinkDocsItem extends LinkProps {
10
+ /** @title размер файла */
11
+ fileSize?: string;
12
+ }
13
+ /**
14
+ * @title Список документов
15
+ */
16
+ export interface LinkDocsContent extends Pick<BaseTileCommonProps, 'align' | 'title'> {
17
+ /** @title Название иконки */
18
+ icon?: IconName;
19
+ /** @title Список */
20
+ documents?: LinkDocsItem[];
21
+ /** @title Отображение списка */
22
+ columnsMode?: LinkColumnsMode;
23
+ }
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=LinkDocsContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinkDocsContent.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsContent.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
- import { GalleryContent } from '../Gallery/GalleryContent';
2
- import { UniBlockProps } from '../../types';
3
- export interface MiniGalleryProps extends GalleryContent, UniBlockProps {
1
+ import type { UniBlockProps } from '../../types';
2
+ import type { MiniGalleryContent } from './MiniGalleryContent';
3
+ export interface MiniGalleryProps extends MiniGalleryContent, UniBlockProps {
4
4
  }
5
5
  export declare const MiniGallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<MiniGalleryProps, any>, context?: any) => any;
@@ -0,0 +1,6 @@
1
+ import type { GalleryContent } from '../Gallery/GalleryContent';
2
+ /**
3
+ * @title Мини-галерея
4
+ */
5
+ export interface MiniGalleryContent extends GalleryContent {
6
+ }
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=MiniGalleryContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MiniGalleryContent.js","sourceRoot":"","sources":["../../../src/components/MiniGallery/MiniGalleryContent.ts"],"names":[],"mappings":""}
@@ -1,9 +1,18 @@
1
- import type { BaseTileContent } from '../BaseTile/BaseTileContent';
1
+ import type { BaseTileCommonProps } from '../BaseTile/BaseTileProps';
2
+ /**
3
+ * @title QR код
4
+ */
2
5
  export interface QRCode {
6
+ /** @title QR код */
3
7
  src?: string;
8
+ /** @title Ссылка */
4
9
  href?: string;
5
10
  }
6
- export interface MobileAppTileContent extends BaseTileContent {
11
+ /**
12
+ * @title Мобильное приложение
13
+ */
14
+ export interface MobileAppTileContent extends BaseTileCommonProps {
15
+ /** @title Заголовок */
7
16
  title?: string;
8
17
  qr?: QRCode;
9
18
  }
@@ -1,12 +1,14 @@
1
1
  export declare const MobileBlocks: {
2
- Header: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Header/Header").HeaderProps, any>, context?: any) => any;
2
+ ExchangeRateTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ExchangeRateTile/ExchangeRateTile").ExchangeRateTileProps, any>, context?: any) => any;
3
3
  Footer: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Footer/Footer.mobile").FooterProps, any>, context?: any) => any;
4
+ Gallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Gallery/Gallery").GalleryProps, any>, context?: any) => any;
5
+ Header: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Header/Header").HeaderProps, any>, context?: any) => any;
6
+ Headline: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Headline/Headline").HeadlineProps, any>, context?: any) => any;
7
+ MobileAppTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./MobileAppTile/MobileAppTile").MobileAppTileProps, any>, context?: any) => any;
8
+ PictureText: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./PictureText/PictureText").PictureTextProps, any>, context?: any) => any;
4
9
  Placeholder: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Placeholder/Placeholder").PlaceholderProps, any>, context?: any) => any;
5
- Tile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Tile/Tile").TileProps, any>, context?: any) => any;
6
- ProductTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductTile/ProductTile").ProductTileProps, any>, context?: any) => any;
7
10
  ProductBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductBlock/ProductBlock.mobile").ProductBlockProps, any>, context?: any) => any;
11
+ ProductTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductTile/ProductTile").ProductTileProps, any>, context?: any) => any;
8
12
  TextBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./TextBlock/TextBlock").TextBlockProps, any>, context?: any) => any;
9
- ExchangeRateTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ExchangeRateTile/ExchangeRateTile").ExchangeRateTileProps, any>, context?: any) => any;
10
- MobileAppTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./MobileAppTile/MobileAppTile").MobileAppTileProps, any>, context?: any) => any;
11
- Gallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Gallery/Gallery").GalleryProps, any>, context?: any) => any;
13
+ Tile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Tile/Tile").TileProps, any>, context?: any) => any;
12
14
  };
@@ -4,23 +4,27 @@ const ExchangeRateTile_1 = require("./ExchangeRateTile/ExchangeRateTile");
4
4
  const Footer_mobile_1 = require("./Footer/Footer.mobile");
5
5
  const Gallery_mobile_1 = require("./Gallery/Gallery.mobile");
6
6
  const Header_1 = require("./Header/Header");
7
+ const Headline_1 = require("./Headline/Headline");
7
8
  const MobileAppTile_1 = require("./MobileAppTile/MobileAppTile");
9
+ const PictureText_1 = require("./PictureText/PictureText");
8
10
  const Placeholder_1 = require("./Placeholder/Placeholder");
9
11
  const ProductBlock_mobile_1 = require("./ProductBlock/ProductBlock.mobile");
10
12
  const ProductTile_1 = require("./ProductTile/ProductTile");
11
13
  const TextBlock_1 = require("./TextBlock/TextBlock");
12
14
  const Tile_1 = require("./Tile/Tile");
13
15
  exports.MobileBlocks = {
14
- Header: Header_1.Header,
16
+ ExchangeRateTile: ExchangeRateTile_1.ExchangeRateTile,
15
17
  Footer: Footer_mobile_1.Footer,
18
+ Gallery: Gallery_mobile_1.Gallery,
19
+ Header: Header_1.Header,
20
+ Headline: Headline_1.Headline,
21
+ MobileAppTile: MobileAppTile_1.MobileAppTile,
22
+ PictureText: PictureText_1.PictureText,
16
23
  Placeholder: Placeholder_1.Placeholder,
17
- Tile: Tile_1.Tile,
18
- ProductTile: ProductTile_1.ProductTile,
19
24
  ProductBlock: ProductBlock_mobile_1.ProductBlock,
25
+ ProductTile: ProductTile_1.ProductTile,
20
26
  TextBlock: TextBlock_1.TextBlock,
21
- ExchangeRateTile: ExchangeRateTile_1.ExchangeRateTile,
22
- MobileAppTile: MobileAppTile_1.MobileAppTile,
23
- Gallery: Gallery_mobile_1.Gallery,
27
+ Tile: Tile_1.Tile,
24
28
  // TODO StepsBlock,
25
29
  // TODO BenefitsBlock,
26
30
  // TODO ProductGallery
@@ -1 +1 @@
1
- {"version":3,"file":"MobileBlocks.js","sourceRoot":"","sources":["../../src/components/MobileBlocks.ts"],"names":[],"mappings":";;AAAA,0EAAuE;AACvE,0DAAgD;AAChD,6DAAmD;AACnD,4CAAyC;AACzC,iEAA8D;AAC9D,2DAAwD;AACxD,4EAAkE;AAClE,2DAAwD;AACxD,qDAAkD;AAClD,sCAAmC;AAEtB,QAAA,YAAY,GAAG;IAC1B,MAAM,EAAN,eAAM;IACN,MAAM,EAAN,sBAAM;IACN,WAAW,EAAX,yBAAW;IACX,IAAI,EAAJ,WAAI;IACJ,WAAW,EAAX,yBAAW;IACX,YAAY,EAAZ,kCAAY;IACZ,SAAS,EAAT,qBAAS;IACT,gBAAgB,EAAhB,mCAAgB;IAChB,aAAa,EAAb,6BAAa;IACb,OAAO,EAAP,wBAAO;IACP,mBAAmB;IACnB,sBAAsB;IACtB,sBAAsB;CACvB,CAAC"}
1
+ {"version":3,"file":"MobileBlocks.js","sourceRoot":"","sources":["../../src/components/MobileBlocks.ts"],"names":[],"mappings":";;AAAA,0EAAuE;AACvE,0DAAgD;AAChD,6DAAmD;AACnD,4CAAyC;AACzC,kDAA+C;AAC/C,iEAA8D;AAC9D,2DAAwD;AACxD,2DAAwD;AACxD,4EAAkE;AAClE,2DAAwD;AACxD,qDAAkD;AAClD,sCAAmC;AAEtB,QAAA,YAAY,GAAG;IAC1B,gBAAgB,EAAhB,mCAAgB;IAChB,MAAM,EAAN,sBAAM;IACN,OAAO,EAAP,wBAAO;IACP,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,aAAa,EAAb,6BAAa;IACb,WAAW,EAAX,yBAAW;IACX,WAAW,EAAX,yBAAW;IACX,YAAY,EAAZ,kCAAY;IACZ,WAAW,EAAX,yBAAW;IACX,SAAS,EAAT,qBAAS;IACT,IAAI,EAAJ,WAAI;IACJ,mBAAmB;IACnB,sBAAsB;IACtB,sBAAsB;CACvB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { UniBlockProps } from '../../types';
2
+ import type { PictureTextContent } from './PictureTextContent';
3
+ export interface PictureTextProps extends PictureTextContent, UniBlockProps {
4
+ }
5
+ export declare const PictureText: (props: import("@redneckz/uni-jsx").PropsWithChildren<PictureTextProps, any>, context?: any) => any;
@@ -0,0 +1,14 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.PictureText = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const Icon_1 = require("../../ui-kit/Icon/Icon");
6
+ const Img_1 = require("../../ui-kit/Img");
7
+ const Title_1 = require("../../ui-kit/Title/Title");
8
+ exports.PictureText = (0, uni_jsx_1.JSX)(({ className, title, image, benefits }) => {
9
+ return ((0, jsx_runtime_1.jsxs)("section", { className: `relative font-sans text-primary-text bg-white p-14 ${className}`, children: [(0, jsx_runtime_1.jsx)(Title_1.Title, { className: "font-medium m-0 text-center", children: title }), (0, jsx_runtime_1.jsxs)("div", { className: 'flex justify-center mt-9', children: [image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mr-6", image: image }), benefits?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col", children: benefits.map(renderBenefit) })) : null] })] }));
10
+ });
11
+ function renderBenefit(benefit, i) {
12
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row mb-8", children: [benefit.icon && ((0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: "w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]", name: benefit.icon, width: "48", height: "48" })), (0, jsx_runtime_1.jsxs)("div", { className: "flex gap-1 flex-col h-full ml-5 max-w-[490px]", children: [(0, jsx_runtime_1.jsx)("div", { className: "font-medium text-primary-text text-xl m-0", children: benefit.label }), benefit.description && ((0, jsx_runtime_1.jsx)("div", { className: "font-normal text-sm text-secondary-text", children: benefit.description }))] })] }, String(i)));
13
+ }
14
+ //# sourceMappingURL=PictureText.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PictureText.js","sourceRoot":"","sources":["../../../src/components/PictureText/PictureText.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,iDAA8C;AAC9C,0CAAuC;AACvC,oDAAiD;AAKpC,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IACzF,OAAO,CACL,qCAAS,SAAS,EAAE,sDAAsD,SAAS,EAAE,aACnF,uBAAC,aAAK,IAAC,SAAS,EAAC,6BAA6B,YAAE,KAAK,GAAS,EAC9D,iCAAK,SAAS,EAAE,0BAA0B,aACvC,KAAK,EAAE,GAAG,IAAI,uBAAC,SAAG,IAAC,SAAS,EAAC,MAAM,EAAC,KAAK,EAAE,KAAK,GAAI,EACpD,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,CAClB,gCAAK,SAAS,EAAC,eAAe,YAAE,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,GAAO,CACnE,CAAC,CAAC,CAAC,IAAI,IACJ,IACE,CACX,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,SAAS,aAAa,CAAC,OAAgB,EAAE,CAAS;IAChD,OAAO,CACL,iCAAqB,SAAS,EAAC,oBAAoB,aAChD,OAAO,CAAC,IAAI,IAAI,CACf,uBAAC,WAAI,IACH,SAAS,EAAC,4DAA4D,EACtE,IAAI,EAAE,OAAO,CAAC,IAAI,EAClB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACX,CACH,EACD,iCAAK,SAAS,EAAC,+CAA+C,aAC5D,gCAAK,SAAS,EAAC,2CAA2C,YAAE,OAAO,CAAC,KAAK,GAAO,EAC/E,OAAO,CAAC,WAAW,IAAI,CACtB,gCAAK,SAAS,EAAC,yCAAyC,YAAE,OAAO,CAAC,WAAW,GAAO,CACrF,IACG,KAdE,MAAM,CAAC,CAAC,CAAC,CAeb,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { BaseTileCommonProps } from '../BaseTile/BaseTileProps';
2
+ import type { Benefit } from '../BenefitsBlock/BenefitsBlockContent';
3
+ /**
4
+ * @title Картинка с текстом
5
+ */
6
+ export interface PictureTextContent extends Pick<BaseTileCommonProps, 'title' | 'description' | 'image'> {
7
+ /**
8
+ * @title Список преимуществ
9
+ */
10
+ benefits?: Benefit[];
11
+ }
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=PictureTextContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PictureTextContent.js","sourceRoot":"","sources":["../../../src/components/PictureText/PictureTextContent.ts"],"names":[],"mappings":""}
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @hidden
3
+ */
1
4
  export interface PlaceholderContent {
2
5
  title?: string;
3
6
  }
@@ -1,5 +1,5 @@
1
- import type { ProductBlockInnerContent } from './ProductBlockContent';
2
1
  import type { UniBlockProps } from '../../types';
3
- export interface ProductBlockProps extends ProductBlockInnerContent, UniBlockProps {
2
+ import type { ProductBlockInnerCommonProps } from './ProductBlockContent';
3
+ export interface ProductBlockProps extends ProductBlockInnerCommonProps, UniBlockProps {
4
4
  }
5
5
  export declare const ProductBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<ProductBlockProps, any>, context?: any) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"ProductBlock.mobile.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlock.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAwD;AAM3C,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,CAAC,mCAAmC,EAAE,EAAE;IAC/E,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAC5B,OAAO,CACL,oCACE,SAAS,EAAE,4DAA4D,SAAS,IAAI,EAAE,EAAE,YAExF,uBAAC,qCAAiB,OAAK,KAAK,EAAE,SAAS,EAAC,GAAG,GAAG,GACtC,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"ProductBlock.mobile.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlock.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,2DAAwD;AAI3C,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,CAAC,mCAAmC,EAAE,EAAE;IAC/E,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAC5B,OAAO,CACL,oCACE,SAAS,EAAE,4DAA4D,SAAS,IAAI,EAAE,EAAE,YAExF,uBAAC,qCAAiB,OAAK,KAAK,EAAE,SAAS,EAAC,GAAG,GAAG,GACtC,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,9 +1,14 @@
1
- import type { LinkContent } from '../../model/LinkContent';
2
- import type { BaseTileContent } from '../BaseTile/BaseTileContent';
1
+ import type { LinkProps } from '../../model/LinkProps';
2
+ import type { BaseTileCommonProps } from '../BaseTile/BaseTileProps';
3
3
  import type { Benefit } from '../BenefitsBlock/BenefitsBlockContent';
4
- export interface ProductBlockInnerContent extends BaseTileContent {
4
+ export interface ProductBlockInnerCommonProps extends BaseTileCommonProps {
5
+ /** @title Преимущества */
5
6
  benefits?: Benefit[];
6
7
  }
7
- export interface ProductBlockContent extends ProductBlockInnerContent {
8
- breadcrumbs?: LinkContent[];
8
+ /**
9
+ * @title Продуктовый блок
10
+ */
11
+ export interface ProductBlockContent extends ProductBlockInnerCommonProps {
12
+ /** @title Хлебные крошки */
13
+ breadcrumbs?: LinkProps[];
9
14
  }
@@ -1,5 +1,5 @@
1
- import type { ProductBlockInnerContent } from './ProductBlockContent';
2
1
  import type { UniBlockProps } from '../../types';
3
- export interface ProductBlockInnerProps extends ProductBlockInnerContent, UniBlockProps {
2
+ import type { ProductBlockInnerCommonProps } from './ProductBlockContent';
3
+ export interface ProductBlockInnerProps extends ProductBlockInnerCommonProps, UniBlockProps {
4
4
  }
5
5
  export declare const ProductBlockInner: (props: import("@redneckz/uni-jsx").PropsWithChildren<ProductBlockInnerProps, any>, context?: any) => any;
@@ -2,10 +2,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.ProductBlockInner = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const BaseTile_1 = require("../BaseTile/BaseTile");
6
5
  const Icon_1 = require("../../ui-kit/Icon/Icon");
7
6
  const Img_1 = require("../../ui-kit/Img");
8
7
  const Title_1 = require("../../ui-kit/Title/Title");
8
+ const BaseTile_1 = require("../BaseTile/BaseTile");
9
9
  exports.ProductBlockInner = (0, uni_jsx_1.JSX)(({ className, context, title, titleSize, description, benefits, buttons, image, items }) => {
10
10
  return ((0, jsx_runtime_1.jsxs)("div", { className: `flex grow justify-between items-stretch ${className || ''}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: 'flex flex-col', children: [title && (
11
11
  /* TODO Why <Title> is duplicated here? */
@@ -1 +1 @@
1
- {"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,mDAAgD;AAIhD,iDAA8C;AAC9C,0CAAuC;AACvC,oDAAiD;AAIpC,QAAA,iBA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yCAAyC,YAAE,OAAO,CAAC,WAAW,GAAO,CACrF,IACG,KAdE,MAAM,CAAC,CAAC,CAAC,CAeb,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iDAA8C;AAC9C,0CAAuC;AACvC,oDAAiD;AACjD,mDAAgD;AAMnC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;IACzF,OAAO,CACL,iCAAK,SAAS,EAAE,2CAA2C,SAAS,IAAI,EAAE,EAAE,aAC1E,iCAAK,SAAS,EAAE,eAAe,aAC5B,KAAK,IAAI;oBACR,2CAA2C;oBAC3C,uBAAC,aAAK,IACJ,IAAI,EAAE,SAAS,IAAI,IAAI,EACvB,SAAS,EAAC,0EAA0E,YAEnF,KAAK,GACA,CACT,EACD,uBAAC,mBAAQ,IAAC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,YACjF,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,CAClB,gCAAK,SAAS,EAAC,wBAAwB,YAAE,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,GAAO,CAC5E,CAAC,CAAC,CAAC,IAAI,GACC,IACP,EACL,KAAK,EAAE,GAAG,IAAI,uBAAC,SAAG,IAAC,SAAS,EAAC,SAAS,EAAC,KAAK,EAAE,KAAK,GAAI,IACpD,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,aAAa,CAAC,OAAgB,EAAE,CAAS;IAChD,OAAO,CACL,iCAAqB,SAAS,EAAC,yBAAyB,aACrD,OAAO,CAAC,IAAI,IAAI,CACf,uBAAC,WAAI,IACH,SAAS,EAAC,sFAAsF,EAChG,IAAI,EAAE,OAAO,CAAC,IAAI,EAClB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACX,CACH,EACD,iCAAK,SAAS,EAAC,4BAA4B,aACzC,+BAAI,SAAS,EAAC,2CAA2C,YAAE,OAAO,CAAC,KAAK,GAAM,EAC7E,OAAO,CAAC,WAAW,IAAI,CACtB,gCAAK,SAAS,EAAC,yCAAyC,YAAE,OAAO,CAAC,WAAW,GAAO,CACrF,IACG,KAdE,MAAM,CAAC,CAAC,CAAC,CAeb,CACP,CAAC;AACJ,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { ProductGalleryContent } from './ProductGalleryContent';
2
1
  import type { UniBlockProps } from '../../types';
2
+ import type { ProductGalleryContent } from './ProductGalleryContent';
3
3
  export interface ProductGalleryProps extends ProductGalleryContent, UniBlockProps {
4
4
  }
5
5
  export declare const ProductGallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<ProductGalleryProps, any>, context?: any) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"ProductGallery.js","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGallery.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yEAAsE;AAOzD,QAAA,cAAc,GAAG,IAAA,aAAG,EAC/B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,GAAG,CAAC,EAAE,MAAM,GAAG,EAAE,EAAE,EAAE,EAAE;IACpD,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAC5C,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IACxD,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC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yD,aACtE,gCAAK,SAAS,EAAE,qDAAqD,iBAAiB,EAAE,YACrF,KAAK,EAAE,KAAK,GACT,EACN,gCAAK,SAAS,EAAC,6BAA6B,YAAE,KAAK,CAAC,IAAI,GAAO,IAC3D,EACN,gCACE,SAAS,EAAE,6EAA6E,oBAAoB,EAAE,EAC9G,KAAK,EAAE,EAAE,iBAAiB,EAAE,GAAG,QAAQ,GAAG,EAAE,GACvC,KAbF,MAAM,CAAC,CAAC,CAAC,CAcP,CACV,CAAC;AACJ,CAAC"}
@@ -1,14 +1,29 @@
1
- import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
1
+ import type { ProductBlockInnerCommonProps } from '../ProductBlock/ProductBlockContent';
2
+ /** @title Кнопка под слайдом */
2
3
  interface ProductGalleryNav {
4
+ /** @title Заголовок */
3
5
  title: string;
6
+ /** @title Описание */
4
7
  desc: string;
5
8
  }
6
- export interface ProductSlideContent {
9
+ /**
10
+ * @title Слайд
11
+ */
12
+ export interface ProductSlide {
7
13
  nav: ProductGalleryNav;
8
- productBlock: ProductBlockInnerContent;
14
+ /** @title Содержимое слайда */
15
+ productBlock: ProductBlockInnerCommonProps;
9
16
  }
17
+ /**
18
+ * @title Продуктовая галерея
19
+ */
10
20
  export interface ProductGalleryContent {
21
+ /**
22
+ * @title Задержка
23
+ * @hidden //! temporary not used
24
+ */
11
25
  duration?: number;
12
- slides?: ProductSlideContent[];
26
+ /** @title Слайды */
27
+ slides?: ProductSlide[];
13
28
  }
14
29
  export {};
@@ -1,5 +1,9 @@
1
- import type { BaseTileContent } from '../BaseTile/BaseTileContent';
1
+ import type { BaseTileCommonProps } from '../BaseTile/BaseTileProps';
2
2
  import type { Benefit } from '../BenefitsBlock/BenefitsBlockContent';
3
- export interface ProductTileContent extends BaseTileContent {
3
+ /**
4
+ * @title Продуктовая плитка
5
+ */
6
+ export interface ProductTileContent extends BaseTileCommonProps {
7
+ /** @title Преимущества */
4
8
  benefits?: Benefit[];
5
9
  }
@@ -1,4 +1,8 @@
1
- import type { BaseTileContent } from '../BaseTile/BaseTileContent';
2
- export interface PromoTileContent extends BaseTileContent {
1
+ import type { BaseTileCommonProps } from '../BaseTile/BaseTileProps';
2
+ /**
3
+ * @title Акции
4
+ */
5
+ export interface PromoTileContent extends BaseTileCommonProps {
6
+ /** @title Дата публикации */
3
7
  date?: string;
4
8
  }
@@ -1,10 +1,23 @@
1
1
  import type { IconName } from '../../ui-kit/Icon/IconProps';
2
+ /**
3
+ * @title Шаг
4
+ */
2
5
  export interface Step {
6
+ /** @title Название */
3
7
  label: string;
8
+ /** @title Описание */
4
9
  description?: string;
5
10
  icon?: IconName;
6
11
  }
12
+ /**
13
+ * @title Блок шаги
14
+ */
7
15
  export interface StepsBlockContent {
16
+ /** @title Заголовок */
8
17
  title?: string;
18
+ /**
19
+ * @title Шаги
20
+ * @maxItems 6
21
+ */
9
22
  steps?: Step[];
10
23
  }
@@ -1,8 +1,21 @@
1
1
  import type { Picture } from '../../model/Picture';
2
+ /**
3
+ * @title Цвет плитки
4
+ * @enumNames ["Основная", "Второстепенная", "Второстепенная прозрачная"]
5
+ */
2
6
  export declare type TextBlockVersion = 'primary' | 'secondary' | 'secondary-light';
7
+ /**
8
+ * @title Размер иконки
9
+ * @enumNames ["Нет", "Маленькая", "Большая"]
10
+ */
3
11
  export declare type TextBlockIconVersion = 'none' | 'small' | 'big';
12
+ /**
13
+ * @title Текстовый блок
14
+ */
4
15
  export interface TextBlockContent {
16
+ /** @title Заголовок */
5
17
  title?: string;
18
+ /** @title Описание */
6
19
  description?: string;
7
20
  blockVersion?: TextBlockVersion;
8
21
  iconVersion?: TextBlockIconVersion;
@@ -1,2 +1,5 @@
1
- import type { BaseTileContent } from '../BaseTile/BaseTileContent';
2
- export declare type TileContent = BaseTileContent;
1
+ import type { BaseTileCommonProps } from '../BaseTile/BaseTileProps';
2
+ /**
3
+ * @title Плитка
4
+ */
5
+ export declare type TileContent = BaseTileCommonProps;
@@ -1,15 +1,15 @@
1
1
  import { HandlerDecorator, Router } from '../components/ContentPage/ContentPageContext';
2
- import type { LinkContent } from '../model/LinkContent';
2
+ import type { LinkProps } from '../model/LinkProps';
3
3
  export declare function useLink({ router, handlerDecorator, }: {
4
4
  router: Router;
5
5
  handlerDecorator?: HandlerDecorator;
6
- }, link: Partial<LinkContent & {
6
+ }, link: Partial<LinkProps & {
7
7
  className: string;
8
8
  }>): {
9
9
  href: string | undefined;
10
10
  ariaLabel: string | undefined;
11
11
  onClick: (ev: MouseEvent) => void;
12
12
  text?: string | undefined;
13
- target?: string | undefined;
13
+ target?: import("../model/LinkProps").Target | undefined;
14
14
  className?: string | undefined;
15
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useLink.js","sourceRoot":"","sources":["../../src/hooks/useLink.ts"],"names":[],"mappings":";;AAEA,sCAAiD;AAEjD,MAAM,uBAAuB,GAAqB,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,CAAC,OAAO,CAAC;AAEtF,SAAgB,OAAO,CACrB,EACE,MAAM,EACN,gBAAgB,GAAG,uBAAuB,GACc,EAC1D,IAAkD;IAElD,MAAM,IAAI,GAAG,IAAA,gBAAU,EAAC,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,IAAA,WAAK,EAAC,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;AArBD,0BAqBC"}
1
+ {"version":3,"file":"useLink.js","sourceRoot":"","sources":["../../src/hooks/useLink.ts"],"names":[],"mappings":";;AAEA,sCAAiD;AAEjD,MAAM,uBAAuB,GAAqB,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,CAAC,OAAO,CAAC;AAEtF,SAAgB,OAAO,CACrB,EACE,MAAM,EACN,gBAAgB,GAAG,uBAAuB,GACc,EAC1D,IAAgD;IAEhD,MAAM,IAAI,GAAG,IAAA,gBAAU,EAAC,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,IAAA,WAAK,EAAC,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;AArBD,0BAqBC"}
package/dist/index.d.ts CHANGED
@@ -1,18 +1,18 @@
1
1
  export { setup } from '@redneckz/uni-jsx';
2
- export type { ProjectSettings } from './ProjectSettings';
3
- export { projectSettings } from './ProjectSettings';
4
- export { LikeAPI } from './api/LikeAPI';
5
2
  export { DaDataAPI } from './api/DaDataAPI';
6
- export type { SitemapContent } from './model/SitemapContent';
7
- export type { Img, ImgSource, Picture } from './model/Picture';
8
- export type { BlockDef, UniBlockProps, ContentPageMeta, ContentPageDef } from './types';
9
- export type { ContentPageContext, Router, AsyncDataHook, GeolocationHook, LikeService, HandlerDecorator, Search, } from './components/ContentPage/ContentPageContext';
10
- export { ContentPageHead } from './components/ContentPage/ContentPageHead';
11
- export type { BlockDecorator } from './components/ContentPage/ContentPage';
3
+ export { LikeAPI } from './api/LikeAPI';
4
+ export type { BlockContent } from './components/BlockContent';
5
+ export { Blocks } from './components/Blocks';
12
6
  export { ContentPage } from './components/ContentPage/ContentPage';
7
+ export type { BlockDecorator } from './components/ContentPage/ContentPage';
8
+ export type { AsyncDataHook, ContentPageContext, GeolocationHook, HandlerDecorator, LikeService, Router, Search, } from './components/ContentPage/ContentPageContext';
9
+ export { ContentPageHead } from './components/ContentPage/ContentPageHead';
13
10
  export { toMobilePage } from './components/ContentPage/toMobilePage';
14
- export { Blocks } from './components/Blocks';
15
- export type { BlockContent } from './components/BlockContent';
16
11
  export { MobileBlocks } from './components/MobileBlocks';
17
- export * as url from './utils/url';
12
+ export type { Img, ImgSource, Picture } from './model/Picture';
13
+ export type { SitemapProps as SitemapContent } from './model/SitemapProps';
14
+ export { projectSettings } from './ProjectSettings';
15
+ export type { ProjectSettings } from './ProjectSettings';
16
+ export type { BlockDef, ContentPageDef, ContentPageMeta, UniBlockProps } from './types';
18
17
  export { joinList } from './utils/joinList';
18
+ export * as url from './utils/url';
package/dist/index.js CHANGED
@@ -22,26 +22,26 @@ var __importStar = (this && this.__importStar) || function (mod) {
22
22
  return result;
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.joinList = exports.url = exports.MobileBlocks = exports.Blocks = exports.toMobilePage = exports.ContentPage = exports.ContentPageHead = exports.DaDataAPI = exports.LikeAPI = exports.projectSettings = exports.setup = void 0;
25
+ exports.url = exports.joinList = exports.projectSettings = exports.MobileBlocks = exports.toMobilePage = exports.ContentPageHead = exports.ContentPage = exports.Blocks = exports.LikeAPI = exports.DaDataAPI = exports.setup = void 0;
26
26
  var uni_jsx_1 = require("@redneckz/uni-jsx");
27
27
  Object.defineProperty(exports, "setup", { enumerable: true, get: function () { return uni_jsx_1.setup; } });
28
- var ProjectSettings_1 = require("./ProjectSettings");
29
- Object.defineProperty(exports, "projectSettings", { enumerable: true, get: function () { return ProjectSettings_1.projectSettings; } });
30
- var LikeAPI_1 = require("./api/LikeAPI");
31
- Object.defineProperty(exports, "LikeAPI", { enumerable: true, get: function () { return LikeAPI_1.LikeAPI; } });
32
28
  var DaDataAPI_1 = require("./api/DaDataAPI");
33
29
  Object.defineProperty(exports, "DaDataAPI", { enumerable: true, get: function () { return DaDataAPI_1.DaDataAPI; } });
34
- var ContentPageHead_1 = require("./components/ContentPage/ContentPageHead");
35
- Object.defineProperty(exports, "ContentPageHead", { enumerable: true, get: function () { return ContentPageHead_1.ContentPageHead; } });
30
+ var LikeAPI_1 = require("./api/LikeAPI");
31
+ Object.defineProperty(exports, "LikeAPI", { enumerable: true, get: function () { return LikeAPI_1.LikeAPI; } });
32
+ var Blocks_1 = require("./components/Blocks");
33
+ Object.defineProperty(exports, "Blocks", { enumerable: true, get: function () { return Blocks_1.Blocks; } });
36
34
  var ContentPage_1 = require("./components/ContentPage/ContentPage");
37
35
  Object.defineProperty(exports, "ContentPage", { enumerable: true, get: function () { return ContentPage_1.ContentPage; } });
36
+ var ContentPageHead_1 = require("./components/ContentPage/ContentPageHead");
37
+ Object.defineProperty(exports, "ContentPageHead", { enumerable: true, get: function () { return ContentPageHead_1.ContentPageHead; } });
38
38
  var toMobilePage_1 = require("./components/ContentPage/toMobilePage");
39
39
  Object.defineProperty(exports, "toMobilePage", { enumerable: true, get: function () { return toMobilePage_1.toMobilePage; } });
40
- var Blocks_1 = require("./components/Blocks");
41
- Object.defineProperty(exports, "Blocks", { enumerable: true, get: function () { return Blocks_1.Blocks; } });
42
40
  var MobileBlocks_1 = require("./components/MobileBlocks");
43
41
  Object.defineProperty(exports, "MobileBlocks", { enumerable: true, get: function () { return MobileBlocks_1.MobileBlocks; } });
44
- exports.url = __importStar(require("./utils/url"));
42
+ var ProjectSettings_1 = require("./ProjectSettings");
43
+ Object.defineProperty(exports, "projectSettings", { enumerable: true, get: function () { return ProjectSettings_1.projectSettings; } });
45
44
  var joinList_1 = require("./utils/joinList");
46
45
  Object.defineProperty(exports, "joinList", { enumerable: true, get: function () { return joinList_1.joinList; } });
46
+ exports.url = __importStar(require("./utils/url"));
47
47
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA0C;AAAjC,gGAAA,KAAK,OAAA;AAGd,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AAExB,yCAAwC;AAA/B,kGAAA,OAAO,OAAA;AAChB,6CAA4C;AAAnC,sGAAA,SAAS,OAAA;AAgBlB,4EAA2E;AAAlE,kHAAA,eAAe,OAAA;AAExB,oEAAmE;AAA1D,0GAAA,WAAW,OAAA;AACpB,sEAAqE;AAA5D,4GAAA,YAAY,OAAA;AAErB,8CAA6C;AAApC,gGAAA,MAAM,OAAA;AAEf,0DAAyD;AAAhD,4GAAA,YAAY,OAAA;AAErB,mDAAmC;AACnC,6CAA4C;AAAnC,oGAAA,QAAQ,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA0C;AAAjC,gGAAA,KAAK,OAAA;AACd,6CAA4C;AAAnC,sGAAA,SAAS,OAAA;AAClB,yCAAwC;AAA/B,kGAAA,OAAO,OAAA;AAEhB,8CAA6C;AAApC,gGAAA,MAAM,OAAA;AACf,oEAAmE;AAA1D,0GAAA,WAAW,OAAA;AAWpB,4EAA2E;AAAlE,kHAAA,eAAe,OAAA;AACxB,sEAAqE;AAA5D,4GAAA,YAAY,OAAA;AACrB,0DAAyD;AAAhD,4GAAA,YAAY,OAAA;AAGrB,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AAGxB,6CAA4C;AAAnC,oGAAA,QAAQ,OAAA;AACjB,mDAAmC"}
@@ -1,2 +1,2 @@
1
- import type { LinkContent } from './model/LinkContent';
2
- export declare function mergeTopItems<L extends LinkContent>(left?: L[], right?: L[]): L[];
1
+ import type { LinkProps } from './model/LinkProps';
2
+ export declare function mergeTopItems<L extends LinkProps>(left?: L[], right?: L[]): L[];
@@ -1 +1 @@
1
- {"version":3,"file":"mergeTopItems.js","sourceRoot":"","sources":["../src/mergeTopItems.ts"],"names":[],"mappings":";;AAEA,MAAM,GAAG,GAAG,CAAC,CAAe,EAAE,EAAE,CAAC,CAAC,CAAe,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,KAAK,CAAC,EAAE,IAAI,CAAC;AAE1E,MAAM,UAAU,GAAG,CAAwB,KAAW,EAAE,YAAkB,EAAO,EAAE,CACjF,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAE5D,MAAM,QAAQ,GAAG,CAAwB,OAAa,EAAE,UAAgB,EAAO,EAAE,CAC/E,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,UAAU,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE3D,SAAgB,aAAa,CAAwB,IAAU,EAAE,KAAW;IAC1E,OAAO,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;AAC/D,CAAC;AAFD,sCAEC"}
1
+ {"version":3,"file":"mergeTopItems.js","sourceRoot":"","sources":["../src/mergeTopItems.ts"],"names":[],"mappings":";;AAEA,MAAM,GAAG,GAAG,CAAC,CAAa,EAAE,EAAE,CAAC,CAAC,CAAa,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,KAAK,CAAC,EAAE,IAAI,CAAC;AAEtE,MAAM,UAAU,GAAG,CAAsB,KAAW,EAAE,YAAkB,EAAO,EAAE,CAC/E,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAE5D,MAAM,QAAQ,GAAG,CAAsB,OAAa,EAAE,UAAgB,EAAO,EAAE,CAC7E,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,UAAU,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE3D,SAAgB,aAAa,CAAsB,IAAU,EAAE,KAAW;IACxE,OAAO,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;AAC/D,CAAC;AAFD,sCAEC"}
@@ -1 +1,5 @@
1
+ /**
2
+ * @title Цвет плитки
3
+ * @enumNames ["Основная", "Второстепенная"]
4
+ */
1
5
  export declare type BlockVersion = 'primary' | 'secondary';
@@ -1 +1,5 @@
1
+ /**
2
+ * @title Цвет кнопки
3
+ * @enumNames ["Основная", "Второстепенная"]
4
+ */
1
5
  export declare type ButtonVersion = 'primary' | 'secondary';