@redneckz/wildless-cms-uni-blocks 0.10.2 → 0.10.4

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 (611) hide show
  1. package/bin/migration-scripts/0.10.2.js +1 -1
  2. package/bin/migration-scripts/0.10.3.js +19 -0
  3. package/bundle/bundle.umd.js +164 -138
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/Calculator/constants.d.ts +2 -2
  6. package/bundle/components/Calculator/rangeHelpers.d.ts +3 -0
  7. package/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +1 -1
  8. package/bundle/components/Calculator/useCreditCalculatorParams.d.ts +10 -3
  9. package/bundle/components/Calculator/useDepositCalculatorParams.d.ts +1 -1
  10. package/bundle/components/Header/HeaderSecondaryMenuButton.d.ts +2 -0
  11. package/bundle/components/Header/HeaderSubMenu.d.ts +3 -0
  12. package/bundle/components/Header/InternetBankButton.d.ts +7 -0
  13. package/bundle/services/sitemap/SitemapData.d.ts +1 -0
  14. package/bundle/ui-kit/Button/ButtonProps.d.ts +0 -2
  15. package/bundle/ui-kit/Icon/IconProps.d.ts +0 -2
  16. package/bundle/ui-kit/YandexMap/renderSearchField.d.ts +1 -1
  17. package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  18. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  19. package/dist/components/BusinessBlock/BusinessCard.js +2 -2
  20. package/dist/components/BusinessBlock/BusinessCard.js.map +1 -1
  21. package/dist/components/Calculator/Calculator.js +1 -1
  22. package/dist/components/Calculator/Calculator.js.map +1 -1
  23. package/dist/components/Calculator/CreditCalculatorForm.js +5 -0
  24. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  25. package/dist/components/Calculator/UnknownRate.js +2 -2
  26. package/dist/components/Calculator/UnknownRate.js.map +1 -1
  27. package/dist/components/Calculator/constants.d.ts +2 -2
  28. package/dist/components/Calculator/constants.js.map +1 -1
  29. package/dist/components/Calculator/rangeHelpers.d.ts +3 -0
  30. package/dist/components/Calculator/rangeHelpers.js +10 -3
  31. package/dist/components/Calculator/rangeHelpers.js.map +1 -1
  32. package/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +1 -1
  33. package/dist/components/Calculator/useBusinessDepositCalculatorParams.js +2 -2
  34. package/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  35. package/dist/components/Calculator/useCreditCalculatorParams.d.ts +10 -3
  36. package/dist/components/Calculator/useCreditCalculatorParams.js +39 -33
  37. package/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  38. package/dist/components/Calculator/useDepositCalculatorParams.d.ts +1 -1
  39. package/dist/components/Calculator/useDepositCalculatorParams.js +4 -4
  40. package/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  41. package/dist/components/CarouselEventCard/CarouselEventCard.js +1 -1
  42. package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  43. package/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
  44. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  45. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
  46. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  47. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  48. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  49. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +3 -3
  50. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  51. package/dist/components/ComparisonTable/HeaderCell.js +1 -1
  52. package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
  53. package/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
  54. package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  55. package/dist/components/Footer/Footer.mobile.js +1 -1
  56. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  57. package/dist/components/Footer/MediaButton.js +1 -1
  58. package/dist/components/Footer/MediaButton.js.map +1 -1
  59. package/dist/components/Header/DropdownMenu.js +2 -2
  60. package/dist/components/Header/DropdownMenu.js.map +1 -1
  61. package/dist/components/Header/Header.js +2 -2
  62. package/dist/components/Header/Header.js.map +1 -1
  63. package/dist/components/Header/HeaderBurger.js +2 -2
  64. package/dist/components/Header/HeaderBurger.js.map +1 -1
  65. package/dist/components/Header/HeaderChatBotButton.js +1 -1
  66. package/dist/components/Header/HeaderChatBotButton.js.map +1 -1
  67. package/dist/components/Header/HeaderSecondaryMenu.js +1 -3
  68. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  69. package/dist/components/Header/HeaderSecondaryMenuButton.d.ts +2 -0
  70. package/dist/components/Header/HeaderSecondaryMenuButton.js +6 -2
  71. package/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
  72. package/dist/components/Header/HeaderSubMenu.d.ts +3 -0
  73. package/dist/components/Header/HeaderSubMenu.js +6 -2
  74. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  75. package/dist/components/Header/HeaderSubMenuItem.js +2 -2
  76. package/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
  77. package/dist/components/Header/HeaderTop.js +1 -1
  78. package/dist/components/Header/HeaderTop.js.map +1 -1
  79. package/dist/components/Header/InternetBankButton.d.ts +7 -0
  80. package/dist/components/Header/InternetBankButton.js +12 -0
  81. package/dist/components/Header/InternetBankButton.js.map +1 -0
  82. package/dist/components/HorizontalLayout/HorizontalLayout.js +1 -1
  83. package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  84. package/dist/components/LinkDocs/LinkDocs.js +1 -1
  85. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  86. package/dist/components/LinkDocs/LinkDocs.mobile.js +1 -1
  87. package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
  88. package/dist/components/OfficeMap/OfficeMap.js +1 -1
  89. package/dist/components/OfficeMap/OfficeMap.js.map +1 -1
  90. package/dist/components/OfficeMap/renderFunctions.js +1 -1
  91. package/dist/components/OfficeMap/renderFunctions.js.map +1 -1
  92. package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -1
  93. package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  94. package/dist/components/ProductBlock/renderBackwardButton.js +1 -1
  95. package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  96. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
  97. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  98. package/dist/components/RollupItem/RollupItem.js +2 -2
  99. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  100. package/dist/components/RollupItem/RollupItem.mobile.js +1 -1
  101. package/dist/components/RollupItem/RollupItem.mobile.js.map +1 -1
  102. package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
  103. package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  104. package/dist/components/StepsBlock/StepsBlock.js +1 -1
  105. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  106. package/dist/components/StepsBlock/StepsBlock.mobile.js +1 -1
  107. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  108. package/dist/components/TariffsTable/TariffsTableRow.js +1 -1
  109. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  110. package/dist/components/VerticalLayout/VerticalLayout.js +1 -1
  111. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  112. package/dist/services/sitemap/SitemapData.d.ts +1 -0
  113. package/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
  114. package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  115. package/dist/ui-kit/Button/ArrowButton.js +1 -1
  116. package/dist/ui-kit/Button/ArrowButton.js.map +1 -1
  117. package/dist/ui-kit/Button/ButtonProps.d.ts +0 -2
  118. package/dist/ui-kit/Button/renderButtonsSection.js +1 -1
  119. package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  120. package/dist/ui-kit/Foldable/DefaultFoldButton.js +1 -1
  121. package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  122. package/dist/ui-kit/Icon/Icon.js +2 -2
  123. package/dist/ui-kit/Icon/Icon.js.map +1 -1
  124. package/dist/ui-kit/Icon/IconProps.d.ts +0 -2
  125. package/dist/ui-kit/InnerTable/InnerTableButton.js +1 -1
  126. package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  127. package/dist/ui-kit/InnerTable/InnerTableHeader.js +1 -1
  128. package/dist/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
  129. package/dist/ui-kit/LinkButton/LinkButton.js +2 -2
  130. package/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
  131. package/dist/ui-kit/Logo/renderImage.js +2 -2
  132. package/dist/ui-kit/Logo/renderImage.js.map +1 -1
  133. package/dist/ui-kit/Sitemap/Sitemap.js +1 -1
  134. package/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
  135. package/dist/ui-kit/YandexMap/renderSearchField.d.ts +1 -1
  136. package/dist/ui-kit/YandexMap/renderSearchField.js +1 -1
  137. package/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  138. package/lib/common.css +1 -1
  139. package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  140. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  141. package/lib/components/BusinessBlock/BusinessCard.js +2 -2
  142. package/lib/components/BusinessBlock/BusinessCard.js.map +1 -1
  143. package/lib/components/Calculator/Calculator.js +1 -1
  144. package/lib/components/Calculator/Calculator.js.map +1 -1
  145. package/lib/components/Calculator/CreditCalculatorForm.js +6 -1
  146. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  147. package/lib/components/Calculator/UnknownRate.js +2 -2
  148. package/lib/components/Calculator/UnknownRate.js.map +1 -1
  149. package/lib/components/Calculator/constants.d.ts +2 -2
  150. package/lib/components/Calculator/constants.js.map +1 -1
  151. package/lib/components/Calculator/rangeHelpers.d.ts +3 -0
  152. package/lib/components/Calculator/rangeHelpers.js +8 -2
  153. package/lib/components/Calculator/rangeHelpers.js.map +1 -1
  154. package/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +1 -1
  155. package/lib/components/Calculator/useBusinessDepositCalculatorParams.js +2 -2
  156. package/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  157. package/lib/components/Calculator/useCreditCalculatorParams.d.ts +10 -3
  158. package/lib/components/Calculator/useCreditCalculatorParams.js +40 -34
  159. package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  160. package/lib/components/Calculator/useDepositCalculatorParams.d.ts +1 -1
  161. package/lib/components/Calculator/useDepositCalculatorParams.js +4 -4
  162. package/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  163. package/lib/components/CarouselEventCard/CarouselEventCard.js +1 -1
  164. package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  165. package/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
  166. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  167. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
  168. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  169. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  170. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  171. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +3 -3
  172. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  173. package/lib/components/ComparisonTable/HeaderCell.js +1 -1
  174. package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
  175. package/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  176. package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  177. package/lib/components/Footer/Footer.mobile.js +1 -1
  178. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  179. package/lib/components/Footer/MediaButton.js +1 -1
  180. package/lib/components/Footer/MediaButton.js.map +1 -1
  181. package/lib/components/Header/DropdownMenu.js +2 -2
  182. package/lib/components/Header/DropdownMenu.js.map +1 -1
  183. package/lib/components/Header/Header.js +2 -2
  184. package/lib/components/Header/Header.js.map +1 -1
  185. package/lib/components/Header/HeaderBurger.js +2 -2
  186. package/lib/components/Header/HeaderBurger.js.map +1 -1
  187. package/lib/components/Header/HeaderChatBotButton.js +1 -1
  188. package/lib/components/Header/HeaderChatBotButton.js.map +1 -1
  189. package/lib/components/Header/HeaderSecondaryMenu.js +1 -3
  190. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  191. package/lib/components/Header/HeaderSecondaryMenuButton.d.ts +2 -0
  192. package/lib/components/Header/HeaderSecondaryMenuButton.js +6 -2
  193. package/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
  194. package/lib/components/Header/HeaderSubMenu.d.ts +3 -0
  195. package/lib/components/Header/HeaderSubMenu.js +6 -2
  196. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  197. package/lib/components/Header/HeaderSubMenuItem.js +2 -2
  198. package/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
  199. package/lib/components/Header/HeaderTop.js +1 -1
  200. package/lib/components/Header/HeaderTop.js.map +1 -1
  201. package/lib/components/Header/InternetBankButton.d.ts +7 -0
  202. package/lib/components/Header/InternetBankButton.js +10 -0
  203. package/lib/components/Header/InternetBankButton.js.map +1 -0
  204. package/lib/components/HorizontalLayout/HorizontalLayout.js +1 -1
  205. package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  206. package/lib/components/LinkDocs/LinkDocs.js +1 -1
  207. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  208. package/lib/components/LinkDocs/LinkDocs.mobile.js +1 -1
  209. package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
  210. package/lib/components/OfficeMap/OfficeMap.js +1 -1
  211. package/lib/components/OfficeMap/OfficeMap.js.map +1 -1
  212. package/lib/components/OfficeMap/renderFunctions.js +1 -1
  213. package/lib/components/OfficeMap/renderFunctions.js.map +1 -1
  214. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -1
  215. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  216. package/lib/components/ProductBlock/renderBackwardButton.js +1 -1
  217. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  218. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
  219. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  220. package/lib/components/RollupItem/RollupItem.js +2 -2
  221. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  222. package/lib/components/RollupItem/RollupItem.mobile.js +1 -1
  223. package/lib/components/RollupItem/RollupItem.mobile.js.map +1 -1
  224. package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
  225. package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  226. package/lib/components/StepsBlock/StepsBlock.js +1 -1
  227. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  228. package/lib/components/StepsBlock/StepsBlock.mobile.js +1 -1
  229. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  230. package/lib/components/TariffsTable/TariffsTableRow.js +1 -1
  231. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  232. package/lib/components/VerticalLayout/VerticalLayout.js +1 -1
  233. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  234. package/lib/services/sitemap/SitemapData.d.ts +1 -0
  235. package/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
  236. package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  237. package/lib/ui-kit/Button/ArrowButton.js +1 -1
  238. package/lib/ui-kit/Button/ArrowButton.js.map +1 -1
  239. package/lib/ui-kit/Button/ButtonProps.d.ts +0 -2
  240. package/lib/ui-kit/Button/renderButtonsSection.js +1 -1
  241. package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  242. package/lib/ui-kit/Foldable/DefaultFoldButton.js +1 -1
  243. package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  244. package/lib/ui-kit/Icon/Icon.js +2 -2
  245. package/lib/ui-kit/Icon/Icon.js.map +1 -1
  246. package/lib/ui-kit/Icon/IconProps.d.ts +0 -2
  247. package/lib/ui-kit/InnerTable/InnerTableButton.js +1 -1
  248. package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  249. package/lib/ui-kit/InnerTable/InnerTableHeader.js +1 -1
  250. package/lib/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
  251. package/lib/ui-kit/LinkButton/LinkButton.js +2 -2
  252. package/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
  253. package/lib/ui-kit/Logo/renderImage.js +2 -2
  254. package/lib/ui-kit/Logo/renderImage.js.map +1 -1
  255. package/lib/ui-kit/Sitemap/Sitemap.js +1 -1
  256. package/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
  257. package/lib/ui-kit/YandexMap/renderSearchField.d.ts +1 -1
  258. package/lib/ui-kit/YandexMap/renderSearchField.js +1 -1
  259. package/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  260. package/mobile/bundle/bundle.umd.js +18 -18
  261. package/mobile/bundle/bundle.umd.min.js +1 -1
  262. package/mobile/bundle/components/Calculator/constants.d.ts +2 -2
  263. package/mobile/bundle/components/Calculator/rangeHelpers.d.ts +3 -0
  264. package/mobile/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +1 -1
  265. package/mobile/bundle/components/Calculator/useCreditCalculatorParams.d.ts +10 -3
  266. package/mobile/bundle/components/Calculator/useDepositCalculatorParams.d.ts +1 -1
  267. package/mobile/bundle/components/Header/HeaderSecondaryMenuButton.d.ts +2 -0
  268. package/mobile/bundle/components/Header/HeaderSubMenu.d.ts +3 -0
  269. package/mobile/bundle/components/Header/InternetBankButton.d.ts +7 -0
  270. package/mobile/bundle/services/sitemap/SitemapData.d.ts +1 -0
  271. package/mobile/bundle/ui-kit/Button/ButtonProps.d.ts +0 -2
  272. package/mobile/bundle/ui-kit/Icon/IconProps.d.ts +0 -2
  273. package/mobile/bundle/ui-kit/YandexMap/renderSearchField.d.ts +1 -1
  274. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  275. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  276. package/mobile/dist/components/BusinessBlock/BusinessCard.js +2 -2
  277. package/mobile/dist/components/BusinessBlock/BusinessCard.js.map +1 -1
  278. package/mobile/dist/components/Calculator/Calculator.js +1 -1
  279. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  280. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +5 -0
  281. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  282. package/mobile/dist/components/Calculator/UnknownRate.js +2 -2
  283. package/mobile/dist/components/Calculator/UnknownRate.js.map +1 -1
  284. package/mobile/dist/components/Calculator/constants.d.ts +2 -2
  285. package/mobile/dist/components/Calculator/constants.js.map +1 -1
  286. package/mobile/dist/components/Calculator/rangeHelpers.d.ts +3 -0
  287. package/mobile/dist/components/Calculator/rangeHelpers.js +10 -3
  288. package/mobile/dist/components/Calculator/rangeHelpers.js.map +1 -1
  289. package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +1 -1
  290. package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js +2 -2
  291. package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  292. package/mobile/dist/components/Calculator/useCreditCalculatorParams.d.ts +10 -3
  293. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +39 -33
  294. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  295. package/mobile/dist/components/Calculator/useDepositCalculatorParams.d.ts +1 -1
  296. package/mobile/dist/components/Calculator/useDepositCalculatorParams.js +4 -4
  297. package/mobile/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  298. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +1 -1
  299. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  300. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
  301. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  302. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
  303. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  304. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  305. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  306. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +3 -3
  307. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  308. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
  309. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  310. package/mobile/dist/components/Footer/Footer.js +1 -1
  311. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  312. package/mobile/dist/components/Footer/MediaButton.js +1 -1
  313. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  314. package/mobile/dist/components/Header/DropdownMenu.js +2 -2
  315. package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
  316. package/mobile/dist/components/Header/HeaderBurger.js +2 -2
  317. package/mobile/dist/components/Header/HeaderBurger.js.map +1 -1
  318. package/mobile/dist/components/Header/HeaderChatBotButton.js +1 -1
  319. package/mobile/dist/components/Header/HeaderChatBotButton.js.map +1 -1
  320. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -3
  321. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  322. package/mobile/dist/components/Header/HeaderSecondaryMenuButton.d.ts +2 -0
  323. package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js +6 -2
  324. package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
  325. package/mobile/dist/components/Header/HeaderSubMenu.d.ts +3 -0
  326. package/mobile/dist/components/Header/HeaderSubMenu.js +6 -2
  327. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  328. package/mobile/dist/components/Header/HeaderSubMenuItem.js +2 -2
  329. package/mobile/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
  330. package/mobile/dist/components/Header/HeaderTop.js +1 -1
  331. package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
  332. package/mobile/dist/components/Header/InternetBankButton.d.ts +7 -0
  333. package/mobile/dist/components/Header/InternetBankButton.js +12 -0
  334. package/mobile/dist/components/Header/InternetBankButton.js.map +1 -0
  335. package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js +1 -1
  336. package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  337. package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -1
  338. package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  339. package/mobile/dist/components/OfficeMap/OfficeMap.js +1 -1
  340. package/mobile/dist/components/OfficeMap/OfficeMap.js.map +1 -1
  341. package/mobile/dist/components/OfficeMap/renderFunctions.js +1 -1
  342. package/mobile/dist/components/OfficeMap/renderFunctions.js.map +1 -1
  343. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -1
  344. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  345. package/mobile/dist/components/ProductBlock/renderBackwardButton.js +1 -1
  346. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  347. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
  348. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  349. package/mobile/dist/components/RollupItem/RollupItem.js +1 -1
  350. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  351. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
  352. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  353. package/mobile/dist/components/StepsBlock/StepsBlock.js +1 -1
  354. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  355. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +1 -1
  356. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  357. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +1 -1
  358. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  359. package/mobile/dist/services/sitemap/SitemapData.d.ts +1 -0
  360. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
  361. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  362. package/mobile/dist/ui-kit/Button/ArrowButton.js +1 -1
  363. package/mobile/dist/ui-kit/Button/ArrowButton.js.map +1 -1
  364. package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +0 -2
  365. package/mobile/dist/ui-kit/Button/renderButtonsSection.js +1 -1
  366. package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  367. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +1 -1
  368. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  369. package/mobile/dist/ui-kit/Icon/Icon.js +2 -2
  370. package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
  371. package/mobile/dist/ui-kit/Icon/IconProps.d.ts +0 -2
  372. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js +1 -1
  373. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  374. package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.js +1 -1
  375. package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
  376. package/mobile/dist/ui-kit/LinkButton/LinkButton.js +2 -2
  377. package/mobile/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
  378. package/mobile/dist/ui-kit/Logo/renderImage.js +2 -2
  379. package/mobile/dist/ui-kit/Logo/renderImage.js.map +1 -1
  380. package/mobile/dist/ui-kit/Sitemap/Sitemap.js +1 -1
  381. package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
  382. package/mobile/dist/ui-kit/YandexMap/renderSearchField.d.ts +1 -1
  383. package/mobile/dist/ui-kit/YandexMap/renderSearchField.js +1 -1
  384. package/mobile/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  385. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  386. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  387. package/mobile/lib/components/BusinessBlock/BusinessCard.js +2 -2
  388. package/mobile/lib/components/BusinessBlock/BusinessCard.js.map +1 -1
  389. package/mobile/lib/components/Calculator/Calculator.js +1 -1
  390. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  391. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +6 -1
  392. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  393. package/mobile/lib/components/Calculator/UnknownRate.js +2 -2
  394. package/mobile/lib/components/Calculator/UnknownRate.js.map +1 -1
  395. package/mobile/lib/components/Calculator/constants.d.ts +2 -2
  396. package/mobile/lib/components/Calculator/constants.js.map +1 -1
  397. package/mobile/lib/components/Calculator/rangeHelpers.d.ts +3 -0
  398. package/mobile/lib/components/Calculator/rangeHelpers.js +8 -2
  399. package/mobile/lib/components/Calculator/rangeHelpers.js.map +1 -1
  400. package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +1 -1
  401. package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js +2 -2
  402. package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  403. package/mobile/lib/components/Calculator/useCreditCalculatorParams.d.ts +10 -3
  404. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +40 -34
  405. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  406. package/mobile/lib/components/Calculator/useDepositCalculatorParams.d.ts +1 -1
  407. package/mobile/lib/components/Calculator/useDepositCalculatorParams.js +4 -4
  408. package/mobile/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  409. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +1 -1
  410. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  411. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
  412. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  413. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
  414. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  415. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  416. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  417. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +3 -3
  418. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  419. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  420. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  421. package/mobile/lib/components/Footer/Footer.js +1 -1
  422. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  423. package/mobile/lib/components/Footer/MediaButton.js +1 -1
  424. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  425. package/mobile/lib/components/Header/DropdownMenu.js +2 -2
  426. package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
  427. package/mobile/lib/components/Header/HeaderBurger.js +2 -2
  428. package/mobile/lib/components/Header/HeaderBurger.js.map +1 -1
  429. package/mobile/lib/components/Header/HeaderChatBotButton.js +1 -1
  430. package/mobile/lib/components/Header/HeaderChatBotButton.js.map +1 -1
  431. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -3
  432. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  433. package/mobile/lib/components/Header/HeaderSecondaryMenuButton.d.ts +2 -0
  434. package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js +6 -2
  435. package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
  436. package/mobile/lib/components/Header/HeaderSubMenu.d.ts +3 -0
  437. package/mobile/lib/components/Header/HeaderSubMenu.js +6 -2
  438. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  439. package/mobile/lib/components/Header/HeaderSubMenuItem.js +2 -2
  440. package/mobile/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
  441. package/mobile/lib/components/Header/HeaderTop.js +1 -1
  442. package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
  443. package/mobile/lib/components/Header/InternetBankButton.d.ts +7 -0
  444. package/mobile/lib/components/Header/InternetBankButton.js +10 -0
  445. package/mobile/lib/components/Header/InternetBankButton.js.map +1 -0
  446. package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js +1 -1
  447. package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  448. package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
  449. package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  450. package/mobile/lib/components/OfficeMap/OfficeMap.js +1 -1
  451. package/mobile/lib/components/OfficeMap/OfficeMap.js.map +1 -1
  452. package/mobile/lib/components/OfficeMap/renderFunctions.js +1 -1
  453. package/mobile/lib/components/OfficeMap/renderFunctions.js.map +1 -1
  454. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -1
  455. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  456. package/mobile/lib/components/ProductBlock/renderBackwardButton.js +1 -1
  457. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  458. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
  459. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  460. package/mobile/lib/components/RollupItem/RollupItem.js +1 -1
  461. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  462. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
  463. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  464. package/mobile/lib/components/StepsBlock/StepsBlock.js +1 -1
  465. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  466. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +1 -1
  467. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  468. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +1 -1
  469. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  470. package/mobile/lib/services/sitemap/SitemapData.d.ts +1 -0
  471. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
  472. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  473. package/mobile/lib/ui-kit/Button/ArrowButton.js +1 -1
  474. package/mobile/lib/ui-kit/Button/ArrowButton.js.map +1 -1
  475. package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +0 -2
  476. package/mobile/lib/ui-kit/Button/renderButtonsSection.js +1 -1
  477. package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  478. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +1 -1
  479. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  480. package/mobile/lib/ui-kit/Icon/Icon.js +2 -2
  481. package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
  482. package/mobile/lib/ui-kit/Icon/IconProps.d.ts +0 -2
  483. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js +1 -1
  484. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  485. package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.js +1 -1
  486. package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
  487. package/mobile/lib/ui-kit/LinkButton/LinkButton.js +2 -2
  488. package/mobile/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
  489. package/mobile/lib/ui-kit/Logo/renderImage.js +2 -2
  490. package/mobile/lib/ui-kit/Logo/renderImage.js.map +1 -1
  491. package/mobile/lib/ui-kit/Sitemap/Sitemap.js +1 -1
  492. package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
  493. package/mobile/lib/ui-kit/YandexMap/renderSearchField.d.ts +1 -1
  494. package/mobile/lib/ui-kit/YandexMap/renderSearchField.js +1 -1
  495. package/mobile/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  496. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +0 -1
  497. package/mobile/src/components/BusinessBlock/BusinessCard.tsx +2 -2
  498. package/mobile/src/components/Calculator/Calculator.tsx +0 -1
  499. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +7 -1
  500. package/mobile/src/components/Calculator/UnknownRate.tsx +2 -2
  501. package/mobile/src/components/Calculator/constants.ts +2 -2
  502. package/mobile/src/components/Calculator/rangeHelpers.ts +18 -2
  503. package/mobile/src/components/Calculator/useBusinessDepositCalculatorParams.ts +3 -3
  504. package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +83 -46
  505. package/mobile/src/components/Calculator/useDepositCalculatorParams.ts +5 -5
  506. package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +1 -1
  507. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
  508. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +1 -1
  509. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
  510. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -3
  511. package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +1 -1
  512. package/mobile/src/components/Footer/Footer.tsx +1 -1
  513. package/mobile/src/components/Footer/MediaButton.tsx +0 -1
  514. package/mobile/src/components/Header/DropdownMenu.tsx +6 -3
  515. package/mobile/src/components/Header/HeaderBurger.tsx +2 -5
  516. package/mobile/src/components/Header/HeaderChatBotButton.tsx +2 -0
  517. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +0 -5
  518. package/mobile/src/components/Header/HeaderSecondaryMenuButton.tsx +22 -5
  519. package/mobile/src/components/Header/HeaderSubMenu.tsx +62 -43
  520. package/mobile/src/components/Header/HeaderSubMenuItem.tsx +2 -2
  521. package/mobile/src/components/Header/HeaderTop.tsx +0 -1
  522. package/mobile/src/components/Header/InternetBankButton.tsx +30 -0
  523. package/mobile/src/components/HorizontalLayout/HorizontalLayout.tsx +7 -1
  524. package/mobile/src/components/LinkDocs/LinkDocs.tsx +0 -1
  525. package/mobile/src/components/OfficeMap/OfficeMap.tsx +1 -1
  526. package/mobile/src/components/OfficeMap/renderFunctions.tsx +1 -1
  527. package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +1 -7
  528. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +0 -1
  529. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +2 -2
  530. package/mobile/src/components/RollupItem/RollupItem.tsx +2 -2
  531. package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +1 -1
  532. package/mobile/src/components/StepsBlock/StepsBlock.tsx +0 -1
  533. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
  534. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +1 -0
  535. package/mobile/src/services/sitemap/SitemapData.ts +1 -0
  536. package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +0 -1
  537. package/mobile/src/ui-kit/Button/ArrowButton.tsx +0 -1
  538. package/mobile/src/ui-kit/Button/ButtonProps.ts +0 -2
  539. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +0 -1
  540. package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +0 -1
  541. package/mobile/src/ui-kit/Icon/Icon.tsx +2 -2
  542. package/mobile/src/ui-kit/Icon/IconProps.ts +0 -2
  543. package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +0 -1
  544. package/mobile/src/ui-kit/InnerTable/InnerTableHeader.tsx +0 -1
  545. package/mobile/src/ui-kit/LinkButton/LinkButton.tsx +1 -2
  546. package/mobile/src/ui-kit/Logo/renderImage.tsx +0 -2
  547. package/mobile/src/ui-kit/Sitemap/Sitemap.tsx +1 -1
  548. package/mobile/src/ui-kit/YandexMap/renderSearchField.tsx +1 -2
  549. package/package.json +1 -1
  550. package/src/components/BenefitsBlock/BenefitsBlock.tsx +0 -1
  551. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.tsx +8 -8
  552. package/src/components/BusinessBlock/BusinessCard.tsx +2 -2
  553. package/src/components/Calculator/Calculator.tsx +0 -1
  554. package/src/components/Calculator/CreditCalculatorForm.tsx +7 -1
  555. package/src/components/Calculator/UnknownRate.tsx +2 -2
  556. package/src/components/Calculator/constants.ts +2 -2
  557. package/src/components/Calculator/rangeHelpers.ts +18 -2
  558. package/src/components/Calculator/useBusinessDepositCalculatorParams.ts +3 -3
  559. package/src/components/Calculator/useCreditCalculatorParams.ts +83 -46
  560. package/src/components/Calculator/useDepositCalculatorParams.ts +5 -5
  561. package/src/components/CarouselEventCard/CarouselEventCard.tsx +1 -1
  562. package/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
  563. package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +1 -1
  564. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
  565. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -3
  566. package/src/components/ComparisonTable/HeaderCell.tsx +0 -1
  567. package/src/components/ExchangeRateTile/CurrentLocation.tsx +1 -1
  568. package/src/components/Footer/Footer.mobile.tsx +1 -1
  569. package/src/components/Footer/MediaButton.tsx +0 -1
  570. package/src/components/Header/DropdownMenu.tsx +6 -3
  571. package/src/components/Header/Header.tsx +6 -2
  572. package/src/components/Header/HeaderBurger.tsx +2 -5
  573. package/src/components/Header/HeaderChatBotButton.tsx +2 -0
  574. package/src/components/Header/HeaderSecondaryMenu.tsx +0 -5
  575. package/src/components/Header/HeaderSecondaryMenuButton.tsx +22 -5
  576. package/src/components/Header/HeaderSubMenu.tsx +62 -43
  577. package/src/components/Header/HeaderSubMenuItem.tsx +2 -2
  578. package/src/components/Header/HeaderTop.tsx +0 -1
  579. package/src/components/Header/InternetBankButton.tsx +30 -0
  580. package/src/components/HorizontalLayout/HorizontalLayout.tsx +7 -1
  581. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +4 -3
  582. package/src/components/LinkDocs/LinkDocs.mobile.tsx +0 -1
  583. package/src/components/LinkDocs/LinkDocs.tsx +1 -1
  584. package/src/components/OfficeMap/OfficeMap.tsx +1 -1
  585. package/src/components/OfficeMap/renderFunctions.tsx +1 -1
  586. package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +1 -7
  587. package/src/components/ProductBlock/renderBackwardButton.tsx +0 -1
  588. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +2 -2
  589. package/src/components/RollupItem/RollupItem.mobile.tsx +2 -2
  590. package/src/components/RollupItem/RollupItem.tsx +2 -2
  591. package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +1 -1
  592. package/src/components/StepsBlock/StepsBlock.mobile.tsx +0 -1
  593. package/src/components/StepsBlock/StepsBlock.tsx +0 -1
  594. package/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
  595. package/src/components/VerticalLayout/VerticalLayout.tsx +1 -0
  596. package/src/services/sitemap/SitemapData.ts +1 -0
  597. package/src/ui-kit/BenefitItem/BenefitItem.tsx +0 -1
  598. package/src/ui-kit/Button/ArrowButton.tsx +0 -1
  599. package/src/ui-kit/Button/Button.fixture.tsx +5 -5
  600. package/src/ui-kit/Button/ButtonProps.ts +0 -2
  601. package/src/ui-kit/Button/renderButtonsSection.tsx +0 -1
  602. package/src/ui-kit/Foldable/DefaultFoldButton.tsx +0 -1
  603. package/src/ui-kit/Icon/Icon.fixture.tsx +3 -3
  604. package/src/ui-kit/Icon/Icon.tsx +2 -2
  605. package/src/ui-kit/Icon/IconProps.ts +0 -2
  606. package/src/ui-kit/InnerTable/InnerTableButton.tsx +0 -1
  607. package/src/ui-kit/InnerTable/InnerTableHeader.tsx +0 -1
  608. package/src/ui-kit/LinkButton/LinkButton.tsx +1 -2
  609. package/src/ui-kit/Logo/renderImage.tsx +0 -2
  610. package/src/ui-kit/Sitemap/Sitemap.tsx +1 -1
  611. package/src/ui-kit/YandexMap/renderSearchField.tsx +1 -2
@@ -1,7 +1,8 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
2
+ import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
4
4
  import { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
5
+ import { clamp } from '../../utils/clamp';
5
6
  import { style } from '../../utils/style';
6
7
  import type {
7
8
  CreditCalculatorParamsViewSettings,
@@ -50,6 +51,11 @@ export const CreditCalculatorForm = JSX<CreditCalculatorProp>(
50
51
  paramsViewSettings,
51
52
  );
52
53
 
54
+ useEffect(() => {
55
+ setMoneyValue(clamp(moneyValue, calculatorParams.minSum, calculatorParams.maxSum));
56
+ setMonthsValue(clamp(monthsValue, calculatorParams.minMonths, calculatorParams.maxMonths));
57
+ }, [calculatorParams]);
58
+
53
59
  return (
54
60
  <section className={style('flex justify-between', className)}>
55
61
  <div className="w-[468px]">
@@ -1,5 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { Img } from '../../ui-kit/Img/Img';
2
+ import { Icon } from '../../ui-kit/Icon/Icon';
3
3
  import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
4
4
  import { Text } from '../../ui-kit/Text/Text';
5
5
 
@@ -13,7 +13,7 @@ export const UnknownRate = JSX<UnknownRateProps>(({ title = 'Ставка' }) =>
13
13
  {title}
14
14
  </Text>
15
15
  <div className="mt-1 pt-1 pl-5 pb-1.5">
16
- <Img image={{ icon: 'PercentIcon' }} width="90" height="85" asSVG />
16
+ <Icon name="PercentIcon" width="90" height="85" />
17
17
  </div>
18
18
  <div className="w-[250px] mt-3.5">
19
19
  <Paragraph size="text-xl-light" color="text-primary-text">
@@ -1,6 +1,6 @@
1
1
  import { BonusCalculatorSourceBookParams } from './useBonusCalculatorParams';
2
2
  import { BusinessDepositCalculatorSourceBookParams } from './useBusinessDepositCalculatorParams';
3
- import { CreditCalculatorSourceBookParams } from './useCreditCalculatorParams';
3
+ import { CreditCalculatorSourceBookRateParams } from './useCreditCalculatorParams';
4
4
  import { DepositCalculatorSourceBookParams } from './useDepositCalculatorParams';
5
5
 
6
6
  export const DEFAULT_MIN_SUM = 10000;
@@ -21,7 +21,7 @@ export const MONTHS_IN_YEAR = 12;
21
21
 
22
22
  export const MONTHLY_INTEREST_RATE = MONTHS_IN_YEAR * 100;
23
23
 
24
- export const DEFAULT_CREDIT_CALCULATOR_PARAMS: CreditCalculatorSourceBookParams = {
24
+ export const DEFAULT_CREDIT_CALCULATOR_PARAMS: CreditCalculatorSourceBookRateParams = {
25
25
  minSum: DEFAULT_MIN_SUM,
26
26
  maxSum: DEFAULT_MAX_SUM,
27
27
  minMonths: DEFAULT_MIN_MONTHS,
@@ -2,6 +2,22 @@ import { maxBy } from '../../utils/maxBy';
2
2
  import { mergeIntervals } from '../../utils/mergeIntervals';
3
3
  import { minBy } from '../../utils/minBy';
4
4
 
5
+ export const getLimitRangeByKeys = <
6
+ MinKey extends string,
7
+ MaxKey extends string,
8
+ T extends Record<MinKey | MaxKey, number>,
9
+ >(
10
+ [minKey, maxKey]: [MinKey, MaxKey],
11
+ limitParams?: T,
12
+ rateRows: T[] = [],
13
+ ) =>
14
+ limitParams && limitParams[minKey] && limitParams[maxKey]
15
+ ? {
16
+ [minKey]: limitParams[minKey],
17
+ [maxKey]: limitParams[maxKey],
18
+ }
19
+ : getRangeByKeys([minKey, maxKey], rateRows);
20
+
5
21
  export const getRangeByKeys = <
6
22
  MinKey extends string,
7
23
  MaxKey extends string,
@@ -10,8 +26,8 @@ export const getRangeByKeys = <
10
26
  [minKey, maxKey]: [MinKey, MaxKey],
11
27
  rows: T[] = [],
12
28
  ) => ({
13
- [minKey]: rows.length ? minBy()(rows.map((row) => row[minKey])) : 0,
14
- [maxKey]: rows.length ? maxBy()(rows.map((row) => row[maxKey])) : 0,
29
+ [minKey]: rows.length ? minBy()(rows.filter((row) => row[minKey]).map((row) => row[minKey])) : 0,
30
+ [maxKey]: rows.length ? maxBy()(rows.filter((row) => row[maxKey]).map((row) => row[maxKey])) : 0,
15
31
  });
16
32
 
17
33
  export const getMergeRangesByKeys = <
@@ -38,7 +38,7 @@ export interface BusinessDepositCalculatorParams
38
38
  }
39
39
 
40
40
  export type BusinessDepositCalculatorData = {
41
- rows: BusinessDepositCalculatorSourceBookParams[];
41
+ rateRows: BusinessDepositCalculatorSourceBookParams[];
42
42
  };
43
43
 
44
44
  export const useBusinessDepositCalculatorParams = (
@@ -70,7 +70,7 @@ export const useBusinessDepositCalculatorParams = (
70
70
  };
71
71
  }
72
72
  const businessDepositCalculatorSourceBookParams =
73
- data?.rows?.find((_) => {
73
+ data?.rateRows?.find((_) => {
74
74
  return (
75
75
  isMonthlyInterestPayment === _.isMonthlyInterestPayment &&
76
76
  isSmallBusiness === _.isSmallBusiness &&
@@ -84,7 +84,7 @@ export const useBusinessDepositCalculatorParams = (
84
84
 
85
85
  const income = getDepositIncome(rate, userInputParams);
86
86
  const finalSum = moneyValue + income;
87
- const sourceBookRows = data?.rows || [DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS];
87
+ const sourceBookRows = data?.rateRows || [DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS];
88
88
 
89
89
  return {
90
90
  ...businessDepositCalculatorSourceBookParams,
@@ -1,7 +1,8 @@
1
+ import { useMemo } from '@redneckz/uni-jsx/lib/hooks';
1
2
  import type { CreditCalculatorParamsViewSettings } from './CalculatorContent';
2
3
  import { CREDIT_CALC_DEFAULT_DIR, DEFAULT_CREDIT_CALCULATOR_PARAMS } from './constants';
3
4
  import { getMonthlyPayment } from './getMonthlyPayment';
4
- import { checkRangeByKeys, getRangeByKeys } from './rangeHelpers';
5
+ import { checkRangeByKeys, getLimitRangeByKeys } from './rangeHelpers';
5
6
  import { useCalculatorParams } from './useCalculatorParams';
6
7
 
7
8
  export interface CommonCreditParams {
@@ -10,7 +11,7 @@ export interface CommonCreditParams {
10
11
  isPensionClient: boolean;
11
12
  isStateEmployee: boolean;
12
13
  }
13
- export interface CreditCalculatorSourceBookParams extends CommonCreditParams {
14
+ export interface CreditCalculatorSourceBookRateParams extends CommonCreditParams {
14
15
  minSum: number;
15
16
  maxSum: number;
16
17
  minMonths: number;
@@ -18,6 +19,13 @@ export interface CreditCalculatorSourceBookParams extends CommonCreditParams {
18
19
  rate: number;
19
20
  }
20
21
 
22
+ export interface CreditCalculatorSourceBookLimitParams extends CommonCreditParams {
23
+ minSum: number;
24
+ maxSum: number;
25
+ minMonths: number;
26
+ maxMonths: number;
27
+ }
28
+
21
29
  export interface CreditCalculatorUserInputParams extends CommonCreditParams {
22
30
  isAnnuity: boolean;
23
31
  moneyValue: number;
@@ -25,13 +33,14 @@ export interface CreditCalculatorUserInputParams extends CommonCreditParams {
25
33
  }
26
34
 
27
35
  export interface CreditCalculatorParams
28
- extends CreditCalculatorSourceBookParams,
36
+ extends CreditCalculatorSourceBookRateParams,
29
37
  CreditCalculatorUserInputParams {
30
38
  monthlyPayment: number;
31
39
  }
32
40
 
33
41
  export type CreditCalculatorData = {
34
- rows: CreditCalculatorSourceBookParams[];
42
+ rateRows?: CreditCalculatorSourceBookRateParams[];
43
+ limitRows?: CreditCalculatorSourceBookLimitParams[];
35
44
  };
36
45
 
37
46
  export const useCreditCalculatorParams = (
@@ -41,60 +50,88 @@ export const useCreditCalculatorParams = (
41
50
  ): CreditCalculatorParams => {
42
51
  const { moneyValue, monthsValue } = userInputParams;
43
52
  const data = useCalculatorParams<CreditCalculatorData>(sourceBookDir || CREDIT_CALC_DEFAULT_DIR);
44
- const isExcludeSalaryClient = !paramsViewSettings?.isShowSalaryClient;
45
- const isExcludeStateEmployee = !paramsViewSettings?.isShowStateEmployee;
46
- const isExcludePensionClient = !paramsViewSettings?.isShowPensionClient;
47
- const isExcludeInsurance = !paramsViewSettings?.isShowInsurance;
48
- const creditCalculatorSourceBookParams =
49
- data?.rows?.find(
53
+
54
+ const creditCalculatorSourceBookLimitParams = data?.limitRows?.find((row) =>
55
+ checkRowCommonParams({
56
+ row,
57
+ userInputParams,
58
+ paramsViewSettings,
59
+ }),
60
+ );
61
+
62
+ const creditCalculatorSourceBookRateParams =
63
+ data?.rateRows?.find(
50
64
  (row) =>
51
- checkRowByParam({
52
- row,
53
- userInputParams,
54
- paramKey: 'isSalaryClient',
55
- isExclude: isExcludeSalaryClient,
56
- }) &&
57
- checkRowByParam({
65
+ checkRowCommonParams({
58
66
  row,
59
67
  userInputParams,
60
- paramKey: 'isStateEmployee',
61
- isExclude: isExcludeStateEmployee,
62
- }) &&
63
- checkRowByParam({
64
- row,
65
- userInputParams,
66
- paramKey: 'isPensionClient',
67
- isExclude: isExcludePensionClient,
68
- }) &&
69
- checkRowByParam({
70
- row,
71
- userInputParams,
72
- paramKey: 'isInsurance',
73
- isExclude: isExcludeInsurance,
68
+ paramsViewSettings,
74
69
  }) &&
75
70
  checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], row) &&
76
71
  checkRangeByKeys(monthsValue, ['minMonths', 'maxMonths'], row),
77
72
  ) || DEFAULT_CREDIT_CALCULATOR_PARAMS;
78
73
 
79
- const { rate } = creditCalculatorSourceBookParams;
74
+ const { rate } = creditCalculatorSourceBookRateParams;
80
75
  const monthlyPayment = getMonthlyPayment(rate, userInputParams);
81
- const sourceBookRows = data?.rows || [DEFAULT_CREDIT_CALCULATOR_PARAMS];
76
+ const rateRows = data?.rateRows || [DEFAULT_CREDIT_CALCULATOR_PARAMS];
82
77
 
83
- return {
84
- ...creditCalculatorSourceBookParams,
85
- ...getRangeByKeys(['minSum', 'maxSum'], sourceBookRows),
86
- ...getRangeByKeys(['minMonths', 'maxMonths'], sourceBookRows),
87
- ...userInputParams,
88
- monthlyPayment,
89
- };
78
+ return useMemo(
79
+ () => ({
80
+ ...creditCalculatorSourceBookRateParams,
81
+ ...getLimitRangeByKeys(['minSum', 'maxSum'], creditCalculatorSourceBookLimitParams, rateRows),
82
+ ...getLimitRangeByKeys(
83
+ ['minMonths', 'maxMonths'],
84
+ creditCalculatorSourceBookLimitParams,
85
+ rateRows,
86
+ ),
87
+ ...userInputParams,
88
+ monthlyPayment,
89
+ }),
90
+ [userInputParams],
91
+ );
90
92
  };
91
93
 
92
- interface CheckRowByParamProps {
93
- row: CreditCalculatorSourceBookParams;
94
+ interface CheckSourceBookRowProps {
95
+ row: CommonCreditParams;
94
96
  userInputParams: CreditCalculatorUserInputParams;
95
- paramKey: string;
96
- isExclude: boolean;
97
+ paramsViewSettings?: CreditCalculatorParamsViewSettings;
97
98
  }
98
99
 
99
- const checkRowByParam = ({ row, userInputParams, paramKey, isExclude }: CheckRowByParamProps) =>
100
- isExclude || userInputParams[paramKey] === row[paramKey];
100
+ interface CheckSourceBookRowFieldProps extends CheckSourceBookRowProps {
101
+ fieldKey: string;
102
+ viewSettingFieldKey: string;
103
+ }
104
+
105
+ const checkRowCommonParams = (props: CheckSourceBookRowProps) =>
106
+ checkRowParam({
107
+ ...props,
108
+ fieldKey: 'isSalaryClient',
109
+ viewSettingFieldKey: 'isShowSalaryClient',
110
+ }) &&
111
+ checkRowParam({
112
+ ...props,
113
+ fieldKey: 'isStateEmployee',
114
+ viewSettingFieldKey: 'isShowStateEmployee',
115
+ }) &&
116
+ checkRowParam({
117
+ ...props,
118
+ fieldKey: 'isPensionClient',
119
+ viewSettingFieldKey: 'isShowPensionClient',
120
+ }) &&
121
+ checkRowParam({
122
+ ...props,
123
+ fieldKey: 'isInsurance',
124
+ viewSettingFieldKey: 'isShowInsurance',
125
+ });
126
+
127
+ const checkRowParam = ({
128
+ row,
129
+ userInputParams,
130
+ paramsViewSettings,
131
+ fieldKey,
132
+ viewSettingFieldKey,
133
+ }: CheckSourceBookRowFieldProps) => {
134
+ const isExclude = paramsViewSettings ? !paramsViewSettings[viewSettingFieldKey] : false;
135
+
136
+ return isExclude || userInputParams[fieldKey] === row[fieldKey];
137
+ };
@@ -33,7 +33,7 @@ export interface DepositCalculatorParams
33
33
  }
34
34
 
35
35
  export type DepositCalculatorData = {
36
- rows: DepositCalculatorSourceBookParams[];
36
+ rateRows: DepositCalculatorSourceBookParams[];
37
37
  };
38
38
 
39
39
  export const useDepositCalculatorParams = (
@@ -45,13 +45,13 @@ export const useDepositCalculatorParams = (
45
45
  const data = useCalculatorParams<DepositCalculatorData>(
46
46
  sourceBookDir || DEPOSIT_CALC_DEFAULT_DIR,
47
47
  );
48
- const defaultMonth = data?.rows[0]
49
- ? getMiddleMonth(data.rows[0].minMonths, data.rows[0].maxMonths)
48
+ const defaultMonth = data?.rateRows[0]
49
+ ? getMiddleMonth(data.rateRows[0].minMonths, data.rateRows[0].maxMonths)
50
50
  : 1;
51
51
  const isExcludeMonthlyInterestPayment = !paramsViewSettings?.isShowMonthlyInterestPayment;
52
52
  const isExcludeRemoteRegistration = !paramsViewSettings?.isShowRemoteRegistration;
53
53
  const depositCalculatorSourceBookParams =
54
- data?.rows?.find(
54
+ data?.rateRows?.find(
55
55
  (row) =>
56
56
  checkRowByParam({
57
57
  row,
@@ -72,7 +72,7 @@ export const useDepositCalculatorParams = (
72
72
  const { rate } = depositCalculatorSourceBookParams;
73
73
  const income = getDepositIncome(rate, userInputParams);
74
74
  const finalSum = moneyValue + income;
75
- const sourceBookRows = data?.rows || [DEFAULT_DEPOSIT_CALCULATOR_PARAMS];
75
+ const sourceBookRows = data?.rateRows || [DEFAULT_DEPOSIT_CALCULATOR_PARAMS];
76
76
 
77
77
  return {
78
78
  ...depositCalculatorSourceBookParams,
@@ -15,7 +15,7 @@ export const CarouselEventCard = JSX<CarouselEventCardProps>(
15
15
  return (
16
16
  <BlockWrapper className={style('w-[365px]', className)} {...rest}>
17
17
  <LinkWrapper className="flex flex-col" href={href} target={target}>
18
- {icon?.icon ? <Img image={icon} asSVG /> : null}
18
+ {icon?.icon ? <Img image={icon} /> : null}
19
19
  {icon?.src ? <Img image={icon} /> : null}
20
20
  {title ? (
21
21
  <Heading headingType="h6" as="h4" className="text-left pt-3 mb-2" title={title} />
@@ -64,7 +64,7 @@ const renderImage = (image?: Picture) => (
64
64
  <div className="flex justify-center">
65
65
  {image?.src ? <Img className="mb-5" image={image} /> : null}
66
66
  {image?.icon ? (
67
- <Img className={`w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full`} image={image} asSVG />
67
+ <Img className={`w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full`} image={image} />
68
68
  ) : null}
69
69
  </div>
70
70
  );
@@ -16,7 +16,7 @@ export const CarouselProgramsCard = JSX<CarouselTariffsCardProps>(
16
16
  <BlockWrapper className={style('border border-gray', className)} {...rest}>
17
17
  <LinkWrapper className="flex" href={href} target={target}>
18
18
  <div className="w-[200px] min-w-[200px] self-center">
19
- {icon?.icon ? <Img image={icon} asSVG /> : null}
19
+ {icon?.icon ? <Img image={icon} /> : null}
20
20
  {icon?.src ? <Img image={icon} /> : null}
21
21
  </div>
22
22
  <div className="p-8 pl-3 w-full">
@@ -63,7 +63,7 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
63
63
 
64
64
  const renderIconBlock = (icon: Picture | undefined) => (
65
65
  <div className="absolute bottom-0 right-0">
66
- {icon?.icon ? <Img image={icon} asSVG /> : null}
66
+ {icon?.icon ? <Img image={icon} /> : null}
67
67
  {icon?.src ? <Img image={icon} /> : null}
68
68
  </div>
69
69
  );
@@ -60,7 +60,7 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
60
60
  const renderIconBlock = (icon?: Picture) => (
61
61
  <div className="w-[267px] min-w-[267px] self-center">
62
62
  {icon?.src ? <Img image={icon} /> : null}
63
- {icon?.icon ? <Img image={icon} asSVG /> : null}
63
+ {icon?.icon ? <Img image={icon} /> : null}
64
64
  </div>
65
65
  );
66
66
 
@@ -78,7 +78,6 @@ const renderFoldButton = ({ isUnfolded, onToggle }: FoldablePartProps): VNode =>
78
78
  name={isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon'}
79
79
  width="16"
80
80
  height="16"
81
- asSVG
82
81
  />
83
82
  </button>
84
83
  );
@@ -103,7 +102,7 @@ const renderCardInfo = (cell: TariffsCardCellProps, i: number): VNode => {
103
102
 
104
103
  const renderHitIcon = (): VNode => (
105
104
  <div className="absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]">
106
- <Icon iconVersion="black" name="HeartIcon" width="23" height="22" asSVG />
105
+ <Icon iconVersion="black" name="HeartIcon" width="23" height="22" />
107
106
  <Paragraph size="text-s" font="font-normal" align="text-center" color="text-primary-text">
108
107
  ХИТ
109
108
  </Paragraph>
@@ -25,7 +25,6 @@ export const HeaderCell = JSX<HeaderCellProps>(({ icon, image, title, link }) =>
25
25
  image={icon}
26
26
  width="63"
27
27
  height="63"
28
- asSVG
29
28
  />
30
29
  )}
31
30
  {image?.src && <Img className="mb-[18px]" image={image} />}
@@ -8,7 +8,7 @@ interface CurrentLocationProps {
8
8
 
9
9
  export const CurrentLocation = JSX<CurrentLocationProps>(({ className = '', address }) => (
10
10
  <div className={`flex ${className}`}>
11
- <Img image={{ icon: 'GpsIcon' }} width="24" height="24" asSVG />
11
+ <Img image={{ icon: 'GpsIcon' }} width="24" height="24" />
12
12
  <div className="ml-3">
13
13
  {address ? <p className="text-primary-main m-0 mb-1 text-l">{address}</p> : null}
14
14
  <p className="text-secondary-text m-0 text-m">Курс указан для заданного офиса</p>
@@ -55,7 +55,7 @@ const renderSubMenuItem = (menu: SubMenuItem, i: number) => {
55
55
 
56
56
  return (
57
57
  <Button version="link" key={`footer-${i}`} href={href} className="flex text-s mb-4 w-6">
58
- {icon ? <Img className="pr-1" image={icon} width="24" height="24" asSVG /> : null}
58
+ {icon ? <Img className="pr-1" image={icon} width="24" height="24" /> : null}
59
59
  <span className="pl-2.5 font-medium text-primary-text">{text}</span>
60
60
  </Button>
61
61
  );
@@ -91,7 +91,6 @@ export const MediaButton = JSX<MediaButtonProps>(
91
91
  imageClassName="group-hover/media:text-white"
92
92
  width="24"
93
93
  height="24"
94
- asSVG
95
94
  />
96
95
  ) : null}
97
96
  </Button>
@@ -2,8 +2,8 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { useLink } from '../../hooks/useLink';
4
4
  import { useOutsideClick } from '../../hooks/useOutsideClick';
5
- import type { LinkProps } from '../../model/LinkProps';
6
5
  import { style } from '../../utils/style';
6
+ import type { LinkProps } from '../../model/LinkProps';
7
7
 
8
8
  interface DropdownMenuProps {
9
9
  className?: string;
@@ -26,7 +26,7 @@ export const DropdownMenu = JSX<DropdownMenuProps>(({ className = '', items, act
26
26
  ref={ref}
27
27
  >
28
28
  <button
29
- className="group/btn flex justify-between items-center h-6 ml-6"
29
+ className="group/btn flex justify-between items-center h-6"
30
30
  aria-label={`${visible ? 'Скрыть другие разделы' : 'Показать другие разделы'}`}
31
31
  onClick={handleToggle}
32
32
  >
@@ -40,7 +40,10 @@ export const DropdownMenu = JSX<DropdownMenuProps>(({ className = '', items, act
40
40
  ))}
41
41
  </button>
42
42
  <div
43
- className={style('flex flex-col rounded-md bg-white p-6 pb-2', visible ? '' : 'hidden')}
43
+ className={style(
44
+ 'absolute flex flex-col rounded-md bg-white p-6 pb-2',
45
+ visible ? '' : 'hidden',
46
+ )}
44
47
  aria-hidden={!visible}
45
48
  >
46
49
  {items?.map((item, i) => {
@@ -35,7 +35,7 @@ export const Header = JSX<HeaderProps>(
35
35
  }) => {
36
36
  const router = useRouter();
37
37
 
38
- const { topItems, logo, defaultLocation, foreignOffices, officesLink } =
38
+ const { topItems, logo, defaultLocation, foreignOffices, officesLink, internetBankUrl } =
39
39
  useSWRResource<SitemapData>(
40
40
  projectSettings.SITEMAP || 'sitemap',
41
41
  rest.options?.page?.fallback,
@@ -76,7 +76,11 @@ export const Header = JSX<HeaderProps>(
76
76
  )}
77
77
  />
78
78
  {showSubMenu && activeTopItem?.items?.length ? (
79
- <HeaderSubMenu subItems={activeTopItem.items} />
79
+ <HeaderSubMenu
80
+ subItems={activeTopItem.items}
81
+ version={version}
82
+ internetBankUrl={internetBankUrl}
83
+ />
80
84
  ) : null}
81
85
  </div>
82
86
  <SearchDialog topItems={topItems} />
@@ -23,7 +23,7 @@ export const HeaderBurger = JSX<HeaderBurgerProps>(
23
23
  className="absolute top-4 right-4 border-none bg-transparent cursor-pointer"
24
24
  onClick={onClick}
25
25
  >
26
- <Img image={{ icon: 'CloseIcon' }} width="24" height="24" asSVG />
26
+ <Img image={{ icon: 'CloseIcon' }} width="24" height="24" />
27
27
  </button>
28
28
  <button className="flex items-center text-s p-0 mb-4 bg-transparent cursor-pointer">
29
29
  <Img
@@ -31,7 +31,6 @@ export const HeaderBurger = JSX<HeaderBurgerProps>(
31
31
  width="20"
32
32
  height="20"
33
33
  className="text-primary-main box-border mr-2"
34
- asSVG
35
34
  />
36
35
  <Text color="text-secondary-text">{location.name}</Text>
37
36
  </button>
@@ -48,9 +47,7 @@ const renderBurgerSubMenuItem = (menu: DispositionItem, i: number) => {
48
47
 
49
48
  return (
50
49
  <a key={`headerSubMenu-${i}`} href={href} className="flex text-s mb-4 hover:text-primary-main">
51
- {icon ? (
52
- <Img className="text-primary-main pr-1" image={icon} width="24" height="24" asSVG />
53
- ) : null}
50
+ {icon ? <Img className="text-primary-main pr-1" image={icon} width="24" height="24" /> : null}
54
51
  <span className="font-medium pl-0.5">{text}</span>
55
52
  </a>
56
53
  );
@@ -38,5 +38,7 @@ const renderChatBotButton = ({ className, iconVersion, onClick }: HeaderChatBotB
38
38
  image={{ icon: 'HeadphonesIcon', iconVersion }}
39
39
  ariaLabel="Чат"
40
40
  onClick={onClick}
41
+ buttonSize="large"
42
+ isGrayBg={true}
41
43
  />
42
44
  );
@@ -2,13 +2,11 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import type { BlockVersion } from '../../model/BlockVersion';
4
4
  import type { IconVersion } from '../../model/IconVersion';
5
- import { projectSettings } from '../../ProjectSettings';
6
5
  import { useDialog } from '../../ui-kit/Dialog/useDialog';
7
6
  import { LOCATION_DIALOG_ID } from '../../ui-kit/LocationDialog/LocationDialog';
8
7
  import { SEARCH_DIALOG_ID } from '../../ui-kit/SearchDialog/SearchDialog';
9
8
  import { TopItem } from '../../ui-kit/TopItem/TopItem';
10
9
  import { style } from '../../utils/style';
11
- import { HeaderChatBotButton } from './HeaderChatBotButton';
12
10
  import { HeaderSecondaryMenuButton } from './HeaderSecondaryMenuButton';
13
11
 
14
12
  interface HeaderSecondaryMenuContent {
@@ -40,9 +38,6 @@ export const HeaderSecondaryMenu = JSX<HeaderSecondaryMenuProps>(
40
38
  ariaLabel="Поиск"
41
39
  onClick={handleOpenSearchModal}
42
40
  />
43
- {projectSettings.CHAT_BOT ? (
44
- <HeaderChatBotButton iconVersion={iconVersion} chat={projectSettings.CHAT_BOT} />
45
- ) : null}
46
41
  </div>
47
42
  );
48
43
  },
@@ -1,24 +1,42 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { Img } from '../../ui-kit/Img/Img';
3
- import type { ImageContent } from '../../ui-kit/Img/ImgProps';
4
3
  import { style } from '../../utils/style';
4
+ import type { ImageContent } from '../../ui-kit/Img/ImgProps';
5
5
 
6
6
  export interface HeaderSecondaryMenuButtonProps extends ImageContent {
7
7
  className?: string;
8
8
  isRounded?: boolean;
9
+ buttonSize?: 'default' | 'large';
10
+ isGrayBg?: boolean;
9
11
  disabled?: boolean;
10
12
  ariaLabel?: string;
11
13
  onClick?: () => void;
12
14
  }
13
15
 
16
+ const BUTTON_SIZE_STYLE = {
17
+ default: 'w-6 h-6',
18
+ large: 'w-12 h-12',
19
+ };
20
+
14
21
  export const HeaderSecondaryMenuButton = JSX<HeaderSecondaryMenuButtonProps>(
15
- ({ className, isRounded, disabled, ariaLabel, image, onClick }) => (
22
+ ({
23
+ className,
24
+ isRounded,
25
+ buttonSize = 'default',
26
+ isGrayBg = false,
27
+ disabled,
28
+ ariaLabel,
29
+ image,
30
+ onClick,
31
+ }) => (
16
32
  <button
17
33
  className={style(
18
- 'group/btn border-0 p-0 flex items-center bg-inherit',
34
+ 'group/btn border-0 flex shrink-0 items-center',
35
+ isGrayBg ? 'p-3 rounded-full' : 'p-0 bg-inherit',
36
+ isGrayBg && !isRounded ? 'bg-main-divider' : '',
19
37
  isRounded
20
38
  ? 'w-8 h-8 text-secondary-light hover:text-secondary-hove'
21
- : 'w-6 h-6 text-primary-text hover:text-primary-main',
39
+ : `${BUTTON_SIZE_STYLE[buttonSize]} text-primary-text hover:text-primary-main`,
22
40
  'group-data-transparent:text-white',
23
41
  className,
24
42
  )}
@@ -31,7 +49,6 @@ export const HeaderSecondaryMenuButton = JSX<HeaderSecondaryMenuButtonProps>(
31
49
  image={image}
32
50
  className={style('h-full', isRounded ? 'bg-main-divider/20 rounded-full' : '')}
33
51
  imageClassName="group-hover/btn:text-primary-hover group-hover/btn:invert-0"
34
- asSVG
35
52
  />
36
53
  </button>
37
54
  ),