@redneckz/wildless-cms-uni-blocks 0.13.22 → 0.13.24

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 (380) hide show
  1. package/bin/migration-scripts/0.13.15.js +25 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +49 -38
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/Carousel/visibleItemCount.d.ts +1 -0
  6. package/bundle/components/Carousel/visibleItemCount.mobile.d.ts +1 -0
  7. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +1 -1
  8. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
  9. package/bundle/components/Footer/FooterContent.d.ts +4 -1
  10. package/bundle/components/Footer/FooterDataProps.d.ts +4 -10
  11. package/bundle/components/Footer/MediaButton.d.ts +2 -3
  12. package/bundle/components/Footer/{buttonSizeStyles.d.ts → buttonSizeStyle.d.ts} +1 -1
  13. package/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  14. package/bundle/services/search/useSearch.d.ts +3 -3
  15. package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
  16. package/bundle/ui-kit/BaseTile/BaseTile.d.ts +1 -0
  17. package/bundle/ui-kit/RichText/getHtmlText.d.ts +1 -0
  18. package/bundle/utils/Nullable.d.ts +1 -0
  19. package/cosmos-static/icons/MailIcon.svg +1 -1
  20. package/cosmos-static/icons/PhoneIcon.svg +1 -1
  21. package/cosmos-static/icons/RutubeIcon.svg +1 -1
  22. package/dist/components/Calculator/Calculator.mobile.js +1 -1
  23. package/dist/components/Calculator/Calculator.mobile.js.map +1 -1
  24. package/dist/components/Calculator/useRefinancingCalculatorParams.js +0 -3
  25. package/dist/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
  26. package/dist/components/Carousel/Carousel.js +2 -1
  27. package/dist/components/Carousel/Carousel.js.map +1 -1
  28. package/dist/components/Carousel/visibleItemCount.d.ts +1 -0
  29. package/dist/components/Carousel/visibleItemCount.js +4 -0
  30. package/dist/components/Carousel/visibleItemCount.js.map +1 -0
  31. package/dist/components/Carousel/visibleItemCount.mobile.d.ts +1 -0
  32. package/dist/components/Carousel/visibleItemCount.mobile.js +4 -0
  33. package/dist/components/Carousel/visibleItemCount.mobile.js.map +1 -0
  34. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -0
  35. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  36. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +1 -1
  37. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
  38. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
  39. package/dist/components/Footer/Footer.js +4 -3
  40. package/dist/components/Footer/Footer.js.map +1 -1
  41. package/dist/components/Footer/FooterContent.d.ts +4 -1
  42. package/dist/components/Footer/FooterDataProps.d.ts +4 -10
  43. package/dist/components/Footer/MediaButton.d.ts +2 -3
  44. package/dist/components/Footer/MediaButton.js +5 -4
  45. package/dist/components/Footer/MediaButton.js.map +1 -1
  46. package/dist/components/Footer/SocialMedia.js +1 -1
  47. package/dist/components/Footer/SocialMedia.js.map +1 -1
  48. package/{lib/components/Footer/buttonSizeStyles.d.ts → dist/components/Footer/buttonSizeStyle.d.ts} +1 -1
  49. package/{mobile/dist/components/Footer/buttonSizeStyles.js → dist/components/Footer/buttonSizeStyle.js} +3 -3
  50. package/dist/components/Footer/buttonSizeStyle.js.map +1 -0
  51. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  52. package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  53. package/dist/components/ProductBlock/renderBackwardButton.js +1 -1
  54. package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  55. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +12 -3
  56. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  57. package/dist/components/StepsBlock/StepsBlock.mobile.js +1 -1
  58. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  59. package/dist/icons/IconName.js +1 -1
  60. package/dist/icons/IconName.js.map +1 -1
  61. package/dist/services/search/useSearch.d.ts +3 -3
  62. package/dist/services/search/useSearch.js +2 -5
  63. package/dist/services/search/useSearch.js.map +1 -1
  64. package/dist/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
  65. package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  66. package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
  67. package/dist/ui-kit/BaseTile/BaseTile.d.ts +1 -0
  68. package/dist/ui-kit/BaseTile/BaseTile.js +2 -2
  69. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  70. package/dist/ui-kit/Button/buttonClassNameConstants.js +2 -2
  71. package/dist/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
  72. package/dist/ui-kit/Button/renderButtonsSection.js +11 -4
  73. package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  74. package/dist/ui-kit/Logo/Logo.js +1 -1
  75. package/dist/ui-kit/Logo/Logo.js.map +1 -1
  76. package/dist/ui-kit/RichText/RichText.js +2 -1
  77. package/dist/ui-kit/RichText/RichText.js.map +1 -1
  78. package/dist/ui-kit/RichText/getHtmlText.d.ts +1 -0
  79. package/dist/ui-kit/RichText/getHtmlText.js +5 -0
  80. package/dist/ui-kit/RichText/getHtmlText.js.map +1 -0
  81. package/dist/ui-kit/SearchDialog/SearchDialog.js +0 -1
  82. package/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  83. package/dist/utils/Nullable.d.ts +1 -0
  84. package/dist/utils/Nullable.js +2 -0
  85. package/dist/utils/Nullable.js.map +1 -0
  86. package/lib/common.css +1 -1
  87. package/lib/components/Calculator/Calculator.mobile.js +1 -1
  88. package/lib/components/Calculator/Calculator.mobile.js.map +1 -1
  89. package/lib/components/Calculator/useRefinancingCalculatorParams.js +0 -3
  90. package/lib/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
  91. package/lib/components/Carousel/Carousel.js +2 -1
  92. package/lib/components/Carousel/Carousel.js.map +1 -1
  93. package/lib/components/Carousel/visibleItemCount.d.ts +1 -0
  94. package/lib/components/Carousel/visibleItemCount.js +2 -0
  95. package/lib/components/Carousel/visibleItemCount.js.map +1 -0
  96. package/lib/components/Carousel/visibleItemCount.mobile.d.ts +1 -0
  97. package/lib/components/Carousel/visibleItemCount.mobile.js +2 -0
  98. package/lib/components/Carousel/visibleItemCount.mobile.js.map +1 -0
  99. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -0
  100. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  101. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +1 -1
  102. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
  103. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
  104. package/lib/components/Footer/Footer.js +4 -3
  105. package/lib/components/Footer/Footer.js.map +1 -1
  106. package/lib/components/Footer/FooterContent.d.ts +4 -1
  107. package/lib/components/Footer/FooterDataProps.d.ts +4 -10
  108. package/lib/components/Footer/MediaButton.d.ts +2 -3
  109. package/lib/components/Footer/MediaButton.js +5 -4
  110. package/lib/components/Footer/MediaButton.js.map +1 -1
  111. package/lib/components/Footer/SocialMedia.js +1 -1
  112. package/lib/components/Footer/SocialMedia.js.map +1 -1
  113. package/{dist/components/Footer/buttonSizeStyles.d.ts → lib/components/Footer/buttonSizeStyle.d.ts} +1 -1
  114. package/lib/components/Footer/buttonSizeStyle.js +5 -0
  115. package/lib/components/Footer/buttonSizeStyle.js.map +1 -0
  116. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  117. package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  118. package/lib/components/ProductBlock/renderBackwardButton.js +1 -1
  119. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  120. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +12 -3
  121. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  122. package/lib/components/StepsBlock/StepsBlock.mobile.js +1 -1
  123. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  124. package/lib/components/Tile/Tile.fixture.mobile.d.ts +9 -0
  125. package/lib/icons/IconName.js +1 -1
  126. package/lib/icons/IconName.js.map +1 -1
  127. package/lib/services/search/useSearch.d.ts +3 -3
  128. package/lib/services/search/useSearch.js +3 -6
  129. package/lib/services/search/useSearch.js.map +1 -1
  130. package/lib/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
  131. package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  132. package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
  133. package/lib/ui-kit/BaseTile/BaseTile.d.ts +1 -0
  134. package/lib/ui-kit/BaseTile/BaseTile.js +2 -2
  135. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  136. package/lib/ui-kit/Button/buttonClassNameConstants.js +2 -2
  137. package/lib/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
  138. package/lib/ui-kit/Button/renderButtonsSection.js +11 -4
  139. package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  140. package/lib/ui-kit/Logo/Logo.js +1 -1
  141. package/lib/ui-kit/Logo/Logo.js.map +1 -1
  142. package/lib/ui-kit/RichText/RichText.js +2 -1
  143. package/lib/ui-kit/RichText/RichText.js.map +1 -1
  144. package/lib/ui-kit/RichText/getHtmlText.d.ts +1 -0
  145. package/lib/ui-kit/RichText/getHtmlText.js +2 -0
  146. package/lib/ui-kit/RichText/getHtmlText.js.map +1 -0
  147. package/lib/ui-kit/SearchDialog/SearchDialog.js +0 -1
  148. package/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  149. package/lib/utils/Nullable.d.ts +1 -0
  150. package/lib/utils/Nullable.js +2 -0
  151. package/lib/utils/Nullable.js.map +1 -0
  152. package/mobile/bundle/bundle.umd.js +47 -37
  153. package/mobile/bundle/bundle.umd.min.js +1 -1
  154. package/mobile/bundle/components/Carousel/visibleItemCount.d.ts +1 -0
  155. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  156. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
  157. package/mobile/bundle/components/Footer/FooterContent.d.ts +4 -1
  158. package/mobile/bundle/components/Footer/FooterDataProps.d.ts +4 -10
  159. package/mobile/bundle/components/Footer/MediaButton.d.ts +2 -3
  160. package/mobile/bundle/components/Footer/{buttonSizeStyles.d.ts → buttonSizeStyle.d.ts} +1 -1
  161. package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  162. package/mobile/bundle/services/search/useSearch.d.ts +3 -3
  163. package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
  164. package/mobile/bundle/ui-kit/BaseTile/BaseTile.d.ts +1 -0
  165. package/mobile/bundle/ui-kit/RichText/getHtmlText.d.ts +1 -0
  166. package/mobile/bundle/utils/Nullable.d.ts +1 -0
  167. package/mobile/dist/components/Calculator/Calculator.js +1 -1
  168. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  169. package/mobile/dist/components/Calculator/useRefinancingCalculatorParams.js +0 -3
  170. package/mobile/dist/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
  171. package/mobile/dist/components/Carousel/Carousel.js +2 -1
  172. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  173. package/mobile/dist/components/Carousel/visibleItemCount.d.ts +1 -0
  174. package/mobile/dist/components/Carousel/visibleItemCount.js +4 -0
  175. package/mobile/dist/components/Carousel/visibleItemCount.js.map +1 -0
  176. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  177. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  178. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
  179. package/mobile/dist/components/Footer/FooterContent.d.ts +4 -1
  180. package/mobile/dist/components/Footer/FooterDataProps.d.ts +4 -10
  181. package/mobile/dist/components/Footer/MediaButton.d.ts +2 -3
  182. package/mobile/dist/components/Footer/MediaButton.js +5 -4
  183. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  184. package/mobile/dist/components/Footer/SocialMedia.js +1 -1
  185. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  186. package/mobile/dist/components/Footer/buttonSizeStyle.d.ts +4 -0
  187. package/{dist/components/Footer/buttonSizeStyles.js → mobile/dist/components/Footer/buttonSizeStyle.js} +3 -3
  188. package/mobile/dist/components/Footer/buttonSizeStyle.js.map +1 -0
  189. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  190. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  191. package/mobile/dist/components/ProductBlock/renderBackwardButton.js +1 -1
  192. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  193. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +12 -3
  194. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  195. package/mobile/dist/components/StepsBlock/StepsBlock.js +1 -1
  196. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  197. package/mobile/dist/icons/IconName.js +1 -1
  198. package/mobile/dist/icons/IconName.js.map +1 -1
  199. package/mobile/dist/services/search/useSearch.d.ts +3 -3
  200. package/mobile/dist/services/search/useSearch.js +2 -5
  201. package/mobile/dist/services/search/useSearch.js.map +1 -1
  202. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
  203. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  204. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
  205. package/mobile/dist/ui-kit/BaseTile/BaseTile.d.ts +1 -0
  206. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +2 -2
  207. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  208. package/mobile/dist/ui-kit/Button/buttonClassNameConstants.js +2 -2
  209. package/mobile/dist/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
  210. package/mobile/dist/ui-kit/Button/renderButtonsSection.js +11 -4
  211. package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  212. package/mobile/dist/ui-kit/Logo/Logo.js +1 -1
  213. package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
  214. package/mobile/dist/ui-kit/RichText/RichText.js +2 -1
  215. package/mobile/dist/ui-kit/RichText/RichText.js.map +1 -1
  216. package/mobile/dist/ui-kit/RichText/getHtmlText.d.ts +1 -0
  217. package/mobile/dist/ui-kit/RichText/getHtmlText.js +5 -0
  218. package/mobile/dist/ui-kit/RichText/getHtmlText.js.map +1 -0
  219. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js +0 -1
  220. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  221. package/mobile/dist/utils/Nullable.d.ts +1 -0
  222. package/mobile/dist/utils/Nullable.js +2 -0
  223. package/mobile/dist/utils/Nullable.js.map +1 -0
  224. package/mobile/lib/common.css +1 -1
  225. package/mobile/lib/components/Calculator/Calculator.js +1 -1
  226. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  227. package/mobile/lib/components/Calculator/useRefinancingCalculatorParams.js +0 -3
  228. package/mobile/lib/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
  229. package/mobile/lib/components/Carousel/Carousel.js +2 -1
  230. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  231. package/mobile/lib/components/Carousel/visibleItemCount.d.ts +1 -0
  232. package/mobile/lib/components/Carousel/visibleItemCount.js +2 -0
  233. package/mobile/lib/components/Carousel/visibleItemCount.js.map +1 -0
  234. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  235. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  236. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
  237. package/mobile/lib/components/Footer/FooterContent.d.ts +4 -1
  238. package/mobile/lib/components/Footer/FooterDataProps.d.ts +4 -10
  239. package/mobile/lib/components/Footer/MediaButton.d.ts +2 -3
  240. package/mobile/lib/components/Footer/MediaButton.js +5 -4
  241. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  242. package/mobile/lib/components/Footer/SocialMedia.js +1 -1
  243. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  244. package/mobile/lib/components/Footer/buttonSizeStyle.d.ts +4 -0
  245. package/mobile/lib/components/Footer/buttonSizeStyle.js +5 -0
  246. package/mobile/lib/components/Footer/buttonSizeStyle.js.map +1 -0
  247. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  248. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  249. package/mobile/lib/components/ProductBlock/renderBackwardButton.js +1 -1
  250. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  251. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +12 -3
  252. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  253. package/mobile/lib/components/StepsBlock/StepsBlock.js +1 -1
  254. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  255. package/mobile/lib/icons/IconName.js +1 -1
  256. package/mobile/lib/icons/IconName.js.map +1 -1
  257. package/mobile/lib/services/search/useSearch.d.ts +3 -3
  258. package/mobile/lib/services/search/useSearch.js +3 -6
  259. package/mobile/lib/services/search/useSearch.js.map +1 -1
  260. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
  261. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  262. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
  263. package/mobile/lib/ui-kit/BaseTile/BaseTile.d.ts +1 -0
  264. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +2 -2
  265. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  266. package/mobile/lib/ui-kit/Button/buttonClassNameConstants.js +2 -2
  267. package/mobile/lib/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
  268. package/mobile/lib/ui-kit/Button/renderButtonsSection.js +11 -4
  269. package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  270. package/mobile/lib/ui-kit/Logo/Logo.js +1 -1
  271. package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
  272. package/mobile/lib/ui-kit/RichText/RichText.js +2 -1
  273. package/mobile/lib/ui-kit/RichText/RichText.js.map +1 -1
  274. package/mobile/lib/ui-kit/RichText/getHtmlText.d.ts +1 -0
  275. package/mobile/lib/ui-kit/RichText/getHtmlText.js +2 -0
  276. package/mobile/lib/ui-kit/RichText/getHtmlText.js.map +1 -0
  277. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js +0 -1
  278. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  279. package/mobile/lib/utils/Nullable.d.ts +1 -0
  280. package/mobile/lib/utils/Nullable.js +2 -0
  281. package/mobile/lib/utils/Nullable.js.map +1 -0
  282. package/mobile/src/components/Calculator/Calculator.tsx +1 -1
  283. package/mobile/src/components/Calculator/useRefinancingCalculatorParams.ts +1 -8
  284. package/mobile/src/components/Carousel/Carousel.example.json +0 -1
  285. package/mobile/src/components/Carousel/Carousel.tsx +2 -1
  286. package/mobile/src/components/Carousel/visibleItemCount.ts +1 -0
  287. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +2 -2
  288. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -4
  289. package/mobile/src/components/Footer/FooterContent.ts +5 -1
  290. package/mobile/src/components/Footer/FooterDataProps.ts +4 -10
  291. package/mobile/src/components/Footer/MediaButton.tsx +34 -39
  292. package/mobile/src/components/Footer/SocialMedia.tsx +2 -2
  293. package/mobile/src/components/Footer/{buttonSizeStyles.ts → buttonSizeStyle.ts} +1 -1
  294. package/mobile/src/components/ProductBlock/ProductBlock.tsx +0 -1
  295. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +1 -1
  296. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +1 -1
  297. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +2 -0
  298. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +33 -17
  299. package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -1
  300. package/mobile/src/icons/IconName.ts +1 -1
  301. package/mobile/src/icons/MailIcon.svg +4 -1
  302. package/mobile/src/icons/PhoneIcon.svg +3 -1
  303. package/mobile/src/icons/RutubeIcon.svg +1 -1
  304. package/mobile/src/services/search/useSearch.ts +6 -13
  305. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +7 -1
  306. package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +2 -0
  307. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +9 -2
  308. package/mobile/src/ui-kit/Button/buttonClassNameConstants.ts +2 -2
  309. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +14 -5
  310. package/mobile/src/ui-kit/Logo/Logo.tsx +1 -1
  311. package/mobile/src/ui-kit/RichText/RichText.tsx +3 -2
  312. package/mobile/src/ui-kit/RichText/getHtmlText.tsx +1 -0
  313. package/mobile/src/ui-kit/SearchDialog/SearchDialog.tsx +0 -1
  314. package/mobile/src/utils/Nullable.ts +1 -0
  315. package/package.json +1 -1
  316. package/src/components/Calculator/Calculator.mobile.tsx +1 -1
  317. package/src/components/Calculator/useRefinancingCalculatorParams.ts +1 -8
  318. package/src/components/Carousel/Carousel.example.json +0 -1
  319. package/src/components/Carousel/Carousel.fixture.tsx +3 -0
  320. package/src/components/Carousel/Carousel.tsx +2 -1
  321. package/src/components/Carousel/visibleItemCount.mobile.ts +1 -0
  322. package/src/components/Carousel/visibleItemCount.ts +1 -0
  323. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx +4 -18
  324. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +4 -18
  325. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.tsx +2 -2
  326. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -0
  327. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -4
  328. package/src/components/Footer/Footer.tsx +4 -3
  329. package/src/components/Footer/FooterContent.ts +5 -1
  330. package/src/components/Footer/FooterDataProps.ts +4 -10
  331. package/src/components/Footer/MediaButton.tsx +34 -39
  332. package/src/components/Footer/SocialMedia.tsx +2 -2
  333. package/src/components/Footer/{buttonSizeStyles.ts → buttonSizeStyle.ts} +1 -1
  334. package/src/components/ProductBlock/ProductBlock.tsx +0 -1
  335. package/src/components/ProductBlock/ProductBlockContent.ts +1 -1
  336. package/src/components/ProductBlock/renderBackwardButton.tsx +1 -1
  337. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +2 -0
  338. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +3 -3
  339. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +33 -17
  340. package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -1
  341. package/src/components/Tile/Tile.fixture.mobile.tsx +48 -0
  342. package/src/icons/IconName.ts +0 -2
  343. package/src/icons/MailIcon.svg +4 -1
  344. package/src/icons/PhoneIcon.svg +3 -1
  345. package/src/icons/RutubeIcon.svg +1 -1
  346. package/src/services/search/useSearch.ts +6 -13
  347. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +7 -1
  348. package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +2 -0
  349. package/src/ui-kit/BaseTile/BaseTile.tsx +9 -2
  350. package/src/ui-kit/Button/buttonClassNameConstants.ts +2 -2
  351. package/src/ui-kit/Button/renderButtonsSection.tsx +14 -5
  352. package/src/ui-kit/Logo/Logo.tsx +1 -1
  353. package/src/ui-kit/RichText/RichText.tsx +3 -2
  354. package/src/ui-kit/RichText/getHtmlText.tsx +1 -0
  355. package/src/ui-kit/SearchDialog/SearchDialog.tsx +0 -1
  356. package/src/utils/Nullable.ts +1 -0
  357. package/bundle/components/Footer/buttonStylesWithText.d.ts +0 -2
  358. package/dist/components/Footer/buttonSizeStyles.js.map +0 -1
  359. package/dist/components/Footer/buttonStylesWithText.d.ts +0 -2
  360. package/dist/components/Footer/buttonStylesWithText.js +0 -9
  361. package/dist/components/Footer/buttonStylesWithText.js.map +0 -1
  362. package/lib/components/Footer/buttonSizeStyles.js +0 -5
  363. package/lib/components/Footer/buttonSizeStyles.js.map +0 -1
  364. package/lib/components/Footer/buttonStylesWithText.d.ts +0 -2
  365. package/lib/components/Footer/buttonStylesWithText.js +0 -6
  366. package/lib/components/Footer/buttonStylesWithText.js.map +0 -1
  367. package/mobile/bundle/components/Footer/buttonStylesWithText.d.ts +0 -2
  368. package/mobile/dist/components/Footer/buttonSizeStyles.d.ts +0 -4
  369. package/mobile/dist/components/Footer/buttonSizeStyles.js.map +0 -1
  370. package/mobile/dist/components/Footer/buttonStylesWithText.d.ts +0 -2
  371. package/mobile/dist/components/Footer/buttonStylesWithText.js +0 -9
  372. package/mobile/dist/components/Footer/buttonStylesWithText.js.map +0 -1
  373. package/mobile/lib/components/Footer/buttonSizeStyles.d.ts +0 -4
  374. package/mobile/lib/components/Footer/buttonSizeStyles.js +0 -5
  375. package/mobile/lib/components/Footer/buttonSizeStyles.js.map +0 -1
  376. package/mobile/lib/components/Footer/buttonStylesWithText.d.ts +0 -2
  377. package/mobile/lib/components/Footer/buttonStylesWithText.js +0 -6
  378. package/mobile/lib/components/Footer/buttonStylesWithText.js.map +0 -1
  379. package/mobile/src/components/Footer/buttonStylesWithText.ts +0 -11
  380. package/src/components/Footer/buttonStylesWithText.ts +0 -11
@@ -12,6 +12,7 @@ export interface CommonRefinancingParams {
12
12
  isInsurance: boolean;
13
13
  isExtraMoney: boolean;
14
14
  }
15
+
15
16
  export interface RefinancingCalculatorSourceBookRateParams extends CommonRefinancingParams {
16
17
  minSum: number;
17
18
  maxSum: number;
@@ -78,12 +79,6 @@ export const useRefinancingCalculatorParams = (
78
79
  rateRows,
79
80
  );
80
81
 
81
- const { minSumOld, maxSumOld } = getLimitRangeByKeys(
82
- ['minSumOld', 'maxSumOld'],
83
- sourceBookLimitParams,
84
- rateRows,
85
- );
86
-
87
82
  const { minMonths, maxMonths } = getLimitRangeByKeys(
88
83
  ['minMonths', 'maxMonths'],
89
84
  sourceBookLimitParams,
@@ -110,8 +105,6 @@ export const useRefinancingCalculatorParams = (
110
105
  ...userInputParams,
111
106
  minSum,
112
107
  maxSum,
113
- minSumOld,
114
- maxSumOld,
115
108
  minMonths,
116
109
  maxMonths,
117
110
  moneyValue,
@@ -1,5 +1,4 @@
1
1
  {
2
- "visibleItemCount": 1,
3
2
  "isBlur": false,
4
3
  "arrowsPadded": true,
5
4
  "isCycle": false,
@@ -57,6 +57,7 @@ export default {
57
57
  <div className="container grid grid-cols-12">
58
58
  <Carousel
59
59
  className="col-span-12"
60
+ visibleItemCount={0}
60
61
  noCardBorder={true}
61
62
  block={{
62
63
  type: 'Carousel',
@@ -171,6 +172,7 @@ export default {
171
172
  <div className="container grid grid-cols-12">
172
173
  <Carousel
173
174
  className="col-span-12"
175
+ visibleItemCount={0}
174
176
  block={{
175
177
  type: 'Carousel',
176
178
  blocks: new Array(6).fill({
@@ -221,6 +223,7 @@ export default {
221
223
  <div className="container grid grid-cols-12">
222
224
  <Carousel
223
225
  className="col-span-12"
226
+ visibleItemCount={0}
224
227
  block={{
225
228
  type: 'Carousel',
226
229
  blocks: new Array(6).fill({
@@ -10,6 +10,7 @@ import type { CarouselContent } from './CarouselContent';
10
10
  import { CarouselScrollButtons } from './CarouselScrollButtons';
11
11
  import { ITEMS_GAP } from './itemsGap';
12
12
  import { renderCarouselCards } from './renderCarouselCards';
13
+ import { VISIBLE_ITEM_COUNT } from './visibleItemCount';
13
14
 
14
15
  export interface CarouselProps extends CarouselContent, UniBlockProps {
15
16
  itemCount?: number;
@@ -19,7 +20,7 @@ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
19
20
  ({
20
21
  className,
21
22
  itemCount,
22
- visibleItemCount = 0,
23
+ visibleItemCount = VISIBLE_ITEM_COUNT,
23
24
  noCardBorder,
24
25
  isAlignCenter,
25
26
  arrowsPadded = true,
@@ -0,0 +1 @@
1
+ export const VISIBLE_ITEM_COUNT = 0;
@@ -0,0 +1 @@
1
+ export const VISIBLE_ITEM_COUNT = 1;
@@ -1,11 +1,9 @@
1
1
  import '../../setup-fixture';
2
2
 
3
3
  import type { Picture } from '../../model/Picture';
4
+ import type { SocialMediaLink } from '../Footer/FooterContent';
4
5
  import { CarouselRecommendationCard } from './CarouselRecommendationCard';
5
- import type {
6
- CarouselRecommendationCardContent,
7
- RecommendationSocialMedia,
8
- } from './CarouselRecommendationCardContent';
6
+ import type { CarouselRecommendationCardContent } from './CarouselRecommendationCardContent';
9
7
 
10
8
  const icon: Picture = {
11
9
  src: 'product-basket.png',
@@ -17,42 +15,30 @@ const icon: Picture = {
17
15
  title: 'product-basket',
18
16
  };
19
17
 
20
- const commonProps: RecommendationSocialMedia = {
21
- target: '_blank',
22
- version: 'gray',
23
- rounded: false,
24
- };
25
-
26
- const socialMediaWithText: RecommendationSocialMedia[] = [
18
+ const socialMediaWithText: SocialMediaLink[] = [
27
19
  {
28
20
  href: 'https://t.me',
29
21
  text: 'Telegram',
30
- ...commonProps,
31
22
  },
32
23
  {
33
24
  href: 'https://vk.com',
34
25
  text: 'Telegram',
35
- ...commonProps,
36
26
  },
37
27
  {
38
28
  href: 'https://ok.ru',
39
29
  text: 'Telegram',
40
- ...commonProps,
41
30
  },
42
31
  ];
43
32
 
44
- const socialMediaWithoutText: RecommendationSocialMedia[] = [
33
+ const socialMediaWithoutText: SocialMediaLink[] = [
45
34
  {
46
35
  href: 'https://t.me',
47
- ...commonProps,
48
36
  },
49
37
  {
50
38
  href: 'https://vk.com',
51
- ...commonProps,
52
39
  },
53
40
  {
54
41
  href: 'https://ok.ru',
55
- ...commonProps,
56
42
  },
57
43
  ];
58
44
 
@@ -1,11 +1,9 @@
1
1
  import '../../setup-fixture';
2
2
 
3
3
  import type { Picture } from '../../model/Picture';
4
+ import type { SocialMediaLink } from '../Footer/FooterContent';
4
5
  import { CarouselRecommendationCard } from './CarouselRecommendationCard';
5
- import type {
6
- CarouselRecommendationCardContent,
7
- RecommendationSocialMedia,
8
- } from './CarouselRecommendationCardContent';
6
+ import type { CarouselRecommendationCardContent } from './CarouselRecommendationCardContent';
9
7
 
10
8
  const icon: Picture = {
11
9
  src: 'product-basket.png',
@@ -17,42 +15,30 @@ const icon: Picture = {
17
15
  title: 'product-basket',
18
16
  };
19
17
 
20
- const commonProps: RecommendationSocialMedia = {
21
- target: '_blank',
22
- version: 'gray',
23
- rounded: false,
24
- };
25
-
26
- const socialMediaWithText: RecommendationSocialMedia[] = [
18
+ const socialMediaWithText: SocialMediaLink[] = [
27
19
  {
28
20
  href: 'https://t.me',
29
21
  text: 'Telegram',
30
- ...commonProps,
31
22
  },
32
23
  {
33
24
  href: 'https://vk.com',
34
25
  text: 'Telegram',
35
- ...commonProps,
36
26
  },
37
27
  {
38
28
  href: 'https://ok.ru',
39
29
  text: 'Telegram',
40
- ...commonProps,
41
30
  },
42
31
  ];
43
32
 
44
- const socialMediaWithoutText: RecommendationSocialMedia[] = [
33
+ const socialMediaWithoutText: SocialMediaLink[] = [
45
34
  {
46
35
  href: 'https://t.me',
47
- ...commonProps,
48
36
  },
49
37
  {
50
38
  href: 'https://vk.com',
51
- ...commonProps,
52
39
  },
53
40
  {
54
41
  href: 'https://ok.ru',
55
- ...commonProps,
56
42
  },
57
43
  ];
58
44
 
@@ -1,4 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import type { UniBlockProps } from '../../model/JSXBlock';
3
+ import type { Picture } from '../../model/Picture';
2
4
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
3
5
  import { Img } from '../../ui-kit/Img/Img';
4
6
  import { LinkWrapper } from '../../ui-kit/LinkWrapper/LinkWrapper';
@@ -7,8 +9,6 @@ import { style } from '../../utils/style';
7
9
  import { SocialMedia } from '../Footer/SocialMedia';
8
10
  import { Headline } from '../Headline/Headline';
9
11
  import type { CarouselRecommendationCardContent } from './CarouselRecommendationCardContent';
10
- import type { UniBlockProps } from '../../model/JSXBlock';
11
- import type { Picture } from '../../model/Picture';
12
12
 
13
13
  export interface RecommendationCardProps extends CarouselRecommendationCardContent, UniBlockProps {}
14
14
 
@@ -12,6 +12,7 @@ import type { CarouselRecommendationCardContent } from './CarouselRecommendation
12
12
 
13
13
  export interface RecommendationCardProps extends CarouselRecommendationCardContent, UniBlockProps {}
14
14
 
15
+ //TODO: replace SocialMedia with renderButtonSection
15
16
  export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
16
17
  ({
17
18
  className,
@@ -2,10 +2,8 @@ import type { AlignProps, HeadlineCommonProps } from '../../model/HeadlineType';
2
2
  import type { UniBlockContent } from '../../model/JSXBlock';
3
3
  import type { LinkCommonProps } from '../../model/LinkProps';
4
4
  import type { IconProps } from '../../model/Picture';
5
- import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
6
5
  import type { ListContent } from '../../ui-kit/List/ListContent';
7
-
8
- export type RecommendationSocialMedia = LinkCommonProps & IconProps & ButtonContent;
6
+ import type { SocialMediaLink } from '../Footer/FooterContent';
9
7
 
10
8
  /**
11
9
  * @title Карточка рекомендаций
@@ -17,5 +15,5 @@ export type CarouselRecommendationCardContent = UniBlockContent &
17
15
  LinkCommonProps &
18
16
  AlignProps & {
19
17
  /** @title Соц сети */
20
- socialMedia?: RecommendationSocialMedia[];
18
+ socialMedia?: SocialMediaLink[];
21
19
  };
@@ -6,6 +6,7 @@ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
6
6
  import { Logo } from '../../ui-kit/Logo/Logo';
7
7
  import { SearchBar } from '../../ui-kit/SearchBar/SearchBar';
8
8
  import { Sitemap } from '../../ui-kit/Sitemap/Sitemap';
9
+ import { style } from '../../utils/style';
9
10
  import { Contacts } from './Contacts';
10
11
  import type { FooterDataProps } from './FooterDataProps';
11
12
  import type { FooterProps } from './FooterProps';
@@ -16,8 +17,8 @@ import { TextInformation } from './TextInformation';
16
17
  const LEFT_COL_WIDTH = 'w-52';
17
18
 
18
19
  export const Footer = JSX<FooterProps>(({ className, ...rest }) => {
19
- const { topItems } = useSitemap(rest.options?.page?.fallback);
20
- const { documents, relatedEnterprises, contacts, socialMedia, mobileApps, logo } =
20
+ const { topItems, logo } = useSitemap(rest.options?.page?.fallback);
21
+ const { documents, relatedEnterprises, contacts, socialMedia, mobileApps } =
21
22
  useSWRResource<FooterDataProps>(projectSettings.FOOTER || 'footer', {
22
23
  fallback: rest.options?.page?.fallback,
23
24
  });
@@ -29,7 +30,7 @@ export const Footer = JSX<FooterProps>(({ className, ...rest }) => {
29
30
  <SearchBar className="grow" />
30
31
  </div>
31
32
  <div className="flex items-stretch gap-6xl">
32
- <div className={`${LEFT_COL_WIDTH} flex flex-col shrink-0 overflow-hidden space-y-xl`}>
33
+ <div className={style(LEFT_COL_WIDTH, 'flex flex-col shrink-0 overflow-hidden space-y-xl')}>
33
34
  <Contacts items={contacts} />
34
35
  <SocialMedia media={socialMedia}>Соцсети</SocialMedia>
35
36
  <SocialMedia media={mobileApps}>Мобильное приложение</SocialMedia>
@@ -1,7 +1,11 @@
1
1
  import type { DescriptionProps } from '../../model/HeadlineType';
2
2
  import type { UniBlockContent } from '../../model/JSXBlock';
3
3
  import type { LinkProps } from '../../model/LinkProps';
4
- import type { IconProps } from '../../model/Picture';
4
+ import type { IconProps, Picture } from '../../model/Picture';
5
+
6
+ export interface SocialMediaLink extends LinkProps {
7
+ icon?: Picture;
8
+ }
5
9
 
6
10
  /**
7
11
  * @title Тип контакта
@@ -1,18 +1,12 @@
1
- import type { LinkCommonProps, LinkProps } from '../../model/LinkProps';
2
- import type { Picture } from '../../model/Picture';
1
+ import type { LinkProps } from '../../model/LinkProps';
3
2
  import type { SitemapData } from '../../services/sitemap/SitemapData';
4
- import type { ContactGroup, SubMenuItem } from './FooterContent';
3
+ import type { ContactGroup, SocialMediaLink } from './FooterContent';
5
4
 
6
5
  export interface FooterDataProps extends SitemapData {
7
6
  documents?: LinkProps[];
8
7
  relatedEnterprises?: LinkProps[];
9
8
  contacts?: ContactGroup[];
10
- socialMedia?: LinkCommonProps[];
11
- mobileApps?: LinkCommonProps[];
9
+ socialMedia?: SocialMediaLink[];
10
+ mobileApps?: SocialMediaLink[];
12
11
  horizontalNavigationTitle?: string; // TODO: для мобильной версии
13
- subMenu?: SubMenuItem[]; // TODO: для мобильной версии
14
- logo?: {
15
- image?: Picture;
16
- title?: string;
17
- };
18
12
  }
@@ -1,55 +1,50 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { IconProps, Picture } from '../../model/Picture';
2
+ import type { Picture } from '../../model/Picture';
3
3
  import { Button } from '../../ui-kit/Button/Button';
4
- import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
4
+ import { ButtonContent } from '../../ui-kit/Button/ButtonContent';
5
5
  import { Img } from '../../ui-kit/Img/Img';
6
6
  import { style } from '../../utils/style';
7
- import { buttonStylesWithText } from './buttonStylesWithText';
7
+ import { buttonSizeStyle } from './buttonSizeStyle';
8
8
  import { findIconByHref } from './findIconByHref';
9
9
 
10
10
  export type ButtonSize = 'default' | 'stretched';
11
11
 
12
- interface MediaButtonProps extends ButtonProps, IconProps {
12
+ interface MediaButtonProps extends ButtonContent {
13
13
  buttonSize?: ButtonSize;
14
14
  }
15
15
 
16
- export const MediaButton = JSX<MediaButtonProps>(
17
- ({ buttonSize = 'default', rounded = false, icon, ...rest }) => {
18
- const { href, version, text = '' } = rest;
16
+ //TODO: Refactor this.
17
+ export const MediaButton = JSX<MediaButtonProps>(({ buttonSize = 'default', icon, ...rest }) => {
18
+ const { href } = rest;
19
19
 
20
- const { iconMapped, label } = findIconByHref(href);
20
+ const { iconMapped, label } = findIconByHref(href);
21
21
 
22
- const iconCustom = getFilteredIcon(icon) ?? iconMapped;
22
+ const iconCustom = getFilteredIcon(icon) ?? iconMapped;
23
23
 
24
- return (
25
- <Button
26
- className={style(
27
- rounded ? 'rounded-full' : 'rounded-md',
28
- 'border border-solid hover:border-transparent',
29
- 'group-data-primary:border-main-divider',
30
- 'hover:bg-primary-main hover:text-black',
31
- 'group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover',
32
- 'group-data-gray:border-green',
33
- buttonStylesWithText(text, buttonSize),
34
- )}
35
- aria-label={label}
36
- rel="noopener noreferrer"
37
- target="_blank"
38
- text={text}
39
- version={version}
40
- {...rest}
41
- >
42
- {iconCustom && !text ? (
43
- <Img
44
- image={iconCustom}
45
- imageClassName="group-hover/media:text-white"
46
- width="24"
47
- height="24"
48
- />
49
- ) : null}
50
- </Button>
51
- );
52
- },
53
- );
24
+ return (
25
+ <Button
26
+ className={style(
27
+ 'border border-solid hover:border-transparent',
28
+ 'group-data-primary:border-main-divider',
29
+ 'hover:bg-primary-main hover:text-black',
30
+ 'group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover',
31
+ 'group-data-gray:border-green',
32
+ 'py-m group/media flex items-center justify-center box-border',
33
+ buttonSizeStyle[buttonSize],
34
+ )}
35
+ aria-label={label}
36
+ rel="noopener noreferrer"
37
+ target="_blank"
38
+ {...rest}
39
+ >
40
+ <Img
41
+ image={iconCustom}
42
+ imageClassName="group-hover/media:text-white"
43
+ width="24"
44
+ height="24"
45
+ />
46
+ </Button>
47
+ );
48
+ });
54
49
 
55
50
  const getFilteredIcon = (icon: Picture | undefined) => (icon?.src || icon?.icon ? icon : undefined);
@@ -1,9 +1,9 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
3
3
  import { Text } from '../../ui-kit/Text/Text';
4
- import { MediaButton } from './MediaButton';
5
- import type { ButtonSize } from './MediaButton';
6
4
  import { style } from '../../utils/style';
5
+ import type { ButtonSize } from './MediaButton';
6
+ import { MediaButton } from './MediaButton';
7
7
 
8
8
  export interface SocialMediaProps {
9
9
  className?: string;
@@ -1,6 +1,6 @@
1
1
  import { ButtonSize } from './MediaButton';
2
2
 
3
- export const buttonSizeStyles: { [key in ButtonSize]: string } = {
3
+ export const buttonSizeStyle: { [key in ButtonSize]: string } = {
4
4
  default: 'w-14 h-14',
5
5
  stretched: 'flex-1 h-14',
6
6
  };
@@ -32,7 +32,6 @@ export const ProductBlock = JSX<ProductBlockProps>(
32
32
  handleClick,
33
33
  )
34
34
  : null}
35
-
36
35
  <BaseProductTile className="grow h-full" {...rest} />
37
36
  </BlockWrapper>
38
37
  );
@@ -6,6 +6,6 @@ import type { BaseProductTileContent } from '../../ui-kit/BaseProductTile/BasePr
6
6
  */
7
7
  export type ProductBlockContent = UniBlockContent &
8
8
  BaseProductTileContent & {
9
- /** @title Отображать кнопку возврата */
9
+ /** @title Отображать кнопку возврата (только для десктопной версии) */
10
10
  backwardButton?: boolean;
11
11
  };
@@ -9,7 +9,7 @@ export function renderBackwardButton(version: ButtonVersion, handleClick: () =>
9
9
  const text = 'Вернуться назад';
10
10
 
11
11
  return (
12
- <div className="flex items-center gap-s">
12
+ <div className="hidden sm:flex items-center gap-s">
13
13
  <div
14
14
  className={getRegularButtonClasses({ className, version, rounded: true })}
15
15
  onClick={handleClick}
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "title": "Заголовок",
3
+ "description": "Описание",
3
4
  "__html": "<p>Описание</p>",
5
+ "richVersion": "",
4
6
  "button": {
5
7
  "text": "Информация о регионе",
6
8
  "version": "link",
@@ -7,8 +7,8 @@ import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
7
7
  const BUTTON: ButtonContent = {
8
8
  text: 'Информация о регионе',
9
9
  target: '_blank',
10
- version: 'secondary',
11
- icon: { icon: 'ArrowTopRightIcon', iconVersion: 'color' },
10
+ version: 'link',
11
+ iconRight: { icon: 'ArrowTopRightIcon', iconVersion: 'color' },
12
12
  };
13
13
 
14
14
  const ICON: Picture = {
@@ -32,7 +32,7 @@ export default {
32
32
  default: (
33
33
  <div className="container grid grid-cols-12">
34
34
  <RepresentativeOfficeInfo
35
- className="col-span-12"
35
+ className="col-span-6"
36
36
  title="Представительство в Республике Беларусь"
37
37
  __html={DESCRIPTION}
38
38
  address="Республика Беларусь, 220004, г. Минск, ул. Немига, д. 40"
@@ -11,6 +11,7 @@ import { RichText } from '../../ui-kit/RichText/RichText';
11
11
  import { Text } from '../../ui-kit/Text/Text';
12
12
  import { style } from '../../utils/style';
13
13
  import type { RepresentativeOfficeInfoContent } from './RepresentativeOfficeInfoContent';
14
+ import type { TextColor } from '../../ui-kit/Text/TextProps';
14
15
 
15
16
  export interface RepresentativeOfficeInfoProps
16
17
  extends RepresentativeOfficeInfoContent,
@@ -36,13 +37,22 @@ export const RepresentativeOfficeInfo = JSX<RepresentativeOfficeInfoProps>(
36
37
  >
37
38
  <div className="w-full flex justify-between flex-row-reverse">
38
39
  {renderIconBlock(icon)}
39
- {title ? <Heading headingType="h4" as="h3" title={title} /> : null}
40
+ {title ? <Heading headingType="h3" as="h3" title={title} /> : null}
40
41
  </div>
41
42
  <div className="w-full space-y-m">
42
43
  {__html ? renderDescriptionBlock(__html) : null}
43
- {renderBlock('Адрес', address, 'GeolocationIcon')}
44
- {renderBlock('Телефон', telephone, 'PhoneIcon')}
45
- {renderBlock('E-mail', email, 'MailIcon')}
44
+ {renderBlock({
45
+ label: 'Адрес',
46
+ data: address,
47
+ iconName: 'GeolocationIcon',
48
+ })}
49
+ {renderBlock({ label: 'Телефон(факс)', data: telephone, iconName: 'PhoneIcon' })}
50
+ {renderBlock({
51
+ label: 'E-mail',
52
+ data: email,
53
+ iconName: 'MailIcon',
54
+ dataColor: 'text-primary-main',
55
+ })}
46
56
  {button?.text ? renderButtonsSection([button]) : null}
47
57
  </div>
48
58
  </BlockWrapper>
@@ -56,23 +66,29 @@ const renderIconBlock = (icon?: Picture) => (
56
66
  );
57
67
 
58
68
  const renderDescriptionBlock = (__html?: string) => (
59
- <div className="border-b border-main-divider">
69
+ <div className="border-b border-main-divider pb-lg">
60
70
  <RichText __html={__html} />
61
71
  </div>
62
72
  );
63
73
 
64
- const renderBlock = (blockName: string, data?: string, iconName?: IconName | undefined) => (
65
- <div className="flex gap-m">
66
- <Icon iconVersion="black" name={iconName} width="24" height="24" />
67
- <div className="flex flex-col">
68
- <Text size="text-m" font="font-light">
69
- {blockName}
70
- </Text>
71
- {data ? (
72
- <Text size="text-h6" color="text-green">
74
+ interface renderBlockProps {
75
+ label?: string;
76
+ data?: string;
77
+ iconName?: IconName | undefined;
78
+ dataColor?: TextColor;
79
+ }
80
+
81
+ const renderBlock = ({ label, data, iconName, dataColor = '' }: renderBlockProps) =>
82
+ data ? (
83
+ <div className="flex gap-s">
84
+ <Icon iconVersion="black" name={iconName} width="24" height="24" />
85
+ <div className="flex flex-col gap-2xs">
86
+ <Text size="text-m" font="font-light" color="text-secondary-text">
87
+ {label}
88
+ </Text>
89
+ <Text size="text-xl" color={dataColor}>
73
90
  {data}
74
91
  </Text>
75
- ) : null}
92
+ </div>
76
93
  </div>
77
- </div>
78
- );
94
+ ) : null;
@@ -128,10 +128,11 @@ const renderIconArea = (size: SizeVersion, version: BlockVersion) => (step: Step
128
128
  'z-10 mr-s flex justify-center content-center',
129
129
  )}
130
130
  >
131
- <span className="flex self-center text-h4 text-secondary-text group-data-secondary:text-white">
131
+ <span className="flex max-w-full max-h-full self-center text-h4 text-secondary-text group-data-secondary:text-white">
132
132
  {checkCanRenderIcon(step?.icon) ? (
133
133
  <Img
134
134
  image={{ ...step.icon, iconVersion: step.icon?.iconVersion || iconVersion }}
135
+ imageClassName="max-w-full max-h-full"
135
136
  width={iconSize}
136
137
  height={iconSize}
137
138
  />
@@ -0,0 +1,48 @@
1
+ import '../../setup-fixture';
2
+
3
+ import type { Picture } from '../../model/Picture';
4
+ import { Tile } from './Tile';
5
+ import type { TileContent } from './TileContent';
6
+
7
+ const image: Picture = {
8
+ src: 'from-5-5-percent.svg',
9
+ format: 'webp',
10
+ size: {
11
+ width: 145,
12
+ },
13
+ };
14
+
15
+ export const TILE: TileContent = {
16
+ title: 'Кредиты',
17
+ isDotted: true,
18
+ listItemSize: 'L',
19
+ items: ['До 3 млн ₽', 'до 5 лет'],
20
+ __html: undefined,
21
+ buttons: [
22
+ {
23
+ text: 'Подробнее',
24
+ href: '/credit-cards',
25
+ version: 'secondary',
26
+ },
27
+ ],
28
+ image,
29
+ };
30
+
31
+ export default {
32
+ default: (
33
+ <div className="container grid grid-cols-12">
34
+ <Tile className="col-span-12" {...TILE} />
35
+ </div>
36
+ ),
37
+ rightImage: (
38
+ <div className="container grid grid-cols-12">
39
+ <Tile
40
+ className="col-span-12"
41
+ {...TILE}
42
+ imageOptions={{
43
+ isImageAlwaysOnRight: true,
44
+ }}
45
+ />
46
+ </div>
47
+ ),
48
+ };
@@ -29,7 +29,6 @@ export const IconsWithoutInversion = new Set([
29
29
  'HuaweiIcon',
30
30
  'InterestGrowthIcon',
31
31
  'JCBIcon',
32
- 'MailIcon',
33
32
  'MapMarkerClusterIcon',
34
33
  'MapMarkerSingleIcon',
35
34
  'MapOpenedIcon',
@@ -41,7 +40,6 @@ export const IconsWithoutInversion = new Set([
41
40
  'PackA4Icon',
42
41
  'PassSendIcon',
43
42
  'PercentIcon',
44
- 'PhoneIcon',
45
43
  'PowerIcon',
46
44
  'PumpkinIcon',
47
45
  'ResponseFailIcon',
@@ -1 +1,4 @@
1
- <svg title="E-mail" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path stroke="#7D7E7F" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2" d="M22 12.98v2.52c0 3.5-2 5-5 5H7c-3 0-5-1.5-5-5v-7c0-3.5 2-5 5-5h10c3 0 5 1.5 5 5"/><path stroke="#7D7E7F" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2" d="m17 9-3.13 2.5c-1.03.82-2.72.82-3.75 0L7 9"/></svg>
1
+ <svg title="E-mail" isInverse="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none">
2
+ <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2" d="M22 12.98v2.52c0 3.5-2 5-5 5H7c-3 0-5-1.5-5-5v-7c0-3.5 2-5 5-5h10c3 0 5 1.5 5 5"/>
3
+ <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2" d="m17 9-3.13 2.5c-1.03.82-2.72.82-3.75 0L7 9"/>
4
+ </svg>