@redneckz/wildless-cms-uni-blocks 0.5.13 → 0.5.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +834 -697
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Accordion/Accordion.d.ts +2 -2
- package/bundle/components/Accordion/Accordion.mobile.d.ts +2 -2
- package/bundle/components/Accordion/AccordionContent.d.ts +0 -26
- package/bundle/components/AccordionItem/AccordionItem.d.ts +3 -0
- package/bundle/components/AccordionItem/AccordionItem.mobile.d.ts +3 -0
- package/bundle/components/AccordionItem/AccordionItemContent.d.ts +14 -0
- package/bundle/components/AccordionItem/AccordionItemProps.d.ts +4 -0
- package/bundle/components/BaseTile/BaseTile.d.ts +1 -1
- package/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/bundle/components/Blocks.d.ts +6 -3
- package/bundle/components/Blocks.mobile.d.ts +2 -1
- package/bundle/components/Bonus/Bonus.d.ts +1 -1
- package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +1 -1
- package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +10 -1
- package/bundle/components/Calculator/BonusCalculatorForm.d.ts +1 -1
- package/bundle/components/Calculator/Calculator.d.ts +1 -1
- package/bundle/components/Calculator/CreditCalculatorForm.d.ts +1 -1
- package/bundle/components/Calculator/DepositCalculatorForm.d.ts +1 -1
- package/bundle/components/Calculator/renderButtonSection.d.ts +3 -1
- package/bundle/components/Calculator/renderFootnote.d.ts +1 -1
- package/bundle/components/Calculator/renderInitialFeeInput.d.ts +1 -1
- package/bundle/components/Calculator/renderMonthsInput.d.ts +1 -1
- package/bundle/components/Calculator/renderPaymentTypeSelector.d.ts +10 -5
- package/bundle/components/Calculator/renderRealEstateValue.d.ts +1 -1
- package/bundle/components/Calculator/renderWantedSumInput.d.ts +1 -1
- package/bundle/components/CardTransfer/CardTransfer.d.ts +1 -1
- package/bundle/components/Catalog/Catalog.d.ts +1 -1
- package/bundle/components/Catalog/CatalogCard.d.ts +1 -1
- package/bundle/components/ComparisonTable/ComparisonTable.d.ts +1 -1
- package/bundle/components/ComparisonTable/ComparisonTable.mobile.d.ts +1 -1
- package/bundle/components/ComparisonTable/TableColumn.d.ts +1 -1
- package/bundle/components/ContentPage/ContentPage.d.ts +2 -1
- package/bundle/components/ErrorBlock/ErrorBlock.d.ts +1 -1
- package/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
- package/bundle/components/ExchangeRateTile/ExchangeRateTile.d.ts +1 -1
- package/bundle/components/Footer/Contacts.d.ts +1 -1
- package/bundle/components/Footer/Footer.d.ts +1 -1
- package/bundle/components/Footer/Footer.mobile.d.ts +1 -1
- package/bundle/components/Footer/FooterLink.d.ts +1 -1
- package/bundle/components/Footer/HorizontalNavigation.d.ts +1 -1
- package/bundle/components/Footer/HorizontalNavigation.mobile.d.ts +1 -1
- package/bundle/components/Footer/Sitemap.d.ts +2 -2
- package/bundle/components/Footer/SocialMedia.d.ts +1 -1
- package/bundle/components/Footer/SocialMedia.mobile.d.ts +1 -1
- package/bundle/components/Gallery/GalleryInner.d.ts +1 -1
- package/bundle/components/Gallery/GalleryProps.d.ts +1 -1
- package/bundle/components/GracePeriod/GracePeriod.d.ts +1 -1
- package/bundle/components/GracePeriod/GracePeriodContent.d.ts +3 -3
- package/bundle/components/Header/DropdownMenu.d.ts +1 -1
- package/bundle/components/Header/Header.d.ts +1 -1
- package/bundle/components/Header/Header.mobile.d.ts +1 -1
- package/bundle/components/Headline/Headline.d.ts +1 -1
- package/bundle/components/Headline/Headline.mobile.d.ts +1 -1
- package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +1 -1
- package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +1 -1
- package/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +1 -1
- package/bundle/components/LikeControl/LikeControl.d.ts +1 -1
- package/bundle/components/LinkDocs/LinkDocs.d.ts +1 -1
- package/bundle/components/LinkDocs/LinkDocs.mobile.d.ts +1 -1
- package/bundle/components/LinkList/LinkList.d.ts +1 -1
- package/bundle/components/MiniGallery/MiniGallery.d.ts +1 -1
- package/bundle/components/MobileAppTile/MobileAppTile.d.ts +1 -1
- package/bundle/components/MobileAppTile/MobileAppTile.mobile.d.ts +1 -1
- package/bundle/components/OfficeMap/OfficeMap.d.ts +2 -0
- package/bundle/components/OfficeMap/OfficeMapContent.d.ts +34 -0
- package/bundle/components/OfficeMap/YandexMap.d.ts +5 -0
- package/bundle/components/OfficeMap/mockOfficeMap.d.ts +57 -0
- package/bundle/components/OfficeMap/renderFunctions.d.ts +5 -0
- package/bundle/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +1 -1
- package/bundle/components/OtherProducts/OtherProducts.d.ts +2 -2
- package/bundle/components/OtherProducts/OtherProductsContent.d.ts +2 -19
- package/bundle/components/OtherProductsItem/OtherProductsItem.d.ts +5 -0
- package/bundle/components/OtherProductsItem/OtherProductsItemContent.d.ts +12 -0
- package/bundle/components/PictureText/PictureText.d.ts +1 -1
- package/bundle/components/Placeholder/Placeholder.d.ts +1 -1
- package/bundle/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/bundle/components/ProductBlock/ProductBlock.mobile.d.ts +1 -1
- package/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/bundle/components/ProductBlock/ProductBlockInner.d.ts +1 -1
- package/bundle/components/ProductBlock/ProductBlockInner.mobile.d.ts +1 -1
- package/bundle/components/ProductGallery/ProductGallery.d.ts +1 -1
- package/bundle/components/ProductGallery/ProductGallery.mobile.d.ts +1 -1
- package/bundle/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
- package/bundle/components/ProductGallery/ProductGalleryContent.d.ts +2 -3
- package/bundle/components/ProductTile/ProductTile.d.ts +1 -1
- package/bundle/components/PromoTile/PromoTile.d.ts +1 -1
- package/bundle/components/Recommendation/Recommendation.d.ts +1 -1
- package/bundle/components/Recommendation/RecommendationCard.d.ts +1 -1
- package/bundle/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
- package/bundle/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/bundle/components/StepsBlock/StepsBlock.mobile.d.ts +1 -1
- package/bundle/components/Tabs/Tabs.d.ts +1 -1
- package/bundle/components/TariffsTable/TariffsTable.d.ts +1 -1
- package/bundle/components/TariffsTable/TariffsTable.mobile.d.ts +1 -1
- package/bundle/components/TariffsTable/TariffsTableCell.d.ts +1 -1
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +14 -0
- package/bundle/components/TariffsTable/TariffsTableHorizontal.d.ts +2 -6
- package/bundle/components/TariffsTable/TariffsTableRow.d.ts +1 -1
- package/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -1
- package/bundle/components/TariffsTable/TariffsTableTileCell.d.ts +2 -3
- package/bundle/components/TariffsTable/TariffsTableVertical.d.ts +2 -6
- package/bundle/components/TextBlock/TextBlock.d.ts +1 -1
- package/bundle/components/TextBlock/TextBlock.mobile.d.ts +1 -1
- package/bundle/components/Tile/Tile.d.ts +1 -1
- package/bundle/hooks/useOfficeMap.d.ts +3 -0
- package/bundle/icons/IconName.d.ts +4 -2
- package/bundle/index.d.ts +1 -0
- package/bundle/model/BlocksRegistry.d.ts +1 -7
- package/bundle/model/ContentPageDef.d.ts +0 -8
- package/bundle/model/JSXBlock.d.ts +17 -0
- package/bundle/model/getParentBlockContent.d.ts +2 -0
- package/bundle/model/getParentBlockDef.d.ts +3 -0
- package/bundle/ui-kit/BlockWrapper.d.ts +1 -1
- package/bundle/ui-kit/Button/ButtonSection.d.ts +1 -1
- package/bundle/ui-kit/Img/getIconVersion.d.ts +2 -1
- package/bundle/ui-kit/InnerTable/InnerTable.d.ts +1 -1
- package/bundle/ui-kit/InnerTable/InnerTableBody.d.ts +1 -1
- package/bundle/ui-kit/InnerTable/InnerTableBodyItem.d.ts +1 -1
- package/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
- package/bundle/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -2
- package/bundle/ui-kit/SearchBar/SearchBar.d.ts +1 -1
- package/bundle/ui-kit/SearchBar/SearchBar.mobile.d.ts +1 -1
- package/bundle/ui-kit/SwipeListControl/SwipeListControlList.d.ts +2 -1
- package/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +1 -1
- package/cosmos-static/icons/MetroIcon.svg +1 -0
- package/dist/components/Accordion/Accordion.d.ts +2 -2
- package/dist/components/Accordion/Accordion.js +2 -5
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/Accordion.mobile.d.ts +2 -2
- package/dist/components/Accordion/Accordion.mobile.js +2 -5
- package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
- package/dist/components/Accordion/AccordionContent.d.ts +0 -26
- package/dist/components/AccordionItem/AccordionItem.d.ts +3 -0
- package/dist/components/AccordionItem/AccordionItem.js +12 -0
- package/dist/components/AccordionItem/AccordionItem.js.map +1 -0
- package/dist/components/AccordionItem/AccordionItem.mobile.d.ts +3 -0
- package/dist/components/AccordionItem/AccordionItem.mobile.js +16 -0
- package/dist/components/AccordionItem/AccordionItem.mobile.js.map +1 -0
- package/dist/components/AccordionItem/AccordionItemContent.d.ts +14 -0
- package/dist/components/AccordionItem/AccordionItemContent.js +2 -0
- package/dist/components/AccordionItem/AccordionItemContent.js.map +1 -0
- package/dist/components/AccordionItem/AccordionItemProps.d.ts +4 -0
- package/dist/components/{Accordion → AccordionItem}/AccordionItemProps.js +0 -0
- package/dist/components/AccordionItem/AccordionItemProps.js.map +1 -0
- package/dist/components/BaseTile/BaseTile.d.ts +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/dist/components/Blocks.d.ts +6 -3
- package/dist/components/Blocks.js +7 -1
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.d.ts +2 -1
- package/dist/components/Blocks.mobile.js +2 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Bonus/Bonus.d.ts +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +10 -1
- package/dist/components/Calculator/BonusCalculatorForm.d.ts +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 +2 -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 -1
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/renderButtonSection.d.ts +3 -1
- package/dist/components/Calculator/renderButtonSection.js.map +1 -1
- package/dist/components/Calculator/renderFootnote.d.ts +1 -1
- package/dist/components/Calculator/renderFootnote.js.map +1 -1
- package/dist/components/Calculator/renderInitialFeeInput.d.ts +1 -1
- package/dist/components/Calculator/renderInitialFeeInput.js +1 -1
- package/dist/components/Calculator/renderInitialFeeInput.js.map +1 -1
- package/dist/components/Calculator/renderMonthsInput.d.ts +1 -1
- package/dist/components/Calculator/renderMonthsInput.js.map +1 -1
- package/dist/components/Calculator/renderPaymentTypeSelector.d.ts +10 -5
- package/dist/components/Calculator/renderPaymentTypeSelector.js +2 -2
- package/dist/components/Calculator/renderPaymentTypeSelector.js.map +1 -1
- package/dist/components/Calculator/renderRealEstateValue.d.ts +1 -1
- package/dist/components/Calculator/renderRealEstateValue.js +1 -1
- package/dist/components/Calculator/renderRealEstateValue.js.map +1 -1
- package/dist/components/Calculator/renderWantedSumInput.d.ts +1 -1
- package/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
- package/dist/components/CardTransfer/CardTransfer.d.ts +1 -1
- package/dist/components/CardTransfer/CardTransfer.js +3 -3
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/Catalog/Catalog.d.ts +1 -1
- package/dist/components/Catalog/CatalogCard.d.ts +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 +1 -1
- package/dist/components/ContentPage/ContentPage.d.ts +2 -1
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ContentPage/renderBlock.js +7 -6
- package/dist/components/ContentPage/renderBlock.js.map +1 -1
- package/dist/components/ErrorBlock/ErrorBlock.d.ts +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 +1 -2
- package/dist/components/ExchangeRateTile/ExchangeRateTile.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/Footer.mobile.js +1 -1
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/FooterLink.d.ts +1 -1
- package/dist/components/Footer/HorizontalNavigation.d.ts +1 -1
- package/dist/components/Footer/HorizontalNavigation.mobile.d.ts +1 -1
- package/dist/components/Footer/Sitemap.d.ts +2 -2
- package/dist/components/Footer/Sitemap.js +3 -3
- 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/Gallery.mobile.js +1 -1
- package/dist/components/Gallery/Gallery.mobile.js.map +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 +4 -3
- package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriodContent.d.ts +3 -3
- package/dist/components/Header/DropdownMenu.d.ts +1 -1
- package/dist/components/Header/DropdownMenu.js.map +1 -1
- package/dist/components/Header/Header.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 +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.mobile.d.ts +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.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/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.mobile.d.ts +1 -1
- package/dist/components/OfficeMap/OfficeMap.d.ts +2 -0
- package/dist/components/OfficeMap/OfficeMap.js +45 -0
- package/dist/components/OfficeMap/OfficeMap.js.map +1 -0
- package/dist/components/OfficeMap/OfficeMapContent.d.ts +34 -0
- package/dist/components/OfficeMap/OfficeMapContent.js +2 -0
- package/dist/components/OfficeMap/OfficeMapContent.js.map +1 -0
- package/dist/components/OfficeMap/YandexMap.d.ts +5 -0
- package/dist/components/OfficeMap/YandexMap.js +30 -0
- package/dist/components/OfficeMap/YandexMap.js.map +1 -0
- package/dist/components/OfficeMap/mockOfficeMap.d.ts +57 -0
- package/dist/components/OfficeMap/mockOfficeMap.js +82 -0
- package/dist/components/OfficeMap/mockOfficeMap.js.map +1 -0
- package/dist/components/OfficeMap/renderFunctions.d.ts +5 -0
- package/dist/components/OfficeMap/renderFunctions.js +19 -0
- package/dist/components/OfficeMap/renderFunctions.js.map +1 -0
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +1 -1
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/dist/components/OtherProducts/OtherProducts.d.ts +2 -2
- package/dist/components/OtherProducts/OtherProducts.js +2 -4
- package/dist/components/OtherProducts/OtherProducts.js.map +1 -1
- package/dist/components/OtherProducts/OtherProductsContent.d.ts +2 -19
- package/dist/components/OtherProductsItem/OtherProductsItem.d.ts +5 -0
- package/dist/components/OtherProductsItem/OtherProductsItem.js +15 -0
- package/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -0
- package/dist/components/OtherProductsItem/OtherProductsItemContent.d.ts +12 -0
- package/dist/components/OtherProductsItem/OtherProductsItemContent.js +2 -0
- package/dist/components/OtherProductsItem/OtherProductsItemContent.js.map +1 -0
- package/dist/components/PictureText/PictureText.d.ts +1 -1
- package/dist/components/Placeholder/Placeholder.d.ts +1 -1
- package/dist/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/dist/components/ProductBlock/ProductBlock.mobile.d.ts +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.d.ts +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +4 -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.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.d.ts +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +1 -1
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.mobile.d.ts +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
- package/dist/components/ProductGallery/ProductGalleryContent.d.ts +2 -3
- package/dist/components/ProductTile/ProductTile.d.ts +1 -1
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/PromoTile/PromoTile.d.ts +1 -1
- package/dist/components/Recommendation/Recommendation.d.ts +1 -1
- package/dist/components/Recommendation/Recommendation.js +2 -2
- package/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/dist/components/Recommendation/RecommendationCard.d.ts +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +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.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tabs/renderGroupTab.js +4 -4
- package/dist/components/Tabs/renderGroupTab.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/TariffsTable.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.d.ts +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +14 -0
- package/dist/components/TariffsTable/TariffsTableHorizontal.d.ts +2 -6
- package/dist/components/TariffsTable/TariffsTableHorizontal.js +1 -1
- package/dist/components/TariffsTable/TariffsTableHorizontal.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.d.ts +1 -1
- package/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -1
- package/dist/components/TariffsTable/TariffsTableTileCell.d.ts +2 -3
- package/dist/components/TariffsTable/TariffsTableTileCell.js +2 -2
- package/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableVertical.d.ts +2 -6
- package/dist/components/TariffsTable/TariffsTableVertical.js +1 -1
- package/dist/components/TariffsTable/TariffsTableVertical.js.map +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/components/Tile/Tile.js +2 -2
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/hooks/useOfficeMap.d.ts +3 -0
- package/dist/hooks/useOfficeMap.js +19 -0
- package/dist/hooks/useOfficeMap.js.map +1 -0
- package/dist/icons/IconName.d.ts +4 -2
- package/dist/icons/IconName.js +2 -0
- package/dist/icons/IconName.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/model/BlocksRegistry.d.ts +1 -7
- package/dist/model/ContentPageDef.d.ts +0 -8
- package/dist/model/JSXBlock.d.ts +17 -0
- package/dist/{ui-kit/BlocksList/BlocksListProps.js → model/JSXBlock.js} +1 -1
- package/dist/model/JSXBlock.js.map +1 -0
- package/dist/model/getParentBlockContent.d.ts +2 -0
- package/dist/model/getParentBlockContent.js +9 -0
- package/dist/model/getParentBlockContent.js.map +1 -0
- package/dist/model/getParentBlockDef.d.ts +3 -0
- package/dist/model/getParentBlockDef.js +8 -0
- package/dist/model/getParentBlockDef.js.map +1 -0
- package/dist/ui-kit/BenefitItem/BenefitItem.js +2 -2
- package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/dist/ui-kit/BlockWrapper.d.ts +1 -1
- package/dist/ui-kit/BlockWrapper.js +3 -1
- package/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/dist/ui-kit/Button/ButtonSection.d.ts +1 -1
- package/dist/ui-kit/Foldable/FoldableSection.js +1 -1
- package/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
- package/dist/ui-kit/Img/getIconVersion.d.ts +2 -1
- package/dist/ui-kit/Img/getIconVersion.js +1 -1
- package/dist/ui-kit/Img/getIconVersion.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/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -2
- 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.js +1 -1
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlList.d.ts +2 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.d.ts +2 -2
- package/lib/components/Accordion/Accordion.fixture.d.ts +1 -0
- package/lib/components/Accordion/Accordion.fixture.mobile.d.ts +1 -0
- package/lib/components/Accordion/Accordion.js +2 -5
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/Accordion.mobile.d.ts +2 -2
- package/lib/components/Accordion/Accordion.mobile.js +2 -5
- package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
- package/lib/components/Accordion/AccordionContent.d.ts +0 -26
- package/lib/components/AccordionItem/AccordionItem.d.ts +3 -0
- package/lib/components/AccordionItem/AccordionItem.fixture.d.ts +5 -0
- package/lib/components/AccordionItem/AccordionItem.fixture.mobile.d.ts +5 -0
- package/lib/components/AccordionItem/AccordionItem.js +10 -0
- package/lib/components/AccordionItem/AccordionItem.js.map +1 -0
- package/lib/components/AccordionItem/AccordionItem.mobile.d.ts +3 -0
- package/lib/components/AccordionItem/AccordionItem.mobile.js +14 -0
- package/lib/components/AccordionItem/AccordionItem.mobile.js.map +1 -0
- package/lib/components/AccordionItem/AccordionItemContent.d.ts +14 -0
- package/lib/components/AccordionItem/AccordionItemContent.js +2 -0
- package/lib/components/AccordionItem/AccordionItemContent.js.map +1 -0
- package/lib/components/AccordionItem/AccordionItemProps.d.ts +4 -0
- package/lib/components/{Accordion → AccordionItem}/AccordionItemProps.js +0 -0
- package/lib/components/AccordionItem/AccordionItemProps.js.map +1 -0
- package/lib/components/BaseTile/BaseTile.d.ts +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/lib/components/Blocks.d.ts +6 -3
- package/lib/components/Blocks.js +7 -1
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.d.ts +2 -1
- package/lib/components/Blocks.mobile.js +2 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Bonus/Bonus.d.ts +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.d.ts +1 -0
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +10 -1
- package/lib/components/Calculator/BonusCalculatorForm.d.ts +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 +2 -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 -1
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/renderButtonSection.d.ts +3 -1
- package/lib/components/Calculator/renderButtonSection.js.map +1 -1
- package/lib/components/Calculator/renderFootnote.d.ts +1 -1
- package/lib/components/Calculator/renderFootnote.js.map +1 -1
- package/lib/components/Calculator/renderInitialFeeInput.d.ts +1 -1
- package/lib/components/Calculator/renderInitialFeeInput.js +1 -1
- package/lib/components/Calculator/renderInitialFeeInput.js.map +1 -1
- package/lib/components/Calculator/renderMonthsInput.d.ts +1 -1
- package/lib/components/Calculator/renderMonthsInput.js.map +1 -1
- package/lib/components/Calculator/renderPaymentTypeSelector.d.ts +10 -5
- package/lib/components/Calculator/renderPaymentTypeSelector.js +2 -2
- package/lib/components/Calculator/renderPaymentTypeSelector.js.map +1 -1
- package/lib/components/Calculator/renderRealEstateValue.d.ts +1 -1
- package/lib/components/Calculator/renderRealEstateValue.js +1 -1
- package/lib/components/Calculator/renderRealEstateValue.js.map +1 -1
- package/lib/components/Calculator/renderWantedSumInput.d.ts +1 -1
- package/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
- package/lib/components/CardTransfer/CardTransfer.d.ts +1 -1
- package/lib/components/CardTransfer/CardTransfer.js +3 -3
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/Catalog/Catalog.d.ts +1 -1
- package/lib/components/Catalog/CatalogCard.d.ts +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 +1 -1
- package/lib/components/ContentPage/ContentPage.d.ts +2 -1
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ContentPage/renderBlock.js +7 -6
- package/lib/components/ContentPage/renderBlock.js.map +1 -1
- package/lib/components/ErrorBlock/ErrorBlock.d.ts +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 +1 -2
- package/lib/components/ExchangeRateTile/ExchangeRateTile.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/Footer.mobile.js +1 -1
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/FooterLink.d.ts +1 -1
- package/lib/components/Footer/HorizontalNavigation.d.ts +1 -1
- package/lib/components/Footer/HorizontalNavigation.mobile.d.ts +1 -1
- package/lib/components/Footer/Sitemap.d.ts +2 -2
- package/lib/components/Footer/Sitemap.js +3 -3
- 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/Gallery.mobile.js +1 -1
- package/lib/components/Gallery/Gallery.mobile.js.map +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 +4 -3
- package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriodContent.d.ts +3 -3
- package/lib/components/Header/DropdownMenu.d.ts +1 -1
- package/lib/components/Header/DropdownMenu.js.map +1 -1
- package/lib/components/Header/Header.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 +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.mobile.d.ts +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.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/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.mobile.d.ts +1 -1
- package/lib/components/OfficeMap/OfficeMap.d.ts +2 -0
- package/lib/components/OfficeMap/OfficeMap.fixture.d.ts +5 -0
- package/lib/components/OfficeMap/OfficeMap.js +43 -0
- package/lib/components/OfficeMap/OfficeMap.js.map +1 -0
- package/lib/components/OfficeMap/OfficeMapContent.d.ts +34 -0
- package/lib/components/OfficeMap/OfficeMapContent.js +2 -0
- package/lib/components/OfficeMap/OfficeMapContent.js.map +1 -0
- package/lib/components/OfficeMap/YandexMap.d.ts +5 -0
- package/lib/components/OfficeMap/YandexMap.js +28 -0
- package/lib/components/OfficeMap/YandexMap.js.map +1 -0
- package/lib/components/OfficeMap/mockOfficeMap.d.ts +57 -0
- package/lib/components/OfficeMap/mockOfficeMap.js +80 -0
- package/lib/components/OfficeMap/mockOfficeMap.js.map +1 -0
- package/lib/components/OfficeMap/renderFunctions.d.ts +5 -0
- package/lib/components/OfficeMap/renderFunctions.js +14 -0
- package/lib/components/OfficeMap/renderFunctions.js.map +1 -0
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +1 -1
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/lib/components/OtherProducts/OtherProducts.d.ts +2 -2
- package/lib/components/OtherProducts/OtherProducts.fixture.d.ts +1 -0
- package/lib/components/OtherProducts/OtherProducts.js +2 -4
- package/lib/components/OtherProducts/OtherProducts.js.map +1 -1
- package/lib/components/OtherProducts/OtherProductsContent.d.ts +2 -19
- package/lib/components/OtherProductsItem/OtherProductsItem.d.ts +5 -0
- package/lib/components/OtherProductsItem/OtherProductsItem.fixture.d.ts +5 -0
- package/lib/components/OtherProductsItem/OtherProductsItem.js +13 -0
- package/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -0
- package/lib/components/OtherProductsItem/OtherProductsItemContent.d.ts +12 -0
- package/lib/components/OtherProductsItem/OtherProductsItemContent.js +2 -0
- package/lib/components/OtherProductsItem/OtherProductsItemContent.js.map +1 -0
- package/lib/components/PictureText/PictureText.d.ts +1 -1
- package/lib/components/Placeholder/Placeholder.d.ts +1 -1
- package/lib/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/lib/components/ProductBlock/ProductBlock.mobile.d.ts +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.d.ts +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +4 -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.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.d.ts +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +1 -1
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.mobile.d.ts +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
- package/lib/components/ProductGallery/ProductGalleryContent.d.ts +2 -3
- package/lib/components/ProductTile/ProductTile.d.ts +1 -1
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/PromoTile/PromoTile.d.ts +1 -1
- package/lib/components/Recommendation/Recommendation.d.ts +1 -1
- package/lib/components/Recommendation/Recommendation.js +2 -2
- package/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/lib/components/Recommendation/RecommendationCard.d.ts +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +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.map +1 -1
- package/lib/components/Tabs/Tabs.d.ts +1 -1
- package/lib/components/Tabs/renderGroupTab.js +4 -4
- package/lib/components/Tabs/renderGroupTab.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/TariffsTable.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +14 -0
- package/lib/components/TariffsTable/TariffsTableHorizontal.d.ts +2 -6
- package/lib/components/TariffsTable/TariffsTableHorizontal.js +1 -1
- package/lib/components/TariffsTable/TariffsTableHorizontal.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTableTileCell.d.ts +2 -3
- package/lib/components/TariffsTable/TariffsTableTileCell.js +2 -2
- package/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableVertical.d.ts +2 -6
- package/lib/components/TariffsTable/TariffsTableVertical.js +1 -1
- package/lib/components/TariffsTable/TariffsTableVertical.js.map +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/components/Tile/Tile.js +2 -2
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/hooks/useOfficeMap.d.ts +3 -0
- package/lib/hooks/useOfficeMap.js +16 -0
- package/lib/hooks/useOfficeMap.js.map +1 -0
- package/lib/icons/IconName.d.ts +4 -2
- package/lib/icons/IconName.js +2 -0
- package/lib/icons/IconName.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/model/BlocksRegistry.d.ts +1 -7
- package/lib/model/ContentPageDef.d.ts +0 -8
- package/lib/model/JSXBlock.d.ts +17 -0
- package/lib/model/JSXBlock.js +2 -0
- package/lib/model/JSXBlock.js.map +1 -0
- package/lib/model/getParentBlockContent.d.ts +2 -0
- package/lib/model/getParentBlockContent.js +6 -0
- package/lib/model/getParentBlockContent.js.map +1 -0
- package/lib/model/getParentBlockDef.d.ts +3 -0
- package/lib/model/getParentBlockDef.js +5 -0
- package/lib/model/getParentBlockDef.js.map +1 -0
- package/lib/ui-kit/BenefitItem/BenefitItem.js +2 -2
- package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/lib/ui-kit/BlockWrapper.d.ts +1 -1
- package/lib/ui-kit/BlockWrapper.js +3 -1
- package/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/lib/ui-kit/Button/ButtonSection.d.ts +1 -1
- package/lib/ui-kit/Foldable/FoldableSection.js +1 -1
- package/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
- package/lib/ui-kit/Img/getIconVersion.d.ts +2 -1
- package/lib/ui-kit/Img/getIconVersion.js +1 -1
- package/lib/ui-kit/Img/getIconVersion.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/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -2
- 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.js +2 -2
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlList.d.ts +2 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +539 -547
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Accordion/Accordion.d.ts +2 -2
- package/mobile/bundle/components/Accordion/AccordionContent.d.ts +0 -26
- package/mobile/bundle/components/AccordionItem/AccordionItem.d.ts +3 -0
- package/mobile/bundle/components/AccordionItem/AccordionItemContent.d.ts +14 -0
- package/mobile/bundle/components/AccordionItem/AccordionItemProps.d.ts +4 -0
- package/mobile/bundle/components/BaseTile/BaseTile.d.ts +1 -1
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/mobile/bundle/components/Blocks.d.ts +2 -1
- package/mobile/bundle/components/Bonus/Bonus.d.ts +1 -1
- package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +1 -1
- package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +10 -1
- package/mobile/bundle/components/Calculator/BonusCalculatorForm.d.ts +1 -1
- package/mobile/bundle/components/Calculator/Calculator.d.ts +1 -1
- package/mobile/bundle/components/Calculator/CreditCalculatorForm.d.ts +1 -1
- package/mobile/bundle/components/Calculator/DepositCalculatorForm.d.ts +1 -1
- package/mobile/bundle/components/Calculator/renderButtonSection.d.ts +3 -1
- package/mobile/bundle/components/Calculator/renderFootnote.d.ts +1 -1
- package/mobile/bundle/components/Calculator/renderInitialFeeInput.d.ts +1 -1
- package/mobile/bundle/components/Calculator/renderMonthsInput.d.ts +1 -1
- package/mobile/bundle/components/Calculator/renderPaymentTypeSelector.d.ts +10 -5
- package/mobile/bundle/components/Calculator/renderRealEstateValue.d.ts +1 -1
- package/mobile/bundle/components/Calculator/renderWantedSumInput.d.ts +1 -1
- package/mobile/bundle/components/CardTransfer/CardTransfer.d.ts +1 -1
- package/mobile/bundle/components/Catalog/Catalog.d.ts +1 -1
- package/mobile/bundle/components/Catalog/CatalogCard.d.ts +1 -1
- package/mobile/bundle/components/ComparisonTable/ComparisonTable.d.ts +1 -1
- package/mobile/bundle/components/ComparisonTable/TableColumn.d.ts +1 -1
- package/mobile/bundle/components/ContentPage/ContentPage.d.ts +2 -1
- package/mobile/bundle/components/ErrorBlock/ErrorBlock.d.ts +1 -1
- package/mobile/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
- package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTile.d.ts +1 -1
- package/mobile/bundle/components/Footer/Contacts.d.ts +1 -1
- package/mobile/bundle/components/Footer/Footer.d.ts +1 -1
- package/mobile/bundle/components/Footer/FooterLink.d.ts +1 -1
- package/mobile/bundle/components/Footer/HorizontalNavigation.d.ts +1 -1
- package/mobile/bundle/components/Footer/Sitemap.d.ts +2 -2
- package/mobile/bundle/components/Footer/SocialMedia.d.ts +1 -1
- package/mobile/bundle/components/Gallery/GalleryInner.d.ts +1 -1
- package/mobile/bundle/components/Gallery/GalleryProps.d.ts +1 -1
- package/mobile/bundle/components/GracePeriod/GracePeriod.d.ts +1 -1
- package/mobile/bundle/components/GracePeriod/GracePeriodContent.d.ts +3 -3
- package/mobile/bundle/components/Header/DropdownMenu.d.ts +1 -1
- package/mobile/bundle/components/Header/Header.d.ts +1 -1
- package/mobile/bundle/components/Headline/Headline.d.ts +1 -1
- package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +1 -1
- package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +1 -1
- package/mobile/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +1 -1
- package/mobile/bundle/components/LikeControl/LikeControl.d.ts +1 -1
- package/mobile/bundle/components/LinkDocs/LinkDocs.d.ts +1 -1
- package/mobile/bundle/components/LinkList/LinkList.d.ts +1 -1
- package/mobile/bundle/components/MiniGallery/MiniGallery.d.ts +1 -1
- package/mobile/bundle/components/MobileAppTile/MobileAppTile.d.ts +1 -1
- package/mobile/bundle/components/OfficeMap/OfficeMap.d.ts +2 -0
- package/mobile/bundle/components/OfficeMap/OfficeMapContent.d.ts +34 -0
- package/mobile/bundle/components/OfficeMap/YandexMap.d.ts +5 -0
- package/mobile/bundle/components/OfficeMap/mockOfficeMap.d.ts +57 -0
- package/mobile/bundle/components/OfficeMap/renderFunctions.d.ts +5 -0
- package/mobile/bundle/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +1 -1
- package/mobile/bundle/components/OtherProducts/OtherProducts.d.ts +2 -2
- package/mobile/bundle/components/OtherProducts/OtherProductsContent.d.ts +2 -19
- package/mobile/bundle/components/OtherProductsItem/OtherProductsItem.d.ts +5 -0
- package/mobile/bundle/components/OtherProductsItem/OtherProductsItemContent.d.ts +12 -0
- package/mobile/bundle/components/PictureText/PictureText.d.ts +1 -1
- package/mobile/bundle/components/Placeholder/Placeholder.d.ts +1 -1
- package/mobile/bundle/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/mobile/bundle/components/ProductBlock/ProductBlockInner.d.ts +1 -1
- package/mobile/bundle/components/ProductGallery/ProductGallery.d.ts +1 -1
- package/mobile/bundle/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
- package/mobile/bundle/components/ProductGallery/ProductGalleryContent.d.ts +2 -3
- package/mobile/bundle/components/ProductTile/ProductTile.d.ts +1 -1
- package/mobile/bundle/components/PromoTile/PromoTile.d.ts +1 -1
- package/mobile/bundle/components/Recommendation/Recommendation.d.ts +1 -1
- package/mobile/bundle/components/Recommendation/RecommendationCard.d.ts +1 -1
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
- package/mobile/bundle/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/mobile/bundle/components/Tabs/Tabs.d.ts +1 -1
- package/mobile/bundle/components/TariffsTable/TariffsTable.d.ts +1 -1
- package/mobile/bundle/components/TariffsTable/TariffsTableCell.d.ts +1 -1
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +14 -0
- package/mobile/bundle/components/TariffsTable/TariffsTableHorizontal.d.ts +2 -6
- package/mobile/bundle/components/TariffsTable/TariffsTableRow.d.ts +1 -1
- package/mobile/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -1
- package/mobile/bundle/components/TariffsTable/TariffsTableTileCell.d.ts +2 -3
- package/mobile/bundle/components/TariffsTable/TariffsTableVertical.d.ts +2 -6
- package/mobile/bundle/components/TextBlock/TextBlock.d.ts +1 -1
- package/mobile/bundle/components/Tile/Tile.d.ts +1 -1
- package/mobile/bundle/hooks/useOfficeMap.d.ts +3 -0
- package/mobile/bundle/icons/IconName.d.ts +4 -2
- package/mobile/bundle/index.d.ts +1 -0
- package/mobile/bundle/model/BlocksRegistry.d.ts +1 -7
- package/mobile/bundle/model/ContentPageDef.d.ts +0 -8
- package/mobile/bundle/model/JSXBlock.d.ts +17 -0
- package/mobile/bundle/model/getParentBlockContent.d.ts +2 -0
- package/mobile/bundle/model/getParentBlockDef.d.ts +3 -0
- package/mobile/bundle/ui-kit/BlockWrapper.d.ts +1 -1
- package/mobile/bundle/ui-kit/Button/ButtonSection.d.ts +1 -1
- package/mobile/bundle/ui-kit/Img/getIconVersion.d.ts +2 -1
- package/mobile/bundle/ui-kit/InnerTable/InnerTable.d.ts +1 -1
- package/mobile/bundle/ui-kit/InnerTable/InnerTableBody.d.ts +1 -1
- package/mobile/bundle/ui-kit/InnerTable/InnerTableBodyItem.d.ts +1 -1
- package/mobile/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
- package/mobile/bundle/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -2
- package/mobile/bundle/ui-kit/SearchBar/SearchBar.d.ts +1 -1
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlList.d.ts +2 -1
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +1 -1
- package/mobile/dist/components/Accordion/Accordion.d.ts +2 -2
- package/mobile/dist/components/Accordion/Accordion.js +2 -5
- package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionContent.d.ts +0 -26
- package/mobile/dist/components/AccordionItem/AccordionItem.d.ts +3 -0
- package/mobile/dist/components/AccordionItem/AccordionItem.js +16 -0
- package/mobile/dist/components/AccordionItem/AccordionItem.js.map +1 -0
- package/mobile/dist/components/AccordionItem/AccordionItemContent.d.ts +14 -0
- package/mobile/dist/components/AccordionItem/AccordionItemContent.js +2 -0
- package/mobile/dist/components/AccordionItem/AccordionItemContent.js.map +1 -0
- package/mobile/dist/components/AccordionItem/AccordionItemProps.d.ts +4 -0
- package/mobile/dist/components/{Accordion → AccordionItem}/AccordionItemProps.js +0 -0
- package/mobile/dist/components/AccordionItem/AccordionItemProps.js.map +1 -0
- package/mobile/dist/components/BaseTile/BaseTile.d.ts +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/mobile/dist/components/Blocks.d.ts +2 -1
- package/mobile/dist/components/Blocks.js +2 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Bonus/Bonus.d.ts +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +10 -1
- package/mobile/dist/components/Calculator/BonusCalculatorForm.d.ts +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 +2 -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 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/renderButtonSection.d.ts +3 -1
- package/mobile/dist/components/Calculator/renderButtonSection.js.map +1 -1
- package/mobile/dist/components/Calculator/renderFootnote.d.ts +1 -1
- package/mobile/dist/components/Calculator/renderFootnote.js.map +1 -1
- package/mobile/dist/components/Calculator/renderInitialFeeInput.d.ts +1 -1
- package/mobile/dist/components/Calculator/renderInitialFeeInput.js +1 -1
- package/mobile/dist/components/Calculator/renderInitialFeeInput.js.map +1 -1
- package/mobile/dist/components/Calculator/renderMonthsInput.d.ts +1 -1
- package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -1
- package/mobile/dist/components/Calculator/renderPaymentTypeSelector.d.ts +10 -5
- package/mobile/dist/components/Calculator/renderPaymentTypeSelector.js +2 -2
- package/mobile/dist/components/Calculator/renderPaymentTypeSelector.js.map +1 -1
- package/mobile/dist/components/Calculator/renderRealEstateValue.d.ts +1 -1
- package/mobile/dist/components/Calculator/renderRealEstateValue.js +1 -1
- package/mobile/dist/components/Calculator/renderRealEstateValue.js.map +1 -1
- package/mobile/dist/components/Calculator/renderWantedSumInput.d.ts +1 -1
- package/mobile/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.d.ts +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js +3 -3
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/Catalog/Catalog.d.ts +1 -1
- package/mobile/dist/components/Catalog/CatalogCard.d.ts +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTable.d.ts +1 -1
- package/mobile/dist/components/ComparisonTable/TableColumn.d.ts +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.d.ts +2 -1
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ContentPage/renderBlock.js +7 -6
- package/mobile/dist/components/ContentPage/renderBlock.js.map +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.d.ts +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 +1 -2
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.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/Footer.js +1 -1
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/FooterLink.d.ts +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.d.ts +1 -1
- package/mobile/dist/components/Footer/Sitemap.d.ts +2 -2
- package/mobile/dist/components/Footer/Sitemap.js +3 -3
- 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/Gallery.js +1 -1
- package/mobile/dist/components/Gallery/Gallery.js.map +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 +4 -3
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +3 -3
- package/mobile/dist/components/Header/DropdownMenu.d.ts +1 -1
- package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/dist/components/Header/Header.d.ts +1 -1
- package/mobile/dist/components/Header/Header.js +1 -1
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.d.ts +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.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/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/OfficeMap/OfficeMap.d.ts +2 -0
- package/mobile/dist/components/OfficeMap/OfficeMap.js +45 -0
- package/mobile/dist/components/OfficeMap/OfficeMap.js.map +1 -0
- package/mobile/dist/components/OfficeMap/OfficeMapContent.d.ts +34 -0
- package/mobile/dist/components/OfficeMap/OfficeMapContent.js +2 -0
- package/mobile/dist/components/OfficeMap/OfficeMapContent.js.map +1 -0
- package/mobile/dist/components/OfficeMap/YandexMap.d.ts +5 -0
- package/mobile/dist/components/OfficeMap/YandexMap.js +30 -0
- package/mobile/dist/components/OfficeMap/YandexMap.js.map +1 -0
- package/mobile/dist/components/OfficeMap/mockOfficeMap.d.ts +57 -0
- package/mobile/dist/components/OfficeMap/mockOfficeMap.js +82 -0
- package/mobile/dist/components/OfficeMap/mockOfficeMap.js.map +1 -0
- package/mobile/dist/components/OfficeMap/renderFunctions.d.ts +5 -0
- package/mobile/dist/components/OfficeMap/renderFunctions.js +19 -0
- package/mobile/dist/components/OfficeMap/renderFunctions.js.map +1 -0
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +1 -1
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/mobile/dist/components/OtherProducts/OtherProducts.d.ts +2 -2
- package/mobile/dist/components/OtherProducts/OtherProducts.js +2 -4
- package/mobile/dist/components/OtherProducts/OtherProducts.js.map +1 -1
- package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +2 -19
- package/mobile/dist/components/OtherProductsItem/OtherProductsItem.d.ts +5 -0
- package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js +15 -0
- package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -0
- package/mobile/dist/components/OtherProductsItem/OtherProductsItemContent.d.ts +12 -0
- package/mobile/dist/components/OtherProductsItem/OtherProductsItemContent.js +2 -0
- package/mobile/dist/components/OtherProductsItem/OtherProductsItemContent.js.map +1 -0
- package/mobile/dist/components/PictureText/PictureText.d.ts +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.d.ts +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.d.ts +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/ProductGalleryBlock.d.ts +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +2 -3
- package/mobile/dist/components/ProductTile/ProductTile.d.ts +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/PromoTile/PromoTile.d.ts +1 -1
- package/mobile/dist/components/Recommendation/Recommendation.d.ts +1 -1
- package/mobile/dist/components/Recommendation/Recommendation.js +2 -2
- package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/dist/components/Recommendation/RecommendationCard.d.ts +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/Tabs/Tabs.d.ts +1 -1
- package/mobile/dist/components/Tabs/renderGroupTab.js +4 -4
- package/mobile/dist/components/Tabs/renderGroupTab.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.d.ts +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.d.ts +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +14 -0
- package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.d.ts +2 -6
- package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.js.map +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/TariffsTableTileCell.d.ts +2 -3
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +2 -2
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableVertical.d.ts +2 -6
- package/mobile/dist/components/TariffsTable/TariffsTableVertical.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableVertical.js.map +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/components/Tile/Tile.js +2 -2
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/hooks/useOfficeMap.d.ts +3 -0
- package/mobile/dist/hooks/useOfficeMap.js +19 -0
- package/mobile/dist/hooks/useOfficeMap.js.map +1 -0
- package/mobile/dist/icons/IconName.d.ts +4 -2
- package/mobile/dist/icons/IconName.js +2 -0
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/index.d.ts +1 -0
- package/mobile/dist/index.js +2 -1
- package/mobile/dist/index.js.map +1 -1
- package/mobile/dist/model/BlocksRegistry.d.ts +1 -7
- package/mobile/dist/model/ContentPageDef.d.ts +0 -8
- package/mobile/dist/model/JSXBlock.d.ts +17 -0
- package/mobile/dist/{ui-kit/BlocksList/BlocksListProps.js → model/JSXBlock.js} +1 -1
- package/mobile/dist/model/JSXBlock.js.map +1 -0
- package/mobile/dist/model/getParentBlockContent.d.ts +2 -0
- package/mobile/dist/model/getParentBlockContent.js +9 -0
- package/mobile/dist/model/getParentBlockContent.js.map +1 -0
- package/mobile/dist/model/getParentBlockDef.d.ts +3 -0
- package/mobile/dist/model/getParentBlockDef.js +8 -0
- package/mobile/dist/model/getParentBlockDef.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +2 -2
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/dist/ui-kit/BlockWrapper.d.ts +1 -1
- package/mobile/dist/ui-kit/BlockWrapper.js +3 -1
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonSection.d.ts +1 -1
- package/mobile/dist/ui-kit/Foldable/FoldableSection.js +1 -1
- package/mobile/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
- package/mobile/dist/ui-kit/Img/getIconVersion.d.ts +2 -1
- package/mobile/dist/ui-kit/Img/getIconVersion.js +1 -1
- package/mobile/dist/ui-kit/Img/getIconVersion.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/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -2
- package/mobile/dist/ui-kit/SearchBar/SearchBar.d.ts +1 -1
- package/mobile/dist/ui-kit/Select/Select.js +1 -1
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.d.ts +2 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +1 -1
- package/mobile/lib/components/Accordion/Accordion.d.ts +2 -2
- package/mobile/lib/components/Accordion/Accordion.js +2 -5
- package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionContent.d.ts +0 -26
- package/mobile/lib/components/AccordionItem/AccordionItem.d.ts +3 -0
- package/mobile/lib/components/AccordionItem/AccordionItem.js +14 -0
- package/mobile/lib/components/AccordionItem/AccordionItem.js.map +1 -0
- package/mobile/lib/components/AccordionItem/AccordionItemContent.d.ts +14 -0
- package/mobile/lib/components/AccordionItem/AccordionItemContent.js +2 -0
- package/mobile/lib/components/AccordionItem/AccordionItemContent.js.map +1 -0
- package/mobile/lib/components/AccordionItem/AccordionItemProps.d.ts +4 -0
- package/mobile/lib/components/{Accordion → AccordionItem}/AccordionItemProps.js +0 -0
- package/mobile/lib/components/AccordionItem/AccordionItemProps.js.map +1 -0
- package/mobile/lib/components/BaseTile/BaseTile.d.ts +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/mobile/lib/components/Blocks.d.ts +2 -1
- package/mobile/lib/components/Blocks.js +2 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Bonus/Bonus.d.ts +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +10 -1
- package/mobile/lib/components/Calculator/BonusCalculatorForm.d.ts +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 +2 -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 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/renderButtonSection.d.ts +3 -1
- package/mobile/lib/components/Calculator/renderButtonSection.js.map +1 -1
- package/mobile/lib/components/Calculator/renderFootnote.d.ts +1 -1
- package/mobile/lib/components/Calculator/renderFootnote.js.map +1 -1
- package/mobile/lib/components/Calculator/renderInitialFeeInput.d.ts +1 -1
- package/mobile/lib/components/Calculator/renderInitialFeeInput.js +1 -1
- package/mobile/lib/components/Calculator/renderInitialFeeInput.js.map +1 -1
- package/mobile/lib/components/Calculator/renderMonthsInput.d.ts +1 -1
- package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -1
- package/mobile/lib/components/Calculator/renderPaymentTypeSelector.d.ts +10 -5
- package/mobile/lib/components/Calculator/renderPaymentTypeSelector.js +2 -2
- package/mobile/lib/components/Calculator/renderPaymentTypeSelector.js.map +1 -1
- package/mobile/lib/components/Calculator/renderRealEstateValue.d.ts +1 -1
- package/mobile/lib/components/Calculator/renderRealEstateValue.js +1 -1
- package/mobile/lib/components/Calculator/renderRealEstateValue.js.map +1 -1
- package/mobile/lib/components/Calculator/renderWantedSumInput.d.ts +1 -1
- package/mobile/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.d.ts +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js +3 -3
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/Catalog/Catalog.d.ts +1 -1
- package/mobile/lib/components/Catalog/CatalogCard.d.ts +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTable.d.ts +1 -1
- package/mobile/lib/components/ComparisonTable/TableColumn.d.ts +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.d.ts +2 -1
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ContentPage/renderBlock.js +7 -6
- package/mobile/lib/components/ContentPage/renderBlock.js.map +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.d.ts +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 +1 -2
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.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/Footer.js +1 -1
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/FooterLink.d.ts +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.d.ts +1 -1
- package/mobile/lib/components/Footer/Sitemap.d.ts +2 -2
- package/mobile/lib/components/Footer/Sitemap.js +3 -3
- 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/Gallery.js +1 -1
- package/mobile/lib/components/Gallery/Gallery.js.map +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 +4 -3
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +3 -3
- package/mobile/lib/components/Header/DropdownMenu.d.ts +1 -1
- package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/lib/components/Header/Header.d.ts +1 -1
- package/mobile/lib/components/Header/Header.js +1 -1
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.d.ts +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.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/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/OfficeMap/OfficeMap.d.ts +2 -0
- package/mobile/lib/components/OfficeMap/OfficeMap.js +43 -0
- package/mobile/lib/components/OfficeMap/OfficeMap.js.map +1 -0
- package/mobile/lib/components/OfficeMap/OfficeMapContent.d.ts +34 -0
- package/mobile/lib/components/OfficeMap/OfficeMapContent.js +2 -0
- package/mobile/lib/components/OfficeMap/OfficeMapContent.js.map +1 -0
- package/mobile/lib/components/OfficeMap/YandexMap.d.ts +5 -0
- package/mobile/lib/components/OfficeMap/YandexMap.js +28 -0
- package/mobile/lib/components/OfficeMap/YandexMap.js.map +1 -0
- package/mobile/lib/components/OfficeMap/mockOfficeMap.d.ts +57 -0
- package/mobile/lib/components/OfficeMap/mockOfficeMap.js +80 -0
- package/mobile/lib/components/OfficeMap/mockOfficeMap.js.map +1 -0
- package/mobile/lib/components/OfficeMap/renderFunctions.d.ts +5 -0
- package/mobile/lib/components/OfficeMap/renderFunctions.js +14 -0
- package/mobile/lib/components/OfficeMap/renderFunctions.js.map +1 -0
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +1 -1
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/mobile/lib/components/OtherProducts/OtherProducts.d.ts +2 -2
- package/mobile/lib/components/OtherProducts/OtherProducts.js +2 -4
- package/mobile/lib/components/OtherProducts/OtherProducts.js.map +1 -1
- package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +2 -19
- package/mobile/lib/components/OtherProductsItem/OtherProductsItem.d.ts +5 -0
- package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js +13 -0
- package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -0
- package/mobile/lib/components/OtherProductsItem/OtherProductsItemContent.d.ts +12 -0
- package/mobile/lib/components/OtherProductsItem/OtherProductsItemContent.js +2 -0
- package/mobile/lib/components/OtherProductsItem/OtherProductsItemContent.js.map +1 -0
- package/mobile/lib/components/PictureText/PictureText.d.ts +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.d.ts +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.d.ts +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/ProductGalleryBlock.d.ts +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +2 -3
- package/mobile/lib/components/ProductTile/ProductTile.d.ts +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/PromoTile/PromoTile.d.ts +1 -1
- package/mobile/lib/components/Recommendation/Recommendation.d.ts +1 -1
- package/mobile/lib/components/Recommendation/Recommendation.js +2 -2
- package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/lib/components/Recommendation/RecommendationCard.d.ts +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/Tabs/Tabs.d.ts +1 -1
- package/mobile/lib/components/Tabs/renderGroupTab.js +4 -4
- package/mobile/lib/components/Tabs/renderGroupTab.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.d.ts +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.d.ts +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +14 -0
- package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.d.ts +2 -6
- package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.js.map +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/TariffsTableTileCell.d.ts +2 -3
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +2 -2
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableVertical.d.ts +2 -6
- package/mobile/lib/components/TariffsTable/TariffsTableVertical.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableVertical.js.map +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/components/Tile/Tile.js +2 -2
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/hooks/useOfficeMap.d.ts +3 -0
- package/mobile/lib/hooks/useOfficeMap.js +16 -0
- package/mobile/lib/hooks/useOfficeMap.js.map +1 -0
- package/mobile/lib/icons/IconName.d.ts +4 -2
- package/mobile/lib/icons/IconName.js +2 -0
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/index.d.ts +1 -0
- package/mobile/lib/index.js +1 -0
- package/mobile/lib/index.js.map +1 -1
- package/mobile/lib/model/BlocksRegistry.d.ts +1 -7
- package/mobile/lib/model/ContentPageDef.d.ts +0 -8
- package/mobile/lib/model/JSXBlock.d.ts +17 -0
- package/mobile/lib/model/JSXBlock.js +2 -0
- package/mobile/lib/model/JSXBlock.js.map +1 -0
- package/mobile/lib/model/getParentBlockContent.d.ts +2 -0
- package/mobile/lib/model/getParentBlockContent.js +6 -0
- package/mobile/lib/model/getParentBlockContent.js.map +1 -0
- package/mobile/lib/model/getParentBlockDef.d.ts +3 -0
- package/mobile/lib/model/getParentBlockDef.js +5 -0
- package/mobile/lib/model/getParentBlockDef.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +2 -2
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/lib/ui-kit/BlockWrapper.d.ts +1 -1
- package/mobile/lib/ui-kit/BlockWrapper.js +3 -1
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonSection.d.ts +1 -1
- package/mobile/lib/ui-kit/Foldable/FoldableSection.js +1 -1
- package/mobile/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
- package/mobile/lib/ui-kit/Img/getIconVersion.d.ts +2 -1
- package/mobile/lib/ui-kit/Img/getIconVersion.js +1 -1
- package/mobile/lib/ui-kit/Img/getIconVersion.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/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -2
- package/mobile/lib/ui-kit/SearchBar/SearchBar.d.ts +1 -1
- package/mobile/lib/ui-kit/Select/Select.js +2 -2
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.d.ts +2 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +1 -1
- package/mobile/src/components/Accordion/Accordion.example.json +1 -63
- package/mobile/src/components/Accordion/Accordion.tsx +15 -31
- package/mobile/src/components/Accordion/Accordion.ui.json +1 -79
- package/mobile/src/components/Accordion/AccordionContent.ts +2 -28
- package/mobile/src/components/AccordionItem/AccordionItem.example.json +7 -0
- package/mobile/src/components/AccordionItem/AccordionItem.tsx +73 -0
- package/mobile/src/components/AccordionItem/AccordionItem.ui.json +7 -0
- package/mobile/src/components/AccordionItem/AccordionItemContent.ts +15 -0
- package/mobile/src/components/AccordionItem/AccordionItemProps.ts +4 -0
- package/mobile/src/components/BaseTile/BaseTile.tsx +1 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/mobile/src/components/Blocks.ts +2 -0
- package/mobile/src/components/Bonus/Bonus.tsx +1 -1
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +11 -5
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.ui.json +5 -0
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +10 -1
- package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +1 -1
- package/mobile/src/components/Calculator/Calculator.tsx +1 -1
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +3 -2
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +3 -2
- package/mobile/src/components/Calculator/renderButtonSection.tsx +3 -1
- package/mobile/src/components/Calculator/renderCalculatorBlock.tsx +1 -1
- package/mobile/src/components/Calculator/renderFootnote.tsx +1 -1
- package/mobile/src/components/Calculator/renderInitialFeeInput.tsx +5 -1
- package/mobile/src/components/Calculator/renderMonthsInput.tsx +6 -2
- package/mobile/src/components/Calculator/renderPaymentTypeSelector.tsx +11 -9
- package/mobile/src/components/Calculator/renderRealEstateValue.tsx +5 -1
- package/mobile/src/components/Calculator/renderWantedSumInput.tsx +5 -1
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +5 -5
- package/mobile/src/components/Catalog/Catalog.tsx +2 -2
- package/mobile/src/components/Catalog/Catalog.ui.json +11 -1
- package/mobile/src/components/Catalog/CatalogCard.tsx +1 -1
- package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +1 -1
- package/mobile/src/components/ComparisonTable/TableColumn.tsx +1 -1
- package/mobile/src/components/ContentPage/ContentPage.tsx +2 -1
- package/mobile/src/components/ContentPage/renderBlock.tsx +15 -9
- package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +1 -1
- package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +3 -3
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +2 -3
- package/mobile/src/components/Footer/Contacts.tsx +1 -1
- package/mobile/src/components/Footer/Footer.tsx +2 -2
- package/mobile/src/components/Footer/FooterLink.ts +1 -1
- package/mobile/src/components/Footer/HorizontalNavigation.tsx +1 -1
- package/mobile/src/components/Footer/Sitemap.tsx +13 -5
- package/mobile/src/components/Footer/SocialMedia.tsx +1 -1
- package/mobile/src/components/Gallery/Gallery.tsx +14 -10
- package/mobile/src/components/Gallery/GalleryInner.tsx +1 -1
- package/mobile/src/components/Gallery/GalleryProps.ts +1 -1
- package/mobile/src/components/GracePeriod/GracePeriod.example.json +7 -7
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +13 -9
- package/mobile/src/components/GracePeriod/GracePeriodContent.ts +3 -3
- package/mobile/src/components/Header/DropdownMenu.tsx +2 -2
- package/mobile/src/components/Header/Header.tsx +2 -2
- package/mobile/src/components/Headline/Headline.tsx +1 -1
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +9 -2
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.ui.json +6 -0
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +1 -1
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -1
- package/mobile/src/components/LikeControl/LikeControl.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/mobile/src/components/LinkList/LinkList.tsx +3 -2
- package/mobile/src/components/MiniGallery/MiniGallery.tsx +1 -1
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/mobile/src/components/OfficeMap/OfficeMap.tsx +80 -0
- package/mobile/src/components/OfficeMap/OfficeMapContent.ts +38 -0
- package/mobile/src/components/OfficeMap/YandexMap.tsx +41 -0
- package/mobile/src/components/OfficeMap/mockOfficeMap.ts +79 -0
- package/mobile/src/components/OfficeMap/renderFunctions.tsx +69 -0
- package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +2 -2
- package/mobile/src/components/OtherProducts/OtherProducts.example.json +1 -54
- package/mobile/src/components/OtherProducts/OtherProducts.tsx +13 -25
- package/mobile/src/components/OtherProducts/OtherProducts.ui.json +1 -76
- package/mobile/src/components/OtherProducts/OtherProductsContent.ts +2 -20
- package/mobile/src/components/OtherProductsItem/OtherProductsItem.example.json +4 -0
- package/mobile/src/components/OtherProductsItem/OtherProductsItem.tsx +47 -0
- package/mobile/src/components/OtherProductsItem/OtherProductsItem.ui.json +1 -0
- package/mobile/src/components/OtherProductsItem/OtherProductsItemContent.ts +13 -0
- package/mobile/src/components/PictureText/PictureText.tsx +1 -1
- package/mobile/src/components/PictureText/PictureText.ui.json +10 -1
- package/mobile/src/components/Placeholder/Placeholder.tsx +1 -1
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +1 -1
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +1 -1
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +3 -2
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +1 -1
- package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +1 -1
- package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +2 -2
- package/mobile/src/components/ProductTile/ProductTile.tsx +2 -2
- package/mobile/src/components/PromoTile/PromoTile.tsx +1 -1
- package/mobile/src/components/Recommendation/Recommendation.tsx +6 -6
- package/mobile/src/components/Recommendation/RecommendationCard.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +1 -1
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -2
- package/mobile/src/components/Tabs/Tabs.tsx +1 -1
- package/mobile/src/components/Tabs/renderGroupTab.tsx +5 -4
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +9 -2
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +16 -0
- package/mobile/src/components/TariffsTable/TariffsTableHorizontal.tsx +4 -7
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableRowContainer.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +5 -6
- package/mobile/src/components/TariffsTable/TariffsTableVertical.tsx +4 -7
- package/mobile/src/components/TextBlock/TextBlock.tsx +1 -1
- package/mobile/src/components/Tile/Tile.tsx +3 -3
- package/mobile/src/hooks/useOfficeMap.ts +23 -0
- package/mobile/src/icons/IconName.ts +4 -4
- package/mobile/src/icons/MetroIcon.svg +10 -0
- package/mobile/src/index.ts +1 -0
- package/mobile/src/model/BlocksRegistry.ts +1 -12
- package/mobile/src/model/ContentPageDef.ts +0 -9
- package/mobile/src/model/JSXBlock.ts +23 -0
- package/mobile/src/model/getParentBlockContent.ts +11 -0
- package/mobile/src/model/getParentBlockDef.ts +8 -0
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +5 -3
- package/mobile/src/ui-kit/BlockWrapper.tsx +6 -2
- package/mobile/src/ui-kit/Button/ButtonSection.tsx +1 -1
- package/mobile/src/ui-kit/Foldable/FoldableSection.tsx +1 -1
- package/mobile/src/ui-kit/Img/getIconVersion.tsx +4 -2
- 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/InputRange/InputRange.tsx +2 -2
- package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +2 -2
- package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +1 -1
- package/mobile/src/ui-kit/Select/Select.tsx +11 -6
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +2 -2
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +1 -1
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +1 -1
- package/package.json +3 -2
- package/src/components/Accordion/Accordion.example.json +1 -63
- package/src/components/Accordion/Accordion.fixture.mobile.tsx +45 -41
- package/src/components/Accordion/Accordion.fixture.tsx +75 -110
- package/src/components/Accordion/Accordion.mobile.tsx +15 -31
- package/src/components/Accordion/Accordion.tsx +27 -42
- package/src/components/Accordion/Accordion.ui.json +1 -79
- package/src/components/Accordion/AccordionContent.ts +2 -28
- package/src/components/AccordionItem/AccordionItem.example.json +7 -0
- package/src/components/AccordionItem/AccordionItem.fixture.mobile.tsx +6 -0
- package/src/components/AccordionItem/AccordionItem.fixture.tsx +6 -0
- package/src/components/AccordionItem/AccordionItem.mobile.tsx +73 -0
- package/src/components/AccordionItem/AccordionItem.tsx +48 -0
- package/src/components/AccordionItem/AccordionItem.ui.json +7 -0
- package/src/components/AccordionItem/AccordionItemContent.ts +15 -0
- package/src/components/AccordionItem/AccordionItemProps.ts +4 -0
- package/src/components/BaseTile/BaseTile.tsx +1 -1
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/src/components/Blocks.mobile.ts +2 -0
- package/src/components/Blocks.ts +7 -1
- package/src/components/Bonus/Bonus.tsx +1 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.tsx +49 -34
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +11 -5
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.ui.json +5 -0
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +10 -1
- package/src/components/Calculator/BonusCalculatorForm.tsx +1 -1
- package/src/components/Calculator/Calculator.tsx +1 -1
- package/src/components/Calculator/CreditCalculatorForm.tsx +3 -2
- package/src/components/Calculator/DepositCalculatorForm.tsx +3 -2
- package/src/components/Calculator/renderButtonSection.tsx +3 -1
- package/src/components/Calculator/renderCalculatorBlock.tsx +1 -1
- package/src/components/Calculator/renderFootnote.tsx +1 -1
- package/src/components/Calculator/renderInitialFeeInput.tsx +5 -1
- package/src/components/Calculator/renderMonthsInput.tsx +6 -2
- package/src/components/Calculator/renderPaymentTypeSelector.tsx +11 -9
- package/src/components/Calculator/renderRealEstateValue.tsx +5 -1
- package/src/components/Calculator/renderWantedSumInput.tsx +5 -1
- package/src/components/CardTransfer/CardTransfer.tsx +5 -5
- package/src/components/Catalog/Catalog.tsx +2 -2
- package/src/components/Catalog/Catalog.ui.json +11 -1
- package/src/components/Catalog/CatalogCard.tsx +1 -1
- package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +1 -1
- package/src/components/ComparisonTable/ComparisonTable.tsx +1 -1
- package/src/components/ComparisonTable/TableColumn.tsx +1 -1
- package/src/components/ContentPage/ContentPage.tsx +2 -1
- package/src/components/ContentPage/renderBlock.tsx +15 -9
- package/src/components/ErrorBlock/ErrorBlock.tsx +1 -1
- package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +3 -3
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +2 -3
- package/src/components/Footer/Contacts.tsx +1 -1
- package/src/components/Footer/Footer.mobile.tsx +2 -2
- package/src/components/Footer/Footer.tsx +1 -1
- package/src/components/Footer/FooterLink.ts +1 -1
- package/src/components/Footer/HorizontalNavigation.mobile.tsx +1 -1
- package/src/components/Footer/HorizontalNavigation.tsx +1 -1
- package/src/components/Footer/Sitemap.tsx +13 -5
- package/src/components/Footer/SocialMedia.mobile.tsx +1 -1
- package/src/components/Footer/SocialMedia.tsx +1 -1
- package/src/components/Gallery/Gallery.mobile.tsx +14 -10
- package/src/components/Gallery/GalleryInner.tsx +1 -1
- package/src/components/Gallery/GalleryProps.ts +1 -1
- package/src/components/GracePeriod/GracePeriod.example.json +7 -7
- package/src/components/GracePeriod/GracePeriod.fixture.tsx +5 -5
- package/src/components/GracePeriod/GracePeriod.tsx +13 -9
- package/src/components/GracePeriod/GracePeriodContent.ts +3 -3
- package/src/components/Header/DropdownMenu.tsx +2 -2
- package/src/components/Header/Header.mobile.tsx +2 -2
- package/src/components/Header/Header.tsx +2 -2
- package/src/components/Headline/Headline.mobile.tsx +1 -1
- package/src/components/Headline/Headline.tsx +1 -1
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +9 -2
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.ui.json +6 -0
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +1 -1
- package/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -1
- package/src/components/LikeControl/LikeControl.tsx +1 -1
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +1 -1
- package/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/src/components/LinkList/LinkList.tsx +3 -2
- package/src/components/MiniGallery/MiniGallery.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.mobile.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/src/components/OfficeMap/OfficeMap.fixture.tsx +10 -0
- package/src/components/OfficeMap/OfficeMap.tsx +80 -0
- package/src/components/OfficeMap/OfficeMapContent.ts +38 -0
- package/src/components/OfficeMap/YandexMap.tsx +41 -0
- package/src/components/OfficeMap/mockOfficeMap.ts +79 -0
- package/src/components/OfficeMap/renderFunctions.tsx +69 -0
- package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +2 -2
- package/src/components/OtherProducts/OtherProducts.example.json +1 -54
- package/src/components/OtherProducts/OtherProducts.fixture.tsx +77 -126
- package/src/components/OtherProducts/OtherProducts.tsx +13 -25
- package/src/components/OtherProducts/OtherProducts.ui.json +1 -76
- package/src/components/OtherProducts/OtherProductsContent.ts +2 -20
- package/src/components/OtherProductsItem/OtherProductsItem.example.json +4 -0
- package/src/components/OtherProductsItem/OtherProductsItem.fixture.tsx +5 -0
- package/src/components/OtherProductsItem/OtherProductsItem.tsx +47 -0
- package/src/components/OtherProductsItem/OtherProductsItem.ui.json +1 -0
- package/src/components/OtherProductsItem/OtherProductsItemContent.ts +13 -0
- package/src/components/PictureText/PictureText.tsx +1 -1
- package/src/components/PictureText/PictureText.ui.json +10 -1
- package/src/components/Placeholder/Placeholder.tsx +1 -1
- package/src/components/ProductBlock/ProductBlock.mobile.tsx +1 -1
- package/src/components/ProductBlock/ProductBlock.tsx +1 -1
- package/src/components/ProductBlock/ProductBlockContent.ts +1 -1
- package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +3 -2
- package/src/components/ProductBlock/ProductBlockInner.tsx +12 -4
- package/src/components/ProductGallery/ProductGallery.mobile.tsx +1 -1
- package/src/components/ProductGallery/ProductGallery.tsx +18 -5
- package/src/components/ProductGallery/ProductGalleryBlock.tsx +1 -1
- package/src/components/ProductGallery/ProductGalleryContent.ts +2 -2
- package/src/components/ProductTile/ProductTile.tsx +2 -2
- package/src/components/PromoTile/PromoTile.tsx +1 -1
- package/src/components/Recommendation/Recommendation.tsx +6 -6
- package/src/components/Recommendation/RecommendationCard.tsx +1 -1
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +1 -1
- package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +1 -1
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -2
- package/src/components/StepsBlock/StepsBlock.tsx +2 -2
- package/src/components/Tabs/Tabs.tsx +1 -1
- package/src/components/Tabs/renderGroupTab.tsx +5 -4
- package/src/components/TariffsTable/TariffsTable.mobile.tsx +9 -2
- package/src/components/TariffsTable/TariffsTable.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableCell.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableContent.ts +16 -0
- package/src/components/TariffsTable/TariffsTableHorizontal.tsx +4 -7
- package/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableRowContainer.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableTileCell.tsx +5 -6
- package/src/components/TariffsTable/TariffsTableVertical.tsx +4 -7
- package/src/components/TextBlock/TextBlock.mobile.tsx +1 -1
- package/src/components/TextBlock/TextBlock.tsx +1 -1
- package/src/components/Tile/Tile.tsx +3 -3
- package/src/hooks/useOfficeMap.ts +23 -0
- package/src/icons/IconName.ts +4 -1
- package/src/icons/MetroIcon.svg +10 -0
- package/src/index.ts +1 -0
- package/src/model/BlocksRegistry.ts +1 -12
- package/src/model/ContentPageDef.ts +0 -9
- package/src/model/JSXBlock.ts +23 -0
- package/src/model/getParentBlockContent.ts +11 -0
- package/src/model/getParentBlockDef.ts +8 -0
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +5 -3
- package/src/ui-kit/BlockWrapper.tsx +6 -2
- package/src/ui-kit/Button/ButtonSection.tsx +1 -1
- package/src/ui-kit/Foldable/FoldableSection.tsx +1 -1
- package/src/ui-kit/Img/getIconVersion.tsx +4 -2
- 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/InputRange/InputRange.tsx +2 -2
- package/src/ui-kit/Logo/Logo.tsx +2 -1
- package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +2 -2
- package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +1 -1
- package/src/ui-kit/SearchBar/SearchBar.tsx +1 -1
- package/src/ui-kit/Select/Select.tsx +11 -6
- package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +2 -2
- package/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +1 -1
- package/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +1 -1
- package/tailwind.config.cjs +3 -0
- package/bundle/components/Accordion/AccordionItem.d.ts +0 -2
- package/bundle/components/Accordion/AccordionItem.mobile.d.ts +0 -2
- package/bundle/components/Accordion/AccordionItemProps.d.ts +0 -5
- package/bundle/components/BonusBenefitsBlock/getElementsColsValue.d.ts +0 -1
- package/bundle/components/OtherProducts/OtherProductsItem.d.ts +0 -6
- package/bundle/ui-kit/BlocksList/BlocksListProps.d.ts +0 -96
- package/bundle/ui-kit/BlocksList/EmbeddableBlocks.d.ts +0 -12
- package/bundle/ui-kit/BlocksList/EmbeddableBlocks.mobile.d.ts +0 -8
- package/bundle/ui-kit/BlocksList/renderBlocksList.d.ts +0 -9
- package/dist/components/Accordion/AccordionItem.d.ts +0 -2
- package/dist/components/Accordion/AccordionItem.js +0 -11
- package/dist/components/Accordion/AccordionItem.js.map +0 -1
- package/dist/components/Accordion/AccordionItem.mobile.d.ts +0 -2
- package/dist/components/Accordion/AccordionItem.mobile.js +0 -16
- package/dist/components/Accordion/AccordionItem.mobile.js.map +0 -1
- package/dist/components/Accordion/AccordionItemProps.d.ts +0 -5
- package/dist/components/Accordion/AccordionItemProps.js.map +0 -1
- package/dist/components/BonusBenefitsBlock/getElementsColsValue.d.ts +0 -1
- package/dist/components/BonusBenefitsBlock/getElementsColsValue.js +0 -17
- package/dist/components/BonusBenefitsBlock/getElementsColsValue.js.map +0 -1
- package/dist/components/OtherProducts/OtherProductsItem.d.ts +0 -6
- package/dist/components/OtherProducts/OtherProductsItem.js +0 -17
- package/dist/components/OtherProducts/OtherProductsItem.js.map +0 -1
- package/dist/ui-kit/BlocksList/BlocksListProps.d.ts +0 -96
- package/dist/ui-kit/BlocksList/BlocksListProps.js.map +0 -1
- package/dist/ui-kit/BlocksList/EmbeddableBlocks.d.ts +0 -12
- package/dist/ui-kit/BlocksList/EmbeddableBlocks.js +0 -25
- package/dist/ui-kit/BlocksList/EmbeddableBlocks.js.map +0 -1
- package/dist/ui-kit/BlocksList/EmbeddableBlocks.mobile.d.ts +0 -8
- package/dist/ui-kit/BlocksList/EmbeddableBlocks.mobile.js +0 -17
- package/dist/ui-kit/BlocksList/EmbeddableBlocks.mobile.js.map +0 -1
- package/dist/ui-kit/BlocksList/renderBlocksList.d.ts +0 -9
- package/dist/ui-kit/BlocksList/renderBlocksList.js +0 -20
- package/dist/ui-kit/BlocksList/renderBlocksList.js.map +0 -1
- package/lib/components/Accordion/AccordionItem.d.ts +0 -2
- package/lib/components/Accordion/AccordionItem.js +0 -9
- package/lib/components/Accordion/AccordionItem.js.map +0 -1
- package/lib/components/Accordion/AccordionItem.mobile.d.ts +0 -2
- package/lib/components/Accordion/AccordionItem.mobile.js +0 -14
- package/lib/components/Accordion/AccordionItem.mobile.js.map +0 -1
- package/lib/components/Accordion/AccordionItemProps.d.ts +0 -5
- package/lib/components/Accordion/AccordionItemProps.js.map +0 -1
- package/lib/components/BonusBenefitsBlock/getElementsColsValue.d.ts +0 -1
- package/lib/components/BonusBenefitsBlock/getElementsColsValue.js +0 -14
- package/lib/components/BonusBenefitsBlock/getElementsColsValue.js.map +0 -1
- package/lib/components/OtherProducts/OtherProductsItem.d.ts +0 -6
- package/lib/components/OtherProducts/OtherProductsItem.js +0 -15
- package/lib/components/OtherProducts/OtherProductsItem.js.map +0 -1
- package/lib/ui-kit/BlocksList/BlocksListProps.d.ts +0 -96
- package/lib/ui-kit/BlocksList/BlocksListProps.js +0 -2
- package/lib/ui-kit/BlocksList/BlocksListProps.js.map +0 -1
- package/lib/ui-kit/BlocksList/EmbeddableBlocks.d.ts +0 -12
- package/lib/ui-kit/BlocksList/EmbeddableBlocks.js +0 -23
- package/lib/ui-kit/BlocksList/EmbeddableBlocks.js.map +0 -1
- package/lib/ui-kit/BlocksList/EmbeddableBlocks.mobile.d.ts +0 -8
- package/lib/ui-kit/BlocksList/EmbeddableBlocks.mobile.js +0 -15
- package/lib/ui-kit/BlocksList/EmbeddableBlocks.mobile.js.map +0 -1
- package/lib/ui-kit/BlocksList/renderBlocksList.d.ts +0 -8
- package/lib/ui-kit/BlocksList/renderBlocksList.js +0 -17
- package/lib/ui-kit/BlocksList/renderBlocksList.js.map +0 -1
- package/mobile/bundle/components/Accordion/AccordionItem.d.ts +0 -2
- package/mobile/bundle/components/Accordion/AccordionItemProps.d.ts +0 -5
- package/mobile/bundle/components/BonusBenefitsBlock/getElementsColsValue.d.ts +0 -1
- package/mobile/bundle/components/OtherProducts/OtherProductsItem.d.ts +0 -6
- package/mobile/bundle/ui-kit/BlocksList/BlocksListProps.d.ts +0 -96
- package/mobile/bundle/ui-kit/BlocksList/EmbeddableBlocks.d.ts +0 -8
- package/mobile/bundle/ui-kit/BlocksList/renderBlocksList.d.ts +0 -9
- package/mobile/dist/components/Accordion/AccordionItem.d.ts +0 -2
- package/mobile/dist/components/Accordion/AccordionItem.js +0 -16
- package/mobile/dist/components/Accordion/AccordionItem.js.map +0 -1
- package/mobile/dist/components/Accordion/AccordionItemProps.d.ts +0 -5
- package/mobile/dist/components/Accordion/AccordionItemProps.js.map +0 -1
- package/mobile/dist/components/BonusBenefitsBlock/getElementsColsValue.d.ts +0 -1
- package/mobile/dist/components/BonusBenefitsBlock/getElementsColsValue.js +0 -17
- package/mobile/dist/components/BonusBenefitsBlock/getElementsColsValue.js.map +0 -1
- package/mobile/dist/components/OtherProducts/OtherProductsItem.d.ts +0 -6
- package/mobile/dist/components/OtherProducts/OtherProductsItem.js +0 -17
- package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +0 -1
- package/mobile/dist/ui-kit/BlocksList/BlocksListProps.d.ts +0 -96
- package/mobile/dist/ui-kit/BlocksList/BlocksListProps.js.map +0 -1
- package/mobile/dist/ui-kit/BlocksList/EmbeddableBlocks.d.ts +0 -8
- package/mobile/dist/ui-kit/BlocksList/EmbeddableBlocks.js +0 -17
- package/mobile/dist/ui-kit/BlocksList/EmbeddableBlocks.js.map +0 -1
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.d.ts +0 -9
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +0 -20
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +0 -1
- package/mobile/lib/components/Accordion/AccordionItem.d.ts +0 -2
- package/mobile/lib/components/Accordion/AccordionItem.js +0 -14
- package/mobile/lib/components/Accordion/AccordionItem.js.map +0 -1
- package/mobile/lib/components/Accordion/AccordionItemProps.d.ts +0 -5
- package/mobile/lib/components/Accordion/AccordionItemProps.js.map +0 -1
- package/mobile/lib/components/BonusBenefitsBlock/getElementsColsValue.d.ts +0 -1
- package/mobile/lib/components/BonusBenefitsBlock/getElementsColsValue.js +0 -14
- package/mobile/lib/components/BonusBenefitsBlock/getElementsColsValue.js.map +0 -1
- package/mobile/lib/components/OtherProducts/OtherProductsItem.d.ts +0 -6
- package/mobile/lib/components/OtherProducts/OtherProductsItem.js +0 -15
- package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +0 -1
- package/mobile/lib/ui-kit/BlocksList/BlocksListProps.d.ts +0 -96
- package/mobile/lib/ui-kit/BlocksList/BlocksListProps.js +0 -2
- package/mobile/lib/ui-kit/BlocksList/BlocksListProps.js.map +0 -1
- package/mobile/lib/ui-kit/BlocksList/EmbeddableBlocks.d.ts +0 -8
- package/mobile/lib/ui-kit/BlocksList/EmbeddableBlocks.js +0 -15
- package/mobile/lib/ui-kit/BlocksList/EmbeddableBlocks.js.map +0 -1
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.d.ts +0 -9
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +0 -17
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +0 -1
- package/mobile/src/components/Accordion/AccordionItem.tsx +0 -72
- package/mobile/src/components/Accordion/AccordionItemProps.ts +0 -6
- package/mobile/src/components/BonusBenefitsBlock/getElementsColsValue.ts +0 -12
- package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +0 -52
- package/mobile/src/ui-kit/BlocksList/BlocksListProps.ts +0 -130
- package/mobile/src/ui-kit/BlocksList/EmbeddableBlocks.tsx +0 -15
- package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +0 -41
- package/src/components/Accordion/AccordionItem.mobile.tsx +0 -72
- package/src/components/Accordion/AccordionItem.tsx +0 -52
- package/src/components/Accordion/AccordionItemProps.ts +0 -6
- package/src/components/BonusBenefitsBlock/getElementsColsValue.ts +0 -12
- package/src/components/OtherProducts/OtherProductsItem.tsx +0 -52
- package/src/ui-kit/BlocksList/BlocksListProps.ts +0 -130
- package/src/ui-kit/BlocksList/EmbeddableBlocks.mobile.tsx +0 -15
- package/src/ui-kit/BlocksList/EmbeddableBlocks.tsx +0 -23
- package/src/ui-kit/BlocksList/renderBlocksList.tsx +0 -41
|
@@ -228,8 +228,110 @@
|
|
|
228
228
|
return JSXTmpl;
|
|
229
229
|
};
|
|
230
230
|
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
class EventBus {
|
|
232
|
+
static inst = new EventBus();
|
|
233
|
+
subscribers = {};
|
|
234
|
+
subjectsStateMap = {};
|
|
235
|
+
subscribe(type, listener) {
|
|
236
|
+
this.subscribers[type] ||= [];
|
|
237
|
+
this.subscribers[type]?.push(listener);
|
|
238
|
+
const latestEvent = this.subjectsStateMap[type];
|
|
239
|
+
if (latestEvent) {
|
|
240
|
+
listener(latestEvent);
|
|
241
|
+
}
|
|
242
|
+
return () => {
|
|
243
|
+
this.unsubscribe(type, listener);
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
unsubscribe(type, listener) {
|
|
247
|
+
this.subscribers[type] = this.subscribers[type]?.filter((s) => s !== listener);
|
|
248
|
+
}
|
|
249
|
+
fire(type, event) {
|
|
250
|
+
this.subjectsStateMap[type] = event;
|
|
251
|
+
this.subscribers[type]?.forEach((s) => s(event));
|
|
252
|
+
}
|
|
253
|
+
subject(type, event) {
|
|
254
|
+
this.subjectsStateMap[type] = event;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
const changeHashOnObserve = ({ anchor, anchorClickRef }) => (entries) => {
|
|
259
|
+
if (!entries?.length) {
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
const [entry] = entries;
|
|
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
|
+
}
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
const IntersectionObserverTag = JSX((props) => {
|
|
276
|
+
const { tag = 'section', observerCallback, observerOptions, className = '', anchor = null, children, } = props;
|
|
277
|
+
const intersectionObserver = useRef(null);
|
|
278
|
+
const ref = useCallback((element) => {
|
|
279
|
+
if (!element) {
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
if (intersectionObserver.current) {
|
|
283
|
+
intersectionObserver.current.disconnect();
|
|
284
|
+
}
|
|
285
|
+
intersectionObserver.current = new IntersectionObserver(observerCallback, observerOptions);
|
|
286
|
+
intersectionObserver.current.observe(element);
|
|
287
|
+
}, [observerCallback, observerOptions]);
|
|
288
|
+
const Tag = tag;
|
|
289
|
+
return (jsx(Tag, { ref: ref, className: className, id: anchor, children: children }));
|
|
290
|
+
});
|
|
291
|
+
|
|
292
|
+
const THRESHOLD_ACCURACY = 100; // Decimals number (100 is for two decimals number, 0.**)
|
|
293
|
+
const THRESHOLD_ARRAY_LENGTH = 18;
|
|
294
|
+
const THRESHOLD_ARRAY_START_VALUE = (THRESHOLD_ACCURACY - THRESHOLD_ARRAY_LENGTH) / THRESHOLD_ACCURACY;
|
|
295
|
+
const BlockWrapper = JSX(({ anchor, className, children, tag = 'section', labels }) => {
|
|
296
|
+
const Tag = tag;
|
|
297
|
+
const [shouldRenderBlock, setShouldRenderBlock] = useState(true);
|
|
298
|
+
const anchorClickRef = useRef({});
|
|
299
|
+
const observerCallback = useMemo(() => changeHashOnObserve({ anchor, anchorClickRef }), [anchor]);
|
|
300
|
+
useEffect(() => {
|
|
301
|
+
const anchorClickCleanup = EventBus.inst.subscribe('anchorClick', (e) => {
|
|
302
|
+
setShouldRenderBlock(true);
|
|
303
|
+
anchorClickRef.current = e;
|
|
304
|
+
});
|
|
305
|
+
const tabCleanup = EventBus.inst.subscribe('tab', (event) => {
|
|
306
|
+
if (event.type === 'group') {
|
|
307
|
+
const blockHasSettgins = labels?.length || anchor;
|
|
308
|
+
setShouldRenderBlock(event.label ? !blockHasSettgins || Boolean(labels?.includes(event.label)) : true);
|
|
309
|
+
}
|
|
310
|
+
else {
|
|
311
|
+
changeHash(event.label);
|
|
312
|
+
setShouldRenderBlock(true);
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
return () => {
|
|
316
|
+
anchorClickCleanup();
|
|
317
|
+
tabCleanup();
|
|
318
|
+
};
|
|
319
|
+
}, []);
|
|
320
|
+
if (!shouldRenderBlock) {
|
|
321
|
+
return null;
|
|
322
|
+
}
|
|
323
|
+
return anchor ? (jsx(IntersectionObserverTag, { tag: tag, className: className, observerCallback: observerCallback, observerOptions: {
|
|
324
|
+
threshold: new Array(THRESHOLD_ARRAY_LENGTH).fill(0).map(getIntersectionThreshold),
|
|
325
|
+
}, anchor: anchor, children: children })) : (jsx(Tag, { className: className, children: children }));
|
|
326
|
+
});
|
|
327
|
+
function getIntersectionThreshold(_, i) {
|
|
328
|
+
const value = (i + 1) / THRESHOLD_ACCURACY + THRESHOLD_ARRAY_START_VALUE;
|
|
329
|
+
return Math.round(value * THRESHOLD_ACCURACY) / THRESHOLD_ACCURACY;
|
|
330
|
+
}
|
|
331
|
+
function changeHash(label) {
|
|
332
|
+
if (label) {
|
|
333
|
+
globalThis.document.location.hash = label;
|
|
334
|
+
}
|
|
233
335
|
}
|
|
234
336
|
|
|
235
337
|
const HeadingClass = {
|
|
@@ -246,6 +348,43 @@
|
|
|
246
348
|
return (jsx(Tag, { className: `font-sans font-medium m-0 ${HeadingClass[headingType]} ${className || ''}`, children: title }));
|
|
247
349
|
});
|
|
248
350
|
|
|
351
|
+
const AccordionItemsList = JSX(({ children }) => (jsx("ul", { className: "list-none m-0 p-0", children: children })));
|
|
352
|
+
|
|
353
|
+
const Accordion = JSX(({ title, description, context, className = '', children, ...rest }) => (jsxs(BlockWrapper, { context: context, className: `py-6 px-4 font-sans bg-white text-primary-text ${className}`, ...rest, children: [title ? jsx(Heading, { headingType: "h3", className: "mb-2 text-center", title: title }) : null, description ? jsx("div", { className: "mb-5 text-m-light text-center", children: description }) : null, jsx(AccordionItemsList, { children: children })] })));
|
|
354
|
+
Accordion.childrenTypes = ['AccordionItem'];
|
|
355
|
+
|
|
356
|
+
function getParentBlockDef(ancestors, type) {
|
|
357
|
+
const [, ...blocks] = ancestors || [];
|
|
358
|
+
return blocks.reverse().find((_) => !type || type === _?.type) || {};
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
function getParentBlockContent(ancestors, defaultContent) {
|
|
362
|
+
const { content } = getParentBlockDef(ancestors);
|
|
363
|
+
return content || defaultContent;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
const Foldable = JSX(({ isFoldButtonOnTop = false, unfoldedByDefault = false, renderFoldableSection, renderFoldButton, }) => {
|
|
367
|
+
const [isUnfolded, setIsUnfolded] = useState(unfoldedByDefault);
|
|
368
|
+
const onToggle = useCallback(() => {
|
|
369
|
+
setIsUnfolded((_) => !_);
|
|
370
|
+
}, []);
|
|
371
|
+
const sectionNode = renderFoldableSection({ isUnfolded, onToggle });
|
|
372
|
+
const buttonNode = renderFoldButton ? renderFoldButton({ isUnfolded, onToggle }) : null;
|
|
373
|
+
return isFoldButtonOnTop ? (jsxs("div", { children: [buttonNode, sectionNode] })) : (jsxs("div", { children: [sectionNode, buttonNode] }));
|
|
374
|
+
});
|
|
375
|
+
|
|
376
|
+
const FoldableSection = JSX(({ className = '', isUnfolded, children }) => {
|
|
377
|
+
const containerRef = useRef(null);
|
|
378
|
+
useEffect(() => {
|
|
379
|
+
if (containerRef.current) {
|
|
380
|
+
containerRef.current.style.maxHeight = isUnfolded
|
|
381
|
+
? `${containerRef.current.scrollHeight}px`
|
|
382
|
+
: '';
|
|
383
|
+
}
|
|
384
|
+
}, [isUnfolded, children?.length]);
|
|
385
|
+
return (jsx("div", { ref: containerRef, className: `transition-max-h duration-300 overflow-hidden max-h-0 ${className}`, children: children }));
|
|
386
|
+
});
|
|
387
|
+
|
|
249
388
|
const svgUseStyleMap = {
|
|
250
389
|
normal: 'text-primary-main',
|
|
251
390
|
black: 'text-black',
|
|
@@ -268,7 +407,7 @@
|
|
|
268
407
|
const Background = JSX(({ className, children }) => className ? jsx("div", { className: className, children: children }) : children);
|
|
269
408
|
|
|
270
409
|
function getIconVersion$1(image) {
|
|
271
|
-
return typeof image === 'string' ? 'normal' : image
|
|
410
|
+
return typeof image === 'string' ? 'normal' : image?.iconVersion || 'normal';
|
|
272
411
|
}
|
|
273
412
|
|
|
274
413
|
const sourcesComparator = (a, b) => {
|
|
@@ -316,33 +455,13 @@
|
|
|
316
455
|
|
|
317
456
|
const Img = JSX((props) => jsx(ImgInner, { ...props, isMobile: true }));
|
|
318
457
|
|
|
319
|
-
const
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
};
|
|
324
|
-
const HEADLINE_BLOCK_STYLE_MAPS = {
|
|
325
|
-
transparent: {
|
|
326
|
-
background: 'bg-transparent',
|
|
327
|
-
text: 'text-primary-text',
|
|
328
|
-
description: 'text-primary-text',
|
|
329
|
-
},
|
|
330
|
-
primary: {
|
|
331
|
-
background: 'bg-white',
|
|
332
|
-
text: 'text-primary-text',
|
|
333
|
-
description: 'text-primary-text',
|
|
334
|
-
},
|
|
335
|
-
secondary: {
|
|
336
|
-
background: 'bg-primary-main',
|
|
337
|
-
text: 'text-white',
|
|
338
|
-
description: 'text-white/80',
|
|
339
|
-
},
|
|
340
|
-
};
|
|
341
|
-
|
|
342
|
-
const Headline = JSX(({ bgColorHeadline = 'transparent', className = '', title, description, image, align = 'left', }) => {
|
|
343
|
-
const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
|
|
344
|
-
return (jsxs("section", { className: `px-4 py-6 flex flex-col gap-2.5 ${STYLE_MAPS.background} ${className}`, children: [title ? (jsx(Heading, { headingType: "h2", className: `${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, title: title })) : null, description ? (jsx("p", { className: `text-m ${STYLE_MAPS.description} ${ALIGN_TEXT[align]}`, children: description })) : null, image?.src && (jsx("div", { className: "mt-2.5 mx-auto flex justify-center", children: jsx(Img, { image: image }) }))] }));
|
|
458
|
+
const icons = ['PlusIcon', 'MinusIcon'];
|
|
459
|
+
const AccordionItem = JSX(({ className = '', ancestors, label = '', labelIcon, isExpanded, children }) => {
|
|
460
|
+
const { bordered } = getParentBlockContent(ancestors, {});
|
|
461
|
+
return (jsx("li", { className: `${bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0'} border-solid border-main-divider ${className}`, children: jsx(Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { className: "flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0", isUnfolded: isUnfolded, children: children })), renderFoldButton: ({ isUnfolded, onToggle }) => (jsx(FoldButton, { className: bordered ? '' : 'py-[14px] px-0', label: label, icon: icons[Number(isUnfolded)], primaryIcon: labelIcon, onClick: onToggle })) }) }));
|
|
345
462
|
});
|
|
463
|
+
AccordionItem.childrenTypes = [];
|
|
464
|
+
const FoldButton = JSX(({ className, icon, label, primaryIcon, onClick }) => (jsxs("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${className}`, onClick: onClick, children: [jsxs("span", { className: "text-m-title-xs font-medium pr-2.5 flex group-hover:text-primary-main", children: [primaryIcon ? (jsx(Img, { image: primaryIcon, className: "mr-3 flex-shrink-0", width: "24", height: "24", asSVG: true })) : null, label] }), jsx(Img, { className: "flex-shrink-0", image: icon, width: "24", height: "24", asSVG: true })] })));
|
|
346
465
|
|
|
347
466
|
// column-gap between children of SwipeListControl container
|
|
348
467
|
const DEFAULT_GAP = 14;
|
|
@@ -483,518 +602,79 @@
|
|
|
483
602
|
return (jsxs("div", { className: className, children: [jsx(SwipeListControlList, { gap: gap, padding: padding, activeIndex: activeIndex, onScroll: handleScroll, children: children }), jsx(SwipeListControlDots, { ...dotsProps })] }));
|
|
484
603
|
});
|
|
485
604
|
|
|
486
|
-
const
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
const prefix = ext || fileSize ? ',' : '';
|
|
492
|
-
const extension = ext ? ` ${ext}` : '';
|
|
493
|
-
const size = fileSize ? ` (${fileSize})` : '';
|
|
494
|
-
return prefix + extension + size;
|
|
605
|
+
const iconStyleMap = {
|
|
606
|
+
primary: 'group-hover:brightness-0 group-hover:invert',
|
|
607
|
+
secondary: 'group-hover:brightness-0 group-hover:invert',
|
|
608
|
+
white: 'group-hover:brightness-0 group-hover:invert',
|
|
609
|
+
link: '',
|
|
495
610
|
};
|
|
496
|
-
|
|
497
|
-
|
|
611
|
+
|
|
612
|
+
const ButtonInner = JSX((props) => {
|
|
613
|
+
const { text, aboveText, appendLeft, appendRight, version = 'primary' } = props;
|
|
614
|
+
return (jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? jsx("div", { className: iconStyleMap[version], children: appendLeft }) : null, isWithText(props) ? (jsxs("div", { children: [jsx("div", { className: "text-xs-light text-left", children: aboveText }), jsx("div", { className: `text-left ${aboveText ? 'text-s -mt-0.5' : 'text-l'}`, children: text })] })) : null, appendRight ? jsx("div", { className: iconStyleMap[version], children: appendRight }) : null] }));
|
|
615
|
+
});
|
|
616
|
+
const getButtonStyle = (props) => {
|
|
617
|
+
const { className = '', version, aboveText, rounded } = props;
|
|
618
|
+
if (version === 'link') {
|
|
498
619
|
return '';
|
|
499
620
|
}
|
|
500
|
-
const
|
|
501
|
-
return
|
|
621
|
+
const withTextStyle = `gap-2 ${aboveText ? 'py-2.5 px-7' : 'py-4 px-9'}`;
|
|
622
|
+
return [
|
|
623
|
+
'group flex items-center justify-center',
|
|
624
|
+
isWithText(props) ? withTextStyle : 'h-12 w-12',
|
|
625
|
+
rounded ? 'rounded-full' : '',
|
|
626
|
+
className,
|
|
627
|
+
].join(' ');
|
|
502
628
|
};
|
|
629
|
+
const isWithText = ({ text, aboveText, appendLeft }) => Boolean(text || aboveText || !appendLeft);
|
|
503
630
|
|
|
504
|
-
const
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
631
|
+
const buttonStyleMap = {
|
|
632
|
+
primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
|
|
633
|
+
secondary: 'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
|
|
634
|
+
white: 'text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white',
|
|
635
|
+
link: 'text-primary-main',
|
|
636
|
+
};
|
|
637
|
+
const buttonDisabledStyleMap = {
|
|
638
|
+
primary: 'bg-secondary-dark text-secondary-text',
|
|
639
|
+
secondary: 'bg-secondary-light text-secondary-text',
|
|
640
|
+
white: 'bg-white text-primary-text',
|
|
641
|
+
link: '',
|
|
642
|
+
};
|
|
643
|
+
const styleButton = 'w-full text-center font-sans select-none';
|
|
644
|
+
const Button = JSX(({ className, text, aboveText, appendLeft, href, target, onClick, children, disabled, rounded, version = 'primary', ariaLabel, ...rest }) => {
|
|
645
|
+
// It isn't a valid HTML attribute. Must be excluded from "rest"
|
|
646
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
647
|
+
const { appendRight, ...buttonInnerRest } = rest;
|
|
648
|
+
const buttonInner = children ?? (jsx(ButtonInner, { text: text, aboveText: aboveText, appendLeft: appendLeft, rounded: rounded, version: version }));
|
|
649
|
+
if (disabled) {
|
|
650
|
+
return (jsx("div", { role: "button", "aria-disabled": "true", "aria-label": ariaLabel, tabIndex: -1, className: `inline-block ${styleButton} ${buttonDisabledStyleMap[version] || ''} ${rounded ? 'rounded-full' : 'rounded-md'} ${className || ''}`, children: buttonInner }));
|
|
651
|
+
}
|
|
652
|
+
return (jsx("a", { className: `${styleButton} inline-block cursor-pointer no-underline focus:border focus:border-primary-focus ${buttonStyleMap[version] || ''} ${rounded ? 'rounded-full' : 'rounded-md'} ${className || ''}`, href: href, target: target, onClick: onClick, "aria-label": ariaLabel, role: !href ? 'button' : 'link', ...buttonInnerRest, children: buttonInner }));
|
|
510
653
|
});
|
|
511
654
|
|
|
512
|
-
const
|
|
513
|
-
|
|
514
|
-
? documents.map((doc, i) => (jsx("div", { role: "listitem", children: jsx(LinkDocsListItem, { className: hasBorder ? 'rounded-md border-main-stroke border border-solid p-4' : '', doc: doc, icon: icon }) }, String(i))))
|
|
515
|
-
: null }));
|
|
516
|
-
});
|
|
655
|
+
const GRADIENT = 'bg-gradient-to-r from-main-gradient-start to-main-gradient-end';
|
|
656
|
+
const DIVIDER_CLASSES = 'border-main-divider border border-t-0 border-x-0';
|
|
517
657
|
|
|
518
|
-
const
|
|
519
|
-
|
|
658
|
+
const headingStyle = (isFillGradient = false) => (isFillGradient ? 'text-white' : '');
|
|
659
|
+
const subtitleStyle = (isFillGradient = false) => `text-s mb-3.5 ${isFillGradient ? 'text-white' : 'text-secondary-text/80'}`;
|
|
660
|
+
const HeaderCell = JSX(({ icon, image, title, subtitle, isFillGradient }) => (jsxs("div", { role: "columnheader", children: [icon ? (jsx(Img, { className: "h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4", image: icon, width: "63", height: "63" })) : null, image?.src && (jsx("div", { className: "mb-3.5", children: jsx(Img, { image: image }) })), title ? (jsx(Heading, { headingType: "h4", className: headingStyle(isFillGradient), title: title })) : null, subtitle ? jsx("div", { className: subtitleStyle(isFillGradient), children: subtitle }) : null] })));
|
|
661
|
+
|
|
662
|
+
const TableCell = JSX(({ cell, rowHeader, isFillGradient = false }) => {
|
|
663
|
+
const cellWrapperClasses = `box-border flex flex-col`;
|
|
664
|
+
const cellClasses = `h-full ${DIVIDER_CLASSES}`;
|
|
665
|
+
return (jsx("div", { className: cellWrapperClasses, role: "cell", children: jsx("div", { className: cellClasses, children: cell.map(renderCellInner$1(isFillGradient, rowHeader)) }) }));
|
|
520
666
|
});
|
|
667
|
+
const renderCellInner$1 = (isFillGradient, rowHeader) => ({ label, description }, i) => (jsxs("div", { className: "flex justify-between text-s py-3.5", children: [jsx("div", { className: `${isFillGradient ? 'text-white/80' : 'text-secondary-text'}`, children: rowHeader }), jsxs("div", { className: "basis-1/2", children: [label ? (jsx("div", { className: `text-right ${isFillGradient ? 'text-white' : ''}`, children: label })) : null, description ? (jsx("div", { className: `text-right ${isFillGradient ? 'text-white/80' : 'text-secondary-text'}`, children: description })) : null] })] }, String(i)));
|
|
521
668
|
|
|
522
|
-
const
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
return undefined;
|
|
532
|
-
}
|
|
533
|
-
const url = href;
|
|
534
|
-
const protoSeparator = '//';
|
|
535
|
-
const endOfProto = url.indexOf(protoSeparator);
|
|
536
|
-
const endOfOrigin = url.indexOf('/', endOfProto + protoSeparator.length);
|
|
537
|
-
return endOfOrigin !== -1 ? url.substring(0, endOfOrigin) : url;
|
|
538
|
-
};
|
|
539
|
-
const getHash = (href) => {
|
|
540
|
-
if (!href || !isURL(href)) {
|
|
541
|
-
return undefined;
|
|
542
|
-
}
|
|
543
|
-
const hashIndex = href.indexOf('#');
|
|
544
|
-
return hashIndex !== -1 ? href.substring(hashIndex, href.length) : undefined;
|
|
545
|
-
};
|
|
546
|
-
const isHash = (href) => href?.startsWith('#');
|
|
547
|
-
|
|
548
|
-
var url = /*#__PURE__*/Object.freeze({
|
|
549
|
-
__proto__: null,
|
|
550
|
-
isURL: isURL,
|
|
551
|
-
withoutQuery: withoutQuery,
|
|
552
|
-
getOrigin: getOrigin,
|
|
553
|
-
getHash: getHash,
|
|
554
|
-
isHash: isHash
|
|
555
|
-
});
|
|
556
|
-
|
|
557
|
-
const MOBILE_URL_PATH = '/mobile';
|
|
558
|
-
const withoutMobilePath = (href) => (href || '').replace(MOBILE_URL_PATH, '');
|
|
559
|
-
|
|
560
|
-
const adjustHref = (href, router) => {
|
|
561
|
-
if (!href) {
|
|
562
|
-
return href;
|
|
563
|
-
}
|
|
564
|
-
const relativeHref = toRelativeHref(href, router) || '';
|
|
565
|
-
const isMobilePage = router?.pathname.startsWith(MOBILE_URL_PATH);
|
|
566
|
-
return isMobilePage && !isURL(relativeHref) ? `${MOBILE_URL_PATH}${relativeHref}` : relativeHref;
|
|
567
|
-
};
|
|
568
|
-
const toRelativeHref = (href, router) => {
|
|
569
|
-
if (!href) {
|
|
570
|
-
return href;
|
|
571
|
-
}
|
|
572
|
-
const origin = getOrigin(router?.href);
|
|
573
|
-
return origin ? href.replace(origin, '') || '/' : href;
|
|
574
|
-
};
|
|
575
|
-
|
|
576
|
-
const defaultHandlerDecorator = (handler) => handler;
|
|
577
|
-
function useLink({ router, handlerDecorator = defaultHandlerDecorator, }, link) {
|
|
578
|
-
const href = adjustHref(link.href, router);
|
|
579
|
-
return {
|
|
580
|
-
...link,
|
|
581
|
-
href,
|
|
582
|
-
'aria-label': link.text,
|
|
583
|
-
onClick: handlerDecorator((ev) => {
|
|
584
|
-
const isLocalHref = href && !isURL(href);
|
|
585
|
-
const isLocalTarget = !link.target || link.target === '_self';
|
|
586
|
-
if (isLocalHref && isLocalTarget) {
|
|
587
|
-
ev?.preventDefault();
|
|
588
|
-
router.push(href);
|
|
589
|
-
}
|
|
590
|
-
}, link),
|
|
591
|
-
};
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
const iconStyleMap = {
|
|
595
|
-
primary: 'group-hover:brightness-0 group-hover:invert',
|
|
596
|
-
secondary: 'group-hover:brightness-0 group-hover:invert',
|
|
597
|
-
white: 'group-hover:brightness-0 group-hover:invert',
|
|
598
|
-
link: '',
|
|
599
|
-
};
|
|
600
|
-
|
|
601
|
-
const ButtonInner = JSX((props) => {
|
|
602
|
-
const { text, aboveText, appendLeft, appendRight, version = 'primary' } = props;
|
|
603
|
-
return (jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? jsx("div", { className: iconStyleMap[version], children: appendLeft }) : null, isWithText(props) ? (jsxs("div", { children: [jsx("div", { className: "text-xs-light text-left", children: aboveText }), jsx("div", { className: `text-left ${aboveText ? 'text-s -mt-0.5' : 'text-l'}`, children: text })] })) : null, appendRight ? jsx("div", { className: iconStyleMap[version], children: appendRight }) : null] }));
|
|
604
|
-
});
|
|
605
|
-
const getButtonStyle = (props) => {
|
|
606
|
-
const { className = '', version, aboveText, rounded } = props;
|
|
607
|
-
if (version === 'link') {
|
|
608
|
-
return '';
|
|
609
|
-
}
|
|
610
|
-
const withTextStyle = `gap-2 ${aboveText ? 'py-2.5 px-7' : 'py-4 px-9'}`;
|
|
611
|
-
return [
|
|
612
|
-
'group flex items-center justify-center',
|
|
613
|
-
isWithText(props) ? withTextStyle : 'h-12 w-12',
|
|
614
|
-
rounded ? 'rounded-full' : '',
|
|
615
|
-
className,
|
|
616
|
-
].join(' ');
|
|
617
|
-
};
|
|
618
|
-
const isWithText = ({ text, aboveText, appendLeft }) => Boolean(text || aboveText || !appendLeft);
|
|
619
|
-
|
|
620
|
-
const buttonStyleMap = {
|
|
621
|
-
primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
|
|
622
|
-
secondary: 'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
|
|
623
|
-
white: 'text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white',
|
|
624
|
-
link: 'text-primary-main',
|
|
625
|
-
};
|
|
626
|
-
const buttonDisabledStyleMap = {
|
|
627
|
-
primary: 'bg-secondary-dark text-secondary-text',
|
|
628
|
-
secondary: 'bg-secondary-light text-secondary-text',
|
|
629
|
-
white: 'bg-white text-primary-text',
|
|
630
|
-
link: '',
|
|
631
|
-
};
|
|
632
|
-
const styleButton = 'w-full text-center font-sans select-none';
|
|
633
|
-
const Button = JSX(({ className, text, aboveText, appendLeft, href, target, onClick, children, disabled, rounded, version = 'primary', ariaLabel, ...rest }) => {
|
|
634
|
-
// It isn't a valid HTML attribute. Must be excluded from "rest"
|
|
635
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
636
|
-
const { appendRight, ...buttonInnerRest } = rest;
|
|
637
|
-
const buttonInner = children ?? (jsx(ButtonInner, { text: text, aboveText: aboveText, appendLeft: appendLeft, rounded: rounded, version: version }));
|
|
638
|
-
if (disabled) {
|
|
639
|
-
return (jsx("div", { role: "button", "aria-disabled": "true", "aria-label": ariaLabel, tabIndex: -1, className: `inline-block ${styleButton} ${buttonDisabledStyleMap[version] || ''} ${rounded ? 'rounded-full' : 'rounded-md'} ${className || ''}`, children: buttonInner }));
|
|
640
|
-
}
|
|
641
|
-
return (jsx("a", { className: `${styleButton} inline-block cursor-pointer no-underline focus:border focus:border-primary-focus ${buttonStyleMap[version] || ''} ${rounded ? 'rounded-full' : 'rounded-md'} ${className || ''}`, href: href, target: target, onClick: onClick, "aria-label": ariaLabel, role: !href ? 'button' : 'link', ...buttonInnerRest, children: buttonInner }));
|
|
642
|
-
});
|
|
643
|
-
|
|
644
|
-
const ButtonSection = JSX(({ context, className = '', buttons }) => {
|
|
645
|
-
const { handlerDecorator } = context;
|
|
646
|
-
const router = context.useRouter();
|
|
647
|
-
return buttons && buttons?.length ? (jsx("div", { className: className, children: buttons.map((button, index) => (jsx(ButtonSectionItem, { button: button, handlerDecorator: handlerDecorator, router: router }, String(index)))) })) : null;
|
|
648
|
-
});
|
|
649
|
-
const ButtonSectionItem = JSX(({ router, handlerDecorator, button }) => {
|
|
650
|
-
const buttonProps = useLink({ router, handlerDecorator }, button);
|
|
651
|
-
return jsx(Button, { ...button, ...buttonProps });
|
|
652
|
-
});
|
|
653
|
-
|
|
654
|
-
const LIST_DOT_STYLE_MAP$1 = {
|
|
655
|
-
primary: 'bg-primary-text',
|
|
656
|
-
secondary: 'bg-white',
|
|
657
|
-
gray: 'bg-secondary-text',
|
|
658
|
-
};
|
|
659
|
-
const DOT_SIZE_MAP = {
|
|
660
|
-
L: 'w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4 mt-3',
|
|
661
|
-
M: 'w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3 mt-3',
|
|
662
|
-
S: 'w-1 h-1 min-w-1 min-h-1 mr-2 mt-2.5',
|
|
663
|
-
};
|
|
664
|
-
const ListItem = JSX(({ className = '', isDotted = true, children, version = 'primary', size = 'M' }) => {
|
|
665
|
-
return (jsxs("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted ? (jsx("div", { className: `rounded-full inline-block ${LIST_DOT_STYLE_MAP$1[version]} ${DOT_SIZE_MAP[size]}` })) : null, jsx("span", { children: children })] }));
|
|
666
|
-
});
|
|
667
|
-
|
|
668
|
-
const TEXT_STYLE_MAP = {
|
|
669
|
-
primary: 'text-primary-text',
|
|
670
|
-
secondary: 'text-white',
|
|
671
|
-
gray: 'text-secondary-text',
|
|
672
|
-
};
|
|
673
|
-
const TEXT_SIZE_MAP = {
|
|
674
|
-
S: 'text-l-light',
|
|
675
|
-
M: 'text-h6',
|
|
676
|
-
L: 'text-h5',
|
|
677
|
-
};
|
|
678
|
-
const ITEM_INDENT_MAP = {
|
|
679
|
-
S: 'ml-2',
|
|
680
|
-
M: 'ml-3',
|
|
681
|
-
L: 'ml-4',
|
|
682
|
-
};
|
|
683
|
-
const List = JSX((props) => {
|
|
684
|
-
const { className = '', hasIndent, isDotted, itemClassName = '', items, listItemSize = 'M', version = 'primary', } = props;
|
|
685
|
-
if (!items?.length) {
|
|
686
|
-
return null;
|
|
687
|
-
}
|
|
688
|
-
return (jsx("section", { className: `${TEXT_STYLE_MAP[version]} ${TEXT_SIZE_MAP[listItemSize]} ${className} ${hasIndent ? ITEM_INDENT_MAP[listItemSize] : ''}`, role: "list", children: items.map((item, i) => (jsx(ListItem, { className: `${itemClassName} mb-1.5`, isDotted: isDotted, version: version, size: listItemSize, children: item }, String(i)))) }));
|
|
689
|
-
});
|
|
690
|
-
|
|
691
|
-
const BaseTile = JSX(({ className = '', title = '', children, buttons, image }) => {
|
|
692
|
-
return (jsxs("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, children: [title, jsxs("div", { className: "flex grow w-full justify-between", children: [jsxs("div", { className: "flex flex-col justify-between w-full", children: [jsx("div", { className: "h-full", children: children }), buttons ? jsx("div", { className: "mt-auto pt-8", children: buttons }) : null] }), image] })] }));
|
|
693
|
-
});
|
|
694
|
-
|
|
695
|
-
const titleStyleMap = {
|
|
696
|
-
primary: 'text-primary-text',
|
|
697
|
-
secondary: 'text-white',
|
|
698
|
-
};
|
|
699
|
-
const descStyleMap = {
|
|
700
|
-
primary: 'text-secondary-text',
|
|
701
|
-
secondary: 'text-white',
|
|
702
|
-
};
|
|
703
|
-
const BenefitItem = JSX((props) => {
|
|
704
|
-
const { className = '', icon, label, description, version = 'primary', benefitsVersion = 'normal', } = props;
|
|
705
|
-
const isIconWhite = benefitsVersion === 'white' || version === 'secondary';
|
|
706
|
-
const listItemAlign = description ? 'items-start' : 'items-center';
|
|
707
|
-
const iconVersion = getIconVersion(icon, isIconWhite);
|
|
708
|
-
return (jsxs("div", { className: `flex gap-5 ${listItemAlign} ${className}`, children: [icon ? (jsx("div", { className: renderBenefitIconBgStyle(version, benefitsVersion), children: jsx(Img, { className: "w-6 h-6", image: { ...icon, iconVersion }, asSVG: true }) })) : null, jsxs("div", { className: "gap-0.5", children: [label ? jsx("div", { className: `text-h6 ${titleStyleMap[version]}`, children: label }) : null, description ? (jsx("div", { className: `text-m-light ${descStyleMap[version]}`, children: description })) : null] })] }));
|
|
709
|
-
});
|
|
710
|
-
function renderBenefitIconBgStyle(version, benefitsVersion) {
|
|
711
|
-
let bgColorStyle = 'bg-primary-main text-black';
|
|
712
|
-
if (version === 'secondary') {
|
|
713
|
-
bgColorStyle = 'bg-white/30 text-black';
|
|
714
|
-
}
|
|
715
|
-
else if (benefitsVersion === 'normal') {
|
|
716
|
-
bgColorStyle = 'bg-secondary-light text-primary-main';
|
|
717
|
-
}
|
|
718
|
-
return `w-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${bgColorStyle}`;
|
|
719
|
-
}
|
|
720
|
-
const getIconVersion = (icon, isIconWhite) => icon?.iconVersion || isIconWhite ? 'white' : 'normal';
|
|
721
|
-
|
|
722
|
-
const renderBenefit = (version = 'primary', benefitsVersion = 'normal') => ({ icon, label, description }, i) => {
|
|
723
|
-
return (jsx(BenefitItem, { icon: icon, label: label, description: description, version: version, benefitsVersion: benefitsVersion }, String(i)));
|
|
724
|
-
};
|
|
725
|
-
|
|
726
|
-
const ProductBlockInner = JSX(({ className = '', context, title, headlineVersion = 'L', description, benefits, benefitsVersion = 'normal', buttons, image, items, version = 'primary', isDotted = true, label, }) => {
|
|
727
|
-
return (jsxs("div", { className: `w-full ${className}`, children: [jsxs("div", { children: [label ? renderLabel(label, version) : null, jsx(Headline, { context: context, className: "!p-0 max-w-[600px]", title: title, description: description, bgColorHeadline: version, headlineVersion: headlineVersion }), jsxs(BaseTile, { context: context, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex flex-col mt-5 gap-2.5" })) : null, children: [benefits?.filter((_) => _.label)?.length ? (jsx("div", { className: "mt-3", children: benefits.map(renderBenefit(version, benefitsVersion)) })) : null, items?.length ? (jsx(List, { className: "mt-3 text-m", items: items, version: version, isDotted: isDotted })) : null] })] }), renderImage$1(image)] }));
|
|
728
|
-
});
|
|
729
|
-
function renderImage$1(image) {
|
|
730
|
-
return image?.src ? (jsx(Img, { imageClassName: "mt-5 mx-auto block", image: { className: 'block', ...image } })) : null;
|
|
731
|
-
}
|
|
732
|
-
const labelStyleMap = {
|
|
733
|
-
primary: 'text-primary-main border-secondary-hover',
|
|
734
|
-
secondary: 'text-white/80',
|
|
735
|
-
};
|
|
736
|
-
const renderLabel = (label, version) => (jsx("div", { className: `px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${labelStyleMap[version]}`, children: label }));
|
|
737
|
-
|
|
738
|
-
const ProductBlock = JSX((props /* Get rid of image and benefits */) => {
|
|
739
|
-
const { className = '', version = 'primary' } = props;
|
|
740
|
-
return (jsx("section", { className: `font-sans bg-white px-4 py-6 ${VersionStyleMap[version]} ${className}`, children: jsx(ProductBlockInner, { ...props }) }));
|
|
741
|
-
});
|
|
742
|
-
|
|
743
|
-
const textBlockStyleMaps = {
|
|
744
|
-
primary: {
|
|
745
|
-
background: 'bg-white',
|
|
746
|
-
icon: 'bg-primary-main text-white',
|
|
747
|
-
title: 'text-primary-text',
|
|
748
|
-
description: 'text-secondary-text',
|
|
749
|
-
},
|
|
750
|
-
secondary: {
|
|
751
|
-
background: 'bg-primary-main',
|
|
752
|
-
icon: 'bg-white text-primary-main',
|
|
753
|
-
title: 'text-white',
|
|
754
|
-
description: 'text-white',
|
|
755
|
-
},
|
|
756
|
-
'secondary-light': {
|
|
757
|
-
background: 'bg-primary-main/10',
|
|
758
|
-
icon: 'bg-primary-main text-white',
|
|
759
|
-
title: 'text-primary-text',
|
|
760
|
-
description: 'text-secondary-text',
|
|
761
|
-
},
|
|
762
|
-
};
|
|
763
|
-
const TextBlock = JSX(({ title, description, blockVersion = 'primary', iconVersion, image, className = '', items, isDotted = true, }) => {
|
|
764
|
-
const textBlockStyleMap = textBlockStyleMaps[blockVersion];
|
|
765
|
-
const listBlockVersion = blockVersion === 'secondary' ? 'secondary' : 'gray';
|
|
766
|
-
return (jsxs("section", { className: `font-sans px-4 py-[18px] flex flex-col ${textBlockStyleMap.background} ${className}`, children: [iconVersion === 'small' ? renderIcon(textBlockStyleMap.icon) : null, iconVersion === 'big' ? renderImage(image) : null, jsxs("div", { className: "py-0.5", children: [title ? (jsx("div", { className: `text-l font-medium mb-1 ${textBlockStyleMap.title}`, children: title })) : null, description ? (jsx("div", { className: `text-s ${textBlockStyleMap.description}`, children: description })) : null, items?.length ? (jsx(List, { className: "mt-1 text-m", items: items, isDotted: isDotted, version: listBlockVersion })) : null] })] }));
|
|
767
|
-
});
|
|
768
|
-
function renderIcon(className) {
|
|
769
|
-
return (jsx("div", { className: "mb-3", children: jsx("div", { className: `rounded-full h-4 w-4 text-center text-xs-light ${className}`, children: "i" }) }));
|
|
770
|
-
}
|
|
771
|
-
function renderImage(image) {
|
|
772
|
-
return image?.src ? jsx(Img, { className: "pb-3 mr-auto", image: image }) : null;
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
const Gallery = JSX(({ context, title, description, cards = [], className, orientation = 'horizontal' }) => {
|
|
776
|
-
const headingClassName = description ? 'mb-2' : 'mb-5';
|
|
777
|
-
return (jsxs("section", { className: `relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${className}`, children: [jsxs("div", { className: "flex flex-col items-center mb-5", children: [title ? (jsx(Heading, { headingType: "h3", className: `text-center ${headingClassName}`, title: title })) : null, description ? (jsx("div", { className: "text-m max-w-[600px] text-center mb-5", children: description })) : null] }), renderCardsLayout(orientation, cards, context)] }));
|
|
778
|
-
});
|
|
779
|
-
function renderCardsLayout(orientation, cards, context) {
|
|
780
|
-
return orientation === 'horizontal' ? (jsx(SwipeListControl, { context: context, children: cards?.map(renderCard) })) : (jsx("div", { className: "grid gap-[14px]", children: cards?.map(renderCard) }));
|
|
781
|
-
}
|
|
782
|
-
function renderCard(card, key) {
|
|
783
|
-
return (jsxs("div", { className: `h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col
|
|
784
|
-
${VersionStyleMap[card.version ?? 'primary']}`, children: [jsxs("div", { children: [card.image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(Img, { className: "mb-3.5", image: card.image }) })) : null, card.title ? jsx("h3", { className: `text-m-title-xs font-medium m-0`, children: card.title }) : null, card.description ? renderDescription(card) : null, card.items?.length ? renderItems(card.items, card.isDotted, card.version) : null] }), card?.button?.text ? renderButton(card.button) : null] }, key));
|
|
785
|
-
}
|
|
786
|
-
function renderButton(button) {
|
|
787
|
-
return (jsx(Button, { className: "mt-3", appendLeft: button?.icon && jsx(Img, { image: button?.icon, width: "24px", height: "24px", asSVG: true }), ...button }));
|
|
788
|
-
}
|
|
789
|
-
function renderDescription(card) {
|
|
790
|
-
return (jsx("div", { className: `text-secondary-text mt-1 text-s ${card.version === 'secondary' ? 'text-white opacity-80' : ''}`, children: card.description }));
|
|
791
|
-
}
|
|
792
|
-
const LIST_DOT_STYLE_MAP = {
|
|
793
|
-
primary: 'bg-primary-text',
|
|
794
|
-
secondary: 'bg-white',
|
|
795
|
-
gray: 'bg-secondary-text',
|
|
796
|
-
};
|
|
797
|
-
function renderItems(items, isDotted, version = 'primary') {
|
|
798
|
-
return (jsx("section", { className: "mt-3", children: items.map((item, i) => (jsxs("div", { children: [isDotted ? (jsx("div", { className: `rounded-full inline-block mr-3 mt-2 w-2 h-2 min-w-2 min-h-2 ${LIST_DOT_STYLE_MAP[version]}` })) : null, jsx("span", { className: "text-m font-medium", children: item.title }), jsx("span", { className: `text-s pl-2 ${version === 'primary' ? 'text-secondary-text' : ''}`, children: item.text })] }, String(i)))) }));
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
class EventBus {
|
|
802
|
-
static inst = new EventBus();
|
|
803
|
-
subscribers = {};
|
|
804
|
-
subjectsStateMap = {};
|
|
805
|
-
subscribe(type, listener) {
|
|
806
|
-
this.subscribers[type] ||= [];
|
|
807
|
-
this.subscribers[type]?.push(listener);
|
|
808
|
-
const latestEvent = this.subjectsStateMap[type];
|
|
809
|
-
if (latestEvent) {
|
|
810
|
-
listener(latestEvent);
|
|
811
|
-
}
|
|
812
|
-
return () => {
|
|
813
|
-
this.unsubscribe(type, listener);
|
|
814
|
-
};
|
|
815
|
-
}
|
|
816
|
-
unsubscribe(type, listener) {
|
|
817
|
-
this.subscribers[type] = this.subscribers[type]?.filter((s) => s !== listener);
|
|
818
|
-
}
|
|
819
|
-
fire(type, event) {
|
|
820
|
-
this.subjectsStateMap[type] = event;
|
|
821
|
-
this.subscribers[type]?.forEach((s) => s(event));
|
|
822
|
-
}
|
|
823
|
-
subject(type, event) {
|
|
824
|
-
this.subjectsStateMap[type] = event;
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
const changeHashOnObserve = ({ anchor, anchorClickRef }) => (entries) => {
|
|
829
|
-
if (!entries?.length) {
|
|
830
|
-
return;
|
|
831
|
-
}
|
|
832
|
-
const [entry] = entries;
|
|
833
|
-
if (!entry.isIntersecting || entry.boundingClientRect.top > 150) {
|
|
834
|
-
return;
|
|
835
|
-
}
|
|
836
|
-
if (anchorClickRef?.current?.isScrolling && anchorClickRef.current.label === `#${anchor}`) {
|
|
837
|
-
EventBus.inst.fire('anchorClick', { isScrolling: false, label: undefined });
|
|
838
|
-
EventBus.inst.fire('tab', { type: 'link', label: anchor });
|
|
839
|
-
}
|
|
840
|
-
else if (!anchorClickRef?.current?.isScrolling) {
|
|
841
|
-
EventBus.inst.fire('tab', { type: 'link', label: anchor });
|
|
842
|
-
}
|
|
843
|
-
};
|
|
844
|
-
|
|
845
|
-
const IntersectionObserverTag = JSX((props) => {
|
|
846
|
-
const { tag = 'section', observerCallback, observerOptions, className = '', anchor = null, children, } = props;
|
|
847
|
-
const intersectionObserver = useRef(null);
|
|
848
|
-
const ref = useCallback((element) => {
|
|
849
|
-
if (!element) {
|
|
850
|
-
return;
|
|
851
|
-
}
|
|
852
|
-
if (intersectionObserver.current) {
|
|
853
|
-
intersectionObserver.current.disconnect();
|
|
854
|
-
}
|
|
855
|
-
intersectionObserver.current = new IntersectionObserver(observerCallback, observerOptions);
|
|
856
|
-
intersectionObserver.current.observe(element);
|
|
857
|
-
}, [observerCallback, observerOptions]);
|
|
858
|
-
const Tag = tag;
|
|
859
|
-
return (jsx(Tag, { ref: ref, className: className, id: anchor, children: children }));
|
|
860
|
-
});
|
|
861
|
-
|
|
862
|
-
const THRESHOLD_ACCURACY = 100; // Decimals number (100 is for two decimals number, 0.**)
|
|
863
|
-
const THRESHOLD_ARRAY_LENGTH = 18;
|
|
864
|
-
const THRESHOLD_ARRAY_START_VALUE = (THRESHOLD_ACCURACY - THRESHOLD_ARRAY_LENGTH) / THRESHOLD_ACCURACY;
|
|
865
|
-
const BlockWrapper = JSX(({ anchor, className, children, tag = 'section', labels }) => {
|
|
866
|
-
const Tag = tag;
|
|
867
|
-
const [shouldRenderBlock, setShouldRenderBlock] = useState(true);
|
|
868
|
-
const anchorClickRef = useRef({});
|
|
869
|
-
const observerCallback = useMemo(() => changeHashOnObserve({ anchor, anchorClickRef }), [anchor]);
|
|
870
|
-
useEffect(() => {
|
|
871
|
-
const anchorClickCleanup = EventBus.inst.subscribe('anchorClick', (e) => {
|
|
872
|
-
anchorClickRef.current = e;
|
|
873
|
-
});
|
|
874
|
-
const tabCleanup = EventBus.inst.subscribe('tab', (event) => {
|
|
875
|
-
if (event.type === 'group') {
|
|
876
|
-
setShouldRenderBlock(!labels?.length || !event.label || labels.includes(event.label));
|
|
877
|
-
}
|
|
878
|
-
else {
|
|
879
|
-
changeHash(event.label);
|
|
880
|
-
setShouldRenderBlock(true);
|
|
881
|
-
}
|
|
882
|
-
});
|
|
883
|
-
return () => {
|
|
884
|
-
anchorClickCleanup();
|
|
885
|
-
tabCleanup();
|
|
886
|
-
};
|
|
887
|
-
}, []);
|
|
888
|
-
if (!shouldRenderBlock) {
|
|
889
|
-
return null;
|
|
890
|
-
}
|
|
891
|
-
return anchor ? (jsx(IntersectionObserverTag, { tag: tag, className: className, observerCallback: observerCallback, observerOptions: {
|
|
892
|
-
threshold: new Array(THRESHOLD_ARRAY_LENGTH).fill(0).map(getIntersectionThreshold),
|
|
893
|
-
}, anchor: anchor, children: children })) : (jsx(Tag, { className: className, children: children }));
|
|
894
|
-
});
|
|
895
|
-
function getIntersectionThreshold(_, i) {
|
|
896
|
-
const value = (i + 1) / THRESHOLD_ACCURACY + THRESHOLD_ARRAY_START_VALUE;
|
|
897
|
-
return Math.round(value * THRESHOLD_ACCURACY) / THRESHOLD_ACCURACY;
|
|
898
|
-
}
|
|
899
|
-
function changeHash(label) {
|
|
900
|
-
if (label) {
|
|
901
|
-
globalThis.document.location.hash = label;
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
const LinkList = JSX(({ className = '', documents, ...rest }) => {
|
|
906
|
-
return (jsx(BlockWrapper, { className: `font-sans bg-white mt-[10px] ${className}`, ...rest, children: jsx("ul", { className: "flex flex-col text-s text-secondary-text p-0", children: documents?.length ? renderLinkListItem(documents) : null }) }));
|
|
907
|
-
});
|
|
908
|
-
const renderLinkListItem = (documents) => {
|
|
909
|
-
return documents.map((doc, i) => {
|
|
910
|
-
const { text, ...linkProps } = doc;
|
|
911
|
-
return (jsx("li", { className: "mb-4 list-none", children: jsx("a", { className: "hover:text-primary-main", role: "link", ...linkProps, children: text ? text : null }) }, `list_item_${String(i)}`));
|
|
912
|
-
});
|
|
913
|
-
};
|
|
914
|
-
|
|
915
|
-
const EmbeddableBlocks = {
|
|
916
|
-
Headline,
|
|
917
|
-
LinkDocs,
|
|
918
|
-
TextBlock,
|
|
919
|
-
ProductBlock,
|
|
920
|
-
Gallery,
|
|
921
|
-
LinkList,
|
|
922
|
-
};
|
|
923
|
-
|
|
924
|
-
const renderBlocksList$1 = ({ blocks, context, className = '' }) => blocks?.length ? blocks.map(renderBlock$1({ context, className })) : [];
|
|
925
|
-
const renderBlock$1 = ({ context, className }) => (block, i) => {
|
|
926
|
-
if (!block) {
|
|
927
|
-
return null;
|
|
928
|
-
}
|
|
929
|
-
const { style, blockListType: type, ...rest } = block;
|
|
930
|
-
if (!type || !(type in EmbeddableBlocks)) {
|
|
931
|
-
return null;
|
|
932
|
-
}
|
|
933
|
-
const classNameBlock = style2className(style);
|
|
934
|
-
const EmbeddedBlock = EmbeddableBlocks[type];
|
|
935
|
-
return (jsx(EmbeddedBlock, { className: `${className} ${classNameBlock}`, context: context, ...rest }, `block_${i}`));
|
|
936
|
-
};
|
|
937
|
-
|
|
938
|
-
const Foldable = JSX(({ isFoldButtonOnTop = false, unfoldedByDefault = false, renderFoldableSection, renderFoldButton, }) => {
|
|
939
|
-
const [isUnfolded, setIsUnfolded] = useState(unfoldedByDefault);
|
|
940
|
-
const onToggle = useCallback(() => {
|
|
941
|
-
setIsUnfolded((_) => !_);
|
|
942
|
-
}, []);
|
|
943
|
-
const sectionNode = renderFoldableSection({ isUnfolded, onToggle });
|
|
944
|
-
const buttonNode = renderFoldButton ? renderFoldButton({ isUnfolded, onToggle }) : null;
|
|
945
|
-
return isFoldButtonOnTop ? (jsxs("div", { children: [buttonNode, sectionNode] })) : (jsxs("div", { children: [sectionNode, buttonNode] }));
|
|
946
|
-
});
|
|
947
|
-
|
|
948
|
-
const FoldableSection = JSX(({ className = '', isUnfolded, children }) => {
|
|
949
|
-
const containerRef = useRef(null);
|
|
950
|
-
useEffect(() => {
|
|
951
|
-
if (containerRef.current) {
|
|
952
|
-
containerRef.current.style.maxHeight = isUnfolded
|
|
953
|
-
? `${containerRef.current.scrollHeight}px`
|
|
954
|
-
: '';
|
|
955
|
-
}
|
|
956
|
-
}, [isUnfolded]);
|
|
957
|
-
return (jsx("div", { ref: containerRef, className: `transition-max-h duration-300 overflow-hidden max-h-0 ${className}`, children: children }));
|
|
958
|
-
});
|
|
959
|
-
|
|
960
|
-
const icons = ['PlusIcon', 'MinusIcon'];
|
|
961
|
-
const AccordionItem = JSX(({ label = '', labelIcon, bordered, children, hasContent = true }) => (jsx("li", { className: `${borderedLiClass(bordered)} border-solid border-main-divider`, children: jsx(Foldable, { isFoldButtonOnTop: true, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { className: "flex flex-wrap group-last:last:pb-0", isUnfolded: isUnfolded, children: children })), renderFoldButton: ({ isUnfolded, onToggle }) => (jsx(FoldButton, { className: bordered ? '' : 'py-[14px] px-0', label: label, icon: icons[Number(isUnfolded)], primaryIcon: labelIcon, hasContent: hasContent, onClick: onToggle })) }) })));
|
|
962
|
-
const FoldButton = JSX(({ className, hasContent, icon, label, primaryIcon, onClick }) => (jsxs("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text
|
|
963
|
-
${className}
|
|
964
|
-
${hasContent ? 'group cursor-pointer' : ''}`, onClick: onClick, children: [jsxs("span", { className: `text-m-title-xs font-medium pr-2.5 flex ${hasContent ? 'group-hover:text-primary-main' : ''}`, children: [primaryIcon ? (jsx(Img, { image: primaryIcon, className: "mr-3 flex-shrink-0", width: "24", height: "24", asSVG: true })) : null, label] }), hasContent ? (jsx(Img, { className: "flex-shrink-0", image: icon, width: "24", height: "24", asSVG: true })) : null] })));
|
|
965
|
-
function borderedLiClass(bordered) {
|
|
966
|
-
return bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0';
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
const AccordionItemsList = JSX(({ children }) => (jsx("ul", { className: "list-none m-0 p-0", children: children })));
|
|
970
|
-
|
|
971
|
-
const Accordion = JSX(({ title, description, accordionItems, context, className = '', bordered, ...rest }) => {
|
|
972
|
-
return (jsxs(BlockWrapper, { context: context, className: `py-6 px-4 font-sans bg-white text-primary-text ${className}`, ...rest, children: [title ? jsx(Heading, { headingType: "h3", className: "mb-2 text-center", title: title }) : null, description ? jsx("div", { className: "mb-5 text-m-light text-center", children: description }) : null, accordionItems?.length ? (jsx(AccordionItemsList, { children: accordionItems.map((item, i) => (jsx(AccordionItem, { context: context, bordered: bordered, hasContent: Boolean(item.blocks?.length), ...item, children: renderBlocksList$1({ blocks: item.blocks, context, className: '!p-0 mb-5' }) }, `AccordionItem_${i}`))) })) : null] }));
|
|
973
|
-
});
|
|
974
|
-
|
|
975
|
-
const GRADIENT = 'bg-gradient-to-r from-main-gradient-start to-main-gradient-end';
|
|
976
|
-
const DIVIDER_CLASSES = 'border-main-divider border border-t-0 border-x-0';
|
|
977
|
-
|
|
978
|
-
const headingStyle = (isFillGradient = false) => (isFillGradient ? 'text-white' : '');
|
|
979
|
-
const subtitleStyle = (isFillGradient = false) => `text-s mb-3.5 ${isFillGradient ? 'text-white' : 'text-secondary-text/80'}`;
|
|
980
|
-
const HeaderCell = JSX(({ icon, image, title, subtitle, isFillGradient }) => (jsxs("div", { role: "columnheader", children: [icon ? (jsx(Img, { className: "h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4", image: icon, width: "63", height: "63" })) : null, image?.src && (jsx("div", { className: "mb-3.5", children: jsx(Img, { image: image }) })), title ? (jsx(Heading, { headingType: "h4", className: headingStyle(isFillGradient), title: title })) : null, subtitle ? jsx("div", { className: subtitleStyle(isFillGradient), children: subtitle }) : null] })));
|
|
981
|
-
|
|
982
|
-
const TableCell = JSX(({ cell, rowHeader, isFillGradient = false }) => {
|
|
983
|
-
const cellWrapperClasses = `box-border flex flex-col`;
|
|
984
|
-
const cellClasses = `h-full ${DIVIDER_CLASSES}`;
|
|
985
|
-
return (jsx("div", { className: cellWrapperClasses, role: "cell", children: jsx("div", { className: cellClasses, children: cell.map(renderCellInner$1(isFillGradient, rowHeader)) }) }));
|
|
986
|
-
});
|
|
987
|
-
const renderCellInner$1 = (isFillGradient, rowHeader) => ({ label, description }, i) => (jsxs("div", { className: "flex justify-between text-s py-3.5", children: [jsx("div", { className: `${isFillGradient ? 'text-white/80' : 'text-secondary-text'}`, children: rowHeader }), jsxs("div", { className: "basis-1/2", children: [label ? (jsx("div", { className: `text-right ${isFillGradient ? 'text-white' : ''}`, children: label })) : null, description ? (jsx("div", { className: `text-right ${isFillGradient ? 'text-white/80' : 'text-secondary-text'}`, children: description })) : null] })] }, String(i)));
|
|
988
|
-
|
|
989
|
-
const TableColumn = JSX(({ header, columnData, visibleRowLength = 0, isFillGradient, showRow, onToggleColumn }) => {
|
|
990
|
-
const columnDataView = columnData?.slice(0, showRow ? columnData.length : visibleRowLength);
|
|
991
|
-
const gradientClassName = isFillGradient ? GRADIENT : '';
|
|
992
|
-
const buttonVersion = isFillGradient ? 'secondary' : 'primary';
|
|
993
|
-
return (jsxs("div", { className: `border border-main-stroke rounded-md p-4 mb-3.5 ${gradientClassName}`, role: "row", children: [jsx(HeaderCell, { ...header, isFillGradient: isFillGradient }), columnDataView?.length
|
|
994
|
-
? columnDataView.map(({ rowHeader, cell }, i) => (jsx(TableCell, { cell: cell, rowHeader: rowHeader, isFillGradient: isFillGradient }, String(i))))
|
|
995
|
-
: null, showRow && header?.link ? (jsx(Button, { href: header.link.href, target: header.link.target, version: buttonVersion, className: "text-s font-medium mt-4 py-[11px]", children: header.link.text })) : null, renderToggleButton({ onToggleColumn, isFillGradient, showRow })] }));
|
|
996
|
-
});
|
|
997
|
-
const renderToggleButton = ({ onToggleColumn, isFillGradient, showRow, }) => (jsx("div", { className: "mt-5", role: "cell", children: jsx("a", { role: "link", onClick: onToggleColumn, className: `text-s font-medium cursor-pointer ${isFillGradient ? 'text-white/80' : 'text-primary-main'}`, children: !showRow ? 'Показать описание' : 'Скрыть' }) }));
|
|
669
|
+
const TableColumn = JSX(({ header, columnData, visibleRowLength = 0, isFillGradient, showRow, onToggleColumn }) => {
|
|
670
|
+
const columnDataView = columnData?.slice(0, showRow ? columnData.length : visibleRowLength);
|
|
671
|
+
const gradientClassName = isFillGradient ? GRADIENT : '';
|
|
672
|
+
const buttonVersion = isFillGradient ? 'secondary' : 'primary';
|
|
673
|
+
return (jsxs("div", { className: `border border-main-stroke rounded-md p-4 mb-3.5 ${gradientClassName}`, role: "row", children: [jsx(HeaderCell, { ...header, isFillGradient: isFillGradient }), columnDataView?.length
|
|
674
|
+
? columnDataView.map(({ rowHeader, cell }, i) => (jsx(TableCell, { cell: cell, rowHeader: rowHeader, isFillGradient: isFillGradient }, String(i))))
|
|
675
|
+
: null, showRow && header?.link ? (jsx(Button, { href: header.link.href, target: header.link.target, version: buttonVersion, className: "text-s font-medium mt-4 py-[11px]", children: header.link.text })) : null, renderToggleButton({ onToggleColumn, isFillGradient, showRow })] }));
|
|
676
|
+
});
|
|
677
|
+
const renderToggleButton = ({ onToggleColumn, isFillGradient, showRow, }) => (jsx("div", { className: "mt-5", role: "cell", children: jsx("a", { role: "link", onClick: onToggleColumn, className: `text-s font-medium cursor-pointer ${isFillGradient ? 'text-white/80' : 'text-primary-main'}`, children: !showRow ? 'Показать описание' : 'Скрыть' }) }));
|
|
998
678
|
|
|
999
679
|
const ComparisonTable = JSX((props) => {
|
|
1000
680
|
const { className, title } = props;
|
|
@@ -1116,6 +796,16 @@
|
|
|
1116
796
|
return jsx(SearchBarInner, { className: className, isMobile: true });
|
|
1117
797
|
});
|
|
1118
798
|
|
|
799
|
+
const LinkList = JSX(({ className = '', documents, ...rest }) => {
|
|
800
|
+
return (jsx(BlockWrapper, { className: `font-sans bg-white mt-[10px] ${className}`, ...rest, children: jsx("ul", { className: "flex flex-col text-s text-secondary-text p-0", children: documents?.length ? renderLinkListItem(documents) : null }) }));
|
|
801
|
+
});
|
|
802
|
+
const renderLinkListItem = (documents) => {
|
|
803
|
+
return documents.map((doc, i) => {
|
|
804
|
+
const { text, ...linkProps } = doc;
|
|
805
|
+
return (jsx("li", { className: "mb-4 list-none", children: jsx("a", { className: "hover:text-primary-main", role: "link", ...linkProps, children: text ? text : null }) }, `list_item_${String(i)}`));
|
|
806
|
+
});
|
|
807
|
+
};
|
|
808
|
+
|
|
1119
809
|
const SVG_COLOR = {
|
|
1120
810
|
'bg-white': 'text-primary-main',
|
|
1121
811
|
transparent: 'text-white',
|
|
@@ -1124,13 +814,80 @@
|
|
|
1124
814
|
'bg-white': 'text-black',
|
|
1125
815
|
transparent: 'text-white',
|
|
1126
816
|
};
|
|
1127
|
-
const Logo = JSX(({ className = '', href, children, targetBlank, bgColor = 'bg-white', showTitle = true }) => {
|
|
1128
|
-
return (jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A", children: [jsx(Img, { image: { icon: 'LogoIcon', iconVersion: SVG_COLOR[bgColor] }, className: `${SVG_COLOR[bgColor]} w-10 h-[38px]`, asSVG: true }), showTitle ? (jsx("span", { className: `${TEXT_COLOR[bgColor]} text-s font-medium ml-2.5`, children: children || 'Россельхозбанк' })) : null] }));
|
|
1129
|
-
});
|
|
817
|
+
const Logo = JSX(({ className = '', href, children, targetBlank, bgColor = 'bg-white', showTitle = true }) => {
|
|
818
|
+
return (jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A", children: [jsx(Img, { image: { icon: 'LogoIcon', iconVersion: SVG_COLOR[bgColor] }, className: `${SVG_COLOR[bgColor]} w-10 h-[38px]`, asSVG: true }), showTitle ? (jsx("span", { className: `${TEXT_COLOR[bgColor]} text-s font-medium ml-2.5`, children: children || 'Россельхозбанк' })) : null] }));
|
|
819
|
+
});
|
|
820
|
+
|
|
821
|
+
const MobileAppTile = JSX(({ className = '', title = 'Мобильное приложение', description, href = '#' }) => {
|
|
822
|
+
return (jsx("div", { className: `col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${className}`, children: href ? (jsxs("div", { className: "flex", children: [jsx("div", { className: "flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]", children: jsx(Logo, { className: "w-[33px]", bgColor: "transparent", showTitle: true }) }), jsxs("a", { href: href, target: "_blank", className: "flex flex-col justify-center pl-3", children: [jsx("div", { className: "text-s font-medium mb-[3px]", children: title }), jsx("div", { className: "text-s text-secondary-text", children: description })] })] })) : null }));
|
|
823
|
+
});
|
|
824
|
+
|
|
825
|
+
const isURL = (href) => href?.includes('//');
|
|
826
|
+
const withoutQuery = (href) => (href || '').replace(/\/?\?.*/, '');
|
|
827
|
+
const getOrigin = (href) => {
|
|
828
|
+
if (!href || !isURL(href)) {
|
|
829
|
+
return undefined;
|
|
830
|
+
}
|
|
831
|
+
const url = href;
|
|
832
|
+
const protoSeparator = '//';
|
|
833
|
+
const endOfProto = url.indexOf(protoSeparator);
|
|
834
|
+
const endOfOrigin = url.indexOf('/', endOfProto + protoSeparator.length);
|
|
835
|
+
return endOfOrigin !== -1 ? url.substring(0, endOfOrigin) : url;
|
|
836
|
+
};
|
|
837
|
+
const getHash = (href) => {
|
|
838
|
+
if (!href || !isURL(href)) {
|
|
839
|
+
return undefined;
|
|
840
|
+
}
|
|
841
|
+
const hashIndex = href.indexOf('#');
|
|
842
|
+
return hashIndex !== -1 ? href.substring(hashIndex, href.length) : undefined;
|
|
843
|
+
};
|
|
844
|
+
const isHash = (href) => href?.startsWith('#');
|
|
845
|
+
|
|
846
|
+
var url = /*#__PURE__*/Object.freeze({
|
|
847
|
+
__proto__: null,
|
|
848
|
+
isURL: isURL,
|
|
849
|
+
withoutQuery: withoutQuery,
|
|
850
|
+
getOrigin: getOrigin,
|
|
851
|
+
getHash: getHash,
|
|
852
|
+
isHash: isHash
|
|
853
|
+
});
|
|
854
|
+
|
|
855
|
+
const MOBILE_URL_PATH = '/mobile';
|
|
856
|
+
const withoutMobilePath = (href) => (href || '').replace(MOBILE_URL_PATH, '');
|
|
857
|
+
|
|
858
|
+
const adjustHref = (href, router) => {
|
|
859
|
+
if (!href) {
|
|
860
|
+
return href;
|
|
861
|
+
}
|
|
862
|
+
const relativeHref = toRelativeHref(href, router) || '';
|
|
863
|
+
const isMobilePage = router?.pathname.startsWith(MOBILE_URL_PATH);
|
|
864
|
+
return isMobilePage && !isURL(relativeHref) ? `${MOBILE_URL_PATH}${relativeHref}` : relativeHref;
|
|
865
|
+
};
|
|
866
|
+
const toRelativeHref = (href, router) => {
|
|
867
|
+
if (!href) {
|
|
868
|
+
return href;
|
|
869
|
+
}
|
|
870
|
+
const origin = getOrigin(router?.href);
|
|
871
|
+
return origin ? href.replace(origin, '') || '/' : href;
|
|
872
|
+
};
|
|
1130
873
|
|
|
1131
|
-
const
|
|
1132
|
-
|
|
1133
|
-
|
|
874
|
+
const defaultHandlerDecorator = (handler) => handler;
|
|
875
|
+
function useLink({ router, handlerDecorator = defaultHandlerDecorator, }, link) {
|
|
876
|
+
const href = adjustHref(link.href, router);
|
|
877
|
+
return {
|
|
878
|
+
...link,
|
|
879
|
+
href,
|
|
880
|
+
'aria-label': link.text,
|
|
881
|
+
onClick: handlerDecorator((ev) => {
|
|
882
|
+
const isLocalHref = href && !isURL(href);
|
|
883
|
+
const isLocalTarget = !link.target || link.target === '_self';
|
|
884
|
+
if (isLocalHref && isLocalTarget) {
|
|
885
|
+
ev?.preventDefault();
|
|
886
|
+
router.push(href);
|
|
887
|
+
}
|
|
888
|
+
}, link),
|
|
889
|
+
};
|
|
890
|
+
}
|
|
1134
891
|
|
|
1135
892
|
const Contacts = JSX(({ className = '', items, hasButton, context }) => {
|
|
1136
893
|
const router = context.useRouter();
|
|
@@ -1229,6 +986,37 @@
|
|
|
1229
986
|
return (jsxs(Button, { version: "link", href: href, className: "flex text-s mb-4 w-6", children: [icon ? jsx(Img, { className: "pr-1", image: icon, width: "24", height: "24", asSVG: true }) : null, jsx("span", { className: "pl-2.5 font-medium text-primary-text", children: text })] }, `footer-${i}`));
|
|
1230
987
|
};
|
|
1231
988
|
|
|
989
|
+
const VersionStyleMap = {
|
|
990
|
+
primary: 'bg-white text-primary-text',
|
|
991
|
+
secondary: 'bg-primary-main text-white',
|
|
992
|
+
};
|
|
993
|
+
|
|
994
|
+
const Gallery = JSX(({ context, title, description, cards = [], className, orientation = 'horizontal' }) => {
|
|
995
|
+
const headingClassName = description ? 'mb-2' : 'mb-5';
|
|
996
|
+
return (jsxs("section", { className: `relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${className}`, children: [jsxs("div", { className: "flex flex-col items-center mb-5", children: [title ? (jsx(Heading, { headingType: "h3", className: `text-center ${headingClassName}`, title: title })) : null, description ? (jsx("div", { className: "text-m max-w-[600px] text-center mb-5", children: description })) : null] }), renderCardsLayout(orientation, cards, context)] }));
|
|
997
|
+
});
|
|
998
|
+
function renderCardsLayout(orientation, cards, context) {
|
|
999
|
+
return orientation === 'horizontal' ? (jsx(SwipeListControl, { context: context, children: cards?.map(renderCard) })) : (jsx("div", { className: "grid gap-[14px]", children: cards?.map(renderCard) }));
|
|
1000
|
+
}
|
|
1001
|
+
function renderCard(card, key) {
|
|
1002
|
+
return (jsxs("div", { className: `h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col
|
|
1003
|
+
${VersionStyleMap[card.version ?? 'primary']}`, children: [jsxs("div", { children: [card.image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(Img, { className: "mb-3.5", image: card.image }) })) : null, card.title ? jsx("h3", { className: `text-m-title-xs font-medium m-0`, children: card.title }) : null, card.description ? renderDescription(card) : null, card.items?.length ? renderItems(card.items, card.isDotted, card.version) : null] }), card?.button?.text ? renderButton(card.button) : null] }, key));
|
|
1004
|
+
}
|
|
1005
|
+
function renderButton(button) {
|
|
1006
|
+
return jsx(Button, { className: "mt-3", ...button });
|
|
1007
|
+
}
|
|
1008
|
+
function renderDescription(card) {
|
|
1009
|
+
return (jsx("div", { className: `text-secondary-text mt-1 text-s ${card.version === 'secondary' ? 'text-white opacity-80' : ''}`, children: card.description }));
|
|
1010
|
+
}
|
|
1011
|
+
const LIST_DOT_STYLE_MAP$1 = {
|
|
1012
|
+
primary: 'bg-primary-text',
|
|
1013
|
+
secondary: 'bg-white',
|
|
1014
|
+
gray: 'bg-secondary-text',
|
|
1015
|
+
};
|
|
1016
|
+
function renderItems(items, isDotted, version = 'primary') {
|
|
1017
|
+
return (jsx("section", { className: "mt-3", children: items.map((item, i) => (jsxs("div", { children: [isDotted ? (jsx("div", { className: `rounded-full inline-block mr-3 mt-2 w-2 h-2 min-w-2 min-h-2 ${LIST_DOT_STYLE_MAP$1[version]}` })) : null, jsx("span", { className: "text-m font-medium", children: item.title }), jsx("span", { className: `text-s pl-2 ${version === 'primary' ? 'text-secondary-text' : ''}`, children: item.text })] }, String(i)))) }));
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1232
1020
|
const maxBy = (discriminator) => (list) => list.reduceRight((a, b) => (discriminator(a) > discriminator(b) ? a : b));
|
|
1233
1021
|
|
|
1234
1022
|
const isHrefActive = (href, router, cmp = (targetHref, baseHref) => baseHref.startsWith(targetHref)) => {
|
|
@@ -1320,6 +1108,70 @@
|
|
|
1320
1108
|
});
|
|
1321
1109
|
const renderSubItem = (item, i) => (jsx(HeaderItem, { className: "mr-8 whitespace-nowrap text-s", ...item }, String(i)));
|
|
1322
1110
|
|
|
1111
|
+
const ALIGN_TEXT = {
|
|
1112
|
+
left: 'text-left',
|
|
1113
|
+
center: 'text-center',
|
|
1114
|
+
right: 'text-right',
|
|
1115
|
+
};
|
|
1116
|
+
const HEADLINE_BLOCK_STYLE_MAPS = {
|
|
1117
|
+
transparent: {
|
|
1118
|
+
background: 'bg-transparent',
|
|
1119
|
+
text: 'text-primary-text',
|
|
1120
|
+
description: 'text-primary-text',
|
|
1121
|
+
},
|
|
1122
|
+
primary: {
|
|
1123
|
+
background: 'bg-white',
|
|
1124
|
+
text: 'text-primary-text',
|
|
1125
|
+
description: 'text-primary-text',
|
|
1126
|
+
},
|
|
1127
|
+
secondary: {
|
|
1128
|
+
background: 'bg-primary-main',
|
|
1129
|
+
text: 'text-white',
|
|
1130
|
+
description: 'text-white/80',
|
|
1131
|
+
},
|
|
1132
|
+
};
|
|
1133
|
+
|
|
1134
|
+
const Headline = JSX(({ bgColorHeadline = 'transparent', className = '', title, description, image, align = 'left', }) => {
|
|
1135
|
+
const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
|
|
1136
|
+
return (jsxs("section", { className: `px-4 py-6 flex flex-col gap-2.5 ${STYLE_MAPS.background} ${className}`, children: [title ? (jsx(Heading, { headingType: "h2", className: `${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, title: title })) : null, description ? (jsx("p", { className: `text-m ${STYLE_MAPS.description} ${ALIGN_TEXT[align]}`, children: description })) : null, image?.src && (jsx("div", { className: "mt-2.5 mx-auto flex justify-center", children: jsx(Img, { image: image }) }))] }));
|
|
1137
|
+
});
|
|
1138
|
+
|
|
1139
|
+
const LinkDocsListItemBase = JSX(({ className, iconClassName, textClassName, suffixClassName, doc, icon }) => {
|
|
1140
|
+
const { text, fileSize, ...linkProps } = doc;
|
|
1141
|
+
return (jsxs("a", { className: className, role: "link", ...linkProps, children: [icon ? (jsx(Img, { className: iconClassName, image: icon, width: "24px", height: "24px", asSVG: true })) : null, text ? (jsxs("span", { className: textClassName, children: [text, jsx("span", { className: suffixClassName, children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })) : null] }));
|
|
1142
|
+
});
|
|
1143
|
+
const formatSuffix = (ext, fileSize) => {
|
|
1144
|
+
const prefix = ext || fileSize ? ',' : '';
|
|
1145
|
+
const extension = ext ? ` ${ext}` : '';
|
|
1146
|
+
const size = fileSize ? ` (${fileSize})` : '';
|
|
1147
|
+
return prefix + extension + size;
|
|
1148
|
+
};
|
|
1149
|
+
const getExtFromHref = (href) => {
|
|
1150
|
+
if (!href) {
|
|
1151
|
+
return '';
|
|
1152
|
+
}
|
|
1153
|
+
const index = href.lastIndexOf('.');
|
|
1154
|
+
return index !== -1 ? href.substring(index + 1) : '';
|
|
1155
|
+
};
|
|
1156
|
+
|
|
1157
|
+
const LinkDocsListItem = JSX(({ className = '', doc, icon }) => (jsx(LinkDocsListItemBase, { className: `flex h-full box-border ${className}`, iconClassName: "mr-3 min-w-6 min-h-6", doc: doc, icon: icon })));
|
|
1158
|
+
|
|
1159
|
+
const LinkDocsHorizontalList = JSX(({ context, hasBorder = true, documents, icon }) => {
|
|
1160
|
+
return (jsx(SwipeListControl, { context: context, className: "text-s text-primary-main mt-5", children: documents?.length
|
|
1161
|
+
? documents.map((doc, i) => (jsx(LinkDocsListItem, { className: hasBorder ? 'rounded-md border-main-stroke border border-solid p-4' : '', doc: doc, icon: icon }, String(i))))
|
|
1162
|
+
: null }));
|
|
1163
|
+
});
|
|
1164
|
+
|
|
1165
|
+
const LinkDocsVerticalList = JSX(({ hasBorder = true, documents, icon }) => {
|
|
1166
|
+
return (jsx("div", { className: `text-s text-primary-main flex flex-col mt-5 ${hasBorder ? 'gap-3.5' : 'gap-2'}`, role: "list", children: documents?.length
|
|
1167
|
+
? documents.map((doc, i) => (jsx("div", { role: "listitem", children: jsx(LinkDocsListItem, { className: hasBorder ? 'rounded-md border-main-stroke border border-solid p-4' : '', doc: doc, icon: icon }) }, String(i))))
|
|
1168
|
+
: null }));
|
|
1169
|
+
});
|
|
1170
|
+
|
|
1171
|
+
const LinkDocs = JSX(({ className = '', context, title, description, icon = { icon: 'DocIconMonoColor' }, documents, orientation = 'vertical', hasBorder = true, }) => {
|
|
1172
|
+
return (jsxs("section", { className: `font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${className}`, children: [jsx(Headline, { className: `!p-0 ${description ? 'gap-2' : 'gap-5'}`, title: title, description: description, context: context, align: "center" }), orientation === 'vertical' ? (jsx(LinkDocsVerticalList, { hasBorder: hasBorder, documents: documents, icon: icon })) : (jsx(LinkDocsHorizontalList, { context: context, hasBorder: hasBorder, documents: documents, icon: icon }))] }));
|
|
1173
|
+
});
|
|
1174
|
+
|
|
1323
1175
|
const getColSpan = (className) => {
|
|
1324
1176
|
const colSpanPrefix = 'col-span-';
|
|
1325
1177
|
const colSpanStr = className.split(/\s+/).find((_) => _.startsWith(colSpanPrefix));
|
|
@@ -1375,6 +1227,105 @@
|
|
|
1375
1227
|
const renderShimmerItem = (width, index) => (jsx("div", { style: { width: `${width || 100}%` }, className: "h-4 mt-2 bg-secondary-light" }, String(index)));
|
|
1376
1228
|
const goldenSequence = (first, size) => [first].concat(size > 0 ? goldenSequence(first / GOLDEN_RATIO, size - 1) : []);
|
|
1377
1229
|
|
|
1230
|
+
const ButtonSection = JSX(({ context, className = '', buttons }) => {
|
|
1231
|
+
const { handlerDecorator } = context;
|
|
1232
|
+
const router = context.useRouter();
|
|
1233
|
+
return buttons && buttons?.length ? (jsx("div", { className: className, children: buttons.map((button, index) => (jsx(ButtonSectionItem, { button: button, handlerDecorator: handlerDecorator, router: router }, String(index)))) })) : null;
|
|
1234
|
+
});
|
|
1235
|
+
const ButtonSectionItem = JSX(({ router, handlerDecorator, button }) => {
|
|
1236
|
+
const buttonProps = useLink({ router, handlerDecorator }, button);
|
|
1237
|
+
return jsx(Button, { ...button, ...buttonProps });
|
|
1238
|
+
});
|
|
1239
|
+
|
|
1240
|
+
const LIST_DOT_STYLE_MAP = {
|
|
1241
|
+
primary: 'bg-primary-text',
|
|
1242
|
+
secondary: 'bg-white',
|
|
1243
|
+
gray: 'bg-secondary-text',
|
|
1244
|
+
};
|
|
1245
|
+
const DOT_SIZE_MAP = {
|
|
1246
|
+
L: 'w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4 mt-3',
|
|
1247
|
+
M: 'w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3 mt-3',
|
|
1248
|
+
S: 'w-1 h-1 min-w-1 min-h-1 mr-2 mt-2.5',
|
|
1249
|
+
};
|
|
1250
|
+
const ListItem = JSX(({ className = '', isDotted = true, children, version = 'primary', size = 'M' }) => {
|
|
1251
|
+
return (jsxs("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted ? (jsx("div", { className: `rounded-full inline-block ${LIST_DOT_STYLE_MAP[version]} ${DOT_SIZE_MAP[size]}` })) : null, jsx("span", { children: children })] }));
|
|
1252
|
+
});
|
|
1253
|
+
|
|
1254
|
+
const TEXT_STYLE_MAP = {
|
|
1255
|
+
primary: 'text-primary-text',
|
|
1256
|
+
secondary: 'text-white',
|
|
1257
|
+
gray: 'text-secondary-text',
|
|
1258
|
+
};
|
|
1259
|
+
const TEXT_SIZE_MAP = {
|
|
1260
|
+
S: 'text-l-light',
|
|
1261
|
+
M: 'text-h6',
|
|
1262
|
+
L: 'text-h5',
|
|
1263
|
+
};
|
|
1264
|
+
const ITEM_INDENT_MAP = {
|
|
1265
|
+
S: 'ml-2',
|
|
1266
|
+
M: 'ml-3',
|
|
1267
|
+
L: 'ml-4',
|
|
1268
|
+
};
|
|
1269
|
+
const List = JSX((props) => {
|
|
1270
|
+
const { className = '', hasIndent, isDotted, itemClassName = '', items, listItemSize = 'M', version = 'primary', } = props;
|
|
1271
|
+
if (!items?.length) {
|
|
1272
|
+
return null;
|
|
1273
|
+
}
|
|
1274
|
+
return (jsx("section", { className: `${TEXT_STYLE_MAP[version]} ${TEXT_SIZE_MAP[listItemSize]} ${className} ${hasIndent ? ITEM_INDENT_MAP[listItemSize] : ''}`, role: "list", children: items.map((item, i) => (jsx(ListItem, { className: `${itemClassName} mb-1.5`, isDotted: isDotted, version: version, size: listItemSize, children: item }, String(i)))) }));
|
|
1275
|
+
});
|
|
1276
|
+
|
|
1277
|
+
const BaseTile = JSX(({ className = '', title = '', children, buttons, image }) => {
|
|
1278
|
+
return (jsxs("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, children: [title, jsxs("div", { className: "flex grow w-full justify-between", children: [jsxs("div", { className: "flex flex-col justify-between w-full", children: [jsx("div", { className: "h-full", children: children }), buttons ? jsx("div", { className: "mt-auto pt-8", children: buttons }) : null] }), image] })] }));
|
|
1279
|
+
});
|
|
1280
|
+
|
|
1281
|
+
const titleStyleMap = {
|
|
1282
|
+
primary: 'text-primary-text',
|
|
1283
|
+
secondary: 'text-white',
|
|
1284
|
+
};
|
|
1285
|
+
const descStyleMap = {
|
|
1286
|
+
primary: 'text-secondary-text',
|
|
1287
|
+
secondary: 'text-white',
|
|
1288
|
+
};
|
|
1289
|
+
const BenefitItem = JSX((props) => {
|
|
1290
|
+
const { className = '', icon, label, description, version = 'primary', benefitsVersion = 'normal', } = props;
|
|
1291
|
+
const isIconWhite = benefitsVersion === 'white' || version === 'secondary';
|
|
1292
|
+
const listItemAlign = description ? 'items-start' : 'items-center';
|
|
1293
|
+
const iconVersion = getIconVersion(isIconWhite, icon);
|
|
1294
|
+
return (jsxs("div", { className: `flex gap-5 ${listItemAlign} ${className}`, children: [icon ? (jsx("div", { className: renderBenefitIconBgStyle(version, benefitsVersion), children: jsx(Img, { className: "w-6 h-6", image: { ...icon, iconVersion }, asSVG: true }) })) : null, jsxs("div", { className: "gap-0.5", children: [label ? jsx("div", { className: `text-h6 ${titleStyleMap[version]}`, children: label }) : null, description ? (jsx("div", { className: `text-m-light ${descStyleMap[version]}`, children: description })) : null] })] }));
|
|
1295
|
+
});
|
|
1296
|
+
function renderBenefitIconBgStyle(version, benefitsVersion) {
|
|
1297
|
+
let bgColorStyle = 'bg-primary-main text-black';
|
|
1298
|
+
if (version === 'secondary') {
|
|
1299
|
+
bgColorStyle = 'bg-white/30 text-black';
|
|
1300
|
+
}
|
|
1301
|
+
else if (benefitsVersion === 'normal') {
|
|
1302
|
+
bgColorStyle = 'bg-secondary-light text-primary-main';
|
|
1303
|
+
}
|
|
1304
|
+
return `w-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${bgColorStyle}`;
|
|
1305
|
+
}
|
|
1306
|
+
const getIconVersion = (isIconWhite, icon) => icon?.iconVersion || isIconWhite ? 'white' : 'normal';
|
|
1307
|
+
|
|
1308
|
+
const renderBenefit = (version = 'primary', benefitsVersion = 'normal') => ({ icon, label, description }, i) => {
|
|
1309
|
+
return (jsx(BenefitItem, { icon: icon, label: label, description: description, version: version, benefitsVersion: benefitsVersion }, String(i)));
|
|
1310
|
+
};
|
|
1311
|
+
|
|
1312
|
+
const ProductBlockInner = JSX(({ className = '', context, title, headlineVersion = 'L', description, benefits, benefitsVersion = 'normal', buttons, image, items, version = 'primary', isDotted = true, label, }) => {
|
|
1313
|
+
return (jsxs("div", { className: `w-full ${className}`, children: [jsxs("div", { children: [label ? renderLabel(label, version) : null, jsx(Headline, { context: context, className: "!p-0 max-w-[600px]", title: title, description: description, bgColorHeadline: version, headlineVersion: headlineVersion }), jsxs(BaseTile, { context: context, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex flex-col mt-5 gap-2.5" })) : null, children: [benefits?.filter((_) => _.label)?.length ? (jsx("div", { className: "mt-3", children: benefits.map(renderBenefit(version, benefitsVersion)) })) : null, items?.length ? (jsx(List, { className: "mt-3 text-m", items: items, version: version, isDotted: isDotted })) : null] })] }), renderImage$1(image)] }));
|
|
1314
|
+
});
|
|
1315
|
+
function renderImage$1(image) {
|
|
1316
|
+
return image?.src ? (jsx(Img, { imageClassName: "mt-5 mx-auto block", image: { className: 'block', ...image } })) : null;
|
|
1317
|
+
}
|
|
1318
|
+
const labelStyleMap = {
|
|
1319
|
+
primary: 'text-primary-main border-secondary-hover',
|
|
1320
|
+
secondary: 'text-white/80',
|
|
1321
|
+
};
|
|
1322
|
+
const renderLabel = (label, version) => (jsx("div", { className: `px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${labelStyleMap[version]}`, children: label }));
|
|
1323
|
+
|
|
1324
|
+
const ProductBlock = JSX((props /* Get rid of image and benefits */) => {
|
|
1325
|
+
const { className = '', version = 'primary' } = props;
|
|
1326
|
+
return (jsx("section", { className: `font-sans bg-white px-4 py-6 ${VersionStyleMap[version]} ${className}`, children: jsx(ProductBlockInner, { ...props }) }));
|
|
1327
|
+
});
|
|
1328
|
+
|
|
1378
1329
|
const ProductGalleryBlock = JSX(({ block, context, className = '' }) => {
|
|
1379
1330
|
const version = block?.version ?? 'primary';
|
|
1380
1331
|
return (jsx("section", { className: `flex grow-0 shrink-0 basis-full px-4 pt-6 ${VersionStyleMap[version]} ${className}`, role: "listitem", children: jsx("div", { className: "flex grow", children: jsx(ProductBlockInner, { context: context, ...block }) }) }));
|
|
@@ -1457,8 +1408,8 @@
|
|
|
1457
1408
|
return (jsxs("div", { className: "flex gap-2.5 mb-2", children: [title ? jsx(Heading, { headingType: "h3", className: "font-medium", title: title }) : null, icon ? (jsx(Img, { className: "ml-auto max-w-6 max-h-6", image: icon, width: "24px", height: "24px" })) : null] }));
|
|
1458
1409
|
});
|
|
1459
1410
|
|
|
1460
|
-
const TariffsTableTileCell = JSX(({ context,
|
|
1461
|
-
return (jsxs("div", { className: "rounded-md border-main-stroke h-full box-border border p-4", children: [jsx(TableTileHeader, { ...header }), data?.length ? data.map(renderCellInner(context)) : null] }));
|
|
1411
|
+
const TariffsTableTileCell = JSX(({ context, tile }) => {
|
|
1412
|
+
return (jsxs("div", { className: "rounded-md border-main-stroke h-full box-border border p-4", children: [jsx(TableTileHeader, { ...tile.header }), tile.data?.length ? tile.data.map(renderCellInner(context)) : null] }));
|
|
1462
1413
|
});
|
|
1463
1414
|
const renderCellInner = (context) => (cell, i) => (jsxs("div", { children: [i > 0 ? jsx("div", { className: "h-5" }) : null, renderCell(cell, context)] }, String(i)));
|
|
1464
1415
|
const renderCell = (cell, context) => {
|
|
@@ -1473,9 +1424,9 @@
|
|
|
1473
1424
|
return jsx(EmbeddableCellInner, { context: context, ...rest });
|
|
1474
1425
|
};
|
|
1475
1426
|
|
|
1476
|
-
const TariffsTableHorizontal = JSX(({ tiles, context }) => (jsx(SwipeListControl, { context: context, children: tiles.map((tile, i) => (jsx(TariffsTableTileCell, {
|
|
1427
|
+
const TariffsTableHorizontal = JSX(({ tiles, context }) => (jsx(SwipeListControl, { context: context, children: tiles.map((tile, i) => (jsx(TariffsTableTileCell, { tile: tile, context: context }, String(i)))) })));
|
|
1477
1428
|
|
|
1478
|
-
const TariffsTableVertical = JSX(({ tiles }) => (jsx("div", { className: "flex flex-col gap-3.5", children: tiles.map((tile, i) => (jsx(TariffsTableTileCell, {
|
|
1429
|
+
const TariffsTableVertical = JSX(({ tiles, context }) => (jsx("div", { className: "flex flex-col gap-3.5", children: tiles.map((tile, i) => (jsx(TariffsTableTileCell, { tile: tile, context: context }, String(i)))) })));
|
|
1479
1430
|
|
|
1480
1431
|
const TariffsTable = JSX(({ className, context, title, description, tariffsColumns: columns, rowHeaders, orientation = 'vertical', }) => {
|
|
1481
1432
|
const colData = getColData(columns);
|
|
@@ -1492,8 +1443,41 @@
|
|
|
1492
1443
|
data: colData?.[i] || [{}],
|
|
1493
1444
|
}));
|
|
1494
1445
|
|
|
1446
|
+
const textBlockStyleMaps = {
|
|
1447
|
+
primary: {
|
|
1448
|
+
background: 'bg-white',
|
|
1449
|
+
icon: 'bg-primary-main text-white',
|
|
1450
|
+
title: 'text-primary-text',
|
|
1451
|
+
description: 'text-secondary-text',
|
|
1452
|
+
},
|
|
1453
|
+
secondary: {
|
|
1454
|
+
background: 'bg-primary-main',
|
|
1455
|
+
icon: 'bg-white text-primary-main',
|
|
1456
|
+
title: 'text-white',
|
|
1457
|
+
description: 'text-white',
|
|
1458
|
+
},
|
|
1459
|
+
'secondary-light': {
|
|
1460
|
+
background: 'bg-primary-main/10',
|
|
1461
|
+
icon: 'bg-primary-main text-white',
|
|
1462
|
+
title: 'text-primary-text',
|
|
1463
|
+
description: 'text-secondary-text',
|
|
1464
|
+
},
|
|
1465
|
+
};
|
|
1466
|
+
const TextBlock = JSX(({ title, description, blockVersion = 'primary', iconVersion, image, className = '', items, isDotted = true, }) => {
|
|
1467
|
+
const textBlockStyleMap = textBlockStyleMaps[blockVersion];
|
|
1468
|
+
const listBlockVersion = blockVersion === 'secondary' ? 'secondary' : 'gray';
|
|
1469
|
+
return (jsxs("section", { className: `font-sans px-4 py-[18px] flex flex-col ${textBlockStyleMap.background} ${className}`, children: [iconVersion === 'small' ? renderIcon(textBlockStyleMap.icon) : null, iconVersion === 'big' ? renderImage(image) : null, jsxs("div", { className: "py-0.5", children: [title ? (jsx("div", { className: `text-l font-medium mb-1 ${textBlockStyleMap.title}`, children: title })) : null, description ? (jsx("div", { className: `text-s ${textBlockStyleMap.description}`, children: description })) : null, items?.length ? (jsx(List, { className: "mt-1 text-m", items: items, isDotted: isDotted, version: listBlockVersion })) : null] })] }));
|
|
1470
|
+
});
|
|
1471
|
+
function renderIcon(className) {
|
|
1472
|
+
return (jsx("div", { className: "mb-3", children: jsx("div", { className: `rounded-full h-4 w-4 text-center text-xs-light ${className}`, children: "i" }) }));
|
|
1473
|
+
}
|
|
1474
|
+
function renderImage(image) {
|
|
1475
|
+
return image?.src ? jsx(Img, { className: "pb-3 mr-auto", image: image }) : null;
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1495
1478
|
const Blocks = {
|
|
1496
1479
|
Accordion,
|
|
1480
|
+
AccordionItem,
|
|
1497
1481
|
ComparisonTable,
|
|
1498
1482
|
Footer,
|
|
1499
1483
|
Gallery,
|
|
@@ -1510,6 +1494,10 @@
|
|
|
1510
1494
|
Placeholder,
|
|
1511
1495
|
};
|
|
1512
1496
|
|
|
1497
|
+
function style2className(style) {
|
|
1498
|
+
return style ? style.filter(Boolean).join(' ') : '';
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1513
1501
|
const api = LikeAPI();
|
|
1514
1502
|
function useLikeService(pagePath) {
|
|
1515
1503
|
const [likeCount, setLikeCount] = useState(0);
|
|
@@ -1555,24 +1543,25 @@
|
|
|
1555
1543
|
const DEFAULT_SLOT_NAME = null;
|
|
1556
1544
|
const DEFAULT_ANCESTORS = [DEFAULT_SLOT_NAME];
|
|
1557
1545
|
|
|
1546
|
+
const defaultChildRenderer = (_) => _;
|
|
1558
1547
|
function renderBlock(block, options, ancestors = DEFAULT_ANCESTORS) {
|
|
1559
1548
|
const { key, page, blockDecorator, blocksRegistry, context } = options;
|
|
1560
|
-
const { type } = block;
|
|
1549
|
+
const { type, blocks: childBlocks } = block;
|
|
1561
1550
|
if (!(type && type in blocksRegistry)) {
|
|
1562
1551
|
console.warn(`No block with "${type}" is registered`);
|
|
1563
1552
|
}
|
|
1564
1553
|
const BlockComponent = type && blocksRegistry[type];
|
|
1554
|
+
const { renderChild = defaultChildRenderer } = BlockComponent || {};
|
|
1555
|
+
const renderChildBlock = (_, j) => renderChild(renderBlock(_, { ...options, key: `${options.key}-${j}` }, [...ancestors, block]), j);
|
|
1556
|
+
const children = childBlocks?.length ? childBlocks.map(renderChildBlock) : null;
|
|
1565
1557
|
return blockDecorator({
|
|
1566
1558
|
blockClassName: `scroll-mt-12 ${style2className(block.style)}`,
|
|
1567
1559
|
block,
|
|
1568
1560
|
ancestors,
|
|
1569
1561
|
// Adjusted by decorator block and blockClassName
|
|
1570
1562
|
render: ({ block: adjustedBlock, blockClassName: adjustedBlockClassName }) => {
|
|
1571
|
-
const { version,
|
|
1572
|
-
|
|
1573
|
-
? childBlocks.map((_, j) => renderBlock(_, { ...options, key: `${options.key}-${j}` }, [...ancestors, block]))
|
|
1574
|
-
: null;
|
|
1575
|
-
return BlockComponent ? (jsx(BlockComponent, { className: adjustedBlockClassName, version: version, context: context, page: page, anchor: anchor, labels: labels, ...content, children: children }, key)) : null;
|
|
1563
|
+
const { version, anchor, labels, content } = adjustedBlock;
|
|
1564
|
+
return BlockComponent ? (jsx(BlockComponent, { className: adjustedBlockClassName, context: context, page: page, ancestors: ancestors, version: version, anchor: anchor, labels: labels, ...content, children: children }, key)) : null;
|
|
1576
1565
|
},
|
|
1577
1566
|
}, key);
|
|
1578
1567
|
}
|
|
@@ -1601,11 +1590,14 @@
|
|
|
1601
1590
|
return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
|
|
1602
1591
|
}
|
|
1603
1592
|
|
|
1593
|
+
const packageVersion = "0.5.15";
|
|
1594
|
+
|
|
1604
1595
|
exports.Blocks = Blocks;
|
|
1605
1596
|
exports.ContentPage = ContentPage;
|
|
1606
1597
|
exports.DaDataAPI = DaDataAPI;
|
|
1607
1598
|
exports.LikeAPI = LikeAPI;
|
|
1608
1599
|
exports.joinList = joinList;
|
|
1600
|
+
exports.packageVersion = packageVersion;
|
|
1609
1601
|
exports.projectSettings = projectSettings;
|
|
1610
1602
|
exports.setup = setup;
|
|
1611
1603
|
exports.setupHooks = setupHooks;
|