@redneckz/wildless-cms-uni-blocks 0.10.1 → 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/migration-scripts/0.10.2.js +31 -0
- package/bin/migration-scripts/0.10.3.js +19 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +178 -160
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Calculator/constants.d.ts +2 -2
- package/bundle/components/Calculator/rangeHelpers.d.ts +3 -0
- package/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +1 -1
- package/bundle/components/Calculator/useCreditCalculatorParams.d.ts +10 -3
- package/bundle/components/Calculator/useDepositCalculatorParams.d.ts +1 -1
- package/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/bundle/components/Header/HeaderSecondaryMenuButton.d.ts +2 -0
- package/bundle/components/Header/HeaderSubMenu.d.ts +3 -0
- package/bundle/components/Header/InternetBankButton.d.ts +7 -0
- package/bundle/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/bundle/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
- package/bundle/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/bundle/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
- package/bundle/services/sitemap/SitemapData.d.ts +1 -0
- package/bundle/ui-kit/Button/ButtonProps.d.ts +0 -2
- package/bundle/ui-kit/Icon/IconProps.d.ts +0 -2
- package/bundle/ui-kit/YandexMap/renderSearchField.d.ts +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BusinessBlock/BusinessCard.js +2 -2
- package/dist/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +1 -1
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.js +5 -0
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/UnknownRate.js +2 -2
- package/dist/components/Calculator/UnknownRate.js.map +1 -1
- package/dist/components/Calculator/constants.d.ts +2 -2
- package/dist/components/Calculator/constants.js.map +1 -1
- package/dist/components/Calculator/rangeHelpers.d.ts +3 -0
- package/dist/components/Calculator/rangeHelpers.js +10 -3
- package/dist/components/Calculator/rangeHelpers.js.map +1 -1
- package/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +1 -1
- package/dist/components/Calculator/useBusinessDepositCalculatorParams.js +2 -2
- package/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
- package/dist/components/Calculator/useCreditCalculatorParams.d.ts +10 -3
- package/dist/components/Calculator/useCreditCalculatorParams.js +39 -33
- package/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/dist/components/Calculator/useDepositCalculatorParams.d.ts +1 -1
- package/dist/components/Calculator/useDepositCalculatorParams.js +4 -4
- package/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/dist/components/CarouselEventCard/CarouselEventCard.js +1 -2
- package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -2
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -2
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +8 -5
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/dist/components/ComparisonTable/HeaderCell.js +1 -2
- package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +1 -2
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/MediaButton.js +1 -3
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Header/DropdownMenu.js +2 -2
- package/dist/components/Header/DropdownMenu.js.map +1 -1
- package/dist/components/Header/Header.js +2 -2
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/HeaderBurger.js +2 -2
- package/dist/components/Header/HeaderBurger.js.map +1 -1
- package/dist/components/Header/HeaderChatBotButton.js +1 -1
- package/dist/components/Header/HeaderChatBotButton.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js +1 -3
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenuButton.d.ts +2 -0
- package/dist/components/Header/HeaderSecondaryMenuButton.js +6 -2
- package/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/dist/components/Header/HeaderSubMenu.d.ts +3 -0
- package/dist/components/Header/HeaderSubMenu.js +6 -2
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/Header/HeaderSubMenuItem.js +2 -2
- package/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/dist/components/Header/HeaderTop.js +1 -1
- package/dist/components/Header/HeaderTop.js.map +1 -1
- package/dist/components/Header/InternetBankButton.d.ts +7 -0
- package/dist/components/Header/InternetBankButton.js +12 -0
- package/dist/components/Header/InternetBankButton.js.map +1 -0
- package/dist/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +5 -4
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +3 -3
- package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/dist/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/dist/components/LinkDocs/LinkDocsListItem.js +18 -2
- package/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/dist/components/OfficeMap/OfficeMap.js +1 -1
- package/dist/components/OfficeMap/OfficeMap.js.map +1 -1
- package/dist/components/OfficeMap/renderFunctions.js +1 -1
- package/dist/components/OfficeMap/renderFunctions.js.map +1 -1
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -2
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +3 -4
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/dist/components/RollupItem/RollupItem.js +2 -3
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/RollupItem/RollupItem.mobile.js +1 -2
- package/dist/components/RollupItem/RollupItem.mobile.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +5 -5
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -2
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
- package/dist/components/StepsBlock/checkCanRenderIcon.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js +1 -2
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/components/VerticalLayout/VerticalLayout.js +1 -1
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/content-page-repository/transformImg.js +11 -3
- package/dist/content-page-repository/transformImg.js.map +1 -1
- package/dist/services/sitemap/SitemapData.d.ts +1 -0
- package/dist/ui-kit/BenefitItem/BenefitItem.js +1 -3
- package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/dist/ui-kit/Button/ArrowButton.js +1 -1
- package/dist/ui-kit/Button/ArrowButton.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +4 -3
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Button/ButtonProps.d.ts +0 -2
- package/dist/ui-kit/Button/renderButtonsSection.js +3 -2
- package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/dist/ui-kit/Foldable/DefaultFoldButton.js +1 -1
- package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/dist/ui-kit/Icon/Icon.js +2 -2
- package/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/dist/ui-kit/Icon/IconProps.d.ts +0 -2
- package/dist/ui-kit/Img/ImgInner.js +1 -1
- package/dist/ui-kit/Img/ImgInner.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/LinkButton/LinkButton.js +2 -2
- package/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/dist/ui-kit/Logo/renderImage.js +2 -2
- package/dist/ui-kit/Logo/renderImage.js.map +1 -1
- package/dist/ui-kit/YandexMap/renderSearchField.d.ts +1 -1
- package/dist/ui-kit/YandexMap/renderSearchField.js +1 -1
- package/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BusinessBlock/BusinessCard.js +2 -2
- package/lib/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/lib/components/Calculator/Calculator.js +1 -1
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.js +6 -1
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/UnknownRate.js +2 -2
- package/lib/components/Calculator/UnknownRate.js.map +1 -1
- package/lib/components/Calculator/constants.d.ts +2 -2
- package/lib/components/Calculator/constants.js.map +1 -1
- package/lib/components/Calculator/rangeHelpers.d.ts +3 -0
- package/lib/components/Calculator/rangeHelpers.js +8 -2
- package/lib/components/Calculator/rangeHelpers.js.map +1 -1
- package/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +1 -1
- package/lib/components/Calculator/useBusinessDepositCalculatorParams.js +2 -2
- package/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
- package/lib/components/Calculator/useCreditCalculatorParams.d.ts +10 -3
- package/lib/components/Calculator/useCreditCalculatorParams.js +40 -34
- package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/lib/components/Calculator/useDepositCalculatorParams.d.ts +1 -1
- package/lib/components/Calculator/useDepositCalculatorParams.js +4 -4
- package/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/lib/components/CarouselEventCard/CarouselEventCard.js +1 -2
- package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -2
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -2
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +8 -5
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/lib/components/ComparisonTable/HeaderCell.js +1 -2
- package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +1 -2
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/MediaButton.js +1 -3
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Header/DropdownMenu.js +2 -2
- package/lib/components/Header/DropdownMenu.js.map +1 -1
- package/lib/components/Header/Header.js +2 -2
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/HeaderBurger.js +2 -2
- package/lib/components/Header/HeaderBurger.js.map +1 -1
- package/lib/components/Header/HeaderChatBotButton.js +1 -1
- package/lib/components/Header/HeaderChatBotButton.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js +1 -3
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenuButton.d.ts +2 -0
- package/lib/components/Header/HeaderSecondaryMenuButton.js +6 -2
- package/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/lib/components/Header/HeaderSubMenu.d.ts +3 -0
- package/lib/components/Header/HeaderSubMenu.js +6 -2
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/Header/HeaderSubMenuItem.js +2 -2
- package/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/lib/components/Header/HeaderTop.js +1 -1
- package/lib/components/Header/HeaderTop.js.map +1 -1
- package/lib/components/Header/InternetBankButton.d.ts +7 -0
- package/lib/components/Header/InternetBankButton.js +10 -0
- package/lib/components/Header/InternetBankButton.js.map +1 -0
- package/lib/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.fixture.mobile.d.ts +1 -3
- package/lib/components/LinkDocs/LinkDocs.js +5 -4
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +3 -3
- package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/lib/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/lib/components/LinkDocs/LinkDocsListItem.js +19 -3
- package/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/lib/components/OfficeMap/OfficeMap.js +1 -1
- package/lib/components/OfficeMap/OfficeMap.js.map +1 -1
- package/lib/components/OfficeMap/renderFunctions.js +1 -1
- package/lib/components/OfficeMap/renderFunctions.js.map +1 -1
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -2
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +3 -4
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/lib/components/RollupItem/RollupItem.js +2 -3
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/RollupItem/RollupItem.mobile.js +1 -2
- package/lib/components/RollupItem/RollupItem.mobile.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +5 -5
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -2
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
- package/lib/components/StepsBlock/checkCanRenderIcon.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js +1 -2
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.js +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/content-page-repository/transformImg.js +11 -3
- package/lib/content-page-repository/transformImg.js.map +1 -1
- package/lib/services/sitemap/SitemapData.d.ts +1 -0
- package/lib/ui-kit/BenefitItem/BenefitItem.js +1 -3
- package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/lib/ui-kit/Button/ArrowButton.js +1 -1
- package/lib/ui-kit/Button/ArrowButton.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +4 -3
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Button/ButtonProps.d.ts +0 -2
- package/lib/ui-kit/Button/renderButtonsSection.js +3 -2
- package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/lib/ui-kit/Foldable/DefaultFoldButton.js +1 -1
- package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/lib/ui-kit/Icon/Icon.js +2 -2
- package/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/lib/ui-kit/Icon/IconProps.d.ts +0 -2
- package/lib/ui-kit/Img/ImgInner.js +1 -1
- package/lib/ui-kit/Img/ImgInner.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/LinkButton/LinkButton.js +2 -2
- package/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/lib/ui-kit/Logo/renderImage.js +2 -2
- package/lib/ui-kit/Logo/renderImage.js.map +1 -1
- package/lib/ui-kit/YandexMap/renderSearchField.d.ts +1 -1
- package/lib/ui-kit/YandexMap/renderSearchField.js +1 -1
- package/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +26 -43
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Calculator/constants.d.ts +2 -2
- package/mobile/bundle/components/Calculator/rangeHelpers.d.ts +3 -0
- package/mobile/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +1 -1
- package/mobile/bundle/components/Calculator/useCreditCalculatorParams.d.ts +10 -3
- package/mobile/bundle/components/Calculator/useDepositCalculatorParams.d.ts +1 -1
- package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/mobile/bundle/components/Header/HeaderSecondaryMenuButton.d.ts +2 -0
- package/mobile/bundle/components/Header/HeaderSubMenu.d.ts +3 -0
- package/mobile/bundle/components/Header/InternetBankButton.d.ts +7 -0
- package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/mobile/bundle/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
- package/mobile/bundle/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
- package/mobile/bundle/services/sitemap/SitemapData.d.ts +1 -0
- package/mobile/bundle/ui-kit/Button/ButtonProps.d.ts +0 -2
- package/mobile/bundle/ui-kit/Icon/IconProps.d.ts +0 -2
- package/mobile/bundle/ui-kit/YandexMap/renderSearchField.d.ts +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/BusinessBlock/BusinessCard.js +2 -2
- package/mobile/dist/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/mobile/dist/components/Calculator/Calculator.js +1 -1
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +5 -0
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/UnknownRate.js +2 -2
- package/mobile/dist/components/Calculator/UnknownRate.js.map +1 -1
- package/mobile/dist/components/Calculator/constants.d.ts +2 -2
- package/mobile/dist/components/Calculator/constants.js.map +1 -1
- package/mobile/dist/components/Calculator/rangeHelpers.d.ts +3 -0
- package/mobile/dist/components/Calculator/rangeHelpers.js +10 -3
- package/mobile/dist/components/Calculator/rangeHelpers.js.map +1 -1
- package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +1 -1
- package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js +2 -2
- package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.d.ts +10 -3
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +39 -33
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Calculator/useDepositCalculatorParams.d.ts +1 -1
- package/mobile/dist/components/Calculator/useDepositCalculatorParams.js +4 -4
- package/mobile/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +1 -2
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -2
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -2
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +8 -5
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +1 -2
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/MediaButton.js +1 -3
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Header/DropdownMenu.js +2 -2
- package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderBurger.js +2 -2
- package/mobile/dist/components/Header/HeaderBurger.js.map +1 -1
- package/mobile/dist/components/Header/HeaderChatBotButton.js +1 -1
- package/mobile/dist/components/Header/HeaderChatBotButton.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -3
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.d.ts +2 -0
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js +6 -2
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenu.d.ts +3 -0
- package/mobile/dist/components/Header/HeaderSubMenu.js +6 -2
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenuItem.js +2 -2
- package/mobile/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/mobile/dist/components/Header/HeaderTop.js +1 -1
- package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
- package/mobile/dist/components/Header/InternetBankButton.d.ts +7 -0
- package/mobile/dist/components/Header/InternetBankButton.js +12 -0
- package/mobile/dist/components/Header/InternetBankButton.js.map +1 -0
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js +3 -3
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.js +18 -2
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/mobile/dist/components/OfficeMap/OfficeMap.js +1 -1
- package/mobile/dist/components/OfficeMap/OfficeMap.js.map +1 -1
- package/mobile/dist/components/OfficeMap/renderFunctions.js +1 -1
- package/mobile/dist/components/OfficeMap/renderFunctions.js.map +1 -1
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -2
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +3 -4
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/dist/components/RollupItem/RollupItem.js +1 -2
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -2
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
- package/mobile/dist/components/StepsBlock/checkCanRenderIcon.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/VerticalLayout/VerticalLayout.js +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/content-page-repository/transformImg.js +11 -3
- package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
- package/mobile/dist/services/sitemap/SitemapData.d.ts +1 -0
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +1 -3
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ArrowButton.js +1 -1
- package/mobile/dist/ui-kit/Button/ArrowButton.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +4 -3
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +0 -2
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js +3 -2
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +1 -1
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/Icon.js +2 -2
- package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/IconProps.d.ts +0 -2
- package/mobile/dist/ui-kit/Img/ImgInner.js +1 -1
- package/mobile/dist/ui-kit/Img/ImgInner.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/LinkButton/LinkButton.js +2 -2
- package/mobile/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/mobile/dist/ui-kit/Logo/renderImage.js +2 -2
- package/mobile/dist/ui-kit/Logo/renderImage.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderSearchField.d.ts +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderSearchField.js +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderSearchField.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/BusinessBlock/BusinessCard.js +2 -2
- package/mobile/lib/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +1 -1
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +6 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/UnknownRate.js +2 -2
- package/mobile/lib/components/Calculator/UnknownRate.js.map +1 -1
- package/mobile/lib/components/Calculator/constants.d.ts +2 -2
- package/mobile/lib/components/Calculator/constants.js.map +1 -1
- package/mobile/lib/components/Calculator/rangeHelpers.d.ts +3 -0
- package/mobile/lib/components/Calculator/rangeHelpers.js +8 -2
- package/mobile/lib/components/Calculator/rangeHelpers.js.map +1 -1
- package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +1 -1
- package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js +2 -2
- package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.d.ts +10 -3
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +40 -34
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Calculator/useDepositCalculatorParams.d.ts +1 -1
- package/mobile/lib/components/Calculator/useDepositCalculatorParams.js +4 -4
- package/mobile/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +1 -2
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -2
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -2
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +8 -5
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +1 -2
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/MediaButton.js +1 -3
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Header/DropdownMenu.js +2 -2
- package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderBurger.js +2 -2
- package/mobile/lib/components/Header/HeaderBurger.js.map +1 -1
- package/mobile/lib/components/Header/HeaderChatBotButton.js +1 -1
- package/mobile/lib/components/Header/HeaderChatBotButton.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -3
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.d.ts +2 -0
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js +6 -2
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenu.d.ts +3 -0
- package/mobile/lib/components/Header/HeaderSubMenu.js +6 -2
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenuItem.js +2 -2
- package/mobile/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/mobile/lib/components/Header/HeaderTop.js +1 -1
- package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
- package/mobile/lib/components/Header/InternetBankButton.d.ts +7 -0
- package/mobile/lib/components/Header/InternetBankButton.js +10 -0
- package/mobile/lib/components/Header/InternetBankButton.js.map +1 -0
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js +3 -3
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.js +19 -3
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/mobile/lib/components/OfficeMap/OfficeMap.js +1 -1
- package/mobile/lib/components/OfficeMap/OfficeMap.js.map +1 -1
- package/mobile/lib/components/OfficeMap/renderFunctions.js +1 -1
- package/mobile/lib/components/OfficeMap/renderFunctions.js.map +1 -1
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -2
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +3 -4
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/lib/components/RollupItem/RollupItem.js +1 -2
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -2
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
- package/mobile/lib/components/StepsBlock/checkCanRenderIcon.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/VerticalLayout/VerticalLayout.js +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/content-page-repository/transformImg.js +11 -3
- package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
- package/mobile/lib/services/sitemap/SitemapData.d.ts +1 -0
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +1 -3
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ArrowButton.js +1 -1
- package/mobile/lib/ui-kit/Button/ArrowButton.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +4 -3
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +0 -2
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js +3 -2
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +1 -1
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/Icon.js +2 -2
- package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/IconProps.d.ts +0 -2
- package/mobile/lib/ui-kit/Img/ImgInner.js +1 -1
- package/mobile/lib/ui-kit/Img/ImgInner.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/LinkButton/LinkButton.js +2 -2
- package/mobile/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/mobile/lib/ui-kit/Logo/renderImage.js +2 -2
- package/mobile/lib/ui-kit/Logo/renderImage.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderSearchField.d.ts +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderSearchField.js +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +0 -1
- package/mobile/src/components/BusinessBlock/BusinessCard.tsx +2 -2
- package/mobile/src/components/Calculator/Calculator.tsx +0 -1
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +7 -1
- package/mobile/src/components/Calculator/UnknownRate.tsx +2 -2
- package/mobile/src/components/Calculator/constants.ts +2 -2
- package/mobile/src/components/Calculator/rangeHelpers.ts +18 -2
- package/mobile/src/components/Calculator/useBusinessDepositCalculatorParams.ts +3 -3
- package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +83 -46
- package/mobile/src/components/Calculator/useDepositCalculatorParams.ts +5 -5
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +1 -2
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +1 -2
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -2
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +10 -2
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +24 -16
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.ui.json +18 -1
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +10 -2
- package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +1 -1
- package/mobile/src/components/Footer/Footer.tsx +1 -4
- package/mobile/src/components/Footer/MediaButton.tsx +2 -6
- package/mobile/src/components/Header/DropdownMenu.tsx +6 -3
- package/mobile/src/components/Header/HeaderBurger.tsx +2 -5
- package/mobile/src/components/Header/HeaderChatBotButton.tsx +2 -0
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +0 -5
- package/mobile/src/components/Header/HeaderSecondaryMenuButton.tsx +22 -5
- package/mobile/src/components/Header/HeaderSubMenu.tsx +62 -43
- package/mobile/src/components/Header/HeaderSubMenuItem.tsx +2 -2
- package/mobile/src/components/Header/HeaderTop.tsx +0 -1
- package/mobile/src/components/Header/InternetBankButton.tsx +28 -0
- package/mobile/src/components/HorizontalLayout/HorizontalLayout.tsx +7 -1
- package/mobile/src/components/LinkDocs/LinkDocs.example.json +0 -2
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +26 -12
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +0 -5
- package/mobile/src/components/LinkDocs/LinkDocsListItem.tsx +48 -11
- package/mobile/src/components/OfficeMap/OfficeMap.tsx +1 -1
- package/mobile/src/components/OfficeMap/renderFunctions.tsx +1 -1
- package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +1 -8
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +0 -1
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +6 -7
- package/mobile/src/components/RollupItem/RollupItem.tsx +2 -15
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +1 -1
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +3 -3
- package/mobile/src/components/StepsBlock/checkCanRenderIcon.ts +2 -1
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -8
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +1 -0
- package/mobile/src/content-page-repository/transformImg.ts +14 -4
- package/mobile/src/services/sitemap/SitemapData.ts +1 -0
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +4 -3
- package/mobile/src/ui-kit/Button/ArrowButton.tsx +0 -1
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +4 -3
- package/mobile/src/ui-kit/Button/ButtonProps.ts +0 -2
- package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +2 -2
- package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +0 -1
- package/mobile/src/ui-kit/Icon/Icon.tsx +2 -2
- package/mobile/src/ui-kit/Icon/IconProps.ts +0 -2
- package/mobile/src/ui-kit/Img/ImgInner.tsx +1 -1
- package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +0 -1
- package/mobile/src/ui-kit/InnerTable/InnerTableHeader.tsx +0 -1
- package/mobile/src/ui-kit/LinkButton/LinkButton.tsx +1 -2
- package/mobile/src/ui-kit/Logo/renderImage.tsx +0 -2
- package/mobile/src/ui-kit/YandexMap/renderSearchField.tsx +1 -2
- package/package.json +1 -1
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +0 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.tsx +8 -8
- package/src/components/BusinessBlock/BusinessCard.tsx +2 -2
- package/src/components/Calculator/Calculator.tsx +0 -1
- package/src/components/Calculator/CreditCalculatorForm.tsx +7 -1
- package/src/components/Calculator/UnknownRate.tsx +2 -2
- package/src/components/Calculator/constants.ts +2 -2
- package/src/components/Calculator/rangeHelpers.ts +18 -2
- package/src/components/Calculator/useBusinessDepositCalculatorParams.ts +3 -3
- package/src/components/Calculator/useCreditCalculatorParams.ts +83 -46
- package/src/components/Calculator/useDepositCalculatorParams.ts +5 -5
- package/src/components/CarouselEventCard/CarouselEventCard.tsx +1 -2
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +1 -2
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -2
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +10 -2
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.tsx +9 -1
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +24 -16
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.ui.json +18 -1
- package/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +10 -2
- package/src/components/ComparisonTable/HeaderCell.tsx +1 -3
- package/src/components/ExchangeRateTile/CurrentLocation.tsx +1 -1
- package/src/components/Footer/Footer.mobile.tsx +1 -4
- package/src/components/Footer/MediaButton.tsx +2 -6
- package/src/components/Header/DropdownMenu.tsx +6 -3
- package/src/components/Header/Header.tsx +6 -2
- package/src/components/Header/HeaderBurger.tsx +2 -5
- package/src/components/Header/HeaderChatBotButton.tsx +2 -0
- package/src/components/Header/HeaderSecondaryMenu.tsx +0 -5
- package/src/components/Header/HeaderSecondaryMenuButton.tsx +22 -5
- package/src/components/Header/HeaderSubMenu.tsx +62 -43
- package/src/components/Header/HeaderSubMenuItem.tsx +2 -2
- package/src/components/Header/HeaderTop.tsx +0 -1
- package/src/components/Header/InternetBankButton.tsx +28 -0
- package/src/components/HorizontalLayout/HorizontalLayout.tsx +7 -1
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +4 -3
- package/src/components/LinkDocs/LinkDocs.example.json +0 -2
- package/src/components/LinkDocs/LinkDocs.fixture.mobile.tsx +1 -11
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +26 -12
- package/src/components/LinkDocs/LinkDocs.tsx +24 -9
- package/src/components/LinkDocs/LinkDocsContent.ts +0 -5
- package/src/components/LinkDocs/LinkDocsListItem.tsx +48 -13
- package/src/components/OfficeMap/OfficeMap.tsx +1 -1
- package/src/components/OfficeMap/renderFunctions.tsx +1 -1
- package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +1 -8
- package/src/components/ProductBlock/renderBackwardButton.tsx +0 -1
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +6 -7
- package/src/components/RollupItem/RollupItem.mobile.tsx +2 -15
- package/src/components/RollupItem/RollupItem.tsx +2 -3
- package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +1 -1
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +3 -3
- package/src/components/StepsBlock/StepsBlock.tsx +13 -8
- package/src/components/StepsBlock/checkCanRenderIcon.ts +2 -1
- package/src/components/TariffsTable/TariffsTableRow.tsx +1 -8
- package/src/components/VerticalLayout/VerticalLayout.tsx +1 -0
- package/src/content-page-repository/transformImg.ts +14 -4
- package/src/services/sitemap/SitemapData.ts +1 -0
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +4 -3
- package/src/ui-kit/Button/ArrowButton.tsx +0 -1
- package/src/ui-kit/Button/Button.fixture.tsx +5 -5
- package/src/ui-kit/Button/ButtonInner.tsx +4 -3
- package/src/ui-kit/Button/ButtonProps.ts +0 -2
- package/src/ui-kit/Button/renderButtonsSection.tsx +2 -2
- package/src/ui-kit/Foldable/DefaultFoldButton.tsx +0 -1
- package/src/ui-kit/Icon/Icon.fixture.tsx +3 -3
- package/src/ui-kit/Icon/Icon.tsx +2 -2
- package/src/ui-kit/Icon/IconProps.ts +0 -2
- package/src/ui-kit/Img/ImgInner.tsx +1 -1
- package/src/ui-kit/InnerTable/InnerTableButton.tsx +0 -1
- package/src/ui-kit/InnerTable/InnerTableHeader.tsx +0 -1
- package/src/ui-kit/LinkButton/LinkButton.tsx +1 -2
- package/src/ui-kit/Logo/renderImage.tsx +0 -2
- package/src/ui-kit/YandexMap/renderSearchField.tsx +1 -2
- package/bundle/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
- package/bundle/components/LinkDocs/LinkDocsList.d.ts +0 -9
- package/bundle/components/LinkDocs/LinkDocsListItem.mobile.d.ts +0 -2
- package/bundle/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
- package/bundle/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
- package/bundle/utils/getIconWithVersion.d.ts +0 -3
- package/dist/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js +0 -10
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +0 -1
- package/dist/components/LinkDocs/LinkDocsList.d.ts +0 -9
- package/dist/components/LinkDocs/LinkDocsList.js +0 -9
- package/dist/components/LinkDocs/LinkDocsList.js.map +0 -1
- package/dist/components/LinkDocs/LinkDocsListItem.mobile.d.ts +0 -2
- package/dist/components/LinkDocs/LinkDocsListItem.mobile.js +0 -7
- package/dist/components/LinkDocs/LinkDocsListItem.mobile.js.map +0 -1
- package/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
- package/dist/components/LinkDocs/LinkDocsListItemBase.js +0 -24
- package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +0 -1
- package/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
- package/dist/components/LinkDocs/LinkDocsVerticalList.js +0 -11
- package/dist/components/LinkDocs/LinkDocsVerticalList.js.map +0 -1
- package/dist/utils/getIconWithVersion.d.ts +0 -3
- package/dist/utils/getIconWithVersion.js +0 -8
- package/dist/utils/getIconWithVersion.js.map +0 -1
- package/lib/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js +0 -8
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +0 -1
- package/lib/components/LinkDocs/LinkDocsList.d.ts +0 -9
- package/lib/components/LinkDocs/LinkDocsList.js +0 -7
- package/lib/components/LinkDocs/LinkDocsList.js.map +0 -1
- package/lib/components/LinkDocs/LinkDocsListItem.mobile.d.ts +0 -2
- package/lib/components/LinkDocs/LinkDocsListItem.mobile.js +0 -5
- package/lib/components/LinkDocs/LinkDocsListItem.mobile.js.map +0 -1
- package/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
- package/lib/components/LinkDocs/LinkDocsListItemBase.js +0 -22
- package/lib/components/LinkDocs/LinkDocsListItemBase.js.map +0 -1
- package/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
- package/lib/components/LinkDocs/LinkDocsVerticalList.js +0 -9
- package/lib/components/LinkDocs/LinkDocsVerticalList.js.map +0 -1
- package/lib/utils/getIconWithVersion.d.ts +0 -3
- package/lib/utils/getIconWithVersion.js +0 -5
- package/lib/utils/getIconWithVersion.js.map +0 -1
- package/mobile/bundle/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
- package/mobile/bundle/components/LinkDocs/LinkDocsList.d.ts +0 -9
- package/mobile/bundle/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
- package/mobile/bundle/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
- package/mobile/bundle/utils/getIconWithVersion.d.ts +0 -3
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js +0 -10
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +0 -1
- package/mobile/dist/components/LinkDocs/LinkDocsList.d.ts +0 -9
- package/mobile/dist/components/LinkDocs/LinkDocsList.js +0 -9
- package/mobile/dist/components/LinkDocs/LinkDocsList.js.map +0 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js +0 -24
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +0 -1
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js +0 -11
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js.map +0 -1
- package/mobile/dist/utils/getIconWithVersion.d.ts +0 -3
- package/mobile/dist/utils/getIconWithVersion.js +0 -8
- package/mobile/dist/utils/getIconWithVersion.js.map +0 -1
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js +0 -8
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +0 -1
- package/mobile/lib/components/LinkDocs/LinkDocsList.d.ts +0 -9
- package/mobile/lib/components/LinkDocs/LinkDocsList.js +0 -7
- package/mobile/lib/components/LinkDocs/LinkDocsList.js.map +0 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js +0 -22
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +0 -1
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js +0 -9
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js.map +0 -1
- package/mobile/lib/utils/getIconWithVersion.d.ts +0 -3
- package/mobile/lib/utils/getIconWithVersion.js +0 -5
- package/mobile/lib/utils/getIconWithVersion.js.map +0 -1
- package/mobile/src/components/LinkDocs/LinkDocsHorizontalList.tsx +0 -21
- package/mobile/src/components/LinkDocs/LinkDocsList.tsx +0 -33
- package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +0 -63
- package/mobile/src/components/LinkDocs/LinkDocsVerticalList.tsx +0 -33
- package/mobile/src/utils/getIconWithVersion.ts +0 -7
- package/src/components/LinkDocs/LinkDocsHorizontalList.tsx +0 -21
- package/src/components/LinkDocs/LinkDocsList.tsx +0 -33
- package/src/components/LinkDocs/LinkDocsListItem.mobile.tsx +0 -12
- package/src/components/LinkDocs/LinkDocsListItemBase.tsx +0 -63
- package/src/components/LinkDocs/LinkDocsVerticalList.tsx +0 -33
- package/src/utils/getIconWithVersion.ts +0 -7
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { useMemo } from '@redneckz/uni-jsx/lib/hooks';
|
|
1
2
|
import type { CreditCalculatorParamsViewSettings } from './CalculatorContent';
|
|
2
3
|
import { CREDIT_CALC_DEFAULT_DIR, DEFAULT_CREDIT_CALCULATOR_PARAMS } from './constants';
|
|
3
4
|
import { getMonthlyPayment } from './getMonthlyPayment';
|
|
4
|
-
import { checkRangeByKeys,
|
|
5
|
+
import { checkRangeByKeys, getLimitRangeByKeys } from './rangeHelpers';
|
|
5
6
|
import { useCalculatorParams } from './useCalculatorParams';
|
|
6
7
|
|
|
7
8
|
export interface CommonCreditParams {
|
|
@@ -10,7 +11,7 @@ export interface CommonCreditParams {
|
|
|
10
11
|
isPensionClient: boolean;
|
|
11
12
|
isStateEmployee: boolean;
|
|
12
13
|
}
|
|
13
|
-
export interface
|
|
14
|
+
export interface CreditCalculatorSourceBookRateParams extends CommonCreditParams {
|
|
14
15
|
minSum: number;
|
|
15
16
|
maxSum: number;
|
|
16
17
|
minMonths: number;
|
|
@@ -18,6 +19,13 @@ export interface CreditCalculatorSourceBookParams extends CommonCreditParams {
|
|
|
18
19
|
rate: number;
|
|
19
20
|
}
|
|
20
21
|
|
|
22
|
+
export interface CreditCalculatorSourceBookLimitParams extends CommonCreditParams {
|
|
23
|
+
minSum: number;
|
|
24
|
+
maxSum: number;
|
|
25
|
+
minMonths: number;
|
|
26
|
+
maxMonths: number;
|
|
27
|
+
}
|
|
28
|
+
|
|
21
29
|
export interface CreditCalculatorUserInputParams extends CommonCreditParams {
|
|
22
30
|
isAnnuity: boolean;
|
|
23
31
|
moneyValue: number;
|
|
@@ -25,13 +33,14 @@ export interface CreditCalculatorUserInputParams extends CommonCreditParams {
|
|
|
25
33
|
}
|
|
26
34
|
|
|
27
35
|
export interface CreditCalculatorParams
|
|
28
|
-
extends
|
|
36
|
+
extends CreditCalculatorSourceBookRateParams,
|
|
29
37
|
CreditCalculatorUserInputParams {
|
|
30
38
|
monthlyPayment: number;
|
|
31
39
|
}
|
|
32
40
|
|
|
33
41
|
export type CreditCalculatorData = {
|
|
34
|
-
|
|
42
|
+
rateRows?: CreditCalculatorSourceBookRateParams[];
|
|
43
|
+
limitRows?: CreditCalculatorSourceBookLimitParams[];
|
|
35
44
|
};
|
|
36
45
|
|
|
37
46
|
export const useCreditCalculatorParams = (
|
|
@@ -41,60 +50,88 @@ export const useCreditCalculatorParams = (
|
|
|
41
50
|
): CreditCalculatorParams => {
|
|
42
51
|
const { moneyValue, monthsValue } = userInputParams;
|
|
43
52
|
const data = useCalculatorParams<CreditCalculatorData>(sourceBookDir || CREDIT_CALC_DEFAULT_DIR);
|
|
44
|
-
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
53
|
+
|
|
54
|
+
const creditCalculatorSourceBookLimitParams = data?.limitRows?.find((row) =>
|
|
55
|
+
checkRowCommonParams({
|
|
56
|
+
row,
|
|
57
|
+
userInputParams,
|
|
58
|
+
paramsViewSettings,
|
|
59
|
+
}),
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
const creditCalculatorSourceBookRateParams =
|
|
63
|
+
data?.rateRows?.find(
|
|
50
64
|
(row) =>
|
|
51
|
-
|
|
52
|
-
row,
|
|
53
|
-
userInputParams,
|
|
54
|
-
paramKey: 'isSalaryClient',
|
|
55
|
-
isExclude: isExcludeSalaryClient,
|
|
56
|
-
}) &&
|
|
57
|
-
checkRowByParam({
|
|
65
|
+
checkRowCommonParams({
|
|
58
66
|
row,
|
|
59
67
|
userInputParams,
|
|
60
|
-
|
|
61
|
-
isExclude: isExcludeStateEmployee,
|
|
62
|
-
}) &&
|
|
63
|
-
checkRowByParam({
|
|
64
|
-
row,
|
|
65
|
-
userInputParams,
|
|
66
|
-
paramKey: 'isPensionClient',
|
|
67
|
-
isExclude: isExcludePensionClient,
|
|
68
|
-
}) &&
|
|
69
|
-
checkRowByParam({
|
|
70
|
-
row,
|
|
71
|
-
userInputParams,
|
|
72
|
-
paramKey: 'isInsurance',
|
|
73
|
-
isExclude: isExcludeInsurance,
|
|
68
|
+
paramsViewSettings,
|
|
74
69
|
}) &&
|
|
75
70
|
checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], row) &&
|
|
76
71
|
checkRangeByKeys(monthsValue, ['minMonths', 'maxMonths'], row),
|
|
77
72
|
) || DEFAULT_CREDIT_CALCULATOR_PARAMS;
|
|
78
73
|
|
|
79
|
-
const { rate } =
|
|
74
|
+
const { rate } = creditCalculatorSourceBookRateParams;
|
|
80
75
|
const monthlyPayment = getMonthlyPayment(rate, userInputParams);
|
|
81
|
-
const
|
|
76
|
+
const rateRows = data?.rateRows || [DEFAULT_CREDIT_CALCULATOR_PARAMS];
|
|
82
77
|
|
|
83
|
-
return
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
78
|
+
return useMemo(
|
|
79
|
+
() => ({
|
|
80
|
+
...creditCalculatorSourceBookRateParams,
|
|
81
|
+
...getLimitRangeByKeys(['minSum', 'maxSum'], creditCalculatorSourceBookLimitParams, rateRows),
|
|
82
|
+
...getLimitRangeByKeys(
|
|
83
|
+
['minMonths', 'maxMonths'],
|
|
84
|
+
creditCalculatorSourceBookLimitParams,
|
|
85
|
+
rateRows,
|
|
86
|
+
),
|
|
87
|
+
...userInputParams,
|
|
88
|
+
monthlyPayment,
|
|
89
|
+
}),
|
|
90
|
+
[userInputParams],
|
|
91
|
+
);
|
|
90
92
|
};
|
|
91
93
|
|
|
92
|
-
interface
|
|
93
|
-
row:
|
|
94
|
+
interface CheckSourceBookRowProps {
|
|
95
|
+
row: CommonCreditParams;
|
|
94
96
|
userInputParams: CreditCalculatorUserInputParams;
|
|
95
|
-
|
|
96
|
-
isExclude: boolean;
|
|
97
|
+
paramsViewSettings?: CreditCalculatorParamsViewSettings;
|
|
97
98
|
}
|
|
98
99
|
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
interface CheckSourceBookRowFieldProps extends CheckSourceBookRowProps {
|
|
101
|
+
fieldKey: string;
|
|
102
|
+
viewSettingFieldKey: string;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
const checkRowCommonParams = (props: CheckSourceBookRowProps) =>
|
|
106
|
+
checkRowParam({
|
|
107
|
+
...props,
|
|
108
|
+
fieldKey: 'isSalaryClient',
|
|
109
|
+
viewSettingFieldKey: 'isShowSalaryClient',
|
|
110
|
+
}) &&
|
|
111
|
+
checkRowParam({
|
|
112
|
+
...props,
|
|
113
|
+
fieldKey: 'isStateEmployee',
|
|
114
|
+
viewSettingFieldKey: 'isShowStateEmployee',
|
|
115
|
+
}) &&
|
|
116
|
+
checkRowParam({
|
|
117
|
+
...props,
|
|
118
|
+
fieldKey: 'isPensionClient',
|
|
119
|
+
viewSettingFieldKey: 'isShowPensionClient',
|
|
120
|
+
}) &&
|
|
121
|
+
checkRowParam({
|
|
122
|
+
...props,
|
|
123
|
+
fieldKey: 'isInsurance',
|
|
124
|
+
viewSettingFieldKey: 'isShowInsurance',
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
const checkRowParam = ({
|
|
128
|
+
row,
|
|
129
|
+
userInputParams,
|
|
130
|
+
paramsViewSettings,
|
|
131
|
+
fieldKey,
|
|
132
|
+
viewSettingFieldKey,
|
|
133
|
+
}: CheckSourceBookRowFieldProps) => {
|
|
134
|
+
const isExclude = paramsViewSettings ? !paramsViewSettings[viewSettingFieldKey] : false;
|
|
135
|
+
|
|
136
|
+
return isExclude || userInputParams[fieldKey] === row[fieldKey];
|
|
137
|
+
};
|
|
@@ -33,7 +33,7 @@ export interface DepositCalculatorParams
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export type DepositCalculatorData = {
|
|
36
|
-
|
|
36
|
+
rateRows: DepositCalculatorSourceBookParams[];
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
export const useDepositCalculatorParams = (
|
|
@@ -45,13 +45,13 @@ export const useDepositCalculatorParams = (
|
|
|
45
45
|
const data = useCalculatorParams<DepositCalculatorData>(
|
|
46
46
|
sourceBookDir || DEPOSIT_CALC_DEFAULT_DIR,
|
|
47
47
|
);
|
|
48
|
-
const defaultMonth = data?.
|
|
49
|
-
? getMiddleMonth(data.
|
|
48
|
+
const defaultMonth = data?.rateRows[0]
|
|
49
|
+
? getMiddleMonth(data.rateRows[0].minMonths, data.rateRows[0].maxMonths)
|
|
50
50
|
: 1;
|
|
51
51
|
const isExcludeMonthlyInterestPayment = !paramsViewSettings?.isShowMonthlyInterestPayment;
|
|
52
52
|
const isExcludeRemoteRegistration = !paramsViewSettings?.isShowRemoteRegistration;
|
|
53
53
|
const depositCalculatorSourceBookParams =
|
|
54
|
-
data?.
|
|
54
|
+
data?.rateRows?.find(
|
|
55
55
|
(row) =>
|
|
56
56
|
checkRowByParam({
|
|
57
57
|
row,
|
|
@@ -72,7 +72,7 @@ export const useDepositCalculatorParams = (
|
|
|
72
72
|
const { rate } = depositCalculatorSourceBookParams;
|
|
73
73
|
const income = getDepositIncome(rate, userInputParams);
|
|
74
74
|
const finalSum = moneyValue + income;
|
|
75
|
-
const sourceBookRows = data?.
|
|
75
|
+
const sourceBookRows = data?.rateRows || [DEFAULT_DEPOSIT_CALCULATOR_PARAMS];
|
|
76
76
|
|
|
77
77
|
return {
|
|
78
78
|
...depositCalculatorSourceBookParams,
|
|
@@ -5,7 +5,6 @@ import { Heading } from '../../ui-kit/Heading/Heading';
|
|
|
5
5
|
import { Img } from '../../ui-kit/Img/Img';
|
|
6
6
|
import { LinkWrapper } from '../../ui-kit/LinkWrapper/LinkWrapper';
|
|
7
7
|
import { Text } from '../../ui-kit/Text/Text';
|
|
8
|
-
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
9
8
|
import { style } from '../../utils/style';
|
|
10
9
|
import type { CarouselEventCardContent } from './CarouselEventCardContent';
|
|
11
10
|
|
|
@@ -16,7 +15,7 @@ export const CarouselEventCard = JSX<CarouselEventCardProps>(
|
|
|
16
15
|
return (
|
|
17
16
|
<BlockWrapper className={style('w-[365px]', className)} {...rest}>
|
|
18
17
|
<LinkWrapper className="flex flex-col" href={href} target={target}>
|
|
19
|
-
{icon?.icon ? <Img image={
|
|
18
|
+
{icon?.icon ? <Img image={icon} /> : null}
|
|
20
19
|
{icon?.src ? <Img image={icon} /> : null}
|
|
21
20
|
{title ? (
|
|
22
21
|
<Heading headingType="h6" as="h4" className="text-left pt-3 mb-2" title={title} />
|
|
@@ -64,7 +64,7 @@ const renderImage = (image?: Picture) => (
|
|
|
64
64
|
<div className="flex justify-center">
|
|
65
65
|
{image?.src ? <Img className="mb-5" image={image} /> : null}
|
|
66
66
|
{image?.icon ? (
|
|
67
|
-
<Img className={`w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full`} image={image}
|
|
67
|
+
<Img className={`w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full`} image={image} />
|
|
68
68
|
) : null}
|
|
69
69
|
</div>
|
|
70
70
|
);
|
|
@@ -5,7 +5,6 @@ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
|
5
5
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
6
6
|
import { Img } from '../../ui-kit/Img/Img';
|
|
7
7
|
import { LinkWrapper } from '../../ui-kit/LinkWrapper/LinkWrapper';
|
|
8
|
-
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
9
8
|
import { style } from '../../utils/style';
|
|
10
9
|
import type { CarouselProgramsCardContent } from './CarouselProgramsCardContent';
|
|
11
10
|
|
|
@@ -17,7 +16,7 @@ export const CarouselProgramsCard = JSX<CarouselTariffsCardProps>(
|
|
|
17
16
|
<BlockWrapper className={style('border border-gray', className)} {...rest}>
|
|
18
17
|
<LinkWrapper className="flex" href={href} target={target}>
|
|
19
18
|
<div className="w-[200px] min-w-[200px] self-center">
|
|
20
|
-
{icon?.icon ? <Img image={
|
|
19
|
+
{icon?.icon ? <Img image={icon} /> : null}
|
|
21
20
|
{icon?.src ? <Img image={icon} /> : null}
|
|
22
21
|
</div>
|
|
23
22
|
<div className="p-8 pl-3 w-full">
|
|
@@ -5,7 +5,6 @@ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
|
5
5
|
import { Img } from '../../ui-kit/Img/Img';
|
|
6
6
|
import { LinkWrapper } from '../../ui-kit/LinkWrapper/LinkWrapper';
|
|
7
7
|
import { List } from '../../ui-kit/List/List';
|
|
8
|
-
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
9
8
|
import { style } from '../../utils/style';
|
|
10
9
|
import { SocialMedia } from '../Footer/SocialMedia';
|
|
11
10
|
import { Headline } from '../Headline/Headline';
|
|
@@ -64,7 +63,7 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
64
63
|
|
|
65
64
|
const renderIconBlock = (icon: Picture | undefined) => (
|
|
66
65
|
<div className="absolute bottom-0 right-0">
|
|
67
|
-
{icon?.icon ? <Img image={
|
|
66
|
+
{icon?.icon ? <Img image={icon} /> : null}
|
|
68
67
|
{icon?.src ? <Img image={icon} /> : null}
|
|
69
68
|
</div>
|
|
70
69
|
);
|
|
@@ -24,8 +24,16 @@
|
|
|
24
24
|
"description": "Описание 1-2"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
|
-
"
|
|
28
|
-
|
|
27
|
+
"buttons": [
|
|
28
|
+
{
|
|
29
|
+
"icon": {
|
|
30
|
+
"iconVersion": "color",
|
|
31
|
+
"icon": "DocIconMonoColor"
|
|
32
|
+
},
|
|
33
|
+
"version": "link",
|
|
34
|
+
"text": "Скачать файл"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
29
37
|
}
|
|
30
38
|
]
|
|
31
39
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
3
2
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
4
3
|
import type { Picture } from '../../model/Picture';
|
|
5
4
|
import type { VNode } from '../../model/VNode';
|
|
6
5
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
7
6
|
import { Button } from '../../ui-kit/Button/Button';
|
|
7
|
+
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
8
8
|
import { Foldable } from '../../ui-kit/Foldable/Foldable';
|
|
9
9
|
import type { FoldablePartProps } from '../../ui-kit/Foldable/FoldablePartProps';
|
|
10
10
|
import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
|
|
@@ -12,9 +12,11 @@ import { Heading } from '../../ui-kit/Heading/Heading';
|
|
|
12
12
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
13
13
|
import { Img } from '../../ui-kit/Img/Img';
|
|
14
14
|
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
15
|
-
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
16
15
|
import { style } from '../../utils/style';
|
|
17
|
-
import type {
|
|
16
|
+
import type {
|
|
17
|
+
CarouselTariffsCardContent,
|
|
18
|
+
TariffsCardCellProps,
|
|
19
|
+
} from './CarouselTariffsCardContent';
|
|
18
20
|
|
|
19
21
|
export interface CarouselTariffsCardProps extends CarouselTariffsCardContent, UniBlockProps {}
|
|
20
22
|
|
|
@@ -58,7 +60,7 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
|
|
|
58
60
|
const renderIconBlock = (icon?: Picture) => (
|
|
59
61
|
<div className="w-[267px] min-w-[267px] self-center">
|
|
60
62
|
{icon?.src ? <Img image={icon} /> : null}
|
|
61
|
-
{icon?.icon ? <Img image={
|
|
63
|
+
{icon?.icon ? <Img image={icon} /> : null}
|
|
62
64
|
</div>
|
|
63
65
|
);
|
|
64
66
|
|
|
@@ -76,25 +78,31 @@ const renderFoldButton = ({ isUnfolded, onToggle }: FoldablePartProps): VNode =>
|
|
|
76
78
|
name={isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon'}
|
|
77
79
|
width="16"
|
|
78
80
|
height="16"
|
|
79
|
-
asSVG
|
|
80
81
|
/>
|
|
81
82
|
</button>
|
|
82
83
|
);
|
|
83
84
|
|
|
84
|
-
const renderCardInfo = (cell:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
)
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
85
|
+
const renderCardInfo = (cell: TariffsCardCellProps, i: number): VNode => {
|
|
86
|
+
const { title, description, buttons } = cell;
|
|
87
|
+
|
|
88
|
+
return (
|
|
89
|
+
<div key={String(i)} className="py-5 border-b border-main-divider">
|
|
90
|
+
{title ? (
|
|
91
|
+
<div className="text-secondary-text text-m-light opacity-80">{cell.title}</div>
|
|
92
|
+
) : null}
|
|
93
|
+
{description ? (
|
|
94
|
+
<div className="text-primary-text text-h6 mt-1">{cell.description}</div>
|
|
95
|
+
) : null}
|
|
96
|
+
{buttons?.length ? (
|
|
97
|
+
<div className="text-primary-main">{renderButtonsSection(buttons)}</div>
|
|
98
|
+
) : null}
|
|
99
|
+
</div>
|
|
100
|
+
);
|
|
101
|
+
};
|
|
94
102
|
|
|
95
103
|
const renderHitIcon = (): VNode => (
|
|
96
104
|
<div className="absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]">
|
|
97
|
-
<Icon iconVersion="black" name="HeartIcon" width="23" height="22"
|
|
105
|
+
<Icon iconVersion="black" name="HeartIcon" width="23" height="22" />
|
|
98
106
|
<Paragraph size="text-s" font="font-normal" align="text-center" color="text-primary-text">
|
|
99
107
|
ХИТ
|
|
100
108
|
</Paragraph>
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import type { HeadlineCommonProps, TitleProps } from '../../model/HeadlineType';
|
|
2
2
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
3
3
|
import type { IconProps } from '../../model/Picture';
|
|
4
|
-
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
|
+
import type { ButtonProps, ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
5
|
+
|
|
6
|
+
export type TariffsCardCellProps = HeadlineCommonProps & {
|
|
7
|
+
/**
|
|
8
|
+
* @title Кнопка
|
|
9
|
+
* @maxItems 1
|
|
10
|
+
*/
|
|
11
|
+
buttons?: ButtonWithIconProps[];
|
|
12
|
+
};
|
|
5
13
|
|
|
6
14
|
/**
|
|
7
15
|
* @title Карточка тарифной карусели
|
|
@@ -14,5 +22,5 @@ export type CarouselTariffsCardContent = UniBlockContent &
|
|
|
14
22
|
/** @title Кнопка */
|
|
15
23
|
button?: ButtonProps;
|
|
16
24
|
/** @title Ячейка */
|
|
17
|
-
cardCells?:
|
|
25
|
+
cardCells?: TariffsCardCellProps[];
|
|
18
26
|
};
|
|
@@ -8,7 +8,7 @@ interface CurrentLocationProps {
|
|
|
8
8
|
|
|
9
9
|
export const CurrentLocation = JSX<CurrentLocationProps>(({ className = '', address }) => (
|
|
10
10
|
<div className={`flex ${className}`}>
|
|
11
|
-
<Img image={{ icon: 'GpsIcon' }} width="24" height="24"
|
|
11
|
+
<Img image={{ icon: 'GpsIcon' }} width="24" height="24" />
|
|
12
12
|
<div className="ml-3">
|
|
13
13
|
{address ? <p className="text-primary-main m-0 mb-1 text-l">{address}</p> : null}
|
|
14
14
|
<p className="text-secondary-text m-0 text-m">Курс указан для заданного офиса</p>
|
|
@@ -7,7 +7,6 @@ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
|
7
7
|
import { Button } from '../../ui-kit/Button/Button';
|
|
8
8
|
import { Img } from '../../ui-kit/Img/Img';
|
|
9
9
|
import { SearchBar } from '../../ui-kit/SearchBar/SearchBar';
|
|
10
|
-
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
11
10
|
import { LinkList } from '../LinkList/LinkList';
|
|
12
11
|
import { MobileAppTile } from '../MobileAppTile/MobileAppTile';
|
|
13
12
|
import { RollupItem } from '../RollupItem/RollupItem';
|
|
@@ -56,9 +55,7 @@ const renderSubMenuItem = (menu: SubMenuItem, i: number) => {
|
|
|
56
55
|
|
|
57
56
|
return (
|
|
58
57
|
<Button version="link" key={`footer-${i}`} href={href} className="flex text-s mb-4 w-6">
|
|
59
|
-
{icon ?
|
|
60
|
-
<Img className="pr-1" image={getIconWithVersion(icon)} width="24" height="24" asSVG />
|
|
61
|
-
) : null}
|
|
58
|
+
{icon ? <Img className="pr-1" image={icon} width="24" height="24" /> : null}
|
|
62
59
|
<span className="pl-2.5 font-medium text-primary-text">{text}</span>
|
|
63
60
|
</Button>
|
|
64
61
|
);
|
|
@@ -3,7 +3,6 @@ import type { IconProps, Picture } from '../../model/Picture';
|
|
|
3
3
|
import { Button } from '../../ui-kit/Button/Button';
|
|
4
4
|
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
5
5
|
import { Img } from '../../ui-kit/Img/Img';
|
|
6
|
-
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
7
6
|
import { style } from '../../utils/style';
|
|
8
7
|
|
|
9
8
|
const ICONS_MAP: Array<{
|
|
@@ -68,8 +67,6 @@ export const MediaButton = JSX<MediaButtonProps>(
|
|
|
68
67
|
|
|
69
68
|
const iconCustom = getFilteredIcon(icon) ?? iconMapped;
|
|
70
69
|
|
|
71
|
-
const iconWithVersion = iconCustom ? getIconWithVersion(iconCustom) : undefined;
|
|
72
|
-
|
|
73
70
|
return (
|
|
74
71
|
<Button
|
|
75
72
|
className={style(
|
|
@@ -88,13 +85,12 @@ export const MediaButton = JSX<MediaButtonProps>(
|
|
|
88
85
|
version={version}
|
|
89
86
|
{...rest}
|
|
90
87
|
>
|
|
91
|
-
{
|
|
88
|
+
{iconCustom && !text ? (
|
|
92
89
|
<Img
|
|
93
|
-
image={
|
|
90
|
+
image={iconCustom}
|
|
94
91
|
imageClassName="group-hover/media:text-white"
|
|
95
92
|
width="24"
|
|
96
93
|
height="24"
|
|
97
|
-
asSVG
|
|
98
94
|
/>
|
|
99
95
|
) : null}
|
|
100
96
|
</Button>
|
|
@@ -2,8 +2,8 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { useLink } from '../../hooks/useLink';
|
|
4
4
|
import { useOutsideClick } from '../../hooks/useOutsideClick';
|
|
5
|
-
import type { LinkProps } from '../../model/LinkProps';
|
|
6
5
|
import { style } from '../../utils/style';
|
|
6
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
7
7
|
|
|
8
8
|
interface DropdownMenuProps {
|
|
9
9
|
className?: string;
|
|
@@ -26,7 +26,7 @@ export const DropdownMenu = JSX<DropdownMenuProps>(({ className = '', items, act
|
|
|
26
26
|
ref={ref}
|
|
27
27
|
>
|
|
28
28
|
<button
|
|
29
|
-
className="group/btn flex justify-between items-center h-6
|
|
29
|
+
className="group/btn flex justify-between items-center h-6"
|
|
30
30
|
aria-label={`${visible ? 'Скрыть другие разделы' : 'Показать другие разделы'}`}
|
|
31
31
|
onClick={handleToggle}
|
|
32
32
|
>
|
|
@@ -40,7 +40,10 @@ export const DropdownMenu = JSX<DropdownMenuProps>(({ className = '', items, act
|
|
|
40
40
|
))}
|
|
41
41
|
</button>
|
|
42
42
|
<div
|
|
43
|
-
className={style(
|
|
43
|
+
className={style(
|
|
44
|
+
'absolute flex flex-col rounded-md bg-white p-6 pb-2',
|
|
45
|
+
visible ? '' : 'hidden',
|
|
46
|
+
)}
|
|
44
47
|
aria-hidden={!visible}
|
|
45
48
|
>
|
|
46
49
|
{items?.map((item, i) => {
|
|
@@ -23,7 +23,7 @@ export const HeaderBurger = JSX<HeaderBurgerProps>(
|
|
|
23
23
|
className="absolute top-4 right-4 border-none bg-transparent cursor-pointer"
|
|
24
24
|
onClick={onClick}
|
|
25
25
|
>
|
|
26
|
-
<Img image={{ icon: 'CloseIcon' }} width="24" height="24"
|
|
26
|
+
<Img image={{ icon: 'CloseIcon' }} width="24" height="24" />
|
|
27
27
|
</button>
|
|
28
28
|
<button className="flex items-center text-s p-0 mb-4 bg-transparent cursor-pointer">
|
|
29
29
|
<Img
|
|
@@ -31,7 +31,6 @@ export const HeaderBurger = JSX<HeaderBurgerProps>(
|
|
|
31
31
|
width="20"
|
|
32
32
|
height="20"
|
|
33
33
|
className="text-primary-main box-border mr-2"
|
|
34
|
-
asSVG
|
|
35
34
|
/>
|
|
36
35
|
<Text color="text-secondary-text">{location.name}</Text>
|
|
37
36
|
</button>
|
|
@@ -48,9 +47,7 @@ const renderBurgerSubMenuItem = (menu: DispositionItem, i: number) => {
|
|
|
48
47
|
|
|
49
48
|
return (
|
|
50
49
|
<a key={`headerSubMenu-${i}`} href={href} className="flex text-s mb-4 hover:text-primary-main">
|
|
51
|
-
{icon ?
|
|
52
|
-
<Img className="text-primary-main pr-1" image={icon} width="24" height="24" asSVG />
|
|
53
|
-
) : null}
|
|
50
|
+
{icon ? <Img className="text-primary-main pr-1" image={icon} width="24" height="24" /> : null}
|
|
54
51
|
<span className="font-medium pl-0.5">{text}</span>
|
|
55
52
|
</a>
|
|
56
53
|
);
|
|
@@ -2,13 +2,11 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
4
4
|
import type { IconVersion } from '../../model/IconVersion';
|
|
5
|
-
import { projectSettings } from '../../ProjectSettings';
|
|
6
5
|
import { useDialog } from '../../ui-kit/Dialog/useDialog';
|
|
7
6
|
import { LOCATION_DIALOG_ID } from '../../ui-kit/LocationDialog/LocationDialog';
|
|
8
7
|
import { SEARCH_DIALOG_ID } from '../../ui-kit/SearchDialog/SearchDialog';
|
|
9
8
|
import { TopItem } from '../../ui-kit/TopItem/TopItem';
|
|
10
9
|
import { style } from '../../utils/style';
|
|
11
|
-
import { HeaderChatBotButton } from './HeaderChatBotButton';
|
|
12
10
|
import { HeaderSecondaryMenuButton } from './HeaderSecondaryMenuButton';
|
|
13
11
|
|
|
14
12
|
interface HeaderSecondaryMenuContent {
|
|
@@ -40,9 +38,6 @@ export const HeaderSecondaryMenu = JSX<HeaderSecondaryMenuProps>(
|
|
|
40
38
|
ariaLabel="Поиск"
|
|
41
39
|
onClick={handleOpenSearchModal}
|
|
42
40
|
/>
|
|
43
|
-
{projectSettings.CHAT_BOT ? (
|
|
44
|
-
<HeaderChatBotButton iconVersion={iconVersion} chat={projectSettings.CHAT_BOT} />
|
|
45
|
-
) : null}
|
|
46
41
|
</div>
|
|
47
42
|
);
|
|
48
43
|
},
|
|
@@ -1,24 +1,42 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { Img } from '../../ui-kit/Img/Img';
|
|
3
|
-
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
4
3
|
import { style } from '../../utils/style';
|
|
4
|
+
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
5
5
|
|
|
6
6
|
export interface HeaderSecondaryMenuButtonProps extends ImageContent {
|
|
7
7
|
className?: string;
|
|
8
8
|
isRounded?: boolean;
|
|
9
|
+
buttonSize?: 'default' | 'large';
|
|
10
|
+
isGrayBg?: boolean;
|
|
9
11
|
disabled?: boolean;
|
|
10
12
|
ariaLabel?: string;
|
|
11
13
|
onClick?: () => void;
|
|
12
14
|
}
|
|
13
15
|
|
|
16
|
+
const BUTTON_SIZE_STYLE = {
|
|
17
|
+
default: 'w-6 h-6',
|
|
18
|
+
large: 'w-12 h-12',
|
|
19
|
+
};
|
|
20
|
+
|
|
14
21
|
export const HeaderSecondaryMenuButton = JSX<HeaderSecondaryMenuButtonProps>(
|
|
15
|
-
({
|
|
22
|
+
({
|
|
23
|
+
className,
|
|
24
|
+
isRounded,
|
|
25
|
+
buttonSize = 'default',
|
|
26
|
+
isGrayBg = false,
|
|
27
|
+
disabled,
|
|
28
|
+
ariaLabel,
|
|
29
|
+
image,
|
|
30
|
+
onClick,
|
|
31
|
+
}) => (
|
|
16
32
|
<button
|
|
17
33
|
className={style(
|
|
18
|
-
'group/btn border-0
|
|
34
|
+
'group/btn border-0 flex shrink-0 items-center',
|
|
35
|
+
isGrayBg ? 'p-3 rounded-full' : 'p-0 bg-inherit',
|
|
36
|
+
isGrayBg && !isRounded ? 'bg-main-divider' : '',
|
|
19
37
|
isRounded
|
|
20
38
|
? 'w-8 h-8 text-secondary-light hover:text-secondary-hove'
|
|
21
|
-
:
|
|
39
|
+
: `${BUTTON_SIZE_STYLE[buttonSize]} text-primary-text hover:text-primary-main`,
|
|
22
40
|
'group-data-transparent:text-white',
|
|
23
41
|
className,
|
|
24
42
|
)}
|
|
@@ -31,7 +49,6 @@ export const HeaderSecondaryMenuButton = JSX<HeaderSecondaryMenuButtonProps>(
|
|
|
31
49
|
image={image}
|
|
32
50
|
className={style('h-full', isRounded ? 'bg-main-divider/20 rounded-full' : '')}
|
|
33
51
|
imageClassName="group-hover/btn:text-primary-hover group-hover/btn:invert-0"
|
|
34
|
-
asSVG
|
|
35
52
|
/>
|
|
36
53
|
</button>
|
|
37
54
|
),
|