@redneckz/wildless-cms-uni-blocks 0.10.2 → 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 +1 -1
- package/bin/migration-scripts/0.10.3.js +19 -0
- package/bundle/bundle.umd.js +163 -137
- 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/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/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 -1
- 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 -1
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +3 -3
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/ComparisonTable/HeaderCell.js +1 -1
- 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 -1
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/MediaButton.js +1 -1
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/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 +1 -1
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.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 -1
- 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.js +2 -2
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/dist/components/RollupItem/RollupItem.js +2 -2
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/RollupItem/RollupItem.mobile.js +1 -1
- 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.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js +1 -1
- 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/services/sitemap/SitemapData.d.ts +1 -0
- package/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
- package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/dist/ui-kit/Button/ArrowButton.js +1 -1
- package/dist/ui-kit/Button/ArrowButton.js.map +1 -1
- package/dist/ui-kit/Button/ButtonProps.d.ts +0 -2
- package/dist/ui-kit/Button/renderButtonsSection.js +1 -1
- 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/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 -1
- 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 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +3 -3
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/ComparisonTable/HeaderCell.js +1 -1
- 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 -1
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/MediaButton.js +1 -1
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/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.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.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 -1
- 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.js +2 -2
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/lib/components/RollupItem/RollupItem.js +2 -2
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/RollupItem/RollupItem.mobile.js +1 -1
- 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.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js +1 -1
- 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/services/sitemap/SitemapData.d.ts +1 -0
- package/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
- package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/lib/ui-kit/Button/ArrowButton.js +1 -1
- package/lib/ui-kit/Button/ArrowButton.js.map +1 -1
- package/lib/ui-kit/Button/ButtonProps.d.ts +0 -2
- package/lib/ui-kit/Button/renderButtonsSection.js +1 -1
- 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/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 +17 -17
- 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/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/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 -1
- 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 -1
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +3 -3
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +1 -1
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/MediaButton.js +1 -1
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/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 +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.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 -1
- 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.js +2 -2
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/dist/components/RollupItem/RollupItem.js +1 -1
- 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 +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/services/sitemap/SitemapData.d.ts +1 -0
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ArrowButton.js +1 -1
- package/mobile/dist/ui-kit/Button/ArrowButton.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +0 -2
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js +1 -1
- 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/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 -1
- 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 -1
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +3 -3
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +1 -1
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/MediaButton.js +1 -1
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/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 +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.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 -1
- 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.js +2 -2
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/lib/components/RollupItem/RollupItem.js +1 -1
- 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 +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/services/sitemap/SitemapData.d.ts +1 -0
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ArrowButton.js +1 -1
- package/mobile/lib/ui-kit/Button/ArrowButton.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +0 -2
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js +1 -1
- 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/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 -1
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +1 -1
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -3
- package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +1 -1
- package/mobile/src/components/Footer/Footer.tsx +1 -1
- package/mobile/src/components/Footer/MediaButton.tsx +0 -1
- 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.tsx +0 -1
- 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 -7
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +0 -1
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +2 -2
- package/mobile/src/components/RollupItem/RollupItem.tsx +2 -2
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +1 -1
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +0 -1
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +1 -0
- package/mobile/src/services/sitemap/SitemapData.ts +1 -0
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +0 -1
- package/mobile/src/ui-kit/Button/ArrowButton.tsx +0 -1
- package/mobile/src/ui-kit/Button/ButtonProps.ts +0 -2
- package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +0 -1
- 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/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 -1
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +1 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -3
- package/src/components/ComparisonTable/HeaderCell.tsx +0 -1
- package/src/components/ExchangeRateTile/CurrentLocation.tsx +1 -1
- package/src/components/Footer/Footer.mobile.tsx +1 -1
- package/src/components/Footer/MediaButton.tsx +0 -1
- 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.mobile.tsx +0 -1
- package/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/src/components/OfficeMap/OfficeMap.tsx +1 -1
- package/src/components/OfficeMap/renderFunctions.tsx +1 -1
- package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +1 -7
- package/src/components/ProductBlock/renderBackwardButton.tsx +0 -1
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +2 -2
- package/src/components/RollupItem/RollupItem.mobile.tsx +2 -2
- package/src/components/RollupItem/RollupItem.tsx +2 -2
- package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +1 -1
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +0 -1
- package/src/components/StepsBlock/StepsBlock.tsx +0 -1
- package/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
- package/src/components/VerticalLayout/VerticalLayout.tsx +1 -0
- package/src/services/sitemap/SitemapData.ts +1 -0
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +0 -1
- package/src/ui-kit/Button/ArrowButton.tsx +0 -1
- package/src/ui-kit/Button/Button.fixture.tsx +5 -5
- package/src/ui-kit/Button/ButtonProps.ts +0 -2
- package/src/ui-kit/Button/renderButtonsSection.tsx +0 -1
- 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/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
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
4
4
|
import { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
|
|
5
|
+
import { clamp } from '../../utils/clamp';
|
|
5
6
|
import { style } from '../../utils/style';
|
|
6
7
|
import type {
|
|
7
8
|
CreditCalculatorParamsViewSettings,
|
|
@@ -50,6 +51,11 @@ export const CreditCalculatorForm = JSX<CreditCalculatorProp>(
|
|
|
50
51
|
paramsViewSettings,
|
|
51
52
|
);
|
|
52
53
|
|
|
54
|
+
useEffect(() => {
|
|
55
|
+
setMoneyValue(clamp(moneyValue, calculatorParams.minSum, calculatorParams.maxSum));
|
|
56
|
+
setMonthsValue(clamp(monthsValue, calculatorParams.minMonths, calculatorParams.maxMonths));
|
|
57
|
+
}, [calculatorParams]);
|
|
58
|
+
|
|
53
59
|
return (
|
|
54
60
|
<section className={style('flex justify-between', className)}>
|
|
55
61
|
<div className="w-[468px]">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import {
|
|
2
|
+
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
3
3
|
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
4
4
|
import { Text } from '../../ui-kit/Text/Text';
|
|
5
5
|
|
|
@@ -13,7 +13,7 @@ export const UnknownRate = JSX<UnknownRateProps>(({ title = 'Ставка' }) =>
|
|
|
13
13
|
{title}
|
|
14
14
|
</Text>
|
|
15
15
|
<div className="mt-1 pt-1 pl-5 pb-1.5">
|
|
16
|
-
<
|
|
16
|
+
<Icon name="PercentIcon" width="90" height="85" />
|
|
17
17
|
</div>
|
|
18
18
|
<div className="w-[250px] mt-3.5">
|
|
19
19
|
<Paragraph size="text-xl-light" color="text-primary-text">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BonusCalculatorSourceBookParams } from './useBonusCalculatorParams';
|
|
2
2
|
import { BusinessDepositCalculatorSourceBookParams } from './useBusinessDepositCalculatorParams';
|
|
3
|
-
import {
|
|
3
|
+
import { CreditCalculatorSourceBookRateParams } from './useCreditCalculatorParams';
|
|
4
4
|
import { DepositCalculatorSourceBookParams } from './useDepositCalculatorParams';
|
|
5
5
|
|
|
6
6
|
export const DEFAULT_MIN_SUM = 10000;
|
|
@@ -21,7 +21,7 @@ export const MONTHS_IN_YEAR = 12;
|
|
|
21
21
|
|
|
22
22
|
export const MONTHLY_INTEREST_RATE = MONTHS_IN_YEAR * 100;
|
|
23
23
|
|
|
24
|
-
export const DEFAULT_CREDIT_CALCULATOR_PARAMS:
|
|
24
|
+
export const DEFAULT_CREDIT_CALCULATOR_PARAMS: CreditCalculatorSourceBookRateParams = {
|
|
25
25
|
minSum: DEFAULT_MIN_SUM,
|
|
26
26
|
maxSum: DEFAULT_MAX_SUM,
|
|
27
27
|
minMonths: DEFAULT_MIN_MONTHS,
|
|
@@ -2,6 +2,22 @@ import { maxBy } from '../../utils/maxBy';
|
|
|
2
2
|
import { mergeIntervals } from '../../utils/mergeIntervals';
|
|
3
3
|
import { minBy } from '../../utils/minBy';
|
|
4
4
|
|
|
5
|
+
export const getLimitRangeByKeys = <
|
|
6
|
+
MinKey extends string,
|
|
7
|
+
MaxKey extends string,
|
|
8
|
+
T extends Record<MinKey | MaxKey, number>,
|
|
9
|
+
>(
|
|
10
|
+
[minKey, maxKey]: [MinKey, MaxKey],
|
|
11
|
+
limitParams?: T,
|
|
12
|
+
rateRows: T[] = [],
|
|
13
|
+
) =>
|
|
14
|
+
limitParams && limitParams[minKey] && limitParams[maxKey]
|
|
15
|
+
? {
|
|
16
|
+
[minKey]: limitParams[minKey],
|
|
17
|
+
[maxKey]: limitParams[maxKey],
|
|
18
|
+
}
|
|
19
|
+
: getRangeByKeys([minKey, maxKey], rateRows);
|
|
20
|
+
|
|
5
21
|
export const getRangeByKeys = <
|
|
6
22
|
MinKey extends string,
|
|
7
23
|
MaxKey extends string,
|
|
@@ -10,8 +26,8 @@ export const getRangeByKeys = <
|
|
|
10
26
|
[minKey, maxKey]: [MinKey, MaxKey],
|
|
11
27
|
rows: T[] = [],
|
|
12
28
|
) => ({
|
|
13
|
-
[minKey]: rows.length ? minBy()(rows.map((row) => row[minKey])) : 0,
|
|
14
|
-
[maxKey]: rows.length ? maxBy()(rows.map((row) => row[maxKey])) : 0,
|
|
29
|
+
[minKey]: rows.length ? minBy()(rows.filter((row) => row[minKey]).map((row) => row[minKey])) : 0,
|
|
30
|
+
[maxKey]: rows.length ? maxBy()(rows.filter((row) => row[maxKey]).map((row) => row[maxKey])) : 0,
|
|
15
31
|
});
|
|
16
32
|
|
|
17
33
|
export const getMergeRangesByKeys = <
|
|
@@ -38,7 +38,7 @@ export interface BusinessDepositCalculatorParams
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export type BusinessDepositCalculatorData = {
|
|
41
|
-
|
|
41
|
+
rateRows: BusinessDepositCalculatorSourceBookParams[];
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
export const useBusinessDepositCalculatorParams = (
|
|
@@ -70,7 +70,7 @@ export const useBusinessDepositCalculatorParams = (
|
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
const businessDepositCalculatorSourceBookParams =
|
|
73
|
-
data?.
|
|
73
|
+
data?.rateRows?.find((_) => {
|
|
74
74
|
return (
|
|
75
75
|
isMonthlyInterestPayment === _.isMonthlyInterestPayment &&
|
|
76
76
|
isSmallBusiness === _.isSmallBusiness &&
|
|
@@ -84,7 +84,7 @@ export const useBusinessDepositCalculatorParams = (
|
|
|
84
84
|
|
|
85
85
|
const income = getDepositIncome(rate, userInputParams);
|
|
86
86
|
const finalSum = moneyValue + income;
|
|
87
|
-
const sourceBookRows = data?.
|
|
87
|
+
const sourceBookRows = data?.rateRows || [DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS];
|
|
88
88
|
|
|
89
89
|
return {
|
|
90
90
|
...businessDepositCalculatorSourceBookParams,
|
|
@@ -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,
|
|
@@ -15,7 +15,7 @@ export const CarouselEventCard = JSX<CarouselEventCardProps>(
|
|
|
15
15
|
return (
|
|
16
16
|
<BlockWrapper className={style('w-[365px]', className)} {...rest}>
|
|
17
17
|
<LinkWrapper className="flex flex-col" href={href} target={target}>
|
|
18
|
-
{icon?.icon ? <Img image={icon}
|
|
18
|
+
{icon?.icon ? <Img image={icon} /> : null}
|
|
19
19
|
{icon?.src ? <Img image={icon} /> : null}
|
|
20
20
|
{title ? (
|
|
21
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
|
);
|
|
@@ -16,7 +16,7 @@ export const CarouselProgramsCard = JSX<CarouselTariffsCardProps>(
|
|
|
16
16
|
<BlockWrapper className={style('border border-gray', className)} {...rest}>
|
|
17
17
|
<LinkWrapper className="flex" href={href} target={target}>
|
|
18
18
|
<div className="w-[200px] min-w-[200px] self-center">
|
|
19
|
-
{icon?.icon ? <Img image={icon}
|
|
19
|
+
{icon?.icon ? <Img image={icon} /> : null}
|
|
20
20
|
{icon?.src ? <Img image={icon} /> : null}
|
|
21
21
|
</div>
|
|
22
22
|
<div className="p-8 pl-3 w-full">
|
|
@@ -63,7 +63,7 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
63
63
|
|
|
64
64
|
const renderIconBlock = (icon: Picture | undefined) => (
|
|
65
65
|
<div className="absolute bottom-0 right-0">
|
|
66
|
-
{icon?.icon ? <Img image={icon}
|
|
66
|
+
{icon?.icon ? <Img image={icon} /> : null}
|
|
67
67
|
{icon?.src ? <Img image={icon} /> : null}
|
|
68
68
|
</div>
|
|
69
69
|
);
|
|
@@ -60,7 +60,7 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
|
|
|
60
60
|
const renderIconBlock = (icon?: Picture) => (
|
|
61
61
|
<div className="w-[267px] min-w-[267px] self-center">
|
|
62
62
|
{icon?.src ? <Img image={icon} /> : null}
|
|
63
|
-
{icon?.icon ? <Img image={icon}
|
|
63
|
+
{icon?.icon ? <Img image={icon} /> : null}
|
|
64
64
|
</div>
|
|
65
65
|
);
|
|
66
66
|
|
|
@@ -78,7 +78,6 @@ const renderFoldButton = ({ isUnfolded, onToggle }: FoldablePartProps): VNode =>
|
|
|
78
78
|
name={isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon'}
|
|
79
79
|
width="16"
|
|
80
80
|
height="16"
|
|
81
|
-
asSVG
|
|
82
81
|
/>
|
|
83
82
|
</button>
|
|
84
83
|
);
|
|
@@ -103,7 +102,7 @@ const renderCardInfo = (cell: TariffsCardCellProps, i: number): VNode => {
|
|
|
103
102
|
|
|
104
103
|
const renderHitIcon = (): VNode => (
|
|
105
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)]">
|
|
106
|
-
<Icon iconVersion="black" name="HeartIcon" width="23" height="22"
|
|
105
|
+
<Icon iconVersion="black" name="HeartIcon" width="23" height="22" />
|
|
107
106
|
<Paragraph size="text-s" font="font-normal" align="text-center" color="text-primary-text">
|
|
108
107
|
ХИТ
|
|
109
108
|
</Paragraph>
|
|
@@ -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>
|
|
@@ -55,7 +55,7 @@ const renderSubMenuItem = (menu: SubMenuItem, i: number) => {
|
|
|
55
55
|
|
|
56
56
|
return (
|
|
57
57
|
<Button version="link" key={`footer-${i}`} href={href} className="flex text-s mb-4 w-6">
|
|
58
|
-
{icon ? <Img className="pr-1" image={icon} width="24" height="24"
|
|
58
|
+
{icon ? <Img className="pr-1" image={icon} width="24" height="24" /> : null}
|
|
59
59
|
<span className="pl-2.5 font-medium text-primary-text">{text}</span>
|
|
60
60
|
</Button>
|
|
61
61
|
);
|
|
@@ -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) => {
|
|
@@ -35,7 +35,7 @@ export const Header = JSX<HeaderProps>(
|
|
|
35
35
|
}) => {
|
|
36
36
|
const router = useRouter();
|
|
37
37
|
|
|
38
|
-
const { topItems, logo, defaultLocation, foreignOffices, officesLink } =
|
|
38
|
+
const { topItems, logo, defaultLocation, foreignOffices, officesLink, internetBankUrl } =
|
|
39
39
|
useSWRResource<SitemapData>(
|
|
40
40
|
projectSettings.SITEMAP || 'sitemap',
|
|
41
41
|
rest.options?.page?.fallback,
|
|
@@ -76,7 +76,11 @@ export const Header = JSX<HeaderProps>(
|
|
|
76
76
|
)}
|
|
77
77
|
/>
|
|
78
78
|
{showSubMenu && activeTopItem?.items?.length ? (
|
|
79
|
-
<HeaderSubMenu
|
|
79
|
+
<HeaderSubMenu
|
|
80
|
+
subItems={activeTopItem.items}
|
|
81
|
+
version={version}
|
|
82
|
+
internetBankUrl={internetBankUrl}
|
|
83
|
+
/>
|
|
80
84
|
) : null}
|
|
81
85
|
</div>
|
|
82
86
|
<SearchDialog topItems={topItems} />
|
|
@@ -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
|
),
|