@redneckz/wildless-cms-uni-blocks 0.6.37 → 0.6.39
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.
- package/bundle/EventBus/EventBus.d.ts +6 -5
- package/bundle/EventBus/EventMap.d.ts +1 -4
- package/bundle/bundle.umd.js +178 -98
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Footer/FooterDataProps.d.ts +8 -3
- package/bundle/components/Tabs/LinkTab.d.ts +0 -1
- package/bundle/components/Tabs/Tabs.d.ts +0 -4
- package/bundle/services/BlockRouter/BlockIntersection.d.ts +2 -0
- package/bundle/services/BlockRouter/BlockRouter.d.ts +23 -0
- package/bundle/services/BlockRouter/findActiveBlock.d.ts +3 -0
- package/bundle/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
- package/bundle/services/BlockRouter/useBlockRouter.d.ts +2 -0
- package/bundle/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
- package/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
- package/bundle/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
- package/bundle/utils/debounce.d.ts +5 -0
- package/dist/EventBus/EventBus.d.ts +6 -5
- package/dist/EventBus/EventBus.js +5 -3
- package/dist/EventBus/EventBus.js.map +1 -1
- package/dist/EventBus/EventMap.d.ts +1 -4
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/AccordionItem/AccordionItem.mobile.js +1 -1
- package/dist/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/Bonus/Bonus.js +2 -2
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/BusinessBlock/BusinessBlock.js +1 -1
- package/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.js +0 -1
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/renderProposal.js +2 -2
- package/dist/components/Calculator/renderProposal.js.map +1 -1
- package/dist/components/CardTransfer/CardTransfer.js +1 -1
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/Catalog/Catalog.js +1 -1
- package/dist/components/Catalog/Catalog.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js +2 -2
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ContactsBlock/ContactsBlock.js +1 -1
- package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +2 -0
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ContentPage/useContentPageData.js +4 -8
- package/dist/components/ContentPage/useContentPageData.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/dist/components/Footer/Footer.js +2 -2
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/FooterDataProps.d.ts +8 -3
- package/dist/components/Footer/MediaButton.js +1 -1
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Gallery/Gallery.mobile.js +1 -1
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +1 -1
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriod.js +2 -2
- package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/dist/components/Header/Header.js +1 -1
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +1 -1
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenuButton.js +1 -1
- package/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/dist/components/Header/HeaderTop.js +1 -1
- package/dist/components/Header/HeaderTop.js.map +1 -1
- package/dist/components/Headline/Headline.js +1 -1
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +3 -3
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkList/LinkList.js +1 -1
- package/dist/components/LinkList/LinkList.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
- package/dist/components/OfficeMap/useOfficeMap.js +3 -4
- package/dist/components/OfficeMap/useOfficeMap.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +1 -1
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +2 -2
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +2 -2
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +3 -3
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/Tabs/LinkTab.d.ts +0 -1
- package/dist/components/Tabs/LinkTab.js +2 -8
- package/dist/components/Tabs/LinkTab.js.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts +0 -4
- package/dist/components/Tabs/Tabs.js +6 -12
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/hooks/useLink.js +11 -2
- package/dist/hooks/useLink.js.map +1 -1
- package/dist/services/BlockRouter/BlockIntersection.d.ts +2 -0
- package/dist/services/BlockRouter/BlockIntersection.js +2 -0
- package/dist/services/BlockRouter/BlockIntersection.js.map +1 -0
- package/dist/services/BlockRouter/BlockRouter.d.ts +23 -0
- package/dist/services/BlockRouter/BlockRouter.js +32 -0
- package/dist/services/BlockRouter/BlockRouter.js.map +1 -0
- package/dist/services/BlockRouter/findActiveBlock.d.ts +3 -0
- package/dist/services/BlockRouter/findActiveBlock.js +15 -0
- package/dist/services/BlockRouter/findActiveBlock.js.map +1 -0
- package/dist/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
- package/dist/services/BlockRouter/useBlockIntersectionObserver.js +28 -0
- package/dist/services/BlockRouter/useBlockIntersectionObserver.js.map +1 -0
- package/dist/services/BlockRouter/useBlockRouter.d.ts +2 -0
- package/dist/services/BlockRouter/useBlockRouter.js +8 -0
- package/dist/services/BlockRouter/useBlockRouter.js.map +1 -0
- package/dist/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
- package/dist/services/BlockRouter/useBlockRouterProvider.js +37 -0
- package/dist/services/BlockRouter/useBlockRouterProvider.js.map +1 -0
- package/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
- package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/dist/ui-kit/BlockWrapper.js +6 -20
- package/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.js +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
- package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
- package/dist/ui-kit/Select/Select.js +1 -1
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/ui-kit/YandexMap/useYandexMaps.js +1 -1
- package/dist/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
- package/dist/utils/debounce.d.ts +5 -0
- package/dist/utils/debounce.js +19 -0
- package/dist/utils/debounce.js.map +1 -0
- package/lib/EventBus/EventBus.d.ts +6 -5
- package/lib/EventBus/EventBus.js +5 -3
- package/lib/EventBus/EventBus.js.map +1 -1
- package/lib/EventBus/EventMap.d.ts +1 -4
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.js +1 -1
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/AccordionItem/AccordionItem.mobile.js +1 -1
- package/lib/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/Bonus/Bonus.js +2 -2
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/BusinessBlock/BusinessBlock.js +1 -1
- package/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.js +0 -1
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/renderProposal.js +2 -2
- package/lib/components/Calculator/renderProposal.js.map +1 -1
- package/lib/components/CardTransfer/CardTransfer.js +1 -1
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/Catalog/Catalog.js +1 -1
- package/lib/components/Catalog/Catalog.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js +2 -2
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ContactsBlock/ContactsBlock.js +1 -1
- package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +2 -0
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ContentPage/useContentPageData.js +4 -8
- package/lib/components/ContentPage/useContentPageData.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/lib/components/Footer/Footer.js +2 -2
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/FooterDataProps.d.ts +8 -3
- package/lib/components/Footer/MediaButton.js +1 -1
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Gallery/Gallery.mobile.js +1 -1
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +1 -1
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriod.js +2 -2
- package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/lib/components/Header/Header.js +1 -1
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +1 -1
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenuButton.js +1 -1
- package/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/lib/components/Header/HeaderTop.js +1 -1
- package/lib/components/Header/HeaderTop.js.map +1 -1
- package/lib/components/Headline/Headline.js +1 -1
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +3 -3
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkList/LinkList.js +1 -1
- package/lib/components/LinkList/LinkList.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
- package/lib/components/OfficeMap/useOfficeMap.js +3 -4
- package/lib/components/OfficeMap/useOfficeMap.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.js +1 -1
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +2 -2
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/Recommendation/Recommendation.fixture.d.ts +3 -1
- package/lib/components/StepsBlock/StepsBlock.js +2 -2
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +3 -3
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/Tabs/LinkTab.d.ts +0 -1
- package/lib/components/Tabs/LinkTab.js +2 -8
- package/lib/components/Tabs/LinkTab.js.map +1 -1
- package/lib/components/Tabs/Tabs.d.ts +0 -4
- package/lib/components/Tabs/Tabs.js +7 -13
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +1 -1
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/hooks/useLink.js +11 -2
- package/lib/hooks/useLink.js.map +1 -1
- package/lib/services/BlockRouter/BlockIntersection.d.ts +2 -0
- package/lib/services/BlockRouter/BlockIntersection.js +2 -0
- package/lib/services/BlockRouter/BlockIntersection.js.map +1 -0
- package/lib/services/BlockRouter/BlockRouter.d.ts +23 -0
- package/lib/services/BlockRouter/BlockRouter.js +29 -0
- package/lib/services/BlockRouter/BlockRouter.js.map +1 -0
- package/lib/services/BlockRouter/findActiveBlock.d.ts +3 -0
- package/lib/services/BlockRouter/findActiveBlock.js +12 -0
- package/lib/services/BlockRouter/findActiveBlock.js.map +1 -0
- package/lib/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
- package/lib/services/BlockRouter/useBlockIntersectionObserver.js +25 -0
- package/lib/services/BlockRouter/useBlockIntersectionObserver.js.map +1 -0
- package/lib/services/BlockRouter/useBlockRouter.d.ts +2 -0
- package/lib/services/BlockRouter/useBlockRouter.js +5 -0
- package/lib/services/BlockRouter/useBlockRouter.js.map +1 -0
- package/lib/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
- package/lib/services/BlockRouter/useBlockRouterProvider.js +34 -0
- package/lib/services/BlockRouter/useBlockRouterProvider.js.map +1 -0
- package/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
- package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/lib/ui-kit/BlockWrapper.js +7 -21
- package/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.js +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
- package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
- package/lib/ui-kit/Select/Select.js +1 -1
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/ui-kit/YandexMap/useYandexMaps.js +1 -1
- package/lib/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
- package/lib/utils/debounce.d.ts +5 -0
- package/lib/utils/debounce.js +16 -0
- package/lib/utils/debounce.js.map +1 -0
- package/mobile/bundle/EventBus/EventBus.d.ts +6 -5
- package/mobile/bundle/EventBus/EventMap.d.ts +1 -4
- package/mobile/bundle/bundle.umd.js +140 -48
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Footer/FooterDataProps.d.ts +8 -3
- package/mobile/bundle/components/Tabs/LinkTab.d.ts +0 -1
- package/mobile/bundle/components/Tabs/Tabs.d.ts +0 -4
- package/mobile/bundle/services/BlockRouter/BlockIntersection.d.ts +2 -0
- package/mobile/bundle/services/BlockRouter/BlockRouter.d.ts +23 -0
- package/mobile/bundle/services/BlockRouter/findActiveBlock.d.ts +3 -0
- package/mobile/bundle/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
- package/mobile/bundle/services/BlockRouter/useBlockRouter.d.ts +2 -0
- package/mobile/bundle/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
- package/mobile/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
- package/mobile/bundle/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
- package/mobile/bundle/utils/debounce.d.ts +5 -0
- package/mobile/dist/EventBus/EventBus.d.ts +6 -5
- package/mobile/dist/EventBus/EventBus.js +5 -3
- package/mobile/dist/EventBus/EventBus.js.map +1 -1
- package/mobile/dist/EventBus/EventMap.d.ts +1 -4
- package/mobile/dist/components/AccordionItem/AccordionItem.js +1 -1
- package/mobile/dist/components/AccordionItem/AccordionItem.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Bonus/Bonus.js +2 -2
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessBlock.js +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +0 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/renderProposal.js +2 -2
- package/mobile/dist/components/Calculator/renderProposal.js.map +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/Catalog/Catalog.js +1 -1
- package/mobile/dist/components/Catalog/Catalog.js.map +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +2 -0
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ContentPage/useContentPageData.js +4 -8
- package/mobile/dist/components/ContentPage/useContentPageData.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/dist/components/Footer/FooterDataProps.d.ts +8 -3
- package/mobile/dist/components/Footer/MediaButton.js +1 -1
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Gallery/Gallery.js +1 -1
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.js +2 -2
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/dist/components/Header/Header.js +1 -1
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/mobile/dist/components/Header/HeaderTop.js +1 -1
- package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +3 -3
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/dist/components/LinkList/LinkList.js +1 -1
- package/mobile/dist/components/LinkList/LinkList.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/OfficeMap/useOfficeMap.js +3 -4
- package/mobile/dist/components/OfficeMap/useOfficeMap.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js +2 -2
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +3 -3
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/Tabs/LinkTab.d.ts +0 -1
- package/mobile/dist/components/Tabs/LinkTab.js +2 -8
- package/mobile/dist/components/Tabs/LinkTab.js.map +1 -1
- package/mobile/dist/components/Tabs/Tabs.d.ts +0 -4
- package/mobile/dist/components/Tabs/Tabs.js +6 -12
- package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/hooks/useLink.js +11 -2
- package/mobile/dist/hooks/useLink.js.map +1 -1
- package/mobile/dist/services/BlockRouter/BlockIntersection.d.ts +2 -0
- package/mobile/dist/services/BlockRouter/BlockIntersection.js +2 -0
- package/mobile/dist/services/BlockRouter/BlockIntersection.js.map +1 -0
- package/mobile/dist/services/BlockRouter/BlockRouter.d.ts +23 -0
- package/mobile/dist/services/BlockRouter/BlockRouter.js +32 -0
- package/mobile/dist/services/BlockRouter/BlockRouter.js.map +1 -0
- package/mobile/dist/services/BlockRouter/findActiveBlock.d.ts +3 -0
- package/mobile/dist/services/BlockRouter/findActiveBlock.js +15 -0
- package/mobile/dist/services/BlockRouter/findActiveBlock.js.map +1 -0
- package/mobile/dist/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
- package/mobile/dist/services/BlockRouter/useBlockIntersectionObserver.js +28 -0
- package/mobile/dist/services/BlockRouter/useBlockIntersectionObserver.js.map +1 -0
- package/mobile/dist/services/BlockRouter/useBlockRouter.d.ts +2 -0
- package/mobile/dist/services/BlockRouter/useBlockRouter.js +8 -0
- package/mobile/dist/services/BlockRouter/useBlockRouter.js.map +1 -0
- package/mobile/dist/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
- package/mobile/dist/services/BlockRouter/useBlockRouterProvider.js +37 -0
- package/mobile/dist/services/BlockRouter/useBlockRouterProvider.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/dist/ui-kit/BlockWrapper.js +6 -20
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js +1 -1
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
- package/mobile/dist/ui-kit/Select/Select.js +1 -1
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/useYandexMaps.js +1 -1
- package/mobile/dist/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
- package/mobile/dist/utils/debounce.d.ts +5 -0
- package/mobile/dist/utils/debounce.js +19 -0
- package/mobile/dist/utils/debounce.js.map +1 -0
- package/mobile/lib/EventBus/EventBus.d.ts +6 -5
- package/mobile/lib/EventBus/EventBus.js +5 -3
- package/mobile/lib/EventBus/EventBus.js.map +1 -1
- package/mobile/lib/EventBus/EventMap.d.ts +1 -4
- package/mobile/lib/components/AccordionItem/AccordionItem.js +1 -1
- package/mobile/lib/components/AccordionItem/AccordionItem.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Bonus/Bonus.js +2 -2
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessBlock.js +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +0 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/renderProposal.js +2 -2
- package/mobile/lib/components/Calculator/renderProposal.js.map +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/Catalog/Catalog.js +1 -1
- package/mobile/lib/components/Catalog/Catalog.js.map +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +2 -0
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ContentPage/useContentPageData.js +4 -8
- package/mobile/lib/components/ContentPage/useContentPageData.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/lib/components/Footer/FooterDataProps.d.ts +8 -3
- package/mobile/lib/components/Footer/MediaButton.js +1 -1
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Gallery/Gallery.js +1 -1
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.js +2 -2
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +1 -1
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/mobile/lib/components/Header/HeaderTop.js +1 -1
- package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +3 -3
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/lib/components/LinkList/LinkList.js +1 -1
- package/mobile/lib/components/LinkList/LinkList.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/OfficeMap/useOfficeMap.js +3 -4
- package/mobile/lib/components/OfficeMap/useOfficeMap.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js +2 -2
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +3 -3
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/Tabs/LinkTab.d.ts +0 -1
- package/mobile/lib/components/Tabs/LinkTab.js +2 -8
- package/mobile/lib/components/Tabs/LinkTab.js.map +1 -1
- package/mobile/lib/components/Tabs/Tabs.d.ts +0 -4
- package/mobile/lib/components/Tabs/Tabs.js +7 -13
- package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/hooks/useLink.js +11 -2
- package/mobile/lib/hooks/useLink.js.map +1 -1
- package/mobile/lib/services/BlockRouter/BlockIntersection.d.ts +2 -0
- package/mobile/lib/services/BlockRouter/BlockIntersection.js +2 -0
- package/mobile/lib/services/BlockRouter/BlockIntersection.js.map +1 -0
- package/mobile/lib/services/BlockRouter/BlockRouter.d.ts +23 -0
- package/mobile/lib/services/BlockRouter/BlockRouter.js +29 -0
- package/mobile/lib/services/BlockRouter/BlockRouter.js.map +1 -0
- package/mobile/lib/services/BlockRouter/findActiveBlock.d.ts +3 -0
- package/mobile/lib/services/BlockRouter/findActiveBlock.js +12 -0
- package/mobile/lib/services/BlockRouter/findActiveBlock.js.map +1 -0
- package/mobile/lib/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
- package/mobile/lib/services/BlockRouter/useBlockIntersectionObserver.js +25 -0
- package/mobile/lib/services/BlockRouter/useBlockIntersectionObserver.js.map +1 -0
- package/mobile/lib/services/BlockRouter/useBlockRouter.d.ts +2 -0
- package/mobile/lib/services/BlockRouter/useBlockRouter.js +5 -0
- package/mobile/lib/services/BlockRouter/useBlockRouter.js.map +1 -0
- package/mobile/lib/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
- package/mobile/lib/services/BlockRouter/useBlockRouterProvider.js +34 -0
- package/mobile/lib/services/BlockRouter/useBlockRouterProvider.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/lib/ui-kit/BlockWrapper.js +7 -21
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js +1 -1
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
- package/mobile/lib/ui-kit/Select/Select.js +1 -1
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/useYandexMaps.js +1 -1
- package/mobile/lib/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
- package/mobile/lib/utils/debounce.d.ts +5 -0
- package/mobile/lib/utils/debounce.js +16 -0
- package/mobile/lib/utils/debounce.js.map +1 -0
- package/mobile/src/EventBus/EventBus.ts +18 -14
- package/mobile/src/EventBus/EventMap.ts +1 -4
- package/mobile/src/components/AccordionItem/AccordionItem.tsx +1 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/mobile/src/components/Bonus/Bonus.tsx +2 -4
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
- package/mobile/src/components/BusinessBlock/BusinessBlock.tsx +1 -1
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +0 -1
- package/mobile/src/components/Calculator/renderProposal.tsx +2 -2
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +1 -1
- package/mobile/src/components/Catalog/Catalog.example.json +1 -1
- package/mobile/src/components/Catalog/Catalog.tsx +1 -1
- package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
- package/mobile/src/components/ContentPage/ContentPage.tsx +3 -0
- package/mobile/src/components/ContentPage/useContentPageData.ts +4 -8
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
- package/mobile/src/components/Footer/FooterDataProps.ts +8 -3
- package/mobile/src/components/Footer/MediaButton.tsx +1 -1
- package/mobile/src/components/Gallery/Gallery.tsx +1 -1
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +1 -1
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +2 -2
- package/mobile/src/components/Header/Header.tsx +1 -1
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +1 -1
- package/mobile/src/components/Header/HeaderSecondaryMenuButton.tsx +1 -1
- package/mobile/src/components/Header/HeaderTop.tsx +1 -1
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +1 -1
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +3 -6
- package/mobile/src/components/LinkList/LinkList.tsx +1 -1
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/mobile/src/components/OfficeMap/useOfficeMap.ts +4 -4
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +2 -2
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +3 -3
- package/mobile/src/components/Tabs/LinkTab.tsx +2 -10
- package/mobile/src/components/Tabs/Tabs.tsx +11 -19
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
- package/mobile/src/hooks/useLink.ts +13 -2
- package/mobile/src/services/BlockRouter/BlockIntersection.ts +3 -0
- package/mobile/src/services/BlockRouter/BlockRouter.ts +51 -0
- package/mobile/src/services/BlockRouter/findActiveBlock.ts +20 -0
- package/mobile/src/services/BlockRouter/useBlockIntersectionObserver.ts +37 -0
- package/mobile/src/services/BlockRouter/useBlockRouter.ts +5 -0
- package/mobile/src/services/BlockRouter/useBlockRouterProvider.ts +49 -0
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +1 -1
- package/mobile/src/ui-kit/BlockWrapper.tsx +9 -32
- package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +1 -1
- package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +5 -2
- package/mobile/src/ui-kit/InnerTable/InnerTableProps.ts +0 -6
- package/mobile/src/ui-kit/Select/Select.tsx +2 -2
- package/mobile/src/ui-kit/YandexMap/useYandexMaps.ts +3 -1
- package/mobile/src/utils/debounce.ts +24 -0
- package/package.json +1 -1
- package/src/EventBus/EventBus.ts +18 -14
- package/src/EventBus/EventMap.ts +1 -4
- package/src/components/Accordion/Accordion.tsx +1 -1
- package/src/components/AccordionItem/AccordionItem.mobile.tsx +1 -1
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/src/components/Bonus/Bonus.tsx +2 -4
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
- package/src/components/BusinessBlock/BusinessBlock.tsx +1 -1
- package/src/components/Calculator/DepositCalculatorForm.tsx +0 -1
- package/src/components/Calculator/renderProposal.tsx +2 -2
- package/src/components/CardTransfer/CardTransfer.tsx +1 -1
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +0 -1
- package/src/components/Catalog/Catalog.example.json +1 -1
- package/src/components/Catalog/Catalog.tsx +1 -1
- package/src/components/ComparisonTable/ComparisonTable.tsx +2 -2
- package/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
- package/src/components/ContentPage/ContentPage.tsx +3 -0
- package/src/components/ContentPage/useContentPageData.ts +4 -8
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
- package/src/components/Footer/Footer.tsx +2 -2
- package/src/components/Footer/FooterDataProps.ts +8 -3
- package/src/components/Footer/MediaButton.tsx +1 -1
- package/src/components/Gallery/Gallery.mobile.tsx +1 -1
- package/src/components/Gallery/GalleryCardInner.tsx +1 -1
- package/src/components/GracePeriod/GracePeriod.tsx +2 -2
- package/src/components/Header/Header.mobile.tsx +1 -1
- package/src/components/Header/Header.tsx +1 -1
- package/src/components/Header/HeaderSecondaryMenu.tsx +1 -1
- package/src/components/Header/HeaderSecondaryMenuButton.tsx +1 -1
- package/src/components/Header/HeaderTop.tsx +1 -1
- package/src/components/Headline/Headline.tsx +1 -1
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +1 -1
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +3 -6
- package/src/components/LinkDocs/LinkDocs.tsx +1 -4
- package/src/components/LinkList/LinkList.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.mobile.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/src/components/OfficeMap/useOfficeMap.ts +4 -4
- package/src/components/ProductBlock/ProductBlock.tsx +1 -1
- package/src/components/ProductGallery/ProductGallery.tsx +2 -2
- package/src/components/Recommendation/Recommendation.fixture.tsx +38 -1
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +3 -3
- package/src/components/StepsBlock/StepsBlock.tsx +2 -4
- package/src/components/Tabs/LinkTab.tsx +2 -10
- package/src/components/Tabs/Tabs.tsx +11 -19
- package/src/components/TariffsTable/TariffsTable.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
- package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +3 -3
- package/src/hooks/useLink.ts +13 -2
- package/src/services/BlockRouter/BlockIntersection.ts +3 -0
- package/src/services/BlockRouter/BlockRouter.ts +51 -0
- package/src/services/BlockRouter/findActiveBlock.ts +20 -0
- package/src/services/BlockRouter/useBlockIntersectionObserver.ts +37 -0
- package/src/services/BlockRouter/useBlockRouter.ts +5 -0
- package/src/services/BlockRouter/useBlockRouterProvider.ts +49 -0
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +1 -1
- package/src/ui-kit/BlockWrapper.tsx +9 -32
- package/src/ui-kit/HeaderItem/HeaderItem.mobile.tsx +1 -1
- package/src/ui-kit/HeaderItem/HeaderItem.tsx +1 -1
- package/src/ui-kit/InnerTable/InnerTableButton.tsx +5 -2
- package/src/ui-kit/InnerTable/InnerTableProps.ts +0 -6
- package/src/ui-kit/Select/Select.tsx +2 -2
- package/src/ui-kit/YandexMap/useYandexMaps.ts +3 -1
- package/src/utils/debounce.ts +24 -0
- package/bundle/components/SafeDepositRental/YandexMap.d.ts +0 -5
- package/bundle/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
- package/bundle/utils/changeHashOnObserve.d.ts +0 -9
- package/dist/components/SafeDepositRental/YandexMap.d.ts +0 -5
- package/dist/components/SafeDepositRental/YandexMap.js +0 -31
- package/dist/components/SafeDepositRental/YandexMap.js.map +0 -1
- package/dist/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
- package/dist/components/SafeDepositRental/useYandexMaps.js +0 -12
- package/dist/components/SafeDepositRental/useYandexMaps.js.map +0 -1
- package/dist/utils/changeHashOnObserve.d.ts +0 -9
- package/dist/utils/changeHashOnObserve.js +0 -21
- package/dist/utils/changeHashOnObserve.js.map +0 -1
- package/lib/components/SafeDepositRental/YandexMap.d.ts +0 -5
- package/lib/components/SafeDepositRental/YandexMap.js +0 -29
- package/lib/components/SafeDepositRental/YandexMap.js.map +0 -1
- package/lib/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
- package/lib/components/SafeDepositRental/useYandexMaps.js +0 -9
- package/lib/components/SafeDepositRental/useYandexMaps.js.map +0 -1
- package/lib/utils/changeHashOnObserve.d.ts +0 -9
- package/lib/utils/changeHashOnObserve.js +0 -18
- package/lib/utils/changeHashOnObserve.js.map +0 -1
- package/mobile/bundle/components/SafeDepositRental/YandexMap.d.ts +0 -5
- package/mobile/bundle/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
- package/mobile/bundle/utils/changeHashOnObserve.d.ts +0 -9
- package/mobile/dist/components/SafeDepositRental/YandexMap.d.ts +0 -5
- package/mobile/dist/components/SafeDepositRental/YandexMap.js +0 -31
- package/mobile/dist/components/SafeDepositRental/YandexMap.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
- package/mobile/dist/components/SafeDepositRental/useYandexMaps.js +0 -12
- package/mobile/dist/components/SafeDepositRental/useYandexMaps.js.map +0 -1
- package/mobile/dist/utils/changeHashOnObserve.d.ts +0 -9
- package/mobile/dist/utils/changeHashOnObserve.js +0 -21
- package/mobile/dist/utils/changeHashOnObserve.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/YandexMap.d.ts +0 -5
- package/mobile/lib/components/SafeDepositRental/YandexMap.js +0 -29
- package/mobile/lib/components/SafeDepositRental/YandexMap.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
- package/mobile/lib/components/SafeDepositRental/useYandexMaps.js +0 -9
- package/mobile/lib/components/SafeDepositRental/useYandexMaps.js.map +0 -1
- package/mobile/lib/utils/changeHashOnObserve.d.ts +0 -9
- package/mobile/lib/utils/changeHashOnObserve.js +0 -18
- package/mobile/lib/utils/changeHashOnObserve.js.map +0 -1
- package/mobile/src/components/SafeDepositRental/YandexMap.tsx +0 -43
- package/mobile/src/components/SafeDepositRental/useYandexMaps.ts +0 -13
- package/mobile/src/utils/changeHashOnObserve.ts +0 -30
- package/src/components/SafeDepositRental/YandexMap.tsx +0 -43
- package/src/components/SafeDepositRental/useYandexMaps.ts +0 -13
- package/src/utils/changeHashOnObserve.ts +0 -30
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { minBy } from '../../utils/minBy.js';
|
|
2
|
+
const SPECIAL_BLOCK_TYPES = ['Header', 'Footer'];
|
|
3
|
+
const EPS = 0.01;
|
|
4
|
+
const topLineDelta = ([, { target }]) => Math.abs(target.getBoundingClientRect().top);
|
|
5
|
+
export function findActiveBlock(intersections) {
|
|
6
|
+
const visibleIntersections = intersections
|
|
7
|
+
.filter(([block]) => !SPECIAL_BLOCK_TYPES.includes(block.type || ''))
|
|
8
|
+
.filter(([, { intersectionRatio }]) => intersectionRatio > EPS);
|
|
9
|
+
const [activeBlock] = visibleIntersections.length > 0 ? minBy(topLineDelta)(visibleIntersections) : [];
|
|
10
|
+
return activeBlock;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=findActiveBlock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findActiveBlock.js","sourceRoot":"","sources":["../../../src/services/BlockRouter/findActiveBlock.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,MAAM,mBAAmB,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AACjD,MAAM,GAAG,GAAG,IAAI,CAAC;AAEjB,MAAM,YAAY,GAAG,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,CAAoB,EAAE,EAAE,CACzD,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,qBAAqB,EAAE,CAAC,GAAG,CAAC,CAAC;AAE/C,MAAM,UAAU,eAAe,CAAC,aAAkC;IAChE,MAAM,oBAAoB,GAAG,aAAa;SACvC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,mBAAmB,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;SACpE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,iBAAiB,EAAE,CAAC,EAAE,EAAE,CAAC,iBAAiB,GAAG,GAAG,CAAC,CAAC;IAElE,MAAM,CAAC,WAAW,CAAC,GACjB,oBAAoB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAEnF,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { useCallback, useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
import { useIntersectionObserver } from '../../hooks/useIntersectionObserver.js';
|
|
3
|
+
import { BlockRouter } from './BlockRouter.js';
|
|
4
|
+
export function useBlockIntersectionObserver(block, router = BlockRouter.inst) {
|
|
5
|
+
const observerCallback = useCallback((entries) => {
|
|
6
|
+
if (!block || !entries?.length) {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
const intersection = entries[entries.length - 1];
|
|
10
|
+
router.eventBus.fire('intersection', { block, intersection });
|
|
11
|
+
}, [block, router]);
|
|
12
|
+
const ref = useIntersectionObserver(observerCallback, { sensitivity: 1 });
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
if (!ref.current) {
|
|
15
|
+
return undefined;
|
|
16
|
+
}
|
|
17
|
+
return router.eventBus.subscribe('goto', ({ anchor }) => {
|
|
18
|
+
if (ref.current && block?.anchor === anchor) {
|
|
19
|
+
ref.current.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}, [block, router]);
|
|
23
|
+
return ref;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=useBlockIntersectionObserver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBlockIntersectionObserver.js","sourceRoot":"","sources":["../../../src/services/BlockRouter/useBlockIntersectionObserver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAE9E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,UAAU,4BAA4B,CAC1C,KAAgB,EAChB,SAAsB,WAAW,CAAC,IAAI;IAEtC,MAAM,gBAAgB,GAAG,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1
|
+
import { useEffect, useRef } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
import { debounce } from '../../utils/debounce.js';
|
|
3
|
+
import { BlockRouter } from './BlockRouter.js';
|
|
4
|
+
import { findActiveBlock } from './findActiveBlock.js';
|
|
5
|
+
const isScrolledEnough = () => globalThis.scrollY > (globalThis.innerHeight * 3) / 4;
|
|
6
|
+
export function useBlockRouterProvider(router = BlockRouter.inst, scrollTarget = globalThis) {
|
|
7
|
+
const intersectionsMapRef = useRef(new Map());
|
|
8
|
+
useEffect(() => router.eventBus.subscribe('intersection', ({ block, intersection }) => {
|
|
9
|
+
if (intersectionsMapRef.current) {
|
|
10
|
+
intersectionsMapRef.current.set(block, intersection);
|
|
11
|
+
}
|
|
12
|
+
}), [router]);
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
const handleScroll = debounce(() => {
|
|
15
|
+
if (!isScrolledEnough()) {
|
|
16
|
+
router.reset();
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
const activeBlock = findActiveBlock([...(intersectionsMapRef.current || [])]);
|
|
20
|
+
if (activeBlock?.anchor) {
|
|
21
|
+
router.replace(activeBlock.anchor);
|
|
22
|
+
}
|
|
23
|
+
else if (!activeBlock) {
|
|
24
|
+
router.reset();
|
|
25
|
+
}
|
|
26
|
+
}, 100);
|
|
27
|
+
scrollTarget.addEventListener('scroll', handleScroll);
|
|
28
|
+
return () => {
|
|
29
|
+
handleScroll.dispose();
|
|
30
|
+
scrollTarget.removeEventListener('scroll', handleScroll);
|
|
31
|
+
};
|
|
32
|
+
}, [router, scrollTarget]);
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=useBlockRouterProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBlockRouterProvider.js","sourceRoot":"","sources":["../../../src/services/BlockRouter/useBlockRouterProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,6BAA6B,CA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;QAER,YAAY,CAAC,gBAAgB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;QAEtD,OAAO,GAAG,EAAE;YACV,YAAY,CAAC,OAAO,EAAE,CAAC;YACvB,YAAY,CAAC,mBAAmB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;QAC3D,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC;AAC7B,CAAC"}
|
|
@@ -24,6 +24,6 @@ function getBenefitIconBgStyle(version, benefitsVersion) {
|
|
|
24
24
|
else if (benefitsVersion === 'normal') {
|
|
25
25
|
bgColorStyle = 'bg-secondary-light text-primary-main';
|
|
26
26
|
}
|
|
27
|
-
return `w-
|
|
27
|
+
return `w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${bgColorStyle}`;
|
|
28
28
|
}
|
|
29
29
|
//# sourceMappingURL=BenefitItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BenefitItem.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/BenefitItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAGjC,MAAM,aAAa,GAAiC;IAClD,OAAO,EAAE,mBAAmB;IAC5B,SAAS,EAAE,YAAY;CACxB,CAAC;AAEF,MAAM,YAAY,GAAiC;IACjD,OAAO,EAAE,qBAAqB;IAC9B,SAAS,EAAE,YAAY;CACxB,CAAC;AAIF,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAsB,CAAC,KAAK,EAAE,EAAE;IAC5D,MAAM,EACJ,SAAS,GAAG,EAAE,EACd,IAAI,EACJ,KAAK,EACL,WAAW,EACX,OAAO,GAAG,SAAS,EACnB,eAAe,GAAG,QAAQ,GAC3B,G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AAC,OAAO,CAAC,EAAE,YAAG,WAAW,GAAO,CAC7E,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,SAAS,qBAAqB,CAAC,OAAqB,EAAE,eAA4B;IAChF,IAAI,YAAY,GAAG,4BAA4B,CAAC;IAEhD,IAAI,OAAO,KAAK,WAAW,EAAE;QAC3B,YAAY,GAAG,wBAAwB,CAAC;KACzC;SAAM,IAAI,eAAe,KAAK,QAAQ,EAAE;QACvC,YAAY,GAAG,sCAAsC,CAAC;KACvD;IAED,OAAO,qFAAqF,YAAY,EAAE,CAAC;AAC7G,CAAC"}
|
|
@@ -1,35 +1,21 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { useEffect,
|
|
3
|
+
import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
4
|
import { EventBus } from '../EventBus/EventBus.js';
|
|
5
|
-
import {
|
|
6
|
-
import { changeHashOnObserve } from '../utils/changeHashOnObserve.js';
|
|
5
|
+
import { useBlockIntersectionObserver } from '../services/BlockRouter/useBlockIntersectionObserver.js';
|
|
7
6
|
export const BlockWrapper = JSX(({ className, block, tag = 'section', role, children }) => {
|
|
8
7
|
const Tag = tag;
|
|
9
|
-
const
|
|
8
|
+
const ref = useBlockIntersectionObserver(block);
|
|
10
9
|
const [isVisible, setVisible] = useState(true);
|
|
11
|
-
const anchorClickRef = useRef({});
|
|
12
|
-
const observerCallback = useMemo(() => changeHashOnObserve({ anchor, anchorClickRef }), [anchor]);
|
|
13
|
-
const ref = useIntersectionObserver(observerCallback, { sensitivity: 1 });
|
|
14
|
-
useEffect(() => EventBus.inst.subscribe('anchorClick', (e) => {
|
|
15
|
-
setVisible(true);
|
|
16
|
-
anchorClickRef.current = e;
|
|
17
|
-
}), []);
|
|
18
10
|
useEffect(() => EventBus.inst.subscribe('tab', (event) => {
|
|
19
11
|
if (event.type === 'group') {
|
|
20
|
-
const hasSettings = labels?.length || block?.anchor;
|
|
21
|
-
setVisible(event.label ? !hasSettings || Boolean(labels?.includes(event.label)) : true);
|
|
12
|
+
const hasSettings = block?.labels?.length || block?.anchor;
|
|
13
|
+
setVisible(event.label ? !hasSettings || Boolean(block?.labels?.includes(event.label)) : true);
|
|
22
14
|
}
|
|
23
15
|
else {
|
|
24
|
-
changeHash(event.label);
|
|
25
16
|
setVisible(true);
|
|
26
17
|
}
|
|
27
|
-
}), []);
|
|
28
|
-
return isVisible ? (_jsx(Tag, { className: className, role: role, ...(anchor ? { id: anchor, ref } : {}), children: children })) : null;
|
|
18
|
+
}), [block]);
|
|
19
|
+
return isVisible ? (_jsx(Tag, { className: className, role: role, ...(block?.anchor ? { id: block.anchor, ref } : {}), children: children })) : null;
|
|
29
20
|
});
|
|
30
|
-
function changeHash(label) {
|
|
31
|
-
if (label) {
|
|
32
|
-
globalThis.document.location.hash = label;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
21
|
//# sourceMappingURL=BlockWrapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockWrapper.js","sourceRoot":"","sources":["../../src/ui-kit/BlockWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"BlockWrapper.js","sourceRoot":"","sources":["../../src/ui-kit/BlockWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAC;AAOpG,MAAM,CAAC,MAAM,YAAY,GAA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
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
const TEXT_CLASSES = 'font-sans text-s';
|
|
4
|
-
const BORDER_CLASSES = 'absolute left-0 -bottom-3 w-full h-
|
|
4
|
+
const BORDER_CLASSES = 'absolute left-0 -bottom-3 w-full h-0.5';
|
|
5
5
|
export const HeaderItem = JSX(({ className = '', text, href, target, active, onClick, children, bgColor = 'bg-white' }) => {
|
|
6
6
|
return (_jsxs("a", { className: `relative inline-block bg-transparent text-center no-underline ${className}`, href: href, target: target, onClick: onClick, children: [_jsx("span", { className: getTextClasses(bgColor, active), children: text || children }), active ? _jsx("div", { className: getBorderClasses(bgColor, active) }) : null] }));
|
|
7
7
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderItem.js","sourceRoot":"","sources":["../../../src/ui-kit/HeaderItem/HeaderItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAMxC,MAAM,YAAY,GAAG,kBAAkB,CAAC;AACxC,MAAM,cAAc,GAAG,
|
|
1
|
+
{"version":3,"file":"HeaderItem.js","sourceRoot":"","sources":["../../../src/ui-kit/HeaderItem/HeaderItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAMxC,MAAM,YAAY,GAAG,kBAAkB,CAAC;AACxC,MAAM,cAAc,GAAG,wCAAwC,CAAC;AAEhE,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAC3B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,UAAU,EAAE,EAAE,EAAE;IAC1F,OAAO,CACL,aACE,SAAS,EAAE,iEAAiE,SAAS,EAAE,EACvF,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,aAEhB,eAAM,SAAS,EAAE,cAAc,CAAC,OAAO,EAAE,MAAM,CAAC,YAAG,IAAI,IAAI,QAAQ,GAAQ,EAC1E,MAAM,CAAC,CAAC,CAAC,cAAK,SAAS,EAAE,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,IACpE,CACL,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,OAAuB,EAAE,MAAM,GAAG,KAAK,EAAE,EAAE;IACjE,IAAI,OAAO,GAAG,YAAY,CAAC;IAC3B,IAAI,OAAO,KAAK,UAAU,EAAE;QAC1B,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,6CAA6C,CAAC;KACxF;IAED,OAAO,GAAG,OAAO,IAAI,YAAY,EAAE,CAAC;AACtC,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,OAAuB,EAAE,MAAM,GAAG,KAAK,EAAE,EAAE;IACnE,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,cAAc,CAAC;KACvB;IAED,OAAO,GAAG,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,OAAO,IAAI,cAAc,EAAE,CAAC;AACrF,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { TariffsTableCellIndexProps } from '../../components/TariffsTable/TariffsTableContent';
|
|
2
|
+
import type { TariffsTableInnerContent } from './InnerTableProps';
|
|
3
|
+
export interface TableInnerButtonProps extends Partial<TariffsTableCellIndexProps>, TariffsTableInnerContent {
|
|
3
4
|
onClick?: () => void;
|
|
4
5
|
isOpen?: boolean;
|
|
5
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InnerTableButton.js","sourceRoot":"","sources":["../../../src/ui-kit/InnerTable/InnerTableButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"InnerTableButton.js","sourceRoot":"","sources":["../../../src/ui-kit/InnerTable/InnerTableButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAUpC,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAwB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IACjF,OAAO,CACL,MAAC,MAAM,IACL,OAAO,EAAC,SAAS,EACjB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,2DAA2D,aAErE,cAAK,SAAS,EAAC,SAAS,YAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,2BAA2B,GAAO,EAChF,KAAC,IAAI,IACH,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,EAC9C,SAAS,EAAC,MAAM,EAChB,WAAW,EAAC,OAAO,EACnB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,IACK,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { TariffsTableCellIndexProps } from '../../components/TariffsTable/TariffsTableContent';
|
|
2
1
|
export declare type RowsData = {
|
|
3
2
|
data?: string;
|
|
4
3
|
cols?: string[];
|
|
@@ -20,5 +19,3 @@ export interface TariffsTableInnerContent {
|
|
|
20
19
|
/** @title Ссылка PDF-файл */
|
|
21
20
|
pdfUrl?: string;
|
|
22
21
|
}
|
|
23
|
-
export interface TariffsTableInnerEvent extends Partial<TariffsTableCellIndexProps>, TariffsTableInnerContent {
|
|
24
|
-
}
|
|
@@ -18,7 +18,7 @@ export const Select = JSX(({ className = '', isBorder = true, label, options = [
|
|
|
18
18
|
setSelectedItem(value || { key: '', text: '' });
|
|
19
19
|
}, [value]);
|
|
20
20
|
return (_jsxs("div", { className: `${className}`, ref: wrapperRef, children: [label ? _jsx("span", { className: "mb-2 flex text-primary-text", children: label }) : null, _jsxs("div", { className: `relative ${isOpen ? 'z-20' : 'z-10'}`, children: [_jsxs("div", { className: `text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer
|
|
21
|
-
${getBorderStyle(isBorder)}`, onClick: () => setIsOpen(!isOpen), children: [_jsx("p", { className: "p-4 pr-8 h-
|
|
21
|
+
${getBorderStyle(isBorder)}`, onClick: () => setIsOpen(!isOpen), children: [_jsx("p", { className: "p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap", children: selectedItem?.text || placeholder }), _jsx(Icon, { name: "ArrowUpIcon", width: "16", height: "16", className: `absolute right-3 ${isOpen ? '' : 'rotate-180'}` })] }), options?.length ? (_jsx("div", { className: `h-0 ${renderOptionsStyle(isOpen)}`, children: _jsx("div", { className: `bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]`, children: options.map(renderOption(choiceOption, isOpen, isSelected)) }) })) : null] })] }));
|
|
22
22
|
});
|
|
23
23
|
const renderOptionsStyle = (isOpen) => (isOpen ? '' : 'overflow-hidden');
|
|
24
24
|
const renderOption = (choiceOption, isOpen, isSelected) => (option, i) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/Select.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;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4G,YAEtH,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,GACxD,GACF,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,MAAe,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC;AAElF,MAAM,YAAY,GAChB,CACE,YAA2C,EAC3C,MAAe,EACf,UAA4C,EAC5C,EAAE,CACJ,CAAC,MAAmB,EAAE,CAAS,EAAE,EAAE;IACjC,OAAO,CACL,eAEE,OAAO,EAAE,GAAG,EAAE;YACZ,YAAY,CAAC,MAAM,CAAC,CAAC;QACvB,CAAC,EACD,SAAS,EAAC,oEAAoE,aAE9E,eAAM,SAAS,EAAC,SAAS,YAAE,MAAM,CAAC,IAAI,GAAQ,EAC9C,KAAC,IAAI,IACH,IAAI,EAAC,gBAAgB,EACrB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,SAAS,EAAE,CAAC,yBAAyB,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CACvF,GAAG,CACJ,GACD,KAdG,MAAM,CAAC,CAAC,CAAC,CAeV,CACP,CAAC;AACJ,CAAC,CAAC;AAEJ,MAAM,cAAc,GAAG,CAAC,QAAiB,EAAE,EAAE,CAC3C,QAAQ,CAAC,CAAC,CAAC,iEAAiE,CAAC,CAAC,CAAC,EAAE,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { useExternalNS } from '../../hooks/useExternalNS.js';
|
|
|
2
2
|
import { projectSettings } from '../../ProjectSettings.js';
|
|
3
3
|
const YMAPS_NAMESPACE = 'ymaps';
|
|
4
4
|
export const useYandexMaps = () => {
|
|
5
|
-
const url = `https://api-maps.yandex.ru/2.1/?apikey=${projectSettings.YANDEX_MAP_API_KEY}&lang=ru_RU`;
|
|
5
|
+
const url = `https://api-maps.yandex.ru/2.1/?apikey=${projectSettings.YANDEX_MAP_API_KEY || ''}&lang=ru_RU`;
|
|
6
6
|
return useExternalNS(YMAPS_NAMESPACE, url);
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=useYandexMaps.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useYandexMaps.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/useYandexMaps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,eAAe,GAAG,OAAO,CAAC;AAEhC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE;IAChC,MAAM,GAAG,GAAG,
|
|
1
|
+
{"version":3,"file":"useYandexMaps.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/useYandexMaps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,eAAe,GAAG,OAAO,CAAC;AAEhC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE;IAChC,MAAM,GAAG,GAAG,0CACV,eAAe,CAAC,kBAAkB,IAAI,EACxC,aAAa,CAAC;IAEd,OAAO,aAAa,CAAe,eAAe,EAAE,GAAG,CAAC,CAAC;AAC3D,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const debounce = (fn, delay = 600) => {
|
|
2
|
+
let timerId;
|
|
3
|
+
const debouncedCallback = (...args) => {
|
|
4
|
+
debouncedCallback.dispose();
|
|
5
|
+
timerId = setTimeout(() => {
|
|
6
|
+
fn(...args);
|
|
7
|
+
}, delay);
|
|
8
|
+
};
|
|
9
|
+
debouncedCallback.dispose = () => {
|
|
10
|
+
if (timerId) {
|
|
11
|
+
clearTimeout(timerId);
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
return debouncedCallback;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=debounce.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debounce.js","sourceRoot":"","sources":["../../src/utils/debounce.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,QAAQ,GAAG,CACtB,EAA2B,EAC3B,KAAK,GAAG,GAAG,EACc,EAAE;IAC3B,IAAI,OAAsC,CAAC;IAE3C,MAAM,iBAAiB,GAA4B,CAAC,GAAG,IAAU,EAAQ,EAAE;QACzE,iBAAiB,CAAC,OAAO,EAAE,CAAC;QAC5B,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE;YACxB,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;QACd,CAAC,EAAE,KAAK,CAAC,CAAC;IACZ,CAAC,CAAC;IACF,iBAAiB,CAAC,OAAO,GAAG,GAAG,EAAE;QAC/B,IAAI,OAAO,EAAE;YACX,YAAY,CAAC,OAAO,CAAC,CAAC;SACvB;IACH,CAAC,CAAC;IAEF,OAAO,iBAAiB,CAAC;AAC3B,CAAC,CAAC"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import type { EventMap } from './EventMap';
|
|
2
2
|
|
|
3
|
-
type
|
|
3
|
+
export type BaseEventMap = Record<string, any>;
|
|
4
4
|
|
|
5
|
-
export class EventBus {
|
|
6
|
-
public static readonly inst = new EventBus();
|
|
5
|
+
export class EventBus<EM extends BaseEventMap> {
|
|
6
|
+
public static readonly inst = new EventBus<EventMap>();
|
|
7
7
|
|
|
8
|
-
private subscribers: Partial<Record<keyof
|
|
9
|
-
private subjectsStateMap: Partial<
|
|
8
|
+
private subscribers: Partial<Record<keyof EM, Array<(ev: EM[keyof EM]) => void>>> = {};
|
|
9
|
+
private subjectsStateMap: Partial<EM> = {};
|
|
10
10
|
|
|
11
|
-
subscribe<
|
|
12
|
-
this.subscribers[type]
|
|
13
|
-
|
|
11
|
+
subscribe<K extends keyof EM>(type: K, listener: (event: EM[K]) => void) {
|
|
12
|
+
this.subscribers[type] = (this.subscribers[type] || []).concat(
|
|
13
|
+
listener as (ev: EM[keyof EM]) => void,
|
|
14
|
+
);
|
|
14
15
|
|
|
15
16
|
const latestEvent = this.subjectsStateMap[type];
|
|
16
|
-
|
|
17
17
|
if (latestEvent) {
|
|
18
|
-
listener(latestEvent as
|
|
18
|
+
listener(latestEvent as EM[K]);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
return () => {
|
|
@@ -23,16 +23,20 @@ export class EventBus {
|
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
private unsubscribe<
|
|
26
|
+
private unsubscribe<K extends keyof EM>(type: K, listener: (event: EM[K]) => void) {
|
|
27
27
|
this.subscribers[type] = this.subscribers[type]?.filter((s) => s !== listener);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
fire<
|
|
31
|
-
this.subjectsStateMap
|
|
30
|
+
fire<K extends keyof EM>(type: K, event: EM[K]) {
|
|
31
|
+
const isSubjectDeclared = type in this.subjectsStateMap;
|
|
32
|
+
if (isSubjectDeclared) {
|
|
33
|
+
this.subjectsStateMap[type] = event;
|
|
34
|
+
}
|
|
35
|
+
|
|
32
36
|
this.subscribers[type]?.forEach((s) => s(event));
|
|
33
37
|
}
|
|
34
38
|
|
|
35
|
-
subject<
|
|
39
|
+
subject<K extends keyof EM>(type: K, event: EM[K]) {
|
|
36
40
|
this.subjectsStateMap[type] = event;
|
|
37
41
|
}
|
|
38
42
|
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { TariffsTableInnerEvent } from '../ui-kit/InnerTable/InnerTableProps';
|
|
1
|
+
import type { TabActivationEvent } from '../components/Tabs/Tabs';
|
|
3
2
|
|
|
4
3
|
export interface EventMap {
|
|
5
4
|
tab: TabActivationEvent;
|
|
6
|
-
tariffInnerTable: TariffsTableInnerEvent;
|
|
7
|
-
anchorClick: AnchorClickScrollingEvent;
|
|
8
5
|
}
|
|
@@ -37,7 +37,7 @@ export const AccordionItem: JSXBlock<AccordionItemProps> = JSX<AccordionItemProp
|
|
|
37
37
|
)}
|
|
38
38
|
renderFoldButton={({ isUnfolded, onToggle }) => (
|
|
39
39
|
<FoldButton
|
|
40
|
-
className={bordered ? '' : 'py-
|
|
40
|
+
className={bordered ? '' : 'py-3.5 px-0'}
|
|
41
41
|
label={label}
|
|
42
42
|
icon={icons[Number(isUnfolded)]}
|
|
43
43
|
primaryIcon={labelIcon}
|
|
@@ -55,7 +55,7 @@ const renderStep = (version: BlockVersion) => (benefit: BenefitBlockItemProps, i
|
|
|
55
55
|
<div key={String(i)} className="flex items-center basis-1/2 max-w-[500px] mb-14">
|
|
56
56
|
{benefit?.icon?.icon ? (
|
|
57
57
|
<Img
|
|
58
|
-
className={`w-
|
|
58
|
+
className={`w-12 h-12 min-w-12 p-3 rounded-full ${benefitsIconStyleMap[version]}`}
|
|
59
59
|
image={getIconWithVersion(benefit.icon, version)}
|
|
60
60
|
asSVG
|
|
61
61
|
/>
|
|
@@ -12,7 +12,7 @@ export const Bonus = JSX<BonusProps>((props) => {
|
|
|
12
12
|
const { className = '', title, description, bonusItems, ...rest } = props;
|
|
13
13
|
|
|
14
14
|
return (
|
|
15
|
-
<BlockWrapper className={`font-sans bg-white p-
|
|
15
|
+
<BlockWrapper className={`font-sans bg-white p-12 pb-9 ${className}`} {...rest}>
|
|
16
16
|
<div className="container">
|
|
17
17
|
<Headline
|
|
18
18
|
className="!p-0"
|
|
@@ -76,6 +76,4 @@ const renderBonusCount = (_: BonusCountDef) => (
|
|
|
76
76
|
);
|
|
77
77
|
|
|
78
78
|
const renderBonusImage = (_: BonusImageDef) =>
|
|
79
|
-
_.image ?
|
|
80
|
-
<Img className={`w-[50px] h-[50px] min-w-[50px] p-3 rounded-full`} image={_.image} />
|
|
81
|
-
) : null;
|
|
79
|
+
_.image ? <Img className={`w-12 h-12 min-w-12 p-3 rounded-full`} image={_.image} /> : null;
|
|
@@ -23,7 +23,7 @@ export const BonusBenefitsBlock = JSX<BenefitsBlockProps>(
|
|
|
23
23
|
...rest
|
|
24
24
|
}) => (
|
|
25
25
|
<BlockWrapper
|
|
26
|
-
className={`font-sans text-primary-text bg-white p-
|
|
26
|
+
className={`font-sans text-primary-text bg-white p-12 flex flex-col text-center ${className}`}
|
|
27
27
|
{...rest}
|
|
28
28
|
>
|
|
29
29
|
<Headline
|
|
@@ -9,7 +9,7 @@ export interface BusinessBlockProps extends BusinessBlockContent, UniBlockProps
|
|
|
9
9
|
|
|
10
10
|
export const BusinessBlock = JSX<BusinessBlockProps>(
|
|
11
11
|
({ className = '', title, cards, ...rest }) => (
|
|
12
|
-
<BlockWrapper className={`font-sans bg-white p-
|
|
12
|
+
<BlockWrapper className={`font-sans bg-white p-12 pb-9 ${className}`} {...rest}>
|
|
13
13
|
<Heading headingType="h3" title={title} className="text-center mb-8" />
|
|
14
14
|
<div className="flex gap-5">
|
|
15
15
|
{cards?.length ? cards.map((_, i) => <BusinessCard key={String(i)} {..._} />) : null}
|
|
@@ -43,7 +43,6 @@ export const DepositCalculatorForm = JSX<DepositCalculatorProp>(
|
|
|
43
43
|
isMonthlyInterestPayment,
|
|
44
44
|
};
|
|
45
45
|
const handleMonthsValue = useCallback((_: number) => setMonthsValue(_), []);
|
|
46
|
-
const [isEveryMonth, toggleIsEveryMonth] = useState(false);
|
|
47
46
|
|
|
48
47
|
const calculatorParams = useDepositCalculatorParams(userInputParams, sourceBookDir);
|
|
49
48
|
const { income, finalSum, rate } = calculatorParams;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { addSpacesBetweenNumbers } from '../../utils/addSpacesBetweenNumbers';
|
|
2
1
|
import { Button } from '../../ui-kit/Button/Button';
|
|
2
|
+
import { addSpacesBetweenNumbers } from '../../utils/addSpacesBetweenNumbers';
|
|
3
3
|
|
|
4
4
|
export function renderProposal(monthlyPayment: number) {
|
|
5
5
|
return (
|
|
6
6
|
<div className="box-border ">
|
|
7
7
|
<div className="text-l-light">Ежемесячный платёж</div>
|
|
8
8
|
<div className="text-h3 mb-3">{addSpacesBetweenNumbers(Math.round(monthlyPayment))} ₽</div>
|
|
9
|
-
<Button className="mt-
|
|
9
|
+
<Button className="mt-12 w-full" text="Отправить заявку" version="primary" href="#" />
|
|
10
10
|
</div>
|
|
11
11
|
);
|
|
12
12
|
}
|
|
@@ -38,7 +38,7 @@ export const CardTransfer = JSX<CardTransferProps>(
|
|
|
38
38
|
|
|
39
39
|
return (
|
|
40
40
|
<BlockWrapper
|
|
41
|
-
className={`p-
|
|
41
|
+
className={`p-12 flex flex-col items-center font-sans bg-white ${className}`}
|
|
42
42
|
{...rest}
|
|
43
43
|
>
|
|
44
44
|
{title ? <Heading className="max-w-[684px] pb-9" headingType="h2" title={title} /> : null}
|
|
@@ -22,7 +22,7 @@ export const Catalog = JSX<CatalogProps>(
|
|
|
22
22
|
|
|
23
23
|
return (
|
|
24
24
|
<BlockWrapper
|
|
25
|
-
className={`bg-white relative font-sans p-
|
|
25
|
+
className={`bg-white relative font-sans p-12 overflow-hidden text-center ${className}`}
|
|
26
26
|
{...rest}
|
|
27
27
|
>
|
|
28
28
|
<Headline
|
|
@@ -18,7 +18,7 @@ interface RenderContactsColumnProps {
|
|
|
18
18
|
|
|
19
19
|
export const ContactsBlock = JSX<ContactsBlockProps>(
|
|
20
20
|
({ className = '', contacts, info, version = 'secondary', ...rest }) => (
|
|
21
|
-
<BlockWrapper className={`${VersionStyleMap[version]} flex p-
|
|
21
|
+
<BlockWrapper className={`${VersionStyleMap[version]} flex p-12 ${className}`} {...rest}>
|
|
22
22
|
{info?.length ? renderBlocks(info, version) : null}
|
|
23
23
|
{contacts?.length ? renderBlocks(contacts, version) : null}
|
|
24
24
|
</BlockWrapper>
|
|
@@ -5,6 +5,7 @@ import type { BlockDecorator } from '../../model/BlockDecorator';
|
|
|
5
5
|
import type { BlocksRegistry } from '../../model/BlocksRegistry';
|
|
6
6
|
import type { ContentPageDef } from '../../model/ContentPageDef';
|
|
7
7
|
import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
|
|
8
|
+
import { useBlockRouterProvider } from '../../services/BlockRouter/useBlockRouterProvider';
|
|
8
9
|
import { style2className } from '../../utils/style2className';
|
|
9
10
|
import { LikeControl } from '../LikeControl/LikeControl';
|
|
10
11
|
|
|
@@ -27,6 +28,8 @@ export const ContentPage: JSXBlock<ContentPageProps> = JSX<ContentPageProps>((pr
|
|
|
27
28
|
parent: data,
|
|
28
29
|
};
|
|
29
30
|
|
|
31
|
+
useBlockRouterProvider();
|
|
32
|
+
|
|
30
33
|
return (
|
|
31
34
|
<section
|
|
32
35
|
className={`relative ${style2className(pageStyle)} ${className}`}
|
|
@@ -3,13 +3,7 @@ import type { BlocksRegistry } from '../../model/BlocksRegistry';
|
|
|
3
3
|
import type { BlockDef, ContentPageDef } from '../../model/ContentPageDef';
|
|
4
4
|
import baseData from './ContentPage.page.json';
|
|
5
5
|
|
|
6
|
-
const BLOCK_TYPES_BLACK_LIST = [
|
|
7
|
-
'Header',
|
|
8
|
-
'Footer',
|
|
9
|
-
'Placeholder',
|
|
10
|
-
'AccordionItem',
|
|
11
|
-
'OtherProductsItem',
|
|
12
|
-
];
|
|
6
|
+
const BLOCK_TYPES_BLACK_LIST = ['Header', 'Footer', 'Placeholder'];
|
|
13
7
|
|
|
14
8
|
export function useContentPageData(blocksRegistry: BlocksRegistry): ContentPageDef {
|
|
15
9
|
const [data, setData] = useState<ContentPageDef>(baseData);
|
|
@@ -26,11 +20,13 @@ const contentPageData = async (blocksRegistry: BlocksRegistry): Promise<ContentP
|
|
|
26
20
|
blocks: await Promise.all(
|
|
27
21
|
Object.keys(blocksRegistry)
|
|
28
22
|
.filter((type) => !BLOCK_TYPES_BLACK_LIST.includes(type))
|
|
23
|
+
.filter((type) => !type.endsWith('Item'))
|
|
29
24
|
.sort()
|
|
30
25
|
.map(
|
|
31
|
-
async (type): Promise<BlockDef> => ({
|
|
26
|
+
async (type, i): Promise<BlockDef> => ({
|
|
32
27
|
type,
|
|
33
28
|
style: ['col-span-12'],
|
|
29
|
+
anchor: `${type}-${i}`,
|
|
34
30
|
content: {},
|
|
35
31
|
...(await blockContentExample(type)),
|
|
36
32
|
}),
|
|
@@ -26,7 +26,7 @@ export const ExchangeRateTile = JSX<ExchangeRateTileProps>(
|
|
|
26
26
|
|
|
27
27
|
return (
|
|
28
28
|
<BlockWrapper
|
|
29
|
-
className={`bg-white text-primary-text font-sans p-9 box-border min-h-
|
|
29
|
+
className={`bg-white text-primary-text font-sans p-9 box-border min-h-80 ${className}`}
|
|
30
30
|
{...rest}
|
|
31
31
|
>
|
|
32
32
|
<BaseTile
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { LinkCommonProps, LinkProps } from '../../model/LinkProps';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { LinkCommonProps, LinkProps } from '../../model/LinkProps';
|
|
2
|
+
import type { Picture } from '../../model/Picture';
|
|
3
|
+
import type { SitemapDataProps } from '../../services/sitemap/SitemapProps';
|
|
4
|
+
import type { ContactInfo, SubMenuItem } from './FooterContent';
|
|
4
5
|
|
|
5
6
|
export interface FooterDataProps extends SitemapDataProps {
|
|
6
7
|
documents?: LinkProps[];
|
|
@@ -10,4 +11,8 @@ export interface FooterDataProps extends SitemapDataProps {
|
|
|
10
11
|
mobileApps?: LinkCommonProps[];
|
|
11
12
|
horizontalNavigationTitle?: string; // TODO: для мобильной версии
|
|
12
13
|
subMenu?: SubMenuItem[]; // TODO: для мобильной версии
|
|
14
|
+
logo?: {
|
|
15
|
+
image?: Picture;
|
|
16
|
+
title?: string;
|
|
17
|
+
};
|
|
13
18
|
}
|
|
@@ -56,7 +56,7 @@ export const MediaButton = JSX<MediaButtonProps>(({ version = 'primary', ...rest
|
|
|
56
56
|
const classes =
|
|
57
57
|
version === 'secondary'
|
|
58
58
|
? 'bg-white hover:bg-secondary-hover'
|
|
59
|
-
: 'border-solid border
|
|
59
|
+
: 'border-solid border border-main-divider hover:border-transparent hover:bg-primary-main';
|
|
60
60
|
|
|
61
61
|
const isPrimary = version === 'primary';
|
|
62
62
|
|