@redneckz/wildless-cms-uni-blocks 0.12.12 → 0.12.13

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 (374) hide show
  1. package/bin/migration-scripts/0.12.10.js +59 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +90 -66
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +52 -6
  6. package/bundle/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
  7. package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
  8. package/bundle/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
  9. package/bundle/components/Carousel/Carousel.d.ts +1 -1
  10. package/bundle/components/CarouselLinks/CarouselLinks.d.ts +1 -0
  11. package/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
  12. package/bundle/components/Footer/Contacts.d.ts +0 -1
  13. package/bundle/components/Footer/MediaButton.d.ts +1 -1
  14. package/bundle/components/Footer/buttonSizeStyles.d.ts +4 -0
  15. package/bundle/components/Footer/buttonSizeStyles.mobile.d.ts +4 -0
  16. package/bundle/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
  17. package/dist/components/ApplicationForm/ApplicationForm.js +16 -14
  18. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  19. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +52 -6
  20. package/dist/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
  21. package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +22 -0
  22. package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -0
  23. package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
  24. package/dist/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
  25. package/dist/components/ApplicationForm/EmbeddableForms.js +17 -0
  26. package/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -0
  27. package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  28. package/dist/components/Bonus/Bonus.js +10 -13
  29. package/dist/components/Bonus/Bonus.js.map +1 -1
  30. package/dist/components/Calculator/BusinessDepositCalculatorForm.js +4 -4
  31. package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  32. package/dist/components/Calculator/CreditCalculatorForm.js +1 -1
  33. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  34. package/dist/components/Calculator/DepositCalculatorForm.js +3 -3
  35. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  36. package/dist/components/Carousel/Carousel.d.ts +1 -1
  37. package/dist/components/Carousel/Carousel.js.map +1 -1
  38. package/dist/components/Carousel/CarouselScrollButtons.js +2 -2
  39. package/dist/components/Carousel/CarouselScrollButtons.js.map +1 -1
  40. package/dist/components/CarouselLinks/CarouselLinks.d.ts +1 -0
  41. package/dist/components/CarouselLinks/CarouselLinks.js +7 -8
  42. package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  43. package/dist/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
  44. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  45. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  46. package/dist/components/ContentPage/ContentPage.js +2 -2
  47. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  48. package/dist/components/Footer/Contacts.d.ts +0 -1
  49. package/dist/components/Footer/Contacts.js +3 -4
  50. package/dist/components/Footer/Contacts.js.map +1 -1
  51. package/dist/components/Footer/Footer.js +2 -2
  52. package/dist/components/Footer/Footer.js.map +1 -1
  53. package/dist/components/Footer/Footer.mobile.js +4 -3
  54. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  55. package/dist/components/Footer/HorizontalNavigation.js +1 -1
  56. package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  57. package/dist/components/Footer/HorizontalNavigation.mobile.js +1 -1
  58. package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  59. package/dist/components/Footer/MediaButton.d.ts +1 -1
  60. package/dist/components/Footer/SocialMedia.js +2 -1
  61. package/dist/components/Footer/SocialMedia.js.map +1 -1
  62. package/dist/components/Footer/TextInformation.js +1 -1
  63. package/dist/components/Footer/TextInformation.js.map +1 -1
  64. package/dist/components/Footer/buttonSizeStyles.d.ts +4 -0
  65. package/dist/components/Footer/buttonSizeStyles.js +7 -0
  66. package/dist/components/Footer/buttonSizeStyles.js.map +1 -0
  67. package/dist/components/Footer/buttonSizeStyles.mobile.d.ts +4 -0
  68. package/dist/components/Footer/buttonSizeStyles.mobile.js +7 -0
  69. package/dist/components/Footer/buttonSizeStyles.mobile.js.map +1 -0
  70. package/dist/components/Footer/buttonStylesWithText.js +2 -5
  71. package/dist/components/Footer/buttonStylesWithText.js.map +1 -1
  72. package/dist/components/MobileAppTile/renderDescription.js +1 -1
  73. package/dist/components/MobileAppTile/renderDescription.js.map +1 -1
  74. package/dist/components/RollupItem/RollupItem.js +1 -1
  75. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  76. package/dist/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
  77. package/dist/services/regionsGrantSupport/RegionsGrantSupportData.js +2 -0
  78. package/dist/services/regionsGrantSupport/RegionsGrantSupportData.js.map +1 -0
  79. package/dist/ui-kit/LinkButton/LinkButton.js +4 -3
  80. package/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
  81. package/dist/ui-kit/LinkList/LinkList.js +2 -2
  82. package/dist/ui-kit/LinkList/LinkList.js.map +1 -1
  83. package/lib/common.css +1 -1
  84. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
  85. package/lib/components/ApplicationForm/ApplicationForm.fixture.mobile.d.ts +1 -0
  86. package/lib/components/ApplicationForm/ApplicationForm.js +16 -14
  87. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  88. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +52 -6
  89. package/lib/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
  90. package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +20 -0
  91. package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -0
  92. package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
  93. package/lib/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
  94. package/lib/components/ApplicationForm/EmbeddableForms.js +15 -0
  95. package/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -0
  96. package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  97. package/lib/components/Bonus/Bonus.fixture.mobile.d.ts +8 -0
  98. package/lib/components/Bonus/Bonus.js +10 -13
  99. package/lib/components/Bonus/Bonus.js.map +1 -1
  100. package/lib/components/Calculator/BusinessDepositCalculatorForm.js +4 -4
  101. package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  102. package/lib/components/Calculator/CreditCalculatorForm.js +1 -1
  103. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  104. package/lib/components/Calculator/DepositCalculatorForm.js +3 -3
  105. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  106. package/lib/components/Carousel/Carousel.d.ts +1 -1
  107. package/lib/components/Carousel/Carousel.js.map +1 -1
  108. package/lib/components/Carousel/CarouselScrollButtons.js +2 -2
  109. package/lib/components/Carousel/CarouselScrollButtons.js.map +1 -1
  110. package/lib/components/CarouselLinks/CarouselLinks.d.ts +1 -0
  111. package/lib/components/CarouselLinks/CarouselLinks.fixture.mobile.d.ts +6 -0
  112. package/lib/components/CarouselLinks/CarouselLinks.js +7 -8
  113. package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  114. package/lib/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
  115. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  116. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  117. package/lib/components/ContentPage/ContentPage.js +2 -2
  118. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  119. package/lib/components/Footer/Contacts.d.ts +0 -1
  120. package/lib/components/Footer/Contacts.js +3 -4
  121. package/lib/components/Footer/Contacts.js.map +1 -1
  122. package/lib/components/Footer/Footer.js +2 -2
  123. package/lib/components/Footer/Footer.js.map +1 -1
  124. package/lib/components/Footer/Footer.mobile.js +4 -3
  125. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  126. package/lib/components/Footer/HorizontalNavigation.js +1 -1
  127. package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  128. package/lib/components/Footer/HorizontalNavigation.mobile.js +1 -1
  129. package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  130. package/lib/components/Footer/MediaButton.d.ts +1 -1
  131. package/lib/components/Footer/SocialMedia.js +2 -1
  132. package/lib/components/Footer/SocialMedia.js.map +1 -1
  133. package/lib/components/Footer/TextInformation.js +1 -1
  134. package/lib/components/Footer/TextInformation.js.map +1 -1
  135. package/lib/components/Footer/buttonSizeStyles.d.ts +4 -0
  136. package/lib/components/Footer/buttonSizeStyles.js +5 -0
  137. package/lib/components/Footer/buttonSizeStyles.js.map +1 -0
  138. package/lib/components/Footer/buttonSizeStyles.mobile.d.ts +4 -0
  139. package/lib/components/Footer/buttonSizeStyles.mobile.js +5 -0
  140. package/lib/components/Footer/buttonSizeStyles.mobile.js.map +1 -0
  141. package/lib/components/Footer/buttonStylesWithText.js +1 -4
  142. package/lib/components/Footer/buttonStylesWithText.js.map +1 -1
  143. package/lib/components/MobileAppTile/renderDescription.js +1 -1
  144. package/lib/components/MobileAppTile/renderDescription.js.map +1 -1
  145. package/lib/components/RollupItem/RollupItem.js +1 -1
  146. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  147. package/lib/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
  148. package/lib/services/regionsGrantSupport/RegionsGrantSupportData.js +2 -0
  149. package/lib/services/regionsGrantSupport/RegionsGrantSupportData.js.map +1 -0
  150. package/lib/ui-kit/LinkButton/LinkButton.fixture.mobile.d.ts +6 -0
  151. package/lib/ui-kit/LinkButton/LinkButton.js +4 -3
  152. package/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
  153. package/lib/ui-kit/LinkList/LinkList.js +2 -2
  154. package/lib/ui-kit/LinkList/LinkList.js.map +1 -1
  155. package/mobile/bundle/bundle.umd.js +65 -37
  156. package/mobile/bundle/bundle.umd.min.js +1 -1
  157. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +52 -6
  158. package/mobile/bundle/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
  159. package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
  160. package/mobile/bundle/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
  161. package/mobile/bundle/components/Carousel/Carousel.d.ts +1 -1
  162. package/mobile/bundle/components/CarouselLinks/CarouselLinks.d.ts +1 -0
  163. package/mobile/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
  164. package/mobile/bundle/components/Footer/Contacts.d.ts +0 -1
  165. package/mobile/bundle/components/Footer/MediaButton.d.ts +1 -1
  166. package/mobile/bundle/components/Footer/SocialMedia.d.ts +4 -2
  167. package/mobile/bundle/components/Footer/buttonSizeStyles.d.ts +4 -0
  168. package/mobile/bundle/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
  169. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +16 -14
  170. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  171. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +52 -6
  172. package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
  173. package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +22 -0
  174. package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -0
  175. package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
  176. package/mobile/dist/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
  177. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js +17 -0
  178. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -0
  179. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  180. package/mobile/dist/components/Bonus/Bonus.js +10 -13
  181. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  182. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +4 -4
  183. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  184. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +1 -1
  185. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  186. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +3 -3
  187. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  188. package/mobile/dist/components/Carousel/Carousel.d.ts +1 -1
  189. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  190. package/mobile/dist/components/Carousel/CarouselScrollButtons.js +2 -2
  191. package/mobile/dist/components/Carousel/CarouselScrollButtons.js.map +1 -1
  192. package/mobile/dist/components/CarouselLinks/CarouselLinks.d.ts +1 -0
  193. package/mobile/dist/components/CarouselLinks/CarouselLinks.js +7 -8
  194. package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  195. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
  196. package/mobile/dist/components/ContentPage/ContentPage.js +2 -2
  197. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  198. package/mobile/dist/components/Footer/Contacts.d.ts +0 -1
  199. package/mobile/dist/components/Footer/Contacts.js +3 -4
  200. package/mobile/dist/components/Footer/Contacts.js.map +1 -1
  201. package/mobile/dist/components/Footer/Footer.js +4 -3
  202. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  203. package/mobile/dist/components/Footer/HorizontalNavigation.js +1 -1
  204. package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  205. package/mobile/dist/components/Footer/MediaButton.d.ts +1 -1
  206. package/mobile/dist/components/Footer/SocialMedia.d.ts +4 -2
  207. package/mobile/dist/components/Footer/SocialMedia.js +3 -1
  208. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  209. package/mobile/dist/components/Footer/TextInformation.js +1 -1
  210. package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
  211. package/mobile/dist/components/Footer/buttonSizeStyles.d.ts +4 -0
  212. package/mobile/dist/components/Footer/buttonSizeStyles.js +7 -0
  213. package/mobile/dist/components/Footer/buttonSizeStyles.js.map +1 -0
  214. package/mobile/dist/components/Footer/buttonStylesWithText.js +2 -5
  215. package/mobile/dist/components/Footer/buttonStylesWithText.js.map +1 -1
  216. package/mobile/dist/components/MobileAppTile/renderDescription.js +1 -1
  217. package/mobile/dist/components/MobileAppTile/renderDescription.js.map +1 -1
  218. package/mobile/dist/components/RollupItem/RollupItem.js +1 -1
  219. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  220. package/mobile/dist/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
  221. package/mobile/dist/services/regionsGrantSupport/RegionsGrantSupportData.js +2 -0
  222. package/mobile/dist/services/regionsGrantSupport/RegionsGrantSupportData.js.map +1 -0
  223. package/mobile/dist/ui-kit/LinkButton/LinkButton.js +4 -3
  224. package/mobile/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
  225. package/mobile/dist/ui-kit/LinkList/LinkList.js +2 -2
  226. package/mobile/dist/ui-kit/LinkList/LinkList.js.map +1 -1
  227. package/mobile/lib/common.css +1 -1
  228. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +16 -14
  229. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  230. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +52 -6
  231. package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
  232. package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +20 -0
  233. package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -0
  234. package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
  235. package/mobile/lib/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
  236. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js +15 -0
  237. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -0
  238. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  239. package/mobile/lib/components/Bonus/Bonus.js +10 -13
  240. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  241. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +4 -4
  242. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  243. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +1 -1
  244. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  245. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +3 -3
  246. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  247. package/mobile/lib/components/Carousel/Carousel.d.ts +1 -1
  248. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  249. package/mobile/lib/components/Carousel/CarouselScrollButtons.js +2 -2
  250. package/mobile/lib/components/Carousel/CarouselScrollButtons.js.map +1 -1
  251. package/mobile/lib/components/CarouselLinks/CarouselLinks.d.ts +1 -0
  252. package/mobile/lib/components/CarouselLinks/CarouselLinks.js +7 -8
  253. package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  254. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
  255. package/mobile/lib/components/ContentPage/ContentPage.js +2 -2
  256. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  257. package/mobile/lib/components/Footer/Contacts.d.ts +0 -1
  258. package/mobile/lib/components/Footer/Contacts.js +3 -4
  259. package/mobile/lib/components/Footer/Contacts.js.map +1 -1
  260. package/mobile/lib/components/Footer/Footer.js +4 -3
  261. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  262. package/mobile/lib/components/Footer/HorizontalNavigation.js +1 -1
  263. package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  264. package/mobile/lib/components/Footer/MediaButton.d.ts +1 -1
  265. package/mobile/lib/components/Footer/SocialMedia.d.ts +4 -2
  266. package/mobile/lib/components/Footer/SocialMedia.js +4 -2
  267. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  268. package/mobile/lib/components/Footer/TextInformation.js +1 -1
  269. package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
  270. package/mobile/lib/components/Footer/buttonSizeStyles.d.ts +4 -0
  271. package/mobile/lib/components/Footer/buttonSizeStyles.js +5 -0
  272. package/mobile/lib/components/Footer/buttonSizeStyles.js.map +1 -0
  273. package/mobile/lib/components/Footer/buttonStylesWithText.js +1 -4
  274. package/mobile/lib/components/Footer/buttonStylesWithText.js.map +1 -1
  275. package/mobile/lib/components/MobileAppTile/renderDescription.js +1 -1
  276. package/mobile/lib/components/MobileAppTile/renderDescription.js.map +1 -1
  277. package/mobile/lib/components/RollupItem/RollupItem.js +1 -1
  278. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  279. package/mobile/lib/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
  280. package/mobile/lib/services/regionsGrantSupport/RegionsGrantSupportData.js +2 -0
  281. package/mobile/lib/services/regionsGrantSupport/RegionsGrantSupportData.js.map +1 -0
  282. package/mobile/lib/ui-kit/LinkButton/LinkButton.js +4 -3
  283. package/mobile/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
  284. package/mobile/lib/ui-kit/LinkList/LinkList.js +2 -2
  285. package/mobile/lib/ui-kit/LinkList/LinkList.js.map +1 -1
  286. package/mobile/src/common.css +1 -1
  287. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +31 -19
  288. package/mobile/src/components/ApplicationForm/ApplicationForm.ui.json +12 -0
  289. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +70 -11
  290. package/mobile/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +51 -0
  291. package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +1 -0
  292. package/mobile/src/components/ApplicationForm/EmbeddableForms.tsx +15 -0
  293. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  294. package/mobile/src/components/Bonus/Bonus.tsx +33 -28
  295. package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +11 -6
  296. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +1 -1
  297. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +3 -3
  298. package/mobile/src/components/Carousel/Carousel.tsx +5 -3
  299. package/mobile/src/components/Carousel/CarouselScrollButtons.tsx +10 -3
  300. package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +25 -14
  301. package/mobile/src/components/CarouselLinks/CarouselLinksContent.ts +2 -0
  302. package/mobile/src/components/ContentPage/ContentPage.tsx +3 -3
  303. package/mobile/src/components/Footer/Contacts.tsx +15 -19
  304. package/mobile/src/components/Footer/Footer.tsx +27 -13
  305. package/mobile/src/components/Footer/HorizontalNavigation.tsx +10 -3
  306. package/mobile/src/components/Footer/MediaButton.tsx +1 -1
  307. package/mobile/src/components/Footer/SocialMedia.tsx +22 -9
  308. package/mobile/src/components/Footer/TextInformation.tsx +2 -2
  309. package/mobile/src/components/Footer/buttonSizeStyles.ts +6 -0
  310. package/mobile/src/components/Footer/buttonStylesWithText.ts +1 -5
  311. package/mobile/src/components/MobileAppTile/renderDescription.tsx +1 -1
  312. package/mobile/src/components/RollupItem/RollupItem.tsx +1 -1
  313. package/mobile/src/services/regionsGrantSupport/RegionsGrantSupportData.ts +8 -0
  314. package/mobile/src/ui-kit/LinkButton/LinkButton.tsx +22 -9
  315. package/mobile/src/ui-kit/LinkList/LinkList.tsx +3 -3
  316. package/package.json +1 -1
  317. package/src/common.css +1 -1
  318. package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +41 -7
  319. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +41 -7
  320. package/src/components/ApplicationForm/ApplicationForm.tsx +31 -19
  321. package/src/components/ApplicationForm/ApplicationForm.ui.json +12 -0
  322. package/src/components/ApplicationForm/ApplicationFormContent.ts +70 -11
  323. package/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +51 -0
  324. package/src/components/ApplicationForm/ApplicationFormsProps.ts +1 -0
  325. package/src/components/ApplicationForm/EmbeddableForms.tsx +15 -0
  326. package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  327. package/src/components/Bonus/Bonus.fixture.mobile.tsx +72 -0
  328. package/src/components/Bonus/Bonus.tsx +33 -28
  329. package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +11 -6
  330. package/src/components/Calculator/CreditCalculatorForm.tsx +1 -1
  331. package/src/components/Calculator/DepositCalculatorForm.tsx +3 -3
  332. package/src/components/Carousel/Carousel.tsx +5 -3
  333. package/src/components/Carousel/CarouselScrollButtons.tsx +10 -3
  334. package/src/components/CarouselLinks/CarouselLinks.fixture.mobile.tsx +34 -0
  335. package/src/components/CarouselLinks/CarouselLinks.fixture.tsx +3 -0
  336. package/src/components/CarouselLinks/CarouselLinks.tsx +25 -14
  337. package/src/components/CarouselLinks/CarouselLinksContent.ts +2 -0
  338. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
  339. package/src/components/ContentPage/ContentPage.tsx +3 -3
  340. package/src/components/Footer/Contacts.tsx +15 -19
  341. package/src/components/Footer/Footer.mobile.tsx +27 -13
  342. package/src/components/Footer/Footer.tsx +6 -8
  343. package/src/components/Footer/HorizontalNavigation.mobile.tsx +10 -3
  344. package/src/components/Footer/HorizontalNavigation.tsx +1 -1
  345. package/src/components/Footer/MediaButton.tsx +1 -1
  346. package/src/components/Footer/SocialMedia.tsx +9 -6
  347. package/src/components/Footer/TextInformation.tsx +2 -2
  348. package/src/components/Footer/buttonSizeStyles.mobile.ts +6 -0
  349. package/src/components/Footer/buttonSizeStyles.ts +6 -0
  350. package/src/components/Footer/buttonStylesWithText.ts +1 -5
  351. package/src/components/MobileAppTile/renderDescription.tsx +1 -1
  352. package/src/components/RollupItem/RollupItem.tsx +1 -1
  353. package/src/services/regionsGrantSupport/RegionsGrantSupportData.ts +8 -0
  354. package/src/ui-kit/LinkButton/LinkButton.fixture.mobile.tsx +11 -0
  355. package/src/ui-kit/LinkButton/LinkButton.fixture.tsx +1 -1
  356. package/src/ui-kit/LinkButton/LinkButton.tsx +22 -9
  357. package/src/ui-kit/LinkList/LinkList.tsx +3 -3
  358. package/tailwind.config.cjs +5 -5
  359. package/bundle/components/Footer/SocialMedia.mobile.d.ts +0 -6
  360. package/bundle/components/Footer/buttonStylesWithText.mobile.d.ts +0 -2
  361. package/dist/components/Footer/SocialMedia.mobile.d.ts +0 -6
  362. package/dist/components/Footer/SocialMedia.mobile.js +0 -7
  363. package/dist/components/Footer/SocialMedia.mobile.js.map +0 -1
  364. package/dist/components/Footer/buttonStylesWithText.mobile.d.ts +0 -2
  365. package/dist/components/Footer/buttonStylesWithText.mobile.js +0 -12
  366. package/dist/components/Footer/buttonStylesWithText.mobile.js.map +0 -1
  367. package/lib/components/Footer/SocialMedia.mobile.d.ts +0 -6
  368. package/lib/components/Footer/SocialMedia.mobile.js +0 -5
  369. package/lib/components/Footer/SocialMedia.mobile.js.map +0 -1
  370. package/lib/components/Footer/buttonStylesWithText.mobile.d.ts +0 -2
  371. package/lib/components/Footer/buttonStylesWithText.mobile.js +0 -9
  372. package/lib/components/Footer/buttonStylesWithText.mobile.js.map +0 -1
  373. package/src/components/Footer/SocialMedia.mobile.tsx +0 -16
  374. package/src/components/Footer/buttonStylesWithText.mobile.ts +0 -15
@@ -31,7 +31,7 @@ export const BenefitsBlock = JSX<BenefitsBlockProps>(
31
31
  const renderBenefit = (benefit: BenefitBlockItemProps, i: number) => (
32
32
  <div
33
33
  key={String(i)}
34
- className="flex gap-m items-center md:basis-1/2 md:max-w-[400px]"
34
+ className="flex gap-m items-center md:basis-1/2 md:max-w-[500px]"
35
35
  role="listitem"
36
36
  >
37
37
  {benefit?.icon?.icon ? (
@@ -0,0 +1,72 @@
1
+ import '../../setup-fixture';
2
+
3
+ import type { Picture } from '../../model/Picture';
4
+ import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
5
+ import { Bonus } from './Bonus';
6
+ import type { BonusContent } from './BonusContent';
7
+
8
+ const imageSize = {
9
+ height: 242,
10
+ width: 242,
11
+ };
12
+
13
+ const cardWithMoney: Picture = {
14
+ src: 'card-with-diamond.png',
15
+ alt: 'Кредиты в РСХБ',
16
+ format: 'webp',
17
+ size: imageSize,
18
+ };
19
+
20
+ const buttons: ButtonProps[] = [
21
+ {
22
+ text: 'Установить',
23
+ href: '/credit-cards',
24
+ version: 'secondary',
25
+ },
26
+ ];
27
+
28
+ export const BONUS: BonusContent = {
29
+ title: 'Начисление баллов',
30
+ description:
31
+ /* eslint-disable max-len */
32
+ 'Получайте 1% бонусными баллами с любых покупок и 1,5% баллами с покупок в категории «Путешествия». Обменивайте бонусные баллы на авиа и ж/д билеты, бронирование отелей и прокат автомобилей.',
33
+ bonusItems: [
34
+ {
35
+ title: '5 баллов за каждые 100 ₽',
36
+ description:
37
+ 'Повышенное начисление баллов за операции оплаты товаров и услуг в сети АЗС Роснефть',
38
+ bonusItemContent: {
39
+ bonusType: 'count',
40
+ bonusCount: '5',
41
+ bonusName: 'баллов',
42
+ },
43
+ },
44
+ {
45
+ title: '1 балл за каждые 100 ₽',
46
+ description: 'За остальные операции оплаты товаров и услуг',
47
+ bonusItemContent: {
48
+ bonusType: 'count',
49
+ bonusCount: '1',
50
+ bonusName: 'балл',
51
+ },
52
+ },
53
+ {
54
+ title: '300 приветственных баллов',
55
+ description:
56
+ 'За операции оплаты товаров и услуг на общую сумму 1 000 рублей и более в течение первых двух месяцев после получения карты',
57
+ bonusItemContent: {
58
+ bonusType: 'image',
59
+ image: cardWithMoney,
60
+ },
61
+ buttons,
62
+ },
63
+ ],
64
+ };
65
+
66
+ export default {
67
+ default: (
68
+ <div className="container grid grid-cols-12">
69
+ <Bonus className="col-span-12" {...BONUS} />
70
+ </div>
71
+ ),
72
+ };
@@ -10,31 +10,39 @@ import type { BonusContent, BonusCountDef, BonusImageDef } from './BonusContent'
10
10
 
11
11
  export interface BonusProps extends BonusContent, UniBlockProps {}
12
12
 
13
- export const Bonus = JSX<BonusProps>((props) => {
14
- const { className = '', title, description, bonusItems, ...rest } = props;
15
-
16
- return (
17
- <BlockWrapper className={className} defaultPadding="p-6xl" {...rest}>
13
+ export const Bonus = JSX<BonusProps>(
14
+ ({ className = '', title, description, bonusItems = [], ...rest }) => (
15
+ <BlockWrapper className={className} defaultPadding="p-default" {...rest}>
18
16
  <div className="container">
19
- <Headline title={title} description={description} headlineVersion="M" isPadding={false} />
20
- <div className="flex flex-wrap w-full mt-9">
21
- {bonusItems?.length
17
+ <Headline
18
+ className="mb-xl"
19
+ isPadding={false}
20
+ title={title}
21
+ description={description}
22
+ headlineVersion="M"
23
+ />
24
+ <div className="flex flex-wrap w-full">
25
+ {bonusItems.length > 0
22
26
  ? bonusItems.map((_, i) => (
23
27
  <div
24
28
  key={String(i)}
25
- className="flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0"
29
+ className="flex-grow w-full sm:w-[49%] border border-gray p-m mb-text mx-xs even:mr-0 odd:ml-0 last:odd:mx-0"
26
30
  >
27
- {_?.title ? <Text size="text-h4">{_.title}</Text> : null}
31
+ {_?.title ? (
32
+ <div className="mb-xs last:mb-0">
33
+ <Text size="text-h4">{_.title}</Text>
34
+ </div>
35
+ ) : null}
28
36
  {_?.description ? (
29
- <div className="mt-xs">
37
+ <div className="mb-text last:mb-0">
30
38
  <Paragraph size="text-xl" font="font-light">
31
39
  {_.description}
32
40
  </Paragraph>
33
41
  </div>
34
42
  ) : null}
35
43
 
36
- <div className="flex justify-between items-end mt-3">
37
- {renderButtonsSection(_?.buttons)}
44
+ <div className="flex justify-between items-end">
45
+ <div className="hidden sm:block">{renderButtonsSection(_?.buttons)}</div>
38
46
  {_.bonusItemContent?.bonusType
39
47
  ? renderBonusItemContent(_.bonusItemContent)
40
48
  : null}
@@ -45,31 +53,28 @@ export const Bonus = JSX<BonusProps>((props) => {
45
53
  </div>
46
54
  </div>
47
55
  </BlockWrapper>
48
- );
49
- });
50
-
51
- const renderBonusItemContent = (bonusItemContent: BonusImageDef | BonusCountDef) => (
52
- <div>
53
- {bonusItemContent.bonusType === 'count'
54
- ? renderBonusCount(bonusItemContent as BonusCountDef)
55
- : renderBonusImage(bonusItemContent as BonusImageDef)}
56
- </div>
56
+ ),
57
57
  );
58
58
 
59
+ const renderBonusItemContent = (bonusItemContent: BonusImageDef | BonusCountDef) =>
60
+ bonusItemContent.bonusType === 'count'
61
+ ? renderBonusCount(bonusItemContent as BonusCountDef)
62
+ : renderBonusImage(bonusItemContent as BonusImageDef);
63
+
59
64
  const renderBonusCount = (_: BonusCountDef) => (
60
- <div className="relative -bottom-3 h-auto flex items-end mt-14 shrink-0">
65
+ <div className="w-full pt-default mt-s flex items-end">
61
66
  {_.bonusCount ? (
62
- <span className="font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7">
67
+ <span className="shrink-0 w-1/2 sm:w-auto font-mohave text-title-extra -tracking-[5px] bg-clip-text text-transparent bg-green-to-yellow mt-lg">
63
68
  {_.bonusCount}
64
69
  </span>
65
70
  ) : null}
66
71
  {_.bonusName ? (
67
- <span className="text-h2 bg-clip-text text-transparent bg-green-to-yellow">
68
- {_.bonusName}
69
- </span>
72
+ <div className="w-1/2 sm:w-auto bg-clip-text text-transparent bg-green-to-yellow">
73
+ <Text size="text-h2">{_.bonusName}</Text>
74
+ </div>
70
75
  ) : null}
71
76
  </div>
72
77
  );
73
78
 
74
79
  const renderBonusImage = (_: BonusImageDef) =>
75
- _.image ? <Img className={`w-12 h-12 min-w-12 p-3 rounded-icon`} image={_.image} /> : null;
80
+ _.image ? <Img className="min-w-12 p-xs rounded-icon shrink-0" image={_.image} /> : null;
@@ -39,20 +39,20 @@ export const BusinessDepositCalculatorForm = JSX<BusinessDepositCalculatorProp>(
39
39
  <div className="flex justify-between">
40
40
  <div className="w-2/5">
41
41
  {renderWantedSumInput({
42
- title: 'Сумма вклада, ₽',
42
+ title: 'Сумма, ₽',
43
43
  min: calculatorParams.minSum,
44
44
  max: calculatorParams.maxSum,
45
45
  ...field('moneyValue'),
46
46
  value: calculatorParams.moneyValue,
47
47
  })}
48
48
  {renderDaysInput({
49
- title: 'Срок вклада, дни',
49
+ title: 'Срок, дней',
50
50
  min: calculatorParams.minDays,
51
51
  max: calculatorParams.maxDays,
52
52
  ...field('daysValue'),
53
53
  value: calculatorParams.daysValue,
54
54
  })}
55
- <div className="mt-7 flex justify-between">
55
+ <div className="mt-2xl flex justify-between">
56
56
  {renderBusinessDepositParamsForm(calculatorParams, field)}
57
57
  {renderInterestPayment({
58
58
  title: 'Выплата процентов',
@@ -74,10 +74,15 @@ export const BusinessDepositCalculatorForm = JSX<BusinessDepositCalculatorProp>(
74
74
  )}
75
75
 
76
76
  <div className="w-96">
77
- <CalculatorValueBlock title="Доход по вкладу" value={income} postfix="₽" prefix="+" />
77
+ <CalculatorValueBlock
78
+ title="Доход в конце срока"
79
+ value={income}
80
+ postfix="₽"
81
+ prefix="+"
82
+ />
78
83
  <CalculatorValueBlock title="Сумма в конце срока" value={finalSum} postfix="₽" />
79
- {renderButtonsSection(buttons, { className: 'mt-7', isVertical: true })}
80
- <div className="mt-7">{renderFootnote(footnote)}</div>
84
+ {renderButtonsSection(buttons, { className: 'mt-2xl', isVertical: true })}
85
+ <div className="mt-2xl">{renderFootnote(footnote)}</div>
81
86
  </div>
82
87
  </div>
83
88
  <div className="mt-5">{renderFootnote(bottomFootnote)}</div>
@@ -24,7 +24,7 @@ export interface CreditCalculatorProp extends CreditCalculatorProps {
24
24
  export const CreditCalculatorForm = JSX<CreditCalculatorProp>(
25
25
  ({ className, sourceBookDir, buttons, footnote, paramsViewSettings }) => {
26
26
  const [userInputParams, { field }] = useForm({
27
- isAnnuity: false,
27
+ isAnnuity: true,
28
28
  isInsurance: true,
29
29
  isSalaryClient: false,
30
30
  isPensionClient: false,
@@ -43,14 +43,14 @@ export const DepositCalculatorForm = JSX<DepositCalculatorProp>(
43
43
  <section className={style('flex justify-between', className)}>
44
44
  <div className="w-2/5">
45
45
  {renderWantedSumInput({
46
- title: 'Сумма вклада, ₽',
46
+ title: 'Сумма, ₽',
47
47
  min: calculatorParams.minSum,
48
48
  max: calculatorParams.maxSum,
49
49
  ...field('moneyValue'),
50
50
  value: calculatorParams.moneyValue,
51
51
  })}
52
52
  {renderMonthsInput({
53
- title: 'Срок вклада, месяцев',
53
+ title: 'Срок, месяцев',
54
54
  min: calculatorParams.minMonths,
55
55
  max: calculatorParams.maxMonths,
56
56
  availableMonths: calculatorParams.availableMonths,
@@ -63,7 +63,7 @@ export const DepositCalculatorForm = JSX<DepositCalculatorProp>(
63
63
  </div>
64
64
  <Rate rate={rate} rateBlockClassName="tracking-[-25px]" unit="%" />
65
65
  <div className="w-96">
66
- <CalculatorValueBlock title="Доход по вкладу" value={income} postfix="₽" prefix="+" />
66
+ <CalculatorValueBlock title="Доход в конце срока" value={income} postfix="₽" prefix="+" />
67
67
  <CalculatorValueBlock title="Сумма в конце срока" value={finalSum} postfix="₽" />
68
68
  {renderButtonsSection(buttons, { className: 'mt-2xl', isVertical: true })}
69
69
  {renderFootnote(footnote)}
@@ -2,15 +2,17 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import { renderBlock } from '../../BlockRenderer/renderBlock';
3
3
  import { renderChildren } from '../../BlockRenderer/renderChildren';
4
4
  import { useCarouselControls } from '../../hooks/useCarouselControls';
5
- import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
6
5
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
7
6
  import { SwipeListContainer } from '../../ui-kit/SwipeListControl/SwipeListContainer';
8
7
  import { SwipeListControlDots } from '../../ui-kit/SwipeListControl/SwipeListControlDots';
9
8
  import { useSwipeListScroll } from '../../ui-kit/SwipeListControl/useSwipeListScroll';
10
9
  import { style } from '../../utils/style';
11
- import type { CarouselContent } from './CarouselContent';
12
10
  import { CarouselScrollButtons } from './CarouselScrollButtons';
13
11
  import { ITEMS_GAP } from './itemsGap';
12
+ import type { CarouselContent } from './CarouselContent';
13
+ import type { BlockDef } from '../../model/ContentPageDef';
14
+ import type { BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
15
+ import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
14
16
 
15
17
  export interface CarouselProps extends CarouselContent, UniBlockProps {
16
18
  itemCount?: number;
@@ -58,7 +60,7 @@ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
58
60
  >
59
61
  {renderChildren({
60
62
  ...rest,
61
- renderProps: (block, options, blockIndex) =>
63
+ renderProps: (block: BlockDef, options: BlockRendererOptions, blockIndex) =>
62
64
  renderBlock(block, options, {
63
65
  className: style(
64
66
  'h-full min-w-80 sm:min-w-96',
@@ -51,7 +51,7 @@ export const CarouselScrollButtons = JSX<CarouselScrollButtonsProps>(
51
51
  }, [scrollRight, onScrollRight, hasEdgeBlocks, canScrollLeft, activeIndex, itemCount]);
52
52
 
53
53
  return (
54
- <div>
54
+ <div className="hidden @lg:block">
55
55
  {renderBlur(scroll)}
56
56
  {canMoveLeft ? (
57
57
  <ScrollLeftButton
@@ -73,10 +73,17 @@ export const CarouselScrollButtons = JSX<CarouselScrollButtonsProps>(
73
73
  const renderBlur = (scroll: SwipeListScroll) => (
74
74
  <div>
75
75
  {scroll.canScrollLeft ? (
76
- <div className={style(blurBaseStyle, 'left-0 bg-opacity-from-white')} />
76
+ <div
77
+ className={style(
78
+ blurBaseStyle,
79
+ 'left-0 bg-opacity-from-white group-data-secondary:bg-none',
80
+ )}
81
+ />
77
82
  ) : null}
78
83
  {scroll.canScrollRight ? (
79
- <div className={style(blurBaseStyle, 'right-0 bg-opacity-to-white')} />
84
+ <div
85
+ className={style(blurBaseStyle, 'right-0 bg-opacity-to-white group-data-secondary:bg-none')}
86
+ />
80
87
  ) : null}
81
88
  </div>
82
89
  );
@@ -0,0 +1,34 @@
1
+ import '../../setup-fixture';
2
+
3
+ import { CarouselLinks } from './CarouselLinks';
4
+
5
+ const link = {
6
+ text: 'Аудиторские заключения',
7
+ href: '#',
8
+ };
9
+ const links = Array(9).fill(link);
10
+
11
+ const description = `Акционерное общество «Российский Сельскохозяйственный банк»* —
12
+ один из крупнейших банков в России. Был основан в 2000 году в целях развития
13
+ национальной кредитно-финансовой системы агропромышленного сектора и
14
+ сельских территорий Российской Федерации.`;
15
+
16
+ const additionalDescription = `Сегодня это универсальный коммерческий банк,
17
+ предоставляющий все виды банковских услуг и занимающий лидирующие позиции
18
+ в финансировании агропромышленного комплекса России.`;
19
+
20
+ const MAX_LINKS_COUNT_MOBILE = 3;
21
+
22
+ export default {
23
+ default: (
24
+ <CarouselLinks
25
+ links={links}
26
+ title="О Банке"
27
+ description={description}
28
+ additionalDescription={additionalDescription}
29
+ maxLinksCount={MAX_LINKS_COUNT_MOBILE}
30
+ version="secondary"
31
+ block={{ type: 'Carousel', blocks: new Array(3).fill(link).flat() }}
32
+ />
33
+ ),
34
+ };
@@ -17,6 +17,8 @@ const additionalDescription = `Сегодня это универсальный
17
17
  предоставляющий все виды банковских услуг и занимающий лидирующие позиции
18
18
  в финансировании агропромышленного комплекса России.`;
19
19
 
20
+ const MAX_LINKS_COUNT = 10;
21
+
20
22
  export default {
21
23
  default: (
22
24
  <CarouselLinks
@@ -24,6 +26,7 @@ export default {
24
26
  title="О Банке"
25
27
  description={description}
26
28
  additionalDescription={additionalDescription}
29
+ maxLinksCount={MAX_LINKS_COUNT}
27
30
  version="secondary"
28
31
  block={{ type: 'Carousel', blocks: new Array(3).fill(link).flat() }}
29
32
  />
@@ -3,18 +3,29 @@ import type { UniBlockProps } from '../../model/JSXBlock';
3
3
  import type { LinkProps } from '../../model/LinkProps';
4
4
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
5
5
  import { LinkButton } from '../../ui-kit/LinkButton/LinkButton';
6
- import { style } from '../../utils/style';
7
6
  import { Carousel } from '../Carousel/Carousel';
8
7
  import { Headline } from '../Headline/Headline';
9
8
  import type { CarouselLinksContent } from './CarouselLinksContent';
9
+ import { style } from '../../utils/style';
10
10
 
11
- export interface CarouselLinksProps extends CarouselLinksContent, UniBlockProps {}
12
-
13
- const MAX_LINKS_COUNT = 10;
11
+ export interface CarouselLinksProps extends CarouselLinksContent, UniBlockProps {
12
+ maxLinksCount?: number;
13
+ }
14
14
 
15
15
  export const CarouselLinks = JSX<CarouselLinksProps>(
16
- ({ className, additionalDescription, description, links, title, ...rest }) => (
17
- <BlockWrapper className={style('flex w-full overflow-hidden', className)} {...rest}>
16
+ ({
17
+ className,
18
+ additionalDescription,
19
+ description,
20
+ links,
21
+ title,
22
+ maxLinksCount = 10,
23
+ ...rest
24
+ }) => (
25
+ <BlockWrapper
26
+ className={style('flex flex-col sm:flex-row w-full overflow-hidden', className)}
27
+ {...rest}
28
+ >
18
29
  <div className="mr-xl flex-auto">
19
30
  <Headline
20
31
  isPadding={false}
@@ -32,18 +43,18 @@ export const CarouselLinks = JSX<CarouselLinksProps>(
32
43
  />
33
44
  ) : null}
34
45
  </div>
35
- {links?.length ? renderLinks(links) : null}
46
+ {links?.length ? renderLinks(links, maxLinksCount) : null}
36
47
  </BlockWrapper>
37
48
  ),
38
49
  );
39
50
 
40
- const renderLinks = (links: LinkProps[]) => {
41
- const itemCount = Math.ceil(links.length / MAX_LINKS_COUNT);
51
+ const renderLinks = (links: LinkProps[], maxLinksCount: number) => {
52
+ const itemCount = Math.ceil(links.length / maxLinksCount);
42
53
 
43
54
  return (
44
55
  <Carousel
45
- className="min-w-[832px] w-[832px]"
46
- version=""
56
+ className="sm:w-2/3 w-full p-0 sm:p-2xl"
57
+ version="secondary"
47
58
  itemCount={itemCount}
48
59
  arrowsPadded={false}
49
60
  showDots={true}
@@ -51,12 +62,12 @@ const renderLinks = (links: LinkProps[]) => {
51
62
  {new Array(itemCount).fill(null).map((_, groupIndex) => (
52
63
  <div
53
64
  key={String(groupIndex)}
54
- className="w-[672px] min-w-[672px] ml-10 mr-10 flex flex-wrap self-start"
65
+ className={style('flex flex-wrap self-start sm:w-[672px] w-full sm:mx-5xl')}
55
66
  >
56
67
  {links
57
- .slice(groupIndex * MAX_LINKS_COUNT, (groupIndex + 1) * MAX_LINKS_COUNT)
68
+ .slice(groupIndex * maxLinksCount, (groupIndex + 1) * maxLinksCount)
58
69
  .map((link, index) => (
59
- <LinkButton key={String(index)} className="m-1" {...link} />
70
+ <LinkButton key={String(index)} className="sm:m-2xs" {...link} />
60
71
  ))}
61
72
  </div>
62
73
  ))}
@@ -8,4 +8,6 @@ export type CarouselLinksContent = UniBlockContent &
8
8
  AdditionalDescriptionProps & {
9
9
  /** @title Ссылки */
10
10
  links?: LinkProps[];
11
+ /** @title Отступы вложенных компонентов */
12
+ isInnerPadding?: boolean;
11
13
  };
@@ -32,7 +32,7 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
32
32
  defaultPadding="p-0"
33
33
  {...rest}
34
34
  >
35
- <LinkWrapper href={href} target={target}>
35
+ <LinkWrapper href={href} target={target} className="h-full">
36
36
  <BaseTile
37
37
  className="h-full"
38
38
  defaultPadding="p-m"
@@ -55,7 +55,7 @@ export const ContentPage: JSXBlock<ContentPageProps> = JSX<ContentPageProps>(
55
55
  return (
56
56
  <section
57
57
  className={style(
58
- 'relative',
58
+ 'relative @container',
59
59
  pageStyle,
60
60
  className,
61
61
  isSomeDialogOpened ? 'overflow-hidden h-screen' : '',
@@ -63,7 +63,7 @@ export const ContentPage: JSXBlock<ContentPageProps> = JSX<ContentPageProps>(
63
63
  data-theme={colorPalette}
64
64
  >
65
65
  {slots?.header ? (
66
- <div className="mb-5 shadow-[0_8px_32px_0px_#00000014]">
66
+ <div className="relative z-10 mb-5 shadow-[0_8px_32px_0px_#00000014]">
67
67
  {renderBlocksList(slots?.header, {
68
68
  ...options,
69
69
  slotName: 'header',
@@ -71,7 +71,7 @@ export const ContentPage: JSXBlock<ContentPageProps> = JSX<ContentPageProps>(
71
71
  })}
72
72
  </div>
73
73
  ) : null}
74
- <div className="container grid grid-cols-12 gap-1">
74
+ <div className="container @lg:grid @lg:grid-cols-12 @lg:gap-1">
75
75
  {renderChildren({ block: data, options, extraProps: { className: 'scroll-mt-12' } })}
76
76
  {renderBlocksList(slots?.footer, {
77
77
  ...options,
@@ -2,45 +2,41 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import { Button } from '../../ui-kit/Button/Button';
3
3
  import { Text } from '../../ui-kit/Text/Text';
4
4
  import type { ContactGroup, ContactInfo } from './FooterContent';
5
- import { style } from '../../utils/style';
6
5
 
7
6
  export interface ContactsProps {
8
7
  className?: string;
9
8
  items?: ContactGroup[];
10
- hasButton?: boolean;
11
9
  }
12
10
 
13
- export const Contacts = JSX<ContactsProps>(({ className = '', items, hasButton }) => (
14
- <div className={style('space-y-xl', className)}>
11
+ export const Contacts = JSX<ContactsProps>(({ className = '', items }) => (
12
+ <div className={className}>
15
13
  {items?.length ? items.map(renderContactsGroup) : null}
16
- {hasButton ? (
17
- <Button
18
- version="primary"
19
- className="mb-6 w-full"
20
- href="https://www.rshb.ru/feedback/question/"
21
- target="_blank"
22
- ariaLabel="Обратная связь"
23
- text="Обратная связь"
24
- />
25
- ) : null}
14
+ <Button
15
+ version="primary"
16
+ className="w-full"
17
+ href="https://www.rshb.ru/feedback/question/"
18
+ target="_blank"
19
+ ariaLabel="Обратная связь"
20
+ text="Обратная связь"
21
+ />
26
22
  </div>
27
23
  ));
28
24
 
29
25
  const renderContactsGroup = (item: ContactGroup, i: number) => (
30
- <div className="space-y-m" key={String(i)}>
31
- <div className="">
26
+ <div className="mb-m" key={String(i)}>
27
+ <div className="mb-m">
32
28
  <Text size="text-l" font="font-medium">
33
29
  {item?.title}
34
30
  </Text>
35
31
  </div>
36
- <div className="space-y-m">{item.items?.map(renderContact)}</div>
32
+ <div>{item.items?.map(renderContact)}</div>
37
33
  </div>
38
34
  );
39
35
 
40
36
  const renderContact = (item: ContactInfo, index: number) => (
41
- <div className="space-y-2xs" key={String(index)}>
37
+ <div className="mb-m" key={String(index)}>
42
38
  <div>{renderText(item.type, item.text)}</div>
43
- <div className="text-s font-light text-secondary-text">{item.description}</div>
39
+ <div className="mt-2xs text-s font-light text-secondary-text">{item.description}</div>
44
40
  </div>
45
41
  );
46
42
 
@@ -13,32 +13,46 @@ import type { FooterProps } from './FooterProps';
13
13
  import { HorizontalNavigation } from './HorizontalNavigation';
14
14
  import { SocialMedia } from './SocialMedia';
15
15
  import { TextInformation } from './TextInformation';
16
+ import { Text } from '../../ui-kit/Text/Text';
16
17
 
17
18
  export const Footer = JSX<FooterProps>(({ className, sitemap, ...rest }) => {
18
- const { relatedEnterprises, contacts, socialMedia, mobileApps, horizontalNavigationTitle } =
19
- useSWRResource<FooterDataProps>(
20
- projectSettings.FOOTER || 'footer',
21
- rest.options?.page?.fallback,
22
- );
19
+ const {
20
+ relatedEnterprises,
21
+ contacts,
22
+ socialMedia,
23
+ mobileApps,
24
+ horizontalNavigationTitle,
25
+ documents,
26
+ } = useSWRResource<FooterDataProps>(
27
+ projectSettings.FOOTER || 'footer',
28
+ rest.options?.page?.fallback,
29
+ );
23
30
 
24
31
  return (
25
- <BlockWrapper tag="footer" className={className} defaultPadding="px-4 py-6" {...rest}>
26
- <div className="mb-4 pb-5 border-b border-main-divider">
32
+ <BlockWrapper tag="footer" className={className} {...rest}>
33
+ <div className="mb-lg pb-xs border-b border-main-divider">
27
34
  {sitemap?.topItems?.map((item, i) => (
28
35
  <RollupItem key={String(i)} label={item?.text} labelIcon={item?.icon}>
29
- <LinkList items={item.items} className="my-3" />
36
+ <LinkList items={item.items} />
30
37
  </RollupItem>
31
38
  ))}
32
39
  </div>
33
40
  <Contacts className="overflow-hidden" items={contacts} />
34
- <SocialMedia className="mb-4" media={socialMedia} />
35
- {mobileApps?.map(renderButton)}
41
+ <div className="mt-xl">
42
+ <SocialMedia className="mb-xl" media={socialMedia} buttonSize="stretched">
43
+ Соцсети
44
+ </SocialMedia>
45
+ <Text size="text-s" font="font-light" color="text-secondary-text">
46
+ Мобильное приложение
47
+ </Text>
48
+ <div className="mt-xs">{mobileApps?.map(renderButton)}</div>
49
+ </div>
36
50
  <HorizontalNavigation
37
- className="pt-m pb-2xl border-y border-main-divider"
51
+ className="py-lg border-y border-main-divider"
38
52
  title={horizontalNavigationTitle}
39
53
  links={relatedEnterprises}
40
54
  />
41
- <TextInformation />
55
+ <TextInformation links={documents} />
42
56
  </BlockWrapper>
43
57
  );
44
58
  });
@@ -49,7 +63,7 @@ const renderButton = ({ href = '/' }: LinkCommonProps, i: number) => {
49
63
  return (
50
64
  <Button
51
65
  key={String(i)}
52
- className="w-full mb-4"
66
+ className="w-full mb-lg"
53
67
  text={label}
54
68
  version="secondary"
55
69
  href={href}