@redneckz/wildless-cms-uni-blocks 0.5.11 → 0.5.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/EventBus/EventBus.d.ts +10 -0
- package/bundle/EventBus/EventMap.d.ts +7 -0
- package/bundle/ProjectSettings.d.ts +24 -0
- package/bundle/api/DaDataAPI.d.ts +15 -0
- package/bundle/api/LikeAPI.d.ts +9 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +380 -575
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Accordion/Accordion.d.ts +5 -0
- package/bundle/components/Accordion/Accordion.mobile.d.ts +5 -0
- package/bundle/components/Accordion/AccordionContent.d.ts +43 -0
- package/bundle/components/Accordion/AccordionItem.d.ts +5 -0
- package/bundle/components/Accordion/AccordionItem.mobile.d.ts +5 -0
- package/bundle/components/BaseTile/BaseTile.d.ts +5 -0
- package/bundle/components/BaseTile/BaseTileProps.d.ts +15 -0
- package/bundle/components/BaseTile/getTileHeadingType.d.ts +1 -0
- package/bundle/components/BaseTile/getTileMinHeight.d.ts +1 -0
- package/bundle/components/BaseTile/getTileRightPadding.d.ts +1 -0
- package/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +5 -0
- package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +52 -0
- package/bundle/components/Blocks.d.ts +36 -0
- package/bundle/components/Blocks.mobile.d.ts +17 -0
- package/bundle/components/Bonus/Bonus.d.ts +5 -0
- package/bundle/components/Bonus/BonusContent.d.ts +45 -0
- package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +5 -0
- package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +15 -0
- package/bundle/components/BonusBenefitsBlock/getElementsColsValue.d.ts +1 -0
- package/bundle/components/Calculator/BonusCalculatorForm.d.ts +5 -0
- package/bundle/components/Calculator/Calculator.d.ts +5 -0
- package/bundle/components/Calculator/CalculatorContent.d.ts +129 -0
- package/bundle/components/Calculator/CalculatorValueBlock.d.ts +8 -0
- package/bundle/components/Calculator/CreditCalculatorForm.d.ts +7 -0
- package/bundle/components/Calculator/DepositCalculatorForm.d.ts +5 -0
- package/bundle/components/Calculator/EmbeddableCalcBlocks.d.ts +9 -0
- package/bundle/components/Calculator/Rate.d.ts +7 -0
- package/bundle/components/Calculator/constants.d.ts +16 -0
- package/bundle/components/Calculator/getBonus.d.ts +2 -0
- package/bundle/components/Calculator/getCreditRate.d.ts +7 -0
- package/bundle/components/Calculator/getDefaultMonths.d.ts +1 -0
- package/bundle/components/Calculator/getDefaultSum.d.ts +1 -0
- package/bundle/components/Calculator/getMonthlyPayment.d.ts +6 -0
- package/bundle/components/Calculator/renderButtonSection.d.ts +2 -0
- package/bundle/components/Calculator/renderCalculatorBlock.d.ts +3 -0
- package/bundle/components/Calculator/renderFootnote.d.ts +2 -0
- package/bundle/components/Calculator/renderInitialFeeInput.d.ts +6 -0
- package/bundle/components/Calculator/renderMonthsInput.d.ts +8 -0
- package/bundle/components/Calculator/renderPaymentTypeSelector.d.ts +6 -0
- package/bundle/components/Calculator/renderProposal.d.ts +2 -0
- package/bundle/components/Calculator/renderProposalMortgage.d.ts +8 -0
- package/bundle/components/Calculator/renderRealEstateValue.d.ts +6 -0
- package/bundle/components/Calculator/renderWantedSumInput.d.ts +11 -0
- package/bundle/components/Calculator/useBonusCalculatorParams.d.ts +36 -0
- package/bundle/components/Calculator/useCalculatorParams.d.ts +1 -0
- package/bundle/components/Calculator/useCreditCalculatorParams.d.ts +27 -0
- package/bundle/components/CardTransfer/CardTransfer.d.ts +5 -0
- package/bundle/components/CardTransfer/CardTransferContent.d.ts +10 -0
- package/bundle/components/Catalog/Catalog.d.ts +5 -0
- package/bundle/components/Catalog/CatalogCard.d.ts +7 -0
- package/bundle/components/Catalog/CatalogContent.d.ts +25 -0
- package/bundle/components/ComparisonTable/ComparisonTable.d.ts +5 -0
- package/bundle/components/ComparisonTable/ComparisonTable.mobile.d.ts +5 -0
- package/bundle/components/ComparisonTable/ComparisonTableBody.d.ts +12 -0
- package/bundle/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +10 -0
- package/bundle/components/ComparisonTable/ComparisonTableContent.d.ts +50 -0
- package/bundle/components/ComparisonTable/ComparisonTableRows.d.ts +13 -0
- package/bundle/components/ComparisonTable/HeaderCell.d.ts +10 -0
- package/bundle/components/ComparisonTable/HeaderCell.mobile.d.ts +11 -0
- package/bundle/components/ComparisonTable/TableCarouselContainer.d.ts +7 -0
- package/bundle/components/ComparisonTable/TableCell.d.ts +9 -0
- package/bundle/components/ComparisonTable/TableCell.mobile.d.ts +9 -0
- package/bundle/components/ComparisonTable/TableColumn.d.ts +15 -0
- package/bundle/components/ComparisonTable/TableRow.d.ts +14 -0
- package/bundle/components/ComparisonTable/TableRowContainer.d.ts +1 -0
- package/bundle/components/ComparisonTable/constants.d.ts +6 -0
- package/bundle/components/ContentPage/ContentPage.d.ts +10 -0
- package/bundle/components/ContentPage/ContentPageContext.d.ts +17 -0
- package/bundle/components/ContentPage/ContentPageHead.d.ts +7 -0
- package/bundle/components/ContentPage/computeAPIFallback.d.ts +5 -0
- package/bundle/components/ContentPage/filterBlocks.d.ts +12 -0
- package/bundle/components/ContentPage/filterBlocks.mobile.d.ts +12 -0
- package/bundle/components/ContentPage/isBlockInRegistry.d.ts +2 -0
- package/bundle/components/ContentPage/normalizeBlock.d.ts +11 -0
- package/bundle/components/ContentPage/normalizeBlock.mobile.d.ts +2 -0
- package/bundle/components/ContentPage/normalizePage.d.ts +3 -0
- package/bundle/components/ContentPage/renderBlock.d.ts +13 -0
- package/bundle/components/ErrorBlock/ErrorBlock.d.ts +5 -0
- package/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +48 -0
- package/bundle/components/ExchangeRateTile/CurrencyProps.d.ts +5 -0
- package/bundle/components/ExchangeRateTile/CurrencyTable.d.ts +7 -0
- package/bundle/components/ExchangeRateTile/CurrentLocation.d.ts +7 -0
- package/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +21 -0
- package/bundle/components/ExchangeRateTile/ExchangeRateTile.d.ts +5 -0
- package/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +8 -0
- package/bundle/components/ExchangeRateTile/calculateResult.d.ts +2 -0
- package/bundle/components/ExchangeRateTile/callbackCurrencySelect.d.ts +8 -0
- package/bundle/components/ExchangeRateTile/formatCurrency.d.ts +1 -0
- package/bundle/components/ExchangeRateTile/renderInput.d.ts +13 -0
- package/bundle/components/Footer/Contacts.d.ts +7 -0
- package/bundle/components/Footer/Footer.d.ts +5 -0
- package/bundle/components/Footer/Footer.mobile.d.ts +5 -0
- package/bundle/components/Footer/FooterContent.d.ts +44 -0
- package/bundle/components/Footer/FooterLink.d.ts +5 -0
- package/bundle/components/Footer/HorizontalNavigation.d.ts +6 -0
- package/bundle/components/Footer/HorizontalNavigation.mobile.d.ts +6 -0
- package/bundle/components/Footer/HorizontalNavigationLink.d.ts +8 -0
- package/bundle/components/Footer/MediaButton.d.ts +7 -0
- package/bundle/components/Footer/Sitemap.d.ts +8 -0
- package/bundle/components/Footer/SocialMedia.d.ts +8 -0
- package/bundle/components/Footer/SocialMedia.mobile.d.ts +8 -0
- package/bundle/components/Footer/TextInformation.d.ts +2 -0
- package/bundle/components/Footer/TextInformation.mobile.d.ts +2 -0
- package/bundle/components/Footer/TextInformationLink.d.ts +8 -0
- package/bundle/components/Gallery/Gallery.d.ts +2 -0
- package/bundle/components/Gallery/Gallery.mobile.d.ts +2 -0
- package/bundle/components/Gallery/GalleryCardInner.d.ts +2 -0
- package/bundle/components/Gallery/GalleryContainer.d.ts +13 -0
- package/bundle/components/Gallery/GalleryContent.d.ts +64 -0
- package/bundle/components/Gallery/GalleryInner.d.ts +7 -0
- package/bundle/components/Gallery/GalleryProps.d.ts +4 -0
- package/bundle/components/Gallery/constants.d.ts +4 -0
- package/bundle/components/GracePeriod/GracePeriod.d.ts +5 -0
- package/bundle/components/GracePeriod/GracePeriodContent.d.ts +32 -0
- package/bundle/components/Header/DropdownMenu.d.ts +14 -0
- package/bundle/components/Header/Header.d.ts +5 -0
- package/bundle/components/Header/Header.fallback.d.ts +2 -0
- package/bundle/components/Header/Header.mobile.d.ts +5 -0
- package/bundle/components/Header/HeaderBurger.d.ts +11 -0
- package/bundle/components/Header/HeaderContent.d.ts +41 -0
- package/bundle/components/Header/HeaderSecondaryMenu.d.ts +10 -0
- package/bundle/components/Header/HeaderSecondaryMenuButton.d.ts +6 -0
- package/bundle/components/Header/HeaderSubMenu.d.ts +9 -0
- package/bundle/components/Header/HeaderTop.d.ts +6 -0
- package/bundle/components/Headline/Headline.d.ts +5 -0
- package/bundle/components/Headline/Headline.mobile.d.ts +5 -0
- package/bundle/components/Headline/HeadlineContent.d.ts +15 -0
- package/bundle/components/Headline/constants.d.ts +20 -0
- package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
- package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
- package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +7 -0
- package/bundle/components/LikeControl/LikeControl.d.ts +2 -0
- package/bundle/components/LinkDocs/LinkDocs.d.ts +5 -0
- package/bundle/components/LinkDocs/LinkDocs.mobile.d.ts +5 -0
- package/bundle/components/LinkDocs/LinkDocsContent.d.ts +43 -0
- package/bundle/components/LinkDocs/LinkDocsHorizontalList.d.ts +6 -0
- package/bundle/components/LinkDocs/LinkDocsList.d.ts +9 -0
- package/bundle/components/LinkDocs/LinkDocsListItem.d.ts +2 -0
- package/bundle/components/LinkDocs/LinkDocsListItem.mobile.d.ts +2 -0
- package/bundle/components/LinkDocs/LinkDocsListItemBase.d.ts +13 -0
- package/bundle/components/LinkDocs/LinkDocsVerticalList.d.ts +8 -0
- package/bundle/components/LinkDocs/linkDocsContentExample.d.ts +2 -0
- package/bundle/components/LinkList/LinkList.d.ts +5 -0
- package/bundle/components/LinkList/LinkListContent.d.ts +8 -0
- package/bundle/components/LinkList/linkListContentExample.d.ts +2 -0
- package/bundle/components/MiniGallery/MiniGallery.d.ts +5 -0
- package/bundle/components/MiniGallery/MiniGalleryContent.d.ts +12 -0
- package/bundle/components/MobileAppTile/MobileAppTile.d.ts +5 -0
- package/bundle/components/MobileAppTile/MobileAppTile.mobile.d.ts +5 -0
- package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +31 -0
- package/bundle/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +5 -0
- package/bundle/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +10 -0
- package/bundle/components/OtherProducts/OtherProducts.d.ts +5 -0
- package/bundle/components/OtherProducts/OtherProductsContent.d.ts +25 -0
- package/bundle/components/OtherProducts/OtherProductsItem.d.ts +6 -0
- package/bundle/components/PictureText/PictureText.d.ts +5 -0
- package/bundle/components/PictureText/PictureTextContent.d.ts +34 -0
- package/bundle/components/Placeholder/Placeholder.d.ts +6 -0
- package/bundle/components/Placeholder/PlaceholderContent.d.ts +5 -0
- package/bundle/components/ProductBlock/ProductBlock.d.ts +5 -0
- package/bundle/components/ProductBlock/ProductBlock.mobile.d.ts +5 -0
- package/bundle/components/ProductBlock/ProductBlockContent.d.ts +54 -0
- package/bundle/components/ProductBlock/ProductBlockInner.d.ts +4 -0
- package/bundle/components/ProductBlock/ProductBlockInner.mobile.d.ts +4 -0
- package/bundle/components/ProductBlock/renderBackwardButton.d.ts +4 -0
- package/bundle/components/ProductBlock/renderBenefit.d.ts +5 -0
- package/bundle/components/ProductGallery/ProductGallery.d.ts +5 -0
- package/bundle/components/ProductGallery/ProductGallery.mobile.d.ts +5 -0
- package/bundle/components/ProductGallery/ProductGalleryBlock.d.ts +8 -0
- package/bundle/components/ProductGallery/ProductGalleryContent.d.ts +29 -0
- package/bundle/components/ProductTile/ProductTile.d.ts +5 -0
- package/bundle/components/ProductTile/ProductTileContent.d.ts +33 -0
- package/bundle/components/PromoTile/PromoTile.d.ts +5 -0
- package/bundle/components/PromoTile/PromoTileContent.d.ts +12 -0
- package/bundle/components/Recommendation/Recommendation.d.ts +5 -0
- package/bundle/components/Recommendation/RecommendationCard.d.ts +7 -0
- package/bundle/components/Recommendation/RecommendationContent.d.ts +43 -0
- package/bundle/components/SafeDepositRental/RegionsAndBranches.d.ts +12 -0
- package/bundle/components/SafeDepositRental/RenderRadioButtons.d.ts +2 -0
- package/bundle/components/SafeDepositRental/RentalPeriod.d.ts +6 -0
- package/bundle/components/SafeDepositRental/SafeBoxCases.d.ts +11 -0
- package/bundle/components/SafeDepositRental/SafeDepositRental.d.ts +5 -0
- package/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +9 -0
- package/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +12 -0
- package/bundle/components/SafeDepositRental/SafeDepositRentalForm.d.ts +11 -0
- package/bundle/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +6 -0
- package/bundle/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +8 -0
- package/bundle/components/SafeDepositRental/WrapperSelect.d.ts +11 -0
- package/bundle/components/SafeDepositRental/YandexMap.d.ts +5 -0
- package/bundle/components/SafeDepositRental/renderClusterer.d.ts +2 -0
- package/bundle/components/SafeDepositRental/useGetRegions.d.ts +6 -0
- package/bundle/components/SafeDepositRental/useYandexMaps.d.ts +2 -0
- package/bundle/components/SafeDepositRental/utils.d.ts +3 -0
- package/bundle/components/StepsBlock/StepsBlock.d.ts +5 -0
- package/bundle/components/StepsBlock/StepsBlock.mobile.d.ts +5 -0
- package/bundle/components/StepsBlock/StepsBlockContent.d.ts +43 -0
- package/bundle/components/StepsBlock/StepsBlockStyleMaps.d.ts +11 -0
- package/bundle/components/StepsBlock/renderItems.d.ts +3 -0
- package/bundle/components/Tabs/Tabs.d.ts +13 -0
- package/bundle/components/Tabs/TabsContent.d.ts +36 -0
- package/bundle/components/Tabs/renderGroupTab.d.ts +4 -0
- package/bundle/components/Tabs/renderLinkTab.d.ts +9 -0
- package/bundle/components/Tabs/renderTab.d.ts +12 -0
- package/bundle/components/Tabs/tabItemClasses.d.ts +6 -0
- package/bundle/components/TariffsTable/EmbeddableCellData.d.ts +14 -0
- package/bundle/components/TariffsTable/EmbeddableCellData.mobile.d.ts +12 -0
- package/bundle/components/TariffsTable/TableTileHeader.d.ts +2 -0
- package/bundle/components/TariffsTable/TariffsTable.d.ts +5 -0
- package/bundle/components/TariffsTable/TariffsTable.mobile.d.ts +5 -0
- package/bundle/components/TariffsTable/TariffsTableCell.d.ts +9 -0
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +95 -0
- package/bundle/components/TariffsTable/TariffsTableHorizontal.d.ts +6 -0
- package/bundle/components/TariffsTable/TariffsTableRow.d.ts +9 -0
- package/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +7 -0
- package/bundle/components/TariffsTable/TariffsTableTileCell.d.ts +8 -0
- package/bundle/components/TariffsTable/TariffsTableVertical.d.ts +6 -0
- package/bundle/components/TariffsTable/constants.d.ts +4 -0
- package/bundle/components/TariffsTable/dataFixture.d.ts +5 -0
- package/bundle/components/TariffsTable/utils/getButtonAriaLabel.d.ts +2 -0
- package/bundle/components/TextBlock/TextBlock.d.ts +5 -0
- package/bundle/components/TextBlock/TextBlock.mobile.d.ts +5 -0
- package/bundle/components/TextBlock/TextBlockContent.d.ts +22 -0
- package/bundle/components/Tile/Tile.d.ts +6 -0
- package/bundle/components/Tile/TileContent.d.ts +34 -0
- package/bundle/content-page-repository/ContentPageRepository.d.ts +11 -0
- package/bundle/content-page-repository/TransformationOptions.d.ts +4 -0
- package/bundle/content-page-repository/index.d.ts +2 -0
- package/bundle/content-page-repository/mapJSON.d.ts +1 -0
- package/bundle/content-page-repository/transformContentPage.d.ts +3 -0
- package/bundle/content-page-repository/transformImg.d.ts +11 -0
- package/bundle/content-page-repository/transformMarkdown.d.ts +1 -0
- package/bundle/content-page-repository/transformPicture.d.ts +3 -0
- package/bundle/content-page-repository/transformSrc.d.ts +3 -0
- package/bundle/hooks/useExchangeRates.d.ts +2 -0
- package/bundle/hooks/useExternalNS.d.ts +2 -0
- package/bundle/hooks/useGeolocation.d.ts +1 -0
- package/bundle/hooks/useLikeService.d.ts +5 -0
- package/bundle/hooks/useLink.d.ts +18 -0
- package/bundle/hooks/useOutsideClick.d.ts +5 -0
- package/{dist/hooks/useFetchSafeBoxes.d.ts → bundle/hooks/useSafeBoxes.d.ts} +1 -3
- package/bundle/hooks/useSearch.d.ts +4 -0
- package/bundle/hooks/useTableArrowScrollControl.d.ts +7 -0
- package/bundle/hooks/useTariffsInnerTableData.d.ts +1 -0
- package/bundle/icons/IconName.d.ts +194 -0
- package/bundle/index.d.ts +9 -0
- package/bundle/model/AlignType.d.ts +9 -0
- package/bundle/model/BgColorVersion.d.ts +8 -0
- package/bundle/model/BlockDecorator.d.ts +14 -0
- package/bundle/model/BlockVersion.d.ts +11 -0
- package/bundle/model/BlocksRegistry.d.ts +5 -0
- package/bundle/model/ButtonVersion.d.ts +6 -0
- package/bundle/model/ContentPageDef.d.ts +52 -0
- package/bundle/model/EmptyOptionType.d.ts +4 -0
- package/bundle/model/Fallback.d.ts +5 -0
- package/bundle/model/Footnote.d.ts +4 -0
- package/bundle/model/GalleryVersion.d.ts +1 -0
- package/bundle/model/HeadlineType.d.ts +29 -0
- package/bundle/model/IconVersion.d.ts +9 -0
- package/bundle/model/ImageSize.d.ts +6 -0
- package/bundle/model/InputTypes.d.ts +1 -0
- package/bundle/model/LinkProps.d.ts +24 -0
- package/bundle/model/ListOrientation.d.ts +8 -0
- package/bundle/model/Picture.d.ts +59 -0
- package/bundle/model/ProductColorVersion.d.ts +4 -0
- package/bundle/model/SitemapProps.d.ts +24 -0
- package/bundle/model/SizeVersion.d.ts +8 -0
- package/bundle/model/TableVersion.d.ts +1 -0
- package/bundle/model/VNode.d.ts +1 -0
- package/bundle/react/setup-fixture.d.ts +4 -0
- package/bundle/services/sitemap/SitemapProps.d.ts +24 -0
- package/bundle/services/sitemap/checkIsHrefSameOrigin.d.ts +4 -0
- package/bundle/services/sitemap/findActiveSubItem.d.ts +3 -0
- package/bundle/services/sitemap/isHrefActive.d.ts +4 -0
- package/bundle/services/sitemap/isSubItemActive.d.ts +3 -0
- package/bundle/services/sitemap/isTopItemActive.d.ts +3 -0
- package/bundle/services/sitemap/mergeTopItems.d.ts +2 -0
- package/bundle/services/sitemap/useSitemap.d.ts +3 -0
- package/bundle/ui-kit/BenefitItem/BenefitItem.d.ts +4 -0
- package/bundle/ui-kit/BenefitItem/BenefitItemProps.d.ts +20 -0
- package/bundle/ui-kit/BlockWrapper.d.ts +7 -0
- package/bundle/ui-kit/BlocksList/BlocksListProps.d.ts +96 -0
- package/bundle/ui-kit/BlocksList/EmbeddableBlocks.d.ts +12 -0
- package/bundle/ui-kit/BlocksList/EmbeddableBlocks.mobile.d.ts +8 -0
- package/bundle/ui-kit/BlocksList/renderBlocksList.d.ts +9 -0
- package/bundle/ui-kit/Breadcrumb.d.ts +6 -0
- package/bundle/ui-kit/Button/ArrowButton.d.ts +2 -0
- package/bundle/ui-kit/Button/Button.d.ts +2 -0
- package/bundle/ui-kit/Button/Button.mobile.d.ts +2 -0
- package/bundle/ui-kit/Button/ButtonInner.d.ts +7 -0
- package/bundle/ui-kit/Button/ButtonProps.d.ts +54 -0
- package/bundle/ui-kit/Button/ButtonSection.d.ts +5 -0
- package/bundle/ui-kit/Button/GetButtonClassParams.d.ts +6 -0
- package/bundle/ui-kit/Button/LikeButton.d.ts +6 -0
- package/bundle/ui-kit/Button/buttonClassNameConstants.d.ts +5 -0
- package/bundle/ui-kit/Button/getDisabledButtonClasses.d.ts +2 -0
- package/bundle/ui-kit/Button/getRegularButtonClasses.d.ts +2 -0
- package/bundle/ui-kit/Button/renderArrows.d.ts +9 -0
- package/bundle/ui-kit/Checkbox/Checkbox.d.ts +2 -0
- package/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +7 -0
- package/bundle/ui-kit/CurrencyInput/CurrencyInput.d.ts +2 -0
- package/bundle/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +5 -0
- package/bundle/ui-kit/CurrencyInput/adjustValue .d.ts +3 -0
- package/bundle/ui-kit/Description/Description.d.ts +5 -0
- package/bundle/ui-kit/Foldable/DefaultButton.d.ts +2 -0
- package/bundle/ui-kit/Foldable/FoldButtonProps.d.ts +12 -0
- package/bundle/ui-kit/Foldable/Foldable.d.ts +16 -0
- package/bundle/ui-kit/HeaderItem/HeaderItem.d.ts +2 -0
- package/bundle/ui-kit/HeaderItem/HeaderItem.mobile.d.ts +3 -0
- package/bundle/ui-kit/Heading/Heading.d.ts +2 -0
- package/bundle/ui-kit/Heading/Heading.mobile.d.ts +2 -0
- package/bundle/ui-kit/Heading/HeadingProps.d.ts +23 -0
- package/bundle/ui-kit/Icon/Icon.d.ts +2 -0
- package/bundle/ui-kit/Icon/IconProps.d.ts +21 -0
- package/bundle/ui-kit/Img/Img.d.ts +1 -0
- package/bundle/ui-kit/Img/Img.mobile.d.ts +2 -0
- package/bundle/ui-kit/Img/ImgAsPicture.d.ts +4 -0
- package/bundle/ui-kit/Img/ImgInner.d.ts +2 -0
- package/bundle/ui-kit/Img/ImgProps.d.ts +11 -0
- package/bundle/ui-kit/Img/getIconVersion.d.ts +1 -0
- package/bundle/ui-kit/InnerTable/InnerTable.d.ts +5 -0
- package/bundle/ui-kit/InnerTable/InnerTableBody.d.ts +7 -0
- package/bundle/ui-kit/InnerTable/InnerTableBodyItem.d.ts +6 -0
- package/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +6 -0
- package/bundle/ui-kit/InnerTable/InnerTableHeader.d.ts +7 -0
- package/bundle/ui-kit/InnerTable/InnerTableProps.d.ts +24 -0
- package/bundle/ui-kit/Input/Input.d.ts +2 -0
- package/bundle/ui-kit/Input/InputProps.d.ts +16 -0
- package/bundle/ui-kit/InputRange/InputRange.d.ts +2 -0
- package/bundle/ui-kit/InputRange/InputRangeProps.d.ts +11 -0
- package/bundle/ui-kit/IntersectionObserverTag.d.ts +11 -0
- package/bundle/ui-kit/List/List.d.ts +2 -0
- package/bundle/ui-kit/List/ListContent.d.ts +4 -0
- package/bundle/ui-kit/List/ListItem.d.ts +12 -0
- package/bundle/ui-kit/List/ListProps.d.ts +26 -0
- package/bundle/ui-kit/Logo/Logo.d.ts +13 -0
- package/bundle/ui-kit/Logo/Logo.mobile.d.ts +8 -0
- package/bundle/ui-kit/Radio/Radio.d.ts +2 -0
- package/bundle/ui-kit/Radio/RadioProps.d.ts +9 -0
- package/bundle/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
- package/bundle/ui-kit/SVG.d.ts +19 -0
- package/bundle/ui-kit/SearchBar/SearchBar.d.ts +2 -0
- package/bundle/ui-kit/SearchBar/SearchBar.mobile.d.ts +2 -0
- package/bundle/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
- package/bundle/ui-kit/Select/Select.d.ts +14 -0
- package/bundle/ui-kit/SwipeListControl/SwipeListControl.d.ts +2 -0
- package/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +6 -0
- package/bundle/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +9 -0
- package/bundle/ui-kit/SwipeListControl/SwipeListControlList.d.ts +10 -0
- package/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +18 -0
- package/bundle/ui-kit/SwipeListControl/constants.d.ts +2 -0
- package/bundle/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +1 -0
- package/bundle/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +4 -0
- package/bundle/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +8 -0
- package/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +2 -0
- package/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +7 -0
- package/bundle/ui-kit/TopItem/TopItem.d.ts +14 -0
- package/bundle/utils/addSpacesBetweenNumbers.d.ts +1 -0
- package/bundle/utils/adjustHref.d.ts +4 -0
- package/bundle/utils/assertUnreachable.d.ts +1 -0
- package/bundle/utils/changeHashOnObserve.d.ts +9 -0
- package/bundle/utils/checkIsIconRenderable.d.ts +2 -0
- package/bundle/utils/clamp.d.ts +1 -0
- package/bundle/utils/fetchJSON.d.ts +2 -0
- package/bundle/utils/getAccordionItems.d.ts +1 -0
- package/bundle/utils/getColSpan.d.ts +1 -0
- package/bundle/utils/getCurrentDate.d.ts +1 -0
- package/bundle/utils/getGeolocation.d.ts +1 -0
- package/bundle/utils/getSanitizedValue.d.ts +1 -0
- package/bundle/utils/isPictureSizeEmpty.d.ts +2 -0
- package/bundle/utils/joinList.d.ts +1 -0
- package/bundle/utils/maxBy.d.ts +2 -0
- package/bundle/utils/roundTo.d.ts +1 -0
- package/bundle/utils/style2className.d.ts +1 -0
- package/bundle/utils/tableFunc.d.ts +2 -0
- package/bundle/utils/url.d.ts +5 -0
- package/bundle/utils/withoutMobilePath.d.ts +2 -0
- package/dist/components/Accordion/AccordionItem.d.ts +1 -1
- package/dist/components/Accordion/AccordionItem.js +9 -10
- package/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/components/Accordion/AccordionItem.mobile.d.ts +1 -1
- package/dist/components/Accordion/AccordionItem.mobile.js +9 -7
- package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/Blocks.mobile.d.ts +0 -1
- package/dist/components/Blocks.mobile.js +0 -2
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Calculator/CalculatorContent.d.ts +1 -1
- package/dist/components/CardTransfer/CardTransfer.js +3 -2
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/Catalog/Catalog.js +1 -1
- package/dist/components/Catalog/Catalog.js.map +1 -1
- package/dist/components/Catalog/CatalogCard.js +1 -23
- package/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.mobile.js +13 -48
- package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
- package/dist/components/ComparisonTable/TableCell.d.ts +1 -1
- package/dist/components/ComparisonTable/TableCell.js.map +1 -1
- package/dist/components/ComparisonTable/TableColumn.d.ts +5 -8
- package/dist/components/ComparisonTable/TableColumn.js +2 -8
- package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/dist/components/ContentPage/ContentPageContext.d.ts +0 -11
- package/dist/components/ErrorBlock/ErrorBlock.js +1 -1
- package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/dist/components/ExchangeRateTile/renderInput.js +1 -1
- package/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/dist/components/Footer/Contacts.js +1 -1
- package/dist/components/Footer/Contacts.js.map +1 -1
- package/dist/components/Footer/FooterContent.d.ts +5 -9
- package/dist/components/Gallery/Gallery.mobile.js +7 -3
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +14 -17
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Gallery/GalleryContainer.js +2 -2
- package/dist/components/Gallery/GalleryContainer.js.map +1 -1
- package/dist/components/Gallery/GalleryContent.d.ts +11 -3
- package/dist/components/Header/HeaderSubMenu.js +3 -2
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/Headline/constants.d.ts +2 -1
- package/dist/components/Headline/constants.js +10 -1
- package/dist/components/Headline/constants.js.map +1 -1
- package/dist/components/MiniGallery/MiniGalleryContent.d.ts +1 -0
- package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/OtherProducts/OtherProductsItem.js +4 -2
- package/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +2 -2
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +1 -1
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/Recommendation/RecommendationContent.d.ts +5 -0
- package/dist/components/SafeDepositRental/RegionsAndBranches.d.ts +1 -1
- package/dist/components/SafeDepositRental/SafeBoxCases.d.ts +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js +17 -3
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +7 -4
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.js +3 -5
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +7 -3
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.js +7 -28
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +0 -2
- package/dist/components/SafeDepositRental/utils.d.ts +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +9 -4
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlockContent.d.ts +9 -2
- package/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -0
- package/dist/components/StepsBlock/StepsBlockStyleMaps.js +2 -0
- package/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/dist/components/StepsBlock/renderItems.d.ts +3 -0
- package/dist/components/StepsBlock/renderItems.js +6 -0
- package/dist/components/StepsBlock/renderItems.js.map +1 -0
- package/dist/components/TariffsTable/EmbeddableCellData.js +4 -5
- package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.js +1 -2
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js +1 -2
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/components/TariffsTable/dataFixture.js +4 -2
- package/dist/components/TariffsTable/dataFixture.js.map +1 -1
- package/dist/components/TariffsTable/utils/getButtonAriaLabel.d.ts +1 -1
- package/dist/components/TariffsTable/utils/getButtonAriaLabel.js +1 -2
- package/dist/components/TariffsTable/utils/getButtonAriaLabel.js.map +1 -1
- package/dist/components/Tile/Tile.js +2 -3
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/hooks/useOutsideClick.d.ts +5 -0
- package/dist/hooks/useOutsideClick.js +21 -0
- package/dist/hooks/useOutsideClick.js.map +1 -0
- package/{mobile/dist/hooks/useFetchSafeBoxes.d.ts → dist/hooks/useSafeBoxes.d.ts} +1 -3
- package/{mobile/dist/hooks/useFetchSafeBoxes.js → dist/hooks/useSafeBoxes.js} +9 -10
- package/dist/hooks/useSafeBoxes.js.map +1 -0
- package/dist/icons/IconName.d.ts +1 -92
- package/dist/icons/IconName.js +4 -4
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/HeadlineType.d.ts +8 -0
- package/dist/model/Picture.d.ts +1 -0
- package/dist/react/setup-fixture.js +0 -2
- package/dist/react/setup-fixture.js.map +1 -1
- package/dist/ui-kit/BenefitItem/BenefitItem.js +3 -1
- package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/dist/ui-kit/BlockWrapper.d.ts +0 -3
- package/dist/ui-kit/BlockWrapper.js +5 -5
- package/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/dist/ui-kit/BlocksList/renderBlocksList.d.ts +1 -1
- package/dist/ui-kit/BlocksList/renderBlocksList.js +1 -1
- package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/dist/ui-kit/Button/Button.js +6 -10
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/Button/Button.mobile.js +1 -1
- package/dist/ui-kit/Button/Button.mobile.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +3 -2
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Button/ButtonProps.d.ts +1 -7
- package/dist/ui-kit/Button/ButtonSection.js +5 -10
- package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/dist/ui-kit/Button/buttonClassNameConstants.d.ts +1 -0
- package/dist/ui-kit/Button/buttonClassNameConstants.js +7 -1
- package/dist/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/dist/ui-kit/CurrencyInput/CurrencyInput.js +7 -1
- package/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/dist/ui-kit/CurrencyInput/adjustValue .d.ts +2 -0
- package/dist/ui-kit/CurrencyInput/adjustValue .js +11 -2
- package/dist/ui-kit/CurrencyInput/adjustValue .js.map +1 -1
- package/dist/ui-kit/Foldable/DefaultButton.d.ts +2 -0
- package/dist/ui-kit/Foldable/DefaultButton.js +12 -0
- package/dist/ui-kit/Foldable/DefaultButton.js.map +1 -0
- package/dist/ui-kit/Foldable/FoldButtonProps.d.ts +12 -0
- package/dist/ui-kit/Foldable/FoldButtonProps.js +2 -0
- package/dist/ui-kit/Foldable/FoldButtonProps.js.map +1 -0
- package/dist/ui-kit/Foldable/Foldable.d.ts +11 -17
- package/dist/ui-kit/Foldable/Foldable.js +22 -14
- package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/dist/ui-kit/Icon/Icon.js +4 -5
- package/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/dist/ui-kit/Icon/IconProps.d.ts +0 -1
- package/dist/ui-kit/Img/Img.d.ts +1 -2
- package/dist/ui-kit/Img/Img.js +2 -6
- package/dist/ui-kit/Img/Img.js.map +1 -1
- package/dist/ui-kit/Img/Img.mobile.js +1 -3
- package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.js +6 -2
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableHeader.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
- package/dist/ui-kit/Input/Input.js +12 -3
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/Input/InputProps.d.ts +2 -0
- package/dist/ui-kit/InputRange/InputRange.js +2 -2
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/IntersectionObserverTag.d.ts +11 -0
- package/dist/ui-kit/IntersectionObserverTag.js +22 -0
- package/dist/ui-kit/IntersectionObserverTag.js.map +1 -0
- package/dist/ui-kit/List/List.js +13 -8
- package/dist/ui-kit/List/List.js.map +1 -1
- package/dist/ui-kit/List/ListItem.d.ts +2 -2
- package/dist/ui-kit/List/ListItem.js +8 -23
- package/dist/ui-kit/List/ListItem.js.map +1 -1
- package/dist/ui-kit/List/ListProps.d.ts +5 -3
- package/dist/ui-kit/Radio/Radio.js +1 -1
- package/dist/ui-kit/Radio/Radio.js.map +1 -1
- package/dist/ui-kit/Select/Select.js +4 -1
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/utils/getSanitizedValue.d.ts +1 -0
- package/dist/utils/getSanitizedValue.js +5 -0
- package/dist/utils/getSanitizedValue.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Accordion/AccordionItem.d.ts +1 -1
- package/lib/components/Accordion/AccordionItem.js +9 -10
- package/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/components/Accordion/AccordionItem.mobile.d.ts +1 -1
- package/lib/components/Accordion/AccordionItem.mobile.js +9 -7
- package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/Blocks.mobile.d.ts +0 -1
- package/lib/components/Blocks.mobile.js +0 -2
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Calculator/CalculatorContent.d.ts +1 -1
- package/lib/components/CardTransfer/CardTransfer.js +3 -2
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/Catalog/Catalog.js +1 -1
- package/lib/components/Catalog/Catalog.js.map +1 -1
- package/lib/components/Catalog/CatalogCard.js +1 -23
- package/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.mobile.js +14 -49
- package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
- package/lib/components/ComparisonTable/TableCell.d.ts +1 -1
- package/lib/components/ComparisonTable/TableCell.js.map +1 -1
- package/lib/components/ComparisonTable/TableColumn.d.ts +5 -8
- package/lib/components/ComparisonTable/TableColumn.js +2 -8
- package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/lib/components/ContentPage/ContentPageContext.d.ts +0 -11
- package/lib/components/ErrorBlock/ErrorBlock.js +1 -1
- package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/lib/components/ExchangeRateTile/renderInput.js +1 -1
- package/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/lib/components/Footer/Contacts.js +1 -1
- package/lib/components/Footer/Contacts.js.map +1 -1
- package/lib/components/Footer/FooterContent.d.ts +5 -9
- package/lib/components/Gallery/Gallery.mobile.js +7 -3
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +15 -18
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Gallery/GalleryContainer.js +2 -2
- package/lib/components/Gallery/GalleryContainer.js.map +1 -1
- package/lib/components/Gallery/GalleryContent.d.ts +11 -3
- package/lib/components/Header/HeaderSubMenu.js +2 -1
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/Headline/constants.d.ts +2 -1
- package/lib/components/Headline/constants.js +9 -0
- package/lib/components/Headline/constants.js.map +1 -1
- package/lib/components/MiniGallery/MiniGallery.fixture.d.ts +1 -0
- package/lib/components/MiniGallery/MiniGalleryContent.d.ts +1 -0
- package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/OtherProducts/OtherProductsItem.js +4 -2
- package/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +2 -2
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +1 -1
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/Recommendation/RecommendationContent.d.ts +5 -0
- package/lib/components/SafeDepositRental/RegionsAndBranches.d.ts +1 -1
- package/lib/components/SafeDepositRental/SafeBoxCases.d.ts +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js +18 -4
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +7 -4
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.js +3 -5
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +7 -3
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.js +9 -30
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +0 -2
- package/lib/components/SafeDepositRental/utils.d.ts +1 -1
- package/lib/components/StepsBlock/StepsBlock.fixture.d.ts +1 -0
- package/lib/components/StepsBlock/StepsBlock.js +9 -4
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlockContent.d.ts +9 -2
- package/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -0
- package/lib/components/StepsBlock/StepsBlockStyleMaps.js +2 -0
- package/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/lib/components/StepsBlock/renderItems.d.ts +3 -0
- package/lib/components/StepsBlock/renderItems.js +3 -0
- package/lib/components/StepsBlock/renderItems.js.map +1 -0
- package/lib/components/TariffsTable/EmbeddableCellData.js +4 -5
- package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.js +1 -2
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +1 -1
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js +1 -2
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/components/TariffsTable/dataFixture.js +4 -2
- package/lib/components/TariffsTable/dataFixture.js.map +1 -1
- package/lib/components/TariffsTable/utils/getButtonAriaLabel.d.ts +1 -1
- package/lib/components/TariffsTable/utils/getButtonAriaLabel.js +1 -2
- package/lib/components/TariffsTable/utils/getButtonAriaLabel.js.map +1 -1
- package/lib/components/Tile/Tile.js +2 -3
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/hooks/useOutsideClick.d.ts +5 -0
- package/lib/hooks/useOutsideClick.js +18 -0
- package/lib/hooks/useOutsideClick.js.map +1 -0
- package/{mobile/lib/hooks/useFetchSafeBoxes.d.ts → lib/hooks/useSafeBoxes.d.ts} +1 -3
- package/lib/hooks/{useFetchSafeBoxes.js → useSafeBoxes.js} +7 -8
- package/lib/hooks/useSafeBoxes.js.map +1 -0
- package/lib/icons/IconName.d.ts +1 -92
- package/lib/icons/IconName.js +3 -3
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/HeadlineType.d.ts +8 -0
- package/lib/model/Picture.d.ts +1 -0
- package/lib/react/setup-fixture.js +0 -2
- package/lib/react/setup-fixture.js.map +1 -1
- package/lib/ui-kit/BenefitItem/BenefitItem.js +3 -1
- package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/lib/ui-kit/BlockWrapper.d.ts +0 -3
- package/lib/ui-kit/BlockWrapper.js +4 -4
- package/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/lib/ui-kit/BlocksList/renderBlocksList.d.ts +1 -1
- package/lib/ui-kit/BlocksList/renderBlocksList.js +1 -1
- package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/lib/ui-kit/Button/Button.js +6 -10
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/Button/Button.mobile.js +1 -1
- package/lib/ui-kit/Button/Button.mobile.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +3 -2
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Button/ButtonProps.d.ts +1 -7
- package/lib/ui-kit/Button/ButtonSection.js +5 -10
- package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/lib/ui-kit/Button/buttonClassNameConstants.d.ts +1 -0
- package/lib/ui-kit/Button/buttonClassNameConstants.js +6 -0
- package/lib/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/lib/ui-kit/CurrencyInput/CurrencyInput.js +8 -2
- package/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/lib/ui-kit/CurrencyInput/adjustValue .d.ts +2 -0
- package/lib/ui-kit/CurrencyInput/adjustValue .js +9 -2
- package/lib/ui-kit/CurrencyInput/adjustValue .js.map +1 -1
- package/lib/ui-kit/Foldable/DefaultButton.d.ts +2 -0
- package/lib/ui-kit/Foldable/DefaultButton.js +10 -0
- package/lib/ui-kit/Foldable/DefaultButton.js.map +1 -0
- package/lib/ui-kit/Foldable/FoldButtonProps.d.ts +12 -0
- package/lib/ui-kit/Foldable/FoldButtonProps.js +2 -0
- package/lib/ui-kit/Foldable/FoldButtonProps.js.map +1 -0
- package/lib/ui-kit/Foldable/Foldable.d.ts +11 -17
- package/lib/ui-kit/Foldable/Foldable.js +22 -14
- package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/lib/ui-kit/Icon/Icon.js +4 -5
- package/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/lib/ui-kit/Icon/IconProps.d.ts +0 -1
- package/lib/ui-kit/Img/Img.d.ts +1 -2
- package/lib/ui-kit/Img/Img.js +1 -6
- package/lib/ui-kit/Img/Img.js.map +1 -1
- package/lib/ui-kit/Img/Img.mobile.js +1 -3
- package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.js +6 -2
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableHeader.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
- package/lib/ui-kit/Input/Input.js +12 -3
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/Input/InputProps.d.ts +2 -0
- package/lib/ui-kit/InputRange/InputRange.js +2 -2
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/IntersectionObserverTag.d.ts +11 -0
- package/lib/ui-kit/IntersectionObserverTag.js +20 -0
- package/lib/ui-kit/IntersectionObserverTag.js.map +1 -0
- package/lib/ui-kit/List/List.fixture.d.ts +0 -4
- package/lib/ui-kit/List/List.js +13 -8
- package/lib/ui-kit/List/List.js.map +1 -1
- package/lib/ui-kit/List/ListItem.d.ts +2 -2
- package/lib/ui-kit/List/ListItem.js +7 -21
- package/lib/ui-kit/List/ListItem.js.map +1 -1
- package/lib/ui-kit/List/ListProps.d.ts +5 -3
- package/lib/ui-kit/Radio/Radio.js +1 -1
- package/lib/ui-kit/Radio/Radio.js.map +1 -1
- package/lib/ui-kit/Select/Select.js +5 -2
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/utils/getSanitizedValue.d.ts +1 -0
- package/lib/utils/getSanitizedValue.js +2 -0
- package/lib/utils/getSanitizedValue.js.map +1 -0
- package/mobile/bundle/EventBus/EventBus.d.ts +10 -0
- package/mobile/bundle/EventBus/EventMap.d.ts +7 -0
- package/mobile/bundle/ProjectSettings.d.ts +24 -0
- package/mobile/bundle/api/DaDataAPI.d.ts +15 -0
- package/mobile/bundle/api/LikeAPI.d.ts +9 -0
- package/mobile/bundle/bundle.umd.js +202 -648
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Accordion/Accordion.d.ts +5 -0
- package/mobile/bundle/components/Accordion/AccordionContent.d.ts +43 -0
- package/mobile/bundle/components/Accordion/AccordionItem.d.ts +5 -0
- package/mobile/bundle/components/BaseTile/BaseTile.d.ts +5 -0
- package/mobile/bundle/components/BaseTile/BaseTileProps.d.ts +15 -0
- package/mobile/bundle/components/BaseTile/getTileHeadingType.d.ts +1 -0
- package/mobile/bundle/components/BaseTile/getTileMinHeight.d.ts +1 -0
- package/mobile/bundle/components/BaseTile/getTileRightPadding.d.ts +1 -0
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +5 -0
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +52 -0
- package/mobile/bundle/components/Blocks.d.ts +17 -0
- package/mobile/bundle/components/Bonus/Bonus.d.ts +5 -0
- package/mobile/bundle/components/Bonus/BonusContent.d.ts +45 -0
- package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +5 -0
- package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +15 -0
- package/mobile/bundle/components/BonusBenefitsBlock/getElementsColsValue.d.ts +1 -0
- package/mobile/bundle/components/Calculator/BonusCalculatorForm.d.ts +5 -0
- package/mobile/bundle/components/Calculator/Calculator.d.ts +5 -0
- package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +129 -0
- package/mobile/bundle/components/Calculator/CalculatorValueBlock.d.ts +8 -0
- package/mobile/bundle/components/Calculator/CreditCalculatorForm.d.ts +7 -0
- package/mobile/bundle/components/Calculator/DepositCalculatorForm.d.ts +5 -0
- package/mobile/bundle/components/Calculator/EmbeddableCalcBlocks.d.ts +9 -0
- package/mobile/bundle/components/Calculator/Rate.d.ts +7 -0
- package/mobile/bundle/components/Calculator/constants.d.ts +16 -0
- package/mobile/bundle/components/Calculator/getBonus.d.ts +2 -0
- package/mobile/bundle/components/Calculator/getCreditRate.d.ts +7 -0
- package/mobile/bundle/components/Calculator/getDefaultMonths.d.ts +1 -0
- package/mobile/bundle/components/Calculator/getDefaultSum.d.ts +1 -0
- package/mobile/bundle/components/Calculator/getMonthlyPayment.d.ts +6 -0
- package/mobile/bundle/components/Calculator/renderButtonSection.d.ts +2 -0
- package/mobile/bundle/components/Calculator/renderCalculatorBlock.d.ts +3 -0
- package/mobile/bundle/components/Calculator/renderFootnote.d.ts +2 -0
- package/mobile/bundle/components/Calculator/renderInitialFeeInput.d.ts +6 -0
- package/mobile/bundle/components/Calculator/renderMonthsInput.d.ts +8 -0
- package/mobile/bundle/components/Calculator/renderPaymentTypeSelector.d.ts +6 -0
- package/mobile/bundle/components/Calculator/renderProposal.d.ts +2 -0
- package/mobile/bundle/components/Calculator/renderProposalMortgage.d.ts +8 -0
- package/mobile/bundle/components/Calculator/renderRealEstateValue.d.ts +6 -0
- package/mobile/bundle/components/Calculator/renderWantedSumInput.d.ts +11 -0
- package/mobile/bundle/components/Calculator/useBonusCalculatorParams.d.ts +36 -0
- package/mobile/bundle/components/Calculator/useCalculatorParams.d.ts +1 -0
- package/mobile/bundle/components/Calculator/useCreditCalculatorParams.d.ts +27 -0
- package/mobile/bundle/components/CardTransfer/CardTransfer.d.ts +5 -0
- package/mobile/bundle/components/CardTransfer/CardTransferContent.d.ts +10 -0
- package/mobile/bundle/components/Catalog/Catalog.d.ts +5 -0
- package/mobile/bundle/components/Catalog/CatalogCard.d.ts +7 -0
- package/mobile/bundle/components/Catalog/CatalogContent.d.ts +25 -0
- package/mobile/bundle/components/ComparisonTable/ComparisonTable.d.ts +5 -0
- package/mobile/bundle/components/ComparisonTable/ComparisonTableBody.d.ts +12 -0
- package/mobile/bundle/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +10 -0
- package/mobile/bundle/components/ComparisonTable/ComparisonTableContent.d.ts +50 -0
- package/mobile/bundle/components/ComparisonTable/ComparisonTableRows.d.ts +13 -0
- package/mobile/bundle/components/ComparisonTable/HeaderCell.d.ts +11 -0
- package/mobile/bundle/components/ComparisonTable/TableCarouselContainer.d.ts +7 -0
- package/mobile/bundle/components/ComparisonTable/TableCell.d.ts +9 -0
- package/mobile/bundle/components/ComparisonTable/TableColumn.d.ts +15 -0
- package/mobile/bundle/components/ComparisonTable/TableRow.d.ts +14 -0
- package/mobile/bundle/components/ComparisonTable/TableRowContainer.d.ts +1 -0
- package/mobile/bundle/components/ComparisonTable/constants.d.ts +6 -0
- package/mobile/bundle/components/ContentPage/ContentPage.d.ts +10 -0
- package/mobile/bundle/components/ContentPage/ContentPageContext.d.ts +17 -0
- package/mobile/bundle/components/ContentPage/ContentPageHead.d.ts +7 -0
- package/mobile/bundle/components/ContentPage/computeAPIFallback.d.ts +5 -0
- package/mobile/bundle/components/ContentPage/filterBlocks.d.ts +3 -0
- package/mobile/bundle/components/ContentPage/isBlockInRegistry.d.ts +2 -0
- package/mobile/bundle/components/ContentPage/normalizeBlock.d.ts +2 -0
- package/mobile/bundle/components/ContentPage/normalizePage.d.ts +3 -0
- package/mobile/bundle/components/ContentPage/renderBlock.d.ts +13 -0
- package/mobile/bundle/components/ErrorBlock/ErrorBlock.d.ts +5 -0
- package/mobile/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +48 -0
- package/mobile/bundle/components/ExchangeRateTile/CurrencyProps.d.ts +5 -0
- package/mobile/bundle/components/ExchangeRateTile/CurrencyTable.d.ts +7 -0
- package/mobile/bundle/components/ExchangeRateTile/CurrentLocation.d.ts +7 -0
- package/mobile/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +21 -0
- package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTile.d.ts +5 -0
- package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +8 -0
- package/mobile/bundle/components/ExchangeRateTile/calculateResult.d.ts +2 -0
- package/mobile/bundle/components/ExchangeRateTile/callbackCurrencySelect.d.ts +8 -0
- package/mobile/bundle/components/ExchangeRateTile/formatCurrency.d.ts +1 -0
- package/mobile/bundle/components/ExchangeRateTile/renderInput.d.ts +13 -0
- package/mobile/bundle/components/Footer/Contacts.d.ts +7 -0
- package/mobile/bundle/components/Footer/Footer.d.ts +5 -0
- package/mobile/bundle/components/Footer/FooterContent.d.ts +44 -0
- package/mobile/bundle/components/Footer/FooterLink.d.ts +5 -0
- package/mobile/bundle/components/Footer/HorizontalNavigation.d.ts +6 -0
- package/mobile/bundle/components/Footer/HorizontalNavigationLink.d.ts +8 -0
- package/mobile/bundle/components/Footer/MediaButton.d.ts +7 -0
- package/mobile/bundle/components/Footer/Sitemap.d.ts +8 -0
- package/mobile/bundle/components/Footer/SocialMedia.d.ts +8 -0
- package/mobile/bundle/components/Footer/TextInformation.d.ts +2 -0
- package/mobile/bundle/components/Footer/TextInformationLink.d.ts +8 -0
- package/mobile/bundle/components/Gallery/Gallery.d.ts +2 -0
- package/mobile/bundle/components/Gallery/GalleryCardInner.d.ts +2 -0
- package/mobile/bundle/components/Gallery/GalleryContainer.d.ts +13 -0
- package/mobile/bundle/components/Gallery/GalleryContent.d.ts +64 -0
- package/mobile/bundle/components/Gallery/GalleryInner.d.ts +7 -0
- package/mobile/bundle/components/Gallery/GalleryProps.d.ts +4 -0
- package/mobile/bundle/components/Gallery/constants.d.ts +4 -0
- package/mobile/bundle/components/GracePeriod/GracePeriod.d.ts +5 -0
- package/mobile/bundle/components/GracePeriod/GracePeriodContent.d.ts +32 -0
- package/mobile/bundle/components/Header/DropdownMenu.d.ts +14 -0
- package/mobile/bundle/components/Header/Header.d.ts +5 -0
- package/mobile/bundle/components/Header/Header.fallback.d.ts +2 -0
- package/mobile/bundle/components/Header/HeaderBurger.d.ts +11 -0
- package/mobile/bundle/components/Header/HeaderContent.d.ts +41 -0
- package/mobile/bundle/components/Header/HeaderSecondaryMenu.d.ts +10 -0
- package/mobile/bundle/components/Header/HeaderSecondaryMenuButton.d.ts +6 -0
- package/mobile/bundle/components/Header/HeaderSubMenu.d.ts +9 -0
- package/mobile/bundle/components/Header/HeaderTop.d.ts +6 -0
- package/mobile/bundle/components/Headline/Headline.d.ts +5 -0
- package/mobile/bundle/components/Headline/HeadlineContent.d.ts +15 -0
- package/mobile/bundle/components/Headline/constants.d.ts +20 -0
- package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
- package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
- package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +7 -0
- package/mobile/bundle/components/LikeControl/LikeControl.d.ts +2 -0
- package/mobile/bundle/components/LinkDocs/LinkDocs.d.ts +5 -0
- package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +43 -0
- package/mobile/bundle/components/LinkDocs/LinkDocsHorizontalList.d.ts +6 -0
- package/mobile/bundle/components/LinkDocs/LinkDocsList.d.ts +9 -0
- package/mobile/bundle/components/LinkDocs/LinkDocsListItem.d.ts +2 -0
- package/mobile/bundle/components/LinkDocs/LinkDocsListItemBase.d.ts +13 -0
- package/mobile/bundle/components/LinkDocs/LinkDocsVerticalList.d.ts +8 -0
- package/mobile/bundle/components/LinkDocs/linkDocsContentExample.d.ts +2 -0
- package/mobile/bundle/components/LinkList/LinkList.d.ts +5 -0
- package/mobile/bundle/components/LinkList/LinkListContent.d.ts +8 -0
- package/mobile/bundle/components/LinkList/linkListContentExample.d.ts +2 -0
- package/mobile/bundle/components/MiniGallery/MiniGallery.d.ts +5 -0
- package/mobile/bundle/components/MiniGallery/MiniGalleryContent.d.ts +12 -0
- package/mobile/bundle/components/MobileAppTile/MobileAppTile.d.ts +5 -0
- package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +31 -0
- package/mobile/bundle/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +5 -0
- package/mobile/bundle/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +10 -0
- package/mobile/bundle/components/OtherProducts/OtherProducts.d.ts +5 -0
- package/mobile/bundle/components/OtherProducts/OtherProductsContent.d.ts +25 -0
- package/mobile/bundle/components/OtherProducts/OtherProductsItem.d.ts +6 -0
- package/mobile/bundle/components/PictureText/PictureText.d.ts +5 -0
- package/mobile/bundle/components/PictureText/PictureTextContent.d.ts +34 -0
- package/mobile/bundle/components/Placeholder/Placeholder.d.ts +6 -0
- package/mobile/bundle/components/Placeholder/PlaceholderContent.d.ts +5 -0
- package/mobile/bundle/components/ProductBlock/ProductBlock.d.ts +5 -0
- package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +54 -0
- package/mobile/bundle/components/ProductBlock/ProductBlockInner.d.ts +4 -0
- package/mobile/bundle/components/ProductBlock/renderBackwardButton.d.ts +4 -0
- package/mobile/bundle/components/ProductBlock/renderBenefit.d.ts +5 -0
- package/mobile/bundle/components/ProductGallery/ProductGallery.d.ts +5 -0
- package/mobile/bundle/components/ProductGallery/ProductGalleryBlock.d.ts +8 -0
- package/mobile/bundle/components/ProductGallery/ProductGalleryContent.d.ts +29 -0
- package/mobile/bundle/components/ProductTile/ProductTile.d.ts +5 -0
- package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +33 -0
- package/mobile/bundle/components/PromoTile/PromoTile.d.ts +5 -0
- package/mobile/bundle/components/PromoTile/PromoTileContent.d.ts +12 -0
- package/mobile/bundle/components/Recommendation/Recommendation.d.ts +5 -0
- package/mobile/bundle/components/Recommendation/RecommendationCard.d.ts +7 -0
- package/mobile/bundle/components/Recommendation/RecommendationContent.d.ts +43 -0
- package/mobile/bundle/components/SafeDepositRental/RegionsAndBranches.d.ts +12 -0
- package/mobile/bundle/components/SafeDepositRental/RenderRadioButtons.d.ts +2 -0
- package/mobile/bundle/components/SafeDepositRental/RentalPeriod.d.ts +6 -0
- package/mobile/bundle/components/SafeDepositRental/SafeBoxCases.d.ts +11 -0
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRental.d.ts +5 -0
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +9 -0
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +12 -0
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalForm.d.ts +11 -0
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +6 -0
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +8 -0
- package/mobile/bundle/components/SafeDepositRental/WrapperSelect.d.ts +11 -0
- package/mobile/bundle/components/SafeDepositRental/YandexMap.d.ts +5 -0
- package/mobile/bundle/components/SafeDepositRental/renderClusterer.d.ts +2 -0
- package/mobile/bundle/components/SafeDepositRental/useGetRegions.d.ts +6 -0
- package/mobile/bundle/components/SafeDepositRental/useYandexMaps.d.ts +2 -0
- package/mobile/bundle/components/SafeDepositRental/utils.d.ts +3 -0
- package/mobile/bundle/components/StepsBlock/StepsBlock.d.ts +5 -0
- package/mobile/bundle/components/StepsBlock/StepsBlockContent.d.ts +43 -0
- package/mobile/bundle/components/StepsBlock/StepsBlockStyleMaps.d.ts +11 -0
- package/mobile/bundle/components/StepsBlock/renderItems.d.ts +3 -0
- package/mobile/bundle/components/Tabs/Tabs.d.ts +13 -0
- package/mobile/bundle/components/Tabs/TabsContent.d.ts +36 -0
- package/mobile/bundle/components/Tabs/renderGroupTab.d.ts +4 -0
- package/mobile/bundle/components/Tabs/renderLinkTab.d.ts +9 -0
- package/mobile/bundle/components/Tabs/renderTab.d.ts +12 -0
- package/mobile/bundle/components/Tabs/tabItemClasses.d.ts +6 -0
- package/mobile/bundle/components/TariffsTable/EmbeddableCellData.d.ts +12 -0
- package/mobile/bundle/components/TariffsTable/TableTileHeader.d.ts +2 -0
- package/mobile/bundle/components/TariffsTable/TariffsTable.d.ts +5 -0
- package/mobile/bundle/components/TariffsTable/TariffsTableCell.d.ts +9 -0
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +95 -0
- package/mobile/bundle/components/TariffsTable/TariffsTableHorizontal.d.ts +6 -0
- package/mobile/bundle/components/TariffsTable/TariffsTableRow.d.ts +9 -0
- package/mobile/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +7 -0
- package/mobile/bundle/components/TariffsTable/TariffsTableTileCell.d.ts +8 -0
- package/mobile/bundle/components/TariffsTable/TariffsTableVertical.d.ts +6 -0
- package/mobile/bundle/components/TariffsTable/constants.d.ts +4 -0
- package/mobile/bundle/components/TariffsTable/dataFixture.d.ts +5 -0
- package/mobile/bundle/components/TariffsTable/utils/getButtonAriaLabel.d.ts +2 -0
- package/mobile/bundle/components/TextBlock/TextBlock.d.ts +5 -0
- package/mobile/bundle/components/TextBlock/TextBlockContent.d.ts +22 -0
- package/mobile/bundle/components/Tile/Tile.d.ts +6 -0
- package/mobile/bundle/components/Tile/TileContent.d.ts +34 -0
- package/mobile/bundle/content-page-repository/ContentPageRepository.d.ts +11 -0
- package/mobile/bundle/content-page-repository/TransformationOptions.d.ts +4 -0
- package/mobile/bundle/content-page-repository/index.d.ts +2 -0
- package/mobile/bundle/content-page-repository/mapJSON.d.ts +1 -0
- package/mobile/bundle/content-page-repository/transformContentPage.d.ts +3 -0
- package/mobile/bundle/content-page-repository/transformImg.d.ts +11 -0
- package/mobile/bundle/content-page-repository/transformMarkdown.d.ts +1 -0
- package/mobile/bundle/content-page-repository/transformPicture.d.ts +3 -0
- package/mobile/bundle/content-page-repository/transformSrc.d.ts +3 -0
- package/mobile/bundle/hooks/useExchangeRates.d.ts +2 -0
- package/mobile/bundle/hooks/useExternalNS.d.ts +2 -0
- package/mobile/bundle/hooks/useGeolocation.d.ts +1 -0
- package/mobile/bundle/hooks/useLikeService.d.ts +5 -0
- package/mobile/bundle/hooks/useLink.d.ts +18 -0
- package/mobile/bundle/hooks/useOutsideClick.d.ts +5 -0
- package/{lib/hooks/useFetchSafeBoxes.d.ts → mobile/bundle/hooks/useSafeBoxes.d.ts} +1 -3
- package/mobile/bundle/hooks/useSearch.d.ts +4 -0
- package/mobile/bundle/hooks/useTableArrowScrollControl.d.ts +7 -0
- package/mobile/bundle/hooks/useTariffsInnerTableData.d.ts +1 -0
- package/mobile/bundle/icons/IconName.d.ts +194 -0
- package/mobile/bundle/index.d.ts +9 -0
- package/mobile/bundle/model/AlignType.d.ts +9 -0
- package/mobile/bundle/model/BgColorVersion.d.ts +8 -0
- package/mobile/bundle/model/BlockDecorator.d.ts +14 -0
- package/mobile/bundle/model/BlockVersion.d.ts +11 -0
- package/mobile/bundle/model/BlocksRegistry.d.ts +5 -0
- package/mobile/bundle/model/ButtonVersion.d.ts +6 -0
- package/mobile/bundle/model/ContentPageDef.d.ts +52 -0
- package/mobile/bundle/model/EmptyOptionType.d.ts +4 -0
- package/mobile/bundle/model/Fallback.d.ts +5 -0
- package/mobile/bundle/model/Footnote.d.ts +4 -0
- package/mobile/bundle/model/GalleryVersion.d.ts +1 -0
- package/mobile/bundle/model/HeadlineType.d.ts +29 -0
- package/mobile/bundle/model/IconVersion.d.ts +9 -0
- package/mobile/bundle/model/ImageSize.d.ts +6 -0
- package/mobile/bundle/model/InputTypes.d.ts +1 -0
- package/mobile/bundle/model/LinkProps.d.ts +24 -0
- package/mobile/bundle/model/ListOrientation.d.ts +8 -0
- package/mobile/bundle/model/Picture.d.ts +59 -0
- package/mobile/bundle/model/ProductColorVersion.d.ts +4 -0
- package/mobile/bundle/model/SitemapProps.d.ts +24 -0
- package/mobile/bundle/model/SizeVersion.d.ts +8 -0
- package/mobile/bundle/model/TableVersion.d.ts +1 -0
- package/mobile/bundle/model/VNode.d.ts +1 -0
- package/mobile/bundle/react/setup-fixture.d.ts +4 -0
- package/mobile/bundle/services/sitemap/SitemapProps.d.ts +24 -0
- package/mobile/bundle/services/sitemap/checkIsHrefSameOrigin.d.ts +4 -0
- package/mobile/bundle/services/sitemap/findActiveSubItem.d.ts +3 -0
- package/mobile/bundle/services/sitemap/isHrefActive.d.ts +4 -0
- package/mobile/bundle/services/sitemap/isSubItemActive.d.ts +3 -0
- package/mobile/bundle/services/sitemap/isTopItemActive.d.ts +3 -0
- package/mobile/bundle/services/sitemap/mergeTopItems.d.ts +2 -0
- package/mobile/bundle/services/sitemap/useSitemap.d.ts +3 -0
- package/mobile/bundle/ui-kit/BenefitItem/BenefitItem.d.ts +4 -0
- package/mobile/bundle/ui-kit/BenefitItem/BenefitItemProps.d.ts +20 -0
- package/mobile/bundle/ui-kit/BlockWrapper.d.ts +7 -0
- package/mobile/bundle/ui-kit/BlocksList/BlocksListProps.d.ts +96 -0
- package/mobile/bundle/ui-kit/BlocksList/EmbeddableBlocks.d.ts +8 -0
- package/mobile/bundle/ui-kit/BlocksList/renderBlocksList.d.ts +9 -0
- package/mobile/bundle/ui-kit/Breadcrumb.d.ts +6 -0
- package/mobile/bundle/ui-kit/Button/ArrowButton.d.ts +2 -0
- package/mobile/bundle/ui-kit/Button/Button.d.ts +2 -0
- package/mobile/bundle/ui-kit/Button/ButtonInner.d.ts +7 -0
- package/mobile/bundle/ui-kit/Button/ButtonProps.d.ts +54 -0
- package/mobile/bundle/ui-kit/Button/ButtonSection.d.ts +5 -0
- package/mobile/bundle/ui-kit/Button/GetButtonClassParams.d.ts +6 -0
- package/mobile/bundle/ui-kit/Button/LikeButton.d.ts +6 -0
- package/mobile/bundle/ui-kit/Button/buttonClassNameConstants.d.ts +5 -0
- package/mobile/bundle/ui-kit/Button/getDisabledButtonClasses.d.ts +2 -0
- package/mobile/bundle/ui-kit/Button/getRegularButtonClasses.d.ts +2 -0
- package/mobile/bundle/ui-kit/Button/renderArrows.d.ts +9 -0
- package/mobile/bundle/ui-kit/Checkbox/Checkbox.d.ts +2 -0
- package/mobile/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +7 -0
- package/mobile/bundle/ui-kit/CurrencyInput/CurrencyInput.d.ts +2 -0
- package/mobile/bundle/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +5 -0
- package/mobile/bundle/ui-kit/CurrencyInput/adjustValue .d.ts +3 -0
- package/mobile/bundle/ui-kit/Description/Description.d.ts +5 -0
- package/mobile/bundle/ui-kit/Foldable/DefaultButton.d.ts +2 -0
- package/mobile/bundle/ui-kit/Foldable/FoldButtonProps.d.ts +12 -0
- package/mobile/bundle/ui-kit/Foldable/Foldable.d.ts +16 -0
- package/mobile/bundle/ui-kit/HeaderItem/HeaderItem.d.ts +3 -0
- package/mobile/bundle/ui-kit/Heading/Heading.d.ts +2 -0
- package/mobile/bundle/ui-kit/Heading/HeadingProps.d.ts +23 -0
- package/mobile/bundle/ui-kit/Icon/Icon.d.ts +2 -0
- package/mobile/bundle/ui-kit/Icon/IconProps.d.ts +21 -0
- package/mobile/bundle/ui-kit/Img/Img.d.ts +2 -0
- package/mobile/bundle/ui-kit/Img/ImgAsPicture.d.ts +4 -0
- package/mobile/bundle/ui-kit/Img/ImgInner.d.ts +2 -0
- package/mobile/bundle/ui-kit/Img/ImgProps.d.ts +11 -0
- package/mobile/bundle/ui-kit/Img/getIconVersion.d.ts +1 -0
- package/mobile/bundle/ui-kit/InnerTable/InnerTable.d.ts +5 -0
- package/mobile/bundle/ui-kit/InnerTable/InnerTableBody.d.ts +7 -0
- package/mobile/bundle/ui-kit/InnerTable/InnerTableBodyItem.d.ts +6 -0
- package/mobile/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +6 -0
- package/mobile/bundle/ui-kit/InnerTable/InnerTableHeader.d.ts +7 -0
- package/mobile/bundle/ui-kit/InnerTable/InnerTableProps.d.ts +24 -0
- package/mobile/bundle/ui-kit/Input/Input.d.ts +2 -0
- package/mobile/bundle/ui-kit/Input/InputProps.d.ts +16 -0
- package/mobile/bundle/ui-kit/InputRange/InputRange.d.ts +2 -0
- package/mobile/bundle/ui-kit/InputRange/InputRangeProps.d.ts +11 -0
- package/mobile/bundle/ui-kit/IntersectionObserverTag.d.ts +11 -0
- package/mobile/bundle/ui-kit/List/List.d.ts +2 -0
- package/mobile/bundle/ui-kit/List/ListContent.d.ts +4 -0
- package/mobile/bundle/ui-kit/List/ListItem.d.ts +12 -0
- package/mobile/bundle/ui-kit/List/ListProps.d.ts +26 -0
- package/mobile/bundle/ui-kit/Logo/Logo.d.ts +8 -0
- package/mobile/bundle/ui-kit/Radio/Radio.d.ts +2 -0
- package/mobile/bundle/ui-kit/Radio/RadioProps.d.ts +9 -0
- package/mobile/bundle/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
- package/mobile/bundle/ui-kit/SVG.d.ts +19 -0
- package/mobile/bundle/ui-kit/SearchBar/SearchBar.d.ts +2 -0
- package/mobile/bundle/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
- package/mobile/bundle/ui-kit/Select/Select.d.ts +14 -0
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControl.d.ts +2 -0
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +6 -0
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +9 -0
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlList.d.ts +10 -0
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +18 -0
- package/mobile/bundle/ui-kit/SwipeListControl/constants.d.ts +2 -0
- package/mobile/bundle/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +1 -0
- package/mobile/bundle/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +4 -0
- package/mobile/bundle/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +8 -0
- package/mobile/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +2 -0
- package/mobile/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +7 -0
- package/mobile/bundle/ui-kit/TopItem/TopItem.d.ts +14 -0
- package/mobile/bundle/utils/addSpacesBetweenNumbers.d.ts +1 -0
- package/mobile/bundle/utils/adjustHref.d.ts +4 -0
- package/mobile/bundle/utils/assertUnreachable.d.ts +1 -0
- package/mobile/bundle/utils/changeHashOnObserve.d.ts +9 -0
- package/mobile/bundle/utils/checkIsIconRenderable.d.ts +2 -0
- package/mobile/bundle/utils/clamp.d.ts +1 -0
- package/mobile/bundle/utils/fetchJSON.d.ts +2 -0
- package/mobile/bundle/utils/getAccordionItems.d.ts +1 -0
- package/mobile/bundle/utils/getColSpan.d.ts +1 -0
- package/mobile/bundle/utils/getCurrentDate.d.ts +1 -0
- package/mobile/bundle/utils/getGeolocation.d.ts +1 -0
- package/mobile/bundle/utils/getSanitizedValue.d.ts +1 -0
- package/mobile/bundle/utils/isPictureSizeEmpty.d.ts +2 -0
- package/mobile/bundle/utils/joinList.d.ts +1 -0
- package/mobile/bundle/utils/maxBy.d.ts +2 -0
- package/mobile/bundle/utils/roundTo.d.ts +1 -0
- package/mobile/bundle/utils/style2className.d.ts +1 -0
- package/mobile/bundle/utils/tableFunc.d.ts +2 -0
- package/mobile/bundle/utils/url.d.ts +5 -0
- package/mobile/bundle/utils/withoutMobilePath.d.ts +2 -0
- package/mobile/dist/components/Accordion/AccordionItem.d.ts +1 -1
- package/mobile/dist/components/Accordion/AccordionItem.js +9 -7
- package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Blocks.d.ts +0 -1
- package/mobile/dist/components/Blocks.js +0 -2
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js +3 -2
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/Catalog/Catalog.js +1 -1
- package/mobile/dist/components/Catalog/Catalog.js.map +1 -1
- package/mobile/dist/components/Catalog/CatalogCard.js +1 -23
- package/mobile/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js +13 -48
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableColumn.d.ts +5 -8
- package/mobile/dist/components/ComparisonTable/TableColumn.js +2 -8
- package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPageContext.d.ts +0 -11
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/renderInput.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/mobile/dist/components/Footer/Contacts.js +1 -1
- package/mobile/dist/components/Footer/Contacts.js.map +1 -1
- package/mobile/dist/components/Footer/FooterContent.d.ts +5 -9
- package/mobile/dist/components/Gallery/Gallery.js +7 -3
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +14 -17
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContainer.js +2 -2
- package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContent.d.ts +11 -3
- package/mobile/dist/components/Header/HeaderSubMenu.js +3 -2
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/Headline/constants.d.ts +2 -1
- package/mobile/dist/components/Headline/constants.js +10 -1
- package/mobile/dist/components/Headline/constants.js.map +1 -1
- package/mobile/dist/components/MiniGallery/MiniGalleryContent.d.ts +1 -0
- package/mobile/dist/components/OtherProducts/OtherProductsItem.js +4 -2
- package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +5 -0
- package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.d.ts +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeBoxCases.d.ts +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +17 -3
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +7 -4
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js +3 -5
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +7 -3
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js +7 -28
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +0 -2
- package/mobile/dist/components/SafeDepositRental/utils.d.ts +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +9 -2
- package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -0
- package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js +2 -0
- package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/mobile/dist/components/StepsBlock/renderItems.d.ts +3 -0
- package/mobile/dist/components/StepsBlock/renderItems.js +6 -0
- package/mobile/dist/components/StepsBlock/renderItems.js.map +1 -0
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js +1 -2
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +1 -2
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/components/TariffsTable/dataFixture.js +4 -2
- package/mobile/dist/components/TariffsTable/dataFixture.js.map +1 -1
- package/mobile/dist/components/TariffsTable/utils/getButtonAriaLabel.d.ts +1 -1
- package/mobile/dist/components/TariffsTable/utils/getButtonAriaLabel.js +1 -2
- package/mobile/dist/components/TariffsTable/utils/getButtonAriaLabel.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.js +2 -3
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/hooks/useOutsideClick.d.ts +5 -0
- package/mobile/dist/hooks/useOutsideClick.js +21 -0
- package/mobile/dist/hooks/useOutsideClick.js.map +1 -0
- package/mobile/dist/hooks/useSafeBoxes.d.ts +20 -0
- package/{dist/hooks/useFetchSafeBoxes.js → mobile/dist/hooks/useSafeBoxes.js} +9 -10
- package/mobile/dist/hooks/useSafeBoxes.js.map +1 -0
- package/mobile/dist/icons/IconName.d.ts +1 -92
- package/mobile/dist/icons/IconName.js +4 -4
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/HeadlineType.d.ts +8 -0
- package/mobile/dist/model/Picture.d.ts +1 -0
- package/mobile/dist/react/setup-fixture.js +0 -2
- package/mobile/dist/react/setup-fixture.js.map +1 -1
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +3 -1
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/dist/ui-kit/BlockWrapper.d.ts +0 -3
- package/mobile/dist/ui-kit/BlockWrapper.js +5 -5
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.d.ts +1 -1
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +1 -1
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/mobile/dist/ui-kit/Button/Button.js +1 -1
- package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +3 -2
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +1 -7
- package/mobile/dist/ui-kit/Button/ButtonSection.js +5 -10
- package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/dist/ui-kit/Button/buttonClassNameConstants.d.ts +1 -0
- package/mobile/dist/ui-kit/Button/buttonClassNameConstants.js +7 -1
- package/mobile/dist/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js +7 -1
- package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/mobile/dist/ui-kit/CurrencyInput/adjustValue .d.ts +2 -0
- package/mobile/dist/ui-kit/CurrencyInput/adjustValue .js +11 -2
- package/mobile/dist/ui-kit/CurrencyInput/adjustValue .js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/DefaultButton.d.ts +2 -0
- package/mobile/dist/ui-kit/Foldable/DefaultButton.js +12 -0
- package/mobile/dist/ui-kit/Foldable/DefaultButton.js.map +1 -0
- package/mobile/dist/ui-kit/Foldable/FoldButtonProps.d.ts +12 -0
- package/mobile/dist/ui-kit/Foldable/FoldButtonProps.js +2 -0
- package/mobile/dist/ui-kit/Foldable/FoldButtonProps.js.map +1 -0
- package/mobile/dist/ui-kit/Foldable/Foldable.d.ts +11 -17
- package/mobile/dist/ui-kit/Foldable/Foldable.js +22 -14
- package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/Icon.js +4 -5
- package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/IconProps.d.ts +0 -1
- package/mobile/dist/ui-kit/Img/Img.js +1 -3
- package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js +6 -2
- package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
- package/mobile/dist/ui-kit/Input/Input.js +12 -3
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputProps.d.ts +2 -0
- package/mobile/dist/ui-kit/InputRange/InputRange.js +2 -2
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/IntersectionObserverTag.d.ts +11 -0
- package/mobile/dist/ui-kit/IntersectionObserverTag.js +22 -0
- package/mobile/dist/ui-kit/IntersectionObserverTag.js.map +1 -0
- package/mobile/dist/ui-kit/List/List.js +13 -8
- package/mobile/dist/ui-kit/List/List.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListItem.d.ts +2 -2
- package/mobile/dist/ui-kit/List/ListItem.js +8 -23
- package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListProps.d.ts +5 -3
- package/mobile/dist/ui-kit/Radio/Radio.js +1 -1
- package/mobile/dist/ui-kit/Radio/Radio.js.map +1 -1
- package/mobile/dist/ui-kit/Select/Select.js +4 -1
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/utils/getSanitizedValue.d.ts +1 -0
- package/mobile/dist/utils/getSanitizedValue.js +5 -0
- package/mobile/dist/utils/getSanitizedValue.js.map +1 -0
- package/mobile/lib/components/Accordion/AccordionItem.d.ts +1 -1
- package/mobile/lib/components/Accordion/AccordionItem.js +9 -7
- package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Blocks.d.ts +0 -1
- package/mobile/lib/components/Blocks.js +0 -2
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js +3 -2
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/Catalog/Catalog.js +1 -1
- package/mobile/lib/components/Catalog/Catalog.js.map +1 -1
- package/mobile/lib/components/Catalog/CatalogCard.js +1 -23
- package/mobile/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js +14 -49
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableColumn.d.ts +5 -8
- package/mobile/lib/components/ComparisonTable/TableColumn.js +2 -8
- package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPageContext.d.ts +0 -11
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/renderInput.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/mobile/lib/components/Footer/Contacts.js +1 -1
- package/mobile/lib/components/Footer/Contacts.js.map +1 -1
- package/mobile/lib/components/Footer/FooterContent.d.ts +5 -9
- package/mobile/lib/components/Gallery/Gallery.js +7 -3
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +15 -18
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContainer.js +2 -2
- package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContent.d.ts +11 -3
- package/mobile/lib/components/Header/HeaderSubMenu.js +2 -1
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/Headline/constants.d.ts +2 -1
- package/mobile/lib/components/Headline/constants.js +9 -0
- package/mobile/lib/components/Headline/constants.js.map +1 -1
- package/mobile/lib/components/MiniGallery/MiniGalleryContent.d.ts +1 -0
- package/mobile/lib/components/OtherProducts/OtherProductsItem.js +4 -2
- package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +5 -0
- package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.d.ts +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeBoxCases.d.ts +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +18 -4
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +7 -4
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js +3 -5
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +7 -3
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js +9 -30
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +0 -2
- package/mobile/lib/components/SafeDepositRental/utils.d.ts +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +9 -2
- package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -0
- package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js +2 -0
- package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/mobile/lib/components/StepsBlock/renderItems.d.ts +3 -0
- package/mobile/lib/components/StepsBlock/renderItems.js +3 -0
- package/mobile/lib/components/StepsBlock/renderItems.js.map +1 -0
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js +1 -2
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +1 -2
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/components/TariffsTable/dataFixture.js +4 -2
- package/mobile/lib/components/TariffsTable/dataFixture.js.map +1 -1
- package/mobile/lib/components/TariffsTable/utils/getButtonAriaLabel.d.ts +1 -1
- package/mobile/lib/components/TariffsTable/utils/getButtonAriaLabel.js +1 -2
- package/mobile/lib/components/TariffsTable/utils/getButtonAriaLabel.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.js +2 -3
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/hooks/useOutsideClick.d.ts +5 -0
- package/mobile/lib/hooks/useOutsideClick.js +18 -0
- package/mobile/lib/hooks/useOutsideClick.js.map +1 -0
- package/mobile/lib/hooks/useSafeBoxes.d.ts +20 -0
- package/mobile/lib/hooks/{useFetchSafeBoxes.js → useSafeBoxes.js} +7 -8
- package/mobile/lib/hooks/useSafeBoxes.js.map +1 -0
- package/mobile/lib/icons/IconName.d.ts +1 -92
- package/mobile/lib/icons/IconName.js +3 -3
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/HeadlineType.d.ts +8 -0
- package/mobile/lib/model/Picture.d.ts +1 -0
- package/mobile/lib/react/setup-fixture.js +0 -2
- package/mobile/lib/react/setup-fixture.js.map +1 -1
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +3 -1
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/lib/ui-kit/BlockWrapper.d.ts +0 -3
- package/mobile/lib/ui-kit/BlockWrapper.js +4 -4
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.d.ts +1 -1
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +1 -1
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/mobile/lib/ui-kit/Button/Button.js +1 -1
- package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +3 -2
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +1 -7
- package/mobile/lib/ui-kit/Button/ButtonSection.js +5 -10
- package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/lib/ui-kit/Button/buttonClassNameConstants.d.ts +1 -0
- package/mobile/lib/ui-kit/Button/buttonClassNameConstants.js +6 -0
- package/mobile/lib/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js +8 -2
- package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/mobile/lib/ui-kit/CurrencyInput/adjustValue .d.ts +2 -0
- package/mobile/lib/ui-kit/CurrencyInput/adjustValue .js +9 -2
- package/mobile/lib/ui-kit/CurrencyInput/adjustValue .js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/DefaultButton.d.ts +2 -0
- package/mobile/lib/ui-kit/Foldable/DefaultButton.js +10 -0
- package/mobile/lib/ui-kit/Foldable/DefaultButton.js.map +1 -0
- package/mobile/lib/ui-kit/Foldable/FoldButtonProps.d.ts +12 -0
- package/mobile/lib/ui-kit/Foldable/FoldButtonProps.js +2 -0
- package/mobile/lib/ui-kit/Foldable/FoldButtonProps.js.map +1 -0
- package/mobile/lib/ui-kit/Foldable/Foldable.d.ts +11 -17
- package/mobile/lib/ui-kit/Foldable/Foldable.js +22 -14
- package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/Icon.js +4 -5
- package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/IconProps.d.ts +0 -1
- package/mobile/lib/ui-kit/Img/Img.js +1 -3
- package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js +6 -2
- package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
- package/mobile/lib/ui-kit/Input/Input.js +12 -3
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputProps.d.ts +2 -0
- package/mobile/lib/ui-kit/InputRange/InputRange.js +2 -2
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/IntersectionObserverTag.d.ts +11 -0
- package/mobile/lib/ui-kit/IntersectionObserverTag.js +20 -0
- package/mobile/lib/ui-kit/IntersectionObserverTag.js.map +1 -0
- package/mobile/lib/ui-kit/List/List.js +13 -8
- package/mobile/lib/ui-kit/List/List.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListItem.d.ts +2 -2
- package/mobile/lib/ui-kit/List/ListItem.js +7 -21
- package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListProps.d.ts +5 -3
- package/mobile/lib/ui-kit/Radio/Radio.js +1 -1
- package/mobile/lib/ui-kit/Radio/Radio.js.map +1 -1
- package/mobile/lib/ui-kit/Select/Select.js +5 -2
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/utils/getSanitizedValue.d.ts +1 -0
- package/mobile/lib/utils/getSanitizedValue.js +2 -0
- package/mobile/lib/utils/getSanitizedValue.js.map +1 -0
- package/mobile/src/components/Accordion/AccordionItem.tsx +50 -26
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/mobile/src/components/Blocks.ts +0 -2
- package/mobile/src/components/Calculator/CalculatorContent.ts +1 -1
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +3 -1
- package/mobile/src/components/Catalog/Catalog.tsx +2 -2
- package/mobile/src/components/Catalog/CatalogCard.tsx +1 -35
- package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +49 -120
- package/mobile/src/components/ComparisonTable/TableColumn.tsx +25 -27
- package/mobile/src/components/ContentPage/ContentPageContext.tsx +0 -14
- package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +1 -3
- package/mobile/src/components/ExchangeRateTile/renderInput.tsx +1 -1
- package/mobile/src/components/Footer/Contacts.tsx +1 -0
- package/mobile/src/components/Footer/FooterContent.ts +5 -10
- package/mobile/src/components/Gallery/Gallery.tsx +15 -5
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +60 -44
- package/mobile/src/components/Gallery/GalleryContainer.tsx +10 -2
- package/mobile/src/components/Gallery/GalleryContent.ts +11 -3
- package/mobile/src/components/Header/HeaderSubMenu.tsx +2 -1
- package/mobile/src/components/Headline/constants.ts +11 -1
- package/mobile/src/components/MiniGallery/MiniGalleryContent.ts +1 -0
- package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +18 -9
- package/mobile/src/components/ProductTile/ProductTile.tsx +3 -3
- package/mobile/src/components/Recommendation/RecommendationContent.ts +5 -0
- package/mobile/src/components/SafeDepositRental/RegionsAndBranches.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/SafeBoxCases.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +34 -7
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +13 -21
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +21 -49
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTypes.ts +0 -3
- package/mobile/src/components/SafeDepositRental/utils.ts +1 -1
- package/mobile/src/components/StepsBlock/StepsBlock.ui.json +8 -0
- package/mobile/src/components/StepsBlock/StepsBlockContent.ts +9 -2
- package/mobile/src/components/StepsBlock/StepsBlockStyleMaps.ts +3 -0
- package/mobile/src/components/StepsBlock/renderItems.tsx +17 -0
- package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +4 -8
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -4
- package/mobile/src/components/TariffsTable/{dataFixture.ts → dataFixture.tsx} +3 -2
- package/mobile/src/components/TariffsTable/utils/getButtonAriaLabel.ts +1 -3
- package/mobile/src/components/Tile/Tile.tsx +3 -5
- package/mobile/src/hooks/useOutsideClick.ts +25 -0
- package/mobile/src/hooks/{useFetchSafeBoxes.ts → useSafeBoxes.ts} +7 -8
- package/mobile/src/icons/IconName.ts +3 -3
- package/mobile/src/model/HeadlineType.ts +10 -0
- package/mobile/src/model/Picture.ts +1 -0
- package/mobile/src/react/setup-fixture.ts +0 -2
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +5 -5
- package/mobile/src/ui-kit/BlockWrapper.tsx +5 -9
- package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +1 -1
- package/mobile/src/ui-kit/Button/Button.tsx +1 -1
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +4 -3
- package/mobile/src/ui-kit/Button/ButtonProps.ts +1 -7
- package/mobile/src/ui-kit/Button/ButtonSection.tsx +19 -41
- package/mobile/src/ui-kit/Button/buttonClassNameConstants.ts +7 -0
- package/mobile/src/ui-kit/CurrencyInput/CurrencyInput.tsx +19 -3
- package/mobile/src/ui-kit/CurrencyInput/adjustValue .ts +13 -2
- package/mobile/src/ui-kit/Foldable/DefaultButton.tsx +27 -0
- package/mobile/src/ui-kit/Foldable/FoldButtonProps.ts +13 -0
- package/mobile/src/ui-kit/Foldable/Foldable.tsx +66 -70
- package/mobile/src/ui-kit/Icon/Icon.tsx +5 -6
- package/mobile/src/ui-kit/Icon/IconProps.ts +0 -1
- package/mobile/src/ui-kit/Img/Img.tsx +1 -13
- package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +1 -1
- package/mobile/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +14 -5
- package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
- package/mobile/src/ui-kit/InnerTable/InnerTableHeader.tsx +4 -3
- package/mobile/src/ui-kit/Input/Input.tsx +18 -2
- package/mobile/src/ui-kit/Input/InputProps.ts +2 -0
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +2 -3
- package/mobile/src/ui-kit/IntersectionObserverTag.tsx +49 -0
- package/mobile/src/ui-kit/List/List.tsx +29 -18
- package/mobile/src/ui-kit/List/ListItem.tsx +14 -26
- package/mobile/src/ui-kit/List/ListProps.ts +5 -3
- package/mobile/src/ui-kit/Radio/Radio.tsx +3 -2
- package/mobile/src/ui-kit/Select/Select.tsx +8 -3
- package/mobile/src/utils/getSanitizedValue.ts +1 -0
- package/package.json +2 -2
- package/src/components/Accordion/AccordionItem.mobile.tsx +50 -26
- package/src/components/Accordion/AccordionItem.tsx +38 -27
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +4 -4
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/src/components/Blocks.mobile.ts +0 -2
- package/src/components/Calculator/CalculatorContent.ts +1 -1
- package/src/components/CardTransfer/CardTransfer.tsx +3 -1
- package/src/components/Catalog/Catalog.fixture.tsx +10 -3
- package/src/components/Catalog/Catalog.tsx +2 -2
- package/src/components/Catalog/CatalogCard.tsx +1 -35
- package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +49 -120
- package/src/components/ComparisonTable/ComparisonTable.tsx +1 -1
- package/src/components/ComparisonTable/TableCell.tsx +2 -2
- package/src/components/ComparisonTable/TableColumn.tsx +25 -27
- package/src/components/ContentPage/ContentPageContext.tsx +0 -14
- package/src/components/ErrorBlock/ErrorBlock.tsx +1 -3
- package/src/components/ExchangeRateTile/renderInput.tsx +1 -1
- package/src/components/Footer/Contacts.tsx +1 -0
- package/src/components/Footer/FooterContent.ts +5 -10
- package/src/components/Gallery/Gallery.fixture.tsx +2 -2
- package/src/components/Gallery/Gallery.mobile.tsx +15 -5
- package/src/components/Gallery/GalleryCardInner.tsx +60 -44
- package/src/components/Gallery/GalleryContainer.tsx +10 -2
- package/src/components/Gallery/GalleryContent.ts +11 -3
- package/src/components/Header/HeaderSubMenu.tsx +2 -1
- package/src/components/Headline/constants.ts +11 -1
- package/src/components/MiniGallery/MiniGallery.fixture.tsx +45 -0
- package/src/components/MiniGallery/MiniGalleryContent.ts +1 -0
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +14 -4
- package/src/components/MobileAppTile/MobileAppTile.tsx +3 -6
- package/src/components/OtherProducts/OtherProductsItem.tsx +18 -9
- package/src/components/ProductGallery/ProductGallery.tsx +2 -2
- package/src/components/ProductTile/ProductTile.tsx +3 -3
- package/src/components/Recommendation/RecommendationContent.ts +5 -0
- package/src/components/SafeDepositRental/RegionsAndBranches.tsx +1 -1
- package/src/components/SafeDepositRental/SafeBoxCases.tsx +1 -1
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +34 -7
- package/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +13 -21
- package/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +21 -49
- package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +1 -1
- package/src/components/SafeDepositRental/SafeDepositRentalTypes.ts +0 -3
- package/src/components/SafeDepositRental/utils.ts +1 -1
- package/src/components/StepsBlock/StepsBlock.fixture.tsx +31 -3
- package/src/components/StepsBlock/StepsBlock.tsx +11 -6
- package/src/components/StepsBlock/StepsBlock.ui.json +8 -0
- package/src/components/StepsBlock/StepsBlockContent.ts +9 -2
- package/src/components/StepsBlock/StepsBlockStyleMaps.ts +3 -0
- package/src/components/StepsBlock/renderItems.tsx +17 -0
- package/src/components/TariffsTable/EmbeddableCellData.mobile.tsx +4 -8
- package/src/components/TariffsTable/EmbeddableCellData.tsx +5 -10
- package/src/components/TariffsTable/TariffsTable.tsx +3 -5
- package/src/components/TariffsTable/TariffsTableCell.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableRow.tsx +1 -4
- package/src/components/TariffsTable/{dataFixture.ts → dataFixture.tsx} +3 -2
- package/src/components/TariffsTable/utils/getButtonAriaLabel.ts +1 -3
- package/src/components/Tile/Tile.tsx +3 -5
- package/src/hooks/useOutsideClick.ts +25 -0
- package/src/hooks/{useFetchSafeBoxes.ts → useSafeBoxes.ts} +7 -8
- package/src/icons/IconName.ts +34 -92
- package/src/model/HeadlineType.ts +10 -0
- package/src/model/Picture.ts +1 -0
- package/src/react/setup-fixture.ts +0 -2
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +5 -5
- package/src/ui-kit/BlockWrapper.tsx +5 -9
- package/src/ui-kit/BlocksList/renderBlocksList.tsx +1 -1
- package/src/ui-kit/Button/Button.mobile.tsx +1 -1
- package/src/ui-kit/Button/Button.tsx +55 -27
- package/src/ui-kit/Button/ButtonInner.tsx +4 -3
- package/src/ui-kit/Button/ButtonProps.ts +1 -7
- package/src/ui-kit/Button/ButtonSection.tsx +19 -41
- package/src/ui-kit/Button/buttonClassNameConstants.ts +7 -0
- package/src/ui-kit/CurrencyInput/CurrencyInput.tsx +19 -3
- package/src/ui-kit/CurrencyInput/adjustValue .ts +13 -2
- package/src/ui-kit/Foldable/DefaultButton.tsx +27 -0
- package/src/ui-kit/Foldable/FoldButtonProps.ts +13 -0
- package/src/ui-kit/Foldable/Foldable.tsx +66 -70
- package/src/ui-kit/Icon/Icon.tsx +5 -6
- package/src/ui-kit/Icon/IconProps.ts +0 -1
- package/src/ui-kit/Img/Img.mobile.tsx +1 -13
- package/src/ui-kit/Img/Img.tsx +1 -17
- package/src/ui-kit/InnerTable/InnerTableBody.tsx +1 -1
- package/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +14 -5
- package/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
- package/src/ui-kit/InnerTable/InnerTableHeader.tsx +4 -3
- package/src/ui-kit/Input/Input.tsx +18 -2
- package/src/ui-kit/Input/InputProps.ts +2 -0
- package/src/ui-kit/InputRange/InputRange.tsx +2 -3
- package/src/ui-kit/IntersectionObserverTag.tsx +49 -0
- package/src/ui-kit/List/List.fixture.tsx +1 -21
- package/src/ui-kit/List/List.tsx +29 -18
- package/src/ui-kit/List/ListItem.tsx +14 -26
- package/src/ui-kit/List/ListProps.ts +5 -3
- package/src/ui-kit/Radio/Radio.tsx +3 -2
- package/src/ui-kit/Select/Select.tsx +8 -3
- package/src/utils/getSanitizedValue.ts +1 -0
- package/tailwind.config.cjs +1 -1
- package/dist/components/Accordion/AccordionItemInner.d.ts +0 -2
- package/dist/components/Accordion/AccordionItemInner.js +0 -9
- package/dist/components/Accordion/AccordionItemInner.js.map +0 -1
- package/dist/components/Accordion/AccordionItemInner.mobile.d.ts +0 -2
- package/dist/components/Accordion/AccordionItemInner.mobile.js +0 -9
- package/dist/components/Accordion/AccordionItemInner.mobile.js.map +0 -1
- package/dist/components/Accordion/useActiveHandler.d.ts +0 -7
- package/dist/components/Accordion/useActiveHandler.js +0 -22
- package/dist/components/Accordion/useActiveHandler.js.map +0 -1
- package/dist/hooks/useFetchSafeBoxes.js.map +0 -1
- package/dist/react/IntersectionObserverTag.d.ts +0 -2
- package/dist/react/IntersectionObserverTag.js +0 -43
- package/dist/react/IntersectionObserverTag.js.map +0 -1
- package/dist/ui-kit/Foldable/useActiveHandler.d.ts +0 -9
- package/dist/ui-kit/Foldable/useActiveHandler.js +0 -23
- package/dist/ui-kit/Foldable/useActiveHandler.js.map +0 -1
- package/lib/components/Accordion/AccordionItemInner.d.ts +0 -2
- package/lib/components/Accordion/AccordionItemInner.js +0 -7
- package/lib/components/Accordion/AccordionItemInner.js.map +0 -1
- package/lib/components/Accordion/AccordionItemInner.mobile.d.ts +0 -2
- package/lib/components/Accordion/AccordionItemInner.mobile.js +0 -7
- package/lib/components/Accordion/AccordionItemInner.mobile.js.map +0 -1
- package/lib/components/Accordion/useActiveHandler.d.ts +0 -7
- package/lib/components/Accordion/useActiveHandler.js +0 -19
- package/lib/components/Accordion/useActiveHandler.js.map +0 -1
- package/lib/hooks/useFetchSafeBoxes.js.map +0 -1
- package/lib/react/IntersectionObserverTag.d.ts +0 -2
- package/lib/react/IntersectionObserverTag.js +0 -17
- package/lib/react/IntersectionObserverTag.js.map +0 -1
- package/lib/ui-kit/Foldable/useActiveHandler.d.ts +0 -9
- package/lib/ui-kit/Foldable/useActiveHandler.js +0 -20
- package/lib/ui-kit/Foldable/useActiveHandler.js.map +0 -1
- package/mobile/dist/components/Accordion/AccordionItemInner.d.ts +0 -2
- package/mobile/dist/components/Accordion/AccordionItemInner.js +0 -9
- package/mobile/dist/components/Accordion/AccordionItemInner.js.map +0 -1
- package/mobile/dist/components/Accordion/useActiveHandler.d.ts +0 -7
- package/mobile/dist/components/Accordion/useActiveHandler.js +0 -22
- package/mobile/dist/components/Accordion/useActiveHandler.js.map +0 -1
- package/mobile/dist/hooks/useFetchSafeBoxes.js.map +0 -1
- package/mobile/dist/react/IntersectionObserverTag.d.ts +0 -2
- package/mobile/dist/react/IntersectionObserverTag.js +0 -43
- package/mobile/dist/react/IntersectionObserverTag.js.map +0 -1
- package/mobile/dist/ui-kit/Foldable/useActiveHandler.d.ts +0 -9
- package/mobile/dist/ui-kit/Foldable/useActiveHandler.js +0 -23
- package/mobile/dist/ui-kit/Foldable/useActiveHandler.js.map +0 -1
- package/mobile/lib/components/Accordion/AccordionItemInner.d.ts +0 -2
- package/mobile/lib/components/Accordion/AccordionItemInner.js +0 -7
- package/mobile/lib/components/Accordion/AccordionItemInner.js.map +0 -1
- package/mobile/lib/components/Accordion/useActiveHandler.d.ts +0 -7
- package/mobile/lib/components/Accordion/useActiveHandler.js +0 -19
- package/mobile/lib/components/Accordion/useActiveHandler.js.map +0 -1
- package/mobile/lib/hooks/useFetchSafeBoxes.js.map +0 -1
- package/mobile/lib/react/IntersectionObserverTag.d.ts +0 -2
- package/mobile/lib/react/IntersectionObserverTag.js +0 -17
- package/mobile/lib/react/IntersectionObserverTag.js.map +0 -1
- package/mobile/lib/ui-kit/Foldable/useActiveHandler.d.ts +0 -9
- package/mobile/lib/ui-kit/Foldable/useActiveHandler.js +0 -20
- package/mobile/lib/ui-kit/Foldable/useActiveHandler.js.map +0 -1
- package/mobile/src/components/Accordion/AccordionItemInner.tsx +0 -11
- package/mobile/src/components/Accordion/useActiveHandler.ts +0 -25
- package/mobile/src/react/IntersectionObserverTag.tsx +0 -33
- package/mobile/src/ui-kit/Foldable/useActiveHandler.ts +0 -33
- package/src/components/Accordion/AccordionItemInner.mobile.tsx +0 -11
- package/src/components/Accordion/AccordionItemInner.tsx +0 -11
- package/src/components/Accordion/useActiveHandler.ts +0 -25
- package/src/react/IntersectionObserverTag.tsx +0 -33
- package/src/ui-kit/Foldable/useActiveHandler.ts +0 -33
package/bundle/bundle.umd.js
CHANGED
|
@@ -272,15 +272,31 @@
|
|
|
272
272
|
}
|
|
273
273
|
};
|
|
274
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
|
+
|
|
275
292
|
const THRESHOLD_ACCURACY = 100; // Decimals number (100 is for two decimals number, 0.**)
|
|
276
293
|
const THRESHOLD_ARRAY_LENGTH = 18;
|
|
277
294
|
const THRESHOLD_ARRAY_START_VALUE = (THRESHOLD_ACCURACY - THRESHOLD_ARRAY_LENGTH) / THRESHOLD_ACCURACY;
|
|
278
|
-
const BlockWrapper = JSX(({ anchor, className,
|
|
295
|
+
const BlockWrapper = JSX(({ anchor, className, children, tag = 'section', labels }) => {
|
|
279
296
|
const Tag = tag;
|
|
280
|
-
const { IntersectionObserverTag } = context;
|
|
281
297
|
const [shouldRenderBlock, setShouldRenderBlock] = useState(true);
|
|
282
298
|
const anchorClickRef = useRef({});
|
|
283
|
-
const observerCallback = useMemo(() => changeHashOnObserve({ anchor, anchorClickRef }), [anchor
|
|
299
|
+
const observerCallback = useMemo(() => changeHashOnObserve({ anchor, anchorClickRef }), [anchor]);
|
|
284
300
|
useEffect(() => {
|
|
285
301
|
const anchorClickCleanup = EventBus.inst.subscribe('anchorClick', (e) => {
|
|
286
302
|
anchorClickRef.current = e;
|
|
@@ -298,7 +314,7 @@
|
|
|
298
314
|
anchorClickCleanup();
|
|
299
315
|
tabCleanup();
|
|
300
316
|
};
|
|
301
|
-
}, [
|
|
317
|
+
}, []);
|
|
302
318
|
if (!shouldRenderBlock) {
|
|
303
319
|
return null;
|
|
304
320
|
}
|
|
@@ -330,270 +346,6 @@
|
|
|
330
346
|
return (jsx(Tag, { className: `font-sans m-0 ${HEADING_STYLE_MAP[headingType]} ${className}`, children: title }));
|
|
331
347
|
});
|
|
332
348
|
|
|
333
|
-
// Generated. Do not touch
|
|
334
|
-
/* eslint-disable max-len, max-lines */
|
|
335
|
-
const IconInverseMap = {
|
|
336
|
-
ActualBalanceIcon: false, AirPlaneIcon: false, AppleIcon: true, ArrowDownIcon: true, ArrowLeftIcon: true, ArrowUpIcon: true, AtmIcon: true, BankIcon: true, BuildingIcon: true, BurgerIcon: true, Calendar2Icon: true, CalendarCircleIcon: true, CalendarIcon: true, CalendarTickIcon: true, Car2Icon: true, CardIcon: true, CardPosIcon: true, CardTickIcon: true, CardWithGemIcon: false, CarIcon: false, ChartSquareIcon: true, CinemaIcon: false, ClockIcon: false, CloseIcon: true, ComfortableCompIcon: false, CreditCardsIcon: false, DiscountShapeIcon: true, DocDownloadIcon: true, DocIcon: true, DocIconMonoColor: true, DocsIcon: false, DocumentTextIcon: true, DollarIcon: false, DoneIcon: false, DoneSimpleIcon: true, EarthIcon: false, EmptyWalletChangeIcon: true, EmptyWalletIcon: true, EuroIcon: false, GeolocationIcon: true, GlassIcon: false, GlobalIcon: true, GpsIcon: true, GridIcon: true, InterestGrowthIcon: false, InterestIcon: true, JCBIcon: false, LogoIcon: true, LoupeIcon: true, MapMarkerClusterIcon: false, MapMarkerSingleIcon: false, MasterCardIcon: false, MinusIcon: true, MirIcon: false, MoneyIcon: true, MoneyInsuranceIcon: false, MoneysIcon: true, MonitorMobileIcon: true, NewDocIcon: false, OfficeIcon: false, OkIcon: true, PackA4Icon: false, PassSendIcon: false, PercentageRoundIcon: true, PercentageSquareIcon: true, PersonalCardIcon: true, PlayMarketIcon: true, PlusIcon: true, PowerIcon: false, Profile2UserIcon: true, ProfileIcon: true, PumpkinIcon: false, RoundRubleIcon: true, SafeIcon: true, ShieldTickIcon: true, SignDocsIcon: false, SmallClockIcon: true, SoundIcon: false, StrongBoxIcon: true, TelegramIcon: true, UnionPayIcon: false, UserSquareIcon: true, UserTickIcon: true, VisaIcon: false, VKIcon: true, WalletAdd2Icon: true, WalletAddIcon: true, WalletIcon: true, WalletWithMoneyIcon: true, WateringCanIcon: false
|
|
337
|
-
};
|
|
338
|
-
var IconMap;
|
|
339
|
-
(function (IconMap) {
|
|
340
|
-
IconMap["ActualBalanceIcon"] = "ActualBalanceIcon";
|
|
341
|
-
IconMap["AirPlaneIcon"] = "AirPlaneIcon";
|
|
342
|
-
IconMap["AppleIcon"] = "AppleIcon";
|
|
343
|
-
IconMap["ArrowDownIcon"] = "ArrowDownIcon";
|
|
344
|
-
IconMap["ArrowLeftIcon"] = "ArrowLeftIcon";
|
|
345
|
-
IconMap["ArrowUpIcon"] = "ArrowUpIcon";
|
|
346
|
-
IconMap["AtmIcon"] = "AtmIcon";
|
|
347
|
-
IconMap["BankIcon"] = "BankIcon";
|
|
348
|
-
IconMap["BuildingIcon"] = "BuildingIcon";
|
|
349
|
-
IconMap["BurgerIcon"] = "BurgerIcon";
|
|
350
|
-
IconMap["Calendar2Icon"] = "Calendar2Icon";
|
|
351
|
-
IconMap["CalendarCircleIcon"] = "CalendarCircleIcon";
|
|
352
|
-
IconMap["CalendarIcon"] = "CalendarIcon";
|
|
353
|
-
IconMap["CalendarTickIcon"] = "CalendarTickIcon";
|
|
354
|
-
IconMap["Car2Icon"] = "Car2Icon";
|
|
355
|
-
IconMap["CardIcon"] = "CardIcon";
|
|
356
|
-
IconMap["CardPosIcon"] = "CardPosIcon";
|
|
357
|
-
IconMap["CardTickIcon"] = "CardTickIcon";
|
|
358
|
-
IconMap["CardWithGemIcon"] = "CardWithGemIcon";
|
|
359
|
-
IconMap["CarIcon"] = "CarIcon";
|
|
360
|
-
IconMap["ChartSquareIcon"] = "ChartSquareIcon";
|
|
361
|
-
IconMap["CinemaIcon"] = "CinemaIcon";
|
|
362
|
-
IconMap["ClockIcon"] = "ClockIcon";
|
|
363
|
-
IconMap["CloseIcon"] = "CloseIcon";
|
|
364
|
-
IconMap["ComfortableCompIcon"] = "ComfortableCompIcon";
|
|
365
|
-
IconMap["CreditCardsIcon"] = "CreditCardsIcon";
|
|
366
|
-
IconMap["DiscountShapeIcon"] = "DiscountShapeIcon";
|
|
367
|
-
IconMap["DocDownloadIcon"] = "DocDownloadIcon";
|
|
368
|
-
IconMap["DocIcon"] = "DocIcon";
|
|
369
|
-
IconMap["DocIconMonoColor"] = "DocIconMonoColor";
|
|
370
|
-
IconMap["DocsIcon"] = "DocsIcon";
|
|
371
|
-
IconMap["DocumentTextIcon"] = "DocumentTextIcon";
|
|
372
|
-
IconMap["DollarIcon"] = "DollarIcon";
|
|
373
|
-
IconMap["DoneIcon"] = "DoneIcon";
|
|
374
|
-
IconMap["DoneSimpleIcon"] = "DoneSimpleIcon";
|
|
375
|
-
IconMap["EarthIcon"] = "EarthIcon";
|
|
376
|
-
IconMap["EmptyWalletChangeIcon"] = "EmptyWalletChangeIcon";
|
|
377
|
-
IconMap["EmptyWalletIcon"] = "EmptyWalletIcon";
|
|
378
|
-
IconMap["EuroIcon"] = "EuroIcon";
|
|
379
|
-
IconMap["GeolocationIcon"] = "GeolocationIcon";
|
|
380
|
-
IconMap["GlassIcon"] = "GlassIcon";
|
|
381
|
-
IconMap["GlobalIcon"] = "GlobalIcon";
|
|
382
|
-
IconMap["GpsIcon"] = "GpsIcon";
|
|
383
|
-
IconMap["GridIcon"] = "GridIcon";
|
|
384
|
-
IconMap["InterestGrowthIcon"] = "InterestGrowthIcon";
|
|
385
|
-
IconMap["InterestIcon"] = "InterestIcon";
|
|
386
|
-
IconMap["JCBIcon"] = "JCBIcon";
|
|
387
|
-
IconMap["LogoIcon"] = "LogoIcon";
|
|
388
|
-
IconMap["LoupeIcon"] = "LoupeIcon";
|
|
389
|
-
IconMap["MapMarkerClusterIcon"] = "MapMarkerClusterIcon";
|
|
390
|
-
IconMap["MapMarkerSingleIcon"] = "MapMarkerSingleIcon";
|
|
391
|
-
IconMap["MasterCardIcon"] = "MasterCardIcon";
|
|
392
|
-
IconMap["MinusIcon"] = "MinusIcon";
|
|
393
|
-
IconMap["MirIcon"] = "MirIcon";
|
|
394
|
-
IconMap["MoneyIcon"] = "MoneyIcon";
|
|
395
|
-
IconMap["MoneyInsuranceIcon"] = "MoneyInsuranceIcon";
|
|
396
|
-
IconMap["MoneysIcon"] = "MoneysIcon";
|
|
397
|
-
IconMap["MonitorMobileIcon"] = "MonitorMobileIcon";
|
|
398
|
-
IconMap["NewDocIcon"] = "NewDocIcon";
|
|
399
|
-
IconMap["OfficeIcon"] = "OfficeIcon";
|
|
400
|
-
IconMap["OkIcon"] = "OkIcon";
|
|
401
|
-
IconMap["PackA4Icon"] = "PackA4Icon";
|
|
402
|
-
IconMap["PassSendIcon"] = "PassSendIcon";
|
|
403
|
-
IconMap["PercentageRoundIcon"] = "PercentageRoundIcon";
|
|
404
|
-
IconMap["PercentageSquareIcon"] = "PercentageSquareIcon";
|
|
405
|
-
IconMap["PersonalCardIcon"] = "PersonalCardIcon";
|
|
406
|
-
IconMap["PlayMarketIcon"] = "PlayMarketIcon";
|
|
407
|
-
IconMap["PlusIcon"] = "PlusIcon";
|
|
408
|
-
IconMap["PowerIcon"] = "PowerIcon";
|
|
409
|
-
IconMap["Profile2UserIcon"] = "Profile2UserIcon";
|
|
410
|
-
IconMap["ProfileIcon"] = "ProfileIcon";
|
|
411
|
-
IconMap["PumpkinIcon"] = "PumpkinIcon";
|
|
412
|
-
IconMap["RoundRubleIcon"] = "RoundRubleIcon";
|
|
413
|
-
IconMap["SafeIcon"] = "SafeIcon";
|
|
414
|
-
IconMap["ShieldTickIcon"] = "ShieldTickIcon";
|
|
415
|
-
IconMap["SignDocsIcon"] = "SignDocsIcon";
|
|
416
|
-
IconMap["SmallClockIcon"] = "SmallClockIcon";
|
|
417
|
-
IconMap["SoundIcon"] = "SoundIcon";
|
|
418
|
-
IconMap["StrongBoxIcon"] = "StrongBoxIcon";
|
|
419
|
-
IconMap["TelegramIcon"] = "TelegramIcon";
|
|
420
|
-
IconMap["UnionPayIcon"] = "UnionPayIcon";
|
|
421
|
-
IconMap["UserSquareIcon"] = "UserSquareIcon";
|
|
422
|
-
IconMap["UserTickIcon"] = "UserTickIcon";
|
|
423
|
-
IconMap["VisaIcon"] = "VisaIcon";
|
|
424
|
-
IconMap["VKIcon"] = "VKIcon";
|
|
425
|
-
IconMap["WalletAdd2Icon"] = "WalletAdd2Icon";
|
|
426
|
-
IconMap["WalletAddIcon"] = "WalletAddIcon";
|
|
427
|
-
IconMap["WalletIcon"] = "WalletIcon";
|
|
428
|
-
IconMap["WalletWithMoneyIcon"] = "WalletWithMoneyIcon";
|
|
429
|
-
IconMap["WateringCanIcon"] = "WateringCanIcon";
|
|
430
|
-
})(IconMap || (IconMap = {}));
|
|
431
|
-
var IconTitleMap;
|
|
432
|
-
(function (IconTitleMap) {
|
|
433
|
-
IconTitleMap["ActualBalanceIcon"] = "\u0414\u0435\u043D\u044C\u0433\u0438";
|
|
434
|
-
IconTitleMap["AirPlaneIcon"] = "\u0421\u0430\u043C\u043E\u043B\u0451\u0442";
|
|
435
|
-
IconTitleMap["AppleIcon"] = "\u041B\u043E\u0433\u043E \u00ABApple\u00BB";
|
|
436
|
-
IconTitleMap["ArrowDownIcon"] = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430 '\u0412\u043D\u0438\u0437'";
|
|
437
|
-
IconTitleMap["ArrowLeftIcon"] = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430";
|
|
438
|
-
IconTitleMap["ArrowUpIcon"] = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445";
|
|
439
|
-
IconTitleMap["AtmIcon"] = "\u0411\u0430\u043D\u043A\u043E\u043C\u0430\u0442";
|
|
440
|
-
IconTitleMap["BankIcon"] = "\u0411\u0430\u043D\u043A";
|
|
441
|
-
IconTitleMap["BuildingIcon"] = "\u0417\u0434\u0430\u043D\u0438\u0435 \u0441 \u0434\u0435\u0440\u0435\u0432\u043E\u043C";
|
|
442
|
-
IconTitleMap["BurgerIcon"] = "\u0411\u0443\u0440\u0433\u0435\u0440";
|
|
443
|
-
IconTitleMap["Calendar2Icon"] = "\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C 2";
|
|
444
|
-
IconTitleMap["CalendarCircleIcon"] = "\u0421\u043A\u0440\u0443\u0433\u043B\u0451\u043D\u043D\u044B\u0439 \u043A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C";
|
|
445
|
-
IconTitleMap["CalendarIcon"] = "\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C";
|
|
446
|
-
IconTitleMap["CalendarTickIcon"] = "\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C \u0441 \u0433\u0430\u043B\u043E\u0447\u043A\u043E\u0439";
|
|
447
|
-
IconTitleMap["Car2Icon"] = "\u041C\u0430\u0448\u0438\u043D\u04302";
|
|
448
|
-
IconTitleMap["CardIcon"] = "\u041A\u0440\u0435\u0434. \u043A\u0430\u0440\u0442\u0430";
|
|
449
|
-
IconTitleMap["CardPosIcon"] = "\u041A\u0440\u0435\u0434. \u043A\u0430\u0440\u0442\u0430 \u043F\u043E\u0434 \u043D\u0430\u043A\u043B\u043E\u043D\u043E\u043C";
|
|
450
|
-
IconTitleMap["CardTickIcon"] = "\u041A\u0440\u0435\u0434. \u043A\u0430\u0440\u0442\u0430 \u0441 \u0433\u0430\u043B\u043E\u0447\u043A\u043E\u0439";
|
|
451
|
-
IconTitleMap["CardWithGemIcon"] = "\u041A\u0430\u0440\u0442\u0430 \u0441 \u0434\u0440\u0430\u0433\u043E\u0446\u0435\u043D\u043D\u043E\u0441\u0442\u044F\u043C\u0438";
|
|
452
|
-
IconTitleMap["CarIcon"] = "\u041C\u0430\u0448\u0438\u043D\u0430";
|
|
453
|
-
IconTitleMap["ChartSquareIcon"] = "\u0414\u0435\u043D\u044C\u0433\u0438 \u0432\u043D\u0443\u0442\u0440\u0438 \u043A\u043E\u0448\u0435\u043B\u044C\u043A\u0430";
|
|
454
|
-
IconTitleMap["CinemaIcon"] = "\u041A\u0438\u043D\u043E\u0442\u0435\u0430\u0442\u0440";
|
|
455
|
-
IconTitleMap["ClockIcon"] = "\u0427\u0430\u0441\u044B";
|
|
456
|
-
IconTitleMap["CloseIcon"] = "\u041A\u0440\u0435\u0441\u0442\u0438\u043A";
|
|
457
|
-
IconTitleMap["ComfortableCompIcon"] = "\u041A\u0440\u0435\u0441\u043B\u043E";
|
|
458
|
-
IconTitleMap["CreditCardsIcon"] = "\u041A\u0440\u0435\u0434\u0438\u0442\u043D\u044B\u0435 \u043A\u0430\u0440\u0442\u044B";
|
|
459
|
-
IconTitleMap["DiscountShapeIcon"] = "\u0421\u043A\u0438\u0434\u043A\u0430";
|
|
460
|
-
IconTitleMap["DocDownloadIcon"] = "\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442";
|
|
461
|
-
IconTitleMap["DocIcon"] = "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442";
|
|
462
|
-
IconTitleMap["DocIconMonoColor"] = "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442 (\u043E\u0434\u043D\u043E\u0446\u0432\u0435\u0442\u043D\u044B\u0439)";
|
|
463
|
-
IconTitleMap["DocsIcon"] = "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B";
|
|
464
|
-
IconTitleMap["DocumentTextIcon"] = "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442 \u0441 \u0442\u0435\u043A\u0441\u0442\u043E\u043C";
|
|
465
|
-
IconTitleMap["DollarIcon"] = "\u0414\u043E\u043B\u043B\u0430\u0440";
|
|
466
|
-
IconTitleMap["DoneIcon"] = "\u0417\u0435\u043B\u0451\u043D\u0430\u044F '\u0433\u0430\u043B\u043E\u0447\u043A\u0430' \u0432 \u043A\u0440\u0443\u0433\u0435";
|
|
467
|
-
IconTitleMap["DoneSimpleIcon"] = "\u0417\u0435\u043B\u0451\u043D\u0430\u044F '\u0433\u0430\u043B\u043E\u0447\u043A\u0430'";
|
|
468
|
-
IconTitleMap["EarthIcon"] = "\u0417\u0435\u043C\u043B\u044F";
|
|
469
|
-
IconTitleMap["EmptyWalletChangeIcon"] = "\u041F\u0443\u0441\u0442\u043E\u0439 \u043A\u043E\u0448\u0435\u043B\u0451\u043A \u0441 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u043C";
|
|
470
|
-
IconTitleMap["EmptyWalletIcon"] = "\u041F\u0443\u0441\u0442\u043E\u0439 \u043A\u043E\u0448\u0435\u043B\u0451\u043A";
|
|
471
|
-
IconTitleMap["EuroIcon"] = "\u0415\u0432\u0440\u043E";
|
|
472
|
-
IconTitleMap["GeolocationIcon"] = "\u0413\u0435\u043E\u043B\u043E\u043A\u0430\u0446\u0438\u044F";
|
|
473
|
-
IconTitleMap["GlassIcon"] = "\u0417\u0435\u0440\u043A\u0430\u043B\u043E";
|
|
474
|
-
IconTitleMap["GlobalIcon"] = "\u0413\u043B\u043E\u0431\u0443\u0441";
|
|
475
|
-
IconTitleMap["GpsIcon"] = "Gps";
|
|
476
|
-
IconTitleMap["GridIcon"] = "\u0421\u0435\u0442\u043A\u0430 (\u0431\u0435\u043B\u0430\u044F)";
|
|
477
|
-
IconTitleMap["InterestGrowthIcon"] = "\u0414\u0438\u0430\u0433\u0440\u0430\u043C\u043C\u0430 \u0440\u043E\u0441\u0442\u0430";
|
|
478
|
-
IconTitleMap["InterestIcon"] = "\u0421\u043A\u0438\u0434\u043A\u0430";
|
|
479
|
-
IconTitleMap["JCBIcon"] = "JCB";
|
|
480
|
-
IconTitleMap["LogoIcon"] = "Logo";
|
|
481
|
-
IconTitleMap["LoupeIcon"] = "\u041B\u0443\u043F\u0430";
|
|
482
|
-
IconTitleMap["MapMarkerClusterIcon"] = "\u041C\u0430\u0440\u043A\u0435\u0440 \u043A\u0430\u0440\u0442\u044B";
|
|
483
|
-
IconTitleMap["MapMarkerSingleIcon"] = "\u041C\u0430\u0440\u043A\u0435\u0440 \u043A\u0430\u0440\u0442\u044B \u0420\u0421\u0425\u0411";
|
|
484
|
-
IconTitleMap["MasterCardIcon"] = "MasterCard";
|
|
485
|
-
IconTitleMap["MinusIcon"] = "\u041C\u0438\u043D\u0443\u0441";
|
|
486
|
-
IconTitleMap["MirIcon"] = "\u041C\u0418\u0420";
|
|
487
|
-
IconTitleMap["MoneyIcon"] = "\u0414\u0435\u043D\u044C\u0433\u0438";
|
|
488
|
-
IconTitleMap["MoneyInsuranceIcon"] = "\u0414\u0435\u043D\u0435\u0436\u043D\u043E\u0435 \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u043D\u0438\u0435";
|
|
489
|
-
IconTitleMap["MoneysIcon"] = "\u041A\u0443\u043F\u044E\u0440\u044B";
|
|
490
|
-
IconTitleMap["MonitorMobileIcon"] = "\u041C\u043E\u043D\u0438\u0442\u043E\u0440 \u0438 \u043C\u043E\u0431\u0438\u043B\u044C\u043D\u044B\u0439";
|
|
491
|
-
IconTitleMap["NewDocIcon"] = "\u041D\u043E\u0432\u044B\u0439 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442";
|
|
492
|
-
IconTitleMap["OfficeIcon"] = "\u041E\u0444\u0438\u0441";
|
|
493
|
-
IconTitleMap["OkIcon"] = "\u041B\u043E\u0433\u043E \u00AB\u041E\u0434\u043D\u043E\u043A\u043B\u0430\u0441\u0441\u043D\u0438\u043A\u0438\u00BB";
|
|
494
|
-
IconTitleMap["PackA4Icon"] = "\u041F\u0430\u0447\u043A\u0430 \u0431\u0443\u043C\u0430\u0433\u0438 \u04104";
|
|
495
|
-
IconTitleMap["PassSendIcon"] = "\u0411\u0438\u0437\u043D\u0435\u0441";
|
|
496
|
-
IconTitleMap["PercentageRoundIcon"] = "\u041F\u0440\u043E\u0446\u0435\u043D\u0442\u044B (\u043A\u0440\u0443\u0433.)";
|
|
497
|
-
IconTitleMap["PercentageSquareIcon"] = "\u041F\u0440\u043E\u0446\u0435\u043D\u0442\u044B";
|
|
498
|
-
IconTitleMap["PersonalCardIcon"] = "\u041F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u0430\u044F \u043A\u0430\u0440\u0442\u0430";
|
|
499
|
-
IconTitleMap["PlayMarketIcon"] = "\u041B\u043E\u0433\u043E \u00ABPlayMarket\u00BB";
|
|
500
|
-
IconTitleMap["PlusIcon"] = "\u041F\u043B\u044E\u0441";
|
|
501
|
-
IconTitleMap["PowerIcon"] = "\u0429\u0438\u0442";
|
|
502
|
-
IconTitleMap["Profile2UserIcon"] = "\u041F\u0440\u043E\u0444\u0438\u043B\u044C, 2 \u043F\u0435\u0440\u0441\u043E\u043D\u044B";
|
|
503
|
-
IconTitleMap["ProfileIcon"] = "\u041F\u0440\u043E\u0444\u0438\u043B\u044C";
|
|
504
|
-
IconTitleMap["PumpkinIcon"] = "\u0422\u044B\u043A\u0432\u0430";
|
|
505
|
-
IconTitleMap["RoundRubleIcon"] = "\u0420\u0443\u0431\u043B\u044C (\u043A\u0440\u0443\u0433.)";
|
|
506
|
-
IconTitleMap["SafeIcon"] = "\u0421\u0435\u0439\u0444";
|
|
507
|
-
IconTitleMap["ShieldTickIcon"] = "\u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C";
|
|
508
|
-
IconTitleMap["SignDocsIcon"] = "\u041F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u043D\u044B\u0435 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B";
|
|
509
|
-
IconTitleMap["SmallClockIcon"] = "\u041C\u0430\u043B\u0435\u043D\u044C\u043A\u0438\u0435 \u0447\u0430\u0441\u044B";
|
|
510
|
-
IconTitleMap["SoundIcon"] = "\u0417\u0432\u0443\u043A";
|
|
511
|
-
IconTitleMap["StrongBoxIcon"] = "\u042F\u0449\u0438\u043A \u0441 \u0437\u0430\u043C\u043E\u0447\u043D\u043E\u0439 \u0441\u043A\u0432\u0430\u0436\u0438\u043D\u043E\u0439";
|
|
512
|
-
IconTitleMap["TelegramIcon"] = "\u041B\u043E\u0433\u043E \u00ABTelegram\u00BB";
|
|
513
|
-
IconTitleMap["UnionPayIcon"] = "UnionPay";
|
|
514
|
-
IconTitleMap["UserSquareIcon"] = "\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u0432 \u0440\u0430\u043C\u043A\u0435";
|
|
515
|
-
IconTitleMap["UserTickIcon"] = "\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C";
|
|
516
|
-
IconTitleMap["VisaIcon"] = "Visa";
|
|
517
|
-
IconTitleMap["VKIcon"] = "\u041B\u043E\u0433\u043E \u00ABVK\u00BB";
|
|
518
|
-
IconTitleMap["WalletAdd2Icon"] = "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u043A\u0430\u0440\u0442\u044B";
|
|
519
|
-
IconTitleMap["WalletAddIcon"] = "\u041A\u043E\u0448\u0435\u043B\u0451\u043A \u0441 \u043F\u043B\u044E\u0441\u043E\u043C";
|
|
520
|
-
IconTitleMap["WalletIcon"] = "\u041A\u043E\u0448\u0435\u043B\u0451\u043A";
|
|
521
|
-
IconTitleMap["WalletWithMoneyIcon"] = "\u041A\u043E\u0448\u0435\u043B\u0451\u043A \u0441 \u0434\u0435\u043D\u044C\u0433\u0430\u043C\u0438";
|
|
522
|
-
IconTitleMap["WateringCanIcon"] = "\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0434\u0443\u043A\u0442";
|
|
523
|
-
})(IconTitleMap || (IconTitleMap = {}));
|
|
524
|
-
|
|
525
|
-
const svgUseStyleMap = {
|
|
526
|
-
normal: 'text-primary-main',
|
|
527
|
-
black: 'text-black',
|
|
528
|
-
white: 'text-black',
|
|
529
|
-
};
|
|
530
|
-
const Icon = JSX(({ className = '', imageClassName = '', name = '', alt = `Иконка ${IconTitleMap[name] || name}`, title = alt, iconVersion = 'normal', asSVG, ...imgProps }) => {
|
|
531
|
-
const href = `${projectSettings.CDN || ''}icons/${name}.svg`;
|
|
532
|
-
if (asSVG && IconInverseMap[name]) {
|
|
533
|
-
return (jsx(Background, { className: className, children: jsxs("svg", { className: [
|
|
534
|
-
getSvgSize(className, imgProps.width),
|
|
535
|
-
svgUseStyleMap[iconVersion],
|
|
536
|
-
imageClassName,
|
|
537
|
-
getInvertStyle(name, iconVersion),
|
|
538
|
-
].join(' '), ...imgProps, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }) }));
|
|
539
|
-
}
|
|
540
|
-
return (jsx("img", { className: className, src: href, alt: alt, title: title, ...imgProps, "aria-hidden": "true" }));
|
|
541
|
-
});
|
|
542
|
-
const getInvertStyle = (name, iconVersion) => iconVersion === 'white' && IconInverseMap[name] ? 'invert' : '';
|
|
543
|
-
const getSvgSize = (className, width) => width ? `width: ${width}px ` : 'w-full h-full';
|
|
544
|
-
const Background = JSX(({ className, children }) => className ? jsx("div", { className: className, children: children }) : children);
|
|
545
|
-
|
|
546
|
-
function getIconVersion(image) {
|
|
547
|
-
return typeof image === 'string' ? 'normal' : image.iconVersion || 'normal';
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
const sourcesComparator = (a, b) => {
|
|
551
|
-
if (a.media && b.media) {
|
|
552
|
-
return a.media - b.media;
|
|
553
|
-
}
|
|
554
|
-
return 0;
|
|
555
|
-
};
|
|
556
|
-
const ImgAsPicture = JSX(({ className = '', image, imageClassName = '', isMobile = false }) => {
|
|
557
|
-
if (!image || (!image?.sources && !image?.src)) {
|
|
558
|
-
return null;
|
|
559
|
-
}
|
|
560
|
-
const pictureStyles = isMobile ? 'flex' : 'flex-none';
|
|
561
|
-
return (jsxs("picture", { className: `${pictureStyles} ${className}`, children: [image?.sources?.length
|
|
562
|
-
? image.sources
|
|
563
|
-
.sort(sourcesComparator)
|
|
564
|
-
.map(({ src, format, media }, index) => (jsx("source", { srcSet: src, type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '', ...image.size }, `${index}_${src}`)))
|
|
565
|
-
: null, renderImg(image, imageClassName, isMobile)] }));
|
|
566
|
-
});
|
|
567
|
-
const renderImg = (image, imageClassName = '', isMobile = false) => {
|
|
568
|
-
const style = {
|
|
569
|
-
width: image.size?.width ? `${image.size?.width}px` : '100%',
|
|
570
|
-
height: image.size?.height ? `${image.size?.height}px` : '100%',
|
|
571
|
-
};
|
|
572
|
-
const title = image.title || '';
|
|
573
|
-
const alt = image.alt || image.title;
|
|
574
|
-
const imgStyle = isMobile ? 'm-auto' : 'm-0';
|
|
575
|
-
return (jsx("img", { src: image.src, className: `${imgStyle} ${imageClassName}`, alt: alt, title: title, style: style, ...image.size }));
|
|
576
|
-
};
|
|
577
|
-
function formatToMimeType(format) {
|
|
578
|
-
return format ? `image/${String(format)}` : undefined;
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
const ImgInner = JSX(({ className = '', image, imageClassName = '', isMobile, ...iconProps }) => {
|
|
582
|
-
if (!image) {
|
|
583
|
-
return null;
|
|
584
|
-
}
|
|
585
|
-
// backwards compatibility with existing icons in usage
|
|
586
|
-
const icon = typeof image === 'string' ? image : image.icon;
|
|
587
|
-
if (icon || icon === '') {
|
|
588
|
-
return icon.length ? (jsx(Icon, { className: className, imageClassName: imageClassName, iconVersion: getIconVersion(image), name: icon, ...iconProps })) : null;
|
|
589
|
-
}
|
|
590
|
-
return (jsx(ImgAsPicture, { className: className, imageClassName: imageClassName, image: image, isMobile: isMobile }));
|
|
591
|
-
});
|
|
592
|
-
|
|
593
|
-
const Img = JSX(({ className = '', imageClassName, image, ...iconProps }) => {
|
|
594
|
-
return (jsx(ImgInner, { className: className, imageClassName: imageClassName, image: image, ...iconProps }));
|
|
595
|
-
});
|
|
596
|
-
|
|
597
349
|
function style2className(style) {
|
|
598
350
|
return style ? style.filter(Boolean).join(' ') : '';
|
|
599
351
|
}
|
|
@@ -657,6 +409,15 @@
|
|
|
657
409
|
as: 'h4',
|
|
658
410
|
},
|
|
659
411
|
};
|
|
412
|
+
const HEADLINE_SMALL_VERSION = {
|
|
413
|
+
XL_L: 'text-xl-light',
|
|
414
|
+
XL_R: 'text-xl',
|
|
415
|
+
L_L: 'text-l-light',
|
|
416
|
+
L_R: 'text-l',
|
|
417
|
+
M: 'text-m-light',
|
|
418
|
+
S: 'text-s-light',
|
|
419
|
+
XS: 'text-xs-light',
|
|
420
|
+
};
|
|
660
421
|
|
|
661
422
|
const Headline = JSX(({ bgColorHeadline = 'transparent', align = 'center', className = '', title, description, headlineVersion = 'XL', as, ...rest }) => {
|
|
662
423
|
const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
|
|
@@ -664,9 +425,77 @@
|
|
|
664
425
|
return (jsxs(BlockWrapper, { className: `font-sans flex flex-col p-[50px] ${SIZE_MAPS.gap} ${STYLE_MAPS.background} ${className}`, ...rest, children: [title ? (jsx(Heading, { headingType: SIZE_MAPS?.headingType, as: as || SIZE_MAPS?.as, className: `whitespace-pre-wrap ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, title: title })) : null, description ? (jsx(Description, { className: `${SIZE_MAPS.descriptionFont} ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, description: description })) : null] }));
|
|
665
426
|
});
|
|
666
427
|
|
|
428
|
+
const svgUseStyleMap = {
|
|
429
|
+
normal: 'text-primary-main',
|
|
430
|
+
black: 'text-black',
|
|
431
|
+
white: 'text-black',
|
|
432
|
+
};
|
|
433
|
+
const Icon = JSX(({ className = '', imageClassName = '', name = '', alt = `Иконка ${name}`, title = alt, iconVersion = 'normal', asSVG, ...imgProps }) => {
|
|
434
|
+
const href = `${projectSettings.CDN || ''}icons/${name}.svg`;
|
|
435
|
+
if (asSVG) {
|
|
436
|
+
return (jsx(Background, { className: className, children: jsxs("svg", { className: [
|
|
437
|
+
getSvgSize(className, imgProps.width),
|
|
438
|
+
svgUseStyleMap[iconVersion],
|
|
439
|
+
imageClassName,
|
|
440
|
+
getInvertStyle(iconVersion),
|
|
441
|
+
].join(' '), ...imgProps, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }) }));
|
|
442
|
+
}
|
|
443
|
+
return (jsx("img", { className: className, src: href, alt: alt, title: title, ...imgProps, "aria-hidden": "true" }));
|
|
444
|
+
});
|
|
445
|
+
const getInvertStyle = (iconVersion) => iconVersion === 'white' ? 'invert' : '';
|
|
446
|
+
const getSvgSize = (className, width) => width ? `width: ${width}px ` : 'w-full h-full';
|
|
447
|
+
const Background = JSX(({ className, children }) => className ? jsx("div", { className: className, children: children }) : children);
|
|
448
|
+
|
|
449
|
+
function getIconVersion$1(image) {
|
|
450
|
+
return typeof image === 'string' ? 'normal' : image.iconVersion || 'normal';
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
const sourcesComparator = (a, b) => {
|
|
454
|
+
if (a.media && b.media) {
|
|
455
|
+
return a.media - b.media;
|
|
456
|
+
}
|
|
457
|
+
return 0;
|
|
458
|
+
};
|
|
459
|
+
const ImgAsPicture = JSX(({ className = '', image, imageClassName = '', isMobile = false }) => {
|
|
460
|
+
if (!image || (!image?.sources && !image?.src)) {
|
|
461
|
+
return null;
|
|
462
|
+
}
|
|
463
|
+
const pictureStyles = isMobile ? 'flex' : 'flex-none';
|
|
464
|
+
return (jsxs("picture", { className: `${pictureStyles} ${className}`, children: [image?.sources?.length
|
|
465
|
+
? image.sources
|
|
466
|
+
.sort(sourcesComparator)
|
|
467
|
+
.map(({ src, format, media }, index) => (jsx("source", { srcSet: src, type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '', ...image.size }, `${index}_${src}`)))
|
|
468
|
+
: null, renderImg(image, imageClassName, isMobile)] }));
|
|
469
|
+
});
|
|
470
|
+
const renderImg = (image, imageClassName = '', isMobile = false) => {
|
|
471
|
+
const style = {
|
|
472
|
+
width: image.size?.width ? `${image.size?.width}px` : '100%',
|
|
473
|
+
height: image.size?.height ? `${image.size?.height}px` : '100%',
|
|
474
|
+
};
|
|
475
|
+
const title = image.title || '';
|
|
476
|
+
const alt = image.alt || image.title;
|
|
477
|
+
const imgStyle = isMobile ? 'm-auto' : 'm-0';
|
|
478
|
+
return (jsx("img", { src: image.src, className: `${imgStyle} ${imageClassName}`, alt: alt, title: title, style: style, ...image.size }));
|
|
479
|
+
};
|
|
480
|
+
function formatToMimeType(format) {
|
|
481
|
+
return format ? `image/${String(format)}` : undefined;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
const ImgInner = JSX(({ className = '', image, imageClassName = '', isMobile, ...iconProps }) => {
|
|
485
|
+
if (!image) {
|
|
486
|
+
return null;
|
|
487
|
+
}
|
|
488
|
+
// backwards compatibility with existing icons in usage
|
|
489
|
+
const icon = typeof image === 'string' ? image : image.icon;
|
|
490
|
+
if (icon || icon === '') {
|
|
491
|
+
return icon.length ? (jsx(Icon, { className: className, imageClassName: imageClassName, iconVersion: getIconVersion$1(image), name: icon, ...iconProps })) : null;
|
|
492
|
+
}
|
|
493
|
+
return (jsx(ImgAsPicture, { className: className, imageClassName: imageClassName, image: image, isMobile: isMobile }));
|
|
494
|
+
});
|
|
495
|
+
|
|
667
496
|
const LinkDocsListItemBase = JSX(({ className, iconClassName, textClassName, suffixClassName, doc, icon }) => {
|
|
668
497
|
const { text, fileSize, ...linkProps } = doc;
|
|
669
|
-
return (jsxs("a", { className: className, role: "link", ...linkProps, children: [icon ? (jsx(
|
|
498
|
+
return (jsxs("a", { className: className, role: "link", ...linkProps, children: [icon ? (jsx(ImgInner, { 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] }));
|
|
670
499
|
});
|
|
671
500
|
const formatSuffix = (ext, fileSize) => {
|
|
672
501
|
const prefix = ext || fileSize ? ',' : '';
|
|
@@ -713,7 +542,8 @@
|
|
|
713
542
|
const { className = '', icon, label, description, version = 'primary', benefitsVersion = 'normal', } = props;
|
|
714
543
|
const isIconWhite = benefitsVersion === 'white' || version === 'secondary';
|
|
715
544
|
const listItemAlign = description ? 'items-start' : 'items-center';
|
|
716
|
-
|
|
545
|
+
const iconVersion = getIconVersion(icon, isIconWhite);
|
|
546
|
+
return (jsxs("div", { className: `flex gap-5 ${listItemAlign} ${className}`, children: [icon ? (jsx("div", { className: renderBenefitIconBgStyle(version, benefitsVersion), children: jsx(ImgInner, { 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] })] }));
|
|
717
547
|
});
|
|
718
548
|
function renderBenefitIconBgStyle(version, benefitsVersion) {
|
|
719
549
|
let bgColorStyle = 'bg-primary-main text-black';
|
|
@@ -725,11 +555,12 @@
|
|
|
725
555
|
}
|
|
726
556
|
return `w-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${bgColorStyle}`;
|
|
727
557
|
}
|
|
558
|
+
const getIconVersion = (icon, isIconWhite) => icon?.iconVersion || isIconWhite ? 'white' : 'normal';
|
|
728
559
|
|
|
729
560
|
const addSpacesBetweenNumbers = (number) => new Intl.NumberFormat('ru-RU', { maximumSignificantDigits: 3 }).format(number);
|
|
730
561
|
|
|
731
562
|
const PictureText = JSX(({ className = '', context, title, description, image, benefits, version = 'primary', sum, monthLimit, directionRight = false, ...rest }) => {
|
|
732
|
-
return (jsxs(BlockWrapper, { className: `relative font-sans py-12 px-24 ${VersionStyleMap[version]} ${className}`, context: context, ...rest, children: [jsx(Headline, { context: context, className: "!p-0", title: title, description: description, headlineVersion: "M", bgColorHeadline: version, align: "center" }), jsxs("div", { className: 'flex justify-center gap-[122px] mt-[30px]', children: [image?.src ? jsx(
|
|
563
|
+
return (jsxs(BlockWrapper, { className: `relative font-sans py-12 px-24 ${VersionStyleMap[version]} ${className}`, context: context, ...rest, children: [jsx(Headline, { context: context, className: "!p-0", title: title, description: description, headlineVersion: "M", bgColorHeadline: version, align: "center" }), jsxs("div", { className: 'flex justify-center gap-[122px] mt-[30px]', children: [image?.src ? jsx(ImgInner, { className: directionRight ? 'order-2' : '', image: image }) : null, jsxs("div", { className: "w-[558px] m-auto", children: [benefits?.length ? (jsx("div", { className: "flex flex-col gap-4", children: benefits.map(renderBenefit$2(version)) })) : null, renderInsuranceSumMonth(sum, monthLimit)] })] })] }));
|
|
733
564
|
});
|
|
734
565
|
const renderBenefit$2 = (version) => (benefit, i) => (jsx(BenefitItem, { icon: benefit.icon, label: benefit.label, description: benefit.description, version: version }, String(i)));
|
|
735
566
|
function renderInsuranceSumMonth(sum, monthLimit) {
|
|
@@ -822,9 +653,30 @@
|
|
|
822
653
|
return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
|
|
823
654
|
}
|
|
824
655
|
|
|
656
|
+
const buttonStyleMap = {
|
|
657
|
+
primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
|
|
658
|
+
secondary: 'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
|
|
659
|
+
white: 'text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main',
|
|
660
|
+
link: '',
|
|
661
|
+
};
|
|
662
|
+
const DisabledStyle = 'bg-main-divider text-main-disabled';
|
|
663
|
+
const buttonDisabledStyleMap = {
|
|
664
|
+
primary: DisabledStyle,
|
|
665
|
+
secondary: DisabledStyle,
|
|
666
|
+
white: DisabledStyle,
|
|
667
|
+
link: '',
|
|
668
|
+
};
|
|
669
|
+
const buttonStyle = 'text-center font-sans select-none';
|
|
670
|
+
const iconStyleMap = {
|
|
671
|
+
primary: 'group-hover:brightness-0 group-hover:invert',
|
|
672
|
+
secondary: 'group-hover:brightness-0 group-hover:invert',
|
|
673
|
+
white: 'group-hover:brightness-0 group-hover:invert',
|
|
674
|
+
link: '',
|
|
675
|
+
};
|
|
676
|
+
|
|
825
677
|
const ButtonInner = JSX((props) => {
|
|
826
|
-
const { text, aboveText, appendLeft, appendRight } = props;
|
|
827
|
-
return (jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? 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 ? appendRight : null] }));
|
|
678
|
+
const { text, aboveText, appendLeft, appendRight, version = 'primary' } = props;
|
|
679
|
+
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] }));
|
|
828
680
|
});
|
|
829
681
|
const getButtonStyle = (props) => {
|
|
830
682
|
const { className = '', version, aboveText, rounded } = props;
|
|
@@ -841,47 +693,28 @@
|
|
|
841
693
|
};
|
|
842
694
|
const isWithText = ({ text, aboveText, appendLeft }) => Boolean(text || aboveText || !appendLeft);
|
|
843
695
|
|
|
844
|
-
const
|
|
845
|
-
|
|
846
|
-
secondary: 'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
|
|
847
|
-
white: 'text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main',
|
|
848
|
-
link: '',
|
|
849
|
-
};
|
|
850
|
-
const DisabledStyle = 'bg-main-divider text-main-disabled';
|
|
851
|
-
const buttonDisabledStyleMap = {
|
|
852
|
-
primary: DisabledStyle,
|
|
853
|
-
secondary: DisabledStyle,
|
|
854
|
-
white: DisabledStyle,
|
|
855
|
-
link: '',
|
|
856
|
-
};
|
|
857
|
-
const buttonStyle = 'text-center font-sans select-none';
|
|
858
|
-
|
|
859
|
-
const getRegularButtonClasses = ({ className, rounded, version, }) => [
|
|
696
|
+
const getDisabledButtonClasses = ({ className, rounded, version, }) => [
|
|
697
|
+
'inline-block',
|
|
860
698
|
buttonStyle,
|
|
861
|
-
|
|
862
|
-
version ? buttonStyleMap[version] : '',
|
|
699
|
+
version ? buttonDisabledStyleMap[version] : '',
|
|
863
700
|
rounded ? 'rounded-full' : 'rounded-md',
|
|
864
701
|
className,
|
|
865
702
|
].join(' ');
|
|
866
703
|
|
|
867
|
-
const
|
|
868
|
-
'inline-block',
|
|
704
|
+
const getRegularButtonClasses = ({ className, rounded, version, }) => [
|
|
869
705
|
buttonStyle,
|
|
870
|
-
|
|
706
|
+
'border border-transparent inline-block cursor-pointer no-underline focus:border-primary-focus focus:border',
|
|
707
|
+
version ? buttonStyleMap[version] : '',
|
|
871
708
|
rounded ? 'rounded-full' : 'rounded-md',
|
|
872
709
|
className,
|
|
873
710
|
].join(' ');
|
|
874
711
|
|
|
875
|
-
const Button = JSX((
|
|
876
|
-
const
|
|
877
|
-
|
|
878
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
879
|
-
const { asSVG, iconRight, icon, ...usedProps } = rest;
|
|
880
|
-
const buttonInner = children ?? (jsx(ButtonInner, { text: text, aboveText: aboveText, appendLeft: appendLeft, appendRight: appendRight, rounded: rounded }));
|
|
881
|
-
return disabled ? (jsx(DisabledButton, { rounded: rounded, ...usedProps, children: buttonInner })) : (jsx(RegularButton, { rounded: rounded, ...usedProps, children: buttonInner }));
|
|
712
|
+
const Button = JSX(({ aboveText, appendLeft, appendRight, ariaLabel, children, className, disabled, href, onClick, rel, rounded, target, text, version, }) => {
|
|
713
|
+
const buttonInner = children ?? (jsx(ButtonInner, { aboveText: aboveText, appendLeft: appendLeft, appendRight: appendRight, rounded: rounded, text: text, version: version }));
|
|
714
|
+
return disabled ? (jsx(DisabledButton, { ariaLabel: ariaLabel, className: className, rounded: rounded, version: version, children: buttonInner })) : (jsx(RegularButton, { ariaLabel: ariaLabel, className: className, href: href, onClick: onClick, rel: rel, rounded: rounded, target: target, version: version, children: buttonInner }));
|
|
882
715
|
});
|
|
883
|
-
const RegularButton = JSX(({ className = '', ariaLabel, version, rounded, href, target, children, onClick,
|
|
884
|
-
return (jsx("a", { className: getRegularButtonClasses({ className, version, rounded }), href: href, target: target, onClick: onClick, "aria-label": ariaLabel, role: href ? 'link' : 'button',
|
|
716
|
+
const RegularButton = JSX(({ className = '', ariaLabel, version, rounded, href, target, children, onClick, rel }) => {
|
|
717
|
+
return (jsx("a", { className: getRegularButtonClasses({ className, version, rounded }), href: href, target: target, onClick: onClick, "aria-label": ariaLabel, role: href ? 'link' : 'button', rel: rel, children: children }));
|
|
885
718
|
});
|
|
886
719
|
const DisabledButton = JSX(({ className, children, ariaLabel, version, rounded }) => {
|
|
887
720
|
return (jsx("div", { role: "button", "aria-disabled": "true", "aria-label": ariaLabel, tabIndex: -1, className: getDisabledButtonClasses({ className, rounded, version }), children: children }));
|
|
@@ -890,61 +723,48 @@
|
|
|
890
723
|
const ButtonSection = JSX(({ context, className = '', buttons }) => {
|
|
891
724
|
const { handlerDecorator } = context;
|
|
892
725
|
const router = context.useRouter();
|
|
893
|
-
return buttons && buttons?.length ? (jsx("div", { className: className, children: buttons.map((button, index) =>
|
|
726
|
+
return buttons && buttons?.length ? (jsx("div", { className: className, children: buttons.map((button, index) => (jsx(ButtonSectionItem, { button: button, handlerDecorator: handlerDecorator, router: router }, String(index)))) })) : null;
|
|
727
|
+
});
|
|
728
|
+
const ButtonSectionItem = JSX(({ router, handlerDecorator, button }) => {
|
|
729
|
+
const buttonProps = useLink({ router, handlerDecorator }, button);
|
|
730
|
+
return jsx(Button, { ...button, ...buttonProps });
|
|
894
731
|
});
|
|
895
|
-
function renderButton$2({ icon, iconRight, version = 'primary', ...button }, i) {
|
|
896
|
-
if (!button?.text) {
|
|
897
|
-
return null;
|
|
898
|
-
}
|
|
899
|
-
const imgStyle = version === 'primary' ? 'group-hover:text-black' : 'group-hover:text-white';
|
|
900
|
-
const iconVersion = version === 'secondary' ? 'normal' : 'white';
|
|
901
|
-
return icon ? (jsx(Button, { appendLeft: jsx(Img, { imageClassName: imgStyle, image: { ...icon, iconVersion: iconVersion }, width: "24", height: "24", asSVG: true }), appendRight: jsx(Img, { imageClassName: imgStyle, image: { ...iconRight, iconVersion: iconVersion }, width: "24", height: "24", asSVG: true }), version: version, ...button }, String(i))) : (jsx(Button, { version: version, ...button }, String(i)));
|
|
902
|
-
}
|
|
903
732
|
|
|
904
|
-
const LIST_STYLE_CLASSES = {
|
|
905
|
-
primary: 'rounded-full inline-block mr-3 mt-2',
|
|
906
|
-
secondary: 'rounded-full inline-block mr-3 mt-2',
|
|
907
|
-
gray: 'rounded-full inline-block mr-3 mt-2',
|
|
908
|
-
tile: 'rounded-full inline-block mr-4 mt-3',
|
|
909
|
-
'tile-white': 'rounded-full inline-block mr-4 mt-3',
|
|
910
|
-
};
|
|
911
733
|
const LIST_DOT_STYLE_MAP = {
|
|
912
734
|
primary: 'bg-primary-text',
|
|
913
735
|
secondary: 'bg-white',
|
|
914
736
|
gray: 'bg-secondary-text',
|
|
915
|
-
tile: 'bg-black',
|
|
916
|
-
'tile-white': 'bg-white',
|
|
917
|
-
};
|
|
918
|
-
const ListItem = JSX(({ className = '', isDotted = true, children, version = 'primary' }) => {
|
|
919
|
-
return (jsxs("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted ? jsx("div", { className: getListStyle(version) }) : null, jsx("span", { children: children })] }));
|
|
920
|
-
});
|
|
921
|
-
const getListStyle = (version) => {
|
|
922
|
-
const size = {
|
|
923
|
-
primary: 'w-2 h-2 min-w-2 min-h-2',
|
|
924
|
-
secondary: 'w-2 h-2 min-w-2 min-h-2',
|
|
925
|
-
gray: 'w-1.5 h-1.5 min-w-1.5 min-h-1.5',
|
|
926
|
-
tile: 'w-[7px] h-[7px] min-w-[7px] min-h-[7px]',
|
|
927
|
-
'tile-white': 'w-[7px] h-[7px] min-w-[7px] min-h-[7px]',
|
|
928
|
-
};
|
|
929
|
-
return `${LIST_STYLE_CLASSES[version]} ${LIST_DOT_STYLE_MAP[version]} ${size[version]}`;
|
|
930
737
|
};
|
|
738
|
+
const DOT_SIZE_MAP = {
|
|
739
|
+
L: 'w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4 mt-3',
|
|
740
|
+
M: 'w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3 mt-3',
|
|
741
|
+
S: 'w-1 h-1 min-w-1 min-h-1 mr-2 mt-2.5',
|
|
742
|
+
};
|
|
743
|
+
const ListItem = JSX(({ className = '', isDotted = true, children, version = 'primary', size = 'M' }) => {
|
|
744
|
+
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 })] }));
|
|
745
|
+
});
|
|
931
746
|
|
|
932
747
|
const TEXT_STYLE_MAP = {
|
|
933
748
|
primary: 'text-primary-text',
|
|
934
749
|
secondary: 'text-white',
|
|
935
750
|
gray: 'text-secondary-text',
|
|
936
|
-
tile: 'text-primary-text',
|
|
937
|
-
'tile-white': 'text-white',
|
|
938
751
|
};
|
|
939
752
|
const TEXT_SIZE_MAP = {
|
|
940
|
-
|
|
941
|
-
|
|
753
|
+
S: 'text-l-light',
|
|
754
|
+
M: 'text-h6',
|
|
755
|
+
L: 'text-h5',
|
|
756
|
+
};
|
|
757
|
+
const ITEM_INDENT_MAP = {
|
|
758
|
+
S: 'ml-2',
|
|
759
|
+
M: 'ml-3',
|
|
760
|
+
L: 'ml-4',
|
|
942
761
|
};
|
|
943
762
|
const List = JSX((props) => {
|
|
944
|
-
const { className = '',
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
763
|
+
const { className = '', hasIndent, isDotted, itemClassName = '', items, listItemSize = 'M', version = 'primary', } = props;
|
|
764
|
+
if (!items?.length) {
|
|
765
|
+
return null;
|
|
766
|
+
}
|
|
767
|
+
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)))) }));
|
|
948
768
|
});
|
|
949
769
|
|
|
950
770
|
const BaseTile = JSX(({ className = '', title = '', children, buttons, image }) => {
|
|
@@ -956,7 +776,7 @@
|
|
|
956
776
|
};
|
|
957
777
|
|
|
958
778
|
const ProductBlockInner = JSX(({ className = '', context, title, headlineVersion = 'L', description, benefits, benefitsVersion = 'normal', buttons, image, items, version = 'primary', isDotted = true, textBlockClassName = '', }) => {
|
|
959
|
-
return (jsxs("div", { className: `flex grow justify-between items-stretch h-full ${className}`, children: [jsxs("div", { className: `flex flex-col ${textBlockClassName}`, children: [jsx(Headline, { context: context, title: title, description: description, className: `!p-0 max-w-[600px]`, bgColorHeadline: version, headlineVersion: headlineVersion, align: "left" }), jsxs(BaseTile, { context: context, buttons: getButtons(context, buttons), children: [benefits?.filter((_) => _.label)?.length ? (jsx("div", { className: "flex gap-6 mt-6", children: benefits.map(renderBenefit$1(version, benefitsVersion)) })) : null, items?.length ? (jsx(List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", version: version, isDotted: isDotted })) : null] })] }), image?.src && jsx(
|
|
779
|
+
return (jsxs("div", { className: `flex grow justify-between items-stretch h-full ${className}`, children: [jsxs("div", { className: `flex flex-col ${textBlockClassName}`, children: [jsx(Headline, { context: context, title: title, description: description, className: `!p-0 max-w-[600px]`, bgColorHeadline: version, headlineVersion: headlineVersion, align: "left" }), jsxs(BaseTile, { context: context, buttons: getButtons(context, buttons), children: [benefits?.filter((_) => _.label)?.length ? (jsx("div", { className: "flex gap-6 mt-6", children: benefits.map(renderBenefit$1(version, benefitsVersion)) })) : null, items?.length ? (jsx(List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", version: version, isDotted: isDotted })) : null] })] }), image?.src && jsx(ImgInner, { className: "mt-[-50px]", image: image })] }));
|
|
960
780
|
});
|
|
961
781
|
const getButtons = (context, buttons) => {
|
|
962
782
|
return buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex gap-4" })) : null;
|
|
@@ -966,7 +786,7 @@
|
|
|
966
786
|
const { text, href, target, onClick } = button;
|
|
967
787
|
const iconVersion = version === 'primary' ? 'white' : 'black';
|
|
968
788
|
const backwardIcon = button?.icon || { icon: 'ArrowLeftIcon' };
|
|
969
|
-
return (jsxs("div", { className: `flex items-center cursor-pointer ${className}`, onClick: onClick, children: [jsx(Button, { version: version, rounded: true, className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3", ariaLabel: text, href: href, target: target, children: jsx(
|
|
789
|
+
return (jsxs("div", { className: `flex items-center cursor-pointer ${className}`, onClick: onClick, children: [jsx(Button, { version: version, rounded: true, className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3", ariaLabel: text, href: href, target: target, children: jsx(ImgInner, { className: "w-4 h-4", image: { ...backwardIcon, iconVersion }, asSVG: true }) }), text ? jsx("span", { className: "text-m", children: text }) : null] }));
|
|
970
790
|
}
|
|
971
791
|
|
|
972
792
|
const breadcrumbsStyleMap = {
|
|
@@ -1004,13 +824,13 @@
|
|
|
1004
824
|
};
|
|
1005
825
|
const TextBlock = JSX(({ title, description, blockVersion = 'primary', iconVersion, image, className, ...rest }) => {
|
|
1006
826
|
const textBlockStyleMap = textBlockStyleMaps[blockVersion];
|
|
1007
|
-
return (jsxs(BlockWrapper, { className: `font-sans px-9 py-4 flex ${textBlockStyleMap.background} ${className || ''}`, ...rest, 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] })] }));
|
|
827
|
+
return (jsxs(BlockWrapper, { className: `font-sans px-9 py-4 flex ${textBlockStyleMap.background} ${className || ''}`, ...rest, children: [iconVersion === 'small' ? renderIcon(textBlockStyleMap.icon) : null, iconVersion === 'big' ? renderImage$1(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] })] }));
|
|
1008
828
|
});
|
|
1009
829
|
function renderIcon(className) {
|
|
1010
830
|
return (jsx("div", { className: "pt-1.5 pl-1 pr-4", children: jsx("div", { className: `rounded-full h-4 w-4 text-center text-xs-light ${className}`, children: "i" }) }));
|
|
1011
831
|
}
|
|
1012
|
-
function renderImage(image) {
|
|
1013
|
-
return image?.src ? jsx(
|
|
832
|
+
function renderImage$1(image) {
|
|
833
|
+
return image?.src ? jsx(ImgInner, { className: "pt-0.5 pr-3", image: image }) : null;
|
|
1014
834
|
}
|
|
1015
835
|
|
|
1016
836
|
const getColSpan = (className) => {
|
|
@@ -1048,18 +868,17 @@
|
|
|
1048
868
|
const Tile = JSX((props) => {
|
|
1049
869
|
const { context, title, headingType = 'h3', description, items, children, buttons, image, isDotted = true, listItemSize = 'M', className = '', version = 'primary', ...rest } = props;
|
|
1050
870
|
const headingClassName = version === 'primary' ? 'text-primary-text' : '';
|
|
1051
|
-
return (jsx(BlockWrapper, { context: context, className: `overflow-hidden font-sans p-9 pr-3 box-border ${className} ${VersionStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, ...rest, children: jsxs(BaseTile, { context: context, title: title ? (jsx(Heading, { headingType: headingType, as: "h2", title: title, className: `whitespace-pre-wrap max-w-[600px] ${headingClassName}` })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons.map((button) => ({ ...button, className: 'w-[158px]' })), className: "flex mt-8 gap-3" })) : null, image: image?.src ? jsx(
|
|
871
|
+
return (jsx(BlockWrapper, { context: context, className: `overflow-hidden font-sans p-9 pr-3 box-border ${className} ${VersionStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, ...rest, children: jsxs(BaseTile, { context: context, title: title ? (jsx(Heading, { headingType: headingType, as: "h2", title: title, className: `whitespace-pre-wrap max-w-[600px] ${headingClassName}` })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons.map((button) => ({ ...button, className: 'w-[158px]' })), className: "flex mt-8 gap-3" })) : null, image: image?.src ? jsx(ImgInner, { className: "mt-auto ml-7", image: image }) : null, children: [description ? (jsx(Description, { className: "max-w-[600px] text-xl-light mt-2.5", description: description })) : null, children, renderList$1(items, { version, isDotted, listItemSize })] }) }));
|
|
1052
872
|
});
|
|
1053
873
|
function renderList$1(items, { version, isDotted, listItemSize }) {
|
|
1054
|
-
|
|
1055
|
-
return items?.length ? (jsx(List, { items: items, isDotted: isDotted, className: "mt-3", listItemSize: listItemSize, itemClassName: "mb-1.5", version: listVersion })) : null;
|
|
874
|
+
return items?.length ? (jsx(List, { items: items, isDotted: isDotted, className: "mt-2.5", listItemSize: listItemSize, itemClassName: "mb-1.5", version: version })) : null;
|
|
1056
875
|
}
|
|
1057
876
|
|
|
1058
877
|
const ProductTile = JSX(({ context, className = '', title, headlineVersion = 'S', description, additionalDescription, benefits = [], buttons, image, version = 'primary', ...rest }) => {
|
|
1059
878
|
return (jsxs(BlockWrapper, { context: context, className: `overflow-hidden font-sans p-9 box-border relative justify-between grid min-h-[364px]
|
|
1060
879
|
${className} ${VersionStyleMap[version]} ${getTileRightPadding(className)}`, ...rest, children: [jsx(Headline, { context: context, className: `!p-0 !bg-transparent z-10 ${title || description ? 'mb-3.5' : ''}`, as: "h2", title: title, description: description, headlineVersion: headlineVersion, bgColorHeadline: version, align: "left" }), renderBenefits$1(benefits, version, image), additionalDescription
|
|
1061
|
-
? renderAdditionalDescription(additionalDescription, image, version)
|
|
1062
|
-
: null, buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex self-end mt-5 gap-4 z-10 text-l" })) : null, image?.src ? jsx(
|
|
880
|
+
? renderAdditionalDescription$1(additionalDescription, image, version)
|
|
881
|
+
: null, buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex self-end mt-5 gap-4 z-10 text-l" })) : null, image?.src ? jsx(ImgInner, { className: "absolute right-0 bottom-0", image: image }) : null] }));
|
|
1063
882
|
});
|
|
1064
883
|
function renderBenefits$1(benefits, version, image) {
|
|
1065
884
|
// picture width = 242px. Text can overlay picture 20px deep. Outer paddings_x = 36px. 242-36-20 = 186px
|
|
@@ -1080,7 +899,7 @@
|
|
|
1080
899
|
];
|
|
1081
900
|
};
|
|
1082
901
|
}
|
|
1083
|
-
function renderAdditionalDescription(additionalDescription, image, version = 'primary') {
|
|
902
|
+
function renderAdditionalDescription$1(additionalDescription, image, version = 'primary') {
|
|
1084
903
|
const descStyleMap = {
|
|
1085
904
|
primary: 'text-secondary-text',
|
|
1086
905
|
secondary: 'text-white',
|
|
@@ -1092,7 +911,7 @@
|
|
|
1092
911
|
|
|
1093
912
|
const ArrowButton = JSX(({ className, disabled, ...rest }) => (jsx(Button, { rounded: true, className: `group shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${disabled
|
|
1094
913
|
? 'bg-secondary-light text-secondary-text'
|
|
1095
|
-
: 'bg-white text-primary-text hover:text-primary-main'} ${className || ''}`, disabled: disabled, ...rest, children: jsx(
|
|
914
|
+
: 'bg-white text-primary-text hover:text-primary-main'} ${className || ''}`, disabled: disabled, ...rest, children: jsx(ImgInner, { className: "w-4 h-4 min-w-4 min-h-4 rounded-full box-border", image: { icon: 'ArrowLeftIcon', iconVersion: 'black' }, imageClassName: "group-hover:text-primary-main", width: "16", height: "16", asSVG: true }) })));
|
|
1096
915
|
|
|
1097
916
|
function renderArrows({ handler, isShown, btnClass, className = '', isDisabled = false, }) {
|
|
1098
917
|
return (jsxs("div", { children: [isShown[0] || isDisabled ? (jsx(ArrowButton, { className: `absolute z-10 ${btnClass[0]} ${className}`, onClick: handler[0], ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left", disabled: !isShown[0] })) : null, isShown[1] || isDisabled ? (jsx(ArrowButton, { className: `absolute z-10 rotate-180 ${btnClass[1]} ${className}`, onClick: handler[1], ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right", disabled: !isShown[1] })) : null] }));
|
|
@@ -1111,27 +930,23 @@
|
|
|
1111
930
|
mini: 276,
|
|
1112
931
|
};
|
|
1113
932
|
|
|
1114
|
-
const
|
|
1115
|
-
|
|
1116
|
-
|
|
933
|
+
const ALIGN_TITLE$1 = {
|
|
934
|
+
left: 'text-left',
|
|
935
|
+
center: 'text-center',
|
|
936
|
+
right: 'text-right',
|
|
937
|
+
};
|
|
938
|
+
const GalleryCardInner = JSX(({ title, headlineSmallVersion = 'XL_L', description, additionalDescription, image, items, button, version, isDotted = true, align = 'center', }) => {
|
|
939
|
+
return (jsxs("div", { className: `h-full flex flex-col justify-between ${ALIGN_TITLE$1[align]}`, children: [jsxs("div", { className: "flex flex-col h-full", children: [renderImage(image), renderCardTitle(headlineSmallVersion, title), renderDescription$1(description, title), renderAdditionalDescription(additionalDescription), items?.length ? renderItems$1(items, isDotted, version) : null] }), button ? renderButton(button) : null] }));
|
|
1117
940
|
});
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
}
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
}
|
|
1124
|
-
function renderItems(items, isDotted, version = 'primary') {
|
|
1125
|
-
return (jsx(List, { className: `max-w-[308px] mt-2 text-s ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "mt-1 text-left first:mt-0", items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted, version: version }));
|
|
1126
|
-
}
|
|
1127
|
-
function getTitleStyle(version) {
|
|
1128
|
-
return `text-xl-light m-0
|
|
1129
|
-
${version !== 'secondary' ? 'text-primary-text' : ''}
|
|
1130
|
-
`;
|
|
1131
|
-
}
|
|
941
|
+
const renderImage = (image) => image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(ImgInner, { className: "mb-6", image: image }) })) : null;
|
|
942
|
+
const renderCardTitle = (headlineSmallVersion, title) => title ? jsx("div", { className: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
|
|
943
|
+
const renderDescription$1 = (description, title) => description ? jsx("div", { className: `text-base ${title ? 'mt-2' : ''}`, children: description }) : null;
|
|
944
|
+
const renderAdditionalDescription = (additionalDescription) => additionalDescription ? (jsx("div", { className: "text-m-light text-secondary-text mt-auto", children: additionalDescription })) : null;
|
|
945
|
+
const renderButton = (button) => (jsx(Button, { className: "mt-6 w-full", ...button }));
|
|
946
|
+
const renderItems$1 = (items, isDotted, version = 'primary') => (jsx(List, { className: `max-w-[308px] mt-2 text-s ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "mt-1 text-left first:mt-0", items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted, version: version }));
|
|
1132
947
|
|
|
1133
|
-
const GalleryContainer = JSX(({ context, title, description, cards = [], version = 'normal', activeCardIndex }) => {
|
|
1134
|
-
return (jsxs("div", { children: [jsx("div", { className: "absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent" }), jsx(Headline, { context: context, className: "!p-0", title: title, description: description, headlineVersion:
|
|
948
|
+
const GalleryContainer = JSX(({ context, title, headlineVersion = 'L', description, cards = [], version = 'normal', activeCardIndex, }) => {
|
|
949
|
+
return (jsxs("div", { children: [jsx("div", { className: "absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent" }), jsx(Headline, { context: context, className: "!p-0", title: title, description: description, headlineVersion: headlineVersion, align: "center" }), jsx("div", { className: `flex mt-8 ${cards?.length <= galleryLengthForScrollMap[version] ? 'justify-center' : ''} duration-1000`, style: { transform: `translateX(-${activeCardIndex * cardWidthMap[version]}px)` }, role: "list", children: cards?.map((card, i) => renderCard({ card, version, context }, i)) })] }));
|
|
1135
950
|
});
|
|
1136
951
|
function renderCard({ card, version }, i) {
|
|
1137
952
|
return (jsx("section", { className: `box-border border-solid border border-main-stroke p-6 mx-2 flex flex-col justify-between
|
|
@@ -1181,7 +996,7 @@
|
|
|
1181
996
|
LinkList,
|
|
1182
997
|
};
|
|
1183
998
|
|
|
1184
|
-
const renderBlocksList$1 = ({ blocks, context, className = '' }) => blocks?.length ? blocks.map(renderBlock$1({ context, className })) :
|
|
999
|
+
const renderBlocksList$1 = ({ blocks, context, className = '' }) => blocks?.length ? blocks.map(renderBlock$1({ context, className })) : [];
|
|
1185
1000
|
const renderBlock$1 = ({ context, className }) => (block, i) => {
|
|
1186
1001
|
if (!block) {
|
|
1187
1002
|
return null;
|
|
@@ -1195,37 +1010,47 @@
|
|
|
1195
1010
|
return (jsx(EmbeddedBlock, { className: `${className} ${classNameBlock}`, context: context, ...rest }, `block_${i}`));
|
|
1196
1011
|
};
|
|
1197
1012
|
|
|
1198
|
-
const
|
|
1199
|
-
|
|
1013
|
+
const clamp = (value, min, max) => Math.max(min, Math.min(value, max));
|
|
1014
|
+
|
|
1015
|
+
const DefaultButton = JSX(({ icon, label, dataTheme = '', onClick }) => {
|
|
1016
|
+
return (jsxs("button", { className: "border-none bg-primary-main hover:bg-primary-hover px-0 py-5 mb-[1px] w-full font-sans text-white flex justify-center cursor-pointer", "data-theme": dataTheme, onClick: onClick, children: [jsx("span", { className: "text-h4 pr-3", children: label }), icon ? (jsx(ImgInner, { image: {
|
|
1017
|
+
icon,
|
|
1018
|
+
iconVersion: 'white',
|
|
1019
|
+
}, className: "flex-shrink-0 my-auto", width: "20", height: "20", asSVG: true })) : null] }));
|
|
1200
1020
|
});
|
|
1201
1021
|
|
|
1202
|
-
const
|
|
1203
|
-
const [
|
|
1204
|
-
const
|
|
1205
|
-
const
|
|
1206
|
-
const
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1022
|
+
const Foldable = JSX(({ blocks = [], hiddenBlocksNum = 0, isFoldButtonOnTop = false, unfoldedByDefault = false, containerClassName = '', blockWrapper = (_) => _, renderFoldButton = renderDefaultFoldButton, }) => {
|
|
1023
|
+
const [isUnfolded, setIsUnfolded] = useState(unfoldedByDefault);
|
|
1024
|
+
const blocksToHide = clamp(hiddenBlocksNum, 0, blocks?.length);
|
|
1025
|
+
const visibleBlocks = blocks.slice(0, blocks.length - blocksToHide);
|
|
1026
|
+
const hiddenBlocks = blocksToHide > 0 ? blocks.slice(-blocksToHide) : [];
|
|
1027
|
+
const containerRef = useRef(null);
|
|
1028
|
+
const onToggle = () => {
|
|
1029
|
+
setIsUnfolded(!isUnfolded);
|
|
1030
|
+
if (containerRef.current) {
|
|
1031
|
+
containerRef.current.style.maxHeight = isUnfolded
|
|
1032
|
+
? ''
|
|
1033
|
+
: `${containerRef.current.scrollHeight}px`;
|
|
1210
1034
|
}
|
|
1211
|
-
setIsActive(!isActive);
|
|
1212
|
-
const contentBlock = currentTarget.nextSibling;
|
|
1213
|
-
contentBlock.style.maxHeight = contentBlock.style.maxHeight
|
|
1214
|
-
? ''
|
|
1215
|
-
: `${contentBlock.scrollHeight}px`;
|
|
1216
1035
|
};
|
|
1217
|
-
|
|
1036
|
+
const buttonNode = hiddenBlocksNum ? renderFoldButton({ isUnfolded, onToggle }) : null;
|
|
1037
|
+
const blocksNode = blockWrapper(jsxs("div", { children: [visibleBlocks, jsx("div", { ref: containerRef, className: `transition-max-h duration-300 overflow-hidden max-h-0 ${containerClassName}`, children: hiddenBlocks })] }));
|
|
1038
|
+
return (jsx("div", { children: isFoldButtonOnTop ? (jsxs("div", { children: [buttonNode, blocksNode] })) : (jsxs("div", { children: [blocksNode, buttonNode] })) }));
|
|
1039
|
+
});
|
|
1040
|
+
const renderDefaultFoldButton = (props) => {
|
|
1041
|
+
const labels = ['Развернуть', 'Скрыть'];
|
|
1042
|
+
const icons = ['ArrowDownIcon', 'ArrowUpIcon'];
|
|
1043
|
+
return (jsx(DefaultButton, { icon: icons[Number(props.isUnfolded)], label: labels[Number(props.isUnfolded)], onClick: props.onToggle }));
|
|
1218
1044
|
};
|
|
1219
1045
|
|
|
1220
|
-
const
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
return (
|
|
1226
|
-
font-sans text-h6 ${hasContent ? 'group cursor-pointer' : ''}
|
|
1227
|
-
`, onClick: handleToggle, children: [jsx("span", { className: `text-xl font-medium pr-2.5`, children: label }), hasContent ? (jsx(Img, { image: icon, className: "text-primary-main flex-shrink-0", width: "24", height: "24", asSVG: true })) : null] }), hasContent ? (jsx(AccordionItemInner, { isExpanded: isActive, blocks: blocks, context: context })) : null] }));
|
|
1046
|
+
const icons$1 = ['PlusIcon', 'MinusIcon'];
|
|
1047
|
+
const AccordionItem = JSX(({ label = '', blocks, context }) => {
|
|
1048
|
+
const foldableBlocks = blocks
|
|
1049
|
+
? renderBlocksList$1({ context, blocks, className: '!p-0 mb-5' })
|
|
1050
|
+
: [];
|
|
1051
|
+
return (jsx("li", { className: "border-0 border-b border-solid border-main-divider last:border-b-0", children: jsx(Foldable, { hiddenBlocksNum: foldableBlocks.length, blocks: foldableBlocks, isFoldButtonOnTop: true, containerClassName: "grid grid-cols-12", renderFoldButton: (props) => (jsx(FoldButton, { icon: icons$1[Number(props.isUnfolded)], label: label, hasContent: Boolean(blocks?.length), onClick: props.onToggle })) }) }));
|
|
1228
1052
|
});
|
|
1053
|
+
const FoldButton = JSX(({ icon, label, hasContent, onClick }) => (jsxs("button", { className: `border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer ${hasContent ? 'group cursor-pointer' : ''}`, onClick: onClick, children: [jsx("span", { className: `text-xl font-medium pr-2.5`, children: label }), hasContent ? (jsx(ImgInner, { image: icon, className: "text-primary-main flex-shrink-0", width: "24", height: "24", asSVG: true })) : null] })));
|
|
1229
1054
|
|
|
1230
1055
|
const ALIGN_TITLE = {
|
|
1231
1056
|
left: 'text-left',
|
|
@@ -1259,7 +1084,7 @@
|
|
|
1259
1084
|
return (jsx("div", { className: "flex flex-wrap w-full justify-center gap-x-20 mt-8", children: benefitList.map(renderStep(benefitsBlockVersion)) }));
|
|
1260
1085
|
};
|
|
1261
1086
|
const setIconVersion = (benefitIcon, benefitsBlockVersion) => {
|
|
1262
|
-
if (!benefitIcon.icon) {
|
|
1087
|
+
if (!benefitIcon.icon || benefitIcon?.iconVersion) {
|
|
1263
1088
|
return benefitIcon;
|
|
1264
1089
|
}
|
|
1265
1090
|
benefitIcon.iconVersion = benefitsBlockVersion === 'secondary' ? 'white' : 'normal';
|
|
@@ -1267,7 +1092,7 @@
|
|
|
1267
1092
|
};
|
|
1268
1093
|
const renderStep = (benefitsBlockVersion) => (benefit, i) => {
|
|
1269
1094
|
const description = (benefit?.description || undefined);
|
|
1270
|
-
return (jsxs("div", { className: "flex items-center basis-1/2 max-w-[500px] mb-14", children: [benefit?.icon?.icon ? (jsx(
|
|
1095
|
+
return (jsxs("div", { className: "flex items-center basis-1/2 max-w-[500px] mb-14", children: [benefit?.icon?.icon ? (jsx(ImgInner, { className: `w-[50px] h-[50px] min-w-[50px] p-3 rounded-full ${benefitsIconStyleMap[benefitsBlockVersion]}`, image: setIconVersion(benefit.icon, benefitsBlockVersion), asSVG: true })) : null, benefit?.icon?.src ? jsx(ImgInner, { image: benefit.icon }) : null, jsxs("div", { className: "ml-5", children: [benefit?.label ? (jsx("h3", { className: `text-h6 m-0 ${benefitsTextStyleMap[benefitsBlockVersion]}`, children: benefit.label })) : null, renderDescription(description, benefitsBlockVersion)] })] }, String(i)));
|
|
1271
1096
|
};
|
|
1272
1097
|
const renderDescription = (description, benefitsBlockVersion) => {
|
|
1273
1098
|
const benefitType = description ? description?.benefitType : null;
|
|
@@ -1298,7 +1123,7 @@
|
|
|
1298
1123
|
? renderBonusCount(bonusItemContent)
|
|
1299
1124
|
: renderBonusImage(bonusItemContent) }));
|
|
1300
1125
|
const renderBonusCount = (_) => (jsxs("div", { className: "relative -bottom-3 h-auto flex items-end mt-14 shrink-0", children: [_.bonusCount ? (jsx("span", { className: "font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7", children: _.bonusCount })) : null, _.bonusName ? (jsx("span", { className: "text-h2 bg-clip-text text-transparent bg-green-to-yellow", children: _.bonusName })) : null] }));
|
|
1301
|
-
const renderBonusImage = (_) => _.image ? (jsx(
|
|
1126
|
+
const renderBonusImage = (_) => _.image ? (jsx(ImgInner, { className: `w-[50px] h-[50px] min-w-[50px] p-3 rounded-full`, image: _.image })) : null;
|
|
1302
1127
|
|
|
1303
1128
|
function getElementsColsValue(className = '') {
|
|
1304
1129
|
const colSpan = getColSpan(className);
|
|
@@ -1315,7 +1140,7 @@
|
|
|
1315
1140
|
|
|
1316
1141
|
const BonusBenefitsBlock = JSX(({ context, className = '', title, subtitle, bonusBenefits, ...rest }) => (jsxs(BlockWrapper, { className: `font-sans text-primary-text bg-white p-[50px] flex flex-col text-center ${className}`, context: context, ...rest, children: [jsx(Headline, { context: context, className: "!p-0", title: title, description: subtitle, headlineVersion: "M", align: "center" }), bonusBenefits?.length ? (jsx("div", { className: `grid gap-1 mt-8 ${getElementsColsValue(className)}`, children: bonusBenefits.map(renderBonusBenefit) })) : null] })));
|
|
1317
1142
|
const renderBonusBenefit = (bonusBenefit, i) => {
|
|
1318
|
-
return (jsxs("div", { className: "flex flex-col items-center max-w-[292px]", children: [bonusBenefit?.icon ? (jsx(
|
|
1143
|
+
return (jsxs("div", { className: "flex flex-col items-center max-w-[292px]", children: [bonusBenefit?.icon ? (jsx(ImgInner, { className: "h-[160px] w-[180px] min-w-[180px] min-h-[160px]", image: bonusBenefit.icon, width: "180", height: "160" })) : null, jsx("div", { children: bonusBenefit?.label ? jsx("span", { className: "text-h6 m-0", children: bonusBenefit.label }) : null })] }, String(i)));
|
|
1319
1144
|
};
|
|
1320
1145
|
|
|
1321
1146
|
const CalculatorValueBlock = JSX(({ title, value, postfix = '', prefix, className = '' }) => {
|
|
@@ -1367,16 +1192,15 @@
|
|
|
1367
1192
|
|
|
1368
1193
|
const renderFootnote = (text) => text ? jsx("p", { className: "text-s-light text-secondary-text mt-7", children: text }) : null;
|
|
1369
1194
|
|
|
1370
|
-
const
|
|
1195
|
+
const getSanitizedValue = (_) => _.split(/\s+/).join('');
|
|
1371
1196
|
|
|
1372
1197
|
const DISABLED_INPUT_CLASSES = 'disabled:border-main-stroke disabled:bg-main-divider';
|
|
1373
1198
|
const InputRange = JSX(({ className, title, items = [], min = 1, max = 100, step = 1, value = min, disabled = false, onChange, }) => {
|
|
1374
|
-
const getSanitizedValue = (_) => Number(_.replace(/\D/g, ''));
|
|
1375
1199
|
const handleChange = (e) => {
|
|
1376
1200
|
if (!onChange) {
|
|
1377
1201
|
return;
|
|
1378
1202
|
}
|
|
1379
|
-
onChange(clamp(getSanitizedValue(e.target.value), min, max));
|
|
1203
|
+
onChange(clamp(Number(getSanitizedValue(e.target.value)), min, max));
|
|
1380
1204
|
};
|
|
1381
1205
|
const inputStyle = {
|
|
1382
1206
|
backgroundSize: `${(((value - min) * 100) / (max - min)).toFixed(2)}% 100%`,
|
|
@@ -1411,7 +1235,7 @@
|
|
|
1411
1235
|
};
|
|
1412
1236
|
|
|
1413
1237
|
const consistentDataMap = new Map();
|
|
1414
|
-
function useAsyncData
|
|
1238
|
+
function useAsyncData(key, fetcher, { fallback } = {}) {
|
|
1415
1239
|
const args = useMemo(() => keyToArgs(key), [key]);
|
|
1416
1240
|
const [data, setData] = useState();
|
|
1417
1241
|
const [error, setError] = useState();
|
|
@@ -1470,9 +1294,6 @@
|
|
|
1470
1294
|
}
|
|
1471
1295
|
}
|
|
1472
1296
|
|
|
1473
|
-
let impl = useAsyncData$1;
|
|
1474
|
-
const useAsyncData = (...args) => impl(...args);
|
|
1475
|
-
|
|
1476
1297
|
async function fetchJSON(url, options) {
|
|
1477
1298
|
try {
|
|
1478
1299
|
return await fetchJSONUnsafe(url, options);
|
|
@@ -1723,7 +1544,7 @@
|
|
|
1723
1544
|
: `text-m-light text-secondary-text`;
|
|
1724
1545
|
const iconClassName = isActiveBtn ? '' : `text-primary-main`;
|
|
1725
1546
|
return (jsxs("button", { type: "button", onClick: onClick, "aria-label": tab?.title, className: `box-border relative border border-main-stroke cursor-pointer text-left border-b-0 flex hover:h-[88px]
|
|
1726
|
-
${btnClassName}`, children: [jsx(
|
|
1547
|
+
${btnClassName}`, children: [jsx(ImgInner, { className: `h-6 w-6 min-w-6 min-h-6 mr-4 ${iconClassName}`, image: { ...tab?.icon, iconVersion: isActiveBtn ? 'white' : 'normal' }, width: "24", height: "24", asSVG: true }), jsxs("div", { className: "border-0", children: [jsx("div", { className: `${btnTitleClassName}`, children: tab?.title }), jsx("div", { className: `${btnDescClassName}`, children: tab.description })] })] }, String(i)));
|
|
1727
1548
|
}
|
|
1728
1549
|
function renderTabs({ tabsShift, tabsNav, activeSlideIndex, setActiveSlideIndex }) {
|
|
1729
1550
|
return (jsxs("div", { children: [jsx("div", { style: { transform: `translateX(-${tabsShift * 388}px)` }, className: "flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000", children: jsx("div", { className: "w-full flex flex-nowrap items-end gap-2", children: tabsNav.map((tab, i) => renderNavButton$2({
|
|
@@ -1734,7 +1555,13 @@
|
|
|
1734
1555
|
})) }) }), jsx("div", { className: "w-full h-2 bg-primary-main" })] }));
|
|
1735
1556
|
}
|
|
1736
1557
|
|
|
1737
|
-
const adjustValue = (val) => onlyOneDot(setZeroStart(replaceCommaToDot(val)));
|
|
1558
|
+
const adjustValue = (val) => onlyOneDot(setZeroStart(replaceCommaToDot(getSanitizedValue(val))));
|
|
1559
|
+
const localNumberFormat = (val) => new Intl.NumberFormat('ru-RU', {
|
|
1560
|
+
minimumFractionDigits: 0,
|
|
1561
|
+
maximumFractionDigits: 2,
|
|
1562
|
+
})
|
|
1563
|
+
.format(Number(getSanitizedValue(val)))
|
|
1564
|
+
.replace(',', '.');
|
|
1738
1565
|
const onlyOneDot = (val) => {
|
|
1739
1566
|
const matches = val.match(/\./g) || [];
|
|
1740
1567
|
return matches.length > 1 ? val.slice(0, val.lastIndexOf('.')) : val;
|
|
@@ -1746,14 +1573,23 @@
|
|
|
1746
1573
|
};
|
|
1747
1574
|
const replaceCommaToDot = (val) => String(val.replace(',', '.').replace(/[^.\d]/g, ''));
|
|
1748
1575
|
|
|
1749
|
-
const Input = JSX(({ className = '', inputClassName = '', id, name, type = 'text', label, value = '', children, onChange, ...inputProps }) => {
|
|
1576
|
+
const Input = JSX(({ className = '', inputClassName = '', id, name, type = 'text', label, value = '', valid = true, children, onChange, onBlur, ...inputProps }) => {
|
|
1750
1577
|
const handleChange = useCallback((e) => {
|
|
1751
1578
|
const validInputValue = e.target.validity.valid ? e.target.value : value;
|
|
1752
1579
|
onChange(validInputValue);
|
|
1753
1580
|
}, [onChange]);
|
|
1581
|
+
const handleBlur = useCallback((e) => {
|
|
1582
|
+
if (!onBlur) {
|
|
1583
|
+
return;
|
|
1584
|
+
}
|
|
1585
|
+
const validInputValue = e.target.validity.valid ? e.target.value : value;
|
|
1586
|
+
onBlur(validInputValue);
|
|
1587
|
+
}, [onBlur]);
|
|
1754
1588
|
const paddingStyle = children ? 'pr-8' : '';
|
|
1755
|
-
|
|
1756
|
-
|
|
1589
|
+
const validStyle = valid
|
|
1590
|
+
? 'border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text'
|
|
1591
|
+
: 'border-error';
|
|
1592
|
+
return (jsxs("div", { className: `relative ${className}`, children: [label ? jsx("label", { className: "block text-m-light mb-2", children: label }) : null, jsx("input", { className: `w-full border rounded-md text-primary-text outline-none p-4 ${paddingStyle} ${validStyle} ${inputClassName}`, id: id, name: name || id, type: type, value: value, onChange: handleChange, onBlur: handleBlur, ...inputProps }), children] }));
|
|
1757
1593
|
});
|
|
1758
1594
|
|
|
1759
1595
|
const CurrencyInput = JSX(({ className = '', onChange, minValue = 0, maxValue = 300000, ...inputProps }) => {
|
|
@@ -1765,7 +1601,13 @@
|
|
|
1765
1601
|
const clampVal = getClampValue(adjustedVal, clamp(Number(adjustedVal), minValue, maxValue));
|
|
1766
1602
|
onChange(String(clampVal));
|
|
1767
1603
|
}, [onChange]);
|
|
1768
|
-
|
|
1604
|
+
const handleBlur = useCallback((inputValue) => {
|
|
1605
|
+
if (!onChange) {
|
|
1606
|
+
return;
|
|
1607
|
+
}
|
|
1608
|
+
onChange(localNumberFormat(inputValue));
|
|
1609
|
+
}, [onChange]);
|
|
1610
|
+
return (jsx(Input, { className: className, inputClassName: "w-full", onChange: handleChange, onBlur: handleBlur, ...inputProps, children: jsx("span", { className: "text-xl-light absolute right-4 bottom-4", children: "\u20BD" }) }));
|
|
1769
1611
|
});
|
|
1770
1612
|
const getClampValue = (val, clampVal) => Number(val) === clampVal ? val : String(clampVal);
|
|
1771
1613
|
|
|
@@ -1778,43 +1620,21 @@
|
|
|
1778
1620
|
const router = context.useRouter();
|
|
1779
1621
|
const { handlerDecorator } = context;
|
|
1780
1622
|
const [value, setValue] = useState('');
|
|
1781
|
-
const isDisabled = !Number(value);
|
|
1623
|
+
const isDisabled = !Number(getSanitizedValue(value));
|
|
1782
1624
|
const buttonStyle = isDisabled
|
|
1783
1625
|
? getDisabledButtonClasses({ version: button?.version })
|
|
1784
1626
|
: getRegularButtonClasses({ className: 'text-white', version: button?.version });
|
|
1785
|
-
return (jsxs(BlockWrapper, { className: `p-[50px] flex flex-col items-center font-sans bg-white ${className}`, context: context, ...rest, children: [title ? jsx(Heading, { className: "max-w-[684px] pb-9", headingType: "h2", title: title }) : null, jsxs("form", { className: "w-[468px]", method: "POST", action: FORM_URL, children: [jsx(CurrencyInput, { name: AMOUNT_KEY, value: value, onChange: setValue, placeholder: placeholder, label: label }), button?.text ? (jsx("button", { type: "submit", className: `w-full p-4 mt-6 ${buttonStyle} `, disabled: isDisabled, ...useLink({ router, handlerDecorator }, button), children: button.text })) : null] })] }));
|
|
1627
|
+
return (jsxs(BlockWrapper, { className: `p-[50px] flex flex-col items-center font-sans bg-white ${className}`, context: context, ...rest, children: [title ? jsx(Heading, { className: "max-w-[684px] pb-9", headingType: "h2", title: title }) : null, jsxs("form", { className: "w-[468px]", method: "POST", action: FORM_URL, children: [jsx(CurrencyInput, { name: AMOUNT_KEY, value: value, onChange: setValue, valid: value === '' || !isDisabled, placeholder: placeholder, label: label }), button?.text ? (jsx("button", { type: "submit", className: `w-full p-4 mt-6 ${buttonStyle} `, disabled: isDisabled, ...useLink({ router, handlerDecorator }, button), children: button.text })) : null] })] }));
|
|
1786
1628
|
});
|
|
1787
1629
|
|
|
1788
|
-
const iconVersionMap = {
|
|
1789
|
-
default: 'normal',
|
|
1790
|
-
primary: 'white',
|
|
1791
|
-
secondary: 'black',
|
|
1792
|
-
};
|
|
1793
1630
|
const cardStyleMap = {
|
|
1794
1631
|
black: 'bg-black',
|
|
1795
1632
|
white: 'bg-white',
|
|
1796
1633
|
};
|
|
1797
1634
|
const CatalogCard = JSX(({ className = '', title, description, image, price, button, colors }) => {
|
|
1798
|
-
return (jsxs("section", { className: `border border-solid box-border border-main-stroke p-[30px] min-w-[402px] flex flex-col justify-left ${className}`, role: "listitem", children: [image?.src ? jsx(
|
|
1635
|
+
return (jsxs("section", { className: `border border-solid box-border border-main-stroke p-[30px] min-w-[402px] flex flex-col justify-left ${className}`, role: "listitem", children: [image?.src ? jsx(ImgInner, { className: "mb-5 flex justify-center", image: image }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-1.5", title: title })) : null, description ? jsx("div", { className: "text-m-light text-left mb-4", children: description }) : null, colors?.length ? (jsxs("div", { className: "flex mb-4 text-m-light text-secondary-text", children: [jsx("div", { className: "mr-1.5", children: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430: " }), colors.map(renderColorOption)] })) : null, price ? jsxs("div", { className: "text-h3 text-left", children: [price, "\u00A0\u20BD"] }) : null, button ? jsx(Button, { className: "mt-5 w-full", ...button }) : null] }));
|
|
1799
1636
|
});
|
|
1800
1637
|
const renderColorOption = (color, i) => (jsx("span", { className: `w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
|
|
1801
|
-
const renderButton = (button) => {
|
|
1802
|
-
const { icon, iconRight, ...other } = button;
|
|
1803
|
-
if (!button?.text) {
|
|
1804
|
-
return null;
|
|
1805
|
-
}
|
|
1806
|
-
const iconVersion = iconVersionMap[button?.version || 'default'];
|
|
1807
|
-
const leftIcon = renderButtonIcon({ ...icon, iconVersion });
|
|
1808
|
-
const rightIcon = renderButtonIcon({ ...iconRight, iconVersion });
|
|
1809
|
-
return (jsx(Button, { className: "mt-5 w-full", appendLeft: leftIcon, appendRight: rightIcon, ...other }));
|
|
1810
|
-
};
|
|
1811
|
-
const renderButtonIcon = (buttonIcon) => {
|
|
1812
|
-
if (!buttonIcon || (!buttonIcon?.icon && !buttonIcon?.src)) {
|
|
1813
|
-
return null;
|
|
1814
|
-
}
|
|
1815
|
-
const iconWidth = buttonIcon?.size?.width ? `${buttonIcon.size.width}` : '24';
|
|
1816
|
-
return jsx(Img, { image: buttonIcon, width: iconWidth, height: "24", asSVG: true });
|
|
1817
|
-
};
|
|
1818
1638
|
|
|
1819
1639
|
const BLUR_BLOCK_CLASSES$1 = 'absolute top-0 bottom-0 w-[84px]';
|
|
1820
1640
|
const CARD_FULL_VIEW_COUNT$1 = 3;
|
|
@@ -1825,7 +1645,7 @@
|
|
|
1825
1645
|
cardsCount: cards.length,
|
|
1826
1646
|
activeCardIndex,
|
|
1827
1647
|
setActiveCardIndex,
|
|
1828
|
-
}), jsx("div", { className: `${BLUR_BLOCK_CLASSES$1} left-0
|
|
1648
|
+
}), jsx("div", { className: `${BLUR_BLOCK_CLASSES$1} left-0 bg-opacity-from-white` }), jsx("div", { className: `${BLUR_BLOCK_CLASSES$1} right-0 bg-opacity-to-white` })] }));
|
|
1829
1649
|
});
|
|
1830
1650
|
const renderCatalogCard = (context) => (card, i) => {
|
|
1831
1651
|
return jsx(CatalogCard, { context: context, ...card }, String(i));
|
|
@@ -1860,7 +1680,7 @@
|
|
|
1860
1680
|
const COLS_LENGTH_FOR_SCROLL$1 = 2;
|
|
1861
1681
|
const COLUMN_WIDTH$2 = 4 * 80 + 4 * 4; // w-80 + gap-4 = 336px
|
|
1862
1682
|
|
|
1863
|
-
const HeaderCell = JSX(({ icon, image, title, link }) => (jsxs("div", { className: `w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${BORDER_CLASSES$1} ${GRADIENT}`, role: "columnheader", children: [icon && !image?.src && (jsx(
|
|
1683
|
+
const HeaderCell = JSX(({ icon, image, title, link }) => (jsxs("div", { className: `w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${BORDER_CLASSES$1} ${GRADIENT}`, role: "columnheader", children: [icon && !image?.src && (jsx(ImgInner, { className: "h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4", image: icon, width: "63", height: "63" })), image?.src && jsx(ImgInner, { className: "mb-[18px]", image: image }), title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "text-center text-white", title: title })) : null, link?.text && (jsx("div", { className: "mt-auto w-full", children: jsx(Button, { href: link.href, target: link.target, className: "mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active", children: jsx("div", { className: "text-xs-light font-medium py-[11px]", children: link.text }) }) }))] })));
|
|
1864
1684
|
|
|
1865
1685
|
const carouselContainerClassesMap = {
|
|
1866
1686
|
comparison: 'flex gap-4 duration-1000',
|
|
@@ -1930,12 +1750,12 @@
|
|
|
1930
1750
|
: null] }));
|
|
1931
1751
|
});
|
|
1932
1752
|
const renderShowMoreToggleButton = ({ isShowAllRow, onClick, }) => {
|
|
1933
|
-
return (jsx("div", { className: "pr-[50px]", children: jsxs("div", { className: "flex w-full", children: [jsx("div", { className: FIRST_CELL_CLASSES$1 }), jsx("button", { onClick: onClick, className: "mt-5 flex-1 border-main-stroke border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main", children: jsx("div", { className: "font-sans text-xs-light font-medium py-
|
|
1753
|
+
return (jsx("div", { className: "pr-[50px]", children: jsxs("div", { className: "flex w-full", children: [jsx("div", { className: FIRST_CELL_CLASSES$1 }), jsx("button", { onClick: onClick, className: "mt-5 flex-1 border-main-stroke border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main", children: jsx("div", { className: "font-sans text-xs-light font-medium py-3", children: !isShowAllRow ? 'Показать все параметры' : 'Скрыть' }) })] }) }));
|
|
1934
1754
|
};
|
|
1935
1755
|
|
|
1936
1756
|
const renderErrorContent = (error) => {
|
|
1937
1757
|
if (error?.errorContentType === 'Image' && error?.image) {
|
|
1938
|
-
return jsx(
|
|
1758
|
+
return jsx(ImgInner, { image: error.image });
|
|
1939
1759
|
}
|
|
1940
1760
|
if (error?.errorContentType === 'Code' && error.code) {
|
|
1941
1761
|
return jsx("div", { className: "font-mohave text-title-extra gradient-color-text", children: error.code });
|
|
@@ -1945,7 +1765,7 @@
|
|
|
1945
1765
|
const ErrorBlock = JSX(({ context, className = '', title, subtitle, error, button }) => {
|
|
1946
1766
|
const { useRouter, handlerDecorator } = context;
|
|
1947
1767
|
const router = useRouter();
|
|
1948
|
-
return (jsxs("section", { className: `flex flex-col justify-center items-center mt-12 ${className}`, role: "listitem", children: [jsx("div", { className: "flex justify-center py-20", children: renderErrorContent(error) }), title ? jsx(Heading, { headingType: "h1", className: "text-left mb-4", title: title }) : null, subtitle ? (jsx("div", { className: "font-sans text-xl-light
|
|
1768
|
+
return (jsxs("section", { className: `flex flex-col justify-center items-center mt-12 ${className}`, role: "listitem", children: [jsx("div", { className: "flex justify-center py-20", children: renderErrorContent(error) }), title ? jsx(Heading, { headingType: "h1", className: "text-left mb-4", title: title }) : null, subtitle ? (jsx("div", { className: "font-sans text-xl-light mb-7 max-w-[613px] text-center", children: subtitle })) : null, button?.text ? (jsx(Button, { className: "py-4 px-9", version: button?.version, ...useLink({ router, handlerDecorator }, button), children: button.text })) : null] }));
|
|
1949
1769
|
});
|
|
1950
1770
|
|
|
1951
1771
|
const roundTo = (value, precision = 2) => {
|
|
@@ -2027,14 +1847,33 @@
|
|
|
2027
1847
|
});
|
|
2028
1848
|
const renderCurrencyRow = (exchangeCurrencyItem) => {
|
|
2029
1849
|
const code = exchangeCurrencyItem?.code;
|
|
2030
|
-
return (jsxs("tr", { className: "pb-1 text-h6", children: [jsx("td", { className: "pt-4", children: jsxs("div", { className: "flex items-center", children: [code ? jsx(
|
|
1850
|
+
return (jsxs("tr", { className: "pb-1 text-h6", children: [jsx("td", { className: "pt-4", children: jsxs("div", { className: "flex items-center", children: [code ? jsx(ImgInner, { image: { icon: CURRENCY_ICONS_MAP[code] }, width: "24", height: "24" }) : null, jsx("span", { className: "ml-2", children: code })] }) }), jsx("td", { className: "pt-4 pl-11", children: formatCurrency(exchangeCurrencyItem?.sell) }), jsx("td", { className: "pt-4 pl-11", children: formatCurrency(exchangeCurrencyItem?.buy) })] }, code));
|
|
2031
1851
|
};
|
|
2032
1852
|
|
|
2033
|
-
const CurrentLocation = JSX(({ className = '', address, distance }) => (jsxs("div", { className: `flex ${className}`, children: [jsx(
|
|
1853
|
+
const CurrentLocation = JSX(({ className = '', address, distance }) => (jsxs("div", { className: `flex ${className}`, children: [jsx(ImgInner, { image: { icon: 'GpsIcon' }, width: "24", height: "24", asSVG: true }), jsxs("div", { className: "ml-3", children: [address ? jsx("p", { className: "text-primary-main m-0 mb-1 text-l", children: address }) : null, distance ? (jsxs("p", { className: "text-secondary-text m-0 text-m-light", children: ["\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0431\u043B\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043E \u043E\u0444\u0438\u0441\u0430 - ", distance] })) : null] })] })));
|
|
1854
|
+
|
|
1855
|
+
function useOutsideClick(wrapperRef, setIsOpen) {
|
|
1856
|
+
useEffect(() => {
|
|
1857
|
+
function handleClickOutside(event) {
|
|
1858
|
+
if (wrapperRef &&
|
|
1859
|
+
wrapperRef.current &&
|
|
1860
|
+
event.target instanceof HTMLElement &&
|
|
1861
|
+
!wrapperRef.current.contains(event.target)) {
|
|
1862
|
+
setIsOpen(false);
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
document.addEventListener('click', handleClickOutside);
|
|
1866
|
+
return () => {
|
|
1867
|
+
document.removeEventListener('click', handleClickOutside);
|
|
1868
|
+
};
|
|
1869
|
+
}, []);
|
|
1870
|
+
}
|
|
2034
1871
|
|
|
2035
1872
|
const Select = JSX(({ className = '', isBorder = true, label, options = [], value, onChange, placeholder = '' }) => {
|
|
2036
1873
|
const [selectedItem, setSelectedItem] = useState(options[0] || { key: '', text: '' });
|
|
2037
1874
|
const [isOpen, setIsOpen] = useState(false);
|
|
1875
|
+
const wrapperRef = useRef(null);
|
|
1876
|
+
useOutsideClick(wrapperRef, setIsOpen);
|
|
2038
1877
|
const choiceOption = (option) => {
|
|
2039
1878
|
setSelectedItem(option);
|
|
2040
1879
|
setIsOpen(false);
|
|
@@ -2044,7 +1883,7 @@
|
|
|
2044
1883
|
useEffect(() => {
|
|
2045
1884
|
setSelectedItem(value || { key: '', text: '' });
|
|
2046
1885
|
}, [value]);
|
|
2047
|
-
return (jsxs("div", { className: `${className}`, children: [label ? jsx("span", { className: "mb-2 flex", children: label }) : null, jsxs("div", { className: `relative ${isOpen ? 'z-20' : 'z-10'}`, children: [jsxs("div", { className: `text-
|
|
1886
|
+
return (jsxs("div", { className: `${className}`, ref: wrapperRef, children: [label ? jsx("span", { className: "mb-2 flex", children: label }) : null, jsxs("div", { className: `relative ${isOpen ? 'z-20' : 'z-10'}`, children: [jsxs("div", { className: `text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer
|
|
2048
1887
|
${getBorderStyle(isBorder)}`, onClick: () => setIsOpen(!isOpen), children: [jsx("p", { className: "p-4 pr-8 h-[56px] overflow-hidden text-ellipsis whitespace-nowrap", children: selectedItem?.text || placeholder }), jsx(Icon, { name: "ArrowUpIcon", width: "16", height: "16", className: `absolute right-3 ${isOpen ? '' : 'rotate-180'}` })] }), options?.length ? (jsx("div", { className: `h-0 ${renderOptionsStyle(isOpen)}`, children: jsx("div", { className: `bg-white text-l max-h-[256px] overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]`, children: options.map(renderOption(choiceOption, isOpen, isSelected)) }) })) : null] })] }));
|
|
2049
1888
|
});
|
|
2050
1889
|
const renderOptionsStyle = (isOpen) => (isOpen ? '' : 'overflow-hidden');
|
|
@@ -2059,7 +1898,7 @@
|
|
|
2059
1898
|
const { placeholder, rates, selected, value, setValue, setSelected } = props;
|
|
2060
1899
|
const ratesOptions = rates.map((_) => ({ key: _.code ?? '', text: _.code ?? '' }));
|
|
2061
1900
|
const selectedValue = { key: selected, text: selected };
|
|
2062
|
-
return (jsxs("div", { className: "relative flex", children: [jsx(Input, { className: "shrink-0
|
|
1901
|
+
return (jsxs("div", { className: "relative flex", children: [jsx(Input, { className: "shrink-0 text-l w-full appearance-none mr-[-90px]", placeholder: placeholder, type: "text", value: value, onChange: setValue }), ratesOptions.length ? (jsx(Select, { isBorder: false, onChange: (_) => setSelected(_.key), options: ratesOptions, value: selectedValue })) : null] }));
|
|
2063
1902
|
}
|
|
2064
1903
|
|
|
2065
1904
|
const calculateResult = (value, rate, precision) => {
|
|
@@ -2179,7 +2018,7 @@
|
|
|
2179
2018
|
transparent: 'text-white',
|
|
2180
2019
|
};
|
|
2181
2020
|
const Logo = JSX(({ className = '', href, logo, children = logo?.title, targetBlank, bgColor = 'bg-white', showTitle = true, }) => {
|
|
2182
|
-
return (jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || '/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [logo?.image?.src ? (jsx(
|
|
2021
|
+
return (jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || '/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [logo?.image?.src ? (jsx(ImgInner, { image: logo.image, className: SVG_COLOR[bgColor], width: "40", height: "45", asSVG: true })) : (jsx(ImgInner, { image: { icon: 'LogoIcon', iconVersion: ICON_VERSION_MAP[bgColor] }, className: `${SVG_COLOR[bgColor]} w-10`, width: "40", height: "45", asSVG: true })), showTitle ? renderTitle$1(children, bgColor, logo?.title) : null] }));
|
|
2183
2022
|
});
|
|
2184
2023
|
const renderTitle$1 = (children, bgColor, title) => {
|
|
2185
2024
|
const text = children || title || 'Россельхозбанк';
|
|
@@ -2200,11 +2039,11 @@
|
|
|
2200
2039
|
const SearchBarLabelClassName = isMobile ? 'text-s' : 'text-l-light';
|
|
2201
2040
|
const SearchBarInputClassName = isMobile ? ' placeholder-transparent' : 'h-full';
|
|
2202
2041
|
const inputPlaceholder = isMobile ? 'some search' : undefined;
|
|
2203
|
-
return (jsxs("form", { className: `font-sans relative ${className}`, children: [jsxs("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: [jsx("div", { className: LoupeIconClassName, children: jsx(
|
|
2042
|
+
return (jsxs("form", { className: `font-sans relative ${className}`, children: [jsxs("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: [jsx("div", { className: LoupeIconClassName, children: jsx(ImgInner, { image: "LoupeIcon", width: "24", height: "24" }) }), term ? null : (jsx("label", { htmlFor: "search-bar-input", className: `text-secondary-text ${SearchBarLabelClassName}`, children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443" }))] }), jsx("input", { id: "search-bar-input", className: `h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border
|
|
2204
2043
|
outline-none pr-[6%] border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text ${SearchBarInputClassName}`, value: term, onChange: (e) => setTerm(e.target.value), type: "text", name: "search-bar-input", placeholder: inputPlaceholder }), isMobile ? (jsx("button", { className: "visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none", onClick: (e) => {
|
|
2205
2044
|
e.preventDefault();
|
|
2206
2045
|
setTerm('');
|
|
2207
|
-
}, children: jsx(
|
|
2046
|
+
}, children: jsx(ImgInner, { image: "CloseIcon", width: "24", height: "24" }) })) : (jsx(Button, { version: "primary", text: "\u041D\u0430\u0439\u0442\u0438", className: "invisible peer-focus:visible absolute top-[3px] right-1", onClick: (ev) => {
|
|
2208
2047
|
ev?.preventDefault();
|
|
2209
2048
|
console.log('click');
|
|
2210
2049
|
}, children: jsx("div", { className: "text-s px-9 py-2.5", children: "\u041D\u0430\u0439\u0442\u0438" }) }))] }));
|
|
@@ -2221,7 +2060,7 @@
|
|
|
2221
2060
|
text: 'Обратная связь',
|
|
2222
2061
|
href: '/',
|
|
2223
2062
|
target: '_blank',
|
|
2224
|
-
}) })) : null] }));
|
|
2063
|
+
}), ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })) : null] }));
|
|
2225
2064
|
});
|
|
2226
2065
|
const renderContact = (item, index) => {
|
|
2227
2066
|
const { type, text, description } = item;
|
|
@@ -2308,7 +2147,7 @@
|
|
|
2308
2147
|
? 'bg-white hover:bg-secondary-hover'
|
|
2309
2148
|
: 'border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main';
|
|
2310
2149
|
const isPrimary = version === 'primary';
|
|
2311
|
-
return (jsx("a", { className: `flex items-center justify-center rounded-md w-14 h-14 group box-border ${classes} ${isPrimary ? 'hover:text-black' : ''}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", children: icon ? (jsx(
|
|
2150
|
+
return (jsx("a", { className: `flex items-center justify-center rounded-md w-14 h-14 group box-border ${classes} ${isPrimary ? 'hover:text-black' : ''}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", children: icon ? (jsx(ImgInner, { image: icon, imageClassName: "group-hover:text-white", width: "24", height: "24", asSVG: true })) : null }));
|
|
2312
2151
|
});
|
|
2313
2152
|
|
|
2314
2153
|
const SocialMedia = JSX(({ className = '', media, version, context, children }) => {
|
|
@@ -2346,7 +2185,7 @@
|
|
|
2346
2185
|
return (jsxs("div", { className: "w-full flex flex-col justify-center mt-13", children: [jsx("div", { className: "flex w-full mb-3 text-h6 text-center", children: mappedCalendar.map((_) => renderMonthNames(_, colSize)) }), jsx("div", { className: "flex w-full", children: mappedCalendar.map((_, ind) => (jsxs("div", { className: "pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0", style: { flexBasis: _.flexBasis }, children: [jsx("div", { className: "flex", children: renderMonthImages(_) }), jsxs("div", { className: "text-s-light text-primary-text mt-3", children: [jsx("span", { children: _.text }), "\u2009", jsx("span", { className: "text-primary-main", children: _.greenText })] })] }, `monthItem-${ind}`))) })] }));
|
|
2347
2186
|
};
|
|
2348
2187
|
const renderMonthNames = (item, colSize) => item.month?.map((_, i) => (jsx("div", { style: { flexBasis: `${colSize}%` }, children: _.name }, `monthName-${i}`)));
|
|
2349
|
-
const renderMonthImages = (item) => item.month?.map((_) => _.image?.src ? (jsx("div", { className: "h-[207px] border-r-[1px] pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0", children: jsx(
|
|
2188
|
+
const renderMonthImages = (item) => item.month?.map((_) => _.image?.src ? (jsx("div", { className: "h-[207px] border-r-[1px] pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0", children: jsx(ImgInner, { image: _.image, className: "flex" }) }, `monthImage-${_.image.src}`)) : null);
|
|
2350
2189
|
|
|
2351
2190
|
const checkIsHrefSameOrigin = (href, router) => getOrigin(href) === getOrigin(router.href);
|
|
2352
2191
|
|
|
@@ -2410,7 +2249,7 @@
|
|
|
2410
2249
|
};
|
|
2411
2250
|
const HeaderSecondaryMenu = JSX(({ className, defaultLocation = '', bgColor = 'bg-white' }) => {
|
|
2412
2251
|
const [city, getCity] = useGeolocation(defaultLocation);
|
|
2413
|
-
return (jsxs("div", { className: `flex items-center ${className || ''}`, children: [jsx(TopItem, { className: "mr-5", flat: true, href: "#", text: city, ariaLabel: "\u041C\u0435\u0441\u0442\u043E\u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435", onClick: getCity, bgColor: bgColor }), jsx(TopItem, { className: "mr-7", flat: true, href: "#", text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B", ariaLabel: "\u0421\u043F\u0438\u0441\u043E\u043A \u0432\u0441\u0435\u0445 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u043E\u0444\u0438\u0441\u043E\u0432 \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u043E\u0432", bgColor: bgColor }), jsx(HeaderSecondaryMenuButton, { className: `mr-5 group ${COLORS_MAP[bgColor]}`, ariaLabel: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443", children: jsx(
|
|
2252
|
+
return (jsxs("div", { className: `flex items-center ${className || ''}`, children: [jsx(TopItem, { className: "mr-5", flat: true, href: "#", text: city, ariaLabel: "\u041C\u0435\u0441\u0442\u043E\u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435", onClick: getCity, bgColor: bgColor }), jsx(TopItem, { className: "mr-7", flat: true, href: "#", text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B", ariaLabel: "\u0421\u043F\u0438\u0441\u043E\u043A \u0432\u0441\u0435\u0445 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u043E\u0444\u0438\u0441\u043E\u0432 \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u043E\u0432", bgColor: bgColor }), jsx(HeaderSecondaryMenuButton, { className: `mr-5 group ${COLORS_MAP[bgColor]}`, ariaLabel: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443", children: jsx(ImgInner, { image: { icon: 'LoupeIcon', iconVersion: LINKS_ICON_VERSION_MAP[bgColor] }, className: "h-full pointer-events-none", imageClassName: "group-hover:text-primary-hover group-hover:invert-0 pointer-events-none", asSVG: true }) }), jsx(HeaderSecondaryMenuButton, { className: `${LINKS_COLORS_MAP[bgColor]} group min-w-[32px] min-h-[32px]`, ariaLabel: "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0441\u0441\u044B\u043B\u043A\u0438", children: jsx(ImgInner, { image: { icon: 'GridIcon', iconVersion: LINKS_ICON_VERSION_MAP[bgColor] }, className: "h-full bg-main-divider/20 rounded-full pointer-events-none", imageClassName: "group-hover:text-primary-hover group-hover:invert-0", asSVG: true }) })] }));
|
|
2414
2253
|
});
|
|
2415
2254
|
|
|
2416
2255
|
const maxBy = (discriminator) => (list) => list.reduceRight((a, b) => (discriminator(a) > discriminator(b) ? a : b));
|
|
@@ -2458,7 +2297,7 @@
|
|
|
2458
2297
|
const HeaderSubMenu = JSX(({ context, subItems = [], bgColor }) => {
|
|
2459
2298
|
const [menuVisible, setMenuVisible] = useState(false);
|
|
2460
2299
|
const router = context.useRouter();
|
|
2461
|
-
const { handlerDecorator
|
|
2300
|
+
const { handlerDecorator } = context;
|
|
2462
2301
|
const [visibleItemsCount, setVisibleItemsCount] = useState(subItems.length);
|
|
2463
2302
|
const dropDownMenuItems = subItems.slice(visibleItemsCount);
|
|
2464
2303
|
const activeSubItem = findActiveSubItem(router)(subItems);
|
|
@@ -2537,13 +2376,13 @@
|
|
|
2537
2376
|
const btnClassName = isActiveBtn
|
|
2538
2377
|
? 'shadow-dark-blue/42 border-primary-main'
|
|
2539
2378
|
: `ease-in duration-300 border-main-stroke`;
|
|
2540
|
-
return (jsxs("button", { type: "button", onClick: onClick, className: `p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative ${btnClassName}`, children: [slide?.icon ? (jsx(
|
|
2379
|
+
return (jsxs("button", { type: "button", onClick: onClick, className: `p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative ${btnClassName}`, children: [slide?.icon ? (jsx(ImgInner, { className: "p-5 rounded-full bg-secondary-light mr-[30px]", image: slide.icon, width: "108", height: "108" })) : null, jsxs("div", { className: "flex gap-3.5", children: [slide?.sum ? renderValueBlock('страховая сумма', slide.sum) : null, slide?.fee ? renderValueBlock('страховой взнос', slide.fee) : null] }), renderDoneIcon(isActiveBtn)] }, String(i)));
|
|
2541
2380
|
}
|
|
2542
2381
|
function renderValueBlock(title, sum) {
|
|
2543
2382
|
return (jsxs("div", { className: "flex flex-col text-left whitespace-pre", children: [jsxs("span", { className: "text-h6", children: [addSpacesBetweenNumbers(sum), " \u20BD"] }), jsx("span", { className: "text-secondary-text text-l mt-1", children: title })] }));
|
|
2544
2383
|
}
|
|
2545
2384
|
function renderDoneIcon(isActive) {
|
|
2546
|
-
return isActive ? (jsx(
|
|
2385
|
+
return isActive ? (jsx(ImgInner, { className: `h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4`, image: "DoneIcon", width: "24", height: "24" })) : null;
|
|
2547
2386
|
}
|
|
2548
2387
|
|
|
2549
2388
|
const InsuranceAmountBlock = JSX(({ className = '', context, title, insuranceTabs = [], button, ...rest }) => {
|
|
@@ -2582,58 +2421,24 @@
|
|
|
2582
2421
|
${getTileMinHeight(className)}
|
|
2583
2422
|
${VersionStyleMap[version]}
|
|
2584
2423
|
${className}`, ...rest, children: [jsx(BaseTile, { context: context, className: "z-10", title: title ? (jsx(Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap max-w-[509px] mb-6
|
|
2585
|
-
${textColorClass}` })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttonsWithClass, className: "flex gap-4" })) : null, children: jsxs("div", { className: "flex flex-1 items-center", children: [qr?.src ? (jsx("div", { className: `flex justify-center mr-5 bg-white rounded-md ${containerStyle}`, children: jsx(
|
|
2424
|
+
${textColorClass}` })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttonsWithClass, className: "flex gap-4" })) : null, children: jsxs("div", { className: "flex flex-1 items-center", children: [qr?.src ? (jsx("div", { className: `flex justify-center mr-5 bg-white rounded-md ${containerStyle}`, children: jsx(ImgInner, { className: "w-fit", image: qr, alt: "QR-\u043A\u043E\u0434" }) })) : null, renderList(version, items)] }) }), image?.src ? (jsx("div", { className: "absolute right-0 bottom-0", children: jsx(ImgInner, { image: image }) })) : null] }));
|
|
2586
2425
|
});
|
|
2587
2426
|
const renderList = (version, items) => {
|
|
2588
|
-
return items?.length ? (jsx(List, { items: items, itemClassName: "text-l-light mb-2 last:mb-0", version: version
|
|
2427
|
+
return items?.length ? (jsx(List, { items: items, itemClassName: "text-l-light mb-2 last:mb-0", version: version })) : (jsx("span", { className: "text-m-light text-secondary-text", children: "\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0430\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u043D\u0430 QR-\u043A\u043E\u0434 \u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }));
|
|
2589
2428
|
};
|
|
2590
2429
|
|
|
2591
2430
|
const OfficeServicesBlock = JSX(({ className = '', context, title, servicesList, anchor = '', ...rest }) => {
|
|
2592
2431
|
return (jsxs(BlockWrapper, { context: context, id: anchor, className: `font-sans bg-white p-8 flex flex-col ${className}`, ...rest, children: [title ? jsx(Heading, { headingType: "h5", className: "mb-5", title: title }) : null, servicesList?.length ? servicesList.map(renderListItems) : null] }));
|
|
2593
2432
|
});
|
|
2594
|
-
const renderListItems = (itemList, i) => (jsxs("li", { className: "flex mb-5 last:mb-0 list-none", children: [itemList.icon ? (jsx(
|
|
2595
|
-
|
|
2596
|
-
const foldableBlockClassNames = 'transition-all duration-300 max-h-0 overflow-hidden';
|
|
2597
|
-
const useActiveHandler = ({ initialState = false }) => {
|
|
2598
|
-
const [isActive, setIsActive] = useState(initialState);
|
|
2599
|
-
const icon = isActive ? 'ArrowUpIcon' : 'ArrowDownIcon';
|
|
2600
|
-
const handleToggle = (e) => {
|
|
2601
|
-
const currentTarget = e.currentTarget;
|
|
2602
|
-
if (!currentTarget) {
|
|
2603
|
-
return;
|
|
2604
|
-
}
|
|
2605
|
-
setIsActive(!isActive);
|
|
2606
|
-
const wrapperBlock = currentTarget.previousSibling;
|
|
2607
|
-
const contentBlock = wrapperBlock.getElementsByClassName(foldableBlockClassNames)[0];
|
|
2608
|
-
contentBlock.style.maxHeight = contentBlock.style.maxHeight
|
|
2609
|
-
? ''
|
|
2610
|
-
: `${contentBlock.scrollHeight}px`;
|
|
2611
|
-
};
|
|
2612
|
-
return { icon, handleToggle, isActive };
|
|
2613
|
-
};
|
|
2614
|
-
|
|
2615
|
-
const Foldable = JSX(({ blocks = [], hiddenBlocksNum = 0, foldButtonClasses, foldButtonLabel, foldButtonDataTheme, isUnfolded, containerClasses, render = (_) => _, }) => {
|
|
2616
|
-
const blocksToHide = clamp(hiddenBlocksNum, 0, blocks.length);
|
|
2617
|
-
const { icon, handleToggle, isActive } = useActiveHandler({
|
|
2618
|
-
initialState: isUnfolded,
|
|
2619
|
-
});
|
|
2620
|
-
const buttonClassName = foldButtonClasses ||
|
|
2621
|
-
'border-none bg-primary-main hover:bg-primary-hover focus:bg-primary-main active:bg-primary-active px-0 py-5 mb-[1px] w-full font-sans text-white text-h4 flex justify-center cursor-pointer';
|
|
2622
|
-
const getFoldButtonLabel = isActive ? 'Скрыть' : foldButtonLabel;
|
|
2623
|
-
return blocks ? (jsxs("div", { children: [renderBlocks(blocks, render, { blocksToHide, isActive, containerClasses }), hiddenBlocksNum ? (jsxs("button", { className: buttonClassName, "data-theme": foldButtonDataTheme, onClick: handleToggle, children: [jsx("span", { className: "pr-3", children: getFoldButtonLabel }), icon ? (jsx(Icon, { className: "my-auto", name: icon, iconVersion: "white", width: "20", height: "20", asSVG: true })) : null] })) : null] })) : null;
|
|
2624
|
-
});
|
|
2625
|
-
const renderBlocks = (blocks, render, { blocksToHide, isActive, containerClasses = '' }) => {
|
|
2626
|
-
const visibleBlocks = blocks.slice(0, blocks.length - blocksToHide);
|
|
2627
|
-
const hiddenBlocks = blocksToHide > 0 ? blocks.slice(-blocksToHide) : [];
|
|
2628
|
-
return render(jsxs("div", { children: [visibleBlocks, jsx("div", { className: `${foldableBlockClassNames} ${containerClasses}`, children: hiddenBlocks })] }), isActive);
|
|
2629
|
-
};
|
|
2433
|
+
const renderListItems = (itemList, i) => (jsxs("li", { className: "flex mb-5 last:mb-0 list-none", children: [itemList.icon ? (jsx(ImgInner, { className: "mr-3 min-w-6 min-h-6 w-6 h-6", width: "24", height: "24", asSVG: true, image: itemList.icon })) : null, itemList.label ? jsx("span", { className: "text-l-light", children: itemList.label }) : null] }, `list_item_${String(i)}`));
|
|
2630
2434
|
|
|
2631
|
-
const
|
|
2435
|
+
const icons = ['ArrowDownIcon', 'ArrowUpIcon'];
|
|
2436
|
+
const OtherProductsItem = JSX(({ label = '', blocks, context, dataTheme, isUnfolded }) => {
|
|
2632
2437
|
const foldableBlocks = renderBlocksList$1({
|
|
2633
2438
|
context,
|
|
2634
2439
|
blocks,
|
|
2635
2440
|
});
|
|
2636
|
-
return (jsx("div", { className: "
|
|
2441
|
+
return (jsx("div", { className: "\u02DDborder-0 border-b border-solid border-main-divider", children: blocks?.length ? (jsx(Foldable, { blocks: foldableBlocks, hiddenBlocksNum: blocks?.length, unfoldedByDefault: isUnfolded, containerClassName: "grid grid-cols-12 gap-1 border-box", blockWrapper: (children) => jsx(Wrapper$1, { children: children }), renderFoldButton: (props) => (jsx(DefaultButton, { icon: icons[Number(props.isUnfolded)], label: label, dataTheme: dataTheme, onClick: props.onToggle })) })) : null }));
|
|
2637
2442
|
});
|
|
2638
2443
|
const Wrapper$1 = JSX(({ children }) => {
|
|
2639
2444
|
return jsx("div", { className: "box-border", children: children });
|
|
@@ -2691,14 +2496,14 @@
|
|
|
2691
2496
|
function renderNavButton({ slide, i, activeSlideIndex, onClick, version }) {
|
|
2692
2497
|
const isActiveBtn = i === activeSlideIndex;
|
|
2693
2498
|
const btnClassName = isActiveBtn
|
|
2694
|
-
? 'bg-white shadow-dark-blue/42 min-w-[
|
|
2499
|
+
? 'bg-white shadow-dark-blue/42 min-w-[350px] border-none p-6'
|
|
2695
2500
|
: `min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur
|
|
2696
2501
|
${VersionStyleMap[version]}`;
|
|
2697
2502
|
const btnTitleClassName = isActiveBtn
|
|
2698
2503
|
? 'text-primary-text !text-h6 p-2'
|
|
2699
2504
|
: `text-l pb-1 ${productBlockStyleMap[version].title}`;
|
|
2700
2505
|
const btnDescClassName = isActiveBtn
|
|
2701
|
-
? 'text-secondary-text text-l-light
|
|
2506
|
+
? 'text-secondary-text text-l-light'
|
|
2702
2507
|
: `text-m-light ${productBlockStyleMap[version].text}`;
|
|
2703
2508
|
const additionalBorder = version === 'secondary' ? 'border-white/50' : 'border-black/50';
|
|
2704
2509
|
return (jsx("button", { type: "button", onClick: onClick, "aria-label": slide?.title, className: `box-border relative overflow-hidden border border-white/50 cursor-pointer text-left mx-1 grow basis-0
|
|
@@ -2721,7 +2526,7 @@
|
|
|
2721
2526
|
|
|
2722
2527
|
const RecommendationCard = JSX(({ context, className = '', title, description, items, image, version, socialMedia }) => {
|
|
2723
2528
|
const tileTitle = title ? (jsx(Heading, { headingType: "h5", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
|
|
2724
|
-
const tileImage = image?.src ? (jsx(
|
|
2529
|
+
const tileImage = image?.src ? (jsx(ImgInner, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
|
|
2725
2530
|
return (jsx("section", { className: `relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${className}`, role: "listitem", children: jsx(BaseTile, { context: context, className: "flex justify-between", title: tileTitle, image: tileImage, children: jsxs("div", { className: "h-full flex flex-col justify-between", children: [description ? jsx(Description, { className: "mb-2", description: description }) : null, items?.length ? (jsx(List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items, version: version })) : null, socialMedia ? (jsx(SocialMedia, { className: "pt-10 pb-0", media: socialMedia, version: version, context: context })) : null] }) }) }));
|
|
2726
2531
|
});
|
|
2727
2532
|
|
|
@@ -2758,15 +2563,14 @@
|
|
|
2758
2563
|
};
|
|
2759
2564
|
|
|
2760
2565
|
const SAFEBOXES_URL = '/api/v1/safeboxes';
|
|
2761
|
-
|
|
2566
|
+
const EMPTY_VALUE = [];
|
|
2567
|
+
function useSafeBoxes(regionCode) {
|
|
2762
2568
|
const { data } = useAsyncData(regionCode ? `${SAFEBOXES_URL}?regionCode=${regionCode}` : null, fetchSafeBoxes);
|
|
2763
|
-
return data ||
|
|
2569
|
+
return data || EMPTY_VALUE;
|
|
2764
2570
|
}
|
|
2765
|
-
const fetchSafeBoxes = (url) => {
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
}
|
|
2769
|
-
return fetchJSON(url, { method: 'GET' });
|
|
2571
|
+
const fetchSafeBoxes = async (url) => {
|
|
2572
|
+
const result = await fetchJSON(url, { method: 'GET' });
|
|
2573
|
+
return result || EMPTY_VALUE;
|
|
2770
2574
|
};
|
|
2771
2575
|
|
|
2772
2576
|
const WrapperSelect = JSX(({ data, fieldLabel, fieldValue, selected, placeholder = '', setSelected, label }) => {
|
|
@@ -2781,7 +2585,7 @@
|
|
|
2781
2585
|
return (jsxs("div", { className: "flex justify-between gap-4 mb-6", children: [jsx("div", { className: "max-w-[396px] w-1/2", children: jsx(WrapperSelect, { data: regions, fieldValue: "code", fieldLabel: "name", selected: selectedRegion, setSelected: onSelectedRegion, label: "\u0420\u0435\u0433\u0438\u043E\u043D" }) }), jsx("div", { className: "max-w-[396px] w-1/2", children: jsx(WrapperSelect, { data: branches, fieldValue: "branchCode", fieldLabel: "address", selected: selectedBranch, setSelected: onSelectedBranch, label: "\u041E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435" }) })] }));
|
|
2782
2586
|
});
|
|
2783
2587
|
|
|
2784
|
-
const Radio = JSX(({ name, text, value, checked, onChange, className }) => (jsx("div", { className: className, children: jsxs("label", { className: "flex items-center relative cursor-pointer", children: [jsx("input", { className: "appearance-none flex justify-center items-center shrink-0 w-5 h-5 border-
|
|
2588
|
+
const Radio = JSX(({ name, text, value, checked, onChange, className }) => (jsx("div", { className: className, children: jsxs("label", { className: "flex items-center relative cursor-pointer", children: [jsx("input", { className: "appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-checkbox-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer", type: "radio", value: value, name: name, checked: checked, onChange: onChange }), text ? jsx("span", { className: "font-sans ml-3 cursor-pointer", children: text }) : null] }) })));
|
|
2785
2589
|
|
|
2786
2590
|
const RenderRadioButtons = JSX(() => {
|
|
2787
2591
|
const [selectedOption, setSelectedOption] = useState('option2');
|
|
@@ -2798,23 +2602,11 @@
|
|
|
2798
2602
|
return (jsxs("div", { className: "flex justify-between mb-6", children: [jsx("div", { className: "mr-4 w-full", children: jsx(WrapperSelect, { data: caseVolumes, fieldLabel: "volume", selected: selectedCaseVolume, setSelected: onSelectedCaseVolume, label: "\u0420\u0430\u0437\u043C\u0435\u0440", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0430\u0437\u043C\u0435\u0440" }) }), jsx("div", { className: "w-full", children: jsx(WrapperSelect, { data: safeBoxCases, fieldLabel: "safeBoxCasesSize", selected: selectedBoxSize, setSelected: onSelectedBoxSize, label: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u044F\u0447\u0435\u0439\u043A\u0438, \u043C\u043C (\u0412\u0445\u0428\u0445\u0414)", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 \u044F\u0447\u0435\u0439\u043A\u0438" }) })] }));
|
|
2799
2603
|
});
|
|
2800
2604
|
|
|
2801
|
-
const
|
|
2802
|
-
|
|
2803
|
-
return data.map((_) => _.gpsLatitude && _.gpsLongitude ? [_.gpsLatitude, _.gpsLongitude] : []);
|
|
2804
|
-
}
|
|
2805
|
-
if (data?.gpsLatitude && data?.gpsLongitude) {
|
|
2806
|
-
return [[data.gpsLatitude, data.gpsLongitude]];
|
|
2807
|
-
}
|
|
2808
|
-
return [];
|
|
2809
|
-
};
|
|
2810
|
-
const getBranch = (branches, selectedBranch) => branches.find((_) => _.branchCode === selectedBranch);
|
|
2811
|
-
|
|
2812
|
-
const SafeDepositRentalFields = JSX(({ regions, selectedRegion, branches, selectedBranch, days, selectedCaseVolume, selectedBoxSize, safeBoxCases, caseVolumes, setPoints, onChange, toggleShowMap, }) => {
|
|
2813
|
-
return (jsxs("div", { className: "flex-1 mr-9", children: [jsx(RegionsAndBranches, { regions: regions, selectedRegion: selectedRegion, onSelectedRegion: (value) => onChange({ selectedRegion: value }), branches: branches, selectedBranch: selectedBranch, onSelectedBranch: onSelectedBranch(onChange, setPoints, branches) }), jsx(RentalPeriod, { days: days, setDays: (value) => onChange({ days: value }) }), jsx(SafeBoxCases, { caseVolumes: caseVolumes, selectedCaseVolume: selectedCaseVolume, onSelectedCaseVolume: onSelectedCaseVolume(onChange), safeBoxCases: safeBoxCases, selectedBoxSize: selectedBoxSize, onSelectedBoxSize: (value) => onChange({ selectedBoxSize: value }) }), jsx("span", { className: "text-secondary-text text-l-light", children: "\u0422\u0438\u043F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u0430" }), jsxs("div", { className: "flex justify-between items-center mt-5", children: [jsx(RenderRadioButtons, {}), jsx(Button, { text: "\u041E\u0444\u0438\u0441\u044B \u043D\u0430 \u043A\u0430\u0440\u0442\u0435", version: "primary", onClick: toggleShowMap })] })] }));
|
|
2605
|
+
const SafeDepositRentalFields = JSX(({ regions, selectedRegion, branches, selectedBranch, days, selectedCaseVolume, selectedBoxSize, safeBoxCases, caseVolumes, onChange, onShowMapToggle, }) => {
|
|
2606
|
+
return (jsxs("div", { className: "flex-1 mr-9", children: [jsx(RegionsAndBranches, { regions: regions, selectedRegion: selectedRegion, onSelectedRegion: (value) => onChange({ selectedRegion: value }), branches: branches, selectedBranch: selectedBranch, onSelectedBranch: onSelectedBranch(onChange) }), jsx(RentalPeriod, { days: days, setDays: (value) => onChange({ days: value }) }), jsx(SafeBoxCases, { caseVolumes: caseVolumes, selectedCaseVolume: selectedCaseVolume, onSelectedCaseVolume: onSelectedCaseVolume(onChange), safeBoxCases: safeBoxCases, selectedBoxSize: selectedBoxSize, onSelectedBoxSize: (value) => onChange({ selectedBoxSize: value }) }), jsx("span", { className: "text-secondary-text text-l-light", children: "\u0422\u0438\u043F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u0430" }), jsxs("div", { className: "flex justify-between items-center mt-5", children: [jsx(RenderRadioButtons, {}), jsx(Button, { text: "\u041E\u0444\u0438\u0441\u044B \u043D\u0430 \u043A\u0430\u0440\u0442\u0435", version: "primary", onClick: onShowMapToggle })] })] }));
|
|
2814
2607
|
});
|
|
2815
|
-
const onSelectedBranch = (onChange
|
|
2608
|
+
const onSelectedBranch = (onChange) => (value) => {
|
|
2816
2609
|
onChange({ selectedBranch: value, selectedCaseVolume: '', selectedBoxSize: '' });
|
|
2817
|
-
setPoints(getCoordinates(value ? getBranch(branches, value) : branches));
|
|
2818
2610
|
};
|
|
2819
2611
|
const onSelectedCaseVolume = (onChange) => (value) => {
|
|
2820
2612
|
onChange({ selectedCaseVolume: value, selectedBoxSize: '' });
|
|
@@ -2822,7 +2614,7 @@
|
|
|
2822
2614
|
|
|
2823
2615
|
const SafeDepositRentalTotal = JSX(({ days, tariffs = [] }) => {
|
|
2824
2616
|
const price = calculatePrice(days, tariffs);
|
|
2825
|
-
return (jsxs("div", { className: "flex flex-col justify-between", children: [jsxs("div", { className: "flex", children: [renderTotal('Аренда за', days, 'mr-11'), renderTotal('Цена', price + ' ₽')] }), jsxs("div", { className: "bg-primary-main px-10 pt-10 pb-4 text-center", children: [jsx(
|
|
2617
|
+
return (jsxs("div", { className: "flex flex-col justify-between", children: [jsxs("div", { className: "flex", children: [renderTotal('Аренда за', days, 'mr-11'), renderTotal('Цена', price + ' ₽')] }), jsxs("div", { className: "bg-primary-main px-10 pt-10 pb-4 text-center", children: [jsx(ImgInner, { image: { icon: 'PackA4Icon' }, width: "290", height: "257", asSVG: true }), jsxs("span", { className: "text-s-light text-white opacity-80 mt-2 inline-block", children: ["\u041D\u0430 \u0440\u0438\u0441\u0443\u043D\u043A\u0438 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0430 \u043F\u0430\u0447\u043A\u0430", jsx("br", {}), " \u043B\u0438\u0441\u0442\u043E\u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0430 \u04104"] })] })] }));
|
|
2826
2618
|
});
|
|
2827
2619
|
const renderTotal = (label, total, className = '') => {
|
|
2828
2620
|
return (jsxs("div", { className: className, children: [jsx("div", { className: "text-m-light text-secondary-text mb-1", children: label }), jsx("span", { className: "text-h3 text-primary-text", children: total })] }));
|
|
@@ -2848,41 +2640,32 @@
|
|
|
2848
2640
|
return tariffType;
|
|
2849
2641
|
};
|
|
2850
2642
|
|
|
2851
|
-
const
|
|
2643
|
+
const getCoordinates = (data) => {
|
|
2644
|
+
if (Array.isArray(data)) {
|
|
2645
|
+
return data.map((_) => _.gpsLatitude && _.gpsLongitude ? [_.gpsLatitude, _.gpsLongitude] : []);
|
|
2646
|
+
}
|
|
2647
|
+
if (data?.gpsLatitude && data?.gpsLongitude) {
|
|
2648
|
+
return [[data.gpsLatitude, data.gpsLongitude]];
|
|
2649
|
+
}
|
|
2650
|
+
return [];
|
|
2651
|
+
};
|
|
2652
|
+
const getBranch = (branches, selectedBranch) => branches.find((_) => _.branchCode === selectedBranch);
|
|
2653
|
+
|
|
2852
2654
|
const SafeDepositRentalForm = JSX((props) => {
|
|
2853
|
-
const
|
|
2854
|
-
selectedRegion: '',
|
|
2855
|
-
selectedBranch: '',
|
|
2856
|
-
selectedCaseVolume: '',
|
|
2857
|
-
selectedBoxSize: '',
|
|
2858
|
-
days: DEFAULT_DAYS,
|
|
2859
|
-
branches: [],
|
|
2860
|
-
});
|
|
2861
|
-
const resultBranches = useFetchSafeBoxes(safeDepositState.selectedRegion);
|
|
2862
|
-
const handleChangeSafeDepositState = (state) => setStateDepositState((oldState) => ({ ...oldState, ...state }));
|
|
2863
|
-
useEffect(() => handleChangeSafeDepositState({
|
|
2864
|
-
selectedRegion: getInitialValueSelectedRegion(props.regions),
|
|
2865
|
-
}), [props.regions]);
|
|
2655
|
+
const { regions, data, branches, onChange, onShowMapToggle } = props;
|
|
2866
2656
|
useEffect(() => {
|
|
2867
|
-
|
|
2868
|
-
handleChangeSafeDepositState({ branches: resultBranches });
|
|
2869
|
-
props.setPoints(getCoordinates(resultBranches));
|
|
2870
|
-
}
|
|
2871
|
-
}, [resultBranches]);
|
|
2872
|
-
useEffect(() => {
|
|
2873
|
-
handleChangeSafeDepositState({
|
|
2657
|
+
onChange({
|
|
2874
2658
|
selectedBranch: '',
|
|
2875
2659
|
selectedCaseVolume: '',
|
|
2876
2660
|
selectedBoxSize: '',
|
|
2877
2661
|
});
|
|
2878
|
-
}, [
|
|
2879
|
-
const branch = getBranch(
|
|
2662
|
+
}, [data.selectedRegion, onChange]);
|
|
2663
|
+
const branch = getBranch(branches, data.selectedBranch);
|
|
2880
2664
|
const caseVolumes = getCaseVolumes(branch?.safeBoxCaseVolumes);
|
|
2881
|
-
const safeBoxCases = getCaseVolume(branch?.safeBoxCaseVolumes,
|
|
2882
|
-
const tariffs = getTariffs(safeBoxCases,
|
|
2883
|
-
return (jsxs("div", { className: "flex justify-between align-top mb-6", children: [jsx(SafeDepositRentalFields, { ...
|
|
2665
|
+
const safeBoxCases = getCaseVolume(branch?.safeBoxCaseVolumes, data.selectedCaseVolume)?.safeBoxCases;
|
|
2666
|
+
const tariffs = getTariffs(safeBoxCases, data.selectedBoxSize);
|
|
2667
|
+
return (jsxs("div", { className: "flex justify-between align-top mb-6", children: [jsx(SafeDepositRentalFields, { ...data, regions: regions, onShowMapToggle: onShowMapToggle, branches: branches, caseVolumes: caseVolumes, safeBoxCases: safeBoxCases, onChange: onChange }), jsx(SafeDepositRentalTotal, { days: data.days, tariffs: tariffs })] }));
|
|
2884
2668
|
});
|
|
2885
|
-
const getInitialValueSelectedRegion = (regions) => regions?.length && regions[0]?.code ? regions[0].code : '';
|
|
2886
2669
|
const getCaseVolumes = (safeBoxCaseVolumes) => safeBoxCaseVolumes?.length ? safeBoxCaseVolumes?.filter((_) => _?.safeBoxCases?.length) : [];
|
|
2887
2670
|
const getCaseVolume = (caseVolumes, selectedCaseVolume) => caseVolumes?.find((_) => _.volume === selectedCaseVolume);
|
|
2888
2671
|
const getTariffs = (safeBoxCases, selectedBoxSize) => safeBoxCases?.find((_) => _.safeBoxCasesSize === selectedBoxSize)?.tariffs;
|
|
@@ -2989,18 +2772,32 @@
|
|
|
2989
2772
|
return (jsxs("div", { className: "pt-12 mt-1 bg-white", children: [jsx(Heading, { title: "\u041E\u0444\u0438\u0441\u044B \u043D\u0430 \u043A\u0430\u0440\u0442\u0435", headingType: "h3", className: "mb-8 text-center" }), jsx("div", { id: "map", className: "h-[640px]" })] }));
|
|
2990
2773
|
});
|
|
2991
2774
|
|
|
2775
|
+
const DEFAULT_DAYS = 26;
|
|
2992
2776
|
const SafeDepositRental = JSX(({ title, footnote, context, className = '', ...rest }) => {
|
|
2993
|
-
const [points, setPoints] = useState([]);
|
|
2994
2777
|
const [showMap, setShowMap] = useState(false);
|
|
2778
|
+
const [safeDepositState, setStateDepositState] = useState({
|
|
2779
|
+
selectedRegion: '',
|
|
2780
|
+
selectedBranch: '',
|
|
2781
|
+
selectedCaseVolume: '',
|
|
2782
|
+
selectedBoxSize: '',
|
|
2783
|
+
days: DEFAULT_DAYS,
|
|
2784
|
+
});
|
|
2995
2785
|
const regions = useGetRegions();
|
|
2996
|
-
const
|
|
2786
|
+
const selectedRegion = normalizeSelectedRegion(safeDepositState.selectedRegion, regions);
|
|
2787
|
+
const branches = useSafeBoxes(selectedRegion);
|
|
2788
|
+
const handleChangeSafeDepositState = useCallback((state) => setStateDepositState((oldState) => ({ ...oldState, ...state })), [setStateDepositState]);
|
|
2789
|
+
const onShowMapToggle = () => {
|
|
2997
2790
|
setShowMap(!showMap);
|
|
2998
2791
|
};
|
|
2999
|
-
|
|
2792
|
+
const points = getCoordinates(getBranch(branches, safeDepositState.selectedBranch) || branches);
|
|
2793
|
+
return (jsxs(BlockWrapper, { context: context, className: className, ...rest, children: [jsxs("div", { className: "font-sans bg-white px-8 py-12", children: [title ? (jsx(Heading, { title: title, headingType: "h3", as: "h2", className: "mb-2.5 text-center" })) : null, jsx(SafeDepositRentalForm, { regions: regions, branches: branches, data: { ...safeDepositState, selectedRegion }, onShowMapToggle: onShowMapToggle, onChange: handleChangeSafeDepositState }), footnote ? jsx("p", { className: "text-s-light text-secondary-text", children: footnote }) : null] }), points.length && showMap ? jsx(YandexMap, { points: points }) : null] }));
|
|
3000
2794
|
});
|
|
2795
|
+
const normalizeSelectedRegion = (selectedRegion, regions) => !selectedRegion && regions?.length && regions[0]?.code ? regions[0].code : selectedRegion;
|
|
3001
2796
|
|
|
3002
2797
|
const checkIsIconRenderable = (icon) => Boolean(icon?.icon || icon?.src);
|
|
3003
2798
|
|
|
2799
|
+
const renderItems = (items, styleMap, isDotted = true) => items ? (jsx("div", { className: `mt-4 ${styleMap?.description}`, role: "list", children: items.map((_) => (jsxs("div", { className: "items-start mt-1 first:mt-0", role: "listitem", children: [isDotted ? (jsx("div", { className: `rounded-full inline-block mr-3 mb-1 w-1.5 h-1.5 min-w-1.5 min-h-1.5 ${styleMap?.dot}` })) : null, jsx("span", { children: _ })] }))) })) : null;
|
|
2800
|
+
|
|
3004
2801
|
const STEPS_BLOCK_STYLE_MAPS = {
|
|
3005
2802
|
primary: {
|
|
3006
2803
|
background: 'bg-white',
|
|
@@ -3009,6 +2806,7 @@
|
|
|
3009
2806
|
iconText: 'text-secondary-text',
|
|
3010
2807
|
iconBackground: 'bg-main-divider',
|
|
3011
2808
|
iconConnector: 'bg-secondary-light',
|
|
2809
|
+
dot: 'bg-secondary-text',
|
|
3012
2810
|
},
|
|
3013
2811
|
secondary: {
|
|
3014
2812
|
background: 'bg-primary-main',
|
|
@@ -3017,10 +2815,12 @@
|
|
|
3017
2815
|
iconText: 'text-white',
|
|
3018
2816
|
iconBackground: 'bg-white/30',
|
|
3019
2817
|
iconConnector: 'bg-white',
|
|
2818
|
+
dot: 'bg-white/80',
|
|
3020
2819
|
},
|
|
3021
2820
|
};
|
|
3022
2821
|
|
|
3023
2822
|
const getLineOpacity = (showLines) => (showLines ? '' : 'opacity-0');
|
|
2823
|
+
const getPaddingX = (steps) => (steps < 5 ? 'px-[88px]' : 'px-[55px]');
|
|
3024
2824
|
const StepsBlock = JSX(({ className = '', showLines = true, steps = [], button, version = 'primary', context, ...rest }) => {
|
|
3025
2825
|
const router = context.useRouter();
|
|
3026
2826
|
const { handlerDecorator } = context;
|
|
@@ -3029,6 +2829,7 @@
|
|
|
3029
2829
|
const shortGaps = steps.length > 3;
|
|
3030
2830
|
const lineOpacity = getLineOpacity(showLines);
|
|
3031
2831
|
const titleMargin = title ? 'mt-9' : '';
|
|
2832
|
+
const paddingX = getPaddingX(steps.length);
|
|
3032
2833
|
return (jsxs(BlockWrapper, { className: [
|
|
3033
2834
|
'box-border font-sans text-primary-text bg-white',
|
|
3034
2835
|
shortGaps ? 'px-20' : 'px-[70px]',
|
|
@@ -3036,7 +2837,7 @@
|
|
|
3036
2837
|
styleMap.background,
|
|
3037
2838
|
styleMap.title,
|
|
3038
2839
|
className,
|
|
3039
|
-
].join(' '), context: context, ...rest, children: [title ? (jsx(Heading, { headingType: "h2", className: "max-w-[752px] text-center", title: title })) : null, steps?.length ? (jsxs("div", { className: `box-border ${titleMargin}`, children: [jsx("div", { className:
|
|
2840
|
+
].join(' '), context: context, ...rest, children: [title ? (jsx(Heading, { headingType: "h2", className: "max-w-[752px] text-center", title: title })) : null, steps?.length ? (jsxs("div", { className: `box-border ${titleMargin}`, children: [jsx("div", { className: `flex items-center ${paddingX}`, children: joinList(jsx("div", { className: `h-0.5 w-full bg-secondary-light ${lineOpacity}` }))(steps.map(renderStepIcon(styleMap))) }), jsx("div", { className: `flex justify-between ${shortGaps ? 'gap-x-3' : 'gap-x-[101px]'}`, children: steps.map(renderStepTitle({
|
|
3040
2841
|
styleMap,
|
|
3041
2842
|
isMainButton: Boolean(button?.text),
|
|
3042
2843
|
version,
|
|
@@ -3046,11 +2847,13 @@
|
|
|
3046
2847
|
});
|
|
3047
2848
|
const renderStepIcon = (styleMap) => ({ icon }, i) => {
|
|
3048
2849
|
return (jsx("div", { className: "flex flex-col items-center text-center", children: jsx("div", { className: `h-[100px] w-[100px] min-w-[100px] min-h-[100px] rounded-full p-[26px] box-border z-10 flex justify-center items-center
|
|
3049
|
-
${styleMap.iconBackground} ${styleMap.title}`, children: checkIsIconRenderable(icon) ? (jsx(
|
|
2850
|
+
${styleMap.iconBackground} ${styleMap.title}`, children: checkIsIconRenderable(icon) ? (jsx(ImgInner, { image: icon, width: "48", height: "48", asSVG: true })) : (jsx("span", { className: `text-h4 ${styleMap.iconText}`, children: i + 1 })) }) }, String(i)));
|
|
3050
2851
|
};
|
|
3051
|
-
const renderStepTitle = ({ styleMap, isMainButton, version, router, handlerDecorator, }) => (step, i) => {
|
|
2852
|
+
const renderStepTitle = ({ styleMap, isMainButton, version, router, handlerDecorator, }) => (step, i, { length }) => {
|
|
3052
2853
|
const additionalMarginClass = step?.label ? 'mt-2' : 'mt-4';
|
|
3053
|
-
|
|
2854
|
+
const widthContainer = length < 5 ? 'w-[276px]' : 'w-[210px]';
|
|
2855
|
+
return (jsxs("div", { className: `flex flex-col items-center text-center relative
|
|
2856
|
+
whitespace-pre-line overflow-hidden ${widthContainer}`, children: [step?.label ? jsx("div", { className: "text-xl m-0 mt-4", children: step.label }) : null, step?.description ? (jsx("div", { className: `text-l-light ${styleMap.description} ${additionalMarginClass}`, children: step.description })) : null, renderItems(step?.items, styleMap, step?.isDotted), step.button?.text && !isMainButton ? (jsx(Button, { className: "box-border mt-8 py-3 h-12 w-full max-w-[240px]", ...useLink({ router, handlerDecorator }, step.button), version: version, children: step.button.text })) : null] }, String(i)));
|
|
3054
2857
|
};
|
|
3055
2858
|
|
|
3056
2859
|
function assertUnreachable(x) {
|
|
@@ -3151,18 +2954,16 @@
|
|
|
3151
2954
|
const handleClick = () => {
|
|
3152
2955
|
EventBus.inst.fire('tariffInnerTable', { dataUrl, pdfUrl, rowIdx, cellIdx, fieldIdx });
|
|
3153
2956
|
};
|
|
3154
|
-
return (jsxs(Button, { version: "primary", onClick: handleClick, className: "w-full flex items-center justify-center rounded-none py-5
|
|
2957
|
+
return (jsxs(Button, { version: "primary", onClick: handleClick, className: "w-full flex items-center justify-center rounded-none py-5", children: [jsx("div", { className: "text-h4", children: isOpen ? 'Скрыть' : 'Показать ставки по вкладу' }), jsx(Icon, { name: isOpen ? 'ArrowUpIcon' : 'ArrowDownIcon', className: "ml-3", iconVersion: "white", width: "20", height: "20", asSVG: true })] }));
|
|
3155
2958
|
});
|
|
3156
2959
|
|
|
3157
|
-
const
|
|
3158
|
-
|
|
3159
|
-
const renderButtonsCellData = ({ buttons }) => buttons && buttons?.length ? (jsx("div", { children: buttons.map(({ icon, rounded, ...buttonProps }, idx) => (jsx(Button, { className: `${idx > 0 && rounded ? 'ml-3' : ''} w-12 h-12`, ariaLabel: getButtonAriaLabel(icon), rounded: rounded, appendLeft: icon?.src || icon?.icon ? jsx(Img, { image: icon, width: "24px", height: "24px", asSVG: true }) : null, ...buttonProps }, String(idx)))) })) : null;
|
|
2960
|
+
const renderButtonsCellData = ({ buttons }) => buttons && buttons?.length ? (jsx("div", { children: buttons.map(({ rounded, ...buttonProps }, idx) => (jsx(Button, { className: `${idx > 0 && rounded ? 'ml-3' : ''} w-12 h-12`, rounded: rounded, ...buttonProps }, String(idx)))) })) : null;
|
|
3160
2961
|
const renderLabelDescriptionCellData = ({ label, description }) => {
|
|
3161
|
-
const labelClassName = `text-h6
|
|
3162
|
-
return (jsxs("div", { children: [label ? jsx("div", { className: labelClassName, children: label }) : null, description ? jsx("div", { className: "text-
|
|
2962
|
+
const labelClassName = `text-h6 m-0 ${description ? 'mb-1' : ''}`;
|
|
2963
|
+
return (jsxs("div", { children: [label ? jsx("div", { className: labelClassName, children: label }) : null, description ? jsx("div", { className: "text-secondary-text text-l-light", children: description }) : null] }));
|
|
3163
2964
|
};
|
|
3164
|
-
const renderImgCellData = ({ image }) => (image?.src ? jsx(
|
|
3165
|
-
const renderListCellData = ({ isDotted, ...rest }) => (jsx(List, { className: "flex flex-col justify-between items-start text-
|
|
2965
|
+
const renderImgCellData = ({ image }) => (image?.src ? jsx(ImgInner, { image: image }) : null);
|
|
2966
|
+
const renderListCellData = ({ isDotted, ...rest }) => (jsx(List, { className: "flex flex-col justify-between items-start text-h6", version: "primary", isDotted: isDotted ?? true, ...rest }));
|
|
3166
2967
|
const renderTableCellData = JSX((props) => {
|
|
3167
2968
|
const [showBtn, setShowBtn] = useState(true);
|
|
3168
2969
|
console.log(props);
|
|
@@ -3186,7 +2987,7 @@
|
|
|
3186
2987
|
return (jsx("div", { className: cellWrapperClasses, role: "cell", children: cells.map(renderCellInner(rowIdx, context, cellIdx)) }));
|
|
3187
2988
|
});
|
|
3188
2989
|
const renderCellInner = (rowIdx, context, cellIdx) => (cell, i) => {
|
|
3189
|
-
return (jsxs("div", { className: cell?.tableCellType === 'Table' ? '
|
|
2990
|
+
return (jsxs("div", { className: cell?.tableCellType === 'Table' ? 'ml-10' : `first:pt-5 last:pb-5 pl-10`, children: [i > 0 ? jsx("div", { className: "h-5" }) : null, renderCell(cell, context, { rowIdx, cellIdx, fieldIdx: i })] }, String(i)));
|
|
3190
2991
|
};
|
|
3191
2992
|
const renderCell = (cell, context, indexes) => {
|
|
3192
2993
|
if (!cell) {
|
|
@@ -3233,11 +3034,15 @@
|
|
|
3233
3034
|
}
|
|
3234
3035
|
const [headerColumn, ...columns] = rowData;
|
|
3235
3036
|
const transform = [...Array(activeColumnIndex).keys()].reduce((res, i) => (columns?.[i]?.cols?.length ?? 1) * COLUMN_WIDTH + res, 0);
|
|
3236
|
-
|
|
3037
|
+
const columnsClassName = [
|
|
3038
|
+
'flex duration-1000 text-center',
|
|
3039
|
+
rowIdx !== 0 ? 'font-normal' : 'font-light',
|
|
3040
|
+
].join(' ');
|
|
3041
|
+
return (jsxs("div", { className: "flex border-main-divider border border-t-0 border-x-0 border-solid", children: [headerColumn?.data ? (jsx("div", { className: `text-xl-light w-[214px] pb-5 ${rowIdx === 0 ? 'pt-8' : 'pt-6'}`, children: headerColumn.data })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsClassName, style: {
|
|
3237
3042
|
transform: `translateX(-${transform}px)`,
|
|
3238
3043
|
}, children: columns?.map((_, i) => (jsxs("div", { className: "flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider", children: [_?.data ? jsx("div", { className: "text-xl-light mb-3", children: _.data }) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
|
|
3239
3044
|
};
|
|
3240
|
-
const renderCols = (cols, rowIndex) => cols ? (jsx("div", { className: `flex
|
|
3045
|
+
const renderCols = (cols, rowIndex) => cols?.length > 0 ? (jsx("div", { className: `flex ${rowIndex} ${rowIndex === 0 ? 'text-secondary-text' : ''} last:mr-3`, children: cols.map((data, i) => (jsx("div", { className: `w-[76px] text-h6 mr-5 first:ml-8`, children: data }, String(i)))) })) : null;
|
|
3241
3046
|
|
|
3242
3047
|
const InnerTableBody = JSX(({ context, activeTabIndex, items }) => {
|
|
3243
3048
|
const [hiddenTables, setHiddenTables] = useState({});
|
|
@@ -3246,11 +3051,11 @@
|
|
|
3246
3051
|
};
|
|
3247
3052
|
return (jsx("div", { children: items.map((_, tableIdx) => {
|
|
3248
3053
|
const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
|
|
3249
|
-
return (jsxs("div", { className: "w-full", children: [jsxs("div", { className: "flex p-4 bg-main-stroke text-xl-light text-center justify-center cursor-pointer relative", onClick: () => toggleTable(key), children: [_.title, jsx(
|
|
3054
|
+
return (jsxs("div", { className: "w-full", children: [jsxs("div", { className: "flex p-4 bg-main-stroke text-xl-light text-center justify-center cursor-pointer relative", onClick: () => toggleTable(key), children: [_.title, jsx(ImgInner, { image: hiddenTables[key] ? 'PlusIcon' : 'MinusIcon', className: "absolute right-[22px]", width: "24", height: "24" })] }), jsx("div", { className: `w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out ${hiddenTables[key] ? 'h-0' : ''}`, children: jsx("div", { className: "relative", children: jsx(InnerTableBodyItem, { context: context, rows: _.rowsData }) }) })] }, key));
|
|
3250
3055
|
}) }));
|
|
3251
3056
|
});
|
|
3252
3057
|
|
|
3253
|
-
const InnerTableHeader = JSX(({ currencies, linkToPDF, activeTabIndex, setActiveTabIndex }) => (jsxs("div", { className: "flex justify-between w-full pt-2.5 pb-3", children: [currencies && currencies.length > 1 ? (jsx("div", { className: "flex bg-secondary-light p-1 rounded-md", children: currencies.map((currency, idx) => (jsx("div", { className: `rounded-md text-xl-light px-4 py-3 cursor-pointer ${idx === activeTabIndex ? 'bg-primary-main text-white' : 'text-secondary-text'}`, onClick: () => setActiveTabIndex(idx), children: currency || idx + 1 }, currency))) })) : null, linkToPDF ? (jsxs(Button, { href: linkToPDF, version: "secondary", className: "flex justify-center items-center text-l-light text-primary-main px-8", children: [jsx(
|
|
3058
|
+
const InnerTableHeader = JSX(({ currencies, linkToPDF, activeTabIndex, setActiveTabIndex }) => (jsxs("div", { className: "flex justify-between w-full pt-2.5 pb-3", children: [currencies && currencies.length > 1 ? (jsx("div", { className: "flex bg-secondary-light p-1.5 rounded-md", children: currencies.map((currency, idx) => (jsx("div", { className: `rounded-md text-xl-light px-4 py-3 cursor-pointer ${idx === activeTabIndex ? 'bg-primary-main text-white' : 'text-secondary-text'}`, onClick: () => setActiveTabIndex(idx), children: currency || idx + 1 }, currency))) })) : null, linkToPDF ? (jsxs(Button, { href: linkToPDF, version: "secondary", className: "flex justify-center items-center text-l-light text-primary-main px-8 max-h-14", target: "_blank", children: [jsx(ImgInner, { image: "DocDownloadIcon", className: "mr-2.5", width: "20", height: "20", asSVG: true }), jsx("span", { children: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432 PDF" })] })) : null] })));
|
|
3254
3059
|
|
|
3255
3060
|
const InnerTable = JSX(({ context, dataUrl, pdfUrl }) => {
|
|
3256
3061
|
const { tableData } = useTariffsInnerTableData(dataUrl);
|
|
@@ -3269,7 +3074,7 @@
|
|
|
3269
3074
|
});
|
|
3270
3075
|
|
|
3271
3076
|
const TariffsTableRow = JSX(({ row: { header, data }, activeCardIndex, isLastRow, context, rowIdx }) => {
|
|
3272
|
-
return (jsxs(TariffsTableRowContainer, { context: context, rowIdx: rowIdx, children: [jsx("div", { className: `text-s py-5 ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES} ${!isLastRow ? 'border-solid' : ''}`, children: jsxs("div", { className: "flex items-center text-primary-text", role: "cell", children: [header?.icon ? (jsx(
|
|
3077
|
+
return (jsxs(TariffsTableRowContainer, { context: context, rowIdx: rowIdx, children: [jsx("div", { className: `text-s py-5 ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES} ${!isLastRow ? 'border-solid' : ''}`, children: jsxs("div", { className: "flex items-center text-primary-text", role: "cell", children: [header?.icon ? (jsx(ImgInner, { className: "mr-[14px] max-w-6 max-h-6", image: header.icon, width: "24px", height: "24px", asSVG: true })) : null, header?.title ? jsx("div", { className: "text-m-light", children: header?.title }) : null] }) }), data?.length ? (jsx(TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: COLUMN_WIDTH$1, version: "tariff", children: data.map((cells, i) => (jsx(TariffsTableCell, { cells: cells, isLastRow: isLastRow, rowIdx: rowIdx, cellIdx: i, context: context }, String(i)))) })) : null] }));
|
|
3273
3078
|
});
|
|
3274
3079
|
|
|
3275
3080
|
const TariffsTable = JSX(({ className = '', context, title, description, rowHeaders, tariffsColumns: columns, hiddenRowsNum = 0, ...rest }) => {
|
|
@@ -3287,7 +3092,7 @@
|
|
|
3287
3092
|
setActiveCardIndex,
|
|
3288
3093
|
});
|
|
3289
3094
|
const foldableBlocks = rowData?.map((row, i, { length }) => (jsx(TariffsTableRow, { context: context, row: row, isLastRow: i + 1 === length, activeCardIndex: activeCardIndex, rowIdx: i }, String(i))));
|
|
3290
|
-
return (jsxs(BlockWrapper, { className: `bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${columnsLength > 1 ? 'pr-0' : ''} ${className}`, context: context, ...rest, children: [title ? (jsx(Heading, { headingType: "
|
|
3095
|
+
return (jsxs(BlockWrapper, { className: `bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${columnsLength > 1 ? 'pr-0' : ''} ${className}`, context: context, ...rest, children: [title ? (jsx(Heading, { headingType: "h3", className: `text-center ${description ? 'mb-2.5' : 'mb-8'}`, title: title })) : null, description ? jsx("div", { className: "mb-9 text-center text-l", children: description }) : null, rowData?.length ? (jsx(Foldable, { blocks: foldableBlocks, hiddenBlocksNum: hiddenRowsNum, blockWrapper: (children) => (jsx(Wrapper, { tableArrowScrollControlProps: tableArrowScrollControlProps, children: children })) })) : null] }));
|
|
3291
3096
|
});
|
|
3292
3097
|
const Wrapper = JSX(({ children, tableArrowScrollControlProps }) => {
|
|
3293
3098
|
const { isScrollAvailable } = tableArrowScrollControlProps;
|