@redneckz/wildless-cms-uni-blocks 0.3.86 → 0.3.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +78 -72
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/Bonus/Bonus.js +2 -2
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/Calculator/BonusCalculatorForm.js +2 -2
- package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +2 -2
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Calculator/CalculatorValueBlock.js +1 -1
- package/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.js +1 -1
- package/dist/components/Calculator/Rate.js +1 -1
- package/dist/components/Calculator/Rate.js.map +1 -1
- package/dist/components/Calculator/renderButtonSection.d.ts +2 -1
- package/dist/components/Calculator/renderCalculatorBlock.d.ts +2 -1
- package/dist/components/Calculator/renderInitialFeeInput.d.ts +2 -1
- package/dist/components/Calculator/renderMonthsInput.d.ts +2 -1
- package/dist/components/Calculator/renderPaymentTypeSelector.d.ts +2 -1
- package/dist/components/Calculator/renderProposal.d.ts +2 -1
- package/dist/components/Calculator/renderProposal.js +1 -1
- package/dist/components/Calculator/renderProposal.js.map +1 -1
- package/dist/components/Calculator/renderProposalMortgage.d.ts +2 -1
- package/dist/components/Calculator/renderRealEstateValue.d.ts +2 -1
- package/dist/components/Calculator/renderWantedSumInput.d.ts +2 -1
- package/dist/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
- package/dist/components/Calculator/useBonusCalculatorParams.js +3 -3
- package/dist/components/Calculator/useBonusCalculatorParams.js.map +1 -1
- package/dist/components/Calculator/useCreditCalculatorParams.d.ts +1 -1
- package/dist/components/Calculator/useCreditCalculatorParams.js +3 -3
- package/dist/components/Catalog/Catalog.js +1 -1
- package/dist/components/Catalog/Catalog.js.map +1 -1
- package/dist/components/Catalog/CatalogCard.js +1 -1
- package/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/dist/components/ComparisonTable/HeaderCell.mobile.js +1 -1
- package/dist/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.d.ts +1 -1
- package/dist/components/ContentPage/ContentPage.js +2 -1
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ContentPage/ContentPageContext.d.ts +2 -2
- package/dist/components/ContentPage/ContentPageHead.d.ts +2 -1
- package/dist/components/ContentPage/normalizePage.d.ts +1 -1
- package/dist/components/ContentPage/normalizePage.js +1 -1
- package/dist/components/ContentPage/normalizePage.js.map +1 -1
- package/dist/components/ContentPage/normalizePage.mobile.js +1 -1
- package/dist/components/ContentPage/normalizePage.mobile.js.map +1 -1
- package/dist/components/ExchangeRateTile/renderButton.d.ts +2 -1
- package/dist/components/ExchangeRateTile/renderInput.d.ts +2 -1
- package/dist/components/Footer/Contacts.js +1 -1
- package/dist/components/Footer/Contacts.js.map +1 -1
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/MediaButton.js +1 -2
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Footer/Sitemap.js +2 -2
- package/dist/components/Footer/Sitemap.js.map +1 -1
- package/dist/components/Footer/SocialMedia.js +1 -1
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +1 -1
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Gallery/GalleryContainer.js +1 -1
- package/dist/components/Gallery/GalleryContainer.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriod.js +2 -2
- package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/dist/components/GroupBlock/GroupBlocksItem.d.ts +2 -1
- package/dist/components/GroupBlock/renderBlocksTypes.d.ts +2 -1
- package/dist/components/Header/DropdownMenu.js +1 -1
- package/dist/components/Header/DropdownMenu.js.map +1 -1
- package/dist/components/Header/Header.js +1 -1
- package/dist/components/Header/HeaderBurger.d.ts +2 -1
- package/dist/components/Header/HeaderBurger.js.map +1 -1
- package/dist/components/Header/HeaderSubMenu.js +1 -1
- package/dist/components/Headline/Headline.js +2 -2
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Headline/HeadlineContent.d.ts +3 -0
- package/dist/components/Insurance/Insurance.js +2 -2
- package/dist/components/Insurance/Insurance.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/dist/components/LikeControl/LikeControl.js +1 -1
- package/dist/components/LikeControl/LikeControl.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +2 -2
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +2 -2
- package/dist/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +3 -2
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +2 -2
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js +2 -2
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.d.ts +2 -1
- package/dist/components/ProductBlock/renderBenefit.d.ts +2 -1
- package/dist/components/ProductBlock/renderBenefit.mobile.d.ts +2 -1
- package/dist/components/ProductGallery/ProductGallery.js +2 -2
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +1 -1
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/PromoTile/PromoTile.js +1 -1
- package/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/dist/components/Recommendation/Recommendation.js +8 -8
- package/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/dist/components/Recommendation/RecommendationCard.js +3 -1
- package/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/dist/components/Recommendation/RecommendationContent.d.ts +2 -3
- package/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/content-page-repository/mapJSON.js.map +1 -1
- package/dist/content-page-repository/transformContentPage.js +1 -0
- package/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/dist/hooks/useExchangeRates.js.map +1 -1
- package/dist/icons/IconName.js +2 -2
- package/dist/icons/IconName.js.map +1 -1
- package/dist/react/IntersectionObserverTag.js +26 -4
- package/dist/react/IntersectionObserverTag.js.map +1 -1
- package/dist/react/setup-fixture.js +7 -2
- package/dist/react/setup-fixture.js.map +1 -1
- package/dist/ui-kit/BlockWrapper.d.ts +1 -1
- package/dist/ui-kit/BlockWrapper.js +3 -2
- package/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/dist/ui-kit/BlocksList/renderBlocksList.d.ts +2 -1
- package/dist/ui-kit/Button/ArrowButton.js +3 -3
- package/dist/ui-kit/Button/ArrowButton.js.map +1 -1
- package/dist/ui-kit/Button/Button.js +2 -2
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Button/ButtonProps.d.ts +4 -3
- package/dist/ui-kit/Button/LikeButton.js +3 -1
- package/dist/ui-kit/Button/LikeButton.js.map +1 -1
- package/dist/ui-kit/Button/renderArrows.d.ts +2 -1
- package/dist/ui-kit/Checkbox/Checkbox.js +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/dist/ui-kit/Foldable/Foldable.js +1 -1
- package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.js +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/dist/ui-kit/Heading/Heading.mobile.js +1 -1
- package/dist/ui-kit/Heading/Heading.mobile.js.map +1 -1
- package/dist/ui-kit/Input/Input.js +1 -1
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRange.js +1 -1
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/SVG.d.ts +2 -3
- package/dist/ui-kit/SearchBar/SearchBarInner.js +2 -2
- package/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlList.d.ts +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlList.js +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -1
- package/dist/ui-kit/Tabs/Tabs.js +1 -1
- package/dist/ui-kit/Tabs/Tabs.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.fixture.d.ts +3 -2
- package/lib/components/Accordion/Accordion.fixture.mobile.d.ts +2 -1
- package/lib/components/Accordion/Accordion.js +1 -1
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.fixture.d.ts +3 -2
- package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/Bonus/Bonus.fixture.d.ts +2 -1
- package/lib/components/Bonus/Bonus.js +2 -2
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.d.ts +2 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/Calculator/BonusCalculatorForm.js +3 -3
- package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/Calculator.fixture.d.ts +3 -2
- package/lib/components/Calculator/Calculator.js +2 -2
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Calculator/CalculatorValueBlock.js +1 -1
- package/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.js +2 -2
- package/lib/components/Calculator/Rate.js +1 -1
- package/lib/components/Calculator/Rate.js.map +1 -1
- package/lib/components/Calculator/renderButtonSection.d.ts +2 -1
- package/lib/components/Calculator/renderCalculatorBlock.d.ts +2 -1
- package/lib/components/Calculator/renderInitialFeeInput.d.ts +2 -1
- package/lib/components/Calculator/renderMonthsInput.d.ts +2 -1
- package/lib/components/Calculator/renderPaymentTypeSelector.d.ts +2 -1
- package/lib/components/Calculator/renderProposal.d.ts +2 -1
- package/lib/components/Calculator/renderProposal.js +1 -1
- package/lib/components/Calculator/renderProposal.js.map +1 -1
- package/lib/components/Calculator/renderProposalMortgage.d.ts +2 -1
- package/lib/components/Calculator/renderRealEstateValue.d.ts +2 -1
- package/lib/components/Calculator/renderWantedSumInput.d.ts +2 -1
- package/lib/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
- package/lib/components/Calculator/useBonusCalculatorParams.js +1 -1
- package/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -1
- package/lib/components/Calculator/useCreditCalculatorParams.d.ts +1 -1
- package/lib/components/Calculator/useCreditCalculatorParams.js +1 -1
- package/lib/components/Catalog/Catalog.fixture.d.ts +2 -1
- package/lib/components/Catalog/Catalog.js +1 -1
- package/lib/components/Catalog/Catalog.js.map +1 -1
- package/lib/components/Catalog/CatalogCard.js +1 -1
- package/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.fixture.d.ts +6 -5
- package/lib/components/ComparisonTable/ComparisonTable.fixture.mobile.d.ts +3 -2
- package/lib/components/ComparisonTable/HeaderCell.mobile.js +1 -1
- package/lib/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.d.ts +1 -1
- package/lib/components/ContentPage/ContentPage.fixture.d.ts +3 -2
- package/lib/components/ContentPage/ContentPage.fixture.mobile.d.ts +2 -1
- package/lib/components/ContentPage/ContentPage.js +2 -1
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ContentPage/ContentPageContext.d.ts +2 -2
- package/lib/components/ContentPage/ContentPageHead.d.ts +2 -1
- package/lib/components/ContentPage/normalizePage.d.ts +1 -1
- package/lib/components/ContentPage/normalizePage.js +1 -1
- package/lib/components/ContentPage/normalizePage.js.map +1 -1
- package/lib/components/ContentPage/normalizePage.mobile.js +1 -1
- package/lib/components/ContentPage/normalizePage.mobile.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.fixture.d.ts +2 -1
- package/lib/components/ExchangeRateTile/renderButton.d.ts +2 -1
- package/lib/components/ExchangeRateTile/renderInput.d.ts +2 -1
- package/lib/components/Footer/Contacts.js +1 -1
- package/lib/components/Footer/Contacts.js.map +1 -1
- package/lib/components/Footer/Footer.fixture.d.ts +2 -1
- package/lib/components/Footer/Footer.fixture.mobile.d.ts +2 -1
- package/lib/components/Footer/Footer.js +1 -1
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/MediaButton.js +1 -2
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Footer/Sitemap.js +2 -2
- package/lib/components/Footer/Sitemap.js.map +1 -1
- package/lib/components/Footer/SocialMedia.js +1 -1
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Gallery/Gallery.fixture.d.ts +6 -5
- package/lib/components/Gallery/Gallery.fixture.mobile.d.ts +3 -2
- package/lib/components/Gallery/GalleryCardInner.js +1 -1
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Gallery/GalleryContainer.js +1 -1
- package/lib/components/Gallery/GalleryContainer.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriod.fixture.d.ts +2 -1
- package/lib/components/GracePeriod/GracePeriod.js +2 -2
- package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/lib/components/GroupBlock/GroupBlock.fixture.d.ts +3 -2
- package/lib/components/GroupBlock/GroupBlocksItem.d.ts +2 -1
- package/lib/components/GroupBlock/renderBlocksTypes.d.ts +2 -1
- package/lib/components/Header/DropdownMenu.js +1 -1
- package/lib/components/Header/DropdownMenu.js.map +1 -1
- package/lib/components/Header/Header.fixture.d.ts +4 -3
- package/lib/components/Header/Header.fixture.mobile.d.ts +3 -2
- package/lib/components/Header/Header.js +1 -1
- package/lib/components/Header/HeaderBurger.d.ts +2 -1
- package/lib/components/Header/HeaderBurger.js.map +1 -1
- package/lib/components/Header/HeaderSubMenu.js +1 -1
- package/lib/components/Headline/Headline.fixture.d.ts +15 -14
- package/lib/components/Headline/Headline.fixture.mobile.d.ts +14 -13
- package/lib/components/Headline/Headline.js +2 -2
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/HeadlineContent.d.ts +3 -0
- package/lib/components/Insurance/Insurance.fixture.d.ts +3 -2
- package/lib/components/Insurance/Insurance.js +2 -2
- package/lib/components/Insurance/Insurance.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.d.ts +2 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/lib/components/LikeControl/LikeControl.fixture.d.ts +2 -1
- package/lib/components/LikeControl/LikeControl.js +1 -1
- package/lib/components/LikeControl/LikeControl.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.fixture.d.ts +5 -4
- package/lib/components/LinkDocs/LinkDocs.fixture.mobile.d.ts +4 -3
- package/lib/components/LinkDocs/LinkDocs.js +2 -2
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +2 -2
- package/lib/components/LinkList/LinkList.fixture.d.ts +2 -1
- package/lib/components/MiniGallery/MiniGallery.fixture.d.ts +3 -2
- package/lib/components/MobileAppTile/MobileAppTile.fixture.d.ts +4 -3
- package/lib/components/MobileAppTile/MobileAppTile.fixture.mobile.d.ts +2 -1
- package/lib/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
- package/lib/components/Navigation/Navigation.fixture.d.ts +2 -1
- package/lib/components/NavigatorTabs/NavigatorTabs.fixture.d.ts +2 -1
- package/lib/components/OtherProducts/OtherProducts.fixture.d.ts +2 -1
- package/lib/components/PictureText/PictureText.fixture.d.ts +2 -1
- package/lib/components/Placeholder/Placeholder.fixture.d.ts +2 -1
- package/lib/components/Placeholder/Placeholder.fixture.mobile.d.ts +2 -1
- package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +11 -10
- package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +7 -6
- package/lib/components/ProductBlock/ProductBlock.js +3 -2
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +2 -2
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js +2 -2
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.d.ts +2 -1
- package/lib/components/ProductBlock/renderBenefit.d.ts +2 -1
- package/lib/components/ProductBlock/renderBenefit.mobile.d.ts +2 -1
- package/lib/components/ProductGallery/ProductGallery.fixture.d.ts +3 -2
- package/lib/components/ProductGallery/ProductGallery.fixture.mobile.d.ts +3 -2
- package/lib/components/ProductGallery/ProductGallery.js +2 -2
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.fixture.d.ts +6 -5
- package/lib/components/ProductTile/ProductTile.js +1 -1
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/PromoTile/PromoTile.fixture.d.ts +2 -1
- package/lib/components/PromoTile/PromoTile.js +1 -1
- package/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/lib/components/Recommendation/Recommendation.fixture.d.ts +7 -4
- package/lib/components/Recommendation/Recommendation.js +8 -8
- package/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/lib/components/Recommendation/RecommendationCard.js +3 -1
- package/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/lib/components/Recommendation/RecommendationContent.d.ts +2 -3
- package/lib/components/StepsBlock/StepsBlock.fixture.d.ts +5 -4
- package/lib/components/StepsBlock/StepsBlock.fixture.mobile.d.ts +9 -8
- package/lib/components/TariffsTable/TariffsTable.fixture.d.ts +5 -4
- package/lib/components/TariffsTable/TariffsTable.fixture.mobile.d.ts +3 -2
- package/lib/components/TariffsTable/TariffsTable.js +1 -1
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.fixture.d.ts +4 -3
- package/lib/components/TextBlock/TextBlock.fixture.mobile.d.ts +4 -3
- package/lib/components/Tile/Tile.fixture.d.ts +6 -5
- package/lib/content-page-repository/mapJSON.js.map +1 -1
- package/lib/content-page-repository/transformContentPage.js +1 -0
- package/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/lib/cosmos.decorator.d.ts +2 -1
- package/lib/hooks/useExchangeRates.js.map +1 -1
- package/lib/icons/IconName.js +1 -1
- package/lib/icons/IconName.js.map +1 -1
- package/lib/react/IntersectionObserverTag.js +3 -4
- package/lib/react/IntersectionObserverTag.js.map +1 -1
- package/lib/react/setup-fixture.js +3 -1
- package/lib/react/setup-fixture.js.map +1 -1
- package/lib/ui-kit/BlockWrapper.d.ts +1 -1
- package/lib/ui-kit/BlockWrapper.js +3 -2
- package/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/lib/ui-kit/BlocksList/renderBlocksList.d.ts +1 -1
- package/lib/ui-kit/Button/ArrowButton.js +3 -3
- package/lib/ui-kit/Button/ArrowButton.js.map +1 -1
- package/lib/ui-kit/Button/Button.fixture.d.ts +10 -9
- package/lib/ui-kit/Button/Button.fixture.mobile.d.ts +2 -1
- package/lib/ui-kit/Button/Button.js +2 -2
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Button/ButtonProps.d.ts +4 -3
- package/lib/ui-kit/Button/LikeButton.fixture.d.ts +3 -2
- package/lib/ui-kit/Button/LikeButton.js +3 -1
- package/lib/ui-kit/Button/LikeButton.js.map +1 -1
- package/lib/ui-kit/Button/renderArrows.d.ts +2 -1
- package/lib/ui-kit/Checkbox/Checkbox.js +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/lib/ui-kit/Foldable/Foldable.js +1 -1
- package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.fixture.d.ts +3 -2
- package/lib/ui-kit/HeaderItem/HeaderItem.js +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/lib/ui-kit/Heading/Heading.fixture.d.ts +2 -1
- package/lib/ui-kit/Heading/Heading.fixture.mobile.d.ts +2 -1
- package/lib/ui-kit/Heading/Heading.mobile.js +1 -1
- package/lib/ui-kit/Heading/Heading.mobile.js.map +1 -1
- package/lib/ui-kit/Icon/Icon.fixture.d.ts +5 -4
- package/lib/ui-kit/Input/Input.js +1 -1
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRange.js +1 -1
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/List/List.fixture.d.ts +11 -10
- package/lib/ui-kit/Logo/Logo.fixture.d.ts +2 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.d.ts +2 -1
- package/lib/ui-kit/SVG.d.ts +2 -3
- package/lib/ui-kit/SearchBar/SearchBarInner.js +2 -2
- package/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.d.ts +5 -4
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlList.d.ts +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlList.js +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -1
- package/lib/ui-kit/Tabs/Tabs.js +1 -1
- package/lib/ui-kit/Tabs/Tabs.js.map +1 -1
- package/lib/ui-kit/TopItem/TopItem.fixture.d.ts +3 -2
- package/mobile/bundle/bundle.umd.js +23 -20
- package/mobile/bundle/bundle.umd.min.js +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/Bonus/Bonus.js +2 -2
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js +2 -2
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/Calculator.js +2 -2
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Calculator/CalculatorValueBlock.js +1 -1
- package/mobile/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +1 -1
- package/mobile/dist/components/Calculator/Rate.js +1 -1
- package/mobile/dist/components/Calculator/Rate.js.map +1 -1
- package/mobile/dist/components/Calculator/renderButtonSection.d.ts +2 -1
- package/mobile/dist/components/Calculator/renderCalculatorBlock.d.ts +2 -1
- package/mobile/dist/components/Calculator/renderInitialFeeInput.d.ts +2 -1
- package/mobile/dist/components/Calculator/renderMonthsInput.d.ts +2 -1
- package/mobile/dist/components/Calculator/renderPaymentTypeSelector.d.ts +2 -1
- package/mobile/dist/components/Calculator/renderProposal.d.ts +2 -1
- package/mobile/dist/components/Calculator/renderProposal.js +1 -1
- package/mobile/dist/components/Calculator/renderProposal.js.map +1 -1
- package/mobile/dist/components/Calculator/renderProposalMortgage.d.ts +2 -1
- package/mobile/dist/components/Calculator/renderRealEstateValue.d.ts +2 -1
- package/mobile/dist/components/Calculator/renderWantedSumInput.d.ts +2 -1
- package/mobile/dist/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
- package/mobile/dist/components/Calculator/useBonusCalculatorParams.js +3 -3
- package/mobile/dist/components/Calculator/useBonusCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.d.ts +1 -1
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +3 -3
- package/mobile/dist/components/Catalog/Catalog.js +1 -1
- package/mobile/dist/components/Catalog/Catalog.js.map +1 -1
- package/mobile/dist/components/Catalog/CatalogCard.js +1 -1
- package/mobile/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/HeaderCell.js +1 -1
- package/mobile/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.d.ts +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +2 -1
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPageContext.d.ts +2 -2
- package/mobile/dist/components/ContentPage/ContentPageHead.d.ts +2 -1
- package/mobile/dist/components/ContentPage/normalizePage.js +1 -1
- package/mobile/dist/components/ContentPage/normalizePage.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/renderButton.d.ts +2 -1
- package/mobile/dist/components/ExchangeRateTile/renderInput.d.ts +2 -1
- package/mobile/dist/components/Footer/Contacts.js +1 -1
- package/mobile/dist/components/Footer/Contacts.js.map +1 -1
- package/mobile/dist/components/Footer/MediaButton.js +1 -2
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Footer/Sitemap.js +2 -2
- package/mobile/dist/components/Footer/Sitemap.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContainer.js +1 -1
- package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.js +2 -2
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/dist/components/GroupBlock/GroupBlocksItem.d.ts +2 -1
- package/mobile/dist/components/GroupBlock/renderBlocksTypes.d.ts +2 -1
- package/mobile/dist/components/Header/DropdownMenu.js +1 -1
- package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderBurger.d.ts +2 -1
- package/mobile/dist/components/Header/HeaderBurger.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenu.js +1 -1
- package/mobile/dist/components/Headline/HeadlineContent.d.ts +3 -0
- package/mobile/dist/components/Insurance/Insurance.js +2 -2
- package/mobile/dist/components/Insurance/Insurance.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/dist/components/LikeControl/LikeControl.js +1 -1
- package/mobile/dist/components/LikeControl/LikeControl.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +2 -2
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +2 -2
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.d.ts +2 -1
- package/mobile/dist/components/ProductBlock/renderBenefit.d.ts +2 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/PromoTile/PromoTile.js +1 -1
- package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/dist/components/Recommendation/Recommendation.js +8 -8
- package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/dist/components/Recommendation/RecommendationCard.js +3 -1
- package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +2 -3
- package/mobile/dist/content-page-repository/mapJSON.js.map +1 -1
- package/mobile/dist/content-page-repository/transformContentPage.js +1 -0
- package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/dist/hooks/useExchangeRates.js.map +1 -1
- package/mobile/dist/icons/IconName.js +2 -2
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/react/IntersectionObserverTag.js +26 -4
- package/mobile/dist/react/IntersectionObserverTag.js.map +1 -1
- package/mobile/dist/react/setup-fixture.js +7 -2
- package/mobile/dist/react/setup-fixture.js.map +1 -1
- package/mobile/dist/ui-kit/BlockWrapper.d.ts +1 -1
- package/mobile/dist/ui-kit/BlockWrapper.js +3 -2
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.d.ts +2 -1
- package/mobile/dist/ui-kit/Button/ArrowButton.js +3 -3
- package/mobile/dist/ui-kit/Button/ArrowButton.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +4 -3
- package/mobile/dist/ui-kit/Button/LikeButton.js +3 -1
- package/mobile/dist/ui-kit/Button/LikeButton.js.map +1 -1
- package/mobile/dist/ui-kit/Button/renderArrows.d.ts +2 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js +1 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/Foldable.js +1 -1
- package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/dist/ui-kit/Heading/Heading.js +1 -1
- package/mobile/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/mobile/dist/ui-kit/Input/Input.js +1 -1
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/SVG.d.ts +2 -3
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js +2 -2
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.d.ts +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -1
- package/mobile/dist/ui-kit/Tabs/Tabs.js +1 -1
- package/mobile/dist/ui-kit/Tabs/Tabs.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/Bonus/Bonus.js +2 -2
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js +3 -3
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +2 -2
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorValueBlock.js +1 -1
- package/mobile/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +2 -2
- package/mobile/lib/components/Calculator/Rate.js +1 -1
- package/mobile/lib/components/Calculator/Rate.js.map +1 -1
- package/mobile/lib/components/Calculator/renderButtonSection.d.ts +2 -1
- package/mobile/lib/components/Calculator/renderCalculatorBlock.d.ts +2 -1
- package/mobile/lib/components/Calculator/renderInitialFeeInput.d.ts +2 -1
- package/mobile/lib/components/Calculator/renderMonthsInput.d.ts +2 -1
- package/mobile/lib/components/Calculator/renderPaymentTypeSelector.d.ts +2 -1
- package/mobile/lib/components/Calculator/renderProposal.d.ts +2 -1
- package/mobile/lib/components/Calculator/renderProposal.js +1 -1
- package/mobile/lib/components/Calculator/renderProposal.js.map +1 -1
- package/mobile/lib/components/Calculator/renderProposalMortgage.d.ts +2 -1
- package/mobile/lib/components/Calculator/renderRealEstateValue.d.ts +2 -1
- package/mobile/lib/components/Calculator/renderWantedSumInput.d.ts +2 -1
- package/mobile/lib/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
- package/mobile/lib/components/Calculator/useBonusCalculatorParams.js +1 -1
- package/mobile/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.d.ts +1 -1
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +1 -1
- package/mobile/lib/components/Catalog/Catalog.js +1 -1
- package/mobile/lib/components/Catalog/Catalog.js.map +1 -1
- package/mobile/lib/components/Catalog/CatalogCard.js +1 -1
- package/mobile/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/HeaderCell.js +1 -1
- package/mobile/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.d.ts +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +2 -1
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPageContext.d.ts +2 -2
- package/mobile/lib/components/ContentPage/ContentPageHead.d.ts +2 -1
- package/mobile/lib/components/ContentPage/normalizePage.js +1 -1
- package/mobile/lib/components/ContentPage/normalizePage.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/renderButton.d.ts +2 -1
- package/mobile/lib/components/ExchangeRateTile/renderInput.d.ts +2 -1
- package/mobile/lib/components/Footer/Contacts.js +1 -1
- package/mobile/lib/components/Footer/Contacts.js.map +1 -1
- package/mobile/lib/components/Footer/MediaButton.js +1 -2
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Footer/Sitemap.js +2 -2
- package/mobile/lib/components/Footer/Sitemap.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContainer.js +1 -1
- package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.js +2 -2
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/lib/components/GroupBlock/GroupBlocksItem.d.ts +2 -1
- package/mobile/lib/components/GroupBlock/renderBlocksTypes.d.ts +2 -1
- package/mobile/lib/components/Header/DropdownMenu.js +1 -1
- package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderBurger.d.ts +2 -1
- package/mobile/lib/components/Header/HeaderBurger.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenu.js +1 -1
- package/mobile/lib/components/Headline/HeadlineContent.d.ts +3 -0
- package/mobile/lib/components/Insurance/Insurance.js +2 -2
- package/mobile/lib/components/Insurance/Insurance.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/lib/components/LikeControl/LikeControl.js +1 -1
- package/mobile/lib/components/LikeControl/LikeControl.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +2 -2
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +2 -2
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.d.ts +2 -1
- package/mobile/lib/components/ProductBlock/renderBenefit.d.ts +2 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/PromoTile/PromoTile.js +1 -1
- package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/lib/components/Recommendation/Recommendation.js +8 -8
- package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/lib/components/Recommendation/RecommendationCard.js +3 -1
- package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +2 -3
- package/mobile/lib/content-page-repository/mapJSON.js.map +1 -1
- package/mobile/lib/content-page-repository/transformContentPage.js +1 -0
- package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/lib/hooks/useExchangeRates.js.map +1 -1
- package/mobile/lib/icons/IconName.js +1 -1
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/react/IntersectionObserverTag.js +3 -4
- package/mobile/lib/react/IntersectionObserverTag.js.map +1 -1
- package/mobile/lib/react/setup-fixture.js +3 -1
- package/mobile/lib/react/setup-fixture.js.map +1 -1
- package/mobile/lib/ui-kit/BlockWrapper.d.ts +1 -1
- package/mobile/lib/ui-kit/BlockWrapper.js +3 -2
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.d.ts +2 -1
- package/mobile/lib/ui-kit/Button/ArrowButton.js +3 -3
- package/mobile/lib/ui-kit/Button/ArrowButton.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +4 -3
- package/mobile/lib/ui-kit/Button/LikeButton.js +3 -1
- package/mobile/lib/ui-kit/Button/LikeButton.js.map +1 -1
- package/mobile/lib/ui-kit/Button/renderArrows.d.ts +2 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js +1 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/Foldable.js +1 -1
- package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/lib/ui-kit/Heading/Heading.js +1 -1
- package/mobile/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/mobile/lib/ui-kit/Input/Input.js +1 -1
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/SVG.d.ts +2 -3
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js +2 -2
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.d.ts +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -1
- package/mobile/lib/ui-kit/Tabs/Tabs.js +1 -1
- package/mobile/lib/ui-kit/Tabs/Tabs.js.map +1 -1
- package/mobile/src/common.css +7 -7
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/mobile/src/components/Blocks.spec.tsx +3 -6
- package/mobile/src/components/Bonus/Bonus.tsx +3 -5
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
- package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +3 -3
- package/mobile/src/components/Calculator/Calculator.tsx +2 -2
- package/mobile/src/components/Calculator/CalculatorValueBlock.tsx +2 -2
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +2 -2
- package/mobile/src/components/Calculator/Rate.tsx +1 -1
- package/mobile/src/components/Calculator/renderProposal.tsx +2 -4
- package/mobile/src/components/Calculator/useBonusCalculatorParams.ts +2 -2
- package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +1 -1
- package/mobile/src/components/Catalog/Catalog.tsx +2 -2
- package/mobile/src/components/Catalog/CatalogCard.tsx +10 -7
- package/mobile/src/components/ComparisonTable/HeaderCell.tsx +1 -1
- package/mobile/src/components/ContentPage/ContentPage.page.json +2 -2
- package/mobile/src/components/ContentPage/ContentPage.tsx +3 -2
- package/mobile/src/components/ContentPage/ContentPageContext.tsx +2 -4
- package/mobile/src/components/ContentPage/ContentPageHead.tsx +2 -2
- package/mobile/src/components/ContentPage/normalizePage.ts +3 -3
- package/mobile/src/components/Footer/Contacts.tsx +1 -1
- package/mobile/src/components/Footer/MediaButton.tsx +1 -2
- package/mobile/src/components/Footer/Sitemap.tsx +2 -2
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +1 -3
- package/mobile/src/components/Gallery/GalleryContainer.tsx +1 -1
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +2 -2
- package/mobile/src/components/Header/DropdownMenu.tsx +1 -1
- package/mobile/src/components/Header/HeaderBurger.tsx +2 -1
- package/mobile/src/components/Header/HeaderSubMenu.tsx +1 -1
- package/mobile/src/components/Headline/HeadlineContent.ts +3 -0
- package/mobile/src/components/Insurance/Insurance.tsx +5 -5
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +2 -2
- package/mobile/src/components/LikeControl/LikeControl.tsx +2 -2
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +2 -2
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +2 -2
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +1 -1
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +2 -1
- package/mobile/src/components/ProductTile/ProductTile.tsx +2 -0
- package/mobile/src/components/PromoTile/PromoTile.example.json +1 -0
- package/mobile/src/components/PromoTile/PromoTile.tsx +2 -1
- package/mobile/src/components/Recommendation/Recommendation.tsx +20 -18
- package/mobile/src/components/Recommendation/RecommendationCard.tsx +20 -15
- package/mobile/src/components/Recommendation/RecommendationContent.ts +2 -3
- package/mobile/src/components/__snapshots__/Blocks.spec.tsx.snap +162 -59
- package/mobile/src/content-page-repository/mapJSON.ts +1 -1
- package/mobile/src/content-page-repository/transformContentPage.ts +1 -0
- package/mobile/src/hooks/useExchangeRates.ts +1 -1
- package/mobile/src/icons/IconName.ts +1 -2
- package/mobile/src/react/IntersectionObserverTag.tsx +3 -8
- package/mobile/src/react/setup-fixture.ts +5 -2
- package/mobile/src/ui-kit/BlockWrapper.tsx +5 -3
- package/mobile/src/ui-kit/Button/ArrowButton.tsx +4 -3
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/mobile/src/ui-kit/Button/ButtonProps.ts +4 -3
- package/mobile/src/ui-kit/Button/LikeButton.tsx +3 -1
- package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +2 -2
- package/mobile/src/ui-kit/Foldable/Foldable.tsx +1 -1
- package/mobile/src/ui-kit/Heading/Heading.tsx +1 -1
- package/mobile/src/ui-kit/Input/Input.tsx +3 -4
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +4 -4
- package/mobile/src/ui-kit/SVG.tsx +2 -2
- package/mobile/src/ui-kit/SearchBar/SearchBarInner.tsx +3 -3
- package/mobile/src/ui-kit/Select/Select.tsx +1 -1
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +2 -2
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +4 -4
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +3 -3
- package/mobile/src/ui-kit/Tabs/Tabs.tsx +1 -1
- package/package.json +4 -2
- package/src/common.css +7 -7
- package/src/components/Accordion/Accordion.tsx +1 -1
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/src/components/Blocks.spec.tsx +3 -6
- package/src/components/Bonus/Bonus.fixture.tsx +1 -0
- package/src/components/Bonus/Bonus.tsx +3 -5
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
- package/src/components/Calculator/BonusCalculatorForm.tsx +3 -3
- package/src/components/Calculator/Calculator.tsx +2 -2
- package/src/components/Calculator/CalculatorValueBlock.tsx +2 -2
- package/src/components/Calculator/CreditCalculatorForm.tsx +2 -2
- package/src/components/Calculator/Rate.tsx +1 -1
- package/src/components/Calculator/renderProposal.tsx +2 -4
- package/src/components/Calculator/useBonusCalculatorParams.ts +2 -2
- package/src/components/Calculator/useCreditCalculatorParams.ts +1 -1
- package/src/components/Catalog/Catalog.tsx +2 -2
- package/src/components/Catalog/CatalogCard.tsx +10 -7
- package/src/components/ComparisonTable/HeaderCell.mobile.tsx +1 -1
- package/src/components/ContentPage/ContentPage.fixture.tsx +1 -1
- package/src/components/ContentPage/ContentPage.page.json +2 -2
- package/src/components/ContentPage/ContentPage.tsx +3 -2
- package/src/components/ContentPage/ContentPageContext.tsx +2 -4
- package/src/components/ContentPage/ContentPageHead.tsx +2 -2
- package/src/components/ContentPage/normalizePage.mobile.ts +3 -3
- package/src/components/ContentPage/normalizePage.ts +4 -4
- package/src/components/Footer/Contacts.tsx +1 -1
- package/src/components/Footer/Footer.tsx +2 -2
- package/src/components/Footer/MediaButton.tsx +1 -2
- package/src/components/Footer/Sitemap.tsx +2 -2
- package/src/components/Footer/SocialMedia.tsx +1 -1
- package/src/components/Gallery/GalleryCardInner.tsx +1 -3
- package/src/components/Gallery/GalleryContainer.tsx +1 -1
- package/src/components/GracePeriod/GracePeriod.tsx +2 -2
- package/src/components/Header/DropdownMenu.tsx +1 -1
- package/src/components/Header/Header.tsx +1 -1
- package/src/components/Header/HeaderBurger.tsx +2 -1
- package/src/components/Header/HeaderSubMenu.tsx +1 -1
- package/src/components/Headline/Headline.fixture.tsx +4 -4
- package/src/components/Headline/Headline.tsx +3 -2
- package/src/components/Headline/HeadlineContent.ts +3 -0
- package/src/components/Insurance/Insurance.tsx +5 -5
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +2 -2
- package/src/components/LikeControl/LikeControl.tsx +2 -2
- package/src/components/LinkDocs/LinkDocs.tsx +1 -2
- package/src/components/LinkDocs/LinkDocsContent.ts +2 -2
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +3 -0
- package/src/components/MobileAppTile/MobileAppTile.mobile.tsx +2 -2
- package/src/components/ProductBlock/ProductBlock.example.json +1 -1
- package/src/components/ProductBlock/ProductBlock.tsx +10 -2
- package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +2 -1
- package/src/components/ProductBlock/ProductBlockInner.tsx +3 -2
- package/src/components/ProductGallery/ProductGallery.tsx +2 -2
- package/src/components/ProductTile/ProductTile.tsx +2 -0
- package/src/components/PromoTile/PromoTile.example.json +1 -0
- package/src/components/PromoTile/PromoTile.tsx +2 -1
- package/src/components/Recommendation/Recommendation.fixture.tsx +68 -16
- package/src/components/Recommendation/Recommendation.tsx +20 -18
- package/src/components/Recommendation/RecommendationCard.tsx +20 -15
- package/src/components/Recommendation/RecommendationContent.ts +2 -3
- package/src/components/TariffsTable/TariffsTable.tsx +1 -1
- package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +1 -0
- package/src/components/TextBlock/TextBlock.fixture.tsx +1 -0
- package/src/components/__snapshots__/Blocks.spec.tsx.snap +162 -59
- package/src/content-page-repository/mapJSON.ts +1 -1
- package/src/content-page-repository/transformContentPage.ts +1 -0
- package/src/hooks/useExchangeRates.ts +1 -1
- package/src/react/IntersectionObserverTag.tsx +3 -8
- package/src/react/setup-fixture.ts +5 -2
- package/src/ui-kit/BlockWrapper.tsx +5 -3
- package/src/ui-kit/Button/ArrowButton.tsx +4 -3
- package/src/ui-kit/Button/Button.tsx +2 -2
- package/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/src/ui-kit/Button/ButtonProps.ts +4 -3
- package/src/ui-kit/Button/LikeButton.tsx +3 -1
- package/src/ui-kit/Checkbox/Checkbox.tsx +2 -2
- package/src/ui-kit/Foldable/Foldable.tsx +1 -1
- package/src/ui-kit/HeaderItem/HeaderItem.tsx +1 -1
- package/src/ui-kit/Heading/Heading.mobile.tsx +1 -1
- package/src/ui-kit/Input/Input.tsx +3 -4
- package/src/ui-kit/InputRange/InputRange.tsx +4 -4
- package/src/ui-kit/SVG.tsx +2 -2
- package/src/ui-kit/SearchBar/SearchBarInner.tsx +3 -3
- package/src/ui-kit/Select/Select.tsx +1 -1
- package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +2 -2
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +4 -4
- package/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +3 -3
- package/src/ui-kit/Tabs/Tabs.tsx +1 -1
|
@@ -21,7 +21,7 @@ export const Checkbox = JSX<CheckboxProps>(({ className, text, checked, isRadio,
|
|
|
21
21
|
checked:border-primary-main m-0`}
|
|
22
22
|
type="checkbox"
|
|
23
23
|
onChange={(e) => {
|
|
24
|
-
onChange(e.target.checked);
|
|
24
|
+
onChange(e.target.checked as boolean);
|
|
25
25
|
}}
|
|
26
26
|
checked={checked}
|
|
27
27
|
/>
|
|
@@ -37,7 +37,7 @@ export const Checkbox = JSX<CheckboxProps>(({ className, text, checked, isRadio,
|
|
|
37
37
|
viewBox="0 0 11 9"
|
|
38
38
|
/>
|
|
39
39
|
)}
|
|
40
|
-
{text ? <span className="font-sans ml-3 text-
|
|
40
|
+
{text ? <span className="font-sans ml-3 text-l cursor-pointer">{text}</span> : null}
|
|
41
41
|
</label>
|
|
42
42
|
</div>
|
|
43
43
|
));
|
|
@@ -48,7 +48,7 @@ export const Foldable = JSX<FoldableProps>(
|
|
|
48
48
|
|
|
49
49
|
const buttonClassName =
|
|
50
50
|
foldButtonClasses ||
|
|
51
|
-
'border-none bg-primary-main px-0 py-[26px] mb-[1px] w-full font-sans text-white text-
|
|
51
|
+
'border-none bg-primary-main px-0 py-[26px] mb-[1px] w-full font-sans text-white text-l flex justify-center cursor-pointer';
|
|
52
52
|
const getFoldButtonLabel = isActive ? 'Скрыть' : foldButtonLabel;
|
|
53
53
|
|
|
54
54
|
return blocks ? (
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { InputProps } from './InputProps';
|
|
3
|
-
import { ChangeEvent } from 'react';
|
|
4
3
|
|
|
5
4
|
export const Input = JSX<InputProps>(
|
|
6
5
|
({ className = '', id, name, type = 'text', placeholder, pattern, value, onChange }) => {
|
|
7
|
-
const handleChange = (e
|
|
8
|
-
const validInputValue = e.target.validity.valid ? e.target.value : value;
|
|
6
|
+
const handleChange = (e) => {
|
|
7
|
+
const validInputValue = e.target.validity.valid ? (e.target.value as string) : value;
|
|
9
8
|
onChange(validInputValue);
|
|
10
9
|
};
|
|
11
10
|
|
|
@@ -18,7 +17,7 @@ export const Input = JSX<InputProps>(
|
|
|
18
17
|
pattern={pattern}
|
|
19
18
|
placeholder={placeholder}
|
|
20
19
|
value={value}
|
|
21
|
-
onChange={
|
|
20
|
+
onChange={handleChange}
|
|
22
21
|
/>
|
|
23
22
|
);
|
|
24
23
|
},
|
|
@@ -29,12 +29,12 @@ export const InputRange = JSX<InputRangeProps>(
|
|
|
29
29
|
return (
|
|
30
30
|
<div className={className}>
|
|
31
31
|
<label className="block relative">
|
|
32
|
-
{title ? <span className="text-
|
|
32
|
+
{title ? <span className="text-l text-secondary-text pl-4">{title}</span> : null}
|
|
33
33
|
<input
|
|
34
|
-
className={`m-0 mt-[5px] font-sans text-
|
|
34
|
+
className={`m-0 mt-[5px] font-sans text-h3 w-full h-14 border border-solid border-main-stroke rounded-md
|
|
35
35
|
outline-none p-0 pl-4 box-border text-primary-text`}
|
|
36
36
|
value={addSpacesBetweenNumbers(value)}
|
|
37
|
-
onChange={(e) => handleChange(e.target.value)}
|
|
37
|
+
onChange={(e) => handleChange(e.target.value as string)}
|
|
38
38
|
onBlur={handleBlur}
|
|
39
39
|
/>
|
|
40
40
|
<div className="absolute inset-x-0 bottom-[-4px] px-4 leading-[18px]">
|
|
@@ -45,7 +45,7 @@ export const InputRange = JSX<InputRangeProps>(
|
|
|
45
45
|
max={max}
|
|
46
46
|
step={step}
|
|
47
47
|
value={value}
|
|
48
|
-
onChange={(e) => handleChange(e.target.value)}
|
|
48
|
+
onChange={(e) => handleChange(e.target.value as string)}
|
|
49
49
|
style={inputStyle}
|
|
50
50
|
/>
|
|
51
51
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
|
|
3
|
-
interface SVGPathOptions {
|
|
3
|
+
export interface SVGPathOptions {
|
|
4
4
|
fill?: string;
|
|
5
5
|
stroke?: string;
|
|
6
6
|
strokeLinecap?: 'inherit' | 'butt' | 'round' | 'square';
|
|
@@ -9,7 +9,7 @@ interface SVGPathOptions {
|
|
|
9
9
|
strokeMiterlimit?: string;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
interface SVGPath extends SVGPathOptions {
|
|
12
|
+
export interface SVGPath extends SVGPathOptions {
|
|
13
13
|
d: string;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -12,7 +12,7 @@ export const SearchBarInner = JSX<SearchBarInnerProps>(
|
|
|
12
12
|
const { term, setTerm } = context.useSearch();
|
|
13
13
|
|
|
14
14
|
const LoupeIconClassName = isMobile ? 'w-[20px] h-[20px]' : 'w-[24px] h-[24px]';
|
|
15
|
-
const SearchBarLabelClassName = isMobile ? 'font-normal text-sm' : '
|
|
15
|
+
const SearchBarLabelClassName = isMobile ? 'font-normal text-sm' : 'text-l-light';
|
|
16
16
|
const SearchBarInputClassName = isMobile
|
|
17
17
|
? ' placeholder-transparent font-normal'
|
|
18
18
|
: 'font-light h-full';
|
|
@@ -35,10 +35,10 @@ export const SearchBarInner = JSX<SearchBarInnerProps>(
|
|
|
35
35
|
</div>
|
|
36
36
|
<input
|
|
37
37
|
id="search-bar-input"
|
|
38
|
-
className={`h-12 pl-12 w-full peer text-
|
|
38
|
+
className={`h-12 pl-12 w-full peer text-l text-black border border-solid rounded box-border
|
|
39
39
|
outline-none pr-[6%] border-main-divider focus:border-primary-text ${SearchBarInputClassName}`}
|
|
40
40
|
value={term}
|
|
41
|
-
onChange={(e) => setTerm(e.target.value)}
|
|
41
|
+
onChange={(e) => setTerm(e.target.value as string)}
|
|
42
42
|
type="text"
|
|
43
43
|
name="search-bar-input"
|
|
44
44
|
placeholder={inputPlaceholder}
|
|
@@ -26,14 +26,14 @@ export const SwipeListControl = JSX<SwipeListControlProps>(
|
|
|
26
26
|
children,
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
const handleScroll = (e
|
|
29
|
+
const handleScroll = (e) => {
|
|
30
30
|
const {
|
|
31
31
|
scrollLeft,
|
|
32
32
|
clientWidth,
|
|
33
33
|
childElementCount,
|
|
34
34
|
scrollWidth,
|
|
35
35
|
children: childrenCollection,
|
|
36
|
-
} = e
|
|
36
|
+
} = e?.currentTarget as HTMLElement;
|
|
37
37
|
|
|
38
38
|
// horizontal PADDING / 2 to compensate padding-margin combo of child container
|
|
39
39
|
// without CSS calc function, as wrapper element gets bigger in the DOM, remaining same visually
|
|
@@ -14,7 +14,7 @@ export interface SwipeListControlDotsProps {
|
|
|
14
14
|
|
|
15
15
|
export const SwipeListControlDots = JSX<SwipeListControlDotsProps>(
|
|
16
16
|
({ children, activeIndex, indexFraction, showDots }) => {
|
|
17
|
-
const handleClick = (idx: number) => (e
|
|
17
|
+
const handleClick = (idx: number) => (e) => {
|
|
18
18
|
if (idx === activeIndex) {
|
|
19
19
|
return;
|
|
20
20
|
}
|
|
@@ -27,7 +27,7 @@ export const SwipeListControlDots = JSX<SwipeListControlDotsProps>(
|
|
|
27
27
|
|
|
28
28
|
return showDots && children?.length ? (
|
|
29
29
|
<div className="flex gap-2 mx-auto mt-5 w-fit">
|
|
30
|
-
{children?.map((_, idx) => (
|
|
30
|
+
{children?.map((_, idx: number) => (
|
|
31
31
|
<div
|
|
32
32
|
key={String(idx)}
|
|
33
33
|
onClick={handleClick(idx)}
|
|
@@ -45,9 +45,9 @@ const getDotStyles = (
|
|
|
45
45
|
currentIdx: number,
|
|
46
46
|
activeIndex: number,
|
|
47
47
|
indexFraction: number,
|
|
48
|
-
): Record<string, string> |
|
|
48
|
+
): Record<string, string> | undefined => {
|
|
49
49
|
if (currentIdx < activeIndex || currentIdx > activeIndex + 1) {
|
|
50
|
-
return
|
|
50
|
+
return;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
const leftIndexMod = 1 - indexFraction;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { SwipeListControlItem } from './SwipeListControlItem';
|
|
3
|
-
import { getContainerStyle } from './utils/getContainerStyle';
|
|
4
2
|
import { DEFAULT_GAP, DEFAULT_PADDING } from './constants';
|
|
3
|
+
import { SwipeListControlItem } from './SwipeListControlItem';
|
|
5
4
|
import { SwipeContainer } from './SwipeListControlProps';
|
|
5
|
+
import { getContainerStyle } from './utils/getContainerStyle';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @title Список
|
|
@@ -10,7 +10,7 @@ import { SwipeContainer } from './SwipeListControlProps';
|
|
|
10
10
|
export interface SwipeListControlListProps extends SwipeContainer {
|
|
11
11
|
className?: string;
|
|
12
12
|
activeIndex: number;
|
|
13
|
-
onScroll?: (e
|
|
13
|
+
onScroll?: (e) => void;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export const SwipeListControlList = JSX<SwipeListControlListProps>(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redneckz/wildless-cms-uni-blocks",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.87",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ЦК",
|
|
@@ -104,7 +104,6 @@
|
|
|
104
104
|
"clean:actual": "rimraf ./cypress/snapshots/actual || exit 0"
|
|
105
105
|
},
|
|
106
106
|
"peerDependencies": {
|
|
107
|
-
"@testing-library/react": "^12.1.5",
|
|
108
107
|
"cypress": "^10.6.0",
|
|
109
108
|
"cypress-visual-regression": "^1.7.0",
|
|
110
109
|
"react": ">=16.8.0",
|
|
@@ -122,6 +121,8 @@
|
|
|
122
121
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
123
122
|
"@rollup/plugin-typescript": "^8.3.3",
|
|
124
123
|
"@size-limit/file": "^7.0.8",
|
|
124
|
+
"@testing-library/react": "^12.1.5",
|
|
125
|
+
"@types/glob": "^8.0.0",
|
|
125
126
|
"@types/jest": "^28.1.5",
|
|
126
127
|
"@typescript-eslint/eslint-plugin": "^5.30.6",
|
|
127
128
|
"@typescript-eslint/experimental-utils": "^5.30.6",
|
|
@@ -134,6 +135,7 @@
|
|
|
134
135
|
"eslint-plugin-import": "^2.26.0",
|
|
135
136
|
"eslint-plugin-local-eslint-rules": "./eslint-rules",
|
|
136
137
|
"eslint-plugin-react": "^7.30.1",
|
|
138
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
137
139
|
"eslint-plugin-sonarjs": "^0.15.0",
|
|
138
140
|
"html-webpack-plugin": "^5.5.0",
|
|
139
141
|
"husky": "^8.0.1",
|
package/src/common.css
CHANGED
|
@@ -10,8 +10,8 @@ html {
|
|
|
10
10
|
--color-primary-main: 66, 171, 68;
|
|
11
11
|
--color-primary-hover: 36, 131, 65;
|
|
12
12
|
--color-primary-active: 36, 95, 52;
|
|
13
|
-
--color-secondary-hover:
|
|
14
|
-
--color-secondary-active:
|
|
13
|
+
--color-secondary-hover: 36, 131, 65;
|
|
14
|
+
--color-secondary-active: 36, 95, 52;
|
|
15
15
|
--color-gradient-from: 141, 189, 76;
|
|
16
16
|
--color-gradient-to: 69, 172, 69;
|
|
17
17
|
}
|
|
@@ -20,18 +20,18 @@ html {
|
|
|
20
20
|
--color-primary-main: 131, 184, 62;
|
|
21
21
|
--color-primary-hover: 92, 146, 29;
|
|
22
22
|
--color-primary-active: 60, 94, 16;
|
|
23
|
-
--color-secondary-hover:
|
|
24
|
-
--color-secondary-active:
|
|
23
|
+
--color-secondary-hover: 92, 146, 29;
|
|
24
|
+
--color-secondary-active: 60, 94, 16;
|
|
25
25
|
--color-gradient-from: 141, 189, 76; /* TODO: change color to theme bc */
|
|
26
26
|
--color-gradient-to: 69, 172, 69; /* TODO: change color to theme bc */
|
|
27
27
|
}
|
|
28
28
|
/* Ecosystem own | Yellow */
|
|
29
29
|
[data-theme='eo'] {
|
|
30
|
-
--color-primary-main:
|
|
30
|
+
--color-primary-main: 221, 182, 61;
|
|
31
31
|
--color-primary-hover: 187, 151, 39;
|
|
32
32
|
--color-primary-active: 126, 99, 12;
|
|
33
|
-
--color-secondary-hover:
|
|
34
|
-
--color-secondary-active:
|
|
33
|
+
--color-secondary-hover: 187, 151, 39;
|
|
34
|
+
--color-secondary-active: 126, 99, 12;
|
|
35
35
|
--color-gradient-from: 141, 189, 76; /* TODO: change color to theme eo */
|
|
36
36
|
--color-gradient-to: 69, 172, 69; /* TODO: change color to theme eo */
|
|
37
37
|
}
|
|
@@ -37,7 +37,7 @@ export const Accordion = JSX<AccordionProps>(
|
|
|
37
37
|
title={title}
|
|
38
38
|
/>
|
|
39
39
|
) : null}
|
|
40
|
-
{description ? <div className="mb-2.5 text-
|
|
40
|
+
{description ? <div className="mb-2.5 text-l">{description}</div> : null}
|
|
41
41
|
{accordionItems?.length ? (
|
|
42
42
|
<ul className="list-none m-0 p-0">
|
|
43
43
|
{accordionItems.map((item, i) => (
|
|
@@ -65,7 +65,7 @@ const renderDescription = (description?: DescriptionType) => {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
return description ? (
|
|
68
|
-
<div className="
|
|
68
|
+
<div className="text-l-light text-secondary-text mt-2">
|
|
69
69
|
{benefitType === 'list'
|
|
70
70
|
? renderListBenefit(description as ListBenefitDef)
|
|
71
71
|
: renderTextBenefit(description as TextBenefitDef)}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { setup } from '@redneckz/uni-jsx';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import { useState } from 'react';
|
|
4
|
-
import
|
|
4
|
+
import runtime from 'react/jsx-runtime';
|
|
5
5
|
import { Blocks } from './Blocks';
|
|
6
6
|
import type { ContentPageContext } from './ContentPage/ContentPageContext';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
const { jsx, jsxs } = runtime as any;
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
__esModule: true,
|
|
12
|
-
BlockWrapper: ({ children }) => <section>{children}</section>,
|
|
13
|
-
}));
|
|
10
|
+
setup(jsx, jsxs);
|
|
14
11
|
|
|
15
12
|
const emptyFn = () => {
|
|
16
13
|
/* For sure */
|
|
@@ -5,6 +5,7 @@ import type { BonusContent } from './BonusContent';
|
|
|
5
5
|
export const BONUS: BonusContent = {
|
|
6
6
|
title: 'Начисление баллов',
|
|
7
7
|
description:
|
|
8
|
+
/* eslint-disable max-len */
|
|
8
9
|
'Получайте 1% бонусными баллами с любых покупок и 1,5% баллами с покупок в категории «Путешествия». Обменивайте бонусные баллы на авиа и ж/д билеты, бронирование отелей и прокат автомобилей.',
|
|
9
10
|
bonusItems: [
|
|
10
11
|
{
|
|
@@ -14,7 +14,7 @@ export const Bonus = JSX<BonusProps>((props) => {
|
|
|
14
14
|
<div className="container">
|
|
15
15
|
{title ? <Heading headingType="h3" className="text-center" title={title} /> : null}
|
|
16
16
|
{description ? (
|
|
17
|
-
<div className="text-
|
|
17
|
+
<div className="text-xl-light text-center mt-[10px]">{description}</div>
|
|
18
18
|
) : null}
|
|
19
19
|
<div className="flex flex-wrap w-full mt-9">
|
|
20
20
|
{bonusItems
|
|
@@ -26,10 +26,8 @@ export const Bonus = JSX<BonusProps>((props) => {
|
|
|
26
26
|
>
|
|
27
27
|
<div className="flex justify-between w-full">
|
|
28
28
|
<div className="mr-4">
|
|
29
|
-
<div className="text-
|
|
30
|
-
<div className="text-
|
|
31
|
-
{_.description}
|
|
32
|
-
</div>
|
|
29
|
+
<div className="text-h4">{_.title}</div>
|
|
30
|
+
<div className="text-xl-light mt-[14px] max-w-[488px]">{_.description}</div>
|
|
33
31
|
</div>
|
|
34
32
|
{_.bonusCount ? (
|
|
35
33
|
<div className="relative -bottom-3 h-auto flex items-end mt-14 shrink-0">
|
|
@@ -39,7 +39,7 @@ const renderBonusBenefit = (bonusBenefit: BonusBenefit, i: number) => {
|
|
|
39
39
|
/>
|
|
40
40
|
) : null}
|
|
41
41
|
<div>
|
|
42
|
-
{bonusBenefit?.label ? <span className="
|
|
42
|
+
{bonusBenefit?.label ? <span className="text-h6 m-0">{bonusBenefit.label}</span> : null}
|
|
43
43
|
</div>
|
|
44
44
|
</div>
|
|
45
45
|
);
|
|
@@ -6,12 +6,12 @@ import { DEFAULT_REST_MIN_SUM, DEFAULT_TRAVEL_MIN_SUM } from './constants';
|
|
|
6
6
|
import { Rate } from './Rate';
|
|
7
7
|
import { renderButtonSection } from './renderButtonSection';
|
|
8
8
|
import { renderWantedSumInput } from './renderWantedSumInput';
|
|
9
|
-
import {
|
|
9
|
+
import { useBonusCalculatorParams } from './useBonusCalculatorParams';
|
|
10
10
|
|
|
11
11
|
export interface BonusCalculatorProps extends CommonCalculatorProps, UniBlockProps {}
|
|
12
12
|
|
|
13
13
|
export const BonusCalculatorForm = JSX<BonusCalculatorProps>(
|
|
14
|
-
({ context, className = '', sourceBookDir, buttons }) => {
|
|
14
|
+
({ context, className = '', sourceBookDir = '', buttons }) => {
|
|
15
15
|
const [travelExpenseValue, setTravelExpenseValue] = context.useState(DEFAULT_TRAVEL_MIN_SUM);
|
|
16
16
|
const [restExpenseValue, setRestExpenseValue] = context.useState(DEFAULT_REST_MIN_SUM);
|
|
17
17
|
const userInputParams = {
|
|
@@ -19,7 +19,7 @@ export const BonusCalculatorForm = JSX<BonusCalculatorProps>(
|
|
|
19
19
|
restExpenseValue,
|
|
20
20
|
};
|
|
21
21
|
const { minSumTravel, maxSumTravel, minSumOther, maxSumOther, monthBonus, yearBonus } =
|
|
22
|
-
|
|
22
|
+
useBonusCalculatorParams(context, userInputParams, sourceBookDir);
|
|
23
23
|
|
|
24
24
|
return (
|
|
25
25
|
<section className={className}>
|
|
@@ -75,8 +75,8 @@ function renderNavButton({ tab, i, activeSlideIndex, onClick }: NavButtonProps)
|
|
|
75
75
|
const btnClassName = isActiveBtn
|
|
76
76
|
? 'h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white'
|
|
77
77
|
: `h-[77px] w-[322px] min-w-[322px] px-5 py-4 ease-in duration-300 bg-white text-primary-text`;
|
|
78
|
-
const btnTitleClassName = isActiveBtn ? 'text-
|
|
79
|
-
const btnDescClassName = isActiveBtn ? 'text-
|
|
78
|
+
const btnTitleClassName = isActiveBtn ? 'text-xl mb-1.5' : `text-l mb-[3px]`;
|
|
79
|
+
const btnDescClassName = isActiveBtn ? 'text-l text-white' : `text-m-md`;
|
|
80
80
|
const iconClassName = isActiveBtn ? '' : `text-primary-main`;
|
|
81
81
|
|
|
82
82
|
return (
|
|
@@ -13,9 +13,9 @@ export const CalculatorValueBlock = JSX<CalculatorValueBlockProps>(
|
|
|
13
13
|
({ title, value, postfix = '', prefix, className = '' }) => {
|
|
14
14
|
return (
|
|
15
15
|
<div className={`mb-5 ${className}`}>
|
|
16
|
-
{title ? <div className="text-
|
|
16
|
+
{title ? <div className="text-l-light">{title}</div> : null}
|
|
17
17
|
{value ? (
|
|
18
|
-
<div className="text-
|
|
18
|
+
<div className="text-h3">
|
|
19
19
|
{prefix} {addSpacesBetweenNumbers(Math.round(value))} {postfix}
|
|
20
20
|
</div>
|
|
21
21
|
) : null}
|
|
@@ -9,7 +9,7 @@ import { renderButtonSection } from './renderButtonSection';
|
|
|
9
9
|
import { renderMonthsInput } from './renderMonthsInput';
|
|
10
10
|
import { renderPaymentTypeSelector } from './renderPaymentTypeSelector';
|
|
11
11
|
import { renderWantedSumInput } from './renderWantedSumInput';
|
|
12
|
-
import {
|
|
12
|
+
import { useCreditCalculatorParams } from './useCreditCalculatorParams';
|
|
13
13
|
|
|
14
14
|
export const ANNUITY = 'annuity';
|
|
15
15
|
export const DIFFERENTIAL = 'differential';
|
|
@@ -43,7 +43,7 @@ export const CreditCalculatorForm = JSX<CreditCalculatorProp>(
|
|
|
43
43
|
moneyValue,
|
|
44
44
|
monthsValue,
|
|
45
45
|
};
|
|
46
|
-
const calculatorParams =
|
|
46
|
+
const calculatorParams = useCreditCalculatorParams(context, userInputParams, sourceBookDir);
|
|
47
47
|
|
|
48
48
|
return (
|
|
49
49
|
<section className={className}>
|
|
@@ -9,7 +9,7 @@ export interface RateProps {
|
|
|
9
9
|
|
|
10
10
|
export const Rate = JSX<RateProps>(({ rate, title = 'Ставка', unit, rateBlockClassName }) => (
|
|
11
11
|
<div>
|
|
12
|
-
<div className="text-
|
|
12
|
+
<div className="text-l-light ml-3">{title}</div>
|
|
13
13
|
<div className="flex justify-start">
|
|
14
14
|
<span
|
|
15
15
|
className={`block calc-rate-text font-mohave text-title-huge pr-6 -mt-4 ${rateBlockClassName}`}
|
|
@@ -4,10 +4,8 @@ import { Button } from '../../ui-kit/Button/Button';
|
|
|
4
4
|
export function renderProposal(monthlyPayment: number) {
|
|
5
5
|
return (
|
|
6
6
|
<div className="box-border ">
|
|
7
|
-
<div className="text-
|
|
8
|
-
<div className="text-
|
|
9
|
-
{addSpacesBetweenNumbers(Math.round(monthlyPayment))} ₽
|
|
10
|
-
</div>
|
|
7
|
+
<div className="text-l-light">Ежемесячный платёж</div>
|
|
8
|
+
<div className="text-h3 mb-3">{addSpacesBetweenNumbers(Math.round(monthlyPayment))} ₽</div>
|
|
11
9
|
<Button className="mt-[50px] w-full" text="Отправить заявку" version="primary" href="#" />
|
|
12
10
|
</div>
|
|
13
11
|
);
|
|
@@ -28,10 +28,10 @@ export interface BonusCalculatorParams
|
|
|
28
28
|
yearBonus: number;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export const
|
|
31
|
+
export const useBonusCalculatorParams = (
|
|
32
32
|
context: ContentPageContext,
|
|
33
33
|
userInputParams: BonusCalculatorUserInputParams,
|
|
34
|
-
sourceBookDir,
|
|
34
|
+
sourceBookDir: string,
|
|
35
35
|
) => {
|
|
36
36
|
const { travelExpenseValue, restExpenseValue } = userInputParams;
|
|
37
37
|
const bonusCalculatorSourceBookParams =
|
|
@@ -35,7 +35,7 @@ export type CreditCalculatorData = {
|
|
|
35
35
|
rows: CreditCalculatorSourceBookParams[];
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
-
export const
|
|
38
|
+
export const useCreditCalculatorParams = (
|
|
39
39
|
context: ContentPageContext,
|
|
40
40
|
userInputParams: CreditCalculatorUserInputParams,
|
|
41
41
|
sourceBookDir?: string,
|
|
@@ -21,10 +21,10 @@ export const Catalog = JSX<CatalogProps>(
|
|
|
21
21
|
return (
|
|
22
22
|
<BlockWrapper
|
|
23
23
|
context={context}
|
|
24
|
-
className={`bg-white relative font-sans p-
|
|
24
|
+
className={`bg-white relative font-sans p-12 overflow-hidden text-center ${className}`}
|
|
25
25
|
{...rest}
|
|
26
26
|
>
|
|
27
|
-
{title ? <Heading headingType="
|
|
27
|
+
{title ? <Heading headingType="h3" className="mb-6" title={title} /> : null}
|
|
28
28
|
{description ? <Description className="mb-6" description={description} /> : null}
|
|
29
29
|
<div
|
|
30
30
|
className="flex duration-1000 gap-3.5"
|
|
@@ -22,18 +22,21 @@ export const CatalogCard = JSX<CatalogCardProps>(
|
|
|
22
22
|
className={`border border-solid box-border p-[30px] min-w-[402px] flex flex-col justify-left ${className}`}
|
|
23
23
|
role="listitem"
|
|
24
24
|
>
|
|
25
|
-
{image?.src ? <Img className="mb-5" image={image} /> : null}
|
|
25
|
+
{image?.src ? <Img className="mb-5 flex justify-center" image={image} /> : null}
|
|
26
26
|
{title ? (
|
|
27
|
-
<Heading headingType="h6" as="
|
|
27
|
+
<Heading headingType="h6" as="h4" className="text-left mb-1.5" title={title} />
|
|
28
|
+
) : null}
|
|
29
|
+
{description ? (
|
|
30
|
+
<div className="text-m-md text-left mb-4 font-light">{description}</div>
|
|
28
31
|
) : null}
|
|
29
|
-
{description ? <div className="text-m-md text-left mb-4">{description}</div> : null}
|
|
30
32
|
{colors?.length ? (
|
|
31
|
-
<div className="flex mb-4 text-m-md text-secondary-text">
|
|
32
|
-
|
|
33
|
+
<div className="flex mb-4 text-m-md text-secondary-text font-light">
|
|
34
|
+
<div className="mr-1.5">Доступные цвета: </div>
|
|
35
|
+
{colors.map(renderColorOption)}
|
|
33
36
|
</div>
|
|
34
37
|
) : null}
|
|
35
|
-
{price ? <div className="text-
|
|
36
|
-
{button?.text ? <Button className="mt-
|
|
38
|
+
{price ? <div className="text-h3 text-left">{price} ₽</div> : null}
|
|
39
|
+
{button?.text ? <Button className="mt-5 w-full" {...button} /> : null}
|
|
37
40
|
</section>
|
|
38
41
|
);
|
|
39
42
|
},
|
|
@@ -19,7 +19,7 @@ const subtitleStyle = (isFillGradient = false): string =>
|
|
|
19
19
|
|
|
20
20
|
export const HeaderCell = JSX<HeaderCellProps>(
|
|
21
21
|
({ icon, image, title, subtitle, isFillGradient }) => (
|
|
22
|
-
<div role="columnheader"
|
|
22
|
+
<div role="columnheader">
|
|
23
23
|
{icon ? (
|
|
24
24
|
<Img
|
|
25
25
|
className="h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4"
|
|
@@ -487,7 +487,7 @@
|
|
|
487
487
|
"content": {
|
|
488
488
|
"title": "Потребительский кредит наличными",
|
|
489
489
|
"description": "Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт.",
|
|
490
|
-
"
|
|
490
|
+
"headlineVersion": "XL",
|
|
491
491
|
"backwardButton": {
|
|
492
492
|
"href": "https://rshb.ru",
|
|
493
493
|
"text": "Кнопка возврата",
|
|
@@ -2355,4 +2355,4 @@
|
|
|
2355
2355
|
}
|
|
2356
2356
|
}
|
|
2357
2357
|
]
|
|
2358
|
-
}
|
|
2358
|
+
}
|
|
@@ -26,7 +26,7 @@ export type BlocksRegistry = Record<string, JSXBlock>;
|
|
|
26
26
|
|
|
27
27
|
export interface ContentPageProps extends UniBlockProps {
|
|
28
28
|
blocksRegistry: BlocksRegistry;
|
|
29
|
-
data
|
|
29
|
+
data?: ContentPageDef;
|
|
30
30
|
blockDecorator?: BlockDecorator;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -45,9 +45,10 @@ export const ContentPage = JSX<ContentPageProps>(
|
|
|
45
45
|
className = '',
|
|
46
46
|
context,
|
|
47
47
|
blocksRegistry,
|
|
48
|
-
data
|
|
48
|
+
data = {},
|
|
49
49
|
blockDecorator = defaultBlockDecorator,
|
|
50
50
|
}) => {
|
|
51
|
+
const { style: pageStyle, blocks, slots = {}, likeControl, colorPalette = 'pc' } = data;
|
|
51
52
|
const { header } = slots;
|
|
52
53
|
|
|
53
54
|
return (
|
|
@@ -36,7 +36,7 @@ export type SetStateHook = <State>(
|
|
|
36
36
|
) => [State, (action: SetStateAction<State>) => void];
|
|
37
37
|
|
|
38
38
|
export interface IntersectionObserverTagProps {
|
|
39
|
-
|
|
39
|
+
tag: keyof HTMLElementTagNameMap;
|
|
40
40
|
className?: string;
|
|
41
41
|
anchor?: string;
|
|
42
42
|
children?: VNode;
|
|
@@ -44,9 +44,7 @@ export interface IntersectionObserverTagProps {
|
|
|
44
44
|
observerOptions?: IntersectionObserverInit;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
export type IntersectionObserverComponent = (
|
|
48
|
-
props: IntersectionObserverTagProps & Record<string, any>,
|
|
49
|
-
) => VNode;
|
|
47
|
+
export type IntersectionObserverComponent = (props: IntersectionObserverTagProps) => VNode;
|
|
50
48
|
|
|
51
49
|
export interface ContentPageContext {
|
|
52
50
|
useRouter: () => Router;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { VNode as _VNode } from '../../model/VNode';
|
|
2
3
|
import type { ContentPageMeta } from '../../types';
|
|
3
|
-
|
|
4
4
|
export interface ContentPageHeadProps {
|
|
5
|
-
HeadComponent: <Props, Context, VNode>(props: Props, context?: Context) => VNode;
|
|
5
|
+
HeadComponent: <Props, Context, VNode = _VNode>(props: Props, context?: Context) => VNode;
|
|
6
6
|
data: ContentPageMeta;
|
|
7
7
|
}
|
|
8
8
|
|