@redneckz/wildless-cms-uni-blocks 0.12.3 → 0.12.5

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 (326) hide show
  1. package/bin/migration-scripts/0.12.3.js +2 -0
  2. package/bin/migration-scripts/0.9.10.js +1 -1
  3. package/bundle/bundle.umd.js +43 -77
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
  6. package/bundle/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
  7. package/bundle/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +1 -0
  8. package/bundle/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
  9. package/bundle/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.d.ts +1 -0
  10. package/bundle/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
  11. package/bundle/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.d.ts +1 -0
  12. package/bundle/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
  13. package/bundle/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
  14. package/bundle/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +4 -0
  15. package/bundle/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
  16. package/bundle/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
  17. package/bundle/components/CarouselProgramsCard/programCardStyles.mobile.d.ts +2 -0
  18. package/bundle/components/Tabs/tabItemClasses.d.ts +2 -3
  19. package/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
  20. package/dist/components/BenefitsBlock/BenefitsBlock.js +4 -6
  21. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  22. package/dist/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
  23. package/dist/components/BenefitsBlock/benefitImageStyles.js +4 -0
  24. package/dist/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
  25. package/dist/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +1 -0
  26. package/dist/components/BenefitsBlock/benefitImageStyles.mobile.js +4 -0
  27. package/dist/components/BenefitsBlock/benefitImageStyles.mobile.js.map +1 -0
  28. package/dist/components/Blocks.mobile.js +6 -0
  29. package/dist/components/Blocks.mobile.js.map +1 -1
  30. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +4 -18
  31. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  32. package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
  33. package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js +4 -0
  34. package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +1 -0
  35. package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.d.ts +1 -0
  36. package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js +4 -0
  37. package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js.map +1 -0
  38. package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
  39. package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.js +4 -0
  40. package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.js.map +1 -0
  41. package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.d.ts +1 -0
  42. package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.js +4 -0
  43. package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.js.map +1 -0
  44. package/dist/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
  45. package/dist/components/BonusBenefitsBlock/renderBonusBenefit.js +11 -0
  46. package/dist/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -0
  47. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
  48. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.js +20 -0
  49. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -0
  50. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +4 -0
  51. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js +8 -0
  52. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js.map +1 -0
  53. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
  54. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  55. package/dist/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
  56. package/dist/components/CarouselCatalogCard/CatalogCard.js +20 -0
  57. package/dist/components/CarouselCatalogCard/CatalogCard.js.map +1 -0
  58. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +5 -2
  59. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  60. package/dist/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
  61. package/dist/components/CarouselProgramsCard/programCardStyles.js +5 -0
  62. package/dist/components/CarouselProgramsCard/programCardStyles.js.map +1 -0
  63. package/dist/components/CarouselProgramsCard/programCardStyles.mobile.d.ts +2 -0
  64. package/dist/components/CarouselProgramsCard/programCardStyles.mobile.js +5 -0
  65. package/dist/components/CarouselProgramsCard/programCardStyles.mobile.js.map +1 -0
  66. package/dist/components/Tabs/LinkTab.js +2 -1
  67. package/dist/components/Tabs/LinkTab.js.map +1 -1
  68. package/dist/components/Tabs/Tabs.js +3 -2
  69. package/dist/components/Tabs/Tabs.js.map +1 -1
  70. package/dist/components/Tabs/renderGroupTab.js +7 -13
  71. package/dist/components/Tabs/renderGroupTab.js.map +1 -1
  72. package/dist/components/Tabs/tabItemClasses.d.ts +2 -3
  73. package/dist/components/Tabs/tabItemClasses.js +10 -46
  74. package/dist/components/Tabs/tabItemClasses.js.map +1 -1
  75. package/dist/components/TariffsTable/TariffsTable.mobile.js +0 -1
  76. package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
  77. package/dist/ui-kit/PhoneInput/PhoneInput.js +1 -1
  78. package/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
  79. package/lib/common.css +1 -1
  80. package/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
  81. package/lib/components/BenefitsBlock/BenefitsBlock.fixture.mobile.d.ts +6 -0
  82. package/lib/components/BenefitsBlock/BenefitsBlock.js +4 -6
  83. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  84. package/lib/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
  85. package/lib/components/BenefitsBlock/benefitImageStyles.js +2 -0
  86. package/lib/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
  87. package/lib/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +1 -0
  88. package/lib/components/BenefitsBlock/benefitImageStyles.mobile.js +2 -0
  89. package/lib/components/BenefitsBlock/benefitImageStyles.mobile.js.map +1 -0
  90. package/lib/components/Blocks.mobile.js +6 -0
  91. package/lib/components/Blocks.mobile.js.map +1 -1
  92. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.mobile.d.ts +7 -0
  93. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +4 -18
  94. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  95. package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
  96. package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js +2 -0
  97. package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +1 -0
  98. package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.d.ts +1 -0
  99. package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js +2 -0
  100. package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js.map +1 -0
  101. package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
  102. package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.js +2 -0
  103. package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.js.map +1 -0
  104. package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.d.ts +1 -0
  105. package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.js +2 -0
  106. package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.js.map +1 -0
  107. package/lib/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -0
  108. package/lib/components/BonusBenefitsBlock/renderBonusBenefit.js +8 -0
  109. package/lib/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -0
  110. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
  111. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.js +17 -0
  112. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -0
  113. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +3 -0
  114. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js +5 -0
  115. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js.map +1 -0
  116. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.fixture.d.ts +0 -11
  117. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.fixture.mobile.d.ts +6 -0
  118. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
  119. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  120. package/lib/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
  121. package/lib/components/CarouselCatalogCard/CatalogCard.js +18 -0
  122. package/lib/components/CarouselCatalogCard/CatalogCard.js.map +1 -0
  123. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.d.ts +0 -1
  124. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.mobile.d.ts +7 -0
  125. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +5 -2
  126. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  127. package/lib/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
  128. package/lib/components/CarouselProgramsCard/programCardStyles.js +3 -0
  129. package/lib/components/CarouselProgramsCard/programCardStyles.js.map +1 -0
  130. package/lib/components/CarouselProgramsCard/programCardStyles.mobile.d.ts +2 -0
  131. package/lib/components/CarouselProgramsCard/programCardStyles.mobile.js +3 -0
  132. package/lib/components/CarouselProgramsCard/programCardStyles.mobile.js.map +1 -0
  133. package/lib/components/Tabs/LinkTab.js +3 -2
  134. package/lib/components/Tabs/LinkTab.js.map +1 -1
  135. package/lib/components/Tabs/Tabs.fixture.mobile.d.ts +8 -0
  136. package/lib/components/Tabs/Tabs.js +3 -2
  137. package/lib/components/Tabs/Tabs.js.map +1 -1
  138. package/lib/components/Tabs/renderGroupTab.d.ts +0 -1
  139. package/lib/components/Tabs/renderGroupTab.js +9 -15
  140. package/lib/components/Tabs/renderGroupTab.js.map +1 -1
  141. package/lib/components/Tabs/renderTab.d.ts +0 -1
  142. package/lib/components/Tabs/tabItemClasses.d.ts +2 -3
  143. package/lib/components/Tabs/tabItemClasses.js +8 -43
  144. package/lib/components/Tabs/tabItemClasses.js.map +1 -1
  145. package/lib/components/TariffsTable/TariffsTable.mobile.js +0 -1
  146. package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
  147. package/lib/ui-kit/PhoneInput/PhoneInput.js +1 -1
  148. package/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
  149. package/mobile/bundle/bundle.umd.js +507 -335
  150. package/mobile/bundle/bundle.umd.min.js +1 -1
  151. package/mobile/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
  152. package/mobile/bundle/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
  153. package/mobile/bundle/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
  154. package/mobile/bundle/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
  155. package/mobile/bundle/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
  156. package/mobile/bundle/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
  157. package/mobile/bundle/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
  158. package/mobile/bundle/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
  159. package/mobile/bundle/components/Tabs/tabItemClasses.d.ts +2 -3
  160. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
  161. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +4 -6
  162. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  163. package/mobile/dist/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
  164. package/mobile/dist/components/BenefitsBlock/benefitImageStyles.js +4 -0
  165. package/mobile/dist/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
  166. package/mobile/dist/components/Blocks.js +6 -0
  167. package/mobile/dist/components/Blocks.js.map +1 -1
  168. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +4 -18
  169. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  170. package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
  171. package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js +4 -0
  172. package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +1 -0
  173. package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
  174. package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitStyles.js +4 -0
  175. package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitStyles.js.map +1 -0
  176. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
  177. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.js +11 -0
  178. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -0
  179. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
  180. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.js +8 -0
  181. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -0
  182. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
  183. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  184. package/mobile/dist/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
  185. package/mobile/dist/components/CarouselCatalogCard/CatalogCard.js +20 -0
  186. package/mobile/dist/components/CarouselCatalogCard/CatalogCard.js.map +1 -0
  187. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +5 -2
  188. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  189. package/mobile/dist/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
  190. package/mobile/dist/components/CarouselProgramsCard/programCardStyles.js +5 -0
  191. package/mobile/dist/components/CarouselProgramsCard/programCardStyles.js.map +1 -0
  192. package/mobile/dist/components/Tabs/LinkTab.js +2 -1
  193. package/mobile/dist/components/Tabs/LinkTab.js.map +1 -1
  194. package/mobile/dist/components/Tabs/Tabs.js +3 -2
  195. package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
  196. package/mobile/dist/components/Tabs/renderGroupTab.js +7 -13
  197. package/mobile/dist/components/Tabs/renderGroupTab.js.map +1 -1
  198. package/mobile/dist/components/Tabs/tabItemClasses.d.ts +2 -3
  199. package/mobile/dist/components/Tabs/tabItemClasses.js +10 -46
  200. package/mobile/dist/components/Tabs/tabItemClasses.js.map +1 -1
  201. package/mobile/dist/components/TariffsTable/TariffsTable.js +0 -1
  202. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  203. package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js +1 -1
  204. package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
  205. package/mobile/lib/common.css +1 -1
  206. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
  207. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +4 -6
  208. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  209. package/mobile/lib/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
  210. package/mobile/lib/components/BenefitsBlock/benefitImageStyles.js +2 -0
  211. package/mobile/lib/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
  212. package/mobile/lib/components/Blocks.js +6 -0
  213. package/mobile/lib/components/Blocks.js.map +1 -1
  214. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +4 -18
  215. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  216. package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
  217. package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js +2 -0
  218. package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +1 -0
  219. package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
  220. package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitStyles.js +2 -0
  221. package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitStyles.js.map +1 -0
  222. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
  223. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.js +8 -0
  224. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -0
  225. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
  226. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.js +5 -0
  227. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -0
  228. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
  229. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  230. package/mobile/lib/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
  231. package/mobile/lib/components/CarouselCatalogCard/CatalogCard.js +18 -0
  232. package/mobile/lib/components/CarouselCatalogCard/CatalogCard.js.map +1 -0
  233. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +5 -2
  234. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  235. package/mobile/lib/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
  236. package/mobile/lib/components/CarouselProgramsCard/programCardStyles.js +3 -0
  237. package/mobile/lib/components/CarouselProgramsCard/programCardStyles.js.map +1 -0
  238. package/mobile/lib/components/Tabs/LinkTab.js +3 -2
  239. package/mobile/lib/components/Tabs/LinkTab.js.map +1 -1
  240. package/mobile/lib/components/Tabs/Tabs.js +3 -2
  241. package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
  242. package/mobile/lib/components/Tabs/renderGroupTab.js +9 -15
  243. package/mobile/lib/components/Tabs/renderGroupTab.js.map +1 -1
  244. package/mobile/lib/components/Tabs/tabItemClasses.d.ts +2 -3
  245. package/mobile/lib/components/Tabs/tabItemClasses.js +8 -43
  246. package/mobile/lib/components/Tabs/tabItemClasses.js.map +1 -1
  247. package/mobile/lib/components/TariffsTable/TariffsTable.js +0 -1
  248. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  249. package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js +1 -1
  250. package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
  251. package/mobile/src/common.css +3 -0
  252. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +37 -34
  253. package/mobile/src/components/BenefitsBlock/benefitImageStyles.tsx +1 -0
  254. package/mobile/src/components/Blocks.ts +6 -0
  255. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +13 -49
  256. package/mobile/src/components/BonusBenefitsBlock/bonusBenefitAlign.ts +1 -0
  257. package/mobile/src/components/BonusBenefitsBlock/bonusBenefitStyles.ts +1 -0
  258. package/mobile/src/components/BonusBenefitsBlock/renderBonusBenefit.tsx +29 -0
  259. package/mobile/src/components/BonusBenefitsBlock/renderBonusBenefits.tsx +14 -0
  260. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +3 -3
  261. package/mobile/src/components/CarouselCatalogCard/CatalogCard.ts +22 -0
  262. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +1 -11
  263. package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +1 -11
  264. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +21 -11
  265. package/mobile/src/components/CarouselProgramsCard/programCardStyles.ts +2 -0
  266. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -12
  267. package/mobile/src/components/ErrorBlock/ErrorBlock.example.json +1 -11
  268. package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +1 -11
  269. package/mobile/src/components/PictureText/PictureText.example.json +1 -11
  270. package/mobile/src/components/ProductBlock/ProductBlock.example.json +1 -11
  271. package/mobile/src/components/ProductTile/ProductTile.example.json +4 -12
  272. package/mobile/src/components/Tabs/LinkTab.tsx +19 -8
  273. package/mobile/src/components/Tabs/Tabs.tsx +7 -4
  274. package/mobile/src/components/Tabs/renderGroupTab.tsx +21 -33
  275. package/mobile/src/components/Tabs/tabItemClasses.ts +12 -45
  276. package/mobile/src/components/TariffsTable/TariffsTable.tsx +0 -1
  277. package/mobile/src/components/Tile/Tile.example.json +1 -11
  278. package/mobile/src/ui-kit/PhoneInput/PhoneInput.tsx +5 -1
  279. package/package.json +1 -1
  280. package/src/common.css +3 -0
  281. package/src/components/BenefitsBlock/BenefitsBlock.fixture.mobile.tsx +43 -0
  282. package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +0 -1
  283. package/src/components/BenefitsBlock/BenefitsBlock.tsx +37 -34
  284. package/src/components/BenefitsBlock/benefitImageStyles.mobile.tsx +1 -0
  285. package/src/components/BenefitsBlock/benefitImageStyles.tsx +1 -0
  286. package/src/components/Blocks.mobile.ts +6 -0
  287. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.mobile.tsx +67 -0
  288. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +13 -49
  289. package/src/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.ts +1 -0
  290. package/src/components/BonusBenefitsBlock/bonusBenefitAlign.ts +1 -0
  291. package/src/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.ts +1 -0
  292. package/src/components/BonusBenefitsBlock/bonusBenefitStyles.ts +1 -0
  293. package/src/components/BonusBenefitsBlock/renderBonusBenefit.tsx +29 -0
  294. package/src/components/BonusBenefitsBlock/renderBonusBenefits.mobile.tsx +14 -0
  295. package/src/components/BonusBenefitsBlock/renderBonusBenefits.tsx +27 -0
  296. package/src/components/Carousel/Carousel.fixture.tsx +13 -2
  297. package/src/components/CarouselCatalogCard/CarouselCatalogCard.fixture.mobile.tsx +23 -0
  298. package/src/components/CarouselCatalogCard/CarouselCatalogCard.fixture.tsx +3 -25
  299. package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +3 -3
  300. package/src/components/CarouselCatalogCard/CatalogCard.ts +22 -0
  301. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +1 -11
  302. package/src/components/CarouselProductCard/CarouselProductCard.example.json +1 -11
  303. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.mobile.tsx +34 -0
  304. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +2 -7
  305. package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +21 -11
  306. package/src/components/CarouselProgramsCard/programCardStyles.mobile.ts +2 -0
  307. package/src/components/CarouselProgramsCard/programCardStyles.ts +2 -0
  308. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -12
  309. package/src/components/ErrorBlock/ErrorBlock.example.json +1 -11
  310. package/src/components/MobileAppTile/MobileAppTile.example.json +1 -11
  311. package/src/components/PictureText/PictureText.example.json +1 -11
  312. package/src/components/PictureText/PictureText.fixture.mobile.tsx +0 -6
  313. package/src/components/PictureText/PictureText.fixture.tsx +0 -6
  314. package/src/components/ProductBlock/ProductBlock.example.json +1 -11
  315. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +0 -6
  316. package/src/components/ProductTile/ProductTile.example.json +4 -12
  317. package/src/components/Tabs/LinkTab.tsx +19 -8
  318. package/src/components/Tabs/Tabs.fixture.mobile.tsx +55 -0
  319. package/src/components/Tabs/Tabs.fixture.tsx +8 -17
  320. package/src/components/Tabs/Tabs.tsx +7 -4
  321. package/src/components/Tabs/renderGroupTab.tsx +21 -33
  322. package/src/components/Tabs/tabItemClasses.ts +12 -45
  323. package/src/components/TariffsTable/TariffsTable.mobile.tsx +0 -1
  324. package/src/components/Tile/Tile.example.json +1 -11
  325. package/src/ui-kit/PhoneInput/PhoneInput.tsx +5 -1
  326. package/tailwind.config.cjs +25 -12
@@ -0,0 +1,67 @@
1
+ import '../../setup-fixture';
2
+
3
+ import { BonusBenefitsBlock } from './BonusBenefitsBlock';
4
+ import { BonusBenefit } from './BonusBenefitsBlockContent';
5
+
6
+ const bonusBenefits: BonusBenefit[] = [
7
+ {
8
+ title: 'Оформи «Молодёжную карту»',
9
+ icon: { icon: 'WateringCanIcon', iconVersion: 'normal' },
10
+ },
11
+ {
12
+ title:
13
+ 'Попроси в бухгалтерии ВУЗа/работодателя специальное заявление для перечисления стипендии/заработной платы на банковскую карту',
14
+ icon: { icon: 'AirPlaneIcon', iconVersion: 'normal' },
15
+ },
16
+ {
17
+ title:
18
+ 'Заполни заявление и укажи реквизиты «Молодёжной карты». Узнать реквизиты ты можешь после получения карты в офисе, мобильном приложении (нажми на карту → действия → информация → реквизиты карты) или на сайте Банка в личном кабинете',
19
+ icon: { icon: 'CarIcon', iconVersion: 'normal' },
20
+ },
21
+ {
22
+ title: 'Отнеси заявление в бухгалтерию',
23
+ icon: { icon: 'CinemaIcon', iconVersion: 'normal' },
24
+ },
25
+ ];
26
+
27
+ const bonusBenefitsWithDescription: BonusBenefit[] = [
28
+ {
29
+ description: 'Достойное вознаграждение',
30
+ icon: { icon: 'WateringCanIcon', iconVersion: 'normal' },
31
+ },
32
+ {
33
+ description: 'Социальный пакет',
34
+ icon: { icon: 'AirPlaneIcon', iconVersion: 'normal' },
35
+ },
36
+ {
37
+ description: 'Профессиональное обучение',
38
+ icon: { icon: 'CarIcon', iconVersion: 'normal' },
39
+ },
40
+ {
41
+ description: 'Карьерный рост и развитие',
42
+ icon: { icon: 'CinemaIcon', iconVersion: 'normal' },
43
+ },
44
+ ];
45
+
46
+ export default {
47
+ default: (
48
+ <div className="container grid grid-cols-12">
49
+ <BonusBenefitsBlock
50
+ className="col-span-12"
51
+ title="Преимущества кредита"
52
+ subtitle="Удобный каталог с большим ассортиментом товаров и сервисов"
53
+ bonusBenefits={bonusBenefits}
54
+ />
55
+ </div>
56
+ ),
57
+ 'with description': (
58
+ <div className="container grid grid-cols-12">
59
+ <BonusBenefitsBlock
60
+ className="col-span-12"
61
+ title="Преимущества кредита"
62
+ subtitle="Удобный каталог с большим ассортиментом товаров и сервисов"
63
+ bonusBenefits={bonusBenefitsWithDescription}
64
+ />
65
+ </div>
66
+ ),
67
+ };
@@ -1,15 +1,10 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { AlignText } from '../../model/AlignText';
3
2
  import type { UniBlockProps } from '../../model/JSXBlock';
4
3
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
5
- import { Img } from '../../ui-kit/Img/Img';
6
4
  import { style } from '../../utils/style';
7
5
  import { Headline } from '../Headline/Headline';
8
- import type {
9
- BonusBenefit,
10
- BonusBenefitsBlockContent,
11
- ColumnsCount,
12
- } from './BonusBenefitsBlockContent';
6
+ import type { BonusBenefitsBlockContent } from './BonusBenefitsBlockContent';
7
+ import { renderBonusBenefits } from './renderBonusBenefits';
13
8
 
14
9
  export interface BenefitsBlockProps extends BonusBenefitsBlockContent, UniBlockProps {}
15
10
 
@@ -23,48 +18,17 @@ export const BonusBenefitsBlock = JSX<BenefitsBlockProps>(
23
18
  title,
24
19
  ...rest
25
20
  }) => (
26
- <BlockWrapper
27
- className={style('flex flex-col text-center', className)}
28
- defaultPadding="p-default"
29
- {...rest}
30
- >
31
- <Headline className="!p-0 mb-8" title={title} description={subtitle} headlineVersion="M" />
32
- {bonusBenefits?.length ? (
33
- <div
34
- className={`grid gap-1 ${AlignText[cardTextAlign]} ${getElementsColsValue(columnsCount)}`}
35
- >
36
- {bonusBenefits.map(renderBonusBenefit)}
37
- </div>
38
- ) : null}
21
+ <BlockWrapper className={style('p-default', className)} defaultPadding="p-default" {...rest}>
22
+ <Headline
23
+ className="mb-4 sm:mb-8"
24
+ isPadding={false}
25
+ title={title}
26
+ description={subtitle}
27
+ headlineVersion="M"
28
+ />
29
+ {bonusBenefits?.length
30
+ ? renderBonusBenefits(bonusBenefits, columnsCount, cardTextAlign)
31
+ : null}
39
32
  </BlockWrapper>
40
33
  ),
41
34
  );
42
-
43
- const renderBonusBenefit = ({ icon, title, description }: BonusBenefit, i: number) => {
44
- return (
45
- <div
46
- key={String(i)}
47
- className={style(
48
- 'flex flex-col items-center text-h6',
49
- !description && !title ? 'justify-center' : '',
50
- )}
51
- >
52
- {title ? <span>{title}</span> : null}
53
- {icon ? <Img image={icon} height="180" className="w-auto" /> : null}
54
- {description ? <span>{description}</span> : null}
55
- </div>
56
- );
57
- };
58
-
59
- const getElementsColsValue = (colValue: ColumnsCount) => {
60
- switch (colValue) {
61
- case '3':
62
- return 'grid-cols-3';
63
- case '4':
64
- return 'grid-cols-4';
65
- case '5':
66
- return 'grid-cols-5';
67
- default:
68
- return 'grid-cols-5';
69
- }
70
- };
@@ -0,0 +1 @@
1
+ export const bonusBenefitAlign = 'text-left';
@@ -0,0 +1 @@
1
+ export const bonusBenefitAlign = 'text-center';
@@ -0,0 +1 @@
1
+ export const bonusBenefitStyles = 'justify-between p-4 h-full border border-gray';
@@ -0,0 +1 @@
1
+ export const bonusBenefitStyles = 'items-center';
@@ -0,0 +1,29 @@
1
+ import { Img } from '../../ui-kit/Img/Img';
2
+ import { Text } from '../../ui-kit/Text/Text';
3
+ import { style } from '../../utils/style';
4
+ import { bonusBenefitAlign } from './bonusBenefitAlign';
5
+ import { BonusBenefit } from './BonusBenefitsBlockContent';
6
+ import { bonusBenefitStyles } from './bonusBenefitStyles';
7
+
8
+ export const renderBonusBenefit = ({ icon, title, description }: BonusBenefit, i: number) => (
9
+ <div
10
+ key={String(i)}
11
+ className={style(
12
+ 'flex flex-col',
13
+ bonusBenefitStyles,
14
+ !description && !title ? 'justify-center' : '',
15
+ )}
16
+ >
17
+ {title ? (
18
+ <Text size="text-h6" font="font-normal" align={bonusBenefitAlign}>
19
+ {title}
20
+ </Text>
21
+ ) : null}
22
+ {icon ? <Img image={icon} height="180" className="w-auto" /> : null}
23
+ {description ? (
24
+ <Text size="text-h6" font="font-normal" align={bonusBenefitAlign}>
25
+ {description}
26
+ </Text>
27
+ ) : null}
28
+ </div>
29
+ );
@@ -0,0 +1,14 @@
1
+ import { AlignType } from '../../model/AlignType';
2
+ import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl';
3
+ import { BonusBenefit, ColumnsCount } from './BonusBenefitsBlockContent';
4
+ import { renderBonusBenefit } from './renderBonusBenefit';
5
+
6
+ export const renderBonusBenefits = (
7
+ bonusBenefits: BonusBenefit[],
8
+ columnsCount: ColumnsCount,
9
+ cardTextAlign: AlignType,
10
+ ) => (
11
+ <SwipeListControl>
12
+ {bonusBenefits.map((_, i) => renderBonusBenefit({ ..._ }, i))}
13
+ </SwipeListControl>
14
+ );
@@ -0,0 +1,27 @@
1
+ import { AlignText } from '../../model/AlignText';
2
+ import type { AlignType } from '../../model/AlignType';
3
+ import { BonusBenefit, ColumnsCount } from './BonusBenefitsBlockContent';
4
+ import { renderBonusBenefit } from './renderBonusBenefit';
5
+
6
+ export const renderBonusBenefits = (
7
+ bonusBenefits: BonusBenefit[],
8
+ columnsCount: ColumnsCount,
9
+ cardTextAlign: AlignType,
10
+ ) => (
11
+ <div className={`grid gap-1 ${AlignText[cardTextAlign]} ${getElementsColsValue(columnsCount)}`}>
12
+ {bonusBenefits.map(renderBonusBenefit)}
13
+ </div>
14
+ );
15
+
16
+ const getElementsColsValue = (colValue: ColumnsCount) => {
17
+ switch (colValue) {
18
+ case '3':
19
+ return 'grid-cols-3';
20
+ case '4':
21
+ return 'grid-cols-4';
22
+ case '5':
23
+ return 'grid-cols-5';
24
+ default:
25
+ return 'grid-cols-5';
26
+ }
27
+ };
@@ -4,7 +4,7 @@ import type { BlockRendererOptions } from '../../BlockRenderer/BlockRendererOpti
4
4
  import { Blocks } from '../Blocks';
5
5
  import { BANK_HISTORY_CARD } from '../CarouselBankHistoryCard/CarouselBankHistoryCard.fixture';
6
6
  import { CARD, CARD_MINI, CARD_NEW } from '../CarouselCard/CarouselCard.fixture';
7
- import { CATALOG_CARD } from '../CarouselCatalogCard/CarouselCatalogCard.fixture';
7
+ import { CATALOG_CARD } from '../CarouselCatalogCard/CatalogCard';
8
8
  import { CAROUSEL_EVENT_CARD } from '../CarouselEventCard/CarouselEventCard.fixture';
9
9
  import { INVESTMENT_CARD_WITH_SINGLE_COLUMN } from '../CarouselInvestmentCard/CarouselInvestmentCard.fixture';
10
10
  import {
@@ -19,6 +19,17 @@ import {
19
19
  import { RICH_CARD } from '../CarouselRichTextCard/CarouselRichTextCard.fixture';
20
20
  import { TARIFFS_CARD, TARIFFS_CARD_HIT } from '../CarouselTariffsCard/CarouselTariffsCard.fixture';
21
21
  import { Carousel } from './Carousel';
22
+ import { Picture } from '../../model/Picture';
23
+
24
+ const catalogImage: Picture = {
25
+ src: 'pay-ring.png',
26
+ format: 'webp',
27
+ size: {
28
+ width: 230,
29
+ height: 230,
30
+ },
31
+ title: 'pay-ring',
32
+ };
22
33
 
23
34
  const options = {
24
35
  blocksRegistry: Blocks,
@@ -71,7 +82,7 @@ export default {
71
82
  type: 'Carousel',
72
83
  blocks: new Array(6).fill({
73
84
  type: 'CarouselCatalogCard',
74
- content: CATALOG_CARD,
85
+ content: { ...CATALOG_CARD, image: catalogImage },
75
86
  }),
76
87
  }}
77
88
  options={options}
@@ -0,0 +1,23 @@
1
+ import '../../setup-fixture';
2
+
3
+ import type { Picture } from '../../model/Picture';
4
+ import { CarouselCatalogCard } from './CarouselCatalogCard';
5
+ import { CATALOG_CARD } from './CatalogCard';
6
+
7
+ const image: Picture = {
8
+ src: 'pay-ring.png',
9
+ format: 'webp',
10
+ size: {
11
+ width: 117,
12
+ height: 117,
13
+ },
14
+ title: 'pay-ring',
15
+ };
16
+
17
+ export default {
18
+ default: (
19
+ <div className="container grid grid-cols-12">
20
+ <CarouselCatalogCard className={'col-span-12'} {...CATALOG_CARD} image={image} />
21
+ </div>
22
+ ),
23
+ };
@@ -1,11 +1,10 @@
1
1
  import '../../setup-fixture';
2
2
 
3
3
  import type { Picture } from '../../model/Picture';
4
- import type { ProductColorVersion } from '../../model/ProductColorVersion';
5
- import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
6
4
  import { CarouselCatalogCard } from './CarouselCatalogCard';
5
+ import { CATALOG_CARD } from './CatalogCard';
7
6
 
8
- const payRing: Picture = {
7
+ const image: Picture = {
9
8
  src: 'pay-ring.png',
10
9
  format: 'webp',
11
10
  size: {
@@ -15,31 +14,10 @@ const payRing: Picture = {
15
14
  title: 'pay-ring',
16
15
  };
17
16
 
18
- const colors: ProductColorVersion[] = ['black', 'white'];
19
-
20
- const buttonPrimary: ButtonWithIconProps = {
21
- href: '/credit-cards',
22
- text: 'Подробнее',
23
- target: '_blank',
24
- version: 'primary',
25
- icon: {
26
- icon: 'AppleIcon',
27
- },
28
- };
29
-
30
- export const CATALOG_CARD = {
31
- title: 'SATURN S-VI',
32
- description: 'Керамическое кольцо с глянцевой поверхностью и огранкой по внешним контурам',
33
- image: payRing,
34
- price: 5600,
35
- colors: colors,
36
- button: buttonPrimary,
37
- };
38
-
39
17
  export default {
40
18
  default: (
41
19
  <div className="container grid grid-cols-12">
42
- <CarouselCatalogCard {...CATALOG_CARD} />
20
+ <CarouselCatalogCard className={'col-span-4'} {...CATALOG_CARD} image={image} />
43
21
  </div>
44
22
  ),
45
23
  };
@@ -21,7 +21,7 @@ export const CarouselCatalogCard = JSX<CarouselCatalogCardProps>(
21
21
  ({ className = '', title, description, image, price, button, colors, ...rest }) => (
22
22
  <BlockWrapper
23
23
  className={style(
24
- 'border box-border border-gray min-w-[392px] h-full flex flex-col justify-left',
24
+ 'border box-border border-gray p-default sm:p-7 h-full flex flex-col justify-left',
25
25
  className,
26
26
  )}
27
27
  {...rest}
@@ -41,7 +41,7 @@ export const CarouselCatalogCard = JSX<CarouselCatalogCardProps>(
41
41
  <div className="flex mb-4 text-secondary-text">
42
42
  <div className="mr-1.5">
43
43
  <Text size="text-s" align="text-left" font="font-light">
44
- Доступные цвета:
44
+ Цвета:
45
45
  </Text>
46
46
  </div>
47
47
  {colors.map(renderColorOption)}
@@ -61,6 +61,6 @@ const renderColorOption = (color: ProductColorVersion, i: number) => (
61
61
  <div
62
62
  role="figure"
63
63
  key={String(i)}
64
- className={`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}`}
64
+ className={`w-6 h-6 ml-1 sm:ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}`}
65
65
  />
66
66
  );
@@ -0,0 +1,22 @@
1
+ import type { ProductColorVersion } from '../../model/ProductColorVersion';
2
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
3
+
4
+ const colors: ProductColorVersion[] = ['black', 'white'];
5
+
6
+ const buttonPrimary: ButtonWithIconProps = {
7
+ href: '/credit-cards',
8
+ text: 'Подробнее',
9
+ target: '_blank',
10
+ version: 'primary',
11
+ icon: {
12
+ icon: 'AppleIcon',
13
+ },
14
+ };
15
+
16
+ export const CATALOG_CARD = {
17
+ title: 'SATURN S-VI',
18
+ description: 'Керамическое кольцо с глянцевой поверхностью и огранкой по внешним контурам',
19
+ price: 5600,
20
+ colors: colors,
21
+ button: buttonPrimary,
22
+ };
@@ -3,17 +3,7 @@
3
3
  "format": "webp",
4
4
  "size": {
5
5
  "width": 290
6
- },
7
- "sources": [
8
- {
9
- "media": 1279,
10
- "size": {
11
- "width": 174
12
- },
13
- "format": "webp",
14
- "alignment": "southeast"
15
- }
16
- ]
6
+ }
17
7
  },
18
8
  "title": "Заголовок",
19
9
  "description": "Описание",
@@ -5,17 +5,7 @@
5
5
  "size": {
6
6
  "width": 140,
7
7
  "height": 140
8
- },
9
- "sources": [
10
- {
11
- "media": 1279,
12
- "size": {
13
- "width": 84
14
- },
15
- "format": "webp",
16
- "alignment": "center"
17
- }
18
- ]
8
+ }
19
9
  },
20
10
  "title": "Заголовок 1",
21
11
  "description": "Описание 1",
@@ -0,0 +1,34 @@
1
+ import type { Picture } from '../../model/Picture';
2
+ import { CarouselProgramsCard } from './CarouselProgramsCard';
3
+ import type { CarouselProgramsCardContent } from './CarouselProgramsCardContent';
4
+
5
+ const imageMonth: Picture = {
6
+ src: 'coin.png',
7
+ format: 'webp',
8
+ size: {
9
+ width: 112,
10
+ },
11
+ title: 'money',
12
+ };
13
+
14
+ const list = [
15
+ { title: 'От 16 до 81', description: 'платежей' },
16
+ {
17
+ title: 'От 3 до 7,5 млн руб. ',
18
+ description: 'остаток по счету',
19
+ },
20
+ ];
21
+
22
+ export const BUSINESS_CARD: CarouselProgramsCardContent = {
23
+ title: 'Продвинутый',
24
+ icon: imageMonth,
25
+ href: 'http://rshb.ru',
26
+ target: '_blank',
27
+ list,
28
+ };
29
+
30
+ const CAROUSEL_BUSINESS_CARD = <CarouselProgramsCard className="col-span-12" {...BUSINESS_CARD} />;
31
+
32
+ export default {
33
+ default: <div className="container grid grid-cols-12">{CAROUSEL_BUSINESS_CARD}</div>,
34
+ };
@@ -8,8 +8,7 @@ const imageMonth: Picture = {
8
8
  src: 'coin.png',
9
9
  format: 'webp',
10
10
  size: {
11
- width: 200,
12
- height: 242,
11
+ width: 130,
13
12
  },
14
13
  title: 'money',
15
14
  };
@@ -30,12 +29,8 @@ export const BUSINESS_CARD: CarouselProgramsCardContent = {
30
29
  list,
31
30
  };
32
31
 
33
- const CAROUSEL_BUSINESS_CARD = <CarouselProgramsCard className="col-span-4" {...BUSINESS_CARD} />;
34
- const CAROUSEL_BUSINESS_CARD_SECONDARY = (
35
- <CarouselProgramsCard className="col-span-4" {...BUSINESS_CARD} version="secondary" />
36
- );
32
+ const CAROUSEL_BUSINESS_CARD = <CarouselProgramsCard className="col-span-6" {...BUSINESS_CARD} />;
37
33
 
38
34
  export default {
39
35
  default: <div className="container grid grid-cols-12">{CAROUSEL_BUSINESS_CARD}</div>,
40
- secondary: <div className="container grid grid-cols-12">{CAROUSEL_BUSINESS_CARD_SECONDARY}</div>,
41
36
  };
@@ -5,8 +5,11 @@ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
5
5
  import { Heading } from '../../ui-kit/Heading/Heading';
6
6
  import { Img } from '../../ui-kit/Img/Img';
7
7
  import { LinkWrapper } from '../../ui-kit/LinkWrapper/LinkWrapper';
8
+ import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
9
+ import { Text } from '../../ui-kit/Text/Text';
8
10
  import { style } from '../../utils/style';
9
11
  import type { CarouselProgramsCardContent } from './CarouselProgramsCardContent';
12
+ import { cardDescriptionColor, cardTitleFont } from './programCardStyles';
10
13
 
11
14
  export interface CarouselTariffsCardProps extends CarouselProgramsCardContent, UniBlockProps {}
12
15
 
@@ -15,18 +18,17 @@ export const CarouselProgramsCard = JSX<CarouselTariffsCardProps>(
15
18
  return (
16
19
  <BlockWrapper
17
20
  className={style('border border-gray', className)}
18
- defaultPadding="p-0"
21
+ defaultPadding="p-lg sm:p-0"
19
22
  {...rest}
20
23
  >
21
- <LinkWrapper className="flex" href={href} target={target}>
22
- <div className="w-[200px] min-w-[200px] self-center">
23
- {icon?.icon ? <Img image={icon} /> : null}
24
- {icon?.src ? <Img image={icon} /> : null}
24
+ <LinkWrapper className="sm:flex sm:items-center" href={href} target={target}>
25
+ <div className="min-w-[200px] flex justify-center">
26
+ {icon?.src || icon?.icon ? <Img image={icon} /> : null}
25
27
  </div>
26
- <div className="p-8 pl-3 w-full">
27
- {title ? <Heading className="mb-3.5" headingType="h5" title={title} /> : null}
28
+ <div className="sm:px-3 py-xl">
29
+ {title ? <Heading className="mb-2 sm:mb-3.5" headingType="h6" title={title} /> : null}
28
30
  {list.length ? (
29
- <div className="flex flex-col gap-3">{list?.map(renderList)}</div>
31
+ <div className="flex flex-col gap-2 sm:gap-3">{list?.map(renderList)}</div>
30
32
  ) : null}
31
33
  </div>
32
34
  </LinkWrapper>
@@ -36,8 +38,16 @@ export const CarouselProgramsCard = JSX<CarouselTariffsCardProps>(
36
38
  );
37
39
 
38
40
  const renderList = (_: HeadlineCommonProps, i: number) => (
39
- <div key={String(i)} className="break-words">
40
- {_.title ? <div className="text-h6">{_.title}</div> : null}
41
- {_.description ? <span className="text-l-light mt-1">{_.description}</span> : null}
41
+ <div key={String(i)} className="flex flex-row-reverse justify-between gap-y-1 sm:flex-col">
42
+ {_.title ? (
43
+ <Text size="text-l" font={cardTitleFont}>
44
+ {_.title}
45
+ </Text>
46
+ ) : null}
47
+ {_.description ? (
48
+ <Paragraph size="text-l" font="font-light" color={cardDescriptionColor}>
49
+ {_.description}
50
+ </Paragraph>
51
+ ) : null}
42
52
  </div>
43
53
  );
@@ -0,0 +1,2 @@
1
+ export const cardTitleFont = 'font-light';
2
+ export const cardDescriptionColor = '';
@@ -0,0 +1,2 @@
1
+ export const cardTitleFont = 'font-normal';
2
+ export const cardDescriptionColor = 'text-secondary-text';
@@ -5,18 +5,7 @@
5
5
  "size": {
6
6
  "width": 290,
7
7
  "height": 290
8
- },
9
- "sources": [
10
- {
11
- "media": 1279,
12
- "size": {
13
- "width": 174,
14
- "height": 174
15
- },
16
- "format": "webp",
17
- "alignment": "southeast"
18
- }
19
- ]
8
+ }
20
9
  },
21
10
  "title": "Заголовок 1",
22
11
  "description": "Описание 1",
@@ -9,17 +9,7 @@
9
9
  "format": "webp",
10
10
  "size": {
11
11
  "width": 460
12
- },
13
- "sources": [
14
- {
15
- "media": 1279,
16
- "size": {
17
- "width": 276
18
- },
19
- "format": "webp",
20
- "alignment": "center"
21
- }
22
- ]
12
+ }
23
13
  }
24
14
  },
25
15
  "button": {
@@ -6,17 +6,7 @@
6
6
  "size": {
7
7
  "width": 529,
8
8
  "height": 345
9
- },
10
- "sources": [
11
- {
12
- "media": 1279,
13
- "size": {
14
- "width": 360
15
- },
16
- "format": "webp",
17
- "alignment": "center"
18
- }
19
- ]
9
+ }
20
10
  },
21
11
  "alignTitle": "left",
22
12
  "qr": null,
@@ -7,17 +7,7 @@
7
7
  "size": {
8
8
  "width": 400,
9
9
  "height": 300
10
- },
11
- "sources": [
12
- {
13
- "media": 1279,
14
- "size": {
15
- "width": 240
16
- },
17
- "format": "webp",
18
- "alignment": "center"
19
- }
20
- ]
10
+ }
21
11
  },
22
12
  "version": "primary",
23
13
  "directionRight": false,
@@ -10,12 +10,6 @@ const imageInsurance: Picture = {
10
10
  size: {
11
11
  width: 335,
12
12
  },
13
- sources: [
14
- {
15
- src: 'insurance.png',
16
- format: 'png',
17
- },
18
- ],
19
13
  };
20
14
 
21
15
  const imageMonitor: Picture = {
@@ -22,12 +22,6 @@ const imageInsurance: Picture = {
22
22
  width: 400,
23
23
  height: 300,
24
24
  },
25
- sources: [
26
- {
27
- src: 'insurance.png',
28
- format: 'png',
29
- },
30
- ],
31
25
  };
32
26
 
33
27
  const imageMonitor: Picture = {