@redneckz/wildless-cms-uni-blocks 0.6.16 → 0.6.18

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 (489) hide show
  1. package/bin/migration-scripts/0.6.16.js +1 -1
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +309 -168
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/Bonus/BonusContent.d.ts +1 -0
  6. package/bundle/components/ExchangeRateTile/CurrentLocation.d.ts +0 -1
  7. package/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +7 -3
  8. package/bundle/components/ExchangeRateTile/callbackCurrencySelect.d.ts +1 -1
  9. package/bundle/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +17 -0
  10. package/bundle/components/OfficeMap/nearbyOffices.d.ts +2 -0
  11. package/bundle/components/OfficeMap/renderFunctions.d.ts +1 -1
  12. package/bundle/{hooks → components/OfficeMap}/useOfficeMap.d.ts +0 -0
  13. package/bundle/icons/IconName.d.ts +6 -2
  14. package/bundle/ui-kit/Button/ButtonProps.d.ts +5 -1
  15. package/bundle/ui-kit/Button/ButtonSection.d.ts +9 -1
  16. package/bundle/{components/OfficeMap → ui-kit/YandexMap}/YandexMap.d.ts +4 -1
  17. package/bundle/ui-kit/YandexMap/ZoomButton.d.ts +7 -0
  18. package/bundle/ui-kit/YandexMap/mockPoints.d.ts +5 -0
  19. package/bundle/ui-kit/YandexMap/renderClusterer.d.ts +2 -0
  20. package/bundle/ui-kit/YandexMap/renderOpenMap.d.ts +2 -0
  21. package/bundle/ui-kit/YandexMap/renderSearchField.d.ts +4 -0
  22. package/bundle/ui-kit/YandexMap/renderUserGeolocation.d.ts +3 -0
  23. package/bundle/ui-kit/YandexMap/useYandexMaps.d.ts +2 -0
  24. package/cosmos-static/icons/FullScreenIcon.svg +1 -0
  25. package/cosmos-static/icons/UserGeoLocationIcon.svg +1 -0
  26. package/dist/components/Bonus/BonusContent.d.ts +1 -0
  27. package/dist/components/Catalog/CatalogCard.js +2 -2
  28. package/dist/components/Catalog/CatalogCard.js.map +1 -1
  29. package/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
  30. package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  31. package/dist/components/ExchangeRateTile/CurrentLocation.d.ts +0 -1
  32. package/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
  33. package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  34. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +7 -3
  35. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +15 -15
  36. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  37. package/dist/components/ExchangeRateTile/ExchangeRateTile.js +11 -11
  38. package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  39. package/dist/components/ExchangeRateTile/callbackCurrencySelect.d.ts +1 -1
  40. package/dist/components/ExchangeRateTile/renderInput.js +4 -1
  41. package/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
  42. package/dist/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +17 -0
  43. package/dist/components/ExchangeRateTile/useFetchExchangeRateData.js +43 -0
  44. package/dist/components/ExchangeRateTile/useFetchExchangeRateData.js.map +1 -0
  45. package/dist/components/Gallery/GalleryCardInner.js +2 -2
  46. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  47. package/dist/components/Gallery/GalleryInner.js +2 -2
  48. package/dist/components/Gallery/GalleryInner.js.map +1 -1
  49. package/dist/components/Header/DropdownMenu.js +1 -1
  50. package/dist/components/Header/DropdownMenu.js.map +1 -1
  51. package/dist/components/Header/HeaderSubMenu.js +16 -11
  52. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  53. package/dist/components/OfficeMap/OfficeMap.js +6 -10
  54. package/dist/components/OfficeMap/OfficeMap.js.map +1 -1
  55. package/dist/components/OfficeMap/nearbyOffices.d.ts +2 -0
  56. package/dist/components/OfficeMap/nearbyOffices.js +9 -0
  57. package/dist/components/OfficeMap/nearbyOffices.js.map +1 -0
  58. package/dist/components/OfficeMap/renderFunctions.d.ts +1 -1
  59. package/dist/components/OfficeMap/renderFunctions.js +1 -1
  60. package/dist/components/OfficeMap/renderFunctions.js.map +1 -1
  61. package/dist/{hooks → components/OfficeMap}/useOfficeMap.d.ts +0 -0
  62. package/{mobile/dist/hooks → dist/components/OfficeMap}/useOfficeMap.js +1 -1
  63. package/dist/components/OfficeMap/useOfficeMap.js.map +1 -0
  64. package/dist/components/PictureText/PictureText.js +1 -1
  65. package/dist/components/PictureText/PictureText.js.map +1 -1
  66. package/dist/components/SafeDepositRental/SafeDepositRental.js +2 -2
  67. package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  68. package/dist/components/TariffsTable/EmbeddableCellData.js +5 -2
  69. package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  70. package/dist/components/TariffsTable/EmbeddableCellData.mobile.js +5 -2
  71. package/dist/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
  72. package/dist/components/TariffsTable/dataFixture.js +2 -4
  73. package/dist/components/TariffsTable/dataFixture.js.map +1 -1
  74. package/dist/icons/IconName.d.ts +6 -2
  75. package/dist/icons/IconName.js +5 -1
  76. package/dist/icons/IconName.js.map +1 -1
  77. package/dist/ui-kit/BlockWrapper.js +4 -3
  78. package/dist/ui-kit/BlockWrapper.js.map +1 -1
  79. package/dist/ui-kit/Button/ButtonProps.d.ts +5 -1
  80. package/dist/ui-kit/Button/ButtonSection.d.ts +9 -1
  81. package/dist/ui-kit/Button/ButtonSection.js +18 -6
  82. package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  83. package/dist/ui-kit/IntersectionObserverTag.js +10 -10
  84. package/dist/ui-kit/IntersectionObserverTag.js.map +1 -1
  85. package/{lib/components/OfficeMap → dist/ui-kit/YandexMap}/YandexMap.d.ts +4 -1
  86. package/dist/ui-kit/YandexMap/YandexMap.js +86 -0
  87. package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -0
  88. package/dist/ui-kit/YandexMap/ZoomButton.d.ts +7 -0
  89. package/dist/ui-kit/YandexMap/ZoomButton.js +26 -0
  90. package/dist/ui-kit/YandexMap/ZoomButton.js.map +1 -0
  91. package/dist/ui-kit/YandexMap/mockPoints.d.ts +5 -0
  92. package/dist/ui-kit/YandexMap/mockPoints.js +28 -0
  93. package/dist/ui-kit/YandexMap/mockPoints.js.map +1 -0
  94. package/dist/ui-kit/YandexMap/renderClusterer.d.ts +2 -0
  95. package/dist/ui-kit/YandexMap/renderClusterer.js +35 -0
  96. package/dist/ui-kit/YandexMap/renderClusterer.js.map +1 -0
  97. package/dist/ui-kit/YandexMap/renderOpenMap.d.ts +2 -0
  98. package/dist/ui-kit/YandexMap/renderOpenMap.js +19 -0
  99. package/dist/ui-kit/YandexMap/renderOpenMap.js.map +1 -0
  100. package/dist/ui-kit/YandexMap/renderSearchField.d.ts +4 -0
  101. package/dist/ui-kit/YandexMap/renderSearchField.js +31 -0
  102. package/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -0
  103. package/dist/ui-kit/YandexMap/renderUserGeolocation.d.ts +3 -0
  104. package/dist/ui-kit/YandexMap/renderUserGeolocation.js +31 -0
  105. package/dist/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -0
  106. package/dist/ui-kit/YandexMap/useYandexMaps.d.ts +2 -0
  107. package/dist/ui-kit/YandexMap/useYandexMaps.js +11 -0
  108. package/dist/ui-kit/YandexMap/useYandexMaps.js.map +1 -0
  109. package/lib/common.css +1 -1
  110. package/lib/components/Bonus/BonusContent.d.ts +1 -0
  111. package/lib/components/Catalog/CatalogCard.js +2 -2
  112. package/lib/components/Catalog/CatalogCard.js.map +1 -1
  113. package/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
  114. package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  115. package/lib/components/ExchangeRateTile/CurrentLocation.d.ts +0 -1
  116. package/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  117. package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  118. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +7 -3
  119. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +15 -15
  120. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  121. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +11 -11
  122. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  123. package/lib/components/ExchangeRateTile/callbackCurrencySelect.d.ts +1 -1
  124. package/lib/components/ExchangeRateTile/renderInput.js +4 -1
  125. package/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
  126. package/lib/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +17 -0
  127. package/lib/components/ExchangeRateTile/useFetchExchangeRateData.js +39 -0
  128. package/lib/components/ExchangeRateTile/useFetchExchangeRateData.js.map +1 -0
  129. package/lib/components/Gallery/GalleryCardInner.js +2 -2
  130. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  131. package/lib/components/Gallery/GalleryInner.js +2 -2
  132. package/lib/components/Gallery/GalleryInner.js.map +1 -1
  133. package/lib/components/Header/DropdownMenu.js +1 -1
  134. package/lib/components/Header/DropdownMenu.js.map +1 -1
  135. package/lib/components/Header/HeaderSubMenu.js +17 -12
  136. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  137. package/lib/components/OfficeMap/OfficeMap.js +6 -10
  138. package/lib/components/OfficeMap/OfficeMap.js.map +1 -1
  139. package/lib/components/OfficeMap/nearbyOffices.d.ts +2 -0
  140. package/lib/components/OfficeMap/nearbyOffices.js +7 -0
  141. package/lib/components/OfficeMap/nearbyOffices.js.map +1 -0
  142. package/lib/components/OfficeMap/renderFunctions.d.ts +1 -1
  143. package/lib/components/OfficeMap/renderFunctions.js +1 -1
  144. package/lib/components/OfficeMap/renderFunctions.js.map +1 -1
  145. package/lib/{hooks → components/OfficeMap}/useOfficeMap.d.ts +0 -0
  146. package/{mobile/lib/hooks → lib/components/OfficeMap}/useOfficeMap.js +1 -1
  147. package/lib/components/OfficeMap/useOfficeMap.js.map +1 -0
  148. package/lib/components/PictureText/PictureText.js +1 -1
  149. package/lib/components/PictureText/PictureText.js.map +1 -1
  150. package/lib/components/SafeDepositRental/SafeDepositRental.js +2 -2
  151. package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  152. package/lib/components/TariffsTable/EmbeddableCellData.js +5 -2
  153. package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  154. package/lib/components/TariffsTable/EmbeddableCellData.mobile.js +5 -2
  155. package/lib/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
  156. package/lib/components/TariffsTable/dataFixture.js +2 -4
  157. package/lib/components/TariffsTable/dataFixture.js.map +1 -1
  158. package/lib/icons/IconName.d.ts +6 -2
  159. package/lib/icons/IconName.js +5 -1
  160. package/lib/icons/IconName.js.map +1 -1
  161. package/lib/ui-kit/BlockWrapper.js +4 -3
  162. package/lib/ui-kit/BlockWrapper.js.map +1 -1
  163. package/lib/ui-kit/Button/ButtonProps.d.ts +5 -1
  164. package/lib/ui-kit/Button/ButtonSection.d.ts +9 -1
  165. package/lib/ui-kit/Button/ButtonSection.js +16 -5
  166. package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  167. package/lib/ui-kit/IntersectionObserverTag.js +11 -11
  168. package/lib/ui-kit/IntersectionObserverTag.js.map +1 -1
  169. package/{mobile/bundle/components/OfficeMap → lib/ui-kit/YandexMap}/YandexMap.d.ts +4 -1
  170. package/lib/ui-kit/YandexMap/YandexMap.js +84 -0
  171. package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -0
  172. package/lib/ui-kit/YandexMap/ZoomButton.d.ts +7 -0
  173. package/lib/ui-kit/YandexMap/ZoomButton.js +24 -0
  174. package/lib/ui-kit/YandexMap/ZoomButton.js.map +1 -0
  175. package/lib/ui-kit/YandexMap/mockPoints.d.ts +5 -0
  176. package/lib/ui-kit/YandexMap/mockPoints.js +26 -0
  177. package/lib/ui-kit/YandexMap/mockPoints.js.map +1 -0
  178. package/lib/ui-kit/YandexMap/renderClusterer.d.ts +2 -0
  179. package/lib/ui-kit/YandexMap/renderClusterer.js +32 -0
  180. package/lib/ui-kit/YandexMap/renderClusterer.js.map +1 -0
  181. package/lib/ui-kit/YandexMap/renderOpenMap.d.ts +2 -0
  182. package/lib/ui-kit/YandexMap/renderOpenMap.js +16 -0
  183. package/lib/ui-kit/YandexMap/renderOpenMap.js.map +1 -0
  184. package/lib/ui-kit/YandexMap/renderSearchField.d.ts +4 -0
  185. package/lib/ui-kit/YandexMap/renderSearchField.js +28 -0
  186. package/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -0
  187. package/lib/ui-kit/YandexMap/renderUserGeolocation.d.ts +3 -0
  188. package/lib/ui-kit/YandexMap/renderUserGeolocation.js +28 -0
  189. package/lib/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -0
  190. package/lib/ui-kit/YandexMap/useYandexMaps.d.ts +2 -0
  191. package/lib/ui-kit/YandexMap/useYandexMaps.js +8 -0
  192. package/lib/ui-kit/YandexMap/useYandexMaps.js.map +1 -0
  193. package/mobile/bundle/bundle.umd.js +36 -22
  194. package/mobile/bundle/bundle.umd.min.js +1 -1
  195. package/mobile/bundle/components/Bonus/BonusContent.d.ts +1 -0
  196. package/mobile/bundle/components/ExchangeRateTile/CurrentLocation.d.ts +0 -1
  197. package/mobile/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +7 -3
  198. package/mobile/bundle/components/ExchangeRateTile/callbackCurrencySelect.d.ts +1 -1
  199. package/mobile/bundle/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +17 -0
  200. package/mobile/bundle/components/OfficeMap/nearbyOffices.d.ts +2 -0
  201. package/mobile/bundle/components/OfficeMap/renderFunctions.d.ts +1 -1
  202. package/mobile/bundle/{hooks → components/OfficeMap}/useOfficeMap.d.ts +0 -0
  203. package/mobile/bundle/icons/IconName.d.ts +6 -2
  204. package/mobile/bundle/ui-kit/Button/ButtonProps.d.ts +5 -1
  205. package/mobile/bundle/ui-kit/Button/ButtonSection.d.ts +9 -1
  206. package/{dist/components/OfficeMap → mobile/bundle/ui-kit/YandexMap}/YandexMap.d.ts +4 -1
  207. package/mobile/bundle/ui-kit/YandexMap/ZoomButton.d.ts +7 -0
  208. package/mobile/bundle/ui-kit/YandexMap/mockPoints.d.ts +5 -0
  209. package/mobile/bundle/ui-kit/YandexMap/renderClusterer.d.ts +2 -0
  210. package/mobile/bundle/ui-kit/YandexMap/renderOpenMap.d.ts +2 -0
  211. package/mobile/bundle/ui-kit/YandexMap/renderSearchField.d.ts +4 -0
  212. package/mobile/bundle/ui-kit/YandexMap/renderUserGeolocation.d.ts +3 -0
  213. package/mobile/bundle/ui-kit/YandexMap/useYandexMaps.d.ts +2 -0
  214. package/mobile/dist/components/Bonus/BonusContent.d.ts +1 -0
  215. package/mobile/dist/components/Catalog/CatalogCard.js +2 -2
  216. package/mobile/dist/components/Catalog/CatalogCard.js.map +1 -1
  217. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
  218. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  219. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.d.ts +0 -1
  220. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
  221. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  222. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +7 -3
  223. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +15 -15
  224. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  225. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +11 -11
  226. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  227. package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.d.ts +1 -1
  228. package/mobile/dist/components/ExchangeRateTile/renderInput.js +4 -1
  229. package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
  230. package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +17 -0
  231. package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.js +43 -0
  232. package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.js.map +1 -0
  233. package/mobile/dist/components/Gallery/GalleryCardInner.js +2 -2
  234. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  235. package/mobile/dist/components/Gallery/GalleryInner.js +2 -2
  236. package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
  237. package/mobile/dist/components/Header/DropdownMenu.js +1 -1
  238. package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
  239. package/mobile/dist/components/Header/HeaderSubMenu.js +16 -11
  240. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  241. package/mobile/dist/components/OfficeMap/OfficeMap.js +6 -10
  242. package/mobile/dist/components/OfficeMap/OfficeMap.js.map +1 -1
  243. package/mobile/dist/components/OfficeMap/nearbyOffices.d.ts +2 -0
  244. package/mobile/dist/components/OfficeMap/nearbyOffices.js +9 -0
  245. package/mobile/dist/components/OfficeMap/nearbyOffices.js.map +1 -0
  246. package/mobile/dist/components/OfficeMap/renderFunctions.d.ts +1 -1
  247. package/mobile/dist/components/OfficeMap/renderFunctions.js +1 -1
  248. package/mobile/dist/components/OfficeMap/renderFunctions.js.map +1 -1
  249. package/mobile/dist/{hooks → components/OfficeMap}/useOfficeMap.d.ts +0 -0
  250. package/{dist/hooks → mobile/dist/components/OfficeMap}/useOfficeMap.js +1 -1
  251. package/mobile/dist/components/OfficeMap/useOfficeMap.js.map +1 -0
  252. package/mobile/dist/components/PictureText/PictureText.js +1 -1
  253. package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
  254. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +2 -2
  255. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  256. package/mobile/dist/components/TariffsTable/EmbeddableCellData.js +5 -2
  257. package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  258. package/mobile/dist/components/TariffsTable/dataFixture.js +2 -4
  259. package/mobile/dist/components/TariffsTable/dataFixture.js.map +1 -1
  260. package/mobile/dist/icons/IconName.d.ts +6 -2
  261. package/mobile/dist/icons/IconName.js +5 -1
  262. package/mobile/dist/icons/IconName.js.map +1 -1
  263. package/mobile/dist/ui-kit/BlockWrapper.js +4 -3
  264. package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
  265. package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +5 -1
  266. package/mobile/dist/ui-kit/Button/ButtonSection.d.ts +9 -1
  267. package/mobile/dist/ui-kit/Button/ButtonSection.js +18 -6
  268. package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  269. package/mobile/dist/ui-kit/IntersectionObserverTag.js +10 -10
  270. package/mobile/dist/ui-kit/IntersectionObserverTag.js.map +1 -1
  271. package/mobile/dist/ui-kit/YandexMap/YandexMap.d.ts +8 -0
  272. package/mobile/dist/ui-kit/YandexMap/YandexMap.js +86 -0
  273. package/mobile/dist/ui-kit/YandexMap/YandexMap.js.map +1 -0
  274. package/mobile/dist/ui-kit/YandexMap/ZoomButton.d.ts +7 -0
  275. package/mobile/dist/ui-kit/YandexMap/ZoomButton.js +26 -0
  276. package/mobile/dist/ui-kit/YandexMap/ZoomButton.js.map +1 -0
  277. package/mobile/dist/ui-kit/YandexMap/mockPoints.d.ts +5 -0
  278. package/mobile/dist/ui-kit/YandexMap/mockPoints.js +28 -0
  279. package/mobile/dist/ui-kit/YandexMap/mockPoints.js.map +1 -0
  280. package/mobile/dist/ui-kit/YandexMap/renderClusterer.d.ts +2 -0
  281. package/mobile/dist/ui-kit/YandexMap/renderClusterer.js +35 -0
  282. package/mobile/dist/ui-kit/YandexMap/renderClusterer.js.map +1 -0
  283. package/mobile/dist/ui-kit/YandexMap/renderOpenMap.d.ts +2 -0
  284. package/mobile/dist/ui-kit/YandexMap/renderOpenMap.js +19 -0
  285. package/mobile/dist/ui-kit/YandexMap/renderOpenMap.js.map +1 -0
  286. package/mobile/dist/ui-kit/YandexMap/renderSearchField.d.ts +4 -0
  287. package/mobile/dist/ui-kit/YandexMap/renderSearchField.js +31 -0
  288. package/mobile/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -0
  289. package/mobile/dist/ui-kit/YandexMap/renderUserGeolocation.d.ts +3 -0
  290. package/mobile/dist/ui-kit/YandexMap/renderUserGeolocation.js +31 -0
  291. package/mobile/dist/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -0
  292. package/mobile/dist/ui-kit/YandexMap/useYandexMaps.d.ts +2 -0
  293. package/mobile/dist/ui-kit/YandexMap/useYandexMaps.js +11 -0
  294. package/mobile/dist/ui-kit/YandexMap/useYandexMaps.js.map +1 -0
  295. package/mobile/lib/components/Bonus/BonusContent.d.ts +1 -0
  296. package/mobile/lib/components/Catalog/CatalogCard.js +2 -2
  297. package/mobile/lib/components/Catalog/CatalogCard.js.map +1 -1
  298. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
  299. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  300. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.d.ts +0 -1
  301. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  302. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  303. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +7 -3
  304. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +15 -15
  305. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  306. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +11 -11
  307. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  308. package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.d.ts +1 -1
  309. package/mobile/lib/components/ExchangeRateTile/renderInput.js +4 -1
  310. package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
  311. package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +17 -0
  312. package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.js +39 -0
  313. package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.js.map +1 -0
  314. package/mobile/lib/components/Gallery/GalleryCardInner.js +2 -2
  315. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  316. package/mobile/lib/components/Gallery/GalleryInner.js +2 -2
  317. package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
  318. package/mobile/lib/components/Header/DropdownMenu.js +1 -1
  319. package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
  320. package/mobile/lib/components/Header/HeaderSubMenu.js +17 -12
  321. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  322. package/mobile/lib/components/OfficeMap/OfficeMap.js +6 -10
  323. package/mobile/lib/components/OfficeMap/OfficeMap.js.map +1 -1
  324. package/mobile/lib/components/OfficeMap/nearbyOffices.d.ts +2 -0
  325. package/mobile/lib/components/OfficeMap/nearbyOffices.js +7 -0
  326. package/mobile/lib/components/OfficeMap/nearbyOffices.js.map +1 -0
  327. package/mobile/lib/components/OfficeMap/renderFunctions.d.ts +1 -1
  328. package/mobile/lib/components/OfficeMap/renderFunctions.js +1 -1
  329. package/mobile/lib/components/OfficeMap/renderFunctions.js.map +1 -1
  330. package/mobile/lib/{hooks → components/OfficeMap}/useOfficeMap.d.ts +0 -0
  331. package/{lib/hooks → mobile/lib/components/OfficeMap}/useOfficeMap.js +1 -1
  332. package/mobile/lib/components/OfficeMap/useOfficeMap.js.map +1 -0
  333. package/mobile/lib/components/PictureText/PictureText.js +1 -1
  334. package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
  335. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +2 -2
  336. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  337. package/mobile/lib/components/TariffsTable/EmbeddableCellData.js +5 -2
  338. package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  339. package/mobile/lib/components/TariffsTable/dataFixture.js +2 -4
  340. package/mobile/lib/components/TariffsTable/dataFixture.js.map +1 -1
  341. package/mobile/lib/icons/IconName.d.ts +6 -2
  342. package/mobile/lib/icons/IconName.js +5 -1
  343. package/mobile/lib/icons/IconName.js.map +1 -1
  344. package/mobile/lib/ui-kit/BlockWrapper.js +4 -3
  345. package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
  346. package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +5 -1
  347. package/mobile/lib/ui-kit/Button/ButtonSection.d.ts +9 -1
  348. package/mobile/lib/ui-kit/Button/ButtonSection.js +16 -5
  349. package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  350. package/mobile/lib/ui-kit/IntersectionObserverTag.js +11 -11
  351. package/mobile/lib/ui-kit/IntersectionObserverTag.js.map +1 -1
  352. package/mobile/lib/ui-kit/YandexMap/YandexMap.d.ts +8 -0
  353. package/mobile/lib/ui-kit/YandexMap/YandexMap.js +84 -0
  354. package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -0
  355. package/mobile/lib/ui-kit/YandexMap/ZoomButton.d.ts +7 -0
  356. package/mobile/lib/ui-kit/YandexMap/ZoomButton.js +24 -0
  357. package/mobile/lib/ui-kit/YandexMap/ZoomButton.js.map +1 -0
  358. package/mobile/lib/ui-kit/YandexMap/mockPoints.d.ts +5 -0
  359. package/mobile/lib/ui-kit/YandexMap/mockPoints.js +26 -0
  360. package/mobile/lib/ui-kit/YandexMap/mockPoints.js.map +1 -0
  361. package/mobile/lib/ui-kit/YandexMap/renderClusterer.d.ts +2 -0
  362. package/mobile/lib/ui-kit/YandexMap/renderClusterer.js +32 -0
  363. package/mobile/lib/ui-kit/YandexMap/renderClusterer.js.map +1 -0
  364. package/mobile/lib/ui-kit/YandexMap/renderOpenMap.d.ts +2 -0
  365. package/mobile/lib/ui-kit/YandexMap/renderOpenMap.js +16 -0
  366. package/mobile/lib/ui-kit/YandexMap/renderOpenMap.js.map +1 -0
  367. package/mobile/lib/ui-kit/YandexMap/renderSearchField.d.ts +4 -0
  368. package/mobile/lib/ui-kit/YandexMap/renderSearchField.js +28 -0
  369. package/mobile/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -0
  370. package/mobile/lib/ui-kit/YandexMap/renderUserGeolocation.d.ts +3 -0
  371. package/mobile/lib/ui-kit/YandexMap/renderUserGeolocation.js +28 -0
  372. package/mobile/lib/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -0
  373. package/mobile/lib/ui-kit/YandexMap/useYandexMaps.d.ts +2 -0
  374. package/mobile/lib/ui-kit/YandexMap/useYandexMaps.js +8 -0
  375. package/mobile/lib/ui-kit/YandexMap/useYandexMaps.js.map +1 -0
  376. package/mobile/src/common.css +9 -0
  377. package/mobile/src/components/Bonus/Bonus.example.json +1 -6
  378. package/mobile/src/components/Bonus/BonusContent.ts +1 -0
  379. package/mobile/src/components/Catalog/CatalogCard.tsx +2 -2
  380. package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +8 -6
  381. package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +8 -15
  382. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +31 -19
  383. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +14 -13
  384. package/mobile/src/components/ExchangeRateTile/callbackCurrencySelect.ts +1 -1
  385. package/mobile/src/components/ExchangeRateTile/renderInput.tsx +5 -2
  386. package/mobile/src/components/ExchangeRateTile/useFetchExchangeRateData.ts +71 -0
  387. package/mobile/src/components/Gallery/GalleryCardInner.tsx +2 -2
  388. package/mobile/src/components/Gallery/GalleryInner.tsx +2 -2
  389. package/mobile/src/components/Header/DropdownMenu.tsx +5 -5
  390. package/mobile/src/components/Header/HeaderSubMenu.tsx +36 -20
  391. package/mobile/src/components/OfficeMap/OfficeMap.tsx +10 -17
  392. package/mobile/src/components/OfficeMap/nearbyOffices.ts +8 -0
  393. package/mobile/src/components/OfficeMap/renderFunctions.tsx +5 -2
  394. package/mobile/src/{hooks → components/OfficeMap}/useOfficeMap.ts +1 -1
  395. package/mobile/src/components/PictureText/PictureText.tsx +1 -1
  396. package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
  397. package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +7 -11
  398. package/mobile/src/components/TariffsTable/dataFixture.tsx +2 -3
  399. package/mobile/src/icons/FullScreenIcon.svg +8 -0
  400. package/mobile/src/icons/IconName.ts +5 -5
  401. package/mobile/src/icons/UserGeoLocationIcon.svg +3 -0
  402. package/mobile/src/ui-kit/BlockWrapper.tsx +5 -3
  403. package/mobile/src/ui-kit/Button/ButtonProps.ts +5 -1
  404. package/mobile/src/ui-kit/Button/ButtonSection.tsx +41 -16
  405. package/mobile/src/ui-kit/IntersectionObserverTag.tsx +13 -17
  406. package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +128 -0
  407. package/mobile/src/ui-kit/YandexMap/ZoomButton.tsx +38 -0
  408. package/mobile/src/ui-kit/YandexMap/mockPoints.ts +30 -0
  409. package/mobile/src/ui-kit/YandexMap/renderClusterer.ts +51 -0
  410. package/mobile/src/ui-kit/YandexMap/renderOpenMap.tsx +26 -0
  411. package/mobile/src/ui-kit/YandexMap/renderSearchField.tsx +51 -0
  412. package/mobile/src/ui-kit/YandexMap/renderUserGeolocation.tsx +43 -0
  413. package/mobile/src/ui-kit/YandexMap/useYandexMaps.ts +11 -0
  414. package/package.json +1 -1
  415. package/src/common.css +9 -0
  416. package/src/components/Bonus/Bonus.example.json +1 -6
  417. package/src/components/Bonus/BonusContent.ts +1 -0
  418. package/src/components/Catalog/Catalog.fixture.tsx +3 -10
  419. package/src/components/Catalog/CatalogCard.tsx +2 -2
  420. package/src/components/ExchangeRateTile/CurrencyTable.tsx +8 -6
  421. package/src/components/ExchangeRateTile/CurrentLocation.tsx +8 -15
  422. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +31 -19
  423. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +14 -13
  424. package/src/components/ExchangeRateTile/callbackCurrencySelect.ts +1 -1
  425. package/src/components/ExchangeRateTile/renderInput.tsx +5 -2
  426. package/src/components/ExchangeRateTile/useFetchExchangeRateData.ts +71 -0
  427. package/src/components/Gallery/Gallery.fixture.tsx +1 -2
  428. package/src/components/Gallery/GalleryCardInner.tsx +2 -2
  429. package/src/components/Gallery/GalleryInner.tsx +2 -2
  430. package/src/components/Header/DropdownMenu.tsx +5 -5
  431. package/src/components/Header/HeaderSubMenu.tsx +36 -20
  432. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +3 -14
  433. package/src/components/OfficeMap/OfficeMap.tsx +10 -17
  434. package/src/components/OfficeMap/nearbyOffices.ts +8 -0
  435. package/src/components/OfficeMap/renderFunctions.tsx +5 -2
  436. package/src/{hooks → components/OfficeMap}/useOfficeMap.ts +1 -1
  437. package/src/components/PictureText/PictureText.tsx +1 -1
  438. package/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
  439. package/src/components/StepsBlock/StepsBlock.fixture.tsx +2 -0
  440. package/src/components/TariffsTable/EmbeddableCellData.mobile.tsx +7 -11
  441. package/src/components/TariffsTable/EmbeddableCellData.tsx +7 -9
  442. package/src/components/TariffsTable/dataFixture.tsx +2 -3
  443. package/src/icons/FullScreenIcon.svg +8 -0
  444. package/src/icons/IconName.ts +9 -1
  445. package/src/icons/UserGeoLocationIcon.svg +3 -0
  446. package/src/ui-kit/BlockWrapper.tsx +5 -3
  447. package/src/ui-kit/Button/ButtonProps.ts +5 -1
  448. package/src/ui-kit/Button/ButtonSection.tsx +41 -16
  449. package/src/ui-kit/IntersectionObserverTag.tsx +13 -17
  450. package/src/ui-kit/YandexMap/YandexMap.tsx +128 -0
  451. package/src/ui-kit/YandexMap/ZoomButton.tsx +38 -0
  452. package/src/ui-kit/YandexMap/mockPoints.ts +30 -0
  453. package/src/ui-kit/YandexMap/renderClusterer.ts +51 -0
  454. package/src/ui-kit/YandexMap/renderOpenMap.tsx +26 -0
  455. package/src/ui-kit/YandexMap/renderSearchField.tsx +51 -0
  456. package/src/ui-kit/YandexMap/renderUserGeolocation.tsx +43 -0
  457. package/src/ui-kit/YandexMap/useYandexMaps.ts +11 -0
  458. package/bundle/hooks/useExchangeRates.d.ts +0 -2
  459. package/dist/components/OfficeMap/YandexMap.js +0 -30
  460. package/dist/components/OfficeMap/YandexMap.js.map +0 -1
  461. package/dist/hooks/useExchangeRates.d.ts +0 -2
  462. package/dist/hooks/useExchangeRates.js +0 -57
  463. package/dist/hooks/useExchangeRates.js.map +0 -1
  464. package/dist/hooks/useOfficeMap.js.map +0 -1
  465. package/lib/components/OfficeMap/YandexMap.js +0 -28
  466. package/lib/components/OfficeMap/YandexMap.js.map +0 -1
  467. package/lib/hooks/useExchangeRates.d.ts +0 -2
  468. package/lib/hooks/useExchangeRates.js +0 -54
  469. package/lib/hooks/useExchangeRates.js.map +0 -1
  470. package/lib/hooks/useOfficeMap.js.map +0 -1
  471. package/mobile/bundle/hooks/useExchangeRates.d.ts +0 -2
  472. package/mobile/dist/components/OfficeMap/YandexMap.d.ts +0 -5
  473. package/mobile/dist/components/OfficeMap/YandexMap.js +0 -30
  474. package/mobile/dist/components/OfficeMap/YandexMap.js.map +0 -1
  475. package/mobile/dist/hooks/useExchangeRates.d.ts +0 -2
  476. package/mobile/dist/hooks/useExchangeRates.js +0 -57
  477. package/mobile/dist/hooks/useExchangeRates.js.map +0 -1
  478. package/mobile/dist/hooks/useOfficeMap.js.map +0 -1
  479. package/mobile/lib/components/OfficeMap/YandexMap.d.ts +0 -5
  480. package/mobile/lib/components/OfficeMap/YandexMap.js +0 -28
  481. package/mobile/lib/components/OfficeMap/YandexMap.js.map +0 -1
  482. package/mobile/lib/hooks/useExchangeRates.d.ts +0 -2
  483. package/mobile/lib/hooks/useExchangeRates.js +0 -54
  484. package/mobile/lib/hooks/useExchangeRates.js.map +0 -1
  485. package/mobile/lib/hooks/useOfficeMap.js.map +0 -1
  486. package/mobile/src/components/OfficeMap/YandexMap.tsx +0 -41
  487. package/mobile/src/hooks/useExchangeRates.ts +0 -76
  488. package/src/components/OfficeMap/YandexMap.tsx +0 -41
  489. package/src/hooks/useExchangeRates.ts +0 -76
@@ -4,21 +4,14 @@ import { Img } from '../../ui-kit/Img/Img';
4
4
  interface CurrentLocationProps {
5
5
  className?: string;
6
6
  address?: string;
7
- distance?: string;
8
7
  }
9
8
 
10
- export const CurrentLocation = JSX<CurrentLocationProps>(
11
- ({ className = '', address, distance }) => (
12
- <div className={`flex ${className}`}>
13
- <Img image={{ icon: 'GpsIcon' }} width="24" height="24" asSVG />
14
- <div className="ml-3">
15
- {address ? <p className="text-primary-main m-0 mb-1 text-l">{address}</p> : null}
16
- {distance ? (
17
- <p className="text-secondary-text m-0 text-m-light">
18
- Курс указан для ближайшего офиса - {distance}
19
- </p>
20
- ) : null}
21
- </div>
9
+ export const CurrentLocation = JSX<CurrentLocationProps>(({ className = '', address }) => (
10
+ <div className={`flex ${className}`}>
11
+ <Img image={{ icon: 'GpsIcon' }} width="24" height="24" asSVG />
12
+ <div className="ml-3">
13
+ {address ? <p className="text-primary-main m-0 mb-1 text-l">{address}</p> : null}
14
+ <p className="text-secondary-text m-0 text-m">Курс указан для ближайшего офиса</p>
22
15
  </div>
23
- ),
24
- );
16
+ </div>
17
+ ));
@@ -10,9 +10,13 @@ import { Currency } from './CurrencyProps';
10
10
  import { renderInput } from './renderInput';
11
11
 
12
12
  export interface ExchangeCurrencyItem {
13
- code?: Currency;
14
- buy?: number;
15
- sell?: number;
13
+ currency?: {
14
+ id?: number;
15
+ code?: string;
16
+ currency?: Currency;
17
+ };
18
+ buyExchangeRate?: number;
19
+ saleExchangeRate?: number;
16
20
  }
17
21
  export interface ExchangeCurrencyCalculatorProps extends UniBlockProps {
18
22
  className?: string;
@@ -35,8 +39,8 @@ export const ExchangeCurrencyCalculator = JSX<ExchangeCurrencyCalculatorProps>(
35
39
  const [calcState, setCalcState] = useState<CalcState>({
36
40
  inputSell: '',
37
41
  inputBuy: '',
38
- selectSell: currencyRatesBuy?.[0]?.code || Currency.RUB,
39
- selectBuy: currencyRatesSell?.[0]?.code || Currency.USD,
42
+ selectSell: currencyRatesBuy?.[0]?.currency?.currency || Currency.RUB,
43
+ selectBuy: currencyRatesSell?.[0]?.currency?.currency || Currency.USD,
40
44
  });
41
45
 
42
46
  const handleSetCalcState = (newState: Partial<CalcState>) => {
@@ -96,8 +100,12 @@ const handleSelectSell =
96
100
  callbackCurrencySelect({
97
101
  value,
98
102
  oppositeValue: calcState.selectBuy,
99
- handleConvert: (codeFrom = calcState.selectSell, codeTo = calcState.selectBuy) => {
100
- handleInputSell(setCalcState, currencyRatesSell)(calcState.inputSell, codeFrom, codeTo);
103
+ handleConvert: (currencyFrom = calcState.selectSell, currencyTo = calcState.selectBuy) => {
104
+ handleInputSell(setCalcState, currencyRatesSell)(
105
+ calcState.inputSell,
106
+ currencyFrom,
107
+ currencyTo,
108
+ );
101
109
  },
102
110
  });
103
111
  };
@@ -113,35 +121,39 @@ const handleSelectBuy =
113
121
  callbackCurrencySelect({
114
122
  value,
115
123
  oppositeValue: calcState.selectSell,
116
- handleConvert: (codeTo = calcState.selectBuy, codeFrom = calcState.selectSell) =>
117
- handleInputBuy(setCalcState, currencyRatesBuy)(calcState.inputBuy, codeTo, codeFrom),
124
+ handleConvert: (currencyTo = calcState.selectBuy, currencyFrom = calcState.selectSell) =>
125
+ handleInputBuy(setCalcState, currencyRatesBuy)(
126
+ calcState.inputBuy,
127
+ currencyTo,
128
+ currencyFrom,
129
+ ),
118
130
  });
119
131
  };
120
132
 
121
133
  const handleInputSell =
122
134
  (setCalcState: (state: Partial<CalcState>) => void, currencyRatesSell: ExchangeCurrencyItem[]) =>
123
- (value: string, codeFrom: Currency, codeTo: Currency) => {
124
- setCalcState({ inputSell: formatValue(value), selectBuy: codeTo });
135
+ (value: string, currencyFrom: Currency, currencyTo: Currency) => {
136
+ setCalcState({ inputSell: formatValue(value), selectBuy: currencyTo });
125
137
  const rate =
126
- currencyRatesSell.find((_) => _.code === codeTo)?.buy ||
127
- currencyRatesSell.find((_) => _.code === codeFrom)?.sell;
138
+ currencyRatesSell.find((_) => _.currency?.currency === currencyTo)?.buyExchangeRate ||
139
+ currencyRatesSell.find((_) => _.currency?.currency === currencyFrom)?.saleExchangeRate;
128
140
  if (rate) {
129
141
  setCalcState({
130
- inputBuy: String(calculateResult(value, rate, codeFrom === Currency.RUB) || ''),
142
+ inputBuy: String(calculateResult(value, rate, currencyFrom === Currency.RUB) || ''),
131
143
  });
132
144
  }
133
145
  };
134
146
 
135
147
  const handleInputBuy =
136
148
  (setCalcState: (state: Partial<CalcState>) => void, currencyRatesBuy: ExchangeCurrencyItem[]) =>
137
- (value: string, codeTo: Currency, codeFrom: Currency) => {
138
- setCalcState({ inputBuy: formatValue(value), selectSell: codeFrom });
149
+ (value: string, currencyTo: Currency, currencyFrom: Currency) => {
150
+ setCalcState({ inputBuy: formatValue(value), selectSell: currencyFrom });
139
151
  const rate =
140
- currencyRatesBuy.find((_) => _.code === codeFrom)?.sell ||
141
- currencyRatesBuy.find((_) => _.code === codeTo)?.buy;
152
+ currencyRatesBuy.find((_) => _.currency?.currency === currencyFrom)?.saleExchangeRate ||
153
+ currencyRatesBuy.find((_) => _.currency?.currency === currencyTo)?.buyExchangeRate;
142
154
  if (rate) {
143
155
  setCalcState({
144
- inputSell: String(calculateResult(value, rate, codeTo === Currency.RUB) || ''),
156
+ inputSell: String(calculateResult(value, rate, currencyTo === Currency.RUB) || ''),
145
157
  });
146
158
  }
147
159
  };
@@ -1,5 +1,4 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useExchangeRates } from '../../hooks/useExchangeRates';
3
2
  import type { UniBlockProps } from '../../model/JSXBlock';
4
3
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
5
4
  import { Heading } from '../../ui-kit/Heading/Heading';
@@ -7,25 +6,23 @@ import { BaseTile } from '../BaseTile/BaseTile';
7
6
  import { Currency } from './CurrencyProps';
8
7
  import { CurrencyTable } from './CurrencyTable';
9
8
  import { CurrentLocation } from './CurrentLocation';
10
- import { ExchangeCurrencyCalculator } from './ExchangeCurrencyCalculator';
9
+ import { ExchangeCurrencyCalculator, ExchangeCurrencyItem } from './ExchangeCurrencyCalculator';
11
10
  import type { ExchangeRateTileContent } from './ExchangeRateTileContent';
12
-
13
- const DEFAULT_LOCATION = {
14
- address: 'Москва, ул.Ленина д.28',
15
- distance: '6км',
16
- };
11
+ import { useFetchExchangeRateData } from './useFetchExchangeRateData';
17
12
 
18
13
  export interface ExchangeRateTileProps extends ExchangeRateTileContent, UniBlockProps {}
19
14
 
20
15
  export const ExchangeRateTile = JSX<ExchangeRateTileProps>(
21
16
  ({ className = '', context, title = 'Курсы обмена валют', button, ...rest }) => {
22
- const currencyRates = useExchangeRates();
17
+ const { exchangeRates } = useFetchExchangeRateData();
18
+
19
+ const currencyRates = getCurrencyRates(exchangeRates?.exchangeRate?.currencies);
23
20
 
24
- const currencyRatesBuy = currencyRates.filter((_) => _.buy);
25
- currencyRatesBuy.unshift({ code: Currency.RUB });
21
+ const currencyRatesBuy = currencyRates.filter((_) => _.buyExchangeRate);
22
+ currencyRatesBuy.unshift({ currency: { currency: Currency.RUB } });
26
23
 
27
- const currencyRatesSell = currencyRates.filter((_) => _.sell);
28
- currencyRatesSell.push({ code: Currency.RUB });
24
+ const currencyRatesSell = currencyRates.filter((_) => _.saleExchangeRate);
25
+ currencyRatesSell.push({ currency: { currency: Currency.RUB } });
29
26
 
30
27
  return (
31
28
  <BlockWrapper
@@ -44,7 +41,7 @@ export const ExchangeRateTile = JSX<ExchangeRateTileProps>(
44
41
  {currencyRates ? (
45
42
  <CurrencyTable className="mb-[30px]" exchangeCurrencyItems={currencyRates} />
46
43
  ) : null}
47
- <CurrentLocation {...DEFAULT_LOCATION} />
44
+ <CurrentLocation address={exchangeRates?.address} />
48
45
  </div>
49
46
  {currencyRates.length && currencyRatesBuy.length && currencyRatesSell.length ? (
50
47
  <ExchangeCurrencyCalculator
@@ -61,3 +58,7 @@ export const ExchangeRateTile = JSX<ExchangeRateTileProps>(
61
58
  );
62
59
  },
63
60
  );
61
+
62
+ const getCurrencyRates = (currencies?: ExchangeCurrencyItem[]) => {
63
+ return currencies?.filter((_) => _?.currency?.id === 1 || _?.currency?.id === 2) || [];
64
+ };
@@ -4,7 +4,7 @@ import { Currency } from './CurrencyProps';
4
4
  interface TableFuncProps {
5
5
  value: Currency;
6
6
  oppositeValue: Currency;
7
- handleConvert: (codeFrom?: Currency, codeTo?: Currency) => void;
7
+ handleConvert: (currencyFrom?: Currency, currencyTo?: Currency) => void;
8
8
  }
9
9
 
10
10
  export const callbackCurrencySelect = (props: TableFuncProps) =>
@@ -1,6 +1,6 @@
1
1
  import { Input } from '../../ui-kit/Input/Input';
2
- import { Select } from '../../ui-kit/Select/Select';
3
2
  import type { OptionProps } from '../../ui-kit/Select/Select';
3
+ import { Select } from '../../ui-kit/Select/Select';
4
4
  import type { Currency } from './CurrencyProps';
5
5
  import type { ExchangeCurrencyItem } from './ExchangeCurrencyCalculator';
6
6
 
@@ -15,7 +15,10 @@ interface InputProps {
15
15
 
16
16
  export function renderInput(props: InputProps) {
17
17
  const { placeholder, rates, selected, value, setValue, setSelected } = props;
18
- const ratesOptions: OptionProps[] = rates.map((_) => ({ key: _.code ?? '', text: _.code ?? '' }));
18
+ const ratesOptions: OptionProps[] = rates.map((_) => ({
19
+ key: _?.currency?.currency ?? '',
20
+ text: _?.currency?.currency ?? '',
21
+ }));
19
22
  const selectedValue: OptionProps = { key: selected, text: selected };
20
23
 
21
24
  return (
@@ -0,0 +1,71 @@
1
+ import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
2
+ import { ExchangeCurrencyItem } from '../../components/ExchangeRateTile/ExchangeCurrencyCalculator';
3
+ import { fetchJSONUnsafe } from '../../utils/fetchJSON';
4
+
5
+ export interface ExchangeData {
6
+ exchangeRate?: {
7
+ currencies?: ExchangeCurrencyItem[];
8
+ };
9
+ address?: string;
10
+ }
11
+
12
+ export interface RegionData {
13
+ id?: number;
14
+ code?: string;
15
+ name?: string;
16
+ }
17
+
18
+ const EXCHANGE_RATES_URL = '/api/v1/exchangerates';
19
+ const REGION_URL = '/api/v1/region';
20
+
21
+ export function useFetchExchangeRateData() {
22
+ const { data } = useAsyncData<{
23
+ region?: RegionData;
24
+ exchangeRates?: ExchangeData;
25
+ }>(EXCHANGE_RATES_URL, fetchData);
26
+
27
+ return data || {};
28
+ }
29
+
30
+ export function useCurrentPosition() {
31
+ const { data } = useAsyncData<RegionData>(REGION_URL, fetchJSONUnsafe);
32
+
33
+ return data || {};
34
+ }
35
+
36
+ const fetchData = async (
37
+ urlExchangeRates: string,
38
+ ): Promise<{
39
+ region: RegionData;
40
+ exchangeRates: ExchangeData;
41
+ }> => {
42
+ const region = await fetchRegion();
43
+
44
+ const regionCode = region?.code || '000';
45
+
46
+ const exchangeRates = await fetchExchangeRates(urlExchangeRates, regionCode);
47
+
48
+ return { region, exchangeRates };
49
+ };
50
+
51
+ const fetchRegion = async (): Promise<RegionData> => {
52
+ try {
53
+ return await fetchJSONUnsafe<RegionData>(REGION_URL, { method: 'GET' });
54
+ } catch (error) {
55
+ console.log(error);
56
+
57
+ return {};
58
+ }
59
+ };
60
+
61
+ const fetchExchangeRates = async (url: string, regionCode: string): Promise<ExchangeData> => {
62
+ try {
63
+ return await fetchJSONUnsafe<ExchangeData>(url + `?regionCode=${regionCode}`, {
64
+ method: 'GET',
65
+ });
66
+ } catch (error) {
67
+ console.log(error);
68
+
69
+ return {};
70
+ }
71
+ };
@@ -1,7 +1,6 @@
1
1
  import type { Picture } from '../../model/Picture';
2
2
  import { context } from '../../react/setup-fixture';
3
3
  import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
4
- import { Img } from '../../ui-kit/Img/Img';
5
4
  import { Gallery } from './Gallery';
6
5
  import type { GalleryProps } from './GalleryProps';
7
6
  const isDotted = true;
@@ -28,7 +27,7 @@ const buttonPrimaryIcon: ButtonWithIconProps = {
28
27
  text: 'Подробнее',
29
28
  target: '_blank',
30
29
  version: 'secondary',
31
- appendLeft: <Img image={{ icon: 'BankIcon' }} width="24" height="24" asSVG />,
30
+ icon: { icon: 'BankIcon' },
32
31
  };
33
32
 
34
33
  const defaultItems = [
@@ -2,7 +2,7 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import { AlignText } from '../../model/AlignText';
3
3
  import type { BlockVersion } from '../../model/BlockVersion';
4
4
  import type { Picture } from '../../model/Picture';
5
- import { Button } from '../../ui-kit/Button/Button';
5
+ import { renderButton } from '../../ui-kit/Button/ButtonSection';
6
6
  import { Img } from '../../ui-kit/Img/Img';
7
7
  import { List } from '../../ui-kit/List/List';
8
8
  import { HEADLINE_SMALL_VERSION } from '../Headline/constants';
@@ -30,7 +30,7 @@ export const GalleryCardInner = JSX<GalleryCardProps>(
30
30
  {items?.length ? renderItems(items, isDotted, version) : null}
31
31
  {renderAdditionalDescription(additionalDescription)}
32
32
  </div>
33
- {button?.text ? <Button className="mt-6" {...button} /> : null}
33
+ {button?.text ? renderButton({ button, buttonClassName: 'mt-6' }) : null}
34
34
  </div>
35
35
  );
36
36
  },
@@ -3,11 +3,11 @@ import { useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import type { GalleryVersion } from '../../model/GalleryVersion';
4
4
  import type { UniBlockProps } from '../../model/JSXBlock';
5
5
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
6
+ import { renderButton } from '../../ui-kit/Button/ButtonSection';
6
7
  import { renderArrows } from '../../ui-kit/Button/renderArrows';
7
8
  import { galleryLengthForScrollMap } from './constants';
8
9
  import { GalleryContainer } from './GalleryContainer';
9
10
  import type { GalleryContent } from './GalleryContent';
10
- import { Button } from '../../ui-kit/Button/Button';
11
11
 
12
12
  export interface GalleryInnerProps extends GalleryContent, UniBlockProps {
13
13
  version?: GalleryVersion;
@@ -54,7 +54,7 @@ export const GalleryInner = JSX<GalleryInnerProps>(
54
54
  </div>
55
55
  ) : null}
56
56
 
57
- {button ? <Button className="mt-8 mx-auto" {...button} /> : null}
57
+ {button ? renderButton({ button, buttonClassName: 'mt-8 mx-auto' }) : null}
58
58
  </BlockWrapper>
59
59
  );
60
60
  },
@@ -67,15 +67,15 @@ const renderDotsSubMenuItems = ({
67
67
  }: DotsSubMenuItemsProps) => {
68
68
  const isActive = (item: LinkProps) => item === activeSubItem;
69
69
 
70
- return menuItems?.map((_) => (
70
+ return menuItems?.map(({ text, ...rest }) => (
71
71
  <a
72
- key={_.href}
73
- {...useLink({ router, handlerDecorator }, _)}
72
+ key={rest.href}
73
+ {...useLink({ router, handlerDecorator }, rest)}
74
74
  className={`text-l-light pb-4 hover:text-primary-main ${
75
- isActive(_) ? 'text-primary-main' : ''
75
+ isActive(rest) ? 'text-primary-main' : ''
76
76
  }`}
77
77
  >
78
- {_.text}
78
+ {text}
79
79
  </a>
80
80
  ));
81
81
  };
@@ -1,5 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useState } from '@redneckz/uni-jsx/lib/hooks';
2
+ import { useMemo, useRef, useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { useLink } from '../../hooks/useLink';
4
4
  import type { BgColorVersion } from '../../model/BgColorVersion';
5
5
  import type { LinkProps } from '../../model/LinkProps';
@@ -16,39 +16,52 @@ export interface HeaderSubMenuProps {
16
16
  }
17
17
 
18
18
  export const HeaderSubMenu = JSX<HeaderSubMenuProps>(({ context, subItems = [], bgColor }) => {
19
- const [menuVisible, setMenuVisible] = useState(false);
20
- const router = context.useRouter();
21
19
  const { handlerDecorator } = context;
20
+ const router = context.useRouter();
21
+
22
+ const subItemsListRef = useRef<HTMLDivElement | null>(null);
23
+
24
+ const [menuVisible, setMenuVisible] = useState(false);
22
25
 
23
26
  const [visibleItemsCount, setVisibleItemsCount] = useState(subItems.length);
24
27
  const dropDownMenuItems = subItems.slice(visibleItemsCount);
25
28
 
26
- const activeSubItem = findActiveSubItem(router)(subItems);
27
- const toggleMenu = () => setMenuVisible(!menuVisible);
29
+ const observerOptions = useMemo(
30
+ () => ({ threshold: 1, root: subItemsListRef.current }),
31
+ [subItemsListRef.current],
32
+ );
33
+
34
+ const observerCallbacks = useMemo(
35
+ () =>
36
+ subItems.map((_, index) => (entries: IntersectionObserverEntry[]) => {
37
+ if (!entries.length) {
38
+ return;
39
+ }
28
40
 
29
- const observerCallback = (itemIndex: number) => (entries: IntersectionObserverEntry[]) => {
30
- if (!entries.length) {
31
- return;
32
- }
41
+ // Assumption about sorting entries by time
42
+ const entry = entries[entries.length - 1];
33
43
 
34
- const entry = entries[0];
44
+ if (entry.isIntersecting) {
45
+ setVisibleItemsCount(handleIntersectionActivation(index));
46
+ } else {
47
+ setVisibleItemsCount(handleIntersectionDeactivation(index));
48
+ }
49
+ }),
50
+ [subItems],
51
+ );
35
52
 
36
- if (entry.intersectionRatio < 1) {
37
- setVisibleItemsCount((prev) => Math.min(prev, itemIndex));
38
- } else {
39
- setVisibleItemsCount((prev) => Math.max(prev, itemIndex + 1));
40
- }
41
- };
53
+ const activeSubItem = findActiveSubItem(router)(subItems);
54
+ const toggleMenu = () => setMenuVisible(!menuVisible);
42
55
 
43
56
  return (
44
57
  <nav className="relative mt-6">
45
- <div className="overflow-hidden whitespace-nowrap mr-52 pb-3">
58
+ <div ref={subItemsListRef} className="overflow-hidden whitespace-nowrap mr-52 pb-3">
46
59
  {subItems.map((_, i) => (
47
60
  <IntersectionObserverTag
48
- tag="span"
49
- observerCallback={observerCallback(i)}
50
- observerOptions={{ threshold: 1 }}
51
61
  key={String(i)}
62
+ tag="span"
63
+ observerCallback={observerCallbacks[i]}
64
+ observerOptions={observerOptions}
52
65
  >
53
66
  <HeaderItem
54
67
  className={`mr-8 ${visibleItemsCount - 1 < i ? 'invisible' : ''}`}
@@ -72,3 +85,6 @@ export const HeaderSubMenu = JSX<HeaderSubMenuProps>(({ context, subItems = [],
72
85
  </nav>
73
86
  );
74
87
  });
88
+
89
+ const handleIntersectionActivation = (index: number) => (prev: number) => Math.max(prev, index + 1);
90
+ const handleIntersectionDeactivation = (index: number) => (prev: number) => Math.min(prev, index);
@@ -1,8 +1,6 @@
1
- import type { IconVersion } from '../../model/IconVersion';
2
1
  import type { Picture } from '../../model/Picture';
3
2
  import { context } from '../../react/setup-fixture';
4
3
  import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
5
- import { Img } from '../../ui-kit/Img/Img';
6
4
  import { MobileAppTile } from './MobileAppTile';
7
5
 
8
6
  const image: Picture = {
@@ -34,14 +32,7 @@ const listItems = [
34
32
  const button1: ButtonWithIconProps = {
35
33
  aboveText: 'Загрузите в',
36
34
  text: 'App Store',
37
- appendLeft: (
38
- <Img
39
- image={{ icon: 'AppleIcon', iconVersion: 'white' as IconVersion }}
40
- width="24"
41
- height="24"
42
- asSVG
43
- />
44
- ),
35
+ icon: { icon: 'AppleIcon', iconVersion: 'white' },
45
36
  href: 'apps.apple.com',
46
37
  version: 'primary',
47
38
  };
@@ -49,13 +40,11 @@ const button1: ButtonWithIconProps = {
49
40
  const button2: ButtonWithIconProps = {
50
41
  aboveText: 'Доступно в',
51
42
  text: 'Google Play',
52
- appendLeft: <Img image={{ icon: 'PlayMarketIcon' }} width="24" height="24" asSVG />,
43
+ icon: { icon: 'PlayMarketIcon' },
53
44
  href: 'play.google.com',
54
45
  version: 'secondary',
55
46
  };
56
47
 
57
- const icon = <Img image={{ icon: 'AppleIcon' }} width="24" height="24" asSVG />;
58
-
59
48
  export default {
60
49
  default: (
61
50
  <div className="container grid grid-cols-12">
@@ -72,7 +61,7 @@ export default {
72
61
  buttons={[
73
62
  {
74
63
  ...button1,
75
- appendLeft: icon,
64
+ icon: { icon: 'AppleIcon' },
76
65
  version: 'secondary',
77
66
  },
78
67
  button2,
@@ -1,21 +1,18 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useOfficeMap } from '../../hooks/useOfficeMap';
2
+ import { useOfficeMap } from './useOfficeMap';
3
3
  import type { UniBlockProps } from '../../model/JSXBlock';
4
4
  import { Icon } from '../../ui-kit/Icon/Icon';
5
5
  import { OFFICE_MAP } from './mockOfficeMap';
6
- import type { NearbyOffices, OfficeMapProps, WorkScheduleWeek } from './OfficeMapContent';
6
+ import type { OfficeMapProps, WorkScheduleWeek } from './OfficeMapContent';
7
7
  import { renderCurrentDaySchedule, renderDay, renderNearbyOffice } from './renderFunctions';
8
- import { YandexMap } from './YandexMap';
8
+ import { YandexMap } from '../../ui-kit/YandexMap/YandexMap';
9
+ import { nearbyOffices } from './nearbyOffices';
9
10
 
10
11
  export const OfficeMap = JSX<UniBlockProps>(({ className = '' }) => {
11
12
  const resultOfficeMap = useOfficeMap('063') || OFFICE_MAP;
12
13
  const { name, address, gpsLatitude, gpsLongitude, workSchedule } =
13
14
  resultOfficeMap as OfficeMapProps;
14
15
  const {
15
- workTime,
16
- lunchHour,
17
- workTimeSaturday,
18
- lunchHourSaturday,
19
16
  workingMonday,
20
17
  workingTuesday,
21
18
  workingWednesday,
@@ -24,8 +21,8 @@ export const OfficeMap = JSX<UniBlockProps>(({ className = '' }) => {
24
21
  workingSaturday,
25
22
  workingSunday,
26
23
  } = workSchedule;
24
+ const { workTime, lunchHour, workTimeSaturday, lunchHourSaturday } = workSchedule;
27
25
  const point = gpsLatitude && gpsLongitude ? [gpsLatitude, gpsLongitude] : null;
28
-
29
26
  const workScheduleWeek: WorkScheduleWeek[] = [
30
27
  { title: 'Понедельник', status: workingMonday, workTime, lunchHour },
31
28
  { title: 'Вторник', status: workingTuesday, workTime, lunchHour },
@@ -46,12 +43,6 @@ export const OfficeMap = JSX<UniBlockProps>(({ className = '' }) => {
46
43
  },
47
44
  { title: 'Воскресенье', status: workingSunday },
48
45
  ];
49
- // Добавлено для проверки
50
- const nearbyOffices: NearbyOffices[] = [
51
- { title: 'Деловой центр', time: '1 мин', distance: '~30 м.', icon: 'MetroIcon' },
52
- { title: 'Выставочная', time: '5 мин', distance: '~120 м.', icon: 'MetroIcon' },
53
- { title: 'Деловой центр', time: '8 мин', distance: '~350 м.', icon: 'MetroIcon' },
54
- ];
55
46
  const currentWeekDayInd = new Date().getDay();
56
47
  const currentWeekDay =
57
48
  currentWeekDayInd > 0 ? workScheduleWeek[currentWeekDayInd - 1] : workScheduleWeek[6];
@@ -70,9 +61,11 @@ export const OfficeMap = JSX<UniBlockProps>(({ className = '' }) => {
70
61
  <div className="flex pt-4">{nearbyOffices.map(renderNearbyOffice)}</div>
71
62
  </div>
72
63
  <div className="flex justify-between pt-8">
73
- <div className="flex-grow h-full bg-gray">{point ? <YandexMap point={point} /> : null}</div>
74
- <div className="w-[434px] pl-9 pr-12 pb-14">
75
- <div className="flex flex-col">{workScheduleWeek.map(renderDay)}</div>
64
+ <div className="flex-grow h-full w-full overflow-hidden">
65
+ {point ? <YandexMap points={[point]} className="h-full" /> : null}
66
+ </div>
67
+ <div className="w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col">
68
+ {workScheduleWeek.map(renderDay)}
76
69
  </div>
77
70
  </div>
78
71
  </div>
@@ -0,0 +1,8 @@
1
+ import { NearbyOffices } from './OfficeMapContent';
2
+
3
+ // Добавлено для проверки
4
+ export const nearbyOffices: NearbyOffices[] = [
5
+ { title: 'Деловой центр', time: '1 мин', distance: '~30 м.', icon: 'MetroIcon' },
6
+ { title: 'Выставочная', time: '5 мин', distance: '~120 м.', icon: 'MetroIcon' },
7
+ { title: 'Деловой центр', time: '8 мин', distance: '~350 м.', icon: 'MetroIcon' },
8
+ ];
@@ -23,8 +23,11 @@ export const renderCurrentDaySchedule = ({ lunchHour, status, workTime }: WorkSc
23
23
  );
24
24
  };
25
25
 
26
- export const renderNearbyOffice = ({ icon, title, distance, time }: NearbyOffices, inx: number) => (
27
- <div className="flex mr-4" key={`nearbyOffice${inx}`}>
26
+ export const renderNearbyOffice = (
27
+ { icon, title, distance, time }: NearbyOffices,
28
+ index: number,
29
+ ) => (
30
+ <div className="flex mr-4" key={`nearbyOffice${index}`}>
28
31
  <Icon name={icon} width="16" height="16" asSVG className="mr-1" />
29
32
  {title ? <span className="text-m">{title}&nbsp;</span> : null}
30
33
  <span className="text-m-light">
@@ -1,5 +1,5 @@
1
1
  import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
2
- import { fetchJSON } from '../utils/fetchJSON';
2
+ import { fetchJSON } from '../../utils/fetchJSON';
3
3
 
4
4
  const OFFICE_MAP_URL = '/api/v1/branches';
5
5
 
@@ -47,7 +47,7 @@ export const PictureText = JSX<PictureTextProps>(
47
47
  {benefits?.length ? (
48
48
  <div className="flex flex-col gap-4">{benefits.map(renderBenefit(version))}</div>
49
49
  ) : null}
50
- {renderInsuranceSumMonth(sum, monthLimit)}
50
+ {renderInsuranceSumMonth(Number(sum), Number(monthLimit))}
51
51
  </div>
52
52
  </div>
53
53
  </BlockWrapper>
@@ -9,7 +9,7 @@ import { SafeDepositRentalForm } from './SafeDepositRentalForm';
9
9
  import { HandleChangeState, SafeDepositRentalState } from './SafeDepositRentalTypes';
10
10
  import { Region, useGetRegions } from './useGetRegions';
11
11
  import { getBranch, getCoordinates } from './utils';
12
- import { YandexMap } from './YandexMap';
12
+ import { YandexMap } from '../../ui-kit/YandexMap/YandexMap';
13
13
 
14
14
  export interface SafeDepositRentalProps extends SafeDepositRentalContent, UniBlockProps {}
15
15
 
@@ -58,7 +58,7 @@ export const SafeDepositRental = JSX<SafeDepositRentalProps>(
58
58
  />
59
59
  {footnote ? <p className="text-s-light text-secondary-text">{footnote}</p> : null}
60
60
  </div>
61
- {points.length && showMap ? <YandexMap points={points} /> : null}
61
+ {points.length && showMap ? <YandexMap points={points} className="h-[640px]" /> : null}
62
62
  </BlockWrapper>
63
63
  );
64
64
  },
@@ -113,6 +113,8 @@ export default {
113
113
  text: 'Отправить заявку',
114
114
  href: 'https://www.rshb.ru/',
115
115
  target: '_blank',
116
+ icon: { icon: 'ComfortableCompIcon' },
117
+ iconRight: { icon: 'ComfortableCompIcon' },
116
118
  }}
117
119
  />
118
120
  </div>