@redneckz/wildless-cms-uni-blocks 0.11.2 → 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 (446) 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 +76 -56
  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/PictureText/positionStyle.d.ts +1 -0
  15. package/bundle/components/PictureText/positionStyle.mobile.d.ts +1 -0
  16. package/bundle/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
  17. package/bundle/components/PictureText/styleInsuranceSum.d.ts +1 -0
  18. package/bundle/components/PictureText/styleInsuranceSum.mobile.d.ts +1 -0
  19. package/bundle/components/PictureText/styleValueBlock.d.ts +2 -0
  20. package/bundle/components/PictureText/styleValueBlock.mobile.d.ts +2 -0
  21. package/bundle/components/RollupItem/RollupItemContent.d.ts +4 -2
  22. package/bundle/components/RollupItem/renderRoundedIcon.d.ts +3 -0
  23. package/bundle/components/RollupItem/renderRoundedIcon.mobile.d.ts +4 -0
  24. package/bundle/ui-kit/BenefitItem/borderRadius.mobile.d.ts +1 -0
  25. package/bundle/ui-kit/BenefitItem/labelSize.d.ts +1 -0
  26. package/bundle/ui-kit/BenefitItem/labelSize.mobile.d.ts +1 -0
  27. package/bundle/ui-kit/Icon/IconProps.d.ts +8 -3
  28. package/bundle/ui-kit/Icon/RoundedIcon.d.ts +5 -1
  29. package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  30. package/dist/components/Blocks.js +2 -2
  31. package/dist/components/Blocks.js.map +1 -1
  32. package/dist/components/Blocks.mobile.js +6 -0
  33. package/dist/components/Blocks.mobile.js.map +1 -1
  34. package/dist/components/Bonus/Bonus.js +1 -1
  35. package/dist/components/BusinessBlock/BusinessCard.js +1 -1
  36. package/dist/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
  37. package/{mobile/dist/components/ButtonBlock/ButtonBlock.js → dist/components/ButtonsBlock/ButtonsBlock.js} +3 -3
  38. package/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -0
  39. package/dist/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
  40. package/dist/components/{ButtonBlock/ButtonBlockContent.js → ButtonsBlock/ButtonsBlockContent.js} +1 -1
  41. package/dist/components/ButtonsBlock/ButtonsBlockContent.js.map +1 -0
  42. package/dist/components/CardTransfer/CardTransfer.js +1 -1
  43. package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  44. package/dist/components/CarouselCard/CarouselCard.d.ts +1 -1
  45. package/dist/components/CarouselCard/CarouselCard.js +9 -7
  46. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  47. package/dist/components/CarouselCard/getCardWidth.d.ts +1 -0
  48. package/dist/components/CarouselCard/getCardWidth.js +18 -0
  49. package/dist/components/CarouselCard/getCardWidth.js.map +1 -0
  50. package/dist/components/CarouselCard/titleSize.d.ts +1 -0
  51. package/dist/components/CarouselCard/titleSize.js +4 -0
  52. package/dist/components/CarouselCard/titleSize.js.map +1 -0
  53. package/dist/components/CarouselCard/titleSize.mobile.d.ts +1 -0
  54. package/dist/components/CarouselCard/titleSize.mobile.js +4 -0
  55. package/dist/components/CarouselCard/titleSize.mobile.js.map +1 -0
  56. package/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
  57. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  58. package/dist/components/Footer/Contacts.d.ts +2 -2
  59. package/dist/components/Footer/Contacts.js +4 -5
  60. package/dist/components/Footer/Contacts.js.map +1 -1
  61. package/dist/components/Footer/FooterContent.d.ts +9 -1
  62. package/dist/components/Footer/FooterDataProps.d.ts +2 -2
  63. package/dist/components/PictureText/PictureText.js +5 -11
  64. package/dist/components/PictureText/PictureText.js.map +1 -1
  65. package/dist/components/PictureText/positionStyle.d.ts +1 -0
  66. package/dist/components/PictureText/positionStyle.js +4 -0
  67. package/dist/components/PictureText/positionStyle.js.map +1 -0
  68. package/dist/components/PictureText/positionStyle.mobile.d.ts +1 -0
  69. package/dist/components/PictureText/positionStyle.mobile.js +4 -0
  70. package/dist/components/PictureText/positionStyle.mobile.js.map +1 -0
  71. package/dist/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
  72. package/dist/components/PictureText/renderInsuranceSumMonth.js +15 -0
  73. package/dist/components/PictureText/renderInsuranceSumMonth.js.map +1 -0
  74. package/dist/components/PictureText/styleInsuranceSum.d.ts +1 -0
  75. package/dist/components/PictureText/styleInsuranceSum.js +4 -0
  76. package/dist/components/PictureText/styleInsuranceSum.js.map +1 -0
  77. package/dist/components/PictureText/styleInsuranceSum.mobile.d.ts +1 -0
  78. package/dist/components/PictureText/styleInsuranceSum.mobile.js +4 -0
  79. package/dist/components/PictureText/styleInsuranceSum.mobile.js.map +1 -0
  80. package/dist/components/PictureText/styleValueBlock.d.ts +2 -0
  81. package/dist/components/PictureText/styleValueBlock.js +5 -0
  82. package/dist/components/PictureText/styleValueBlock.js.map +1 -0
  83. package/dist/components/PictureText/styleValueBlock.mobile.d.ts +2 -0
  84. package/dist/components/PictureText/styleValueBlock.mobile.js +5 -0
  85. package/dist/components/PictureText/styleValueBlock.mobile.js.map +1 -0
  86. package/dist/components/RollupItem/RollupItem.js +14 -9
  87. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  88. package/dist/components/RollupItem/RollupItemContent.d.ts +4 -2
  89. package/dist/components/RollupItem/renderRoundedIcon.d.ts +3 -0
  90. package/dist/components/RollupItem/renderRoundedIcon.js +5 -0
  91. package/dist/components/RollupItem/renderRoundedIcon.js.map +1 -0
  92. package/dist/components/RollupItem/renderRoundedIcon.mobile.d.ts +4 -0
  93. package/dist/components/RollupItem/renderRoundedIcon.mobile.js +7 -0
  94. package/dist/components/RollupItem/renderRoundedIcon.mobile.js.map +1 -0
  95. package/dist/ui-kit/BenefitItem/BenefitItem.js +12 -11
  96. package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  97. package/dist/ui-kit/BenefitItem/borderRadius.mobile.d.ts +1 -0
  98. package/dist/ui-kit/BenefitItem/borderRadius.mobile.js +4 -0
  99. package/dist/ui-kit/BenefitItem/borderRadius.mobile.js.map +1 -0
  100. package/dist/ui-kit/BenefitItem/labelSize.d.ts +1 -0
  101. package/dist/ui-kit/BenefitItem/labelSize.js +4 -0
  102. package/dist/ui-kit/BenefitItem/labelSize.js.map +1 -0
  103. package/dist/ui-kit/BenefitItem/labelSize.mobile.d.ts +1 -0
  104. package/dist/ui-kit/BenefitItem/labelSize.mobile.js +4 -0
  105. package/dist/ui-kit/BenefitItem/labelSize.mobile.js.map +1 -0
  106. package/dist/ui-kit/Button/renderButtonsSection.js +2 -2
  107. package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  108. package/dist/ui-kit/Icon/IconProps.d.ts +8 -3
  109. package/dist/ui-kit/Icon/RoundedIcon.d.ts +5 -1
  110. package/dist/ui-kit/Icon/RoundedIcon.js +5 -1
  111. package/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
  112. package/lib/common.css +1 -1
  113. package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  114. package/lib/components/Blocks.js +2 -2
  115. package/lib/components/Blocks.js.map +1 -1
  116. package/lib/components/Blocks.mobile.js +6 -0
  117. package/lib/components/Blocks.mobile.js.map +1 -1
  118. package/lib/components/Bonus/Bonus.js +1 -1
  119. package/lib/components/BusinessBlock/BusinessCard.js +1 -1
  120. package/lib/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
  121. package/lib/components/ButtonsBlock/ButtonsBlock.fixture.mobile.d.ts +6 -0
  122. package/lib/components/{ButtonBlock/ButtonBlock.js → ButtonsBlock/ButtonsBlock.js} +2 -2
  123. package/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -0
  124. package/lib/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
  125. package/lib/components/ButtonsBlock/ButtonsBlockContent.js +2 -0
  126. package/lib/components/ButtonsBlock/ButtonsBlockContent.js.map +1 -0
  127. package/lib/components/CardTransfer/CardTransfer.fixture.mobile.d.ts +6 -0
  128. package/lib/components/CardTransfer/CardTransfer.js +1 -1
  129. package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  130. package/lib/components/CarouselCard/CarouselCard.d.ts +1 -1
  131. package/lib/components/CarouselCard/CarouselCard.fixture.mobile.d.ts +8 -0
  132. package/lib/components/CarouselCard/CarouselCard.js +9 -7
  133. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  134. package/lib/components/CarouselCard/getCardWidth.d.ts +1 -0
  135. package/lib/components/CarouselCard/getCardWidth.js +15 -0
  136. package/lib/components/CarouselCard/getCardWidth.js.map +1 -0
  137. package/lib/components/CarouselCard/titleSize.d.ts +1 -0
  138. package/lib/components/CarouselCard/titleSize.js +2 -0
  139. package/lib/components/CarouselCard/titleSize.js.map +1 -0
  140. package/lib/components/CarouselCard/titleSize.mobile.d.ts +1 -0
  141. package/lib/components/CarouselCard/titleSize.mobile.js +2 -0
  142. package/lib/components/CarouselCard/titleSize.mobile.js.map +1 -0
  143. package/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
  144. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  145. package/lib/components/Footer/Contacts.d.ts +2 -2
  146. package/lib/components/Footer/Contacts.js +4 -5
  147. package/lib/components/Footer/Contacts.js.map +1 -1
  148. package/lib/components/Footer/FooterContent.d.ts +9 -1
  149. package/lib/components/Footer/FooterDataProps.d.ts +2 -2
  150. package/lib/components/PictureText/PictureText.fixture.mobile.d.ts +14 -0
  151. package/lib/components/PictureText/PictureText.js +5 -11
  152. package/lib/components/PictureText/PictureText.js.map +1 -1
  153. package/lib/components/PictureText/positionStyle.d.ts +1 -0
  154. package/lib/components/PictureText/positionStyle.js +2 -0
  155. package/lib/components/PictureText/positionStyle.js.map +1 -0
  156. package/lib/components/PictureText/positionStyle.mobile.d.ts +1 -0
  157. package/lib/components/PictureText/positionStyle.mobile.js +2 -0
  158. package/lib/components/PictureText/positionStyle.mobile.js.map +1 -0
  159. package/lib/components/PictureText/renderBenefit.d.ts +0 -1
  160. package/lib/components/PictureText/renderInsuranceSumMonth.d.ts +1 -0
  161. package/lib/components/PictureText/renderInsuranceSumMonth.js +12 -0
  162. package/lib/components/PictureText/renderInsuranceSumMonth.js.map +1 -0
  163. package/lib/components/PictureText/styleInsuranceSum.d.ts +1 -0
  164. package/lib/components/PictureText/styleInsuranceSum.js +2 -0
  165. package/lib/components/PictureText/styleInsuranceSum.js.map +1 -0
  166. package/lib/components/PictureText/styleInsuranceSum.mobile.d.ts +1 -0
  167. package/lib/components/PictureText/styleInsuranceSum.mobile.js +2 -0
  168. package/lib/components/PictureText/styleInsuranceSum.mobile.js.map +1 -0
  169. package/lib/components/PictureText/styleValueBlock.d.ts +2 -0
  170. package/lib/components/PictureText/styleValueBlock.js +3 -0
  171. package/lib/components/PictureText/styleValueBlock.js.map +1 -0
  172. package/lib/components/PictureText/styleValueBlock.mobile.d.ts +2 -0
  173. package/lib/components/PictureText/styleValueBlock.mobile.js +3 -0
  174. package/lib/components/PictureText/styleValueBlock.mobile.js.map +1 -0
  175. package/lib/components/RollupItem/RollupItem.fixture.mobile.d.ts +1 -0
  176. package/lib/components/RollupItem/RollupItem.js +14 -9
  177. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  178. package/lib/components/RollupItem/RollupItemContent.d.ts +4 -2
  179. package/lib/components/RollupItem/renderRoundedIcon.d.ts +3 -0
  180. package/lib/components/RollupItem/renderRoundedIcon.js +2 -0
  181. package/lib/components/RollupItem/renderRoundedIcon.js.map +1 -0
  182. package/lib/components/RollupItem/renderRoundedIcon.mobile.d.ts +3 -0
  183. package/lib/components/RollupItem/renderRoundedIcon.mobile.js +4 -0
  184. package/lib/components/RollupItem/renderRoundedIcon.mobile.js.map +1 -0
  185. package/lib/ui-kit/BenefitItem/BenefitItem.js +12 -11
  186. package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  187. package/lib/ui-kit/BenefitItem/borderRadius.mobile.d.ts +1 -0
  188. package/lib/ui-kit/BenefitItem/borderRadius.mobile.js +2 -0
  189. package/lib/ui-kit/BenefitItem/borderRadius.mobile.js.map +1 -0
  190. package/lib/ui-kit/BenefitItem/labelSize.d.ts +1 -0
  191. package/lib/ui-kit/BenefitItem/labelSize.js +2 -0
  192. package/lib/ui-kit/BenefitItem/labelSize.js.map +1 -0
  193. package/lib/ui-kit/BenefitItem/labelSize.mobile.d.ts +1 -0
  194. package/lib/ui-kit/BenefitItem/labelSize.mobile.js +2 -0
  195. package/lib/ui-kit/BenefitItem/labelSize.mobile.js.map +1 -0
  196. package/lib/ui-kit/Button/renderButtonsSection.js +2 -2
  197. package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  198. package/lib/ui-kit/Icon/IconProps.d.ts +8 -3
  199. package/lib/ui-kit/Icon/RoundedIcon.d.ts +5 -1
  200. package/lib/ui-kit/Icon/RoundedIcon.js +5 -1
  201. package/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
  202. package/mobile/bundle/bundle.umd.js +542 -378
  203. package/mobile/bundle/bundle.umd.min.js +1 -1
  204. package/mobile/bundle/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
  205. package/mobile/bundle/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
  206. package/mobile/bundle/components/CarouselCard/CarouselCard.d.ts +1 -1
  207. package/mobile/bundle/components/CarouselCard/getCardWidth.d.ts +1 -0
  208. package/mobile/bundle/components/CarouselCard/titleSize.d.ts +1 -0
  209. package/mobile/bundle/components/Footer/Contacts.d.ts +2 -2
  210. package/mobile/bundle/components/Footer/FooterContent.d.ts +9 -1
  211. package/mobile/bundle/components/Footer/FooterDataProps.d.ts +2 -2
  212. package/mobile/bundle/components/PictureText/positionStyle.d.ts +1 -0
  213. package/mobile/bundle/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
  214. package/mobile/bundle/components/PictureText/styleInsuranceSum.d.ts +1 -0
  215. package/mobile/bundle/components/PictureText/styleValueBlock.d.ts +2 -0
  216. package/mobile/bundle/components/RollupItem/RollupItemContent.d.ts +4 -2
  217. package/mobile/bundle/components/RollupItem/renderRoundedIcon.d.ts +4 -0
  218. package/mobile/bundle/ui-kit/BenefitItem/labelSize.d.ts +1 -0
  219. package/mobile/bundle/ui-kit/Icon/IconProps.d.ts +8 -3
  220. package/mobile/bundle/ui-kit/Icon/RoundedIcon.d.ts +5 -1
  221. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  222. package/mobile/dist/components/Blocks.js +6 -0
  223. package/mobile/dist/components/Blocks.js.map +1 -1
  224. package/mobile/dist/components/Bonus/Bonus.js +1 -1
  225. package/mobile/dist/components/BusinessBlock/BusinessCard.js +1 -1
  226. package/mobile/dist/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
  227. package/{dist/components/ButtonBlock/ButtonBlock.js → mobile/dist/components/ButtonsBlock/ButtonsBlock.js} +3 -3
  228. package/mobile/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -0
  229. package/mobile/dist/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
  230. package/mobile/dist/components/{ButtonBlock/ButtonBlockContent.js → ButtonsBlock/ButtonsBlockContent.js} +1 -1
  231. package/mobile/dist/components/ButtonsBlock/ButtonsBlockContent.js.map +1 -0
  232. package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -1
  233. package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  234. package/mobile/dist/components/CarouselCard/CarouselCard.d.ts +1 -1
  235. package/mobile/dist/components/CarouselCard/CarouselCard.js +9 -7
  236. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  237. package/mobile/dist/components/CarouselCard/getCardWidth.d.ts +1 -0
  238. package/mobile/dist/components/CarouselCard/getCardWidth.js +18 -0
  239. package/mobile/dist/components/CarouselCard/getCardWidth.js.map +1 -0
  240. package/mobile/dist/components/CarouselCard/titleSize.d.ts +1 -0
  241. package/mobile/dist/components/CarouselCard/titleSize.js +4 -0
  242. package/mobile/dist/components/CarouselCard/titleSize.js.map +1 -0
  243. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
  244. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  245. package/mobile/dist/components/Footer/Contacts.d.ts +2 -2
  246. package/mobile/dist/components/Footer/Contacts.js +4 -5
  247. package/mobile/dist/components/Footer/Contacts.js.map +1 -1
  248. package/mobile/dist/components/Footer/FooterContent.d.ts +9 -1
  249. package/mobile/dist/components/Footer/FooterDataProps.d.ts +2 -2
  250. package/mobile/dist/components/PictureText/PictureText.js +5 -11
  251. package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
  252. package/mobile/dist/components/PictureText/positionStyle.d.ts +1 -0
  253. package/mobile/dist/components/PictureText/positionStyle.js +4 -0
  254. package/mobile/dist/components/PictureText/positionStyle.js.map +1 -0
  255. package/mobile/dist/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
  256. package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js +15 -0
  257. package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js.map +1 -0
  258. package/mobile/dist/components/PictureText/styleInsuranceSum.d.ts +1 -0
  259. package/mobile/dist/components/PictureText/styleInsuranceSum.js +4 -0
  260. package/mobile/dist/components/PictureText/styleInsuranceSum.js.map +1 -0
  261. package/mobile/dist/components/PictureText/styleValueBlock.d.ts +2 -0
  262. package/mobile/dist/components/PictureText/styleValueBlock.js +5 -0
  263. package/mobile/dist/components/PictureText/styleValueBlock.js.map +1 -0
  264. package/mobile/dist/components/RollupItem/RollupItem.js +14 -9
  265. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  266. package/mobile/dist/components/RollupItem/RollupItemContent.d.ts +4 -2
  267. package/mobile/dist/components/RollupItem/renderRoundedIcon.d.ts +4 -0
  268. package/mobile/dist/components/RollupItem/renderRoundedIcon.js +7 -0
  269. package/mobile/dist/components/RollupItem/renderRoundedIcon.js.map +1 -0
  270. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +12 -11
  271. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  272. package/mobile/dist/ui-kit/BenefitItem/labelSize.d.ts +1 -0
  273. package/mobile/dist/ui-kit/BenefitItem/labelSize.js +4 -0
  274. package/mobile/dist/ui-kit/BenefitItem/labelSize.js.map +1 -0
  275. package/mobile/dist/ui-kit/Button/renderButtonsSection.js +2 -2
  276. package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  277. package/mobile/dist/ui-kit/Icon/IconProps.d.ts +8 -3
  278. package/mobile/dist/ui-kit/Icon/RoundedIcon.d.ts +5 -1
  279. package/mobile/dist/ui-kit/Icon/RoundedIcon.js +5 -1
  280. package/mobile/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
  281. package/mobile/lib/common.css +1 -1
  282. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  283. package/mobile/lib/components/Blocks.js +6 -0
  284. package/mobile/lib/components/Blocks.js.map +1 -1
  285. package/mobile/lib/components/Bonus/Bonus.js +1 -1
  286. package/mobile/lib/components/BusinessBlock/BusinessCard.js +1 -1
  287. package/mobile/lib/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
  288. package/mobile/lib/components/{ButtonBlock/ButtonBlock.js → ButtonsBlock/ButtonsBlock.js} +2 -2
  289. package/mobile/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -0
  290. package/mobile/lib/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
  291. package/mobile/lib/components/ButtonsBlock/ButtonsBlockContent.js +2 -0
  292. package/mobile/lib/components/ButtonsBlock/ButtonsBlockContent.js.map +1 -0
  293. package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -1
  294. package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  295. package/mobile/lib/components/CarouselCard/CarouselCard.d.ts +1 -1
  296. package/mobile/lib/components/CarouselCard/CarouselCard.js +9 -7
  297. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  298. package/mobile/lib/components/CarouselCard/getCardWidth.d.ts +1 -0
  299. package/mobile/lib/components/CarouselCard/getCardWidth.js +15 -0
  300. package/mobile/lib/components/CarouselCard/getCardWidth.js.map +1 -0
  301. package/mobile/lib/components/CarouselCard/titleSize.d.ts +1 -0
  302. package/mobile/lib/components/CarouselCard/titleSize.js +2 -0
  303. package/mobile/lib/components/CarouselCard/titleSize.js.map +1 -0
  304. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
  305. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  306. package/mobile/lib/components/Footer/Contacts.d.ts +2 -2
  307. package/mobile/lib/components/Footer/Contacts.js +4 -5
  308. package/mobile/lib/components/Footer/Contacts.js.map +1 -1
  309. package/mobile/lib/components/Footer/FooterContent.d.ts +9 -1
  310. package/mobile/lib/components/Footer/FooterDataProps.d.ts +2 -2
  311. package/mobile/lib/components/PictureText/PictureText.js +5 -11
  312. package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
  313. package/mobile/lib/components/PictureText/positionStyle.d.ts +1 -0
  314. package/mobile/lib/components/PictureText/positionStyle.js +2 -0
  315. package/mobile/lib/components/PictureText/positionStyle.js.map +1 -0
  316. package/mobile/lib/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
  317. package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js +12 -0
  318. package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js.map +1 -0
  319. package/mobile/lib/components/PictureText/styleInsuranceSum.d.ts +1 -0
  320. package/mobile/lib/components/PictureText/styleInsuranceSum.js +2 -0
  321. package/mobile/lib/components/PictureText/styleInsuranceSum.js.map +1 -0
  322. package/mobile/lib/components/PictureText/styleValueBlock.d.ts +2 -0
  323. package/mobile/lib/components/PictureText/styleValueBlock.js +3 -0
  324. package/mobile/lib/components/PictureText/styleValueBlock.js.map +1 -0
  325. package/mobile/lib/components/RollupItem/RollupItem.js +14 -9
  326. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  327. package/mobile/lib/components/RollupItem/RollupItemContent.d.ts +4 -2
  328. package/mobile/lib/components/RollupItem/renderRoundedIcon.d.ts +4 -0
  329. package/mobile/lib/components/RollupItem/renderRoundedIcon.js +4 -0
  330. package/mobile/lib/components/RollupItem/renderRoundedIcon.js.map +1 -0
  331. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +12 -11
  332. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  333. package/mobile/lib/ui-kit/BenefitItem/labelSize.d.ts +1 -0
  334. package/mobile/lib/ui-kit/BenefitItem/labelSize.js +2 -0
  335. package/mobile/lib/ui-kit/BenefitItem/labelSize.js.map +1 -0
  336. package/mobile/lib/ui-kit/Button/renderButtonsSection.js +2 -2
  337. package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  338. package/mobile/lib/ui-kit/Icon/IconProps.d.ts +8 -3
  339. package/mobile/lib/ui-kit/Icon/RoundedIcon.d.ts +5 -1
  340. package/mobile/lib/ui-kit/Icon/RoundedIcon.js +5 -1
  341. package/mobile/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
  342. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  343. package/mobile/src/components/Blocks.ts +6 -0
  344. package/mobile/src/components/Bonus/Bonus.tsx +1 -1
  345. package/mobile/src/components/BusinessBlock/BusinessCard.tsx +1 -1
  346. package/mobile/src/components/ButtonsBlock/ButtonsBlock.example.json +14 -0
  347. package/mobile/src/components/{ButtonBlock/ButtonBlock.tsx → ButtonsBlock/ButtonsBlock.tsx} +4 -4
  348. package/mobile/src/components/ButtonsBlock/ButtonsBlock.ui.json +14 -0
  349. package/mobile/src/components/ButtonsBlock/ButtonsBlockContent.ts +9 -0
  350. package/mobile/src/components/CardTransfer/CardTransfer.tsx +9 -3
  351. package/mobile/src/components/CarouselCard/CarouselCard.tsx +16 -12
  352. package/mobile/src/components/CarouselCard/getCardWidth.tsx +16 -0
  353. package/mobile/src/components/CarouselCard/titleSize.tsx +1 -0
  354. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -3
  355. package/mobile/src/components/Footer/Contacts.tsx +20 -12
  356. package/mobile/src/components/Footer/FooterContent.ts +10 -1
  357. package/mobile/src/components/Footer/FooterDataProps.ts +2 -2
  358. package/mobile/src/components/PictureText/PictureText.tsx +13 -27
  359. package/mobile/src/components/PictureText/positionStyle.tsx +1 -0
  360. package/mobile/src/components/PictureText/renderInsuranceSumMonth.tsx +28 -0
  361. package/mobile/src/components/PictureText/styleInsuranceSum.tsx +1 -0
  362. package/mobile/src/components/PictureText/styleValueBlock.tsx +2 -0
  363. package/mobile/src/components/RollupItem/RollupItem.tsx +25 -18
  364. package/mobile/src/components/RollupItem/RollupItem.ui.json +7 -1
  365. package/mobile/src/components/RollupItem/RollupItemContent.ts +4 -2
  366. package/mobile/src/components/RollupItem/renderRoundedIcon.tsx +7 -0
  367. package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +26 -22
  368. package/mobile/src/ui-kit/BenefitItem/labelSize.tsx +1 -0
  369. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +8 -2
  370. package/mobile/src/ui-kit/Icon/IconProps.ts +9 -4
  371. package/mobile/src/ui-kit/Icon/RoundedIcon.tsx +18 -6
  372. package/package.json +1 -1
  373. package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  374. package/src/components/Blocks.mobile.ts +6 -0
  375. package/src/components/Blocks.ts +2 -2
  376. package/src/components/Bonus/Bonus.tsx +1 -1
  377. package/src/components/BusinessBlock/BusinessCard.tsx +1 -1
  378. package/src/components/ButtonsBlock/ButtonsBlock.example.json +14 -0
  379. package/src/components/ButtonsBlock/ButtonsBlock.fixture.mobile.tsx +26 -0
  380. package/src/components/ButtonsBlock/ButtonsBlock.fixture.tsx +26 -0
  381. package/src/components/{ButtonBlock/ButtonBlock.tsx → ButtonsBlock/ButtonsBlock.tsx} +4 -4
  382. package/src/components/ButtonsBlock/ButtonsBlock.ui.json +14 -0
  383. package/src/components/ButtonsBlock/ButtonsBlockContent.ts +9 -0
  384. package/src/components/CardTransfer/CardTransfer.fixture.mobile.tsx +18 -0
  385. package/src/components/CardTransfer/CardTransfer.tsx +9 -3
  386. package/src/components/CarouselCard/CarouselCard.fixture.mobile.tsx +28 -0
  387. package/src/components/CarouselCard/CarouselCard.tsx +16 -12
  388. package/src/components/CarouselCard/getCardWidth.tsx +16 -0
  389. package/src/components/CarouselCard/titleSize.mobile.tsx +1 -0
  390. package/src/components/CarouselCard/titleSize.tsx +1 -0
  391. package/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -3
  392. package/src/components/Footer/Contacts.tsx +20 -12
  393. package/src/components/Footer/FooterContent.ts +10 -1
  394. package/src/components/Footer/FooterDataProps.ts +2 -2
  395. package/src/components/PictureText/PictureText.fixture.mobile.tsx +122 -0
  396. package/src/components/PictureText/PictureText.tsx +13 -27
  397. package/src/components/PictureText/positionStyle.mobile.tsx +1 -0
  398. package/src/components/PictureText/positionStyle.tsx +1 -0
  399. package/src/components/PictureText/renderInsuranceSumMonth.tsx +28 -0
  400. package/src/components/PictureText/styleInsuranceSum.mobile.tsx +1 -0
  401. package/src/components/PictureText/styleInsuranceSum.tsx +1 -0
  402. package/src/components/PictureText/styleValueBlock.mobile.tsx +2 -0
  403. package/src/components/PictureText/styleValueBlock.tsx +2 -0
  404. package/src/components/RollupItem/RollupItem.fixture.mobile.tsx +15 -0
  405. package/src/components/RollupItem/RollupItem.tsx +25 -18
  406. package/src/components/RollupItem/RollupItem.ui.json +7 -1
  407. package/src/components/RollupItem/RollupItemContent.ts +4 -2
  408. package/src/components/RollupItem/renderRoundedIcon.mobile.tsx +7 -0
  409. package/src/components/RollupItem/renderRoundedIcon.tsx +4 -0
  410. package/src/ui-kit/BenefitItem/BenefitItem.tsx +26 -22
  411. package/src/ui-kit/BenefitItem/borderRadius.mobile.tsx +1 -0
  412. package/src/ui-kit/BenefitItem/labelSize.mobile.tsx +1 -0
  413. package/src/ui-kit/BenefitItem/labelSize.tsx +1 -0
  414. package/src/ui-kit/Button/renderButtonsSection.tsx +8 -2
  415. package/src/ui-kit/Icon/IconProps.ts +9 -4
  416. package/src/ui-kit/Icon/RoundedIcon.tsx +18 -6
  417. package/bundle/components/ButtonBlock/ButtonBlock.d.ts +0 -6
  418. package/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
  419. package/dist/components/ButtonBlock/ButtonBlock.d.ts +0 -6
  420. package/dist/components/ButtonBlock/ButtonBlock.js.map +0 -1
  421. package/dist/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
  422. package/dist/components/ButtonBlock/ButtonBlockContent.js.map +0 -1
  423. package/lib/components/ButtonBlock/ButtonBlock.d.ts +0 -6
  424. package/lib/components/ButtonBlock/ButtonBlock.js.map +0 -1
  425. package/lib/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
  426. package/lib/components/ButtonBlock/ButtonBlockContent.js +0 -2
  427. package/lib/components/ButtonBlock/ButtonBlockContent.js.map +0 -1
  428. package/mobile/bundle/components/ButtonBlock/ButtonBlock.d.ts +0 -6
  429. package/mobile/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
  430. package/mobile/dist/components/ButtonBlock/ButtonBlock.d.ts +0 -6
  431. package/mobile/dist/components/ButtonBlock/ButtonBlock.js.map +0 -1
  432. package/mobile/dist/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
  433. package/mobile/dist/components/ButtonBlock/ButtonBlockContent.js.map +0 -1
  434. package/mobile/lib/components/ButtonBlock/ButtonBlock.d.ts +0 -6
  435. package/mobile/lib/components/ButtonBlock/ButtonBlock.js.map +0 -1
  436. package/mobile/lib/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
  437. package/mobile/lib/components/ButtonBlock/ButtonBlockContent.js +0 -2
  438. package/mobile/lib/components/ButtonBlock/ButtonBlockContent.js.map +0 -1
  439. package/mobile/src/components/ButtonBlock/ButtonBlock.example.json +0 -12
  440. package/mobile/src/components/ButtonBlock/ButtonBlock.ui.json +0 -12
  441. package/mobile/src/components/ButtonBlock/ButtonBlockContent.ts +0 -9
  442. package/src/components/ButtonBlock/ButtonBlock.example.json +0 -12
  443. package/src/components/ButtonBlock/ButtonBlock.fixture.tsx +0 -19
  444. package/src/components/ButtonBlock/ButtonBlock.ui.json +0 -12
  445. package/src/components/ButtonBlock/ButtonBlockContent.ts +0 -9
  446. /package/lib/components/{ButtonBlock/ButtonBlock.fixture.d.ts → ButtonsBlock/ButtonsBlock.fixture.d.ts} +0 -0
@@ -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: для мобильной версии
@@ -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,28 @@
1
+ import { Text } from '../../ui-kit/Text/Text';
2
+ import { style } from '../../utils/style';
3
+ import { styleInsuranceSum } from './styleInsuranceSum';
4
+ import { toLocalNumberFormat } from '../../utils/toLocalNumberFormat';
5
+ import { styleValueBlock, styleValueBlockText } from './styleValueBlock';
6
+
7
+ export const renderInsuranceSumMonth = (sum = 0, monthLimit = 0) =>
8
+ sum || monthLimit ? (
9
+ <div className={style('flex mt-6', styleInsuranceSum)}>
10
+ {sum > 0 ? renderValueBlock('Страховая сумма:', sum, Boolean(monthLimit)) : null}
11
+ {monthLimit > 0 ? renderValueBlock('Ежемесячный лимит:', monthLimit, Boolean(sum)) : null}
12
+ </div>
13
+ ) : null;
14
+
15
+ const renderValueBlock = (title: string, sum = 0, isAnotherBlock = false) => {
16
+ const widthStyle = isAnotherBlock ? 'w-fit' : 'w-full';
17
+
18
+ return (
19
+ <div className={style(`flex w-full whitespace-pre`, styleValueBlock, widthStyle)}>
20
+ <Text font="font-light" size="text-l">
21
+ {title}
22
+ </Text>
23
+ <Text size="text-h6" color={styleValueBlockText}>
24
+ {toLocalNumberFormat(2)(sum)} ₽
25
+ </Text>
26
+ </div>
27
+ );
28
+ };
@@ -0,0 +1 @@
1
+ export const styleInsuranceSum = 'flex-col gap-2';
@@ -0,0 +1,2 @@
1
+ export const styleValueBlock = 'flex-col gap-1';
2
+ export const styleValueBlockText = '';
@@ -9,8 +9,8 @@ import { Foldable } from '../../ui-kit/Foldable/Foldable';
9
9
  import type { FoldablePartProps } from '../../ui-kit/Foldable/FoldablePartProps';
10
10
  import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
11
11
  import { Icon } from '../../ui-kit/Icon/Icon';
12
- import type { IconName, IconProps } from '../../ui-kit/Icon/IconProps';
13
- import { RoundedIcon } from '../../ui-kit/Icon/RoundedIcon';
12
+ import type { IconBgVersion, IconName, IconProps } from '../../ui-kit/Icon/IconProps';
13
+ import { renderRoundedIcon } from './renderRoundedIcon';
14
14
  import { Text } from '../../ui-kit/Text/Text';
15
15
  import { style } from '../../utils/style';
16
16
  import { foldableSectionStyles } from './foldableSectionStyles';
@@ -27,6 +27,7 @@ export const RollupItem: JSXBlock<RollupItemProps> = JSX<RollupItemProps>(
27
27
  className = '',
28
28
  label = 'Развернуть',
29
29
  labelIcon,
30
+ labelIconBgVersion,
30
31
  isExpanded,
31
32
  isFoldButtonOnTop = true,
32
33
  version = 'primary',
@@ -51,7 +52,14 @@ export const RollupItem: JSXBlock<RollupItemProps> = JSX<RollupItemProps>(
51
52
  </FoldableSection>
52
53
  )}
53
54
  renderFoldButton={({ isUnfolded, onToggle }) =>
54
- renderFoldButton({ version, label, labelIcon, isUnfolded, onToggle })
55
+ renderFoldButton({
56
+ version,
57
+ label,
58
+ labelIcon,
59
+ labelIconBgVersion,
60
+ isUnfolded,
61
+ onToggle,
62
+ })
55
63
  }
56
64
  />
57
65
  </BlockWrapper>
@@ -67,6 +75,7 @@ interface FoldButtonProps extends FoldablePartProps {
67
75
  version?: BlockVersion;
68
76
  label?: string;
69
77
  labelIcon?: IconProps;
78
+ labelIconBgVersion?: IconBgVersion;
70
79
  isPadding?: boolean;
71
80
  }
72
81
 
@@ -74,6 +83,7 @@ const renderFoldButton = ({
74
83
  version,
75
84
  label: defaultLabel,
76
85
  labelIcon,
86
+ labelIconBgVersion,
77
87
  isUnfolded,
78
88
  onToggle,
79
89
  }: FoldButtonProps) => {
@@ -83,6 +93,7 @@ const renderFoldButton = ({
83
93
  renderPrimaryFoldButton({
84
94
  label,
85
95
  labelIcon,
96
+ labelIconBgVersion,
86
97
  icon: getIconName(isUnfolded),
87
98
  onToggle,
88
99
  })
@@ -97,33 +108,29 @@ const renderFoldButton = ({
97
108
 
98
109
  interface PrimaryFoldButtonProps {
99
110
  label?: string;
111
+ labelIcon?: Picture;
112
+ labelIconBgVersion?: IconBgVersion;
100
113
  icon?: IconName;
101
114
  onToggle?: () => void;
102
- labelIcon?: Picture;
103
115
  }
104
116
 
105
- const renderPrimaryFoldButton = ({ label, icon, onToggle, labelIcon }: PrimaryFoldButtonProps) => {
106
- const iconWidth = String(labelIcon?.size?.width || 24);
107
- const iconHeight = String(labelIcon?.size?.height || 24);
108
- const iconName = labelIcon?.icon;
109
-
117
+ const renderPrimaryFoldButton = ({
118
+ label,
119
+ labelIconBgVersion,
120
+ icon,
121
+ onToggle,
122
+ labelIcon,
123
+ }: PrimaryFoldButtonProps) => {
110
124
  return (
111
125
  <button
112
126
  className={style(
113
127
  'border-none bg-transparent px-0 flex justify-between items-center w-full cursor-pointer group/button',
114
- iconName ? 'py-2' : 'py-5',
128
+ labelIcon?.icon ? 'py-2' : 'py-5',
115
129
  )}
116
130
  onClick={onToggle}
117
131
  >
118
132
  <div className="flex items-center group-hover/button:text-primary-main">
119
- {iconName ? (
120
- <RoundedIcon
121
- name={iconName}
122
- width={iconWidth}
123
- height={iconHeight}
124
- iconVersion={labelIcon?.iconVersion}
125
- />
126
- ) : null}
133
+ {renderRoundedIcon(labelIcon, labelIconBgVersion)}
127
134
  {label ? (
128
135
  <Text size={labelSize} font="font-normal">
129
136
  {label}
@@ -1 +1,7 @@
1
- {}
1
+ {
2
+ "content": {
3
+ "labelIcon": {
4
+ "ui:field": "icon"
5
+ }
6
+ }
7
+ }
@@ -1,6 +1,7 @@
1
1
  import type { LabelProps } from '../../model/HeadlineType';
2
2
  import type { UniBlockContent } from '../../model/JSXBlock';
3
- import type { IconProps } from '../../ui-kit/Icon/IconProps';
3
+ import type { Picture } from '../../model/Picture';
4
+ import type { IconBgVersion } from '../../ui-kit/Icon/IconProps';
4
5
 
5
6
  /**
6
7
  * @title Сворачивающаяся секция
@@ -11,5 +12,6 @@ export type RollupItemContent = UniBlockContent &
11
12
  isExpanded?: boolean;
12
13
  /** @title Кнопка сверху */
13
14
  isFoldButtonOnTop?: boolean;
14
- labelIcon?: IconProps; // TODO: только для мобильной версии
15
+ labelIcon?: Picture; // TODO: только для мобильной версии
16
+ labelIconBgVersion?: IconBgVersion;
15
17
  };
@@ -0,0 +1,7 @@
1
+ import type { Picture } from '../../model/Picture';
2
+ import { RoundedIcon } from '../../ui-kit/Icon/RoundedIcon';
3
+ import type { IconBgVersion } from '../../ui-kit/Icon/IconProps';
4
+
5
+ export const renderRoundedIcon = (icon?: Picture, iconBgVersion?: IconBgVersion) => (
6
+ <RoundedIcon {...icon} iconBgVersion={iconBgVersion} />
7
+ );
@@ -1,34 +1,38 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { BlockVersion } from '../../model/BlockVersion';
3
2
  import type { IconVersion } from '../../model/IconVersion';
4
- import { style } from '../../utils/style';
5
3
  import { Img } from '../Img/Img';
4
+ import { style } from '../../utils/style';
5
+ import type { BenefitItemCommonProps, BenefitItemProps } from './BenefitItemProps';
6
+ import { labelSize } from './labelSize';
6
7
  import { Paragraph } from '../Paragraph/Paragraph';
7
8
  import { Text } from '../Text/Text';
8
- import type { BenefitItemCommonProps, BenefitItemProps } from './BenefitItemProps';
9
9
 
10
10
  export interface BenefitGeneralProps extends BenefitItemProps, BenefitItemCommonProps {}
11
11
 
12
- export const BenefitItem = JSX<BenefitGeneralProps>(
13
- ({ className, icon, label, description, version = 'primary', benefitsVersion = 'normal' }) => (
14
- <div className={style('flex gap-5', description ? 'items-start' : 'items-center', className)}>
12
+ export const BenefitItem = JSX<BenefitGeneralProps>((props) => {
13
+ const { className = '', icon, label, description, benefitsVersion = 'normal' } = props;
14
+ const listItemAlign = description ? 'items-start' : 'items-center';
15
+
16
+ return (
17
+ <div className={`flex gap-5 ${listItemAlign} ${className}`}>
15
18
  {icon ? (
16
- <div className={getBenefitIconBgStyle(version, benefitsVersion)}>
19
+ <div className={getBenefitIconBgStyle(benefitsVersion)}>
17
20
  <Img
18
21
  className="w-6 h-6"
19
22
  image={{ ...icon, iconVersion: icon.iconVersion || benefitsVersion }}
20
23
  />
21
24
  </div>
22
25
  ) : null}
23
- <div>
26
+ <div className="gap-0.5">
24
27
  {label ? (
25
- <Text size="text-h6" color="text-primary-text group-data-secondary:text-white">
28
+ <Text color="text-primary-text group-data-secondary:text-white" size={labelSize}>
26
29
  {label}
27
30
  </Text>
28
31
  ) : null}
29
32
  {description ? (
30
33
  <Paragraph
31
- size="text-m-light"
34
+ font="font-light"
35
+ size="text-m"
32
36
  color="text-secondary-text group-data-secondary:text-white"
33
37
  >
34
38
  {description}
@@ -36,17 +40,17 @@ export const BenefitItem = JSX<BenefitGeneralProps>(
36
40
  ) : null}
37
41
  </div>
38
42
  </div>
39
- ),
40
- );
41
-
42
- function getBenefitIconBgStyle(version: BlockVersion, benefitsVersion: IconVersion) {
43
- let bgColorStyle = 'bg-primary-main text-black';
43
+ );
44
+ });
44
45
 
45
- if (version === 'secondary') {
46
- bgColorStyle = 'bg-white/30 text-black';
47
- } else if (benefitsVersion === 'normal') {
48
- bgColorStyle = 'bg-secondary-light text-primary-main';
49
- }
46
+ function getBenefitIconBgStyle(benefitsVersion: IconVersion) {
47
+ const bgColorStyle =
48
+ benefitsVersion === 'normal'
49
+ ? 'bg-secondary-light text-primary-main'
50
+ : 'bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black';
50
51
 
51
- return `w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${bgColorStyle}`;
52
- }
52
+ return style(
53
+ 'w-12 h-12 min-w-12 p-2.5 box-border flex items-center justify-center rounded-icon',
54
+ bgColorStyle,
55
+ );
56
+ }
@@ -0,0 +1 @@
1
+ export const labelSize = 'text-l';
@@ -15,7 +15,13 @@ export const renderButtonsSection = (
15
15
  { className = '', buttonClassName, isVertical }: ButtonsSectionOptions = {},
16
16
  ) =>
17
17
  buttons?.length && buttons.some((_) => _?.text || _?.icon?.icon) ? (
18
- <div className={style('flex', isVertical ? 'flex-col gap-2' : 'flex-wrap gap-4', className)}>
18
+ <div
19
+ className={style(
20
+ 'flex',
21
+ isVertical ? 'flex-col gap-2 justify-items-stretch' : 'flex-wrap gap-4',
22
+ className,
23
+ )}
24
+ >
19
25
  {buttons.map(renderButton(buttonClassName))}
20
26
  </div>
21
27
  ) : null;
@@ -30,7 +36,7 @@ const renderButton =
30
36
  return text || icon?.icon ? (
31
37
  <Button
32
38
  key={index ? String(index) : ''}
33
- className={buttonClassName}
39
+ className={style('basis-full sm:basis-auto', buttonClassName)}
34
40
  appendLeft={renderButtonIcon({ ...icon, iconVersion })}
35
41
  appendRight={renderButtonIcon({ ...iconRight, iconVersion })}
36
42
  version={version}
@@ -2,6 +2,15 @@ import type { IconName } from '../../icons/IconName';
2
2
  import type { IconVersion } from '../../model/IconVersion';
3
3
 
4
4
  export type { IconName };
5
+
6
+ /**
7
+ * @title Цвет фона иконки
8
+ * @enumNames [
9
+ * "Основной",
10
+ * "Второстепенный",
11
+ * "Второстепенный светлый"
12
+ * ]
13
+ */
5
14
  export type IconBgVersion = 'primary' | 'secondary' | 'secondary-light';
6
15
 
7
16
  export interface IconCompatibilityFields {
@@ -21,7 +30,3 @@ export type IconProps = IconCompatibilityFields & {
21
30
  name?: IconName;
22
31
  iconVersion?: IconVersion;
23
32
  };
24
-
25
- export interface RoundedIconProps extends IconProps {
26
- iconBgVersion?: IconBgVersion;
27
- }
@@ -1,7 +1,12 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { Icon } from './Icon';
3
- import type { IconBgVersion, RoundedIconProps } from './IconProps';
3
+ import type { IconBgVersion } from './IconProps';
4
4
  import { style } from '../../utils/style';
5
+ import type { Picture } from '../../model/Picture';
6
+
7
+ export interface RoundedIconProps extends Picture {
8
+ iconBgVersion?: IconBgVersion;
9
+ }
5
10
 
6
11
  const iconBgStyles: Record<IconBgVersion, string> = {
7
12
  primary: 'bg-main-divider',
@@ -9,8 +14,15 @@ const iconBgStyles: Record<IconBgVersion, string> = {
9
14
  'secondary-light': 'bg-secondary-light',
10
15
  };
11
16
 
12
- export const RoundedIcon = JSX<RoundedIconProps>(({ iconBgVersion = 'primary', ...rest }) => (
13
- <div className={style('rounded-icon p-2.5 mr-3', iconBgStyles[iconBgVersion])}>
14
- <Icon {...rest} />
15
- </div>
16
- ));
17
+ export const RoundedIcon = JSX<RoundedIconProps>(
18
+ ({ iconBgVersion = 'primary', size, icon, ...rest }) => {
19
+ const width = String(size?.width || 24);
20
+ const height = String(size?.height || 24);
21
+
22
+ return icon ? (
23
+ <div className={style('rounded-icon p-2.5 mr-3', iconBgStyles[iconBgVersion])}>
24
+ <Icon {...rest} width={width} height={height} name={icon} />
25
+ </div>
26
+ ) : null;
27
+ },
28
+ );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.11.2",
3
+ "version": "0.11.3",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -35,7 +35,7 @@ const renderStep = (benefit: BenefitBlockItemProps, i: number) => {
35
35
  <div key={String(i)} className="flex items-center basis-1/2 max-w-[500px] mb-14">
36
36
  {benefit?.icon?.icon ? (
37
37
  <Img
38
- className="w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider text-primary-main group-data-secondary:bg-white/30 group-data-secondary:text-black"
38
+ className="w-12 h-12 min-w-12 p-3 rounded-icon bg-main-divider text-primary-main group-data-secondary:bg-white/30 group-data-secondary:text-black"
39
39
  image={benefit.icon}
40
40
  />
41
41
  ) : null}
@@ -1,4 +1,6 @@
1
1
  import type { BlocksRegistry } from '../model/BlocksRegistry';
2
+ import { ButtonsBlock } from './ButtonsBlock/ButtonsBlock';
3
+ import { CardTransfer } from './CardTransfer/CardTransfer';
2
4
  import { Carousel } from './Carousel/Carousel';
3
5
  import { CarouselProgramsCard } from './CarouselProgramsCard/CarouselProgramsCard';
4
6
  import { CarouselRecommendationCard } from './CarouselRecommendationCard/CarouselRecommendationCard';
@@ -10,6 +12,7 @@ import { Headline } from './Headline/Headline';
10
12
  import { ImgBlock } from './ImgBlock/ImgBlock';
11
13
  import { LinkDocs } from './LinkDocs/LinkDocs';
12
14
  import { MobileAppTile } from './MobileAppTile/MobileAppTile';
15
+ import { PictureText } from './PictureText/PictureText';
13
16
  import { Placeholder } from './Placeholder/Placeholder';
14
17
  import { ProductBlock } from './ProductBlock/ProductBlock';
15
18
  import { ProductGallery } from './ProductGallery/ProductGallery';
@@ -21,6 +24,8 @@ import { TextBlock } from './TextBlock/TextBlock';
21
24
  import { VerticalLayout } from './VerticalLayout/VerticalLayout';
22
25
 
23
26
  export const Blocks: BlocksRegistry = {
27
+ ButtonsBlock,
28
+ CardTransfer,
24
29
  Carousel,
25
30
  CarouselTariffsCard,
26
31
  ComparisonTable,
@@ -30,6 +35,7 @@ export const Blocks: BlocksRegistry = {
30
35
  ImgBlock,
31
36
  LinkDocs,
32
37
  MobileAppTile,
38
+ PictureText,
33
39
  Placeholder,
34
40
  ProductBlock,
35
41
  StepsBlock,
@@ -4,7 +4,7 @@ import { BenefitsBlock } from './BenefitsBlock/BenefitsBlock';
4
4
  import { Bonus } from './Bonus/Bonus';
5
5
  import { BonusBenefitsBlock } from './BonusBenefitsBlock/BonusBenefitsBlock';
6
6
  import { BusinessBlock } from './BusinessBlock/BusinessBlock';
7
- import { ButtonBlock } from './ButtonBlock/ButtonBlock';
7
+ import { ButtonsBlock } from './ButtonsBlock/ButtonsBlock';
8
8
  import { Calculator } from './Calculator/Calculator';
9
9
  import { CardTransfer } from './CardTransfer/CardTransfer';
10
10
  import { Carousel } from './Carousel/Carousel';
@@ -64,7 +64,7 @@ export const Blocks: BlocksRegistry = {
64
64
  Bonus,
65
65
  BonusBenefitsBlock,
66
66
  BusinessBlock,
67
- ButtonBlock,
67
+ ButtonsBlock,
68
68
  Calculator,
69
69
  CardTransfer,
70
70
  Carousel,
@@ -72,4 +72,4 @@ const renderBonusCount = (_: BonusCountDef) => (
72
72
  );
73
73
 
74
74
  const renderBonusImage = (_: BonusImageDef) =>
75
- _.image ? <Img className={`w-12 h-12 min-w-12 p-3 rounded-full`} image={_.image} /> : null;
75
+ _.image ? <Img className={`w-12 h-12 min-w-12 p-3 rounded-icon`} image={_.image} /> : null;
@@ -28,7 +28,7 @@ const renderItem = (item: BusinessCardItemProps, key: string) => {
28
28
  return (
29
29
  <li key={key} className="flex items-center gap-3.5 mb-3 last:mb-0">
30
30
  {icon?.icon ? (
31
- <Img image={icon} className="w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider" />
31
+ <Img image={icon} className="w-12 h-12 min-w-12 p-3 rounded-icon bg-main-divider" />
32
32
  ) : null}
33
33
  {icon?.src ? <Img image={icon} /> : null}
34
34
  <span className="text-xl-light">{text}</span>
@@ -0,0 +1,14 @@
1
+ {
2
+ "content": {
3
+ "buttons": [
4
+ {
5
+ "href": "#",
6
+ "text": "Кнопка",
7
+ "target": "_blank",
8
+ "version": "primary",
9
+ "icon": { "format": "webp", "size": { "width": 24, "height": 24 } },
10
+ "iconRight": { "format": "webp", "size": { "width": 24, "height": 24 } }
11
+ }
12
+ ]
13
+ }
14
+ }
@@ -0,0 +1,26 @@
1
+ import '../../setup-fixture';
2
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
3
+ import { ButtonsBlock } from './ButtonsBlock';
4
+
5
+ const buttons: ButtonWithIconProps[] = [
6
+ {
7
+ href: '/credit-cards',
8
+ text: 'Оформить',
9
+ target: '_blank',
10
+ version: 'primary',
11
+ },
12
+ {
13
+ href: '/details',
14
+ text: 'Подробнее',
15
+ target: '_blank',
16
+ version: 'secondary',
17
+ },
18
+ ];
19
+
20
+ export default {
21
+ default: (
22
+ <div className="container grid grid-cols-12 p-4">
23
+ <ButtonsBlock className="col-span-12" buttons={buttons} />
24
+ </div>
25
+ ),
26
+ };
@@ -0,0 +1,26 @@
1
+ import '../../setup-fixture';
2
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
3
+ import { ButtonsBlock } from './ButtonsBlock';
4
+
5
+ const buttons: ButtonWithIconProps[] = [
6
+ {
7
+ href: '/credit-cards',
8
+ text: 'Оформить',
9
+ target: '_blank',
10
+ version: 'primary',
11
+ },
12
+ {
13
+ href: '/details',
14
+ text: 'Подробнее',
15
+ target: '_blank',
16
+ version: 'secondary',
17
+ },
18
+ ];
19
+
20
+ export default {
21
+ default: (
22
+ <div className="container grid grid-cols-12 p-4">
23
+ <ButtonsBlock className="col-span-12" buttons={buttons} />
24
+ </div>
25
+ ),
26
+ };
@@ -3,12 +3,12 @@ import type { UniBlockProps } from '../../model/JSXBlock';
3
3
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
4
  import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
5
5
  import { style } from '../../utils/style';
6
- import type { ButtonBlockContent } from './ButtonBlockContent';
6
+ import type { ButtonsBlockContent } from './ButtonsBlockContent';
7
7
 
8
- interface ButtonBlockProps extends ButtonBlockContent, UniBlockProps {}
8
+ interface ButtonsBlockProps extends ButtonsBlockContent, UniBlockProps {}
9
9
 
10
- export const ButtonBlock = JSX<ButtonBlockProps>(({ button, className, ...rest }) => (
10
+ export const ButtonsBlock = JSX<ButtonsBlockProps>(({ buttons, className, ...rest }) => (
11
11
  <BlockWrapper className={style('!bg-transparent', className)} {...rest}>
12
- {renderButtonsSection([button])}
12
+ {renderButtonsSection(buttons)}
13
13
  </BlockWrapper>
14
14
  ));
@@ -0,0 +1,14 @@
1
+ {
2
+ "content": {
3
+ "buttons": {
4
+ "items": {
5
+ "icon": {
6
+ "ui:field": "icon"
7
+ },
8
+ "iconRight": {
9
+ "ui:field": "icon"
10
+ }
11
+ }
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,9 @@
1
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
2
+
3
+ /**
4
+ * @title Блок кнопок
5
+ */
6
+ export interface ButtonsBlockContent {
7
+ /** @title Кнопки */
8
+ buttons?: ButtonWithIconProps[];
9
+ }
@@ -0,0 +1,18 @@
1
+ import '../../setup-fixture';
2
+ import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
3
+ import { CardTransfer } from './CardTransfer';
4
+
5
+ const button: ButtonProps = {
6
+ href: '',
7
+ text: 'Далее',
8
+ target: '_blank',
9
+ version: 'primary',
10
+ };
11
+
12
+ export default {
13
+ default: (
14
+ <div className="container grid grid-cols-12">
15
+ <CardTransfer className="col-span-12" button={button} />
16
+ </div>
17
+ ),
18
+ };