@redneckz/wildless-cms-uni-blocks 0.5.9 → 0.5.11
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/bin/migration-scripts/0.4.5.js +1 -1
- package/bin/migration-scripts/0.5.10.js +36 -0
- package/bin/utils.js +0 -2
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +241 -141
- package/bundle/bundle.umd.min.js +1 -1
- package/cosmos-static/icons/CardTickIcon.svg +1 -1
- package/cosmos-static/icons/DocDownloadIcon.svg +1 -1
- package/cosmos-static/icons/DoneSimpleIcon.svg +1 -1
- package/dist/EventBus/EventMap.d.ts +2 -1
- package/dist/api/DaDataAPI.d.ts +12 -0
- package/dist/api/DaDataAPI.js.map +1 -1
- package/dist/components/Accordion/Accordion.d.ts +1 -1
- package/dist/components/Accordion/Accordion.mobile.d.ts +1 -1
- package/dist/components/Accordion/AccordionItem.d.ts +1 -1
- package/dist/components/Accordion/AccordionItem.mobile.d.ts +1 -1
- package/dist/components/BaseTile/BaseTile.d.ts +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/dist/components/Bonus/Bonus.d.ts +1 -1
- package/dist/components/Bonus/Bonus.js +11 -2
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/Bonus/BonusContent.d.ts +30 -2
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +1 -1
- package/dist/components/Calculator/BonusCalculatorForm.d.ts +1 -1
- package/dist/components/Calculator/BonusCalculatorForm.js +1 -1
- package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/Calculator.d.ts +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.d.ts +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.js +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.d.ts +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.js +2 -2
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/renderCalculatorBlock.js +1 -1
- package/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/dist/components/CardTransfer/CardTransfer.d.ts +1 -1
- package/dist/components/CardTransfer/CardTransfer.js +9 -10
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/CardTransfer/CardTransferContent.d.ts +2 -2
- package/dist/components/Catalog/Catalog.d.ts +1 -1
- package/dist/components/Catalog/CatalogCard.d.ts +1 -1
- package/dist/components/Catalog/CatalogCard.js +1 -1
- package/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.d.ts +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.mobile.d.ts +1 -1
- package/dist/components/ComparisonTable/TableColumn.d.ts +2 -2
- package/dist/components/ComparisonTable/TableColumn.js +7 -2
- package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.d.ts +5 -24
- package/dist/components/ContentPage/ContentPage.js +17 -19
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ContentPage/ContentPageHead.d.ts +1 -1
- package/dist/components/ContentPage/computeAPIFallback.d.ts +2 -2
- package/dist/components/ContentPage/filterBlocks.d.ts +5 -4
- package/dist/components/ContentPage/filterBlocks.mobile.d.ts +5 -4
- package/dist/components/ContentPage/isBlockInRegistry.d.ts +1 -1
- package/dist/components/ContentPage/normalizeBlock.d.ts +4 -3
- package/dist/components/ContentPage/normalizeBlock.mobile.d.ts +1 -1
- package/dist/components/ContentPage/normalizePage.d.ts +2 -2
- package/dist/components/ContentPage/renderBlock.d.ts +13 -0
- package/dist/components/ContentPage/renderBlock.js +28 -0
- package/dist/components/ContentPage/renderBlock.js.map +1 -0
- package/dist/components/ErrorBlock/ErrorBlock.d.ts +1 -1
- package/dist/components/ErrorBlock/ErrorBlock.js +1 -1
- package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.d.ts +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/dist/components/ExchangeRateTile/renderInput.js +2 -2
- package/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/dist/components/Footer/Contacts.d.ts +1 -1
- package/dist/components/Footer/Footer.d.ts +1 -1
- package/dist/components/Footer/Footer.mobile.d.ts +1 -1
- package/dist/components/Footer/FooterLink.d.ts +1 -1
- package/dist/components/Footer/HorizontalNavigation.d.ts +2 -2
- package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigation.mobile.d.ts +2 -2
- package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
- package/dist/components/Footer/MediaButton.js +1 -1
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Footer/Sitemap.d.ts +2 -2
- package/dist/components/Footer/Sitemap.js.map +1 -1
- package/dist/components/Footer/SocialMedia.d.ts +1 -1
- package/dist/components/Footer/SocialMedia.mobile.d.ts +1 -1
- package/dist/components/Gallery/GalleryInner.d.ts +1 -1
- package/dist/components/Gallery/GalleryProps.d.ts +1 -1
- package/dist/components/GracePeriod/GracePeriod.d.ts +1 -1
- package/dist/components/GracePeriod/GracePeriod.js +3 -3
- package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/dist/components/Header/DropdownMenu.d.ts +1 -1
- package/dist/components/Header/Header.d.ts +1 -1
- package/dist/components/Header/Header.fallback.d.ts +1 -1
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/Header.mobile.d.ts +1 -1
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Headline/Headline.d.ts +1 -1
- package/dist/components/Headline/Headline.js +1 -1
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Headline/Headline.mobile.d.ts +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +1 -1
- package/dist/components/LikeControl/LikeControl.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocs.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/dist/components/LinkList/LinkList.d.ts +1 -1
- package/dist/components/LinkList/LinkList.js.map +1 -1
- package/dist/components/MiniGallery/MiniGallery.d.ts +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.d.ts +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +3 -3
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.mobile.d.ts +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +1 -1
- package/dist/components/OtherProducts/OtherProducts.d.ts +1 -1
- package/dist/components/OtherProducts/OtherProductsContent.d.ts +2 -2
- package/dist/components/OtherProducts/OtherProductsItem.d.ts +1 -1
- package/dist/components/PictureText/PictureText.d.ts +1 -1
- package/dist/components/Placeholder/Placeholder.d.ts +1 -1
- package/dist/components/Placeholder/Placeholder.js +1 -1
- package/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +1 -1
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.mobile.d.ts +1 -1
- package/dist/components/ProductBlock/ProductBlock.mobile.js +1 -1
- package/dist/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.d.ts +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.d.ts +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.d.ts +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +10 -10
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.mobile.d.ts +1 -1
- package/dist/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryContent.d.ts +0 -1
- package/dist/components/ProductTile/ProductTile.d.ts +1 -1
- package/dist/components/ProductTile/ProductTile.js +1 -1
- package/dist/components/PromoTile/PromoTile.d.ts +1 -1
- package/dist/components/PromoTile/PromoTile.js +1 -1
- package/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/dist/components/Recommendation/Recommendation.d.ts +1 -1
- package/dist/components/Recommendation/RecommendationCard.d.ts +1 -1
- package/dist/components/SafeDepositRental/RegionsAndBranches.js +1 -1
- package/dist/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/dist/components/SafeDepositRental/WrapperSelect.js +6 -3
- package/dist/components/SafeDepositRental/WrapperSelect.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.d.ts +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +5 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts +5 -1
- package/dist/components/Tabs/Tabs.js +13 -3
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/Tabs/TabsContent.d.ts +2 -0
- package/dist/components/Tabs/renderLinkTab.d.ts +3 -2
- package/dist/components/Tabs/renderLinkTab.js +4 -1
- package/dist/components/Tabs/renderLinkTab.js.map +1 -1
- package/dist/components/Tabs/renderTab.d.ts +1 -1
- package/dist/components/Tabs/renderTab.js +12 -2
- package/dist/components/Tabs/renderTab.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.d.ts +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.d.ts +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.d.ts +1 -1
- package/dist/components/TariffsTable/TariffsTableHorizontal.d.ts +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.d.ts +1 -1
- package/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -1
- package/dist/components/TariffsTable/TariffsTableVertical.d.ts +1 -1
- package/dist/components/TextBlock/TextBlock.d.ts +1 -1
- package/dist/components/TextBlock/TextBlock.mobile.d.ts +1 -1
- package/dist/components/Tile/Tile.d.ts +1 -1
- package/dist/content-page-repository/ContentPageRepository.d.ts +1 -1
- package/dist/content-page-repository/transformContentPage.d.ts +1 -1
- package/dist/icons/IconName.d.ts +94 -2
- package/dist/icons/IconName.js +6 -3
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/BlockDecorator.d.ts +14 -0
- package/dist/model/BlockDecorator.js +4 -0
- package/dist/model/BlockDecorator.js.map +1 -0
- package/dist/model/BlocksRegistry.d.ts +5 -0
- package/dist/{types.js → model/BlocksRegistry.js} +1 -1
- package/dist/model/BlocksRegistry.js.map +1 -0
- package/dist/{types.d.ts → model/ContentPageDef.d.ts} +5 -20
- package/dist/{components/BlockContent.js → model/ContentPageDef.js} +1 -1
- package/dist/model/ContentPageDef.js.map +1 -0
- package/dist/{types → model}/Fallback.d.ts +0 -0
- package/dist/{types → model}/Fallback.js +0 -0
- package/dist/{types → model}/Fallback.js.map +1 -1
- package/dist/react/IntersectionObserverTag.js +7 -3
- package/dist/react/IntersectionObserverTag.js.map +1 -1
- package/dist/services/sitemap/useSitemap.d.ts +1 -1
- package/dist/ui-kit/BenefitItem/BenefitItemProps.d.ts +1 -0
- package/dist/ui-kit/BlockWrapper.d.ts +1 -1
- package/dist/ui-kit/BlockWrapper.js +34 -12
- package/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/dist/ui-kit/Button/Button.mobile.js +4 -1
- package/dist/ui-kit/Button/Button.mobile.js.map +1 -1
- package/dist/ui-kit/Button/ButtonSection.d.ts +1 -1
- package/dist/ui-kit/Button/buttonClassNameConstants.js +1 -1
- package/dist/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/dist/ui-kit/CurrencyInput/CurrencyInput.js +11 -6
- package/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/dist/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +2 -7
- package/dist/ui-kit/CurrencyInput/adjustValue .d.ts +1 -0
- package/dist/ui-kit/CurrencyInput/adjustValue .js +15 -0
- package/dist/ui-kit/CurrencyInput/adjustValue .js.map +1 -0
- package/dist/ui-kit/Foldable/Foldable.d.ts +1 -1
- package/dist/ui-kit/Icon/Icon.js +11 -3
- package/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTable.d.ts +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBody.d.ts +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.d.ts +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
- package/dist/ui-kit/Input/Input.d.ts +1 -1
- package/dist/ui-kit/Input/Input.js +7 -4
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/Input/InputProps.d.ts +6 -3
- package/dist/ui-kit/Logo/Logo.d.ts +1 -1
- package/dist/ui-kit/Logo/Logo.js +2 -2
- package/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/dist/ui-kit/Logo/Logo.mobile.d.ts +1 -1
- package/dist/ui-kit/Logo/Logo.mobile.js +2 -2
- package/dist/ui-kit/Logo/Logo.mobile.js.map +1 -1
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +1 -1
- package/dist/ui-kit/SearchBar/SearchBar.d.ts +1 -1
- package/dist/ui-kit/SearchBar/SearchBar.mobile.d.ts +1 -1
- package/dist/ui-kit/Select/Select.d.ts +10 -4
- package/dist/ui-kit/Select/Select.js +23 -5
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +1 -1
- package/dist/utils/changeHashOnObserve.d.ts +9 -1
- package/dist/utils/changeHashOnObserve.js +12 -4
- package/dist/utils/changeHashOnObserve.js.map +1 -1
- package/lib/EventBus/EventMap.d.ts +2 -1
- package/lib/api/DaDataAPI.d.ts +12 -0
- package/lib/api/DaDataAPI.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.d.ts +1 -1
- package/lib/components/Accordion/Accordion.mobile.d.ts +1 -1
- package/lib/components/Accordion/AccordionItem.d.ts +1 -1
- package/lib/components/Accordion/AccordionItem.mobile.d.ts +1 -1
- package/lib/components/BaseTile/BaseTile.d.ts +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/lib/components/Bonus/Bonus.d.ts +1 -1
- package/lib/components/Bonus/Bonus.js +11 -2
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/Bonus/BonusContent.d.ts +30 -2
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +1 -1
- package/lib/components/Calculator/BonusCalculatorForm.d.ts +1 -1
- package/lib/components/Calculator/BonusCalculatorForm.js +1 -1
- package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/Calculator.d.ts +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.d.ts +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.js +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.d.ts +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.js +2 -2
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/renderCalculatorBlock.js +1 -1
- package/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/lib/components/CardTransfer/CardTransfer.d.ts +1 -1
- package/lib/components/CardTransfer/CardTransfer.js +9 -10
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/CardTransfer/CardTransferContent.d.ts +2 -2
- package/lib/components/Catalog/Catalog.d.ts +1 -1
- package/lib/components/Catalog/CatalogCard.d.ts +1 -1
- package/lib/components/Catalog/CatalogCard.js +1 -1
- package/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.d.ts +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.mobile.d.ts +1 -1
- package/lib/components/ComparisonTable/TableColumn.d.ts +2 -2
- package/lib/components/ComparisonTable/TableColumn.js +7 -2
- package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.d.ts +5 -24
- package/lib/components/ContentPage/ContentPage.js +17 -19
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ContentPage/ContentPageHead.d.ts +1 -1
- package/lib/components/ContentPage/computeAPIFallback.d.ts +2 -2
- package/lib/components/ContentPage/filterBlocks.d.ts +5 -4
- package/lib/components/ContentPage/filterBlocks.mobile.d.ts +5 -4
- package/lib/components/ContentPage/isBlockInRegistry.d.ts +1 -1
- package/lib/components/ContentPage/normalizeBlock.d.ts +4 -3
- package/lib/components/ContentPage/normalizeBlock.mobile.d.ts +1 -1
- package/lib/components/ContentPage/normalizePage.d.ts +2 -2
- package/lib/components/ContentPage/renderBlock.d.ts +13 -0
- package/lib/components/ContentPage/renderBlock.js +25 -0
- package/lib/components/ContentPage/renderBlock.js.map +1 -0
- package/lib/components/ErrorBlock/ErrorBlock.d.ts +1 -1
- package/lib/components/ErrorBlock/ErrorBlock.js +1 -1
- package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.d.ts +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/lib/components/ExchangeRateTile/renderInput.js +2 -2
- package/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/lib/components/Footer/Contacts.d.ts +1 -1
- package/lib/components/Footer/Footer.d.ts +1 -1
- package/lib/components/Footer/Footer.mobile.d.ts +1 -1
- package/lib/components/Footer/FooterLink.d.ts +1 -1
- package/lib/components/Footer/HorizontalNavigation.d.ts +2 -2
- package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigation.mobile.d.ts +2 -2
- package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
- package/lib/components/Footer/MediaButton.js +1 -1
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Footer/Sitemap.d.ts +2 -2
- package/lib/components/Footer/Sitemap.js.map +1 -1
- package/lib/components/Footer/SocialMedia.d.ts +1 -1
- package/lib/components/Footer/SocialMedia.mobile.d.ts +1 -1
- package/lib/components/Gallery/GalleryInner.d.ts +1 -1
- package/lib/components/Gallery/GalleryProps.d.ts +1 -1
- package/lib/components/GracePeriod/GracePeriod.d.ts +1 -1
- package/lib/components/GracePeriod/GracePeriod.js +3 -3
- package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/lib/components/Header/DropdownMenu.d.ts +1 -1
- package/lib/components/Header/Header.d.ts +1 -1
- package/lib/components/Header/Header.fallback.d.ts +1 -1
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mobile.d.ts +1 -1
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Headline/Headline.d.ts +1 -1
- package/lib/components/Headline/Headline.js +1 -1
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/Headline.mobile.d.ts +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +1 -1
- package/lib/components/LikeControl/LikeControl.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocs.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/lib/components/LinkList/LinkList.d.ts +1 -1
- package/lib/components/LinkList/LinkList.js.map +1 -1
- package/lib/components/MiniGallery/MiniGallery.d.ts +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.d.ts +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +3 -3
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.mobile.d.ts +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +1 -1
- package/lib/components/OtherProducts/OtherProducts.d.ts +1 -1
- package/lib/components/OtherProducts/OtherProductsContent.d.ts +2 -2
- package/lib/components/OtherProducts/OtherProductsItem.d.ts +1 -1
- package/lib/components/PictureText/PictureText.d.ts +1 -1
- package/lib/components/Placeholder/Placeholder.d.ts +1 -1
- package/lib/components/Placeholder/Placeholder.js +1 -1
- package/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/lib/components/ProductBlock/ProductBlock.js +1 -1
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.mobile.d.ts +1 -1
- package/lib/components/ProductBlock/ProductBlock.mobile.js +1 -1
- package/lib/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.d.ts +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.d.ts +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.d.ts +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +10 -10
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.mobile.d.ts +1 -1
- package/lib/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryContent.d.ts +0 -1
- package/lib/components/ProductTile/ProductTile.d.ts +1 -1
- package/lib/components/ProductTile/ProductTile.js +1 -1
- package/lib/components/PromoTile/PromoTile.d.ts +1 -1
- package/lib/components/PromoTile/PromoTile.js +1 -1
- package/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/lib/components/Recommendation/Recommendation.d.ts +1 -1
- package/lib/components/Recommendation/RecommendationCard.d.ts +1 -1
- package/lib/components/SafeDepositRental/RegionsAndBranches.js +1 -1
- package/lib/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/lib/components/SafeDepositRental/WrapperSelect.js +7 -4
- package/lib/components/SafeDepositRental/WrapperSelect.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.d.ts +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +5 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/Tabs/Tabs.d.ts +5 -1
- package/lib/components/Tabs/Tabs.js +13 -3
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/components/Tabs/TabsContent.d.ts +2 -0
- package/lib/components/Tabs/renderLinkTab.d.ts +3 -2
- package/lib/components/Tabs/renderLinkTab.js +5 -2
- package/lib/components/Tabs/renderLinkTab.js.map +1 -1
- package/lib/components/Tabs/renderTab.d.ts +1 -1
- package/lib/components/Tabs/renderTab.js +12 -2
- package/lib/components/Tabs/renderTab.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTableHorizontal.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTableVertical.d.ts +1 -1
- package/lib/components/TextBlock/TextBlock.d.ts +1 -1
- package/lib/components/TextBlock/TextBlock.mobile.d.ts +1 -1
- package/lib/components/Tile/Tile.d.ts +1 -1
- package/lib/content-page-repository/ContentPageRepository.d.ts +1 -1
- package/lib/content-page-repository/transformContentPage.d.ts +1 -1
- package/lib/icons/IconName.d.ts +94 -2
- package/lib/icons/IconName.js +4 -1
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/BlockDecorator.d.ts +14 -0
- package/lib/model/BlockDecorator.js +2 -0
- package/lib/model/BlockDecorator.js.map +1 -0
- package/lib/model/BlocksRegistry.d.ts +5 -0
- package/lib/model/BlocksRegistry.js +2 -0
- package/lib/model/BlocksRegistry.js.map +1 -0
- package/lib/{types.d.ts → model/ContentPageDef.d.ts} +5 -20
- package/lib/model/ContentPageDef.js +2 -0
- package/lib/model/ContentPageDef.js.map +1 -0
- package/lib/{types → model}/Fallback.d.ts +0 -0
- package/lib/{types → model}/Fallback.js +0 -0
- package/lib/{types → model}/Fallback.js.map +1 -1
- package/lib/react/IntersectionObserverTag.js +7 -3
- package/lib/react/IntersectionObserverTag.js.map +1 -1
- package/lib/services/sitemap/useSitemap.d.ts +1 -1
- package/lib/ui-kit/BenefitItem/BenefitItemProps.d.ts +1 -0
- package/lib/ui-kit/BlockWrapper.d.ts +1 -1
- package/lib/ui-kit/BlockWrapper.js +35 -13
- package/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/lib/ui-kit/Button/Button.mobile.js +4 -1
- package/lib/ui-kit/Button/Button.mobile.js.map +1 -1
- package/lib/ui-kit/Button/ButtonSection.d.ts +1 -1
- package/lib/ui-kit/Button/buttonClassNameConstants.js +1 -1
- package/lib/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/lib/ui-kit/CurrencyInput/CurrencyInput.js +12 -7
- package/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/lib/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +2 -7
- package/lib/ui-kit/CurrencyInput/adjustValue .d.ts +1 -0
- package/lib/ui-kit/CurrencyInput/adjustValue .js +12 -0
- package/lib/ui-kit/CurrencyInput/adjustValue .js.map +1 -0
- package/lib/ui-kit/Foldable/Foldable.d.ts +1 -1
- package/lib/ui-kit/Icon/Icon.js +12 -4
- package/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTable.d.ts +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBody.d.ts +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.d.ts +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
- package/lib/ui-kit/Input/Input.d.ts +1 -1
- package/lib/ui-kit/Input/Input.js +8 -5
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/Input/InputProps.d.ts +6 -3
- package/lib/ui-kit/Logo/Logo.d.ts +1 -1
- package/lib/ui-kit/Logo/Logo.js +2 -2
- package/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/lib/ui-kit/Logo/Logo.mobile.d.ts +1 -1
- package/lib/ui-kit/Logo/Logo.mobile.js +2 -2
- package/lib/ui-kit/Logo/Logo.mobile.js.map +1 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +1 -1
- package/lib/ui-kit/SearchBar/SearchBar.d.ts +1 -1
- package/lib/ui-kit/SearchBar/SearchBar.mobile.d.ts +1 -1
- package/lib/ui-kit/Select/Select.d.ts +10 -4
- package/lib/ui-kit/{SelectCustom/SelectCustom.fixture.d.ts → Select/Select.fixture.d.ts} +0 -0
- package/lib/ui-kit/Select/Select.js +24 -6
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +1 -1
- package/lib/utils/changeHashOnObserve.d.ts +9 -1
- package/lib/utils/changeHashOnObserve.js +12 -4
- package/lib/utils/changeHashOnObserve.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +162 -83
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/EventBus/EventMap.d.ts +2 -1
- package/mobile/dist/api/DaDataAPI.d.ts +12 -0
- package/mobile/dist/api/DaDataAPI.js.map +1 -1
- package/mobile/dist/components/Accordion/Accordion.d.ts +1 -1
- package/mobile/dist/components/Accordion/AccordionItem.d.ts +1 -1
- package/mobile/dist/components/BaseTile/BaseTile.d.ts +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/mobile/dist/components/Bonus/Bonus.d.ts +1 -1
- package/mobile/dist/components/Bonus/Bonus.js +11 -2
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/Bonus/BonusContent.d.ts +30 -2
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +1 -1
- package/mobile/dist/components/Calculator/BonusCalculatorForm.d.ts +1 -1
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js +1 -1
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/Calculator.d.ts +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.d.ts +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.d.ts +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +2 -2
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/renderCalculatorBlock.js +1 -1
- package/mobile/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.d.ts +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js +9 -10
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/CardTransfer/CardTransferContent.d.ts +2 -2
- package/mobile/dist/components/Catalog/Catalog.d.ts +1 -1
- package/mobile/dist/components/Catalog/CatalogCard.d.ts +1 -1
- package/mobile/dist/components/Catalog/CatalogCard.js +1 -1
- package/mobile/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTable.d.ts +1 -1
- package/mobile/dist/components/ComparisonTable/TableColumn.d.ts +2 -2
- package/mobile/dist/components/ComparisonTable/TableColumn.js +7 -2
- package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.d.ts +5 -24
- package/mobile/dist/components/ContentPage/ContentPage.js +17 -19
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPageHead.d.ts +1 -1
- package/mobile/dist/components/ContentPage/computeAPIFallback.d.ts +2 -2
- package/mobile/dist/components/ContentPage/filterBlocks.d.ts +2 -2
- package/mobile/dist/components/ContentPage/isBlockInRegistry.d.ts +1 -1
- package/mobile/dist/components/ContentPage/normalizeBlock.d.ts +1 -1
- package/mobile/dist/components/ContentPage/normalizePage.d.ts +2 -2
- package/mobile/dist/components/ContentPage/renderBlock.d.ts +13 -0
- package/mobile/dist/components/ContentPage/renderBlock.js +28 -0
- package/mobile/dist/components/ContentPage/renderBlock.js.map +1 -0
- package/mobile/dist/components/ErrorBlock/ErrorBlock.d.ts +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.d.ts +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/renderInput.js +2 -2
- package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/mobile/dist/components/Footer/Contacts.d.ts +1 -1
- package/mobile/dist/components/Footer/Footer.d.ts +1 -1
- package/mobile/dist/components/Footer/FooterLink.d.ts +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.d.ts +2 -2
- package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/dist/components/Footer/MediaButton.js +1 -1
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Footer/Sitemap.d.ts +2 -2
- package/mobile/dist/components/Footer/Sitemap.js.map +1 -1
- package/mobile/dist/components/Footer/SocialMedia.d.ts +1 -1
- package/mobile/dist/components/Gallery/GalleryInner.d.ts +1 -1
- package/mobile/dist/components/Gallery/GalleryProps.d.ts +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.d.ts +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.js +3 -3
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/mobile/dist/components/Header/DropdownMenu.d.ts +1 -1
- package/mobile/dist/components/Header/Header.d.ts +1 -1
- package/mobile/dist/components/Header/Header.fallback.d.ts +1 -1
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.d.ts +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +1 -1
- package/mobile/dist/components/LikeControl/LikeControl.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkList/LinkList.d.ts +1 -1
- package/mobile/dist/components/LinkList/LinkList.js.map +1 -1
- package/mobile/dist/components/MiniGallery/MiniGallery.d.ts +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.d.ts +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +1 -1
- package/mobile/dist/components/OtherProducts/OtherProducts.d.ts +1 -1
- package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +2 -2
- package/mobile/dist/components/OtherProducts/OtherProductsItem.d.ts +1 -1
- package/mobile/dist/components/PictureText/PictureText.d.ts +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.d.ts +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.js +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.d.ts +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.d.ts +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +0 -1
- package/mobile/dist/components/ProductTile/ProductTile.d.ts +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +1 -1
- package/mobile/dist/components/PromoTile/PromoTile.d.ts +1 -1
- package/mobile/dist/components/PromoTile/PromoTile.js +1 -1
- package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/dist/components/Recommendation/Recommendation.d.ts +1 -1
- package/mobile/dist/components/Recommendation/RecommendationCard.d.ts +1 -1
- package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js +1 -1
- package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/WrapperSelect.js +6 -3
- package/mobile/dist/components/SafeDepositRental/WrapperSelect.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +5 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/Tabs/Tabs.d.ts +5 -1
- package/mobile/dist/components/Tabs/Tabs.js +13 -3
- package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/components/Tabs/TabsContent.d.ts +2 -0
- package/mobile/dist/components/Tabs/renderLinkTab.d.ts +3 -2
- package/mobile/dist/components/Tabs/renderLinkTab.js +4 -1
- package/mobile/dist/components/Tabs/renderLinkTab.js.map +1 -1
- package/mobile/dist/components/Tabs/renderTab.d.ts +1 -1
- package/mobile/dist/components/Tabs/renderTab.js +12 -2
- package/mobile/dist/components/Tabs/renderTab.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.d.ts +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.d.ts +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.d.ts +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.d.ts +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableVertical.d.ts +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.d.ts +1 -1
- package/mobile/dist/components/Tile/Tile.d.ts +1 -1
- package/mobile/dist/content-page-repository/ContentPageRepository.d.ts +1 -1
- package/mobile/dist/content-page-repository/transformContentPage.d.ts +1 -1
- package/mobile/dist/icons/IconName.d.ts +94 -2
- package/mobile/dist/icons/IconName.js +6 -3
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/BlockDecorator.d.ts +14 -0
- package/mobile/dist/model/BlockDecorator.js +4 -0
- package/mobile/dist/model/BlockDecorator.js.map +1 -0
- package/mobile/dist/model/BlocksRegistry.d.ts +5 -0
- package/mobile/dist/{components/BlockContent.js → model/BlocksRegistry.js} +1 -1
- package/mobile/dist/model/BlocksRegistry.js.map +1 -0
- package/mobile/dist/{types.d.ts → model/ContentPageDef.d.ts} +5 -20
- package/mobile/dist/model/ContentPageDef.js +2 -0
- package/mobile/dist/model/ContentPageDef.js.map +1 -0
- package/mobile/dist/{types → model}/Fallback.d.ts +0 -0
- package/mobile/dist/{types → model}/Fallback.js +0 -0
- package/mobile/dist/{types → model}/Fallback.js.map +1 -1
- package/mobile/dist/react/IntersectionObserverTag.js +7 -3
- package/mobile/dist/react/IntersectionObserverTag.js.map +1 -1
- package/mobile/dist/services/sitemap/useSitemap.d.ts +1 -1
- package/mobile/dist/ui-kit/BenefitItem/BenefitItemProps.d.ts +1 -0
- package/mobile/dist/ui-kit/BlockWrapper.d.ts +1 -1
- package/mobile/dist/ui-kit/BlockWrapper.js +34 -12
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/dist/ui-kit/Button/Button.js +4 -1
- package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonSection.d.ts +1 -1
- package/mobile/dist/ui-kit/Button/buttonClassNameConstants.js +1 -1
- package/mobile/dist/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js +11 -6
- package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/mobile/dist/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +2 -7
- package/mobile/dist/ui-kit/CurrencyInput/adjustValue .d.ts +1 -0
- package/mobile/dist/ui-kit/CurrencyInput/adjustValue .js +15 -0
- package/mobile/dist/ui-kit/CurrencyInput/adjustValue .js.map +1 -0
- package/mobile/dist/ui-kit/Foldable/Foldable.d.ts +1 -1
- package/mobile/dist/ui-kit/Icon/Icon.js +11 -3
- package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTable.d.ts +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.d.ts +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.d.ts +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
- package/mobile/dist/ui-kit/Input/Input.d.ts +1 -1
- package/mobile/dist/ui-kit/Input/Input.js +7 -4
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputProps.d.ts +6 -3
- package/mobile/dist/ui-kit/Logo/Logo.d.ts +1 -1
- package/mobile/dist/ui-kit/Logo/Logo.js +2 -2
- package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBar.d.ts +1 -1
- package/mobile/dist/ui-kit/Select/Select.d.ts +10 -4
- package/mobile/dist/ui-kit/Select/Select.js +23 -5
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +1 -1
- package/mobile/dist/utils/changeHashOnObserve.d.ts +9 -1
- package/mobile/dist/utils/changeHashOnObserve.js +12 -4
- package/mobile/dist/utils/changeHashOnObserve.js.map +1 -1
- package/mobile/lib/EventBus/EventMap.d.ts +2 -1
- package/mobile/lib/api/DaDataAPI.d.ts +12 -0
- package/mobile/lib/api/DaDataAPI.js.map +1 -1
- package/mobile/lib/components/Accordion/Accordion.d.ts +1 -1
- package/mobile/lib/components/Accordion/AccordionItem.d.ts +1 -1
- package/mobile/lib/components/BaseTile/BaseTile.d.ts +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/mobile/lib/components/Bonus/Bonus.d.ts +1 -1
- package/mobile/lib/components/Bonus/Bonus.js +11 -2
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/Bonus/BonusContent.d.ts +30 -2
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +1 -1
- package/mobile/lib/components/Calculator/BonusCalculatorForm.d.ts +1 -1
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js +1 -1
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/Calculator.d.ts +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.d.ts +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.d.ts +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +2 -2
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/renderCalculatorBlock.js +1 -1
- package/mobile/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.d.ts +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js +9 -10
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/CardTransfer/CardTransferContent.d.ts +2 -2
- package/mobile/lib/components/Catalog/Catalog.d.ts +1 -1
- package/mobile/lib/components/Catalog/CatalogCard.d.ts +1 -1
- package/mobile/lib/components/Catalog/CatalogCard.js +1 -1
- package/mobile/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTable.d.ts +1 -1
- package/mobile/lib/components/ComparisonTable/TableColumn.d.ts +2 -2
- package/mobile/lib/components/ComparisonTable/TableColumn.js +7 -2
- package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.d.ts +5 -24
- package/mobile/lib/components/ContentPage/ContentPage.js +17 -19
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPageHead.d.ts +1 -1
- package/mobile/lib/components/ContentPage/computeAPIFallback.d.ts +2 -2
- package/mobile/lib/components/ContentPage/filterBlocks.d.ts +2 -2
- package/mobile/lib/components/ContentPage/isBlockInRegistry.d.ts +1 -1
- package/mobile/lib/components/ContentPage/normalizeBlock.d.ts +1 -1
- package/mobile/lib/components/ContentPage/normalizePage.d.ts +2 -2
- package/mobile/lib/components/ContentPage/renderBlock.d.ts +13 -0
- package/mobile/lib/components/ContentPage/renderBlock.js +25 -0
- package/mobile/lib/components/ContentPage/renderBlock.js.map +1 -0
- package/mobile/lib/components/ErrorBlock/ErrorBlock.d.ts +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.d.ts +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/renderInput.js +2 -2
- package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/mobile/lib/components/Footer/Contacts.d.ts +1 -1
- package/mobile/lib/components/Footer/Footer.d.ts +1 -1
- package/mobile/lib/components/Footer/FooterLink.d.ts +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.d.ts +2 -2
- package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/lib/components/Footer/MediaButton.js +1 -1
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Footer/Sitemap.d.ts +2 -2
- package/mobile/lib/components/Footer/Sitemap.js.map +1 -1
- package/mobile/lib/components/Footer/SocialMedia.d.ts +1 -1
- package/mobile/lib/components/Gallery/GalleryInner.d.ts +1 -1
- package/mobile/lib/components/Gallery/GalleryProps.d.ts +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.d.ts +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.js +3 -3
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/mobile/lib/components/Header/DropdownMenu.d.ts +1 -1
- package/mobile/lib/components/Header/Header.d.ts +1 -1
- package/mobile/lib/components/Header/Header.fallback.d.ts +1 -1
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.d.ts +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +1 -1
- package/mobile/lib/components/LikeControl/LikeControl.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkList/LinkList.d.ts +1 -1
- package/mobile/lib/components/LinkList/LinkList.js.map +1 -1
- package/mobile/lib/components/MiniGallery/MiniGallery.d.ts +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.d.ts +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +1 -1
- package/mobile/lib/components/OtherProducts/OtherProducts.d.ts +1 -1
- package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +2 -2
- package/mobile/lib/components/OtherProducts/OtherProductsItem.d.ts +1 -1
- package/mobile/lib/components/PictureText/PictureText.d.ts +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.d.ts +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.js +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.d.ts +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.d.ts +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +0 -1
- package/mobile/lib/components/ProductTile/ProductTile.d.ts +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +1 -1
- package/mobile/lib/components/PromoTile/PromoTile.d.ts +1 -1
- package/mobile/lib/components/PromoTile/PromoTile.js +1 -1
- package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/lib/components/Recommendation/Recommendation.d.ts +1 -1
- package/mobile/lib/components/Recommendation/RecommendationCard.d.ts +1 -1
- package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js +1 -1
- package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/WrapperSelect.js +7 -4
- package/mobile/lib/components/SafeDepositRental/WrapperSelect.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +5 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/Tabs/Tabs.d.ts +5 -1
- package/mobile/lib/components/Tabs/Tabs.js +13 -3
- package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/components/Tabs/TabsContent.d.ts +2 -0
- package/mobile/lib/components/Tabs/renderLinkTab.d.ts +3 -2
- package/mobile/lib/components/Tabs/renderLinkTab.js +5 -2
- package/mobile/lib/components/Tabs/renderLinkTab.js.map +1 -1
- package/mobile/lib/components/Tabs/renderTab.d.ts +1 -1
- package/mobile/lib/components/Tabs/renderTab.js +12 -2
- package/mobile/lib/components/Tabs/renderTab.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.d.ts +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.d.ts +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.d.ts +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.d.ts +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableVertical.d.ts +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.d.ts +1 -1
- package/mobile/lib/components/Tile/Tile.d.ts +1 -1
- package/mobile/lib/content-page-repository/ContentPageRepository.d.ts +1 -1
- package/mobile/lib/content-page-repository/transformContentPage.d.ts +1 -1
- package/mobile/lib/icons/IconName.d.ts +94 -2
- package/mobile/lib/icons/IconName.js +4 -1
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/BlockDecorator.d.ts +14 -0
- package/mobile/lib/model/BlockDecorator.js +2 -0
- package/mobile/lib/model/BlockDecorator.js.map +1 -0
- package/mobile/lib/model/BlocksRegistry.d.ts +5 -0
- package/mobile/lib/model/BlocksRegistry.js +2 -0
- package/mobile/lib/model/BlocksRegistry.js.map +1 -0
- package/mobile/lib/{types.d.ts → model/ContentPageDef.d.ts} +5 -20
- package/mobile/lib/model/ContentPageDef.js +2 -0
- package/mobile/lib/model/ContentPageDef.js.map +1 -0
- package/mobile/lib/{types → model}/Fallback.d.ts +0 -0
- package/mobile/lib/{types → model}/Fallback.js +0 -0
- package/mobile/lib/{types → model}/Fallback.js.map +1 -1
- package/mobile/lib/react/IntersectionObserverTag.js +7 -3
- package/mobile/lib/react/IntersectionObserverTag.js.map +1 -1
- package/mobile/lib/services/sitemap/useSitemap.d.ts +1 -1
- package/mobile/lib/ui-kit/BenefitItem/BenefitItemProps.d.ts +1 -0
- package/mobile/lib/ui-kit/BlockWrapper.d.ts +1 -1
- package/mobile/lib/ui-kit/BlockWrapper.js +35 -13
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/Button/Button.js +4 -1
- package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonSection.d.ts +1 -1
- package/mobile/lib/ui-kit/Button/buttonClassNameConstants.js +1 -1
- package/mobile/lib/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js +12 -7
- package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/mobile/lib/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +2 -7
- package/mobile/lib/ui-kit/CurrencyInput/adjustValue .d.ts +1 -0
- package/mobile/lib/ui-kit/CurrencyInput/adjustValue .js +12 -0
- package/mobile/lib/ui-kit/CurrencyInput/adjustValue .js.map +1 -0
- package/mobile/lib/ui-kit/Foldable/Foldable.d.ts +1 -1
- package/mobile/lib/ui-kit/Icon/Icon.js +12 -4
- package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTable.d.ts +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.d.ts +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.d.ts +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
- package/mobile/lib/ui-kit/Input/Input.d.ts +1 -1
- package/mobile/lib/ui-kit/Input/Input.js +8 -5
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputProps.d.ts +6 -3
- package/mobile/lib/ui-kit/Logo/Logo.d.ts +1 -1
- package/mobile/lib/ui-kit/Logo/Logo.js +2 -2
- package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBar.d.ts +1 -1
- package/mobile/lib/ui-kit/Select/Select.d.ts +10 -4
- package/mobile/lib/ui-kit/Select/Select.js +24 -6
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +1 -1
- package/mobile/lib/utils/changeHashOnObserve.d.ts +9 -1
- package/mobile/lib/utils/changeHashOnObserve.js +12 -4
- package/mobile/lib/utils/changeHashOnObserve.js.map +1 -1
- package/mobile/src/EventBus/EventMap.ts +3 -1
- package/mobile/src/api/DaDataAPI.ts +13 -1
- package/mobile/src/components/Accordion/Accordion.tsx +1 -1
- package/mobile/src/components/Accordion/Accordion.ui.json +79 -0
- package/mobile/src/components/Accordion/AccordionItem.tsx +1 -1
- package/mobile/src/components/BaseTile/BaseTile.tsx +1 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.ui.json +16 -0
- package/mobile/src/components/Bonus/Bonus.example.json +5 -2
- package/mobile/src/components/Bonus/Bonus.tsx +45 -17
- package/mobile/src/components/Bonus/Bonus.ui.json +16 -0
- package/mobile/src/components/Bonus/BonusContent.ts +33 -2
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -1
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.ui.json +11 -0
- package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +2 -2
- package/mobile/src/components/Calculator/Calculator.example.json +2 -1
- package/mobile/src/components/Calculator/Calculator.tsx +1 -1
- package/mobile/src/components/Calculator/Calculator.ui.json +31 -0
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +2 -2
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +3 -3
- package/mobile/src/components/Calculator/renderCalculatorBlock.tsx +2 -2
- package/mobile/src/components/CardTransfer/CardTransfer.example.json +7 -2
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +22 -23
- package/mobile/src/components/CardTransfer/CardTransfer.ui.json +1 -0
- package/mobile/src/components/CardTransfer/CardTransferContent.ts +2 -2
- package/mobile/src/components/Catalog/Catalog.tsx +1 -1
- package/mobile/src/components/Catalog/Catalog.ui.json +1 -0
- package/mobile/src/components/Catalog/CatalogCard.tsx +2 -2
- package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +1 -1
- package/mobile/src/components/ComparisonTable/ComparisonTable.ui.json +1 -0
- package/mobile/src/components/ComparisonTable/TableColumn.tsx +19 -13
- package/mobile/src/components/ContentPage/ContentPage.page.json +15 -1
- package/mobile/src/components/ContentPage/ContentPage.tsx +53 -101
- package/mobile/src/components/ContentPage/ContentPageHead.tsx +1 -1
- package/mobile/src/components/ContentPage/computeAPIFallback.ts +2 -2
- package/mobile/src/components/ContentPage/filterBlocks.ts +2 -2
- package/mobile/src/components/ContentPage/isBlockInRegistry.ts +1 -1
- package/mobile/src/components/ContentPage/normalizeBlock.ts +1 -1
- package/mobile/src/components/ContentPage/normalizePage.ts +2 -2
- package/mobile/src/components/ContentPage/renderBlock.tsx +62 -0
- package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +3 -3
- package/mobile/src/components/ErrorBlock/ErrorBlock.ui.json +12 -0
- package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +1 -1
- package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +4 -3
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +6 -3
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +1 -0
- package/mobile/src/components/ExchangeRateTile/renderInput.tsx +3 -3
- package/mobile/src/components/Footer/Contacts.tsx +1 -1
- package/mobile/src/components/Footer/Footer.tsx +2 -2
- package/mobile/src/components/Footer/Footer.ui.json +11 -0
- package/mobile/src/components/Footer/FooterLink.ts +1 -1
- package/mobile/src/components/Footer/HorizontalNavigation.tsx +3 -3
- package/mobile/src/components/Footer/MediaButton.tsx +1 -1
- package/mobile/src/components/Footer/Sitemap.tsx +2 -2
- package/mobile/src/components/Footer/SocialMedia.tsx +1 -1
- package/mobile/src/components/Gallery/Gallery.ui.json +1 -0
- package/mobile/src/components/Gallery/GalleryInner.tsx +1 -1
- package/mobile/src/components/Gallery/GalleryProps.ts +1 -1
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +6 -5
- package/mobile/src/components/GracePeriod/GracePeriod.ui.json +15 -0
- package/mobile/src/components/GracePeriod/GracePeriodContent.ts +1 -1
- package/mobile/src/components/Header/DropdownMenu.tsx +1 -1
- package/mobile/src/components/Header/Header.fallback.ts +1 -1
- package/mobile/src/components/Header/Header.tsx +2 -2
- package/mobile/src/components/Header/Header.ui.json +11 -0
- package/mobile/src/components/Headline/Headline.tsx +1 -1
- package/mobile/src/components/Headline/Headline.ui.json +1 -0
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +1 -1
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.ui.json +15 -0
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +1 -1
- package/mobile/src/components/LikeControl/LikeControl.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +2 -2
- package/mobile/src/components/LinkDocs/LinkDocs.ui.json +1 -0
- package/mobile/src/components/LinkList/LinkList.tsx +1 -1
- package/mobile/src/components/LinkList/LinkList.ui.json +1 -0
- package/mobile/src/components/MiniGallery/MiniGallery.tsx +1 -1
- package/mobile/src/components/MiniGallery/MiniGallery.ui.json +1 -0
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +2 -2
- package/mobile/src/components/MobileAppTile/MobileAppTile.ui.json +7 -0
- package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +1 -1
- package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.ui.json +11 -0
- package/mobile/src/components/OtherProducts/OtherProducts.tsx +1 -1
- package/mobile/src/components/OtherProducts/OtherProducts.ui.json +76 -0
- package/mobile/src/components/OtherProducts/OtherProductsContent.ts +2 -2
- package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +1 -1
- package/mobile/src/components/PictureText/PictureText.example.json +2 -0
- package/mobile/src/components/PictureText/PictureText.tsx +1 -1
- package/mobile/src/components/PictureText/PictureText.ui.json +1 -0
- package/mobile/src/components/Placeholder/Placeholder.tsx +3 -3
- package/mobile/src/components/Placeholder/Placeholder.ui.json +1 -0
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +3 -3
- package/mobile/src/components/ProductBlock/ProductBlock.ui.json +12 -0
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +3 -3
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +2 -2
- package/mobile/src/components/ProductGallery/ProductGallery.ui.json +30 -0
- package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +3 -3
- package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +0 -1
- package/mobile/src/components/ProductTile/ProductTile.tsx +2 -2
- package/mobile/src/components/ProductTile/ProductTile.ui.json +1 -0
- package/mobile/src/components/PromoTile/PromoTile.tsx +3 -3
- package/mobile/src/components/PromoTile/PromoTile.ui.json +1 -0
- package/mobile/src/components/Recommendation/Recommendation.tsx +1 -1
- package/mobile/src/components/Recommendation/Recommendation.ui.json +11 -0
- package/mobile/src/components/Recommendation/RecommendationCard.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/RegionsAndBranches.tsx +4 -4
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.ui.json +1 -0
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +2 -2
- package/mobile/src/components/SafeDepositRental/WrapperSelect.tsx +15 -20
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +14 -3
- package/mobile/src/components/StepsBlock/StepsBlock.ui.json +11 -0
- package/mobile/src/components/Tabs/Tabs.tsx +26 -4
- package/mobile/src/components/Tabs/Tabs.ui.json +1 -0
- package/mobile/src/components/Tabs/TabsContent.ts +2 -0
- package/mobile/src/components/Tabs/renderLinkTab.tsx +28 -12
- package/mobile/src/components/Tabs/renderTab.tsx +14 -3
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTable.ui.json +33 -0
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableHorizontal.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableRowContainer.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableVertical.tsx +1 -1
- package/mobile/src/components/TextBlock/TextBlock.tsx +1 -1
- package/mobile/src/components/TextBlock/TextBlock.ui.json +1 -0
- package/mobile/src/components/Tile/Tile.tsx +1 -1
- package/mobile/src/components/Tile/Tile.ui.json +1 -0
- package/mobile/src/content-page-repository/ContentPageRepository.ts +1 -1
- package/mobile/src/content-page-repository/transformContentPage.ts +1 -1
- package/mobile/src/icons/AirPlaneIcon.svg +16 -1
- package/mobile/src/icons/AppleIcon.svg +1 -1
- package/mobile/src/icons/ArrowDownIcon.svg +1 -1
- package/mobile/src/icons/ArrowLeftIcon.svg +1 -1
- package/mobile/src/icons/ArrowUpIcon.svg +1 -1
- package/mobile/src/icons/AtmIcon.svg +1 -1
- package/mobile/src/icons/BankIcon.svg +1 -1
- package/mobile/src/icons/BuildingIcon.svg +1 -1
- package/mobile/src/icons/BurgerIcon.svg +1 -1
- package/mobile/src/icons/Calendar2Icon.svg +1 -1
- package/mobile/src/icons/CalendarCircleIcon.svg +1 -1
- package/mobile/src/icons/CalendarIcon.svg +1 -1
- package/mobile/src/icons/CalendarTickIcon.svg +1 -1
- package/mobile/src/icons/Car2Icon.svg +1 -1
- package/mobile/src/icons/CardIcon.svg +1 -1
- package/mobile/src/icons/CardPosIcon.svg +1 -1
- package/mobile/src/icons/CardTickIcon.svg +6 -6
- package/mobile/src/icons/ChartSquareIcon.svg +1 -1
- package/mobile/src/icons/CloseIcon.svg +1 -1
- package/mobile/src/icons/DiscountShapeIcon.svg +1 -1
- package/mobile/src/icons/DocDownloadIcon.svg +7 -7
- package/mobile/src/icons/DocIcon.svg +1 -1
- package/mobile/src/icons/DocIconMonoColor.svg +1 -1
- package/mobile/src/icons/DocumentTextIcon.svg +1 -1
- package/mobile/src/icons/DoneSimpleIcon.svg +2 -2
- package/mobile/src/icons/EmptyWalletChangeIcon.svg +1 -1
- package/mobile/src/icons/EmptyWalletIcon.svg +1 -1
- package/mobile/src/icons/GeolocationIcon.svg +1 -1
- package/mobile/src/icons/GlobalIcon.svg +1 -1
- package/mobile/src/icons/GpsIcon.svg +1 -1
- package/mobile/src/icons/GridIcon.svg +1 -1
- package/mobile/src/icons/IconName.ts +7 -2
- package/mobile/src/icons/InterestIcon.svg +1 -1
- package/mobile/src/icons/LogoIcon.svg +1 -1
- package/mobile/src/icons/LoupeIcon.svg +1 -1
- package/mobile/src/icons/MinusIcon.svg +1 -1
- package/mobile/src/icons/MoneyIcon.svg +1 -1
- package/mobile/src/icons/MoneysIcon.svg +1 -1
- package/mobile/src/icons/MonitorMobileIcon.svg +1 -1
- package/mobile/src/icons/OkIcon.svg +1 -1
- package/mobile/src/icons/PercentageRoundIcon.svg +1 -1
- package/mobile/src/icons/PercentageSquareIcon.svg +1 -1
- package/mobile/src/icons/PersonalCardIcon.svg +1 -1
- package/mobile/src/icons/PlayMarketIcon.svg +1 -1
- package/mobile/src/icons/PlusIcon.svg +1 -1
- package/mobile/src/icons/Profile2UserIcon.svg +1 -1
- package/mobile/src/icons/ProfileIcon.svg +1 -1
- package/mobile/src/icons/RoundRubleIcon.svg +1 -1
- package/mobile/src/icons/SafeIcon.svg +1 -1
- package/mobile/src/icons/ShieldTickIcon.svg +1 -1
- package/mobile/src/icons/SmallClockIcon.svg +1 -1
- package/mobile/src/icons/StrongBoxIcon.svg +1 -1
- package/mobile/src/icons/TelegramIcon.svg +1 -1
- package/mobile/src/icons/UserSquareIcon.svg +1 -1
- package/mobile/src/icons/UserTickIcon.svg +1 -1
- package/mobile/src/icons/VKIcon.svg +1 -1
- package/mobile/src/icons/WalletAdd2Icon.svg +1 -1
- package/mobile/src/icons/WalletAddIcon.svg +1 -1
- package/mobile/src/icons/WalletIcon.svg +1 -1
- package/mobile/src/icons/WalletWithMoneyIcon.svg +1 -1
- package/mobile/src/model/BlockDecorator.ts +17 -0
- package/mobile/src/model/BlocksRegistry.ts +11 -0
- package/mobile/src/{types.ts → model/ContentPageDef.ts} +5 -23
- package/mobile/src/{types → model}/Fallback.ts +1 -0
- package/mobile/src/react/IntersectionObserverTag.tsx +10 -3
- package/mobile/src/services/sitemap/useSitemap.ts +1 -1
- package/mobile/src/ui-kit/BenefitItem/BenefitItemProps.ts +1 -0
- package/mobile/src/ui-kit/BlockWrapper.tsx +46 -19
- package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +2 -2
- package/mobile/src/ui-kit/Button/Button.tsx +4 -1
- package/mobile/src/ui-kit/Button/ButtonSection.tsx +1 -1
- package/mobile/src/ui-kit/Button/buttonClassNameConstants.ts +2 -1
- package/mobile/src/ui-kit/CurrencyInput/CurrencyInput.tsx +21 -36
- package/mobile/src/ui-kit/CurrencyInput/CurrencyInputProps.ts +3 -7
- package/mobile/src/ui-kit/CurrencyInput/adjustValue .ts +17 -0
- package/mobile/src/ui-kit/Foldable/Foldable.tsx +1 -1
- package/mobile/src/ui-kit/Icon/Icon.tsx +29 -12
- package/mobile/src/ui-kit/InnerTable/InnerTable.tsx +1 -1
- package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +1 -1
- package/mobile/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +1 -1
- package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
- package/mobile/src/ui-kit/Input/Input.tsx +37 -16
- package/mobile/src/ui-kit/Input/InputProps.ts +6 -3
- package/mobile/src/ui-kit/Logo/Logo.tsx +9 -5
- package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +1 -1
- package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +1 -1
- package/mobile/src/ui-kit/Select/Select.tsx +86 -20
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +1 -1
- package/mobile/src/utils/changeHashOnObserve.ts +30 -10
- package/package.json +6 -3
- package/src/EventBus/EventMap.ts +3 -1
- package/src/api/DaDataAPI.ts +13 -1
- package/src/components/Accordion/Accordion.mobile.tsx +1 -1
- package/src/components/Accordion/Accordion.tsx +1 -1
- package/src/components/Accordion/Accordion.ui.json +79 -0
- package/src/components/Accordion/AccordionItem.mobile.tsx +1 -1
- package/src/components/Accordion/AccordionItem.tsx +1 -1
- package/src/components/BaseTile/BaseTile.tsx +1 -1
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/src/components/BenefitsBlock/BenefitsBlock.ui.json +16 -0
- package/src/components/Bonus/Bonus.example.json +5 -2
- package/src/components/Bonus/Bonus.fixture.tsx +37 -6
- package/src/components/Bonus/Bonus.tsx +45 -17
- package/src/components/Bonus/Bonus.ui.json +16 -0
- package/src/components/Bonus/BonusContent.ts +33 -2
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.ui.json +11 -0
- package/src/components/Calculator/BonusCalculatorForm.tsx +2 -2
- package/src/components/Calculator/Calculator.example.json +2 -1
- package/src/components/Calculator/Calculator.tsx +1 -1
- package/src/components/Calculator/Calculator.ui.json +31 -0
- package/src/components/Calculator/CreditCalculatorForm.tsx +2 -2
- package/src/components/Calculator/DepositCalculatorForm.tsx +3 -3
- package/src/components/Calculator/renderCalculatorBlock.tsx +2 -2
- package/src/components/CardTransfer/CardTransfer.example.json +7 -2
- package/src/components/CardTransfer/CardTransfer.fixture.tsx +9 -1
- package/src/components/CardTransfer/CardTransfer.tsx +22 -23
- package/src/components/CardTransfer/CardTransfer.ui.json +1 -0
- package/src/components/CardTransfer/CardTransferContent.ts +2 -2
- package/src/components/Catalog/Catalog.tsx +1 -1
- package/src/components/Catalog/Catalog.ui.json +1 -0
- package/src/components/Catalog/CatalogCard.tsx +2 -2
- package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +1 -1
- package/src/components/ComparisonTable/ComparisonTable.tsx +1 -1
- package/src/components/ComparisonTable/ComparisonTable.ui.json +1 -0
- package/src/components/ComparisonTable/TableColumn.tsx +19 -13
- package/src/components/ContentPage/ContentPage.fixture.mobile.tsx +1 -1
- package/src/components/ContentPage/ContentPage.fixture.tsx +3 -2
- package/src/components/ContentPage/ContentPage.page.json +15 -1
- package/src/components/ContentPage/ContentPage.tsx +53 -101
- package/src/components/ContentPage/ContentPageHead.tsx +1 -1
- package/src/components/ContentPage/computeAPIFallback.ts +2 -2
- package/src/components/ContentPage/filterBlocks.mobile.ts +2 -2
- package/src/components/ContentPage/filterBlocks.ts +2 -2
- package/src/components/ContentPage/isBlockInRegistry.ts +1 -1
- package/src/components/ContentPage/normalizeBlock.mobile.ts +1 -1
- package/src/components/ContentPage/normalizeBlock.ts +1 -1
- package/src/components/ContentPage/normalizePage.ts +2 -2
- package/src/components/ContentPage/renderBlock.tsx +62 -0
- package/src/components/ErrorBlock/ErrorBlock.tsx +3 -3
- package/src/components/ErrorBlock/ErrorBlock.ui.json +12 -0
- package/src/components/ExchangeRateTile/CurrentLocation.tsx +1 -1
- package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +4 -3
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +6 -3
- package/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +1 -0
- package/src/components/ExchangeRateTile/renderInput.tsx +3 -3
- package/src/components/Footer/Contacts.tsx +1 -1
- package/src/components/Footer/Footer.mobile.tsx +2 -2
- package/src/components/Footer/Footer.tsx +2 -2
- package/src/components/Footer/Footer.ui.json +11 -0
- package/src/components/Footer/FooterLink.ts +1 -1
- package/src/components/Footer/HorizontalNavigation.mobile.tsx +3 -3
- package/src/components/Footer/HorizontalNavigation.tsx +3 -3
- package/src/components/Footer/MediaButton.tsx +1 -1
- package/src/components/Footer/Sitemap.tsx +2 -2
- package/src/components/Footer/SocialMedia.mobile.tsx +1 -1
- package/src/components/Footer/SocialMedia.tsx +1 -1
- package/src/components/Gallery/Gallery.ui.json +1 -0
- package/src/components/Gallery/GalleryInner.tsx +1 -1
- package/src/components/Gallery/GalleryProps.ts +1 -1
- package/src/components/GracePeriod/GracePeriod.fixture.tsx +5 -5
- package/src/components/GracePeriod/GracePeriod.tsx +6 -5
- package/src/components/GracePeriod/GracePeriod.ui.json +15 -0
- package/src/components/GracePeriod/GracePeriodContent.ts +1 -1
- package/src/components/Header/DropdownMenu.tsx +1 -1
- package/src/components/Header/Header.fallback.ts +1 -1
- package/src/components/Header/Header.mobile.tsx +2 -2
- package/src/components/Header/Header.tsx +2 -2
- package/src/components/Header/Header.ui.json +11 -0
- package/src/components/Headline/Headline.mobile.tsx +1 -1
- package/src/components/Headline/Headline.tsx +2 -2
- package/src/components/Headline/Headline.ui.json +1 -0
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +1 -1
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.ui.json +15 -0
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +1 -1
- package/src/components/LikeControl/LikeControl.tsx +1 -1
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +2 -2
- package/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/src/components/LinkDocs/LinkDocs.ui.json +1 -0
- package/src/components/LinkList/LinkList.tsx +1 -1
- package/src/components/LinkList/LinkList.ui.json +1 -0
- package/src/components/MiniGallery/MiniGallery.tsx +1 -1
- package/src/components/MiniGallery/MiniGallery.ui.json +1 -0
- package/src/components/MobileAppTile/MobileAppTile.mobile.tsx +2 -2
- package/src/components/MobileAppTile/MobileAppTile.tsx +5 -5
- package/src/components/MobileAppTile/MobileAppTile.ui.json +7 -0
- package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +1 -1
- package/src/components/OfficeServicesBlock/OfficeServicesBlock.ui.json +11 -0
- package/src/components/OtherProducts/OtherProducts.tsx +1 -1
- package/src/components/OtherProducts/OtherProducts.ui.json +76 -0
- package/src/components/OtherProducts/OtherProductsContent.ts +2 -2
- package/src/components/OtherProducts/OtherProductsItem.tsx +1 -1
- package/src/components/PictureText/PictureText.example.json +2 -0
- package/src/components/PictureText/PictureText.tsx +1 -1
- package/src/components/PictureText/PictureText.ui.json +1 -0
- package/src/components/Placeholder/Placeholder.tsx +3 -3
- package/src/components/Placeholder/Placeholder.ui.json +1 -0
- package/src/components/ProductBlock/ProductBlock.mobile.tsx +3 -3
- package/src/components/ProductBlock/ProductBlock.tsx +3 -3
- package/src/components/ProductBlock/ProductBlock.ui.json +12 -0
- package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +3 -3
- package/src/components/ProductBlock/ProductBlockInner.tsx +2 -2
- package/src/components/ProductGallery/ProductGallery.mobile.tsx +2 -2
- package/src/components/ProductGallery/ProductGallery.tsx +14 -14
- package/src/components/ProductGallery/ProductGallery.ui.json +30 -0
- package/src/components/ProductGallery/ProductGalleryBlock.tsx +3 -3
- package/src/components/ProductGallery/ProductGalleryContent.ts +0 -1
- package/src/components/ProductTile/ProductTile.tsx +2 -2
- package/src/components/ProductTile/ProductTile.ui.json +1 -0
- package/src/components/PromoTile/PromoTile.tsx +3 -3
- package/src/components/PromoTile/PromoTile.ui.json +1 -0
- package/src/components/Recommendation/Recommendation.tsx +1 -1
- package/src/components/Recommendation/Recommendation.ui.json +11 -0
- package/src/components/Recommendation/RecommendationCard.tsx +1 -1
- package/src/components/SafeDepositRental/RegionsAndBranches.tsx +4 -4
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
- package/src/components/SafeDepositRental/SafeDepositRental.ui.json +1 -0
- package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +2 -2
- package/src/components/SafeDepositRental/WrapperSelect.tsx +15 -20
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +14 -3
- package/src/components/StepsBlock/StepsBlock.tsx +2 -2
- package/src/components/StepsBlock/StepsBlock.ui.json +11 -0
- package/src/components/Tabs/Tabs.tsx +26 -4
- package/src/components/Tabs/Tabs.ui.json +1 -0
- package/src/components/Tabs/TabsContent.ts +2 -0
- package/src/components/Tabs/renderLinkTab.tsx +28 -12
- package/src/components/Tabs/renderTab.tsx +14 -3
- package/src/components/TariffsTable/TariffsTable.mobile.tsx +1 -1
- package/src/components/TariffsTable/TariffsTable.tsx +1 -1
- package/src/components/TariffsTable/TariffsTable.ui.json +33 -0
- package/src/components/TariffsTable/TariffsTableCell.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableHorizontal.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableRowContainer.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableVertical.tsx +1 -1
- package/src/components/TextBlock/TextBlock.mobile.tsx +1 -1
- package/src/components/TextBlock/TextBlock.tsx +1 -1
- package/src/components/TextBlock/TextBlock.ui.json +1 -0
- package/src/components/Tile/Tile.tsx +1 -1
- package/src/components/Tile/Tile.ui.json +1 -0
- package/src/content-page-repository/ContentPageRepository.ts +1 -1
- package/src/content-page-repository/transformContentPage.ts +1 -1
- package/src/icons/AirPlaneIcon.svg +16 -1
- package/src/icons/AppleIcon.svg +1 -1
- package/src/icons/ArrowDownIcon.svg +1 -1
- package/src/icons/ArrowLeftIcon.svg +1 -1
- package/src/icons/ArrowUpIcon.svg +1 -1
- package/src/icons/AtmIcon.svg +1 -1
- package/src/icons/BankIcon.svg +1 -1
- package/src/icons/BuildingIcon.svg +1 -1
- package/src/icons/BurgerIcon.svg +1 -1
- package/src/icons/Calendar2Icon.svg +1 -1
- package/src/icons/CalendarCircleIcon.svg +1 -1
- package/src/icons/CalendarIcon.svg +1 -1
- package/src/icons/CalendarTickIcon.svg +1 -1
- package/src/icons/Car2Icon.svg +1 -1
- package/src/icons/CardIcon.svg +1 -1
- package/src/icons/CardPosIcon.svg +1 -1
- package/src/icons/CardTickIcon.svg +6 -6
- package/src/icons/ChartSquareIcon.svg +1 -1
- package/src/icons/CloseIcon.svg +1 -1
- package/src/icons/DiscountShapeIcon.svg +1 -1
- package/src/icons/DocDownloadIcon.svg +7 -7
- package/src/icons/DocIcon.svg +1 -1
- package/src/icons/DocIconMonoColor.svg +1 -1
- package/src/icons/DocumentTextIcon.svg +1 -1
- package/src/icons/DoneSimpleIcon.svg +2 -2
- package/src/icons/EmptyWalletChangeIcon.svg +1 -1
- package/src/icons/EmptyWalletIcon.svg +1 -1
- package/src/icons/GeolocationIcon.svg +1 -1
- package/src/icons/GlobalIcon.svg +1 -1
- package/src/icons/GpsIcon.svg +1 -1
- package/src/icons/GridIcon.svg +1 -1
- package/src/icons/IconName.ts +96 -2
- package/src/icons/InterestIcon.svg +1 -1
- package/src/icons/LogoIcon.svg +1 -1
- package/src/icons/LoupeIcon.svg +1 -1
- package/src/icons/MinusIcon.svg +1 -1
- package/src/icons/MoneyIcon.svg +1 -1
- package/src/icons/MoneysIcon.svg +1 -1
- package/src/icons/MonitorMobileIcon.svg +1 -1
- package/src/icons/OkIcon.svg +1 -1
- package/src/icons/PercentageRoundIcon.svg +1 -1
- package/src/icons/PercentageSquareIcon.svg +1 -1
- package/src/icons/PersonalCardIcon.svg +1 -1
- package/src/icons/PlayMarketIcon.svg +1 -1
- package/src/icons/PlusIcon.svg +1 -1
- package/src/icons/Profile2UserIcon.svg +1 -1
- package/src/icons/ProfileIcon.svg +1 -1
- package/src/icons/RoundRubleIcon.svg +1 -1
- package/src/icons/SafeIcon.svg +1 -1
- package/src/icons/ShieldTickIcon.svg +1 -1
- package/src/icons/SmallClockIcon.svg +1 -1
- package/src/icons/StrongBoxIcon.svg +1 -1
- package/src/icons/TelegramIcon.svg +1 -1
- package/src/icons/UserSquareIcon.svg +1 -1
- package/src/icons/UserTickIcon.svg +1 -1
- package/src/icons/VKIcon.svg +1 -1
- package/src/icons/WalletAdd2Icon.svg +1 -1
- package/src/icons/WalletAddIcon.svg +1 -1
- package/src/icons/WalletIcon.svg +1 -1
- package/src/icons/WalletWithMoneyIcon.svg +1 -1
- package/src/model/BlockDecorator.ts +17 -0
- package/src/model/BlocksRegistry.ts +11 -0
- package/src/{types.ts → model/ContentPageDef.ts} +5 -23
- package/src/{types → model}/Fallback.ts +1 -0
- package/src/react/IntersectionObserverTag.tsx +10 -3
- package/src/services/sitemap/useSitemap.ts +1 -1
- package/src/ui-kit/BenefitItem/BenefitItemProps.ts +1 -0
- package/src/ui-kit/BlockWrapper.tsx +46 -19
- package/src/ui-kit/BlocksList/renderBlocksList.tsx +2 -2
- package/src/ui-kit/Button/Button.mobile.tsx +4 -1
- package/src/ui-kit/Button/ButtonSection.tsx +1 -1
- package/src/ui-kit/Button/buttonClassNameConstants.ts +2 -1
- package/src/ui-kit/CurrencyInput/CurrencyInput.tsx +21 -36
- package/src/ui-kit/CurrencyInput/CurrencyInputProps.ts +3 -7
- package/src/ui-kit/CurrencyInput/adjustValue .ts +17 -0
- package/src/ui-kit/Foldable/Foldable.tsx +1 -1
- package/src/ui-kit/Icon/Icon.fixture.tsx +5 -5
- package/src/ui-kit/Icon/Icon.tsx +29 -12
- package/src/ui-kit/InnerTable/InnerTable.tsx +1 -1
- package/src/ui-kit/InnerTable/InnerTableBody.tsx +1 -1
- package/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +1 -1
- package/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
- package/src/ui-kit/Input/Input.tsx +37 -16
- package/src/ui-kit/Input/InputProps.ts +6 -3
- package/src/ui-kit/Logo/Logo.mobile.tsx +9 -5
- package/src/ui-kit/Logo/Logo.tsx +3 -3
- package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +1 -1
- package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +1 -1
- package/src/ui-kit/SearchBar/SearchBar.tsx +1 -1
- package/src/ui-kit/{SelectCustom/SelectCustom.fixture.tsx → Select/Select.fixture.tsx} +2 -2
- package/src/ui-kit/Select/Select.tsx +86 -20
- package/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +1 -1
- package/src/utils/changeHashOnObserve.ts +30 -10
- package/tailwind.config.cjs +0 -1
- package/bin/migration-scripts/0.4.5.spec.ts +0 -352
- package/dist/components/BlockContent.d.ts +0 -32
- package/dist/components/BlockContent.js.map +0 -1
- package/dist/components/ExchangeRateTile/renderButton.d.ts +0 -3
- package/dist/components/ExchangeRateTile/renderButton.js +0 -9
- package/dist/components/ExchangeRateTile/renderButton.js.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/ui-kit/Select/SelectOption.d.ts +0 -7
- package/dist/ui-kit/Select/SelectOption.js +0 -8
- package/dist/ui-kit/Select/SelectOption.js.map +0 -1
- package/dist/ui-kit/SelectCustom/SelectCustom.d.ts +0 -13
- package/dist/ui-kit/SelectCustom/SelectCustom.js +0 -30
- package/dist/ui-kit/SelectCustom/SelectCustom.js.map +0 -1
- package/dist/utils/isSSR.d.ts +0 -1
- package/dist/utils/isSSR.js +0 -5
- package/dist/utils/isSSR.js.map +0 -1
- package/lib/components/BlockContent.d.ts +0 -32
- package/lib/components/BlockContent.js +0 -2
- package/lib/components/BlockContent.js.map +0 -1
- package/lib/components/ExchangeRateTile/renderButton.d.ts +0 -3
- package/lib/components/ExchangeRateTile/renderButton.js +0 -6
- package/lib/components/ExchangeRateTile/renderButton.js.map +0 -1
- package/lib/types.js +0 -2
- package/lib/types.js.map +0 -1
- package/lib/ui-kit/Select/SelectOption.d.ts +0 -7
- package/lib/ui-kit/Select/SelectOption.js +0 -6
- package/lib/ui-kit/Select/SelectOption.js.map +0 -1
- package/lib/ui-kit/SelectCustom/SelectCustom.d.ts +0 -13
- package/lib/ui-kit/SelectCustom/SelectCustom.js +0 -28
- package/lib/ui-kit/SelectCustom/SelectCustom.js.map +0 -1
- package/lib/utils/isSSR.d.ts +0 -1
- package/lib/utils/isSSR.js +0 -2
- package/lib/utils/isSSR.js.map +0 -1
- package/mobile/dist/components/BlockContent.d.ts +0 -32
- package/mobile/dist/components/BlockContent.js.map +0 -1
- package/mobile/dist/components/ExchangeRateTile/renderButton.d.ts +0 -3
- package/mobile/dist/components/ExchangeRateTile/renderButton.js +0 -9
- package/mobile/dist/components/ExchangeRateTile/renderButton.js.map +0 -1
- package/mobile/dist/types.js +0 -2
- package/mobile/dist/types.js.map +0 -1
- package/mobile/dist/ui-kit/Select/SelectOption.d.ts +0 -7
- package/mobile/dist/ui-kit/Select/SelectOption.js +0 -8
- package/mobile/dist/ui-kit/Select/SelectOption.js.map +0 -1
- package/mobile/dist/ui-kit/SelectCustom/SelectCustom.d.ts +0 -13
- package/mobile/dist/ui-kit/SelectCustom/SelectCustom.js +0 -30
- package/mobile/dist/ui-kit/SelectCustom/SelectCustom.js.map +0 -1
- package/mobile/dist/utils/isSSR.d.ts +0 -1
- package/mobile/dist/utils/isSSR.js +0 -5
- package/mobile/dist/utils/isSSR.js.map +0 -1
- package/mobile/lib/components/BlockContent.d.ts +0 -32
- package/mobile/lib/components/BlockContent.js +0 -2
- package/mobile/lib/components/BlockContent.js.map +0 -1
- package/mobile/lib/components/ExchangeRateTile/renderButton.d.ts +0 -3
- package/mobile/lib/components/ExchangeRateTile/renderButton.js +0 -6
- package/mobile/lib/components/ExchangeRateTile/renderButton.js.map +0 -1
- package/mobile/lib/types.js +0 -2
- package/mobile/lib/types.js.map +0 -1
- package/mobile/lib/ui-kit/Select/SelectOption.d.ts +0 -7
- package/mobile/lib/ui-kit/Select/SelectOption.js +0 -6
- package/mobile/lib/ui-kit/Select/SelectOption.js.map +0 -1
- package/mobile/lib/ui-kit/SelectCustom/SelectCustom.d.ts +0 -13
- package/mobile/lib/ui-kit/SelectCustom/SelectCustom.js +0 -28
- package/mobile/lib/ui-kit/SelectCustom/SelectCustom.js.map +0 -1
- package/mobile/lib/utils/isSSR.d.ts +0 -1
- package/mobile/lib/utils/isSSR.js +0 -2
- package/mobile/lib/utils/isSSR.js.map +0 -1
- package/mobile/src/components/BlockContent.ts +0 -61
- package/mobile/src/components/Blocks.spec.tsx +0 -66
- package/mobile/src/components/ContentPage/computeAPIFallback.spec.ts +0 -63
- package/mobile/src/components/ContentPage/normalizeBlock.spec.ts +0 -50
- package/mobile/src/components/ExchangeRateTile/renderButton.tsx +0 -10
- package/mobile/src/components/__snapshots__/Blocks.spec.tsx.snap +0 -1203
- package/mobile/src/content-page-repository/mapJSON.spec.ts +0 -28
- package/mobile/src/services/sitemap/checkIsHrefSameOrigin.spec.ts +0 -20
- package/mobile/src/services/sitemap/isTopItemActive.spec.ts +0 -60
- package/mobile/src/services/sitemap/mergeTopItems.spec.ts +0 -20
- package/mobile/src/ui-kit/Select/SelectOption.tsx +0 -18
- package/mobile/src/ui-kit/SelectCustom/SelectCustom.tsx +0 -91
- package/mobile/src/ui-kit/SwipeListControl/utils/getIndexParts.spec.ts +0 -19
- package/mobile/src/ui-kit/SwipeListControl/utils/getScrollPoints.spec.ts +0 -42
- package/mobile/src/utils/adjustHref.spec.ts +0 -25
- package/mobile/src/utils/isSSR.ts +0 -2
- package/mobile/src/utils/maxBy.spec.ts +0 -11
- package/mobile/src/utils/url.spec.ts +0 -17
- package/src/components/BlockContent.ts +0 -61
- package/src/components/Blocks.spec.tsx +0 -66
- package/src/components/ContentPage/computeAPIFallback.spec.ts +0 -63
- package/src/components/ContentPage/normalizeBlock.mobile.spec.ts +0 -71
- package/src/components/ContentPage/normalizeBlock.spec.ts +0 -50
- package/src/components/ExchangeRateTile/renderButton.tsx +0 -10
- package/src/components/__snapshots__/Blocks.spec.tsx.snap +0 -1203
- package/src/content-page-repository/mapJSON.spec.ts +0 -28
- package/src/services/sitemap/checkIsHrefSameOrigin.spec.ts +0 -20
- package/src/services/sitemap/isTopItemActive.spec.ts +0 -60
- package/src/services/sitemap/mergeTopItems.spec.ts +0 -20
- package/src/ui-kit/Select/SelectOption.tsx +0 -18
- package/src/ui-kit/SelectCustom/SelectCustom.tsx +0 -91
- package/src/ui-kit/SwipeListControl/utils/getIndexParts.spec.ts +0 -19
- package/src/ui-kit/SwipeListControl/utils/getScrollPoints.spec.ts +0 -42
- package/src/utils/adjustHref.spec.ts +0 -25
- package/src/utils/isSSR.ts +0 -2
- package/src/utils/maxBy.spec.ts +0 -11
- package/src/utils/url.spec.ts +0 -17
package/bundle/bundle.umd.js
CHANGED
|
@@ -255,34 +255,65 @@
|
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
-
const changeHashOnObserve = (entries) => {
|
|
259
|
-
if (!entries
|
|
258
|
+
const changeHashOnObserve = ({ anchor, anchorClickRef }) => (entries) => {
|
|
259
|
+
if (!entries?.length) {
|
|
260
260
|
return;
|
|
261
261
|
}
|
|
262
262
|
const [entry] = entries;
|
|
263
|
-
if (entry.isIntersecting)
|
|
263
|
+
if (!entry.isIntersecting || entry.boundingClientRect.top > 150) {
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
if (anchorClickRef?.current?.isScrolling && anchorClickRef.current.label === `#${anchor}`) {
|
|
267
|
+
EventBus.inst.fire('anchorClick', { isScrolling: false, label: undefined });
|
|
268
|
+
EventBus.inst.fire('tab', { type: 'link', label: anchor });
|
|
269
|
+
}
|
|
270
|
+
else if (!anchorClickRef?.current?.isScrolling) {
|
|
271
|
+
EventBus.inst.fire('tab', { type: 'link', label: anchor });
|
|
272
|
+
}
|
|
264
273
|
};
|
|
265
274
|
|
|
275
|
+
const THRESHOLD_ACCURACY = 100; // Decimals number (100 is for two decimals number, 0.**)
|
|
276
|
+
const THRESHOLD_ARRAY_LENGTH = 18;
|
|
277
|
+
const THRESHOLD_ARRAY_START_VALUE = (THRESHOLD_ACCURACY - THRESHOLD_ARRAY_LENGTH) / THRESHOLD_ACCURACY;
|
|
266
278
|
const BlockWrapper = JSX(({ anchor, className, context, children, tag = 'section', labels }) => {
|
|
267
279
|
const Tag = tag;
|
|
268
280
|
const { IntersectionObserverTag } = context;
|
|
269
281
|
const [shouldRenderBlock, setShouldRenderBlock] = useState(true);
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
282
|
+
const anchorClickRef = useRef({});
|
|
283
|
+
const observerCallback = useMemo(() => changeHashOnObserve({ anchor, anchorClickRef }), [anchor, anchorClickRef]);
|
|
284
|
+
useEffect(() => {
|
|
285
|
+
const anchorClickCleanup = EventBus.inst.subscribe('anchorClick', (e) => {
|
|
286
|
+
anchorClickRef.current = e;
|
|
287
|
+
});
|
|
288
|
+
const tabCleanup = EventBus.inst.subscribe('tab', (event) => {
|
|
289
|
+
if (event.type === 'group') {
|
|
290
|
+
setShouldRenderBlock(!labels?.length || !event.label || labels.includes(event.label));
|
|
291
|
+
}
|
|
292
|
+
else {
|
|
293
|
+
changeHash(event.label);
|
|
294
|
+
setShouldRenderBlock(true);
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
return () => {
|
|
298
|
+
anchorClickCleanup();
|
|
299
|
+
tabCleanup();
|
|
300
|
+
};
|
|
301
|
+
}, [anchorClickRef]);
|
|
279
302
|
if (!shouldRenderBlock) {
|
|
280
303
|
return null;
|
|
281
304
|
}
|
|
282
|
-
return anchor ? (jsx(IntersectionObserverTag, { tag: tag, className: className, observerCallback:
|
|
305
|
+
return anchor ? (jsx(IntersectionObserverTag, { tag: tag, className: className, observerCallback: observerCallback, observerOptions: {
|
|
306
|
+
threshold: new Array(THRESHOLD_ARRAY_LENGTH).fill(0).map(getIntersectionThreshold),
|
|
307
|
+
}, anchor: anchor, children: children })) : (jsx(Tag, { className: className, children: children }));
|
|
283
308
|
});
|
|
284
|
-
function
|
|
285
|
-
|
|
309
|
+
function getIntersectionThreshold(_, i) {
|
|
310
|
+
const value = (i + 1) / THRESHOLD_ACCURACY + THRESHOLD_ARRAY_START_VALUE;
|
|
311
|
+
return Math.round(value * THRESHOLD_ACCURACY) / THRESHOLD_ACCURACY;
|
|
312
|
+
}
|
|
313
|
+
function changeHash(label) {
|
|
314
|
+
if (label) {
|
|
315
|
+
globalThis.document.location.hash = label;
|
|
316
|
+
}
|
|
286
317
|
}
|
|
287
318
|
|
|
288
319
|
const HEADING_STYLE_MAP = {
|
|
@@ -301,6 +332,9 @@
|
|
|
301
332
|
|
|
302
333
|
// Generated. Do not touch
|
|
303
334
|
/* eslint-disable max-len, max-lines */
|
|
335
|
+
const IconInverseMap = {
|
|
336
|
+
ActualBalanceIcon: false, AirPlaneIcon: false, AppleIcon: true, ArrowDownIcon: true, ArrowLeftIcon: true, ArrowUpIcon: true, AtmIcon: true, BankIcon: true, BuildingIcon: true, BurgerIcon: true, Calendar2Icon: true, CalendarCircleIcon: true, CalendarIcon: true, CalendarTickIcon: true, Car2Icon: true, CardIcon: true, CardPosIcon: true, CardTickIcon: true, CardWithGemIcon: false, CarIcon: false, ChartSquareIcon: true, CinemaIcon: false, ClockIcon: false, CloseIcon: true, ComfortableCompIcon: false, CreditCardsIcon: false, DiscountShapeIcon: true, DocDownloadIcon: true, DocIcon: true, DocIconMonoColor: true, DocsIcon: false, DocumentTextIcon: true, DollarIcon: false, DoneIcon: false, DoneSimpleIcon: true, EarthIcon: false, EmptyWalletChangeIcon: true, EmptyWalletIcon: true, EuroIcon: false, GeolocationIcon: true, GlassIcon: false, GlobalIcon: true, GpsIcon: true, GridIcon: true, InterestGrowthIcon: false, InterestIcon: true, JCBIcon: false, LogoIcon: true, LoupeIcon: true, MapMarkerClusterIcon: false, MapMarkerSingleIcon: false, MasterCardIcon: false, MinusIcon: true, MirIcon: false, MoneyIcon: true, MoneyInsuranceIcon: false, MoneysIcon: true, MonitorMobileIcon: true, NewDocIcon: false, OfficeIcon: false, OkIcon: true, PackA4Icon: false, PassSendIcon: false, PercentageRoundIcon: true, PercentageSquareIcon: true, PersonalCardIcon: true, PlayMarketIcon: true, PlusIcon: true, PowerIcon: false, Profile2UserIcon: true, ProfileIcon: true, PumpkinIcon: false, RoundRubleIcon: true, SafeIcon: true, ShieldTickIcon: true, SignDocsIcon: false, SmallClockIcon: true, SoundIcon: false, StrongBoxIcon: true, TelegramIcon: true, UnionPayIcon: false, UserSquareIcon: true, UserTickIcon: true, VisaIcon: false, VKIcon: true, WalletAdd2Icon: true, WalletAddIcon: true, WalletIcon: true, WalletWithMoneyIcon: true, WateringCanIcon: false
|
|
337
|
+
};
|
|
304
338
|
var IconMap;
|
|
305
339
|
(function (IconMap) {
|
|
306
340
|
IconMap["ActualBalanceIcon"] = "ActualBalanceIcon";
|
|
@@ -452,7 +486,7 @@
|
|
|
452
486
|
IconTitleMap["MirIcon"] = "\u041C\u0418\u0420";
|
|
453
487
|
IconTitleMap["MoneyIcon"] = "\u0414\u0435\u043D\u044C\u0433\u0438";
|
|
454
488
|
IconTitleMap["MoneyInsuranceIcon"] = "\u0414\u0435\u043D\u0435\u0436\u043D\u043E\u0435 \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u043D\u0438\u0435";
|
|
455
|
-
IconTitleMap["MoneysIcon"] = "
|
|
489
|
+
IconTitleMap["MoneysIcon"] = "\u041A\u0443\u043F\u044E\u0440\u044B";
|
|
456
490
|
IconTitleMap["MonitorMobileIcon"] = "\u041C\u043E\u043D\u0438\u0442\u043E\u0440 \u0438 \u043C\u043E\u0431\u0438\u043B\u044C\u043D\u044B\u0439";
|
|
457
491
|
IconTitleMap["NewDocIcon"] = "\u041D\u043E\u0432\u044B\u0439 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442";
|
|
458
492
|
IconTitleMap["OfficeIcon"] = "\u041E\u0444\u0438\u0441";
|
|
@@ -491,15 +525,23 @@
|
|
|
491
525
|
const svgUseStyleMap = {
|
|
492
526
|
normal: 'text-primary-main',
|
|
493
527
|
black: 'text-black',
|
|
494
|
-
white: 'text-black
|
|
528
|
+
white: 'text-black',
|
|
495
529
|
};
|
|
496
530
|
const Icon = JSX(({ className = '', imageClassName = '', name = '', alt = `Иконка ${IconTitleMap[name] || name}`, title = alt, iconVersion = 'normal', asSVG, ...imgProps }) => {
|
|
497
531
|
const href = `${projectSettings.CDN || ''}icons/${name}.svg`;
|
|
498
|
-
if (asSVG) {
|
|
499
|
-
return (
|
|
532
|
+
if (asSVG && IconInverseMap[name]) {
|
|
533
|
+
return (jsx(Background, { className: className, children: jsxs("svg", { className: [
|
|
534
|
+
getSvgSize(className, imgProps.width),
|
|
535
|
+
svgUseStyleMap[iconVersion],
|
|
536
|
+
imageClassName,
|
|
537
|
+
getInvertStyle(name, iconVersion),
|
|
538
|
+
].join(' '), ...imgProps, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }) }));
|
|
500
539
|
}
|
|
501
540
|
return (jsx("img", { className: className, src: href, alt: alt, title: title, ...imgProps, "aria-hidden": "true" }));
|
|
502
541
|
});
|
|
542
|
+
const getInvertStyle = (name, iconVersion) => iconVersion === 'white' && IconInverseMap[name] ? 'invert' : '';
|
|
543
|
+
const getSvgSize = (className, width) => width ? `width: ${width}px ` : 'w-full h-full';
|
|
544
|
+
const Background = JSX(({ className, children }) => className ? jsx("div", { className: className, children: children }) : children);
|
|
503
545
|
|
|
504
546
|
function getIconVersion(image) {
|
|
505
547
|
return typeof image === 'string' ? 'normal' : image.iconVersion || 'normal';
|
|
@@ -556,6 +598,11 @@
|
|
|
556
598
|
return style ? style.filter(Boolean).join(' ') : '';
|
|
557
599
|
}
|
|
558
600
|
|
|
601
|
+
const Description = JSX((props) => {
|
|
602
|
+
const { className = '', description } = props;
|
|
603
|
+
return jsx("div", { className: `${className}`, children: description });
|
|
604
|
+
});
|
|
605
|
+
|
|
559
606
|
const ALIGN_TEXT = {
|
|
560
607
|
left: 'text-left',
|
|
561
608
|
center: 'text-center',
|
|
@@ -611,11 +658,6 @@
|
|
|
611
658
|
},
|
|
612
659
|
};
|
|
613
660
|
|
|
614
|
-
const Description = JSX((props) => {
|
|
615
|
-
const { className = '', description } = props;
|
|
616
|
-
return jsx("div", { className: `${className}`, children: description });
|
|
617
|
-
});
|
|
618
|
-
|
|
619
661
|
const Headline = JSX(({ bgColorHeadline = 'transparent', align = 'center', className = '', title, description, headlineVersion = 'XL', as, ...rest }) => {
|
|
620
662
|
const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
|
|
621
663
|
const SIZE_MAPS = HEADLINE_VERSION[headlineVersion];
|
|
@@ -802,7 +844,7 @@
|
|
|
802
844
|
const buttonStyleMap = {
|
|
803
845
|
primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
|
|
804
846
|
secondary: 'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
|
|
805
|
-
white: 'text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white',
|
|
847
|
+
white: 'text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main',
|
|
806
848
|
link: '',
|
|
807
849
|
};
|
|
808
850
|
const DisabledStyle = 'bg-main-divider text-main-disabled';
|
|
@@ -1022,7 +1064,7 @@
|
|
|
1022
1064
|
function renderBenefits$1(benefits, version, image) {
|
|
1023
1065
|
// picture width = 242px. Text can overlay picture 20px deep. Outer paddings_x = 36px. 242-36-20 = 186px
|
|
1024
1066
|
const BENEFITS_WIDTH = image?.src ? 'max-w-[calc(100%-186px)]' : '100%';
|
|
1025
|
-
return (jsx("div", { className: `z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline
|
|
1067
|
+
return (jsx("div", { className: `z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline
|
|
1026
1068
|
${BENEFITS_WIDTH}`, children: benefits.length ? benefits.map(renderBenefit(version)) : null }));
|
|
1027
1069
|
}
|
|
1028
1070
|
function renderBenefit(version = 'primary') {
|
|
@@ -1139,7 +1181,7 @@
|
|
|
1139
1181
|
LinkList,
|
|
1140
1182
|
};
|
|
1141
1183
|
|
|
1142
|
-
const renderBlocksList = ({ blocks, context, className = '' }) => blocks?.length ? blocks.map(renderBlock$1({ context, className })) : null;
|
|
1184
|
+
const renderBlocksList$1 = ({ blocks, context, className = '' }) => blocks?.length ? blocks.map(renderBlock$1({ context, className })) : null;
|
|
1143
1185
|
const renderBlock$1 = ({ context, className }) => (block, i) => {
|
|
1144
1186
|
if (!block) {
|
|
1145
1187
|
return null;
|
|
@@ -1154,7 +1196,7 @@
|
|
|
1154
1196
|
};
|
|
1155
1197
|
|
|
1156
1198
|
const AccordionItemInner = JSX(({ blocks, context }) => {
|
|
1157
|
-
return (jsx("div", { className: "grid grid-cols-12 transition-all duration-300 max-h-0 overflow-hidden", children: renderBlocksList({ context, blocks, className: '!p-0 mb-3.5' }) }));
|
|
1199
|
+
return (jsx("div", { className: "grid grid-cols-12 transition-all duration-300 max-h-0 overflow-hidden", children: renderBlocksList$1({ context, blocks, className: '!p-0 mb-3.5' }) }));
|
|
1158
1200
|
});
|
|
1159
1201
|
|
|
1160
1202
|
const useActiveHandler$1 = ({ blocks, initialState = false }) => {
|
|
@@ -1244,12 +1286,19 @@
|
|
|
1244
1286
|
|
|
1245
1287
|
const Bonus = JSX((props) => {
|
|
1246
1288
|
const { context, className = '', title, description, bonusItems, ...rest } = props;
|
|
1247
|
-
return (jsx(BlockWrapper, { className: `font-sans bg-white p-[50px] pb-9 ${className}`, context: context, ...rest, children: jsxs("div", { className: "container", children: [jsx(Headline, { context: context, className: "!p-0", title: title, description: description, headlineVersion: "M", align: "center" }), jsx("div", { className: "flex flex-wrap w-full mt-9", children: bonusItems
|
|
1289
|
+
return (jsx(BlockWrapper, { className: `font-sans bg-white p-[50px] pb-9 ${className}`, context: context, ...rest, children: jsxs("div", { className: "container", children: [jsx(Headline, { context: context, className: "!p-0", title: title, description: description, headlineVersion: "M", align: "center" }), jsx("div", { className: "flex flex-wrap w-full mt-9", children: bonusItems?.length
|
|
1248
1290
|
? bonusItems.map((_, i) => {
|
|
1249
|
-
return (jsx("div", { className: "flex-grow w-[49%] border border-gray pl-9 pt-9 pr-6 pb-6 mb-
|
|
1291
|
+
return (jsx("div", { className: "flex-grow w-[49%] border border-gray pl-9 pt-9 pr-6 pb-6 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0", children: jsxs("div", { className: "flex justify-between w-full", children: [jsxs("div", { className: "flex flex-col justify-between mr-4", children: [jsxs("div", { children: [jsx("div", { className: "text-h4", children: _.title }), jsx("div", { className: "text-xl-light mt-2 max-w-[488px]", children: _.description })] }), _?.buttons?.length ? (jsx(ButtonSection, { context: context, buttons: _?.buttons })) : null] }), _.bonusItemContent?.bonusType
|
|
1292
|
+
? renderBonusItemContent(_.bonusItemContent)
|
|
1293
|
+
: null] }) }, String(i)));
|
|
1250
1294
|
})
|
|
1251
1295
|
: null })] }) }));
|
|
1252
1296
|
});
|
|
1297
|
+
const renderBonusItemContent = (bonusItemContent) => (jsx("div", { children: bonusItemContent.bonusType === 'count'
|
|
1298
|
+
? renderBonusCount(bonusItemContent)
|
|
1299
|
+
: renderBonusImage(bonusItemContent) }));
|
|
1300
|
+
const renderBonusCount = (_) => (jsxs("div", { className: "relative -bottom-3 h-auto flex items-end mt-14 shrink-0", children: [_.bonusCount ? (jsx("span", { className: "font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7", children: _.bonusCount })) : null, _.bonusName ? (jsx("span", { className: "text-h2 bg-clip-text text-transparent bg-green-to-yellow", children: _.bonusName })) : null] }));
|
|
1301
|
+
const renderBonusImage = (_) => _.image ? (jsx(Img, { className: `w-[50px] h-[50px] min-w-[50px] p-3 rounded-full`, image: _.image })) : null;
|
|
1253
1302
|
|
|
1254
1303
|
function getElementsColsValue(className = '') {
|
|
1255
1304
|
const colSpan = getColSpan(className);
|
|
@@ -1316,6 +1365,8 @@
|
|
|
1316
1365
|
return buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex flex-col mt-7 gap-2" })) : null;
|
|
1317
1366
|
}
|
|
1318
1367
|
|
|
1368
|
+
const renderFootnote = (text) => text ? jsx("p", { className: "text-s-light text-secondary-text mt-7", children: text }) : null;
|
|
1369
|
+
|
|
1319
1370
|
const clamp = (value, min, max) => Math.max(min, Math.min(value, max));
|
|
1320
1371
|
|
|
1321
1372
|
const DISABLED_INPUT_CLASSES = 'disabled:border-main-stroke disabled:bg-main-divider';
|
|
@@ -1460,8 +1511,6 @@
|
|
|
1460
1511
|
};
|
|
1461
1512
|
};
|
|
1462
1513
|
|
|
1463
|
-
const renderFootnote = (text) => text ? jsx("p", { className: "text-s-light text-secondary-text mt-7", children: text }) : null;
|
|
1464
|
-
|
|
1465
1514
|
const BonusCalculatorForm = JSX(({ context, className = '', sourceBookDir = '', buttons, footnote }) => {
|
|
1466
1515
|
const [travelExpenseValue, setTravelExpenseValue] = useState(DEFAULT_TRAVEL_MIN_SUM);
|
|
1467
1516
|
const [restExpenseValue, setRestExpenseValue] = useState(DEFAULT_REST_MIN_SUM);
|
|
@@ -1685,33 +1734,55 @@
|
|
|
1685
1734
|
})) }) }), jsx("div", { className: "w-full h-2 bg-primary-main" })] }));
|
|
1686
1735
|
}
|
|
1687
1736
|
|
|
1688
|
-
const
|
|
1689
|
-
|
|
1737
|
+
const adjustValue = (val) => onlyOneDot(setZeroStart(replaceCommaToDot(val)));
|
|
1738
|
+
const onlyOneDot = (val) => {
|
|
1739
|
+
const matches = val.match(/\./g) || [];
|
|
1740
|
+
return matches.length > 1 ? val.slice(0, val.lastIndexOf('.')) : val;
|
|
1741
|
+
};
|
|
1742
|
+
const setZeroStart = (val) => {
|
|
1743
|
+
const isZeroStart = val.indexOf('0') === 0 && val.length === 2;
|
|
1744
|
+
const newVal = isZeroStart ? val.replace('0', '0.') : val;
|
|
1745
|
+
return newVal.startsWith('.') ? newVal.replace('.', '0.') : newVal;
|
|
1746
|
+
};
|
|
1747
|
+
const replaceCommaToDot = (val) => String(val.replace(',', '.').replace(/[^.\d]/g, ''));
|
|
1748
|
+
|
|
1749
|
+
const Input = JSX(({ className = '', inputClassName = '', id, name, type = 'text', label, value = '', children, onChange, ...inputProps }) => {
|
|
1750
|
+
const handleChange = useCallback((e) => {
|
|
1751
|
+
const validInputValue = e.target.validity.valid ? e.target.value : value;
|
|
1752
|
+
onChange(validInputValue);
|
|
1753
|
+
}, [onChange]);
|
|
1754
|
+
const paddingStyle = children ? 'pr-8' : '';
|
|
1755
|
+
return (jsxs("div", { className: `relative ${className}`, children: [label ? jsx("label", { className: "block text-m-light mb-2", children: label }) : null, jsx("input", { className: `w-full border rounded-md border-main-stroke hover:border-primary-hover active:border-primary-text
|
|
1756
|
+
focus:border-primary-text text-primary-text outline-none p-4 ${paddingStyle} ${inputClassName}`, id: id, name: name || id, type: type, value: value, onChange: handleChange, ...inputProps }), children] }));
|
|
1757
|
+
});
|
|
1758
|
+
|
|
1759
|
+
const CurrencyInput = JSX(({ className = '', onChange, minValue = 0, maxValue = 300000, ...inputProps }) => {
|
|
1760
|
+
const handleChange = useCallback((inputValue) => {
|
|
1690
1761
|
if (!onChange) {
|
|
1691
1762
|
return;
|
|
1692
1763
|
}
|
|
1693
|
-
const
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1764
|
+
const adjustedVal = adjustValue(inputValue);
|
|
1765
|
+
const clampVal = getClampValue(adjustedVal, clamp(Number(adjustedVal), minValue, maxValue));
|
|
1766
|
+
onChange(String(clampVal));
|
|
1767
|
+
}, [onChange]);
|
|
1768
|
+
return (jsx(Input, { className: className, inputClassName: "w-full", onChange: handleChange, ...inputProps, children: jsx("span", { className: "text-xl-light absolute right-4 bottom-4", children: "\u20BD" }) }));
|
|
1697
1769
|
});
|
|
1770
|
+
const getClampValue = (val, clampVal) => Number(val) === clampVal ? val : String(clampVal);
|
|
1698
1771
|
|
|
1699
1772
|
const AMOUNT_KEY = 'amount';
|
|
1700
1773
|
const FORM_URL = 'https://www.rshb.ru/p2p/';
|
|
1701
1774
|
const DEFAULT_TITLE = 'Укажите сумму перевода';
|
|
1702
1775
|
const DEFAULT_LABEL = 'Сумма перевода';
|
|
1703
1776
|
const DEFAULT_PLACEHOLDER = '1500';
|
|
1704
|
-
const
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
className: 'w-full h-[56px] px-9 mt-6',
|
|
1708
|
-
};
|
|
1709
|
-
const CardTransfer = JSX(({ className = '', title = DEFAULT_TITLE, label = DEFAULT_LABEL, placeholder = DEFAULT_PLACEHOLDER, buttonText = DEFAULT_BUTTON_TEXT, ...rest }) => {
|
|
1777
|
+
const CardTransfer = JSX(({ className = '', title = DEFAULT_TITLE, label = DEFAULT_LABEL, placeholder = DEFAULT_PLACEHOLDER, button, context, ...rest }) => {
|
|
1778
|
+
const router = context.useRouter();
|
|
1779
|
+
const { handlerDecorator } = context;
|
|
1710
1780
|
const [value, setValue] = useState('');
|
|
1711
1781
|
const isDisabled = !Number(value);
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1782
|
+
const buttonStyle = isDisabled
|
|
1783
|
+
? getDisabledButtonClasses({ version: button?.version })
|
|
1784
|
+
: getRegularButtonClasses({ className: 'text-white', version: button?.version });
|
|
1785
|
+
return (jsxs(BlockWrapper, { className: `p-[50px] flex flex-col items-center font-sans bg-white ${className}`, context: context, ...rest, children: [title ? jsx(Heading, { className: "max-w-[684px] pb-9", headingType: "h2", title: title }) : null, jsxs("form", { className: "w-[468px]", method: "POST", action: FORM_URL, children: [jsx(CurrencyInput, { name: AMOUNT_KEY, value: value, onChange: setValue, placeholder: placeholder, label: label }), button?.text ? (jsx("button", { type: "submit", className: `w-full p-4 mt-6 ${buttonStyle} `, disabled: isDisabled, ...useLink({ router, handlerDecorator }, button), children: button.text })) : null] })] }));
|
|
1715
1786
|
});
|
|
1716
1787
|
|
|
1717
1788
|
const iconVersionMap = {
|
|
@@ -1724,7 +1795,7 @@
|
|
|
1724
1795
|
white: 'bg-white',
|
|
1725
1796
|
};
|
|
1726
1797
|
const CatalogCard = JSX(({ className = '', title, description, image, price, button, colors }) => {
|
|
1727
|
-
return (jsxs("section", { className: `border border-solid box-border p-[30px] min-w-[402px] flex flex-col justify-left ${className}`, role: "listitem", children: [image?.src ? jsx(Img, { className: "mb-5 flex justify-center", image: image }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-1.5", title: title })) : null, description ? jsx("div", { className: "text-m-light text-left mb-4", children: description }) : null, colors?.length ? (jsxs("div", { className: "flex mb-4 text-m-light text-secondary-text", children: [jsx("div", { className: "mr-1.5", children: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430: " }), colors.map(renderColorOption)] })) : null, price ? jsxs("div", { className: "text-h3 text-left", children: [price, "\u00A0\u20BD"] }) : null, button ? renderButton(button) : null] }));
|
|
1798
|
+
return (jsxs("section", { className: `border border-solid box-border border-main-stroke p-[30px] min-w-[402px] flex flex-col justify-left ${className}`, role: "listitem", children: [image?.src ? jsx(Img, { className: "mb-5 flex justify-center", image: image }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-1.5", title: title })) : null, description ? jsx("div", { className: "text-m-light text-left mb-4", children: description }) : null, colors?.length ? (jsxs("div", { className: "flex mb-4 text-m-light text-secondary-text", children: [jsx("div", { className: "mr-1.5", children: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430: " }), colors.map(renderColorOption)] })) : null, price ? jsxs("div", { className: "text-h3 text-left", children: [price, "\u00A0\u20BD"] }) : null, button ? renderButton(button) : null] }));
|
|
1728
1799
|
});
|
|
1729
1800
|
const renderColorOption = (color, i) => (jsx("span", { className: `w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
|
|
1730
1801
|
const renderButton = (button) => {
|
|
@@ -1959,40 +2030,9 @@
|
|
|
1959
2030
|
return (jsxs("tr", { className: "pb-1 text-h6", children: [jsx("td", { className: "pt-4", children: jsxs("div", { className: "flex items-center", children: [code ? jsx(Img, { image: { icon: CURRENCY_ICONS_MAP[code] }, width: "24", height: "24" }) : null, jsx("span", { className: "ml-2", children: code })] }) }), jsx("td", { className: "pt-4 pl-11", children: formatCurrency(exchangeCurrencyItem?.sell) }), jsx("td", { className: "pt-4 pl-11", children: formatCurrency(exchangeCurrencyItem?.buy) })] }, code));
|
|
1960
2031
|
};
|
|
1961
2032
|
|
|
1962
|
-
const CurrentLocation = JSX(({ className = '', address, distance }) => (jsxs("div", { className: `flex ${className}`, children: [jsx(Img, { image: { icon: 'GpsIcon' }, width: "24", height: "24", asSVG: true }), jsxs("div", { className: "ml-3", children: [address ? jsx("p", { className: "text-primary-main m-0 mb-1 text-l", children: address }) : null, distance ? (jsxs("p", { className: "text-secondary-text m-0 text-m", children: ["\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0431\u043B\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043E \u043E\u0444\u0438\u0441\u0430 - ", distance] })) : null] })] })));
|
|
1963
|
-
|
|
1964
|
-
const calculateResult = (value, rate, precision) => {
|
|
1965
|
-
const result = Number(formatValue(value)) * Math.pow(rate, precision ? -1 : 1);
|
|
1966
|
-
return Number.isInteger(result) ? result : roundTo(result);
|
|
1967
|
-
};
|
|
1968
|
-
const formatValue = (value) => value.replace(/[^\d.,]/g, '').replace(',', '.');
|
|
1969
|
-
|
|
1970
|
-
const tableFunc = (table) => (input) => {
|
|
1971
|
-
const [, output] = table.find(([predicate]) => predicate(input)) || [];
|
|
1972
|
-
return output;
|
|
1973
|
-
};
|
|
1974
|
-
|
|
1975
|
-
const callbackCurrencySelect = (props) => tableFunc([
|
|
1976
|
-
[
|
|
1977
|
-
(_) => _.value !== Currency.RUB && _.oppositeValue !== Currency.RUB,
|
|
1978
|
-
() => props.handleConvert(props.value, Currency.RUB),
|
|
1979
|
-
],
|
|
1980
|
-
[
|
|
1981
|
-
(_) => _.value === Currency.RUB && _.oppositeValue === Currency.RUB,
|
|
1982
|
-
() => props.handleConvert(props.value, Currency.USD),
|
|
1983
|
-
],
|
|
1984
|
-
[() => true, () => props.handleConvert(props.value)],
|
|
1985
|
-
])(props)?.();
|
|
1986
|
-
|
|
1987
|
-
const Input = JSX(({ className = '', id, name, type = 'text', placeholder, pattern, value, onChange }) => {
|
|
1988
|
-
const handleChange = (e) => {
|
|
1989
|
-
const validInputValue = e.target.validity.valid ? e.target.value : value;
|
|
1990
|
-
onChange(validInputValue);
|
|
1991
|
-
};
|
|
1992
|
-
return (jsx("input", { className: `border rounded-md border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text text-primary-text outline-none ${className}`, id: id, name: name || id, type: type, pattern: pattern, placeholder: placeholder, value: value, onChange: handleChange }));
|
|
1993
|
-
});
|
|
2033
|
+
const CurrentLocation = JSX(({ className = '', address, distance }) => (jsxs("div", { className: `flex ${className}`, children: [jsx(Img, { image: { icon: 'GpsIcon' }, width: "24", height: "24", asSVG: true }), jsxs("div", { className: "ml-3", children: [address ? jsx("p", { className: "text-primary-main m-0 mb-1 text-l", children: address }) : null, distance ? (jsxs("p", { className: "text-secondary-text m-0 text-m-light", children: ["\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0431\u043B\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043E \u043E\u0444\u0438\u0441\u0430 - ", distance] })) : null] })] })));
|
|
1994
2034
|
|
|
1995
|
-
const
|
|
2035
|
+
const Select = JSX(({ className = '', isBorder = true, label, options = [], value, onChange, placeholder = '' }) => {
|
|
1996
2036
|
const [selectedItem, setSelectedItem] = useState(options[0] || { key: '', text: '' });
|
|
1997
2037
|
const [isOpen, setIsOpen] = useState(false);
|
|
1998
2038
|
const choiceOption = (option) => {
|
|
@@ -2004,25 +2044,47 @@
|
|
|
2004
2044
|
useEffect(() => {
|
|
2005
2045
|
setSelectedItem(value || { key: '', text: '' });
|
|
2006
2046
|
}, [value]);
|
|
2007
|
-
return (jsxs("div", { className: `${
|
|
2008
|
-
${getBorderStyle(isBorder)}`, onClick: () => setIsOpen(!isOpen), children: [selectedItem
|
|
2047
|
+
return (jsxs("div", { className: `${className}`, children: [label ? jsx("span", { className: "mb-2 flex", children: label }) : null, jsxs("div", { className: `relative ${isOpen ? 'z-20' : 'z-10'}`, children: [jsxs("div", { className: `text-m-light flex justify-between items-center mb-0.5 text-primary-text cursor-pointer
|
|
2048
|
+
${getBorderStyle(isBorder)}`, onClick: () => setIsOpen(!isOpen), children: [jsx("p", { className: "p-4 pr-8 h-[56px] 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-[256px] 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] })] }));
|
|
2009
2049
|
});
|
|
2050
|
+
const renderOptionsStyle = (isOpen) => (isOpen ? '' : 'overflow-hidden');
|
|
2010
2051
|
const renderOption = (choiceOption, isOpen, isSelected) => (option, i) => {
|
|
2011
2052
|
return (jsxs("div", { onClick: () => {
|
|
2012
2053
|
choiceOption(option);
|
|
2013
|
-
}, className: "flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11", children: [jsx("span", { children: option.text }), jsx(Icon, { name: "DoneSimpleIcon", width: "16", height: "16", className: ['absolute right-4 pt-0.5', isSelected(option) && isOpen ? '' : 'hidden'].join(' ') })] }, String(i)));
|
|
2054
|
+
}, className: "flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative", children: [jsx("span", { className: "min-h-6", children: option.text }), jsx(Icon, { name: "DoneSimpleIcon", width: "16", height: "16", className: ['absolute right-4 pt-0.5', isSelected(option) && isOpen ? '' : 'hidden'].join(' ') })] }, String(i)));
|
|
2014
2055
|
};
|
|
2015
|
-
|
|
2016
|
-
return isBorder ? 'border border-main-stroke rounded-md hover:border-primary-hover' : '';
|
|
2017
|
-
}
|
|
2056
|
+
const getBorderStyle = (isBorder) => isBorder ? 'border border-main-stroke rounded-md hover:border-primary-hover' : '';
|
|
2018
2057
|
|
|
2019
2058
|
function renderInput(props) {
|
|
2020
2059
|
const { placeholder, rates, selected, value, setValue, setSelected } = props;
|
|
2021
2060
|
const ratesOptions = rates.map((_) => ({ key: _.code ?? '', text: _.code ?? '' }));
|
|
2022
2061
|
const selectedValue = { key: selected, text: selected };
|
|
2023
|
-
return (jsxs("div", { className: "relative flex", children: [jsx(Input, { className: "shrink-0 h-14 pl-4 pt-4 pb-4 text-l w-full appearance-none mr-[-90px]", placeholder: placeholder, type: "text", value: value, onChange: setValue }), ratesOptions.length ? (jsx(
|
|
2062
|
+
return (jsxs("div", { className: "relative flex", children: [jsx(Input, { className: "shrink-0 h-14 pl-4 pt-4 pb-4 text-l w-full appearance-none mr-[-90px]", placeholder: placeholder, type: "text", value: value, onChange: setValue }), ratesOptions.length ? (jsx(Select, { isBorder: false, onChange: (_) => setSelected(_.key), options: ratesOptions, value: selectedValue })) : null] }));
|
|
2024
2063
|
}
|
|
2025
2064
|
|
|
2065
|
+
const calculateResult = (value, rate, precision) => {
|
|
2066
|
+
const result = Number(formatValue(value)) * Math.pow(rate, precision ? -1 : 1);
|
|
2067
|
+
return Number.isInteger(result) ? result : roundTo(result);
|
|
2068
|
+
};
|
|
2069
|
+
const formatValue = (value) => value.replace(/[^\d.,]/g, '').replace(',', '.');
|
|
2070
|
+
|
|
2071
|
+
const tableFunc = (table) => (input) => {
|
|
2072
|
+
const [, output] = table.find(([predicate]) => predicate(input)) || [];
|
|
2073
|
+
return output;
|
|
2074
|
+
};
|
|
2075
|
+
|
|
2076
|
+
const callbackCurrencySelect = (props) => tableFunc([
|
|
2077
|
+
[
|
|
2078
|
+
(_) => _.value !== Currency.RUB && _.oppositeValue !== Currency.RUB,
|
|
2079
|
+
() => props.handleConvert(props.value, Currency.RUB),
|
|
2080
|
+
],
|
|
2081
|
+
[
|
|
2082
|
+
(_) => _.value === Currency.RUB && _.oppositeValue === Currency.RUB,
|
|
2083
|
+
() => props.handleConvert(props.value, Currency.USD),
|
|
2084
|
+
],
|
|
2085
|
+
[() => true, () => props.handleConvert(props.value)],
|
|
2086
|
+
])(props)?.();
|
|
2087
|
+
|
|
2026
2088
|
const ExchangeCurrencyCalculator = JSX(({ context, className = '', currencyRatesBuy, currencyRatesSell, button }) => {
|
|
2027
2089
|
const { useRouter, handlerDecorator } = context;
|
|
2028
2090
|
const router = useRouter();
|
|
@@ -2100,7 +2162,8 @@
|
|
|
2100
2162
|
currencyRatesBuy.unshift({ code: Currency.RUB });
|
|
2101
2163
|
const currencyRatesSell = currencyRates.filter((_) => _.sell);
|
|
2102
2164
|
currencyRatesSell.push({ code: Currency.RUB });
|
|
2103
|
-
return (jsx(BlockWrapper, { context: context, className: `bg-white text-primary-text font-sans p-9 box-border
|
|
2165
|
+
return (jsx(BlockWrapper, { context: context, className: `bg-white text-primary-text font-sans p-9 box-border min-h-[320px]
|
|
2166
|
+
${className}`, ...rest, children: jsx(BaseTile, { context: context, title: jsx(Heading, { headingType: "h4", title: title, className: "whitespace-pre-wrap text-h4 mb-5" }), children: jsxs("div", { className: "flex", children: [jsxs("div", { className: "mr-14 pt-4", children: [currencyRates ? (jsx(CurrencyTable, { className: "mb-[30px]", exchangeCurrencyItems: currencyRates })) : null, jsx(CurrentLocation, { ...DEFAULT_LOCATION })] }), currencyRates.length && currencyRatesBuy.length && currencyRatesSell.length ? (jsx(ExchangeCurrencyCalculator, { className: "grow", context: context, currencyRatesBuy: currencyRatesBuy, currencyRatesSell: currencyRatesSell, button: button })) : null] }) }) }));
|
|
2104
2167
|
});
|
|
2105
2168
|
|
|
2106
2169
|
const ICON_VERSION_MAP = {
|
|
@@ -2115,8 +2178,8 @@
|
|
|
2115
2178
|
'bg-white': 'text-primary-text',
|
|
2116
2179
|
transparent: 'text-white',
|
|
2117
2180
|
};
|
|
2118
|
-
const Logo = JSX(({ className = '', href, logo, children = logo?.title, targetBlank, bgColor = 'bg-white',
|
|
2119
|
-
return (jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || '/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [logo?.image?.src ? (jsx(Img, { image: logo.image, className: SVG_COLOR[bgColor], width: "40", height: "45", asSVG: true })) : (jsx(Img, { image: { icon: 'LogoIcon', iconVersion: ICON_VERSION_MAP[bgColor] }, className: `${SVG_COLOR[bgColor]} w-10`, width: "40", height: "45", asSVG: true })),
|
|
2181
|
+
const Logo = JSX(({ className = '', href, logo, children = logo?.title, targetBlank, bgColor = 'bg-white', showTitle = true, }) => {
|
|
2182
|
+
return (jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || '/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [logo?.image?.src ? (jsx(Img, { image: logo.image, className: SVG_COLOR[bgColor], width: "40", height: "45", asSVG: true })) : (jsx(Img, { image: { icon: 'LogoIcon', iconVersion: ICON_VERSION_MAP[bgColor] }, className: `${SVG_COLOR[bgColor]} w-10`, width: "40", height: "45", asSVG: true })), showTitle ? renderTitle$1(children, bgColor, logo?.title) : null] }));
|
|
2120
2183
|
});
|
|
2121
2184
|
const renderTitle$1 = (children, bgColor, title) => {
|
|
2122
2185
|
const text = children || title || 'Россельхозбанк';
|
|
@@ -2242,7 +2305,7 @@
|
|
|
2242
2305
|
return null;
|
|
2243
2306
|
}
|
|
2244
2307
|
const classes = version === 'secondary'
|
|
2245
|
-
? 'bg-
|
|
2308
|
+
? 'bg-white hover:bg-secondary-hover'
|
|
2246
2309
|
: 'border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main';
|
|
2247
2310
|
const isPrimary = version === 'primary';
|
|
2248
2311
|
return (jsx("a", { className: `flex items-center justify-center rounded-md w-14 h-14 group box-border ${classes} ${isPrimary ? 'hover:text-black' : ''}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", children: icon ? (jsx(Img, { image: icon, imageClassName: "group-hover:text-white", width: "24", height: "24", asSVG: true })) : null }));
|
|
@@ -2280,10 +2343,10 @@
|
|
|
2280
2343
|
..._,
|
|
2281
2344
|
flexBasis: `${_.month.length * colSize}%`,
|
|
2282
2345
|
}));
|
|
2283
|
-
return (jsxs("div", { className: "w-full flex flex-col justify-center mt-
|
|
2346
|
+
return (jsxs("div", { className: "w-full flex flex-col justify-center mt-13", children: [jsx("div", { className: "flex w-full mb-3 text-h6 text-center", children: mappedCalendar.map((_) => renderMonthNames(_, colSize)) }), jsx("div", { className: "flex w-full", children: mappedCalendar.map((_, ind) => (jsxs("div", { className: "pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0", style: { flexBasis: _.flexBasis }, children: [jsx("div", { className: "flex", children: renderMonthImages(_) }), jsxs("div", { className: "text-s-light text-primary-text mt-3", children: [jsx("span", { children: _.text }), "\u2009", jsx("span", { className: "text-primary-main", children: _.greenText })] })] }, `monthItem-${ind}`))) })] }));
|
|
2284
2347
|
};
|
|
2285
|
-
const renderMonthNames = (item, colSize) => item.month
|
|
2286
|
-
const renderMonthImages = (item) => item.month
|
|
2348
|
+
const renderMonthNames = (item, colSize) => item.month?.map((_, i) => (jsx("div", { style: { flexBasis: `${colSize}%` }, children: _.name }, `monthName-${i}`)));
|
|
2349
|
+
const renderMonthImages = (item) => item.month?.map((_) => _.image?.src ? (jsx("div", { className: "h-[207px] border-r-[1px] pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0", children: jsx(Img, { image: _.image, className: "flex" }) }, `monthImage-${_.image.src}`)) : null);
|
|
2287
2350
|
|
|
2288
2351
|
const checkIsHrefSameOrigin = (href, router) => getOrigin(href) === getOrigin(router.href);
|
|
2289
2352
|
|
|
@@ -2518,8 +2581,8 @@
|
|
|
2518
2581
|
return (jsxs(BlockWrapper, { context: context, className: `flex justify-between font-sans p-9 box-border relative min-h-[320px]
|
|
2519
2582
|
${getTileMinHeight(className)}
|
|
2520
2583
|
${VersionStyleMap[version]}
|
|
2521
|
-
${className}`, ...rest, children: [jsx(BaseTile, { context: context, className: "z-
|
|
2522
|
-
${textColorClass}` })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttonsWithClass, className: "flex gap-4" })) : null, children: jsxs("div", { className: "flex flex-1 items-center", children: [qr?.src ? (jsx("div", { className: `flex justify-center mr-5 bg-white rounded-md ${containerStyle}`, children: jsx(Img, { className: "w-fit", image: qr }) })) : null, renderList(version, items)] }) }), image?.src ? (jsx("div", { className: "absolute right-0 bottom-0", children: jsx(Img, { image: image }) })) : null] }));
|
|
2584
|
+
${className}`, ...rest, children: [jsx(BaseTile, { context: context, className: "z-10", title: title ? (jsx(Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap max-w-[509px] mb-6
|
|
2585
|
+
${textColorClass}` })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttonsWithClass, className: "flex gap-4" })) : null, children: jsxs("div", { className: "flex flex-1 items-center", children: [qr?.src ? (jsx("div", { className: `flex justify-center mr-5 bg-white rounded-md ${containerStyle}`, children: jsx(Img, { className: "w-fit", image: qr, alt: "QR-\u043A\u043E\u0434" }) })) : null, renderList(version, items)] }) }), image?.src ? (jsx("div", { className: "absolute right-0 bottom-0", children: jsx(Img, { image: image }) })) : null] }));
|
|
2523
2586
|
});
|
|
2524
2587
|
const renderList = (version, items) => {
|
|
2525
2588
|
return items?.length ? (jsx(List, { items: items, itemClassName: "text-l-light mb-2 last:mb-0", version: version === 'primary' ? 'tile' : 'tile-white' })) : (jsx("span", { className: "text-m-light text-secondary-text", children: "\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0430\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u043D\u0430 QR-\u043A\u043E\u0434 \u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }));
|
|
@@ -2566,7 +2629,7 @@
|
|
|
2566
2629
|
};
|
|
2567
2630
|
|
|
2568
2631
|
const OtherProductsItem = JSX(({ label, blocks, context, dataTheme, isUnfolded }) => {
|
|
2569
|
-
const foldableBlocks = renderBlocksList({
|
|
2632
|
+
const foldableBlocks = renderBlocksList$1({
|
|
2570
2633
|
context,
|
|
2571
2634
|
blocks,
|
|
2572
2635
|
});
|
|
@@ -2611,7 +2674,7 @@
|
|
|
2611
2674
|
const galleryNav = slides.map((s) => s.nav);
|
|
2612
2675
|
const galleryBlocks = slides.map((s) => s.productBlock);
|
|
2613
2676
|
const [activeSlideIndex, setActiveSlideIndex] = useState(0);
|
|
2614
|
-
return (jsxs(BlockWrapper, { context: context, className: `box-border pt-[50px] overflow-hidden relative font-sans w-100 ${className}
|
|
2677
|
+
return (jsxs(BlockWrapper, { context: context, className: `box-border pt-[50px] overflow-hidden relative font-sans w-100 mb-6 ${className}
|
|
2615
2678
|
${VersionStyleMap[version]}`, ...rest, children: [jsx("div", { className: "flex duration-1000 pb-14", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: galleryBlocks.map((_, i) => renderProductBlock({ ..._, version }, i, context)) }), jsx("div", { className: "flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28", children: galleryNav.map((slide, i) => renderNavButton({
|
|
2616
2679
|
slide,
|
|
2617
2680
|
i,
|
|
@@ -2628,19 +2691,19 @@
|
|
|
2628
2691
|
function renderNavButton({ slide, i, activeSlideIndex, onClick, version }) {
|
|
2629
2692
|
const isActiveBtn = i === activeSlideIndex;
|
|
2630
2693
|
const btnClassName = isActiveBtn
|
|
2631
|
-
? 'bg-white shadow-dark-blue/42
|
|
2632
|
-
: `min-w-[
|
|
2694
|
+
? 'bg-white shadow-dark-blue/42 min-w-[354px] border-none p-6'
|
|
2695
|
+
: `min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur
|
|
2633
2696
|
${VersionStyleMap[version]}`;
|
|
2634
2697
|
const btnTitleClassName = isActiveBtn
|
|
2635
|
-
? 'text-primary-text text-h6'
|
|
2636
|
-
: `text-l ${productBlockStyleMap[version].title}`;
|
|
2698
|
+
? 'text-primary-text !text-h6 p-2'
|
|
2699
|
+
: `text-l pb-1 ${productBlockStyleMap[version].title}`;
|
|
2637
2700
|
const btnDescClassName = isActiveBtn
|
|
2638
|
-
? 'text-secondary-text text-
|
|
2639
|
-
: `text-m
|
|
2701
|
+
? 'text-secondary-text text-l-light mt-2.5'
|
|
2702
|
+
: `text-m-light ${productBlockStyleMap[version].text}`;
|
|
2640
2703
|
const additionalBorder = version === 'secondary' ? 'border-white/50' : 'border-black/50';
|
|
2641
|
-
return (jsx("button", { type: "button", onClick: onClick, "aria-label": slide?.title, className: `box-border
|
|
2704
|
+
return (jsx("button", { type: "button", onClick: onClick, "aria-label": slide?.title, className: `box-border relative overflow-hidden border border-white/50 cursor-pointer text-left mx-1 grow basis-0
|
|
2642
2705
|
${btnClassName} ${additionalBorder}
|
|
2643
|
-
`, children: jsxs("div", { className: "border-0 px-6", children: [jsx("div", { className: `
|
|
2706
|
+
`, children: jsxs("div", { className: "border-0 px-6", children: [jsx("div", { className: `last:pb-0 ${btnTitleClassName}`, children: slide?.title }), jsx("div", { className: `text-secondary-text ${btnDescClassName}`, children: slide.description })] }) }, String(i)));
|
|
2644
2707
|
}
|
|
2645
2708
|
|
|
2646
2709
|
const PromoTile = JSX(({ className = '', context, title = 'Акции и спецпредложения', date, description, buttons = [], version = 'primary', ...rest }) => {
|
|
@@ -2706,23 +2769,16 @@
|
|
|
2706
2769
|
return fetchJSON(url, { method: 'GET' });
|
|
2707
2770
|
};
|
|
2708
2771
|
|
|
2709
|
-
const
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
const SelectOption = JSX(({ className = '', value, selected, disabled = false, children }) => {
|
|
2717
|
-
return (jsx("option", { className: className, value: `${value}`, selected: selected, disabled: disabled, children: children }));
|
|
2718
|
-
});
|
|
2719
|
-
|
|
2720
|
-
const WrapperSelect = JSX(({ data, fieldLabel, fieldValue, selected, placeholder, setSelected, label }) => {
|
|
2721
|
-
return (jsxs("div", { children: [jsx("span", { className: "block text-m-light mb-2", children: label }), jsxs(Select, { className: `h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer ${!selected ? 'text-secondary-text' : ''}`, value: selected, onChange: (_) => setSelected(_), children: [placeholder ? jsx(SelectOption, { value: "", children: placeholder }) : null, data.map((_, i) => (jsx(SelectOption, { value: _?.[fieldValue || fieldLabel], children: _?.[fieldLabel] }, String(i))))] })] }));
|
|
2772
|
+
const WrapperSelect = JSX(({ data, fieldLabel, fieldValue, selected, placeholder = '', setSelected, label }) => {
|
|
2773
|
+
const dataFormat = data
|
|
2774
|
+
.filter(Boolean)
|
|
2775
|
+
.map((_) => ({ key: _?.[fieldValue || fieldLabel], text: _?.[fieldLabel] }));
|
|
2776
|
+
const selectedObj = dataFormat.find((_) => _.key === selected);
|
|
2777
|
+
return (jsx(Select, { options: dataFormat, label: label, placeholder: placeholder || selected, onChange: (_) => setSelected(_.key), value: selectedObj }));
|
|
2722
2778
|
});
|
|
2723
2779
|
|
|
2724
2780
|
const RegionsAndBranches = JSX(({ regions = [], selectedRegion, onSelectedRegion: onSelectedRegion, branches = [], selectedBranch, onSelectedBranch, }) => {
|
|
2725
|
-
return (jsxs("div", { className: "flex justify-between mb-6", children: [jsx("div", { className: "w-
|
|
2781
|
+
return (jsxs("div", { className: "flex justify-between gap-4 mb-6", children: [jsx("div", { className: "max-w-[396px] w-1/2", children: jsx(WrapperSelect, { data: regions, fieldValue: "code", fieldLabel: "name", selected: selectedRegion, setSelected: onSelectedRegion, label: "\u0420\u0435\u0433\u0438\u043E\u043D" }) }), jsx("div", { className: "max-w-[396px] w-1/2", children: jsx(WrapperSelect, { data: branches, fieldValue: "branchCode", fieldLabel: "address", selected: selectedBranch, setSelected: onSelectedBranch, label: "\u041E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435" }) })] }));
|
|
2726
2782
|
});
|
|
2727
2783
|
|
|
2728
2784
|
const Radio = JSX(({ name, text, value, checked, onChange, className }) => (jsx("div", { className: className, children: jsxs("label", { className: "flex items-center relative cursor-pointer", children: [jsx("input", { className: "appearance-none flex justify-center items-center shrink-0 w-5 h-5 border-2 border-primary-main\n rounded-full cursor-pointer after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main", type: "radio", value: value, name: name, checked: checked, onChange: onChange }), text ? jsx("span", { className: "font-sans ml-3 cursor-pointer", children: text }) : null] }) })));
|
|
@@ -2769,7 +2825,7 @@
|
|
|
2769
2825
|
return (jsxs("div", { className: "flex flex-col justify-between", children: [jsxs("div", { className: "flex", children: [renderTotal('Аренда за', days, 'mr-11'), renderTotal('Цена', price + ' ₽')] }), jsxs("div", { className: "bg-primary-main px-10 pt-10 pb-4 text-center", children: [jsx(Img, { image: { icon: 'PackA4Icon' }, width: "290", height: "257", asSVG: true }), jsxs("span", { className: "text-s-light text-white opacity-80 mt-2 inline-block", children: ["\u041D\u0430 \u0440\u0438\u0441\u0443\u043D\u043A\u0438 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0430 \u043F\u0430\u0447\u043A\u0430", jsx("br", {}), " \u043B\u0438\u0441\u0442\u043E\u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0430 \u04104"] })] })] }));
|
|
2770
2826
|
});
|
|
2771
2827
|
const renderTotal = (label, total, className = '') => {
|
|
2772
|
-
return (jsxs("div", { className: className, children: [jsx("
|
|
2828
|
+
return (jsxs("div", { className: className, children: [jsx("div", { className: "text-m-light text-secondary-text mb-1", children: label }), jsx("span", { className: "text-h3 text-primary-text", children: total })] }));
|
|
2773
2829
|
};
|
|
2774
2830
|
const calculatePrice = (days, tariffs) => {
|
|
2775
2831
|
const tariffType = getTariffType(days);
|
|
@@ -2940,7 +2996,7 @@
|
|
|
2940
2996
|
const toggleShowMap = () => {
|
|
2941
2997
|
setShowMap(!showMap);
|
|
2942
2998
|
};
|
|
2943
|
-
return (jsxs(BlockWrapper, { context: context, className: className, ...rest, children: [jsxs("div", { className: "bg-white px-8 py-12", children: [title ? (jsx(Heading, { title: title, headingType: "h3", as: "h2", className: "mb-2.5 text-center" })) : null, jsx(SafeDepositRentalForm, { regions: regions, setPoints: setPoints, toggleShowMap: toggleShowMap }), footnote ? jsx("p", { className: "text-s-light text-secondary-text", children: footnote }) : null] }), points.length && showMap ? jsx(YandexMap, { points: points }) : null] }));
|
|
2999
|
+
return (jsxs(BlockWrapper, { context: context, className: className, ...rest, children: [jsxs("div", { className: "font-sans bg-white px-8 py-12", children: [title ? (jsx(Heading, { title: title, headingType: "h3", as: "h2", className: "mb-2.5 text-center" })) : null, jsx(SafeDepositRentalForm, { regions: regions, setPoints: setPoints, toggleShowMap: toggleShowMap }), footnote ? jsx("p", { className: "text-s-light text-secondary-text", children: footnote }) : null] }), points.length && showMap ? jsx(YandexMap, { points: points }) : null] }));
|
|
2944
3000
|
});
|
|
2945
3001
|
|
|
2946
3002
|
const checkIsIconRenderable = (icon) => Boolean(icon?.icon || icon?.src);
|
|
@@ -3021,7 +3077,10 @@
|
|
|
3021
3077
|
const renderTitle = (title, active) => (jsx("h3", { className: `${TEXT_CLASSES} ${active ? ACTIVE_TEXT_CLASSES : INACTIVE_TEXT_CLASSES}`, children: title }));
|
|
3022
3078
|
const renderCount = (count, active) => (jsx("div", { className: `${BADGE_CLASSES} ${active ? ACTIVE_BADGE_CLASSES : INACTIVE_BADGE_CLASSES}`, children: count }));
|
|
3023
3079
|
|
|
3024
|
-
const renderLinkTab = ({ text, onClick, href, target = '_self', i }) =>
|
|
3080
|
+
const renderLinkTab = ({ text, currentTab, onClick, href, target = '_self', i, }) => {
|
|
3081
|
+
const active = currentTab?.type === 'link' && currentTab.href === href;
|
|
3082
|
+
return (jsx("a", { className: `${LINK_CLASSES} ${active ? ACTIVE_LINK_CLASSES : INACTIVE_LINK_CLASSES}`, target: target, href: href, onClick: onClick, children: jsx("span", { className: `${TEXT_CLASSES} ${active ? ACTIVE_TEXT_CLASSES : INACTIVE_TEXT_CLASSES}`, children: text }) }, String(i)));
|
|
3083
|
+
};
|
|
3025
3084
|
|
|
3026
3085
|
const renderTab = ({ onClick, currentTab, showCounter, page, context }) =>
|
|
3027
3086
|
// Linter doesn't understand that switch processes all cases
|
|
@@ -3036,19 +3095,37 @@
|
|
|
3036
3095
|
switch (type) {
|
|
3037
3096
|
case 'group':
|
|
3038
3097
|
return renderGroupTab({ onClick, currentTab, showCounter, page, context })(tab, i);
|
|
3039
|
-
case 'link':
|
|
3098
|
+
case 'link': {
|
|
3099
|
+
const link = useLink({ router, handlerDecorator }, tab);
|
|
3100
|
+
const linkClick = link.onClick;
|
|
3040
3101
|
return renderLinkTab({
|
|
3041
|
-
...
|
|
3102
|
+
...link,
|
|
3103
|
+
onClick: (ev) => {
|
|
3104
|
+
linkClick(ev);
|
|
3105
|
+
onClick(tab);
|
|
3106
|
+
EventBus.inst.fire('anchorClick', { isScrolling: true, label: tab.href });
|
|
3107
|
+
},
|
|
3108
|
+
currentTab,
|
|
3042
3109
|
i,
|
|
3043
3110
|
});
|
|
3111
|
+
}
|
|
3044
3112
|
default:
|
|
3045
3113
|
assertUnreachable(type);
|
|
3046
3114
|
}
|
|
3047
3115
|
};
|
|
3048
3116
|
|
|
3049
3117
|
const Tabs = JSX((props) => {
|
|
3050
|
-
const { context, className, tabs, page, showCounter } = props;
|
|
3118
|
+
const { context, className = '', tabs, page, showCounter, isSticky } = props;
|
|
3051
3119
|
const [currentTab, setCurrentTab] = useState(tabs ? tabs[0] : undefined);
|
|
3120
|
+
useEffect(() => EventBus.inst.subscribe('tab', (event) => {
|
|
3121
|
+
if (!tabs) {
|
|
3122
|
+
return;
|
|
3123
|
+
}
|
|
3124
|
+
const tab = tabs.find(checkTab(event));
|
|
3125
|
+
if (event.type === 'link' && tab) {
|
|
3126
|
+
setCurrentTab(tab);
|
|
3127
|
+
}
|
|
3128
|
+
}), [tabs]);
|
|
3052
3129
|
useEffect(() => {
|
|
3053
3130
|
if (currentTab?.type === 'group') {
|
|
3054
3131
|
return EventBus.inst.subject('tab', { label: currentTab.ref });
|
|
@@ -3058,11 +3135,12 @@
|
|
|
3058
3135
|
const handleClick = (selectedTab) => {
|
|
3059
3136
|
if (selectedTab?.type === 'group') {
|
|
3060
3137
|
EventBus.inst.fire('tab', { type: selectedTab.type, label: selectedTab.ref });
|
|
3061
|
-
setCurrentTab(selectedTab);
|
|
3062
3138
|
}
|
|
3139
|
+
setCurrentTab(selectedTab);
|
|
3063
3140
|
};
|
|
3064
|
-
return (jsx(BlockWrapper, { context: context, className:
|
|
3141
|
+
return (jsx(BlockWrapper, { context: context, className: `${isSticky ? 'sticky top-1 z-20 ' : ''}box-border flex gap-x-1 ${className}`, role: "tablist", children: tabs?.map(renderTab({ onClick: handleClick, currentTab, page, showCounter, context })) }));
|
|
3065
3142
|
});
|
|
3143
|
+
const checkTab = (event) => (_) => _.type === 'link' && _.href === `#${event.label}`;
|
|
3066
3144
|
|
|
3067
3145
|
const DIVIDER_CLASSES = 'border-main-divider border border-t-0 border-x-0';
|
|
3068
3146
|
const FIRST_CELL_CLASSES = 'w-[354px] flex-shrink-0';
|
|
@@ -3295,26 +3373,48 @@
|
|
|
3295
3373
|
return (jsxs(BlockWrapper, { tag: "div", context: context, className: `border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${className || ''}`, ...rest, children: [jsx(LikeButton, { onClick: handlerDecorator(likeService.like), ariaLabel: "\u041F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u043C\u0435\u0442\u043A\u0443 \u00AB\u043B\u0430\u0439\u043A\u00BB" }), jsx(LikeButton, { onClick: handlerDecorator(likeService.dislike), className: "rotate-180", ariaLabel: "\u041F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u043C\u0435\u0442\u043A\u0443 \u00AB\u0434\u0438\u0437\u043B\u0430\u0439\u043A\u00BB" }), jsx("span", { className: "select-none", children: likeService.likeCount })] }));
|
|
3296
3374
|
});
|
|
3297
3375
|
|
|
3298
|
-
const
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
const {
|
|
3302
|
-
return (jsxs("section", { className: `relative ${style2className(pageStyle)} ${className}`, "data-theme": colorPalette, children: [header?.blocks?.length ? (jsx("div", { className: `${style2className(header?.style)}`, children: header.blocks.map((block, i) => renderBlock({ block, page: data, blockDecorator, blocksRegistry, context }, i)) })) : null, blocks?.length ? (jsx("div", { className: "container grid grid-cols-12 gap-1", children: blocks.map((block, i) => renderBlock({ block, blockDecorator, blocksRegistry, context, page: data }, i)) })) : null, likeControl ? (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto", context: context }, "LikeControl") })) : null] }));
|
|
3303
|
-
});
|
|
3304
|
-
function renderBlock({ block, blockDecorator, blocksRegistry, context, page }, i) {
|
|
3376
|
+
const DEFAULT_SLOT_NAME = null;
|
|
3377
|
+
|
|
3378
|
+
function renderBlock(block, options, ancestors = [DEFAULT_SLOT_NAME]) {
|
|
3379
|
+
const { key, page, blockDecorator, blocksRegistry, context } = options;
|
|
3305
3380
|
const { type } = block;
|
|
3306
3381
|
if (!(type && type in blocksRegistry)) {
|
|
3307
3382
|
console.warn(`No block with "${type}" is registered`);
|
|
3308
3383
|
}
|
|
3309
|
-
const BlockComponent = blocksRegistry[type
|
|
3384
|
+
const BlockComponent = type && blocksRegistry[type];
|
|
3310
3385
|
return blockDecorator({
|
|
3311
3386
|
blockClassName: `scroll-mt-12 ${style2className(block.style)}`,
|
|
3312
3387
|
block,
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3388
|
+
ancestors,
|
|
3389
|
+
// Adjusted by decorator block and blockClassName
|
|
3390
|
+
render: ({ block: adjustedBlock, blockClassName: adjustedBlockClassName }) => {
|
|
3391
|
+
const { version, content, anchor, labels, blocks: childBlocks } = adjustedBlock;
|
|
3392
|
+
const children = childBlocks
|
|
3393
|
+
? childBlocks.map((_, j) => renderBlock(_, { ...options, key: `${options.key}-${j}` }, [...ancestors, block]))
|
|
3394
|
+
: null;
|
|
3395
|
+
return BlockComponent ? (jsx(BlockComponent, { className: adjustedBlockClassName, version: version, context: context, page: page, anchor: anchor, labels: labels, ...content, children: children }, key)) : null;
|
|
3316
3396
|
},
|
|
3317
|
-
},
|
|
3397
|
+
}, key);
|
|
3398
|
+
}
|
|
3399
|
+
|
|
3400
|
+
const defaultBlockDecorator = ({ blockClassName, block, render }) => render({ blockClassName, block });
|
|
3401
|
+
const ContentPage = JSX((props) => {
|
|
3402
|
+
const { className = '', context, data = {} } = props;
|
|
3403
|
+
const { style: pageStyle, blocks, slots, likeControl, colorPalette = 'pc' } = data;
|
|
3404
|
+
const blocksListRenderer = renderBlocksList(props);
|
|
3405
|
+
return (jsxs("section", { className: `relative ${style2className(pageStyle)} ${className}`, "data-theme": colorPalette, children: [slots?.header?.blocks?.length ? (jsx("div", { className: `${style2className(slots.header.style)}`, children: blocksListRenderer(slots.header.blocks, ['header']) })) : null, blocks?.length ? (jsx("div", { className: "container grid grid-cols-12 gap-1", children: blocksListRenderer(blocks) })) : null, likeControl ? renderLikeControl(context) : null] }));
|
|
3406
|
+
});
|
|
3407
|
+
function renderBlocksList({ blocksRegistry, data, blockDecorator, context }) {
|
|
3408
|
+
return (blocks, ancestors) => blocks.map((block, i) => renderBlock(block, {
|
|
3409
|
+
key: `${block.type || '#'}-${i}`,
|
|
3410
|
+
blocksRegistry,
|
|
3411
|
+
page: data || {},
|
|
3412
|
+
blockDecorator: blockDecorator || defaultBlockDecorator,
|
|
3413
|
+
context,
|
|
3414
|
+
}, ancestors));
|
|
3415
|
+
}
|
|
3416
|
+
function renderLikeControl(context) {
|
|
3417
|
+
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto", context: context }, "LikeControl") }));
|
|
3318
3418
|
}
|
|
3319
3419
|
|
|
3320
3420
|
exports.Blocks = Blocks;
|