@redneckz/wildless-cms-uni-blocks 0.3.3 → 0.3.6

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 (463) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +51 -36
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/cosmos-static/icons/ActualBalanceIcon.svg +1 -0
  5. package/cosmos-static/icons/AppleIcon.svg +1 -0
  6. package/cosmos-static/icons/AtmIcon.svg +1 -0
  7. package/cosmos-static/icons/BankIcon.svg +1 -0
  8. package/cosmos-static/icons/BurgerIcon.svg +1 -0
  9. package/cosmos-static/icons/BurgerIconWhite.svg +1 -0
  10. package/cosmos-static/icons/Calendar2Icon.svg +1 -0
  11. package/cosmos-static/icons/CalendarCircleIcon.svg +1 -0
  12. package/cosmos-static/icons/CalendarIcon.svg +1 -0
  13. package/cosmos-static/icons/CalendarTickIcon.svg +1 -0
  14. package/cosmos-static/icons/CalendarWhiteIcon.svg +1 -0
  15. package/cosmos-static/icons/CardIcon.svg +1 -0
  16. package/cosmos-static/icons/CardPosIcon.svg +1 -0
  17. package/cosmos-static/icons/CardTickIcon.svg +1 -0
  18. package/cosmos-static/icons/CardWithGemIcon.svg +1 -0
  19. package/cosmos-static/icons/ChartSquareIcon.svg +1 -0
  20. package/cosmos-static/icons/ClockIcon.svg +1 -0
  21. package/cosmos-static/icons/CloseIcon.svg +1 -0
  22. package/cosmos-static/icons/ComfortableCompIcon.svg +1 -0
  23. package/cosmos-static/icons/CreditCardsIcon.svg +1 -0
  24. package/cosmos-static/icons/DiscountShapeIcon.svg +1 -0
  25. package/cosmos-static/icons/DocIcon.svg +1 -0
  26. package/cosmos-static/icons/DocIconMonoColor.svg +1 -0
  27. package/cosmos-static/icons/DocumentTextIcon.svg +1 -0
  28. package/cosmos-static/icons/DollarIcon.svg +1 -0
  29. package/cosmos-static/icons/EarthIcon.svg +1 -0
  30. package/cosmos-static/icons/EmptyWalletChangeIcon.svg +1 -0
  31. package/cosmos-static/icons/EmptyWalletIcon.svg +1 -0
  32. package/cosmos-static/icons/EmptyWalletWhiteIcon.svg +1 -0
  33. package/cosmos-static/icons/EuroIcon.svg +1 -0
  34. package/cosmos-static/icons/GeolocationIcon.svg +1 -0
  35. package/cosmos-static/icons/GlassIcon.svg +1 -0
  36. package/cosmos-static/icons/GlobalIcon.svg +1 -0
  37. package/cosmos-static/icons/GridIcon.svg +1 -0
  38. package/cosmos-static/icons/GridIconWhite.svg +1 -0
  39. package/cosmos-static/icons/InterestGrowthIcon.svg +1 -0
  40. package/cosmos-static/icons/InterestIcon.svg +1 -0
  41. package/cosmos-static/icons/JCBIcon.svg +1 -0
  42. package/cosmos-static/icons/LoupeIcon.svg +1 -0
  43. package/cosmos-static/icons/MasterCardIcon.svg +1 -0
  44. package/cosmos-static/icons/MinusIcon.svg +1 -0
  45. package/cosmos-static/icons/MirIcon.svg +1 -0
  46. package/cosmos-static/icons/MoneyIcon.svg +1 -0
  47. package/cosmos-static/icons/MoneyInsuranceIcon.svg +1 -0
  48. package/cosmos-static/icons/MonitorMobileIcon.svg +1 -0
  49. package/cosmos-static/icons/NewDocIcon.svg +1 -0
  50. package/cosmos-static/icons/OfficeIcon.svg +1 -0
  51. package/cosmos-static/icons/OkIcon.svg +1 -0
  52. package/cosmos-static/icons/PassSendIcon.svg +1 -0
  53. package/cosmos-static/icons/PercentageRoundIcon.svg +1 -0
  54. package/cosmos-static/icons/PercentageSquareIcon.svg +1 -0
  55. package/cosmos-static/icons/PercentageSquareWhiteIcon.svg +1 -0
  56. package/cosmos-static/icons/PersonalCardIcon.svg +1 -0
  57. package/cosmos-static/icons/PlayMarketIcon.svg +1 -0
  58. package/cosmos-static/icons/PlusIcon.svg +1 -0
  59. package/cosmos-static/icons/Profile2UserIcon.svg +1 -0
  60. package/cosmos-static/icons/ProfileIcon.svg +1 -0
  61. package/cosmos-static/icons/RoundRubleIcon.svg +1 -0
  62. package/cosmos-static/icons/SafeIcon.svg +1 -0
  63. package/cosmos-static/icons/ShieldTickIcon.svg +1 -0
  64. package/cosmos-static/icons/SignDocsIcon.svg +1 -0
  65. package/cosmos-static/icons/SmallClockIcon.svg +1 -0
  66. package/cosmos-static/icons/TelegramIcon.svg +1 -0
  67. package/cosmos-static/icons/UnionPayIcon.svg +1 -0
  68. package/cosmos-static/icons/UserTickIcon.svg +1 -0
  69. package/cosmos-static/icons/VKIcon.svg +1 -0
  70. package/cosmos-static/icons/VisaIcon.svg +1 -0
  71. package/cosmos-static/icons/WalletAdd2Icon.svg +1 -0
  72. package/cosmos-static/icons/WalletAddIcon.svg +1 -0
  73. package/cosmos-static/icons/WalletIcon.svg +1 -0
  74. package/cosmos-static/icons/WalletWithMoneyIcon.svg +1 -0
  75. package/dist/components/Accordion/utils/isActiveHandler.js +1 -1
  76. package/dist/components/Accordion/utils/isActiveHandler.js.map +1 -1
  77. package/dist/components/BaseTile/BaseTile.js +1 -1
  78. package/dist/components/BaseTile/BaseTile.js.map +1 -1
  79. package/dist/components/Blocks.d.ts +0 -1
  80. package/dist/components/Blocks.js +0 -2
  81. package/dist/components/Blocks.js.map +1 -1
  82. package/dist/components/Blocks.mobile.d.ts +4 -2
  83. package/dist/components/Blocks.mobile.js +7 -3
  84. package/dist/components/Blocks.mobile.js.map +1 -1
  85. package/dist/components/ContentPage/ContentPage.js +2 -2
  86. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  87. package/dist/components/ContentPage/ContentPageHead.js +4 -2
  88. package/dist/components/ContentPage/ContentPageHead.js.map +1 -1
  89. package/dist/components/ContentPage/isBlockInRegistry.d.ts +1 -2
  90. package/dist/components/ContentPage/isBlockInRegistry.js +2 -2
  91. package/dist/components/ContentPage/isBlockInRegistry.js.map +1 -1
  92. package/dist/components/ContentPage/normalizeBlock.d.ts +1 -1
  93. package/dist/components/ContentPage/normalizePage.js +1 -1
  94. package/dist/components/ContentPage/normalizePage.js.map +1 -1
  95. package/dist/components/ContentPage/normalizePage.mobile.js +1 -1
  96. package/dist/components/ContentPage/normalizePage.mobile.js.map +1 -1
  97. package/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  98. package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  99. package/dist/components/Gallery/GalleryCardInner.js +15 -5
  100. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  101. package/dist/components/Header/Header.mobile.js +1 -1
  102. package/dist/components/Header/Header.mobile.js.map +1 -1
  103. package/dist/components/Header/HeaderBurger.js +1 -1
  104. package/dist/components/Header/HeaderBurger.js.map +1 -1
  105. package/dist/components/Header/HeaderTop.js +1 -1
  106. package/dist/components/Header/HeaderTop.js.map +1 -1
  107. package/dist/components/Headline/HeadlineContent.d.ts +1 -1
  108. package/dist/components/LinkDocs/LinkDocsListItem.js +1 -1
  109. package/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
  110. package/dist/components/LinkDocs/LinkDocsListItem.mobile.js +1 -1
  111. package/dist/components/LinkDocs/LinkDocsListItem.mobile.js.map +1 -1
  112. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  113. package/dist/components/Placeholder/Placeholder.js +8 -3
  114. package/dist/components/Placeholder/Placeholder.js.map +1 -1
  115. package/dist/components/Placeholder/PlaceholderContent.d.ts +2 -1
  116. package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  117. package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  118. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  119. package/dist/components/ProductBlock/ProductBlockInner.mobile.js +4 -1
  120. package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  121. package/dist/components/ProductBlock/renderBenefit.mobile.js +1 -1
  122. package/dist/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  123. package/dist/components/ProductGallery/ProductGallery.mobile.js +3 -14
  124. package/dist/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
  125. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js +1 -1
  126. package/dist/components/ProductTile/ProductTileContent.d.ts +1 -1
  127. package/dist/components/PromoTile/PromoTileContent.d.ts +1 -1
  128. package/dist/components/StepsBlock/StepsBlock.mobile.js +1 -1
  129. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  130. package/dist/components/Tile/Tile.js +5 -1
  131. package/dist/components/Tile/Tile.js.map +1 -1
  132. package/dist/components/Tile/TileContent.d.ts +1 -1
  133. package/dist/types.d.ts +8 -2
  134. package/dist/ui-kit/BlockItem/BlockItem.js +3 -3
  135. package/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
  136. package/dist/ui-kit/Description/Description.d.ts +4 -1
  137. package/dist/ui-kit/Description/Description.js +1 -1
  138. package/dist/ui-kit/Description/Description.js.map +1 -1
  139. package/{lib/ui-kit/Description/DescriptionProps.d.ts → dist/ui-kit/Description/DescriptionContent.d.ts} +0 -3
  140. package/dist/ui-kit/Description/{DescriptionProps.js → DescriptionContent.js} +1 -1
  141. package/dist/ui-kit/Description/DescriptionContent.js.map +1 -0
  142. package/dist/ui-kit/Heading/Heading.js +1 -1
  143. package/dist/ui-kit/Heading/Heading.js.map +1 -1
  144. package/dist/ui-kit/Heading/Heading.mobile.js +1 -1
  145. package/dist/ui-kit/Heading/Heading.mobile.js.map +1 -1
  146. package/dist/ui-kit/List/ListItem.js +2 -2
  147. package/dist/ui-kit/List/ListItem.js.map +1 -1
  148. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  149. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  150. package/dist/ui-kit/SwipeListControl/SwipeListControlItem.js +1 -1
  151. package/dist/ui-kit/SwipeListControl/SwipeListControlItem.js.map +1 -1
  152. package/lib/common.css +1 -1
  153. package/lib/components/Accordion/utils/isActiveHandler.js +1 -1
  154. package/lib/components/Accordion/utils/isActiveHandler.js.map +1 -1
  155. package/lib/components/BaseTile/BaseTile.js +1 -1
  156. package/lib/components/BaseTile/BaseTile.js.map +1 -1
  157. package/lib/components/Blocks.d.ts +0 -1
  158. package/lib/components/Blocks.js +0 -2
  159. package/lib/components/Blocks.js.map +1 -1
  160. package/lib/components/Blocks.mobile.d.ts +4 -2
  161. package/lib/components/Blocks.mobile.js +7 -3
  162. package/lib/components/Blocks.mobile.js.map +1 -1
  163. package/lib/components/ContentPage/ContentPage.js +2 -2
  164. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  165. package/lib/components/ContentPage/ContentPageHead.js +4 -2
  166. package/lib/components/ContentPage/ContentPageHead.js.map +1 -1
  167. package/lib/components/ContentPage/isBlockInRegistry.d.ts +1 -2
  168. package/lib/components/ContentPage/isBlockInRegistry.js +2 -2
  169. package/lib/components/ContentPage/isBlockInRegistry.js.map +1 -1
  170. package/lib/components/ContentPage/normalizeBlock.d.ts +1 -1
  171. package/lib/components/ContentPage/normalizePage.js +1 -1
  172. package/lib/components/ContentPage/normalizePage.js.map +1 -1
  173. package/lib/components/ContentPage/normalizePage.mobile.js +1 -1
  174. package/lib/components/ContentPage/normalizePage.mobile.js.map +1 -1
  175. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  176. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  177. package/lib/components/Gallery/GalleryCardInner.js +15 -5
  178. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  179. package/lib/components/Header/Header.mobile.js +1 -1
  180. package/lib/components/Header/Header.mobile.js.map +1 -1
  181. package/lib/components/Header/HeaderBurger.js +1 -1
  182. package/lib/components/Header/HeaderBurger.js.map +1 -1
  183. package/lib/components/Header/HeaderTop.js +1 -1
  184. package/lib/components/Header/HeaderTop.js.map +1 -1
  185. package/lib/components/Headline/HeadlineContent.d.ts +1 -1
  186. package/lib/components/LinkDocs/LinkDocsListItem.js +1 -1
  187. package/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
  188. package/lib/components/LinkDocs/LinkDocsListItem.mobile.js +1 -1
  189. package/lib/components/LinkDocs/LinkDocsListItem.mobile.js.map +1 -1
  190. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  191. package/lib/components/Placeholder/Placeholder.fixture.mobile.d.ts +2 -0
  192. package/lib/components/Placeholder/Placeholder.js +9 -4
  193. package/lib/components/Placeholder/Placeholder.js.map +1 -1
  194. package/lib/components/Placeholder/PlaceholderContent.d.ts +2 -1
  195. package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  196. package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  197. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  198. package/lib/components/ProductBlock/ProductBlockInner.mobile.js +4 -1
  199. package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  200. package/lib/components/ProductBlock/renderBenefit.mobile.js +1 -1
  201. package/lib/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  202. package/lib/components/ProductGallery/ProductGallery.fixture.mobile.d.ts +1 -0
  203. package/lib/components/ProductGallery/ProductGallery.mobile.js +4 -15
  204. package/lib/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
  205. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js +1 -1
  206. package/lib/components/ProductTile/ProductTileContent.d.ts +1 -1
  207. package/lib/components/PromoTile/PromoTileContent.d.ts +1 -1
  208. package/lib/components/StepsBlock/StepsBlock.mobile.js +1 -1
  209. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  210. package/lib/components/Tile/Tile.js +5 -1
  211. package/lib/components/Tile/Tile.js.map +1 -1
  212. package/lib/components/Tile/TileContent.d.ts +1 -1
  213. package/lib/types.d.ts +8 -2
  214. package/lib/ui-kit/BlockItem/BlockItem.js +3 -3
  215. package/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
  216. package/lib/ui-kit/Description/Description.d.ts +4 -1
  217. package/lib/ui-kit/Description/Description.js +1 -1
  218. package/lib/ui-kit/Description/Description.js.map +1 -1
  219. package/{mobile/dist/ui-kit/Description/DescriptionProps.d.ts → lib/ui-kit/Description/DescriptionContent.d.ts} +0 -3
  220. package/lib/ui-kit/Description/DescriptionContent.js +2 -0
  221. package/lib/ui-kit/Description/DescriptionContent.js.map +1 -0
  222. package/lib/ui-kit/Heading/Heading.js +1 -1
  223. package/lib/ui-kit/Heading/Heading.js.map +1 -1
  224. package/lib/ui-kit/Heading/Heading.mobile.js +1 -1
  225. package/lib/ui-kit/Heading/Heading.mobile.js.map +1 -1
  226. package/lib/ui-kit/List/ListItem.js +2 -2
  227. package/lib/ui-kit/List/ListItem.js.map +1 -1
  228. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  229. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  230. package/lib/ui-kit/SwipeListControl/SwipeListControlItem.js +1 -1
  231. package/lib/ui-kit/SwipeListControl/SwipeListControlItem.js.map +1 -1
  232. package/mobile/bundle/bundle.umd.js +261 -252
  233. package/mobile/bundle/bundle.umd.min.js +1 -1
  234. package/mobile/dist/components/Accordion/utils/isActiveHandler.js +1 -1
  235. package/mobile/dist/components/Accordion/utils/isActiveHandler.js.map +1 -1
  236. package/mobile/dist/components/BaseTile/BaseTile.js +1 -1
  237. package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
  238. package/mobile/dist/components/Blocks.d.ts +4 -2
  239. package/mobile/dist/components/Blocks.js +7 -3
  240. package/mobile/dist/components/Blocks.js.map +1 -1
  241. package/mobile/dist/components/ContentPage/ContentPage.js +2 -2
  242. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  243. package/mobile/dist/components/ContentPage/ContentPageHead.js +4 -2
  244. package/mobile/dist/components/ContentPage/ContentPageHead.js.map +1 -1
  245. package/mobile/dist/components/ContentPage/isBlockInRegistry.d.ts +1 -2
  246. package/mobile/dist/components/ContentPage/isBlockInRegistry.js +2 -2
  247. package/mobile/dist/components/ContentPage/isBlockInRegistry.js.map +1 -1
  248. package/mobile/dist/components/ContentPage/normalizePage.js +1 -1
  249. package/mobile/dist/components/ContentPage/normalizePage.js.map +1 -1
  250. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  251. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  252. package/mobile/dist/components/Gallery/GalleryCardInner.js +15 -5
  253. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  254. package/mobile/dist/components/Header/Header.js +1 -1
  255. package/mobile/dist/components/Header/Header.js.map +1 -1
  256. package/mobile/dist/components/Header/HeaderBurger.js +1 -1
  257. package/mobile/dist/components/Header/HeaderBurger.js.map +1 -1
  258. package/mobile/dist/components/Header/HeaderTop.js +1 -1
  259. package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
  260. package/mobile/dist/components/Headline/HeadlineContent.d.ts +1 -1
  261. package/mobile/dist/components/LinkDocs/LinkDocsListItem.js +1 -1
  262. package/mobile/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
  263. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  264. package/mobile/dist/components/Placeholder/Placeholder.d.ts +1 -1
  265. package/mobile/dist/components/Placeholder/Placeholder.js +8 -3
  266. package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
  267. package/mobile/dist/components/Placeholder/PlaceholderContent.d.ts +2 -1
  268. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  269. package/mobile/dist/components/ProductBlock/ProductBlockInner.js +4 -1
  270. package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  271. package/mobile/dist/components/ProductBlock/renderBenefit.js +1 -1
  272. package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  273. package/mobile/dist/components/ProductGallery/ProductGallery.js +3 -14
  274. package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  275. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
  276. package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +1 -1
  277. package/mobile/dist/components/PromoTile/PromoTileContent.d.ts +1 -1
  278. package/mobile/dist/components/StepsBlock/StepsBlock.js +1 -1
  279. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  280. package/mobile/dist/components/Tile/Tile.js +5 -1
  281. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  282. package/mobile/dist/components/Tile/TileContent.d.ts +1 -1
  283. package/mobile/dist/types.d.ts +8 -2
  284. package/mobile/dist/ui-kit/BlockItem/BlockItem.js +3 -3
  285. package/mobile/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
  286. package/mobile/dist/ui-kit/Description/Description.d.ts +4 -1
  287. package/mobile/dist/ui-kit/Description/Description.js +1 -1
  288. package/mobile/dist/ui-kit/Description/Description.js.map +1 -1
  289. package/mobile/{lib/ui-kit/Description/DescriptionProps.d.ts → dist/ui-kit/Description/DescriptionContent.d.ts} +0 -3
  290. package/mobile/dist/ui-kit/Description/{DescriptionProps.js → DescriptionContent.js} +1 -1
  291. package/mobile/dist/ui-kit/Description/DescriptionContent.js.map +1 -0
  292. package/mobile/dist/ui-kit/Heading/Heading.js +1 -1
  293. package/mobile/dist/ui-kit/Heading/Heading.js.map +1 -1
  294. package/mobile/dist/ui-kit/List/ListItem.js +2 -2
  295. package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
  296. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  297. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  298. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.js +1 -1
  299. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.js.map +1 -1
  300. package/mobile/lib/components/Accordion/utils/isActiveHandler.js +1 -1
  301. package/mobile/lib/components/Accordion/utils/isActiveHandler.js.map +1 -1
  302. package/mobile/lib/components/BaseTile/BaseTile.js +1 -1
  303. package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
  304. package/mobile/lib/components/Blocks.d.ts +4 -2
  305. package/mobile/lib/components/Blocks.js +7 -3
  306. package/mobile/lib/components/Blocks.js.map +1 -1
  307. package/mobile/lib/components/ContentPage/ContentPage.js +2 -2
  308. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  309. package/mobile/lib/components/ContentPage/ContentPageHead.js +4 -2
  310. package/mobile/lib/components/ContentPage/ContentPageHead.js.map +1 -1
  311. package/mobile/lib/components/ContentPage/isBlockInRegistry.d.ts +1 -2
  312. package/mobile/lib/components/ContentPage/isBlockInRegistry.js +2 -2
  313. package/mobile/lib/components/ContentPage/isBlockInRegistry.js.map +1 -1
  314. package/mobile/lib/components/ContentPage/normalizePage.js +1 -1
  315. package/mobile/lib/components/ContentPage/normalizePage.js.map +1 -1
  316. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  317. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  318. package/mobile/lib/components/Gallery/GalleryCardInner.js +15 -5
  319. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  320. package/mobile/lib/components/Header/Header.js +1 -1
  321. package/mobile/lib/components/Header/Header.js.map +1 -1
  322. package/mobile/lib/components/Header/HeaderBurger.js +1 -1
  323. package/mobile/lib/components/Header/HeaderBurger.js.map +1 -1
  324. package/mobile/lib/components/Header/HeaderTop.js +1 -1
  325. package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
  326. package/mobile/lib/components/Headline/HeadlineContent.d.ts +1 -1
  327. package/mobile/lib/components/LinkDocs/LinkDocsListItem.js +1 -1
  328. package/mobile/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
  329. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  330. package/mobile/lib/components/Placeholder/Placeholder.d.ts +1 -1
  331. package/mobile/lib/components/Placeholder/Placeholder.js +9 -4
  332. package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
  333. package/mobile/lib/components/Placeholder/PlaceholderContent.d.ts +2 -1
  334. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  335. package/mobile/lib/components/ProductBlock/ProductBlockInner.js +4 -1
  336. package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  337. package/mobile/lib/components/ProductBlock/renderBenefit.js +1 -1
  338. package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  339. package/mobile/lib/components/ProductGallery/ProductGallery.js +4 -15
  340. package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  341. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
  342. package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +1 -1
  343. package/mobile/lib/components/PromoTile/PromoTileContent.d.ts +1 -1
  344. package/mobile/lib/components/StepsBlock/StepsBlock.js +1 -1
  345. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  346. package/mobile/lib/components/Tile/Tile.js +5 -1
  347. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  348. package/mobile/lib/components/Tile/TileContent.d.ts +1 -1
  349. package/mobile/lib/types.d.ts +8 -2
  350. package/mobile/lib/ui-kit/BlockItem/BlockItem.js +3 -3
  351. package/mobile/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
  352. package/mobile/lib/ui-kit/Description/Description.d.ts +4 -1
  353. package/mobile/lib/ui-kit/Description/Description.js +1 -1
  354. package/mobile/lib/ui-kit/Description/Description.js.map +1 -1
  355. package/{dist/ui-kit/Description/DescriptionProps.d.ts → mobile/lib/ui-kit/Description/DescriptionContent.d.ts} +0 -3
  356. package/mobile/lib/ui-kit/Description/DescriptionContent.js +2 -0
  357. package/mobile/lib/ui-kit/Description/DescriptionContent.js.map +1 -0
  358. package/mobile/lib/ui-kit/Heading/Heading.js +1 -1
  359. package/mobile/lib/ui-kit/Heading/Heading.js.map +1 -1
  360. package/mobile/lib/ui-kit/List/ListItem.js +2 -2
  361. package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
  362. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  363. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  364. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.js +1 -1
  365. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.js.map +1 -1
  366. package/mobile/src/components/Accordion/utils/isActiveHandler.ts +1 -2
  367. package/mobile/src/components/BaseTile/BaseTile.tsx +2 -2
  368. package/mobile/src/components/Blocks.ts +7 -3
  369. package/mobile/src/components/ContentPage/ContentPage.page.json +54 -47
  370. package/mobile/src/components/ContentPage/ContentPage.tsx +2 -2
  371. package/mobile/src/components/ContentPage/ContentPageHead.tsx +14 -1
  372. package/mobile/src/components/ContentPage/isBlockInRegistry.ts +2 -4
  373. package/mobile/src/components/ContentPage/normalizePage.ts +4 -1
  374. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
  375. package/mobile/src/components/Gallery/GalleryCardInner.tsx +23 -15
  376. package/mobile/src/components/Header/Header.tsx +1 -1
  377. package/mobile/src/components/Header/HeaderBurger.tsx +2 -2
  378. package/mobile/src/components/Header/HeaderTop.tsx +6 -2
  379. package/mobile/src/components/Headline/HeadlineContent.ts +1 -1
  380. package/mobile/src/components/LinkDocs/LinkDocsListItem.tsx +1 -1
  381. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +1 -1
  382. package/mobile/src/components/Placeholder/Placeholder.tsx +36 -14
  383. package/mobile/src/components/Placeholder/PlaceholderContent.ts +2 -1
  384. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +1 -1
  385. package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +17 -11
  386. package/mobile/src/components/ProductBlock/renderBenefit.tsx +2 -2
  387. package/mobile/src/components/ProductGallery/ProductGallery.tsx +12 -49
  388. package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +1 -1
  389. package/mobile/src/components/ProductTile/ProductTileContent.ts +1 -1
  390. package/mobile/src/components/PromoTile/PromoTileContent.ts +1 -1
  391. package/mobile/src/components/StepsBlock/StepsBlock.tsx +1 -1
  392. package/mobile/src/components/Tile/Tile.tsx +7 -4
  393. package/mobile/src/components/Tile/TileContent.ts +1 -1
  394. package/mobile/src/types.ts +9 -2
  395. package/mobile/src/ui-kit/BlockItem/BlockItem.tsx +4 -4
  396. package/mobile/src/ui-kit/Description/Description.tsx +6 -2
  397. package/mobile/src/ui-kit/Description/{DescriptionProps.ts → DescriptionContent.ts} +0 -4
  398. package/mobile/src/ui-kit/Heading/Heading.tsx +1 -1
  399. package/mobile/src/ui-kit/List/ListItem.tsx +3 -3
  400. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
  401. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlItem.tsx +5 -1
  402. package/package.json +4 -5
  403. package/src/components/Accordion/utils/isActiveHandler.ts +1 -2
  404. package/src/components/BaseTile/BaseTile.tsx +2 -2
  405. package/src/components/Blocks.mobile.ts +7 -3
  406. package/src/components/Blocks.ts +0 -2
  407. package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +0 -1
  408. package/src/components/ContentPage/ContentPage.page.json +54 -47
  409. package/src/components/ContentPage/ContentPage.tsx +2 -2
  410. package/src/components/ContentPage/ContentPageHead.tsx +14 -1
  411. package/src/components/ContentPage/isBlockInRegistry.ts +2 -4
  412. package/src/components/ContentPage/normalizePage.mobile.ts +4 -1
  413. package/src/components/ContentPage/normalizePage.ts +1 -1
  414. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
  415. package/src/components/Gallery/Gallery.fixture.mobile.tsx +1 -1
  416. package/src/components/Gallery/GalleryCardInner.tsx +23 -15
  417. package/src/components/Header/Header.mobile.tsx +1 -1
  418. package/src/components/Header/HeaderBurger.tsx +2 -2
  419. package/src/components/Header/HeaderTop.tsx +6 -2
  420. package/src/components/Headline/HeadlineContent.ts +1 -1
  421. package/src/components/LinkDocs/LinkDocsListItem.mobile.tsx +1 -1
  422. package/src/components/LinkDocs/LinkDocsListItem.tsx +1 -1
  423. package/src/components/MobileAppTile/MobileAppTileContent.ts +1 -1
  424. package/src/components/Placeholder/Placeholder.fixture.mobile.tsx +9 -0
  425. package/src/components/Placeholder/Placeholder.tsx +35 -8
  426. package/src/components/Placeholder/PlaceholderContent.ts +2 -1
  427. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +8 -2
  428. package/src/components/ProductBlock/ProductBlockContent.ts +1 -1
  429. package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +17 -11
  430. package/src/components/ProductBlock/ProductBlockInner.tsx +2 -2
  431. package/src/components/ProductBlock/renderBenefit.mobile.tsx +2 -2
  432. package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +106 -0
  433. package/src/components/ProductGallery/ProductGallery.fixture.tsx +2 -2
  434. package/src/components/ProductGallery/ProductGallery.mobile.tsx +12 -49
  435. package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +1 -1
  436. package/src/components/ProductTile/ProductTileContent.ts +1 -1
  437. package/src/components/PromoTile/PromoTileContent.ts +1 -1
  438. package/src/components/StepsBlock/StepsBlock.mobile.tsx +1 -1
  439. package/src/components/Tile/Tile.tsx +7 -4
  440. package/src/components/Tile/TileContent.ts +1 -1
  441. package/src/types.ts +9 -2
  442. package/src/ui-kit/BlockItem/BlockItem.tsx +4 -4
  443. package/src/ui-kit/Description/Description.tsx +6 -2
  444. package/src/ui-kit/Description/{DescriptionProps.ts → DescriptionContent.ts} +0 -4
  445. package/src/ui-kit/Heading/Heading.fixture.mobile.tsx +0 -1
  446. package/src/ui-kit/Heading/Heading.mobile.tsx +1 -1
  447. package/src/ui-kit/Heading/Heading.tsx +3 -1
  448. package/src/ui-kit/List/ListItem.tsx +3 -3
  449. package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
  450. package/src/ui-kit/SwipeListControl/SwipeListControlItem.tsx +5 -1
  451. package/dist/components/Placeholder/Placeholder.mobile.d.ts +0 -6
  452. package/dist/components/Placeholder/Placeholder.mobile.js +0 -15
  453. package/dist/components/Placeholder/Placeholder.mobile.js.map +0 -1
  454. package/dist/ui-kit/Description/DescriptionProps.js.map +0 -1
  455. package/lib/components/Placeholder/Placeholder.mobile.d.ts +0 -6
  456. package/lib/components/Placeholder/Placeholder.mobile.js +0 -13
  457. package/lib/components/Placeholder/Placeholder.mobile.js.map +0 -1
  458. package/lib/ui-kit/Description/DescriptionProps.js +0 -2
  459. package/lib/ui-kit/Description/DescriptionProps.js.map +0 -1
  460. package/mobile/dist/ui-kit/Description/DescriptionProps.js.map +0 -1
  461. package/mobile/lib/ui-kit/Description/DescriptionProps.js +0 -2
  462. package/mobile/lib/ui-kit/Description/DescriptionProps.js.map +0 -1
  463. package/src/components/Placeholder/Placeholder.mobile.tsx +0 -35
@@ -25,7 +25,7 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
25
25
  version = 'primary',
26
26
  }) => {
27
27
  return (
28
- <div className={`${className}`}>
28
+ <div className={`w-full text-primary-text ${className}`}>
29
29
  <div>
30
30
  <BaseTile
31
31
  context={context}
@@ -34,31 +34,37 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
34
34
  <Heading
35
35
  headingType={headingType}
36
36
  title={title}
37
- className={`whitespace-pre-wrap max-w-[600px]`}
37
+ className={`whitespace-pre-wrap max-w-[600px] ${title ? 'mb-3' : ''}`}
38
38
  />
39
39
  )
40
40
  }
41
41
  buttons={
42
42
  buttons?.length ? (
43
- <ButtonSection context={context} buttons={buttons} className="flex mt-9 gap-3" />
43
+ <ButtonSection
44
+ context={context}
45
+ buttons={buttons}
46
+ className="flex flex-col mt-5 gap-2.5"
47
+ />
44
48
  ) : null
45
49
  }
46
50
  >
47
51
  {description && <Description description={description} />}
48
52
  {benefits?.length ? (
49
- <div className="mt-[19px]">
50
- {benefits.map((_, i) => renderBenefit(_, i, version))}
51
- </div>
53
+ <div className="mt-5">{benefits.map((_, i) => renderBenefit(_, i, version))}</div>
52
54
  ) : null}
53
55
  {items?.length ? <List items={items} /> : null}
54
56
  </BaseTile>
55
57
  </div>
56
- {image?.src && (
57
- <div className="mt-5">
58
- <Img image={{ className: 'block', ...image }} />
59
- </div>
60
- )}
58
+ {renderImage(image)}
61
59
  </div>
62
60
  );
63
61
  },
64
62
  );
63
+
64
+ function renderImage(image) {
65
+ return image?.src ? (
66
+ <div className="mt-5">
67
+ <Img image={{ className: 'block', ...image }} />
68
+ </div>
69
+ ) : null;
70
+ }
@@ -16,14 +16,14 @@ export function renderBenefit(benefit: Benefit, i: number, version: string) {
16
16
  <div key={String(i)} className="flex gap-3 items-center mb-2.5 last:mb-0">
17
17
  {benefit.icon && (
18
18
  <Icon
19
- className="w-[25px] h-[25px] rounded-full box-border"
19
+ className="w-6 h-6 rounded-full box-border"
20
20
  name={benefit.icon}
21
21
  width="24"
22
22
  height="24"
23
23
  asSVG
24
24
  />
25
25
  )}
26
- <div className={`font-medium text-m-base m-0 ${benefitTitleStyleMap[version]}`}>
26
+ <div className={`font-medium text-m-title-xs m-0 ${benefitTitleStyleMap[version]}`}>
27
27
  {benefit.label}
28
28
  </div>
29
29
  {benefit.description && (
@@ -1,58 +1,21 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { UniBlockProps } from '../../types';
3
- import { ProductGalleryBlock } from './ProductGalleryBlock';
4
3
  import type { ProductGalleryContent } from './ProductGalleryContent';
4
+ import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl';
5
+ import { ProductGalleryBlock } from './ProductGalleryBlock';
5
6
 
6
7
  export interface ProductGalleryProps extends ProductGalleryContent, UniBlockProps {}
7
8
 
8
- export const ProductGallery = JSX<ProductGalleryProps>(
9
- ({ className, context, duration = 0, slides = [] }) => {
10
- const galleryBlocks = slides.map((s) => s.productBlock);
11
- const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
12
-
13
- return (
14
- <section className={`font-sans bg-white overflow-hidden w-100 ${className || ''}`}>
15
- <div
16
- className={`flex duration-1000`}
17
- style={{ transform: `translateX(-${activeSlideIndex}00%)` }}
18
- role="list"
19
- >
20
- {galleryBlocks.map((block, i) => (
21
- <ProductGalleryBlock key={String(i)} block={block} context={context} />
22
- ))}
23
- </div>
24
-
25
- <div className="flex px-4 py-6">
26
- {slides.map((_, i) =>
27
- renderNavButton({
28
- slide: _.productBlock,
29
- i,
30
- activeSlideIndex,
31
- onClick: () => setActiveSlideIndex(i),
32
- duration,
33
- }),
34
- )}
35
- </div>
36
- </section>
37
- );
38
- },
39
- );
9
+ export const ProductGallery = JSX<ProductGalleryProps>(({ className, context, slides = [] }) => {
10
+ const galleryBlocks = slides.map((s) => s.productBlock);
40
11
 
41
- function renderNavButton({ slide, i, activeSlideIndex, onClick, duration }) {
42
- const isActiveBtn = i === activeSlideIndex;
43
- const progressBarClassName = isActiveBtn ? 'animate-slide bg-primary-main' : 'bg-main-divider';
44
12
  return (
45
- <button
46
- type="button"
47
- key={String(i)}
48
- onClick={onClick}
49
- aria-label={slide?.title}
50
- className={`relative overflow-hidden border-0 bg-inherit cursor-pointer pl-0 mr-1.5 pt-4 pb-5 last:mr-0 grow basis-0`}
51
- >
52
- <div
53
- className={`absolute bottom-0 left-0 w-full h-[3px] ${progressBarClassName}`}
54
- style={{ animationDuration: `${duration}s`, animationFillMode: 'forwards' }}
55
- ></div>
56
- </button>
13
+ <section className={`font-sans bg-white overflow-hidden w-100 pb-6 ${className || ''}`}>
14
+ <SwipeListControl context={context}>
15
+ {galleryBlocks.map((block, i) => (
16
+ <ProductGalleryBlock key={String(i)} block={block} context={context} />
17
+ ))}
18
+ </SwipeListControl>
19
+ </section>
57
20
  );
58
- }
21
+ });
@@ -12,7 +12,7 @@ export interface ProductGalleryBlockProps extends UniBlockProps {
12
12
  export const ProductGalleryBlock = JSX<ProductGalleryBlockProps>(
13
13
  ({ block, headingType, context }) => {
14
14
  return (
15
- <section className="flex grow-0 shrink-0 basis-full px-4 py-6" role="listitem">
15
+ <section className="flex grow-0 shrink-0 basis-full px-4 pt-6" role="listitem">
16
16
  <div className="flex grow">
17
17
  <ProductBlockInner context={context} headingType={headingType || 'h2'} {...block} />
18
18
  </div>
@@ -1,6 +1,6 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
2
  import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
3
- import type { DescriptionContent } from '../../ui-kit/Description/DescriptionProps';
3
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
4
4
  import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
5
5
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
6
6
  import type { TextBenefit } from '../BenefitsBlock/BenefitsBlockContent';
@@ -1,6 +1,6 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
2
  import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
3
- import type { DescriptionContent } from '../../ui-kit/Description/DescriptionProps';
3
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
4
4
  import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
5
5
 
6
6
  /**
@@ -49,7 +49,7 @@ const renderStepTitle = (params: RenderStepTitleParams) => {
49
49
  {renderIconArea(step, size, i)}
50
50
  {!isLastStep && <div className={`min-h-8 h-full w-[2px] bg-secondary-light ${margin}`} />}
51
51
  </div>
52
- <div className="flex flex-col justify-center relative">
52
+ <div className="flex flex-col justify-start relative">
53
53
  {step.label && (
54
54
  <div className="font-medium text-m-title-xs m-0 text-left">{step.label}</div>
55
55
  )}
@@ -49,9 +49,8 @@ export const Tile = JSX<TileProps>((props) => {
49
49
  <Heading
50
50
  headingType={getTileHeadingType(className)}
51
51
  title={title}
52
- className={`whitespace-pre-wrap max-w-[600px] ${
53
- version === 'primary' ? 'text-primary-text' : ''
54
- }`}
52
+ className={`whitespace-pre-wrap max-w-[600px] ${title ? 'mb-3' : ''}
53
+ ${version === 'primary' ? 'text-primary-text' : ''}`}
55
54
  />
56
55
  )
57
56
  }
@@ -64,8 +63,12 @@ export const Tile = JSX<TileProps>((props) => {
64
63
  >
65
64
  {description && <Description className="mt-4 max-w-[600px]" description={description} />}
66
65
  {children}
67
- {items?.length ? <List items={items} /> : null}
66
+ {renderList(items, version)}
68
67
  </BaseTile>
69
68
  </section>
70
69
  );
71
70
  });
71
+
72
+ function renderList(items, version) {
73
+ return items?.length ? <List items={items} version={version} /> : null;
74
+ }
@@ -1,6 +1,6 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
2
  import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
3
- import type { DescriptionContent } from '../../ui-kit/Description/DescriptionProps';
3
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
4
4
  import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
5
5
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
6
6
  import type { ListContent } from '../../ui-kit/List/ListContent';
@@ -5,7 +5,7 @@ import type { BlockVersion } from './model/BlockVersion';
5
5
  export type ColorPalette = 'pc' | 'bc' | 'eo' | 'eo2' | 'eo3' | 'eo4';
6
6
 
7
7
  export interface BaseBlockDef {
8
- type: string;
8
+ type?: string;
9
9
  style?: string[];
10
10
  content?: BlockContent;
11
11
  version?: BlockVersion;
@@ -28,10 +28,17 @@ export interface SlotsMap {
28
28
  export interface ContentPageMeta {
29
29
  title: string;
30
30
  slug: string;
31
+ main: ContentPageMetaMain;
32
+ og?: Record<string, string>;
33
+ twitter?: Record<string, string>;
34
+ jsonLd?: string;
35
+ }
36
+
37
+ export interface ContentPageMetaMain {
31
38
  description?: string;
32
39
  keywords?: string[];
40
+ canonical?: string;
33
41
  robots?: string[];
34
- og?: Record<string, string>;
35
42
  }
36
43
 
37
44
  export interface ContentPageDef extends ContentPageMeta {
@@ -1,10 +1,10 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { BlockItemProps, BlockItemVersion } from './BlockItemProps';
3
3
 
4
- const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3';
4
+ const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3 mt-2';
5
5
 
6
6
  const TEXT_STYLE_MAP: Record<BlockItemVersion, string> = {
7
- primary: 'text-primary-text',
7
+ primary: 'text-secondary-text',
8
8
  secondary: 'text-white',
9
9
  gray: 'text-secondary-text',
10
10
  };
@@ -18,8 +18,8 @@ const LIST_STYLE_MAP: Record<BlockItemVersion, string> = {
18
18
  export const BlockItem = JSX<BlockItemProps>(
19
19
  ({ className = '', isDotted = true, text, children, version = 'primary' }) => {
20
20
  return (
21
- <div className={`font-sans flex items-center ${className}`} role="listitem">
22
- {isDotted && <div className={getListStyle(version)} />}
21
+ <div className={`font-sans flex items-start ${className}`} role="listitem">
22
+ {isDotted && <div className={getListStyle(version)} />}!!!!!
23
23
  <span className={TEXT_STYLE_MAP[version]}>{text || children}</span>
24
24
  </div>
25
25
  );
@@ -1,8 +1,12 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { DescriptionProps } from './DescriptionProps';
2
+ import { DescriptionContent } from './DescriptionContent';
3
+
4
+ export interface DescriptionProps extends DescriptionContent {
5
+ className?: string;
6
+ }
3
7
 
4
8
  export const Description = JSX<DescriptionProps>((props) => {
5
9
  const { className, description } = props;
6
10
 
7
- return <div className={`font-normal text-base ${className || ''}`}>{description}</div>;
11
+ return <div className={`font-normal text-m-md ${className || ''}`}>{description}</div>;
8
12
  });
@@ -2,7 +2,3 @@ export interface DescriptionContent {
2
2
  /** @title Описание */
3
3
  description?: string;
4
4
  }
5
-
6
- export interface DescriptionProps extends DescriptionContent {
7
- className?: string;
8
- }
@@ -22,7 +22,7 @@ export const Heading = JSX<HeadingProps>((props) => {
22
22
  const Tag = headingType;
23
23
 
24
24
  return (
25
- <Tag className={`font-sans font-medium ${HeadingClass[headingType]} ${className || ''}`}>
25
+ <Tag className={`font-sans font-medium m-0 ${HeadingClass[headingType]} ${className || ''}`}>
26
26
  {title}
27
27
  </Tag>
28
28
  );
@@ -11,7 +11,7 @@ export interface ListItemProps {
11
11
  isDotted?: boolean;
12
12
  }
13
13
 
14
- const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3';
14
+ const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3 mt-2';
15
15
 
16
16
  const TEXT_STYLE_MAP: Record<ListItemVersion, string> = {
17
17
  primary: 'text-primary-text',
@@ -28,9 +28,9 @@ const LIST_STYLE_MAP: Record<ListItemVersion, string> = {
28
28
  export const ListItem = JSX<ListItemProps>(
29
29
  ({ className = '', isDotted = true, children, version = 'primary' }) => {
30
30
  return (
31
- <div className={`font-sans flex items-center ${className}`} role="listitem">
31
+ <div className={`font-sans flex items-start ${className}`} role="listitem">
32
32
  {isDotted && <div className={getListStyle(version)} />}
33
- <span className={TEXT_STYLE_MAP[version]}>{children}</span>
33
+ <span className={`text-m-md ${TEXT_STYLE_MAP[version]}`}>{children}</span>
34
34
  </div>
35
35
  );
36
36
  },
@@ -15,7 +15,7 @@ export interface SwipeListControlDotsProps {
15
15
  export const SwipeListControlDots = JSX<SwipeListControlDotsProps>(
16
16
  ({ children, activeIndex, indexFraction, showDots }) => {
17
17
  return showDots && children?.length ? (
18
- <div className="flex gap-2 mx-auto mt-[22px] w-fit">
18
+ <div className="flex gap-2 mx-auto mt-5 w-fit">
19
19
  {children?.map((_, idx) => (
20
20
  <div
21
21
  key={String(idx)}
@@ -12,7 +12,11 @@ export interface SwipeListControlItemProps {
12
12
  export const SwipeListControlItem = JSX<SwipeListControlItemProps>(
13
13
  ({ className = '', children, ...rest }) => {
14
14
  return (
15
- <div className={`snap-center snap-always min-w-full ${className}`} role="listitem" {...rest}>
15
+ <div
16
+ className={`snap-center snap-always min-w-full box-border ${className}`}
17
+ role="listitem"
18
+ {...rest}
19
+ >
16
20
  {children}
17
21
  </div>
18
22
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.3.3",
3
+ "version": "0.3.6",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -65,7 +65,8 @@
65
65
  "mobile/bundle",
66
66
  "fonts",
67
67
  "mobile/src",
68
- "src"
68
+ "src",
69
+ "cosmos-static/icons"
69
70
  ],
70
71
  "repository": {
71
72
  "url": "https://github.com/redneckz/wildless-cms-uni-blocks.git"
@@ -167,9 +168,7 @@
167
168
  "eslint"
168
169
  ],
169
170
  "src/**/*.{js,jsx,ts,tsx,css}": [
170
- "prettier --write",
171
- "npm run build:icons",
172
- "git add ./cosmos-static/icons"
171
+ "prettier --write"
173
172
  ]
174
173
  },
175
174
  "peerDependenciesMeta": {
@@ -5,8 +5,7 @@ export const isActiveHandler = ({ context, blocks }) => {
5
5
  const hasContent = blocks?.length;
6
6
  const icon: IconName = isActive ? 'MinusIcon' : 'PlusIcon';
7
7
 
8
- const getContentBlock = ({ target }) =>
9
- target.tagName === 'BUTTON' ? target.nextSibling : target.parentNode.nextSibling;
8
+ const getContentBlock = ({ currentTarget }) => currentTarget.nextSibling;
10
9
 
11
10
  const handleToggle = (e: MouseEvent) => {
12
11
  if (!hasContent) {
@@ -9,8 +9,8 @@ export const BaseTile = JSX<BaseTileProps>(
9
9
  return (
10
10
  <div className={`font-sans flex flex-col grow h-full items-start ${className}`}>
11
11
  {title}
12
- <div className={`flex grow w-full justify-between`}>
13
- <div className={`flex flex-col justify-between`}>
12
+ <div className="flex grow w-full justify-between">
13
+ <div className="flex flex-col justify-between w-full">
14
14
  <div>{children}</div>
15
15
  <div>{buttons}</div>
16
16
  </div>
@@ -1,23 +1,27 @@
1
+ import { Accordion } from './Accordion/Accordion';
1
2
  import { ExchangeRateTile } from './ExchangeRateTile/ExchangeRateTile';
2
3
  import { Footer } from './Footer/Footer';
4
+ import { Gallery } from './Gallery/Gallery';
3
5
  import { Header } from './Header/Header';
4
6
  import { Headline } from './Headline/Headline';
5
7
  import { LinkDocs } from './LinkDocs/LinkDocs';
6
- import { Placeholder } from './Placeholder/Placeholder';
8
+ import { MobileAppTile } from './MobileAppTile/MobileAppTile';
7
9
  import { ProductBlock } from './ProductBlock/ProductBlock';
8
10
  import { ProductGallery } from './ProductGallery/ProductGallery';
9
11
  import { StepsBlock } from './StepsBlock/StepsBlock';
10
12
  import { TextBlock } from './TextBlock/TextBlock';
11
13
 
12
14
  export const Blocks = {
15
+ Accordion,
13
16
  ExchangeRateTile,
14
17
  Footer,
18
+ Gallery,
15
19
  Header,
16
20
  Headline,
17
21
  LinkDocs,
18
- Placeholder,
22
+ MobileAppTile,
19
23
  ProductBlock,
20
24
  ProductGallery,
21
- TextBlock,
22
25
  StepsBlock,
26
+ TextBlock,
23
27
  };
@@ -12,7 +12,6 @@ import { MiniGallery } from './MiniGallery/MiniGallery';
12
12
  import { MobileAppTile } from './MobileAppTile/MobileAppTile';
13
13
  import { Navigation } from './Navigation/Navigation';
14
14
  import { PictureText } from './PictureText/PictureText';
15
- import { Placeholder } from './Placeholder/Placeholder';
16
15
  import { ProductBlock } from './ProductBlock/ProductBlock';
17
16
  import { ProductGallery } from './ProductGallery/ProductGallery';
18
17
  import { ProductTile } from './ProductTile/ProductTile';
@@ -36,7 +35,6 @@ export const Blocks = {
36
35
  MiniGallery,
37
36
  MobileAppTile,
38
37
  PictureText,
39
- Placeholder,
40
38
  ProductBlock,
41
39
  ProductGallery,
42
40
  ProductTile,
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import type { Picture } from '../../model/Picture';
3
2
  import { context } from '../../setup-fixture';
4
3
  import { ComparisonTable } from './ComparisonTable';
@@ -1,13 +1,20 @@
1
1
  {
2
2
  "title": "Кредиты",
3
3
  "slug": "credits",
4
- "description": "Акционерное общество «Российский Сельскохозяйственный банк»* — один из крупнейших банков в России. Созданный в 2000 году в целях развития национальной кредитно-финансовой системы.",
5
- "keywords": ["кредит", "акция"],
6
- "robots": ["index", "follow"],
4
+ "main": {
5
+ "description": "Акционерное общество «Российский Сельскохозяйственный банк»* — один из крупнейших банков в России. Созданный в 2000 году в целях развития национальной кредитно-финансовой системы.",
6
+ "keywords": ["кредит", "акция"],
7
+ "canonical": "canonical url",
8
+ "robots": ["index", "follow"]
9
+ },
7
10
  "og": {
8
11
  "type": "article",
9
12
  "url": "https://foo.com/bar/baz"
10
13
  },
14
+ "twitter": {
15
+ "card": "summary_large_image"
16
+ },
17
+ "jsonLd": "json",
11
18
  "date": "2022-04-08",
12
19
  "style": ["bg-secondary-light"],
13
20
  "likeControl": true,
@@ -83,7 +90,13 @@
83
90
  "size": {
84
91
  "width": 280,
85
92
  "height": 280
86
- }
93
+ },
94
+ "sources": [
95
+ {
96
+ "src": "money-1.png 1x, money-1-2x.png 2x",
97
+ "format": "png"
98
+ }
99
+ ]
87
100
  }
88
101
  }
89
102
  },
@@ -115,7 +128,13 @@
115
128
  "size": {
116
129
  "width": 280,
117
130
  "height": 280
118
- }
131
+ },
132
+ "sources": [
133
+ {
134
+ "src": "money-2.png 1x, money-2-2x.png 2x",
135
+ "format": "png"
136
+ }
137
+ ]
119
138
  }
120
139
  }
121
140
  },
@@ -1312,22 +1331,18 @@
1312
1331
  "label": "Accordion label 1",
1313
1332
  "blocks": [
1314
1333
  {
1315
- "type": "TextBlock",
1316
- "data": {
1317
- "title": "Title",
1318
- "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
1319
- "blockVersion": "secondary-light",
1320
- "iconVersion": "small"
1321
- }
1334
+ "accordionBlockType": "TextBlock",
1335
+ "title": "Title",
1336
+ "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
1337
+ "blockVersion": "secondary-light",
1338
+ "iconVersion": "small"
1322
1339
  },
1323
1340
  {
1324
- "type": "TextBlock",
1325
- "data": {
1326
- "title": "Title",
1327
- "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
1328
- "blockVersion": "secondary-light",
1329
- "iconVersion": "small"
1330
- }
1341
+ "accordionBlockType": "TextBlock",
1342
+ "title": "Title",
1343
+ "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
1344
+ "blockVersion": "secondary-light",
1345
+ "iconVersion": "small"
1331
1346
  }
1332
1347
  ]
1333
1348
  },
@@ -1335,22 +1350,18 @@
1335
1350
  "label": "Accordion label 2",
1336
1351
  "blocks": [
1337
1352
  {
1338
- "type": "TextBlock",
1339
- "data": {
1340
- "title": "Title",
1341
- "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
1342
- "blockVersion": "secondary-light",
1343
- "iconVersion": "small"
1344
- }
1353
+ "accordionBlockType": "TextBlock",
1354
+ "title": "Title",
1355
+ "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
1356
+ "blockVersion": "secondary-light",
1357
+ "iconVersion": "small"
1345
1358
  },
1346
1359
  {
1347
- "type": "TextBlock",
1348
- "data": {
1349
- "title": "Title",
1350
- "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
1351
- "blockVersion": "secondary-light",
1352
- "iconVersion": "small"
1353
- }
1360
+ "accordionBlockType": "TextBlock",
1361
+ "title": "Title",
1362
+ "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
1363
+ "blockVersion": "secondary-light",
1364
+ "iconVersion": "small"
1354
1365
  }
1355
1366
  ]
1356
1367
  },
@@ -1358,22 +1369,18 @@
1358
1369
  "label": "Accordion label 3",
1359
1370
  "blocks": [
1360
1371
  {
1361
- "type": "TextBlock",
1362
- "data": {
1363
- "title": "Title",
1364
- "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
1365
- "blockVersion": "secondary-light",
1366
- "iconVersion": "small"
1367
- }
1372
+ "accordionBlockType": "TextBlock",
1373
+ "title": "Title",
1374
+ "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
1375
+ "blockVersion": "secondary-light",
1376
+ "iconVersion": "small"
1368
1377
  },
1369
1378
  {
1370
- "type": "TextBlock",
1371
- "data": {
1372
- "title": "Title",
1373
- "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
1374
- "blockVersion": "secondary-light",
1375
- "iconVersion": "small"
1376
- }
1379
+ "accordionBlockType": "TextBlock",
1380
+ "title": "Title",
1381
+ "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
1382
+ "blockVersion": "secondary-light",
1383
+ "iconVersion": "small"
1377
1384
  }
1378
1385
  ]
1379
1386
  }
@@ -88,11 +88,11 @@ function renderBlock(
88
88
  i: number,
89
89
  ) {
90
90
  const { type } = block;
91
- if (!(type in blocksRegistry)) {
91
+ if (!(type && type in blocksRegistry)) {
92
92
  console.warn(`No block with "${type}" is registered`);
93
93
  }
94
94
 
95
- const BlockComponent = blocksRegistry[type] || Placeholder;
95
+ const BlockComponent = blocksRegistry[type || 'Placeholder'] || Placeholder;
96
96
  return blockDecorator(
97
97
  {
98
98
  blockClassName: style2className(block.style),