@redneckz/wildless-cms-uni-blocks 0.3.4 → 0.3.7

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 (394) 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/dist/components/Accordion/utils/isActiveHandler.js +1 -1
  5. package/dist/components/Accordion/utils/isActiveHandler.js.map +1 -1
  6. package/dist/components/BaseTile/BaseTile.js +1 -1
  7. package/dist/components/BaseTile/BaseTile.js.map +1 -1
  8. package/dist/components/Blocks.d.ts +0 -1
  9. package/dist/components/Blocks.js +0 -2
  10. package/dist/components/Blocks.js.map +1 -1
  11. package/dist/components/Blocks.mobile.d.ts +4 -2
  12. package/dist/components/Blocks.mobile.js +7 -3
  13. package/dist/components/Blocks.mobile.js.map +1 -1
  14. package/dist/components/ContentPage/ContentPage.js +2 -2
  15. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  16. package/dist/components/ContentPage/ContentPageHead.js +4 -2
  17. package/dist/components/ContentPage/ContentPageHead.js.map +1 -1
  18. package/dist/components/ContentPage/isBlockInRegistry.d.ts +1 -2
  19. package/dist/components/ContentPage/isBlockInRegistry.js +2 -2
  20. package/dist/components/ContentPage/isBlockInRegistry.js.map +1 -1
  21. package/dist/components/ContentPage/normalizeBlock.d.ts +1 -1
  22. package/dist/components/ContentPage/normalizePage.js +1 -1
  23. package/dist/components/ContentPage/normalizePage.js.map +1 -1
  24. package/dist/components/ContentPage/normalizePage.mobile.js +1 -1
  25. package/dist/components/ContentPage/normalizePage.mobile.js.map +1 -1
  26. package/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  27. package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  28. package/dist/components/Gallery/GalleryCardInner.js +15 -5
  29. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  30. package/dist/components/Header/Header.mobile.js +1 -1
  31. package/dist/components/Header/Header.mobile.js.map +1 -1
  32. package/dist/components/Header/HeaderBurger.js +1 -1
  33. package/dist/components/Header/HeaderBurger.js.map +1 -1
  34. package/dist/components/Header/HeaderTop.js +1 -1
  35. package/dist/components/Header/HeaderTop.js.map +1 -1
  36. package/dist/components/Headline/HeadlineContent.d.ts +1 -1
  37. package/dist/components/LinkDocs/LinkDocsListItem.js +1 -1
  38. package/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
  39. package/dist/components/LinkDocs/LinkDocsListItem.mobile.js +1 -1
  40. package/dist/components/LinkDocs/LinkDocsListItem.mobile.js.map +1 -1
  41. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  42. package/dist/components/Placeholder/Placeholder.js +8 -3
  43. package/dist/components/Placeholder/Placeholder.js.map +1 -1
  44. package/dist/components/Placeholder/PlaceholderContent.d.ts +2 -1
  45. package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  46. package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  47. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  48. package/dist/components/ProductBlock/ProductBlockInner.mobile.js +4 -1
  49. package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  50. package/dist/components/ProductBlock/renderBenefit.mobile.js +1 -1
  51. package/dist/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  52. package/dist/components/ProductGallery/ProductGallery.mobile.js +3 -14
  53. package/dist/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
  54. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js +1 -1
  55. package/dist/components/ProductTile/ProductTileContent.d.ts +1 -1
  56. package/dist/components/PromoTile/PromoTileContent.d.ts +1 -1
  57. package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -2
  58. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  59. package/dist/components/Tile/Tile.js +5 -1
  60. package/dist/components/Tile/Tile.js.map +1 -1
  61. package/dist/components/Tile/TileContent.d.ts +1 -1
  62. package/dist/types.d.ts +8 -2
  63. package/dist/ui-kit/BlockItem/BlockItem.js +3 -3
  64. package/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
  65. package/dist/ui-kit/Description/Description.d.ts +4 -1
  66. package/dist/ui-kit/Description/Description.js +1 -1
  67. package/dist/ui-kit/Description/Description.js.map +1 -1
  68. package/{lib/ui-kit/Description/DescriptionProps.d.ts → dist/ui-kit/Description/DescriptionContent.d.ts} +0 -3
  69. package/dist/ui-kit/Description/{DescriptionProps.js → DescriptionContent.js} +1 -1
  70. package/dist/ui-kit/Description/DescriptionContent.js.map +1 -0
  71. package/dist/ui-kit/Heading/Heading.js +1 -1
  72. package/dist/ui-kit/Heading/Heading.js.map +1 -1
  73. package/dist/ui-kit/Heading/Heading.mobile.js +1 -1
  74. package/dist/ui-kit/Heading/Heading.mobile.js.map +1 -1
  75. package/dist/ui-kit/List/ListItem.js +2 -2
  76. package/dist/ui-kit/List/ListItem.js.map +1 -1
  77. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  78. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  79. package/dist/ui-kit/SwipeListControl/SwipeListControlItem.js +1 -1
  80. package/dist/ui-kit/SwipeListControl/SwipeListControlItem.js.map +1 -1
  81. package/lib/common.css +1 -1
  82. package/lib/components/Accordion/utils/isActiveHandler.js +1 -1
  83. package/lib/components/Accordion/utils/isActiveHandler.js.map +1 -1
  84. package/lib/components/BaseTile/BaseTile.js +1 -1
  85. package/lib/components/BaseTile/BaseTile.js.map +1 -1
  86. package/lib/components/Blocks.d.ts +0 -1
  87. package/lib/components/Blocks.js +0 -2
  88. package/lib/components/Blocks.js.map +1 -1
  89. package/lib/components/Blocks.mobile.d.ts +4 -2
  90. package/lib/components/Blocks.mobile.js +7 -3
  91. package/lib/components/Blocks.mobile.js.map +1 -1
  92. package/lib/components/ContentPage/ContentPage.js +2 -2
  93. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  94. package/lib/components/ContentPage/ContentPageHead.js +4 -2
  95. package/lib/components/ContentPage/ContentPageHead.js.map +1 -1
  96. package/lib/components/ContentPage/isBlockInRegistry.d.ts +1 -2
  97. package/lib/components/ContentPage/isBlockInRegistry.js +2 -2
  98. package/lib/components/ContentPage/isBlockInRegistry.js.map +1 -1
  99. package/lib/components/ContentPage/normalizeBlock.d.ts +1 -1
  100. package/lib/components/ContentPage/normalizePage.js +1 -1
  101. package/lib/components/ContentPage/normalizePage.js.map +1 -1
  102. package/lib/components/ContentPage/normalizePage.mobile.js +1 -1
  103. package/lib/components/ContentPage/normalizePage.mobile.js.map +1 -1
  104. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  105. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  106. package/lib/components/Gallery/GalleryCardInner.js +15 -5
  107. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  108. package/lib/components/Header/Header.mobile.js +1 -1
  109. package/lib/components/Header/Header.mobile.js.map +1 -1
  110. package/lib/components/Header/HeaderBurger.js +1 -1
  111. package/lib/components/Header/HeaderBurger.js.map +1 -1
  112. package/lib/components/Header/HeaderTop.js +1 -1
  113. package/lib/components/Header/HeaderTop.js.map +1 -1
  114. package/lib/components/Headline/HeadlineContent.d.ts +1 -1
  115. package/lib/components/LinkDocs/LinkDocsListItem.js +1 -1
  116. package/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
  117. package/lib/components/LinkDocs/LinkDocsListItem.mobile.js +1 -1
  118. package/lib/components/LinkDocs/LinkDocsListItem.mobile.js.map +1 -1
  119. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  120. package/lib/components/Placeholder/Placeholder.fixture.mobile.d.ts +2 -0
  121. package/lib/components/Placeholder/Placeholder.js +9 -4
  122. package/lib/components/Placeholder/Placeholder.js.map +1 -1
  123. package/lib/components/Placeholder/PlaceholderContent.d.ts +2 -1
  124. package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  125. package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  126. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  127. package/lib/components/ProductBlock/ProductBlockInner.mobile.js +4 -1
  128. package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  129. package/lib/components/ProductBlock/renderBenefit.mobile.js +1 -1
  130. package/lib/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  131. package/lib/components/ProductGallery/ProductGallery.fixture.mobile.d.ts +1 -0
  132. package/lib/components/ProductGallery/ProductGallery.mobile.js +4 -15
  133. package/lib/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
  134. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js +1 -1
  135. package/lib/components/ProductTile/ProductTileContent.d.ts +1 -1
  136. package/lib/components/PromoTile/PromoTileContent.d.ts +1 -1
  137. package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -2
  138. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  139. package/lib/components/Tile/Tile.js +5 -1
  140. package/lib/components/Tile/Tile.js.map +1 -1
  141. package/lib/components/Tile/TileContent.d.ts +1 -1
  142. package/lib/types.d.ts +8 -2
  143. package/lib/ui-kit/BlockItem/BlockItem.js +3 -3
  144. package/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
  145. package/lib/ui-kit/Description/Description.d.ts +4 -1
  146. package/lib/ui-kit/Description/Description.js +1 -1
  147. package/lib/ui-kit/Description/Description.js.map +1 -1
  148. package/{mobile/dist/ui-kit/Description/DescriptionProps.d.ts → lib/ui-kit/Description/DescriptionContent.d.ts} +0 -3
  149. package/lib/ui-kit/Description/DescriptionContent.js +2 -0
  150. package/lib/ui-kit/Description/DescriptionContent.js.map +1 -0
  151. package/lib/ui-kit/Heading/Heading.js +1 -1
  152. package/lib/ui-kit/Heading/Heading.js.map +1 -1
  153. package/lib/ui-kit/Heading/Heading.mobile.js +1 -1
  154. package/lib/ui-kit/Heading/Heading.mobile.js.map +1 -1
  155. package/lib/ui-kit/List/ListItem.js +2 -2
  156. package/lib/ui-kit/List/ListItem.js.map +1 -1
  157. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  158. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  159. package/lib/ui-kit/SwipeListControl/SwipeListControlItem.js +1 -1
  160. package/lib/ui-kit/SwipeListControl/SwipeListControlItem.js.map +1 -1
  161. package/mobile/bundle/bundle.umd.js +262 -253
  162. package/mobile/bundle/bundle.umd.min.js +1 -1
  163. package/mobile/dist/components/Accordion/utils/isActiveHandler.js +1 -1
  164. package/mobile/dist/components/Accordion/utils/isActiveHandler.js.map +1 -1
  165. package/mobile/dist/components/BaseTile/BaseTile.js +1 -1
  166. package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
  167. package/mobile/dist/components/Blocks.d.ts +4 -2
  168. package/mobile/dist/components/Blocks.js +7 -3
  169. package/mobile/dist/components/Blocks.js.map +1 -1
  170. package/mobile/dist/components/ContentPage/ContentPage.js +2 -2
  171. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  172. package/mobile/dist/components/ContentPage/ContentPageHead.js +4 -2
  173. package/mobile/dist/components/ContentPage/ContentPageHead.js.map +1 -1
  174. package/mobile/dist/components/ContentPage/isBlockInRegistry.d.ts +1 -2
  175. package/mobile/dist/components/ContentPage/isBlockInRegistry.js +2 -2
  176. package/mobile/dist/components/ContentPage/isBlockInRegistry.js.map +1 -1
  177. package/mobile/dist/components/ContentPage/normalizePage.js +1 -1
  178. package/mobile/dist/components/ContentPage/normalizePage.js.map +1 -1
  179. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  180. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  181. package/mobile/dist/components/Gallery/GalleryCardInner.js +15 -5
  182. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  183. package/mobile/dist/components/Header/Header.js +1 -1
  184. package/mobile/dist/components/Header/Header.js.map +1 -1
  185. package/mobile/dist/components/Header/HeaderBurger.js +1 -1
  186. package/mobile/dist/components/Header/HeaderBurger.js.map +1 -1
  187. package/mobile/dist/components/Header/HeaderTop.js +1 -1
  188. package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
  189. package/mobile/dist/components/Headline/HeadlineContent.d.ts +1 -1
  190. package/mobile/dist/components/LinkDocs/LinkDocsListItem.js +1 -1
  191. package/mobile/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
  192. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  193. package/mobile/dist/components/Placeholder/Placeholder.d.ts +1 -1
  194. package/mobile/dist/components/Placeholder/Placeholder.js +8 -3
  195. package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
  196. package/mobile/dist/components/Placeholder/PlaceholderContent.d.ts +2 -1
  197. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  198. package/mobile/dist/components/ProductBlock/ProductBlockInner.js +4 -1
  199. package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  200. package/mobile/dist/components/ProductBlock/renderBenefit.js +1 -1
  201. package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  202. package/mobile/dist/components/ProductGallery/ProductGallery.js +3 -14
  203. package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  204. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
  205. package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +1 -1
  206. package/mobile/dist/components/PromoTile/PromoTileContent.d.ts +1 -1
  207. package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -2
  208. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  209. package/mobile/dist/components/Tile/Tile.js +5 -1
  210. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  211. package/mobile/dist/components/Tile/TileContent.d.ts +1 -1
  212. package/mobile/dist/types.d.ts +8 -2
  213. package/mobile/dist/ui-kit/BlockItem/BlockItem.js +3 -3
  214. package/mobile/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
  215. package/mobile/dist/ui-kit/Description/Description.d.ts +4 -1
  216. package/mobile/dist/ui-kit/Description/Description.js +1 -1
  217. package/mobile/dist/ui-kit/Description/Description.js.map +1 -1
  218. package/mobile/{lib/ui-kit/Description/DescriptionProps.d.ts → dist/ui-kit/Description/DescriptionContent.d.ts} +0 -3
  219. package/mobile/dist/ui-kit/Description/{DescriptionProps.js → DescriptionContent.js} +1 -1
  220. package/mobile/dist/ui-kit/Description/DescriptionContent.js.map +1 -0
  221. package/mobile/dist/ui-kit/Heading/Heading.js +1 -1
  222. package/mobile/dist/ui-kit/Heading/Heading.js.map +1 -1
  223. package/mobile/dist/ui-kit/List/ListItem.js +2 -2
  224. package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
  225. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  226. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  227. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.js +1 -1
  228. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.js.map +1 -1
  229. package/mobile/lib/components/Accordion/utils/isActiveHandler.js +1 -1
  230. package/mobile/lib/components/Accordion/utils/isActiveHandler.js.map +1 -1
  231. package/mobile/lib/components/BaseTile/BaseTile.js +1 -1
  232. package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
  233. package/mobile/lib/components/Blocks.d.ts +4 -2
  234. package/mobile/lib/components/Blocks.js +7 -3
  235. package/mobile/lib/components/Blocks.js.map +1 -1
  236. package/mobile/lib/components/ContentPage/ContentPage.js +2 -2
  237. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  238. package/mobile/lib/components/ContentPage/ContentPageHead.js +4 -2
  239. package/mobile/lib/components/ContentPage/ContentPageHead.js.map +1 -1
  240. package/mobile/lib/components/ContentPage/isBlockInRegistry.d.ts +1 -2
  241. package/mobile/lib/components/ContentPage/isBlockInRegistry.js +2 -2
  242. package/mobile/lib/components/ContentPage/isBlockInRegistry.js.map +1 -1
  243. package/mobile/lib/components/ContentPage/normalizePage.js +1 -1
  244. package/mobile/lib/components/ContentPage/normalizePage.js.map +1 -1
  245. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  246. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  247. package/mobile/lib/components/Gallery/GalleryCardInner.js +15 -5
  248. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  249. package/mobile/lib/components/Header/Header.js +1 -1
  250. package/mobile/lib/components/Header/Header.js.map +1 -1
  251. package/mobile/lib/components/Header/HeaderBurger.js +1 -1
  252. package/mobile/lib/components/Header/HeaderBurger.js.map +1 -1
  253. package/mobile/lib/components/Header/HeaderTop.js +1 -1
  254. package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
  255. package/mobile/lib/components/Headline/HeadlineContent.d.ts +1 -1
  256. package/mobile/lib/components/LinkDocs/LinkDocsListItem.js +1 -1
  257. package/mobile/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
  258. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  259. package/mobile/lib/components/Placeholder/Placeholder.d.ts +1 -1
  260. package/mobile/lib/components/Placeholder/Placeholder.js +9 -4
  261. package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
  262. package/mobile/lib/components/Placeholder/PlaceholderContent.d.ts +2 -1
  263. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  264. package/mobile/lib/components/ProductBlock/ProductBlockInner.js +4 -1
  265. package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  266. package/mobile/lib/components/ProductBlock/renderBenefit.js +1 -1
  267. package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  268. package/mobile/lib/components/ProductGallery/ProductGallery.js +4 -15
  269. package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  270. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
  271. package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +1 -1
  272. package/mobile/lib/components/PromoTile/PromoTileContent.d.ts +1 -1
  273. package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -2
  274. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  275. package/mobile/lib/components/Tile/Tile.js +5 -1
  276. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  277. package/mobile/lib/components/Tile/TileContent.d.ts +1 -1
  278. package/mobile/lib/types.d.ts +8 -2
  279. package/mobile/lib/ui-kit/BlockItem/BlockItem.js +3 -3
  280. package/mobile/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
  281. package/mobile/lib/ui-kit/Description/Description.d.ts +4 -1
  282. package/mobile/lib/ui-kit/Description/Description.js +1 -1
  283. package/mobile/lib/ui-kit/Description/Description.js.map +1 -1
  284. package/{dist/ui-kit/Description/DescriptionProps.d.ts → mobile/lib/ui-kit/Description/DescriptionContent.d.ts} +0 -3
  285. package/mobile/lib/ui-kit/Description/DescriptionContent.js +2 -0
  286. package/mobile/lib/ui-kit/Description/DescriptionContent.js.map +1 -0
  287. package/mobile/lib/ui-kit/Heading/Heading.js +1 -1
  288. package/mobile/lib/ui-kit/Heading/Heading.js.map +1 -1
  289. package/mobile/lib/ui-kit/List/ListItem.js +2 -2
  290. package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
  291. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  292. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  293. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.js +1 -1
  294. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.js.map +1 -1
  295. package/mobile/src/components/Accordion/utils/isActiveHandler.ts +1 -2
  296. package/mobile/src/components/BaseTile/BaseTile.tsx +2 -2
  297. package/mobile/src/components/Blocks.ts +7 -3
  298. package/mobile/src/components/ContentPage/ContentPage.page.json +54 -47
  299. package/mobile/src/components/ContentPage/ContentPage.tsx +2 -2
  300. package/mobile/src/components/ContentPage/ContentPageHead.tsx +14 -1
  301. package/mobile/src/components/ContentPage/isBlockInRegistry.ts +2 -4
  302. package/mobile/src/components/ContentPage/normalizePage.ts +4 -1
  303. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
  304. package/mobile/src/components/Gallery/GalleryCardInner.tsx +23 -15
  305. package/mobile/src/components/Header/Header.tsx +1 -1
  306. package/mobile/src/components/Header/HeaderBurger.tsx +2 -2
  307. package/mobile/src/components/Header/HeaderTop.tsx +6 -2
  308. package/mobile/src/components/Headline/HeadlineContent.ts +1 -1
  309. package/mobile/src/components/LinkDocs/LinkDocsListItem.tsx +1 -1
  310. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +1 -1
  311. package/mobile/src/components/Placeholder/Placeholder.tsx +36 -14
  312. package/mobile/src/components/Placeholder/PlaceholderContent.ts +2 -1
  313. package/mobile/src/components/ProductBlock/ProductBlock.example.json +2 -1
  314. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +1 -1
  315. package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +17 -11
  316. package/mobile/src/components/ProductBlock/renderBenefit.tsx +2 -2
  317. package/mobile/src/components/ProductGallery/ProductGallery.tsx +12 -49
  318. package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +1 -1
  319. package/mobile/src/components/ProductTile/ProductTileContent.ts +1 -1
  320. package/mobile/src/components/PromoTile/PromoTileContent.ts +1 -1
  321. package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -2
  322. package/mobile/src/components/Tile/Tile.tsx +7 -4
  323. package/mobile/src/components/Tile/TileContent.ts +1 -1
  324. package/mobile/src/types.ts +9 -2
  325. package/mobile/src/ui-kit/BlockItem/BlockItem.tsx +4 -4
  326. package/mobile/src/ui-kit/Description/Description.tsx +6 -2
  327. package/mobile/src/ui-kit/Description/{DescriptionProps.ts → DescriptionContent.ts} +0 -4
  328. package/mobile/src/ui-kit/Heading/Heading.tsx +1 -1
  329. package/mobile/src/ui-kit/List/ListItem.tsx +3 -3
  330. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
  331. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlItem.tsx +5 -1
  332. package/package.json +1 -1
  333. package/src/components/Accordion/utils/isActiveHandler.ts +1 -2
  334. package/src/components/BaseTile/BaseTile.tsx +2 -2
  335. package/src/components/Blocks.mobile.ts +7 -3
  336. package/src/components/Blocks.ts +0 -2
  337. package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +0 -1
  338. package/src/components/ContentPage/ContentPage.page.json +54 -47
  339. package/src/components/ContentPage/ContentPage.tsx +2 -2
  340. package/src/components/ContentPage/ContentPageHead.tsx +14 -1
  341. package/src/components/ContentPage/isBlockInRegistry.ts +2 -4
  342. package/src/components/ContentPage/normalizePage.mobile.ts +4 -1
  343. package/src/components/ContentPage/normalizePage.ts +1 -1
  344. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
  345. package/src/components/Gallery/Gallery.fixture.mobile.tsx +1 -1
  346. package/src/components/Gallery/GalleryCardInner.tsx +23 -15
  347. package/src/components/Header/Header.mobile.tsx +1 -1
  348. package/src/components/Header/HeaderBurger.tsx +2 -2
  349. package/src/components/Header/HeaderTop.tsx +6 -2
  350. package/src/components/Headline/HeadlineContent.ts +1 -1
  351. package/src/components/LinkDocs/LinkDocsListItem.mobile.tsx +1 -1
  352. package/src/components/LinkDocs/LinkDocsListItem.tsx +1 -1
  353. package/src/components/MobileAppTile/MobileAppTileContent.ts +1 -1
  354. package/src/components/Placeholder/Placeholder.fixture.mobile.tsx +9 -0
  355. package/src/components/Placeholder/Placeholder.tsx +35 -8
  356. package/src/components/Placeholder/PlaceholderContent.ts +2 -1
  357. package/src/components/ProductBlock/ProductBlock.example.json +2 -1
  358. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +8 -2
  359. package/src/components/ProductBlock/ProductBlockContent.ts +1 -1
  360. package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +17 -11
  361. package/src/components/ProductBlock/ProductBlockInner.tsx +2 -2
  362. package/src/components/ProductBlock/renderBenefit.mobile.tsx +2 -2
  363. package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +106 -0
  364. package/src/components/ProductGallery/ProductGallery.fixture.tsx +2 -2
  365. package/src/components/ProductGallery/ProductGallery.mobile.tsx +12 -49
  366. package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +1 -1
  367. package/src/components/ProductTile/ProductTileContent.ts +1 -1
  368. package/src/components/PromoTile/PromoTileContent.ts +1 -1
  369. package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -2
  370. package/src/components/Tile/Tile.tsx +7 -4
  371. package/src/components/Tile/TileContent.ts +1 -1
  372. package/src/types.ts +9 -2
  373. package/src/ui-kit/BlockItem/BlockItem.tsx +4 -4
  374. package/src/ui-kit/Description/Description.tsx +6 -2
  375. package/src/ui-kit/Description/{DescriptionProps.ts → DescriptionContent.ts} +0 -4
  376. package/src/ui-kit/Heading/Heading.fixture.mobile.tsx +0 -1
  377. package/src/ui-kit/Heading/Heading.mobile.tsx +1 -1
  378. package/src/ui-kit/Heading/Heading.tsx +3 -1
  379. package/src/ui-kit/List/ListItem.tsx +3 -3
  380. package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
  381. package/src/ui-kit/SwipeListControl/SwipeListControlItem.tsx +5 -1
  382. package/dist/components/Placeholder/Placeholder.mobile.d.ts +0 -6
  383. package/dist/components/Placeholder/Placeholder.mobile.js +0 -15
  384. package/dist/components/Placeholder/Placeholder.mobile.js.map +0 -1
  385. package/dist/ui-kit/Description/DescriptionProps.js.map +0 -1
  386. package/lib/components/Placeholder/Placeholder.mobile.d.ts +0 -6
  387. package/lib/components/Placeholder/Placeholder.mobile.js +0 -13
  388. package/lib/components/Placeholder/Placeholder.mobile.js.map +0 -1
  389. package/lib/ui-kit/Description/DescriptionProps.js +0 -2
  390. package/lib/ui-kit/Description/DescriptionProps.js.map +0 -1
  391. package/mobile/dist/ui-kit/Description/DescriptionProps.js.map +0 -1
  392. package/mobile/lib/ui-kit/Description/DescriptionProps.js +0 -2
  393. package/mobile/lib/ui-kit/Description/DescriptionProps.js.map +0 -1
  394. package/src/components/Placeholder/Placeholder.mobile.tsx +0 -35
@@ -1,2 +1,5 @@
1
- import { DescriptionProps } from './DescriptionProps';
1
+ import { DescriptionContent } from './DescriptionContent';
2
+ export interface DescriptionProps extends DescriptionContent {
3
+ className?: string;
4
+ }
2
5
  export declare const Description: (props: import("@redneckz/uni-jsx").PropsWithChildren<DescriptionProps, any>, context?: any) => any;
@@ -2,6 +2,6 @@ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  export const Description = JSX((props) => {
4
4
  const { className, description } = props;
5
- return _jsx("div", { className: `font-normal text-base ${className || ''}`, children: description });
5
+ return _jsx("div", { className: `font-normal text-m-md ${className || ''}`, children: description });
6
6
  });
7
7
  //# sourceMappingURL=Description.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Description.js","sourceRoot":"","sources":["../../../src/ui-kit/Description/Description.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,KAAK,EAAE,EAAE;IACzD,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAEzC,OAAO,cAAK,SAAS,EAAE,yBAAyB,SAAS,IAAI,EAAE,EAAE,YAAG,WAAW,GAAO,CAAC;AACzF,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"Description.js","sourceRoot":"","sources":["../../../src/ui-kit/Description/Description.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAOxC,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,KAAK,EAAE,EAAE;IACzD,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAEzC,OAAO,cAAK,SAAS,EAAE,yBAAyB,SAAS,IAAI,EAAE,EAAE,YAAG,WAAW,GAAO,CAAC;AACzF,CAAC,CAAC,CAAC"}
@@ -2,6 +2,3 @@ export interface DescriptionContent {
2
2
  /** @title Описание */
3
3
  description?: string;
4
4
  }
5
- export interface DescriptionProps extends DescriptionContent {
6
- className?: string;
7
- }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DescriptionContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DescriptionContent.js","sourceRoot":"","sources":["../../../src/ui-kit/Description/DescriptionContent.ts"],"names":[],"mappings":""}
@@ -14,6 +14,6 @@ export const Heading = JSX((props) => {
14
14
  return;
15
15
  }
16
16
  const Tag = headingType;
17
- return (_jsx(Tag, { className: `font-sans font-medium ${HeadingClass[headingType]} ${className || ''}`, children: title }));
17
+ return (_jsx(Tag, { className: `font-sans font-medium m-0 ${HeadingClass[headingType]} ${className || ''}`, children: title }));
18
18
  });
19
19
  //# sourceMappingURL=Heading.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Heading.js","sourceRoot":"","sources":["../../../src/ui-kit/Heading/Heading.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAOxC,MAAM,YAAY,GAAgC;IAChD,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;CACtB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAe,CAAC,KAAK,EAAE,EAAE;IACjD,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAChD,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO;KACR;IACD,MAAM,GAAG,GAAG,WAAW,CAAC;IAExB,OAAO,CACL,KAAC,GAAG,IAAC,SAAS,EAAE,yBAAyB,YAAY,CAAC,WAAW,CAAC,IAAI,SAAS,IAAI,EAAE,EAAE,YACpF,KAAK,GACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"Heading.js","sourceRoot":"","sources":["../../../src/ui-kit/Heading/Heading.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAOxC,MAAM,YAAY,GAAgC;IAChD,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;CACtB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAe,CAAC,KAAK,EAAE,EAAE;IACjD,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAChD,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO;KACR;IACD,MAAM,GAAG,GAAG,WAAW,CAAC;IAExB,OAAO,CACL,KAAC,GAAG,IAAC,SAAS,EAAE,6BAA6B,YAAY,CAAC,WAAW,CAAC,IAAI,SAAS,IAAI,EAAE,EAAE,YACxF,KAAK,GACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
- const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3';
3
+ const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3 mt-2';
4
4
  const TEXT_STYLE_MAP = {
5
5
  primary: 'text-primary-text',
6
6
  secondary: 'text-white',
@@ -12,7 +12,7 @@ const LIST_STYLE_MAP = {
12
12
  gray: 'bg-secondary-text',
13
13
  };
14
14
  export const ListItem = JSX(({ className = '', isDotted = true, children, version = 'primary' }) => {
15
- return (_jsxs("div", { className: `font-sans flex items-center ${className}`, role: "listitem", children: [isDotted && _jsx("div", { className: getListStyle(version) }), _jsx("span", { className: TEXT_STYLE_MAP[version], children: children })] }));
15
+ return (_jsxs("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted && _jsx("div", { className: getListStyle(version) }), _jsx("span", { className: `text-m-md ${TEXT_STYLE_MAP[version]}`, children: children })] }));
16
16
  });
17
17
  const getListStyle = (version) => {
18
18
  const size = version === 'gray' ? 'w-[6px] h-[6px] min-w-[6px] min-h-[6px]' : 'w-2 h-2 min-w-2 min-h-2';
@@ -1 +1 @@
1
- {"version":3,"file":"ListItem.js","sourceRoot":"","sources":["../../../src/ui-kit/List/ListItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAaxC,MAAM,kBAAkB,GAAG,gCAAgC,CAAC;AAE5D,MAAM,cAAc,GAAoC;IACtD,OAAO,EAAE,mBAAmB;IAC5B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,qBAAqB;CAC5B,CAAC;AAEF,MAAM,cAAc,GAAoC;IACtD,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,mBAAmB;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CACzB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;IACrE,OAAO,CACL,eAAK,SAAS,EAAE,+BAA+B,SAAS,EAAE,EAAE,IAAI,EAAC,UAAU,aACxE,QAAQ,IAAI,cAAK,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,GAAI,EACtD,eAAM,SAAS,EAAE,cAAc,CAAC,OAAO,CAAC,YAAG,QAAQ,GAAQ,IACvD,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,OAAwB,EAAE,EAAE;IAChD,MAAM,IAAI,GACR,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,yCAAyC,CAAC,CAAC,CAAC,yBAAyB,CAAC;IAC7F,OAAO,GAAG,kBAAkB,IAAI,cAAc,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;AACpE,CAAC,CAAC"}
1
+ {"version":3,"file":"ListItem.js","sourceRoot":"","sources":["../../../src/ui-kit/List/ListItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAaxC,MAAM,kBAAkB,GAAG,qCAAqC,CAAC;AAEjE,MAAM,cAAc,GAAoC;IACtD,OAAO,EAAE,mBAAmB;IAC5B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,qBAAqB;CAC5B,CAAC;AAEF,MAAM,cAAc,GAAoC;IACtD,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,mBAAmB;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CACzB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;IACrE,OAAO,CACL,eAAK,SAAS,EAAE,8BAA8B,SAAS,EAAE,EAAE,IAAI,EAAC,UAAU,aACvE,QAAQ,IAAI,cAAK,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,GAAI,EACtD,eAAM,SAAS,EAAE,aAAa,cAAc,CAAC,OAAO,CAAC,EAAE,YAAG,QAAQ,GAAQ,IACtE,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,OAAwB,EAAE,EAAE;IAChD,MAAM,IAAI,GACR,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,yCAAyC,CAAC,CAAC,CAAC,yBAAyB,CAAC;IAC7F,OAAO,GAAG,kBAAkB,IAAI,cAAc,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;AACpE,CAAC,CAAC"}
@@ -6,7 +6,7 @@ const ACTIVE_DOT_WIDTH_CHANGE = 16;
6
6
  const BASE_DOT_OPACITY = 0.3;
7
7
  const ACTIVE_DOT_OPACITY_CHANGE = 0.7;
8
8
  export const SwipeListControlDots = JSX(({ children, activeIndex, indexFraction, showDots }) => {
9
- return showDots && children?.length ? (_jsx("div", { className: "flex gap-2 mx-auto mt-[22px] w-fit", children: children?.map((_, idx) => (_jsx("div", { className: `${DOT_STYLES}`, style: getDotStyles(idx, activeIndex, indexFraction), "aria-hidden": true }, String(idx)))) })) : null;
9
+ return showDots && children?.length ? (_jsx("div", { className: "flex gap-2 mx-auto mt-5 w-fit", children: children?.map((_, idx) => (_jsx("div", { className: `${DOT_STYLES}`, style: getDotStyles(idx, activeIndex, indexFraction), "aria-hidden": true }, String(idx)))) })) : null;
10
10
  });
11
11
  const getDotStyles = (currentIdx, activeIndex, indexFraction) => {
12
12
  if (currentIdx < activeIndex || currentIdx > activeIndex + 1)
@@ -1 +1 @@
1
- {"version":3,"file":"SwipeListControlDots.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControlDots.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,MAAM,UAAU,GAAG,yEAAyE,CAAC;AAC7F,MAAM,cAAc,GAAG,CAAC,CAAC;AACzB,MAAM,uBAAuB,GAAG,EAAE,CAAC;AACnC,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B,MAAM,yBAAyB,GAAG,GAAG,CAAC;AAQtC,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE,EAAE;IACrD,OAAO,QAAQ,IAAI,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,CACpC,cAAK,SAAS,EAAC,oCAAoC,YAChD,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CACzB,cAEE,SAAS,EAAE,GAAG,UAAU,EAAE,EAC1B,KAAK,EAAE,YAAY,CAAC,GAAG,EAAE,WAAW,EAAE,aAAa,CAAC,yBAF/C,MAAM,CAAC,GAAG,CAAC,CAIhB,CACH,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CACnB,UAAkB,EAClB,WAAmB,EACnB,aAAqB,EACU,EAAE;IACjC,IAAI,UAAU,GAAG,WAAW,IAAI,UAAU,GAAG,WAAW,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC;IAE1E,MAAM,YAAY,GAAG,CAAC,GAAG,aAAa,CAAC;IACvC,MAAM,aAAa,GAAG,aAAa,CAAC;IAEpC,OAAO,UAAU,KAAK,WAAW;QAC/B,CAAC,CAAC;YACE,OAAO,EAAE,GAAG,gBAAgB,GAAG,yBAAyB,GAAG,YAAY,EAAE;YACzE,KAAK,EAAE,GAAG,cAAc,GAAG,uBAAuB,GAAG,YAAY,IAAI;SACtE;QACH,CAAC,CAAC;YACE,OAAO,EAAE,GAAG,gBAAgB,GAAG,yBAAyB,GAAG,aAAa,EAAE;YAC1E,KAAK,EAAE,GAAG,cAAc,GAAG,uBAAuB,GAAG,aAAa,IAAI;SACvE,CAAC;AACR,CAAC,CAAC"}
1
+ {"version":3,"file":"SwipeListControlDots.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControlDots.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,MAAM,UAAU,GAAG,yEAAyE,CAAC;AAC7F,MAAM,cAAc,GAAG,CAAC,CAAC;AACzB,MAAM,uBAAuB,GAAG,EAAE,CAAC;AACnC,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B,MAAM,yBAAyB,GAAG,GAAG,CAAC;AAQtC,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE,EAAE;IACrD,OAAO,QAAQ,IAAI,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,CACpC,cAAK,SAAS,EAAC,+BAA+B,YAC3C,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CACzB,cAEE,SAAS,EAAE,GAAG,UAAU,EAAE,EAC1B,KAAK,EAAE,YAAY,CAAC,GAAG,EAAE,WAAW,EAAE,aAAa,CAAC,yBAF/C,MAAM,CAAC,GAAG,CAAC,CAIhB,CACH,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CACnB,UAAkB,EAClB,WAAmB,EACnB,aAAqB,EACU,EAAE;IACjC,IAAI,UAAU,GAAG,WAAW,IAAI,UAAU,GAAG,WAAW,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC;IAE1E,MAAM,YAAY,GAAG,CAAC,GAAG,aAAa,CAAC;IACvC,MAAM,aAAa,GAAG,aAAa,CAAC;IAEpC,OAAO,UAAU,KAAK,WAAW;QAC/B,CAAC,CAAC;YACE,OAAO,EAAE,GAAG,gBAAgB,GAAG,yBAAyB,GAAG,YAAY,EAAE;YACzE,KAAK,EAAE,GAAG,cAAc,GAAG,uBAAuB,GAAG,YAAY,IAAI;SACtE;QACH,CAAC,CAAC;YACE,OAAO,EAAE,GAAG,gBAAgB,GAAG,yBAAyB,GAAG,aAAa,EAAE;YAC1E,KAAK,EAAE,GAAG,cAAc,GAAG,uBAAuB,GAAG,aAAa,IAAI;SACvE,CAAC;AACR,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  export const SwipeListControlItem = JSX(({ className = '', children, ...rest }) => {
4
- return (_jsx("div", { className: `snap-center snap-always min-w-full ${className}`, role: "listitem", ...rest, children: children }));
4
+ return (_jsx("div", { className: `snap-center snap-always min-w-full box-border ${className}`, role: "listitem", ...rest, children: children }));
5
5
  });
6
6
  //# sourceMappingURL=SwipeListControlItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwipeListControlItem.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControlItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAWxC,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACxC,OAAO,CACL,cAAK,SAAS,EAAE,sCAAsC,SAAS,EAAE,EAAE,IAAI,EAAC,UAAU,KAAK,IAAI,YACxF,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"SwipeListControlItem.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControlItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAWxC,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACxC,OAAO,CACL,cACE,SAAS,EAAE,iDAAiD,SAAS,EAAE,EACvE,IAAI,EAAC,UAAU,KACX,IAAI,YAEP,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -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
  };
@@ -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),
@@ -7,7 +7,13 @@ export interface ContentPageHeadProps {
7
7
  }
8
8
 
9
9
  export const ContentPageHead = JSX<ContentPageHeadProps>(({ HeadComponent, data, children }) => {
10
- const { title, description, keywords, robots, og } = data;
10
+ const {
11
+ title,
12
+ main: { description, keywords, canonical, robots },
13
+ og,
14
+ twitter,
15
+ jsonLd,
16
+ } = data;
11
17
  return (
12
18
  <HeadComponent>
13
19
  <title>{title}</title>
@@ -20,6 +26,13 @@ export const ContentPageHead = JSX<ContentPageHeadProps>(({ HeadComponent, data,
20
26
  <meta key={key} name={`og:${key}`} content={value} />
21
27
  ))
22
28
  : null}
29
+ {twitter
30
+ ? Object.entries(twitter).map(([key, value]) => (
31
+ <meta key={key} name={`twitter:${key}`} content={value} />
32
+ ))
33
+ : null}
34
+ {canonical && <link rel="canonical" href={canonical} />}
35
+ {jsonLd && <script type="application/ld+json">{jsonLd}</script>}
23
36
  {children}
24
37
  </HeadComponent>
25
38
  );
@@ -1,5 +1,3 @@
1
- import { BlockDef } from '../../types';
2
-
3
- export function isBlockInRegistry<T>(block: BlockDef, registry: Record<string, T>) {
4
- return block.type in registry;
1
+ export function isBlockInRegistry<T>(blockType: string | undefined, registry: Record<string, T>) {
2
+ return (blockType || '') in registry;
5
3
  }
@@ -32,6 +32,9 @@ export function normalizePage(
32
32
 
33
33
  function getMobileBlocks(blocks?: BlockDef[]) {
34
34
  return blocks
35
- ?.filter((block) => isBlockInRegistry(block, Blocks) && !block.mobile?.hidden)
35
+ ?.filter(
36
+ (block) =>
37
+ isBlockInRegistry(block?.type || block?.mobile?.type, Blocks) && !block.mobile?.hidden,
38
+ )
36
39
  .map(normalizeBlock);
37
40
  }
@@ -44,7 +44,7 @@ export const ExchangeRateTile = JSX<ExchangeRateTileProps>(
44
44
  <Heading
45
45
  headingType={getTileHeadingType(className)}
46
46
  title={title}
47
- className={`whitespace-pre-wrap max-w-[600px]`}
47
+ className={`whitespace-pre-wrap max-w-[600px] ${title ? 'mb-3' : ''}`}
48
48
  />
49
49
  )
50
50
  }
@@ -3,10 +3,11 @@ import type { BlockVersion } from '../../model/BlockVersion';
3
3
  import { BlockItem } from '../../ui-kit/BlockItem/BlockItem';
4
4
  import { Button } from '../../ui-kit/Button/Button';
5
5
  import { Img } from '../../ui-kit/Img/Img';
6
- import type { GalleryCard, GalleryItem } from './GalleryContent';
6
+ import type { GalleryCard } from './GalleryContent';
7
7
 
8
8
  export const GalleryCardInner = JSX<GalleryCard>(
9
9
  ({ title, description, image, items, button, version }) => {
10
+ const titleStyleClasses = getTitleStyle(version, description, items);
10
11
  return (
11
12
  <div>
12
13
  <div>
@@ -15,15 +16,11 @@ export const GalleryCardInner = JSX<GalleryCard>(
15
16
  <Img className="mb-6" image={image} />
16
17
  </div>
17
18
  ) : null}
18
- {title && renderCardTitle(title, description, items)}
19
- {description ? <div className={`font-normal text-sm mt-2`}>{description}</div> : null}
20
- {items?.length ? (
21
- <section className={`max-w-[308px] mt-2`} role="list">
22
- {items
23
- .filter((item) => item?.text)
24
- .map((item, i) => renderItem(item.text as string, i, version))}
25
- </section>
19
+ {title ? renderCardTitle(title, titleStyleClasses) : null}
20
+ {description ? (
21
+ <div className={`font-normal text-sm ${title ? 'mt-2' : ''}`}>{description}</div>
26
22
  ) : null}
23
+ {items?.length ? renderItems(items, version) : null}
27
24
  </div>
28
25
  {button?.text && <Button className="mt-6" {...button} />}
29
26
  </div>
@@ -31,13 +28,17 @@ export const GalleryCardInner = JSX<GalleryCard>(
31
28
  },
32
29
  );
33
30
 
34
- function renderCardTitle(title: string, description?: string, items?: GalleryItem[]) {
31
+ function renderCardTitle(title: string, className: string) {
32
+ return <div className={`font-medium text-xl m-0 ${className}`}>{title}</div>;
33
+ }
34
+
35
+ function renderItems(items, version) {
35
36
  return (
36
- <div
37
- className={`font-medium text-xl m-0 ${!description && !items?.length ? 'text-center' : ''}`}
38
- >
39
- {title}
40
- </div>
37
+ <section className={`max-w-[308px] mt-2`} role="list">
38
+ {items
39
+ .filter((item) => item?.text)
40
+ .map((item, i) => renderItem(item.text as string, i, version))}
41
+ </section>
41
42
  );
42
43
  }
43
44
 
@@ -48,3 +49,10 @@ function renderItem(item: string, i: number, version?: BlockVersion) {
48
49
  </BlockItem>
49
50
  );
50
51
  }
52
+
53
+ function getTitleStyle(version, description, items) {
54
+ return `font-medium text-xl m-0
55
+ ${version !== 'secondary' ? 'text-primary-text' : ''}
56
+ ${!description && !items?.length ? 'text-center' : ''}
57
+ `;
58
+ }
@@ -32,7 +32,7 @@ export const Header = JSX<HeaderProps>(
32
32
 
33
33
  return (
34
34
  <header className={`${bgColor} ${className}`}>
35
- <div className="container px-4 py-0">
35
+ <div className="container px-4 py-0 box-border">
36
36
  <HeaderTop onClick={toggleBurgerMenu} bgColor={bgColor} />
37
37
  <nav className="flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]">
38
38
  <div className="flex">
@@ -18,8 +18,8 @@ export const HeaderBurger = JSX<HeaderBurgerProps>(
18
18
  const [city, getCity] = context.useGeolocation(defaultLocation);
19
19
 
20
20
  return (
21
- <div className="absolute top-0 left-0 w-full h-full bg-white p-4">
22
- <button className="absolute top-4 right-4" onClick={onClick}>
21
+ <div className="absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20">
22
+ <button className="absolute top-4 right-4 border-none bg-transparent" onClick={onClick}>
23
23
  <Icon name="CloseIcon" width="24" height="24" asSVG />
24
24
  </button>
25
25
  <Button onClick={getCity} className="flex items-center text-sm text-secondary-text mb-4">
@@ -11,7 +11,7 @@ export interface HeaderTopProps {
11
11
  export const HeaderTop = JSX<HeaderTopProps>(({ onClick, bgColor }) => (
12
12
  <div className="flex items-center justify-between border-0 border-b border-main-divider h-[50px]">
13
13
  <div className="flex items-center">
14
- <button className="pr-4" onClick={onClick} aria-label="Открыть меню">
14
+ <button className="pr-4 border-0 bg-transparent" onClick={onClick} aria-label="Открыть меню">
15
15
  <Icon
16
16
  name={bgColor === 'bg-white' ? 'BurgerIcon' : 'BurgerIconWhite'}
17
17
  width="24"
@@ -21,7 +21,11 @@ export const HeaderTop = JSX<HeaderTopProps>(({ onClick, bgColor }) => (
21
21
  </button>
22
22
  <Logo bgColor={bgColor} />
23
23
  </div>
24
- <button className={`${bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'} text-sm`}>
24
+ <button
25
+ className={`${
26
+ bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'
27
+ } text-sm border-0 bg-transparent`}
28
+ >
25
29
  Войти
26
30
  </button>
27
31
  </div>
@@ -1,5 +1,5 @@
1
1
  import type { BgColorVersion } from '../../model/BgColorVersion';
2
- import type { DescriptionContent } from '../../ui-kit/Description/DescriptionProps';
2
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
3
3
  import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
4
4
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
5
5
  import type { AlignType } from '../BaseTile/BaseTileProps';
@@ -4,7 +4,7 @@ import type { LinkDocsListItemProps } from './LinkDocsListItemBase';
4
4
 
5
5
  export const LinkDocsListItem = JSX<LinkDocsListItemProps>(({ className = '', doc, icon }) => (
6
6
  <LinkDocsListItemBase
7
- className={`flex h-full ${className}`}
7
+ className={`flex h-full box-border ${className}`}
8
8
  iconClassName="mr-3 min-w-6 min-h-6"
9
9
  doc={doc}
10
10
  icon={icon}
@@ -1,5 +1,5 @@
1
1
  import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
2
- import type { DescriptionContent } from '../../ui-kit/Description/DescriptionProps';
2
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
3
3
  import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
4
4
 
5
5
  /**
@@ -1,7 +1,12 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import type { PlaceholderContent } from '../../components/Placeholder/PlaceholderContent';
2
3
  import type { UniBlockProps } from '../../types';
3
- import { Tile } from '../Tile/Tile';
4
- import type { PlaceholderContent } from './PlaceholderContent';
4
+ import { Description } from '../../ui-kit/Description/Description';
5
+ import { Heading } from '../../ui-kit/Heading/Heading';
6
+ import { BaseTile } from '../BaseTile/BaseTile';
7
+ import { getTileHeadingType } from '../BaseTile/getTileHeadingType';
8
+ import { getTileMinHeight } from '../BaseTile/getTileMinHeight';
9
+ import { getTileRightPadding } from '../BaseTile/getTileRightPadding';
5
10
 
6
11
  export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
7
12
  className?: string;
@@ -9,18 +14,35 @@ export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
9
14
 
10
15
  const GOLDEN_RATIO = 1.618;
11
16
 
12
- export const Placeholder = JSX<PlaceholderProps>(({ className = '', context, title }) => {
13
- return (
14
- <Tile
15
- className={`pr-0 min-h-0 ${className}`}
16
- context={context}
17
- title={title}
18
- description="Блок в разработке..."
19
- >
20
- <figure className="m-0">{renderShimmer()}</figure>
21
- </Tile>
22
- );
23
- });
17
+ export const Placeholder = JSX<PlaceholderProps>(
18
+ ({ className, context, title, description = 'Блок в разработке...' }) => {
19
+ return (
20
+ <section
21
+ className={`bg-white text-primary-text font-sans p-9 box-border ${className} ${getTileRightPadding(
22
+ className,
23
+ )} ${getTileMinHeight(className)} `}
24
+ >
25
+ <BaseTile
26
+ context={context}
27
+ title={
28
+ title ? (
29
+ <Heading
30
+ headingType={getTileHeadingType(className)}
31
+ title={title}
32
+ className={`whitespace-pre-wrap max-w-[600px]`}
33
+ />
34
+ ) : null
35
+ }
36
+ >
37
+ {description ? (
38
+ <Description className="mt-4 max-w-[600px]" description={description} />
39
+ ) : null}
40
+ <figure className="m-0 min-w-[600px]">{renderShimmer()}</figure>
41
+ </BaseTile>
42
+ </section>
43
+ );
44
+ },
45
+ );
24
46
 
25
47
  const renderShimmer = (size = 3) =>
26
48
  goldenSequence(100, size)
@@ -1,6 +1,7 @@
1
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
1
2
  import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
2
3
 
3
4
  /**
4
5
  * @hidden
5
6
  */
6
- export type PlaceholderContent = HeadingContent;
7
+ export type PlaceholderContent = HeadingContent & DescriptionContent;
@@ -13,5 +13,6 @@
13
13
  "text": "Кнопка",
14
14
  "version": "secondary"
15
15
  }
16
- ]
16
+ ],
17
+ "version": "primary"
17
18
  }