@redneckz/wildless-cms-uni-blocks 0.4.1 → 0.4.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 (327) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +108 -85
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/components/BaseTile/BaseTile.js +1 -1
  5. package/dist/components/BaseTile/BaseTile.js.map +1 -1
  6. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  7. package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
  8. package/dist/components/BlockContent.d.ts +1 -2
  9. package/dist/components/Blocks.d.ts +0 -1
  10. package/dist/components/Blocks.js +0 -2
  11. package/dist/components/Blocks.js.map +1 -1
  12. package/dist/components/Footer/MediaButton.d.ts +1 -1
  13. package/dist/components/Footer/SocialMedia.d.ts +1 -1
  14. package/dist/components/Footer/SocialMedia.mobile.d.ts +1 -1
  15. package/dist/components/Gallery/GalleryContainer.js.map +1 -1
  16. package/dist/components/PictureText/PictureText.js +14 -5
  17. package/dist/components/PictureText/PictureText.js.map +1 -1
  18. package/dist/components/PictureText/PictureTextContent.d.ts +8 -16
  19. package/dist/components/ProductBlock/ProductBlockContent.d.ts +3 -15
  20. package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  21. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  22. package/dist/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
  23. package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  24. package/dist/components/ProductBlock/renderBenefit.d.ts +4 -2
  25. package/dist/components/ProductBlock/renderBenefit.js +3 -22
  26. package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  27. package/dist/components/ProductGallery/ProductGallery.js +5 -5
  28. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  29. package/dist/components/ProductTile/ProductTile.js +1 -1
  30. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  31. package/dist/components/PromoTile/PromoTile.js +1 -1
  32. package/dist/components/PromoTile/PromoTile.js.map +1 -1
  33. package/dist/components/Recommendation/RecommendationCard.d.ts +1 -1
  34. package/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -1
  35. package/dist/components/Tabs/Tabs.d.ts +2 -1
  36. package/dist/components/Tabs/Tabs.js +3 -3
  37. package/dist/components/Tabs/Tabs.js.map +1 -1
  38. package/dist/components/Tabs/TabsContent.d.ts +8 -2
  39. package/dist/components/Tabs/renderGroupTab.d.ts +4 -0
  40. package/dist/components/Tabs/renderGroupTab.js +18 -0
  41. package/dist/components/Tabs/renderGroupTab.js.map +1 -0
  42. package/dist/components/Tabs/renderLinkTab.d.ts +8 -0
  43. package/dist/components/Tabs/renderLinkTab.js +7 -0
  44. package/dist/components/Tabs/renderLinkTab.js.map +1 -0
  45. package/dist/components/Tabs/renderTab.d.ts +5 -5
  46. package/dist/components/Tabs/renderTab.js +14 -14
  47. package/dist/components/Tabs/renderTab.js.map +1 -1
  48. package/dist/components/Tabs/tabItemClasses.d.ts +6 -0
  49. package/dist/components/Tabs/tabItemClasses.js +9 -0
  50. package/dist/components/Tabs/tabItemClasses.js.map +1 -0
  51. package/dist/ui-kit/BenefitItem/BenefitItem.d.ts +4 -0
  52. package/dist/ui-kit/BenefitItem/BenefitItem.js +29 -0
  53. package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -0
  54. package/dist/ui-kit/BenefitItem/BenefitItemProps.d.ts +24 -0
  55. package/dist/{components/Insurance/InsuranceContent.js → ui-kit/BenefitItem/BenefitItemProps.js} +1 -1
  56. package/dist/ui-kit/BenefitItem/BenefitItemProps.js.map +1 -0
  57. package/dist/ui-kit/BlockWrapper.js +10 -1
  58. package/dist/ui-kit/BlockWrapper.js.map +1 -1
  59. package/dist/ui-kit/Foldable/Foldable.js +1 -1
  60. package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  61. package/lib/common.css +1 -1
  62. package/lib/components/BaseTile/BaseTile.js +1 -1
  63. package/lib/components/BaseTile/BaseTile.js.map +1 -1
  64. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  65. package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
  66. package/lib/components/BlockContent.d.ts +1 -2
  67. package/lib/components/Blocks.d.ts +0 -1
  68. package/lib/components/Blocks.js +0 -2
  69. package/lib/components/Blocks.js.map +1 -1
  70. package/lib/components/Footer/MediaButton.d.ts +1 -1
  71. package/lib/components/Footer/SocialMedia.d.ts +1 -1
  72. package/lib/components/Footer/SocialMedia.mobile.d.ts +1 -1
  73. package/lib/components/Gallery/GalleryContainer.js.map +1 -1
  74. package/lib/components/PictureText/PictureText.fixture.d.ts +4 -0
  75. package/lib/components/PictureText/PictureText.js +14 -5
  76. package/lib/components/PictureText/PictureText.js.map +1 -1
  77. package/lib/components/PictureText/PictureTextContent.d.ts +8 -16
  78. package/lib/components/ProductBlock/ProductBlockContent.d.ts +3 -15
  79. package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  80. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  81. package/lib/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
  82. package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  83. package/lib/components/ProductBlock/renderBenefit.d.ts +4 -3
  84. package/lib/components/ProductBlock/renderBenefit.js +4 -23
  85. package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  86. package/lib/components/ProductGallery/ProductGallery.js +5 -5
  87. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  88. package/lib/components/ProductTile/ProductTile.js +1 -1
  89. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  90. package/lib/components/PromoTile/PromoTile.js +1 -1
  91. package/lib/components/PromoTile/PromoTile.js.map +1 -1
  92. package/lib/components/Recommendation/RecommendationCard.d.ts +1 -1
  93. package/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -1
  94. package/lib/components/Tabs/Tabs.d.ts +2 -1
  95. package/lib/components/Tabs/Tabs.js +3 -3
  96. package/lib/components/Tabs/Tabs.js.map +1 -1
  97. package/lib/components/Tabs/TabsContent.d.ts +8 -2
  98. package/lib/components/Tabs/renderGroupTab.d.ts +4 -0
  99. package/lib/components/Tabs/renderGroupTab.js +15 -0
  100. package/lib/components/Tabs/renderGroupTab.js.map +1 -0
  101. package/lib/components/Tabs/renderLinkTab.d.ts +8 -0
  102. package/lib/components/Tabs/renderLinkTab.js +4 -0
  103. package/lib/components/Tabs/renderLinkTab.js.map +1 -0
  104. package/lib/components/Tabs/renderTab.d.ts +5 -5
  105. package/lib/components/Tabs/renderTab.js +14 -14
  106. package/lib/components/Tabs/renderTab.js.map +1 -1
  107. package/lib/components/Tabs/tabItemClasses.d.ts +6 -0
  108. package/lib/components/Tabs/tabItemClasses.js +7 -0
  109. package/lib/components/Tabs/tabItemClasses.js.map +1 -0
  110. package/lib/ui-kit/BenefitItem/BenefitItem.d.ts +4 -0
  111. package/lib/ui-kit/BenefitItem/BenefitItem.js +27 -0
  112. package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -0
  113. package/lib/ui-kit/BenefitItem/BenefitItemProps.d.ts +24 -0
  114. package/lib/ui-kit/BenefitItem/BenefitItemProps.js +2 -0
  115. package/lib/ui-kit/BenefitItem/BenefitItemProps.js.map +1 -0
  116. package/lib/ui-kit/BlockWrapper.js +10 -1
  117. package/lib/ui-kit/BlockWrapper.js.map +1 -1
  118. package/lib/ui-kit/Foldable/Foldable.js +1 -1
  119. package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  120. package/mobile/bundle/bundle.umd.js +30 -13
  121. package/mobile/bundle/bundle.umd.min.js +1 -1
  122. package/mobile/dist/components/BaseTile/BaseTile.js +1 -1
  123. package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
  124. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  125. package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
  126. package/mobile/dist/components/BlockContent.d.ts +1 -2
  127. package/mobile/dist/components/Footer/MediaButton.d.ts +1 -1
  128. package/mobile/dist/components/Footer/SocialMedia.d.ts +1 -1
  129. package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -1
  130. package/mobile/dist/components/PictureText/PictureText.js +14 -5
  131. package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
  132. package/mobile/dist/components/PictureText/PictureTextContent.d.ts +8 -16
  133. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +3 -15
  134. package/mobile/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  135. package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  136. package/mobile/dist/components/ProductBlock/renderBenefit.d.ts +4 -2
  137. package/mobile/dist/components/ProductBlock/renderBenefit.js +3 -19
  138. package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  139. package/mobile/dist/components/ProductTile/ProductTile.js +1 -1
  140. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  141. package/mobile/dist/components/PromoTile/PromoTile.js +1 -1
  142. package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
  143. package/mobile/dist/components/Recommendation/RecommendationCard.d.ts +1 -1
  144. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -1
  145. package/mobile/dist/components/Tabs/Tabs.d.ts +2 -1
  146. package/mobile/dist/components/Tabs/Tabs.js +3 -3
  147. package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
  148. package/mobile/dist/components/Tabs/TabsContent.d.ts +8 -2
  149. package/mobile/dist/components/Tabs/renderGroupTab.d.ts +4 -0
  150. package/mobile/dist/components/Tabs/renderGroupTab.js +18 -0
  151. package/mobile/dist/components/Tabs/renderGroupTab.js.map +1 -0
  152. package/mobile/dist/components/Tabs/renderLinkTab.d.ts +8 -0
  153. package/mobile/dist/components/Tabs/renderLinkTab.js +7 -0
  154. package/mobile/dist/components/Tabs/renderLinkTab.js.map +1 -0
  155. package/mobile/dist/components/Tabs/renderTab.d.ts +5 -5
  156. package/mobile/dist/components/Tabs/renderTab.js +14 -14
  157. package/mobile/dist/components/Tabs/renderTab.js.map +1 -1
  158. package/mobile/dist/components/Tabs/tabItemClasses.d.ts +6 -0
  159. package/mobile/dist/components/Tabs/tabItemClasses.js +9 -0
  160. package/mobile/dist/components/Tabs/tabItemClasses.js.map +1 -0
  161. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.d.ts +4 -0
  162. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +29 -0
  163. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -0
  164. package/mobile/dist/ui-kit/BenefitItem/BenefitItemProps.d.ts +24 -0
  165. package/mobile/dist/{components/Insurance/InsuranceContent.js → ui-kit/BenefitItem/BenefitItemProps.js} +1 -1
  166. package/mobile/dist/ui-kit/BenefitItem/BenefitItemProps.js.map +1 -0
  167. package/mobile/dist/ui-kit/BlockWrapper.js +10 -1
  168. package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
  169. package/mobile/dist/ui-kit/Foldable/Foldable.js +1 -1
  170. package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  171. package/mobile/lib/components/BaseTile/BaseTile.js +1 -1
  172. package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
  173. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  174. package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
  175. package/mobile/lib/components/BlockContent.d.ts +1 -2
  176. package/mobile/lib/components/Footer/MediaButton.d.ts +1 -1
  177. package/mobile/lib/components/Footer/SocialMedia.d.ts +1 -1
  178. package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -1
  179. package/mobile/lib/components/PictureText/PictureText.js +14 -5
  180. package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
  181. package/mobile/lib/components/PictureText/PictureTextContent.d.ts +8 -16
  182. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +3 -15
  183. package/mobile/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  184. package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  185. package/mobile/lib/components/ProductBlock/renderBenefit.d.ts +4 -2
  186. package/mobile/lib/components/ProductBlock/renderBenefit.js +4 -20
  187. package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  188. package/mobile/lib/components/ProductTile/ProductTile.js +1 -1
  189. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  190. package/mobile/lib/components/PromoTile/PromoTile.js +1 -1
  191. package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
  192. package/mobile/lib/components/Recommendation/RecommendationCard.d.ts +1 -1
  193. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -1
  194. package/mobile/lib/components/Tabs/Tabs.d.ts +2 -1
  195. package/mobile/lib/components/Tabs/Tabs.js +3 -3
  196. package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
  197. package/mobile/lib/components/Tabs/TabsContent.d.ts +8 -2
  198. package/mobile/lib/components/Tabs/renderGroupTab.d.ts +4 -0
  199. package/mobile/lib/components/Tabs/renderGroupTab.js +15 -0
  200. package/mobile/lib/components/Tabs/renderGroupTab.js.map +1 -0
  201. package/mobile/lib/components/Tabs/renderLinkTab.d.ts +8 -0
  202. package/mobile/lib/components/Tabs/renderLinkTab.js +4 -0
  203. package/mobile/lib/components/Tabs/renderLinkTab.js.map +1 -0
  204. package/mobile/lib/components/Tabs/renderTab.d.ts +5 -5
  205. package/mobile/lib/components/Tabs/renderTab.js +14 -14
  206. package/mobile/lib/components/Tabs/renderTab.js.map +1 -1
  207. package/mobile/lib/components/Tabs/tabItemClasses.d.ts +6 -0
  208. package/mobile/lib/components/Tabs/tabItemClasses.js +7 -0
  209. package/mobile/lib/components/Tabs/tabItemClasses.js.map +1 -0
  210. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.d.ts +4 -0
  211. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +27 -0
  212. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -0
  213. package/mobile/lib/ui-kit/BenefitItem/BenefitItemProps.d.ts +24 -0
  214. package/mobile/lib/ui-kit/BenefitItem/BenefitItemProps.js +2 -0
  215. package/mobile/lib/ui-kit/BenefitItem/BenefitItemProps.js.map +1 -0
  216. package/mobile/lib/ui-kit/BlockWrapper.js +10 -1
  217. package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
  218. package/mobile/lib/ui-kit/Foldable/Foldable.js +1 -1
  219. package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  220. package/mobile/src/components/BaseTile/BaseTile.tsx +2 -2
  221. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +2 -2
  222. package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -2
  223. package/mobile/src/components/BlockContent.ts +0 -2
  224. package/mobile/src/components/ContentPage/ContentPage.page.json +41 -41
  225. package/mobile/src/components/Footer/MediaButton.tsx +1 -1
  226. package/mobile/src/components/Footer/SocialMedia.tsx +1 -1
  227. package/mobile/src/components/Gallery/Gallery.tsx +1 -1
  228. package/mobile/src/components/Gallery/GalleryContainer.tsx +0 -1
  229. package/mobile/src/components/PictureText/PictureText.example.json +7 -4
  230. package/mobile/src/components/PictureText/PictureText.tsx +55 -34
  231. package/mobile/src/components/PictureText/PictureTextContent.ts +8 -17
  232. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +3 -17
  233. package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +1 -5
  234. package/mobile/src/components/ProductBlock/renderBenefit.tsx +17 -42
  235. package/mobile/src/components/ProductTile/ProductTile.tsx +1 -1
  236. package/mobile/src/components/PromoTile/PromoTile.tsx +1 -1
  237. package/mobile/src/components/Recommendation/RecommendationCard.tsx +1 -1
  238. package/mobile/src/components/StepsBlock/StepsBlockStyleMaps.ts +1 -1
  239. package/mobile/src/components/Tabs/Tabs.example.json +3 -3
  240. package/mobile/src/components/Tabs/Tabs.tsx +5 -4
  241. package/mobile/src/components/Tabs/TabsContent.ts +9 -2
  242. package/mobile/src/components/Tabs/renderGroupTab.tsx +51 -0
  243. package/mobile/src/components/Tabs/renderLinkTab.tsx +25 -0
  244. package/mobile/src/components/Tabs/renderTab.tsx +18 -38
  245. package/mobile/src/components/Tabs/tabItemClasses.ts +7 -0
  246. package/mobile/src/components/__snapshots__/Blocks.spec.tsx.snap +15 -30
  247. package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +58 -0
  248. package/mobile/src/ui-kit/BenefitItem/BenefitItemProps.ts +27 -0
  249. package/mobile/src/ui-kit/BlockWrapper.tsx +12 -1
  250. package/mobile/src/ui-kit/Foldable/Foldable.tsx +1 -1
  251. package/package.json +1 -1
  252. package/src/components/BaseTile/BaseTile.tsx +2 -2
  253. package/src/components/BenefitsBlock/BenefitsBlock.tsx +2 -2
  254. package/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -2
  255. package/src/components/BlockContent.ts +0 -2
  256. package/src/components/Blocks.ts +0 -2
  257. package/src/components/ContentPage/ContentPage.page.json +41 -41
  258. package/src/components/Footer/MediaButton.tsx +1 -1
  259. package/src/components/Footer/SocialMedia.mobile.tsx +1 -1
  260. package/src/components/Footer/SocialMedia.tsx +1 -1
  261. package/src/components/Gallery/Gallery.mobile.tsx +1 -1
  262. package/src/components/Gallery/GalleryContainer.tsx +0 -1
  263. package/src/components/PictureText/PictureText.example.json +7 -4
  264. package/src/components/PictureText/PictureText.fixture.tsx +74 -5
  265. package/src/components/PictureText/PictureText.tsx +55 -34
  266. package/src/components/PictureText/PictureTextContent.ts +8 -17
  267. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +3 -3
  268. package/src/components/ProductBlock/ProductBlock.fixture.tsx +28 -6
  269. package/src/components/ProductBlock/ProductBlockContent.ts +3 -17
  270. package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +1 -5
  271. package/src/components/ProductBlock/ProductBlockInner.tsx +1 -3
  272. package/src/components/ProductBlock/renderBenefit.tsx +17 -51
  273. package/src/components/ProductGallery/ProductGallery.tsx +5 -4
  274. package/src/components/ProductTile/ProductTile.tsx +1 -1
  275. package/src/components/PromoTile/PromoTile.tsx +1 -1
  276. package/src/components/Recommendation/RecommendationCard.tsx +1 -1
  277. package/src/components/StepsBlock/StepsBlockStyleMaps.ts +1 -1
  278. package/src/components/Tabs/Tabs.example.json +3 -3
  279. package/src/components/Tabs/Tabs.fixture.tsx +3 -3
  280. package/src/components/Tabs/Tabs.tsx +5 -4
  281. package/src/components/Tabs/TabsContent.ts +9 -2
  282. package/src/components/Tabs/renderGroupTab.tsx +51 -0
  283. package/src/components/Tabs/renderLinkTab.tsx +25 -0
  284. package/src/components/Tabs/renderTab.tsx +18 -38
  285. package/src/components/Tabs/tabItemClasses.ts +7 -0
  286. package/src/components/__snapshots__/Blocks.spec.tsx.snap +15 -30
  287. package/src/ui-kit/BenefitItem/BenefitItem.tsx +58 -0
  288. package/src/ui-kit/BenefitItem/BenefitItemProps.ts +27 -0
  289. package/src/ui-kit/BlockWrapper.tsx +12 -1
  290. package/src/ui-kit/Foldable/Foldable.tsx +1 -1
  291. package/dist/components/Insurance/Insurance.d.ts +0 -5
  292. package/dist/components/Insurance/Insurance.js +0 -24
  293. package/dist/components/Insurance/Insurance.js.map +0 -1
  294. package/dist/components/Insurance/InsuranceContent.d.ts +0 -27
  295. package/dist/components/Insurance/InsuranceContent.js.map +0 -1
  296. package/dist/components/ProductBlock/renderBenefit.mobile.d.ts +0 -3
  297. package/dist/components/ProductBlock/renderBenefit.mobile.js +0 -25
  298. package/dist/components/ProductBlock/renderBenefit.mobile.js.map +0 -1
  299. package/lib/components/Insurance/Insurance.d.ts +0 -5
  300. package/lib/components/Insurance/Insurance.fixture.d.ts +0 -6
  301. package/lib/components/Insurance/Insurance.js +0 -22
  302. package/lib/components/Insurance/Insurance.js.map +0 -1
  303. package/lib/components/Insurance/InsuranceContent.d.ts +0 -27
  304. package/lib/components/Insurance/InsuranceContent.js +0 -2
  305. package/lib/components/Insurance/InsuranceContent.js.map +0 -1
  306. package/lib/components/ProductBlock/renderBenefit.mobile.d.ts +0 -3
  307. package/lib/components/ProductBlock/renderBenefit.mobile.js +0 -22
  308. package/lib/components/ProductBlock/renderBenefit.mobile.js.map +0 -1
  309. package/mobile/dist/components/Insurance/Insurance.d.ts +0 -5
  310. package/mobile/dist/components/Insurance/Insurance.js +0 -24
  311. package/mobile/dist/components/Insurance/Insurance.js.map +0 -1
  312. package/mobile/dist/components/Insurance/InsuranceContent.d.ts +0 -27
  313. package/mobile/dist/components/Insurance/InsuranceContent.js.map +0 -1
  314. package/mobile/lib/components/Insurance/Insurance.d.ts +0 -5
  315. package/mobile/lib/components/Insurance/Insurance.js +0 -22
  316. package/mobile/lib/components/Insurance/Insurance.js.map +0 -1
  317. package/mobile/lib/components/Insurance/InsuranceContent.d.ts +0 -27
  318. package/mobile/lib/components/Insurance/InsuranceContent.js +0 -2
  319. package/mobile/lib/components/Insurance/InsuranceContent.js.map +0 -1
  320. package/mobile/src/components/Insurance/Insurance.example.json +0 -29
  321. package/mobile/src/components/Insurance/Insurance.tsx +0 -83
  322. package/mobile/src/components/Insurance/InsuranceContent.ts +0 -29
  323. package/src/components/Insurance/Insurance.example.json +0 -29
  324. package/src/components/Insurance/Insurance.fixture.tsx +0 -70
  325. package/src/components/Insurance/Insurance.tsx +0 -83
  326. package/src/components/Insurance/InsuranceContent.ts +0 -29
  327. package/src/components/ProductBlock/renderBenefit.mobile.tsx +0 -44
@@ -0,0 +1,24 @@
1
+ import type { Picture } from '../../model/Picture';
2
+ import type { BlockVersion } from '../../model/BlockVersion';
3
+ import type { IconVersion } from '../../model/IconVersion';
4
+ export interface BenefitItemCommonProps {
5
+ benefitsVersion?: IconVersion;
6
+ /** @hidden */
7
+ version?: BlockVersion;
8
+ /** @hidden */
9
+ className?: string;
10
+ }
11
+ export declare type BenefitItemProps = {
12
+ icon?: Picture;
13
+ /** @title Название */
14
+ label?: string;
15
+ /** @title Описание */
16
+ description?: string;
17
+ };
18
+ /**
19
+ * @title Преимущество
20
+ */
21
+ export declare type BenefitsProps = BenefitItemCommonProps & {
22
+ /** @title Список преимуществ */
23
+ benefits?: BenefitItemProps[];
24
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=BenefitItemProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BenefitItemProps.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/BenefitItemProps.ts"],"names":[],"mappings":""}
@@ -8,11 +8,20 @@ export const BlockWrapper = JSX(({ anchor, className, context, children, tag = '
8
8
  const { IntersectionObserverTag } = context;
9
9
  const [shouldRenderBlock, setShouldRenderBlock] = useState(true);
10
10
  useEffect(() => EventBus.inst.subscribe('tab', (event) => {
11
- setShouldRenderBlock(!labels?.length || !event.label || labels.includes(event.label));
11
+ if (event.type === 'group') {
12
+ setShouldRenderBlock(!labels?.length || !event.label || labels.includes(event.label));
13
+ }
14
+ else {
15
+ setShouldRenderBlock(true);
16
+ scrollToBlock(event.label);
17
+ }
12
18
  }), [labels]);
13
19
  if (!shouldRenderBlock) {
14
20
  return null;
15
21
  }
16
22
  return anchor ? (_jsx(IntersectionObserverTag, { tag: tag, className: className, observerCallback: changeHashOnObserve, observerOptions: { threshold: 1 }, anchor: anchor, children: children })) : (_jsx(Tag, { className: className, children: children }));
17
23
  });
24
+ function scrollToBlock(label) {
25
+ setTimeout(() => globalThis.document.getElementById(`#${label}`)?.scrollIntoView({ behavior: 'smooth' }));
26
+ }
18
27
  //# sourceMappingURL=BlockWrapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BlockWrapper.js","sourceRoot":"","sources":["../../src/ui-kit/BlockWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAA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AmB,EACrC,eAAe,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,EACjC,MAAM,EAAE,MAAM,YAEb,QAAQ,GACe,CAC3B,CAAC,CAAC,CAAC,CACF,KAAC,GAAG,IAAC,SAAS,EAAE,SAAS,YAAG,QAAQ,GAAO,CAC5C,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,aAAa,CAAC,KAAc;IACnC,UAAU,CAAC,GAAG,EAAE,CACd,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,KAAK,EAAE,CAAC,EAAE,cAAc,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CACxF,CAAC;AACJ,CAAC"}
@@ -9,7 +9,7 @@ export const Foldable = JSX(({ blocks = [], hiddenBlocksNum = 0, foldButtonClass
9
9
  initialState: isUnfolded,
10
10
  });
11
11
  const buttonClassName = foldButtonClasses ||
12
- 'border-none bg-primary-main px-0 py-[26px] mb-[1px] w-full font-sans text-white text-l flex justify-center cursor-pointer';
12
+ 'border-none bg-primary-main hover:bg-primary-hover px-0 py-[26px] mb-[1px] w-full font-sans text-white text-h4 flex justify-center cursor-pointer';
13
13
  const getFoldButtonLabel = isActive ? 'Скрыть' : foldButtonLabel;
14
14
  return blocks ? (_jsxs("div", { children: [renderBlocks(blocks, render, { blocksToHide, isActive, containerClasses }), hiddenBlocksNum ? (_jsxs("button", { className: buttonClassName, "data-theme": foldButtonDataTheme, onClick: handleToggle, children: [_jsx("span", { className: "pr-3", children: getFoldButtonLabel }), icon ? _jsx(Icon, { name: icon, iconVersion: "white", width: "20", height: "20", asSVG: true }) : null] })) : null] })) : null;
15
15
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Foldable.js","sourceRoot":"","sources":["../../../src/ui-kit/Foldable/Foldable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAIxC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAA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,IAClF,EACN,QAAQ,CACT,CAAC;AACJ,CAAC,CAAC"}
@@ -10,9 +10,9 @@ export const BaseTile = JSX<BaseTileProps>(
10
10
  <div className={`font-sans flex flex-col grow h-full items-start ${className}`}>
11
11
  {title}
12
12
  <div className="flex grow w-full justify-between">
13
- <div className="flex flex-col justify-between w-full">
13
+ <div className="flex flex-col w-full">
14
14
  <div>{children}</div>
15
- {buttons ? <div>{buttons}</div> : null}
15
+ {buttons ? <div className="mt-9">{buttons}</div> : null}
16
16
  </div>
17
17
  {image}
18
18
  </div>
@@ -4,7 +4,7 @@ import type { UniBlockProps } from '../../types';
4
4
  import { Heading } from '../../ui-kit/Heading/Heading';
5
5
  import { Img } from '../../ui-kit/Img/Img';
6
6
  import type { BenefitItemProps, BenefitsBlockContent } from './BenefitsBlockContent';
7
- import { DescriptionType, ListBenefitDef, TextBenefitDef } from './BenefitsBlockContent';
7
+ import { DescriptionDef, ListBenefitDef, TextBenefitDef } from './BenefitsBlockContent';
8
8
 
9
9
  export interface BenefitsBlockProps extends BenefitsBlockContent, UniBlockProps {}
10
10
 
@@ -53,7 +53,7 @@ const renderStep = (benefit: BenefitItemProps, i: number) => {
53
53
  );
54
54
  };
55
55
 
56
- const renderDescription = (description?: DescriptionType) => {
56
+ const renderDescription = (description?: DescriptionDef) => {
57
57
  const benefitType = description ? description?.benefitType : null;
58
58
  if (!benefitType) {
59
59
  return null;
@@ -32,7 +32,7 @@ export type ListBenefitDef = {
32
32
  /**
33
33
  * @title Вид контента
34
34
  */
35
- export type DescriptionType = EmptyOption | TextBenefitDef | ListBenefitDef;
35
+ export type DescriptionDef = EmptyOption | TextBenefitDef | ListBenefitDef;
36
36
 
37
37
  /**
38
38
  * @title Преимущество
@@ -41,7 +41,7 @@ export interface BenefitItemProps {
41
41
  /** @title Название */
42
42
  label?: string;
43
43
  /** @title Описание */
44
- description?: DescriptionType;
44
+ description?: DescriptionDef;
45
45
  icon?: Picture;
46
46
  }
47
47
 
@@ -8,7 +8,6 @@ import type { GalleryContent } from './Gallery/GalleryContent';
8
8
  import type { GracePeriodContent } from './GracePeriod/GracePeriodContent';
9
9
  import type { GroupBlockContent } from './GroupBlock/GroupBlockContent';
10
10
  import type { HeaderContent } from './Header/HeaderContent';
11
- import type { InsuranceContent } from './Insurance/InsuranceContent';
12
11
  import type { InsuranceAmountBlockContent } from './InsuranceAmountBlock/InsuranceAmountBlockContent';
13
12
  import type { LinkDocsContent } from './LinkDocs/LinkDocsContent';
14
13
  import type { LinkListContent } from './LinkList/LinkListContent';
@@ -57,5 +56,4 @@ export type BlockContent =
57
56
  | LinkListContent
58
57
  | GroupBlockContent
59
58
  | BonusBenefitsBlockContent
60
- | InsuranceContent
61
59
  | SafeDepositRentalContent;
@@ -1947,12 +1947,51 @@
1947
1947
  "alt": "Варианты потребительского кредита",
1948
1948
  "format": "webp",
1949
1949
  "size": {
1950
- "width": 200,
1951
- "height": 200
1950
+ "width": 400,
1951
+ "height": 300
1952
1952
  }
1953
1953
  }
1954
1954
  }
1955
1955
  },
1956
+ {
1957
+ "type": "PictureText",
1958
+ "style": ["col-span-12"],
1959
+ "content": {
1960
+ "title": "Страховые риски и продукты",
1961
+ "description": "Описание",
1962
+ "sum": 500000,
1963
+ "image": {
1964
+ "src": "insurance.png",
1965
+ "title": "страхование",
1966
+ "format": "webp",
1967
+ "alt": "Страховые риски и продукты",
1968
+ "size": {
1969
+ "width": 400,
1970
+ "height": 300
1971
+ },
1972
+ "sources": [
1973
+ {
1974
+ "src": "insurance.png 1x, insurance-2x.png 2x",
1975
+ "format": "png"
1976
+ }
1977
+ ]
1978
+ },
1979
+ "benefits": [
1980
+ {
1981
+ "label": "Ликвидация организации",
1982
+ "icon": {
1983
+ "icon": "ShieldTickIcon"
1984
+ }
1985
+ },
1986
+ {
1987
+ "label": "Сокращение численности работников организации",
1988
+ "icon": {
1989
+ "icon": "ShieldTickIcon"
1990
+ }
1991
+ }
1992
+ ]
1993
+ }
1994
+ },
1956
1995
  {
1957
1996
  "type": "Recommendation",
1958
1997
  "style": ["col-span-12"],
@@ -2144,45 +2183,6 @@
2144
2183
  ]
2145
2184
  }
2146
2185
  },
2147
- {
2148
- "type": "Insurance",
2149
- "style": ["col-span-12"],
2150
- "content": {
2151
- "title": "Страховые риски и продукты",
2152
- "description": "Описание",
2153
- "sum": 500000,
2154
- "image": {
2155
- "src": "insurance.png",
2156
- "title": "страхование",
2157
- "format": "webp",
2158
- "alt": "Страховые риски и продукты",
2159
- "size": {
2160
- "width": 400,
2161
- "height": 300
2162
- },
2163
- "sources": [
2164
- {
2165
- "src": "insurance.png 1x, insurance-2x.png 2x",
2166
- "format": "png"
2167
- }
2168
- ]
2169
- },
2170
- "benefits": [
2171
- {
2172
- "label": "Ликвидация организации",
2173
- "icon": {
2174
- "icon": "ShieldTickIcon"
2175
- }
2176
- },
2177
- {
2178
- "label": "Сокращение численности работников организации",
2179
- "icon": {
2180
- "icon": "ShieldTickIcon"
2181
- }
2182
- }
2183
- ]
2184
- }
2185
- },
2186
2186
  {
2187
2187
  "type": "InsuranceAmountBlock",
2188
2188
  "style": ["col-span-12"],
@@ -1,5 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { BlockVersion } from '../../model/BlockVersion';
2
+ import type { BlockVersion } from '../../model/BlockVersion';
3
3
  import type { Picture } from '../../model/Picture';
4
4
  import { Img } from '../../ui-kit/Img/Img';
5
5
 
@@ -1,6 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useLink } from '../../hooks/useLink';
3
- import { BlockVersion } from '../../model/BlockVersion';
3
+ import type { BlockVersion } from '../../model/BlockVersion';
4
4
  import type { LinkProps } from '../../model/LinkProps';
5
5
  import type { UniBlockProps } from '../../types';
6
6
  import { MediaButton } from './MediaButton';
@@ -1,5 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { BlockVersion } from '../../model/BlockVersion';
2
+ import type { BlockVersion } from '../../model/BlockVersion';
3
3
  import type { ListOrientation } from '../../model/ListOrientation';
4
4
  import { Button } from '../../ui-kit/Button/Button';
5
5
  import { Heading } from '../../ui-kit/Heading/Heading';
@@ -1,6 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { GalleryVersion } from '../../model/GalleryVersion';
3
- import { Heading } from '../../ui-kit/Heading/Heading';
4
3
  import type { ContentPageContext } from '../ContentPage/ContentPageContext';
5
4
  import { cardStyleMap, cardVersionMap, cardWidthMap, galleryLengthForScrollMap } from './constants';
6
5
  import { GalleryCardInner } from './GalleryCardInner';
@@ -4,7 +4,8 @@
4
4
  "image": {
5
5
  "format": "webp",
6
6
  "size": {
7
- "width": 300
7
+ "width": 400,
8
+ "height": 300
8
9
  }
9
10
  },
10
11
  "version": "primary",
@@ -13,14 +14,16 @@
13
14
  {
14
15
  "label": "Преимущество №1",
15
16
  "icon": {
16
- "icon": "DocumentTextIcon"
17
+ "icon": "ShieldTickIcon"
17
18
  }
18
19
  },
19
20
  {
20
21
  "label": "Преимущество №2",
21
22
  "icon": {
22
- "icon": "DocumentTextIcon"
23
+ "icon": "ShieldTickIcon"
23
24
  }
24
25
  }
25
- ]
26
+ ],
27
+ "sum": 500000,
28
+ "monthLimit": 25000
26
29
  }
@@ -1,11 +1,13 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { UniBlockProps } from '../../types';
3
- import type { PictureTextBenefit, PictureTextContent } from './PictureTextContent';
4
-
5
- import { BlockVersion } from '../../model/BlockVersion';
3
+ import type { PictureTextContent } from './PictureTextContent';
4
+ import type { BlockVersion } from '../../model/BlockVersion';
5
+ import type { BenefitItemProps } from '../../ui-kit/BenefitItem/BenefitItemProps';
6
6
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
7
- import { Heading } from '../../ui-kit/Heading/Heading';
8
7
  import { Img } from '../../ui-kit/Img/Img';
8
+ import { BenefitItem } from '../../ui-kit/BenefitItem/BenefitItem';
9
+ import { Headline } from '../Headline/Headline';
10
+ import { addSpacesBetweenNumbers } from '../../utils/addSpacesBetweenNumbers';
9
11
 
10
12
  export interface PictureTextProps extends PictureTextContent, UniBlockProps {}
11
13
 
@@ -17,56 +19,75 @@ const pictureTextStyleMap: Record<BlockVersion, string> = {
17
19
  export const PictureText = JSX<PictureTextProps>(
18
20
  ({
19
21
  className = '',
22
+ context,
20
23
  title,
24
+ description,
21
25
  image,
22
26
  benefits,
23
27
  version = 'primary',
28
+ sum,
29
+ monthLimit,
24
30
  directionRight = false,
25
31
  ...rest
26
32
  }) => {
27
33
  return (
28
34
  <BlockWrapper
29
35
  className={`relative font-sans p-14 ${pictureTextStyleMap[version]} ${className}`}
36
+ context={context}
30
37
  {...rest}
31
38
  >
32
- <Heading headingType="h2" className="text-center" title={title} />
33
- <div className={'flex justify-center mt-9'}>
39
+ <Headline
40
+ context={context}
41
+ className="!p-0"
42
+ title={title}
43
+ description={description}
44
+ headlineVersion="M"
45
+ bgColorHeadline={version}
46
+ align="center"
47
+ />
48
+ <div className={'flex justify-center gap-[122px] mt-[30px]'}>
34
49
  {image?.src && <Img className={directionRight ? 'order-2 ml-6' : 'mr-6'} image={image} />}
35
- {benefits?.length ? (
36
- <div className="flex flex-col">
37
- {benefits.map((_, i) => renderBenefit(_, i, version))}
38
- </div>
39
- ) : null}
50
+ <div className="w-[558px] m-auto">
51
+ {benefits?.length ? (
52
+ <div className="flex flex-col gap-4">{benefits.map(renderBenefit(version))}</div>
53
+ ) : null}
54
+ {renderInsuranceSumMonth(sum, monthLimit)}
55
+ </div>
40
56
  </div>
41
57
  </BlockWrapper>
42
58
  );
43
59
  },
44
60
  );
45
61
 
46
- function renderBenefit(benefit: PictureTextBenefit, i: number, version: string) {
62
+ const renderBenefit = (version: BlockVersion) => (benefit: BenefitItemProps, i: number) =>
63
+ (
64
+ <BenefitItem
65
+ key={String(i)}
66
+ icon={benefit.icon}
67
+ label={benefit.label}
68
+ description={benefit.description}
69
+ version={version}
70
+ />
71
+ );
72
+
73
+ function renderInsuranceSumMonth(sum?: number, monthLimit?: number) {
74
+ return sum || monthLimit ? (
75
+ <div className="bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4">
76
+ {Number.isFinite(sum) ? renderValueBlock('Страховая сумма:', sum, Boolean(monthLimit)) : null}
77
+ {Number.isFinite(monthLimit)
78
+ ? renderValueBlock('Ежемесячный лимит:', monthLimit, Boolean(sum))
79
+ : null}
80
+ </div>
81
+ ) : null;
82
+ }
83
+
84
+ function renderValueBlock(title: string, sum = 0, isAnotherBlock = false) {
85
+ const widthStyle = isAnotherBlock ? 'w-fit' : 'w-full';
86
+
47
87
  return (
48
- <div key={String(i)} className="flex flex-row mb-8">
49
- {benefit.icon ? (
50
- <Img
51
- className="w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]"
52
- image={benefit.icon}
53
- width="48"
54
- height="48"
55
- asSVG
56
- />
57
- ) : null}
58
- <div className="flex gap-1 flex-col h-full ml-5 max-w-[490px]">
59
- {benefit?.label ? (
60
- <div className={`text-xl m-0 ${version === 'primary' ? 'text-primary-text' : ''}`}>
61
- {benefit.label}
62
- </div>
63
- ) : null}
64
- {benefit?.description ? (
65
- <div className={`text-s ${version === 'primary' ? 'text-secondary-text' : ''}`}>
66
- {benefit.description}
67
- </div>
68
- ) : null}
69
- </div>
88
+ <div className={`flex justify-between items-center gap-2 w-full ${widthStyle}`}>
89
+ <span className="text-secondary-text text-l-light">{title}</span>
90
+ <span className="text-primary-main text-h6">{addSpacesBetweenNumbers(sum)} ₽</span>
70
91
  </div>
71
92
  );
72
93
  }
@@ -1,29 +1,20 @@
1
- import { BlockVersion } from '../../model/BlockVersion';
2
- import type { TitleProp } from '../../model/HeadlineType';
3
1
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
4
- import type { Picture } from '../../model/Picture';
2
+ import type { BenefitsProps } from '../../ui-kit/BenefitItem/BenefitItemProps';
3
+ import type { HeadlineCommonProps } from '../../model/HeadlineType';
5
4
 
6
- export type TitleWithImageContent = TitleProp & ImageContent;
7
-
8
- export interface PictureTextBenefit {
9
- /** @title Иконка */
10
- icon?: Picture;
11
- /** @title Название */
12
- label?: string;
13
- /** @title Описание */
14
- description?: string;
15
- }
5
+ export type TitleWithImageContent = HeadlineCommonProps & ImageContent;
16
6
 
17
7
  /**
18
8
  * @title Картинка с текстом
19
9
  */
20
- export interface PictureTextContent extends TitleWithImageContent {
21
- version?: BlockVersion;
22
- /** @title Список преимуществ */
23
- benefits?: PictureTextBenefit[];
10
+ export interface PictureTextContent extends BenefitsProps, TitleWithImageContent {
24
11
  /**
25
12
  * @title Картинка справа/текст слева
26
13
  * @default false
27
14
  */
28
15
  directionRight?: boolean;
16
+ /** @title Ежемесячный лимит */
17
+ monthLimit?: number;
18
+ /** @title Страховая сумма */
19
+ sum?: number;
29
20
  }
@@ -4,33 +4,19 @@ import type { LinkProps } from '../../model/LinkProps';
4
4
  import type { ButtonContent, BackwardButtonProps } from '../../ui-kit/Button/ButtonProps';
5
5
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
6
6
  import type { ListContent } from '../../ui-kit/List/ListContent';
7
- import type { Picture } from '../../model/Picture';
8
7
  import type { HeadlineProps } from '../../model/HeadlineType';
9
-
10
- export interface ProductBlockBenefit {
11
- icon?: Picture;
12
- /** @title Название */
13
- label?: string;
14
- /** @title Описание */
15
- description?: string;
16
- }
17
-
18
- export type BenefitItemProps = {
19
- benefit: ProductBlockBenefit;
20
- version?: BlockVersion;
21
- benefitsVersion?: IconVersion;
22
- };
8
+ import type { BenefitItemProps } from '../../ui-kit/BenefitItem/BenefitItemProps';
23
9
 
24
10
  export type ProductBlockInnerContent = HeadlineProps &
25
11
  ListContent &
26
12
  ButtonContent &
27
13
  ImageContent & {
28
14
  /**
29
- * @title Преимущества
15
+ * @title Список преимуществ
30
16
  * @minItems 2
31
17
  * @maxItems 3
32
18
  */
33
- benefits?: ProductBlockBenefit[];
19
+ benefits?: BenefitItemProps[];
34
20
  benefitsVersion?: IconVersion;
35
21
  version?: BlockVersion;
36
22
  /**
@@ -52,11 +52,7 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
52
52
  }
53
53
  >
54
54
  {benefits?.filter((_) => _.label)?.length ? (
55
- <div className="mt-3">
56
- {benefits.map((benefit, i) =>
57
- renderBenefit({ benefit, version, benefitsVersion }, i),
58
- )}
59
- </div>
55
+ <div className="mt-3">{benefits.map(renderBenefit(version, benefitsVersion))}</div>
60
56
  ) : null}
61
57
  {items?.length ? (
62
58
  <List className="mt-3 text-m" items={items} version={version} isDotted={isDotted} />
@@ -1,44 +1,19 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
- import { Img } from '../../ui-kit/Img/Img';
3
- import type { BenefitItemProps } from './ProductBlockContent';
2
+ import type { BenefitItemProps } from '../../ui-kit/BenefitItem/BenefitItemProps';
3
+ import type { IconVersion } from '../../model/IconVersion';
4
+ import { BenefitItem } from '../../ui-kit/BenefitItem/BenefitItem';
4
5
 
5
- const benefitTitleStyleMap: Record<BlockVersion, string> = {
6
- primary: 'text-primary-text',
7
- secondary: 'text-white',
8
- };
9
- const benefitDescStyleMap: Record<BlockVersion, string> = {
10
- primary: 'text-secondary-text',
11
- secondary: 'text-white',
12
- };
13
-
14
- export function renderBenefit({ benefit, version = 'primary' }: BenefitItemProps, i: number) {
15
- const isIconWhite = version === 'secondary';
16
-
17
- return (
18
- <div key={String(i)} className="flex gap-3 items-center mb-2.5 last:mb-0">
19
- {benefit.icon ? (
20
- <Img
21
- className={renderBenefitIconBgStyle(version)}
22
- image={{ ...benefit?.icon, iconVersion: isIconWhite ? 'white' : 'normal' }}
23
- width="24"
24
- height="24"
25
- asSVG
26
- />
27
- ) : null}
28
- <div className={`text-l m-0 ${benefitTitleStyleMap[version]}`}>{benefit.label}</div>
29
- {benefit.description && (
30
- <div className={`text-s ${benefitDescStyleMap[version]}`}>{benefit.description}</div>
31
- )}
32
- </div>
33
- );
34
- }
35
-
36
- function renderBenefitIconBgStyle(version) {
37
- let bgColorStyle = 'text-primary-main';
38
-
39
- if (version === 'secondary') {
40
- bgColorStyle = 'text-black';
41
- }
42
-
43
- return `w-6 h-6 rounded-full box-border ${bgColorStyle}`;
44
- }
6
+ export const renderBenefit =
7
+ (version: BlockVersion = 'primary', benefitsVersion: IconVersion = 'normal') =>
8
+ ({ icon, label, description }: BenefitItemProps, i: number) => {
9
+ return (
10
+ <BenefitItem
11
+ key={String(i)}
12
+ icon={icon}
13
+ label={label}
14
+ description={description}
15
+ version={version}
16
+ benefitsVersion={benefitsVersion}
17
+ />
18
+ );
19
+ };
@@ -69,7 +69,7 @@ export const ProductTile = JSX<ProductTileProps>(
69
69
 
70
70
  function renderBenefits(benefits: TextBenefit[], version: BlockVersion) {
71
71
  return (
72
- <div className="flex mt-4">
72
+ <div className="flex mt-3.5">
73
73
  {benefits.length ? (
74
74
  <div className="mr-6 gap-2.5 text-h6">{benefits.map(renderBenefitLabel)}</div>
75
75
  ) : null}
@@ -55,7 +55,7 @@ export const PromoTile = JSX<PromoTileProps>(
55
55
  }
56
56
  buttons={
57
57
  buttons?.length ? (
58
- <ButtonSection context={context} buttons={buttons} className="flex mt-9 gap-3" />
58
+ <ButtonSection context={context} buttons={buttons} className="flex gap-3" />
59
59
  ) : null
60
60
  }
61
61
  >
@@ -1,5 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { BlockVersion } from '../../model/BlockVersion';
2
+ import type { BlockVersion } from '../../model/BlockVersion';
3
3
  import type { UniBlockProps } from '../../types';
4
4
  import { Description } from '../../ui-kit/Description/Description';
5
5
  import { Heading } from '../../ui-kit/Heading/Heading';
@@ -1,4 +1,4 @@
1
- import { BlockVersion } from '../../model/BlockVersion';
1
+ import type { BlockVersion } from '../../model/BlockVersion';
2
2
 
3
3
  export type StyleType = {
4
4
  background: string;
@@ -2,15 +2,15 @@
2
2
  "showCounter": true,
3
3
  "tabs": [
4
4
  {
5
- "id": "tab1",
5
+ "ref": "tab1",
6
6
  "title": "Вкладка 1"
7
7
  },
8
8
  {
9
- "id": "tab2",
9
+ "ref": "tab2",
10
10
  "title": "Вкладка 2"
11
11
  },
12
12
  {
13
- "id": "tab3",
13
+ "ref": "tab3",
14
14
  "title": "Вкладка 3"
15
15
  }
16
16
  ]