@redneckz/wildless-cms-uni-blocks 0.3.79 → 0.3.81
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 +127 -139
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Accordion/Accordion.js +3 -2
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/AccordionItem.js +1 -1
- package/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/components/BaseTile/BaseTile.js +2 -2
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +4 -3
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/Bonus/Bonus.js +3 -2
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +3 -2
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +3 -2
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Catalog/Catalog.js +3 -2
- package/dist/components/Catalog/Catalog.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js +3 -2
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ComparisonTable/TableCell.js +1 -1
- package/dist/components/ComparisonTable/TableCell.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +0 -10
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ContentPage/ContentPageContext.d.ts +2 -0
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +3 -2
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/dist/components/Footer/Contacts.js +2 -2
- package/dist/components/Footer/Contacts.js.map +1 -1
- package/dist/components/Footer/Footer.js +3 -2
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +2 -2
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Gallery/GalleryInner.js +4 -3
- package/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriod.js +3 -2
- package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/dist/components/GroupBlock/GroupBlock.js +5 -4
- package/dist/components/GroupBlock/GroupBlock.js.map +1 -1
- package/dist/components/Header/Header.js +3 -2
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Headline/Headline.js +3 -2
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Insurance/Insurance.js +3 -2
- package/dist/components/Insurance/Insurance.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +5 -4
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +3 -3
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/dist/components/LikeControl/LikeControl.js +3 -2
- package/dist/components/LikeControl/LikeControl.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +3 -2
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkList/LinkList.js +3 -2
- package/dist/components/LinkList/LinkList.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +4 -3
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/Navigation/Navigation.js +3 -2
- package/dist/components/Navigation/Navigation.js.map +1 -1
- package/dist/components/NavigatorTabs/NavigatorTabItem.js +1 -1
- package/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/dist/components/NavigatorTabs/NavigatorTabs.js +7 -7
- package/dist/components/NavigatorTabs/NavigatorTabs.js.map +1 -1
- package/dist/components/OtherProducts/OtherProducts.js +3 -2
- package/dist/components/OtherProducts/OtherProducts.js.map +1 -1
- package/dist/components/PictureText/PictureText.js +4 -3
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/Placeholder/Placeholder.js +3 -2
- package/dist/components/Placeholder/Placeholder.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/ProductBlockContent.d.ts +3 -3
- package/dist/components/ProductBlock/renderBackwardButton.d.ts +2 -2
- package/dist/components/ProductBlock/renderBenefit.js +1 -1
- package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +4 -3
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +3 -2
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/PromoTile/PromoTile.js +3 -2
- package/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/dist/components/Recommendation/Recommendation.js +4 -3
- package/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +6 -5
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +3 -2
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.js +3 -2
- package/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/dist/components/Tile/Tile.js +3 -2
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/react/IntersectionObserverTag.d.ts +1 -1
- package/dist/react/IntersectionObserverTag.js +2 -2
- package/dist/react/IntersectionObserverTag.js.map +1 -1
- package/dist/react/setup-fixture.js.map +1 -1
- package/dist/ui-kit/BlockWrapper.d.ts +9 -0
- package/dist/ui-kit/BlockWrapper.js +10 -0
- package/dist/ui-kit/BlockWrapper.js.map +1 -0
- package/dist/ui-kit/Button/ButtonProps.d.ts +13 -1
- package/dist/utils/changeHashOnObserve.d.ts +1 -0
- package/dist/utils/changeHashOnObserve.js +13 -0
- package/dist/utils/changeHashOnObserve.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.js +3 -2
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/AccordionItem.js +1 -1
- package/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/components/BaseTile/BaseTile.js +2 -2
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +4 -3
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/Bonus/Bonus.js +3 -2
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +3 -2
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/Calculator/Calculator.js +3 -2
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Catalog/Catalog.js +3 -2
- package/lib/components/Catalog/Catalog.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js +3 -2
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ComparisonTable/TableCell.js +1 -1
- package/lib/components/ComparisonTable/TableCell.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +0 -10
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ContentPage/ContentPageContext.d.ts +2 -0
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +3 -2
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/lib/components/Footer/Contacts.js +2 -2
- package/lib/components/Footer/Contacts.js.map +1 -1
- package/lib/components/Footer/Footer.js +3 -2
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +2 -2
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Gallery/GalleryInner.js +4 -3
- package/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriod.js +3 -2
- package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/lib/components/GroupBlock/GroupBlock.js +5 -4
- package/lib/components/GroupBlock/GroupBlock.js.map +1 -1
- package/lib/components/Header/Header.js +3 -2
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Headline/Headline.js +3 -2
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Insurance/Insurance.js +3 -2
- package/lib/components/Insurance/Insurance.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +5 -4
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +3 -3
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/lib/components/LikeControl/LikeControl.js +3 -2
- package/lib/components/LikeControl/LikeControl.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.js +3 -2
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkList/LinkList.js +3 -2
- package/lib/components/LinkList/LinkList.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +4 -3
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/Navigation/Navigation.js +3 -2
- package/lib/components/Navigation/Navigation.js.map +1 -1
- package/lib/components/NavigatorTabs/NavigatorTabItem.js +1 -1
- package/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/lib/components/NavigatorTabs/NavigatorTabs.js +7 -7
- package/lib/components/NavigatorTabs/NavigatorTabs.js.map +1 -1
- package/lib/components/OtherProducts/OtherProducts.js +3 -2
- package/lib/components/OtherProducts/OtherProducts.js.map +1 -1
- package/lib/components/PictureText/PictureText.js +4 -3
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/Placeholder/Placeholder.js +3 -2
- package/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.js +3 -2
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +3 -3
- package/lib/components/ProductBlock/renderBackwardButton.d.ts +2 -2
- package/lib/components/ProductBlock/renderBenefit.js +1 -1
- package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +4 -3
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +3 -2
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/PromoTile/PromoTile.js +3 -2
- package/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/lib/components/Recommendation/Recommendation.js +4 -3
- package/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +6 -5
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +3 -2
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.js +3 -2
- package/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/lib/components/Tile/Tile.js +3 -2
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/react/IntersectionObserverTag.d.ts +1 -1
- package/lib/react/IntersectionObserverTag.js +2 -2
- package/lib/react/IntersectionObserverTag.js.map +1 -1
- package/lib/react/setup-fixture.js.map +1 -1
- package/lib/ui-kit/BlockWrapper.d.ts +9 -0
- package/lib/ui-kit/BlockWrapper.js +8 -0
- package/lib/ui-kit/BlockWrapper.js.map +1 -0
- package/lib/ui-kit/Button/ButtonProps.d.ts +13 -1
- package/lib/utils/changeHashOnObserve.d.ts +1 -0
- package/lib/utils/changeHashOnObserve.js +10 -0
- package/lib/utils/changeHashOnObserve.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +25 -36
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/BaseTile/BaseTile.js +2 -2
- package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +4 -3
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Bonus/Bonus.js +3 -2
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +3 -2
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/Calculator.js +3 -2
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Catalog/Catalog.js +3 -2
- package/mobile/dist/components/Catalog/Catalog.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +0 -10
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPageContext.d.ts +2 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +3 -2
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/dist/components/Footer/Contacts.js +2 -2
- package/mobile/dist/components/Footer/Contacts.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +2 -2
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryInner.js +4 -3
- package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.js +3 -2
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/dist/components/GroupBlock/GroupBlock.js +5 -4
- package/mobile/dist/components/GroupBlock/GroupBlock.js.map +1 -1
- package/mobile/dist/components/Insurance/Insurance.js +3 -2
- package/mobile/dist/components/Insurance/Insurance.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +5 -4
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +3 -3
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/dist/components/LikeControl/LikeControl.js +3 -2
- package/mobile/dist/components/LikeControl/LikeControl.js.map +1 -1
- package/mobile/dist/components/LinkList/LinkList.js +3 -2
- package/mobile/dist/components/LinkList/LinkList.js.map +1 -1
- package/mobile/dist/components/Navigation/Navigation.js +3 -2
- package/mobile/dist/components/Navigation/Navigation.js.map +1 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js +1 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabs.js +7 -7
- package/mobile/dist/components/NavigatorTabs/NavigatorTabs.js.map +1 -1
- package/mobile/dist/components/OtherProducts/OtherProducts.js +3 -2
- package/mobile/dist/components/OtherProducts/OtherProducts.js.map +1 -1
- package/mobile/dist/components/PictureText/PictureText.js +4 -3
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.js +3 -2
- package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +3 -3
- package/mobile/dist/components/ProductBlock/renderBackwardButton.d.ts +2 -2
- package/mobile/dist/components/ProductTile/ProductTile.js +3 -2
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/PromoTile/PromoTile.js +3 -2
- package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/dist/components/Recommendation/Recommendation.js +4 -3
- package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.js +3 -2
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/react/IntersectionObserverTag.d.ts +1 -1
- package/mobile/dist/react/IntersectionObserverTag.js +2 -2
- package/mobile/dist/react/IntersectionObserverTag.js.map +1 -1
- package/mobile/dist/react/setup-fixture.js.map +1 -1
- package/mobile/dist/ui-kit/BlockWrapper.d.ts +9 -0
- package/mobile/dist/ui-kit/BlockWrapper.js +10 -0
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -0
- package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +13 -1
- package/mobile/dist/utils/changeHashOnObserve.d.ts +1 -0
- package/mobile/dist/utils/changeHashOnObserve.js +13 -0
- package/mobile/dist/utils/changeHashOnObserve.js.map +1 -0
- package/mobile/lib/components/BaseTile/BaseTile.js +2 -2
- package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +4 -3
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Bonus/Bonus.js +3 -2
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +3 -2
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +3 -2
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Catalog/Catalog.js +3 -2
- package/mobile/lib/components/Catalog/Catalog.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +0 -10
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPageContext.d.ts +2 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +3 -2
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/lib/components/Footer/Contacts.js +2 -2
- package/mobile/lib/components/Footer/Contacts.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +2 -2
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryInner.js +4 -3
- package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.js +3 -2
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/lib/components/GroupBlock/GroupBlock.js +5 -4
- package/mobile/lib/components/GroupBlock/GroupBlock.js.map +1 -1
- package/mobile/lib/components/Insurance/Insurance.js +3 -2
- package/mobile/lib/components/Insurance/Insurance.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +5 -4
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +3 -3
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/lib/components/LikeControl/LikeControl.js +3 -2
- package/mobile/lib/components/LikeControl/LikeControl.js.map +1 -1
- package/mobile/lib/components/LinkList/LinkList.js +3 -2
- package/mobile/lib/components/LinkList/LinkList.js.map +1 -1
- package/mobile/lib/components/Navigation/Navigation.js +3 -2
- package/mobile/lib/components/Navigation/Navigation.js.map +1 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js +1 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabs.js +7 -7
- package/mobile/lib/components/NavigatorTabs/NavigatorTabs.js.map +1 -1
- package/mobile/lib/components/OtherProducts/OtherProducts.js +3 -2
- package/mobile/lib/components/OtherProducts/OtherProducts.js.map +1 -1
- package/mobile/lib/components/PictureText/PictureText.js +4 -3
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.js +3 -2
- package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +3 -3
- package/mobile/lib/components/ProductBlock/renderBackwardButton.d.ts +2 -2
- package/mobile/lib/components/ProductTile/ProductTile.js +3 -2
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/PromoTile/PromoTile.js +3 -2
- package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/lib/components/Recommendation/Recommendation.js +4 -3
- package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.js +3 -2
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/react/IntersectionObserverTag.d.ts +1 -1
- package/mobile/lib/react/IntersectionObserverTag.js +2 -2
- package/mobile/lib/react/IntersectionObserverTag.js.map +1 -1
- package/mobile/lib/react/setup-fixture.js.map +1 -1
- package/mobile/lib/ui-kit/BlockWrapper.d.ts +9 -0
- package/mobile/lib/ui-kit/BlockWrapper.js +8 -0
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -0
- package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +13 -1
- package/mobile/lib/utils/changeHashOnObserve.d.ts +1 -0
- package/mobile/lib/utils/changeHashOnObserve.js +10 -0
- package/mobile/lib/utils/changeHashOnObserve.js.map +1 -0
- package/mobile/src/components/BaseTile/BaseTile.tsx +2 -2
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +6 -5
- package/mobile/src/components/Bonus/Bonus.tsx +4 -3
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +5 -4
- package/mobile/src/components/Calculator/Calculator.tsx +6 -4
- package/mobile/src/components/Catalog/Catalog.tsx +6 -4
- package/mobile/src/components/ContentPage/ContentPage.tsx +0 -14
- package/mobile/src/components/ContentPage/ContentPageContext.tsx +3 -0
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +6 -4
- package/mobile/src/components/Footer/Contacts.tsx +5 -2
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +2 -2
- package/mobile/src/components/Gallery/GalleryInner.tsx +8 -6
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +4 -3
- package/mobile/src/components/GroupBlock/GroupBlock.tsx +6 -5
- package/mobile/src/components/Insurance/Insurance.tsx +7 -3
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +8 -6
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +5 -5
- package/mobile/src/components/LikeControl/LikeControl.tsx +7 -4
- package/mobile/src/components/LinkList/LinkList.tsx +4 -3
- package/mobile/src/components/Navigation/Navigation.tsx +7 -5
- package/mobile/src/components/NavigatorTabs/NavigatorTabItem.tsx +1 -1
- package/mobile/src/components/NavigatorTabs/NavigatorTabs.tsx +13 -13
- package/mobile/src/components/OtherProducts/OtherProducts.tsx +8 -3
- package/mobile/src/components/PictureText/PictureText.tsx +7 -6
- package/mobile/src/components/Placeholder/Placeholder.tsx +6 -4
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +3 -3
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +2 -2
- package/mobile/src/components/ProductTile/ProductTile.tsx +6 -4
- package/mobile/src/components/PromoTile/PromoTile.tsx +6 -4
- package/mobile/src/components/Recommendation/Recommendation.tsx +7 -5
- package/mobile/src/components/Tile/Tile.tsx +6 -6
- package/mobile/src/react/IntersectionObserverTag.tsx +11 -3
- package/mobile/src/react/setup-fixture.ts +0 -1
- package/mobile/src/ui-kit/BlockWrapper.tsx +33 -0
- package/mobile/src/ui-kit/Button/ButtonProps.ts +14 -1
- package/mobile/src/utils/changeHashOnObserve.ts +10 -0
- package/package.json +1 -1
- package/src/components/Accordion/Accordion.tsx +9 -4
- package/src/components/Accordion/AccordionItem.tsx +1 -1
- package/src/components/BaseTile/BaseTile.tsx +2 -2
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +6 -5
- package/src/components/Bonus/Bonus.tsx +4 -3
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +5 -4
- package/src/components/Calculator/Calculator.tsx +6 -4
- package/src/components/Catalog/Catalog.tsx +6 -4
- package/src/components/ComparisonTable/ComparisonTable.tsx +6 -4
- package/src/components/ComparisonTable/TableCell.tsx +1 -1
- package/src/components/ContentPage/ContentPage.tsx +0 -14
- package/src/components/ContentPage/ContentPageContext.tsx +3 -0
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +6 -4
- package/src/components/Footer/Contacts.tsx +5 -2
- package/src/components/Footer/Footer.tsx +9 -3
- package/src/components/Gallery/GalleryCardInner.tsx +2 -2
- package/src/components/Gallery/GalleryInner.tsx +8 -6
- package/src/components/GracePeriod/GracePeriod.tsx +4 -3
- package/src/components/GroupBlock/GroupBlock.tsx +6 -5
- package/src/components/Header/Header.tsx +9 -3
- package/src/components/Headline/Headline.tsx +5 -4
- package/src/components/Insurance/Insurance.tsx +7 -3
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +8 -6
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +5 -5
- package/src/components/LikeControl/LikeControl.tsx +7 -4
- package/src/components/LinkDocs/LinkDocs.tsx +8 -3
- package/src/components/LinkList/LinkList.tsx +4 -3
- package/src/components/MobileAppTile/MobileAppTile.tsx +6 -4
- package/src/components/Navigation/Navigation.tsx +7 -5
- package/src/components/NavigatorTabs/NavigatorTabItem.tsx +1 -1
- package/src/components/NavigatorTabs/NavigatorTabs.tsx +13 -13
- package/src/components/OtherProducts/OtherProducts.tsx +8 -3
- package/src/components/PictureText/PictureText.tsx +7 -6
- package/src/components/Placeholder/Placeholder.tsx +6 -4
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +2 -2
- package/src/components/ProductBlock/ProductBlock.tsx +5 -4
- package/src/components/ProductBlock/ProductBlockContent.ts +3 -3
- package/src/components/ProductBlock/renderBackwardButton.tsx +2 -2
- package/src/components/ProductBlock/renderBenefit.tsx +1 -1
- package/src/components/ProductGallery/ProductGallery.tsx +6 -4
- package/src/components/ProductTile/ProductTile.tsx +6 -4
- package/src/components/PromoTile/PromoTile.tsx +6 -4
- package/src/components/Recommendation/Recommendation.tsx +7 -5
- package/src/components/StepsBlock/StepsBlock.tsx +8 -6
- package/src/components/TariffsTable/TariffsTable.tsx +6 -13
- package/src/components/TextBlock/TextBlock.tsx +5 -12
- package/src/components/Tile/Tile.tsx +6 -6
- package/src/react/IntersectionObserverTag.tsx +11 -3
- package/src/react/setup-fixture.ts +0 -1
- package/src/ui-kit/BlockWrapper.tsx +33 -0
- package/src/ui-kit/Button/ButtonProps.ts +14 -1
- package/src/utils/changeHashOnObserve.ts +10 -0
- package/dist/utils/changeHashOnScroll.d.ts +0 -2
- package/dist/utils/changeHashOnScroll.js +0 -17
- package/dist/utils/changeHashOnScroll.js.map +0 -1
- package/lib/utils/changeHashOnScroll.d.ts +0 -2
- package/lib/utils/changeHashOnScroll.js +0 -14
- package/lib/utils/changeHashOnScroll.js.map +0 -1
- package/mobile/dist/utils/changeHashOnScroll.d.ts +0 -2
- package/mobile/dist/utils/changeHashOnScroll.js +0 -17
- package/mobile/dist/utils/changeHashOnScroll.js.map +0 -1
- package/mobile/lib/utils/changeHashOnScroll.d.ts +0 -2
- package/mobile/lib/utils/changeHashOnScroll.js +0 -14
- package/mobile/lib/utils/changeHashOnScroll.js.map +0 -1
- package/mobile/src/utils/changeHashOnScroll.ts +0 -17
- package/src/utils/changeHashOnScroll.ts +0 -17
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
2
3
|
import type { UniBlockProps } from '../../types';
|
|
4
|
+
import { renderArrows } from '../../ui-kit/Button/renderArrows';
|
|
3
5
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
4
6
|
import { RecommendationCard } from './RecommendationCard';
|
|
5
7
|
import type { RecommendationCardTypes, RecommendationContent } from './RecommendationContent';
|
|
6
|
-
import { renderArrows } from '../../ui-kit/Button/renderArrows';
|
|
7
8
|
|
|
8
9
|
const BLUR_BLOCK_CLASSES = 'absolute top-0 bottom-0 w-[84px]';
|
|
9
10
|
const CARD_FULL_VIEW_COUNT = 2;
|
|
@@ -12,7 +13,7 @@ const CARD_SHIFT = 525;
|
|
|
12
13
|
export interface RecommendationProps extends RecommendationContent, UniBlockProps {}
|
|
13
14
|
|
|
14
15
|
export const Recommendation = JSX<RecommendationProps>(
|
|
15
|
-
({ context, recommendations = [], className = '', title, version,
|
|
16
|
+
({ context, recommendations = [], className = '', title, version, ...rest }) => {
|
|
16
17
|
const [activeCardIndex, setActiveCardIndex] = context.useState(0);
|
|
17
18
|
|
|
18
19
|
const blockClassName =
|
|
@@ -20,9 +21,10 @@ export const Recommendation = JSX<RecommendationProps>(
|
|
|
20
21
|
const cardClassName = version === 'secondary' ? 'border-white/50' : 'border-main-stroke';
|
|
21
22
|
|
|
22
23
|
return (
|
|
23
|
-
<
|
|
24
|
+
<BlockWrapper
|
|
25
|
+
context={context}
|
|
24
26
|
className={`relative font-sans p-9 overflow-hidden text-center ${blockClassName} ${className}`}
|
|
25
|
-
|
|
27
|
+
{...rest}
|
|
26
28
|
>
|
|
27
29
|
{title ? <Heading headingType="h2" className="mb-6" title={title} /> : null}
|
|
28
30
|
<div
|
|
@@ -51,7 +53,7 @@ export const Recommendation = JSX<RecommendationProps>(
|
|
|
51
53
|
version === 'secondary' ? 'bg-opacity-to-main' : 'bg-opacity-to-white'
|
|
52
54
|
}`}
|
|
53
55
|
/>
|
|
54
|
-
</
|
|
56
|
+
</BlockWrapper>
|
|
55
57
|
);
|
|
56
58
|
},
|
|
57
59
|
);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
3
4
|
import type { UniBlockProps } from '../../types';
|
|
4
5
|
import { ButtonSection } from '../../ui-kit/Button/ButtonSection';
|
|
5
6
|
import { Description } from '../../ui-kit/Description/Description';
|
|
@@ -33,17 +34,16 @@ export const Tile = JSX<TileProps>((props) => {
|
|
|
33
34
|
isDotted = true,
|
|
34
35
|
className = '',
|
|
35
36
|
version = 'primary',
|
|
36
|
-
|
|
37
|
-
anchor = null,
|
|
37
|
+
...rest
|
|
38
38
|
} = props;
|
|
39
39
|
|
|
40
40
|
return (
|
|
41
|
-
<
|
|
41
|
+
<BlockWrapper
|
|
42
|
+
context={context}
|
|
42
43
|
className={`overflow-hidden font-sans p-9 pr-3 box-border ${className} ${
|
|
43
44
|
tileStyleMap[version]
|
|
44
45
|
} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `}
|
|
45
|
-
|
|
46
|
-
id={anchor}
|
|
46
|
+
{...rest}
|
|
47
47
|
>
|
|
48
48
|
<BaseTile
|
|
49
49
|
context={context}
|
|
@@ -78,7 +78,7 @@ export const Tile = JSX<TileProps>((props) => {
|
|
|
78
78
|
{children}
|
|
79
79
|
{renderList(items, version, isDotted)}
|
|
80
80
|
</BaseTile>
|
|
81
|
-
</
|
|
81
|
+
</BlockWrapper>
|
|
82
82
|
);
|
|
83
83
|
});
|
|
84
84
|
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { useCallback, useRef } from 'react';
|
|
2
|
-
import { IntersectionObserverComponent } from '../components/ContentPage/ContentPageContext';
|
|
2
|
+
import type { IntersectionObserverComponent } from '../components/ContentPage/ContentPageContext';
|
|
3
3
|
|
|
4
4
|
export const IntersectionObserverTag: IntersectionObserverComponent = (props) => {
|
|
5
|
-
const {
|
|
5
|
+
const {
|
|
6
|
+
Tag,
|
|
7
|
+
observerCallback,
|
|
8
|
+
observerOptions,
|
|
9
|
+
className = '',
|
|
10
|
+
anchor = null,
|
|
11
|
+
children,
|
|
12
|
+
...rest
|
|
13
|
+
} = props;
|
|
6
14
|
|
|
7
15
|
const intersectionObserver = useRef<IntersectionObserver>();
|
|
8
16
|
const ref = useCallback(
|
|
@@ -16,7 +24,7 @@ export const IntersectionObserverTag: IntersectionObserverComponent = (props) =>
|
|
|
16
24
|
);
|
|
17
25
|
|
|
18
26
|
return (
|
|
19
|
-
<Tag ref={ref} {...rest}>
|
|
27
|
+
<Tag ref={ref} className={className} id={anchor} {...rest}>
|
|
20
28
|
{children}
|
|
21
29
|
</Tag>
|
|
22
30
|
);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { ContentPageContext } from '../components/ContentPage/ContentPageContext';
|
|
3
|
+
import { changeHashOnObserve } from '../utils/changeHashOnObserve';
|
|
4
|
+
|
|
5
|
+
interface BlockWrapperProps {
|
|
6
|
+
context: ContentPageContext;
|
|
7
|
+
className?: string;
|
|
8
|
+
anchor?: string;
|
|
9
|
+
Tag?: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const BlockWrapper = JSX<BlockWrapperProps>(
|
|
13
|
+
({ anchor, className, context, children, Tag = 'section', ...rest }) => {
|
|
14
|
+
const { IntersectionObserverTag } = context;
|
|
15
|
+
|
|
16
|
+
return anchor ? (
|
|
17
|
+
<IntersectionObserverTag
|
|
18
|
+
Tag={Tag}
|
|
19
|
+
className={className}
|
|
20
|
+
observerCallback={changeHashOnObserve}
|
|
21
|
+
observerOptions={{ threshold: 1 }} // Lower threshold when hash change needed
|
|
22
|
+
anchor={anchor}
|
|
23
|
+
{...rest}
|
|
24
|
+
>
|
|
25
|
+
{children}
|
|
26
|
+
</IntersectionObserverTag>
|
|
27
|
+
) : (
|
|
28
|
+
<Tag className={className} {...rest}>
|
|
29
|
+
{children}
|
|
30
|
+
</Tag>
|
|
31
|
+
);
|
|
32
|
+
},
|
|
33
|
+
);
|
|
@@ -26,7 +26,7 @@ export interface ButtonProps extends ButtonAdditionalProps, LinkProps {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export interface ButtonWithIconProps extends ButtonProps {
|
|
29
|
-
/** @title Иконка */
|
|
29
|
+
/** @title Иконка слева */
|
|
30
30
|
icon?: Picture;
|
|
31
31
|
/** @title Иконка справа */
|
|
32
32
|
iconRight?: Picture;
|
|
@@ -49,3 +49,16 @@ export interface ButtonContent {
|
|
|
49
49
|
*/
|
|
50
50
|
buttons?: ButtonWithIconProps[];
|
|
51
51
|
}
|
|
52
|
+
|
|
53
|
+
export interface BackwardButtonProps extends ButtonProps {
|
|
54
|
+
/** @title Иконка */
|
|
55
|
+
icon?: Picture;
|
|
56
|
+
/** @title Верхний текст */
|
|
57
|
+
aboveText?: string;
|
|
58
|
+
/** @hidden */
|
|
59
|
+
appendLeft?: any;
|
|
60
|
+
/** @title Закругленные углы */
|
|
61
|
+
rounded?: boolean;
|
|
62
|
+
/** @hidden */
|
|
63
|
+
asSVG?: boolean;
|
|
64
|
+
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { AlignType } from '../../model/AlignType';
|
|
2
3
|
import type { UniBlockProps } from '../../types';
|
|
4
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
3
5
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
4
6
|
import type { AccordionContent } from './AccordionContent';
|
|
5
7
|
import { AccordionItem } from './AccordionItem';
|
|
6
|
-
import { AlignType } from '../../model/AlignType';
|
|
7
8
|
|
|
8
9
|
const ALIGN_TITLE: Record<AlignType, string> = {
|
|
9
10
|
left: 'text-left',
|
|
@@ -20,11 +21,15 @@ export const Accordion = JSX<AccordionProps>(
|
|
|
20
21
|
accordionItems,
|
|
21
22
|
context,
|
|
22
23
|
className = '',
|
|
23
|
-
anchor = null,
|
|
24
24
|
accordionAlignTitle = 'center',
|
|
25
|
+
...rest
|
|
25
26
|
}) => {
|
|
26
27
|
return (
|
|
27
|
-
<
|
|
28
|
+
<BlockWrapper
|
|
29
|
+
context={context}
|
|
30
|
+
className={`p-[50px] font-sans bg-white text-primary-text ${className}`}
|
|
31
|
+
{...rest}
|
|
32
|
+
>
|
|
28
33
|
{title ? (
|
|
29
34
|
<Heading
|
|
30
35
|
headingType="h4"
|
|
@@ -40,7 +45,7 @@ export const Accordion = JSX<AccordionProps>(
|
|
|
40
45
|
))}
|
|
41
46
|
</ul>
|
|
42
47
|
) : null}
|
|
43
|
-
</
|
|
48
|
+
</BlockWrapper>
|
|
44
49
|
);
|
|
45
50
|
},
|
|
46
51
|
);
|
|
@@ -22,7 +22,7 @@ export const AccordionItem = JSX<AccordionItemProps>(({ label, isExpanded, block
|
|
|
22
22
|
`}
|
|
23
23
|
onClick={handleToggle}
|
|
24
24
|
>
|
|
25
|
-
<span className={`text-xl pr-2.5 font-medium`}>{label}</span>
|
|
25
|
+
<span className={`text-xl-light pr-2.5 font-medium`}>{label}</span>
|
|
26
26
|
{hasContent ? (
|
|
27
27
|
<Img image={icon} className="text-primary-main" width="24" height="24" asSVG />
|
|
28
28
|
) : null}
|
|
@@ -5,9 +5,9 @@ import type { BaseTileCommonProps } from './BaseTileProps';
|
|
|
5
5
|
export interface BaseTileProps extends BaseTileCommonProps, UniBlockProps {}
|
|
6
6
|
|
|
7
7
|
export const BaseTile = JSX<BaseTileProps>(
|
|
8
|
-
({ className = '', title, children, buttons, image
|
|
8
|
+
({ className = '', title, children, buttons, image }) => {
|
|
9
9
|
return (
|
|
10
|
-
<div className={`font-sans flex flex-col grow h-full items-start ${className}`}
|
|
10
|
+
<div className={`font-sans flex flex-col grow h-full items-start ${className}`}>
|
|
11
11
|
{title}
|
|
12
12
|
<div className="flex grow w-full justify-between">
|
|
13
13
|
<div className="flex flex-col justify-between w-full">
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
2
3
|
import type { UniBlockProps } from '../../types';
|
|
3
4
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
4
5
|
import { Img } from '../../ui-kit/Img/Img';
|
|
@@ -8,11 +9,11 @@ import { DescriptionType, ListBenefitDef, TextBenefitDef } from './BenefitsBlock
|
|
|
8
9
|
export interface BenefitsBlockProps extends BenefitsBlockContent, UniBlockProps {}
|
|
9
10
|
|
|
10
11
|
export const BenefitsBlock = JSX<BenefitsBlockProps>(
|
|
11
|
-
({ className = '', headingType = 'h2', title, benefitList,
|
|
12
|
+
({ className = '', headingType = 'h2', title, benefitList, ...rest }) => {
|
|
12
13
|
return (
|
|
13
|
-
<
|
|
14
|
+
<BlockWrapper
|
|
14
15
|
className={`font-sans text-primary-text bg-white p-12 flex flex-col items-center ${className}`}
|
|
15
|
-
|
|
16
|
+
{...rest}
|
|
16
17
|
>
|
|
17
18
|
{title ? (
|
|
18
19
|
<Heading
|
|
@@ -23,7 +24,7 @@ export const BenefitsBlock = JSX<BenefitsBlockProps>(
|
|
|
23
24
|
/>
|
|
24
25
|
) : null}
|
|
25
26
|
{benefitList?.length ? renderBenefits(benefitList) : null}
|
|
26
|
-
</
|
|
27
|
+
</BlockWrapper>
|
|
27
28
|
);
|
|
28
29
|
},
|
|
29
30
|
);
|
|
@@ -50,7 +51,7 @@ const renderStep = (benefit: BenefitItem, i: number) => {
|
|
|
50
51
|
/>
|
|
51
52
|
) : null}
|
|
52
53
|
<div>
|
|
53
|
-
{benefit?.label ? <h3 className="font-medium text-xl m-0">{benefit.label}</h3> : null}
|
|
54
|
+
{benefit?.label ? <h3 className="font-medium text-xl-light m-0">{benefit.label}</h3> : null}
|
|
54
55
|
{renderDescription(description)}
|
|
55
56
|
</div>
|
|
56
57
|
</div>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
2
3
|
import type { UniBlockProps } from '../../types';
|
|
3
4
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
4
5
|
import type { BonusContent } from './BonusContent';
|
|
@@ -6,10 +7,10 @@ import type { BonusContent } from './BonusContent';
|
|
|
6
7
|
export interface BonusProps extends BonusContent, UniBlockProps {}
|
|
7
8
|
|
|
8
9
|
export const Bonus = JSX<BonusProps>((props) => {
|
|
9
|
-
const { className = '', title, description, bonusItems,
|
|
10
|
+
const { className = '', title, description, bonusItems, ...rest } = props;
|
|
10
11
|
|
|
11
12
|
return (
|
|
12
|
-
<
|
|
13
|
+
<BlockWrapper className={`font-sans bg-white p-[50px] pb-9 ${className}`} {...rest}>
|
|
13
14
|
<div className="container">
|
|
14
15
|
{title ? <Heading headingType="h3" className="text-center" title={title} /> : null}
|
|
15
16
|
{description ? (
|
|
@@ -47,6 +48,6 @@ export const Bonus = JSX<BonusProps>((props) => {
|
|
|
47
48
|
: null}
|
|
48
49
|
</div>
|
|
49
50
|
</div>
|
|
50
|
-
</
|
|
51
|
+
</BlockWrapper>
|
|
51
52
|
);
|
|
52
53
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
2
3
|
import type { UniBlockProps } from '../../types';
|
|
3
4
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
4
5
|
import { Img } from '../../ui-kit/Img/Img';
|
|
@@ -8,11 +9,11 @@ import { getElementsColsValue } from './getElementsColsValue';
|
|
|
8
9
|
export interface BenefitsBlockProps extends BonusBenefitsBlockContent, UniBlockProps {}
|
|
9
10
|
|
|
10
11
|
export const BonusBenefitsBlock = JSX<BenefitsBlockProps>(
|
|
11
|
-
({ className = '', title, subtitle, bonusBenefits,
|
|
12
|
+
({ className = '', title, subtitle, bonusBenefits, ...rest }) => {
|
|
12
13
|
return (
|
|
13
|
-
<
|
|
14
|
+
<BlockWrapper
|
|
14
15
|
className={`font-sans text-primary-text bg-white p-50 flex flex-col text-center ${className}`}
|
|
15
|
-
|
|
16
|
+
{...rest}
|
|
16
17
|
>
|
|
17
18
|
{title ? <Heading headingType="h3" className="mb-[10px]" title={title} /> : null}
|
|
18
19
|
{subtitle ? <span className="text-md font-normal">{subtitle}</span> : null}
|
|
@@ -21,7 +22,7 @@ export const BonusBenefitsBlock = JSX<BenefitsBlockProps>(
|
|
|
21
22
|
{bonusBenefits.map(renderBonusBenefit)}
|
|
22
23
|
</div>
|
|
23
24
|
) : null}
|
|
24
|
-
</
|
|
25
|
+
</BlockWrapper>
|
|
25
26
|
);
|
|
26
27
|
},
|
|
27
28
|
);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
2
3
|
import type { FuncReturnVoid, UniBlockProps } from '../../types';
|
|
3
4
|
import { renderArrows } from '../../ui-kit/Button/renderArrows';
|
|
4
5
|
import { Img } from '../../ui-kit/Img/Img';
|
|
@@ -22,7 +23,7 @@ type NavButtonProps = {
|
|
|
22
23
|
};
|
|
23
24
|
|
|
24
25
|
export const Calculator = JSX<CalculatorProps>(
|
|
25
|
-
({ className = '', context, calcTabs = [],
|
|
26
|
+
({ className = '', context, calcTabs = [], ...rest }) => {
|
|
26
27
|
const tabsNav = calcTabs.map((_) => _.nav || ({} as CalculatorNav));
|
|
27
28
|
const blockCalcTabs = calcTabs.map(
|
|
28
29
|
({ calculatorBlock }) => calculatorBlock || ({} as CalculatorBlockDef),
|
|
@@ -38,9 +39,10 @@ export const Calculator = JSX<CalculatorProps>(
|
|
|
38
39
|
const showPrevButton = tabsShift > 0;
|
|
39
40
|
|
|
40
41
|
return (
|
|
41
|
-
<
|
|
42
|
-
|
|
42
|
+
<BlockWrapper
|
|
43
|
+
context={context}
|
|
43
44
|
className={`box-border overflow-hidden relative font-sans w-100 bg-white text-primary-text ${className}`}
|
|
45
|
+
{...rest}
|
|
44
46
|
>
|
|
45
47
|
<div>
|
|
46
48
|
{tabsNav.length > 1
|
|
@@ -62,7 +64,7 @@ export const Calculator = JSX<CalculatorProps>(
|
|
|
62
64
|
? blockCalcTabs.map(renderCalculatorBlock({ context, className }))
|
|
63
65
|
: null}
|
|
64
66
|
</div>
|
|
65
|
-
</
|
|
67
|
+
</BlockWrapper>
|
|
66
68
|
);
|
|
67
69
|
},
|
|
68
70
|
);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { UniBlockProps } from '../../types';
|
|
3
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
3
4
|
import { renderArrows } from '../../ui-kit/Button/renderArrows';
|
|
4
5
|
import { Description } from '../../ui-kit/Description/Description';
|
|
5
6
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
@@ -14,13 +15,14 @@ const CARD_FULL_VIEW_COUNT = 3;
|
|
|
14
15
|
const CARD_SHIFT = 430;
|
|
15
16
|
|
|
16
17
|
export const Catalog = JSX<CatalogProps>(
|
|
17
|
-
({ context, cards = [], className = '', title, description,
|
|
18
|
+
({ context, cards = [], className = '', title, description, ...rest }) => {
|
|
18
19
|
const [activeCardIndex, setActiveCardIndex] = context.useState(0);
|
|
19
20
|
|
|
20
21
|
return (
|
|
21
|
-
<
|
|
22
|
+
<BlockWrapper
|
|
23
|
+
context={context}
|
|
22
24
|
className={`bg-white relative font-sans p-9 overflow-hidden text-center ${className}`}
|
|
23
|
-
|
|
25
|
+
{...rest}
|
|
24
26
|
>
|
|
25
27
|
{title ? <Heading headingType="h2" className="mb-6" title={title} /> : null}
|
|
26
28
|
{description ? <Description className="mb-6" description={description} /> : null}
|
|
@@ -38,7 +40,7 @@ export const Catalog = JSX<CatalogProps>(
|
|
|
38
40
|
})}
|
|
39
41
|
<div className={`${BLUR_BLOCK_CLASSES} left-0 ${'bg-opacity-from-white'}`} />
|
|
40
42
|
<div className={`${BLUR_BLOCK_CLASSES} right-0 ${'bg-opacity-to-white'}`} />
|
|
41
|
-
</
|
|
43
|
+
</BlockWrapper>
|
|
42
44
|
);
|
|
43
45
|
},
|
|
44
46
|
);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
2
3
|
import type { UniBlockProps } from '../../types';
|
|
3
4
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
4
5
|
import { ComparisonTableBody } from './ComparisonTableBody';
|
|
@@ -16,17 +17,18 @@ export const ComparisonTable = JSX<ComparisonTableProps>(
|
|
|
16
17
|
columns,
|
|
17
18
|
visibleRowLength = 0,
|
|
18
19
|
isColoredFirstColumn = false,
|
|
19
|
-
|
|
20
|
+
...rest
|
|
20
21
|
}) => {
|
|
21
22
|
const [isShowAllRow, setIsShowAllRow] = context.useState(!visibleRowLength);
|
|
22
23
|
const showToggle = () => setIsShowAllRow(!isShowAllRow);
|
|
23
24
|
|
|
24
25
|
return (
|
|
25
|
-
<
|
|
26
|
+
<BlockWrapper
|
|
27
|
+
context={context}
|
|
26
28
|
className={`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${
|
|
27
29
|
className || ''
|
|
28
30
|
}`}
|
|
29
|
-
|
|
31
|
+
{...rest}
|
|
30
32
|
>
|
|
31
33
|
<Heading
|
|
32
34
|
headingType="h2"
|
|
@@ -44,7 +46,7 @@ export const ComparisonTable = JSX<ComparisonTableProps>(
|
|
|
44
46
|
{visibleRowLength
|
|
45
47
|
? renderShowMoreToggleButton({ isShowAllRow, onClick: showToggle })
|
|
46
48
|
: null}
|
|
47
|
-
</
|
|
49
|
+
</BlockWrapper>
|
|
48
50
|
);
|
|
49
51
|
},
|
|
50
52
|
);
|
|
@@ -29,7 +29,7 @@ export const TableCell = JSX<TableCellProps>(({ cell, isFirstRow, isLastRow, isF
|
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
const labelStyle = (isFillGradient = false): string =>
|
|
32
|
-
`text-xl font-medium m-0 ${isFillGradient ? 'text-white' : ''}`;
|
|
32
|
+
`text-xl-light font-medium m-0 ${isFillGradient ? 'text-white' : ''}`;
|
|
33
33
|
const descriptionStyle = (isFillGradient = false): string =>
|
|
34
34
|
`text-sm opacity-80 ${isFillGradient ? 'text-white' : 'text-secondary-text'}`;
|
|
35
35
|
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { JSX, PropsWithChildren } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { BlockDef, ContentPageDef, UniBlockProps } from '../../types';
|
|
3
|
-
import { changeHashOnScroll } from '../../utils/changeHashOnScroll';
|
|
4
|
-
import { isSSR } from '../../utils/isSSR';
|
|
5
3
|
import { style2className } from '../../utils/style2className';
|
|
6
4
|
import type { BlockContent } from '../BlockContent';
|
|
7
5
|
import { LikeControl } from '../LikeControl/LikeControl';
|
|
@@ -39,8 +37,6 @@ export interface RenderBlockFunc {
|
|
|
39
37
|
context: ContentPageContext;
|
|
40
38
|
}
|
|
41
39
|
|
|
42
|
-
const isClient = !isSSR();
|
|
43
|
-
|
|
44
40
|
const defaultBlockDecorator: BlockDecorator = ({ blockClassName, block, render }) =>
|
|
45
41
|
render({ blockClassName, block });
|
|
46
42
|
|
|
@@ -53,16 +49,6 @@ export const ContentPage = JSX<ContentPageProps>(
|
|
|
53
49
|
blockDecorator = defaultBlockDecorator,
|
|
54
50
|
}) => {
|
|
55
51
|
const { header } = slots;
|
|
56
|
-
const router = context.useRouter();
|
|
57
|
-
|
|
58
|
-
// listener is for NavigatorTabs
|
|
59
|
-
isClient &&
|
|
60
|
-
globalThis.addEventListener('load', () => {
|
|
61
|
-
const sectionsWithAnchors = globalThis.document.querySelectorAll('section[id]');
|
|
62
|
-
globalThis.document.addEventListener('scroll', () =>
|
|
63
|
-
changeHashOnScroll(router, sectionsWithAnchors),
|
|
64
|
-
);
|
|
65
|
-
});
|
|
66
52
|
|
|
67
53
|
return (
|
|
68
54
|
<section
|
|
@@ -31,12 +31,15 @@ export type AsyncDataHook = <Data, Err = any>(
|
|
|
31
31
|
export type GeolocationHook = (defaultLocation: string) => [string, () => void];
|
|
32
32
|
|
|
33
33
|
export type SetStateAction<S> = S | ((prevState: S) => S);
|
|
34
|
+
|
|
34
35
|
export type SetStateHook = <State>(
|
|
35
36
|
initialState: State | (() => State),
|
|
36
37
|
) => [State, FuncReturnVoid<SetStateAction<State>>];
|
|
37
38
|
|
|
38
39
|
export interface IntersectionObserverTagProps {
|
|
39
40
|
Tag: string;
|
|
41
|
+
className?: string;
|
|
42
|
+
anchor?: string;
|
|
40
43
|
children?: VNode;
|
|
41
44
|
observerCallback: IntersectionObserverCallback;
|
|
42
45
|
observerOptions?: IntersectionObserverInit;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useExchangeRates } from '../../hooks/useExchangeRates';
|
|
3
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
3
4
|
import type { UniBlockProps } from '../../types';
|
|
4
5
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
5
6
|
import { BaseTile } from '../BaseTile/BaseTile';
|
|
@@ -18,7 +19,7 @@ const DEFAULT_LOCATION = {
|
|
|
18
19
|
export interface ExchangeRateTileProps extends ExchangeRateTileContent, UniBlockProps {}
|
|
19
20
|
|
|
20
21
|
export const ExchangeRateTile = JSX<ExchangeRateTileProps>(
|
|
21
|
-
({ className = '', context, title = 'Курсы обмена валют',
|
|
22
|
+
({ className = '', context, title = 'Курсы обмена валют', ...rest }) => {
|
|
22
23
|
const currencyRates = useExchangeRates(context.useAsyncData);
|
|
23
24
|
|
|
24
25
|
const currencyRatesBuy = currencyRates.filter((_) => _.buy);
|
|
@@ -28,9 +29,10 @@ export const ExchangeRateTile = JSX<ExchangeRateTileProps>(
|
|
|
28
29
|
currencyRatesSell.push({ code: Currency.RUB });
|
|
29
30
|
|
|
30
31
|
return (
|
|
31
|
-
<
|
|
32
|
+
<BlockWrapper
|
|
33
|
+
context={context}
|
|
32
34
|
className={`bg-white text-primary-text font-sans p-9 box-border ${className}`}
|
|
33
|
-
|
|
35
|
+
{...rest}
|
|
34
36
|
>
|
|
35
37
|
<BaseTile
|
|
36
38
|
context={context}
|
|
@@ -59,7 +61,7 @@ export const ExchangeRateTile = JSX<ExchangeRateTileProps>(
|
|
|
59
61
|
) : null}
|
|
60
62
|
</div>
|
|
61
63
|
</BaseTile>
|
|
62
|
-
</
|
|
64
|
+
</BlockWrapper>
|
|
63
65
|
);
|
|
64
66
|
},
|
|
65
67
|
);
|
|
@@ -50,7 +50,7 @@ const renderText = (type: ContactInfo['type'], text = '') => {
|
|
|
50
50
|
case 'tel':
|
|
51
51
|
return (
|
|
52
52
|
<a
|
|
53
|
-
className="font-sans text-xl text-primary-text no-underline"
|
|
53
|
+
className="font-sans text-xl-light text-primary-text no-underline"
|
|
54
54
|
href={`tel:${formatTel(text)}`}
|
|
55
55
|
>
|
|
56
56
|
{text}
|
|
@@ -58,7 +58,10 @@ const renderText = (type: ContactInfo['type'], text = '') => {
|
|
|
58
58
|
);
|
|
59
59
|
case 'email':
|
|
60
60
|
return (
|
|
61
|
-
<a
|
|
61
|
+
<a
|
|
62
|
+
className="font-sans text-xl-light text-primary-text no-underline"
|
|
63
|
+
href={`mailto:${text}`}
|
|
64
|
+
>
|
|
62
65
|
{text}
|
|
63
66
|
</a>
|
|
64
67
|
);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
2
3
|
import type { UniBlockProps } from '../../types';
|
|
3
4
|
import { Logo } from '../../ui-kit/Logo/Logo';
|
|
4
5
|
import { SearchBar } from '../../ui-kit/SearchBar/SearchBar';
|
|
@@ -23,10 +24,15 @@ export const Footer = JSX<FooterProps>(
|
|
|
23
24
|
mobileApps,
|
|
24
25
|
topItems,
|
|
25
26
|
context,
|
|
26
|
-
|
|
27
|
+
...rest
|
|
27
28
|
}) => {
|
|
28
29
|
return (
|
|
29
|
-
<
|
|
30
|
+
<BlockWrapper
|
|
31
|
+
Tag="footer"
|
|
32
|
+
context={context}
|
|
33
|
+
className={`p-9 bg-white ${className || ''}`}
|
|
34
|
+
{...rest}
|
|
35
|
+
>
|
|
30
36
|
<div className="flex items-stretch gap-[54px] pb-[30px] xl:gap-8">
|
|
31
37
|
<Logo className={LEFT_COL_WIDTH_FULL_HD} />
|
|
32
38
|
<SearchBar context={context} className="grow" />
|
|
@@ -45,7 +51,7 @@ export const Footer = JSX<FooterProps>(
|
|
|
45
51
|
</div>
|
|
46
52
|
<HorizontalNavigation className="mt-[98px]" links={relatedEnterprises} context={context} />
|
|
47
53
|
<TextInformation links={documents} context={context} />
|
|
48
|
-
</
|
|
54
|
+
</BlockWrapper>
|
|
49
55
|
);
|
|
50
56
|
},
|
|
51
57
|
);
|
|
@@ -40,7 +40,7 @@ function renderButton(button) {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
function renderCardTitle(title: string, className: string) {
|
|
43
|
-
return <div className={`text-xl m-0 ${className}`}>{title}</div>;
|
|
43
|
+
return <div className={`text-xl-light m-0 ${className}`}>{title}</div>;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
function renderItems(items: GalleryItem[], isDotted: boolean, version: BlockVersion = 'primary') {
|
|
@@ -58,7 +58,7 @@ function renderItems(items: GalleryItem[], isDotted: boolean, version: BlockVers
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
function getTitleStyle(version) {
|
|
61
|
-
return `text-xl m-0
|
|
61
|
+
return `text-xl-light m-0
|
|
62
62
|
${version !== 'secondary' ? 'text-primary-text' : ''}
|
|
63
63
|
`;
|
|
64
64
|
}
|