@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
@@ -1,5 +1,4 @@
1
1
  {
2
- "visibleItemCount": 1,
3
2
  "isBlur": false,
4
3
  "arrowsPadded": true,
5
4
  "isCycle": false,
@@ -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;
@@ -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
 
@@ -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
  };
@@ -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",
@@ -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
  />
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable max-len, max-lines */
4
4
 
5
5
  export const IconsWithoutInversion = new Set([
6
- 'ActualBalanceIcon', 'AirPlaneIcon', 'BagIcon', 'BelarusianFlag', 'BriefcaseIcon', 'CardWithGemIcon', 'CarIcon', 'ChartIcon', 'ChevronLeftIcon', 'CinemaIcon', 'ClientIcon', 'ClockIcon', 'ComfortableCompIcon', 'CreditCardsIcon', 'DocsIcon', 'DollarIcon', 'DoneIcon', 'EarthIcon', 'EuroIcon', 'FullScreenIcon', 'GlassIcon', 'HeadphonesIcon', 'HeartIcon', 'HouseIcon', 'HuaweiIcon', 'InterestGrowthIcon', 'JCBIcon', 'MailIcon', 'MapMarkerClusterIcon', 'MapMarkerSingleIcon', 'MapOpenedIcon', 'MasterCardIcon', 'MirIcon', 'MoneyInsuranceIcon', 'NewDocIcon', 'OfficeIcon', 'PackA4Icon', 'PassSendIcon', 'PercentIcon', 'PhoneIcon', 'PowerIcon', 'PumpkinIcon', 'ResponseFailIcon', 'ResponseOKIcon', 'SignDocsIcon', 'SoundIcon', 'UnionPayIcon', 'UserGeoLocationIcon', 'VisaIcon', 'WateringCanIcon'
6
+ 'ActualBalanceIcon', 'AirPlaneIcon', 'BagIcon', 'BelarusianFlag', 'BriefcaseIcon', 'CardWithGemIcon', 'CarIcon', 'ChartIcon', 'ChevronLeftIcon', 'CinemaIcon', 'ClientIcon', 'ClockIcon', 'ComfortableCompIcon', 'CreditCardsIcon', 'DocsIcon', 'DollarIcon', 'DoneIcon', 'EarthIcon', 'EuroIcon', 'FullScreenIcon', 'GlassIcon', 'HeadphonesIcon', 'HeartIcon', 'HouseIcon', 'HuaweiIcon', 'InterestGrowthIcon', 'JCBIcon', 'MapMarkerClusterIcon', 'MapMarkerSingleIcon', 'MapOpenedIcon', 'MasterCardIcon', 'MirIcon', 'MoneyInsuranceIcon', 'NewDocIcon', 'OfficeIcon', 'PackA4Icon', 'PassSendIcon', 'PercentIcon', 'PowerIcon', 'PumpkinIcon', 'ResponseFailIcon', 'ResponseOKIcon', 'SignDocsIcon', 'SoundIcon', 'UnionPayIcon', 'UserGeoLocationIcon', 'VisaIcon', 'WateringCanIcon'
7
7
  ]);
8
8
 
9
9
  export enum IconMap {
@@ -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>
@@ -1 +1,3 @@
1
- <svg title="Телефон" 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="M9.39 6.01c.18.25.31.48.4.7.09.21.14.42.14.61 0 .24-.07.48-.21.71-.13.23-.32.47-.56.71l-.76.79c-.11.11-.16.24-.16.4 0 .08.01.15.03.23.03.08.06.14.08.2.18.33.49.76.93 1.28.45.52.93 1.05 1.45 1.58.54.53 1.06 1.02 1.59 1.47.52.44.95.74 1.29.92.05.02.11.05.18.08.08.03.16.04.25.04.17 0 .3-.06.41-.17l.76-.75c.25-.25.49-.44.72-.56.23-.14.46-.21.71-.21.19 0 .39.04.61.13.22.09.45.22.7.39l3.31 2.35c.26.18.44.39.55.64.1.25.16.5.16.78 0 .36-.08.73-.25 1.09-.17.36-.39.7-.68 1.02-.49.54-1.03.93-1.64 1.18-.6.25-1.25.38-1.95.38-1.02 0-2.11-.24-3.26-.73s-2.3-1.15-3.44-1.98a28.75 28.75 0 0 1-3.28-2.8 28.414 28.414 0 0 1-2.79-3.27c-.82-1.14-1.48-2.28-1.96-3.41C2.24 8.67 2 7.58 2 6.54c0-.68.12-1.33.36-1.93.24-.61.62-1.17 1.15-1.67C4.15 2.31 4.85 2 5.59 2c.28 0 .56.06.81.18.26.12.49.3.67.56"/></svg>
1
+ <svg title="Телефон" 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="M9.39 6.01c.18.25.31.48.4.7.09.21.14.42.14.61 0 .24-.07.48-.21.71-.13.23-.32.47-.56.71l-.76.79c-.11.11-.16.24-.16.4 0 .08.01.15.03.23.03.08.06.14.08.2.18.33.49.76.93 1.28.45.52.93 1.05 1.45 1.58.54.53 1.06 1.02 1.59 1.47.52.44.95.74 1.29.92.05.02.11.05.18.08.08.03.16.04.25.04.17 0 .3-.06.41-.17l.76-.75c.25-.25.49-.44.72-.56.23-.14.46-.21.71-.21.19 0 .39.04.61.13.22.09.45.22.7.39l3.31 2.35c.26.18.44.39.55.64.1.25.16.5.16.78 0 .36-.08.73-.25 1.09-.17.36-.39.7-.68 1.02-.49.54-1.03.93-1.64 1.18-.6.25-1.25.38-1.95.38-1.02 0-2.11-.24-3.26-.73s-2.3-1.15-3.44-1.98a28.75 28.75 0 0 1-3.28-2.8 28.414 28.414 0 0 1-2.79-3.27c-.82-1.14-1.48-2.28-1.96-3.41C2.24 8.67 2 7.58 2 6.54c0-.68.12-1.33.36-1.93.24-.61.62-1.17 1.15-1.67C4.15 2.31 4.85 2 5.59 2c.28 0 .56.06.81.18.26.12.49.3.67.56"/>
3
+ </svg>
@@ -1 +1 @@
1
- <svg title="Лого «Rutube»" isInverse="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20"><g fill="#1C1C1C" clip-path="url(#clip0_21939_18954)"><path d="M18.165 4.692a1.835 1.835 0 1 0 0-3.67 1.835 1.835 0 0 0 0 3.67ZM12.711 4.489H-.187v14.338h3.59v-4.665h6.88l3.138 4.665h4.02l-3.462-4.686c1.075-.172 1.85-.58 2.322-1.226.473-.644.71-1.676.71-3.052V8.788c0-.817-.087-1.462-.237-1.956A3.268 3.268 0 0 0 16 5.521a3.5 3.5 0 0 0-1.333-.796c-.516-.15-1.16-.236-1.956-.236Zm-.58 6.513H3.403V7.65h8.728c.494 0 .838.086 1.01.236.172.15.28.43.28.839v1.204c0 .43-.108.709-.28.86-.172.15-.516.214-1.01.214Z"/></g><defs><clipPath id="clip0_21939_18954"><path fill="#fff" d="M0 0h20v20H0z"/></clipPath></defs></svg>
1
+ <svg title="Лого «Rutube»" isInverse="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20"><g fill="currentColor" clip-path="url(#clip0_21939_18954)"><path d="M18.165 4.692a1.835 1.835 0 1 0 0-3.67 1.835 1.835 0 0 0 0 3.67ZM12.711 4.489H-.187v14.338h3.59v-4.665h6.88l3.138 4.665h4.02l-3.462-4.686c1.075-.172 1.85-.58 2.322-1.226.473-.644.71-1.676.71-3.052V8.788c0-.817-.087-1.462-.237-1.956A3.268 3.268 0 0 0 16 5.521a3.5 3.5 0 0 0-1.333-.796c-.516-.15-1.16-.236-1.956-.236Zm-.58 6.513H3.403V7.65h8.728c.494 0 .838.086 1.01.236.172.15.28.43.28.839v1.204c0 .43-.108.709-.28.86-.172.15-.516.214-1.01.214Z"/></g><defs><clipPath id="clip0_21939_18954"><path fill="#fff" d="M0 0h20v20H0z"/></clipPath></defs></svg>
@@ -1,19 +1,18 @@
1
- import { useEffect, useMemo, useState } from '@redneckz/uni-jsx/lib/hooks';
1
+ import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
2
2
  import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
3
+ import type { Nullable } from '../../utils/Nullable';
3
4
  import { fetchJSON } from '../../utils/fetchJSON';
4
5
  import { joinPath } from '../../utils/url';
5
6
  import { useDebouncedEffect } from '../../utils/useDebouncedEffect';
6
- import { CorpusItem, search, SearchIndex } from './search';
7
+ import { CorpusItem, SearchIndex, search } from './search';
7
8
 
8
9
  const SEARCH_INDEX_FILENAME = 'search.index.json';
9
- const DEFAULT_BASE_PATH = ['/'];
10
10
 
11
11
  export type SearchResult = Array<CorpusItem[]>; // List of pages (CorpusItem) per base path from "basePathList"
12
12
 
13
13
  interface SearchParams {
14
- basePathList?: string[];
14
+ basePathList: Nullable<string[]>;
15
15
  initialQuery?: string;
16
- wasOpened?: boolean;
17
16
  }
18
17
 
19
18
  export interface SearchInputProps {
@@ -22,9 +21,8 @@ export interface SearchInputProps {
22
21
  }
23
22
 
24
23
  export const useSearch = ({
25
- basePathList = DEFAULT_BASE_PATH,
24
+ basePathList,
26
25
  initialQuery = '',
27
- wasOpened,
28
26
  }: SearchParams): [SearchResult | null, SearchInputProps] => {
29
27
  const [query, setQuery] = useState(initialQuery || '');
30
28
 
@@ -34,12 +32,7 @@ export const useSearch = ({
34
32
  }
35
33
  }, [initialQuery]);
36
34
 
37
- const key = useMemo(
38
- () => basePathList.map((_) => (wasOpened ? _ : null)), // Load search index on very first search
39
- [wasOpened, basePathList],
40
- );
41
-
42
- const { data } = useAsyncData(key, fetchSearchIndex);
35
+ const { data } = useAsyncData(basePathList?.length ? basePathList : null, fetchSearchIndex);
43
36
 
44
37
  const [result, setResult] = useState<SearchResult | null>(null);
45
38
 
@@ -33,7 +33,12 @@ export const BaseProductTile = JSX<BaseProductTileProps>(
33
33
  tags = [],
34
34
  buttons,
35
35
  image,
36
- imageOptions: { imageAlign = 'end', directionRight = true, isBackground } = {},
36
+ imageOptions: {
37
+ imageAlign = 'end',
38
+ directionRight = true,
39
+ isBackground,
40
+ isImageAlwaysOnRight,
41
+ } = {},
37
42
  children,
38
43
  }) => {
39
44
  const img = image?.src ? <Img image={image} /> : null;
@@ -58,6 +63,7 @@ export const BaseProductTile = JSX<BaseProductTileProps>(
58
63
  {...(isFullWidthTitle ? { insetTitle: headline } : { title: headline })}
59
64
  {...(isBackground ? { backImage: img } : leftOrRightImage(img, directionRight))}
60
65
  imageAlign={imageAlign}
66
+ isImageAlwaysOnRight={isImageAlwaysOnRight}
61
67
  buttons={renderButtonsSection(buttons)}
62
68
  >
63
69
  <div className="flex flex-col gap-xl">
@@ -16,6 +16,8 @@ export interface TileImageOptions {
16
16
  imageAlign?: Align;
17
17
  /** @title Фоновое изображение */
18
18
  isBackground?: boolean;
19
+ /** @title Изображение всегда справа */
20
+ isImageAlwaysOnRight?: boolean;
19
21
  }
20
22
 
21
23
  export type BaseProductTileContent = HeadlineProps &
@@ -12,6 +12,7 @@ interface BaseTileProps extends UniBlockProps {
12
12
  imageAlign?: Align;
13
13
  backImage?: VNode;
14
14
  buttons?: VNode;
15
+ isImageAlwaysOnRight?: boolean;
15
16
  }
16
17
 
17
18
  const imageAlignmentMap: Record<Align, string> = {
@@ -32,6 +33,7 @@ export const BaseTile = JSX<BaseTileProps>(
32
33
  rightImage,
33
34
  imageAlign,
34
35
  backImage,
36
+ isImageAlwaysOnRight = false,
35
37
  children,
36
38
  }) => (
37
39
  <div
@@ -42,7 +44,12 @@ export const BaseTile = JSX<BaseTileProps>(
42
44
  )}
43
45
  >
44
46
  {title ? <div className="relative">{title}</div> : null}
45
- <div className="grow relative flex flex-col @lg:flex-row justify-around @lg:justify-between items-stretch gap-3xl">
47
+ <div
48
+ className={style(
49
+ 'grow relative flex justify-around @lg:justify-between items-stretch gap-3xl',
50
+ isImageAlwaysOnRight ? 'flex-row' : 'flex-col @lg:flex-row',
51
+ )}
52
+ >
46
53
  {renderImageContainer(leftImage, { imageAlign })}
47
54
  <div
48
55
  className={style(
@@ -60,7 +67,7 @@ export const BaseTile = JSX<BaseTileProps>(
60
67
  {buttons}
61
68
  </div>
62
69
  {renderImageContainer(rightImage, {
63
- className: '-order-1 @xl:order-1',
70
+ className: isImageAlwaysOnRight ? '' : '-order-1 @xl:order-1',
64
71
  imageAlign,
65
72
  })}
66
73
  </div>
@@ -6,7 +6,7 @@ export const buttonStyleMap: Record<ButtonVersion, string> = {
6
6
  'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
7
7
  white:
8
8
  'text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main',
9
- link: '',
9
+ link: 'text-primary-main',
10
10
  transparent: '',
11
11
  gray: 'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
12
12
  '': '',
@@ -30,7 +30,7 @@ export const iconStyleMap: Record<ButtonVersion, string> = {
30
30
  primary: 'group-hover/btn:brightness-0 group-hover/btn:invert',
31
31
  secondary: 'group-hover/btn:brightness-0 group-hover/btn:invert',
32
32
  white: 'group-hover/btn:brightness-0 group-hover/btn:invert',
33
- link: '',
33
+ link: 'text-primary-main',
34
34
  transparent: '',
35
35
  gray: 'group-hover/btn:brightness-0 group-hover/btn:invert',
36
36
  '': '',
@@ -30,15 +30,15 @@ const renderButton =
30
30
  (buttonClassName = '') =>
31
31
  (button?: ButtonContent, index?: number) => {
32
32
  const { text, icon, iconRight, version, ...rest } = button || {};
33
- const iconVersionDefault = version === 'secondary' ? 'color' : 'white';
34
- const iconVersion = icon?.iconVersion ? icon?.iconVersion : iconVersionDefault;
33
+ const iconVersion = getIconVersion(icon, version);
34
+ const iconRightVersion = getIconVersion(iconRight, version);
35
35
 
36
36
  return text || icon?.icon ? (
37
37
  <Button
38
38
  key={index ? String(index) : ''}
39
39
  className={style('basis-full sm:basis-auto', buttonClassName)}
40
40
  appendLeft={renderButtonIcon({ ...icon, iconVersion })}
41
- appendRight={renderButtonIcon({ ...iconRight, iconVersion })}
41
+ appendRight={renderButtonIcon({ ...iconRight, iconVersion: iconRightVersion })}
42
42
  version={version}
43
43
  text={text}
44
44
  {...rest}
@@ -48,11 +48,20 @@ const renderButton =
48
48
 
49
49
  const DEFAULT_ICON_W = 24;
50
50
 
51
- const renderButtonIcon = (icon: Picture) =>
52
- icon?.icon || icon?.src ? (
51
+ const getIconVersion = (icon: Picture | undefined, version = 'secondary') => {
52
+ const iconVersionDefault = version === 'secondary' ? 'color' : 'white';
53
+
54
+ return icon?.iconVersion ? icon?.iconVersion : iconVersionDefault;
55
+ };
56
+
57
+ const renderButtonIcon = (icon: Picture) => {
58
+ console.log(icon);
59
+
60
+ return icon?.icon || icon?.src ? (
53
61
  <Img
54
62
  image={icon}
55
63
  width={String(icon?.size?.width || DEFAULT_ICON_W)}
56
64
  height={String(DEFAULT_ICON_W)}
57
65
  />
58
66
  ) : null;
67
+ };
@@ -43,7 +43,7 @@ export const Logo = JSX<Partial<LogoProps>>(
43
43
  ? children ?? (
44
44
  <div className="ml-s">
45
45
  <Text font="font-medium" color={TEXT_COLOR[bgColor]} size={logoTitleSizeStyle}>
46
- {logo?.title}
46
+ {logo?.title || 'Россельхозбанк'}
47
47
  </Text>
48
48
  </div>
49
49
  )
@@ -1,11 +1,12 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { style } from '../../utils/style';
3
3
  import type { RichTextProps } from './RichTextProps';
4
+ import { getHtmlText } from './getHtmlText';
4
5
 
5
6
  export const RichText = JSX<RichTextProps>((props) => {
6
7
  const { __html = '', richVersion = '' } = props;
7
8
 
8
- return (
9
+ return getHtmlText(__html) ? (
9
10
  <div className={style(richVersion, 'md-container')} dangerouslySetInnerHTML={{ __html }} />
10
- );
11
+ ) : null;
11
12
  });
@@ -0,0 +1 @@
1
+ export const getHtmlText = (html: string) => html.replace(/<\/?[^>]+\/?>/g, '').trim();
@@ -21,7 +21,6 @@ export const SearchDialog = JSX<SearchDialogProps>(({ initialQuery }) => {
21
21
  const [searchResult, searchInputProps] = useSearch({
22
22
  basePathList,
23
23
  initialQuery,
24
- wasOpened: false,
25
24
  });
26
25
 
27
26
  const searchItems = useMemo(
@@ -0,0 +1 @@
1
+ export type Nullable<T> = T | null | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.13.22",
3
+ "version": "0.13.24",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -61,7 +61,7 @@ const renderFoldButton =
61
61
  return (
62
62
  <button
63
63
  onClick={onToggle}
64
- className="w-full p-xl bg-green flex items-center border-b border-white"
64
+ className="w-full p-xl bg-primary-main flex items-center border-b border-white"
65
65
  >
66
66
  <div className="w-11 h-11 bg-white rounded-md flex justify-center items-center">
67
67
  <Icon name={tab.nav?.icon?.icon} iconVersion="color" width="24" height="24" />