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

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 (993) hide show
  1. package/bin/migration-scripts/0.12.12.js +30 -0
  2. package/bundle/EventBus/defaultEventBus.d.ts +4 -2
  3. package/bundle/EventBus/useLatestEvent.d.ts +2 -0
  4. package/bundle/blocks.schema.json +1 -1
  5. package/bundle/bundle.umd.js +206 -199
  6. package/bundle/bundle.umd.min.js +1 -1
  7. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
  8. package/bundle/components/Bonus/BonusContent.d.ts +2 -7
  9. package/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +3 -2
  10. package/bundle/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -2
  11. package/bundle/components/Calculator/CalculatorContent.d.ts +2 -2
  12. package/bundle/components/CardTransfer/CardTransferContent.d.ts +2 -2
  13. package/bundle/components/CarouselCard/CarouselCardContent.d.ts +3 -2
  14. package/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +3 -2
  15. package/bundle/components/CarouselCatalogCard/CatalogCard.d.ts +2 -2
  16. package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +3 -2
  17. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  18. package/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +4 -9
  19. package/bundle/components/ContactsBlock/ContactsBlockContent.d.ts +2 -2
  20. package/bundle/components/ContentPage/computeAPIFallback.d.ts +2 -2
  21. package/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +2 -2
  22. package/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
  23. package/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -2
  24. package/bundle/components/Footer/FooterProps.d.ts +0 -2
  25. package/bundle/components/Footer/SocialMedia.d.ts +2 -2
  26. package/bundle/components/Header/HeaderProps.d.ts +0 -4
  27. package/bundle/components/Header/HeaderSecondaryMenu.d.ts +1 -1
  28. package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  29. package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -2
  30. package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  31. package/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -2
  32. package/bundle/components/ProductBlock/renderBackwardButton.d.ts +2 -2
  33. package/bundle/components/PromoTile/PromoTileContent.d.ts +2 -2
  34. package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +2 -2
  35. package/bundle/components/StepsBlock/StepsBlockContent.d.ts +6 -9
  36. package/bundle/components/TariffsTable/EmbeddableCellData.d.ts +3 -2
  37. package/bundle/components/TariffsTable/EmbeddableCellData.mobile.d.ts +3 -2
  38. package/bundle/components/TariffsTable/TariffsTableContent.d.ts +2 -2
  39. package/bundle/hooks/useList.d.ts +10 -0
  40. package/bundle/hooks/useLocation.d.ts +1 -1
  41. package/bundle/hooks/useSWRResource.d.ts +1 -1
  42. package/bundle/services/sitemap/useSitemap.d.ts +3 -0
  43. package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -2
  44. package/bundle/ui-kit/Button/Button.d.ts +2 -2
  45. package/bundle/ui-kit/Button/ButtonContent.d.ts +19 -0
  46. package/bundle/ui-kit/Button/ButtonInner.d.ts +2 -7
  47. package/bundle/ui-kit/Button/ButtonProps.d.ts +4 -44
  48. package/bundle/ui-kit/Button/ButtonsSectionContent.d.ts +7 -0
  49. package/bundle/ui-kit/Button/renderButtonsSection.d.ts +2 -2
  50. package/bundle/ui-kit/{Dialog → DialogManager}/CloseButton.d.ts +1 -1
  51. package/{dist/ui-kit/Dialog → bundle/ui-kit/DialogManager}/Dialog.d.ts +0 -1
  52. package/bundle/ui-kit/DialogManager/DialogAction.d.ts +12 -0
  53. package/bundle/ui-kit/DialogManager/DialogManager.d.ts +2 -0
  54. package/bundle/ui-kit/DialogManager/useDialogManager.d.ts +10 -0
  55. package/bundle/ui-kit/LocationDialog/LocationDialog.d.ts +2 -3
  56. package/bundle/ui-kit/LocationDialog/renderForeignOffices.d.ts +5 -0
  57. package/bundle/ui-kit/LocationDialog/renderRegion.d.ts +3 -0
  58. package/bundle/ui-kit/LocationDialog/renderRegionGroup.d.ts +3 -0
  59. package/bundle/ui-kit/LocationDialog/useLocationDialog.d.ts +5 -0
  60. package/bundle/ui-kit/SearchDialog/SearchDialog.d.ts +1 -3
  61. package/bundle/ui-kit/SearchDialog/useSearchDialog.d.ts +6 -0
  62. package/dist/EventBus/defaultEventBus.d.ts +4 -2
  63. package/dist/EventBus/defaultEventBus.js.map +1 -1
  64. package/dist/EventBus/useLatestEvent.d.ts +2 -0
  65. package/dist/EventBus/useLatestEvent.js +11 -0
  66. package/dist/EventBus/useLatestEvent.js.map +1 -0
  67. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
  68. package/dist/components/Bonus/BonusContent.d.ts +2 -7
  69. package/dist/components/BusinessBlock/BusinessBlockContent.d.ts +3 -2
  70. package/dist/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -2
  71. package/dist/components/Calculator/BusinessDepositCalculatorForm.js +3 -3
  72. package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  73. package/dist/components/Calculator/CalculatorContent.d.ts +2 -2
  74. package/dist/components/CardTransfer/CardTransferContent.d.ts +2 -2
  75. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js +1 -1
  76. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js.map +1 -1
  77. package/dist/components/CarouselCard/CarouselCardContent.d.ts +3 -2
  78. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
  79. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  80. package/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +3 -2
  81. package/dist/components/CarouselCatalogCard/CatalogCard.d.ts +2 -2
  82. package/dist/components/CarouselCatalogCard/CatalogCard.js.map +1 -1
  83. package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +3 -2
  84. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  85. package/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +4 -9
  86. package/dist/components/ContactsBlock/ContactsBlockContent.d.ts +2 -2
  87. package/dist/components/ContentPage/ContentPage.js +2 -23
  88. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  89. package/dist/components/ContentPage/computeAPIFallback.d.ts +2 -2
  90. package/dist/components/ContentPage/computeAPIFallback.js +10 -27
  91. package/dist/components/ContentPage/computeAPIFallback.js.map +1 -1
  92. package/dist/components/ErrorBlock/ErrorBlockContent.d.ts +2 -2
  93. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
  94. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  95. package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -2
  96. package/dist/components/Footer/Footer.js +4 -2
  97. package/dist/components/Footer/Footer.js.map +1 -1
  98. package/dist/components/Footer/Footer.mobile.js +7 -4
  99. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  100. package/dist/components/Footer/FooterProps.d.ts +0 -2
  101. package/dist/components/Footer/SocialMedia.d.ts +2 -2
  102. package/dist/components/Header/Header.js +5 -4
  103. package/dist/components/Header/Header.js.map +1 -1
  104. package/dist/components/Header/Header.mobile.js +3 -2
  105. package/dist/components/Header/Header.mobile.js.map +1 -1
  106. package/dist/components/Header/HeaderProps.d.ts +0 -4
  107. package/dist/components/Header/HeaderSecondaryMenu.d.ts +1 -1
  108. package/dist/components/Header/HeaderSecondaryMenu.js +10 -9
  109. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  110. package/dist/components/Header/HeaderSubMenu.js +1 -1
  111. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  112. package/dist/components/Header/findActiveSubItem.js.map +1 -0
  113. package/dist/components/Header/isHrefActive.js.map +1 -0
  114. package/dist/components/Header/isTopItemActive.js.map +1 -0
  115. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  116. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -2
  117. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  118. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  119. package/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -2
  120. package/dist/components/ProductBlock/renderBackwardButton.d.ts +2 -2
  121. package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  122. package/dist/components/PromoTile/PromoTileContent.d.ts +2 -2
  123. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +2 -2
  124. package/dist/components/StepsBlock/StepsBlockContent.d.ts +6 -9
  125. package/dist/components/TariffsTable/EmbeddableCellData.d.ts +3 -2
  126. package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  127. package/dist/components/TariffsTable/EmbeddableCellData.mobile.d.ts +3 -2
  128. package/dist/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
  129. package/dist/components/TariffsTable/TariffsTableContent.d.ts +2 -2
  130. package/dist/hooks/useLink.js +3 -3
  131. package/dist/hooks/useLink.js.map +1 -1
  132. package/dist/hooks/useList.d.ts +10 -0
  133. package/dist/hooks/useList.js +13 -0
  134. package/dist/hooks/useList.js.map +1 -0
  135. package/dist/hooks/useLocation.d.ts +1 -1
  136. package/dist/hooks/useLocation.js +27 -16
  137. package/dist/hooks/useLocation.js.map +1 -1
  138. package/dist/hooks/useSWRResource.d.ts +1 -1
  139. package/dist/hooks/useSWRResource.js +2 -4
  140. package/dist/hooks/useSWRResource.js.map +1 -1
  141. package/dist/services/sitemap/useSitemap.d.ts +3 -0
  142. package/dist/services/sitemap/useSitemap.js +7 -0
  143. package/dist/services/sitemap/useSitemap.js.map +1 -0
  144. package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -2
  145. package/dist/ui-kit/Button/Button.d.ts +2 -2
  146. package/dist/ui-kit/Button/Button.js.map +1 -1
  147. package/dist/ui-kit/Button/ButtonContent.d.ts +19 -0
  148. package/dist/{model/Button.js → ui-kit/Button/ButtonContent.js} +1 -1
  149. package/dist/ui-kit/Button/ButtonContent.js.map +1 -0
  150. package/dist/ui-kit/Button/ButtonInner.d.ts +2 -7
  151. package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  152. package/dist/ui-kit/Button/ButtonProps.d.ts +4 -44
  153. package/dist/ui-kit/Button/ButtonsSectionContent.d.ts +7 -0
  154. package/dist/ui-kit/{LocationDialog/LocationDialogProps.js → Button/ButtonsSectionContent.js} +1 -1
  155. package/dist/ui-kit/Button/ButtonsSectionContent.js.map +1 -0
  156. package/dist/ui-kit/Button/renderButtonsSection.d.ts +2 -2
  157. package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  158. package/dist/ui-kit/CookiePopup/CookiePopup.js +6 -6
  159. package/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  160. package/dist/ui-kit/{Dialog → DialogManager}/CloseButton.d.ts +1 -1
  161. package/dist/ui-kit/{Dialog → DialogManager}/CloseButton.js +1 -1
  162. package/dist/ui-kit/DialogManager/CloseButton.js.map +1 -0
  163. package/{lib/ui-kit/Dialog → dist/ui-kit/DialogManager}/Dialog.d.ts +0 -1
  164. package/dist/ui-kit/DialogManager/Dialog.js +17 -0
  165. package/dist/ui-kit/DialogManager/Dialog.js.map +1 -0
  166. package/dist/ui-kit/DialogManager/DialogAction.d.ts +12 -0
  167. package/dist/ui-kit/DialogManager/DialogAction.js.map +1 -0
  168. package/dist/ui-kit/DialogManager/DialogManager.d.ts +2 -0
  169. package/dist/ui-kit/DialogManager/DialogManager.js +61 -0
  170. package/dist/ui-kit/DialogManager/DialogManager.js.map +1 -0
  171. package/dist/ui-kit/DialogManager/useDialogManager.d.ts +10 -0
  172. package/dist/ui-kit/DialogManager/useDialogManager.js +10 -0
  173. package/dist/ui-kit/DialogManager/useDialogManager.js.map +1 -0
  174. package/dist/ui-kit/LocationDialog/LocationDialog.d.ts +2 -3
  175. package/dist/ui-kit/LocationDialog/LocationDialog.js +17 -26
  176. package/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  177. package/dist/ui-kit/LocationDialog/renderForeignOffices.d.ts +5 -0
  178. package/dist/ui-kit/LocationDialog/renderForeignOffices.js +15 -0
  179. package/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -0
  180. package/dist/ui-kit/LocationDialog/renderRegion.d.ts +3 -0
  181. package/dist/ui-kit/LocationDialog/renderRegion.js +8 -0
  182. package/dist/ui-kit/LocationDialog/renderRegion.js.map +1 -0
  183. package/dist/ui-kit/LocationDialog/renderRegionGroup.d.ts +3 -0
  184. package/dist/ui-kit/LocationDialog/renderRegionGroup.js +8 -0
  185. package/dist/ui-kit/LocationDialog/renderRegionGroup.js.map +1 -0
  186. package/dist/ui-kit/LocationDialog/useLocationDialog.d.ts +5 -0
  187. package/dist/ui-kit/LocationDialog/useLocationDialog.js +14 -0
  188. package/dist/ui-kit/LocationDialog/useLocationDialog.js.map +1 -0
  189. package/dist/ui-kit/SearchBar/SearchBar.js +6 -9
  190. package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  191. package/dist/ui-kit/SearchDialog/SearchDialog.d.ts +1 -3
  192. package/dist/ui-kit/SearchDialog/SearchDialog.js +8 -9
  193. package/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  194. package/dist/ui-kit/SearchDialog/useSearchDialog.d.ts +6 -0
  195. package/dist/ui-kit/SearchDialog/useSearchDialog.js +14 -0
  196. package/dist/ui-kit/SearchDialog/useSearchDialog.js.map +1 -0
  197. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  198. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  199. package/lib/EventBus/defaultEventBus.d.ts +4 -2
  200. package/lib/EventBus/defaultEventBus.js.map +1 -1
  201. package/lib/EventBus/useLatestEvent.d.ts +2 -0
  202. package/lib/EventBus/useLatestEvent.js +8 -0
  203. package/lib/EventBus/useLatestEvent.js.map +1 -0
  204. package/lib/common.css +1 -1
  205. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
  206. package/lib/components/Bonus/BonusContent.d.ts +2 -7
  207. package/lib/components/BusinessBlock/BusinessBlockContent.d.ts +3 -2
  208. package/lib/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -2
  209. package/lib/components/Calculator/BusinessDepositCalculatorForm.js +3 -3
  210. package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  211. package/lib/components/Calculator/CalculatorContent.d.ts +2 -2
  212. package/lib/components/CardTransfer/CardTransferContent.d.ts +2 -2
  213. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js +1 -1
  214. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js.map +1 -1
  215. package/lib/components/CarouselCard/CarouselCardContent.d.ts +3 -2
  216. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
  217. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  218. package/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +3 -2
  219. package/lib/components/CarouselCatalogCard/CatalogCard.d.ts +2 -2
  220. package/lib/components/CarouselCatalogCard/CatalogCard.js.map +1 -1
  221. package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +3 -2
  222. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  223. package/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +4 -9
  224. package/lib/components/ContactsBlock/ContactsBlockContent.d.ts +2 -2
  225. package/lib/components/ContentPage/ContentPage.js +2 -23
  226. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  227. package/lib/components/ContentPage/computeAPIFallback.d.ts +2 -2
  228. package/lib/components/ContentPage/computeAPIFallback.js +8 -25
  229. package/lib/components/ContentPage/computeAPIFallback.js.map +1 -1
  230. package/lib/components/ErrorBlock/ErrorBlockContent.d.ts +2 -2
  231. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
  232. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  233. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -2
  234. package/lib/components/Footer/Footer.js +4 -2
  235. package/lib/components/Footer/Footer.js.map +1 -1
  236. package/lib/components/Footer/Footer.mobile.js +7 -4
  237. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  238. package/lib/components/Footer/FooterProps.d.ts +0 -2
  239. package/lib/components/Footer/SocialMedia.d.ts +2 -2
  240. package/lib/components/Header/Header.js +5 -4
  241. package/lib/components/Header/Header.js.map +1 -1
  242. package/lib/components/Header/Header.mobile.js +3 -2
  243. package/lib/components/Header/Header.mobile.js.map +1 -1
  244. package/lib/components/Header/HeaderProps.d.ts +0 -4
  245. package/lib/components/Header/HeaderSecondaryMenu.d.ts +1 -1
  246. package/lib/components/Header/HeaderSecondaryMenu.js +10 -9
  247. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  248. package/lib/components/Header/HeaderSubMenu.js +1 -1
  249. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  250. package/lib/components/Header/findActiveSubItem.js.map +1 -0
  251. package/lib/components/Header/isHrefActive.js.map +1 -0
  252. package/lib/components/Header/isTopItemActive.js.map +1 -0
  253. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  254. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -2
  255. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  256. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  257. package/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -2
  258. package/lib/components/ProductBlock/renderBackwardButton.d.ts +2 -2
  259. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  260. package/lib/components/PromoTile/PromoTileContent.d.ts +2 -2
  261. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +2 -2
  262. package/lib/components/StepsBlock/StepsBlockContent.d.ts +6 -9
  263. package/lib/components/TariffsTable/EmbeddableCellData.d.ts +3 -2
  264. package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  265. package/lib/components/TariffsTable/EmbeddableCellData.mobile.d.ts +3 -2
  266. package/lib/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
  267. package/lib/components/TariffsTable/TariffsTableContent.d.ts +2 -2
  268. package/lib/hooks/useLink.js +3 -3
  269. package/lib/hooks/useLink.js.map +1 -1
  270. package/lib/hooks/useList.d.ts +10 -0
  271. package/lib/hooks/useList.js +10 -0
  272. package/lib/hooks/useList.js.map +1 -0
  273. package/lib/hooks/useLocation.d.ts +1 -1
  274. package/lib/hooks/useLocation.js +28 -17
  275. package/lib/hooks/useLocation.js.map +1 -1
  276. package/lib/hooks/useSWRResource.d.ts +1 -1
  277. package/lib/hooks/useSWRResource.js +2 -4
  278. package/lib/hooks/useSWRResource.js.map +1 -1
  279. package/lib/services/sitemap/useSitemap.d.ts +3 -0
  280. package/lib/services/sitemap/useSitemap.js +4 -0
  281. package/lib/services/sitemap/useSitemap.js.map +1 -0
  282. package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -2
  283. package/lib/ui-kit/Button/Button.d.ts +2 -2
  284. package/lib/ui-kit/Button/Button.js.map +1 -1
  285. package/lib/ui-kit/Button/ButtonContent.d.ts +19 -0
  286. package/lib/ui-kit/Button/ButtonContent.js +2 -0
  287. package/lib/ui-kit/Button/ButtonContent.js.map +1 -0
  288. package/lib/ui-kit/Button/ButtonInner.d.ts +2 -7
  289. package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  290. package/lib/ui-kit/Button/ButtonProps.d.ts +4 -44
  291. package/lib/ui-kit/Button/ButtonsSectionContent.d.ts +7 -0
  292. package/lib/ui-kit/Button/ButtonsSectionContent.js +2 -0
  293. package/lib/ui-kit/Button/ButtonsSectionContent.js.map +1 -0
  294. package/lib/ui-kit/Button/renderButtonsSection.d.ts +2 -2
  295. package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  296. package/lib/ui-kit/CookiePopup/CookiePopup.js +6 -6
  297. package/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  298. package/lib/ui-kit/{Dialog → DialogManager}/CloseButton.d.ts +1 -1
  299. package/lib/ui-kit/{Dialog → DialogManager}/CloseButton.js +1 -1
  300. package/lib/ui-kit/DialogManager/CloseButton.js.map +1 -0
  301. package/{bundle/ui-kit/Dialog → lib/ui-kit/DialogManager}/Dialog.d.ts +0 -1
  302. package/lib/ui-kit/DialogManager/Dialog.js +15 -0
  303. package/lib/ui-kit/DialogManager/Dialog.js.map +1 -0
  304. package/lib/ui-kit/DialogManager/DialogAction.d.ts +12 -0
  305. package/lib/ui-kit/DialogManager/DialogAction.js.map +1 -0
  306. package/lib/ui-kit/DialogManager/DialogManager.d.ts +2 -0
  307. package/lib/ui-kit/DialogManager/DialogManager.js +59 -0
  308. package/lib/ui-kit/DialogManager/DialogManager.js.map +1 -0
  309. package/lib/ui-kit/DialogManager/useDialogManager.d.ts +10 -0
  310. package/lib/ui-kit/DialogManager/useDialogManager.js +7 -0
  311. package/lib/ui-kit/DialogManager/useDialogManager.js.map +1 -0
  312. package/lib/ui-kit/LocationDialog/LocationDialog.d.ts +2 -3
  313. package/lib/ui-kit/LocationDialog/LocationDialog.js +16 -25
  314. package/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  315. package/lib/ui-kit/LocationDialog/renderForeignOffices.d.ts +5 -0
  316. package/lib/ui-kit/LocationDialog/renderForeignOffices.js +12 -0
  317. package/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -0
  318. package/lib/ui-kit/LocationDialog/renderRegion.d.ts +3 -0
  319. package/lib/ui-kit/LocationDialog/renderRegion.js +5 -0
  320. package/lib/ui-kit/LocationDialog/renderRegion.js.map +1 -0
  321. package/lib/ui-kit/LocationDialog/renderRegionGroup.d.ts +3 -0
  322. package/lib/ui-kit/LocationDialog/renderRegionGroup.js +5 -0
  323. package/lib/ui-kit/LocationDialog/renderRegionGroup.js.map +1 -0
  324. package/lib/ui-kit/LocationDialog/useLocationDialog.d.ts +5 -0
  325. package/lib/ui-kit/LocationDialog/useLocationDialog.js +11 -0
  326. package/lib/ui-kit/LocationDialog/useLocationDialog.js.map +1 -0
  327. package/lib/ui-kit/SearchBar/SearchBar.js +6 -9
  328. package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  329. package/lib/ui-kit/SearchDialog/SearchDialog.d.ts +1 -3
  330. package/lib/ui-kit/SearchDialog/SearchDialog.js +7 -8
  331. package/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  332. package/lib/ui-kit/SearchDialog/useSearchDialog.d.ts +6 -0
  333. package/lib/ui-kit/SearchDialog/useSearchDialog.js +11 -0
  334. package/lib/ui-kit/SearchDialog/useSearchDialog.js.map +1 -0
  335. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  336. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  337. package/mobile/bundle/EventBus/defaultEventBus.d.ts +4 -2
  338. package/mobile/bundle/EventBus/useLatestEvent.d.ts +2 -0
  339. package/mobile/bundle/bundle.umd.js +78 -386
  340. package/mobile/bundle/bundle.umd.min.js +1 -1
  341. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
  342. package/mobile/bundle/components/Bonus/BonusContent.d.ts +2 -7
  343. package/mobile/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +3 -2
  344. package/mobile/bundle/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -2
  345. package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +2 -2
  346. package/mobile/bundle/components/CardTransfer/CardTransferContent.d.ts +2 -2
  347. package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +3 -2
  348. package/mobile/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +3 -2
  349. package/mobile/bundle/components/CarouselCatalogCard/CatalogCard.d.ts +2 -2
  350. package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +3 -2
  351. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  352. package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +4 -9
  353. package/mobile/bundle/components/ContactsBlock/ContactsBlockContent.d.ts +2 -2
  354. package/mobile/bundle/components/ContentPage/computeAPIFallback.d.ts +2 -2
  355. package/mobile/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +2 -2
  356. package/mobile/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
  357. package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -2
  358. package/mobile/bundle/components/Footer/FooterProps.d.ts +0 -2
  359. package/mobile/bundle/components/Footer/SocialMedia.d.ts +2 -2
  360. package/mobile/bundle/components/Header/HeaderProps.d.ts +0 -4
  361. package/mobile/bundle/components/Header/HeaderSecondaryMenu.d.ts +1 -1
  362. package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  363. package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -2
  364. package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  365. package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -2
  366. package/mobile/bundle/components/ProductBlock/renderBackwardButton.d.ts +2 -2
  367. package/mobile/bundle/components/PromoTile/PromoTileContent.d.ts +2 -2
  368. package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +2 -2
  369. package/mobile/bundle/components/StepsBlock/StepsBlockContent.d.ts +6 -9
  370. package/mobile/bundle/components/TariffsTable/EmbeddableCellData.d.ts +3 -2
  371. package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +2 -2
  372. package/mobile/bundle/hooks/useList.d.ts +10 -0
  373. package/mobile/bundle/hooks/useLocation.d.ts +1 -1
  374. package/mobile/bundle/hooks/useSWRResource.d.ts +1 -1
  375. package/mobile/bundle/services/sitemap/useSitemap.d.ts +3 -0
  376. package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -2
  377. package/mobile/bundle/ui-kit/Button/Button.d.ts +2 -2
  378. package/mobile/bundle/ui-kit/Button/ButtonContent.d.ts +19 -0
  379. package/mobile/bundle/ui-kit/Button/ButtonInner.d.ts +2 -7
  380. package/mobile/bundle/ui-kit/Button/ButtonProps.d.ts +4 -44
  381. package/mobile/bundle/ui-kit/Button/ButtonsSectionContent.d.ts +7 -0
  382. package/mobile/bundle/ui-kit/Button/renderButtonsSection.d.ts +2 -2
  383. package/mobile/bundle/ui-kit/{Dialog → DialogManager}/CloseButton.d.ts +1 -1
  384. package/mobile/bundle/ui-kit/{Dialog → DialogManager}/Dialog.d.ts +0 -1
  385. package/mobile/bundle/ui-kit/DialogManager/DialogAction.d.ts +12 -0
  386. package/mobile/bundle/ui-kit/DialogManager/DialogManager.d.ts +2 -0
  387. package/mobile/bundle/ui-kit/DialogManager/useDialogManager.d.ts +10 -0
  388. package/mobile/bundle/ui-kit/LocationDialog/LocationDialog.d.ts +2 -3
  389. package/mobile/bundle/ui-kit/LocationDialog/renderForeignOffices.d.ts +5 -0
  390. package/mobile/bundle/ui-kit/LocationDialog/renderRegion.d.ts +3 -0
  391. package/mobile/bundle/ui-kit/LocationDialog/renderRegionGroup.d.ts +3 -0
  392. package/mobile/bundle/ui-kit/LocationDialog/useLocationDialog.d.ts +5 -0
  393. package/mobile/bundle/ui-kit/SearchDialog/SearchDialog.d.ts +1 -3
  394. package/mobile/bundle/ui-kit/SearchDialog/useSearchDialog.d.ts +6 -0
  395. package/mobile/dist/EventBus/defaultEventBus.d.ts +4 -2
  396. package/mobile/dist/EventBus/defaultEventBus.js.map +1 -1
  397. package/mobile/dist/EventBus/useLatestEvent.d.ts +2 -0
  398. package/mobile/dist/EventBus/useLatestEvent.js +11 -0
  399. package/mobile/dist/EventBus/useLatestEvent.js.map +1 -0
  400. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
  401. package/mobile/dist/components/Bonus/BonusContent.d.ts +2 -7
  402. package/mobile/dist/components/BusinessBlock/BusinessBlockContent.d.ts +3 -2
  403. package/mobile/dist/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -2
  404. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +3 -3
  405. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  406. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +2 -2
  407. package/mobile/dist/components/CardTransfer/CardTransferContent.d.ts +2 -2
  408. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
  409. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  410. package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +3 -2
  411. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
  412. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  413. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +3 -2
  414. package/mobile/dist/components/CarouselCatalogCard/CatalogCard.d.ts +2 -2
  415. package/mobile/dist/components/CarouselCatalogCard/CatalogCard.js.map +1 -1
  416. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +3 -2
  417. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  418. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +4 -9
  419. package/mobile/dist/components/ContactsBlock/ContactsBlockContent.d.ts +2 -2
  420. package/mobile/dist/components/ContentPage/ContentPage.js +2 -23
  421. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  422. package/mobile/dist/components/ContentPage/computeAPIFallback.d.ts +2 -2
  423. package/mobile/dist/components/ContentPage/computeAPIFallback.js +10 -27
  424. package/mobile/dist/components/ContentPage/computeAPIFallback.js.map +1 -1
  425. package/mobile/dist/components/ErrorBlock/ErrorBlockContent.d.ts +2 -2
  426. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
  427. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  428. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -2
  429. package/mobile/dist/components/Footer/Footer.js +7 -4
  430. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  431. package/mobile/dist/components/Footer/FooterProps.d.ts +0 -2
  432. package/mobile/dist/components/Footer/SocialMedia.d.ts +2 -2
  433. package/mobile/dist/components/Header/Header.js +3 -2
  434. package/mobile/dist/components/Header/Header.js.map +1 -1
  435. package/mobile/dist/components/Header/HeaderProps.d.ts +0 -4
  436. package/mobile/dist/components/Header/HeaderSecondaryMenu.d.ts +1 -1
  437. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +10 -9
  438. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  439. package/mobile/dist/components/Header/HeaderSubMenu.js +1 -1
  440. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  441. package/mobile/dist/components/Header/findActiveSubItem.js.map +1 -0
  442. package/mobile/dist/components/Header/isHrefActive.js.map +1 -0
  443. package/mobile/dist/components/Header/isTopItemActive.js.map +1 -0
  444. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  445. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -2
  446. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  447. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  448. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -2
  449. package/mobile/dist/components/ProductBlock/renderBackwardButton.d.ts +2 -2
  450. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  451. package/mobile/dist/components/PromoTile/PromoTileContent.d.ts +2 -2
  452. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +2 -2
  453. package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +6 -9
  454. package/mobile/dist/components/TariffsTable/EmbeddableCellData.d.ts +3 -2
  455. package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  456. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +2 -2
  457. package/mobile/dist/hooks/useLink.js +3 -3
  458. package/mobile/dist/hooks/useLink.js.map +1 -1
  459. package/mobile/dist/hooks/useList.d.ts +10 -0
  460. package/mobile/dist/hooks/useList.js +13 -0
  461. package/mobile/dist/hooks/useList.js.map +1 -0
  462. package/mobile/dist/hooks/useLocation.d.ts +1 -1
  463. package/mobile/dist/hooks/useLocation.js +27 -16
  464. package/mobile/dist/hooks/useLocation.js.map +1 -1
  465. package/mobile/dist/hooks/useSWRResource.d.ts +1 -1
  466. package/mobile/dist/hooks/useSWRResource.js +2 -4
  467. package/mobile/dist/hooks/useSWRResource.js.map +1 -1
  468. package/mobile/dist/services/sitemap/useSitemap.d.ts +3 -0
  469. package/mobile/dist/services/sitemap/useSitemap.js +7 -0
  470. package/mobile/dist/services/sitemap/useSitemap.js.map +1 -0
  471. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -2
  472. package/mobile/dist/ui-kit/Button/Button.d.ts +2 -2
  473. package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
  474. package/mobile/dist/ui-kit/Button/ButtonContent.d.ts +19 -0
  475. package/mobile/dist/{model/Button.js → ui-kit/Button/ButtonContent.js} +1 -1
  476. package/mobile/dist/ui-kit/Button/ButtonContent.js.map +1 -0
  477. package/mobile/dist/ui-kit/Button/ButtonInner.d.ts +2 -7
  478. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  479. package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +4 -44
  480. package/mobile/dist/ui-kit/Button/ButtonsSectionContent.d.ts +7 -0
  481. package/mobile/dist/ui-kit/Button/ButtonsSectionContent.js +2 -0
  482. package/mobile/dist/ui-kit/Button/ButtonsSectionContent.js.map +1 -0
  483. package/mobile/dist/ui-kit/Button/renderButtonsSection.d.ts +2 -2
  484. package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  485. package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js +6 -6
  486. package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  487. package/mobile/dist/ui-kit/DialogManager/CloseButton.d.ts +7 -0
  488. package/mobile/dist/ui-kit/{Dialog → DialogManager}/CloseButton.js +1 -1
  489. package/mobile/dist/ui-kit/DialogManager/CloseButton.js.map +1 -0
  490. package/mobile/dist/ui-kit/DialogManager/Dialog.d.ts +7 -0
  491. package/mobile/dist/ui-kit/DialogManager/Dialog.js +17 -0
  492. package/mobile/dist/ui-kit/DialogManager/Dialog.js.map +1 -0
  493. package/mobile/dist/ui-kit/DialogManager/DialogAction.d.ts +12 -0
  494. package/mobile/dist/ui-kit/DialogManager/DialogAction.js.map +1 -0
  495. package/mobile/dist/ui-kit/DialogManager/DialogManager.d.ts +2 -0
  496. package/mobile/dist/ui-kit/DialogManager/DialogManager.js +61 -0
  497. package/mobile/dist/ui-kit/DialogManager/DialogManager.js.map +1 -0
  498. package/mobile/dist/ui-kit/DialogManager/useDialogManager.d.ts +10 -0
  499. package/mobile/dist/ui-kit/DialogManager/useDialogManager.js +10 -0
  500. package/mobile/dist/ui-kit/DialogManager/useDialogManager.js.map +1 -0
  501. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.d.ts +2 -3
  502. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js +17 -26
  503. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  504. package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.d.ts +5 -0
  505. package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.js +15 -0
  506. package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -0
  507. package/mobile/dist/ui-kit/LocationDialog/renderRegion.d.ts +3 -0
  508. package/mobile/dist/ui-kit/LocationDialog/renderRegion.js +8 -0
  509. package/mobile/dist/ui-kit/LocationDialog/renderRegion.js.map +1 -0
  510. package/mobile/dist/ui-kit/LocationDialog/renderRegionGroup.d.ts +3 -0
  511. package/mobile/dist/ui-kit/LocationDialog/renderRegionGroup.js +8 -0
  512. package/mobile/dist/ui-kit/LocationDialog/renderRegionGroup.js.map +1 -0
  513. package/mobile/dist/ui-kit/LocationDialog/useLocationDialog.d.ts +5 -0
  514. package/mobile/dist/ui-kit/LocationDialog/useLocationDialog.js +14 -0
  515. package/mobile/dist/ui-kit/LocationDialog/useLocationDialog.js.map +1 -0
  516. package/mobile/dist/ui-kit/SearchBar/SearchBar.js +6 -9
  517. package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  518. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.d.ts +1 -3
  519. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js +8 -9
  520. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  521. package/mobile/dist/ui-kit/SearchDialog/useSearchDialog.d.ts +6 -0
  522. package/mobile/dist/ui-kit/SearchDialog/useSearchDialog.js +14 -0
  523. package/mobile/dist/ui-kit/SearchDialog/useSearchDialog.js.map +1 -0
  524. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  525. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  526. package/mobile/lib/EventBus/defaultEventBus.d.ts +4 -2
  527. package/mobile/lib/EventBus/defaultEventBus.js.map +1 -1
  528. package/mobile/lib/EventBus/useLatestEvent.d.ts +2 -0
  529. package/mobile/lib/EventBus/useLatestEvent.js +8 -0
  530. package/mobile/lib/EventBus/useLatestEvent.js.map +1 -0
  531. package/mobile/lib/common.css +1 -1
  532. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +2 -2
  533. package/mobile/lib/components/Bonus/BonusContent.d.ts +2 -7
  534. package/mobile/lib/components/BusinessBlock/BusinessBlockContent.d.ts +3 -2
  535. package/mobile/lib/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -2
  536. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +3 -3
  537. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  538. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +2 -2
  539. package/mobile/lib/components/CardTransfer/CardTransferContent.d.ts +2 -2
  540. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
  541. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  542. package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +3 -2
  543. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
  544. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  545. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +3 -2
  546. package/mobile/lib/components/CarouselCatalogCard/CatalogCard.d.ts +2 -2
  547. package/mobile/lib/components/CarouselCatalogCard/CatalogCard.js.map +1 -1
  548. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +3 -2
  549. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  550. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +4 -9
  551. package/mobile/lib/components/ContactsBlock/ContactsBlockContent.d.ts +2 -2
  552. package/mobile/lib/components/ContentPage/ContentPage.js +2 -23
  553. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  554. package/mobile/lib/components/ContentPage/computeAPIFallback.d.ts +2 -2
  555. package/mobile/lib/components/ContentPage/computeAPIFallback.js +8 -25
  556. package/mobile/lib/components/ContentPage/computeAPIFallback.js.map +1 -1
  557. package/mobile/lib/components/ErrorBlock/ErrorBlockContent.d.ts +2 -2
  558. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
  559. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  560. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -2
  561. package/mobile/lib/components/Footer/Footer.js +7 -4
  562. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  563. package/mobile/lib/components/Footer/FooterProps.d.ts +0 -2
  564. package/mobile/lib/components/Footer/SocialMedia.d.ts +2 -2
  565. package/mobile/lib/components/Header/Header.js +3 -2
  566. package/mobile/lib/components/Header/Header.js.map +1 -1
  567. package/mobile/lib/components/Header/HeaderProps.d.ts +0 -4
  568. package/mobile/lib/components/Header/HeaderSecondaryMenu.d.ts +1 -1
  569. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +10 -9
  570. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  571. package/mobile/lib/components/Header/HeaderSubMenu.js +1 -1
  572. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  573. package/mobile/lib/components/Header/findActiveSubItem.js.map +1 -0
  574. package/mobile/lib/components/Header/isHrefActive.js.map +1 -0
  575. package/mobile/lib/components/Header/isTopItemActive.js.map +1 -0
  576. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  577. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -2
  578. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  579. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  580. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -2
  581. package/mobile/lib/components/ProductBlock/renderBackwardButton.d.ts +2 -2
  582. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  583. package/mobile/lib/components/PromoTile/PromoTileContent.d.ts +2 -2
  584. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +2 -2
  585. package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +6 -9
  586. package/mobile/lib/components/TariffsTable/EmbeddableCellData.d.ts +3 -2
  587. package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  588. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +2 -2
  589. package/mobile/lib/hooks/useLink.js +3 -3
  590. package/mobile/lib/hooks/useLink.js.map +1 -1
  591. package/mobile/lib/hooks/useList.d.ts +10 -0
  592. package/mobile/lib/hooks/useList.js +10 -0
  593. package/mobile/lib/hooks/useList.js.map +1 -0
  594. package/mobile/lib/hooks/useLocation.d.ts +1 -1
  595. package/mobile/lib/hooks/useLocation.js +28 -17
  596. package/mobile/lib/hooks/useLocation.js.map +1 -1
  597. package/mobile/lib/hooks/useSWRResource.d.ts +1 -1
  598. package/mobile/lib/hooks/useSWRResource.js +2 -4
  599. package/mobile/lib/hooks/useSWRResource.js.map +1 -1
  600. package/mobile/lib/services/sitemap/useSitemap.d.ts +3 -0
  601. package/mobile/lib/services/sitemap/useSitemap.js +4 -0
  602. package/mobile/lib/services/sitemap/useSitemap.js.map +1 -0
  603. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -2
  604. package/mobile/lib/ui-kit/Button/Button.d.ts +2 -2
  605. package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
  606. package/mobile/lib/ui-kit/Button/ButtonContent.d.ts +19 -0
  607. package/mobile/lib/ui-kit/Button/ButtonContent.js +2 -0
  608. package/mobile/lib/ui-kit/Button/ButtonContent.js.map +1 -0
  609. package/mobile/lib/ui-kit/Button/ButtonInner.d.ts +2 -7
  610. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  611. package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +4 -44
  612. package/mobile/lib/ui-kit/Button/ButtonsSectionContent.d.ts +7 -0
  613. package/mobile/lib/ui-kit/Button/ButtonsSectionContent.js +2 -0
  614. package/mobile/lib/ui-kit/Button/ButtonsSectionContent.js.map +1 -0
  615. package/mobile/lib/ui-kit/Button/renderButtonsSection.d.ts +2 -2
  616. package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  617. package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js +6 -6
  618. package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  619. package/mobile/lib/ui-kit/DialogManager/CloseButton.d.ts +7 -0
  620. package/mobile/lib/ui-kit/{Dialog → DialogManager}/CloseButton.js +1 -1
  621. package/mobile/lib/ui-kit/DialogManager/CloseButton.js.map +1 -0
  622. package/mobile/lib/ui-kit/DialogManager/Dialog.d.ts +7 -0
  623. package/mobile/lib/ui-kit/DialogManager/Dialog.js +15 -0
  624. package/mobile/lib/ui-kit/DialogManager/Dialog.js.map +1 -0
  625. package/mobile/lib/ui-kit/DialogManager/DialogAction.d.ts +12 -0
  626. package/mobile/lib/ui-kit/DialogManager/DialogAction.js.map +1 -0
  627. package/mobile/lib/ui-kit/DialogManager/DialogManager.d.ts +2 -0
  628. package/mobile/lib/ui-kit/DialogManager/DialogManager.js +59 -0
  629. package/mobile/lib/ui-kit/DialogManager/DialogManager.js.map +1 -0
  630. package/mobile/lib/ui-kit/DialogManager/useDialogManager.d.ts +10 -0
  631. package/mobile/lib/ui-kit/DialogManager/useDialogManager.js +7 -0
  632. package/mobile/lib/ui-kit/DialogManager/useDialogManager.js.map +1 -0
  633. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.d.ts +2 -3
  634. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js +16 -25
  635. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  636. package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.d.ts +5 -0
  637. package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.js +12 -0
  638. package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -0
  639. package/mobile/lib/ui-kit/LocationDialog/renderRegion.d.ts +3 -0
  640. package/mobile/lib/ui-kit/LocationDialog/renderRegion.js +5 -0
  641. package/mobile/lib/ui-kit/LocationDialog/renderRegion.js.map +1 -0
  642. package/mobile/lib/ui-kit/LocationDialog/renderRegionGroup.d.ts +3 -0
  643. package/mobile/lib/ui-kit/LocationDialog/renderRegionGroup.js +5 -0
  644. package/mobile/lib/ui-kit/LocationDialog/renderRegionGroup.js.map +1 -0
  645. package/mobile/lib/ui-kit/LocationDialog/useLocationDialog.d.ts +5 -0
  646. package/mobile/lib/ui-kit/LocationDialog/useLocationDialog.js +11 -0
  647. package/mobile/lib/ui-kit/LocationDialog/useLocationDialog.js.map +1 -0
  648. package/mobile/lib/ui-kit/SearchBar/SearchBar.js +6 -9
  649. package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  650. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.d.ts +1 -3
  651. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js +7 -8
  652. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  653. package/mobile/lib/ui-kit/SearchDialog/useSearchDialog.d.ts +6 -0
  654. package/mobile/lib/ui-kit/SearchDialog/useSearchDialog.js +11 -0
  655. package/mobile/lib/ui-kit/SearchDialog/useSearchDialog.js.map +1 -0
  656. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  657. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  658. package/mobile/src/EventBus/defaultEventBus.ts +4 -2
  659. package/mobile/src/EventBus/useLatestEvent.ts +16 -0
  660. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +2 -2
  661. package/mobile/src/components/Bonus/BonusContent.ts +5 -9
  662. package/mobile/src/components/BusinessBlock/BusinessBlockContent.ts +3 -3
  663. package/mobile/src/components/ButtonsBlock/ButtonsBlockContent.ts +2 -2
  664. package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +3 -3
  665. package/mobile/src/components/Calculator/CalculatorContent.ts +2 -2
  666. package/mobile/src/components/CardTransfer/CardTransferContent.ts +2 -2
  667. package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +1 -1
  668. package/mobile/src/components/CarouselCard/CarouselCardContent.ts +3 -3
  669. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +7 -6
  670. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +3 -3
  671. package/mobile/src/components/CarouselCatalogCard/CatalogCard.ts +2 -2
  672. package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +2 -2
  673. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -2
  674. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +4 -9
  675. package/mobile/src/components/ContactsBlock/ContactsBlockContent.ts +2 -2
  676. package/mobile/src/components/ContentPage/ContentPage.tsx +18 -54
  677. package/mobile/src/components/ContentPage/computeAPIFallback.ts +10 -27
  678. package/mobile/src/components/ErrorBlock/ErrorBlockContent.ts +2 -2
  679. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +2 -2
  680. package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +2 -2
  681. package/mobile/src/components/Footer/Footer.tsx +8 -8
  682. package/mobile/src/components/Footer/FooterProps.ts +1 -4
  683. package/mobile/src/components/Footer/SocialMedia.tsx +2 -2
  684. package/mobile/src/components/Header/Header.tsx +3 -2
  685. package/mobile/src/components/Header/HeaderProps.ts +1 -6
  686. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +13 -11
  687. package/mobile/src/components/Header/HeaderSubMenu.tsx +1 -1
  688. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +2 -2
  689. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +2 -2
  690. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +2 -2
  691. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +2 -2
  692. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +2 -2
  693. package/mobile/src/components/PromoTile/PromoTileContent.ts +2 -2
  694. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +2 -2
  695. package/mobile/src/components/StepsBlock/StepsBlockContent.ts +9 -9
  696. package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +3 -2
  697. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +2 -2
  698. package/mobile/src/hooks/useLink.ts +3 -3
  699. package/mobile/src/hooks/useList.ts +24 -0
  700. package/mobile/src/hooks/useLocation.ts +34 -28
  701. package/mobile/src/hooks/useSWRResource.ts +9 -4
  702. package/mobile/src/services/sitemap/useSitemap.ts +7 -0
  703. package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +2 -2
  704. package/mobile/src/ui-kit/Button/Button.tsx +14 -16
  705. package/mobile/src/ui-kit/Button/ButtonContent.ts +21 -0
  706. package/mobile/src/ui-kit/Button/ButtonInner.tsx +5 -9
  707. package/mobile/src/ui-kit/Button/ButtonProps.ts +4 -49
  708. package/mobile/src/ui-kit/Button/ButtonsSectionContent.ts +8 -0
  709. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +3 -3
  710. package/mobile/src/ui-kit/CookiePopup/CookiePopup.tsx +12 -17
  711. package/mobile/src/ui-kit/{Dialog → DialogManager}/CloseButton.tsx +3 -3
  712. package/mobile/src/ui-kit/DialogManager/Dialog.tsx +31 -0
  713. package/mobile/src/ui-kit/DialogManager/DialogAction.ts +15 -0
  714. package/mobile/src/ui-kit/DialogManager/DialogManager.tsx +85 -0
  715. package/mobile/src/ui-kit/DialogManager/useDialogManager.ts +14 -0
  716. package/mobile/src/ui-kit/LocationDialog/LocationDialog.tsx +57 -138
  717. package/mobile/src/ui-kit/LocationDialog/renderForeignOffices.tsx +37 -0
  718. package/mobile/src/ui-kit/LocationDialog/renderRegion.tsx +15 -0
  719. package/mobile/src/ui-kit/LocationDialog/renderRegionGroup.tsx +15 -0
  720. package/mobile/src/ui-kit/LocationDialog/useLocationDialog.tsx +11 -0
  721. package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +14 -15
  722. package/mobile/src/ui-kit/SearchDialog/SearchDialog.tsx +8 -10
  723. package/mobile/src/ui-kit/SearchDialog/useSearchDialog.tsx +12 -0
  724. package/mobile/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +1 -1
  725. package/package.json +1 -1
  726. package/src/EventBus/defaultEventBus.ts +4 -2
  727. package/src/EventBus/useLatestEvent.ts +16 -0
  728. package/src/components/ApplicationForm/ApplicationFormContent.ts +2 -2
  729. package/src/components/Bonus/BonusContent.ts +5 -9
  730. package/src/components/BusinessBlock/BusinessBlock.fixture.tsx +2 -3
  731. package/src/components/BusinessBlock/BusinessBlockContent.ts +3 -3
  732. package/src/components/ButtonsBlock/ButtonsBlock.fixture.mobile.tsx +2 -2
  733. package/src/components/ButtonsBlock/ButtonsBlock.fixture.tsx +2 -2
  734. package/src/components/ButtonsBlock/ButtonsBlockContent.ts +2 -2
  735. package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +3 -3
  736. package/src/components/Calculator/Calculator.fixture.tsx +2 -2
  737. package/src/components/Calculator/CalculatorContent.ts +2 -2
  738. package/src/components/CardTransfer/CardTransferContent.ts +2 -2
  739. package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.tsx +1 -1
  740. package/src/components/CarouselCard/CarouselCardContent.ts +3 -3
  741. package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +7 -6
  742. package/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +3 -3
  743. package/src/components/CarouselCatalogCard/CatalogCard.ts +2 -2
  744. package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +3 -3
  745. package/src/components/CarouselProductCard/CarouselProductCardContent.ts +2 -2
  746. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -2
  747. package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.mobile.tsx +3 -2
  748. package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.tsx +4 -4
  749. package/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +4 -9
  750. package/src/components/ContactsBlock/ContactsBlockContent.ts +2 -2
  751. package/src/components/ContentPage/ContentPage.tsx +18 -54
  752. package/src/components/ContentPage/computeAPIFallback.ts +10 -27
  753. package/src/components/ErrorBlock/ErrorBlockContent.ts +2 -2
  754. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +2 -2
  755. package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +2 -2
  756. package/src/components/Footer/Footer.fixture.mobile.tsx +3 -3
  757. package/src/components/Footer/Footer.fixture.tsx +3 -5
  758. package/src/components/Footer/Footer.mobile.tsx +8 -8
  759. package/src/components/Footer/Footer.tsx +5 -3
  760. package/src/components/Footer/FooterProps.ts +1 -4
  761. package/src/components/Footer/SocialMedia.tsx +2 -2
  762. package/src/components/Header/Header.fixture.mobile.tsx +14 -5
  763. package/src/components/Header/Header.fixture.tsx +13 -4
  764. package/src/components/Header/Header.mobile.tsx +3 -2
  765. package/src/components/Header/Header.tsx +7 -11
  766. package/src/components/Header/HeaderProps.ts +1 -6
  767. package/src/components/Header/HeaderSecondaryMenu.tsx +13 -11
  768. package/src/components/Header/HeaderSubMenu.tsx +1 -1
  769. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +2 -2
  770. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +2 -2
  771. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +2 -2
  772. package/src/components/MobileAppTile/MobileAppTile.fixture.mobile.tsx +8 -19
  773. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +11 -11
  774. package/src/components/MobileAppTile/MobileAppTileContent.ts +2 -2
  775. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +2 -2
  776. package/src/components/ProductBlock/ProductBlock.fixture.tsx +4 -4
  777. package/src/components/ProductBlock/ProductBlockContent.ts +2 -2
  778. package/src/components/ProductBlock/renderBackwardButton.tsx +2 -2
  779. package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +3 -3
  780. package/src/components/ProductGallery/ProductGallery.fixture.tsx +3 -3
  781. package/src/components/PromoTile/PromoTileContent.ts +2 -2
  782. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.mobile.tsx +2 -2
  783. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +2 -2
  784. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +2 -2
  785. package/src/components/StepsBlock/StepsBlockContent.ts +9 -9
  786. package/src/components/TariffsTable/EmbeddableCellData.mobile.tsx +3 -2
  787. package/src/components/TariffsTable/EmbeddableCellData.tsx +3 -2
  788. package/src/components/TariffsTable/TariffsTableContent.ts +2 -2
  789. package/src/hooks/useLink.ts +3 -3
  790. package/src/hooks/useList.ts +24 -0
  791. package/src/hooks/useLocation.ts +34 -28
  792. package/src/hooks/useSWRResource.ts +9 -4
  793. package/src/services/sitemap/useSitemap.ts +7 -0
  794. package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +2 -2
  795. package/src/ui-kit/Button/Button.tsx +14 -16
  796. package/src/ui-kit/Button/ButtonContent.ts +21 -0
  797. package/src/ui-kit/Button/ButtonInner.tsx +5 -9
  798. package/src/ui-kit/Button/ButtonProps.ts +4 -49
  799. package/src/ui-kit/Button/ButtonsSectionContent.ts +8 -0
  800. package/src/ui-kit/Button/renderButtonsSection.tsx +3 -3
  801. package/src/ui-kit/CookiePopup/CookiePopup.tsx +12 -17
  802. package/src/ui-kit/{Dialog → DialogManager}/CloseButton.tsx +3 -3
  803. package/src/ui-kit/DialogManager/Dialog.tsx +31 -0
  804. package/src/ui-kit/DialogManager/DialogAction.ts +15 -0
  805. package/src/ui-kit/DialogManager/DialogManager.tsx +85 -0
  806. package/src/ui-kit/DialogManager/useDialogManager.ts +14 -0
  807. package/src/ui-kit/LocationDialog/LocationDialog.fixture.tsx +1 -74
  808. package/src/ui-kit/LocationDialog/LocationDialog.tsx +57 -138
  809. package/src/ui-kit/LocationDialog/renderForeignOffices.tsx +37 -0
  810. package/src/ui-kit/LocationDialog/renderRegion.tsx +15 -0
  811. package/src/ui-kit/LocationDialog/renderRegionGroup.tsx +15 -0
  812. package/src/ui-kit/LocationDialog/useLocationDialog.tsx +11 -0
  813. package/src/ui-kit/SearchBar/SearchBar.tsx +14 -15
  814. package/src/ui-kit/SearchDialog/SearchDialog.tsx +8 -10
  815. package/src/ui-kit/SearchDialog/useSearchDialog.tsx +12 -0
  816. package/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +1 -1
  817. package/bundle/hooks/useCachedAsyncData.d.ts +0 -2
  818. package/bundle/model/Button.d.ts +0 -15
  819. package/bundle/ui-kit/Dialog/DialogAction.d.ts +0 -12
  820. package/bundle/ui-kit/Dialog/useDialog.d.ts +0 -4
  821. package/bundle/ui-kit/Dialog/useDialogHandlers.d.ts +0 -6
  822. package/bundle/ui-kit/Dialog/useDialogProps.d.ts +0 -7
  823. package/bundle/ui-kit/LocationDialog/LocationDialogProps.d.ts +0 -14
  824. package/dist/hooks/useCachedAsyncData.d.ts +0 -2
  825. package/dist/hooks/useCachedAsyncData.js +0 -25
  826. package/dist/hooks/useCachedAsyncData.js.map +0 -1
  827. package/dist/model/Button.d.ts +0 -15
  828. package/dist/model/Button.js.map +0 -1
  829. package/dist/services/sitemap/findActiveSubItem.js.map +0 -1
  830. package/dist/services/sitemap/isHrefActive.js.map +0 -1
  831. package/dist/services/sitemap/isTopItemActive.js.map +0 -1
  832. package/dist/ui-kit/Dialog/CloseButton.js.map +0 -1
  833. package/dist/ui-kit/Dialog/Dialog.js +0 -22
  834. package/dist/ui-kit/Dialog/Dialog.js.map +0 -1
  835. package/dist/ui-kit/Dialog/DialogAction.d.ts +0 -12
  836. package/dist/ui-kit/Dialog/DialogAction.js.map +0 -1
  837. package/dist/ui-kit/Dialog/useDialog.d.ts +0 -4
  838. package/dist/ui-kit/Dialog/useDialog.js +0 -9
  839. package/dist/ui-kit/Dialog/useDialog.js.map +0 -1
  840. package/dist/ui-kit/Dialog/useDialogHandlers.d.ts +0 -6
  841. package/dist/ui-kit/Dialog/useDialogHandlers.js +0 -21
  842. package/dist/ui-kit/Dialog/useDialogHandlers.js.map +0 -1
  843. package/dist/ui-kit/Dialog/useDialogProps.d.ts +0 -7
  844. package/dist/ui-kit/Dialog/useDialogProps.js +0 -39
  845. package/dist/ui-kit/Dialog/useDialogProps.js.map +0 -1
  846. package/dist/ui-kit/LocationDialog/LocationDialogProps.d.ts +0 -14
  847. package/dist/ui-kit/LocationDialog/LocationDialogProps.js.map +0 -1
  848. package/lib/hooks/useCachedAsyncData.d.ts +0 -2
  849. package/lib/hooks/useCachedAsyncData.js +0 -22
  850. package/lib/hooks/useCachedAsyncData.js.map +0 -1
  851. package/lib/model/Button.d.ts +0 -15
  852. package/lib/model/Button.js +0 -2
  853. package/lib/model/Button.js.map +0 -1
  854. package/lib/services/sitemap/findActiveSubItem.js.map +0 -1
  855. package/lib/services/sitemap/isHrefActive.js.map +0 -1
  856. package/lib/services/sitemap/isTopItemActive.js.map +0 -1
  857. package/lib/ui-kit/Dialog/CloseButton.js.map +0 -1
  858. package/lib/ui-kit/Dialog/Dialog.js +0 -20
  859. package/lib/ui-kit/Dialog/Dialog.js.map +0 -1
  860. package/lib/ui-kit/Dialog/DialogAction.d.ts +0 -12
  861. package/lib/ui-kit/Dialog/DialogAction.js.map +0 -1
  862. package/lib/ui-kit/Dialog/useDialog.d.ts +0 -4
  863. package/lib/ui-kit/Dialog/useDialog.js +0 -6
  864. package/lib/ui-kit/Dialog/useDialog.js.map +0 -1
  865. package/lib/ui-kit/Dialog/useDialogHandlers.d.ts +0 -6
  866. package/lib/ui-kit/Dialog/useDialogHandlers.js +0 -18
  867. package/lib/ui-kit/Dialog/useDialogHandlers.js.map +0 -1
  868. package/lib/ui-kit/Dialog/useDialogProps.d.ts +0 -7
  869. package/lib/ui-kit/Dialog/useDialogProps.js +0 -36
  870. package/lib/ui-kit/Dialog/useDialogProps.js.map +0 -1
  871. package/lib/ui-kit/LocationDialog/LocationDialogProps.d.ts +0 -14
  872. package/lib/ui-kit/LocationDialog/LocationDialogProps.js +0 -2
  873. package/lib/ui-kit/LocationDialog/LocationDialogProps.js.map +0 -1
  874. package/mobile/bundle/hooks/useCachedAsyncData.d.ts +0 -2
  875. package/mobile/bundle/model/Button.d.ts +0 -15
  876. package/mobile/bundle/ui-kit/Dialog/DialogAction.d.ts +0 -12
  877. package/mobile/bundle/ui-kit/Dialog/useDialog.d.ts +0 -4
  878. package/mobile/bundle/ui-kit/Dialog/useDialogHandlers.d.ts +0 -6
  879. package/mobile/bundle/ui-kit/Dialog/useDialogProps.d.ts +0 -7
  880. package/mobile/bundle/ui-kit/LocationDialog/LocationDialogProps.d.ts +0 -14
  881. package/mobile/dist/hooks/useCachedAsyncData.d.ts +0 -2
  882. package/mobile/dist/hooks/useCachedAsyncData.js +0 -25
  883. package/mobile/dist/hooks/useCachedAsyncData.js.map +0 -1
  884. package/mobile/dist/model/Button.d.ts +0 -15
  885. package/mobile/dist/model/Button.js.map +0 -1
  886. package/mobile/dist/services/sitemap/findActiveSubItem.js.map +0 -1
  887. package/mobile/dist/services/sitemap/isHrefActive.js.map +0 -1
  888. package/mobile/dist/services/sitemap/isTopItemActive.js.map +0 -1
  889. package/mobile/dist/ui-kit/Dialog/CloseButton.d.ts +0 -7
  890. package/mobile/dist/ui-kit/Dialog/CloseButton.js.map +0 -1
  891. package/mobile/dist/ui-kit/Dialog/Dialog.d.ts +0 -8
  892. package/mobile/dist/ui-kit/Dialog/Dialog.js +0 -22
  893. package/mobile/dist/ui-kit/Dialog/Dialog.js.map +0 -1
  894. package/mobile/dist/ui-kit/Dialog/DialogAction.d.ts +0 -12
  895. package/mobile/dist/ui-kit/Dialog/DialogAction.js.map +0 -1
  896. package/mobile/dist/ui-kit/Dialog/useDialog.d.ts +0 -4
  897. package/mobile/dist/ui-kit/Dialog/useDialog.js +0 -9
  898. package/mobile/dist/ui-kit/Dialog/useDialog.js.map +0 -1
  899. package/mobile/dist/ui-kit/Dialog/useDialogHandlers.d.ts +0 -6
  900. package/mobile/dist/ui-kit/Dialog/useDialogHandlers.js +0 -21
  901. package/mobile/dist/ui-kit/Dialog/useDialogHandlers.js.map +0 -1
  902. package/mobile/dist/ui-kit/Dialog/useDialogProps.d.ts +0 -7
  903. package/mobile/dist/ui-kit/Dialog/useDialogProps.js +0 -39
  904. package/mobile/dist/ui-kit/Dialog/useDialogProps.js.map +0 -1
  905. package/mobile/dist/ui-kit/LocationDialog/LocationDialogProps.d.ts +0 -14
  906. package/mobile/dist/ui-kit/LocationDialog/LocationDialogProps.js +0 -2
  907. package/mobile/dist/ui-kit/LocationDialog/LocationDialogProps.js.map +0 -1
  908. package/mobile/lib/hooks/useCachedAsyncData.d.ts +0 -2
  909. package/mobile/lib/hooks/useCachedAsyncData.js +0 -22
  910. package/mobile/lib/hooks/useCachedAsyncData.js.map +0 -1
  911. package/mobile/lib/model/Button.d.ts +0 -15
  912. package/mobile/lib/model/Button.js +0 -2
  913. package/mobile/lib/model/Button.js.map +0 -1
  914. package/mobile/lib/services/sitemap/findActiveSubItem.js.map +0 -1
  915. package/mobile/lib/services/sitemap/isHrefActive.js.map +0 -1
  916. package/mobile/lib/services/sitemap/isTopItemActive.js.map +0 -1
  917. package/mobile/lib/ui-kit/Dialog/CloseButton.d.ts +0 -7
  918. package/mobile/lib/ui-kit/Dialog/CloseButton.js.map +0 -1
  919. package/mobile/lib/ui-kit/Dialog/Dialog.d.ts +0 -8
  920. package/mobile/lib/ui-kit/Dialog/Dialog.js +0 -20
  921. package/mobile/lib/ui-kit/Dialog/Dialog.js.map +0 -1
  922. package/mobile/lib/ui-kit/Dialog/DialogAction.d.ts +0 -12
  923. package/mobile/lib/ui-kit/Dialog/DialogAction.js.map +0 -1
  924. package/mobile/lib/ui-kit/Dialog/useDialog.d.ts +0 -4
  925. package/mobile/lib/ui-kit/Dialog/useDialog.js +0 -6
  926. package/mobile/lib/ui-kit/Dialog/useDialog.js.map +0 -1
  927. package/mobile/lib/ui-kit/Dialog/useDialogHandlers.d.ts +0 -6
  928. package/mobile/lib/ui-kit/Dialog/useDialogHandlers.js +0 -18
  929. package/mobile/lib/ui-kit/Dialog/useDialogHandlers.js.map +0 -1
  930. package/mobile/lib/ui-kit/Dialog/useDialogProps.d.ts +0 -7
  931. package/mobile/lib/ui-kit/Dialog/useDialogProps.js +0 -36
  932. package/mobile/lib/ui-kit/Dialog/useDialogProps.js.map +0 -1
  933. package/mobile/lib/ui-kit/LocationDialog/LocationDialogProps.d.ts +0 -14
  934. package/mobile/lib/ui-kit/LocationDialog/LocationDialogProps.js +0 -2
  935. package/mobile/lib/ui-kit/LocationDialog/LocationDialogProps.js.map +0 -1
  936. package/mobile/src/components/Header/sitemap.wcms-resource.json +0 -144
  937. package/mobile/src/hooks/useCachedAsyncData.ts +0 -37
  938. package/mobile/src/model/Button.ts +0 -16
  939. package/mobile/src/ui-kit/Dialog/Dialog.tsx +0 -46
  940. package/mobile/src/ui-kit/Dialog/DialogAction.ts +0 -14
  941. package/mobile/src/ui-kit/Dialog/useDialog.ts +0 -6
  942. package/mobile/src/ui-kit/Dialog/useDialogHandlers.ts +0 -28
  943. package/mobile/src/ui-kit/Dialog/useDialogProps.ts +0 -48
  944. package/mobile/src/ui-kit/LocationDialog/LocationDialogProps.ts +0 -21
  945. package/src/components/Header/sitemap.wcms-resource.json +0 -144
  946. package/src/hooks/useCachedAsyncData.ts +0 -37
  947. package/src/model/Button.ts +0 -16
  948. package/src/ui-kit/Dialog/Dialog.tsx +0 -46
  949. package/src/ui-kit/Dialog/DialogAction.ts +0 -14
  950. package/src/ui-kit/Dialog/useDialog.ts +0 -6
  951. package/src/ui-kit/Dialog/useDialogHandlers.ts +0 -28
  952. package/src/ui-kit/Dialog/useDialogProps.ts +0 -48
  953. package/src/ui-kit/LocationDialog/LocationDialogProps.ts +0 -21
  954. /package/bundle/{services/sitemap → components/Header}/findActiveSubItem.d.ts +0 -0
  955. /package/bundle/{services/sitemap → components/Header}/isHrefActive.d.ts +0 -0
  956. /package/bundle/{services/sitemap → components/Header}/isTopItemActive.d.ts +0 -0
  957. /package/dist/{services/sitemap → components/Header}/findActiveSubItem.d.ts +0 -0
  958. /package/dist/{services/sitemap → components/Header}/findActiveSubItem.js +0 -0
  959. /package/dist/{services/sitemap → components/Header}/isHrefActive.d.ts +0 -0
  960. /package/dist/{services/sitemap → components/Header}/isHrefActive.js +0 -0
  961. /package/dist/{services/sitemap → components/Header}/isTopItemActive.d.ts +0 -0
  962. /package/dist/{services/sitemap → components/Header}/isTopItemActive.js +0 -0
  963. /package/dist/ui-kit/{Dialog → DialogManager}/DialogAction.js +0 -0
  964. /package/lib/{services/sitemap → components/Header}/findActiveSubItem.d.ts +0 -0
  965. /package/lib/{services/sitemap → components/Header}/findActiveSubItem.js +0 -0
  966. /package/lib/{services/sitemap → components/Header}/isHrefActive.d.ts +0 -0
  967. /package/lib/{services/sitemap → components/Header}/isHrefActive.js +0 -0
  968. /package/lib/{services/sitemap → components/Header}/isTopItemActive.d.ts +0 -0
  969. /package/lib/{services/sitemap → components/Header}/isTopItemActive.js +0 -0
  970. /package/lib/ui-kit/{Dialog → DialogManager}/DialogAction.js +0 -0
  971. /package/mobile/bundle/{services/sitemap → components/Header}/findActiveSubItem.d.ts +0 -0
  972. /package/mobile/bundle/{services/sitemap → components/Header}/isHrefActive.d.ts +0 -0
  973. /package/mobile/bundle/{services/sitemap → components/Header}/isTopItemActive.d.ts +0 -0
  974. /package/mobile/dist/{services/sitemap → components/Header}/findActiveSubItem.d.ts +0 -0
  975. /package/mobile/dist/{services/sitemap → components/Header}/findActiveSubItem.js +0 -0
  976. /package/mobile/dist/{services/sitemap → components/Header}/isHrefActive.d.ts +0 -0
  977. /package/mobile/dist/{services/sitemap → components/Header}/isHrefActive.js +0 -0
  978. /package/mobile/dist/{services/sitemap → components/Header}/isTopItemActive.d.ts +0 -0
  979. /package/mobile/dist/{services/sitemap → components/Header}/isTopItemActive.js +0 -0
  980. /package/mobile/dist/ui-kit/{Dialog → DialogManager}/DialogAction.js +0 -0
  981. /package/mobile/lib/{services/sitemap → components/Header}/findActiveSubItem.d.ts +0 -0
  982. /package/mobile/lib/{services/sitemap → components/Header}/findActiveSubItem.js +0 -0
  983. /package/mobile/lib/{services/sitemap → components/Header}/isHrefActive.d.ts +0 -0
  984. /package/mobile/lib/{services/sitemap → components/Header}/isHrefActive.js +0 -0
  985. /package/mobile/lib/{services/sitemap → components/Header}/isTopItemActive.d.ts +0 -0
  986. /package/mobile/lib/{services/sitemap → components/Header}/isTopItemActive.js +0 -0
  987. /package/mobile/lib/ui-kit/{Dialog → DialogManager}/DialogAction.js +0 -0
  988. /package/mobile/src/{services/sitemap → components/Header}/findActiveSubItem.ts +0 -0
  989. /package/mobile/src/{services/sitemap → components/Header}/isHrefActive.ts +0 -0
  990. /package/mobile/src/{services/sitemap → components/Header}/isTopItemActive.ts +0 -0
  991. /package/src/{services/sitemap → components/Header}/findActiveSubItem.ts +0 -0
  992. /package/src/{services/sitemap → components/Header}/isHrefActive.ts +0 -0
  993. /package/src/{services/sitemap → components/Header}/isTopItemActive.ts +0 -0
@@ -0,0 +1,10 @@
1
+ export declare function useList<T>(initialList?: T[]): [
2
+ T[],
3
+ {
4
+ setList: (_: T[]) => void;
5
+ push: (item: T) => void;
6
+ pop: () => void;
7
+ remove: (item: T) => void;
8
+ clear: () => void;
9
+ }
10
+ ];
@@ -0,0 +1,13 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.useList = void 0;
3
+ const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
4
+ function useList(initialList = []) {
5
+ const [list, setList] = (0, hooks_1.useState)(initialList);
6
+ const push = (0, hooks_1.useCallback)((item) => setList((_) => [..._, item]), []);
7
+ const pop = (0, hooks_1.useCallback)(() => setList((_) => _.slice(0, -1)), []);
8
+ const remove = (0, hooks_1.useCallback)((item) => setList((_) => _.filter((currentItem) => currentItem !== item)), []);
9
+ const clear = (0, hooks_1.useCallback)(() => setList([]), []);
10
+ return [list, { setList, push, pop, remove, clear }];
11
+ }
12
+ exports.useList = useList;
13
+ //# sourceMappingURL=useList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useList.js","sourceRoot":"","sources":["../../src/hooks/useList.ts"],"names":[],"mappings":";;AAAA,uDAAoE;AAEpE,SAAgB,OAAO,CAAI,cAAmB,EAAE;IAU9C,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,gBAAQ,EAAM,WAAW,CAAC,CAAC;IAEnD,MAAM,IAAI,GAAG,IAAA,mBAAW,EAAC,CAAC,IAAO,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACxE,MAAM,GAAG,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAClE,MAAM,MAAM,GAAG,IAAA,mBAAW,EACxB,CAAC,IAAO,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,KAAK,IAAI,CAAC,CAAC,EAC5E,EAAE,CACH,CAAC;IACF,MAAM,KAAK,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAEjD,OAAO,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;AACvD,CAAC;AArBD,0BAqBC"}
@@ -3,4 +3,4 @@ export interface RegionData {
3
3
  code?: string;
4
4
  name?: string;
5
5
  }
6
- export declare function useLocation(defaultLocation?: string): [RegionData, (newLocation: RegionData) => void];
6
+ export declare function useLocation(defaultLocation?: string): [RegionData, (_: RegionData) => void];
@@ -1,32 +1,43 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.useLocation = void 0;
3
3
  const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
4
+ const useAsyncData_1 = require("@redneckz/uni-jsx/lib/hooks/useAsyncData");
5
+ const defaultEventBus_1 = require("../EventBus/defaultEventBus");
6
+ const useLatestEvent_1 = require("../EventBus/useLatestEvent");
4
7
  const fetchJSON_1 = require("../utils/fetchJSON");
5
- const useCachedAsyncData_1 = require("./useCachedAsyncData");
6
8
  const REGION_URL = '/api/v1/region';
9
+ const LOCATION_STORAGE_KEY = 'location';
7
10
  function useLocation(defaultLocation = 'Москва') {
8
- const currentLocation = getLocalStorageLocation();
9
- const [location, setLocation] = (0, hooks_1.useState)(currentLocation?.region ?? { name: defaultLocation });
10
- const { data } = (0, useCachedAsyncData_1.useCachedAsyncData)(REGION_URL, fetchJSON_1.fetchJSONUnsafe);
11
+ const [currentLocation, fireCurrentLocation] = (0, useLatestEvent_1.useLatestEvent)(defaultEventBus_1.defaultEventBus, 'location', restoreLocation() ?? { name: defaultLocation });
12
+ const selectCurrentLocation = (0, hooks_1.useCallback)((_) => {
13
+ storeLocation(_);
14
+ fireCurrentLocation(_);
15
+ }, []);
16
+ const { data } = (0, useAsyncData_1.useAsyncData)(REGION_URL, fetchJSON_1.fetchJSONUnsafe);
11
17
  (0, hooks_1.useEffect)(() => {
12
- setLocation(currentLocation?.region && currentLocation?.manual
13
- ? currentLocation.region
14
- : data || { name: defaultLocation });
18
+ if (data && !hasStoredLocation()) {
19
+ fireCurrentLocation(data);
20
+ }
15
21
  }, [data]);
16
- const onChangeLocation = (0, hooks_1.useCallback)((region) => {
17
- globalThis.localStorage?.setItem('location', JSON.stringify({ manual: true, region }));
18
- setLocation(region);
19
- }, []);
20
- return [location, onChangeLocation];
22
+ return [currentLocation ?? { name: defaultLocation }, selectCurrentLocation];
21
23
  }
22
24
  exports.useLocation = useLocation;
23
- const getLocalStorageLocation = () => {
24
- const localStorageLocation = globalThis.localStorage?.getItem('location');
25
+ const hasStoredLocation = () => Boolean(globalThis.localStorage?.getItem(LOCATION_STORAGE_KEY));
26
+ const restoreLocation = () => {
25
27
  try {
26
- return localStorageLocation ? JSON.parse(localStorageLocation) : null;
28
+ const data = globalThis.localStorage?.getItem(LOCATION_STORAGE_KEY);
29
+ return data && JSON.parse(data);
27
30
  }
28
- catch (_) {
31
+ catch (ex) {
29
32
  return null;
30
33
  }
31
34
  };
35
+ const storeLocation = (_) => {
36
+ try {
37
+ globalThis.localStorage?.setItem(LOCATION_STORAGE_KEY, JSON.stringify(_));
38
+ }
39
+ catch (ex) {
40
+ // Do nothing
41
+ }
42
+ };
32
43
  //# sourceMappingURL=useLocation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLocation.js","sourceRoot":"","sources":["../../src/hooks/useLocation.ts"],"names":[],"mappings":";;AAAA,uDAA+E;AAC/E,kDAAqD;AACrD,6DAA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GAAG,UAAU,CAAC,YAAY,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;QAEpE,OAAO,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;KACjC;IAAC,OAAO,EAAE,EAAE;QACX,OAAO,IAAI,CAAC;KACb;AACH,CAAC,CAAC;AAEF,MAAM,aAAa,GAAG,CAAC,CAAa,EAAE,EAAE;IACtC,IAAI;QACF,UAAU,CAAC,YAAY,EAAE,OAAO,CAAC,oBAAoB,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;KAC3E;IAAC,OAAO,EAAE,EAAE;QACX,aAAa;KACd;AACH,CAAC,CAAC"}
@@ -1,2 +1,2 @@
1
1
  import type { Fallback } from '../model/Fallback';
2
- export declare function useSWRResource<Data>(filename: string, fallback?: Fallback): Data;
2
+ export declare function useSWRResource<Data>(filename: string | null | undefined, fallback?: Fallback): Data;
@@ -3,10 +3,8 @@ exports.useSWRResource = void 0;
3
3
  const useAsyncData_1 = require("@redneckz/uni-jsx/lib/hooks/useAsyncData");
4
4
  const fetchJSON_1 = require("../utils/fetchJSON");
5
5
  const EMPTY_VALUE = {};
6
- function useSWRResource(filename, fallback = {}) {
7
- const { data } = (0, useAsyncData_1.useAsyncData)(`/wcms-resources/${filename}.json`, fetchJSON_1.fetchJSONUnsafe, {
8
- fallback,
9
- });
6
+ function useSWRResource(filename, fallback = EMPTY_VALUE) {
7
+ const { data } = (0, useAsyncData_1.useAsyncData)(filename ? `/wcms-resources/${filename}.json` : null, fetchJSON_1.fetchJSONUnsafe, { fallback });
10
8
  return data || EMPTY_VALUE;
11
9
  }
12
10
  exports.useSWRResource = useSWRResource;
@@ -1 +1 @@
1
- {"version":3,"file":"useSWRResource.js","sourceRoot":"","sources":["../../src/hooks/useSWRResource.ts"],"names":[],"mappings":";;AAAA,2EAAwE;AAExE,kDAAqD;AAErD,MAAM,WAAW,GAAG,EAAE,CAAC;AAEvB,SAAgB,cAAc,CAAO,QAAgB,EAAE,WAAqB,EAAE;IAC5E,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,2BAAY,EAAO,mBAAmB,QAAQ,OAAO,EAAE,2BAAe,EAAE;QACvF,QAAQ;KACT,CAAC,CAAC;IAEH,OAAO,IAAI,IAAK,WAAoB,CAAC;AACvC,CAAC;AAND,wCAMC"}
1
+ {"version":3,"file":"useSWRResource.js","sourceRoot":"","sources":["../../src/hooks/useSWRResource.ts"],"names":[],"mappings":";;AAAA,2EAAwE;AAExE,kDAAqD;AAErD,MAAM,WAAW,GAAG,EAAE,CAAC;AAEvB,SAAgB,cAAc,CAC5B,QAAmC,EACnC,WAAqB,WAAW;IAEhC,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,2BAAY,EAC3B,QAAQ,CAAC,CAAC,CAAC,mBAAmB,QAAQ,OAAO,CAAC,CAAC,CAAC,IAAI,EACpD,2BAAe,EACf,EAAE,QAAQ,EAAE,CACb,CAAC;IAEF,OAAO,IAAI,IAAK,WAAoB,CAAC;AACvC,CAAC;AAXD,wCAWC"}
@@ -0,0 +1,3 @@
1
+ import type { Fallback } from '../../model/Fallback';
2
+ import type { SitemapData } from './SitemapData';
3
+ export declare const useSitemap: (fallback?: Fallback) => SitemapData;
@@ -0,0 +1,7 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.useSitemap = void 0;
3
+ const useSWRResource_1 = require("../../hooks/useSWRResource");
4
+ const ProjectSettings_1 = require("../../ProjectSettings");
5
+ const useSitemap = (fallback) => (0, useSWRResource_1.useSWRResource)(ProjectSettings_1.projectSettings.SITEMAP || 'sitemap', fallback);
6
+ exports.useSitemap = useSitemap;
7
+ //# sourceMappingURL=useSitemap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSitemap.js","sourceRoot":"","sources":["../../../src/services/sitemap/useSitemap.ts"],"names":[],"mappings":";;AAAA,+DAA4D;AAE5D,2DAAwD;AAGjD,MAAM,UAAU,GAAG,CAAC,QAAmB,EAAE,EAAE,CAChD,IAAA,+BAAc,EAAc,iCAAe,CAAC,OAAO,IAAI,SAAS,EAAE,QAAQ,CAAC,CAAC;AADjE,QAAA,UAAU,cACuD"}
@@ -1,12 +1,12 @@
1
1
  import type { Align } from '../../model/Align';
2
2
  import type { BulletsProps } from '../../model/Bullets';
3
3
  import type { HeadlineProps } from '../../model/HeadlineType';
4
- import type { ButtonContent } from '../Button/ButtonProps';
5
4
  import type { ImageContent } from '../Img/ImgProps';
6
5
  import type { ListContent } from '../List/ListContent';
7
6
  import type { RichTextProps } from '../RichText/RichTextProps';
8
7
  import type { TagsContent } from '../Tags/TagsContent';
9
8
  import type { BenefitsListContent } from '../BenefitsList/BenefitsListContent';
9
+ import type { ButtonsSectionContent } from '../Button/ButtonsSectionContent';
10
10
  /** @title Доп. настройки картинки */
11
11
  export interface TileImageOptions {
12
12
  /** @title Картинка справа/текст слева */
@@ -16,7 +16,7 @@ export interface TileImageOptions {
16
16
  /** @title Фоновое изображение */
17
17
  isBackground?: boolean;
18
18
  }
19
- export declare type BaseProductTileContent = HeadlineProps & BenefitsListContent & RichTextProps & ListContent & BulletsProps & TagsContent & ButtonContent & ImageContent & {
19
+ export declare type BaseProductTileContent = HeadlineProps & BenefitsListContent & RichTextProps & ListContent & BulletsProps & TagsContent & ButtonsSectionContent & ImageContent & {
20
20
  /** @title Лейбл (моб.) */
21
21
  label?: string;
22
22
  imageOptions?: TileImageOptions;
@@ -1,2 +1,2 @@
1
- import type { ButtonWithIconProps } from './ButtonProps';
2
- export declare const Button: import("@redneckz/uni-jsx").UNIComponent<ButtonWithIconProps, any, any>;
1
+ import type { ButtonProps } from './ButtonProps';
2
+ export declare const Button: import("@redneckz/uni-jsx").UNIComponent<ButtonProps, any, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/Button.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAC9C,+CAA4C;AAE5C,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OAAO,YAEf,QAAQ,GACP,CACL,CACF,CAAC;AAEF,MAAM,cAAc,GAAG,IAAA,aAAG,EAAc,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAChG,gCACE,IAAI,EAAC,QAAQ,mBACC,MAAM,gBACR,SAAS,EACrB,QAAQ,EAAE,CAAC,CAAC,EACZ,SAAS,EAAE,IAAA,mDAAwB,EAAC,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,YAEnE,QAAQ,GACL,CACP,CAAC,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { ButtonVersion } from '../../model/ButtonVersion';
2
+ import type { LinkProps } from '../../model/LinkProps';
3
+ import type { Picture } from '../../model/Picture';
4
+ export interface ButtonCommonContent extends LinkProps {
5
+ version?: ButtonVersion;
6
+ }
7
+ /**
8
+ * @title Кнопка
9
+ */
10
+ export interface ButtonContent extends ButtonCommonContent {
11
+ /** @title Закругленные углы */
12
+ rounded?: boolean;
13
+ /** @title Иконка слева */
14
+ icon?: Picture;
15
+ /** @title Иконка справа */
16
+ iconRight?: Picture;
17
+ /** @title Верхний текст */
18
+ aboveText?: string;
19
+ }
@@ -1,2 +1,2 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
- //# sourceMappingURL=Button.js.map
2
+ //# sourceMappingURL=ButtonContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonContent.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonContent.ts"],"names":[],"mappings":""}
@@ -1,7 +1,2 @@
1
- import type { ButtonVersion } from '../../model/ButtonVersion';
2
- import type { ButtonWithIconProps } from './ButtonProps';
3
- interface ButtonInnerProps extends ButtonWithIconProps {
4
- version?: ButtonVersion;
5
- }
6
- export declare const ButtonInner: import("@redneckz/uni-jsx").UNIComponent<ButtonInnerProps, any, any>;
7
- export {};
1
+ import type { ButtonProps } from './ButtonProps';
2
+ export declare const ButtonInner: import("@redneckz/uni-jsx").UNIComponent<ButtonProps, any, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonInner.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6CAA0C;AAC1C,yEAA0D;AAO7C,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,KAAK,EAAE,EAAE;IACzD,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAEhF,OAAO,CACL,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,cAAc,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,aACvD,UAAU,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAE,uCAAY,CAAC,OAAO,CAAC,YAAG,UAAU,GAAO,CAAC,CAAC,CAAC,IAAI,EAC7E,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CACnB,4CACG,SAAS,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,8BAA8B,YAAE,SAAS,GAAO,CAAC,CAAC,CAAC,IAAI,EACnF,gCAAK,SAAS,EAAE,aAAa,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,QAAQ,EAAE,YAAG,IAAI,GAAO,IAChF,CACP,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAE,uCAAY,CAAC,OAAO,CAAC,YAAG,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,IAC5E,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,CAAC,KAAuB,EAAE,EAAE;IACjD,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE9C,IAAI,OAAO,KAAK,MAAM,EAAE;QACtB,OAAO,EAA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CAAC,CAAC,CAAC,QAAQ,EAAE,YAAG,IAAI,GAAO,IAChF,CACP,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAE,uCAAY,CAAC,OAAO,CAAC,YAAG,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,IAC5E,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,CAAC,KAAoB,EAAE,EAAE;IAC9C,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE9C,IAAI,OAAO,KAAK,MAAM,EAAE;QACtB,OAAO,EAAE,CAAC;KACX;IAED,MAAM,aAAa,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAEnE,OAAO;QACL,uCAAuC;QACvC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW;QAC/C,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE;KAC9B,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACd,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAe,EAAE,EAAE,CAClE,OAAO,CAAC,IAAI,IAAI,SAAS,IAAI,CAAC,UAAU,CAAC,CAAC"}
@@ -1,55 +1,15 @@
1
- import type { ButtonVersion } from '../../model/ButtonVersion';
2
- import type { LinkProps } from '../../model/LinkProps';
3
- import type { IconProps, Picture } from '../../model/Picture';
4
1
  import type { VNode } from '../../model/VNode';
5
2
  import type { PreventableEvent } from '../PreventableEvent';
3
+ import type { ButtonContent } from './ButtonContent';
6
4
  /**
7
- * @hidden
5
+ * @title Кнопка
8
6
  */
9
- export interface ButtonAdditionalProps {
7
+ export interface ButtonProps extends ButtonContent {
10
8
  className?: string;
11
9
  disabled?: boolean;
12
10
  rel?: string;
13
11
  ariaLabel?: string;
14
- onClick?: (ev?: PreventableEvent) => void;
15
- }
16
- /**
17
- * @title Кнопка
18
- */
19
- export interface ButtonProps extends ButtonAdditionalProps, LinkProps {
20
- /** @title Текст */
21
- text?: string;
22
- /** @title Закругленные углы */
23
- rounded?: boolean;
24
- version?: ButtonVersion;
25
- }
26
- /**
27
- * @title Кнопка
28
- */
29
- export interface ButtonWithIconProps extends ButtonProps {
30
- /** @title Иконка слева */
31
- icon?: Picture;
32
- /** @title Иконка справа */
33
- iconRight?: Picture;
34
- /** @title Верхний текст */
35
- aboveText?: string;
36
- /** @hidden */
37
12
  appendLeft?: VNode;
38
- /** @hidden */
39
13
  appendRight?: VNode;
14
+ onClick?: (ev?: PreventableEvent) => void;
40
15
  }
41
- export interface ButtonContent {
42
- /**
43
- * @title Кнопки
44
- * @maxItems 4
45
- */
46
- buttons?: ButtonWithIconProps[];
47
- }
48
- export declare type BackwardButtonProps = ButtonProps & IconProps & {
49
- /** @title Верхний текст */
50
- aboveText?: string;
51
- /** @hidden */
52
- appendLeft?: VNode;
53
- /** @title Закругленные углы */
54
- rounded?: boolean;
55
- };
@@ -0,0 +1,7 @@
1
+ import type { ButtonContent } from './ButtonContent';
2
+ export interface ButtonsSectionContent {
3
+ /**
4
+ * @title Кнопки
5
+ */
6
+ buttons?: ButtonContent[];
7
+ }
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=ButtonsSectionContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonsSectionContent.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonsSectionContent.ts"],"names":[],"mappings":""}
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import type { ButtonWithIconProps } from './ButtonProps';
2
+ import type { ButtonContent } from './ButtonContent';
3
3
  interface ButtonsSectionOptions {
4
4
  className?: string;
5
5
  buttonClassName?: string;
6
6
  isVertical?: boolean;
7
7
  }
8
- export declare const renderButtonsSection: (buttons?: (ButtonWithIconProps | undefined)[], { className, buttonClassName, isVertical }?: ButtonsSectionOptions) => JSX.Element | null;
8
+ export declare const renderButtonsSection: (buttons?: (ButtonContent | undefined)[], { className, buttonClassName, isVertical }?: ButtonsSectionOptions) => JSX.Element | null;
9
9
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"renderButtonsSection.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/renderButtonsSection.tsx"],"names":[],"mappings":";;;AACA,6CAA0C;AAC1C,oCAAiC;AACjC,qCAAkC;AAS3B,MAAM,oBAAoB,GAAG,CAClC,OAA6C,EAC7C,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,KAA4B,EAAE,EACtE,EAAE,CACF,OAAO,EAAE,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CACjE,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,MAAM,EACN,UAAU,CAAC,CAAC,CAAC,uCAAuC,CAAC,CAAC,CAAC,iBAAiB,EACxE,SAAS,CACV,YAEA,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,GACvC,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAdE,QAAA,oBAAoB,wBActB;AAEX,MAAM,YAAY,GAChB,CAAC,eAAe,GAAG,EAAE,EAAE,EAAE,CACzB,CAAC,MAA4B,EAAE,KAAc,EAAE,EAAE;IAC/C,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;IACjE,MAAM,kBAAkB,GAAG,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IACvE,MAAM,WAAW,GAAG,IA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,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC;AAEJ,MAAM,cAAc,GAAG,EAAE,CAAC;AAE1B,MAAM,gBAAgB,GAAG,CAAC,IAAa,EAAE,EAAE,CACzC,IAAI,EAAE,IAAI,IAAI,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CACxB,uBAAC,SAAG,IACF,KAAK,EAAE,IAAI,EACX,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,IAAI,cAAc,CAAC,EAClD,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC,GAC9B,CACH,CAAC,CAAC,CAAC,IAAI,CAAC"}
@@ -3,16 +3,16 @@ exports.CookiePopup = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
6
+ const useBool_1 = require("../../hooks/useBool");
6
7
  const style_1 = require("../../utils/style");
7
8
  const useDebouncedEffect_1 = require("../../utils/useDebouncedEffect");
8
- const CloseButton_1 = require("../Dialog/CloseButton");
9
- const useDialogProps_1 = require("../Dialog/useDialogProps");
9
+ const CloseButton_1 = require("../DialogManager/CloseButton");
10
10
  const LinkWrapper_1 = require("../LinkWrapper/LinkWrapper");
11
11
  const Paragraph_1 = require("../Paragraph/Paragraph");
12
12
  const COOKIE_DIALOG_ID = 'cookie';
13
13
  const DIALOG_INITIAL_DELAY = 3 * 1000;
14
14
  exports.CookiePopup = (0, uni_jsx_1.JSX)(({ termLink, personalDataPolicyLink }) => {
15
- const { isOpened, open, close } = (0, useDialogProps_1.useDialogProps)(COOKIE_DIALOG_ID);
15
+ const [opened, { setTrue: open, setFalse: close }] = (0, useBool_1.useBool)();
16
16
  (0, useDebouncedEffect_1.useDebouncedEffect)(() => {
17
17
  if (!globalThis.localStorage?.getItem(COOKIE_DIALOG_ID)) {
18
18
  open();
@@ -21,8 +21,8 @@ exports.CookiePopup = (0, uni_jsx_1.JSX)(({ termLink, personalDataPolicyLink })
21
21
  const handleClose = (0, hooks_1.useCallback)(() => {
22
22
  globalThis.localStorage?.setItem(COOKIE_DIALOG_ID, 'true');
23
23
  close();
24
- }, [close]);
25
- return isOpened ? ((0, jsx_runtime_1.jsx)("div", { className: "container z-40 fixed bottom-0 left-0 right-0 pointer-events-none", children: (0, jsx_runtime_1.jsxs)("div", { className: "bg-white m-5 p-5 sm:m-6 sm:p-6 rounded-md flex sm:items-center pointer-events-auto shadow-[0_4px_25px_rgba(0,0,0,0.07)]", children: [(0, jsx_runtime_1.jsx)("div", { className: "sm:flex-1", children: (0, jsx_runtime_1.jsxs)(Paragraph_1.Paragraph, { size: "text-s", font: "font-light", color: "text-primary-text", children: ["\u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442", (0, jsx_runtime_1.jsx)(LinkWrapper_1.LinkWrapper, { isRemote: true, className: (0, style_1.style)(getStyleLinkWrapper(termLink?.href)), ...termLink, children: "cookie" }), "(\u0444\u0430\u0439\u043B\u044B \u0441 \u0434\u0430\u043D\u043D\u044B\u043C\u0438 \u043E \u043F\u0440\u043E\u0448\u043B\u044B\u0445 \u043F\u043E\u0441\u0435\u0449\u0435\u043D\u0438\u044F\u0445 \u0441\u0430\u0439\u0442\u0430) \u0434\u043B\u044F \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043E\u0432 \u0438 \u0443\u0434\u043E\u0431\u0441\u0442\u0432\u0430 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u0430\u043F\u0440\u0435\u0442\u0438\u0442\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435 cookie \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445 \u0441\u0432\u043E\u0435\u0433\u043E \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", (0, jsx_runtime_1.jsx)(LinkWrapper_1.LinkWrapper, { isRemote: true, className: (0, style_1.style)(getStyleLinkWrapper(personalDataPolicyLink?.href)), ...personalDataPolicyLink, children: "\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0430 \u0412\u0430\u0448\u0438\u0445 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" }), "\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F\u043C\u0438 \u0424\u0435\u0434\u0435\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0437\u0430\u043A\u043E\u043D\u0430 \u043E\u0442 27.07.2006 \u2116 152-\u04243 \u00AB\u041E \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445\u00BB."] }) }), (0, jsx_runtime_1.jsx)("div", { className: "ml-3 sm:ml-0 w-24 flex justify-end", children: (0, jsx_runtime_1.jsx)(CloseButton_1.CloseButton, { className: "bg-main-gray rounded-md", onClick: handleClose }) })] }) })) : null;
24
+ }, []);
25
+ return opened ? ((0, jsx_runtime_1.jsx)("div", { className: "container fixed left-0 right-0 bottom-0 z-50", children: (0, jsx_runtime_1.jsxs)("div", { className: "bg-white m-xl p-xl rounded-md flex sm:items-center shadow-[0_4px_25px_rgba(0,0,0,0.07)]", children: [(0, jsx_runtime_1.jsx)("div", { className: "sm:flex-1", children: (0, jsx_runtime_1.jsxs)(Paragraph_1.Paragraph, { size: "text-s", font: "font-light", color: "text-primary-text", children: ["\u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442", (0, jsx_runtime_1.jsx)(LinkWrapper_1.LinkWrapper, { isRemote: true, className: linkWrapperStyle(termLink?.href), ...termLink, children: "cookie" }), "(\u0444\u0430\u0439\u043B\u044B \u0441 \u0434\u0430\u043D\u043D\u044B\u043C\u0438 \u043E \u043F\u0440\u043E\u0448\u043B\u044B\u0445 \u043F\u043E\u0441\u0435\u0449\u0435\u043D\u0438\u044F\u0445 \u0441\u0430\u0439\u0442\u0430) \u0434\u043B\u044F \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043E\u0432 \u0438 \u0443\u0434\u043E\u0431\u0441\u0442\u0432\u0430 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u0430\u043F\u0440\u0435\u0442\u0438\u0442\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435 cookie \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445 \u0441\u0432\u043E\u0435\u0433\u043E \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", (0, jsx_runtime_1.jsx)(LinkWrapper_1.LinkWrapper, { isRemote: true, className: linkWrapperStyle(personalDataPolicyLink?.href), ...personalDataPolicyLink, children: "\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0430 \u0412\u0430\u0448\u0438\u0445 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" }), "\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F\u043C\u0438 \u0424\u0435\u0434\u0435\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0437\u0430\u043A\u043E\u043D\u0430 \u043E\u0442 27.07.2006 \u2116 152-\u04243 \u00AB\u041E \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445\u00BB."] }) }), (0, jsx_runtime_1.jsx)("div", { className: "ml-s sm:ml-0 w-24 flex justify-end", children: (0, jsx_runtime_1.jsx)(CloseButton_1.CloseButton, { className: "bg-main-gray rounded-md", onClose: handleClose }) })] }) })) : null;
26
26
  });
27
- const getStyleLinkWrapper = (href) => ['inline mx-1', href ? 'text-green-dark' : ''];
27
+ const linkWrapperStyle = (href) => (0, style_1.style)('inline mx-1', href ? 'text-green-dark' : '');
28
28
  //# sourceMappingURL=CookiePopup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CookiePopup.js","sourceRoot":"","sources":["../../../src/ui-kit/CookiePopup/CookiePopup.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAE1D,6CAA0C;AAC1C,uEAAoE;AACpE,uDAAoD;AACpD,6DAA0D;AAC1D,4DAAyD;AACzD,sDAAmD;AAOnD,MAAM,gBAAgB,GAAG,QAAQ,CAAC;AAClC,MAAM,oBAAoB,GAAG,CAAC,GAAG,IAAI,CAAC;AAEzB,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,QAAQ,EAAE,sBAAsB,EAAE,EAAE,EAAE;IACxF,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,IAAA,+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gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAM,QAAQ,uBAEjE,+0BAGd,uBAAC,yBAAW,IACV,QAAQ,QACR,SAAS,EAAE,gBAAgB,CAAC,sBAAsB,EAAE,IAAI,CAAC,KACrD,sBAAsB,oNAGd,2gBAGJ,GACR,EACN,gCAAK,SAAS,EAAC,oCAAoC,YACjD,uBAAC,yBAAW,IAAC,SAAS,EAAC,yBAAyB,EAAC,OAAO,EAAE,WAAW,GAAI,GACrE,IACF,GACF,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC,CAAC;AAEH,MAAM,gBAAgB,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,IAAA,aAAK,EAAC,aAAa,EAAE,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { PreventableEvent } from '../PreventableEvent';
2
+ interface CloseButtonProps {
3
+ className?: string;
4
+ onClose?: (ev: PreventableEvent) => void;
5
+ }
6
+ export declare const CloseButton: import("@redneckz/uni-jsx").UNIComponent<CloseButtonProps, any, any>;
7
+ export {};
@@ -4,5 +4,5 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const style_1 = require("../../utils/style");
6
6
  const Img_1 = require("../Img/Img");
7
- exports.CloseButton = (0, uni_jsx_1.JSX)(({ className, onClick }) => ((0, jsx_runtime_1.jsx)("button", { className: (0, style_1.style)('flex justify-center items-center w-12 h-12 p-1 bg-transparent border-none', className), onClick: onClick, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon: 'CloseIcon' }, width: "24", height: "24" }) })));
7
+ exports.CloseButton = (0, uni_jsx_1.JSX)(({ className, onClose }) => ((0, jsx_runtime_1.jsx)("button", { className: (0, style_1.style)('flex justify-center items-center w-12 h-12 p-1 bg-transparent border-none', className), onClick: onClose, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon: 'CloseIcon' }, width: "24", height: "24" }) })));
8
8
  //# sourceMappingURL=CloseButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloseButton.js","sourceRoot":"","sources":["../../../src/ui-kit/DialogManager/CloseButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,6CAA0C;AAC1C,oCAAiC;AAQpB,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAC3E,mCACE,SAAS,EAAE,IAAA,aAAK,EACd,2EAA2E,EAC3E,SAAS,CACV,EACD,OAAO,EAAE,OAAO,EAChB,KAAK,EAAC,4CAAS,YAEf,uBAAC,SAAG,IAAC,KAAK,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,GACrD,CACV,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { VNode } from '../../model/VNode';
2
+ export interface DialogProps {
3
+ className?: string;
4
+ head?: VNode;
5
+ onClose?: () => void;
6
+ }
7
+ export declare const Dialog: import("@redneckz/uni-jsx").UNIComponent<DialogProps, any, any>;
@@ -0,0 +1,17 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.Dialog = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
6
+ const style_1 = require("../../utils/style");
7
+ const CloseButton_1 = require("./CloseButton");
8
+ const useDialogManager_1 = require("./useDialogManager");
9
+ exports.Dialog = (0, uni_jsx_1.JSX)(({ className, head, children, onClose }) => {
10
+ const { close } = (0, useDialogManager_1.useDialogManager)();
11
+ const handleClose = (0, hooks_1.useCallback)(() => {
12
+ close();
13
+ onClose && onClose();
14
+ }, [onClose]);
15
+ return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('relative min-h-full bg-white', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: "sticky py-xl top-0 bg-white", children: [(0, jsx_runtime_1.jsx)(CloseButton_1.CloseButton, { className: "absolute top-0 right-0", onClose: handleClose }), (0, jsx_runtime_1.jsx)("div", { className: "container", children: head })] }), (0, jsx_runtime_1.jsx)("div", { className: "container pb-6xl", children: children })] }));
16
+ });
17
+ //# sourceMappingURL=Dialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../src/ui-kit/DialogManager/Dialog.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAE1D,6CAA0C;AAC1C,+CAA4C;AAC5C,yDAAsD;AAQzC,QAAA,MAAM,GAAG,IAAA,aAAG,EAAc,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;IAChF,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,mCAAgB,GAAE,CAAC;IAErC,MAAM,WAAW,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QACnC,KAAK,EAAE,CAAC;QACR,OAAO,IAAI,OAAO,EAAE,CAAC;IACvB,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,OAAO,CACL,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,8BAA8B,EAAE,SAAS,CAAC,aAC9D,iCAAK,SAAS,EAAC,6BAA6B,aAC1C,uBAAC,yBAAW,IAAC,SAAS,EAAC,wBAAwB,EAAC,OAAO,EAAE,WAAW,GAAI,EACxE,gCAAK,SAAS,EAAC,WAAW,YAAE,IAAI,GAAO,IACnC,EACN,gCAAK,SAAS,EAAC,kBAAkB,YAAE,QAAQ,GAAO,IAC9C,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { VNode } from '../../model/VNode';
2
+ export declare type DialogAction = DialogOpenAction | DialogCloseAction;
3
+ export interface DialogOpenAction {
4
+ type: 'open';
5
+ id?: string;
6
+ dialog: VNode;
7
+ onClose?: () => void;
8
+ }
9
+ export interface DialogCloseAction {
10
+ type: 'close';
11
+ all?: boolean;
12
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DialogAction.js","sourceRoot":"","sources":["../../../src/ui-kit/DialogManager/DialogAction.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const DialogManager: import("@redneckz/uni-jsx").UNIComponent<{}, any, JSX.Element | null>;
@@ -0,0 +1,61 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.DialogManager = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
6
+ const defaultEventBus_1 = require("../../EventBus/defaultEventBus");
7
+ const useList_1 = require("../../hooks/useList");
8
+ const assertUnreachable_1 = require("../../utils/assertUnreachable");
9
+ const style_1 = require("../../utils/style");
10
+ exports.DialogManager = (0, uni_jsx_1.JSX)(() => {
11
+ const [dialogs, { push, pop, clear }] = (0, useList_1.useList)();
12
+ const closeAll = (0, hooks_1.useCallback)(() => {
13
+ for (const _ of dialogs) {
14
+ _.onClose && _.onClose();
15
+ }
16
+ clear();
17
+ }, [dialogs]);
18
+ const close = (0, hooks_1.useCallback)(() => {
19
+ const _ = dialogs[dialogs.length - 1];
20
+ _?.onClose && _.onClose();
21
+ pop();
22
+ }, [dialogs]);
23
+ (0, hooks_1.useEffect)(() => defaultEventBus_1.defaultEventBus.subscribe('dialog', (action) => {
24
+ switch (action.type) {
25
+ case 'open':
26
+ push(action);
27
+ break;
28
+ case 'close':
29
+ if (action.all) {
30
+ closeAll();
31
+ }
32
+ else {
33
+ close();
34
+ }
35
+ break;
36
+ default:
37
+ (0, assertUnreachable_1.assertUnreachable)(action);
38
+ }
39
+ }), [closeAll, close]);
40
+ (0, hooks_1.useEffect)(() => {
41
+ const handleEscape = ({ key }) => {
42
+ if (key === 'Escape') {
43
+ close();
44
+ }
45
+ };
46
+ globalThis.document?.addEventListener('keydown', handleEscape);
47
+ return () => {
48
+ globalThis.document?.removeEventListener('keydown', handleEscape);
49
+ };
50
+ }, [close]);
51
+ (0, hooks_1.useEffect)(() => {
52
+ if (dialogs.length) {
53
+ globalThis.document?.body.classList.add('no-scrollbar');
54
+ }
55
+ else {
56
+ globalThis.document?.body.classList.remove('no-scrollbar');
57
+ }
58
+ }, [dialogs]);
59
+ return dialogs.length ? ((0, jsx_runtime_1.jsx)("div", { className: "fixed inset-0 z-50", role: "dialog", children: dialogs.map(({ dialog, id }, i) => ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('absolute inset-0 overflow-x-hidden overflow-y-scroll no-scrollbar', i === dialogs.length - 1 ? '' : 'hidden'), children: dialog }, String(id || i)))) })) : null;
60
+ });
61
+ //# sourceMappingURL=DialogManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DialogManager.js","sourceRoot":"","sources":["../../../src/ui-kit/DialogManager/DialogManager.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAqE;AACrE,oEAAiE;AACjE,iDAA8C;AAC9C,qEAAkE;AAClE,6CAA0C;AAG7B,QAAA,aAAa,GAAG,IAAA,aAAG,EAAC,GAAG,EAAE;IACpC,MAAM,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,GAAG,IAAA,iBAAO,GAAoB,CAAC;IAEpE,MAAM,QAAQ,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QAChC,KAAK,MAAM,CAAC,IAAI,OAAO,EAAE;YACvB,CAAC,CAAC,OAAO,IAAI,C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CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,OAAO,CAAC,MAAM,EAAE;YAClB,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;SACzD;aAAM;YACL,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;SAC5D;IACH,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CACtB,gCAAK,SAAS,EAAC,oBAAoB,EAAC,IAAI,EAAC,QAAQ,YAC9C,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAClC,gCAEE,SAAS,EAAE,IAAA,aAAK,EACd,mEAAmE,EACnE,CAAC,KAAK,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CACzC,YAEA,MAAM,IANF,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC,CAOhB,CACP,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { VNode } from '../../model/VNode';
2
+ export interface DialogOptions {
3
+ id?: string;
4
+ onClose?: () => void;
5
+ }
6
+ export declare const useDialogManager: () => {
7
+ open: (dialog: VNode, options?: DialogOptions) => void;
8
+ close: () => void;
9
+ closeAll: () => void;
10
+ };
@@ -0,0 +1,10 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.useDialogManager = void 0;
3
+ const defaultEventBus_1 = require("../../EventBus/defaultEventBus");
4
+ const useDialogManager = () => ({
5
+ open: (dialog, options = {}) => defaultEventBus_1.defaultEventBus.fire('dialog', { type: 'open', dialog, ...options }),
6
+ close: () => defaultEventBus_1.defaultEventBus.fire('dialog', { type: 'close' }),
7
+ closeAll: () => defaultEventBus_1.defaultEventBus.fire('dialog', { type: 'close', all: true }),
8
+ });
9
+ exports.useDialogManager = useDialogManager;
10
+ //# sourceMappingURL=useDialogManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDialogManager.js","sourceRoot":"","sources":["../../../src/ui-kit/DialogManager/useDialogManager.ts"],"names":[],"mappings":";;AAAA,oEAAiE;AAQ1D,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAAC,CAAC;IACrC,IAAI,EAAE,CAAC,MAAa,EAAE,UAAyB,EAAE,EAAE,EAAE,CACnD,iCAAe,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,EAAE,CAAC;IACtE,KAAK,EAAE,GAAG,EAAE,CAAC,iCAAe,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAC9D,QAAQ,EAAE,GAAG,EAAE,CAAC,iCAAe,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;CAC7E,CAAC,CAAC;AALU,QAAA,gBAAgB,oBAK1B"}
@@ -1,3 +1,2 @@
1
- import type { LocationDialogProps } from './LocationDialogProps';
2
- export declare const LOCATION_DIALOG_ID = "location";
3
- export declare const LocationDialog: import("@redneckz/uni-jsx").UNIComponent<LocationDialogProps, any, any>;
1
+ import type { UniBlockProps } from '../../model/JSXBlock';
2
+ export declare const LocationDialog: import("@redneckz/uni-jsx").UNIComponent<UniBlockProps, any, any>;