@redneckz/wildless-cms-uni-blocks 0.6.44 → 0.6.46

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 (396) hide show
  1. package/bin/migration-scripts/0.6.43.js +1 -1
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +154 -139
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/Headline/HeadlineContent.d.ts +2 -2
  6. package/bundle/components/Headline/headlineStyles.d.ts +7 -0
  7. package/bundle/components/Headline/headlineVersionStyles.d.ts +9 -0
  8. package/bundle/components/HorizontalLayout/HorizontalLayout.d.ts +5 -0
  9. package/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +15 -0
  10. package/bundle/components/LinkDocs/LinkDocsContent.d.ts +3 -3
  11. package/bundle/model/AlignText.d.ts +2 -1
  12. package/bundle/model/BlockVersion.d.ts +3 -0
  13. package/bundle/ui-kit/Img/ImgProps.d.ts +1 -0
  14. package/bundle/ui-kit/Text/TextProps.d.ts +1 -1
  15. package/dist/components/Blocks.js +5 -3
  16. package/dist/components/Blocks.js.map +1 -1
  17. package/dist/components/Bonus/Bonus.js +1 -1
  18. package/dist/components/Bonus/Bonus.js.map +1 -1
  19. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  20. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  21. package/dist/components/CarouselCard/CarouselCard.js +1 -1
  22. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  23. package/dist/components/CarouselLinks/CarouselLinks.js +1 -1
  24. package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  25. package/dist/components/CarouselProductCard/CarouselProductCard.js +2 -2
  26. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  27. package/dist/components/Catalog/Catalog.js +1 -1
  28. package/dist/components/Catalog/Catalog.js.map +1 -1
  29. package/dist/components/ContactsBlock/ContactsBlock.js +1 -1
  30. package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  31. package/dist/components/Gallery/GalleryCardInner.js +2 -2
  32. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  33. package/dist/components/Gallery/GalleryContainer.js +1 -1
  34. package/dist/components/Gallery/GalleryContainer.js.map +1 -1
  35. package/dist/components/GracePeriod/GracePeriod.js +1 -1
  36. package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
  37. package/dist/components/Headline/Headline.js +7 -6
  38. package/dist/components/Headline/Headline.js.map +1 -1
  39. package/dist/components/Headline/Headline.mobile.js +5 -5
  40. package/dist/components/Headline/Headline.mobile.js.map +1 -1
  41. package/dist/components/Headline/HeadlineContent.d.ts +2 -2
  42. package/dist/components/Headline/headlineStyles.d.ts +7 -0
  43. package/dist/components/Headline/headlineStyles.js +18 -0
  44. package/dist/components/Headline/headlineStyles.js.map +1 -0
  45. package/dist/components/Headline/headlineVersionStyles.d.ts +9 -0
  46. package/dist/components/Headline/headlineVersionStyles.js +46 -0
  47. package/dist/components/Headline/headlineVersionStyles.js.map +1 -0
  48. package/dist/components/HorizontalLayout/HorizontalLayout.d.ts +5 -0
  49. package/dist/components/HorizontalLayout/HorizontalLayout.js +23 -0
  50. package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -0
  51. package/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +15 -0
  52. package/dist/components/HorizontalLayout/HorizontalLayoutContent.js +2 -0
  53. package/dist/components/HorizontalLayout/HorizontalLayoutContent.js.map +1 -0
  54. package/dist/components/LinkDocs/LinkDocs.js +1 -1
  55. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  56. package/dist/components/LinkDocs/LinkDocs.mobile.js +1 -1
  57. package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
  58. package/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -3
  59. package/dist/components/PictureText/PictureText.js +1 -1
  60. package/dist/components/PictureText/PictureText.js.map +1 -1
  61. package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  62. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  63. package/dist/components/ProductTile/ProductTile.js +1 -1
  64. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  65. package/dist/components/PromoTile/PromoTile.js +1 -1
  66. package/dist/components/PromoTile/PromoTile.js.map +1 -1
  67. package/dist/components/VerticalLayout/VerticalLayout.js +3 -16
  68. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  69. package/dist/model/AlignText.d.ts +2 -1
  70. package/dist/model/AlignText.js.map +1 -1
  71. package/dist/model/BlockVersion.d.ts +3 -0
  72. package/dist/model/BlockVersion.js +15 -1
  73. package/dist/model/BlockVersion.js.map +1 -1
  74. package/dist/services/BlockRouter/BlockRouter.js +4 -3
  75. package/dist/services/BlockRouter/BlockRouter.js.map +1 -1
  76. package/dist/services/sitemap/isTopItemActive.js +3 -1
  77. package/dist/services/sitemap/isTopItemActive.js.map +1 -1
  78. package/dist/ui-kit/Img/ImgAsPicture.js +9 -3
  79. package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
  80. package/dist/ui-kit/Img/ImgInner.js +2 -2
  81. package/dist/ui-kit/Img/ImgInner.js.map +1 -1
  82. package/dist/ui-kit/Img/ImgProps.d.ts +1 -0
  83. package/dist/ui-kit/Location/Location.js +2 -2
  84. package/dist/ui-kit/Location/Location.js.map +1 -1
  85. package/dist/ui-kit/Paragraph/Paragraph.js +1 -5
  86. package/dist/ui-kit/Paragraph/Paragraph.js.map +1 -1
  87. package/dist/ui-kit/Text/TextProps.d.ts +1 -1
  88. package/lib/common.css +1 -1
  89. package/lib/components/Blocks.js +5 -3
  90. package/lib/components/Blocks.js.map +1 -1
  91. package/lib/components/Bonus/Bonus.js +1 -1
  92. package/lib/components/Bonus/Bonus.js.map +1 -1
  93. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  94. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  95. package/lib/components/CarouselCard/CarouselCard.js +1 -1
  96. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  97. package/lib/components/CarouselLinks/CarouselLinks.js +1 -1
  98. package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  99. package/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
  100. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  101. package/lib/components/Catalog/Catalog.js +1 -1
  102. package/lib/components/Catalog/Catalog.js.map +1 -1
  103. package/lib/components/ContactsBlock/ContactsBlock.js +1 -1
  104. package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  105. package/lib/components/Gallery/GalleryCardInner.js +1 -1
  106. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  107. package/lib/components/Gallery/GalleryContainer.js +1 -1
  108. package/lib/components/Gallery/GalleryContainer.js.map +1 -1
  109. package/lib/components/GracePeriod/GracePeriod.js +1 -1
  110. package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
  111. package/lib/components/Headline/Headline.js +7 -6
  112. package/lib/components/Headline/Headline.js.map +1 -1
  113. package/lib/components/Headline/Headline.mobile.js +5 -5
  114. package/lib/components/Headline/Headline.mobile.js.map +1 -1
  115. package/lib/components/Headline/HeadlineContent.d.ts +2 -2
  116. package/lib/components/Headline/headlineStyles.d.ts +7 -0
  117. package/lib/components/Headline/headlineStyles.js +16 -0
  118. package/lib/components/Headline/headlineStyles.js.map +1 -0
  119. package/lib/components/Headline/headlineVersionStyles.d.ts +9 -0
  120. package/lib/components/Headline/headlineVersionStyles.js +44 -0
  121. package/lib/components/Headline/headlineVersionStyles.js.map +1 -0
  122. package/lib/components/HorizontalLayout/HorizontalLayout.d.ts +5 -0
  123. package/lib/components/HorizontalLayout/HorizontalLayout.fixture.d.ts +11 -0
  124. package/lib/components/HorizontalLayout/HorizontalLayout.js +21 -0
  125. package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -0
  126. package/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +15 -0
  127. package/lib/components/HorizontalLayout/HorizontalLayoutContent.js +2 -0
  128. package/lib/components/HorizontalLayout/HorizontalLayoutContent.js.map +1 -0
  129. package/lib/components/LinkDocs/LinkDocs.js +1 -1
  130. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  131. package/lib/components/LinkDocs/LinkDocs.mobile.js +1 -1
  132. package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
  133. package/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -3
  134. package/lib/components/PictureText/PictureText.js +1 -1
  135. package/lib/components/PictureText/PictureText.js.map +1 -1
  136. package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  137. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  138. package/lib/components/ProductTile/ProductTile.js +1 -1
  139. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  140. package/lib/components/PromoTile/PromoTile.js +1 -1
  141. package/lib/components/PromoTile/PromoTile.js.map +1 -1
  142. package/lib/components/VerticalLayout/VerticalLayout.js +3 -16
  143. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  144. package/lib/model/AlignText.d.ts +2 -1
  145. package/lib/model/AlignText.js.map +1 -1
  146. package/lib/model/BlockVersion.d.ts +3 -0
  147. package/lib/model/BlockVersion.js +14 -0
  148. package/lib/model/BlockVersion.js.map +1 -1
  149. package/lib/services/BlockRouter/BlockRouter.js +4 -3
  150. package/lib/services/BlockRouter/BlockRouter.js.map +1 -1
  151. package/lib/services/sitemap/isTopItemActive.js +3 -1
  152. package/lib/services/sitemap/isTopItemActive.js.map +1 -1
  153. package/lib/ui-kit/Img/ImgAsPicture.js +9 -3
  154. package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
  155. package/lib/ui-kit/Img/ImgInner.js +2 -2
  156. package/lib/ui-kit/Img/ImgInner.js.map +1 -1
  157. package/lib/ui-kit/Img/ImgProps.d.ts +1 -0
  158. package/lib/ui-kit/Location/Location.js +2 -2
  159. package/lib/ui-kit/Location/Location.js.map +1 -1
  160. package/lib/ui-kit/Paragraph/Paragraph.js +1 -5
  161. package/lib/ui-kit/Paragraph/Paragraph.js.map +1 -1
  162. package/lib/ui-kit/Text/TextProps.d.ts +1 -1
  163. package/mobile/bundle/bundle.umd.js +31 -35
  164. package/mobile/bundle/bundle.umd.min.js +1 -1
  165. package/mobile/bundle/components/Headline/HeadlineContent.d.ts +2 -2
  166. package/mobile/bundle/components/Headline/headlineStyles.d.ts +7 -0
  167. package/mobile/bundle/components/Headline/headlineVersionStyles.d.ts +9 -0
  168. package/mobile/bundle/components/HorizontalLayout/HorizontalLayout.d.ts +5 -0
  169. package/mobile/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +15 -0
  170. package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +3 -3
  171. package/mobile/bundle/model/AlignText.d.ts +2 -1
  172. package/mobile/bundle/model/BlockVersion.d.ts +3 -0
  173. package/mobile/bundle/ui-kit/Img/ImgProps.d.ts +1 -0
  174. package/mobile/bundle/ui-kit/Text/TextProps.d.ts +1 -1
  175. package/mobile/dist/components/Bonus/Bonus.js +1 -1
  176. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  177. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  178. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  179. package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
  180. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  181. package/mobile/dist/components/CarouselLinks/CarouselLinks.js +1 -1
  182. package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  183. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +2 -2
  184. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  185. package/mobile/dist/components/Catalog/Catalog.js +1 -1
  186. package/mobile/dist/components/Catalog/Catalog.js.map +1 -1
  187. package/mobile/dist/components/ContactsBlock/ContactsBlock.js +1 -1
  188. package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  189. package/mobile/dist/components/Gallery/GalleryCardInner.js +2 -2
  190. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  191. package/mobile/dist/components/Gallery/GalleryContainer.js +1 -1
  192. package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -1
  193. package/mobile/dist/components/GracePeriod/GracePeriod.js +1 -1
  194. package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
  195. package/mobile/dist/components/Headline/Headline.js +5 -5
  196. package/mobile/dist/components/Headline/Headline.js.map +1 -1
  197. package/mobile/dist/components/Headline/HeadlineContent.d.ts +2 -2
  198. package/mobile/dist/components/Headline/headlineStyles.d.ts +7 -0
  199. package/mobile/dist/components/Headline/headlineStyles.js +18 -0
  200. package/mobile/dist/components/Headline/headlineStyles.js.map +1 -0
  201. package/mobile/dist/components/Headline/headlineVersionStyles.d.ts +9 -0
  202. package/mobile/dist/components/Headline/headlineVersionStyles.js +46 -0
  203. package/mobile/dist/components/Headline/headlineVersionStyles.js.map +1 -0
  204. package/mobile/dist/components/HorizontalLayout/HorizontalLayout.d.ts +5 -0
  205. package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js +23 -0
  206. package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -0
  207. package/mobile/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +15 -0
  208. package/mobile/dist/components/HorizontalLayout/HorizontalLayoutContent.js +2 -0
  209. package/mobile/dist/components/HorizontalLayout/HorizontalLayoutContent.js.map +1 -0
  210. package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -1
  211. package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  212. package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -3
  213. package/mobile/dist/components/PictureText/PictureText.js +1 -1
  214. package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
  215. package/mobile/dist/components/ProductTile/ProductTile.js +1 -1
  216. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  217. package/mobile/dist/components/PromoTile/PromoTile.js +1 -1
  218. package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
  219. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +3 -16
  220. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  221. package/mobile/dist/model/AlignText.d.ts +2 -1
  222. package/mobile/dist/model/AlignText.js.map +1 -1
  223. package/mobile/dist/model/BlockVersion.d.ts +3 -0
  224. package/mobile/dist/model/BlockVersion.js +15 -1
  225. package/mobile/dist/model/BlockVersion.js.map +1 -1
  226. package/mobile/dist/services/BlockRouter/BlockRouter.js +4 -3
  227. package/mobile/dist/services/BlockRouter/BlockRouter.js.map +1 -1
  228. package/mobile/dist/services/sitemap/isTopItemActive.js +3 -1
  229. package/mobile/dist/services/sitemap/isTopItemActive.js.map +1 -1
  230. package/mobile/dist/ui-kit/Img/ImgAsPicture.js +9 -3
  231. package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
  232. package/mobile/dist/ui-kit/Img/ImgInner.js +2 -2
  233. package/mobile/dist/ui-kit/Img/ImgInner.js.map +1 -1
  234. package/mobile/dist/ui-kit/Img/ImgProps.d.ts +1 -0
  235. package/mobile/dist/ui-kit/Location/Location.js +2 -2
  236. package/mobile/dist/ui-kit/Location/Location.js.map +1 -1
  237. package/mobile/dist/ui-kit/Paragraph/Paragraph.js +1 -5
  238. package/mobile/dist/ui-kit/Paragraph/Paragraph.js.map +1 -1
  239. package/mobile/dist/ui-kit/Text/TextProps.d.ts +1 -1
  240. package/mobile/lib/components/Bonus/Bonus.js +1 -1
  241. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  242. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  243. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  244. package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
  245. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  246. package/mobile/lib/components/CarouselLinks/CarouselLinks.js +1 -1
  247. package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  248. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
  249. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  250. package/mobile/lib/components/Catalog/Catalog.js +1 -1
  251. package/mobile/lib/components/Catalog/Catalog.js.map +1 -1
  252. package/mobile/lib/components/ContactsBlock/ContactsBlock.js +1 -1
  253. package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  254. package/mobile/lib/components/Gallery/GalleryCardInner.js +1 -1
  255. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  256. package/mobile/lib/components/Gallery/GalleryContainer.js +1 -1
  257. package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -1
  258. package/mobile/lib/components/GracePeriod/GracePeriod.js +1 -1
  259. package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
  260. package/mobile/lib/components/Headline/Headline.js +5 -5
  261. package/mobile/lib/components/Headline/Headline.js.map +1 -1
  262. package/mobile/lib/components/Headline/HeadlineContent.d.ts +2 -2
  263. package/mobile/lib/components/Headline/headlineStyles.d.ts +7 -0
  264. package/mobile/lib/components/Headline/headlineStyles.js +16 -0
  265. package/mobile/lib/components/Headline/headlineStyles.js.map +1 -0
  266. package/mobile/lib/components/Headline/headlineVersionStyles.d.ts +9 -0
  267. package/mobile/lib/components/Headline/headlineVersionStyles.js +44 -0
  268. package/mobile/lib/components/Headline/headlineVersionStyles.js.map +1 -0
  269. package/mobile/lib/components/HorizontalLayout/HorizontalLayout.d.ts +5 -0
  270. package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js +21 -0
  271. package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -0
  272. package/mobile/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +15 -0
  273. package/mobile/lib/components/HorizontalLayout/HorizontalLayoutContent.js +2 -0
  274. package/mobile/lib/components/HorizontalLayout/HorizontalLayoutContent.js.map +1 -0
  275. package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
  276. package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  277. package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -3
  278. package/mobile/lib/components/PictureText/PictureText.js +1 -1
  279. package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
  280. package/mobile/lib/components/ProductTile/ProductTile.js +1 -1
  281. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  282. package/mobile/lib/components/PromoTile/PromoTile.js +1 -1
  283. package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
  284. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +3 -16
  285. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  286. package/mobile/lib/model/AlignText.d.ts +2 -1
  287. package/mobile/lib/model/AlignText.js.map +1 -1
  288. package/mobile/lib/model/BlockVersion.d.ts +3 -0
  289. package/mobile/lib/model/BlockVersion.js +14 -0
  290. package/mobile/lib/model/BlockVersion.js.map +1 -1
  291. package/mobile/lib/services/BlockRouter/BlockRouter.js +4 -3
  292. package/mobile/lib/services/BlockRouter/BlockRouter.js.map +1 -1
  293. package/mobile/lib/services/sitemap/isTopItemActive.js +3 -1
  294. package/mobile/lib/services/sitemap/isTopItemActive.js.map +1 -1
  295. package/mobile/lib/ui-kit/Img/ImgAsPicture.js +9 -3
  296. package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
  297. package/mobile/lib/ui-kit/Img/ImgInner.js +2 -2
  298. package/mobile/lib/ui-kit/Img/ImgInner.js.map +1 -1
  299. package/mobile/lib/ui-kit/Img/ImgProps.d.ts +1 -0
  300. package/mobile/lib/ui-kit/Location/Location.js +2 -2
  301. package/mobile/lib/ui-kit/Location/Location.js.map +1 -1
  302. package/mobile/lib/ui-kit/Paragraph/Paragraph.js +1 -5
  303. package/mobile/lib/ui-kit/Paragraph/Paragraph.js.map +1 -1
  304. package/mobile/lib/ui-kit/Text/TextProps.d.ts +1 -1
  305. package/mobile/src/components/Bonus/Bonus.tsx +0 -1
  306. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +0 -1
  307. package/mobile/src/components/CarouselCard/CarouselCard.tsx +1 -7
  308. package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +1 -1
  309. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
  310. package/mobile/src/components/Catalog/Catalog.tsx +0 -1
  311. package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
  312. package/mobile/src/components/Gallery/GalleryCardInner.tsx +1 -1
  313. package/mobile/src/components/Gallery/GalleryContainer.tsx +1 -1
  314. package/mobile/src/components/GracePeriod/GracePeriod.tsx +0 -1
  315. package/mobile/src/components/Headline/Headline.tsx +10 -13
  316. package/mobile/src/components/Headline/HeadlineContent.ts +2 -2
  317. package/mobile/src/components/Headline/headlineStyles.ts +25 -0
  318. package/mobile/src/components/Headline/headlineVersionStyles.ts +55 -0
  319. package/mobile/src/components/HorizontalLayout/HorizontalLayout.example.json +19 -0
  320. package/mobile/src/components/HorizontalLayout/HorizontalLayout.tsx +42 -0
  321. package/mobile/src/components/HorizontalLayout/HorizontalLayout.ui.json +1 -0
  322. package/mobile/src/components/HorizontalLayout/HorizontalLayoutContent.ts +17 -0
  323. package/mobile/src/components/LinkDocs/LinkDocs.tsx +0 -1
  324. package/mobile/src/components/LinkDocs/LinkDocsContent.ts +3 -3
  325. package/mobile/src/components/PictureText/PictureText.tsx +0 -1
  326. package/mobile/src/components/ProductTile/ProductTile.tsx +1 -1
  327. package/mobile/src/components/PromoTile/PromoTile.tsx +1 -1
  328. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +4 -20
  329. package/mobile/src/model/AlignText.ts +2 -1
  330. package/mobile/src/model/BlockVersion.ts +18 -0
  331. package/mobile/src/services/BlockRouter/BlockRouter.ts +5 -3
  332. package/mobile/src/services/sitemap/isTopItemActive.ts +3 -1
  333. package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +17 -3
  334. package/mobile/src/ui-kit/Img/ImgInner.tsx +2 -1
  335. package/mobile/src/ui-kit/Img/ImgProps.ts +1 -0
  336. package/mobile/src/ui-kit/Location/Location.tsx +7 -5
  337. package/mobile/src/ui-kit/Paragraph/Paragraph.tsx +3 -7
  338. package/mobile/src/ui-kit/Text/TextProps.ts +1 -0
  339. package/package.json +1 -1
  340. package/src/components/Blocks.ts +5 -3
  341. package/src/components/Bonus/Bonus.tsx +0 -1
  342. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +0 -1
  343. package/src/components/CarouselCard/CarouselCard.tsx +1 -7
  344. package/src/components/CarouselLinks/CarouselLinks.tsx +1 -1
  345. package/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
  346. package/src/components/Catalog/Catalog.tsx +0 -1
  347. package/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
  348. package/src/components/Gallery/GalleryCardInner.tsx +1 -1
  349. package/src/components/Gallery/GalleryContainer.tsx +1 -1
  350. package/src/components/GracePeriod/GracePeriod.tsx +0 -1
  351. package/src/components/Headline/Headline.fixture.mobile.tsx +10 -10
  352. package/src/components/Headline/Headline.fixture.tsx +7 -7
  353. package/src/components/Headline/Headline.mobile.tsx +10 -13
  354. package/src/components/Headline/Headline.tsx +18 -12
  355. package/src/components/Headline/HeadlineContent.ts +2 -2
  356. package/src/components/Headline/headlineStyles.ts +25 -0
  357. package/src/components/Headline/headlineVersionStyles.ts +55 -0
  358. package/src/components/HorizontalLayout/HorizontalLayout.example.json +19 -0
  359. package/src/components/HorizontalLayout/HorizontalLayout.fixture.tsx +85 -0
  360. package/src/components/HorizontalLayout/HorizontalLayout.tsx +42 -0
  361. package/src/components/HorizontalLayout/HorizontalLayout.ui.json +1 -0
  362. package/src/components/HorizontalLayout/HorizontalLayoutContent.ts +17 -0
  363. package/src/components/LinkDocs/LinkDocs.mobile.tsx +0 -1
  364. package/src/components/LinkDocs/LinkDocs.tsx +1 -1
  365. package/src/components/LinkDocs/LinkDocsContent.ts +3 -3
  366. package/src/components/PictureText/PictureText.tsx +0 -1
  367. package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
  368. package/src/components/ProductTile/ProductTile.tsx +1 -1
  369. package/src/components/PromoTile/PromoTile.tsx +1 -1
  370. package/src/components/VerticalLayout/VerticalLayout.tsx +4 -20
  371. package/src/model/AlignText.ts +2 -1
  372. package/src/model/BlockVersion.ts +18 -0
  373. package/src/services/BlockRouter/BlockRouter.ts +5 -3
  374. package/src/services/sitemap/isTopItemActive.ts +3 -1
  375. package/src/ui-kit/Img/ImgAsPicture.tsx +17 -3
  376. package/src/ui-kit/Img/ImgInner.tsx +2 -1
  377. package/src/ui-kit/Img/ImgProps.ts +1 -0
  378. package/src/ui-kit/Location/Location.tsx +7 -5
  379. package/src/ui-kit/Paragraph/Paragraph.tsx +3 -7
  380. package/src/ui-kit/Text/TextProps.ts +1 -0
  381. package/bundle/components/Headline/constants.d.ts +0 -18
  382. package/dist/components/Headline/constants.d.ts +0 -18
  383. package/dist/components/Headline/constants.js +0 -68
  384. package/dist/components/Headline/constants.js.map +0 -1
  385. package/lib/components/Headline/constants.d.ts +0 -18
  386. package/lib/components/Headline/constants.js +0 -66
  387. package/lib/components/Headline/constants.js.map +0 -1
  388. package/mobile/bundle/components/Headline/constants.d.ts +0 -18
  389. package/mobile/dist/components/Headline/constants.d.ts +0 -18
  390. package/mobile/dist/components/Headline/constants.js +0 -68
  391. package/mobile/dist/components/Headline/constants.js.map +0 -1
  392. package/mobile/lib/components/Headline/constants.d.ts +0 -18
  393. package/mobile/lib/components/Headline/constants.js +0 -66
  394. package/mobile/lib/components/Headline/constants.js.map +0 -1
  395. package/mobile/src/components/Headline/constants.ts +0 -84
  396. package/src/components/Headline/constants.ts +0 -84
@@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AAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,8 +1,4 @@
1
1
  import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
- export const Paragraph = JSX((props) => {
4
- const { size = '', color = '', align = '', font = '', children } = props;
5
- const textClasses = `font-sans ${size} ${color} ${align} ${font}`;
6
- return _jsx("p", { className: textClasses, children: children });
7
- });
3
+ export const Paragraph = JSX(({ size, color, align, font, children }) => (_jsx("p", { className: ['font-sans', size, color, align, font].filter(Boolean).join(' '), children: children })));
8
4
  //# sourceMappingURL=Paragraph.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Paragraph.js","sourceRoot":"","sources":["../../../src/ui-kit/Paragraph/Paragraph.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAiB,CAAC,KAAK,EAAE,EAAE;IACrD,MAAM,EAAE,IAAI,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,IAAI,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAEzE,MAAM,WAAW,GAAG,aAAa,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;IAElE,OAAO,YAAG,SAAS,EAAE,WAAW,YAAG,QAAQ,GAAK,CAAC;AACnD,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"Paragraph.js","sourceRoot":"","sources":["../../../src/ui-kit/Paragraph/Paragraph.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAiB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACvF,YAAG,SAAS,EAAE,CAAC,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,YAAG,QAAQ,GAAK,CAChG,CAAC,CAAC"}
@@ -9,7 +9,7 @@ export declare type TitleSize = '' | 'text-h6' | 'text-h5' | 'text-h5-light' | '
9
9
  /**
10
10
  * @title Цвет текста
11
11
  */
12
- export declare type TextColor = '' | 'text-main' | 'text-primary-text' | 'text-primary-main' | 'text-secondary-text' | 'text-secondary-light' | 'text-error' | 'text-white' | 'text-green';
12
+ export declare type TextColor = '' | 'text-main' | 'text-primary-text' | 'text-primary-main' | 'text-secondary-text' | 'text-secondary-light' | 'text-error' | 'text-white' | 'text-white/80' | 'text-green';
13
13
  /**
14
14
  * @title Выравнивание
15
15
  * @enumNames [
@@ -19,7 +19,6 @@ export const Bonus = JSX<BonusProps>((props) => {
19
19
  title={title}
20
20
  description={description}
21
21
  headlineVersion="M"
22
- align="center"
23
22
  {...rest}
24
23
  />
25
24
  <div className="flex flex-wrap w-full mt-9">
@@ -31,7 +31,6 @@ export const BonusBenefitsBlock = JSX<BenefitsBlockProps>(
31
31
  title={title}
32
32
  description={subtitle}
33
33
  headlineVersion="M"
34
- align="center"
35
34
  {...rest}
36
35
  />
37
36
  {bonusBenefits?.length ? (
@@ -22,13 +22,7 @@ export const CarouselCard = JSX<CarouselCardProps>(
22
22
  <div className={`${BLOCK_CLASSES} z-10 top-6 right-8 bg-green`} />
23
23
  <div className={`${BLOCK_CLASSES} z-10 top-3 right-4 bg-green-light`} />
24
24
  <div className="relative bg-white z-10 py-6 px-10 border border-solid border-green-light">
25
- <Headline
26
- className="!p-0"
27
- title={title}
28
- description={description}
29
- headlineVersion="M"
30
- align="center"
31
- />
25
+ <Headline className="!p-0" title={title} description={description} headlineVersion="M" />
32
26
  {button ? <div className="mt-6">{renderButton({ button })}</div> : null}
33
27
  </div>
34
28
  </div>
@@ -24,7 +24,7 @@ export const CarouselLinks = JSX<CarouselLinksProps>(
24
24
  title={title}
25
25
  as="h1"
26
26
  description={description}
27
- align="left"
27
+ align="text-left"
28
28
  className="p-0"
29
29
  bgColorHeadline="secondary"
30
30
  />
@@ -10,7 +10,7 @@ import { List } from '../../ui-kit/List/List';
10
10
  import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
11
11
  import { Text } from '../../ui-kit/Text/Text';
12
12
  import { getIconWithVersion } from '../../utils/getIconWithVersion';
13
- import { HEADLINE_SMALL_VERSION } from '../Headline/constants';
13
+ import { HEADLINE_SMALL_VERSION } from '../Headline/headlineVersionStyles';
14
14
  import type { CarouselProductCardContent, ListProps } from './CarouselProductCardContent';
15
15
 
16
16
  export interface CarouselProductCardProps extends CarouselProductCardContent, UniBlockProps {}
@@ -30,7 +30,6 @@ export const Catalog = JSX<CatalogProps>(
30
30
  title={title}
31
31
  description={description}
32
32
  headlineVersion="M"
33
- align="center"
34
33
  {...rest}
35
34
  />
36
35
  <div
@@ -41,7 +41,7 @@ const renderBlocksColumn = ({ column, index, version }: RenderContactsColumnProp
41
41
  title={title}
42
42
  description={description}
43
43
  headlineVersion="XS"
44
- align="left"
44
+ align="text-left"
45
45
  bgColorHeadline={version}
46
46
  />
47
47
  {additionalDescription ? (
@@ -7,7 +7,7 @@ import { renderButton } from '../../ui-kit/Button/ButtonSection';
7
7
  import { Img } from '../../ui-kit/Img/Img';
8
8
  import { List } from '../../ui-kit/List/List';
9
9
  import { getIconWithVersion } from '../../utils/getIconWithVersion';
10
- import { HEADLINE_SMALL_VERSION } from '../Headline/constants';
10
+ import { HEADLINE_SMALL_VERSION } from '../Headline/headlineVersionStyles';
11
11
  import type { GalleryCardProps, GalleryItemProps } from './GalleryContent';
12
12
 
13
13
  export const GalleryCardInner = JSX<GalleryCardProps>(
@@ -19,7 +19,7 @@ export interface GalleryCardData {
19
19
  export const GalleryContainer = JSX<GalleryContainerProps>(
20
20
  ({ headlineVersion = 'M', cards = [], version = 'normal', activeIndex, ...rest }) => (
21
21
  <div>
22
- <Headline {...rest} className="!p-0" headlineVersion={headlineVersion} align="center" />
22
+ <Headline {...rest} className="!p-0" headlineVersion={headlineVersion} />
23
23
  <div
24
24
  className={`flex mt-8 ${
25
25
  cards?.length <= galleryLengthForScrollMap[version] ? 'justify-center' : ''
@@ -19,7 +19,6 @@ export const GracePeriod = JSX<GracePeriodProps>(
19
19
  title={title}
20
20
  description={description}
21
21
  headlineVersion="M"
22
- align="center"
23
22
  {...rest}
24
23
  />
25
24
  {calendar ? renderCalendar(calendar) : null}
@@ -1,36 +1,33 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { AlignText } from '../../model/AlignText';
3
-
4
2
  import type { UniBlockProps } from '../../model/JSXBlock';
5
3
  import { Heading } from '../../ui-kit/Heading/Heading';
6
4
  import { Img } from '../../ui-kit/Img/Img';
7
- import { HEADLINE_BLOCK_STYLE_MAPS } from './constants';
5
+ import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
8
6
  import type { HeadlineContent } from './HeadlineContent';
7
+ import { headlineStyles } from './headlineStyles';
9
8
 
10
9
  export interface HeadlineProps extends UniBlockProps, HeadlineContent {}
11
10
 
12
11
  export const Headline = JSX<HeadlineProps>(
13
12
  ({
14
- bgColorHeadline = 'transparent',
15
13
  className = '',
16
14
  title,
17
15
  description,
18
16
  image,
19
- align = 'left',
17
+ bgColorHeadline = 'transparent',
18
+ align = 'text-left',
20
19
  }) => {
21
- const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
20
+ const style = headlineStyles[bgColorHeadline];
22
21
 
23
22
  return (
24
- <section className={`px-4 py-6 flex flex-col gap-2.5 ${STYLE_MAPS.background} ${className}`}>
23
+ <section className={`px-4 py-6 flex flex-col gap-2.5 ${style.wrapper} ${className}`}>
25
24
  {title ? (
26
- <Heading
27
- headingType="h2"
28
- className={`${STYLE_MAPS.text} ${AlignText[align]}`}
29
- title={title}
30
- />
25
+ <Heading headingType="h2" className={`${style.titleColor} ${align}`} title={title} />
31
26
  ) : null}
32
27
  {description ? (
33
- <p className={`text-m ${STYLE_MAPS.description} ${AlignText[align]}`}>{description}</p>
28
+ <Paragraph color={style.descriptionColor || style.titleColor} size="text-m" align={align}>
29
+ {description}
30
+ </Paragraph>
34
31
  ) : null}
35
32
  {image?.src && (
36
33
  <div className="mt-2.5 mx-auto flex justify-center">
@@ -1,8 +1,8 @@
1
- import type { AlignType } from '../../model/AlignType';
2
1
  import type { BlockVersionWithTransparent } from '../../model/BlockVersion';
3
2
  import type { HeadlineProps } from '../../model/HeadlineType';
4
3
  import type { Picture } from '../../model/Picture';
5
4
  import type { HeadingTagType } from '../../ui-kit/Heading/HeadingProps';
5
+ import type { TextAlign } from '../../ui-kit/Text/TextProps';
6
6
 
7
7
  /**
8
8
  * @title Заголовок
@@ -10,7 +10,7 @@ import type { HeadingTagType } from '../../ui-kit/Heading/HeadingProps';
10
10
  export type HeadlineContent = HeadlineProps & {
11
11
  /** @title Изображение (моб.) */
12
12
  image?: Picture;
13
- align?: AlignType;
13
+ align?: TextAlign;
14
14
  bgColorHeadline?: BlockVersionWithTransparent;
15
15
  /** @hidden */
16
16
  as?: HeadingTagType;
@@ -0,0 +1,25 @@
1
+ import type { BlockVersionWithTransparent } from '../../model/BlockVersion';
2
+ import type { TextColor } from '../../ui-kit/Text/TextProps';
3
+
4
+ export const headlineStyles: Record<
5
+ BlockVersionWithTransparent,
6
+ {
7
+ wrapper: string;
8
+ titleColor: TextColor;
9
+ descriptionColor?: TextColor;
10
+ }
11
+ > = {
12
+ transparent: {
13
+ wrapper: 'bg-transparent',
14
+ titleColor: 'text-primary-text',
15
+ },
16
+ primary: {
17
+ wrapper: 'bg-white',
18
+ titleColor: 'text-primary-text',
19
+ },
20
+ secondary: {
21
+ wrapper: 'bg-primary-main',
22
+ titleColor: 'text-white',
23
+ descriptionColor: 'text-white/80',
24
+ },
25
+ };
@@ -0,0 +1,55 @@
1
+ import type { HeadlineSmallVersion, HeadlineVersion } from '../../model/HeadlineType';
2
+ import type { HeadingCommonProps } from '../../ui-kit/Heading/HeadingProps';
3
+ import type { TextSize, TitleSize } from '../../ui-kit/Text/TextProps';
4
+
5
+ export const headlineVersionStyles: Record<
6
+ HeadlineVersion,
7
+ {
8
+ wrapper: string;
9
+ title: HeadingCommonProps;
10
+ descriptionSize: TextSize | TitleSize;
11
+ }
12
+ > = {
13
+ XXL: {
14
+ wrapper: 'gap-[18px]',
15
+ title: { headingType: 'h0', as: 'h1' },
16
+ descriptionSize: 'text-h5',
17
+ },
18
+ XL: {
19
+ wrapper: 'gap-4',
20
+ title: { headingType: 'h1', as: 'h1' },
21
+ descriptionSize: 'text-xl-light',
22
+ },
23
+ L: {
24
+ wrapper: 'gap-4',
25
+ title: { headingType: 'h2', as: 'h2' },
26
+ descriptionSize: 'text-xl-light',
27
+ },
28
+ M: {
29
+ wrapper: 'gap-3',
30
+ title: { headingType: 'h3', as: 'h3' },
31
+ descriptionSize: 'text-xl-light',
32
+ },
33
+ S: {
34
+ wrapper: 'gap-2',
35
+ title: { headingType: 'h4', as: 'h4' },
36
+ descriptionSize: 'text-xl-light',
37
+ },
38
+ XS: {
39
+ wrapper: 'gap-2',
40
+ title: { headingType: 'h5', as: 'h5' },
41
+ descriptionSize: 'text-l-light',
42
+ },
43
+ };
44
+
45
+ // TODO Move to Gallery and rename
46
+ export const HEADLINE_SMALL_VERSION: Record<HeadlineSmallVersion, string> = {
47
+ H6: 'text-h6',
48
+ XL_L: 'text-xl-light',
49
+ XL_R: 'text-xl',
50
+ L_L: 'text-l-light',
51
+ L_R: 'text-l',
52
+ M: 'text-m-light',
53
+ S: 'text-s-light',
54
+ XS: 'text-xs-light',
55
+ };
@@ -0,0 +1,19 @@
1
+ {
2
+ "content": {
3
+ "version": "primary",
4
+ "gap": "XS"
5
+ },
6
+ "style": ["col-span-12"],
7
+ "type": "HorizontalLayout",
8
+ "blocks": [
9
+ {
10
+ "type": "Headline",
11
+ "content": {
12
+ "title": "Заголовок блока",
13
+ "description": "Описание блока",
14
+ "headlineVersion": "M"
15
+ },
16
+ "style": ["col-span-12"]
17
+ }
18
+ ]
19
+ }
@@ -0,0 +1,42 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { renderChildren } from '../../BlockRenderer/renderChildren';
3
+ import { GapStyleMap, LayoutBackgroundStyleMap } from '../../model/BlockVersion';
4
+ import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
5
+ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
6
+ import type { HorizontalLayoutContent } from './HorizontalLayoutContent';
7
+
8
+ export interface HorizontalLayoutProps extends HorizontalLayoutContent, UniBlockProps {}
9
+
10
+ export const HorizontalLayout: JSXBlock<HorizontalLayoutProps> = JSX<HorizontalLayoutProps>(
11
+ ({
12
+ className = '',
13
+ gap = 'XS',
14
+ isPadding = false,
15
+ version = 'transparent',
16
+ options,
17
+ ...rest
18
+ }) => {
19
+ const paddingStyle = isPadding ? 'p-12' : '';
20
+
21
+ return (
22
+ <BlockWrapper
23
+ className={[
24
+ 'grid grid-cols-12',
25
+ paddingStyle,
26
+ GapStyleMap[gap],
27
+ LayoutBackgroundStyleMap[version],
28
+ className,
29
+ ]
30
+ .filter(Boolean)
31
+ .join(' ')}
32
+ {...rest}
33
+ >
34
+ {renderChildren({ ...rest, options: options })}
35
+ </BlockWrapper>
36
+ );
37
+ },
38
+ );
39
+
40
+ HorizontalLayout.childrenTypes = {
41
+ exclude: ['HorizontalLayout'],
42
+ };
@@ -0,0 +1,17 @@
1
+ import type { BlockVersionWithTransparent } from '../../model/BlockVersion';
2
+
3
+ /**
4
+ * @title Отсуп между компонентами
5
+ * @enumNames ["Самый большой", "Очень большой", "Большой", "Средний", "Маленький", "Самый маленький", "Без отступа"]
6
+ */
7
+ export type GapVersion = 'XXL' | 'XL' | 'L' | 'M' | 'S' | 'XS' | '';
8
+
9
+ /**
10
+ * @title Горизонтальный компоновщик
11
+ */
12
+ export interface HorizontalLayoutContent {
13
+ version?: BlockVersionWithTransparent;
14
+ gap?: GapVersion;
15
+ /** @title Внутренний отступ компоновщика */
16
+ isPadding?: boolean;
17
+ }
@@ -25,7 +25,6 @@ export const LinkDocs = JSX<LinkDocsProps>(
25
25
  className={`!p-0 ${description ? 'gap-2' : 'gap-5'}`}
26
26
  title={title}
27
27
  description={description}
28
- align="center"
29
28
  {...rest}
30
29
  />
31
30
  {orientation === 'vertical' ? (
@@ -1,8 +1,8 @@
1
+ import type { HeadlineCommonProps } from '../../model/HeadlineType';
1
2
  import type { LinkProps } from '../../model/LinkProps';
2
- import type { AlignType } from '../../model/AlignType';
3
3
  import type { ListOrientation } from '../../model/ListOrientation';
4
4
  import type { Picture } from '../../model/Picture';
5
- import type { HeadlineCommonProps } from '../../model/HeadlineType';
5
+ import type { TextAlign } from '../../ui-kit/Text/TextProps';
6
6
 
7
7
  /**
8
8
  * @title Отображение списка
@@ -43,5 +43,5 @@ export type LinkDocsContent = HeadlineCommonProps & {
43
43
  orientation?: ListOrientation; // TODO: мобильный проп
44
44
  /** @title Рамка элементов (моб.) */ // TODO: мобильный проп
45
45
  hasBorder?: boolean;
46
- align?: AlignType;
46
+ align?: TextAlign;
47
47
  };
@@ -35,7 +35,6 @@ export const PictureText = JSX<PictureTextProps>(
35
35
  description={description}
36
36
  headlineVersion="M"
37
37
  bgColorHeadline={version}
38
- align="center"
39
38
  {...rest}
40
39
  />
41
40
  <div className={'flex justify-center gap-[122px] mt-[30px]'}>
@@ -41,7 +41,7 @@ export const ProductTile = JSX<ProductTileProps>(
41
41
  description={description}
42
42
  headlineVersion={headlineVersion}
43
43
  bgColorHeadline={version}
44
- align="left"
44
+ align="text-left"
45
45
  {...rest}
46
46
  />
47
47
  {renderBenefits(benefits, version, image)}
@@ -36,7 +36,7 @@ export const PromoTile = JSX<PromoTileProps>(
36
36
  className={`!p-0 max-w-[600px]`}
37
37
  headlineVersion={getTileHeadingType(className)}
38
38
  bgColorHeadline={version}
39
- align="left"
39
+ align="text-left"
40
40
  as="h2"
41
41
  {...rest}
42
42
  />
@@ -1,10 +1,10 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { renderChildren } from '../../BlockRenderer/renderChildren';
3
3
  import type { AlignType } from '../../model/AlignType';
4
- import { BlockVersionWithTransparent } from '../../model/BlockVersion';
4
+ import { GapStyleMap, LayoutBackgroundStyleMap } from '../../model/BlockVersion';
5
5
  import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
6
6
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
7
- import type { GapVersion, VerticalLayoutContent } from './VerticalLayoutContent';
7
+ import type { VerticalLayoutContent } from './VerticalLayoutContent';
8
8
 
9
9
  export interface VerticalLayoutProps extends VerticalLayoutContent, UniBlockProps {}
10
10
 
@@ -14,22 +14,6 @@ const alignStyle: Record<AlignType, string> = {
14
14
  right: 'items-end',
15
15
  };
16
16
 
17
- const gapStyleMap: Record<GapVersion, string> = {
18
- XXL: 'gap-12',
19
- XL: 'gap-10',
20
- L: 'gap-8',
21
- M: 'gap-4',
22
- S: 'gap-2',
23
- XS: 'gap-1',
24
- '': '',
25
- };
26
-
27
- const backgroundStyleMap: Record<BlockVersionWithTransparent, string> = {
28
- transparent: '',
29
- primary: 'bg-white',
30
- secondary: 'bg-primary-main',
31
- };
32
-
33
17
  export const VerticalLayout: JSXBlock<VerticalLayoutProps> = JSX<VerticalLayoutProps>(
34
18
  ({
35
19
  className = '',
@@ -49,9 +33,9 @@ export const VerticalLayout: JSXBlock<VerticalLayoutProps> = JSX<VerticalLayoutP
49
33
  className={[
50
34
  'flex flex-col [&>*]:max-w-full',
51
35
  paddingStyle,
52
- gapStyleMap[gap],
36
+ GapStyleMap[gap],
53
37
  align && alignStyle[align],
54
- backgroundStyleMap[version],
38
+ LayoutBackgroundStyleMap[version],
55
39
  className,
56
40
  ]
57
41
  .filter(Boolean)
@@ -1,6 +1,7 @@
1
+ import type { TextAlign } from '../ui-kit/Text/TextProps';
1
2
  import type { AlignType } from './AlignType';
2
3
 
3
- export const AlignText: Record<AlignType, string> = {
4
+ export const AlignText: Record<AlignType, TextAlign> = {
4
5
  left: 'text-left',
5
6
  center: 'text-center',
6
7
  right: 'text-right',
@@ -1,3 +1,5 @@
1
+ import { GapVersion } from '../components/HorizontalLayout/HorizontalLayoutContent';
2
+
1
3
  /**
2
4
  * @title Цвет блока
3
5
  * @enumNames ["Основная", "Второстепенная"]
@@ -25,3 +27,19 @@ export const VersionWithTransparentStyleMap: Record<BlockVersionWithTransparent,
25
27
  primary: 'bg-white text-primary-text',
26
28
  secondary: 'bg-primary-main text-white',
27
29
  };
30
+
31
+ export const GapStyleMap: Record<GapVersion, string> = {
32
+ XXL: 'gap-12',
33
+ XL: 'gap-10',
34
+ L: 'gap-8',
35
+ M: 'gap-4',
36
+ S: 'gap-2',
37
+ XS: 'gap-1',
38
+ '': '',
39
+ };
40
+
41
+ export const LayoutBackgroundStyleMap: Record<BlockVersionWithTransparent, string> = {
42
+ transparent: '',
43
+ primary: 'bg-white',
44
+ secondary: 'bg-primary-main',
45
+ };
@@ -16,6 +16,8 @@ interface EventMap {
16
16
  }
17
17
 
18
18
  const normalizeAnchor = (rawAnchor?: string) => rawAnchor?.replace('#', '');
19
+ const getURLWithAnchor = (rawAnchor?: string) =>
20
+ `${globalThis.location?.pathname}#${normalizeAnchor(rawAnchor)}`;
19
21
 
20
22
  export class BlockRouter {
21
23
  public static readonly inst = new BlockRouter();
@@ -38,14 +40,14 @@ export class BlockRouter {
38
40
  }
39
41
 
40
42
  push(rawAnchor: string) {
41
- globalThis.history?.pushState(null, '', `#${normalizeAnchor(rawAnchor)}`);
43
+ globalThis.history?.pushState(null, '', getURLWithAnchor(rawAnchor));
42
44
  }
43
45
 
44
46
  replace(rawAnchor: string) {
45
- globalThis.history?.replaceState(null, '', `#${normalizeAnchor(rawAnchor)}`);
47
+ globalThis.history?.replaceState(null, '', getURLWithAnchor(rawAnchor));
46
48
  }
47
49
 
48
50
  reset() {
49
- globalThis.history?.replaceState(null, '', '#');
51
+ globalThis.history?.replaceState(null, '', getURLWithAnchor());
50
52
  }
51
53
  }
@@ -1,4 +1,5 @@
1
1
  import type { Router } from '../../hooks/useRouter';
2
+ import { projectSettings } from '../../ProjectSettings';
2
3
  import { checkIsHrefSameOrigin } from './checkIsHrefSameOrigin';
3
4
  import { isHrefActive } from './isHrefActive';
4
5
  import { isSubItemActive } from './isSubItemActive';
@@ -9,4 +10,5 @@ export const isTopItemActive =
9
10
  (topItem: TopMenuItem): boolean =>
10
11
  topItem.items?.some(isSubItemActive(router)) ||
11
12
  isHrefActive(topItem.href, router) ||
12
- checkIsHrefSameOrigin(topItem.href, router);
13
+ checkIsHrefSameOrigin(topItem.href, router) ||
14
+ Boolean(projectSettings.BASE_PATH?.startsWith(topItem.href || '/'));
@@ -11,12 +11,13 @@ const sourcesComparator = (a: Picture, b: Picture) => {
11
11
  };
12
12
 
13
13
  export const ImgAsPicture = JSX<ImageProps<Picture>>(
14
- ({ className = '', image, imageClassName = '', isMobile = false }) => {
14
+ ({ className = '', image, imageClassName = '', isMobile = false, pathPrefix = '' }) => {
15
15
  if (!image || (!image?.sources && !image?.src)) {
16
16
  return null;
17
17
  }
18
18
 
19
19
  const pictureStyles = isMobile ? 'flex' : 'flex-none';
20
+ const normalizedPathPrefix = normalizePathPrefix(pathPrefix);
20
21
 
21
22
  return (
22
23
  <picture className={`${pictureStyles} ${className}`}>
@@ -26,14 +27,18 @@ export const ImgAsPicture = JSX<ImageProps<Picture>>(
26
27
  .map(({ src, format, media }, index) => (
27
28
  <source
28
29
  key={`${index}_${src}`}
29
- srcSet={src}
30
+ srcSet={addPathPrefixToSrcSet(src, normalizedPathPrefix)}
30
31
  type={formatToMimeType(format)}
31
32
  media={media ? `(max-width: ${media}px)` : ''}
32
33
  {...image.size}
33
34
  />
34
35
  ))
35
36
  : null}
36
- {renderImg(image, imageClassName, isMobile)}
37
+ {renderImg(
38
+ { ...image, src: `${normalizedPathPrefix}${image.src}` },
39
+ imageClassName,
40
+ isMobile,
41
+ )}
37
42
  </picture>
38
43
  );
39
44
  },
@@ -61,6 +66,15 @@ const renderImg = (image: Picture, imageClassName = '', isMobile = false) => {
61
66
  );
62
67
  };
63
68
 
69
+ const normalizePathPrefix = (pathPrefix = '') =>
70
+ pathPrefix && !pathPrefix.endsWith('/') ? `${pathPrefix}/` : pathPrefix;
71
+
72
+ const addPathPrefixToSrcSet = (srcset = '', pathPrefix = '') =>
73
+ srcset
74
+ .split(',')
75
+ .map((src) => `${pathPrefix}${src.trim()}`)
76
+ .join(', ');
77
+
64
78
  export function formatToMimeType(format: ImgSource['format']): string | undefined {
65
79
  return format ? `image/${String(format)}` : undefined;
66
80
  }
@@ -6,7 +6,7 @@ import { ImgAsPicture } from './ImgAsPicture';
6
6
  import type { Image, ImageProps } from './ImgProps';
7
7
 
8
8
  export const ImgInner = JSX<ImageProps<Image>>(
9
- ({ className = '', image, imageClassName = '', isMobile, ...iconProps }) => {
9
+ ({ className = '', image, imageClassName = '', isMobile, pathPrefix, ...iconProps }) => {
10
10
  if (!image) {
11
11
  return null;
12
12
  }
@@ -31,6 +31,7 @@ export const ImgInner = JSX<ImageProps<Image>>(
31
31
  imageClassName={imageClassName}
32
32
  image={image as Picture}
33
33
  isMobile={isMobile}
34
+ pathPrefix={pathPrefix}
34
35
  />
35
36
  );
36
37
  },