@redneckz/wildless-cms-uni-blocks 0.11.1 → 0.11.3

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 (597) hide show
  1. package/bin/migration-scripts/0.11.1.js +34 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +90 -64
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
  6. package/bundle/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
  7. package/bundle/components/CarouselCard/CarouselCard.d.ts +1 -1
  8. package/bundle/components/CarouselCard/getCardWidth.d.ts +1 -0
  9. package/bundle/components/CarouselCard/titleSize.d.ts +1 -0
  10. package/bundle/components/CarouselCard/titleSize.mobile.d.ts +1 -0
  11. package/bundle/components/Footer/Contacts.d.ts +2 -2
  12. package/bundle/components/Footer/FooterContent.d.ts +9 -1
  13. package/bundle/components/Footer/FooterDataProps.d.ts +2 -2
  14. package/bundle/components/Header/Header.mobile.d.ts +2 -2
  15. package/bundle/components/Header/HeaderContent.d.ts +13 -1
  16. package/bundle/components/Header/HeaderTop.d.ts +6 -2
  17. package/bundle/components/PictureText/positionStyle.d.ts +1 -0
  18. package/bundle/components/PictureText/positionStyle.mobile.d.ts +1 -0
  19. package/bundle/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
  20. package/bundle/components/PictureText/styleInsuranceSum.d.ts +1 -0
  21. package/bundle/components/PictureText/styleInsuranceSum.mobile.d.ts +1 -0
  22. package/bundle/components/PictureText/styleValueBlock.d.ts +2 -0
  23. package/bundle/components/PictureText/styleValueBlock.mobile.d.ts +2 -0
  24. package/bundle/components/ProductGallery/ProductGallery.mobile.d.ts +5 -0
  25. package/bundle/components/RollupItem/RollupItemContent.d.ts +4 -2
  26. package/bundle/components/RollupItem/renderRoundedIcon.d.ts +3 -0
  27. package/bundle/components/RollupItem/renderRoundedIcon.mobile.d.ts +4 -0
  28. package/bundle/icons/IconName.d.ts +4 -2
  29. package/bundle/ui-kit/BenefitItem/borderRadius.mobile.d.ts +1 -0
  30. package/bundle/ui-kit/BenefitItem/labelSize.d.ts +1 -0
  31. package/bundle/ui-kit/BenefitItem/labelSize.mobile.d.ts +1 -0
  32. package/bundle/ui-kit/Heading/headingTag.d.ts +2 -0
  33. package/bundle/ui-kit/Heading/headingTag.mobile.d.ts +2 -0
  34. package/bundle/ui-kit/Icon/IconProps.d.ts +8 -3
  35. package/bundle/ui-kit/Icon/RoundedIcon.d.ts +5 -1
  36. package/cosmos-static/icons/ChevronLeft.svg +1 -0
  37. package/dist/components/BaseTile/BaseTile.js +2 -1
  38. package/dist/components/BaseTile/BaseTile.js.map +1 -1
  39. package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  40. package/dist/components/Blocks.js +2 -2
  41. package/dist/components/Blocks.js.map +1 -1
  42. package/dist/components/Blocks.mobile.js +10 -0
  43. package/dist/components/Blocks.mobile.js.map +1 -1
  44. package/dist/components/Bonus/Bonus.js +1 -1
  45. package/dist/components/BusinessBlock/BusinessCard.js +1 -1
  46. package/dist/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
  47. package/dist/components/{ButtonBlock/ButtonBlock.js → ButtonsBlock/ButtonsBlock.js} +3 -3
  48. package/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -0
  49. package/dist/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
  50. package/dist/components/{ButtonBlock/ButtonBlockContent.js → ButtonsBlock/ButtonsBlockContent.js} +1 -1
  51. package/dist/components/ButtonsBlock/ButtonsBlockContent.js.map +1 -0
  52. package/dist/components/CardTransfer/CardTransfer.js +1 -1
  53. package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  54. package/dist/components/CarouselCard/CarouselCard.d.ts +1 -1
  55. package/dist/components/CarouselCard/CarouselCard.js +9 -7
  56. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  57. package/dist/components/CarouselCard/getCardWidth.d.ts +1 -0
  58. package/dist/components/CarouselCard/getCardWidth.js +18 -0
  59. package/dist/components/CarouselCard/getCardWidth.js.map +1 -0
  60. package/dist/components/CarouselCard/titleSize.d.ts +1 -0
  61. package/dist/components/CarouselCard/titleSize.js +4 -0
  62. package/dist/components/CarouselCard/titleSize.js.map +1 -0
  63. package/dist/components/CarouselCard/titleSize.mobile.d.ts +1 -0
  64. package/dist/components/CarouselCard/titleSize.mobile.js +4 -0
  65. package/dist/components/CarouselCard/titleSize.mobile.js.map +1 -0
  66. package/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
  67. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  68. package/dist/components/Footer/Contacts.d.ts +2 -2
  69. package/dist/components/Footer/Contacts.js +4 -5
  70. package/dist/components/Footer/Contacts.js.map +1 -1
  71. package/dist/components/Footer/FooterContent.d.ts +9 -1
  72. package/dist/components/Footer/FooterDataProps.d.ts +2 -2
  73. package/dist/components/Header/Header.mobile.d.ts +2 -2
  74. package/dist/components/Header/Header.mobile.js +3 -17
  75. package/dist/components/Header/Header.mobile.js.map +1 -1
  76. package/dist/components/Header/HeaderContent.d.ts +13 -1
  77. package/dist/components/Header/HeaderTop.d.ts +6 -2
  78. package/dist/components/Header/HeaderTop.js +15 -2
  79. package/dist/components/Header/HeaderTop.js.map +1 -1
  80. package/dist/components/Headline/headlineVersionStyles.js +6 -6
  81. package/dist/components/Headline/headlineVersionStyles.js.map +1 -1
  82. package/dist/components/PictureText/PictureText.js +5 -11
  83. package/dist/components/PictureText/PictureText.js.map +1 -1
  84. package/dist/components/PictureText/positionStyle.d.ts +1 -0
  85. package/dist/components/PictureText/positionStyle.js +4 -0
  86. package/dist/components/PictureText/positionStyle.js.map +1 -0
  87. package/dist/components/PictureText/positionStyle.mobile.d.ts +1 -0
  88. package/dist/components/PictureText/positionStyle.mobile.js +4 -0
  89. package/dist/components/PictureText/positionStyle.mobile.js.map +1 -0
  90. package/dist/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
  91. package/dist/components/PictureText/renderInsuranceSumMonth.js +15 -0
  92. package/dist/components/PictureText/renderInsuranceSumMonth.js.map +1 -0
  93. package/dist/components/PictureText/styleInsuranceSum.d.ts +1 -0
  94. package/dist/components/PictureText/styleInsuranceSum.js +4 -0
  95. package/dist/components/PictureText/styleInsuranceSum.js.map +1 -0
  96. package/dist/components/PictureText/styleInsuranceSum.mobile.d.ts +1 -0
  97. package/dist/components/PictureText/styleInsuranceSum.mobile.js +4 -0
  98. package/dist/components/PictureText/styleInsuranceSum.mobile.js.map +1 -0
  99. package/dist/components/PictureText/styleValueBlock.d.ts +2 -0
  100. package/dist/components/PictureText/styleValueBlock.js +5 -0
  101. package/dist/components/PictureText/styleValueBlock.js.map +1 -0
  102. package/dist/components/PictureText/styleValueBlock.mobile.d.ts +2 -0
  103. package/dist/components/PictureText/styleValueBlock.mobile.js +5 -0
  104. package/dist/components/PictureText/styleValueBlock.mobile.js.map +1 -0
  105. package/dist/components/ProductGallery/ProductGallery.mobile.d.ts +5 -0
  106. package/dist/components/ProductGallery/ProductGallery.mobile.js +13 -0
  107. package/dist/components/ProductGallery/ProductGallery.mobile.js.map +1 -0
  108. package/dist/components/RollupItem/RollupItem.js +14 -9
  109. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  110. package/dist/components/RollupItem/RollupItemContent.d.ts +4 -2
  111. package/dist/components/RollupItem/renderRoundedIcon.d.ts +3 -0
  112. package/dist/components/RollupItem/renderRoundedIcon.js +5 -0
  113. package/dist/components/RollupItem/renderRoundedIcon.js.map +1 -0
  114. package/dist/components/RollupItem/renderRoundedIcon.mobile.d.ts +4 -0
  115. package/dist/components/RollupItem/renderRoundedIcon.mobile.js +7 -0
  116. package/dist/components/RollupItem/renderRoundedIcon.mobile.js.map +1 -0
  117. package/dist/content-page-repository/transformImg.js +1 -1
  118. package/dist/content-page-repository/transformImg.js.map +1 -1
  119. package/dist/icons/IconName.d.ts +4 -2
  120. package/dist/icons/IconName.js +3 -1
  121. package/dist/icons/IconName.js.map +1 -1
  122. package/dist/ui-kit/BenefitItem/BenefitItem.js +12 -11
  123. package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  124. package/dist/ui-kit/BenefitItem/borderRadius.mobile.d.ts +1 -0
  125. package/dist/ui-kit/BenefitItem/borderRadius.mobile.js +4 -0
  126. package/dist/ui-kit/BenefitItem/borderRadius.mobile.js.map +1 -0
  127. package/dist/ui-kit/BenefitItem/labelSize.d.ts +1 -0
  128. package/dist/ui-kit/BenefitItem/labelSize.js +4 -0
  129. package/dist/ui-kit/BenefitItem/labelSize.js.map +1 -0
  130. package/dist/ui-kit/BenefitItem/labelSize.mobile.d.ts +1 -0
  131. package/dist/ui-kit/BenefitItem/labelSize.mobile.js +4 -0
  132. package/dist/ui-kit/BenefitItem/labelSize.mobile.js.map +1 -0
  133. package/dist/ui-kit/Button/renderButtonsSection.js +2 -2
  134. package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  135. package/dist/ui-kit/Heading/Heading.js +5 -1
  136. package/dist/ui-kit/Heading/Heading.js.map +1 -1
  137. package/dist/ui-kit/Heading/headingTag.d.ts +2 -0
  138. package/dist/ui-kit/Heading/headingTag.js +5 -0
  139. package/dist/ui-kit/Heading/headingTag.js.map +1 -0
  140. package/dist/ui-kit/Heading/headingTag.mobile.d.ts +2 -0
  141. package/dist/ui-kit/Heading/headingTag.mobile.js +13 -0
  142. package/dist/ui-kit/Heading/headingTag.mobile.js.map +1 -0
  143. package/dist/ui-kit/Icon/IconProps.d.ts +8 -3
  144. package/dist/ui-kit/Icon/RoundedIcon.d.ts +5 -1
  145. package/dist/ui-kit/Icon/RoundedIcon.js +5 -1
  146. package/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
  147. package/lib/common.css +1 -1
  148. package/lib/components/BaseTile/BaseTile.js +2 -1
  149. package/lib/components/BaseTile/BaseTile.js.map +1 -1
  150. package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  151. package/lib/components/Blocks.js +2 -2
  152. package/lib/components/Blocks.js.map +1 -1
  153. package/lib/components/Blocks.mobile.js +10 -0
  154. package/lib/components/Blocks.mobile.js.map +1 -1
  155. package/lib/components/Bonus/Bonus.js +1 -1
  156. package/lib/components/BusinessBlock/BusinessCard.js +1 -1
  157. package/lib/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
  158. package/lib/components/ButtonsBlock/ButtonsBlock.fixture.mobile.d.ts +6 -0
  159. package/lib/components/{ButtonBlock/ButtonBlock.js → ButtonsBlock/ButtonsBlock.js} +2 -2
  160. package/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -0
  161. package/lib/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
  162. package/lib/components/ButtonsBlock/ButtonsBlockContent.js +2 -0
  163. package/lib/components/ButtonsBlock/ButtonsBlockContent.js.map +1 -0
  164. package/lib/components/CardTransfer/CardTransfer.fixture.mobile.d.ts +6 -0
  165. package/lib/components/CardTransfer/CardTransfer.js +1 -1
  166. package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  167. package/lib/components/CarouselCard/CarouselCard.d.ts +1 -1
  168. package/lib/components/CarouselCard/CarouselCard.fixture.mobile.d.ts +8 -0
  169. package/lib/components/CarouselCard/CarouselCard.js +9 -7
  170. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  171. package/lib/components/CarouselCard/getCardWidth.d.ts +1 -0
  172. package/lib/components/CarouselCard/getCardWidth.js +15 -0
  173. package/lib/components/CarouselCard/getCardWidth.js.map +1 -0
  174. package/lib/components/CarouselCard/titleSize.d.ts +1 -0
  175. package/lib/components/CarouselCard/titleSize.js +2 -0
  176. package/lib/components/CarouselCard/titleSize.js.map +1 -0
  177. package/lib/components/CarouselCard/titleSize.mobile.d.ts +1 -0
  178. package/lib/components/CarouselCard/titleSize.mobile.js +2 -0
  179. package/lib/components/CarouselCard/titleSize.mobile.js.map +1 -0
  180. package/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
  181. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  182. package/lib/components/Footer/Contacts.d.ts +2 -2
  183. package/lib/components/Footer/Contacts.js +4 -5
  184. package/lib/components/Footer/Contacts.js.map +1 -1
  185. package/lib/components/Footer/FooterContent.d.ts +9 -1
  186. package/lib/components/Footer/FooterDataProps.d.ts +2 -2
  187. package/lib/components/Header/Header.fixture.mobile.d.ts +2 -0
  188. package/lib/components/Header/Header.mobile.d.ts +2 -2
  189. package/lib/components/Header/Header.mobile.js +4 -18
  190. package/lib/components/Header/Header.mobile.js.map +1 -1
  191. package/lib/components/Header/HeaderContent.d.ts +13 -1
  192. package/lib/components/Header/HeaderTop.d.ts +6 -2
  193. package/lib/components/Header/HeaderTop.js +15 -2
  194. package/lib/components/Header/HeaderTop.js.map +1 -1
  195. package/lib/components/Headline/headlineVersionStyles.js +6 -6
  196. package/lib/components/Headline/headlineVersionStyles.js.map +1 -1
  197. package/lib/components/PictureText/PictureText.fixture.mobile.d.ts +14 -0
  198. package/lib/components/PictureText/PictureText.js +5 -11
  199. package/lib/components/PictureText/PictureText.js.map +1 -1
  200. package/lib/components/PictureText/positionStyle.d.ts +1 -0
  201. package/lib/components/PictureText/positionStyle.js +2 -0
  202. package/lib/components/PictureText/positionStyle.js.map +1 -0
  203. package/lib/components/PictureText/positionStyle.mobile.d.ts +1 -0
  204. package/lib/components/PictureText/positionStyle.mobile.js +2 -0
  205. package/lib/components/PictureText/positionStyle.mobile.js.map +1 -0
  206. package/lib/components/PictureText/renderBenefit.d.ts +0 -1
  207. package/lib/components/PictureText/renderInsuranceSumMonth.d.ts +1 -0
  208. package/lib/components/PictureText/renderInsuranceSumMonth.js +12 -0
  209. package/lib/components/PictureText/renderInsuranceSumMonth.js.map +1 -0
  210. package/lib/components/PictureText/styleInsuranceSum.d.ts +1 -0
  211. package/lib/components/PictureText/styleInsuranceSum.js +2 -0
  212. package/lib/components/PictureText/styleInsuranceSum.js.map +1 -0
  213. package/lib/components/PictureText/styleInsuranceSum.mobile.d.ts +1 -0
  214. package/lib/components/PictureText/styleInsuranceSum.mobile.js +2 -0
  215. package/lib/components/PictureText/styleInsuranceSum.mobile.js.map +1 -0
  216. package/lib/components/PictureText/styleValueBlock.d.ts +2 -0
  217. package/lib/components/PictureText/styleValueBlock.js +3 -0
  218. package/lib/components/PictureText/styleValueBlock.js.map +1 -0
  219. package/lib/components/PictureText/styleValueBlock.mobile.d.ts +2 -0
  220. package/lib/components/PictureText/styleValueBlock.mobile.js +3 -0
  221. package/lib/components/PictureText/styleValueBlock.mobile.js.map +1 -0
  222. package/lib/components/ProductGallery/ProductGallery.fixture.mobile.d.ts +7 -0
  223. package/lib/components/ProductGallery/ProductGallery.mobile.d.ts +5 -0
  224. package/lib/components/ProductGallery/ProductGallery.mobile.js +11 -0
  225. package/lib/components/ProductGallery/ProductGallery.mobile.js.map +1 -0
  226. package/lib/components/RollupItem/RollupItem.fixture.mobile.d.ts +1 -0
  227. package/lib/components/RollupItem/RollupItem.js +14 -9
  228. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  229. package/lib/components/RollupItem/RollupItemContent.d.ts +4 -2
  230. package/lib/components/RollupItem/renderRoundedIcon.d.ts +3 -0
  231. package/lib/components/RollupItem/renderRoundedIcon.js +2 -0
  232. package/lib/components/RollupItem/renderRoundedIcon.js.map +1 -0
  233. package/lib/components/RollupItem/renderRoundedIcon.mobile.d.ts +3 -0
  234. package/lib/components/RollupItem/renderRoundedIcon.mobile.js +4 -0
  235. package/lib/components/RollupItem/renderRoundedIcon.mobile.js.map +1 -0
  236. package/lib/content-page-repository/transformImg.js +1 -1
  237. package/lib/content-page-repository/transformImg.js.map +1 -1
  238. package/lib/icons/IconName.d.ts +4 -2
  239. package/lib/icons/IconName.js +3 -1
  240. package/lib/icons/IconName.js.map +1 -1
  241. package/lib/ui-kit/BenefitItem/BenefitItem.js +12 -11
  242. package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  243. package/lib/ui-kit/BenefitItem/borderRadius.mobile.d.ts +1 -0
  244. package/lib/ui-kit/BenefitItem/borderRadius.mobile.js +2 -0
  245. package/lib/ui-kit/BenefitItem/borderRadius.mobile.js.map +1 -0
  246. package/lib/ui-kit/BenefitItem/labelSize.d.ts +1 -0
  247. package/lib/ui-kit/BenefitItem/labelSize.js +2 -0
  248. package/lib/ui-kit/BenefitItem/labelSize.js.map +1 -0
  249. package/lib/ui-kit/BenefitItem/labelSize.mobile.d.ts +1 -0
  250. package/lib/ui-kit/BenefitItem/labelSize.mobile.js +2 -0
  251. package/lib/ui-kit/BenefitItem/labelSize.mobile.js.map +1 -0
  252. package/lib/ui-kit/Button/renderButtonsSection.js +2 -2
  253. package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  254. package/lib/ui-kit/Heading/Heading.js +5 -1
  255. package/lib/ui-kit/Heading/Heading.js.map +1 -1
  256. package/lib/ui-kit/Heading/headingTag.d.ts +2 -0
  257. package/lib/ui-kit/Heading/headingTag.js +2 -0
  258. package/lib/ui-kit/Heading/headingTag.js.map +1 -0
  259. package/lib/ui-kit/Heading/headingTag.mobile.d.ts +2 -0
  260. package/lib/ui-kit/Heading/headingTag.mobile.js +10 -0
  261. package/lib/ui-kit/Heading/headingTag.mobile.js.map +1 -0
  262. package/lib/ui-kit/Icon/IconProps.d.ts +8 -3
  263. package/lib/ui-kit/Icon/RoundedIcon.d.ts +5 -1
  264. package/lib/ui-kit/Icon/RoundedIcon.js +5 -1
  265. package/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
  266. package/mobile/bundle/bundle.umd.js +532 -655
  267. package/mobile/bundle/bundle.umd.min.js +1 -1
  268. package/mobile/bundle/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
  269. package/mobile/bundle/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
  270. package/mobile/bundle/components/CarouselCard/CarouselCard.d.ts +1 -1
  271. package/mobile/bundle/components/CarouselCard/getCardWidth.d.ts +1 -0
  272. package/mobile/bundle/components/CarouselCard/titleSize.d.ts +1 -0
  273. package/mobile/bundle/components/Footer/Contacts.d.ts +2 -2
  274. package/mobile/bundle/components/Footer/FooterContent.d.ts +9 -1
  275. package/mobile/bundle/components/Footer/FooterDataProps.d.ts +2 -2
  276. package/mobile/bundle/components/Header/Header.d.ts +2 -2
  277. package/mobile/bundle/components/Header/HeaderContent.d.ts +13 -1
  278. package/mobile/bundle/components/Header/HeaderTop.d.ts +6 -2
  279. package/mobile/bundle/components/PictureText/positionStyle.d.ts +1 -0
  280. package/mobile/bundle/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
  281. package/mobile/bundle/components/PictureText/styleInsuranceSum.d.ts +1 -0
  282. package/mobile/bundle/components/PictureText/styleValueBlock.d.ts +2 -0
  283. package/mobile/bundle/components/RollupItem/RollupItemContent.d.ts +4 -2
  284. package/mobile/bundle/components/RollupItem/renderRoundedIcon.d.ts +4 -0
  285. package/mobile/bundle/icons/IconName.d.ts +4 -2
  286. package/mobile/bundle/ui-kit/BenefitItem/labelSize.d.ts +1 -0
  287. package/mobile/bundle/ui-kit/Heading/headingTag.d.ts +2 -0
  288. package/mobile/bundle/ui-kit/Icon/IconProps.d.ts +8 -3
  289. package/mobile/bundle/ui-kit/Icon/RoundedIcon.d.ts +5 -1
  290. package/mobile/dist/components/BaseTile/BaseTile.js +2 -1
  291. package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
  292. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  293. package/mobile/dist/components/Blocks.js +10 -0
  294. package/mobile/dist/components/Blocks.js.map +1 -1
  295. package/mobile/dist/components/Bonus/Bonus.js +1 -1
  296. package/mobile/dist/components/BusinessBlock/BusinessCard.js +1 -1
  297. package/mobile/dist/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
  298. package/mobile/dist/components/{ButtonBlock/ButtonBlock.js → ButtonsBlock/ButtonsBlock.js} +3 -3
  299. package/mobile/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -0
  300. package/mobile/dist/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
  301. package/mobile/dist/components/{ButtonBlock/ButtonBlockContent.js → ButtonsBlock/ButtonsBlockContent.js} +1 -1
  302. package/mobile/dist/components/ButtonsBlock/ButtonsBlockContent.js.map +1 -0
  303. package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -1
  304. package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  305. package/mobile/dist/components/CarouselCard/CarouselCard.d.ts +1 -1
  306. package/mobile/dist/components/CarouselCard/CarouselCard.js +9 -7
  307. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  308. package/mobile/dist/components/CarouselCard/getCardWidth.d.ts +1 -0
  309. package/mobile/dist/components/CarouselCard/getCardWidth.js +18 -0
  310. package/mobile/dist/components/CarouselCard/getCardWidth.js.map +1 -0
  311. package/mobile/dist/components/CarouselCard/titleSize.d.ts +1 -0
  312. package/mobile/dist/components/CarouselCard/titleSize.js +4 -0
  313. package/mobile/dist/components/CarouselCard/titleSize.js.map +1 -0
  314. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
  315. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  316. package/mobile/dist/components/Footer/Contacts.d.ts +2 -2
  317. package/mobile/dist/components/Footer/Contacts.js +4 -5
  318. package/mobile/dist/components/Footer/Contacts.js.map +1 -1
  319. package/mobile/dist/components/Footer/FooterContent.d.ts +9 -1
  320. package/mobile/dist/components/Footer/FooterDataProps.d.ts +2 -2
  321. package/mobile/dist/components/Header/Header.d.ts +2 -2
  322. package/mobile/dist/components/Header/Header.js +3 -17
  323. package/mobile/dist/components/Header/Header.js.map +1 -1
  324. package/mobile/dist/components/Header/HeaderContent.d.ts +13 -1
  325. package/mobile/dist/components/Header/HeaderTop.d.ts +6 -2
  326. package/mobile/dist/components/Header/HeaderTop.js +15 -2
  327. package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
  328. package/mobile/dist/components/Headline/headlineVersionStyles.js +6 -6
  329. package/mobile/dist/components/Headline/headlineVersionStyles.js.map +1 -1
  330. package/mobile/dist/components/PictureText/PictureText.js +5 -11
  331. package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
  332. package/mobile/dist/components/PictureText/positionStyle.d.ts +1 -0
  333. package/mobile/dist/components/PictureText/positionStyle.js +4 -0
  334. package/mobile/dist/components/PictureText/positionStyle.js.map +1 -0
  335. package/mobile/dist/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
  336. package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js +15 -0
  337. package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js.map +1 -0
  338. package/mobile/dist/components/PictureText/styleInsuranceSum.d.ts +1 -0
  339. package/mobile/dist/components/PictureText/styleInsuranceSum.js +4 -0
  340. package/mobile/dist/components/PictureText/styleInsuranceSum.js.map +1 -0
  341. package/mobile/dist/components/PictureText/styleValueBlock.d.ts +2 -0
  342. package/mobile/dist/components/PictureText/styleValueBlock.js +5 -0
  343. package/mobile/dist/components/PictureText/styleValueBlock.js.map +1 -0
  344. package/mobile/dist/components/ProductGallery/ProductGallery.js +4 -17
  345. package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  346. package/mobile/dist/components/RollupItem/RollupItem.js +14 -9
  347. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  348. package/mobile/dist/components/RollupItem/RollupItemContent.d.ts +4 -2
  349. package/mobile/dist/components/RollupItem/renderRoundedIcon.d.ts +4 -0
  350. package/mobile/dist/components/RollupItem/renderRoundedIcon.js +7 -0
  351. package/mobile/dist/components/RollupItem/renderRoundedIcon.js.map +1 -0
  352. package/mobile/dist/content-page-repository/transformImg.js +1 -1
  353. package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
  354. package/mobile/dist/icons/IconName.d.ts +4 -2
  355. package/mobile/dist/icons/IconName.js +3 -1
  356. package/mobile/dist/icons/IconName.js.map +1 -1
  357. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +12 -11
  358. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  359. package/mobile/dist/ui-kit/BenefitItem/labelSize.d.ts +1 -0
  360. package/mobile/dist/ui-kit/BenefitItem/labelSize.js +4 -0
  361. package/mobile/dist/ui-kit/BenefitItem/labelSize.js.map +1 -0
  362. package/mobile/dist/ui-kit/Button/renderButtonsSection.js +2 -2
  363. package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  364. package/mobile/dist/ui-kit/Heading/Heading.js +12 -11
  365. package/mobile/dist/ui-kit/Heading/Heading.js.map +1 -1
  366. package/mobile/dist/ui-kit/Heading/headingTag.d.ts +2 -0
  367. package/mobile/dist/ui-kit/Heading/headingTag.js +13 -0
  368. package/mobile/dist/ui-kit/Heading/headingTag.js.map +1 -0
  369. package/mobile/dist/ui-kit/Icon/IconProps.d.ts +8 -3
  370. package/mobile/dist/ui-kit/Icon/RoundedIcon.d.ts +5 -1
  371. package/mobile/dist/ui-kit/Icon/RoundedIcon.js +5 -1
  372. package/mobile/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
  373. package/mobile/lib/common.css +1 -1
  374. package/mobile/lib/components/BaseTile/BaseTile.js +2 -1
  375. package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
  376. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  377. package/mobile/lib/components/Blocks.js +10 -0
  378. package/mobile/lib/components/Blocks.js.map +1 -1
  379. package/mobile/lib/components/Bonus/Bonus.js +1 -1
  380. package/mobile/lib/components/BusinessBlock/BusinessCard.js +1 -1
  381. package/mobile/lib/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
  382. package/mobile/lib/components/{ButtonBlock/ButtonBlock.js → ButtonsBlock/ButtonsBlock.js} +2 -2
  383. package/mobile/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -0
  384. package/mobile/lib/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
  385. package/mobile/lib/components/ButtonsBlock/ButtonsBlockContent.js +2 -0
  386. package/mobile/lib/components/ButtonsBlock/ButtonsBlockContent.js.map +1 -0
  387. package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -1
  388. package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  389. package/mobile/lib/components/CarouselCard/CarouselCard.d.ts +1 -1
  390. package/mobile/lib/components/CarouselCard/CarouselCard.js +9 -7
  391. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  392. package/mobile/lib/components/CarouselCard/getCardWidth.d.ts +1 -0
  393. package/mobile/lib/components/CarouselCard/getCardWidth.js +15 -0
  394. package/mobile/lib/components/CarouselCard/getCardWidth.js.map +1 -0
  395. package/mobile/lib/components/CarouselCard/titleSize.d.ts +1 -0
  396. package/mobile/lib/components/CarouselCard/titleSize.js +2 -0
  397. package/mobile/lib/components/CarouselCard/titleSize.js.map +1 -0
  398. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
  399. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  400. package/mobile/lib/components/Footer/Contacts.d.ts +2 -2
  401. package/mobile/lib/components/Footer/Contacts.js +4 -5
  402. package/mobile/lib/components/Footer/Contacts.js.map +1 -1
  403. package/mobile/lib/components/Footer/FooterContent.d.ts +9 -1
  404. package/mobile/lib/components/Footer/FooterDataProps.d.ts +2 -2
  405. package/mobile/lib/components/Header/Header.d.ts +2 -2
  406. package/mobile/lib/components/Header/Header.js +4 -18
  407. package/mobile/lib/components/Header/Header.js.map +1 -1
  408. package/mobile/lib/components/Header/HeaderContent.d.ts +13 -1
  409. package/mobile/lib/components/Header/HeaderTop.d.ts +6 -2
  410. package/mobile/lib/components/Header/HeaderTop.js +15 -2
  411. package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
  412. package/mobile/lib/components/Headline/headlineVersionStyles.js +6 -6
  413. package/mobile/lib/components/Headline/headlineVersionStyles.js.map +1 -1
  414. package/mobile/lib/components/PictureText/PictureText.js +5 -11
  415. package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
  416. package/mobile/lib/components/PictureText/positionStyle.d.ts +1 -0
  417. package/mobile/lib/components/PictureText/positionStyle.js +2 -0
  418. package/mobile/lib/components/PictureText/positionStyle.js.map +1 -0
  419. package/mobile/lib/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
  420. package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js +12 -0
  421. package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js.map +1 -0
  422. package/mobile/lib/components/PictureText/styleInsuranceSum.d.ts +1 -0
  423. package/mobile/lib/components/PictureText/styleInsuranceSum.js +2 -0
  424. package/mobile/lib/components/PictureText/styleInsuranceSum.js.map +1 -0
  425. package/mobile/lib/components/PictureText/styleValueBlock.d.ts +2 -0
  426. package/mobile/lib/components/PictureText/styleValueBlock.js +3 -0
  427. package/mobile/lib/components/PictureText/styleValueBlock.js.map +1 -0
  428. package/mobile/lib/components/ProductGallery/ProductGallery.js +5 -18
  429. package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  430. package/mobile/lib/components/RollupItem/RollupItem.js +14 -9
  431. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  432. package/mobile/lib/components/RollupItem/RollupItemContent.d.ts +4 -2
  433. package/mobile/lib/components/RollupItem/renderRoundedIcon.d.ts +4 -0
  434. package/mobile/lib/components/RollupItem/renderRoundedIcon.js +4 -0
  435. package/mobile/lib/components/RollupItem/renderRoundedIcon.js.map +1 -0
  436. package/mobile/lib/content-page-repository/transformImg.js +1 -1
  437. package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
  438. package/mobile/lib/icons/IconName.d.ts +4 -2
  439. package/mobile/lib/icons/IconName.js +3 -1
  440. package/mobile/lib/icons/IconName.js.map +1 -1
  441. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +12 -11
  442. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  443. package/mobile/lib/ui-kit/BenefitItem/labelSize.d.ts +1 -0
  444. package/mobile/lib/ui-kit/BenefitItem/labelSize.js +2 -0
  445. package/mobile/lib/ui-kit/BenefitItem/labelSize.js.map +1 -0
  446. package/mobile/lib/ui-kit/Button/renderButtonsSection.js +2 -2
  447. package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  448. package/mobile/lib/ui-kit/Heading/Heading.js +12 -11
  449. package/mobile/lib/ui-kit/Heading/Heading.js.map +1 -1
  450. package/mobile/lib/ui-kit/Heading/headingTag.d.ts +2 -0
  451. package/mobile/lib/ui-kit/Heading/headingTag.js +10 -0
  452. package/mobile/lib/ui-kit/Heading/headingTag.js.map +1 -0
  453. package/mobile/lib/ui-kit/Icon/IconProps.d.ts +8 -3
  454. package/mobile/lib/ui-kit/Icon/RoundedIcon.d.ts +5 -1
  455. package/mobile/lib/ui-kit/Icon/RoundedIcon.js +5 -1
  456. package/mobile/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
  457. package/mobile/src/components/BaseTile/BaseTile.tsx +6 -3
  458. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  459. package/mobile/src/components/Blocks.ts +10 -0
  460. package/mobile/src/components/Bonus/Bonus.tsx +1 -1
  461. package/mobile/src/components/BusinessBlock/BusinessCard.tsx +1 -1
  462. package/mobile/src/components/ButtonsBlock/ButtonsBlock.example.json +14 -0
  463. package/{src/components/ButtonBlock/ButtonBlock.tsx → mobile/src/components/ButtonsBlock/ButtonsBlock.tsx} +4 -4
  464. package/mobile/src/components/ButtonsBlock/ButtonsBlock.ui.json +14 -0
  465. package/mobile/src/components/ButtonsBlock/ButtonsBlockContent.ts +9 -0
  466. package/mobile/src/components/CardTransfer/CardTransfer.tsx +9 -3
  467. package/mobile/src/components/CarouselCard/CarouselCard.tsx +16 -12
  468. package/mobile/src/components/CarouselCard/getCardWidth.tsx +16 -0
  469. package/mobile/src/components/CarouselCard/titleSize.tsx +1 -0
  470. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -3
  471. package/mobile/src/components/Footer/Contacts.tsx +20 -12
  472. package/mobile/src/components/Footer/FooterContent.ts +10 -1
  473. package/mobile/src/components/Footer/FooterDataProps.ts +2 -2
  474. package/mobile/src/components/Header/Header.tsx +19 -50
  475. package/mobile/src/components/Header/HeaderContent.ts +15 -1
  476. package/mobile/src/components/Header/HeaderTop.tsx +62 -25
  477. package/mobile/src/components/Headline/headlineVersionStyles.ts +6 -6
  478. package/mobile/src/components/PictureText/PictureText.tsx +13 -27
  479. package/mobile/src/components/PictureText/positionStyle.tsx +1 -0
  480. package/mobile/src/components/PictureText/renderInsuranceSumMonth.tsx +28 -0
  481. package/mobile/src/components/PictureText/styleInsuranceSum.tsx +1 -0
  482. package/mobile/src/components/PictureText/styleValueBlock.tsx +2 -0
  483. package/mobile/src/components/ProductGallery/ProductGallery.tsx +18 -59
  484. package/mobile/src/components/RollupItem/RollupItem.tsx +25 -18
  485. package/mobile/src/components/RollupItem/RollupItem.ui.json +7 -1
  486. package/mobile/src/components/RollupItem/RollupItemContent.ts +4 -2
  487. package/mobile/src/components/RollupItem/renderRoundedIcon.tsx +7 -0
  488. package/mobile/src/content-page-repository/transformImg.ts +1 -1
  489. package/mobile/src/icons/ChevronLeft.svg +3 -0
  490. package/mobile/src/icons/IconName.ts +5 -5
  491. package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +26 -22
  492. package/mobile/src/ui-kit/BenefitItem/labelSize.tsx +1 -0
  493. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +8 -2
  494. package/mobile/src/ui-kit/Heading/Heading.tsx +17 -16
  495. package/mobile/src/ui-kit/Heading/headingTag.ts +12 -0
  496. package/mobile/src/ui-kit/Icon/IconProps.ts +9 -4
  497. package/mobile/src/ui-kit/Icon/RoundedIcon.tsx +18 -6
  498. package/package.json +1 -1
  499. package/src/components/BaseTile/BaseTile.tsx +6 -3
  500. package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  501. package/src/components/Blocks.mobile.ts +10 -0
  502. package/src/components/Blocks.ts +2 -2
  503. package/src/components/Bonus/Bonus.tsx +1 -1
  504. package/src/components/BusinessBlock/BusinessCard.tsx +1 -1
  505. package/src/components/ButtonsBlock/ButtonsBlock.example.json +14 -0
  506. package/src/components/ButtonsBlock/ButtonsBlock.fixture.mobile.tsx +26 -0
  507. package/src/components/ButtonsBlock/ButtonsBlock.fixture.tsx +26 -0
  508. package/{mobile/src/components/ButtonBlock/ButtonBlock.tsx → src/components/ButtonsBlock/ButtonsBlock.tsx} +4 -4
  509. package/src/components/ButtonsBlock/ButtonsBlock.ui.json +14 -0
  510. package/src/components/ButtonsBlock/ButtonsBlockContent.ts +9 -0
  511. package/src/components/CardTransfer/CardTransfer.fixture.mobile.tsx +18 -0
  512. package/src/components/CardTransfer/CardTransfer.tsx +9 -3
  513. package/src/components/CarouselCard/CarouselCard.fixture.mobile.tsx +28 -0
  514. package/src/components/CarouselCard/CarouselCard.tsx +16 -12
  515. package/src/components/CarouselCard/getCardWidth.tsx +16 -0
  516. package/src/components/CarouselCard/titleSize.mobile.tsx +1 -0
  517. package/src/components/CarouselCard/titleSize.tsx +1 -0
  518. package/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -3
  519. package/src/components/Footer/Contacts.tsx +20 -12
  520. package/src/components/Footer/FooterContent.ts +10 -1
  521. package/src/components/Footer/FooterDataProps.ts +2 -2
  522. package/src/components/Header/Header.fixture.mobile.tsx +4 -0
  523. package/src/components/Header/Header.mobile.tsx +19 -50
  524. package/src/components/Header/HeaderContent.ts +15 -1
  525. package/src/components/Header/HeaderTop.tsx +62 -25
  526. package/src/components/Headline/headlineVersionStyles.ts +6 -6
  527. package/src/components/PictureText/PictureText.fixture.mobile.tsx +122 -0
  528. package/src/components/PictureText/PictureText.tsx +13 -27
  529. package/src/components/PictureText/positionStyle.mobile.tsx +1 -0
  530. package/src/components/PictureText/positionStyle.tsx +1 -0
  531. package/src/components/PictureText/renderInsuranceSumMonth.tsx +28 -0
  532. package/src/components/PictureText/styleInsuranceSum.mobile.tsx +1 -0
  533. package/src/components/PictureText/styleInsuranceSum.tsx +1 -0
  534. package/src/components/PictureText/styleValueBlock.mobile.tsx +2 -0
  535. package/src/components/PictureText/styleValueBlock.tsx +2 -0
  536. package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +142 -0
  537. package/src/components/ProductGallery/ProductGallery.mobile.tsx +34 -0
  538. package/src/components/RollupItem/RollupItem.fixture.mobile.tsx +15 -0
  539. package/src/components/RollupItem/RollupItem.tsx +25 -18
  540. package/src/components/RollupItem/RollupItem.ui.json +7 -1
  541. package/src/components/RollupItem/RollupItemContent.ts +4 -2
  542. package/src/components/RollupItem/renderRoundedIcon.mobile.tsx +7 -0
  543. package/src/components/RollupItem/renderRoundedIcon.tsx +4 -0
  544. package/src/content-page-repository/transformImg.ts +1 -1
  545. package/src/icons/ChevronLeft.svg +3 -0
  546. package/src/icons/IconName.ts +5 -1
  547. package/src/ui-kit/BenefitItem/BenefitItem.tsx +26 -22
  548. package/src/ui-kit/BenefitItem/borderRadius.mobile.tsx +1 -0
  549. package/src/ui-kit/BenefitItem/labelSize.mobile.tsx +1 -0
  550. package/src/ui-kit/BenefitItem/labelSize.tsx +1 -0
  551. package/src/ui-kit/Button/renderButtonsSection.tsx +8 -2
  552. package/src/ui-kit/Heading/Heading.fixture.mobile.tsx +6 -6
  553. package/src/ui-kit/Heading/Heading.fixture.tsx +6 -6
  554. package/src/ui-kit/Heading/Heading.tsx +8 -3
  555. package/src/ui-kit/Heading/headingTag.mobile.ts +12 -0
  556. package/src/ui-kit/Heading/headingTag.ts +3 -0
  557. package/src/ui-kit/Icon/IconProps.ts +9 -4
  558. package/src/ui-kit/Icon/RoundedIcon.tsx +18 -6
  559. package/tailwind.config.cjs +10 -4
  560. package/bundle/components/ButtonBlock/ButtonBlock.d.ts +0 -6
  561. package/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
  562. package/bundle/ui-kit/Heading/Heading.mobile.d.ts +0 -2
  563. package/dist/components/ButtonBlock/ButtonBlock.d.ts +0 -6
  564. package/dist/components/ButtonBlock/ButtonBlock.js.map +0 -1
  565. package/dist/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
  566. package/dist/components/ButtonBlock/ButtonBlockContent.js.map +0 -1
  567. package/dist/ui-kit/Heading/Heading.mobile.d.ts +0 -2
  568. package/dist/ui-kit/Heading/Heading.mobile.js +0 -18
  569. package/dist/ui-kit/Heading/Heading.mobile.js.map +0 -1
  570. package/lib/components/ButtonBlock/ButtonBlock.d.ts +0 -6
  571. package/lib/components/ButtonBlock/ButtonBlock.js.map +0 -1
  572. package/lib/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
  573. package/lib/components/ButtonBlock/ButtonBlockContent.js +0 -2
  574. package/lib/components/ButtonBlock/ButtonBlockContent.js.map +0 -1
  575. package/lib/ui-kit/Heading/Heading.mobile.d.ts +0 -2
  576. package/lib/ui-kit/Heading/Heading.mobile.js +0 -16
  577. package/lib/ui-kit/Heading/Heading.mobile.js.map +0 -1
  578. package/mobile/bundle/components/ButtonBlock/ButtonBlock.d.ts +0 -6
  579. package/mobile/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
  580. package/mobile/dist/components/ButtonBlock/ButtonBlock.d.ts +0 -6
  581. package/mobile/dist/components/ButtonBlock/ButtonBlock.js.map +0 -1
  582. package/mobile/dist/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
  583. package/mobile/dist/components/ButtonBlock/ButtonBlockContent.js.map +0 -1
  584. package/mobile/lib/components/ButtonBlock/ButtonBlock.d.ts +0 -6
  585. package/mobile/lib/components/ButtonBlock/ButtonBlock.js.map +0 -1
  586. package/mobile/lib/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
  587. package/mobile/lib/components/ButtonBlock/ButtonBlockContent.js +0 -2
  588. package/mobile/lib/components/ButtonBlock/ButtonBlockContent.js.map +0 -1
  589. package/mobile/src/components/ButtonBlock/ButtonBlock.example.json +0 -12
  590. package/mobile/src/components/ButtonBlock/ButtonBlock.ui.json +0 -12
  591. package/mobile/src/components/ButtonBlock/ButtonBlockContent.ts +0 -9
  592. package/src/components/ButtonBlock/ButtonBlock.example.json +0 -12
  593. package/src/components/ButtonBlock/ButtonBlock.fixture.tsx +0 -19
  594. package/src/components/ButtonBlock/ButtonBlock.ui.json +0 -12
  595. package/src/components/ButtonBlock/ButtonBlockContent.ts +0 -9
  596. package/src/ui-kit/Heading/Heading.mobile.tsx +0 -22
  597. /package/lib/components/{ButtonBlock/ButtonBlock.fixture.d.ts → ButtonsBlock/ButtonsBlock.fixture.d.ts} +0 -0
@@ -1,23 +1,24 @@
1
+ import type { CarouselCardContent } from './CarouselCardContent';
2
+ import { Headline } from '../Headline/Headline';
1
3
  import { JSX } from '@redneckz/uni-jsx';
2
4
  import type { UniBlockProps } from '../../model/JSXBlock';
3
- import type { SizeVersion } from '../../model/SizeVersion';
5
+ import { getCardWidth } from './getCardWidth';
4
6
  import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
5
- import { Headline } from '../Headline/Headline';
6
- import type { CarouselCardContent } from './CarouselCardContent';
7
+ import { style } from '../../utils/style';
8
+ import { titleSize } from './titleSize';
7
9
 
8
10
  export interface CarouselCardProps extends CarouselCardContent, UniBlockProps {}
9
11
 
10
- const BLOCK_CLASSES = 'absolute border border-solid border-gray w-full h-full';
11
-
12
- const CARD_WIDTH_MAP: Record<SizeVersion, string> = {
13
- normal: 'min-w-[970px]',
14
- small: 'min-w-[355px]',
15
- };
12
+ const BLOCK_CLASSES = 'absolute border border-solid border-gray w-full h-full sm:hidden';
16
13
 
17
14
  export const CarouselCard = JSX<CarouselCardProps>(
18
15
  ({ className = '', button, description, title, carouselVersion = 'normal', version = '' }) => (
19
16
  <section
20
- className={`flex pb-9 pl-12 border-box h-full ${CARD_WIDTH_MAP[carouselVersion]} ${className}`}
17
+ className={style(
18
+ 'flex pb-9 pl-12 sm:p-5 border-box h-full sm:max-w-[375px]',
19
+ getCardWidth(className, carouselVersion),
20
+ className,
21
+ )}
21
22
  >
22
23
  <div className="relative w-full">
23
24
  <div className={`${BLOCK_CLASSES} z-10 top-9 right-12 bg-green-dark`} />
@@ -28,11 +29,14 @@ export const CarouselCard = JSX<CarouselCardProps>(
28
29
  className="!p-0"
29
30
  title={title}
30
31
  description={description}
31
- headlineVersion="L"
32
+ headlineVersion={titleSize}
32
33
  align="text-left"
33
34
  version={version}
34
35
  />
35
- {renderButtonsSection([button], { className: 'mt-14' })}
36
+ {renderButtonsSection([button], {
37
+ className: 'mt-14 sm:justify-center',
38
+ isVertical: true,
39
+ })}
36
40
  </div>
37
41
  </div>
38
42
  </section>
@@ -0,0 +1,16 @@
1
+ import type { SizeVersion } from '../../model/SizeVersion';
2
+ import { getColSpan } from '../../utils/getColSpan';
3
+
4
+ const CARD_WIDTH_MAP: Record<SizeVersion, string> = {
5
+ normal: 'min-w-[970px]',
6
+ small: 'min-w-[355px]',
7
+ };
8
+
9
+ export function getCardWidth(className = '', carouselVersion = 'normal') {
10
+ const colSpan = getColSpan(className);
11
+ if (colSpan <= 4) {
12
+ return 'w-[375px]';
13
+ } else {
14
+ return CARD_WIDTH_MAP[carouselVersion] as string;
15
+ }
16
+ }
@@ -0,0 +1 @@
1
+ export const titleSize = 'XS';
@@ -0,0 +1 @@
1
+ export const titleSize = 'L';
@@ -63,9 +63,7 @@ export const CarouselProductCard = JSX<CarouselProductCardProps>(
63
63
  const renderImage = (image?: Picture) => (
64
64
  <div className="flex justify-center">
65
65
  {image?.src ? <Img className="mb-5" image={image} /> : null}
66
- {image?.icon ? (
67
- <Img className={`w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full`} image={image} />
68
- ) : null}
66
+ {image?.icon ? <Img className={`w-8 h-8 min-w-8 mb-5`} image={image} /> : null}
69
67
  </div>
70
68
  );
71
69
 
@@ -1,16 +1,17 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { Button } from '../../ui-kit/Button/Button';
3
- import type { ContactInfo } from './FooterContent';
3
+ import { Text } from '../../ui-kit/Text/Text';
4
+ import type { ContactGroup, ContactInfo } from './FooterContent';
4
5
 
5
6
  export interface ContactsProps {
6
7
  className?: string;
7
- items?: ContactInfo[];
8
+ items?: ContactGroup[];
8
9
  hasButton?: boolean;
9
10
  }
10
11
 
11
12
  export const Contacts = JSX<ContactsProps>(({ className = '', items, hasButton }) => (
12
13
  <div className={className}>
13
- {items?.length ? items.map(renderContact) : null}
14
+ {items?.length ? items.map(renderContactsGroup) : null}
14
15
  {hasButton ? (
15
16
  <Button
16
17
  version="primary"
@@ -24,16 +25,23 @@ export const Contacts = JSX<ContactsProps>(({ className = '', items, hasButton }
24
25
  </div>
25
26
  ));
26
27
 
27
- const renderContact = (item: ContactInfo, index: number) => {
28
- const { type, text, description } = item;
29
-
30
- return (
31
- <div className="mb-4" key={String(index)}>
32
- <div>{renderText(type, text)}</div>
33
- <div className="mt-1 text-s-light text-secondary-text">{description}</div>
28
+ const renderContactsGroup = (item: ContactGroup, i: number) => (
29
+ <div className="mb-6" key={String(i)}>
30
+ <div className="mb-4">
31
+ <Text size="text-l" font="font-medium">
32
+ {item?.title}
33
+ </Text>
34
34
  </div>
35
- );
36
- };
35
+ <div>{item.items?.map(renderContact)}</div>
36
+ </div>
37
+ );
38
+
39
+ const renderContact = (item: ContactInfo, index: number) => (
40
+ <div className="mb-4" key={String(index)}>
41
+ <div>{renderText(item.type, item.text)}</div>
42
+ <div className="mt-1 text-s-light text-secondary-text">{item.description}</div>
43
+ </div>
44
+ );
37
45
 
38
46
  const renderText = (type: ContactInfo['type'], text = '') => {
39
47
  switch (type) {
@@ -1,7 +1,7 @@
1
1
  import type { DescriptionProps } from '../../model/HeadlineType';
2
+ import type { UniBlockContent } from '../../model/JSXBlock';
2
3
  import type { LinkProps } from '../../model/LinkProps';
3
4
  import type { IconProps } from '../../model/Picture';
4
- import type { UniBlockContent } from '../../model/JSXBlock';
5
5
 
6
6
  /**
7
7
  * @title Тип контакта
@@ -21,6 +21,15 @@ export type ContactInfo = DescriptionProps & {
21
21
  type?: ContactType;
22
22
  };
23
23
 
24
+ /**
25
+ * @title Группа контактов
26
+ */
27
+ export type ContactGroup = {
28
+ /** @title Имя */
29
+ title?: string;
30
+ items?: ContactInfo[];
31
+ };
32
+
24
33
  /**
25
34
  * @title Пункт подменю
26
35
  */
@@ -1,12 +1,12 @@
1
1
  import type { LinkCommonProps, LinkProps } from '../../model/LinkProps';
2
2
  import type { Picture } from '../../model/Picture';
3
3
  import type { SitemapData } from '../../services/sitemap/SitemapData';
4
- import type { ContactInfo, SubMenuItem } from './FooterContent';
4
+ import type { ContactGroup, SubMenuItem } from './FooterContent';
5
5
 
6
6
  export interface FooterDataProps extends SitemapData {
7
7
  documents?: LinkProps[];
8
8
  relatedEnterprises?: LinkProps[];
9
- contacts?: ContactInfo[];
9
+ contacts?: ContactGroup[];
10
10
  socialMedia?: LinkCommonProps[];
11
11
  mobileApps?: LinkCommonProps[];
12
12
  horizontalNavigationTitle?: string; // TODO: для мобильной версии
@@ -5,4 +5,8 @@ import { Header } from './Header.mobile';
5
5
  export default {
6
6
  default: <Header />,
7
7
  transparent: <Header bgColor="transparent" />,
8
+ withTitle: <Header mobileHeaderType="withTitle" mobileTitle="Все кредитные карты" />,
9
+ backButton: (
10
+ <Header mobileHeaderType="backwardButton" mobileBackwardButtonTitle="Кредитные карты" />
11
+ ),
8
12
  };
@@ -1,78 +1,47 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
3
- import { useRouter } from '../../hooks/useRouter';
4
2
  import { useSWRResource } from '../../hooks/useSWRResource';
5
3
  import type { BgColorVersion } from '../../model/BgColorVersion';
6
4
  import type { BlockVersion } from '../../model/BlockVersion';
7
5
  import type { Fallback } from '../../model/Fallback';
8
6
  import type { UniBlockProps } from '../../model/JSXBlock';
9
7
  import { projectSettings } from '../../ProjectSettings';
10
- import { findActiveSubItem } from '../../services/sitemap/findActiveSubItem';
11
- import { isTopItemActive } from '../../services/sitemap/isTopItemActive';
12
8
  import type { SitemapData } from '../../services/sitemap/SitemapData';
13
9
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
14
- import { HeaderItem } from '../../ui-kit/HeaderItem/HeaderItem';
15
- import { LinkList } from '../../ui-kit/LinkList/LinkList';
16
- import { RollupItem } from '../RollupItem/RollupItem';
17
- import { HeaderBurger } from './HeaderBurger';
18
- import type { HeaderContent } from './HeaderContent';
19
10
  import { HeaderTop } from './HeaderTop';
11
+ import type { HeaderContent } from './HeaderContent';
20
12
 
21
- export interface HeaderProps extends HeaderContent, UniBlockProps {}
13
+ export interface HeaderMobileProps extends HeaderContent, UniBlockProps {}
22
14
 
23
15
  const BG_COLOR_TO_BLOCK_VERSION: Record<BgColorVersion, BlockVersion> = {
24
16
  'bg-white': 'primary',
25
17
  transparent: 'transparent',
26
18
  };
27
19
 
28
- export const Header = JSX<HeaderProps>(
29
- ({ bgColor = 'bg-white', version = BG_COLOR_TO_BLOCK_VERSION[bgColor], ...rest }) => {
30
- const router = useRouter();
31
-
20
+ export const Header = JSX<HeaderMobileProps>(
21
+ ({
22
+ bgColor = 'bg-white',
23
+ version = BG_COLOR_TO_BLOCK_VERSION[bgColor],
24
+ mobileHeaderType = 'none',
25
+ ...rest
26
+ }) => {
32
27
  const fallback: Fallback | undefined = rest.options?.page?.fallback;
33
- const { topItems, dispositions, defaultLocation, logo } = useSWRResource<SitemapData>(
28
+ const { logo, internetBankUrl } = useSWRResource<SitemapData>(
34
29
  projectSettings.SITEMAP || 'sitemap',
35
30
  fallback,
36
31
  );
37
32
 
38
- const activeTopItem = topItems?.find(isTopItemActive(router));
39
- const subItems = activeTopItem?.items;
40
- const activeSubItem = findActiveSubItem(router)(subItems);
41
- const [burgerMenuShow, setBurgerMenuShow] = useState(false);
42
- const handleBurgerMenuShow = useCallback(() => setBurgerMenuShow((_) => !_), []);
43
-
44
33
  return (
45
34
  <BlockWrapper tag="header" version={version} {...rest}>
46
- <div className="container px-4 py-0 box-border">
47
- <HeaderTop onClick={handleBurgerMenuShow} bgColor={bgColor} logo={logo} />
48
- <nav className="flex items-center m-0 p-0 overflow-y-hidden w-full h-12">
49
- <div className="flex no-scrollbar horizontal-list h-full items-center">
50
- {subItems?.map((_, i) => (
51
- <HeaderItem
52
- key={String(i)}
53
- className="mr-8 whitespace-nowrap text-s"
54
- active={_ === activeSubItem}
55
- {..._}
56
- />
57
- ))}
58
- </div>
59
- </nav>
35
+ <div className="container px-4 py-1 box-border">
36
+ <HeaderTop
37
+ bgColor={bgColor}
38
+ logo={logo}
39
+ internetBankUrl={internetBankUrl}
40
+ version={version}
41
+ mobileHeaderType={mobileHeaderType}
42
+ {...rest}
43
+ />
60
44
  </div>
61
- {burgerMenuShow ? (
62
- <HeaderBurger
63
- onClick={handleBurgerMenuShow}
64
- burgerSubMenu={dispositions}
65
- defaultLocation={defaultLocation}
66
- >
67
- <div className="list-none m-0 p-0">
68
- {topItems?.map((item, i) => (
69
- <RollupItem key={String(i)} label={item.text}>
70
- <LinkList className="mt-2.5" items={item.items} />
71
- </RollupItem>
72
- ))}
73
- </div>
74
- </HeaderBurger>
75
- ) : null}
76
45
  </BlockWrapper>
77
46
  );
78
47
  },
@@ -25,10 +25,24 @@ export type Logo = ImageContent & {
25
25
  title?: string;
26
26
  };
27
27
 
28
+ /**
29
+ * @title Мобильный тип шапки
30
+ * @enumNames ["Не выбрано", "Название", "Кнопка возврата"]
31
+ */
32
+ export type MobileHeaderType = 'none' | 'withTitle' | 'backwardButton';
33
+
34
+ export interface MobileHeaderProps {
35
+ mobileHeaderType?: MobileHeaderType;
36
+ /** @title Название (мобильная версия) */
37
+ mobileTitle?: string;
38
+ /** @title Кнопка возврата (мобильная версия) */
39
+ mobileBackwardButtonTitle?: string;
40
+ }
41
+
28
42
  /**
29
43
  * @title Шапка (для мобильных горизонтальная прокрутка shift+mouseScroll)
30
44
  */
31
- export interface HeaderContent {
45
+ export interface HeaderContent extends MobileHeaderProps {
32
46
  /** @hidden */
33
47
  showSubMenu?: boolean;
34
48
  /** @hidden */
@@ -1,34 +1,71 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { BgColorVersion } from '../../model/BgColorVersion';
3
3
  import type { LogoType } from '../../model/LogoType';
4
- import { Img } from '../../ui-kit/Img/Img';
5
4
  import { Logo } from '../../ui-kit/Logo/Logo';
5
+ import { Button } from '../../ui-kit/Button/Button';
6
+ import { style } from '../../utils/style';
7
+ import type { BlockVersion } from '../../model/BlockVersion';
8
+ import type { MobileHeaderProps, MobileHeaderType } from './HeaderContent';
9
+ import { Img } from '../../ui-kit/Img/Img';
6
10
 
7
- export interface HeaderTopProps {
8
- onClick: () => void;
11
+ export interface HeaderTopProps extends MobileHeaderProps {
9
12
  bgColor?: BgColorVersion;
10
13
  logo?: LogoType;
14
+ internetBankUrl?: string;
15
+ version?: BlockVersion;
16
+ mobileHeaderType?: MobileHeaderType;
11
17
  }
12
18
 
13
- export const HeaderTop = JSX<HeaderTopProps>(({ onClick, bgColor, logo }) => (
14
- <div className="flex items-center justify-between border-0 border-b border-main-divider h-12">
15
- <div className="flex items-center">
16
- <button
17
- className="pl-0 pr-4 border-0 bg-transparent cursor-pointer"
18
- onClick={onClick}
19
- aria-label="Открыть меню"
20
- >
21
- <Img
22
- image={{ icon: 'BurgerIcon', iconVersion: bgColor === 'bg-white' ? 'black' : 'white' }}
23
- className="text-primary-text w-6 h-6"
24
- width="24"
25
- height="24"
26
- />
27
- </button>
28
- <Logo className="mr-8" bgColor={bgColor} logo={logo} />
29
- </div>
30
- <button className="text-primary-main group-data-transparent:text-white group-data-transparent:hover:text-primary-hover text-s border-0 bg-transparent">
31
- Войти
32
- </button>
33
- </div>
34
- ));
19
+ const BUTTON_STYLE = {
20
+ default: 'px-5 bg-main-divider rounded hover:text-primary-main',
21
+ transparent: 'text-white hover:text-primary-hover',
22
+ };
23
+
24
+ export const HeaderTop = JSX<HeaderTopProps>(
25
+ ({
26
+ bgColor,
27
+ logo,
28
+ internetBankUrl,
29
+ version,
30
+ mobileHeaderType,
31
+ mobileTitle,
32
+ mobileBackwardButtonTitle,
33
+ }) => {
34
+ const isTypeNone = mobileHeaderType === 'none';
35
+ const isTypeWithTitle = mobileHeaderType === 'withTitle';
36
+
37
+ return (
38
+ <div className="flex items-center justify-between w-full">
39
+ {isTypeNone || isTypeWithTitle ? (
40
+ <Logo bgColor={bgColor} logo={logo} showTitle={isTypeNone} />
41
+ ) : null}
42
+ {isTypeWithTitle ? mobileTitle : null}
43
+ {mobileHeaderType === 'backwardButton' ? (
44
+ <Button className="flex items-center text-l">
45
+ <Img
46
+ className="w-6 h-6"
47
+ image={{
48
+ icon: 'ChevronLeft',
49
+ iconVersion: 'black',
50
+ }}
51
+ />
52
+ {mobileBackwardButtonTitle}
53
+ </Button>
54
+ ) : null}
55
+ {internetBankUrl ? (
56
+ <Button
57
+ href={internetBankUrl}
58
+ ariaLabel="Войти"
59
+ target="_blank"
60
+ className={style(
61
+ 'p-3 my-1 text-s whitespace-nowrap text-primary-main hover:text-primary-hover',
62
+ BUTTON_STYLE[version === 'transparent' ? 'transparent' : 'default'],
63
+ )}
64
+ >
65
+ Войти
66
+ </Button>
67
+ ) : null}
68
+ </div>
69
+ );
70
+ },
71
+ );
@@ -13,32 +13,32 @@ export const headlineVersionStyles: Record<
13
13
  XXL: {
14
14
  title: { headingType: 'h0', as: 'h1' },
15
15
  descriptionSize: 'text-h5',
16
- descriptionStyle: 'mt-5',
16
+ descriptionStyle: 'mt-headline-xxl',
17
17
  },
18
18
  XL: {
19
19
  title: { headingType: 'h1', as: 'h1' },
20
20
  descriptionSize: 'text-xl-light',
21
- descriptionStyle: 'mt-4',
21
+ descriptionStyle: 'mt-headline-l',
22
22
  },
23
23
  L: {
24
24
  title: { headingType: 'h2', as: 'h2' },
25
25
  descriptionSize: 'text-xl-light',
26
- descriptionStyle: 'mt-4',
26
+ descriptionStyle: 'mt-headline-l',
27
27
  },
28
28
  M: {
29
29
  title: { headingType: 'h3', as: 'h3' },
30
30
  descriptionSize: 'text-xl-light',
31
- descriptionStyle: 'mt-3',
31
+ descriptionStyle: 'mt-headline-m',
32
32
  },
33
33
  S: {
34
34
  title: { headingType: 'h4', as: 'h4' },
35
35
  descriptionSize: 'text-xl-light',
36
- descriptionStyle: 'mt-2',
36
+ descriptionStyle: 'mt-headline-s',
37
37
  },
38
38
  XS: {
39
39
  title: { headingType: 'h5', as: 'h5' },
40
40
  descriptionSize: 'text-l-light',
41
- descriptionStyle: 'mt-2',
41
+ descriptionStyle: 'mt-headline-s',
42
42
  },
43
43
  };
44
44
 
@@ -0,0 +1,122 @@
1
+ import type { Picture } from '../../model/Picture';
2
+ import '../../setup-fixture';
3
+ import { PictureText } from './PictureText';
4
+ import type { PictureTextContent } from './PictureTextContent';
5
+
6
+ const imageInsurance: Picture = {
7
+ src: 'insurance.png',
8
+ format: 'webp',
9
+ alt: 'Страховые риски и продукты',
10
+ size: {
11
+ width: 335,
12
+ },
13
+ sources: [
14
+ {
15
+ src: 'insurance.png',
16
+ format: 'png',
17
+ },
18
+ ],
19
+ };
20
+
21
+ const imageMonitor: Picture = {
22
+ src: 'monitor.png',
23
+ format: 'webp',
24
+ alt: 'Управление несколькими счетами',
25
+ size: {
26
+ width: 420,
27
+ },
28
+ };
29
+ export const PICTURE_TEXT: PictureTextContent = {
30
+ title: 'Страховые риски и продукты',
31
+ description: 'Покрываемые риски программы «Страхование от потери работы»',
32
+ benefits: [
33
+ {
34
+ type: 'default',
35
+ label: 'Кредит по одному документу',
36
+ description: 'До 300 тыс ₽ по упрощённой процедуре получения кредита',
37
+ icon: { icon: 'DocumentTextIcon' },
38
+ },
39
+ {
40
+ type: 'default',
41
+ label: 'Кредит на общих условиях',
42
+ description: 'До 5 млн ₽ на общих условиях получения кредита',
43
+ icon: { icon: 'DocumentTextIcon', iconVersion: 'white' },
44
+ },
45
+ ],
46
+ };
47
+
48
+ export const INSURANCE_TEXT: PictureTextContent = {
49
+ title: 'Страховые риски и продукты',
50
+ description: 'Покрываемые риски программы «Защита вас и ваших близких»',
51
+ benefits: [
52
+ {
53
+ type: 'default',
54
+ label: 'Телесное повреждение',
55
+ icon: { icon: 'ShieldTickIcon' },
56
+ },
57
+ {
58
+ type: 'default',
59
+ label: 'Госпитализация застрахованного',
60
+ description: 'Описание',
61
+ icon: { icon: 'ShieldTickIcon' },
62
+ },
63
+ {
64
+ type: 'default',
65
+ label: 'Сокращение численности работников организации и другой текст для теста длинны текста',
66
+ icon: { icon: 'ShieldTickIcon' },
67
+ },
68
+ {
69
+ type: 'default',
70
+ label: 'Смерть застрахованного',
71
+ icon: { icon: 'ShieldTickIcon' },
72
+ },
73
+ ],
74
+ image: imageInsurance,
75
+ sum: 500000,
76
+ };
77
+
78
+ export const BENEFITS_HTML_TEXT: PictureTextContent = {
79
+ title: '',
80
+ benefits: [
81
+ {
82
+ type: 'rte',
83
+ __html:
84
+ '<p class="h3">Управление несколькими счетами</p><p>Контролируйте баланс, пересылайте реквизиты контрагентам и установите любимый счёт для регулярных платежей</p>',
85
+ },
86
+ {
87
+ type: 'rte',
88
+ __html:
89
+ '<p class="h3">Управление несколькими счетами</p><p>Контролируйте баланс, пересылайте реквизиты контрагентам и установите любимый счёт для регулярных платежей</p>',
90
+ },
91
+ ],
92
+
93
+ image: imageMonitor,
94
+ };
95
+
96
+ export default {
97
+ default: (
98
+ <div className="container grid grid-cols-12">
99
+ <PictureText className="col-span-12" {...PICTURE_TEXT} />
100
+ </div>
101
+ ),
102
+ secondary: (
103
+ <div className="container grid grid-cols-12">
104
+ <PictureText className="col-span-12" {...PICTURE_TEXT} version="secondary" />
105
+ </div>
106
+ ),
107
+ 'insurance sum': (
108
+ <div className="container grid grid-cols-12">
109
+ <PictureText className="col-span-12" {...INSURANCE_TEXT} />
110
+ </div>
111
+ ),
112
+ 'insurance monthPay': (
113
+ <div className="container grid grid-cols-12">
114
+ <PictureText className="col-span-12" {...INSURANCE_TEXT} monthLimit={25000} />
115
+ </div>
116
+ ),
117
+ 'benefits as html': (
118
+ <div className="container grid grid-cols-12">
119
+ <PictureText className="col-span-12" {...BENEFITS_HTML_TEXT} />
120
+ </div>
121
+ ),
122
+ };
@@ -2,10 +2,12 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { UniBlockProps } from '../../model/JSXBlock';
3
3
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
4
  import { Img } from '../../ui-kit/Img/Img';
5
- import { toLocalNumberFormat } from '../../utils/toLocalNumberFormat';
6
5
  import { Headline } from '../Headline/Headline';
7
6
  import type { PictureTextContent } from './PictureTextContent';
8
7
  import { renderBenefit } from './renderBenefit';
8
+ import { style } from '../../utils/style';
9
+ import { positionStyle } from './positionStyle';
10
+ import { renderInsuranceSumMonth } from './renderInsuranceSumMonth';
9
11
 
10
12
  export interface PictureTextProps extends PictureTextContent, UniBlockProps {}
11
13
 
@@ -22,11 +24,17 @@ export const PictureText = JSX<PictureTextProps>(
22
24
  version = 'primary',
23
25
  ...rest
24
26
  }) => (
25
- <BlockWrapper className={`relative py-12 px-24 ${className}`} version={version} {...rest}>
26
- <Headline className="!p-0" title={title} description={description} headlineVersion="M" />
27
- <div className={'flex justify-center gap-[122px] mt-[30px]'}>
27
+ <BlockWrapper className={style('relative p-default', className)} version={version} {...rest}>
28
+ <Headline
29
+ className="!p-0"
30
+ title={title}
31
+ description={description}
32
+ headlineVersion="M" // TODO: Сверить с макетом после влития мобильных правок Headline (DRAFT)
33
+ align="text-left"
34
+ />
35
+ <div className={style('flex mt-6', positionStyle)}>
28
36
  {image?.src ? <Img className={directionRight ? 'order-2' : ''} image={image} /> : null}
29
- <div className="w-[558px] m-auto">
37
+ <div>
30
38
  {benefits?.length ? (
31
39
  <div className="flex flex-col gap-4">{benefits.map(renderBenefit(version))}</div>
32
40
  ) : null}
@@ -36,25 +44,3 @@ export const PictureText = JSX<PictureTextProps>(
36
44
  </BlockWrapper>
37
45
  ),
38
46
  );
39
-
40
- function renderInsuranceSumMonth(sum?: number, monthLimit?: number) {
41
- return sum || monthLimit ? (
42
- <div className="bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4">
43
- {Number(sum) > 0 ? renderValueBlock('Страховая сумма:', sum, Boolean(monthLimit)) : null}
44
- {Number(monthLimit) > 0
45
- ? renderValueBlock('Ежемесячный лимит:', monthLimit, Boolean(sum))
46
- : null}
47
- </div>
48
- ) : null;
49
- }
50
-
51
- function renderValueBlock(title: string, sum = 0, isAnotherBlock = false) {
52
- const widthStyle = isAnotherBlock ? 'w-fit' : 'w-full';
53
-
54
- return (
55
- <div className={`flex justify-between items-center gap-2 w-full whitespace-pre ${widthStyle}`}>
56
- <span className="text-secondary-text text-l-light">{title}</span>
57
- <span className="text-primary-main text-h6">{toLocalNumberFormat(2)(sum)} ₽</span>
58
- </div>
59
- );
60
- }
@@ -0,0 +1 @@
1
+ export const positionStyle = 'justify-end flex-col-reverse gap-4';
@@ -0,0 +1 @@
1
+ export const positionStyle = 'justify-center items-center gap-32';